diff --git a/luci-app-nekobox/htdocs/nekobox/settings.php b/luci-app-nekobox/htdocs/nekobox/settings.php index d3b87057c..49955ce1c 100644 --- a/luci-app-nekobox/htdocs/nekobox/settings.php +++ b/luci-app-nekobox/htdocs/nekobox/settings.php @@ -189,7 +189,7 @@ $razordVersion = getRazordVersion();
- +
@@ -237,27 +237,42 @@ $razordVersion = getRazordVersion(); -`}).join(` +`);return(o,a)=>(X(),yt(LC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),Cfe=st({__name:"MemoryCharts",setup(e){const{t}=Ga(),n=Le(()=>[{name:t("memoryUsage"),data:ph.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>lk(o[0],{binary:!0,suffix:""});return(o,a)=>(X(),yt(LC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),Tfe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},Efe={class:"card card-compact"},Afe={class:"card-title px-4 pt-4 text-primary"},Mfe={class:"indicator"},Rfe={key:0,class:"indicator-item flex"},Dfe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},Ife={class:"card-body gap-4"},Pfe={class:"flex items-center gap-2"},Lfe=["value"],Ofe={class:"flex items-center gap-2"},kfe=["value","label"],Nfe={key:0,class:"flex items-center gap-2"},Ffe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},$fe={class:"card card-compact"},Bfe={class:"card-title px-4 pt-4"},Vfe={class:"card-body gap-4"},Hfe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Ufe={class:"card flex items-center justify-start bg-base-200 p-4"},zfe={class:"card card-compact"},Gfe={class:"card-title px-4 pt-4"},Wfe={class:"card-body gap-4"},Yfe={key:0,class:"flex items-center gap-2"},jfe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},qfe={class:"indicator w-full"},Xfe={key:0,class:"indicator-item flex"},Kfe={class:"card card-compact"},Zfe={class:"card-title px-4 pt-4"},Qfe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},Jfe={class:"flex items-center gap-2"},ehe=["value"],the={class:"flex items-center gap-2"},nhe={class:"flex items-center gap-2"},rhe={class:"flex items-center gap-2 max-sm:hidden"},ihe={class:"flex items-center gap-2 sm:hidden"},ohe={class:"flex w-full items-center gap-2"},ahe={class:"shrink-0"},she={class:"flex w-full items-center gap-2"},lhe={class:"shrink-0"},uhe={class:"flex items-center gap-2"},che={class:"shrink-0"},fhe={class:"flex items-center gap-2"},hhe={class:"shrink-0"},dhe={key:0,class:"flex items-center gap-2"},phe={class:"card card-compact"},vhe={class:"card-title px-4 pt-4"},ghe={class:"card-body"},mhe={class:"flex items-center gap-2"},yhe={key:0,class:"flex items-center gap-2 max-sm:hidden"},_he={class:"card card-compact"},whe={class:"card-title px-4 pt-4"},bhe={class:"card-body"},She={class:"flex items-center gap-2"},xhe=st({__name:"SettingsPage",setup(e){const{isUIUpdateAvailable:t}=c3(),n=Me(!1),r=async()=>{if(!n.value){n.value=!0;try{await xq(),n.value=!1}catch{n.value=!1}}},i=Me(!1),o=async()=>{if(!i.value){i.value=!0;try{await Sq(),i.value=!1}catch{i.value=!1}}},a=Me(!1),s=async()=>{if(!a.value){a.value=!0;try{await ek(),a.value=!1}catch{a.value=!1}}},l=Me(!1),u=async()=>{if(!l.value){l.value=!0;try{await bq(),l.value=!1}catch{l.value=!1}}},c=async()=>{var g;await Pk({tun:{enable:(g=Wo.value)==null?void 0:g.tun.enable}})},h=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"],p=()=>{const g={};for(const b in localStorage)(b.startsWith("config/")||b.startsWith("setup/"))&&(g[b]=localStorage.getItem(b));const y=new Blob([JSON.stringify(g,null,2)],{type:"application/json"}),_=URL.createObjectURL(y),m=document.createElement("a");m.href=_,m.download="zashboard-settings",m.click(),URL.revokeObjectURL(_)},d=()=>{const g=document.createElement("input");g.type="file",g.accept=".json",g.onchange=async()=>{var m;const y=(m=g.files)==null?void 0:m[0];if(!y)return;const _=new FileReader;_.onload=async()=>{const b=JSON.parse(_.result);for(const S in b)localStorage.setItem(S,b[S]);location.reload()},_.readAsText(y)},g.click()};return(g,y)=>{var _;return X(),oe("div",Tfe,[F("div",Efe,[F("div",Afe,[F("div",Mfe,[V(t)?(X(),oe("span",Rfe,y[18]||(y[18]=[F("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),F("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):_t("",!0),F("a",Dfe,"zashboard v"+de(V(px)),1)])]),F("div",Ife,[F("div",Pfe,[lt(de(g.$t("theme"))+": ",1),Mt(F("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":y[0]||(y[0]=m=>Qe(Tc)?Tc.value=m:null)},[(X(),oe(We,null,Gt(h,m=>F("option",{key:m,value:m},de(m),9,Lfe)),64))],512),[[wo,V(Tc)]])]),Se(b3),F("div",Ofe,[lt(de(g.$t("fonts"))+": ",1),Mt(F("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":y[1]||(y[1]=m=>Qe(kh)?kh.value=m:null)},[(X(!0),oe(We,null,Gt(Object.values(V(Is)),m=>(X(),oe("option",{key:m,value:m,label:m},null,8,kfe))),128))],512),[[wo,V(kh)]])]),V(Ia)?_t("",!0):(X(),oe("div",Nfe,[lt(de(g.$t("autoUpgrade"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[2]||(y[2]=m=>Qe(dg)?dg.value=m:null)},null,512),[[mi,V(dg)]])])),F("div",Ffe,[V(Ia)?_t("",!0):(X(),oe(We,{key:0},[F("button",{class:ut(V(hn)("btn btn-primary btn-xs sm:btn-sm",a.value?"animate-pulse":"")),onClick:s},de(g.$t("upgradeUI")),3),y[19]||(y[19]=F("div",{class:"sm:hidden"},null,-1))],64)),F("button",{class:"btn btn-xs sm:btn-sm",onClick:p},de(g.$t("exportSettings")),1),F("button",{class:"btn btn-xs sm:btn-sm",onClick:d},de(g.$t("importSettings")),1)])])]),F("div",$fe,[F("div",Bfe,de(g.$t("statistics")),1),F("div",Vfe,[F("div",Hfe,[F("div",Ufe,[Se(Bk,{class:"h-20 w-full"})]),Se(u3),Se(Cfe),Se(xfe)])])]),F("div",zfe,[F("div",Gfe,de(g.$t("backend")),1),F("div",Wfe,[Se(Sce),y[21]||(y[21]=F("div",{class:"divider"},null,-1)),Se($k),!V(Ia)&&((_=V(Wo))!=null&&_.tun)?(X(),oe("div",Yfe,[lt(de(g.$t("tunMode"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[3]||(y[3]=m=>V(Wo).tun.enable=m),onChange:c},null,544),[[mi,V(Wo).tun.enable]])])):_t("",!0),F("div",jfe,[V(Ia)?_t("",!0):(X(),oe(We,{key:0},[F("div",qfe,[V(ZO)?(X(),oe("span",Xfe,y[20]||(y[20]=[F("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),F("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):_t("",!0),F("button",{class:ut(V(hn)("btn btn-primary btn-xs flex-1 sm:btn-sm",i.value?"animate-pulse":"")),onClick:o},de(g.$t("upgradeCore")),3)]),F("button",{class:ut(V(hn)("btn btn-xs sm:btn-sm",n.value?"animate-pulse":"")),onClick:r},de(g.$t("restartCore")),3)],64)),F("button",{class:ut(V(hn)("btn btn-xs sm:btn-sm",l.value?"animate-pulse":"")),onClick:u},de(g.$t("reloadConfigs")),3),F("button",{class:"btn btn-xs sm:btn-sm",onClick:y[4]||(y[4]=(...m)=>V(oM)&&V(oM)(...m))},de(g.$t("flushFakeIP")),1)])])]),F("div",Kfe,[F("div",Zfe,de(g.$t("proxies")),1),F("div",Qfe,[F("div",Jfe,[lt(de(g.$t("proxyPreviewType"))+": ",1),Mt(F("select",{class:"select select-bordered select-sm","onUpdate:modelValue":y[5]||(y[5]=m=>Qe(Vh)?Vh.value=m:null)},[(X(!0),oe(We,null,Gt(Object.values(V(_d)),m=>(X(),oe("option",{key:m,value:m},de(g.$t(m)),9,ehe))),128))],512),[[wo,V(Vh)]])]),F("div",the,[lt(de(g.$t("truncateProxyName"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[6]||(y[6]=m=>Qe(Ec)?Ec.value=m:null)},null,512),[[mi,V(Ec)]])]),F("div",nhe,[lt(de(g.$t("automaticDisconnection"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[7]||(y[7]=m=>Qe(gg)?gg.value=m:null)},null,512),[[mi,V(gg)]])]),F("div",rhe,[lt(de(g.$t("twoColumnProxyGroup"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[8]||(y[8]=m=>Qe(Nh)?Nh.value=m:null)},null,512),[[mi,V(Nh)]])]),F("div",ihe,[lt(de(g.$t("twoColumnNodeForMobile"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[9]||(y[9]=m=>Qe(Bh)?Bh.value=m:null)},null,512),[[mi,V(Bh)]])]),F("div",ohe,[F("span",ahe,de(g.$t("speedtestUrl"))+": ",1),Mt(F("input",{type:"text",class:"input input-sm input-bordered w-60 max-sm:flex-1 sm:w-96","onUpdate:modelValue":y[10]||(y[10]=m=>Qe(Fh)?Fh.value=m:null)},null,512),[[Kr,V(Fh)]])]),F("div",she,[F("span",lhe,de(g.$t("speedtestTimeout"))+": ",1),Mt(F("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[11]||(y[11]=m=>Qe($h)?$h.value=m:null)},null,512),[[Kr,V($h)]])]),F("div",uhe,[F("span",che,de(g.$t("lowLatencyDesc"))+": ",1),Mt(F("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[12]||(y[12]=m=>Qe(ks)?ks.value=m:null)},null,512),[[Kr,V(ks)]])]),F("div",fhe,[F("span",hhe,de(g.$t("mediumLatencyDesc"))+": ",1),Mt(F("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":y[13]||(y[13]=m=>Qe(Da)?Da.value=m:null)},null,512),[[Kr,V(Da)]])]),V(Ia)?(X(),oe("div",dhe,[lt(de(g.$t("showGlobalProxy"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[14]||(y[14]=m=>Qe(pg)?pg.value=m:null)},null,512),[[mi,V(pg)]])])):_t("",!0)])]),F("div",phe,[F("div",vhe,de(g.$t("connections")),1),F("div",ghe,[F("div",mhe,[lt(de(g.$t("connectionStyle"))+": "+de(g.$t("table"))+" ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[15]||(y[15]=m=>Qe(Zl)?Zl.value=m:null)},null,512),[[mi,V(Zl)]]),lt(" "+de(g.$t("card")),1)]),V(Zl)?(X(),oe("div",yhe,[lt(de(g.$t("compactCard"))+": ",1),Mt(F("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[16]||(y[16]=m=>Qe(yg)?yg.value=m:null)},null,512),[[mi,V(yg)]])])):(X(),yt(Sfe,{key:1})),y[22]||(y[22]=F("div",{class:"divider"},null,-1)),Se(Rce)])]),F("div",_he,[F("div",whe,de(g.$t("logs")),1),F("div",bhe,[F("div",She,[lt(de(g.$t("logRetentionLimit"))+": ",1),Mt(F("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":y[17]||(y[17]=m=>Qe(_g)?_g.value=m:null)},null,512),[[Kr,V(_g)]])])])])])}}}),Che={key:0,class:"toast toast-start toast-top max-w-64 whitespace-normal text-sm"},The={class:"breaks-all alert alert-warning w-72 whitespace-normal"},Ehe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank"},Ahe={class:"absolute bottom-4 right-4"},Mhe={class:"card w-64 gap-2 px-6 py-2 sm:gap-4"},Rhe={class:"text-2xl font-semibold"},Dhe={class:"form-control"},Ihe={class:"label"},Phe={class:"label-text"},Lhe={class:"form-control"},Ohe={class:"label"},khe={class:"label-text"},Nhe={class:"form-control"},Fhe={class:"label"},$he={class:"label-text"},Bhe={class:"form-control"},Vhe={class:"label flex items-center justify-start gap-1"},Hhe={class:"label-text"},Uhe=["data-tip"],zhe={class:"form-control"},Ghe={class:"label"},Whe={class:"label-text"},Yhe={class:"flex flex-col gap-2"},jhe=["onClick"],qhe=["onClick"],Xhe=st({__name:"SetupPage",setup(e){var l,u;const t=xo({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{tipContent:n,tipShowModel:r,showTip:i}=EO(),o=c=>{xi.value=c,Eo.push({name:Bt.proxies})},a=async(c,h=!1)=>{const{protocol:p,host:d,port:g,password:y,secondaryPath:_}=c;if(!p||!d||!g){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&p==="http"&&!h&&i("protocolTips");try{const m=await fetch(`${p}://${d}:${g}${_}/version`,{method:"GET",headers:{Authorization:`Bearer ${y}`}});if(m.status!==200){h||alert(m.statusText);return}const{version:b,message:S}=await m.json();if(!b){h||alert(S);return}DY(c),Eo.push({name:Bt.proxies})}catch(m){h||alert(m)}},s=new URLSearchParams(window.location.search||((u=(l=location.hash.match(/\?.*$/))==null?void 0:l[0])==null?void 0:u.replace("?","")));return s.has("hostname")?a({protocol:s.get("http")?"http":s.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:s.get("secondaryPath")||"",host:s.get("hostname"),port:Number(s.get("port")),password:s.get("secret")}):js.value.length===0&&a(t,!0),(c,h)=>(X(),oe("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:h[6]||(h[6]=wW(p=>a(t),["enter"]))},[V(r)?(X(),oe("div",Che,[F("div",The,[F("a",Ehe,de(c.$t(V(n))),1)])])):_t("",!0),F("div",Ahe,[Se(b3)]),F("div",Mhe,[F("h1",Rhe,de(c.$t("setup")),1),F("div",Dhe,[F("label",Ihe,[F("span",Phe,de(c.$t("protocol")),1)]),Mt(F("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":h[0]||(h[0]=p=>t.protocol=p)},h[7]||(h[7]=[F("option",{value:"http"},"HTTP",-1),F("option",{value:"https"},"HTTPS",-1)]),512),[[wo,t.protocol]])]),F("div",Lhe,[F("label",Ohe,[F("span",khe,de(c.$t("host")),1)]),Mt(F("input",{type:"text",class:"input input-sm input-bordered w-full",name:"username",autocomplete:"username","onUpdate:modelValue":h[1]||(h[1]=p=>t.host=p)},null,512),[[Kr,t.host]])]),F("div",Nhe,[F("label",Fhe,[F("span",$he,de(c.$t("port")),1)]),Mt(F("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":h[2]||(h[2]=p=>t.port=p)},null,512),[[Kr,t.port]])]),F("div",Bhe,[F("label",Vhe,[F("span",Hhe,de(c.$t("secondaryPath")),1),F("span",{class:"tooltip","data-tip":c.$t("secondaryPathTip")},[Se(V(rO),{class:"h-4 w-4"})],8,Uhe)]),Mt(F("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":h[3]||(h[3]=p=>t.secondaryPath=p)},null,512),[[Kr,t.secondaryPath]])]),F("div",zhe,[F("label",Ghe,[F("span",Whe,de(c.$t("password")),1)]),Mt(F("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":h[4]||(h[4]=p=>t.password=p)},null,512),[[Kr,t.password]])]),F("button",{class:"btn btn-primary btn-sm w-full",onClick:h[5]||(h[5]=p=>a(t))},de(c.$t("submit")),1),F("div",Yhe,[(X(!0),oe(We,null,Gt(V(js),p=>(X(),oe("div",{key:p.uuid,class:"flex items-center gap-2"},[F("button",{class:"btn btn-xs flex-1",onClick:d=>o(p.uuid)},de(p.protocol)+"://"+de(p.host)+":"+de(p.port)+de(p.secondaryPath),9,jhe),F("button",{class:"btn btn-circle btn-xs",onClick:()=>V(TO)(p.uuid)},[Se(V(JL),{class:"h-4 w-4"})],8,qhe)]))),128))])])],32))}}),Eo=A6({history:r6("./"),routes:[{path:"/",redirect:Bt.proxies,component:eue,children:[{path:"proxies",name:Bt.proxies,component:lce},{path:"connections",name:Bt.connections,component:GK},{path:"logs",name:Bt.logs,component:aue},{path:"rules",name:Bt.rules,component:_ce},{path:"settings",name:Bt.settings,component:xhe}]},{path:"/setup",name:Bt.setup,component:Xhe},{path:"/:catchAll(.*)",redirect:Bt.proxies}]}),CP=u9("zashboard"),U3=e=>{typeof e=="string"&&Uo.value?CP.value=`zashboard | ${ux.global.t(e)}`:CP.value="zashboard"};Eo.beforeEach(e=>{!Uo.value&&e.name!==Bt.setup&&Eo.push({name:Bt.setup})});Eo.afterEach(e=>{U3(e.name)});kt(Pa,()=>{U3(Eo.currentRoute.value.name)});const FC=xW(h9);Qo.extend(e8);FC.use(Eo);FC.use(ux);FC.mount("#app"); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Eir5DzNE.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Eir5DzNE.js deleted file mode 100644 index fc1868508..000000000 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Eir5DzNE.js +++ /dev/null @@ -1,158 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var by=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q0={exports:{}},IQ=q0.exports,_R;function oz(){return _R||(_R=1,function(e,t){(function(r,n){e.exports=n()})(IQ,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",v="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(O){var F=["th","st","nd","rd"],B=O%100;return"["+O+(F[(B-20)%10]||F[B]||F[0])+"]"}},b=function(O,F,B){var W=String(O);return!W||W.length>=F?O:""+Array(F+1-W.length).join(B)+O},w={s:b,z:function(O){var F=-O.utcOffset(),B=Math.abs(F),W=Math.floor(B/60),z=B%60;return(F<=0?"+":"-")+b(W,2,"0")+":"+b(z,2,"0")},m:function O(F,B){if(F.date()1)return O(ee[0])}else{var te=F.name;x[te]=F,z=te}return!W&&z&&(C=z),z||!W&&C},I=function(O,F){if(D(O))return O.clone();var B=typeof F=="object"?F:{};return B.date=O,B.args=arguments,new R(B)},P=w;P.l=M,P.i=D,P.w=function(O,F){return I(O,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var R=function(){function O(B){this.$L=M(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[A]=!0}var F=O.prototype;return F.parse=function(B){this.$d=function(W){var z=W.date,j=W.utc;if(z===null)return new Date(NaN);if(P.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var ee=z.match(m);if(ee){var te=ee[2]-1||0,me=(ee[7]||"0").substring(0,3);return j?new Date(Date.UTC(ee[1],te,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,me)):new Date(ee[1],te,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,me)}}return new Date(z)}(B),this.init()},F.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},F.$utils=function(){return P},F.isValid=function(){return this.$d.toString()!==p},F.isSame=function(B,W){var z=I(B);return this.startOf(W)<=z&&z<=this.endOf(W)},F.isAfter=function(B,W){return I(B)0,x<=C.r||!C.r){x<=1&&w>0&&(C=S[w-1]);var A=y[C.l];d&&(x=d(""+x)),p=typeof A=="string"?A.replace("%d",x):A(x,c,C.l,m);break}}if(c)return p;var D=m?y.future:y.past;return typeof D=="function"?D(p):D.replace("%s",p)},a.to=function(u,c){return s(u,c,this,!0)},a.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};a.toNow=function(u){return this.to(l(this),u)},a.fromNow=function(u){return this.from(l(this),u)}}})}(K0)),K0.exports}var OQ=kQ();const NQ=U2(OQ);/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function W2(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Er={},Vh=[],Jo=()=>{},FQ=()=>!1,vS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Y2=e=>e.startsWith("onUpdate:"),Nn=Object.assign,X2=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},BQ=Object.prototype.hasOwnProperty,_r=(e,t)=>BQ.call(e,t),pt=Array.isArray,zh=e=>Wg(e)==="[object Map]",wd=e=>Wg(e)==="[object Set]",wR=e=>Wg(e)==="[object Date]",Et=e=>typeof e=="function",fn=e=>typeof e=="string",_o=e=>typeof e=="symbol",kr=e=>e!==null&&typeof e=="object",sz=e=>(kr(e)||Et(e))&&Et(e.then)&&Et(e.catch),lz=Object.prototype.toString,Wg=e=>lz.call(e),VQ=e=>Wg(e).slice(8,-1),uz=e=>Wg(e)==="[object Object]",Z2=e=>fn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yp=W2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pS=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},zQ=/-(\w)/g,Ha=pS(e=>e.replace(zQ,(t,r)=>r?r.toUpperCase():"")),GQ=/\B([A-Z])/g,Tf=pS(e=>e.replace(GQ,"-$1").toLowerCase()),gS=pS(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uw=pS(e=>e?`on${gS(e)}`:""),su=(e,t)=>!Object.is(e,t),J0=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},W_=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xR;const mS=()=>xR||(xR=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kc(e){if(pt(e)){const t={};for(let r=0;r{if(r){const n=r.split(HQ);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Tt(e){let t="";if(fn(e))t=e;else if(pt(e))for(let r=0;rYg(r,t))}const hz=e=>!!(e&&e.__v_isRef===!0),Ie=e=>fn(e)?e:e==null?"":pt(e)||kr(e)&&(e.toString===lz||!Et(e.toString))?hz(e)?Ie(e.value):JSON.stringify(e,dz,2):String(e),dz=(e,t)=>hz(t)?dz(e,t.value):zh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[Ww(n,a)+" =>"]=i,r),{})}:wd(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Ww(r))}:_o(t)?Ww(t):kr(t)&&!pt(t)&&!uz(t)?String(t):t,Ww=(e,t="")=>{var r;return _o(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let gi;class vz{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=gi,!t&&gi&&(this.index=(gi.scopes||(gi.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(Sp){let t=Sp;for(Sp=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;_p;){let t=_p;for(_p=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function _z(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Sz(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),J2(n),KQ(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function lA(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bz(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bz(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===tg))return;e.globalVersion=tg;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!lA(e)){e.flags&=-3;return}const r=Fr,n=ho;Fr=e,ho=!0;try{_z(e);const i=e.fn(e._value);(t.version===0||su(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Fr=r,ho=n,Sz(e),e.flags&=-3}}function J2(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)J2(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function KQ(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let ho=!0;const wz=[];function Tu(){wz.push(ho),ho=!1}function Au(){const e=wz.pop();ho=e===void 0?!0:e}function CR(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Fr;Fr=void 0;try{t()}finally{Fr=r}}}let tg=0;class JQ{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yS{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Fr||!ho||Fr===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Fr)r=this.activeLink=new JQ(Fr,this),Fr.deps?(r.prevDep=Fr.depsTail,Fr.depsTail.nextDep=r,Fr.depsTail=r):Fr.deps=Fr.depsTail=r,xz(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Fr.depsTail,r.nextDep=void 0,Fr.depsTail.nextDep=r,Fr.depsTail=r,Fr.deps===r&&(Fr.deps=n)}return r}trigger(t){this.version++,tg++,this.notify(t)}notify(t){j2();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{K2()}}}function xz(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)xz(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Y_=new WeakMap,qc=Symbol(""),uA=Symbol(""),rg=Symbol("");function ti(e,t,r){if(ho&&Fr){let n=Y_.get(e);n||Y_.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new yS),i.map=n,i.key=r),i.track()}}function ks(e,t,r,n,i,a){const o=Y_.get(e);if(!o){tg++;return}const s=l=>{l&&l.trigger()};if(j2(),t==="clear")o.forEach(s);else{const l=pt(e),u=l&&Z2(r);if(l&&r==="length"){const c=Number(n);o.forEach((f,h)=>{(h==="length"||h===rg||!_o(h)&&h>=c)&&s(f)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(rg)),t){case"add":l?u&&s(o.get("length")):(s(o.get(qc)),zh(e)&&s(o.get(uA)));break;case"delete":l||(s(o.get(qc)),zh(e)&&s(o.get(uA)));break;case"set":zh(e)&&s(o.get(qc));break}}K2()}function QQ(e,t){const r=Y_.get(e);return r&&r.get(t)}function eh(e){const t=dr(e);return t===e?t:(ti(t,"iterate",rg),Ga(e)?t:t.map(ri))}function _S(e){return ti(e=dr(e),"iterate",rg),e}const eee={__proto__:null,[Symbol.iterator](){return Xw(this,Symbol.iterator,ri)},concat(...e){return eh(this).concat(...e.map(t=>pt(t)?eh(t):t))},entries(){return Xw(this,"entries",e=>(e[1]=ri(e[1]),e))},every(e,t){return ws(this,"every",e,t,void 0,arguments)},filter(e,t){return ws(this,"filter",e,t,r=>r.map(ri),arguments)},find(e,t){return ws(this,"find",e,t,ri,arguments)},findIndex(e,t){return ws(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ws(this,"findLast",e,t,ri,arguments)},findLastIndex(e,t){return ws(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ws(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zw(this,"includes",e)},indexOf(...e){return Zw(this,"indexOf",e)},join(e){return eh(this).join(e)},lastIndexOf(...e){return Zw(this,"lastIndexOf",e)},map(e,t){return ws(this,"map",e,t,void 0,arguments)},pop(){return lv(this,"pop")},push(...e){return lv(this,"push",e)},reduce(e,...t){return TR(this,"reduce",e,t)},reduceRight(e,...t){return TR(this,"reduceRight",e,t)},shift(){return lv(this,"shift")},some(e,t){return ws(this,"some",e,t,void 0,arguments)},splice(...e){return lv(this,"splice",e)},toReversed(){return eh(this).toReversed()},toSorted(e){return eh(this).toSorted(e)},toSpliced(...e){return eh(this).toSpliced(...e)},unshift(...e){return lv(this,"unshift",e)},values(){return Xw(this,"values",ri)}};function Xw(e,t,r){const n=_S(e),i=n[t]();return n!==e&&!Ga(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const tee=Array.prototype;function ws(e,t,r,n,i,a){const o=_S(e),s=o!==e&&!Ga(e),l=o[t];if(l!==tee[t]){const f=l.apply(e,a);return s?ri(f):f}let u=r;o!==e&&(s?u=function(f,h){return r.call(this,ri(f),h,e)}:r.length>2&&(u=function(f,h){return r.call(this,f,h,e)}));const c=l.call(o,u,n);return s&&i?i(c):c}function TR(e,t,r,n){const i=_S(e);let a=r;return i!==e&&(Ga(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,ri(s),l,e)}),i[t](a,...n)}function Zw(e,t,r){const n=dr(e);ti(n,"iterate",rg);const i=n[t](...r);return(i===-1||i===!1)&&tM(r[0])?(r[0]=dr(r[0]),n[t](...r)):i}function lv(e,t,r=[]){Tu(),j2();const n=dr(e)[t].apply(e,r);return K2(),Au(),n}const ree=W2("__proto__,__v_isRef,__isVue"),Cz=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_o));function nee(e){_o(e)||(e=String(e));const t=dr(this);return ti(t,"has",e),t.hasOwnProperty(e)}class Tz{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?dee:Iz:a?Mz:Dz).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=pt(t);if(!i){let l;if(o&&(l=eee[r]))return l;if(r==="hasOwnProperty")return nee}const s=Reflect.get(t,r,vt(t)?t:n);return(_o(r)?Cz.has(r):ree(r))||(i||ti(t,"get",r),a)?s:vt(s)?o&&Z2(r)?s:s.value:kr(s)?i?SS(s):Du(s):s}}class Az extends Tz{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=ff(a);if(!Ga(n)&&!ff(n)&&(a=dr(a),n=dr(n)),!pt(t)&&vt(a)&&!vt(n))return l?!1:(a.value=n,!0)}const o=pt(t)&&Z2(r)?Number(r)e,wy=e=>Reflect.getPrototypeOf(e);function lee(e,t,r){return function(...n){const i=this.__v_raw,a=dr(i),o=zh(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?cA:t?fA:ri;return!t&&ti(a,"iterate",l?uA:qc),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:s?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function xy(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uee(e,t){const r={get(i){const a=this.__v_raw,o=dr(a),s=dr(i);e||(su(i,s)&&ti(o,"get",i),ti(o,"get",s));const{has:l}=wy(o),u=t?cA:e?fA:ri;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&ti(dr(i),"iterate",qc),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=dr(a),s=dr(i);return e||(su(i,s)&&ti(o,"has",i),ti(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=dr(s),u=t?cA:e?fA:ri;return!e&&ti(l,"iterate",qc),s.forEach((c,f)=>i.call(a,u(c),u(f),o))}};return Nn(r,e?{add:xy("add"),set:xy("set"),delete:xy("delete"),clear:xy("clear")}:{add(i){!t&&!Ga(i)&&!ff(i)&&(i=dr(i));const a=dr(this);return wy(a).has.call(a,i)||(a.add(i),ks(a,"add",i,i)),this},set(i,a){!t&&!Ga(a)&&!ff(a)&&(a=dr(a));const o=dr(this),{has:s,get:l}=wy(o);let u=s.call(o,i);u||(i=dr(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?su(a,c)&&ks(o,"set",i,a):ks(o,"add",i,a),this},delete(i){const a=dr(this),{has:o,get:s}=wy(a);let l=o.call(a,i);l||(i=dr(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&ks(a,"delete",i,void 0),u},clear(){const i=dr(this),a=i.size!==0,o=i.clear();return a&&ks(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=lee(i,e,t)}),r}function Q2(e,t){const r=uee(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(_r(r,i)&&i in n?r:n,i,a)}const cee={get:Q2(!1,!1)},fee={get:Q2(!1,!0)},hee={get:Q2(!0,!1)};const Dz=new WeakMap,Mz=new WeakMap,Iz=new WeakMap,dee=new WeakMap;function vee(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pee(e){return e.__v_skip||!Object.isExtensible(e)?0:vee(VQ(e))}function Du(e){return ff(e)?e:eM(e,!1,aee,cee,Dz)}function Lz(e){return eM(e,!1,see,fee,Mz)}function SS(e){return eM(e,!0,oee,hee,Iz)}function eM(e,t,r,n,i){if(!kr(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=pee(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function Gh(e){return ff(e)?Gh(e.__v_raw):!!(e&&e.__v_isReactive)}function ff(e){return!!(e&&e.__v_isReadonly)}function Ga(e){return!!(e&&e.__v_isShallow)}function tM(e){return e?!!e.__v_raw:!1}function dr(e){const t=e&&e.__v_raw;return t?dr(t):e}function gee(e){return!_r(e,"__v_skip")&&Object.isExtensible(e)&&cz(e,"__v_skip",!0),e}const ri=e=>kr(e)?Du(e):e,fA=e=>kr(e)?SS(e):e;function vt(e){return e?e.__v_isRef===!0:!1}function Ye(e){return Pz(e,!1)}function bS(e){return Pz(e,!0)}function Pz(e,t){return vt(e)?e:new mee(e,t)}class mee{constructor(t,r){this.dep=new yS,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:dr(t),this._value=r?t:ri(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Ga(t)||ff(t);t=n?t:dr(t),su(t,r)&&(this._rawValue=t,this._value=n?t:ri(t),this.dep.trigger())}}function q(e){return vt(e)?e.value:e}const yee={get:(e,t,r)=>t==="__v_raw"?e:q(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return vt(i)&&!vt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Ez(e){return Gh(e)?e:new Proxy(e,yee)}class _ee{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new yS,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function See(e){return new _ee(e)}function bee(e){const t=pt(e)?new Array(e.length):{};for(const r in e)t[r]=Rz(e,r);return t}class wee{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return QQ(dr(this._object),this._key)}}class xee{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Cee(e,t,r){return vt(e)?e:Et(e)?new xee(e):kr(e)&&arguments.length>1?Rz(e,t,r):Ye(e)}function Rz(e,t,r){const n=e[t];return vt(n)?n:new wee(e,t,r)}class Tee{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new yS(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=tg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Fr!==this)return yz(this,!0),!0}get value(){const t=this.dep.track();return bz(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Aee(e,t,r=!1){let n,i;return Et(e)?n=e:(n=e.get,i=e.set),new Tee(n,i,r)}const Cy={},X_=new WeakMap;let yc;function Dee(e,t=!1,r=yc){if(r){let n=X_.get(r);n||X_.set(r,n=[]),n.push(e)}}function Mee(e,t,r=Er){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=w=>i?w:Ga(w)||i===!1||i===0?Os(w,1):Os(w);let c,f,h,d,v=!1,p=!1;if(vt(e)?(f=()=>e.value,v=Ga(e)):Gh(e)?(f=()=>u(e),v=!0):pt(e)?(p=!0,v=e.some(w=>Gh(w)||Ga(w)),f=()=>e.map(w=>{if(vt(w))return w.value;if(Gh(w))return u(w);if(Et(w))return l?l(w,2):w()})):Et(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Tu();try{h()}finally{Au()}}const w=yc;yc=c;try{return l?l(e,3,[d]):e(d)}finally{yc=w}}:f=Jo,t&&i){const w=f,C=i===!0?1/0:i;f=()=>Os(w(),C)}const m=pz(),y=()=>{c.stop(),m&&m.active&&X2(m.effects,c)};if(a&&t){const w=t;t=(...C)=>{w(...C),y()}}let S=p?new Array(e.length).fill(Cy):Cy;const b=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const C=c.run();if(i||v||(p?C.some((x,A)=>su(x,S[A])):su(C,S))){h&&h();const x=yc;yc=c;try{const A=[C,S===Cy?void 0:p&&S[0]===Cy?[]:S,d];l?l(t,3,A):t(...A),S=C}finally{yc=x}}}else c.run()};return s&&s(b),c=new gz(f),c.scheduler=o?()=>o(b,!1):b,d=w=>Dee(w,!1,c),h=c.onStop=()=>{const w=X_.get(c);if(w){if(l)l(w,4);else for(const C of w)C();X_.delete(c)}},t?n?b(!0):S=c.run():o?o(b.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Os(e,t=1/0,r){if(t<=0||!kr(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,vt(e))Os(e.value,t,r);else if(pt(e))for(let n=0;n{Os(n,t,r)});else if(uz(e)){for(const n in e)Os(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Os(e[n],t,r)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Xg(e,t,r,n){try{return n?e(...n):e()}catch(i){wS(i,t,r)}}function rs(e,t,r,n){if(Et(e)){const i=Xg(e,t,r,n);return i&&sz(i)&&i.catch(a=>{wS(a,t,r)}),i}if(pt(e)){const i=[];for(let a=0;a>>1,i=_i[n],a=ng(i);a=ng(r)?_i.push(e):_i.splice(Lee(t),0,e),e.flags|=1,Oz()}}function Oz(){Z_||(Z_=kz.then(Fz))}function Pee(e){pt(e)?$h.push(...e):Fl&&e.id===-1?Fl.splice(Ch+1,0,e):e.flags&1||($h.push(e),e.flags|=1),Oz()}function AR(e,t,r=zo+1){for(;r<_i.length;r++){const n=_i[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;_i.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Nz(e){if($h.length){const t=[...new Set($h)].sort((r,n)=>ng(r)-ng(n));if($h.length=0,Fl){Fl.push(...t);return}for(Fl=t,Ch=0;Che.id==null?e.flags&2?-1:1/0:e.id;function Fz(e){try{for(zo=0;zo<_i.length;zo++){const t=_i[zo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xg(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zo<_i.length;zo++){const t=_i[zo];t&&(t.flags&=-2)}zo=-1,_i.length=0,Nz(),Z_=null,(_i.length||$h.length)&&Fz()}}let kn=null,Bz=null;function q_(e){const t=kn;return kn=e,Bz=e&&e.type.__scopeId||null,t}function ig(e,t=kn,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&OR(-1);const a=q_(t);let o;try{o=e(...i)}finally{q_(a),n._d&&OR(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Qt(e,t){if(kn===null)return e;const r=TS(kn),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function nM(e,t){e.shapeFlag&6&&e.component?(e.transition=t,nM(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function qt(e,t){return Et(e)?Nn({name:e.name},t,{setup:e}):e}function Vz(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function j_(e,t,r,n,i=!1){if(pt(e)){e.forEach((v,p)=>j_(v,t&&(pt(t)?t[p]:t),r,n,i));return}if(Hh(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&j_(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?TS(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Er?s.refs={}:s.refs,f=s.setupState,h=dr(f),d=f===Er?()=>!1:v=>_r(h,v);if(u!=null&&u!==l&&(fn(u)?(c[u]=null,d(u)&&(f[u]=null)):vt(u)&&(u.value=null)),Et(l))Xg(l,s,12,[o,c]);else{const v=fn(l),p=vt(l);if(v||p){const m=()=>{if(e.f){const y=v?d(l)?f[l]:c[l]:l.value;i?pt(y)&&X2(y,a):pt(y)?y.includes(a)||y.push(a):v?(c[l]=[a],d(l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else v?(c[l]=o,d(l)&&(f[l]=o)):p&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,ta(m,r)):m()}}}mS().requestIdleCallback;mS().cancelIdleCallback;const Hh=e=>!!e.type.__asyncLoader,zz=e=>e.type.__isKeepAlive;function kee(e,t){Gz(e,"a",t)}function Oee(e,t){Gz(e,"da",t)}function Gz(e,t,r=Hn){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(xS(t,n,r),r){let i=r.parent;for(;i&&i.parent;)zz(i.parent.vnode)&&Nee(n,t,r,i),i=i.parent}}function Nee(e,t,r,n){const i=xS(t,e,n,!0);Zg(()=>{X2(n[t],i)},r)}function xS(e,t,r=Hn,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Tu();const s=jg(r),l=rs(t,r,e,o);return s(),Au(),l});return n?i.unshift(a):i.push(a),a}}const al=e=>(t,r=Hn)=>{(!sg||e==="sp")&&xS(e,(...n)=>t(...n),r)},Fee=al("bm"),ol=al("m"),Bee=al("bu"),Vee=al("u"),$z=al("bum"),Zg=al("um"),zee=al("sp"),Gee=al("rtg"),$ee=al("rtc");function Hee(e,t=Hn){xS("ec",e,t)}const Uee="components",Hz=Symbol.for("v-ndc");function du(e){return fn(e)?Wee(Uee,e,!1)||e:e||Hz}function Wee(e,t,r=!0,n=!1){const i=kn||Hn;if(i){const a=i.type;{const s=Ete(a,!1);if(s&&(s===t||s===Ha(t)||s===gS(Ha(t))))return a}const o=DR(i[e]||a[e],t)||DR(i.appContext[e],t);return!o&&n?a:o}}function DR(e,t){return e&&(e[t]||e[Ha(t)]||e[gS(Ha(t))])}function lr(e,t,r,n){let i;const a=r,o=pt(e);if(o||fn(e)){const s=o&&Gh(e);let l=!1;s&&(l=!Ga(e),e=_S(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;log(t)?!(t.type===vu||t.type===it&&!Uz(t.children)):!0)?e:null}const hA=e=>e?uG(e)?TS(e):hA(e.parent):null,bp=Nn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hA(e.parent),$root:e=>hA(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>iM(e),$forceUpdate:e=>e.f||(e.f=()=>{rM(e.update)}),$nextTick:e=>e.n||(e.n=Af.bind(e.proxy)),$watch:e=>dte.bind(e)}),qw=(e,t)=>e!==Er&&!e.__isScriptSetup&&_r(e,t),Xee={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(qw(n,t))return o[t]=1,n[t];if(i!==Er&&_r(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&_r(u,t))return o[t]=3,a[t];if(r!==Er&&_r(r,t))return o[t]=4,r[t];dA&&(o[t]=0)}}const c=bp[t];let f,h;if(c)return t==="$attrs"&&ti(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==Er&&_r(r,t))return o[t]=4,r[t];if(h=l.config.globalProperties,_r(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return qw(i,t)?(i[t]=r,!0):n!==Er&&_r(n,t)?(n[t]=r,!0):_r(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==Er&&_r(e,o)||qw(t,o)||(s=a[0])&&_r(s,o)||_r(n,o)||_r(bp,o)||_r(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:_r(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function MR(e){return pt(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let dA=!0;function Zee(e){const t=iM(e),r=e.proxy,n=e.ctx;dA=!1,t.beforeCreate&&IR(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:m,beforeDestroy:y,beforeUnmount:S,destroyed:b,unmounted:w,render:C,renderTracked:x,renderTriggered:A,errorCaptured:D,serverPrefetch:M,expose:I,inheritAttrs:P,components:R,directives:N,filters:O}=t;if(u&&qee(u,n,null),o)for(const W in o){const z=o[W];Et(z)&&(n[W]=z.bind(r))}if(i){const W=i.call(r,r);kr(W)&&(e.data=Du(W))}if(dA=!0,a)for(const W in a){const z=a[W],j=Et(z)?z.bind(r,r):Et(z.get)?z.get.bind(r,r):Jo,ee=!Et(z)&&Et(z.set)?z.set.bind(r):Jo,te=at({get:j,set:ee});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>te.value,set:me=>te.value=me})}if(s)for(const W in s)Wz(s[W],n,r,W);if(l){const W=Et(l)?l.call(r):l;Reflect.ownKeys(W).forEach(z=>{Q0(z,W[z])})}c&&IR(c,e,"c");function B(W,z){pt(z)?z.forEach(j=>W(j.bind(r))):z&&W(z.bind(r))}if(B(Fee,f),B(ol,h),B(Bee,d),B(Vee,v),B(kee,p),B(Oee,m),B(Hee,D),B($ee,x),B(Gee,A),B($z,S),B(Zg,w),B(zee,M),pt(I))if(I.length){const W=e.exposed||(e.exposed={});I.forEach(z=>{Object.defineProperty(W,z,{get:()=>r[z],set:j=>r[z]=j})})}else e.exposed||(e.exposed={});C&&e.render===Jo&&(e.render=C),P!=null&&(e.inheritAttrs=P),R&&(e.components=R),N&&(e.directives=N),M&&Vz(e)}function qee(e,t,r=Jo){pt(e)&&(e=vA(e));for(const n in e){const i=e[n];let a;kr(i)?"default"in i?a=vo(i.from||n,i.default,!0):a=vo(i.from||n):a=vo(i),vt(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function IR(e,t,r){rs(pt(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Wz(e,t,r,n){let i=n.includes(".")?iG(r,n):()=>r[n];if(fn(e)){const a=t[e];Et(a)&&Sr(i,a)}else if(Et(e))Sr(i,e.bind(r));else if(kr(e))if(pt(e))e.forEach(a=>Wz(a,t,r,n));else{const a=Et(e.handler)?e.handler.bind(r):t[e.handler];Et(a)&&Sr(i,a,e)}}function iM(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>K_(l,u,o,!0)),K_(l,t,o)),kr(t)&&a.set(t,l),l}function K_(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&K_(e,a,r,!0),i&&i.forEach(o=>K_(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=jee[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const jee={data:LR,props:PR,emits:PR,methods:jv,computed:jv,beforeCreate:fi,created:fi,beforeMount:fi,mounted:fi,beforeUpdate:fi,updated:fi,beforeDestroy:fi,beforeUnmount:fi,destroyed:fi,unmounted:fi,activated:fi,deactivated:fi,errorCaptured:fi,serverPrefetch:fi,components:jv,directives:jv,watch:Jee,provide:LR,inject:Kee};function LR(e,t){return t?e?function(){return Nn(Et(e)?e.call(this,this):e,Et(t)?t.call(this,this):t)}:t:e}function Kee(e,t){return jv(vA(e),vA(t))}function vA(e){if(pt(e)){const t={};for(let r=0;r1)return r&&Et(t)?t.call(n&&n.proxy):t}}const Xz={},Zz=()=>Object.create(Xz),qz=e=>Object.getPrototypeOf(e)===Xz;function tte(e,t,r,n=!1){const i={},a=Zz();e.propsDefaults=Object.create(null),jz(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:Lz(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function rte(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=dr(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,d]=Kz(f,t,!0);Nn(o,h),d&&s.push(...d)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return kr(e)&&n.set(e,Vh),Vh;if(pt(a))for(let c=0;ce[0]==="_"||e==="$stable",aM=e=>pt(e)?e.map($o):[$o(e)],ite=(e,t,r)=>{if(t._n)return t;const n=ig((...i)=>aM(t(...i)),r);return n._c=!1,n},Qz=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Jz(i))continue;const a=e[i];if(Et(a))t[i]=ite(i,a,n);else if(a!=null){const o=aM(a);t[i]=()=>o}}},eG=(e,t)=>{const r=aM(t);e.slots.default=()=>r},tG=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},ate=(e,t,r)=>{const n=e.slots=Zz();if(e.vnode.shapeFlag&32){const i=t._;i?(tG(n,t,r),r&&cz(n,"_",i,!0)):Qz(t,n)}else t&&eG(e,t)},ote=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=Er;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:tG(i,t,r):(a=!t.$stable,Qz(t,i)),o=t}else t&&(eG(e,t),o={default:1});if(a)for(const s in i)!Jz(s)&&o[s]==null&&delete i[s]},ta=Ste;function ste(e){return lte(e)}function lte(e,t){const r=mS();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=Jo,insertStaticContent:v}=e,p=(H,U,ie,_e=null,fe=null,$=null,Y=void 0,re=null,ue=!!U.dynamicChildren)=>{if(H===U)return;H&&!uv(H,U)&&(_e=se(H),me(H,fe,$,!0),H=null),U.patchFlag===-2&&(ue=!1,U.dynamicChildren=null);const{type:Ce,ref:Re,shapeFlag:J}=U;switch(Ce){case qg:m(H,U,ie,_e);break;case vu:y(H,U,ie,_e);break;case Jw:H==null&&S(U,ie,_e,Y);break;case it:R(H,U,ie,_e,fe,$,Y,re,ue);break;default:J&1?C(H,U,ie,_e,fe,$,Y,re,ue):J&6?N(H,U,ie,_e,fe,$,Y,re,ue):(J&64||J&128)&&Ce.process(H,U,ie,_e,fe,$,Y,re,ue,ye)}Re!=null&&fe&&j_(Re,H&&H.ref,$,U||H,!U)},m=(H,U,ie,_e)=>{if(H==null)n(U.el=s(U.children),ie,_e);else{const fe=U.el=H.el;U.children!==H.children&&u(fe,U.children)}},y=(H,U,ie,_e)=>{H==null?n(U.el=l(U.children||""),ie,_e):U.el=H.el},S=(H,U,ie,_e)=>{[H.el,H.anchor]=v(H.children,U,ie,_e,H.el,H.anchor)},b=({el:H,anchor:U},ie,_e)=>{let fe;for(;H&&H!==U;)fe=h(H),n(H,ie,_e),H=fe;n(U,ie,_e)},w=({el:H,anchor:U})=>{let ie;for(;H&&H!==U;)ie=h(H),i(H),H=ie;i(U)},C=(H,U,ie,_e,fe,$,Y,re,ue)=>{U.type==="svg"?Y="svg":U.type==="math"&&(Y="mathml"),H==null?x(U,ie,_e,fe,$,Y,re,ue):M(H,U,fe,$,Y,re,ue)},x=(H,U,ie,_e,fe,$,Y,re)=>{let ue,Ce;const{props:Re,shapeFlag:J,transition:ce,dirs:Ge}=H;if(ue=H.el=o(H.type,$,Re&&Re.is,Re),J&8?c(ue,H.children):J&16&&D(H.children,ue,null,_e,fe,jw(H,$),Y,re),Ge&&Uu(H,null,_e,"created"),A(ue,H,H.scopeId,Y,_e),Re){for(const It in Re)It!=="value"&&!yp(It)&&a(ue,It,null,Re[It],$,_e);"value"in Re&&a(ue,"value",null,Re.value,$),(Ce=Re.onVnodeBeforeMount)&&Lo(Ce,_e,H)}Ge&&Uu(H,null,_e,"beforeMount");const Qe=ute(fe,ce);Qe&&ce.beforeEnter(ue),n(ue,U,ie),((Ce=Re&&Re.onVnodeMounted)||Qe||Ge)&&ta(()=>{Ce&&Lo(Ce,_e,H),Qe&&ce.enter(ue),Ge&&Uu(H,null,_e,"mounted")},fe)},A=(H,U,ie,_e,fe)=>{if(ie&&d(H,ie),_e)for(let $=0;$<_e.length;$++)d(H,_e[$]);if(fe){let $=fe.subTree;if(U===$||oG($.type)&&($.ssContent===U||$.ssFallback===U)){const Y=fe.vnode;A(H,Y,Y.scopeId,Y.slotScopeIds,fe.parent)}}},D=(H,U,ie,_e,fe,$,Y,re,ue=0)=>{for(let Ce=ue;Ce{const re=U.el=H.el;let{patchFlag:ue,dynamicChildren:Ce,dirs:Re}=U;ue|=H.patchFlag&16;const J=H.props||Er,ce=U.props||Er;let Ge;if(ie&&Wu(ie,!1),(Ge=ce.onVnodeBeforeUpdate)&&Lo(Ge,ie,U,H),Re&&Uu(U,H,ie,"beforeUpdate"),ie&&Wu(ie,!0),(J.innerHTML&&ce.innerHTML==null||J.textContent&&ce.textContent==null)&&c(re,""),Ce?I(H.dynamicChildren,Ce,re,ie,_e,jw(U,fe),$):Y||z(H,U,re,null,ie,_e,jw(U,fe),$,!1),ue>0){if(ue&16)P(re,J,ce,ie,fe);else if(ue&2&&J.class!==ce.class&&a(re,"class",null,ce.class,fe),ue&4&&a(re,"style",J.style,ce.style,fe),ue&8){const Qe=U.dynamicProps;for(let It=0;It{Ge&&Lo(Ge,ie,U,H),Re&&Uu(U,H,ie,"updated")},_e)},I=(H,U,ie,_e,fe,$,Y)=>{for(let re=0;re{if(U!==ie){if(U!==Er)for(const $ in U)!yp($)&&!($ in ie)&&a(H,$,U[$],null,fe,_e);for(const $ in ie){if(yp($))continue;const Y=ie[$],re=U[$];Y!==re&&$!=="value"&&a(H,$,re,Y,fe,_e)}"value"in ie&&a(H,"value",U.value,ie.value,fe)}},R=(H,U,ie,_e,fe,$,Y,re,ue)=>{const Ce=U.el=H?H.el:s(""),Re=U.anchor=H?H.anchor:s("");let{patchFlag:J,dynamicChildren:ce,slotScopeIds:Ge}=U;Ge&&(re=re?re.concat(Ge):Ge),H==null?(n(Ce,ie,_e),n(Re,ie,_e),D(U.children||[],ie,Re,fe,$,Y,re,ue)):J>0&&J&64&&ce&&H.dynamicChildren?(I(H.dynamicChildren,ce,ie,fe,$,Y,re),(U.key!=null||fe&&U===fe.subTree)&&rG(H,U,!0)):z(H,U,ie,Re,fe,$,Y,re,ue)},N=(H,U,ie,_e,fe,$,Y,re,ue)=>{U.slotScopeIds=re,H==null?U.shapeFlag&512?fe.ctx.activate(U,ie,_e,Y,ue):O(U,ie,_e,fe,$,Y,ue):F(H,U,ue)},O=(H,U,ie,_e,fe,$,Y)=>{const re=H.component=Dte(H,_e,fe);if(zz(H)&&(re.ctx.renderer=ye),Mte(re,!1,Y),re.asyncDep){if(fe&&fe.registerDep(re,B,Y),!H.el){const ue=re.subTree=ze(vu);y(null,ue,U,ie)}}else B(re,H,U,ie,fe,$,Y)},F=(H,U,ie)=>{const _e=U.component=H.component;if(yte(H,U,ie))if(_e.asyncDep&&!_e.asyncResolved){W(_e,U,ie);return}else _e.next=U,_e.update();else U.el=H.el,_e.vnode=U},B=(H,U,ie,_e,fe,$,Y)=>{const re=()=>{if(H.isMounted){let{next:J,bu:ce,u:Ge,parent:Qe,vnode:It}=H;{const jr=nG(H);if(jr){J&&(J.el=It.el,W(H,J,Y)),jr.asyncDep.then(()=>{H.isUnmounted||re()});return}}let Ft=J,Mr;Wu(H,!1),J?(J.el=It.el,W(H,J,Y)):J=It,ce&&J0(ce),(Mr=J.props&&J.props.onVnodeBeforeUpdate)&&Lo(Mr,Qe,J,It),Wu(H,!0);const Vr=Kw(H),nn=H.subTree;H.subTree=Vr,p(nn,Vr,f(nn.el),se(nn),H,fe,$),J.el=Vr.el,Ft===null&&_te(H,Vr.el),Ge&&ta(Ge,fe),(Mr=J.props&&J.props.onVnodeUpdated)&&ta(()=>Lo(Mr,Qe,J,It),fe)}else{let J;const{el:ce,props:Ge}=U,{bm:Qe,m:It,parent:Ft,root:Mr,type:Vr}=H,nn=Hh(U);if(Wu(H,!1),Qe&&J0(Qe),!nn&&(J=Ge&&Ge.onVnodeBeforeMount)&&Lo(J,Ft,U),Wu(H,!0),ce&&ke){const jr=()=>{H.subTree=Kw(H),ke(ce,H.subTree,H,fe,null)};nn&&Vr.__asyncHydrate?Vr.__asyncHydrate(ce,H,jr):jr()}else{Mr.ce&&Mr.ce._injectChildStyle(Vr);const jr=H.subTree=Kw(H);p(null,jr,ie,_e,H,fe,$),U.el=jr.el}if(It&&ta(It,fe),!nn&&(J=Ge&&Ge.onVnodeMounted)){const jr=U;ta(()=>Lo(J,Ft,jr),fe)}(U.shapeFlag&256||Ft&&Hh(Ft.vnode)&&Ft.vnode.shapeFlag&256)&&H.a&&ta(H.a,fe),H.isMounted=!0,U=ie=_e=null}};H.scope.on();const ue=H.effect=new gz(re);H.scope.off();const Ce=H.update=ue.run.bind(ue),Re=H.job=ue.runIfDirty.bind(ue);Re.i=H,Re.id=H.uid,ue.scheduler=()=>rM(Re),Wu(H,!0),Ce()},W=(H,U,ie)=>{U.component=H;const _e=H.vnode.props;H.vnode=U,H.next=null,rte(H,U.props,_e,ie),ote(H,U.children,ie),Tu(),AR(H),Au()},z=(H,U,ie,_e,fe,$,Y,re,ue=!1)=>{const Ce=H&&H.children,Re=H?H.shapeFlag:0,J=U.children,{patchFlag:ce,shapeFlag:Ge}=U;if(ce>0){if(ce&128){ee(Ce,J,ie,_e,fe,$,Y,re,ue);return}else if(ce&256){j(Ce,J,ie,_e,fe,$,Y,re,ue);return}}Ge&8?(Re&16&&Ue(Ce,fe,$),J!==Ce&&c(ie,J)):Re&16?Ge&16?ee(Ce,J,ie,_e,fe,$,Y,re,ue):Ue(Ce,fe,$,!0):(Re&8&&c(ie,""),Ge&16&&D(J,ie,_e,fe,$,Y,re,ue))},j=(H,U,ie,_e,fe,$,Y,re,ue)=>{H=H||Vh,U=U||Vh;const Ce=H.length,Re=U.length,J=Math.min(Ce,Re);let ce;for(ce=0;ceRe?Ue(H,fe,$,!0,!1,J):D(U,ie,_e,fe,$,Y,re,ue,J)},ee=(H,U,ie,_e,fe,$,Y,re,ue)=>{let Ce=0;const Re=U.length;let J=H.length-1,ce=Re-1;for(;Ce<=J&&Ce<=ce;){const Ge=H[Ce],Qe=U[Ce]=ue?Bl(U[Ce]):$o(U[Ce]);if(uv(Ge,Qe))p(Ge,Qe,ie,null,fe,$,Y,re,ue);else break;Ce++}for(;Ce<=J&&Ce<=ce;){const Ge=H[J],Qe=U[ce]=ue?Bl(U[ce]):$o(U[ce]);if(uv(Ge,Qe))p(Ge,Qe,ie,null,fe,$,Y,re,ue);else break;J--,ce--}if(Ce>J){if(Ce<=ce){const Ge=ce+1,Qe=Gece)for(;Ce<=J;)me(H[Ce],fe,$,!0),Ce++;else{const Ge=Ce,Qe=Ce,It=new Map;for(Ce=Qe;Ce<=ce;Ce++){const an=U[Ce]=ue?Bl(U[Ce]):$o(U[Ce]);an.key!=null&&It.set(an.key,Ce)}let Ft,Mr=0;const Vr=ce-Qe+1;let nn=!1,jr=0;const _n=new Array(Vr);for(Ce=0;Ce=Vr){me(an,fe,$,!0);continue}let In;if(an.key!=null)In=It.get(an.key);else for(Ft=Qe;Ft<=ce;Ft++)if(_n[Ft-Qe]===0&&uv(an,U[Ft])){In=Ft;break}In===void 0?me(an,fe,$,!0):(_n[In-Qe]=Ce+1,In>=jr?jr=In:nn=!0,p(an,U[In],ie,null,fe,$,Y,re,ue),Mr++)}const Wi=nn?cte(_n):Vh;for(Ft=Wi.length-1,Ce=Vr-1;Ce>=0;Ce--){const an=Qe+Ce,In=U[an],Of=an+1{const{el:$,type:Y,transition:re,children:ue,shapeFlag:Ce}=H;if(Ce&6){te(H.component.subTree,U,ie,_e);return}if(Ce&128){H.suspense.move(U,ie,_e);return}if(Ce&64){Y.move(H,U,ie,ye);return}if(Y===it){n($,U,ie);for(let J=0;Jre.enter($),fe);else{const{leave:J,delayLeave:ce,afterLeave:Ge}=re,Qe=()=>n($,U,ie),It=()=>{J($,()=>{Qe(),Ge&&Ge()})};ce?ce($,Qe,It):It()}else n($,U,ie)},me=(H,U,ie,_e=!1,fe=!1)=>{const{type:$,props:Y,ref:re,children:ue,dynamicChildren:Ce,shapeFlag:Re,patchFlag:J,dirs:ce,cacheIndex:Ge}=H;if(J===-2&&(fe=!1),re!=null&&j_(re,null,ie,H,!0),Ge!=null&&(U.renderCache[Ge]=void 0),Re&256){U.ctx.deactivate(H);return}const Qe=Re&1&&ce,It=!Hh(H);let Ft;if(It&&(Ft=Y&&Y.onVnodeBeforeUnmount)&&Lo(Ft,U,H),Re&6)Oe(H.component,ie,_e);else{if(Re&128){H.suspense.unmount(ie,_e);return}Qe&&Uu(H,null,U,"beforeUnmount"),Re&64?H.type.remove(H,U,ie,ye,_e):Ce&&!Ce.hasOnce&&($!==it||J>0&&J&64)?Ue(Ce,U,ie,!1,!0):($===it&&J&384||!fe&&Re&16)&&Ue(ue,U,ie),_e&&Ae(H)}(It&&(Ft=Y&&Y.onVnodeUnmounted)||Qe)&&ta(()=>{Ft&&Lo(Ft,U,H),Qe&&Uu(H,null,U,"unmounted")},ie)},Ae=H=>{const{type:U,el:ie,anchor:_e,transition:fe}=H;if(U===it){Pe(ie,_e);return}if(U===Jw){w(H);return}const $=()=>{i(ie),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(H.shapeFlag&1&&fe&&!fe.persisted){const{leave:Y,delayLeave:re}=fe,ue=()=>Y(ie,$);re?re(H.el,$,ue):ue()}else $()},Pe=(H,U)=>{let ie;for(;H!==U;)ie=h(H),i(H),H=ie;i(U)},Oe=(H,U,ie)=>{const{bum:_e,scope:fe,job:$,subTree:Y,um:re,m:ue,a:Ce}=H;RR(ue),RR(Ce),_e&&J0(_e),fe.stop(),$&&($.flags|=8,me(Y,H,U,ie)),re&&ta(re,U),ta(()=>{H.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},Ue=(H,U,ie,_e=!1,fe=!1,$=0)=>{for(let Y=$;Y{if(H.shapeFlag&6)return se(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const U=h(H.anchor||H.el),ie=U&&U[Eee];return ie?h(ie):U};let he=!1;const pe=(H,U,ie)=>{H==null?U._vnode&&me(U._vnode,null,null,!0):p(U._vnode||null,H,U,null,null,null,ie),U._vnode=H,he||(he=!0,AR(),Nz(),he=!1)},ye={p,um:me,m:te,r:Ae,mt:O,mc:D,pc:z,pbc:I,n:se,o:e};let xe,ke;return{render:pe,hydrate:xe,createApp:ete(pe,xe)}}function jw({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Wu({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ute(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rG(e,t,r=!1){const n=e.children,i=t.children;if(pt(n)&&pt(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function nG(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:nG(t)}function RR(e){if(e)for(let t=0;tvo(fte);function oM(e,t){return sM(e,null,t)}function Sr(e,t,r){return sM(e,t,r)}function sM(e,t,r=Er){const{immediate:n,deep:i,flush:a,once:o}=r,s=Nn({},r),l=t&&n||!t&&a!=="post";let u;if(sg){if(a==="sync"){const d=hte();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Jo,d.resume=Jo,d.pause=Jo,d}}const c=Hn;s.call=(d,v,p)=>rs(d,c,v,p);let f=!1;a==="post"?s.scheduler=d=>{ta(d,c&&c.suspense)}:a!=="sync"&&(f=!0,s.scheduler=(d,v)=>{v?d():rM(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=Mee(e,t,s);return sg&&(u?u.push(h):l&&h()),h}function dte(e,t,r){const n=this.proxy,i=fn(e)?e.includes(".")?iG(n,e):()=>n[e]:e.bind(n,n);let a;Et(t)?a=t:(a=t.handler,r=t);const o=jg(this),s=sM(i,a.bind(n),r);return o(),s}function iG(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ha(t)}Modifiers`]||e[`${Tf(t)}Modifiers`];function pte(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Er;let i=r;const a=t.startsWith("update:"),o=a&&vte(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>fn(c)?c.trim():c)),o.number&&(i=r.map(W_)));let s,l=n[s=Uw(t)]||n[s=Uw(Ha(t))];!l&&a&&(l=n[s=Uw(Tf(t))]),l&&rs(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,rs(u,e,6,i)}}function aG(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Et(e)){const l=u=>{const c=aG(u,t,!0);c&&(s=!0,Nn(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(kr(e)&&n.set(e,null),null):(pt(a)?a.forEach(l=>o[l]=null):Nn(o,a),kr(e)&&n.set(e,o),o)}function CS(e,t){return!e||!vS(t)?!1:(t=t.slice(2).replace(/Once$/,""),_r(e,t[0].toLowerCase()+t.slice(1))||_r(e,Tf(t))||_r(e,t))}function Kw(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:f,data:h,setupState:d,ctx:v,inheritAttrs:p}=e,m=q_(e);let y,S;try{if(r.shapeFlag&4){const w=i||n,C=w;y=$o(u.call(C,w,c,f,d,h,v)),S=s}else{const w=t;y=$o(w.length>1?w(f,{attrs:s,slots:o,emit:l}):w(f,null)),S=t.props?s:gte(s)}}catch(w){wp.length=0,wS(w,e,1),y=ze(vu)}let b=y;if(S&&p!==!1){const w=Object.keys(S),{shapeFlag:C}=b;w.length&&C&7&&(a&&w.some(Y2)&&(S=mte(S,a)),b=td(b,S,!1,!0))}return r.dirs&&(b=td(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(r.dirs):r.dirs),r.transition&&nM(b,r.transition),y=b,q_(m),y}const gte=e=>{let t;for(const r in e)(r==="class"||r==="style"||vS(r))&&((t||(t={}))[r]=e[r]);return t},mte=(e,t)=>{const r={};for(const n in e)(!Y2(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function yte(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?kR(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function Ste(e,t){t&&t.pendingBranch?pt(e)?t.effects.push(...e):t.effects.push(e):Pee(e)}const it=Symbol.for("v-fgt"),qg=Symbol.for("v-txt"),vu=Symbol.for("v-cmt"),Jw=Symbol.for("v-stc"),wp=[];let aa=null;function oe(e=!1){wp.push(aa=e?null:[])}function bte(){wp.pop(),aa=wp[wp.length-1]||null}let ag=1;function OR(e,t=!1){ag+=e,e<0&&aa&&t&&(aa.hasOnce=!0)}function sG(e){return e.dynamicChildren=ag>0?aa||Vh:null,bte(),ag>0&&aa&&aa.push(e),e}function ve(e,t,r,n,i,a){return sG(X(e,t,r,n,i,a,!0))}function er(e,t,r,n,i){return sG(ze(e,t,r,n,i,!0))}function og(e){return e?e.__v_isVNode===!0:!1}function uv(e,t){return e.type===t.type&&e.key===t.key}const lG=({key:e})=>e??null,e_=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?fn(e)||vt(e)||Et(e)?{i:kn,r:e,k:t,f:!!r}:e:null);function X(e,t=null,r=null,n=0,i=null,a=e===it?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lG(t),ref:t&&e_(t),scopeId:Bz,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:kn};return s?(lM(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=fn(r)?8:16),ag>0&&!o&&aa&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&aa.push(l),l}const ze=wte;function wte(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===Hz)&&(e=vu),og(e)){const s=td(e,t,!0);return r&&lM(s,r),ag>0&&!a&&aa&&(s.shapeFlag&6?aa[aa.indexOf(e)]=s:aa.push(s)),s.patchFlag=-2,s}if(Rte(e)&&(e=e.__vccOpts),t){t=xte(t);let{class:s,style:l}=t;s&&!fn(s)&&(t.class=Tt(s)),kr(l)&&(tM(l)&&!pt(l)&&(l=Nn({},l)),t.style=kc(l))}const o=fn(e)?1:oG(e)?128:Ree(e)?64:kr(e)?4:Et(e)?2:0;return X(e,t,r,n,i,o,a,!0)}function xte(e){return e?tM(e)||qz(e)?Nn({},e):e:null}function td(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?Cte(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&lG(u),ref:t&&t.ref?r&&a?pt(a)?a.concat(e_(t)):[a,e_(t)]:e_(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&td(e.ssContent),ssFallback:e.ssFallback&&td(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&nM(c,l.clone(c)),c}function Xt(e=" ",t=0){return ze(qg,null,e,t)}function Ut(e="",t=!1){return t?(oe(),er(vu,null,e)):ze(vu,null,e)}function $o(e){return e==null||typeof e=="boolean"?ze(vu):pt(e)?ze(it,null,e.slice()):og(e)?Bl(e):ze(qg,null,String(e))}function Bl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:td(e)}function lM(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(pt(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),lM(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!qz(t)?t._ctx=kn:i===3&&kn&&(kn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Et(t)?(t={default:t,_ctx:kn},r=32):(t=String(t),n&64?(r=16,t=[Xt(t)]):r=8);e.children=t,e.shapeFlag|=r}function Cte(...e){const t={};for(let r=0;rHn||kn;let J_,gA;{const e=mS(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};J_=t("__VUE_INSTANCE_SETTERS__",r=>Hn=r),gA=t("__VUE_SSR_SETTERS__",r=>sg=r)}const jg=e=>{const t=Hn;return J_(e),e.scope.on(),()=>{e.scope.off(),J_(t)}},NR=()=>{Hn&&Hn.scope.off(),J_(null)};function uG(e){return e.vnode.shapeFlag&4}let sg=!1;function Mte(e,t=!1,r=!1){t&&gA(t);const{props:n,children:i}=e.vnode,a=uG(e);tte(e,n,a,t),ate(e,i,r);const o=a?Ite(e,t):void 0;return t&&gA(!1),o}function Ite(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xee);const{setup:n}=r;if(n){Tu();const i=e.setupContext=n.length>1?Pte(e):null,a=jg(e),o=Xg(n,e,0,[e.props,i]),s=sz(o);if(Au(),a(),(s||e.sp)&&!Hh(e)&&Vz(e),s){if(o.then(NR,NR),t)return o.then(l=>{FR(e,l,t)}).catch(l=>{wS(l,e,0)});e.asyncDep=o}else FR(e,o,t)}else cG(e,t)}function FR(e,t,r){Et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:kr(t)&&(e.setupState=Ez(t)),cG(e,r)}let BR;function cG(e,t,r){const n=e.type;if(!e.render){if(!t&&BR&&!n.render){const i=n.template||iM(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Nn(Nn({isCustomElement:a,delimiters:s},o),l);n.render=BR(i,u)}}e.render=n.render||Jo}{const i=jg(e);Tu();try{Zee(e)}finally{Au(),i()}}}const Lte={get(e,t){return ti(e,"get",""),e[t]}};function Pte(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Lte),slots:e.slots,emit:e.emit,expose:t}}function TS(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ez(gee(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in bp)return bp[r](e)},has(t,r){return r in t||r in bp}})):e.proxy}function Ete(e,t=!0){return Et(e)?e.displayName||e.name:e.name||t&&e.__name}function Rte(e){return Et(e)&&"__vccOpts"in e}const at=(e,t)=>Aee(e,t,sg);function Wo(e,t,r){const n=arguments.length;return n===2?kr(t)&&!pt(t)?og(t)?ze(e,null,[t]):ze(e,t):ze(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&og(r)&&(r=[r]),ze(e,t,r))}const kte="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let mA;const VR=typeof window<"u"&&window.trustedTypes;if(VR)try{mA=VR.createPolicy("vue",{createHTML:e=>e})}catch{}const fG=mA?e=>mA.createHTML(e):e=>e,Ote="http://www.w3.org/2000/svg",Nte="http://www.w3.org/1998/Math/MathML",Is=typeof document<"u"?document:null,zR=Is&&Is.createElement("template"),Fte={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?Is.createElementNS(Ote,e):t==="mathml"?Is.createElementNS(Nte,e):r?Is.createElement(e,{is:r}):Is.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Is.createTextNode(e),createComment:e=>Is.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Is.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{zR.innerHTML=fG(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=zR.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Bte=Symbol("_vtc");function Vte(e,t,r){const n=e[Bte];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const GR=Symbol("_vod"),zte=Symbol("_vsh"),Gte=Symbol(""),$te=/(^|;)\s*display\s*:/;function Hte(e,t,r){const n=e.style,i=fn(r);let a=!1;if(r&&!i){if(t)if(fn(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&t_(n,s,"")}else for(const o in t)r[o]==null&&t_(n,o,"");for(const o in r)o==="display"&&(a=!0),t_(n,o,r[o])}else if(i){if(t!==r){const o=n[Gte];o&&(r+=";"+o),n.cssText=r,a=$te.test(r)}}else t&&e.removeAttribute("style");GR in e&&(e[GR]=a?n.display:"",e[zte]&&(n.display="none"))}const $R=/\s*!important$/;function t_(e,t,r){if(pt(r))r.forEach(n=>t_(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Ute(e,t);$R.test(r)?e.setProperty(Tf(n),r.replace($R,""),"important"):e[n]=r}}const HR=["Webkit","Moz","ms"],Qw={};function Ute(e,t){const r=Qw[t];if(r)return r;let n=Ha(t);if(n!=="filter"&&n in e)return Qw[t]=n;n=gS(n);for(let i=0;iex||(Zte.then(()=>ex=0),ex=Date.now());function jte(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rs(Kte(n,r.value),t,5,[n])};return r.value=e,r.attached=qte(),r}function Kte(e,t){if(pt(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const qR=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jte=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?Vte(e,n,o):t==="style"?Hte(e,r,n):vS(t)?Y2(t)||Yte(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Qte(e,t,n,o))?(YR(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&WR(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fn(n))?YR(e,Ha(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),WR(e,t,n,o))};function Qte(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&qR(t)&&Et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return qR(t)&&fn(r)?!1:t in e}const rd=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pt(t)?r=>J0(t,r):t};function ere(e){e.target.composing=!0}function jR(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $s=Symbol("_assign"),oa={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[$s]=rd(i);const a=n||i.props&&i.props.type==="number";Ul(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=W_(s)),e[$s](s)}),r&&Ul(e,"change",()=>{e.value=e.value.trim()}),t||(Ul(e,"compositionstart",ere),Ul(e,"compositionend",jR),Ul(e,"change",jR))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[$s]=rd(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?W_(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},Ea={deep:!0,created(e,t,r){e[$s]=rd(r),Ul(e,"change",()=>{const n=e._modelValue,i=lg(e),a=e.checked,o=e[$s];if(pt(n)){const s=q2(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(wd(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(hG(e,a))})},mounted:KR,beforeUpdate(e,t,r){e[$s]=rd(r),KR(e,t,r)}};function KR(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(pt(t))i=q2(t,n.props.value)>-1;else if(wd(t))i=t.has(n.props.value);else{if(t===r)return;i=Yg(t,hG(e,!0))}e.checked!==i&&(e.checked=i)}const po={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=wd(t);Ul(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?W_(lg(o)):lg(o));e[$s](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,Af(()=>{e._assigning=!1})}),e[$s]=rd(n)},mounted(e,{value:t}){JR(e,t)},beforeUpdate(e,t,r){e[$s]=rd(r)},updated(e,{value:t}){e._assigning||JR(e,t)}};function JR(e,t){const r=e.multiple,n=pt(t);if(!(r&&!n&&!wd(t))){for(let i=0,a=e.options.length;iString(u)===String(s)):o.selected=q2(t,s)>-1}else o.selected=t.has(s);else if(Yg(lg(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function lg(e){return"_value"in e?e._value:e.value}function hG(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const tre=["ctrl","shift","alt","meta"],rre={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>tre.some(r=>e[`${r}Key`]&&!t.includes(r))},uM=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o{const t=ire().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=sre(n);if(!i)return;const a=t._component;!Et(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,ore(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function ore(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sre(e){return fn(e)?document.querySelector(e):e}const Ty=0;var So=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e))(So||{}),or=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.Destination="destination",e))(or||{}),Wl=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Wl||{}),ug=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(ug||{}),nd=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(nd||{}),hf=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(hf||{}),Fi=(e=>(e.HOST="host",e.CHAINS="chains",e.RULE="rule",e.TYPE="type",e.CONNECT_TIME="connectTime",e.DOWNLOAD="download",e.DOWNLOAD_SPEED="downloadSpeed",e.UPLOAD="upload",e.UPLOAD_SPEED="uploadSpeed",e.SOURCE_IP="sourceIP",e))(Fi||{}),Oc=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Oc||{}),Nc=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(Nc||{}),Pr=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e))(Pr||{});function df(e){return pz()?(jQ(e),!0):!1}function Mu(e){return typeof e=="function"?e():q(e)}const jc=typeof window<"u"&&typeof document<"u",lre=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,ure=e=>e!=null,cre=Object.prototype.toString,fre=e=>cre.call(e)==="[object Object]",dG=()=>{};function hre(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}const vG=e=>e();function dre(e=vG){const t=Ye(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:SS(t),pause:r,resume:n,eventFilter:i}}function pG(e){return ns()}function gG(...e){if(e.length!==1)return Cee(...e);const t=e[0];return typeof t=="function"?SS(See(()=>({get:t,set:dG}))):Ye(t)}function vre(e,t,r={}){const{eventFilter:n=vG,...i}=r;return Sr(e,hre(n,t),i)}function pre(e,t,r={}){const{eventFilter:n,...i}=r,{eventFilter:a,pause:o,resume:s,isActive:l}=dre(n);return{stop:vre(e,t,{...i,eventFilter:a}),pause:o,resume:s,isActive:l}}function gre(e,t){pG()&&$z(e,t)}function cM(e,t=!0,r){pG()?ol(e,r):t?e():Af(e)}function mre(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let a=null;const o=Ye(!1);function s(){a&&(clearInterval(a),a=null)}function l(){o.value=!1,s()}function u(){const c=Mu(t);c<=0||(o.value=!0,i&&e(),s(),o.value&&(a=setInterval(e,c)))}if(n&&jc&&u(),vt(t)||typeof t=="function"){const c=Sr(t,()=>{o.value&&jc&&u()});df(c)}return df(l),{isActive:o,pause:l,resume:u}}const pu=jc?window:void 0,yre=jc?window.document:void 0;function Xl(e){var t;const r=Mu(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Q_(...e){let t,r,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([r,n,i]=e,t=pu):[t,r,n,i]=e,!t)return dG;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,h,d)=>(c.addEventListener(f,h,d),()=>c.removeEventListener(f,h,d)),l=Sr(()=>[Xl(t),Mu(i)],([c,f])=>{if(o(),!c)return;const h=fre(f)?{...f}:f;a.push(...r.flatMap(d=>n.map(v=>s(c,d,v,h))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return df(u),u}function _re(){const e=Ye(!1),t=ns();return t&&ol(()=>{e.value=!0},t),e}function fM(e){const t=_re();return at(()=>(t.value,!!e()))}function Sre(e,t,r={}){const{window:n=pu,...i}=r;let a;const o=fM(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const h=Mu(e),d=(Array.isArray(h)?h:[h]).map(Xl).filter(ure);return new Set(d)}),u=Sr(()=>l.value,h=>{s(),o.value&&h.size&&(a=new MutationObserver(t),h.forEach(d=>a.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>a==null?void 0:a.takeRecords(),f=()=>{u(),s()};return df(f),{isSupported:o,stop:f,takeRecords:c}}function bre(e,t={}){const{window:r=pu}=t,n=fM(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=Ye(!1),o=u=>{a.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=oM(()=>{n.value&&(s(),i=r.matchMedia(Mu(e)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),a.value=i.matches)});return df(()=>{l(),s(),i=void 0}),a}const Ay=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dy="__vueuse_ssr_handlers__",wre=xre();function xre(){return Dy in Ay||(Ay[Dy]=Ay[Dy]||{}),Ay[Dy]}function Cre(e,t){return wre[e]||t}function Tre(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Are={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ek="vueuse-storage";function Or(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=pu,eventFilter:h,onError:d=I=>{console.error(I)},initOnMounted:v}=n,p=(c?bS:Ye)(typeof t=="function"?t():t);if(!r)try{r=Cre("getDefaultStorage",()=>{var I;return(I=pu)==null?void 0:I.localStorage})()}catch(I){d(I)}if(!r)return p;const m=Mu(t),y=Tre(m),S=(i=n.serializer)!=null?i:Are[y],{pause:b,resume:w}=pre(p,()=>x(p.value),{flush:a,deep:o,eventFilter:h});f&&s&&cM(()=>{r instanceof Storage?Q_(f,"storage",D):Q_(f,ek,M),v&&D()}),v||D();function C(I,P){if(f){const R={key:e,oldValue:I,newValue:P,storageArea:r};f.dispatchEvent(r instanceof Storage?new StorageEvent("storage",R):new CustomEvent(ek,{detail:R}))}}function x(I){try{const P=r.getItem(e);if(I==null)C(P,null),r.removeItem(e);else{const R=S.write(I);P!==R&&(r.setItem(e,R),C(P,R))}}catch(P){d(P)}}function A(I){const P=I?I.newValue:r.getItem(e);if(P==null)return l&&m!=null&&r.setItem(e,S.write(m)),m;if(!I&&u){const R=S.read(P);return typeof u=="function"?u(R,m):y==="object"&&!Array.isArray(R)?{...m,...R}:R}else return typeof P!="string"?P:S.read(P)}function D(I){if(!(I&&I.storageArea!==r)){if(I&&I.key==null){p.value=m;return}if(!(I&&I.key!==e)){b();try{(I==null?void 0:I.newValue)!==S.write(p.value)&&(p.value=A(I))}catch(P){d(P)}finally{I?Af(w):w()}}}}function M(I){D(I.detail)}return p}function Dre(e,t,r={}){const{window:n=pu,...i}=r;let a;const o=fM(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=at(()=>{const f=Mu(e);return Array.isArray(f)?f.map(h=>Xl(h)):[Xl(f)]}),u=Sr(l,f=>{if(s(),o.value&&n){a=new ResizeObserver(t);for(const h of f)h&&a.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return df(c),{isSupported:o,stop:c}}function Mre(e,t={width:0,height:0},r={}){const{window:n=pu,box:i="content-box"}=r,a=at(()=>{var f,h;return(h=(f=Xl(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),o=Ye(t.width),s=Ye(t.height),{stop:l}=Dre(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(n&&a.value){const d=Xl(e);if(d){const v=d.getBoundingClientRect();o.value=v.width,s.value=v.height}}else if(h){const d=Array.isArray(h)?h:[h];o.value=d.reduce((v,{inlineSize:p})=>v+p,0),s.value=d.reduce((v,{blockSize:p})=>v+p,0)}else o.value=f.contentRect.width,s.value=f.contentRect.height},r);cM(()=>{const f=Xl(e);f&&(o.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Sr(()=>Xl(e),f=>{o.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:o,height:s,stop:c}}function Ire(e=null,t={}){var r,n,i;const{document:a=yre,restoreOnUnmount:o=f=>f}=t,s=(r=a==null?void 0:a.title)!=null?r:"",l=gG((n=e??(a==null?void 0:a.title))!=null?n:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const h=t.titleTemplate||"%s";return typeof h=="function"?h(f):Mu(h).replace(/%s/g,f)}return Sr(l,(f,h)=>{f!==h&&a&&(a.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&a&&!u&&Sre((i=a.head)==null?void 0:i.querySelector("title"),()=>{a&&a.title!==l.value&&(l.value=c(a.title))},{childList:!0}),gre(()=>{if(o){const f=o(s,l.value||"");f!=null&&a&&(a.title=f)}}),l}const tk="ping";function tx(e){return e===!0?{}:e}function Lre(e,t={}){const{onConnected:r,onDisconnected:n,onError:i,onMessage:a,immediate:o=!0,autoClose:s=!0,protocols:l=[]}=t,u=Ye(null),c=Ye("CLOSED"),f=Ye(),h=gG(e);let d,v,p=!1,m=0,y=[],S;const b=()=>{if(y.length&&f.value&&c.value==="OPEN"){for(const M of y)f.value.send(M);y=[]}},w=()=>{clearTimeout(S),S=void 0},C=(M=1e3,I)=>{!jc||!f.value||(p=!0,w(),d==null||d(),f.value.close(M,I),f.value=void 0)},x=(M,I=!0)=>!f.value||c.value!=="OPEN"?(I&&y.push(M),!1):(b(),f.value.send(M),!0),A=()=>{if(p||typeof h.value>"u")return;const M=new WebSocket(h.value,l);f.value=M,c.value="CONNECTING",M.onopen=()=>{c.value="OPEN",m=0,r==null||r(M),v==null||v(),b()},M.onclose=I=>{if(c.value="CLOSED",n==null||n(M,I),!p&&t.autoReconnect&&(f.value==null||M===f.value)){const{retries:P=-1,delay:R=1e3,onFailed:N}=tx(t.autoReconnect);typeof P=="number"&&(P<0||m{i==null||i(M,I)},M.onmessage=I=>{if(t.heartbeat){w();const{message:P=tk,responseMessage:R=P}=tx(t.heartbeat);if(I.data===R)return}u.value=I.data,a==null||a(M,I)}};if(t.heartbeat){const{message:M=tk,interval:I=1e3,pongTimeout:P=1e3}=tx(t.heartbeat),{pause:R,resume:N}=mre(()=>{x(M,!1),S==null&&(S=setTimeout(()=>{C(),p=!1},P))},I,{immediate:!1});d=R,v=N}s&&(jc&&Q_("beforeunload",()=>C()),df(C));const D=()=>{!jc&&!lre||(C(),p=!1,m=0,A())};return o&&D(),Sr(h,D),{data:u,status:c,close:C,send:x,open:D,ws:f}}function Pre(e={}){const{window:t=pu,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0,type:o="inner"}=e,s=Ye(r),l=Ye(n),u=()=>{t&&(o==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):a?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),cM(u),Q_("resize",u,{passive:!0}),i){const c=bre("(orientation: portrait)");Sr(c,()=>u())}return{width:s,height:l}}const r_=Or("config/theme","default"),sa=Or("config/language",So.EN_US),Kc=Or("config/is-sidebar-collapsed",window.screen.width>720),n_=Or("config/show-global-proxy",!0),e1=Or("config/collapse-group-map",{}),xp=Or("config/two-columns",!0),Cp=Or("config/speedtest-url","http://www.gstatic.com/generate_204"),Tp=Or("config/speedtest-timeout",5e3),i_=Or("config/proxy-sort-type",Wl.DEFAULT),a_=Or("config/automatic-disconnection",!0),Jc=Or("config/two-column-node-for-mobile",!0),Ap=Or("config/truncate-proxy-name",!0),Dp=Or("config/proxy-preview-type",ug.AUTO),o_=Or("config/hide-unavailable-proxies",!1),Zl=Or("config/low-latency",300),Ns=Or("config/medium-latency",800),Fc=Or("config/use-connecticon-card",!1),Mc=Or("config/connection-table-columns",[or.Close,or.Host,or.Type,or.Rule,or.Chains,or.Download,or.Upload,or.DlSpeed,or.UlSpeed,or.ConnectTime]),s_=Or("config/compact-connection-card",!0),Ls=Or("config/source-ip-label-map",{});var Kv={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var Ere=Kv.exports,rk;function Rre(){return rk||(rk=1,function(e,t){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,d=4,v=1,p=2,m=1,y=2,S=4,b=8,w=16,C=32,x=64,A=128,D=256,M=512,I=30,P="...",R=800,N=16,O=1,F=2,B=3,W=1/0,z=9007199254740991,j=17976931348623157e292,ee=NaN,te=4294967295,me=te-1,Ae=te>>>1,Pe=[["ary",A],["bind",m],["bindKey",y],["curry",b],["curryRight",w],["flip",M],["partial",C],["partialRight",x],["rearg",D]],Oe="[object Arguments]",Ue="[object Array]",se="[object AsyncFunction]",he="[object Boolean]",pe="[object Date]",ye="[object DOMException]",xe="[object Error]",ke="[object Function]",H="[object GeneratorFunction]",U="[object Map]",ie="[object Number]",_e="[object Null]",fe="[object Object]",$="[object Promise]",Y="[object Proxy]",re="[object RegExp]",ue="[object Set]",Ce="[object String]",Re="[object Symbol]",J="[object Undefined]",ce="[object WeakMap]",Ge="[object WeakSet]",Qe="[object ArrayBuffer]",It="[object DataView]",Ft="[object Float32Array]",Mr="[object Float64Array]",Vr="[object Int8Array]",nn="[object Int16Array]",jr="[object Int32Array]",_n="[object Uint8Array]",Wi="[object Uint8ClampedArray]",an="[object Uint16Array]",In="[object Uint32Array]",Of=/\b__p \+= '';/g,Nf=/\b(__p \+=) '' \+/g,Ff=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cm=/&(?:amp|lt|gt|quot|#39);/g,fl=/[&<>"']/g,Lb=RegExp(Cm.source),Pb=RegExp(fl.source),vn=/<%-([\s\S]+?)%>/g,hl=/<%([\s\S]+?)%>/g,Tm=/<%=([\s\S]+?)%>/g,Am=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hd=/^\w*$/,Dm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bf=/[\\^$.*+?()[\]{}|]/g,Eb=RegExp(Bf.source),Ii=/^\s+/,Vf=/\s/,Mm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Im=/\{\n\/\* \[wrapped with (.+)\] \*/,Lm=/,? & /,Pm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qa=/[()=,{}\[\]\/\s]/,Em=/\\(\\)?/g,Rm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ud=/\w*$/,km=/^[-+]0x[0-9a-f]+$/i,Rb=/^0b[01]+$/i,lt=/^\[object .+?Constructor\]$/,ne=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,br=/($^)/,Ln=/['\n\r\u2028\u2029\\]/g,Kr="\\ud800-\\udfff",Xn="\\u0300-\\u036f",pa="\\ufe20-\\ufe2f",ku="\\u20d0-\\u20ff",Pn=Xn+pa+ku,Wd="\\u2700-\\u27bf",Yd="a-z\\xdf-\\xf6\\xf8-\\xff",TY="\\xac\\xb1\\xd7\\xf7",AY="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",DY="\\u2000-\\u206f",MY=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",KL="A-Z\\xc0-\\xd6\\xd8-\\xde",JL="\\ufe0e\\ufe0f",QL=TY+AY+DY+MY,kb="['’]",IY="["+Kr+"]",eP="["+QL+"]",Om="["+Pn+"]",tP="\\d+",LY="["+Wd+"]",rP="["+Yd+"]",nP="[^"+Kr+QL+tP+Wd+Yd+KL+"]",Ob="\\ud83c[\\udffb-\\udfff]",PY="(?:"+Om+"|"+Ob+")",iP="[^"+Kr+"]",Nb="(?:\\ud83c[\\udde6-\\uddff]){2}",Fb="[\\ud800-\\udbff][\\udc00-\\udfff]",zf="["+KL+"]",aP="\\u200d",oP="(?:"+rP+"|"+nP+")",EY="(?:"+zf+"|"+nP+")",sP="(?:"+kb+"(?:d|ll|m|re|s|t|ve))?",lP="(?:"+kb+"(?:D|LL|M|RE|S|T|VE))?",uP=PY+"?",cP="["+JL+"]?",RY="(?:"+aP+"(?:"+[iP,Nb,Fb].join("|")+")"+cP+uP+")*",kY="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OY="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",fP=cP+uP+RY,NY="(?:"+[LY,Nb,Fb].join("|")+")"+fP,FY="(?:"+[iP+Om+"?",Om,Nb,Fb,IY].join("|")+")",BY=RegExp(kb,"g"),VY=RegExp(Om,"g"),Bb=RegExp(Ob+"(?="+Ob+")|"+FY+fP,"g"),zY=RegExp([zf+"?"+rP+"+"+sP+"(?="+[eP,zf,"$"].join("|")+")",EY+"+"+lP+"(?="+[eP,zf+oP,"$"].join("|")+")",zf+"?"+oP+"+"+sP,zf+"+"+lP,OY,kY,tP,NY].join("|"),"g"),GY=RegExp("["+aP+Kr+Pn+JL+"]"),$Y=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,HY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],UY=-1,zr={};zr[Ft]=zr[Mr]=zr[Vr]=zr[nn]=zr[jr]=zr[_n]=zr[Wi]=zr[an]=zr[In]=!0,zr[Oe]=zr[Ue]=zr[Qe]=zr[he]=zr[It]=zr[pe]=zr[xe]=zr[ke]=zr[U]=zr[ie]=zr[fe]=zr[re]=zr[ue]=zr[Ce]=zr[ce]=!1;var Nr={};Nr[Oe]=Nr[Ue]=Nr[Qe]=Nr[It]=Nr[he]=Nr[pe]=Nr[Ft]=Nr[Mr]=Nr[Vr]=Nr[nn]=Nr[jr]=Nr[U]=Nr[ie]=Nr[fe]=Nr[re]=Nr[ue]=Nr[Ce]=Nr[Re]=Nr[_n]=Nr[Wi]=Nr[an]=Nr[In]=!0,Nr[xe]=Nr[ke]=Nr[ce]=!1;var WY={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},YY={"&":"&","<":"<",">":">",'"':""","'":"'"},XY={"&":"&","<":"<",">":">",""":'"',"'":"'"},ZY={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qY=parseFloat,jY=parseInt,hP=typeof by=="object"&&by&&by.Object===Object&&by,KY=typeof self=="object"&&self&&self.Object===Object&&self,Bn=hP||KY||Function("return this")(),Vb=t&&!t.nodeType&&t,Ou=Vb&&!0&&e&&!e.nodeType&&e,dP=Ou&&Ou.exports===Vb,zb=dP&&hP.process,ga=function(){try{var ae=Ou&&Ou.require&&Ou.require("util").types;return ae||zb&&zb.binding&&zb.binding("util")}catch{}}(),vP=ga&&ga.isArrayBuffer,pP=ga&&ga.isDate,gP=ga&&ga.isMap,mP=ga&&ga.isRegExp,yP=ga&&ga.isSet,_P=ga&&ga.isTypedArray;function Yi(ae,Te,ge){switch(ge.length){case 0:return ae.call(Te);case 1:return ae.call(Te,ge[0]);case 2:return ae.call(Te,ge[0],ge[1]);case 3:return ae.call(Te,ge[0],ge[1],ge[2])}return ae.apply(Te,ge)}function JY(ae,Te,ge,je){for(var Lt=-1,fr=ae==null?0:ae.length;++Lt-1}function Gb(ae,Te,ge){for(var je=-1,Lt=ae==null?0:ae.length;++je-1;);return ge}function DP(ae,Te){for(var ge=ae.length;ge--&&Gf(Te,ae[ge],0)>-1;);return ge}function sX(ae,Te){for(var ge=ae.length,je=0;ge--;)ae[ge]===Te&&++je;return je}var lX=Wb(WY),uX=Wb(YY);function cX(ae){return"\\"+ZY[ae]}function fX(ae,Te){return ae==null?r:ae[Te]}function $f(ae){return GY.test(ae)}function hX(ae){return $Y.test(ae)}function dX(ae){for(var Te,ge=[];!(Te=ae.next()).done;)ge.push(Te.value);return ge}function qb(ae){var Te=-1,ge=Array(ae.size);return ae.forEach(function(je,Lt){ge[++Te]=[Lt,je]}),ge}function MP(ae,Te){return function(ge){return ae(Te(ge))}}function pl(ae,Te){for(var ge=-1,je=ae.length,Lt=0,fr=[];++ge-1}function eZ(g,_){var T=this.__data__,L=Qm(T,g);return L<0?(++this.size,T.push([g,_])):T[L][1]=_,this}ds.prototype.clear=jX,ds.prototype.delete=KX,ds.prototype.get=JX,ds.prototype.has=QX,ds.prototype.set=eZ;function vs(g){var _=-1,T=g==null?0:g.length;for(this.clear();++_=_?g:_)),g}function Sa(g,_,T,L,k,G){var Z,K=_&f,le=_&h,De=_&d;if(T&&(Z=k?T(g,L,k,G):T(g)),Z!==r)return Z;if(!Xr(g))return g;var Me=Rt(g);if(Me){if(Z=iq(g),!K)return Li(g,Z)}else{var Le=qn(g),We=Le==ke||Le==H;if(bl(g))return cE(g,K);if(Le==fe||Le==Oe||We&&!k){if(Z=le||We?{}:IE(g),!K)return le?XZ(g,gZ(Z,g)):YZ(g,zP(Z,g))}else{if(!Nr[Le])return k?g:{};Z=aq(g,Le,K)}}G||(G=new Ka);var nt=G.get(g);if(nt)return nt;G.set(g,Z),iR(g)?g.forEach(function(mt){Z.add(Sa(mt,_,T,mt,g,G))}):rR(g)&&g.forEach(function(mt,jt){Z.set(jt,Sa(mt,_,T,jt,g,G))});var gt=De?le?bw:Sw:le?Ei:En,Gt=Me?r:gt(g);return ma(Gt||g,function(mt,jt){Gt&&(jt=mt,mt=g[jt]),Qd(Z,jt,Sa(mt,_,T,jt,g,G))}),Z}function mZ(g){var _=En(g);return function(T){return GP(T,g,_)}}function GP(g,_,T){var L=T.length;if(g==null)return!L;for(g=Lr(g);L--;){var k=T[L],G=_[k],Z=g[k];if(Z===r&&!(k in g)||!G(Z))return!1}return!0}function $P(g,_,T){if(typeof g!="function")throw new ya(o);return ov(function(){g.apply(r,T)},_)}function ev(g,_,T,L){var k=-1,G=Nm,Z=!0,K=g.length,le=[],De=_.length;if(!K)return le;T&&(_=Hr(_,Xi(T))),L?(G=Gb,Z=!1):_.length>=i&&(G=Xd,Z=!1,_=new Bu(_));e:for(;++kk?0:k+T),L=L===r||L>k?k:Bt(L),L<0&&(L+=k),L=T>L?0:oR(L);T0&&T(K)?_>1?Vn(K,_-1,T,L,k):vl(k,K):L||(k[k.length]=K)}return k}var rw=gE(),WP=gE(!0);function Do(g,_){return g&&rw(g,_,En)}function nw(g,_){return g&&WP(g,_,En)}function ty(g,_){return dl(_,function(T){return _s(g[T])})}function zu(g,_){_=_l(_,g);for(var T=0,L=_.length;g!=null&&T_}function SZ(g,_){return g!=null&&wr.call(g,_)}function bZ(g,_){return g!=null&&_ in Lr(g)}function wZ(g,_,T){return g>=Zn(_,T)&&g=120&&Me.length>=120)?new Bu(Z&&Me):r}Me=g[0];var Le=-1,We=K[0];e:for(;++Le-1;)K!==g&&Ym.call(K,le,1),Ym.call(g,le,1);return g}function rE(g,_){for(var T=g?_.length:0,L=T-1;T--;){var k=_[T];if(T==L||k!==G){var G=k;ys(k)?Ym.call(g,k,1):dw(g,k)}}return g}function cw(g,_){return g+qm(NP()*(_-g+1))}function OZ(g,_,T,L){for(var k=-1,G=bn(Zm((_-g)/(T||1)),0),Z=ge(G);G--;)Z[L?G:++k]=g,g+=T;return Z}function fw(g,_){var T="";if(!g||_<1||_>z)return T;do _%2&&(T+=g),_=qm(_/2),_&&(g+=g);while(_);return T}function Ht(g,_){return Mw(EE(g,_,Ri),g+"")}function NZ(g){return VP(Qf(g))}function FZ(g,_){var T=Qf(g);return hy(T,Vu(_,0,T.length))}function nv(g,_,T,L){if(!Xr(g))return g;_=_l(_,g);for(var k=-1,G=_.length,Z=G-1,K=g;K!=null&&++kk?0:k+_),T=T>k?k:T,T<0&&(T+=k),k=_>T?0:T-_>>>0,_>>>=0;for(var G=ge(k);++L>>1,Z=g[G];Z!==null&&!qi(Z)&&(T?Z<=_:Z<_)?L=G+1:k=G}return k}return hw(g,_,Ri,T)}function hw(g,_,T,L){var k=0,G=g==null?0:g.length;if(G===0)return 0;_=T(_);for(var Z=_!==_,K=_===null,le=qi(_),De=_===r;k=i){var De=_?null:KZ(g);if(De)return Bm(De);Z=!1,k=Xd,le=new Bu}else le=_?[]:K;e:for(;++L=L?g:ba(g,_,T)}var uE=MX||function(g){return Bn.clearTimeout(g)};function cE(g,_){if(_)return g.slice();var T=g.length,L=PP?PP(T):new g.constructor(T);return g.copy(L),L}function mw(g){var _=new g.constructor(g.byteLength);return new Um(_).set(new Um(g)),_}function $Z(g,_){var T=_?mw(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.byteLength)}function HZ(g){var _=new g.constructor(g.source,Ud.exec(g));return _.lastIndex=g.lastIndex,_}function UZ(g){return Jd?Lr(Jd.call(g)):{}}function fE(g,_){var T=_?mw(g.buffer):g.buffer;return new g.constructor(T,g.byteOffset,g.length)}function hE(g,_){if(g!==_){var T=g!==r,L=g===null,k=g===g,G=qi(g),Z=_!==r,K=_===null,le=_===_,De=qi(_);if(!K&&!De&&!G&&g>_||G&&Z&&le&&!K&&!De||L&&Z&&le||!T&&le||!k)return 1;if(!L&&!G&&!De&&g<_||De&&T&&k&&!L&&!G||K&&T&&k||!Z&&k||!le)return-1}return 0}function WZ(g,_,T){for(var L=-1,k=g.criteria,G=_.criteria,Z=k.length,K=T.length;++L=K)return le;var De=T[L];return le*(De=="desc"?-1:1)}}return g.index-_.index}function dE(g,_,T,L){for(var k=-1,G=g.length,Z=T.length,K=-1,le=_.length,De=bn(G-Z,0),Me=ge(le+De),Le=!L;++K1?T[k-1]:r,Z=k>2?T[2]:r;for(G=g.length>3&&typeof G=="function"?(k--,G):r,Z&&si(T[0],T[1],Z)&&(G=k<3?r:G,k=1),_=Lr(_);++L-1?k[G?_[Z]:Z]:r}}function _E(g){return ms(function(_){var T=_.length,L=T,k=_a.prototype.thru;for(g&&_.reverse();L--;){var G=_[L];if(typeof G!="function")throw new ya(o);if(k&&!Z&&cy(G)=="wrapper")var Z=new _a([],!0)}for(L=Z?L:T;++L1&&rr.reverse(),Me&&leK))return!1;var De=G.get(g),Me=G.get(_);if(De&&Me)return De==_&&Me==g;var Le=-1,We=!0,nt=T&p?new Bu:r;for(G.set(g,_),G.set(_,g);++Le1?"& ":"")+_[L],_=_.join(T>2?", ":" "),g.replace(Mm,`{ -/* [wrapped with `+_+`] */ -`)}function sq(g){return Rt(g)||Hu(g)||!!(kP&&g&&g[kP])}function ys(g,_){var T=typeof g;return _=_??z,!!_&&(T=="number"||T!="symbol"&&Be.test(g))&&g>-1&&g%1==0&&g<_}function si(g,_,T){if(!Xr(T))return!1;var L=typeof _;return(L=="number"?Pi(T)&&ys(_,T.length):L=="string"&&_ in T)?Ja(T[_],g):!1}function Tw(g,_){if(Rt(g))return!1;var T=typeof g;return T=="number"||T=="symbol"||T=="boolean"||g==null||qi(g)?!0:Hd.test(g)||!Am.test(g)||_!=null&&g in Lr(_)}function lq(g){var _=typeof g;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?g!=="__proto__":g===null}function Aw(g){var _=cy(g),T=V[_];if(typeof T!="function"||!(_ in Jt.prototype))return!1;if(g===T)return!0;var L=ww(T);return!!L&&g===L[0]}function uq(g){return!!LP&&LP in g}var cq=zm?_s:Hw;function av(g){var _=g&&g.constructor,T=typeof _=="function"&&_.prototype||Wf;return g===T}function LE(g){return g===g&&!Xr(g)}function PE(g,_){return function(T){return T==null?!1:T[g]===_&&(_!==r||g in Lr(T))}}function fq(g){var _=gy(g,function(L){return T.size===u&&T.clear(),L}),T=_.cache;return _}function hq(g,_){var T=g[1],L=_[1],k=T|L,G=k<(m|y|A),Z=L==A&&T==b||L==A&&T==D&&g[7].length<=_[8]||L==(A|D)&&_[7].length<=_[8]&&T==b;if(!(G||Z))return g;L&m&&(g[2]=_[2],k|=T&m?0:S);var K=_[3];if(K){var le=g[3];g[3]=le?dE(le,K,_[4]):K,g[4]=le?pl(g[3],c):_[4]}return K=_[5],K&&(le=g[5],g[5]=le?vE(le,K,_[6]):K,g[6]=le?pl(g[5],c):_[6]),K=_[7],K&&(g[7]=K),L&A&&(g[8]=g[8]==null?_[8]:Zn(g[8],_[8])),g[9]==null&&(g[9]=_[9]),g[0]=_[0],g[1]=k,g}function dq(g){var _=[];if(g!=null)for(var T in Lr(g))_.push(T);return _}function vq(g){return $m.call(g)}function EE(g,_,T){return _=bn(_===r?g.length-1:_,0),function(){for(var L=arguments,k=-1,G=bn(L.length-_,0),Z=ge(G);++k0){if(++_>=R)return arguments[0]}else _=0;return g.apply(r,arguments)}}function hy(g,_){var T=-1,L=g.length,k=L-1;for(_=_===r?L:_;++T<_;){var G=cw(T,k),Z=g[G];g[G]=g[T],g[T]=Z}return g.length=_,g}var FE=fq(function(g){var _=[];return g.charCodeAt(0)===46&&_.push(""),g.replace(Dm,function(T,L,k,G){_.push(k?G.replace(Em,"$1"):L||T)}),_});function Io(g){if(typeof g=="string"||qi(g))return g;var _=g+"";return _=="0"&&1/g==-W?"-0":_}function $u(g){if(g!=null){try{return Gm.call(g)}catch{}try{return g+""}catch{}}return""}function gq(g,_){return ma(Pe,function(T){var L="_."+T[0];_&T[1]&&!Nm(g,L)&&g.push(L)}),g.sort()}function BE(g){if(g instanceof Jt)return g.clone();var _=new _a(g.__wrapped__,g.__chain__);return _.__actions__=Li(g.__actions__),_.__index__=g.__index__,_.__values__=g.__values__,_}function mq(g,_,T){(T?si(g,_,T):_===r)?_=1:_=bn(Bt(_),0);var L=g==null?0:g.length;if(!L||_<1)return[];for(var k=0,G=0,Z=ge(Zm(L/_));k1?g[_-1]:r;return T=typeof T=="function"?(g.pop(),T):r,UE(g,T)});function WE(g){var _=V(g);return _.__chain__=!0,_}function yj(g,_){return _(g),g}function dy(g,_){return _(g)}var _j=ms(function(g){var _=g.length,T=_?g[0]:0,L=this.__wrapped__,k=function(G){return tw(G,g)};return _>1||this.__actions__.length||!(L instanceof Jt)||!ys(T)?this.thru(k):(L=L.slice(T,+T+(_?1:0)),L.__actions__.push({func:dy,args:[k],thisArg:r}),new _a(L,this.__chain__).thru(function(G){return _&&!G.length&&G.push(r),G}))});function Sj(){return WE(this)}function bj(){return new _a(this.value(),this.__chain__)}function wj(){this.__values__===r&&(this.__values__=aR(this.value()));var g=this.__index__>=this.__values__.length,_=g?r:this.__values__[this.__index__++];return{done:g,value:_}}function xj(){return this}function Cj(g){for(var _,T=this;T instanceof Jm;){var L=BE(T);L.__index__=0,L.__values__=r,_?k.__wrapped__=L:_=L;var k=L;T=T.__wrapped__}return k.__wrapped__=g,_}function Tj(){var g=this.__wrapped__;if(g instanceof Jt){var _=g;return this.__actions__.length&&(_=new Jt(this)),_=_.reverse(),_.__actions__.push({func:dy,args:[Iw],thisArg:r}),new _a(_,this.__chain__)}return this.thru(Iw)}function Aj(){return sE(this.__wrapped__,this.__actions__)}var Dj=ay(function(g,_,T){wr.call(g,T)?++g[T]:ps(g,T,1)});function Mj(g,_,T){var L=Rt(g)?SP:yZ;return T&&si(g,_,T)&&(_=r),L(g,dt(_,3))}function Ij(g,_){var T=Rt(g)?dl:UP;return T(g,dt(_,3))}var Lj=yE(VE),Pj=yE(zE);function Ej(g,_){return Vn(vy(g,_),1)}function Rj(g,_){return Vn(vy(g,_),W)}function kj(g,_,T){return T=T===r?1:Bt(T),Vn(vy(g,_),T)}function YE(g,_){var T=Rt(g)?ma:ml;return T(g,dt(_,3))}function XE(g,_){var T=Rt(g)?QY:HP;return T(g,dt(_,3))}var Oj=ay(function(g,_,T){wr.call(g,T)?g[T].push(_):ps(g,T,[_])});function Nj(g,_,T,L){g=Pi(g)?g:Qf(g),T=T&&!L?Bt(T):0;var k=g.length;return T<0&&(T=bn(k+T,0)),_y(g)?T<=k&&g.indexOf(_,T)>-1:!!k&&Gf(g,_,T)>-1}var Fj=Ht(function(g,_,T){var L=-1,k=typeof _=="function",G=Pi(g)?ge(g.length):[];return ml(g,function(Z){G[++L]=k?Yi(_,Z,T):tv(Z,_,T)}),G}),Bj=ay(function(g,_,T){ps(g,T,_)});function vy(g,_){var T=Rt(g)?Hr:jP;return T(g,dt(_,3))}function Vj(g,_,T,L){return g==null?[]:(Rt(_)||(_=_==null?[]:[_]),T=L?r:T,Rt(T)||(T=T==null?[]:[T]),eE(g,_,T))}var zj=ay(function(g,_,T){g[T?0:1].push(_)},function(){return[[],[]]});function Gj(g,_,T){var L=Rt(g)?$b:CP,k=arguments.length<3;return L(g,dt(_,4),T,k,ml)}function $j(g,_,T){var L=Rt(g)?eX:CP,k=arguments.length<3;return L(g,dt(_,4),T,k,HP)}function Hj(g,_){var T=Rt(g)?dl:UP;return T(g,my(dt(_,3)))}function Uj(g){var _=Rt(g)?VP:NZ;return _(g)}function Wj(g,_,T){(T?si(g,_,T):_===r)?_=1:_=Bt(_);var L=Rt(g)?dZ:FZ;return L(g,_)}function Yj(g){var _=Rt(g)?vZ:VZ;return _(g)}function Xj(g){if(g==null)return 0;if(Pi(g))return _y(g)?Hf(g):g.length;var _=qn(g);return _==U||_==ue?g.size:sw(g).length}function Zj(g,_,T){var L=Rt(g)?Hb:zZ;return T&&si(g,_,T)&&(_=r),L(g,dt(_,3))}var qj=Ht(function(g,_){if(g==null)return[];var T=_.length;return T>1&&si(g,_[0],_[1])?_=[]:T>2&&si(_[0],_[1],_[2])&&(_=[_[0]]),eE(g,Vn(_,1),[])}),py=IX||function(){return Bn.Date.now()};function jj(g,_){if(typeof _!="function")throw new ya(o);return g=Bt(g),function(){if(--g<1)return _.apply(this,arguments)}}function ZE(g,_,T){return _=T?r:_,_=g&&_==null?g.length:_,gs(g,A,r,r,r,r,_)}function qE(g,_){var T;if(typeof _!="function")throw new ya(o);return g=Bt(g),function(){return--g>0&&(T=_.apply(this,arguments)),g<=1&&(_=r),T}}var Pw=Ht(function(g,_,T){var L=m;if(T.length){var k=pl(T,Kf(Pw));L|=C}return gs(g,L,_,T,k)}),jE=Ht(function(g,_,T){var L=m|y;if(T.length){var k=pl(T,Kf(jE));L|=C}return gs(_,L,g,T,k)});function KE(g,_,T){_=T?r:_;var L=gs(g,b,r,r,r,r,r,_);return L.placeholder=KE.placeholder,L}function JE(g,_,T){_=T?r:_;var L=gs(g,w,r,r,r,r,r,_);return L.placeholder=JE.placeholder,L}function QE(g,_,T){var L,k,G,Z,K,le,De=0,Me=!1,Le=!1,We=!0;if(typeof g!="function")throw new ya(o);_=xa(_)||0,Xr(T)&&(Me=!!T.leading,Le="maxWait"in T,G=Le?bn(xa(T.maxWait)||0,_):G,We="trailing"in T?!!T.trailing:We);function nt(sn){var Qa=L,bs=k;return L=k=r,De=sn,Z=g.apply(bs,Qa),Z}function gt(sn){return De=sn,K=ov(jt,_),Me?nt(sn):Z}function Gt(sn){var Qa=sn-le,bs=sn-De,yR=_-Qa;return Le?Zn(yR,G-bs):yR}function mt(sn){var Qa=sn-le,bs=sn-De;return le===r||Qa>=_||Qa<0||Le&&bs>=G}function jt(){var sn=py();if(mt(sn))return rr(sn);K=ov(jt,Gt(sn))}function rr(sn){return K=r,We&&L?nt(sn):(L=k=r,Z)}function ji(){K!==r&&uE(K),De=0,L=le=k=K=r}function li(){return K===r?Z:rr(py())}function Ki(){var sn=py(),Qa=mt(sn);if(L=arguments,k=this,le=sn,Qa){if(K===r)return gt(le);if(Le)return uE(K),K=ov(jt,_),nt(le)}return K===r&&(K=ov(jt,_)),Z}return Ki.cancel=ji,Ki.flush=li,Ki}var Kj=Ht(function(g,_){return $P(g,1,_)}),Jj=Ht(function(g,_,T){return $P(g,xa(_)||0,T)});function Qj(g){return gs(g,M)}function gy(g,_){if(typeof g!="function"||_!=null&&typeof _!="function")throw new ya(o);var T=function(){var L=arguments,k=_?_.apply(this,L):L[0],G=T.cache;if(G.has(k))return G.get(k);var Z=g.apply(this,L);return T.cache=G.set(k,Z)||G,Z};return T.cache=new(gy.Cache||vs),T}gy.Cache=vs;function my(g){if(typeof g!="function")throw new ya(o);return function(){var _=arguments;switch(_.length){case 0:return!g.call(this);case 1:return!g.call(this,_[0]);case 2:return!g.call(this,_[0],_[1]);case 3:return!g.call(this,_[0],_[1],_[2])}return!g.apply(this,_)}}function eK(g){return qE(2,g)}var tK=GZ(function(g,_){_=_.length==1&&Rt(_[0])?Hr(_[0],Xi(dt())):Hr(Vn(_,1),Xi(dt()));var T=_.length;return Ht(function(L){for(var k=-1,G=Zn(L.length,T);++k=_}),Hu=XP(function(){return arguments}())?XP:function(g){return Jr(g)&&wr.call(g,"callee")&&!RP.call(g,"callee")},Rt=ge.isArray,gK=vP?Xi(vP):CZ;function Pi(g){return g!=null&&yy(g.length)&&!_s(g)}function on(g){return Jr(g)&&Pi(g)}function mK(g){return g===!0||g===!1||Jr(g)&&oi(g)==he}var bl=PX||Hw,yK=pP?Xi(pP):TZ;function _K(g){return Jr(g)&&g.nodeType===1&&!sv(g)}function SK(g){if(g==null)return!0;if(Pi(g)&&(Rt(g)||typeof g=="string"||typeof g.splice=="function"||bl(g)||Jf(g)||Hu(g)))return!g.length;var _=qn(g);if(_==U||_==ue)return!g.size;if(av(g))return!sw(g).length;for(var T in g)if(wr.call(g,T))return!1;return!0}function bK(g,_){return rv(g,_)}function wK(g,_,T){T=typeof T=="function"?T:r;var L=T?T(g,_):r;return L===r?rv(g,_,r,T):!!L}function Rw(g){if(!Jr(g))return!1;var _=oi(g);return _==xe||_==ye||typeof g.message=="string"&&typeof g.name=="string"&&!sv(g)}function xK(g){return typeof g=="number"&&OP(g)}function _s(g){if(!Xr(g))return!1;var _=oi(g);return _==ke||_==H||_==se||_==Y}function tR(g){return typeof g=="number"&&g==Bt(g)}function yy(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=z}function Xr(g){var _=typeof g;return g!=null&&(_=="object"||_=="function")}function Jr(g){return g!=null&&typeof g=="object"}var rR=gP?Xi(gP):DZ;function CK(g,_){return g===_||ow(g,_,xw(_))}function TK(g,_,T){return T=typeof T=="function"?T:r,ow(g,_,xw(_),T)}function AK(g){return nR(g)&&g!=+g}function DK(g){if(cq(g))throw new Lt(a);return ZP(g)}function MK(g){return g===null}function IK(g){return g==null}function nR(g){return typeof g=="number"||Jr(g)&&oi(g)==ie}function sv(g){if(!Jr(g)||oi(g)!=fe)return!1;var _=Wm(g);if(_===null)return!0;var T=wr.call(_,"constructor")&&_.constructor;return typeof T=="function"&&T instanceof T&&Gm.call(T)==TX}var kw=mP?Xi(mP):MZ;function LK(g){return tR(g)&&g>=-z&&g<=z}var iR=yP?Xi(yP):IZ;function _y(g){return typeof g=="string"||!Rt(g)&&Jr(g)&&oi(g)==Ce}function qi(g){return typeof g=="symbol"||Jr(g)&&oi(g)==Re}var Jf=_P?Xi(_P):LZ;function PK(g){return g===r}function EK(g){return Jr(g)&&qn(g)==ce}function RK(g){return Jr(g)&&oi(g)==Ge}var kK=uy(lw),OK=uy(function(g,_){return g<=_});function aR(g){if(!g)return[];if(Pi(g))return _y(g)?ja(g):Li(g);if(Zd&&g[Zd])return dX(g[Zd]());var _=qn(g),T=_==U?qb:_==ue?Bm:Qf;return T(g)}function Ss(g){if(!g)return g===0?g:0;if(g=xa(g),g===W||g===-W){var _=g<0?-1:1;return _*j}return g===g?g:0}function Bt(g){var _=Ss(g),T=_%1;return _===_?T?_-T:_:0}function oR(g){return g?Vu(Bt(g),0,te):0}function xa(g){if(typeof g=="number")return g;if(qi(g))return ee;if(Xr(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=Xr(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=TP(g);var T=Rb.test(g);return T||ne.test(g)?jY(g.slice(2),T?2:8):km.test(g)?ee:+g}function sR(g){return Mo(g,Ei(g))}function NK(g){return g?Vu(Bt(g),-z,z):g===0?g:0}function gr(g){return g==null?"":Zi(g)}var FK=qf(function(g,_){if(av(_)||Pi(_)){Mo(_,En(_),g);return}for(var T in _)wr.call(_,T)&&Qd(g,T,_[T])}),lR=qf(function(g,_){Mo(_,Ei(_),g)}),Sy=qf(function(g,_,T,L){Mo(_,Ei(_),g,L)}),BK=qf(function(g,_,T,L){Mo(_,En(_),g,L)}),VK=ms(tw);function zK(g,_){var T=Zf(g);return _==null?T:zP(T,_)}var GK=Ht(function(g,_){g=Lr(g);var T=-1,L=_.length,k=L>2?_[2]:r;for(k&&si(_[0],_[1],k)&&(L=1);++T1),G}),Mo(g,bw(g),T),L&&(T=Sa(T,f|h|d,JZ));for(var k=_.length;k--;)dw(T,_[k]);return T});function aJ(g,_){return cR(g,my(dt(_)))}var oJ=ms(function(g,_){return g==null?{}:RZ(g,_)});function cR(g,_){if(g==null)return{};var T=Hr(bw(g),function(L){return[L]});return _=dt(_),tE(g,T,function(L,k){return _(L,k[0])})}function sJ(g,_,T){_=_l(_,g);var L=-1,k=_.length;for(k||(k=1,g=r);++L_){var L=g;g=_,_=L}if(T||g%1||_%1){var k=NP();return Zn(g+k*(_-g+qY("1e-"+((k+"").length-1))),_)}return cw(g,_)}var yJ=jf(function(g,_,T){return _=_.toLowerCase(),g+(T?dR(_):_)});function dR(g){return Fw(gr(g).toLowerCase())}function vR(g){return g=gr(g),g&&g.replace(tt,lX).replace(VY,"")}function _J(g,_,T){g=gr(g),_=Zi(_);var L=g.length;T=T===r?L:Vu(Bt(T),0,L);var k=T;return T-=_.length,T>=0&&g.slice(T,k)==_}function SJ(g){return g=gr(g),g&&Pb.test(g)?g.replace(fl,uX):g}function bJ(g){return g=gr(g),g&&Eb.test(g)?g.replace(Bf,"\\$&"):g}var wJ=jf(function(g,_,T){return g+(T?"-":"")+_.toLowerCase()}),xJ=jf(function(g,_,T){return g+(T?" ":"")+_.toLowerCase()}),CJ=mE("toLowerCase");function TJ(g,_,T){g=gr(g),_=Bt(_);var L=_?Hf(g):0;if(!_||L>=_)return g;var k=(_-L)/2;return ly(qm(k),T)+g+ly(Zm(k),T)}function AJ(g,_,T){g=gr(g),_=Bt(_);var L=_?Hf(g):0;return _&&L<_?g+ly(_-L,T):g}function DJ(g,_,T){g=gr(g),_=Bt(_);var L=_?Hf(g):0;return _&&L<_?ly(_-L,T)+g:g}function MJ(g,_,T){return T||_==null?_=0:_&&(_=+_),OX(gr(g).replace(Ii,""),_||0)}function IJ(g,_,T){return(T?si(g,_,T):_===r)?_=1:_=Bt(_),fw(gr(g),_)}function LJ(){var g=arguments,_=gr(g[0]);return g.length<3?_:_.replace(g[1],g[2])}var PJ=jf(function(g,_,T){return g+(T?"_":"")+_.toLowerCase()});function EJ(g,_,T){return T&&typeof T!="number"&&si(g,_,T)&&(_=T=r),T=T===r?te:T>>>0,T?(g=gr(g),g&&(typeof _=="string"||_!=null&&!kw(_))&&(_=Zi(_),!_&&$f(g))?Sl(ja(g),0,T):g.split(_,T)):[]}var RJ=jf(function(g,_,T){return g+(T?" ":"")+Fw(_)});function kJ(g,_,T){return g=gr(g),T=T==null?0:Vu(Bt(T),0,g.length),_=Zi(_),g.slice(T,T+_.length)==_}function OJ(g,_,T){var L=V.templateSettings;T&&si(g,_,T)&&(_=r),g=gr(g),_=Sy({},_,L,CE);var k=Sy({},_.imports,L.imports,CE),G=En(k),Z=Zb(k,G),K,le,De=0,Me=_.interpolate||br,Le="__p += '",We=jb((_.escape||br).source+"|"+Me.source+"|"+(Me===Tm?Rm:br).source+"|"+(_.evaluate||br).source+"|$","g"),nt="//# sourceURL="+(wr.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++UY+"]")+` -`;g.replace(We,function(mt,jt,rr,ji,li,Ki){return rr||(rr=ji),Le+=g.slice(De,Ki).replace(Ln,cX),jt&&(K=!0,Le+=`' + -__e(`+jt+`) + -'`),li&&(le=!0,Le+=`'; -`+li+`; -__p += '`),rr&&(Le+=`' + -((__t = (`+rr+`)) == null ? '' : __t) + -'`),De=Ki+mt.length,mt}),Le+=`'; -`;var gt=wr.call(_,"variable")&&_.variable;if(!gt)Le=`with (obj) { -`+Le+` -} -`;else if(qa.test(gt))throw new Lt(s);Le=(le?Le.replace(Of,""):Le).replace(Nf,"$1").replace(Ff,"$1;"),Le="function("+(gt||"obj")+`) { -`+(gt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(le?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Le+`return __p -}`;var Gt=gR(function(){return fr(G,nt+"return "+Le).apply(r,Z)});if(Gt.source=Le,Rw(Gt))throw Gt;return Gt}function NJ(g){return gr(g).toLowerCase()}function FJ(g){return gr(g).toUpperCase()}function BJ(g,_,T){if(g=gr(g),g&&(T||_===r))return TP(g);if(!g||!(_=Zi(_)))return g;var L=ja(g),k=ja(_),G=AP(L,k),Z=DP(L,k)+1;return Sl(L,G,Z).join("")}function VJ(g,_,T){if(g=gr(g),g&&(T||_===r))return g.slice(0,IP(g)+1);if(!g||!(_=Zi(_)))return g;var L=ja(g),k=DP(L,ja(_))+1;return Sl(L,0,k).join("")}function zJ(g,_,T){if(g=gr(g),g&&(T||_===r))return g.replace(Ii,"");if(!g||!(_=Zi(_)))return g;var L=ja(g),k=AP(L,ja(_));return Sl(L,k).join("")}function GJ(g,_){var T=I,L=P;if(Xr(_)){var k="separator"in _?_.separator:k;T="length"in _?Bt(_.length):T,L="omission"in _?Zi(_.omission):L}g=gr(g);var G=g.length;if($f(g)){var Z=ja(g);G=Z.length}if(T>=G)return g;var K=T-Hf(L);if(K<1)return L;var le=Z?Sl(Z,0,K).join(""):g.slice(0,K);if(k===r)return le+L;if(Z&&(K+=le.length-K),kw(k)){if(g.slice(K).search(k)){var De,Me=le;for(k.global||(k=jb(k.source,gr(Ud.exec(k))+"g")),k.lastIndex=0;De=k.exec(Me);)var Le=De.index;le=le.slice(0,Le===r?K:Le)}}else if(g.indexOf(Zi(k),K)!=K){var We=le.lastIndexOf(k);We>-1&&(le=le.slice(0,We))}return le+L}function $J(g){return g=gr(g),g&&Lb.test(g)?g.replace(Cm,mX):g}var HJ=jf(function(g,_,T){return g+(T?" ":"")+_.toUpperCase()}),Fw=mE("toUpperCase");function pR(g,_,T){return g=gr(g),_=T?r:_,_===r?hX(g)?SX(g):nX(g):g.match(_)||[]}var gR=Ht(function(g,_){try{return Yi(g,r,_)}catch(T){return Rw(T)?T:new Lt(T)}}),UJ=ms(function(g,_){return ma(_,function(T){T=Io(T),ps(g,T,Pw(g[T],g))}),g});function WJ(g){var _=g==null?0:g.length,T=dt();return g=_?Hr(g,function(L){if(typeof L[1]!="function")throw new ya(o);return[T(L[0]),L[1]]}):[],Ht(function(L){for(var k=-1;++k<_;){var G=g[k];if(Yi(G[0],this,L))return Yi(G[1],this,L)}})}function YJ(g){return mZ(Sa(g,f))}function Bw(g){return function(){return g}}function XJ(g,_){return g==null||g!==g?_:g}var ZJ=_E(),qJ=_E(!0);function Ri(g){return g}function Vw(g){return qP(typeof g=="function"?g:Sa(g,f))}function jJ(g){return KP(Sa(g,f))}function KJ(g,_){return JP(g,Sa(_,f))}var JJ=Ht(function(g,_){return function(T){return tv(T,g,_)}}),QJ=Ht(function(g,_){return function(T){return tv(g,T,_)}});function zw(g,_,T){var L=En(_),k=ty(_,L);T==null&&!(Xr(_)&&(k.length||!L.length))&&(T=_,_=g,g=this,k=ty(_,En(_)));var G=!(Xr(T)&&"chain"in T)||!!T.chain,Z=_s(g);return ma(k,function(K){var le=_[K];g[K]=le,Z&&(g.prototype[K]=function(){var De=this.__chain__;if(G||De){var Me=g(this.__wrapped__),Le=Me.__actions__=Li(this.__actions__);return Le.push({func:le,args:arguments,thisArg:g}),Me.__chain__=De,Me}return le.apply(g,vl([this.value()],arguments))})}),g}function eQ(){return Bn._===this&&(Bn._=AX),this}function Gw(){}function tQ(g){return g=Bt(g),Ht(function(_){return QP(_,g)})}var rQ=yw(Hr),nQ=yw(SP),iQ=yw(Hb);function mR(g){return Tw(g)?Ub(Io(g)):kZ(g)}function aQ(g){return function(_){return g==null?r:zu(g,_)}}var oQ=bE(),sQ=bE(!0);function $w(){return[]}function Hw(){return!1}function lQ(){return{}}function uQ(){return""}function cQ(){return!0}function fQ(g,_){if(g=Bt(g),g<1||g>z)return[];var T=te,L=Zn(g,te);_=dt(_),g-=te;for(var k=Xb(L,_);++T0||_<0)?new Jt(T):(g<0?T=T.takeRight(-g):g&&(T=T.drop(g)),_!==r&&(_=Bt(_),T=_<0?T.dropRight(-_):T.take(_-g)),T)},Jt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Jt.prototype.toArray=function(){return this.take(te)},Do(Jt.prototype,function(g,_){var T=/^(?:filter|find|map|reject)|While$/.test(_),L=/^(?:head|last)$/.test(_),k=V[L?"take"+(_=="last"?"Right":""):_],G=L||/^find/.test(_);k&&(V.prototype[_]=function(){var Z=this.__wrapped__,K=L?[1]:arguments,le=Z instanceof Jt,De=K[0],Me=le||Rt(Z),Le=function(jt){var rr=k.apply(V,vl([jt],K));return L&&We?rr[0]:rr};Me&&T&&typeof De=="function"&&De.length!=1&&(le=Me=!1);var We=this.__chain__,nt=!!this.__actions__.length,gt=G&&!We,Gt=le&&!nt;if(!G&&Me){Z=Gt?Z:new Jt(this);var mt=g.apply(Z,K);return mt.__actions__.push({func:dy,args:[Le],thisArg:r}),new _a(mt,We)}return gt&&Gt?g.apply(this,K):(mt=this.thru(Le),gt?L?mt.value()[0]:mt.value():mt)})}),ma(["pop","push","shift","sort","splice","unshift"],function(g){var _=Vm[g],T=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",L=/^(?:pop|shift)$/.test(g);V.prototype[g]=function(){var k=arguments;if(L&&!this.__chain__){var G=this.value();return _.apply(Rt(G)?G:[],k)}return this[T](function(Z){return _.apply(Rt(Z)?Z:[],k)})}}),Do(Jt.prototype,function(g,_){var T=V[_];if(T){var L=T.name+"";wr.call(Xf,L)||(Xf[L]=[]),Xf[L].push({name:_,func:T})}}),Xf[oy(r,y).name]=[{name:"wrapper",func:r}],Jt.prototype.clone=$X,Jt.prototype.reverse=HX,Jt.prototype.value=UX,V.prototype.at=_j,V.prototype.chain=Sj,V.prototype.commit=bj,V.prototype.next=wj,V.prototype.plant=Cj,V.prototype.reverse=Tj,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Aj,V.prototype.first=V.prototype.head,Zd&&(V.prototype[Zd]=xj),V},Uf=bX();Ou?((Ou.exports=Uf)._=Uf,Vb._=Uf):Bn._=Uf}).call(Ere)}(Kv,Kv.exports)),Kv.exports}var vf=Rre();const kre=U2(vf),zn=[];for(let e=0;e<256;++e)zn.push((e+256).toString(16).slice(1));function Ore(e,t=0){return(zn[e[t+0]]+zn[e[t+1]]+zn[e[t+2]]+zn[e[t+3]]+"-"+zn[e[t+4]]+zn[e[t+5]]+"-"+zn[e[t+6]]+zn[e[t+7]]+"-"+zn[e[t+8]]+zn[e[t+9]]+"-"+zn[e[t+10]]+zn[e[t+11]]+zn[e[t+12]]+zn[e[t+13]]+zn[e[t+14]]+zn[e[t+15]]).toLowerCase()}let rx;const Nre=new Uint8Array(16);function Fre(){if(!rx){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");rx=crypto.getRandomValues.bind(crypto)}return rx(Nre)}const Bre=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),nk={randomUUID:Bre};function Vre(e,t,r){if(nk.randomUUID&&!t&&!e)return nk.randomUUID();e=e||{};const n=e.random||(e.rng||Fre)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ore(n)}const pf=Or("setup/api-list",[]),Fs=Or("setup/active-uuid",""),ql=at(()=>pf.value.find(e=>e.uuid===Fs.value)),zre=e=>{const t=pf.value.find(n=>vf.isEqual(vf.omit(n,"uuid"),e));if(t){Fs.value=t.uuid;return}const r=Vre();pf.value.push({...e,uuid:r}),Fs.value=r},Gre=e=>{pf.value=pf.value.filter(t=>t.uuid!==e)};function mG(e,t){return function(){return e.apply(t,arguments)}}const{toString:$re}=Object.prototype,{getPrototypeOf:hM}=Object,AS=(e=>t=>{const r=$re.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Co=e=>(e=e.toLowerCase(),t=>AS(t)===e),DS=e=>t=>typeof t===e,{isArray:xd}=Array,cg=DS("undefined");function Hre(e){return e!==null&&!cg(e)&&e.constructor!==null&&!cg(e.constructor)&&ua(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const yG=Co("ArrayBuffer");function Ure(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&yG(e.buffer),t}const Wre=DS("string"),ua=DS("function"),_G=DS("number"),MS=e=>e!==null&&typeof e=="object",Yre=e=>e===!0||e===!1,l_=e=>{if(AS(e)!=="object")return!1;const t=hM(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xre=Co("Date"),Zre=Co("File"),qre=Co("Blob"),jre=Co("FileList"),Kre=e=>MS(e)&&ua(e.pipe),Jre=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ua(e.append)&&((t=AS(e))==="formdata"||t==="object"&&ua(e.toString)&&e.toString()==="[object FormData]"))},Qre=Co("URLSearchParams"),[ene,tne,rne,nne]=["ReadableStream","Request","Response","Headers"].map(Co),ine=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kg(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),xd(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Bc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bG=e=>!cg(e)&&e!==Bc;function yA(){const{caseless:e}=bG(this)&&this||{},t={},r=(n,i)=>{const a=e&&SG(t,i)||i;l_(t[a])&&l_(n)?t[a]=yA(t[a],n):l_(n)?t[a]=yA({},n):xd(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(Kg(t,(i,a)=>{r&&ua(i)?e[a]=mG(i,r):e[a]=i},{allOwnKeys:n}),e),one=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sne=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},lne=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&hM(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},une=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},cne=e=>{if(!e)return null;if(xd(e))return e;let t=e.length;if(!_G(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},fne=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hM(Uint8Array)),hne=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},dne=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},vne=Co("HTMLFormElement"),pne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),ik=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),gne=Co("RegExp"),wG=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Kg(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},mne=e=>{wG(e,(t,r)=>{if(ua(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ua(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yne=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return xd(e)?n(e):n(String(e).split(t)),r},_ne=()=>{},Sne=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,nx="abcdefghijklmnopqrstuvwxyz",ak="0123456789",xG={DIGIT:ak,ALPHA:nx,ALPHA_DIGIT:nx+nx.toUpperCase()+ak},bne=(e=16,t=xG.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function wne(e){return!!(e&&ua(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xne=e=>{const t=new Array(10),r=(n,i)=>{if(MS(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=xd(n)?[]:{};return Kg(n,(o,s)=>{const l=r(o,i+1);!cg(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},Cne=Co("AsyncFunction"),Tne=e=>e&&(MS(e)||ua(e))&&ua(e.then)&&ua(e.catch),CG=((e,t)=>e?setImmediate:t?((r,n)=>(Bc.addEventListener("message",({source:i,data:a})=>{i===Bc&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Bc.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",ua(Bc.postMessage)),Ane=typeof queueMicrotask<"u"?queueMicrotask.bind(Bc):typeof process<"u"&&process.nextTick||CG,be={isArray:xd,isArrayBuffer:yG,isBuffer:Hre,isFormData:Jre,isArrayBufferView:Ure,isString:Wre,isNumber:_G,isBoolean:Yre,isObject:MS,isPlainObject:l_,isReadableStream:ene,isRequest:tne,isResponse:rne,isHeaders:nne,isUndefined:cg,isDate:Xre,isFile:Zre,isBlob:qre,isRegExp:gne,isFunction:ua,isStream:Kre,isURLSearchParams:Qre,isTypedArray:fne,isFileList:jre,forEach:Kg,merge:yA,extend:ane,trim:ine,stripBOM:one,inherits:sne,toFlatObject:lne,kindOf:AS,kindOfTest:Co,endsWith:une,toArray:cne,forEachEntry:hne,matchAll:dne,isHTMLForm:vne,hasOwnProperty:ik,hasOwnProp:ik,reduceDescriptors:wG,freezeMethods:mne,toObjectSet:yne,toCamelCase:pne,noop:_ne,toFiniteNumber:Sne,findKey:SG,global:Bc,isContextDefined:bG,ALPHABET:xG,generateString:bne,isSpecCompliantForm:wne,toJSONObject:xne,isAsyncFn:Cne,isThenable:Tne,setImmediate:CG,asap:Ane};function kt(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}be.inherits(kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}});const TG=kt.prototype,AG={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{AG[e]={value:e}});Object.defineProperties(kt,AG);Object.defineProperty(TG,"isAxiosError",{value:!0});kt.from=(e,t,r,n,i,a)=>{const o=Object.create(TG);return be.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),kt.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Dne=null;function _A(e){return be.isPlainObject(e)||be.isArray(e)}function DG(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function ok(e,t,r){return e?e.concat(t).map(function(i,a){return i=DG(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function Mne(e){return be.isArray(e)&&!e.some(_A)}const Ine=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function IS(e,t,r){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=be.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!be.isUndefined(m[p])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(be.isDate(v))return v.toISOString();if(!l&&be.isBlob(v))throw new kt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(v)||be.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,m){let y=v;if(v&&!m&&typeof v=="object"){if(be.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&Mne(v)||(be.isFileList(v)||be.endsWith(p,"[]"))&&(y=be.toArray(v)))return p=DG(p),y.forEach(function(b,w){!(be.isUndefined(b)||b===null)&&t.append(o===!0?ok([p],w,a):o===null?p:p+"[]",u(b))}),!1}return _A(v)?!0:(t.append(ok(m,p,a),u(v)),!1)}const f=[],h=Object.assign(Ine,{defaultVisitor:c,convertValue:u,isVisitable:_A});function d(v,p){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),be.forEach(v,function(y,S){(!(be.isUndefined(y)||y===null)&&i.call(t,y,be.isString(S)?S.trim():S,p,h))===!0&&d(y,p?p.concat(S):[S])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return d(e),t}function sk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function dM(e,t){this._pairs=[],e&&IS(e,this,t)}const MG=dM.prototype;MG.append=function(t,r){this._pairs.push([t,r])};MG.toString=function(t){const r=t?function(n){return t.call(this,n,sk)}:sk;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Lne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function IG(e,t,r){if(!t)return e;const n=r&&r.encode||Lne;be.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=be.isURLSearchParams(t)?t.toString():new dM(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class lk{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){be.forEach(this.handlers,function(n){n!==null&&t(n)})}}const LG={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pne=typeof URLSearchParams<"u"?URLSearchParams:dM,Ene=typeof FormData<"u"?FormData:null,Rne=typeof Blob<"u"?Blob:null,kne={isBrowser:!0,classes:{URLSearchParams:Pne,FormData:Ene,Blob:Rne},protocols:["http","https","file","blob","url","data"]},vM=typeof window<"u"&&typeof document<"u",SA=typeof navigator=="object"&&navigator||void 0,One=vM&&(!SA||["ReactNative","NativeScript","NS"].indexOf(SA.product)<0),Nne=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Fne=vM&&window.location.href||"http://localhost",Bne=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vM,hasStandardBrowserEnv:One,hasStandardBrowserWebWorkerEnv:Nne,navigator:SA,origin:Fne},Symbol.toStringTag,{value:"Module"})),ni={...Bne,...kne};function Vne(e,t){return IS(e,new ni.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return ni.isNode&&be.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function zne(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Gne(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&be.isArray(i)?i.length:o,l?(be.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!be.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&be.isArray(i[o])&&(i[o]=Gne(i[o])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const r={};return be.forEachEntry(e,(n,i)=>{t(zne(n),i,r,0)}),r}return null}function $ne(e,t,r){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Jg={transitional:LG,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=be.isObject(t);if(a&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(PG(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Vne(t,this.formSerializer).toString();if((s=be.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return IS(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),$ne(t)):t}],transformResponse:[function(t){const r=this.transitional||Jg.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?kt.from(s,kt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{Jg.headers[e]={}});const Hne=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Une=e=>{const t={};let r,n,i;return e&&e.split(` -`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Hne[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},uk=Symbol("internals");function cv(e){return e&&String(e).trim().toLowerCase()}function u_(e){return e===!1||e==null?e:be.isArray(e)?e.map(u_):String(e)}function Wne(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Yne=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ix(e,t,r,n,i){if(be.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!be.isString(t)){if(be.isString(n))return t.indexOf(n)!==-1;if(be.isRegExp(n))return n.test(t)}}function Xne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Zne(e,t){const r=be.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}class $i{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const c=cv(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=u_(s))}const o=(s,l)=>be.forEach(s,(u,c)=>a(u,c,l));if(be.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(be.isString(t)&&(t=t.trim())&&!Yne(t))o(Une(t),r);else if(be.isHeaders(t))for(const[s,l]of t.entries())a(l,s,n);else t!=null&&a(r,t,n);return this}get(t,r){if(t=cv(t),t){const n=be.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Wne(i);if(be.isFunction(r))return r.call(this,i,n);if(be.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=cv(t),t){const n=be.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ix(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=cv(o),o){const s=be.findKey(n,o);s&&(!r||ix(n,n[s],s,r))&&(delete n[s],i=!0)}}return be.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||ix(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return be.forEach(this,(i,a)=>{const o=be.findKey(n,a);if(o){r[o]=u_(i),delete r[a];return}const s=t?Xne(a):String(a).trim();s!==a&&delete r[a],r[s]=u_(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return be.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&be.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[uk]=this[uk]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=cv(o);n[s]||(Zne(i,o),n[s]=!0)}return be.isArray(t)?t.forEach(a):a(t),this}}$i.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors($i.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});be.freezeMethods($i);function ax(e,t){const r=this||Jg,n=t||r,i=$i.from(n.headers);let a=n.data;return be.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function EG(e){return!!(e&&e.__CANCEL__)}function Cd(e,t,r){kt.call(this,e??"canceled",kt.ERR_CANCELED,t,r),this.name="CanceledError"}be.inherits(Cd,kt,{__CANCEL__:!0});function RG(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new kt("Request failed with status code "+r.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qne(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jne(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let f=a,h=0;for(;f!==i;)h+=r[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{r=c,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-r;f>=n?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-f)))},()=>i&&o(i)]}const t1=(e,t,r=3)=>{let n=0;const i=jne(50,250);return Kne(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},ck=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},fk=e=>(...t)=>be.asap(()=>e(...t)),Jne=ni.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ni.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ni.origin),ni.navigator&&/(msie|trident)/i.test(ni.navigator.userAgent)):()=>!0,Qne=ni.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];be.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),be.isString(n)&&o.push("path="+n),be.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eie(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tie(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kG(e,t){return e&&!eie(t)?tie(e,t):t}const hk=e=>e instanceof $i?{...e}:e;function gf(e,t){t=t||{};const r={};function n(u,c,f,h){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:h},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,h){if(be.isUndefined(c)){if(!be.isUndefined(u))return n(void 0,u,f,h)}else return n(u,c,f,h)}function a(u,c){if(!be.isUndefined(c))return n(void 0,c)}function o(u,c){if(be.isUndefined(c)){if(!be.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in t)return n(u,c);if(f in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,f)=>i(hk(u),hk(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,h=f(e[c],t[c],c);be.isUndefined(h)&&f!==s||(r[c]=h)}),r}const OG=e=>{const t=gf({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=$i.from(o),t.url=IG(kG(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(r)){if(ni.hasStandardBrowserEnv||ni.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ni.hasStandardBrowserEnv&&(n&&be.isFunction(n)&&(n=n(t)),n||n!==!1&&Jne(t.url))){const u=i&&a&&Qne.read(a);u&&o.set(i,u)}return t},rie=typeof XMLHttpRequest<"u",nie=rie&&function(e){return new Promise(function(r,n){const i=OG(e);let a=i.data;const o=$i.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,v;function p(){d&&d(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const b=$i.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:b,config:e,request:m};RG(function(A){r(A),p()},function(A){n(A),p()},C),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(n(new kt("Request aborted",kt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new kt("Network Error",kt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||LG;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),n(new kt(w,C.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&be.forEach(o.toJSON(),function(w,C){m.setRequestHeader(C,w)}),be.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([h,v]=t1(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([f,d]=t1(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=b=>{m&&(n(!b||b.type?new Cd(null,e,m):b),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const S=qne(i.url);if(S&&ni.protocols.indexOf(S)===-1){n(new kt("Unsupported protocol "+S+":",kt.ERR_BAD_REQUEST,e));return}m.send(a||null)})},iie=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof kt?c:new Cd(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new kt(`timeout ${t} of ms exceeded`,kt.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>be.asap(s),l}},aie=function*(e,t){let r=e.byteLength;if(r{const i=oie(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let f=c.byteLength;if(r){let h=a+=f;r(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},LS=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",NG=LS&&typeof ReadableStream=="function",lie=LS&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),FG=(e,...t)=>{try{return!!e(...t)}catch{return!1}},uie=NG&&FG(()=>{let e=!1;const t=new Request(ni.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),vk=64*1024,bA=NG&&FG(()=>be.isReadableStream(new Response("").body)),r1={stream:bA&&(e=>e.body)};LS&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!r1[t]&&(r1[t]=be.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new kt(`Response type '${t}' is not supported`,kt.ERR_NOT_SUPPORT,n)})})})(new Response);const cie=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(ni.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await lie(e)).byteLength},fie=async(e,t)=>{const r=be.toFiniteNumber(e.getContentLength());return r??cie(t)},hie=LS&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=OG(e);u=u?(u+"").toLowerCase():"text";let d=iie([i,a&&a.toAbortSignal()],o),v;const p=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&uie&&r!=="get"&&r!=="head"&&(m=await fie(c,n))!==0){let C=new Request(t,{method:"POST",body:n,duplex:"half"}),x;if(be.isFormData(n)&&(x=C.headers.get("content-type"))&&c.setContentType(x),C.body){const[A,D]=ck(m,t1(fk(l)));n=dk(C.body,vk,A,D)}}be.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:d,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let S=await fetch(v);const b=bA&&(u==="stream"||u==="response");if(bA&&(s||b&&p)){const C={};["status","statusText","headers"].forEach(M=>{C[M]=S[M]});const x=be.toFiniteNumber(S.headers.get("content-length")),[A,D]=s&&ck(x,t1(fk(s),!0))||[];S=new Response(dk(S.body,vk,A,()=>{D&&D(),p&&p()}),C)}u=u||"text";let w=await r1[be.findKey(r1,u)||"text"](S,e);return!b&&p&&p(),await new Promise((C,x)=>{RG(C,x,{data:w,headers:$i.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new kt("Network Error",kt.ERR_NETWORK,e,v),{cause:y.cause||y}):kt.from(y,y&&y.code,e,v)}}),wA={http:Dne,xhr:nie,fetch:hie};be.forEach(wA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pk=e=>`- ${e}`,die=e=>be.isFunction(e)||e===null||e===!1,BG={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : -`+a.map(pk).join(` -`):" "+pk(a[0]):"as no adapter specified";throw new kt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:wA};function ox(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cd(null,e)}function gk(e){return ox(e),e.headers=$i.from(e.headers),e.data=ax.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),BG.getAdapter(e.adapter||Jg.adapter)(e).then(function(n){return ox(e),n.data=ax.call(e,e.transformResponse,n),n.headers=$i.from(n.headers),n},function(n){return EG(n)||(ox(e),n&&n.response&&(n.response.data=ax.call(e,e.transformResponse,n.response),n.response.headers=$i.from(n.response.headers))),Promise.reject(n)})}const VG="1.7.8",PS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{PS[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mk={};PS.transitional=function(t,r,n){function i(a,o){return"[Axios v"+VG+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new kt(i(o," has been removed"+(r?" in "+r:"")),kt.ERR_DEPRECATED);return r&&!mk[o]&&(mk[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};PS.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function vie(e,t,r){if(typeof e!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new kt("option "+a+" must be "+l,kt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new kt("Unknown option "+a,kt.ERR_BAD_OPTION)}}const c_={assertOptions:vie,validators:PS},Po=c_.validators;class Qc{constructor(t){this.defaults=t,this.interceptors={request:new lk,response:new lk}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=gf(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&c_.assertOptions(n,{silentJSONParsing:Po.transitional(Po.boolean),forcedJSONParsing:Po.transitional(Po.boolean),clarifyTimeoutError:Po.transitional(Po.boolean)},!1),i!=null&&(be.isFunction(i)?r.paramsSerializer={serialize:i}:c_.assertOptions(i,{encode:Po.function,serialize:Po.function},!0)),c_.assertOptions(r,{baseUrl:Po.spelling("baseURL"),withXsrfToken:Po.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&be.merge(a.common,a[r.method]);a&&be.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),r.headers=$i.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,h;if(!l){const v=[gk.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),h=v.length,c=Promise.resolve(r);f{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Cd(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new pM(function(i){t=i}),cancel:t}}}function pie(e){return function(r){return e.apply(null,r)}}function gie(e){return be.isObject(e)&&e.isAxiosError===!0}const xA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xA).forEach(([e,t])=>{xA[t]=e});function zG(e){const t=new Qc(e),r=mG(Qc.prototype.request,t);return be.extend(r,Qc.prototype,t,{allOwnKeys:!0}),be.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return zG(gf(e,i))},r}const Zt=zG(Jg);Zt.Axios=Qc;Zt.CanceledError=Cd;Zt.CancelToken=pM;Zt.isCancel=EG;Zt.VERSION=VG;Zt.toFormData=IS;Zt.AxiosError=kt;Zt.Cancel=Zt.CanceledError;Zt.all=function(t){return Promise.all(t)};Zt.spread=pie;Zt.isAxiosError=gie;Zt.mergeConfig=gf;Zt.AxiosHeaders=$i;Zt.formToJSON=e=>PG(be.isHTMLForm(e)?new FormData(e):e);Zt.getAdapter=BG.getAdapter;Zt.HttpStatusCode=xA;Zt.default=Zt;Zt.interceptors.request.use(e=>{var t,r,n,i;return e.baseURL=((t=ql.value)==null?void 0:t.protocol)+"://"+((r=ql.value)==null?void 0:r.host)+":"+((n=ql.value)==null?void 0:n.port),e.headers.Authorization="Bearer "+((i=ql.value)==null?void 0:i.password),e});const gM=Ye(),mie=()=>Zt.get("/version"),Vc=at(()=>{var e;return(e=gM.value)==null?void 0:e.includes("sing-box")}),GG=Ye("1.19.0");Sr(ql,async e=>{if(e){const{data:t}=await mie();gM.value=t.version}},{immediate:!0});const yie=()=>Zt.get("/proxies"),_ie=(e,t)=>Zt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),Sie=(e,t,r)=>Zt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),bie=(e,t,r)=>Zt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:r}}),wie=()=>Zt.get("/providers/proxies"),$G=e=>Zt.put(`/providers/proxies/${encodeURIComponent(e)}`),xie=e=>Zt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),Cie=()=>Zt.get("/rules"),Tie=()=>Zt.get("/providers/rules"),HG=e=>Zt.put(`/providers/rules/${encodeURIComponent(e)}`),ES=e=>Zt.delete(`/connections/${e}`),Aie=()=>Zt.get("/configs"),Die=e=>Zt.patch("/configs",e),yk=()=>Zt.post("/cache/fakeip/flush"),Mie=()=>Zt.put("/configs?reload=true",{path:"",payload:""}),Iie=()=>Zt.post("/upgrade/ui"),Lie=()=>Zt.post("/upgrade"),RS=(e,t)=>{const r=ql.value,n=new URL(`${(r==null?void 0:r.protocol)==="https"?"wss":"ws"}://${r==null?void 0:r.host}:${r==null?void 0:r.port}/${e}`);return n.searchParams.append("token",(r==null?void 0:r.password)||""),t&&Object.entries(t).forEach(([i,a])=>{n.searchParams.append(i,a)}),Lre(n,{autoClose:!1,autoReconnect:!0})},Pie=()=>RS("connections"),Eie=(e={})=>RS("logs",e),Rie=()=>RS("memory"),kie=()=>RS("traffic"),Oie=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${GG.value}`},Yo=Ye([]),f_=Ye([]),n1=Ye(0),i1=Ye(0);let My;const Nie=()=>{My==null||My(),Yo.value=[],f_.value=[],n1.value=0,i1.value=0;const e=Pie(),t=Sr(e.data,r=>{var i;if(!r)return;const n=JSON.parse(r);n1.value=n.downloadTotal,i1.value=n.uploadTotal,!v_.value&&(f_.value=[...f_.value,...vf.differenceWith(Yo.value,n.connections,(a,o)=>a.id===o.id)],Yo.value=((i=n.connections)==null?void 0:i.map(a=>{const o=Yo.value.find(s=>s.id===a.id);return o?{...a,downloadSpeed:a.download-o.download,uploadSpeed:a.upload-o.upload}:{...a,downloadSpeed:0,uploadSpeed:0}}))??[])});My=()=>{t(),e.close()}},Mp=Or("config/quick-filter-regex","direct"),h_=Or("config/quick-filter-enabled",!1),Jv=Ye(Oc.ACTIVE),_k={[Fi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[Fi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[Fi.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[Fi.DOWNLOAD]:(e,t)=>t.download-e.download,[Fi.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[Fi.UPLOAD]:(e,t)=>t.upload-e.upload,[Fi.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[Fi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[Fi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[Fi.CONNECT_TIME]:(e,t)=>hu(t.start).valueOf()-hu(e.start).valueOf()},d_=Or("config/connection-sort-type",Fi.HOST),Ip=Ye(""),v_=Ye(!1),a1=at(()=>(Jv.value===Oc.ACTIVE?Yo.value:f_.value).filter(e=>{if(h_.value&&Mp.value){const t=new RegExp(Mp.value,"i");if(t.test(e.chains.join(""))||t.test(e.metadata.host)||t.test(e.metadata.destinationIP))return!1}return Vl.value&&e.metadata.sourceIP!==Vl.value?!1:Ip.value?[e.metadata.host,e.metadata.destinationIP,e.metadata.destinationPort,e.metadata.sourceIP,e.metadata.sourcePort,e.metadata.processPath,e.metadata.type,e.metadata.network,e.chains.join(""),e.rule].some(t=>t==null?void 0:t.includes(Ip.value)):!0}).sort((e,t)=>{const r=Fc.value?_k[d_.value](e,t):_k[Fi.HOST](e,t);return r===0?e.id.localeCompare(t.id):r})),Vl=Ye(""),Fie=at(()=>kre.uniq(Yo.value.map(e=>e.metadata.sourceIP)).sort()),Ic="GLOBAL",CA=Ye([]),qs=Ye({}),mM=Ye({}),Wh=Ye([]),kS=e=>mM.value[UG(e)],id=async()=>{const{data:e}=await yie(),{data:t}=await wie(),r=e.proxies[Ic].all??[];qs.value=e.proxies,CA.value=Object.values(e.proxies).filter(n=>{var i;return((i=n.all)==null?void 0:i.length)&&n.name!==Ic&&!(n!=null&&n.hidden)}).sort((n,i)=>r.indexOf(n.name)-r.indexOf(i.name)).map(n=>n.name),mM.value=Object.fromEntries(Object.entries(e.proxies).map(([n,i])=>[n,Gie(i)])),Wh.value=Object.values(t.providers).filter(n=>n.name!=="default"&&n.vehicleType!=="Compatible")},Bie=async(e,t)=>{await _ie(e,t),qs.value[e].now=t,a_.value&&Yo.value.filter(r=>r.chains.includes(e)).forEach(r=>ES(r.id))},Vie=async e=>{const{data:t}=await Sie(e,Cp.value,Tp.value);mM.value[UG(e)]=t.delay},zie=async e=>{await bie(e,Cp.value,Tp.value),await id()},Gie=e=>{var t;return((t=vf.last(e.history))==null?void 0:t.delay)??0},UG=e=>{let t=qs.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const r=qs.value[t.now];if(!r)return t.name;t=r}return t.name},$ie=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],Hie=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Uie=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Wie=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],Sk=(e,t,r)=>{let n=e;return typeof t=="string"||Array.isArray(t)?n=e.toLocaleString(t,r):(t===!0||r!==void 0)&&(n=e.toLocaleString(void 0,r)),n};function Yie(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const r=t.bits?t.binary?Wie:Uie:t.binary?Hie:$ie,n=t.space?" ":"";if(t.signed&&e===0)return` 0${n}${r[0]}`;const i=e<0,a=i?"-":t.signed?"+":"";i&&(e=-e);let o;if(t.minimumFractionDigits!==void 0&&(o={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(o={maximumFractionDigits:t.maximumFractionDigits,...o}),e<1){const c=Sk(e,t.locale,o);return a+c+n+r[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);e/=(t.binary?1024:1e3)**s,o||(e=e.toPrecision(3));const l=Sk(Number(e),t.locale,o),u=r[s];return a+l+n+u}const Wr=(e,t)=>Yie(e,{binary:!1,...t}),Xie=Pre(),WG=at(()=>Xie.width.value>1280),OS=e=>hu(e).locale(sa.value).fromNow(),Iy=e=>{const t=kS(e);return t===0?1/0:t},Zie=e=>{const t=qs.value[e];return t?["direct","reject"].includes(t.type.toLowerCase())||!!t.all:!1},YG=e=>{switch(e=[...e],o_.value&&(e=e.filter(t=>Zie(t)||kS(t)>0)),i_.value){case Wl.DEFAULT:return e;case Wl.NAME_ASC:return e.sort((t,r)=>t.localeCompare(r));case Wl.NAME_DESC:return e.sort((t,r)=>r.localeCompare(t));case Wl.LATENCY_ASC:return e.sort((t,r)=>Iy(t)-Iy(r));case Wl.LATENCY_DESC:return e.sort((t,r)=>Iy(r)-Iy(t))}},yM=e=>{const t=e.includes(":");for(const r in Ls.value)if(e===r||t&&e.endsWith(r))return Ls.value[r];return e},XG=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-";function ZG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function qie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function jie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function qG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})])}function Kie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m12.75 15 3-3m0 0-3-3m3 3h-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function jG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m15 11.25-3-3m0 0-3 3m3-3v7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function bk(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function _M(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})])}function Jie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function KG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"})])}function JG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Qie(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"})])}function QG(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})])}function e$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"})])}function t$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function wk(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"})])}function xk(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})])}function r$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function n$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function i$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})])}function a$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function eae(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function o$(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"})])}function SM(e,t){return oe(),ve("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[X("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const bM="-",tae=e=>{const t=nae(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(bM);return s[0]===""&&s.length!==1&&s.shift(),s$(s,t)||rae(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},s$=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?s$(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(bM);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},Ck=/^\[(.+)\]$/,rae=e=>{if(Ck.test(e)){const t=Ck.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nae=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return aae(Object.entries(e.classGroups),r).forEach(([a,o])=>{TA(o,n,a,t)}),n},TA=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:Tk(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(iae(i)){TA(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{TA(o,Tk(t,a),r,n)})})},Tk=(e,t)=>{let r=e;return t.split(bM).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},iae=e=>e.isThemeGetter,aae=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,oae=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},l$="!",sae=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let m=0;mc?f-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:v,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},lae=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},uae=e=>({cache:oae(e.cacheSize),parseClassName:sae(e),...tae(e)}),cae=/\s+/,fae=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(cae);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:d}=r(u);let v=!!d,p=n(v?h.substring(0,d):h);if(!p){if(!v){s=u+(s.length>0?" "+s:s);continue}if(p=n(h),!p){s=u+(s.length>0?" "+s:s);continue}v=!1}const m=lae(c).join(":"),y=f?m+l$:m,S=y+p;if(a.includes(S))continue;a.push(S);const b=i(p,v);for(let w=0;w0?" "+s:s)}return s};function hae(){let e=0,t,r,n="";for(;e{if(typeof e=="string")return e;let t,r="";for(let n=0;nf(c),e());return r=uae(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=fae(l,r);return i(l,c),c}return function(){return a(hae.apply(null,arguments))}}const Gr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},c$=/^\[(?:([a-z-]+):)?(.+)\]$/i,vae=/^\d+\/\d+$/,pae=new Set(["px","full","screen"]),gae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mae=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,xs=e=>Yh(e)||pae.has(e)||vae.test(e),wl=e=>Td(e,"length",Mae),Yh=e=>!!e&&!Number.isNaN(Number(e)),sx=e=>Td(e,"number",Yh),fv=e=>!!e&&Number.isInteger(Number(e)),bae=e=>e.endsWith("%")&&Yh(e.slice(0,-1)),Vt=e=>c$.test(e),xl=e=>gae.test(e),wae=new Set(["length","size","percentage"]),xae=e=>Td(e,wae,f$),Cae=e=>Td(e,"position",f$),Tae=new Set(["image","url"]),Aae=e=>Td(e,Tae,Lae),Dae=e=>Td(e,"",Iae),hv=()=>!0,Td=(e,t,r)=>{const n=c$.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Mae=e=>mae.test(e)&&!yae.test(e),f$=()=>!1,Iae=e=>_ae.test(e),Lae=e=>Sae.test(e),Pae=()=>{const e=Gr("colors"),t=Gr("spacing"),r=Gr("blur"),n=Gr("brightness"),i=Gr("borderColor"),a=Gr("borderRadius"),o=Gr("borderSpacing"),s=Gr("borderWidth"),l=Gr("contrast"),u=Gr("grayscale"),c=Gr("hueRotate"),f=Gr("invert"),h=Gr("gap"),d=Gr("gradientColorStops"),v=Gr("gradientColorStopPositions"),p=Gr("inset"),m=Gr("margin"),y=Gr("opacity"),S=Gr("padding"),b=Gr("saturate"),w=Gr("scale"),C=Gr("sepia"),x=Gr("skew"),A=Gr("space"),D=Gr("translate"),M=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Vt,t],R=()=>[Vt,t],N=()=>["",xs,wl],O=()=>["auto",Yh,Vt],F=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["start","end","center","between","around","evenly","stretch"],j=()=>["","0",Vt],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Yh,Vt];return{cacheSize:500,separator:":",theme:{colors:[hv],spacing:[xs,wl],blur:["none","",xl,Vt],brightness:te(),borderColor:[e],borderRadius:["none","","full",xl,Vt],borderSpacing:R(),borderWidth:N(),contrast:te(),grayscale:j(),hueRotate:te(),invert:j(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[bae,wl],inset:P(),margin:P(),opacity:te(),padding:R(),saturate:te(),scale:te(),sepia:j(),skew:te(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",Vt]}],container:["container"],columns:[{columns:[xl]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...F(),Vt]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fv,Vt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Vt]}],grow:[{grow:j()}],shrink:[{shrink:j()}],order:[{order:["first","last","none",fv,Vt]}],"grid-cols":[{"grid-cols":[hv]}],"col-start-end":[{col:["auto",{span:["full",fv,Vt]},Vt]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[hv]}],"row-start-end":[{row:["auto",{span:[fv,Vt]},Vt]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Vt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Vt]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Vt,t]}],"min-w":[{"min-w":[Vt,t,"min","max","fit"]}],"max-w":[{"max-w":[Vt,t,"none","full","min","max","fit","prose",{screen:[xl]},xl]}],h:[{h:[Vt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Vt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Vt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xl,wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",sx]}],"font-family":[{font:[hv]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Vt]}],"line-clamp":[{"line-clamp":["none",Yh,sx]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",xs,Vt]}],"list-image":[{"list-image":["none",Vt]}],"list-style-type":[{list:["none","disc","decimal",Vt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",xs,wl]}],"underline-offset":[{"underline-offset":["auto",xs,Vt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...F(),Cae]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xae]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Aae]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[xs,Vt]}],"outline-w":[{outline:[xs,wl]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[xs,wl]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xl,Dae]}],"shadow-color":[{shadow:[hv]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xl,Vt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[b]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Vt]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",Vt]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",Vt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[fv,Vt]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Vt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Vt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Vt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[xs,wl,sx]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Tr=dae(Pae),Eae={class:"tabs-boxed tabs tabs-sm"},Rae={class:"shrink-0"},kae=["value"],Oae={class:"shrink-0"},Nae=["data-tip"],Fae=["value","label"],Bae={class:"join w-full flex-1"},Vae=["value","label"],zae=qt({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{a1.value.forEach(n=>{ES(n.id)})},r=at(()=>Fie.value.map(n=>({label:yM(n),value:n})));return(n,i)=>(oe(),ve("div",{class:Tt(q(Tr)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap pb-0"))},[X("div",Eae,[X("a",{role:"tab",class:Tt(q(Tr)("tab",q(Jv)===q(Oc).ACTIVE&&"tab-active")),onClick:i[0]||(i[0]=()=>Jv.value=q(Oc).ACTIVE)},Ie(n.$t("activeConnections")),3),X("a",{role:"tab",class:Tt(q(Tr)("tab",q(Jv)===q(Oc).CLOSED&&"tab-active")),onClick:i[1]||(i[1]=()=>Jv.value=q(Oc).CLOSED)},Ie(n.$t("closedConnections")),3)]),q(Fc)?(oe(),ve("div",{key:0,class:Tt(q(Tr)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[X("span",Rae,Ie(n.$t("sortBy"))+":",1),Qt(X("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":i[2]||(i[2]=a=>vt(d_)?d_.value=a:null)},[(oe(!0),ve(it,null,lr(Object.values(q(Fi)),a=>(oe(),ve("option",{key:a,value:a},Ie(n.$t(a)||a),9,kae))),128))],512),[[po,q(d_)]])],2)):Ut("",!0),X("div",{class:Tt(q(Tr)("flex w-full items-center gap-2",n.horizontal&&"sm:w-auto"))},[X("span",Oae,Ie(n.$t("quickFilter"))+": ",1),Qt(X("input",{type:"text",class:"input input-sm join-item input-bordered w-full","onUpdate:modelValue":i[3]||(i[3]=a=>vt(Mp)?Mp.value=a:null)},null,512),[[oa,q(Mp)]]),Qt(X("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":i[4]||(i[4]=a=>vt(h_)?h_.value=a:null)},null,512),[[Ea,q(h_)]]),X("div",{class:Tt(`tooltip ${n.horizontal?"tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ze(q(eae),{class:"h-4 w-4"})],10,Nae)],2),n.horizontal?Ut("",!0):Qt((oe(),ve("select",{key:1,class:"select select-bordered select-sm","onUpdate:modelValue":i[5]||(i[5]=a=>vt(Vl)?Vl.value=a:null)},[i[9]||(i[9]=X("option",{value:"",label:"all"},null,-1)),(oe(!0),ve(it,null,lr(r.value,a=>(oe(),ve("option",{key:a.value,value:a.value,label:a.label},null,8,Fae))),128))],512)),[[po,q(Vl)]]),X("div",Bae,[n.horizontal?Qt((oe(),ve("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":i[6]||(i[6]=a=>vt(Vl)?Vl.value=a:null)},[i[10]||(i[10]=X("option",{value:"",label:"all"},null,-1)),(oe(!0),ve(it,null,lr(r.value,a=>(oe(),ve("option",{key:a.value,value:a.value,label:a.label},null,8,Vae))),128))],512)),[[po,q(Vl)]]):Ut("",!0),Qt(X("input",{type:"text",class:"input input-sm join-item input-bordered w-32 flex-1","onUpdate:modelValue":i[7]||(i[7]=a=>vt(Ip)?Ip.value=a:null)},null,512),[[oa,q(Ip)]]),X("button",{class:"btn-bordered btn join-item btn-sm",onClick:i[8]||(i[8]=a=>v_.value=!q(v_))},[(oe(),er(du(q(v_)?q(i$):q(n$)),{class:"h-4 w-4"}))]),X("button",{class:"btn-bordered btn join-item btn-sm",onClick:t},[ze(q(SM),{class:"h-4 w-4"})])])],2))}}),h$=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},d$=h$(zae,[["__scopeId","data-v-944dd909"]]),Qv=Ye([]),Xh=Ye(""),p_=Ye(!1),g_=Or("config/log-level",Nc.Info);let Ly;const AA=()=>{Ly==null||Ly(),Qv.value=[];let e=1;const t=Eie({level:g_.value}),r=Sr(t.data,n=>{if(!n)return;const i=JSON.parse(n);if(p_.value){e++;return}Qv.value.unshift({...i,time:new Date().valueOf(),seq:e++}),Qv.value=Qv.value.slice(0,1e3)});Ly=()=>{r(),t.close()}},Gae=["value"],v$=qt({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,r)=>(oe(),ve("div",{class:Tt(q(Tr)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[Qt(X("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=n=>vt(g_)?g_.value=n:null),onChange:r[1]||(r[1]=(...n)=>q(AA)&&q(AA)(...n))},[(oe(!0),ve(it,null,lr(Object.values(q(Nc)),n=>(oe(),ve("option",{key:n,value:n},Ie(n),9,Gae))),128))],544),[[po,q(g_)]]),Qt(X("input",{type:"text",class:"input input-sm join-item input-bordered w-0 flex-1","onUpdate:modelValue":r[2]||(r[2]=n=>vt(Xh)?Xh.value=n:null)},null,512),[[oa,q(Xh)]]),X("button",{class:"btn-bordered btn join-item btn-sm",onClick:r[3]||(r[3]=n=>p_.value=!q(p_))},[(oe(),er(du(q(p_)?q(i$):q(n$)),{class:"h-4 w-4"}))])],2))}}),Xo=Ye(),p$=async()=>{Xo.value=(await Aie()).data},g$=async e=>{await Die(e),p$()},m$=Ye(hf.PROXIES),y$=at(()=>{var e;return m$.value===hf.PROVIDER?Wh.value.map(t=>t.name):Vc.value&&n_.value&&qs.value[Ic]?[...CA.value,Ic]:!Vc.value&&((e=Xo.value)==null?void 0:e.mode.toLocaleUpperCase())===Ic&&qs.value[Ic]?[Ic]:CA.value}),$ae=at(()=>xp.value&&y$.value.length>1),NS=()=>({proxiesTabShow:m$,renderGroups:y$,hasTwoColumns:$ae}),Hae={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},Uae=["onClick"],Wae={key:1,class:"flex flex-col gap-2"},Yae={key:1,class:"w-full sm:hidden"},Xae={class:"shrink-0"},Zae=["label","value"],qae=["value"],jae=["label","value"],_$=qt({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=NS(),r=Ye(!1),n=async()=>{if(!r.value){r.value=!0;try{await Promise.all(Wh.value.map(o=>$G(o.name))),await id(),r.value=!1}catch{await id(),r.value=!1}}},i=at(()=>{var o,s;return((o=Xo.value)==null?void 0:o["mode-list"])||((s=Xo.value)==null?void 0:s.modes)||["direct","rule","global"]}),a=o=>{const s=o.target.value;g$({mode:s})};return(o,s)=>q(Xo)?(oe(),ve("div",{key:0,class:Tt(q(Tr)("flex flex-col gap-2 p-2 text-sm",o.horizontal&&"flex-row flex-wrap pb-0"))},[q(Wh).length?(oe(),ve(it,{key:0},[q(Wh).length?(oe(),ve("div",Hae,[(oe(!0),ve(it,null,lr(q(hf),l=>(oe(),ve("a",{role:"tab",class:Tt(["tab",{"tab-active":q(t)===l}]),key:l,onClick:u=>t.value=l},Ie(o.$t(l)),11,Uae))),128))])):Ut("",!0),q(t)===q(hf).PROVIDER?(oe(),ve("div",Wae,[X("button",{class:Tt(q(Tr)("btn btn-sm",r.value?"animate-pulse":"")),onClick:n},Ie(o.$t("updateAllProviders")),3)])):Ut("",!0)],64)):Ut("",!0),o.horizontal?(oe(),ve("div",Yae)):Ut("",!0),X("div",{class:Tt(q(Tr)("flex w-full items-center gap-2",o.horizontal&&"sm:w-auto"))},[X("span",Xae,Ie(o.$t("hideUnavailable"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[0]||(s[0]=l=>vt(o_)?o_.value=l:null)},null,512),[[Ea,q(o_)]]),Qt(X("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[1]||(s[1]=l=>vt(i_)?i_.value=l:null)},[(oe(!0),ve(it,null,lr(Object.values(q(Wl)),l=>(oe(),ve("option",{key:l,label:o.$t(l),value:l},null,8,Zae))),128))],512),[[po,q(i_)]])],2),X("div",{class:Tt(q(Tr)("flex w-full items-center gap-2",o.horizontal&&"sm:w-auto"))},[X("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:q(Xo).mode,onChange:a},[(oe(!0),ve(it,null,lr(i.value,l=>(oe(),ve("option",{key:l,label:o.$t(l.toLowerCase())||l,value:l},null,8,jae))),128))],40,qae)],2)],2)):Ut("",!0)}}),Lp=Ye(nd.RULES),S$=Ye(),o1=Ye([]),s1=async()=>{const{data:e}=await Cie(),{data:t}=await Tie();S$.value=e.rules,o1.value=Object.values(t.providers)},Kae={role:"tablist",class:"tabs-boxed tabs tabs-sm"},Jae=["onClick"],Qae={key:0,class:"flex flex-col gap-2"},b$=qt({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ye(!1),r=async()=>{if(!t.value){t.value=!0;try{await Promise.all(o1.value.map(n=>HG(n.name))),await s1(),t.value=!1}catch{await s1(),t.value=!1}}};return(n,i)=>q(o1).length?(oe(),ve("div",{key:0,class:Tt(q(Tr)("flex flex-col gap-2 p-2",n.horizontal&&"flex-row pb-0"))},[X("div",Kae,[(oe(!0),ve(it,null,lr(q(nd),a=>(oe(),ve("a",{role:"tab",class:Tt(["tab",{"tab-active":q(Lp)===a}]),key:a,onClick:o=>Lp.value=a},Ie(n.$t(a)),11,Jae))),128))]),q(Lp)===q(nd).PROVIDER?(oe(),ve("div",Qae,[X("button",{class:Tt(q(Tr)("btn btn-sm",t.value?"animate-pulse":"")),onClick:r},Ie(n.$t("updateAllProviders")),3)])):Ut("",!0)],2)):Ut("",!0)}}),eoe="data:image/jpeg;base64,/9j/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIADAAMAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APXaKKx/EfirRfCdmLjWL1YiwzFAnzTS/wC6vp7nA96ZJsgEkAAknsKCCCQQQR2NfPHiT4wax4jvI7DTFbStMkkCMsb/AL6VScfM46A+i4/Gl8N/GDWPDl5JYamrarpkchRFkf8AfRKDgbXPUD0bP1FIdj6ForH8O+KtE8V2ZudHvVlKjMkD/LNF/vL6e4yPetimIK8D+KniNrf4iajpupWcWpaWscGyCU7XhzChJikHKHPOOVJ6g175Xzl8W7E3PxP1aWSeK3t0jtg0kh7+QnCqOWP0H1wOaQ0YVt4ct9QuYrzw3dtepG6vJYyqFu4lByTtHEgHqmT6qKLnw5b6fcy3niS7aySR2eOxhAa7lUnIJU8RA+r8+imqui3trBr2mwafBjN3EGuZwDI3zj7o6IPpk/7WOKNavbafXdSg1CD7t3KFuYFAkX5z94cBx9cH/axxQM7T4a+I2uPGsGnabZxaZphtrktBEdzykQuQZZD8znPOOFB6AV78hzGpPoK+b/hdYm28f2ksc8Vxbva3QWSNu/kPwynlT9R9MjmvpCP/AFa/QUCY6ue8UeDNF8WwbdUtA0wXEdzFhJo/TDY5Hs2R9K6GimI+edQ+FGt+GvENhd2gOpacl3EWlhQiSJd45dOSB7jI9xUVr8L9X13X768vydM0+S7lKPKhaWYbz/q4+p+pwPevoojPqCOhBwR9DUUVtFE7SKpMjfed2LMfxPNIdzmfDXgjS/D1qYrC0FtvXbLO5D3Ew7hn6KD/AHVwK6wDAAHQUUUxH//Z",toe="data:image/svg+xml,%3csvg%20width='1027'%20height='1109'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xml:space='preserve'%20overflow='hidden'%3e%3cdefs%3e%3cfilter%20id='fx0'%20x='-10%25'%20y='-10%25'%20width='120%25'%20height='120%25'%20filterUnits='userSpaceOnUse'%20primitiveUnits='userSpaceOnUse'%3e%3cfeComponentTransfer%20color-interpolation-filters='sRGB'%3e%3cfeFuncR%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncG%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncB%20type='discrete'%20tableValues='0%200'%20/%3e%3cfeFuncA%20type='linear'%20slope='0.4'%20intercept='0'%20/%3e%3c/feComponentTransfer%3e%3cfeGaussianBlur%20stdDeviation='4.58333%204.58333'%20/%3e%3c/filter%3e%3cclipPath%20id='clip1'%3e%3crect%20x='692'%20y='855'%20width='1027'%20height='1109'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip2'%3e%3crect%20x='-2'%20y='-2'%20width='541'%20height='786'%20/%3e%3c/clipPath%3e%3cclipPath%20id='clip3'%3e%3crect%20x='0'%20y='0'%20width='535'%20height='782'%20/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23clip1)'%20transform='translate(-692%20-855)'%3e%3cpath%20d='M692%201191%20692%201575.69C692%201640.41%20731.499%201651.19%20731.499%201651.19L1148.03%201931.62C1212.66%201974.77%201194.71%201881.29%201194.71%201881.29L1194.71%201528.96%20692%201191Z'%20fill='%2337474F'%20fill-rule='evenodd'%20/%3e%3cg%20clip-path='url(%23clip2)'%20filter='url(%23fx0)'%20transform='translate(1184%201182)'%3e%3cg%20clip-path='url(%23clip3)'%3e%3cpath%20d='M520.482%2015.4819%20520.482%20400.176C520.482%20464.89%20480.983%20475.676%20480.983%20475.676%20480.983%20475.676%20129.086%20712.963%2064.4523%20756.106-0.181814%20799.25%2017.7721%20705.773%2017.7721%20705.773L17.7721%20353.437%20520.482%2015.4819Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M1698%201191%201698%201575.69C1698%201640.41%201658.5%201651.19%201658.5%201651.19%201658.5%201651.19%201306.6%201888.48%201241.97%201931.62%201177.34%201974.77%201195.29%201881.29%201195.29%201881.29L1195.29%201528.96%201698%201191Z'%20fill='%23455A64'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1241.71%20868.473C1212.96%20850.509%201169.85%20850.509%201144.7%20868.473L713.557%201163.07C684.814%201181.04%20684.814%201213.37%20713.557%201231.33L1144.7%201529.53C1173.44%201547.49%201216.56%201547.49%201241.71%201529.53L1676.44%201227.74C1705.19%201209.78%201705.19%201177.44%201676.44%201159.48L1241.71%20868.473Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1195%201949C1173.4%201949%201159%201935.19%201159%201917.92L1159%201531.08C1159%201513.82%201173.4%201500%201195%201500%201216.6%201500%201231%201513.82%201231%201531.08L1231%201914.46C1231%201935.19%201216.6%201949%201195%201949Z'%20fill='%23546E7A'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1553.92%201435.92C1553.92%201471.89%201557.5%201486.27%201518.03%201511.45L1428.32%201568.99C1388.85%201594.17%201374.5%201572.59%201374.5%201540.22L1374.5%201446.71C1374.5%201439.52%201374.5%201435.92%201363.73%201428.73%201270.43%201363.99%20911.591%201115.84%20847%201069.09L1012.07%20954C1058.72%20982.772%201399.61%201209.35%201539.56%201306.45%201546.74%201310.05%201550.33%201317.24%201550.33%201320.84L1550.33%201435.92Z'%20fill='%2399AAB5'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.41%201310.21C1399.82%201213.17%201058.79%20986.752%201015.72%20958L951.103%20997.534%20847%201069.41C911.615%201116.14%201270.59%201360.53%201363.92%201425.22%201371.1%201428.81%201371.1%201432.41%201371.1%201436L1547%201313.8C1547%201313.8%201547%201310.21%201543.41%201310.21Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1554.9%201435.48%201554.9%201324.19C1554.9%201317.01%201551.3%201313.42%201544.11%201309.83%201400.28%201212.89%201058.67%20986.721%201015.51%20958L940%201008.26C1062.26%201090.83%201389.49%201306.24%201475.79%201367.27%201486.58%201374.45%201486.58%201381.63%201486.58%201385.22L1486.58%201536%201522.54%201510.87C1558.5%201485.74%201554.9%201467.79%201554.9%201435.48Z'%20fill='%23CCD6DD'%20fill-rule='evenodd'%20/%3e%3cpath%20d='M1543.23%201309.95C1399.6%201212.98%201058.49%20986.731%201015.4%20958L940%201008.28C1062.08%201090.88%201388.83%201306.36%201475.01%201367.41%201475.01%201367.41%201478.6%201371%201478.6%201371L1554%201317.13C1546.82%201313.54%201546.82%201309.95%201543.23%201309.95Z'%20fill='%23E1E8ED'%20fill-rule='evenodd'%20/%3e%3c/g%3e%3c/svg%3e",l1=new Array(60).fill(0).map((e,t)=>({name:t,value:e})),wM=Ye(0),xM=Ye(0),CM=Ye(0),ep=Ye([...l1]),tp=Ye([...l1]);let Py;const roe=()=>{Py==null||Py(),ep.value=[...l1],tp.value=[...l1];const e=Rie(),t=Sr(e.data,i=>{if(!i)return;const a=JSON.parse(i);wM.value=a.inuse}),r=kie(),n=Sr(r.data,i=>{if(!i)return;const a=JSON.parse(i),o=Date.now().valueOf();xM.value=a.down,CM.value=a.up,ep.value.push({value:a.down,name:o}),tp.value.push({value:a.up,name:o}),ep.value=ep.value.slice(-60),tp.value=tp.value.slice(-60)});Py=()=>{e.close(),t(),r.close(),n()}},noe={class:"flex gap-2"},ioe=["value"],w$=qt({__name:"BackendSwitch",setup(e){const t=at(()=>pf.value.map(n=>({label:`${n.protocol}://${n.host}:${n.port}`,value:n.uuid}))),r=()=>{Fs.value=null};return(n,i)=>(oe(),ve("div",noe,[Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":i[0]||(i[0]=a=>vt(Fs)?Fs.value=a:null)},[(oe(!0),ve(it,null,lr(t.value,a=>(oe(),ve("option",{key:a.value,value:a.value},Ie(a.label),9,ioe))),128))],512),[[po,q(Fs)]]),X("button",{class:"btn btn-circle btn-xs",onClick:r},[ze(q(a$),{class:"h-4 w-4"})])]))}}),aoe={class:"flex flex-col gap-2 p-2 text-xs"},ooe={class:"grid grid-cols-2 gap-2"},soe={class:"flex gap-1"},loe=["src"],uoe={class:"flex"},coe=qt({__name:"CommonCtrl",setup(e){return(t,r)=>(oe(),ve("div",aoe,[X("div",ooe,[X("div",null,Ie(t.$t("connections"))+": "+Ie(q(Yo).length),1),X("div",null,Ie(t.$t("memoryUsage"))+": "+Ie(q(Wr)(q(wM),{binary:!0})),1),X("div",null,Ie(t.$t("download"))+": "+Ie(q(Wr)(q(n1))),1),X("div",null,Ie(t.$t("dlSpeed"))+": "+Ie(q(Wr)(q(xM)))+"/s",1),X("div",null,Ie(t.$t("upload"))+": "+Ie(q(Wr)(q(i1))),1),X("div",null,Ie(t.$t("ulSpeed"))+": "+Ie(q(Wr)(q(CM)))+"/s",1)]),X("div",soe,[Xt(Ie(t.$t("version"))+": ",1),X("img",{src:q(Vc)?q(toe):q(eoe),class:"w-4 rounded-sm"},null,8,loe),Xt(" "+Ie(q(gM)),1)]),X("div",uoe,[ze(w$,{class:"flex-1"}),X("button",{class:"btn btn-circle btn-ghost btn-xs",onClick:r[0]||(r[0]=n=>Kc.value=!0)},[ze(q(jie),{class:"h-5 w-5"})])])]))}});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var DA=function(e,t){return DA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},DA(e,t)};function Q(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");DA(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var foe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),hoe=function(){function e(){this.browser=new foe,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}(),At=new hoe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(At.wxa=!0,At.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?At.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(At.node=!0,At.svgSupported=!0):doe(navigator.userAgent,At);function doe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[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 TM=12,x$="sans-serif",gu=TM+"px "+x$,voe=20,poe=100,goe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function moe(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>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",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function Boe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;o.push(h,d),l=l&&a&&h===a[f]&&d===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Ik(s,o):Ik(o,s))}function L$(e){return e.nodeName.toUpperCase()==="CANVAS"}var Voe=/([&<>"'])/g,zoe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bi(e){return e==null?"":(e+"").replace(Voe,function(t,r){return zoe[r]})}var Goe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ux=[],$oe=At.browser.firefox&&+At.browser.version.split(".")[0]<39;function kA(e,t,r,n){return r=r||{},n?Pk(e,t,r):$oe&&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):Pk(e,t,r),r}function Pk(e,t,r){if(At.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(L$(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(RA(ux,e,n,i)){r.zrX=ux[0],r.zrY=ux[1];return}}r.zrX=r.zrY=0}function EM(e){return e||window.event}function Ia(e,t,r){if(t=EM(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&kA(e,o,t,r)}else{kA(e,t,t,r);var a=Hoe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Goe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Hoe(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function OA(e,t,r,n){e.addEventListener(t,r,n)}function Uoe(e,t,r,n){e.removeEventListener(t,r,n)}var js=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Ek(e){return e.which===2||e.which===3}var Woe=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 i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Rk(n)/Rk(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Yoe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function ca(){return[1,0,0,1,0,0]}function zS(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function RM(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 Us(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=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]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function as(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Mf(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=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]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*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 kM(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function Md(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Xoe(e){var t=ca();return RM(t,e),t}var ut=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,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Ry=Math.min,ky=Math.max,Yu=new ut,Xu=new ut,Zu=new ut,qu=new ut,dv=new ut,vv=new ut,ht=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Ry(t.x,this.x),n=Ry(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ky(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ky(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,i=t.height/r.height,a=ca();return as(a,a,[-r.x,-r.y]),kM(a,a,[n,i]),as(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=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,h=!(av&&(v=b,pv&&(v=w,y=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 i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Yu.x=Zu.x=r.x,Yu.y=qu.y=r.y,Xu.x=qu.x=r.x+r.width,Xu.y=Zu.y=r.y+r.height,Yu.transform(n),qu.transform(n),Xu.transform(n),Zu.transform(n),t.x=Ry(Yu.x,Xu.x,Zu.x,qu.x),t.y=Ry(Yu.y,Xu.y,Zu.y,qu.y);var l=ky(Yu.x,Xu.x,Zu.x,qu.x),u=ky(Yu.y,Xu.y,Zu.y,qu.y);t.width=l-t.x,t.height=u-t.y},e}(),P$="silent";function Zoe(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:qoe}}function qoe(){js(this.event)}var joe=function(e){Q(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}(Ya),pv=function(){function e(t,r){this.x=t,this.y=r}return e}(),Koe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fx=new ht(0,0,0,0),E$=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new pv(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new joe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new koe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(E(Koe,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,i=r.zrY,a=R$(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new pv(n,i):this.findHover(n,i),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 pv(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.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,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Zoe(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.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,i){var a=this.storage.getDisplayList(),o=new pv(r,n);if(kk(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ht(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var h=a[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(fx.copy(h.getBoundingRect()),h.transform&&fx.applyTransform(h.transform),fx.intersect(c)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Joe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?P$:!0}return!1}function kk(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Joe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==P$)){t.target=o;break}}}function R$(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var k$=32,gv=7;function Qoe(e){for(var t=0;e>=k$;)t|=e&1,e>>=1;return e+t}function Ok(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function ese(e,t,r){for(r--;t>>1,i(a,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]=a}}function hx(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function dx(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function tse(e,t){var r=gv,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]=gv||A>=gv);if(D)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),v===1){for(y=0;y=0;y--)e[x+y]=e[C+y];e[w]=o[b];return}for(var A=r;;){var D=0,M=0,I=!1;do if(t(o[b],e[S])<0){if(e[w--]=e[S--],D++,M=0,--v===0){I=!0;break}}else if(e[w--]=o[b--],M++,D=0,--m===1){I=!0;break}while((D|M)=0;y--)e[x+y]=e[C+y];if(v===0){I=!0;break}}if(e[w--]=o[b--],--m===1){I=!0;break}if(M=m-hx(e[S],o,0,m,m-1,t),M!==0){for(w-=M,b-=M,m-=M,x=w+1,C=b+1,y=0;y=gv||M>=gv);if(I)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),m===1){for(w-=v,S-=v,x=w+1,C=S+1,y=v-1;y>=0;y--)e[x+y]=e[C+y];e[w]=o[b]}else{if(m===0)throw new Error;for(C=w-(m-1),y=0;ys&&(l=s),Nk(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var na=1,rp=2,Th=4,Fk=!1;function vx(){Fk||(Fk=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bk(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rse=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bk}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(vx(),c.z=0),isNaN(c.z2)&&(vx(),c.z2=0),isNaN(c.zlevel)&&(vx(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,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=0&&this._roots.splice(i,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}(),f1;f1=At.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ep={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-Ep.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?Ep.bounceIn(e*2)*.5:Ep.bounceOut(e*2-1)*.5+.5}},Oy=Math.pow,lu=Math.sqrt,h1=1e-8,O$=1e-4,Vk=lu(3),Ny=1/3,Ho=Df(),Oa=Df(),Zh=Df();function Ql(e){return e>-h1&&eh1||e<-h1}function wn(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function zk(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function d1(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Ql(c)&&Ql(f))if(Ql(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=f*f-4*c*h;if(Ql(p)){var m=f/c,v=-s/o+m,y=-m/2;v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y)}else if(p>0){var S=lu(p),b=c*s+1.5*o*(-f+S),w=c*s+1.5*o*(-f-S);b<0?b=-Oy(-b,Ny):b=Oy(b,Ny),w<0?w=-Oy(-w,Ny):w=Oy(w,Ny);var v=(-s-(b+w))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var C=(2*c*s-3*o*f)/(2*lu(c*c*c)),x=Math.acos(C)/3,A=lu(c),D=Math.cos(x),v=(-s-2*A*D)/(3*o),y=(-s+A*(D+Vk*Math.sin(x)))/(3*o),M=(-s+A*(D-Vk*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[d++]=v),y>=0&&y<=1&&(a[d++]=y),M>=0&&M<=1&&(a[d++]=M)}}return d}function F$(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ql(o)){if(N$(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ql(c))i[0]=-a/(2*o);else if(c>0){var f=lu(c),u=(-a+f)/(2*o),h=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function yu(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function B$(e,t,r,n,i,a,o,s,l,u,c){var f,h=.005,d=1/0,v,p,m,y;Ho[0]=l,Ho[1]=u;for(var S=0;S<1;S+=.05)Oa[0]=wn(e,r,i,o,S),Oa[1]=wn(t,n,a,s,S),m=ef(Ho,Oa),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ql(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=lu(c),u=(-o+f)/(2*a),h=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function V$(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function hg(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function z$(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Ho[0]=o,Ho[1]=s;for(var h=0;h<1;h+=.05){Oa[0]=Rn(e,r,i,h),Oa[1]=Rn(t,n,a,h);var d=ef(Ho,Oa);d=0&&d=1?1:d1(0,n,a,1,l,s)&&wn(0,i,o,1,s[0])}}}var sse=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||rn,this.ondestroy=t.ondestroy||rn,this.onrestart=t.onrestart||rn,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,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Xe(t)?t:Ep[t]||OM(t)},e}(),G$=function(){function e(t){this.value=t}return e}(),lse=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new G$(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}(),Qg=function(){function e(t){this._list=new lse,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new G$(r),s.key=t,n.insertEntry(s),i[t]=s}return a},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}(),Gk={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 go(e){return e=Math.round(e),e<0?0:e>255?255:e}function use(e){return e=Math.round(e),e<0?0:e>360?360:e}function dg(e){return e<0?0:e>1?1:e}function px(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?go(parseFloat(t)/100*255):go(parseInt(t,10))}function tf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?dg(parseFloat(t)/100):dg(parseFloat(t))}function gx(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 eu(e,t,r){return e+(t-e)*r}function Ma(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function FA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var $$=new Qg(20),Fy=null;function rh(e,t){Fy&&FA(Fy,t),Fy=$$.put(e,Fy||t.slice())}function fa(e,t){if(e){t=t||[];var r=$$.get(e);if(r)return FA(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Gk)return FA(t,Gk[n]),rh(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Ma(t,0,0,0,1);return}return Ma(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),rh(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ma(t,0,0,0,1);return}return Ma(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),rh(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){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?Ma(t,+u[0],+u[1],+u[2],1):Ma(t,0,0,0,1);c=tf(u.pop());case"rgb":if(u.length>=3)return Ma(t,px(u[0]),px(u[1]),px(u[2]),u.length===3?c:tf(u[3])),rh(e,t),t;Ma(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ma(t,0,0,0,1);return}return u[3]=tf(u[3]),BA(u,t),rh(e,t),t;case"hsl":if(u.length!==3){Ma(t,0,0,0,1);return}return BA(u,t),rh(e,t),t;default:return}}Ma(t,0,0,0,1)}}function BA(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tf(e[1]),i=tf(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Ma(t,go(gx(o,a,r+1/3)*255),go(gx(o,a,r)*255),go(gx(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function cse(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;t===a?l=h-f:r===a?l=1/3+c-h:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return e[3]!=null&&d.push(e[3]),d}}function VA(e,t){var r=fa(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 Ws(r,r.length===4?"rgba":"rgb")}}function mx(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=go(eu(o[0],s[0],l)),r[1]=go(eu(o[1],s[1],l)),r[2]=go(eu(o[2],s[2],l)),r[3]=dg(eu(o[3],s[3],l)),r}}function fse(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=fa(t[i]),s=fa(t[a]),l=n-i,u=Ws([go(eu(o[0],s[0],l)),go(eu(o[1],s[1],l)),go(eu(o[2],s[2],l)),dg(eu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Rp(e,t,r,n){var i=fa(e);if(e)return i=cse(i),t!=null&&(i[0]=use(t)),r!=null&&(i[1]=tf(r)),n!=null&&(i[2]=tf(n)),Ws(BA(i),"rgba")}function v1(e,t){var r=fa(e);if(r&&t!=null)return r[3]=dg(t),Ws(r,"rgba")}function Ws(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 p1(e,t){var r=fa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var $k=new Qg(100);function zA(e){if(Ne(e)){var t=$k.get(e);return t||(t=VA(e,-.1),$k.put(e,t)),t}else if(BS(e)){var r=de({},e);return r.colorStops=we(e.colorStops,function(n){return{offset:n.offset,color:VA(n.color,-.1)}}),r}return e}var g1=Math.round;function vg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=fa(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Hk=1e-4;function tu(e){return e-Hk}function By(e){return g1(e*1e3)/1e3}function GA(e){return g1(e*1e4)/1e4}function hse(e){return"matrix("+By(e[0])+","+By(e[1])+","+By(e[2])+","+By(e[3])+","+GA(e[4])+","+GA(e[5])+")"}var dse={left:"start",right:"end",center:"middle",middle:"middle"};function vse(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function pse(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function gse(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function H$(e){return e&&!!e.image}function mse(e){return e&&!!e.svgElement}function NM(e){return H$(e)||mse(e)}function U$(e){return e.type==="linear"}function W$(e){return e.type==="radial"}function Y$(e){return e&&(e.type==="linear"||e.type==="radial")}function GS(e){return"url(#"+e+")"}function X$(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function Z$(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*m_,i=ot(e.scaleX,1),a=ot(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+g1(o*m_)+"deg, "+g1(s*m_)+"deg)"),l.join(" ")}var yse=function(){return At.hasGlobalWindow&&Xe(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),$A=Array.prototype.slice;function Ps(e,t,r){return(t-e)*r+e}function yx(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Wk,l=r;if(ii(r)){var u=wse(r);s=u,(u===1&&!$t(r[0])||u===2&&!$t(r[0][0]))&&(o=!0)}else if($t(r)&&!fg(r))s=zy;else if(Ne(r))if(!isNaN(+r))s=zy;else{var c=fa(r);c&&(l=c,s=np)}else if(BS(r)){var f=de({},l);f.colorStops=we(r.colorStops,function(d){return{offset:d.offset,color:fa(d.color)}}),U$(r)?s=HA:W$(r)&&(s=UA),l=f}a===0?this.valType=s:(s!==this.valType||s===Wk)&&(o=!0),this.discrete=this.discrete||o;var h={time:t,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Xe(n)?n:Ep[n]||OM(n)),i.push(h),h},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Gy(i),u=Yk(i),c=0;c=0&&!(o[c].percent<=r);c--);c=h(c,s-2)}else{for(c=f;cr);c++);c=h(c-1,s-2)}v=o[c+1],d=o[c]}if(d&&v){this._lastFr=c,this._lastFrP=r;var m=v.percent-d.percent,y=m===0?1:h((r-d.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var S=n?this._additiveValue:u?mv:t[l];if((Gy(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:v.rawValue;else if(Gy(a))a===w_?yx(S,d[i],v[i],y):_se(S,d[i],v[i],y);else if(Yk(a)){var b=d[i],w=v[i],C=a===HA;t[l]={type:C?"linear":"radial",x:Ps(b.x,w.x,y),y:Ps(b.y,w.y,y),colorStops:we(b.colorStops,function(A,D){var M=w.colorStops[D];return{offset:Ps(A.offset,M.offset,y),color:b_(yx([],A.color,M.color,y))}}),global:w.global},C?(t[l].x2=Ps(b.x2,w.x2,y),t[l].y2=Ps(b.y2,w.y2,y)):t[l].r=Ps(b.r,w.r,y)}else if(u)yx(S,d[i],v[i],y),n||(t[l]=b_(S));else{var x=Ps(d[i],v[i],y);n?this._additiveValue=x:t[l]=x}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===zy?t[n]=t[n]+i:r===np?(fa(t[n],mv),Vy(mv,mv,i,1),t[n]=b_(mv)):r===w_?Vy(t[n],t[n],i,1):r===q$&&Uk(t[n],t[n],i,1)},e}(),FM=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){MM("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,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,Mt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,kp(u),i),this._trackKeys.push(s)}l.addKeyframe(t,kp(r[s]),i)}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;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Rh(){return new Date().getTime()}var Cse=function(e){Q(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,i=r.next;n?n.next=i:this._head=i,i?i.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=Rh()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(f1(n),!r._paused&&r.update())}f1(n)},t.prototype.start=function(){this._running||(this._time=Rh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Rh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Rh()-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 i=new FM(r,n.loop);return this.addAnimator(i),i},t}(Ya),Tse=300,_x=At.domSupported,Sx=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=we(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),Xk={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zk=!1;function WA(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Ase(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 bx(e){e&&(e.zrByTouch=!0)}function Dse(e,t){return Ia(e.dom,new Mse(e,t),!0)}function j$(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 Mse=function(){function e(t,r){this.stopPropagation=rn,this.stopImmediatePropagation=rn,this.preventDefault=rn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),io={mousedown:function(e){e=Ia(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ia(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=Ia(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ia(this.dom,e);var t=e.toElement||e.relatedTarget;j$(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Zk=!0,e=Ia(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Zk||(e=Ia(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ia(this.dom,e),bx(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),io.mousemove.call(this,e),io.mousedown.call(this,e)},touchmove:function(e){e=Ia(this.dom,e),bx(e),this.handler.processGesture(e,"change"),io.mousemove.call(this,e)},touchend:function(e){e=Ia(this.dom,e),bx(e),this.handler.processGesture(e,"end"),io.mouseup.call(this,e),+new Date-+this.__lastTouchMomentKk||e<-Kk}var Ku=[],nh=[],Cx=ca(),Tx=Math.abs,Bs=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 ju(this.rotation)||ju(this.x)||ju(this.y)||ju(this.scaleX-1)||ju(this.scaleY-1)||ju(this.skewX)||ju(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(jk(n),this.invTransform=null);return}n=n||ca(),r?this.getLocalTransform(n):jk(n),t&&(r?Us(n,t,n):RM(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ku);var n=Ku[0]<0?-1:1,i=Ku[1]<0?-1:1,a=((Ku[0]-n)*r+n)/Ku[0]||0,o=((Ku[1]-i)*r+i)/Ku[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ca(),Md(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,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||ca(),Us(nh,t.invTransform,r),r=nh);var n=this.originX,i=this.originY;(n||i)&&(Cx[4]=n,Cx[5]=i,Us(nh,r,Cx),nh[4]-=n,nh[5]-=i,r=nh),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],i=this.invTransform;return i&&Un(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Un(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Tx(t[0]-1)>1e-10&&Tx(t[3]-1)>1e-10?Math.sqrt(Tx(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){J$(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,h=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&Mf(r,r,u),r[4]+=n+c,r[5]+=i+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}(),os=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function J$(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function y1(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=bo(n[0],r.width),u+=bo(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Ax="__zr_normal__",Dx=os.concat(["ignore"]),Rse=is(os,function(e,t){return e[t]=!0,e},{ignore:!1}),ih={},kse=new ht(0,0,0,0),HS=function(){function e(t){this.id=A$(),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 i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=kse;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ih,n,c):y1(ih,n,c),a.x=ih.x,a.y=ih.y,o=ih.align,s=ih.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var h=void 0,d=void 0;f==="center"?(h=c.width*.5,d=c.height*.5):(h=bo(f[0],c.width),d=bo(f[1],c.height)),u=!0,a.originX=-a.x+h+(i?0:c.x),a.originY=-a.y+d+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,S=void 0,b=void 0;p&&this.canBeInsideText()?(y=n.insideFill,S=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(y),b=!0)):(y=n.outsideFill,S=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==m.fill||S!==m.stroke||b!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=S,m.autoStroke=b,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=na,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()?qA:ZA},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&fa(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Ws(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||{},de(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(Ke(t))for(var n=t,i=Mt(n),a=0;a0},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(Ax,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Ax,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(St(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){MM("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(t,r,n,c),h&&h.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~na),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,v);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,r,h),m&&m.useStates(t,r,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~na)}},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=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=St(i,t),o=St(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.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,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var h=0;h0||i.force&&!o.length){var D=void 0,M=void 0,I=void 0;if(s){M={},h&&(D={});for(var w=0;w=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=St(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.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,i=this._children,a=St(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(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;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Ee(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 Ne(e)?Wse(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function qr(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),tH),e=(+e).toFixed(t),r?e:+e}function za(e){return e.sort(function(t,r){return t-r}),e}function Zo(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 Yse(e)}function Yse(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function rH(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Xse(e,t){var r=is(e,function(d,v){return d+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=we(e,function(d){return(isNaN(d)?0:d)/r*n*100}),a=n*100,o=we(i,function(d){return Math.floor(d)}),s=is(o,function(d,v){return d+v},0),l=we(i,function(d,v){return d-o[v]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return we(o,function(d){return d/n})}function Zse(e,t){var r=Math.max(Zo(e),Zo(t)),n=e+t;return r>tH?n:qr(n,r)}var rO=9007199254740991;function nH(e){var t=Math.PI*2;return(e%t+t)%t}function pg(e){return e>-tO&&e=10&&t++,t}function iH(e,t){var r=BM(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Lx(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function nO(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&St(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Sle=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ble=_f(Sle),wle=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return ble(this,t,r)},e}(),JA=new Qg(50);function xle(e){if(typeof e=="string"){var t=JA.get(e);return t&&t.image}else return e}function $M(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=JA.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!WS(t)&&a.pending.push(o)):(t=mu.loadImage(e,sO,sO),t.__zrImageSrc=e,JA.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function sO(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=ha(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function mH(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=ha(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?Tle(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=ha(e,n)}return e===""&&(e=t.placeholder),e}function Tle(e,t,r,n){for(var i=0,a=0,o=e.length;ad&&u){var v=Math.floor(d/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var p=gH(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&Ex(r,e.substring(s,u),t,o),Ex(r,l[2],t,o,l[1]),s=Px.lastIndex}si){C>0?(S.tokens=S.tokens.slice(0,C),m(S,w,b),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var R=A.width,N=R==null||R==="auto";if(typeof R=="string"&&R.charAt(R.length-1)==="%")x.percentWidth=R,c.push(x),x.contentWidth=ha(x.text,I);else{if(N){var O=A.backgroundColor,F=O&&O.image;F&&(F=xle(F),WS(F)&&(x.width=Math.max(x.width,F.width*P/F.height)))}var B=v&&n!=null?n-w:null;B!=null&&B0&&v+n.accumWidth>n.width&&(c=t.split(` -`),u=!0),n.accumWidth=v}else{var p=yH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+d,f=p.linesWidths,c=p.lines}}else c=t.split(` -`);for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Ple=is(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Ele(e){return Lle(e)?!!Ple[e]:!0}function yH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+d>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=h,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=h,c=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}c+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var QA="__zr_style_"+Math.round(Math.random()*10),rf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},YS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rf[QA]=!0;var uO=["z","z2","invisible"],Rle=["invisible"],Ua=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Mt(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if($y[0]=Nx(i)*r+e,$y[1]=Ox(i)*n+t,Hy[0]=Nx(a)*r+e,Hy[1]=Ox(a)*n+t,u(s,$y,Hy),c(l,$y,Hy),i=i%Qu,i<0&&(i=i+Qu),a=a%Qu,a<0&&(a=a+Qu),i>a&&!o?a+=Qu:ii&&(Uy[0]=Nx(d)*r+e,Uy[1]=Ox(d)*n+t,u(s,Uy,s),c(l,Uy,l))}var mr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ec=[],tc=[],Eo=[],Cl=[],Ro=[],ko=[],Fx=Math.min,Bx=Math.max,rc=Math.cos,nc=Math.sin,Cs=Math.abs,eD=Math.PI,Ol=eD*2,Vx=typeof Float32Array<"u",yv=[];function zx(e){var t=Math.round(e/eD*1e8)/1e8;return t%2*eD}function HM(e,t){var r=zx(e[0]);r<0&&(r+=Ol);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Ol?i=r+Ol:t&&r-i>=Ol?i=r-Ol:!t&&r>i?i=r+(Ol-zx(r-i)):t&&r0&&(this._ux=Cs(n/m1/t)||0,this._uy=Cs(n/m1/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(mr.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=Cs(t-this._xi),i=Cs(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mr.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(mr.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(mr.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),yv[0]=i,yv[1]=a,HM(yv,o),i=yv[0],a=yv[1];var s=a-i;return this.addData(mr.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=rc(a)*n+t,this._yi=nc(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(mr.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mr.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)&&Vx&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(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;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Eo[0]=Eo[1]=Ro[0]=Ro[1]=Number.MAX_VALUE,Cl[0]=Cl[1]=ko[0]=ko[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||Cs(b)>i||h===r-1)&&(p=Math.sqrt(S*S+b*b),a=m,o=y);break}case mr.C:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++],x=t[h++],A=t[h++];p=nse(a,o,w,C,m,y,x,A,10),a=x,o=A;break}case mr.Q:{var w=t[h++],C=t[h++],m=t[h++],y=t[h++];p=ase(a,o,w,C,m,y,10),a=m,o=y;break}case mr.A:var D=t[h++],M=t[h++],I=t[h++],P=t[h++],R=t[h++],N=t[h++],O=N+R;h+=1,v&&(s=rc(R)*I+D,l=nc(R)*P+M),p=Bx(I,P)*Fx(Ol,Math.abs(N)),a=rc(O)*I+D,o=nc(O)*P+M;break;case mr.R:{s=a=t[h++],l=o=t[h++];var F=t[h++],B=t[h++];p=F*2+B*2;break}case mr.Z:{var S=s-a,b=l-o;p=Math.sqrt(S*S+b*b),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,h,d=r<1,v,p,m=0,y=0,S,b=0,w,C;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,S=r*p,!S)))e:for(var x=0;x0&&(t.lineTo(w,C),b=0),A){case mr.M:s=u=n[x++],l=c=n[x++],t.moveTo(u,c);break;case mr.L:{f=n[x++],h=n[x++];var M=Cs(f-u),I=Cs(h-c);if(M>i||I>a){if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;t.lineTo(u*(1-R)+f*R,c*(1-R)+h*R);break e}m+=P}t.lineTo(f,h),u=f,c=h,b=0}else{var N=M*M+I*I;N>b&&(w=f,C=h,b=N)}break}case mr.C:{var O=n[x++],F=n[x++],B=n[x++],W=n[x++],z=n[x++],j=n[x++];if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;yu(u,O,B,z,R,ec),yu(c,F,W,j,R,tc),t.bezierCurveTo(ec[1],tc[1],ec[2],tc[2],ec[3],tc[3]);break e}m+=P}t.bezierCurveTo(O,F,B,W,z,j),u=z,c=j;break}case mr.Q:{var O=n[x++],F=n[x++],B=n[x++],W=n[x++];if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;hg(u,O,B,R,ec),hg(c,F,W,R,tc),t.quadraticCurveTo(ec[1],tc[1],ec[2],tc[2]);break e}m+=P}t.quadraticCurveTo(O,F,B,W),u=B,c=W;break}case mr.A:var ee=n[x++],te=n[x++],me=n[x++],Ae=n[x++],Pe=n[x++],Oe=n[x++],Ue=n[x++],se=!n[x++],he=me>Ae?me:Ae,pe=Cs(me-Ae)>.001,ye=Pe+Oe,xe=!1;if(d){var P=v[y++];m+P>S&&(ye=Pe+Oe*(S-m)/P,xe=!0),m+=P}if(pe&&t.ellipse?t.ellipse(ee,te,me,Ae,Ue,Pe,ye,se):t.arc(ee,te,he,Pe,ye,se),xe)break e;D&&(s=rc(Pe)*me+ee,l=nc(Pe)*Ae+te),u=rc(ye)*me+ee,c=nc(ye)*Ae+te;break;case mr.R:s=u=n[x],l=c=n[x+1],f=n[x++],h=n[x++];var ke=n[x++],H=n[x++];if(d){var P=v[y++];if(m+P>S){var U=S-m;t.moveTo(f,h),t.lineTo(f+Fx(U,ke),h),U-=ke,U>0&&t.lineTo(f+ke,h+Fx(U,H)),U-=H,U>0&&t.lineTo(f+Bx(ke-U,0),h+H),U-=ke,U>0&&t.lineTo(f,h+Bx(H-U,0));break e}m+=P}t.rect(f,h,ke,H);break;case mr.Z:if(d){var P=v[y++];if(m+P>S){var R=(S-m)/P;t.lineTo(u*(1-R)+s*R,c*(1-R)+l*R);break e}m+=P}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=mr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function zl(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=_v);var h=Math.atan2(l,s);return h<0&&(h+=_v),h>=n&&h<=i||h+_v>=n&&h+_v<=i}function Es(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Tl=ls.CMD,ic=Math.PI*2,zle=1e-4;function Gle(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&$le(),d=wn(t,n,a,s,Ra[0]),h>1&&(v=wn(t,n,a,s,Ra[1]))),h===2?mt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=Rn(t,n,a,u),h=0;hr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);mi[0]=-l,mi[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ic-1e-4){n=0,i=ic;var c=a?1:-1;return o>=mi[0]+e&&o<=mi[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=ic,i+=ic);for(var h=0,d=0;d<2;d++){var v=mi[d];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=ic+p),(p>=n&&p<=i||p+ic>=n&&p+ic<=i)&&(p>Math.PI/2&&p1&&(r||(s+=Es(l,u,c,f,n,i))),m&&(l=a[v],u=a[v+1],c=l,f=u),p){case Tl.M:c=a[v++],f=a[v++],l=c,u=f;break;case Tl.L:if(r){if(zl(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Es(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Tl.C:if(r){if(Ble(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Hle(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Tl.Q:if(r){if(_H(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Ule(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Tl.A:var y=a[v++],S=a[v++],b=a[v++],w=a[v++],C=a[v++],x=a[v++];v+=1;var A=!!(1-a[v++]);h=Math.cos(C)*b+y,d=Math.sin(C)*w+S,m?(c=h,f=d):s+=Es(l,u,h,d,n,i);var D=(n-y)*w/b+y;if(r){if(Vle(y,S,w,C,C+x,A,t,D,i))return!0}else s+=Wle(y,S,w,C,C+x,A,D,i);l=Math.cos(C+x)*b+y,u=Math.sin(C+x)*w+S;break;case Tl.R:c=l=a[v++],f=u=a[v++];var M=a[v++],I=a[v++];if(h=c+M,d=f+I,r){if(zl(c,f,h,f,t,n,i)||zl(h,f,h,d,t,n,i)||zl(h,d,c,d,t,n,i)||zl(c,d,c,f,t,n,i))return!0}else s+=Es(h,f,h,d,n,i),s+=Es(c,d,c,f,n,i);break;case Tl.Z:if(r){if(zl(l,u,c,f,t,n,i))return!0}else s+=Es(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!Gle(u,f)&&(s+=Es(l,u,c,f,n,i)||0),s!==0}function Yle(e,t,r){return SH(e,0,!1,t,r)}function Xle(e,t,r,n){return SH(e,t,!0,r,n)}var _1=qe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rf),Zle={style:qe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},YS.style)},Gx=os.concat(["invisible","culling","z","z2","zlevel","parent"]),Ct=function(e){Q(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 i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ZA:n>.2?Ese:qA}else if(r)return qA}return ZA},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ne(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=p1(r,0)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,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Th)&&(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||i){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 i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.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)),Xle(s,l/u,r,n)))return!0}if(this.hasFill())return Yle(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Th,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 i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:de(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Th)},t.prototype.createStyle=function(r){return VS(_1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=de({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=de({},i.shape),de(u,n.shape)):(u=de({},a?this.shape:i.shape),de(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=de({},this.shape);for(var c={},f=Mt(u),h=0;h0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return VS(qle,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 i=em(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ua);od.prototype.type="tspan";var jle=qe({x:0,y:0},rf),Kle={style:qe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},YS.style)};function Jle(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Fn=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return VS(jle,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Jle(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Kle},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ht(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ua);Fn.prototype.type="image";function Qle(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),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>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-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 kh=Math.round;function bH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(kh(n*2)===kh(i*2)&&(e.x1=e.x2=Gc(n,s,!0)),kh(a*2)===kh(o*2)&&(e.y1=e.y2=Gc(a,s,!0))),e}}function wH(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Gc(n,s,!0),e.y=Gc(i,s,!0),e.width=Math.max(Gc(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Gc(i+o,s,!1)-e.y,o===0?0:1)),e}}function Gc(e,t,r){if(!t)return e;var n=kh(e*2);return(n+kh(t))%2===0?n/2:(n+(r?1:-1))/2}var eue=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),tue={},Ot=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new eue},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=wH(tue,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Qle(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ct);Ot.prototype.type="rect";var vO={fill:"#000"},pO=2,rue={style:qe({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},YS.style)},zt=function(e){Q(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=vO,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;r0,R=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),N=o.calculatedLineHeight,O=0;O=0&&(O=x[N],O.align==="right");)this._placeToken(O,r,D,y,R,"right",b),M-=O.width,R-=O.width,N--;for(P+=(a-(P-m)-(S-R)-M)/2;I<=N;)O=x[I],this._placeToken(O,r,D,y,P+O.width/2,"center",b),P+=O.width,I++;y+=D}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var h=!r.isLineHolder&&$x(u);h&&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 d=!!u.backgroundColor,v=r.textPadding;v&&(o=bO(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(od),m=p.createStyle();p.useStyle(m);var y=this._defaultStyle,S=!1,b=0,w=SO("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,y.fill)),C=_O("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!y.autoStroke||S)?(b=pO,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=f,x&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||gu,m.opacity=Qo(u.opacity,n.opacity,1),mO(m,u),C&&(m.lineWidth=Qo(u.lineWidth,n.lineWidth,b),m.lineDash=ot(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=C),w&&(m.fill=w);var A=r.contentWidth,D=r.contentHeight;p.setBoundingRect(new ht(ip(m.x,A,m.textAlign),Ah(m.y,D,m.textBaseline),A,D))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,h=l&&!f,d=r.borderRadius,v=this,p,m;if(h||r.lineHeight||u&&c){p=this._getOrCreateChild(Ot),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=d,p.dirtyShape()}if(h){var S=p.style;S.fill=l||null,S.fillOpacity=ot(r.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Fn),m.onload=function(){v.dirtyStyle()};var b=m.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&c){var S=p.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=ot(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var w=(p||m).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Qo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return CH(r)&&(n=[r.fontStyle,r.fontWeight,xH(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&uo(n)||r.textFont||r.font},t}(Ua),nue={left:!0,right:1,center:1},iue={top:1,bottom:1,middle:1},gO=["fontStyle","fontWeight","fontSize","fontFamily"];function xH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?TM+"px":e+"px"}function mO(e,t){for(var r=0;r=0,a=!1;if(e instanceof Ct){var o=TH(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(ah(s)||ah(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=de({},n),u=de({},u),u.fill=s):!ah(u.fill)&&ah(s)?(a=!0,n=de({},n),u=de({},u),u.fill=zA(s)):!ah(u.stroke)&&ah(l)&&(a||(n=de({},n),u=de({},u)),u.stroke=zA(l)),n.style=u}}if(n&&n.z2==null){a||(n=de({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Ld)}return n}function fue(e,t,r){if(r&&r.z2==null){r=de({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??oue)}return r}function hue(e,t,r){var n=St(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:uue(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=de({},r),o=de({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Hx(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return cue(this,e,t,r);if(e==="blur")return hue(this,e,r);if(e==="select")return fue(this,e,r)}return r}function Sf(e){e.stateProxy=Hx;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Hx),r&&(r.stateProxy=Hx)}function AO(e,t){!EH(e,t)&&!e.__highByOuter&&sl(e,AH)}function DO(e,t){!EH(e,t)&&!e.__highByOuter&&sl(e,DH)}function Js(e,t){e.__highByOuter|=1<<(t||0),sl(e,AH)}function Qs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&sl(e,DH)}function IH(e){sl(e,YM)}function XM(e){sl(e,MH)}function LH(e){sl(e,sue)}function PH(e){sl(e,lue)}function EH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function RH(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=UM(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){MH(u)}),s&&r.push(a)),o.isBlured=!1}),E(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function rD(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function af(e,t,r){$c(e,!0),sl(e,Sf),iD(e,t,r)}function yue(e){$c(e,!1)}function Yr(e,t,r,n){n?yue(e):af(e,t,r)}function iD(e,t,r){var n=rt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var IO=["emphasis","blur","select"],_ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Wn(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Ux(v),s*=Ux(v));var p=(i===a?-1:1)*Ux((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,m=p*o*d/s,y=p*-s*h/o,S=(e+r)/2+Yy(f)*m-Wy(f)*y,b=(t+n)/2+Wy(f)*m+Yy(f)*y,w=RO([1,0],[(h-m)/o,(d-y)/s]),C=[(h-m)/o,(d-y)/s],x=[(-1*h-m)/o,(-1*d-y)/s],A=RO(C,x);if(oD(C,x)<=-1&&(A=Sv),oD(C,x)>=1&&(A=0),A<0){var D=Math.round(A/Sv*1e6)/1e6;A=Sv*2+D%2*Sv}c.addData(u,S,b,o,s,w,A,f,a)}var Tue=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Aue=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Due(e){var t=new ls;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ls.CMD,l=e.match(Tue);if(!l)return t;for(var u=0;uO*O+F*F&&(D=I,M=P),{cx:D,cy:M,x0:-c,y0:-f,x1:D*(i/C-1),y1:M*(i/C-1)}}function kue(e){var t;if(Se(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 Oue(e,t){var r,n=ap(t.r,0),i=ap(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,h=!!t.clockwise,d=OO(u-l),v=d>Wx&&d%Wx;if(v>no&&(d=v),!(n>no))e.moveTo(c,f);else if(d>Wx-no)e.moveTo(c+n*sh(l),f+n*ac(l)),e.arc(c,f,n,l,u,!h),i>no&&(e.moveTo(c+i*sh(u),f+i*ac(u)),e.arc(c,f,i,u,l,h));else{var p=void 0,m=void 0,y=void 0,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0,A=void 0,D=void 0,M=void 0,I=void 0,P=void 0,R=void 0,N=void 0,O=void 0,F=n*sh(l),B=n*ac(l),W=i*sh(u),z=i*ac(u),j=d>no;if(j){var ee=t.cornerRadius;ee&&(r=kue(ee),p=r[0],m=r[1],y=r[2],S=r[3]);var te=OO(n-i)/2;if(b=Oo(te,y),w=Oo(te,S),C=Oo(te,p),x=Oo(te,m),M=A=ap(b,w),I=D=ap(C,x),(A>no||D>no)&&(P=n*sh(u),R=n*ac(u),N=i*sh(l),O=i*ac(l),dno){var pe=Oo(y,M),ye=Oo(S,M),xe=Xy(N,O,F,B,n,pe,h),ke=Xy(P,R,W,z,n,ye,h);e.moveTo(c+xe.cx+xe.x0,f+xe.cy+xe.y0),M0&&e.arc(c+xe.cx,f+xe.cy,pe,jn(xe.y0,xe.x0),jn(xe.y1,xe.x1),!h),e.arc(c,f,n,jn(xe.cy+xe.y1,xe.cx+xe.x1),jn(ke.cy+ke.y1,ke.cx+ke.x1),!h),ye>0&&e.arc(c+ke.cx,f+ke.cy,ye,jn(ke.y1,ke.x1),jn(ke.y0,ke.x0),!h))}else e.moveTo(c+F,f+B),e.arc(c,f,n,l,u,!h);if(!(i>no)||!j)e.lineTo(c+W,f+z);else if(I>no){var pe=Oo(p,I),ye=Oo(m,I),xe=Xy(W,z,P,R,i,-ye,h),ke=Xy(F,B,N,O,i,-pe,h);e.lineTo(c+xe.cx+xe.x0,f+xe.cy+xe.y0),I0&&e.arc(c+xe.cx,f+xe.cy,ye,jn(xe.y0,xe.x0),jn(xe.y1,xe.x1),!h),e.arc(c,f,i,jn(xe.cy+xe.y1,xe.cx+xe.x1),jn(ke.cy+ke.y1,ke.cx+ke.x1),h),pe>0&&e.arc(c+ke.cx,f+ke.cy,pe,jn(ke.y1,ke.x1),jn(ke.y0,ke.x0),!h))}else e.lineTo(c+W,f+z),e.arc(c,f,i,u,l,h)}e.closePath()}}}var Nue=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}(),Ci=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Nue},t.prototype.buildPath=function(r,n){Oue(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ct);Ci.prototype.type="sector";var Fue=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),nm=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Fue},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(Ct);nm.prototype.type="ring";function Bue(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,d=e.length;h=2){if(n){var a=Bue(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;ssc[1]){if(s=!1,a)return s;var c=Math.abs(sc[0]-oc[1]),f=Math.abs(oc[0]-sc[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,h=c.delay,d=c.easing,v={duration:f,delay:h||0,easing:d,done:a,force:!!a||!!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),a&&a()}function Yt(e,t,r,n,i,a){KM("update",e,t,r,n,i,a)}function Rr(e,t,r,n,i,a){KM("enter",e,t,r,n,i,a)}function qh(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function BO(e){return!e.isGroup}function Jue(e){return e.shape!=null}function om(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){BO(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Jue(o)&&(s.shape=de({},o.shape)),s}var a=n(e);t.traverse(function(o){if(BO(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Yt(o,l,r,rt(o).dataIndex)}}})}function XH(e,t){return we(e,function(r){var n=r[0];n=w1(n,t.x),n=x1(n,t.x+t.width);var i=r[1];return i=w1(i,t.y),i=x1(i,t.y+t.height),[n,i]})}function Que(e,t){var r=w1(e.x,t.x),n=x1(e.x+e.width,t.x+t.width),i=w1(e.y,t.y),a=x1(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function sm(e,t,r){var n=de({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),qe(i,r),new Fn(n)):JS(e.replace("path://",""),n,r,"center")}function op(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=Yx(d,v,c,f)/h;return!(m<0||m>1)}function Yx(e,t,r,n){return e*n-r*t}function ece(e){return e<=1e-6&&e>=-1e-6}function Ed(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ne(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&E(Mt(l),function(c){Ve(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=rt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:qe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function VO(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Iu(e,t){if(e)if(Se(e))for(var r=0;r=0&&s.push(l)}),s}}function Lu(e,t){return ft(ft({},e,!0),t,!0)}const hce={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:". "}}}},dce={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 T1="ZH",eI="EN",jh=eI,M_={},tI={},eU=At.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||jh).toUpperCase();return e.indexOf(T1)>-1?T1:jh}():jh;function tU(e,t){e=e.toUpperCase(),tI[e]=new nr(t),M_[e]=t}function vce(e){if(Ne(e)){var t=M_[e.toUpperCase()]||{};return e===T1||e===eI?Je(t):ft(Je(t),Je(M_[jh]),!1)}else return ft(Je(e),Je(M_[jh]),!1)}function uD(e){return tI[e]}function pce(){return tI[jh]}tU(eI,hce);tU(T1,dce);var rI=1e3,nI=rI*60,zp=nI*60,Va=zp*24,UO=Va*365,sp={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}"},jy="{yyyy}-{MM}-{dd}",WO={year:"{yyyy}",month:"{yyyy}-{MM}",day:jy,hour:jy+" "+sp.hour,minute:jy+" "+sp.minute,second:jy+" "+sp.second,millisecond:sp.none},qx=["year","month","day","hour","minute","second","millisecond"],rU=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Al(e,t){return e+="","0000".substr(0,t-e.length)+e}function Kh(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 gce(e){return e===Kh(e)}function mce(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function tb(e,t,r,n){var i=ss(e),a=i[iI(r)](),o=i[Jh(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[rb(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Sg(r)](),f=(c-1)%12+1,h=i[nb(r)](),d=i[ib(r)](),v=i[ab(r)](),p=c>=12?"pm":"am",m=p.toUpperCase(),y=n instanceof nr?n:uD(n||eU)||pce(),S=y.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),C=S.get("dayOfWeek"),x=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Al(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Al(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Al(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Al(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Al(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Al(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Al(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Al(v,3)).replace(/{S}/g,v+"")}function yce(e,t,r,n,i){var a=null;if(Ne(r))a=r;else if(Xe(r))a=r(e.value,t,{level:e.level});else{var o=de({},sp);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Se(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return tb(new Date(e.value),a,i,n)}function nU(e,t){var r=ss(e),n=r[Jh(t)]()+1,i=r[rb(t)](),a=r[Sg(t)](),o=r[nb(t)](),s=r[ib(t)](),l=r[ab(t)](),u=l===0,c=u&&s===0,f=c&&o===0,h=f&&a===0,d=h&&i===1,v=d&&n===1;return v?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function YO(e,t,r){var n=$t(e)?ss(e):e;switch(t=t||nU(e,r),t){case"year":return n[iI(r)]();case"half-year":return n[Jh(r)]()>=6?1:0;case"quarter":return Math.floor((n[Jh(r)]()+1)/4);case"month":return n[Jh(r)]();case"day":return n[rb(r)]();case"half-day":return n[Sg(r)]()/24;case"hour":return n[Sg(r)]();case"minute":return n[nb(r)]();case"second":return n[ib(r)]();case"millisecond":return n[ab(r)]()}}function iI(e){return e?"getUTCFullYear":"getFullYear"}function Jh(e){return e?"getUTCMonth":"getMonth"}function rb(e){return e?"getUTCDate":"getDate"}function Sg(e){return e?"getUTCHours":"getHours"}function nb(e){return e?"getUTCMinutes":"getMinutes"}function ib(e){return e?"getUTCSeconds":"getSeconds"}function ab(e){return e?"getUTCMilliseconds":"getMilliseconds"}function _ce(e){return e?"setUTCFullYear":"setFullYear"}function iU(e){return e?"setUTCMonth":"setMonth"}function aU(e){return e?"setUTCDate":"setDate"}function oU(e){return e?"setUTCHours":"setHours"}function sU(e){return e?"setUTCMinutes":"setMinutes"}function lU(e){return e?"setUTCSeconds":"setSeconds"}function uU(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cU(e){if(!aH(e))return Ne(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function fU(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 Od=PM;function cD(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&uo(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?ss(e):e;if(isNaN(+l)){if(s)return"-"}else return tb(l,n,r)}if(t==="ordinal")return MA(e)?i(e):$t(e)&&a(e)?e+"":"-";var u=Ks(e);return a(u)?cU(u):MA(e)?i(e):typeof e=="boolean"?e+"":"-"}var XO=["a","b","c","d","e","f","g"],jx=function(e,t){return"{"+e+(t??"")+"}"};function hU(e,t,r){Se(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function bf(e,t){return t=t||"transparent",Ne(e)?e:Ke(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function A1(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var I_=E,dU=["left","right","top","bottom","width","height"],Hc=[["width","left","right"],["height","top","bottom"]];function aI(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),h=f&&f.getBoundingRect(),d,v;if(e==="horizontal"){var p=c.width+(h?-h.x+c.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);v=o+m,v>i||l.newline?(a+=s+r,o=0,v=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=d+r:o=v+r)})}var sf=aI;st(aI,"vertical");st(aI,"horizontal");function wce(e,t,r){var n=t.width,i=t.height,a=Ee(e.left,n),o=Ee(e.top,i),s=Ee(e.right,n),l=Ee(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Od(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function yn(e,t,r){r=Od(r||0);var n=t.width,i=t.height,a=Ee(e.left,n),o=Ee(e.top,i),s=Ee(e.right,n),l=Ee(e.bottom,i),u=Ee(e.width,n),c=Ee(e.height,i),f=r[2]+r[0],h=r[1]+r[3],d=e.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(c)&&(c=i-l-f-o),d!=null&&(isNaN(u)&&isNaN(c)&&(d>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new ht(a+r[3],o+r[0],u,c);return v.margin=r,v}function ob(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new ht(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=yn(qe({width:u.width,height:u.height},t),r,n),h=o?f.x-u.x:0,d=s?f.y-u.y:0;return l==="raw"?(a.x=h,a.y=d):(a.x+=h,a.y+=d),a===e&&e.markRedraw(),!0}function xce(e,t){return e[Hc[t][0]]!=null||e[Hc[t][1]]!=null&&e[Hc[t][2]]!=null}function bg(e){var t=e.layoutMode||e.constructor.layoutMode;return Ke(t)?t:t?{type:t}:null}function Su(e,t,r){var n=r&&r.ignoreSize;!Se(n)&&(n=[n,n]);var i=o(Hc[0],0),a=o(Hc[1],1);u(Hc[0],e,i),u(Hc[1],e,a);function o(c,f){var h={},d=0,v={},p=0,m=2;if(I_(c,function(b){v[b]=e[b]}),I_(c,function(b){s(t,b)&&(h[b]=v[b]=t[b]),l(h,b)&&d++,l(v,b)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===m||!d)return v;if(d>=m)return h;for(var y=0;y=0;l--)s=ft(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return tm(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!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}(nr);pH(Dt,nr);US(Dt);cce(Dt);fce(Dt,Tce);function Tce(e){var t=[];return E(Dt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=we(t,function(r){return qo(r).main}),e!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}var pU="";typeof navigator<"u"&&(pU=navigator.platform||"");var lh="rgba(0, 0, 0, 0.2)";const Ace={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:lh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:lh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:lh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:lh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:lh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:lh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:pU.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 gU=He(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xa="original",ai="arrayRows",Za="objectRows",cs="keyedColumns",uu="typedArray",mU="unknown",es="column",Fd="row",$n={Must:1,Might:2,Not:3},yU=Nt();function Dce(e){yU(e).datasetMap=He()}function _U(e,t,r){var n={},i=sI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=yU(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),E(e,function(p,m){var y=Ke(p)?p:e[m]={name:p};y.type==="ordinal"&&c==null&&(c=m,f=v(y)),n[y.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});E(e,function(p,m){var y=p.name,S=v(p);if(c==null){var b=h.valueWayDim;d(n[y],b,S),d(o,b,S),h.valueWayDim+=S}else if(c===m)d(n[y],0,S),d(a,0,S);else{var b=h.categoryWayDim;d(n[y],b,S),d(o,b,S),h.categoryWayDim+=S}});function d(p,m,y){for(var S=0;St)return e[n];return e[r-1]}function wU(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:Ece(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function Rce(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ky,bv,qO,jO="\0_ec_inner",kce=1,uI=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new nr(a),this._locale=new nr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=QO(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,QO(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?qO(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&E(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=He(),u=n&&n.replaceMergeMainTypeMap;Dce(this),E(r,function(f,h){f!=null&&(Dt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Je(f):ft(i[h],f,!0))}),u&&u.each(function(f,h){Dt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Dt.topologicalTravel(s,Dt.getAllClassMainTypes(),c,this);function c(f){var h=Lce(this,f,cr(r[f])),d=a.get(f),v=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=cH(d,h,v);ale(p,f,Dt),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],S=0,b;E(p,function(w,C){var x=w.existing,A=w.newOption;if(!A)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var D=f==="series",M=Dt.getClass(f,w.keyInfo.subType,!D);if(!M)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===M)x.name=w.keyInfo.name,x.mergeOption(A,this),x.optionUpdated(A,!1);else{var I=de({componentIndex:C},w.keyInfo);x=new M(A,this,this,I),de(x,I),w.brandNew&&(x.__requireNewView=!0),x.init(A,this,this),x.optionUpdated(null,!0)}}x?(m.push(x.option),y.push(x),S++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,S),f==="series"&&Ky(this)}this._seriesIndices||Ky(this)},t.prototype.getOption=function(){var r=Je(this.option);return E(r,function(n,i){if(Dt.hasClass(i)){for(var a=cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!gg(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[jO],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 i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Hce(e,t){return e.join(",")===t.join(",")}var eo=E,wg=Ke,eN=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Jx(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=eN.length;r=0;m--){var y=e[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,d)),v>=0){var S=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&h>=0&&S>0||l==="samesign"&&h<=0&&S<0){h=Zse(h,S),p=S;break}}}return n[0]=h,n[1]=p,n})})}var sb=function(){function e(t){this.data=t.data||(t.sourceFormat===cs?{}:[]),this.sourceFormat=t.sourceFormat||mU,this.seriesLayoutBy=t.seriesLayoutBy||es,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;np&&(p=b)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};sN=(t={},t[ai+"_"+es]={pure:!0,appendData:a},t[ai+"_"+Fd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Za]={pure:!0,appendData:a},t[cs]={pure:!0,appendData:function(o){var s=this._data;E(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Xa]={appendData:a},t[uu]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return ld(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function fN(e){var t,r;return Ke(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Gp(e){return new ofe(e)}var ofe=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 i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=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)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(f||d1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},lfe=function(){function e(t,r){if(!$t(r)){var n="";tr(n)}this._opFn=RU[t],this._rvalFloat=Ks(r)}return e.prototype.evaluate=function(t){return $t(t)?this._opFn(t,this._rvalFloat):this._opFn(Ks(t),this._rvalFloat)},e}(),kU=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=$t(t)?t:Ks(t),i=$t(r)?r:Ks(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ne(t),l=Ne(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),ufe=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ks(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=Ks(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function cfe(e,t){return e==="eq"||e==="ne"?new ufe(e==="eq",t):Ve(RU,e)?new lfe(e,t):null}var ffe=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 cu(t,r)},e}();function hfe(e,t){var r=new ffe,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==es&&tr(o);var s=[],l={},u=e.dimensionsDefine;if(u)E(u,function(p,m){var y=p.name,S={index:m,name:y,displayName:p.displayName};if(s.push(S),y!=null){var b="";Ve(l,y)&&tr(b),l[y]=S}});else for(var c=0;c65535?Sfe:bfe}function uh(){return[1/0,-1/0]}function wfe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function vN(e,t,r,n,i){var a=FU[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=we(o,function(S){return S.property}),c=0;cy[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.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=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&S<=h||isNaN(S))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var m=d[i[0]],b=d[i[1]],w=t[i[1]][0],C=t[i[1]][1],y=0;y=f&&S<=h||isNaN(S))&&(x>=w&&x<=C||isNaN(x))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var y=0;y=f&&S<=h||isNaN(S))&&(l[u++]=A)}else for(var y=0;yt[I][1])&&(D=!1)}D&&(l[u++]=r.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,h,d=new(xv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;vc&&(c=f,h=w)}P>0&&Pc-v&&(l=c-v,s.length=l);for(var p=0;pf[1]&&(f[1]=y),h[d++]=S}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(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=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return cu(r[a],this._dimensions[a])}tC={arrayRows:t,objectRows:function(r,n,i,a){return cu(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return cu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),BU=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,i,a;if(Jy(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,a=[c._getVersionSign()]}else s=o.get("data",!0),l=Hi(s)?uu:Xa,a=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=ot(f.seriesLayoutBy,h.seriesLayoutBy)||null,v=ot(f.sourceHeader,h.sourceHeader),p=ot(f.dimensions,h.dimensions),m=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=m?[dD(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var y=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var b=y.get("source",!0);i=[dD(b,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&gN(a)}var o,s=[],l=[];return E(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&gN(f),s.push(c),l.push(u._getVersionSign())}),n?o=yfe(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Qce(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return E(e.blocks,function(i){var a=$U(i);a>=t&&(t=a+ +(n&&(!a||pD(i)&&!i.noHeader)))}),t}return 0}function Tfe(e,t,r,n){var i=t.noHeader,a=Dfe($U(t)),o=[],s=t.blocks||[];wi(!s||Se(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ve(u,l)){var c=new kU(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(v,p){var m=t.valueFormatter,y=GU(v)(m?de(de({},e),{valueFormatter:m}):e,v,p>0?a.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(a.richText):gD(o.join(""),i?r:a.html);if(i)return f;var h=cD(t.header,"ordinal",e.useUTC),d=zU(n,e.renderMode).nameStyle;return e.renderMode==="richText"?HU(e,h,d)+a.richText+f:gD('
'+Bi(h)+"
"+f,r)}function Afe(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Se(w)?w:[w],we(w,function(C,x){return cD(C,Se(d)?d[x]:d,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=a?"":cD(l,"ordinal",u),d=t.valueType,v=o?[]:c(t.value,t.dataIndex),p=!s||!a,m=!s&&a,y=zU(n,i),S=y.nameStyle,b=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":HU(e,h,S))+(o?"":Lfe(e,v,p,m,b)):gD((s?"":f)+(a?"":Mfe(h,!s,S))+(o?"":Ife(v,p,m,b)),r)}}function mN(e,t,r,n,i,a){if(e){var o=GU(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Dfe(e){return{html:xfe[e],richText:Cfe[e]}}function gD(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function Mfe(e,t,r){var n=t?"margin-left:2px":"";return''+Bi(e)+""}function Ife(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Se(e)?e:[e],''+we(e,function(o){return Bi(o)}).join("  ")+""}function HU(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Lfe(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Se(t)?t.join(" "):t,a)}function UU(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return bf(n)}function WU(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var rC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=oH()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=bce({color:r,type:t,renderMode:n,markerId:i});return Ne(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Se(r)?E(r,function(a){return de(n,a)}):de(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function YU(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Se(s),u=UU(t,r),c,f,h,d;if(o>1||l&&!o){var v=Pfe(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=c=ld(i,r,a[0]),f=p.type}else d=c=l?s[0]:s;var m=VM(t),y=m&&t.name||"",S=i.getName(r),b=n?y:S;return Mn("section",{header:y,noHeader:n||!m,sortParam:d,blocks:[Mn("nameValue",{markerType:"item",markerColor:u,name:b,noName:!uo(b),value:c,valueType:f,dataIndex:r})].concat(h||[])})}function Pfe(e,t,r,n,i){var a=t.getData(),o=is(e,function(f,h,d){var v=a.getDimensionInfo(d);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?E(n,function(f){c(ld(a,r,f),f)}):E(e,c);function c(f,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(Mn("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:f,valueType:d.type})):(s.push(f),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Dl=Nt();function Qy(e,t){return e.getName(t)||e.getId(t)}var L_="__universalTransitionEnabled",Dr=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Gp({count:Rfe,reset:kfe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Dl(this).sourceManager=new BU(this);a.prepareSource();var o=this.getInitialData(r,i);_N(o,this),this.dataTask.context.data=o,Dl(this).dataBeforeProcessed=o,yN(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=bg(this),a=i?Nd(r):{},o=this.subType;Dt.hasClass(o)&&(o+="Series"),ft(r,n.getTheme().get(this.subType)),ft(r,this.getDefaultOption()),mf(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Su(r,a,i)},t.prototype.mergeOption=function(r,n){r=ft(this.option,r,!0),this.fillDataTextStyle(r.data);var i=bg(this);i&&Su(this.option,r,i);var a=Dl(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);_N(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Dl(this).dataBeforeProcessed=o,yN(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Hi(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=lI.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),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 i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Qy(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[L_])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ke(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Dt.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}(Dt);dn(Dr,lb);dn(Dr,lI);pH(Dr,Dt);function yN(e){var t=e.name;VM(e)||(e.name=Efe(e)||t)}function Efe(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return E(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Rfe(e){return e.model.getRawData().count()}function kfe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Ofe}function Ofe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _N(e,t){E(c1(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,st(Nfe,t))})}function Nfe(e,t){var r=mD(e);return r&&r.setOutputEnd((t||this).count()),t}function mD(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Br=function(){function e(){this.group=new et,this.uid=kd("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();GM(Br);US(Br);function Bd(){var e=Nt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var XU=Nt(),Ffe=Bd(),pr=function(){function e(){this.group=new et,this.uid=kd("viewChart"),this.renderTask=Gp({plan:Bfe,reset:Vfe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&bN(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&bN(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Iu(this.group,t)},e.markUpdateMethod=function(t,r){XU(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function SN(e,t,r){e&&yg(e)&&(t==="emphasis"?Js:Qs)(e,r)}function bN(e,t,r){var n=yf(e,t),i=t&&t.highlightKey!=null?bue(t.highlightKey):null;n!=null?E(cr(n),function(a){SN(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){SN(a,r,i)})}GM(pr);US(pr);function Bfe(e){return Ffe(e.model)}function Vfe(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&XU(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),zfe[l]}var zfe={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)}}},D1="\0__throttleOriginMethod",wN="\0__throttleRate",xN="\0__throttleType";function vI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var h=function(){for(var d=[],v=0;v=0?f():o=setTimeout(f,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){c=d},h}function Vd(e,t,r,n){var i=e[t];if(i){var a=i[D1]||i,o=i[xN],s=i[wN];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=vI(a,r,n==="debounce"),i[D1]=a,i[xN]=n,i[wN]=r}return i}}function xg(e,t){var r=e[t];r&&r[D1]&&(r.clear&&r.clear(),e[t]=r[D1])}var CN=Nt(),TN={itemStyle:_f(QH,!0),lineStyle:_f(JH,!0)},Gfe={lineStyle:"stroke",itemStyle:"fill"};function ZU(e,t){var r=e.visualStyleMapper||TN[t];return r||(console.warn("Unknown style type '"+t+"'."),TN.itemStyle)}function qU(e,t){var r=e.visualDrawType||Gfe[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var $fe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=ZU(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=qU(e,n),u=o[l],c=Xe(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Xe(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Xe(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=e.getDataParams(v),m=de({},o);m[l]=c(p),d.setItemVisual(v,"style",m)}}}},Cv=new nr,Hfe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=ZU(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Cv.option=l[n];var u=i(Cv),c=o.ensureUniqueItemVisual(s,"style");de(c,u),Cv.option.decal&&(o.setItemVisual(s,"decal",Cv.option.decal),Cv.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ufe={performRawSeries:!0,overallReset:function(e){var t=He();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),CN(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=CN(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=qU(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var h=a.ensureUniqueItemVisual(c,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},e0=Math.PI;function Wfe(e,t){t=t||{},qe(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 et,n=new Ot({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new zt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ot({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new KS({shape:{startAngle:-e0/2,endAngle:-e0/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:e0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e0*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.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}),a.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 jU=function(){function e(t,r,n,i){this._stageTaskMap=He(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.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),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=He();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;E(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";wi(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},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,i){i=i||{};var a=!1,o=this;E(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(m){m.perform(p)}),h.perform(p)&&(a=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var S=o.getPerformArgs(m,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||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,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=He(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var h=f.uid,d=s.set(h,o&&o.get(h)||Gp({plan:jfe,reset:Kfe,count:Qfe}));d.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Gp({reset:Yfe});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=He(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";wi(!t.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,E(n.getSeries(),v));function v(p){var m=p.uid,y=l.set(m,s&&s.get(m)||(h=!0,Gp({reset:Xfe,onDirty:qfe})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,a._pipe(p,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Xe(t)&&(t={overallReset:t,seriesType:ehe(t)}),t.uid=kd("stageHandler"),r&&(t.visualType=r),t},e}();function Yfe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Xfe(e){return e.overallProgress&&Zfe}function Zfe(){this.agent.dirty(),this.getDownstream().dirty()}function qfe(){this.agent&&this.agent.dirty()}function jfe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Kfe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?we(t,function(r,n){return KU(n)}):Jfe}var Jfe=KU(0);function KU(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=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,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,h,d,v){return f[d]==null||h[v||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),yD=["symbol","symbolSize","symbolRotate","symbolOffset"],IN=yD.concat(["symbolKeepAspect"]),nhe={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={},i={},a=!1,o=0;o=0&&Wc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function _D(e,t,r){for(var n=t.type==="radial"?yhe(e,t,r):mhe(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:$t(e)?[e]:Se(e)?e:null}function gI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&She(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=we(r,function(a){return a/i}),n/=i)}return[r,n]}var bhe=new ls(!0);function L1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function LN(e){return typeof e=="string"&&e!=="none"}function P1(e){var t=e.fill;return t!=null&&t!=="none"}function PN(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 EN(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 SD(e,t,r){var n=$M(t.image,t.__image,r);if(WS(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*m_),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function whe(e,t,r,n){var i,a=L1(r),o=P1(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||bhe,f=t.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,m=o&&!!h.image,y=a&&!!d.image,S=void 0,b=void 0,w=void 0,C=void 0,x=void 0;(v||p)&&(x=t.getBoundingRect()),v&&(S=f?_D(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=S),p&&(b=f?_D(e,d,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(w=f||!t.__canvasFillPattern?SD(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(C=f||!t.__canvasStrokePattern?SD(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:m&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=b:y&&(C?e.strokeStyle=C:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var D,M;e.setLineDash&&r.lineDash&&(i=gI(t),D=i[0],M=i[1]);var I=!0;(u||f&Th)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=M),n||(r.strokeFirst?(a&&EN(e,r),o&&PN(e,r)):(o&&PN(e,r),a&&EN(e,r))),D&&e.setLineDash([])}function xhe(e,t,r){var n=t.__image=$M(r.image,t.__image,t,t.onload);if(!(!n||!WS(n))){var i=r.x||0,a=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,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,h=s-c;e.drawImage(n,u,c,f,h,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function Che(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||gu,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=gI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(L1(r)&&e.strokeText(i,r.x,r.y),P1(r)&&e.fillText(i,r.x,r.y)):(P1(r)&&e.fillText(i,r.x,r.y),L1(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var RN=["shadowBlur","shadowOffsetX","shadowOffsetY"],kN=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n8(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Gi(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?rf.opacity:o}(n||t.blend!==r.blend)&&(a||(Gi(e,i),a=!0),e.globalCompositeOperation=t.blend||rf.blend);for(var s=0;s0&&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,i){if(!this[Kn]){if(this._disposed){this.id;return}var a,o,s;if(Ke(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Kn]=!0,!this._model||n){var l=new Vce(this._api),u=this._theme,c=this._model=new uI;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},wD);var f={seriesTransition:s,optionChanged:!0};if(i)this[Oi]={silent:a,updateParams:f},this[Kn]=!1,this.getZr().wakeUp();else{try{fh(this),Ml.update.call(this,null,f)}catch(h){throw this[Oi]=null,this[Kn]=!1,h}this._ssr||this._zr.flush(),this[Oi]=null,this[Kn]=!1,Tv.call(this,a),Av.call(this,a)}}},t.prototype.setTheme=function(){},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||At.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;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;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(At.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return E(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;E(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.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 E(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(qN[i]){var l=s,u=s,c=-s,f=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();E(Hp,function(b,w){if(b.group===i){var C=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(Je(r)),x=b.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),h.push({dom:C,left:x.left,top:x.top})}}),l*=d,u*=d,c*=d,f*=d;var v=c-l,p=f-u,m=mu.createCanvas(),y=eO(m,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:p}),n){var S="";return E(h,function(b){var w=b.left-l,C=b.top-u;S+=''+b.dom+""}),y.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ot({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),E(h,function(b){var w=new Fn({style:{x:b.left*d-l,y:b.top*d-u,image:b.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return sC(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return sC(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Np(i,r);return E(o,function(s,l){l.indexOf("Models")>=0&&E(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=Np(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?pI(s,l,n):um(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;E(qhe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Uc(s,function(v){var p=rt(v);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=de({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var h=c&&f!=null&&o.getComponent(c,f),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),E($p,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),E(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),ahe(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&hH(this.getDom(),_I,"");var n=this,i=n._api,a=n._model;E(n._componentsViews,function(o){o.dispose(a,i)}),E(n._chartsViews,function(o){o.dispose(a,i)}),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 Hp[n.id]},t.prototype.resize=function(r){if(!this[Kn]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Oi]&&(a==null&&(a=this[Oi].silent),i=!0,this[Oi]=null),this[Kn]=!0;try{i&&fh(this),Ml.update.call(this,{type:"resize",animation:de({duration:0},r&&r.animation)})}catch(o){throw this[Kn]=!1,o}this[Kn]=!1,Tv.call(this,a),Av.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ke(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!xD[r]){var i=xD[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=de({},r);return n.type=$p[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ke(n)||(n={silent:!!n}),!!E1[r.type]&&this._model){if(this[Kn]){this._pendingActions.push(r);return}var i=n.silent;uC.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&At.browser.weChat&&this._throttledZrFlush(),Tv.call(this,i),Av.call(this,i)}},t.prototype.updateLabelLayout=function(){ao.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){fh=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),oC(f,!0),oC(f,!1),h.plan()},oC=function(f,h){for(var d=f._model,v=f._scheduler,p=h?f._componentsViews:f._chartsViews,m=h?f._componentsMap:f._chartsMap,y=f._zr,S=f._api,b=0;bh.get("hoverLayerThreshold")&&!At.node&&!At.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(f,h){var d=f.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(f,h){if(!f.preventAutoZ){var d=f.get("z")||0,v=f.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(f,h,d,v){var p=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var S=f.childrenRef(),b=0;b0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(qh(y))return;if(y instanceof Ct&&wue(y),y.__dirty){var S=y.prevStates;S&&y.useStates(S)}if(v){y.stateTransition=m;var b=y.getTextContent(),w=y.getTextGuideLine();b&&(b.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}XN=function(f){return new(function(h){Q(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){Js(v,p),Ca(f)},d.prototype.leaveEmphasis=function(v,p){Qs(v,p),Ca(f)},d.prototype.enterBlur=function(v){IH(v),Ca(f)},d.prototype.leaveBlur=function(v){XM(v),Ca(f)},d.prototype.enterSelect=function(v){LH(v),Ca(f)},d.prototype.leaveSelect=function(v){PH(v),Ca(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},d}(xU))(f)},y8=function(f){function h(d,v){for(var p=0;p=0)){jN.push(r);var a=jU.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function C8(e,t){xD[e]=t}function nde(e,t,r){var n=khe("registerMap");n&&n(e,t,r)}var ide=mfe;Pf(mI,$fe);Pf(cb,Hfe);Pf(cb,Ufe);Pf(mI,nhe);Pf(cb,ihe);Pf(h8,Ehe);w8(TU);x8(Fhe,Kce);C8("default",Wfe);fs({type:nf,event:nf,update:nf},rn);fs({type:T_,event:T_,update:T_},rn);fs({type:Fp,event:Fp,update:Fp},rn);fs({type:A_,event:A_,update:A_},rn);fs({type:Bp,event:Bp,update:Bp},rn);b8("light",the);b8("dark",e8);var KN=[],ade={registerPreprocessor:w8,registerProcessor:x8,registerPostInit:Qhe,registerPostUpdate:ede,registerUpdateLifecycle:SI,registerAction:fs,registerCoordinateSystem:tde,registerLayout:rde,registerVisual:Pf,registerTransform:ide,registerLoading:C8,registerMap:nde,registerImpl:Rhe,PRIORITY:Yhe,ComponentModel:Dt,ComponentView:Br,SeriesModel:Dr,ChartView:pr,registerComponentModel:function(e){Dt.registerClass(e)},registerComponentView:function(e){Br.registerClass(e)},registerSeriesModel:function(e){Dr.registerClass(e)},registerChartView:function(e){pr.registerClass(e)},registerSubTypeDefaulter:function(e,t){Dt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){$se(e,t)}};function bt(e){if(Se(e)){E(e,function(t){bt(t)});return}St(KN,e)>=0||(KN.push(e),Xe(e)&&(e={install:e}),e.install(ade))}function Dv(e){return e==null?0:e.length||1}function JN(e){return e}var el=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||JN,this._newKeyGetter=i||JN,this.context=a,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={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){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(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&h===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var d=0;d1)for(var s=0;s30}var Mv=Ke,Il=we,fde=typeof Int32Array>"u"?Array:Int32Array,hde="e\0\0",QN=-1,dde=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],vde=["_approximateExtent"],e5,a0,Iv,Lv,hC,o0,dC,Si=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,i=!1;A8(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xa;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Se(a)?a=a.slice():Mv(a)&&(a=de({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Mv(r)?de(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Mv(t)?de(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?de(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;tD(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){E(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Il(this.dimensions,this._getDimInfo,this),this.hostModel)),hC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Xe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(LM(arguments)))})},e.internalField=function(){e5=function(t){var r=t._invertedIndicesMap;E(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new fde(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function cm(e,t){cI(e)||(e=fI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=He(),a=[],o=gde(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&I8(o),l=n===e.dimensionsDefine,u=l?M8(e):D8(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=He(c),h=new NU(o),d=0;d0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function gde(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return E(t,function(a){var o;Ke(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function mde(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 yde=function(){function e(t){this.coordSysDims=[],this.axisMap=He(),this.categoryAxisMap=He(),this.coordSysName=t}return e}();function _de(e){var t=e.get("coordinateSystem"),r=new yde(t),n=Sde[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Sde={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",cn).models[0],a=e.getReferringComponents("yAxis",cn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),hh(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),hh(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",cn).models[0];t.coordSysDims=["single"],r.set("single",i),hh(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",cn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),hh(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),hh(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 i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();E(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),hh(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function hh(e){return e.get("type")==="category"}function bde(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;wde(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(E(a,function(S,b){Ne(S)&&(a[b]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,v=c.type,p=0;E(a,function(S){S.coordDim===d&&p++});var m={name:f,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(a.push(m),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:f}}function wde(e){return!A8(e.schema)}function bu(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function L8(e,t){return bu(e,t)?e.getCalculationInfo("stackResultDimension"):t}function xde(e,t){var r=e.get("coordinateSystem"),n=lm.get(r),i;return t&&t.coordSysDims&&(i=we(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=k1(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Cde(e,t,r){var n,i;return r&&E(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function ul(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=fI(e)):(i=n.getSource(),a=i.sourceFormat===Xa);var o=_de(t),s=xde(t,o),l=r.useEncodeDefaulter,u=Xe(l)?l:l?st(_U,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=cm(i,c),h=Cde(f.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(f),v=bde(t,{schema:f,store:d}),p=new Si(f,t);p.setCalculationInfo(v);var m=h!=null&&Tde(i)?function(y,S,b,w){return w===h?b:this.defaultDimValueGetter(y,S,b,w)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,m),p}function Tde(e){if(e.sourceFormat===Xa){var t=Ade(e.data||[]);return!Se(Id(t))}}function Ade(e){for(var t=0;tr[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}();US(hs);var Dde=0,CD=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Dde}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&we(n,Mde);return new e({categories:i,needCollect:!i,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(!Ne(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=He(this.categories))},e}();function Mde(e){return Ke(e)&&e.value!=null?e.value:e+""}function TD(e){return e.type==="interval"||e.type==="log"}function Ide(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=iH(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=P8(o),l=i.niceTickExtent=[qr(Math.ceil(e[0]/o)*o,s),qr(Math.floor(e[1]/o)*o,s)];return Lde(l,e),i}function vC(e){var t=Math.pow(10,BM(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,qr(r*t)}function P8(e){return Zo(e)+2}function t5(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function Lde(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),t5(e,0,t),t5(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function fb(e,t){return e>=t[0]&&e<=t[1]}function hb(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function db(e,t){return e*(t[1]-t[0])+t[0]}var vb=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new CD({})),Se(i)&&(i=new CD({categories:we(i,function(a){return Ke(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ne(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),fb(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),hb(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(db(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;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,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(hs);hs.registerClass(vb);var fc=qr,tl=function(e){Q(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 fb(r,this._extent)},t.prototype.normalize=function(r){return hb(r,this._extent)},t.prototype.scale=function(r){return db(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]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=P8(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:fc(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&d0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function k8(e){var t=Rde(e),r=[];return E(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=n.getData();s=Math.abs(o[1]-o[0])/d.count()}var v=Ee(n.get("barWidth"),s),p=Ee(n.get("barMaxWidth"),s),m=Ee(n.get("barMinWidth")||(V8(n)?.5:1),s),y=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:m,barGap:y,barCategoryGap:S,axisKey:xI(a),stackId:wI(n)})}),O8(r)}function O8(e){var t={};E(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=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 h=n.barMinWidth;h&&(l[u].minWidth=h);var d=n.barGap;d!=null&&(s.gap=d);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return E(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Mt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ee(s,o),c=Ee(n.gap,1),f=n.remainedWidth,h=n.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),E(a,function(y){var S=y.maxWidth,b=y.minWidth;if(y.width){var w=y.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),y.width=w,f-=w+c*w,h--}else{var w=d;S&&Sw&&(w=b),w!==d&&(y.width=w,f-=w+c*w,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var v=0,p;E(a,function(y,S){y.width||(y.width=d),p=y,v+=y.width*(1+c)}),p&&(v-=p.width*c);var m=-v/2;E(a,function(y,S){r[i][S]=r[i][S]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),r}function kde(e,t,r){if(e&&t){var n=e[xI(t)];return n!=null&&r!=null?n[wI(r)]:n}}function N8(e,t){var r=R8(e,t),n=k8(r);E(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=wI(i),u=n[xI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function F8(e){return{seriesType:e,plan:Bd(),reset:function(t){if(B8(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=bu(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),h=a.isHorizontal(),d=Ode(i,a),v=V8(t),p=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),y=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(b,w){for(var C=b.count,x=v&&jo(C*3),A=v&&l&&jo(C*3),D=v&&jo(C),M=n.master.getRect(),I=h?M.width:M.height,P,R=w.getStore(),N=0;(P=b.next())!=null;){var O=R.get(f?m:o,P),F=R.get(s,P),B=d,W=void 0;f&&(W=+O-R.get(o,P));var z=void 0,j=void 0,ee=void 0,te=void 0;if(h){var me=n.dataToPoint([O,F]);if(f){var Ae=n.dataToPoint([W,F]);B=Ae[0]}z=B,j=me[1]+S,ee=me[0]-B,te=y,Math.abs(ee)0?r:1:r))}var Nde=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=s0.length,l=Math.min(Nde(s0,this._approxInterval,0,s),s-1);this._interval=s0[l][1],this._minLevelUnit=s0[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return $t(r)?r:+ss(r)},t.prototype.contain=function(r){return fb(this.parse(r),this._extent)},t.prototype.normalize=function(r){return hb(this.parse(r),this._extent)},t.prototype.scale=function(r){return db(r,this._extent)},t.type="time",t}(tl),s0=[["second",rI],["minute",nI],["hour",zp],["quarter-day",zp*6],["half-day",zp*12],["day",Va*1.2],["half-week",Va*3.5],["week",Va*7],["month",Va*31],["quarter",Va*95],["half-year",UO/2],["year",UO]];function Fde(e,t,r,n){var i=ss(t),a=ss(r),o=function(v){return YO(i,v,n)===YO(a,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")},h=function(){return f()&&o("second")},d=function(){return h()&&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 h();case"millisecond":return d()}}function Bde(e,t){return e/=Va,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Vde(e){var t=30*Va;return e/=t,e>6?6:e>3?3:e>2?2:1}function zde(e){return e/=zp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function r5(e,t){return e/=t?nI:rI,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Gde(e){return iH(e)}function $de(e,t,r){var n=new Date(e);switch(Kh(t)){case"year":case"month":n[iU(r)](0);case"day":n[aU(r)](1);case"hour":n[oU(r)](0);case"minute":n[sU(r)](0);case"second":n[lU(r)](0),n[uU(r)](0)}return n.getTime()}function Hde(e,t,r,n){var i=1e4,a=rU,o=0;function s(I,P,R,N,O,F,B){for(var W=new Date(P),z=P,j=W[N]();z1&&F===0&&R.unshift({value:R[0].value-z})}}for(var F=0;F=n[0]&&S<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&h>b/1.5||(u.push(m),f>b||e===a[d]))break}c=[]}}}for(var w=sr(we(u,function(I){return sr(I,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],x=w.length-1,d=0;d0;)a*=10;var s=[qr(Yde(n[0]/a)*a),qr(Wde(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Up.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=to(r)/to(this.base),fb(r,this._extent)},t.prototype.normalize=function(r){return r=to(r)/to(this.base),hb(r,this._extent)},t.prototype.scale=function(r){return r=db(r,this._extent),l0(this.base,r)},t.type="log",t}(hs),z8=TI.prototype;z8.getMinorTicks=Up.getMinorTicks;z8.getLabel=Up.getLabel;function u0(e,t){return Ude(e,Zo(t))}hs.registerClass(TI);var Xde=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,d=this._determinedMax;return h!=null&&(s=h,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[qde[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Zde[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Zde={min:"_determinedMin",max:"_determinedMax"},qde={min:"_dataMin",max:"_dataMax"};function G8(e,t,r){var n=e.rawExtentInfo;return n||(n=new Xde(e,t,r),e.rawExtentInfo=n,n)}function c0(e,t){return t==null?null:fg(t)?NaN:e.parse(t)}function $8(e,t){var r=e.type,n=G8(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=R8("bar",o),l=!1;if(E(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=k8(s),c=jde(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function jde(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=kde(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;E(o,function(d){s=Math.min(d.offset,s)});var l=-1/0;E(o,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function cd(e,t){var r=t,n=$8(e,r),i=n.extent,a=r.get("splitNumber");e instanceof TI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,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 pb(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new vb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new CI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(hs.getClass(t)||tl)}}function Kde(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Gd(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(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ne(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Xe(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(AI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function AI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Jde(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof vb?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Gd(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var fm=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),tve=1e-8;function i5(e,t){return Math.abs(e-t)i&&(n=o,i=l)}if(n)return nve(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return E(o,function(s){s.type==="polygon"?a5(s.exterior,i,a,r):E(s.points,function(l){a5(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ht(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function ove(e,t){return e=ave(e),we(sr(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new o5(o[0],o.slice(1)));break;case"MultiPolygon":E(i.coordinates,function(l){l[0]&&a.push(new o5(l[0],l.slice(1)))});break;case"LineString":a.push(new s5([i.coordinates]));break;case"MultiLineString":a.push(new s5(i.coordinates))}var s=new W8(n[t||"name"],a,n.cp);return s.properties=n,s})}var Ag=Nt();function X8(e,t){var r=we(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function sve(e){var t=e.getLabelModel().get("customValues");if(t){var r=Gd(e);return{labels:X8(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?uve(e):fve(e)}function lve(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:X8(e,r)}:e.type==="category"?cve(e,t):{ticks:we(e.scale.getTicks(),function(n){return n.value})}}function uve(e){var t=e.getLabelModel(),r=Z8(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Z8(e,t){var r=q8(e,"labels"),n=DI(t),i=j8(r,n);if(i)return i;var a,o;return Xe(n)?a=Q8(e,n):(o=n==="auto"?hve(e):n,a=J8(e,o)),K8(r,n,{labels:a,labelCategoryInterval:o})}function cve(e,t){var r=q8(e,"ticks"),n=DI(t),i=j8(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Xe(n))a=Q8(e,n,!0);else if(n==="auto"){var s=Z8(e,e.getLabelModel());o=s.labelCategoryInterval,a=we(s.labels,function(l){return l.tickValue})}else o=n,a=J8(e,o,!0);return K8(r,n,{ticks:a,tickCategoryInterval:o})}function fve(e){var t=e.scale.getTicks(),r=Gd(e);return{labels:we(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function q8(e,t){return Ag(e)[t]||(Ag(e)[t]=[])}function j8(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),h=0,d=0;l<=a[1];l+=s){var v=0,p=0,m=em(r({value:l}),t.font,"center","top");v=m.width*1.3,p=m.height*1.3,h=Math.max(h,v,7),d=Math.max(d,p,7)}var y=h/c,S=d/f;isNaN(y)&&(y=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(y,S))),w=Ag(e.model),C=e.getExtent(),x=w.lastAutoInterval,A=w.lastTickCount;return x!=null&&A!=null&&Math.abs(x-b)<=1&&Math.abs(A-o)<=1&&x>b&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?b=x:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=C[0],w.axisExtent1=C[1]),b}function vve(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 J8(e,t,r){var n=Gd(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=H8(e),h=o.get("showMinLabel")||f,d=o.get("showMaxLabel")||f;h&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);d&&v-l!==a[1]&&p(a[1]);function p(m){var y={value:m};s.push(r?m:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function Q8(e,t,r){var n=e.scale,i=Gd(e),a=[];return E(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var l5=[0,1],Ao=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]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return rH(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,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),u5(n,i.count())),ir(t,l5,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),u5(n,i.count()));var a=ir(t,n,l5,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=lve(this,r),i=n.ticks,a=we(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return pve(this,a,o,t.clamp),a},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),i=we(n,function(a){return we(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return sve(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 i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return dve(this)},e}();function u5(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function pve(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;E(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];h(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&h(a[0],t[0].coord)&&t.unshift({coord:a[0]}),h(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&h(o.coord,a[1])&&t.push({coord:a[1]});function h(d,v){return d=qr(d),v=qr(v),f?d>v:di&&(i+=Pv);var d=Math.atan2(s,o);if(d<0&&(d+=Pv),d>=n&&d<=i||d+Pv>=n&&d+Pv<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,m=r*Math.cos(i)+e,y=r*Math.sin(i)+t,S=(v-o)*(v-o)+(p-s)*(p-s),b=(m-o)*(m-o)+(y-s)*(y-s);return S0){t=t/180*Math.PI,co.fromArray(e[0]),Cr.fromArray(e[1]),en.fromArray(e[2]),ut.sub(Ko,co,Cr),ut.sub(Uo,en,Cr);var r=Ko.len(),n=Uo.len();if(!(r<.001||n<.001)){Ko.scale(1/r),Uo.scale(1/n);var i=Ko.dot(Uo),a=Math.cos(t);if(a1&&ut.copy(yi,en),yi.toArray(e[1])}}}}function bve(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,co.fromArray(e[0]),Cr.fromArray(e[1]),en.fromArray(e[2]),ut.sub(Ko,Cr,co),ut.sub(Uo,en,Cr);var n=Ko.len(),i=Uo.len();if(!(n<.001||i<.001)){Ko.scale(1/n),Uo.scale(1/i);var a=Ko.dot(t),o=Math.cos(r);if(a=l)ut.copy(yi,en);else{yi.scaleAndAdd(Uo,s/Math.tan(Math.PI/2-c));var f=en.x!==Cr.x?(yi.x-Cr.x)/(en.x-Cr.x):(yi.y-Cr.y)/(en.y-Cr.y);if(isNaN(f))return;f<0?ut.copy(yi,Cr):f>1&&ut.copy(yi,en)}yi.toArray(e[1])}}}}function mC(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function wve(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 i=jl(n[0],n[1]),a=jl(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=__([],n[1],n[0],o/i),l=__([],n[1],n[2],o/a),u=__([],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;c0&&a&&C(-c/o,0,o);var p=e[0],m=e[o-1],y,S;b(),y<0&&x(-y,.8),S<0&&x(S,.8),b(),w(y,S,1),w(S,y,-1),b(),y<0&&A(-y),S<0&&A(S);function b(){y=p.rect[t]-n,S=i-m.rect[t]-m.rect[r]}function w(D,M,I){if(D<0){var P=Math.min(M,-D);if(P>0){C(P*I,0,o);var R=P+D;R<0&&x(-R*I,1)}else x(-D*I,1)}}function C(D,M,I){D!==0&&(u=!0);for(var P=M;P0)for(var R=0;R0;R--){var B=I[R-1]*F;C(-B,R,o)}}}function A(D){var M=D<0?-1:1;D=Math.abs(D);for(var I=Math.ceil(D/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),D-=I,D<=0)return}return u}function xve(e,t,r,n){return nW(e,"x","width",t,r,n)}function iW(e,t,r,n){return nW(e,"y","height",t,r,n)}function aW(e){var t=[];e.sort(function(p,m){return m.priority-p.priority});var r=new ht(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),St(h,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Yt(n,u,r,l)}else if(n.attr(u),!Rd(n).valueAnimation){var f=ot(n.style.opacity,1);n.style.opacity=0,Rr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var d=a.oldLayoutSelect={};f0(d,u,h0),f0(d,n.states.select,h0)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};f0(v,u,h0),f0(v,n.states.emphasis,h0)}KH(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Ave(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Yt(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,Rr(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}(),_C=Nt();function Mve(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=_C(r).labelManager;i||(i=_C(r).labelManager=new Dve),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=_C(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var SC=Math.sin,bC=Math.cos,oW=Math.PI,dc=Math.PI*2,Ive=180/oW,sW=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),h=tu(f-dc)||(c?u>=dc:-u>=dc),d=u>0?u%dc:u%dc+dc,v=!1;h?v=!0:tu(f)?v=!1:v=d>=oW==!!c;var p=t+n*bC(o),m=r+i*SC(o);this._start&&this._add("M",p,m);var y=Math.round(a*Ive);if(h){var S=1/this._p,b=(c?1:-1)*(dc-S);this._add("A",n,i,y,1,+c,t+n*bC(o+b),r+i*SC(o+b)),S>.01&&this._add("A",n,i,y,0,+c,p,m)}else{var w=t+n*bC(s),C=r+i*SC(s);this._add("A",n,i,y,+v,+c,w,C)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,h=1;h"}function Bve(e){return""}function PI(e,t){t=t||{};var r=t.newline?` -`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return Fve(o,s)+(o!=="style"?Bi(l):l||"")+(a?""+r+we(a,function(u){return n(u)}).join(r)+r:"")+Bve(o)}return n(e)}function Vve(e,t,r){r=r||{};var n=r.newline?` -`:"",i=" {"+n,a=n+"}",o=we(Mt(e),function(l){return l+i+we(Mt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=we(Mt(t),function(l){return"@keyframes "+l+i+we(Mt(t[l]),function(u){return u+i+we(Mt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function MD(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function d5(e,t,r,n){return Cn("svg","root",{width:e,height:t,xmlns:lW,"xmlns:xlink":uW,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var zve=0;function fW(){return zve++}var v5={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},_c="transform-origin";function Gve(e,t,r){var n=de({},e.shape);de(n,t),e.buildPath(r,n);var i=new sW;return i.reset(X$(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function $ve(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[_c]=r+"px "+n+"px")}var Hve={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function hW(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function Uve(e,t,r){var n=e.shape.paths,i={},a,o;if(E(n,function(l){var u=MD(r.zrId);u.animation=!0,gb(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,h=Mt(c),d=h.length;if(d){o=h[d-1];var v=c[o];for(var p in v){var m=v[p];i[p]=i[p]||{d:""},i[p].d+=m.d||""}for(var y in f){var S=f[y].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){t.d=!1;var s=hW(i,r);return a.replace(o,s)}}function p5(e){return Ne(e)?v5[e]?"cubic-bezier("+v5[e]+")":OM(e)?e:"":""}function gb(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof jM){var s=Uve(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var se=hW(A,r);return se+" "+S[0]+" both"}}for(var m in l){var s=p(l[m]);s&&o.push(s)}if(o.length){var y=r.zrId+"-cls-"+fW();r.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function Wve(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};g5(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=zA(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),g5(n,t,r)}}function g5(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+fW(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Dg=Math.round;function dW(e){return e&&Ne(e.src)}function vW(e){return e&&Xe(e.toDataURL)}function EI(e,t,r,n){kve(function(i,a){var o=i==="fill"||i==="stroke";o&&Y$(a)?gW(t,e,i,n):o&&NM(a)?mW(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),Jve(r,e,n)}function RI(e,t){var r=Hse(t);r&&(r.each(function(n,i){n!=null&&(e[(h5+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[h5+"silent"]="true"))}function m5(e){return tu(e[0]-1)&&tu(e[1])&&tu(e[2])&&tu(e[3]-1)}function Yve(e){return tu(e[4])&&tu(e[5])}function kI(e,t,r){if(t&&!(Yve(t)&&m5(t))){var n=1e4;e.transform=m5(t)?"translate("+Dg(t[4]*n)/n+" "+Dg(t[5]*n)/n+")":hse(t)}}function y5(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";wi(h,m),wi(d,m)}else if(h==null||d==null){var y=function(I,P){if(I){var R=I.elm,N=h||P.width,O=d||P.height;I.tag==="pattern"&&(u?(O=1,N/=a.width):c&&(N=1,O/=a.height)),I.attrs.width=N,I.attrs.height=O,R&&(R.setAttribute("width",N),R.setAttribute("height",O))}},S=$M(v,null,e,function(I){l||y(x,I),y(f,I)});S&&S.width&&S.height&&(h=h||S.width,d=d||S.height)}f=Cn("image","img",{href:v,width:h,height:d}),o.width=h,o.height=d}else i.svgElement&&(f=Je(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/a.width):c?(b=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var C=Z$(i);C&&(o.patternTransform=C);var x=Cn("pattern","",o,[f]),A=PI(x),D=n.patternCache,M=D[A];M||(M=n.zrId+"-p"+n.patternIdx++,D[A]=M,o.id=M,x=n.defs[M]=Cn("pattern",M,o,[f])),t[r]=GS(M)}}function Qve(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=Cn("clipPath",a,o,[pW(e,r)])}t["clip-path"]=GS(a)}function b5(e){return document.createTextNode(e)}function Pc(e,t,r){e.insertBefore(t,r)}function w5(e,t){e.removeChild(t)}function x5(e,t){e.appendChild(t)}function yW(e){return e.parentNode}function _W(e){return e.nextSibling}function wC(e,t){e.textContent=t}var C5=58,epe=120,tpe=Cn("","");function ID(e){return e===void 0}function Go(e){return e!==void 0}function rpe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function up(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function Mg(e){var t,r=e.children,n=e.tag;if(Go(n)){var i=e.elm=cW(n);if(OI(tpe,e),Se(r))for(t=0;ta?(v=r[l+1]==null?null:r[l+1].elm,SW(e,v,r,i,l)):B1(e,t,n,a))}function Dh(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(OI(e,t),ID(t.text)?Go(n)&&Go(i)?n!==i&&npe(r,n,i):Go(i)?(Go(e.text)&&wC(r,""),SW(r,null,i,0,i.length-1)):Go(n)?B1(r,n,0,n.length-1):Go(e.text)&&wC(r,""):e.text!==t.text&&(Go(n)&&B1(r,n,0,n.length-1),wC(r,t.text)))}function ipe(e,t){if(up(e,t))Dh(e,t);else{var r=e.elm,n=yW(r);Mg(t),n!==null&&(Pc(n,t.elm,_W(r)),B1(n,[e],0,0))}return t}var ape=0,ope=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=T5(),this.configLayer=T5(),this.storage=r,this._opts=n=de({},n),this.root=t,this._id="zr"+ape++,this._oldVNode=d5(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=cW("svg");OI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",ipe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return S5(t,MD(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=MD(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=spe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Cn("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=we(Mt(a.defs),function(h){return a.defs[h]});if(u.length&&o.push(Cn("defs","defs",{},u)),t.animation){var c=Vve(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Cn("style","stl",{},[],c);o.push(f)}}return d5(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},PI(this.renderToVNode({animation:ot(t.cssAnimation,!0),emphasis:ot(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ot(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(h&&l&&h[p]===l[p]);p--);for(var m=v-1;m>p;m--)o--,s=a[o-1];for(var y=p+1;y=s)}}for(var f=this.__startIndex;f15)break}}O.prevElClipPaths&&y.restore()};if(S)if(S.length===0)D=m.__endIndex;else for(var I=d.dpr,P=0;P0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.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,i=0;i0?d0:0),this._needsManuallyCompositing),c.__builtin__||MM("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&na&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,h){!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,E(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ft(n[t],r,!0):n[t]=r;for(var i=0;i-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}(Dr);function fd(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ld(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var hm=function(e){Q(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=hn(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=ppe,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(){Js(this.childAt(0))},t.prototype.downplay=function(){Qs(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Yt(h,d,s,n),wo(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Rr(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,h,d,v,p,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,h=a.focus,d=a.blurScope,p=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),h=b.get("focus"),d=b.get("blurScope"),v=b.get("disabled"),p=Dn(S),m=b.getShallow("scale"),y=S.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=Lf(r.getItemVisual(n,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var x=r.getItemVisual(n,"style"),A=x.fill;if(s instanceof Fn){var D=s.style;s.useStyle(de({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},x))}else s.__isEmptyBrush?s.useStyle(de({},x)):s.useStyle(x),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=r.getItemVisual(n,"liftZ"),I=this._z2;M!=null?I==null&&(this._z2=s.z2,s.z2+=M):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Yn(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:R,inheritColor:A,defaultOpacity:x.opacity});function R(F){return P?r.getName(F):fd(r,F)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var N=s.ensureState("emphasis");N.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;N.scaleX=this._sizeX*O,N.scaleY=this._sizeY*O,this.setSymbolScale(1),Yr(this,h,d,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=rt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&_u(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();_u(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return zd(r.getItemVisual(n,"symbolSize"))},t}(et);function ppe(e,t){this.parent.drift(e,t)}function CC(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 M5(e){return e!=null&&!Ke(e)&&(e={isIgnore:e}),e||{}}function I5(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:Dn(t),cursorStyle:t.get("cursor")}}var dm=function(){function e(t){this.group=new et,this._SymbolCtor=t||hm}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=M5(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=I5(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var h=c(f);if(CC(t,h,f,r)){var d=new o(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),n.add(d)}}).update(function(f,h){var d=a.getItemGraphicEl(h),v=c(f);if(!CC(t,v,f,r)){n.remove(d);return}var p=t.getItemVisual(f,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==p)n.remove(d),d=new o(t,f,l,u),d.setPosition(v);else{d.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?d.attr(y):Yt(d,y,i)}n.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var h=a.getItemGraphicEl(f);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=I5(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=M5(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function xW(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function mpe(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function ype(e,t,r,n,i,a,o,s){for(var l=mpe(e,t),u=[],c=[],f=[],h=[],d=[],v=[],p=[],m=wW(i,t,o),y=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b=i||p<0)break;if(lf(y,S)){if(l){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](y,S),f=y,h=S;else{var b=y-u,w=S-c;if(b*b+w*w<.5){p+=a;continue}if(o>0){for(var C=p+a,x=t[C*2],A=t[C*2+1];x===y&&A===S&&m=n||lf(x,A))d=y,v=S;else{I=x-u,P=A-c;var O=y-u,F=x-y,B=S-c,W=A-S,z=void 0,j=void 0;if(s==="x"){z=Math.abs(O),j=Math.abs(F);var ee=I>0?1:-1;d=y-ee*z*o,v=S,R=y+ee*j*o,N=S}else if(s==="y"){z=Math.abs(B),j=Math.abs(W);var te=P>0?1:-1;d=y,v=S-te*z*o,R=y,N=S+te*j*o}else z=Math.sqrt(O*O+B*B),j=Math.sqrt(F*F+W*W),M=j/(j+z),d=y-I*o*(1-M),v=S-P*o*(1-M),R=y+I*o*M,N=S+P*o*M,R=Ll(R,Pl(x,y)),N=Ll(N,Pl(A,S)),R=Pl(R,Ll(x,y)),N=Pl(N,Ll(A,S)),I=R-y,P=N-S,d=y-I*z/j,v=S-P*z/j,d=Ll(d,Pl(u,y)),v=Ll(v,Pl(c,S)),d=Pl(d,Ll(u,y)),v=Pl(v,Ll(c,S)),I=y-d,P=S-v,R=y+I*j/z,N=S+P*j/z}e.bezierCurveTo(f,h,d,v,y,S),f=R,h=N}else e.lineTo(y,S)}u=y,c=S,p+=a}return m}var CW=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),_pe=function(e){Q(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 CW},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&lf(i[o*2-2],i[o*2-1]);o--);for(;a=0){var w=u?(v-l)*b+l:(d-s)*b+s;return u?[r,w]:[w,r]}s=d,l=v;break;case o.C:d=a[f++],v=a[f++],p=a[f++],m=a[f++],y=a[f++],S=a[f++];var C=u?d1(s,d,p,y,r,c):d1(l,v,m,S,r,c);if(C>0)for(var x=0;x=0){var w=u?wn(l,v,m,S,A):wn(s,d,p,y,A);return u?[r,w]:[w,r]}}s=y,l=S;break}}},t}(Ct),Spe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(CW),TW=function(e){Q(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 Spe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&lf(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function xpe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=we(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=wpe(u,i==="x"?r.getWidth():r.getHeight()),d=h.length;if(!d&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=h[0].coord-v,m=h[d-1].coord+v,y=m-p;if(y<.001)return"transparent";E(h,function(b){b.offset=(b.coord-p)/y}),h.push({offset:d?h[d-1].offset:.5,color:f[1]||"transparent"}),h.unshift({offset:d?h[0].offset:.5,color:f[0]||"transparent"});var S=new am(0,0,0,0,h,!0);return S[i]=p,S[i+"2"]=m,S}}}function Cpe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Tpe(a,t))){var o=t.mapDimension(a.dim),s={};return E(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Tpe(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function Ape(e,t){return isNaN(e)||isNaN(t)}function Dpe(e){for(var t=e.length/2;t>0&&Ape(e[t*2-2],e[t*2-1]);t--);return t-1}function k5(e,t){return[e[t*2],e[t*2+1]]}function Mpe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function MW(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var ee=p.getState("emphasis").style;ee.lineWidth=+p.style.lineWidth+1}rt(p).seriesIndex=r.seriesIndex,Yr(p,W,z,j);var te=R5(r.get("smooth")),me=r.get("smoothMonotone");if(p.setShape({smooth:te,smoothMonotone:me,connectNulls:D}),m){var Ae=l.getCalculationInfo("stackedOnSeries"),Pe=0;m.useStyle(qe(c.getAreaStyle(),{fill:N,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Ae&&(Pe=R5(Ae.get("smooth"))),m.setShape({smooth:te,stackedOnSmooth:Pe,smoothMonotone:me,connectNulls:D}),Wn(m,r,"areaStyle"),rt(m).seriesIndex=r.seriesIndex,Yr(m,W,z,j)}var Oe=function(Ue){a._changePolyState(Ue)};l.eachItemGraphicEl(function(Ue){Ue&&(Ue.onHoverStateChange=Oe)}),this._polyline.onHoverStateChange=Oe,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=P,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,p),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){rt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=yf(o,a);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 h=r.get("zlevel")||0,d=r.get("z")||0;u=new hm(o,s),u.x=c,u.y=f,u.setZ(h,d);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=h,v.z=d,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else pr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=yf(o,a);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 pr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;S1(this._polyline,r),n&&S1(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _pe({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new TW({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Xe(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=Xe(f)?f(null):f;r.eachItemGraphicEl(function(d,v){var p=d;if(p){var m=[d.x,d.y],y=void 0,S=void 0,b=void 0;if(i)if(o){var w=i,C=n.pointToCoord(m);a?(y=w.startAngle,S=w.endAngle,b=-C[1]/180*Math.PI):(y=w.r0,S=w.r,b=C[0])}else{var x=i;a?(y=x.x,S=x.x+x.width,b=d.x):(y=x.y+x.height,S=x.y,b=d.y)}var A=S===y?0:(b-y)/(S-y);l&&(A=1-A);var D=Xe(f)?f(v):c*A+h,M=p.getSymbolPath(),I=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:D}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(MW(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 zt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Dpe(l);c>=0&&(Yn(s,Dn(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?bW(o,d):fd(o,f)},enableTextSetter:!0},Ipe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,d=h.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),S=m.inverse,b=n.shape,w=S?y?b.x:b.y+b.height:y?b.x+b.width:b.y,C=(y?p:0)*(S?-1:1),x=(y?0:-p)*(S?-1:1),A=y?"x":"y",D=Mpe(f,w,A),M=D.range,I=M[1]-M[0],P=void 0;if(I>=1){if(I>1&&!d){var R=k5(f,M[0]);u.attr({x:R[0]+C,y:R[1]+x}),o&&(P=h.getRawValue(M[0]))}else{var R=c.getPointOn(w,A);R&&u.attr({x:R[0]+C,y:R[1]+x});var N=h.getRawValue(M[0]),O=h.getRawValue(M[1]);o&&(P=dH(i,v,N,O,D.t))}a.lastFrameIndex=M[0]}else{var F=r===1||a.lastFrameIndex>0?M[0]:0,R=k5(f,F);o&&(P=h.getRawValue(F)),u.attr({x:R[0]+C,y:R[1]+x})}if(o){var B=Rd(u);typeof B.setLabelText=="function"&&B.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,h=ype(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),d=h.current,v=h.stackedOnCurrent,p=h.next,m=h.stackedOnNext;if(o&&(d=El(h.current,i,o,l),v=El(h.stackedOnCurrent,i,o,l),p=El(h.next,i,o,l),m=El(h.stackedOnNext,i,o,l)),E5(d,p)>3e3||c&&E5(v,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=h.current,u.shape.points=d;var y={shape:{points:p}};h.current!==d&&(y.shape.__points=h.next),u.stopAnimation(),Yt(u,y,f),c&&(c.setShape({points:d,stackedOnPoints:v}),c.stopAnimation(),Yt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=h.status,w=0;wt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;rt&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},Epe=function(e){return Math.round(e.length/2)};function IW(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var v=void 0;Ne(a)?v=Ppe[a]:Xe(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,v,Epe))}}}}}function Rpe(e){e.registerChartView(Lpe),e.registerSeriesModel(vpe),e.registerLayout(pm("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,IW("line"))}var Ig=function(e){Q(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 ul(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)E(a.getAxes(),function(h,d){if(h.type==="category"&&n!=null){var v=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),m=o[d],y=n[d]==="x1"||n[d]==="y1";if(y&&!p&&(m+=1),v.length<2)return;if(v.length===2){s[d]=h.toGlobalCoord(h.getExtent()[y?1:0]);return}for(var S=void 0,b=void 0,w=1,C=0;Cm){b=(x+S)/2;break}C===1&&(w=A-v[0].tickValue)}b==null&&(S?S&&(b=v[v.length-1].coord):b=v[0].coord),s[d]=h.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.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}(Dr);Dr.registerClass(Ig);var kpe=function(e){Q(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 ul(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,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Lu(Ig.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}(Ig),Ope=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}(),V1=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Ope},t.prototype.buildPath=function(r,n){var i=n.cx,a=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,h=n.clockwise,d=Math.PI*2,v=h?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.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,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){_g(a,r,rt(a).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}(pr),O5={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 i=e.x+e.width,a=e.y+e.height,o=AC(t.x,e.x),s=DC(t.x+t.width,i),l=AC(t.y,e.y),u=DC(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?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 i=DC(t.r,e.r),a=AC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},N5={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ot({shape:de({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?V1:Ci,c=new u({shape:n,z2:1});c.name="item";var f=LW(i);if(c.calculateTextPosition=Npe(f,{isRoundCap:u===V1}),a){var h=c.shape,d=i?"r":"endAngle",v={};h[d]=i?n.r0:n.startAngle,v[d]=n[d],(s?Yt:Rr)(c,{shape:v},a)}return c}};function zpe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function F5(e,t,r,n,i,a,o,s){var l,u;a?(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?Yt:Rr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Yt:Rr)(r,{shape:u},c,i)}function B5(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},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 Hpe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function LW(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 z5(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Xc(n.getModel("itemStyle"),c,!0);de(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var h=n.getShallow("cursor");h&&e.attr("cursor",h);var d=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=Dn(n);Yn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:fd(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var p=e.getTextContent();if(s&&p){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,Fpe(e,m==="outside"?d:m,LW(o),n.get(["label","rotate"]))}jH(p,v,a.getRawValue(r),function(S){return bW(t,S)});var y=n.getModel(["emphasis"]);Yr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),Wn(e,n),Hpe(i)&&(e.style.fill="none",e.style.stroke="none",E(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Upe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var Wpe=function(){function e(){}return e}(),G5=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Wpe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function Ype(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function PW(e,t,r){if(Ef(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Xpe(e,t,r){var n=e.type==="polar"?Ci:Ot;return new n({shape:PW(t,r,e),silent:!0,z2:0})}function Zpe(e){e.registerChartView(Vpe),e.registerSeriesModel(kpe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,st(N8,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F8("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,IW("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var U5=Math.PI*2,m0=Math.PI/180;function EW(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function RW(e,t){var r=EW(e,t),n=e.get("center"),i=e.get("radius");Se(i)||(i=[0,i]);var a=Ee(r.width,t.getWidth()),o=Ee(r.height,t.getHeight()),s=Math.min(a,o),l=Ee(i[0],s/2),u=Ee(i[1],s/2),c,f,h=e.coordinateSystem;if(h){var d=h.dataToPoint(n);c=d[0]||0,f=d[1]||0}else Se(n)||(n=[n,n]),c=Ee(n[0],a)+r.x,f=Ee(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function qpe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=EW(n,r),s=RW(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,h=-n.get("startAngle")*m0,d=n.get("endAngle"),v=n.get("padAngle")*m0;d=d==="auto"?h-U5:-d*m0;var p=n.get("minAngle")*m0,m=p+v,y=0;i.each(a,function(W){!isNaN(W)&&y++});var S=i.getSum(a),b=Math.PI/(S||y)*2,w=n.get("clockwise"),C=n.get("roseType"),x=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var D=w?1:-1,M=[h,d],I=D*v/2;HM(M,!w),h=M[0],d=M[1];var P=kW(n);P.startAngle=h,P.endAngle=d,P.clockwise=w;var R=Math.abs(d-h),N=R,O=0,F=h;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(W,z){var j;if(isNaN(W)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:C?NaN:c});return}C!=="area"?j=S===0&&x?b:W*b:j=R/y,jj?(te=F+D*j/2,me=te):(te=F+I,me=ee-I),i.setItemLayout(z,{angle:j,startAngle:te,endAngle:me,clockwise:w,cx:l,cy:u,r0:f,r:C?ir(W,A,[f,c]):c}),F=ee}),Nr?y:m,C=Math.abs(b.label.y-r);if(C>=w.maxY){var x=b.label.x-t-b.len2*i,A=n+b.len,D=Math.abs(x)e.unconstrainedWidth?null:d:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var m=(n.style.margin||0)+2.1;a.height=p.height+m,a.y-=(a.height-f)/2}}}function MC(e){return e.position==="center"}function Jpe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*jpe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,h=s.height;function d(x){x.ignore=!0}function v(x){if(!x.ignore)return!0;for(var A in x.states)if(x.states[A].ignore===!1)return!0;return!1}t.each(function(x){var A=t.getItemGraphicEl(x),D=A.shape,M=A.getTextContent(),I=A.getTextGuideLine(),P=t.getItemModel(x),R=P.getModel("label"),N=R.get("position")||P.get(["emphasis","label","position"]),O=R.get("distanceToLabelLine"),F=R.get("alignTo"),B=Ee(R.get("edgeDistance"),u),W=R.get("bleedMargin"),z=P.getModel("labelLine"),j=z.get("length");j=Ee(j,u);var ee=z.get("length2");if(ee=Ee(ee,u),Math.abs(D.endAngle-D.startAngle)0?"right":"left":me>0?"left":"right"}var ie=Math.PI,_e=0,fe=R.get("rotate");if($t(fe))_e=fe*(ie/180);else if(N==="center")_e=0;else if(fe==="radial"||fe===!0){var $=me<0?-te+ie:-te;_e=$}else if(fe==="tangential"&&N!=="outside"&&N!=="outer"){var Y=Math.atan2(me,Ae);Y<0&&(Y=ie*2+Y);var re=Ae>0;re&&(Y=ie+Y),_e=Y-ie}if(a=!!_e,M.x=Pe,M.y=Oe,M.rotation=_e,M.setStyle({verticalAlign:"middle"}),he){M.setStyle({align:se});var Re=M.states.select;Re&&(Re.x+=M.x,Re.y+=M.y)}else{var ue=M.getBoundingRect().clone();ue.applyTransform(M.getComputedTransform());var Ce=(M.style.margin||0)+2.1;ue.y-=Ce/2,ue.height+=Ce,r.push({label:M,labelLine:I,position:N,len:j,len2:ee,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new ut(me,Ae),linePoints:Ue,textAlign:se,labelDistance:O,labelAlignTo:F,edgeDistance:B,bleedMargin:W,rect:ue,unconstrainedWidth:ue.width,labelStyleWidth:M.style.width})}A.setTextConfig({inside:he})}}),!a&&e.get("avoidLabelOverlap")&&Kpe(r,n,i,l,u,h,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(pr);function $d(e,t,r){t=Se(t)&&{coordDimensions:t}||de({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=cm(n,t).dimensions,a=new Si(i,e);return a.initData(n,r),a}var mm=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}(),tge=Nt(),rge=function(e){Q(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 mm(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $d(this,{coordDimensions:["value"],encodeDefaulter:st(oI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=tge(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Xse(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){mf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.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}(Dr);function nge(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!($t(o)&&!isNaN(o)&&o<0)})}}}function ige(e){e.registerChartView(ege),e.registerSeriesModel(rge),r8("pie",e.registerAction),e.registerLayout(st(qpe,"pie")),e.registerProcessor(gm("pie")),e.registerProcessor(nge("pie"))}var age=function(e){Q(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,n){return ul(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Dr),NW=4,oge=function(){function e(){}return e}(),sge=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new oge},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,f=a[c]-s/2,h=a[c+1]-l/2;if(r>=f&&n>=h&&r<=f+s&&n<=h+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,h=0;h=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),uge=function(e){Q(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,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=pm("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new lge:new dm,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(pr),cge=function(e){Q(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}(Dt),PD=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",cn).models[0]},t.type="cartesian2dAxis",t}(Dt);dn(PD,fm);var FW={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)"]}}},fge=ft({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FW),NI=ft({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}}},FW),hge=ft({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},NI),dge=qe({logBase:10},NI);const BW={category:fge,value:NI,time:hge,log:dge};var vge={value:1,category:1,time:1,log:1};function hd(e,t,r,n){E(vge,function(i,a){var o=ft(ft({},BW[a],!0),n,!0),s=function(l){Q(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=bg(this),d=h?Nd(c):{},v=f.getTheme();ft(c,v.get(a+"Axis")),ft(c,this.getDefaultOption()),c.type=Y5(c),h&&Su(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=CD.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."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Y5)}function Y5(e){return e.type||(e.data?"category":"value")}var pge=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 we(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),sr(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}(),ED=["x","y"];function X5(e){return e.type==="interval"||e.type==="time"}var gge=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=ED,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!X5(r)||!X5(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,h=o[0]-i[0]*c,d=o[1]-a[0]*f,v=this._transform=[c,0,0,f,h,d];this._invTransform=Md([],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"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.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 i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ht(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Un(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.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 i=[];if(this._invTransform)return Un(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},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(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ht(a,o,s,l)},t}(pge),mge=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"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}(Ao);function RD(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,v=u==="x"?[f[2]-d,f[3]+d]:[f[0]-d,f[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:f[0],u==="x"?v[h[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),On(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function Z5(e){return e.get("coordinateSystem")==="cartesian2d"}function q5(e){var t={xAxisModel:null,yAxisModel:null};return E(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,cn).models[0];t[n]=a}),t}var IC=Math.log;function VW(e,t,r){var n=tl.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=$8(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var h=IC(e.base);u=[IC(u[0])/h,IC(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var d=n.getExtent.call(e);c&&(u[0]=d[0]),f&&(u[1]=d[1]);var v=n.getInterval.call(e),p=u[0],m=u[1];if(c&&f)v=(m-p)/o;else if(c)for(m=u[0]+v*o;mu[0]&&isFinite(p)&&isFinite(u[0]);)v=vC(v),p=u[1]-v*o;else{var y=e.getTicks().length-1;y>o&&(v=vC(v));var S=v*o;m=Math.ceil(u[1]/v)*v,p=qr(m-S),p<0&&u[0]>=0?(p=0,m=qr(S)):m>0&&u[1]<=0&&(m=0,p=-qr(S))}var b=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*b,m+v*w),n.setInterval.call(e,v),(b||w)&&n.setNiceExtent.call(e,p+v,m-v)}var yge=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ED,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 i(o){var s,l=Mt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=o[h],v=d.model,p=d.scale;TD(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(d):(cd(p,v),TD(p)&&(s=d))}c.length&&(s||(s=c.pop(),cd(s.scale,s.model)),E(c,function(m){VW(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};E(n.x,function(o){j5(n,"y",o,a)}),E(n.y,function(o){j5(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=yn(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(E(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Jde(u);if(c){var f=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+h,u.position==="top"?o.y+=c.height+h:u.position==="left"&&(o.x+=c.width+h)}}}),l()),E(this._coordsList,function(u){u.calcAffineTransform()});function l(){E(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(f[h],f[1-h]),_ge(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]}Ke(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):pg(i-ru)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,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}(),J5={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Un(s,s,o),Un(l,l,o));var c=de({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new xn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});sd(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var d=t.get(["axisLine","symbolSize"]);Ne(h)&&(h=[h,h]),(Ne(d)||$t(d))&&(d=[d,d]);var v=Lf(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],m=d[1];E([{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,S){if(h[S]!=="none"&&h[S]!=null){var b=hn(h[S],-p/2,-m/2,p,m,c.stroke,!0),w=y.r+y.offset,C=u?l:s;b.attr({rotation:y.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=wge(r,n,t,e),a=Cge(r,n,t,e);if(bge(t,a,i),xge(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=rW(we(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));aW(o)}},axisName:function(e,t,r,n){var i=On(e.axisName,t.get("name"));if(i){var a=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=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,eF(a)?e.labelOffset+o*l:0],h,d=t.get("nameRotate");d!=null&&(d=d*ru/180);var v;eF(a)?h=bi.innerTextLayout(e.rotation,d??e.rotation,o):(h=Sge(e.rotation,a,d||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,S=On(e.nameTruncateMaxWidth,m.maxWidth,v),b=new zt({x:f[0],y:f[1],rotation:h.rotation,silent:bi.isLabelSilent(t),style:Ar(s,{text:i,font:p,overflow:"truncate",width:S,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ed({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=bi.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,rt(b).eventData=w}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function Sge(e,t,r,n){var i=nH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return pg(i-ru/2)?(o=l?"bottom":"top",a="center"):pg(i-ru*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iru/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function bge(e,t,r){if(!H8(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=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],h=r[r.length-2];n===!1?(Ta(a),Ta(u)):Q5(a,o)&&(n?(Ta(o),Ta(c)):(Ta(a),Ta(u))),i===!1?(Ta(s),Ta(f)):Q5(l,s)&&(i?(Ta(l),Ta(h)):(Ta(s),Ta(f)))}}function Ta(e){e&&(e.ignore=!0)}function Q5(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=zS([]);return Mf(i,i,-e.rotation),r.applyTransform(Us([],i,e.getLocalTransform())),n.applyTransform(Us([],i,t.getLocalTransform())),r.intersect(n)}}function eF(e){return e==="middle"||e==="center"}function zW(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function Lge(e){var t=FI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=kD(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=qe({color:v.color},l));var m=ft(Je(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:h},!1);if(Ne(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else Xe(c)&&(m.name=c(m.name,m));var S=new nr(m,null,this.ecModel);return dn(S,fm.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ft({lineStyle:{color:"#bbb"}},Ev.axisLine),axisLabel:y0(Ev.axisLabel,!1),axisTick:y0(Ev.axisTick,!1),splitLine:y0(Ev.splitLine,!0),splitArea:y0(Ev.splitArea,!0),indicator:[]},t}(Dt),Hge=["axisLine","axisTickLabel","axisName"],Uge=function(e){Q(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,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=we(i,function(o){var s=o.model.get("showName")?o.name:"",l=new bi(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});E(a,function(o){E(Hge,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),h=l.get("color"),d=u.get("color"),v=Se(h)?h:[h],p=Se(d)?d:[d],m=[],y=[];function S(F,B,W){var z=W%B.length;return F[z]=F[z]||[],z}if(a==="circle")for(var b=i[0].getTicksCoords(),w=n.cx,C=n.cy,x=0;x3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;EC(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),h=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);EC(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!oF(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;EC(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ya);function EC(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(js(n.event),YW(e,t,r,n,i))}function YW(e,t,r,n,i){i.isAvailableBehavior=Fe(E_,null,r,n),e.trigger(t,i)}function E_(e,t,r){var n=r[e];return!e||n&&(!Ne(n)||t.event[n+"Key"])}function VI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function zI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var Kge={axisPointer:1,tooltip:1,brush:1};function mb(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Kge.hasOwnProperty(n.mainType)&&i&&i.model!==r}function XW(e){if(Ne(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var RC,z1={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},sF=Mt(z1),G1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},lF=Mt(G1),Jge=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=XW(t);this._defsUsePending=[];var i=new et;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ji(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;tme(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var h=yb(o);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(f=qW(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var d=i;i=new et,i.add(d),d.scaleX=d.scaleY=f.scale,d.x=f.x,d.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ot({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=RC[s];if(c&&Ve(RC,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var h={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var d=uF[s];if(d&&Ve(uF,s)){var v=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=v)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new od({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),Qge(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){RC={g:function(t,r){var n=new et;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ot;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ll;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new xn;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new jS;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=hF(n));var a=new Ti({shape:{points:i||[]},silent:!0});return Aa(r,a),Ji(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=hF(n));var a=new Mi({shape:{points:i||[]},silent:!0});return Aa(r,a),Ji(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Fn;return Aa(r,n),Ji(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new et;return Aa(r,s),Ji(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new et;return Aa(r,s),Ji(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=BH(n);return Aa(r,i),Ji(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),uF={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new am(t,r,n,i);return cF(e,a),fF(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new $H(t,r,n);return cF(e,i),fF(e,i),i}};function cF(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function fF(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};ZW(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Aa(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),qe(t.__inheritedStyle,e.__inheritedStyle))}function hF(e){for(var t=yb(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=yb(o);switch(i=i||ca(),s){case"translate":as(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":kM(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Mf(i,i,-parseFloat(l[0])*kC,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*kC);Us(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*kC);Us(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var vF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ZW(e,t,r){var n=e.getAttribute("style");if(n){vF.lastIndex=0;for(var i;(i=vF.exec(n))!=null;){var a=i[1],o=Ve(z1,a)?z1[a]:null;o&&(t[o]=i[2]);var s=Ve(G1,a)?G1[a]:null;s&&(r[s]=i[2])}}}function ame(e,t,r){for(var n=0;n0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=He(),n=He(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(d,v){return v&&(d=v(d)),d&&[d[0]*a.scaleX+a.x,d[1]*a.scaleY+a.y]}function f(d){for(var v=[],p=!u&&l&&l.project,m=0;m=0)&&(h=i);var d=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Yn(t,Dn(n),{labelFetcher:h,labelDataIndex:f,defaultText:r},d);var v=t.getTextContent();if(v&&(jW(v).ignore=v.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function _F(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):rt(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function SF(e,t,r,n,i){e.data||Ed({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function bF(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Yr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Sue(t,i,r),o}function wF(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),E(e,function(l){s.lineStart();for(var u=0;u-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Dr);function Tme(e,t){var r={};return E(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(w.width=b,w.height=b/m):(w.height=b,w.width=b*m),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=m,w=yn(C,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Ime(e,t){E(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var Lme=function(){function e(){this.dimensions=JW}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new FD(l+s,l,de({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=AF,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),E(a,function(o,s){var l=we(o,function(c){return c.get("nameMap")}),u=new FD(s,s,de({nameMap:IM(l)},i(o[0])));u.zoomLimit=On.apply(null,we(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=AF,u.resize(o[0],r),E(o,function(c){c.coordinateSystem=u,Ime(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=He(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function Nme(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){Vme(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=zme(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function Fme(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function MF(e){return arguments.length?e:Hme}function cp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Bme(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Vme(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function zme(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=OC(s),a=NC(a),s&&a;){i=OC(i),o=NC(o),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);h>0&&($me(Gme(s,e,r),e,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!OC(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!NC(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function OC(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function NC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Gme(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function $me(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Hme(e,t){return e.parentNode===t.parentNode?1:2}var Ume=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Wme=function(e){Q(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 Ume},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=Ee(n.forkPosition,1),d=[];d[c]=o[c],d[f]=o[f]+(l[f]-o[f])*h,r.moveTo(o[0],o[1]),r.lineTo(d[0],d[1]),r.moveTo(s[0],s[1]),d[c]=s[c],r.lineTo(d[0],d[1]),d[c]=l[c],r.lineTo(d[0],d[1]),r.lineTo(l[0],l[1]);for(var v=1;vS.x,C||(w=w-Math.PI));var A=C?"left":"right",D=s.getModel("label"),M=D.get("rotate"),I=M*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:D.get("position")||A,rotation:M==null?-w:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var R=s.get(["emphasis","focus"]),N=R==="relative"?c1(o.getAncestorsIndices(),o.getDescendantIndices()):R==="ancestor"?o.getAncestorsIndices():R==="descendant"?o.getDescendantIndices():null;N&&(rt(r).focus=N),Xme(i,o,c,r,v,d,p,n),r.__edge&&(r.onHoverStateChange=function(O){if(O!=="blur"){var F=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);F&&F.hoverState===rm||S1(r.__edge,O)}})}function Xme(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),h=e.get(["lineStyle","curveness"]),d=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new im({shape:BD(c,f,h,i,i)})),Yt(p,{shape:BD(c,f,h,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,y=[],S=0;Sr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(Ne(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function i6(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function WI(e,t){var r=i6(e);return St(r,t)>=0}function _b(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var rye=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new nr(i,this,this.ecModel),o=UI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var v=o.getNodeByDataIndex(d);return v&&v.children.length&&v.isExpand||(h.parentModel=a),h})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Mn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=_b(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Dr);function nye(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function iye(e,t){e.eachSeriesByType("tree",function(r){aye(r,t)})}function aye(e,t){var r=Bme(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=MF(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(i=r.width,a=r.height,o=MF());var s=e.getData().tree.root,l=s.children[0];if(l){Ome(s),nye(l,Nme,o),s.hierNode.modifier=-l.hierNode.prelim,kv(l,Fme);var u=l,c=l,f=l;kv(l,function(b){var w=b.getLayout().x;wc.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var h=u===c?1:o(u,c)/2,d=h-u.getLayout().x,v=0,p=0,m=0,y=0;if(n==="radial")v=i/(c.getLayout().x+h+d),p=a/(f.depth-1||1),kv(l,function(b){m=(b.getLayout().x+d)*v,y=(b.depth-1)*p;var w=cp(m,y);b.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(p=a/(c.getLayout().x+h+d),v=i/(f.depth-1||1),kv(l,function(b){y=(b.getLayout().x+d)*p,m=S==="LR"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:m,y},!0)})):(S==="TB"||S==="BT")&&(v=i/(c.getLayout().x+h+d),p=a/(f.depth-1||1),kv(l,function(b){m=(b.getLayout().x+d)*v,y=S==="TB"?(b.depth-1)*p:a-(b.depth-1)*p,b.setLayout({x:m,y},!0)}))}}}function oye(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");de(s,o)})})}function sye(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=$I(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function lye(e){e.registerChartView(Yme),e.registerSeriesModel(rye),e.registerLayout(iye),e.registerVisual(oye),sye(e)}var RF=["treemapZoomToNode","treemapRender","treemapMove"];function uye(e){for(var t=0;t1;)a=a.parentNode;var o=hD(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var cye=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};o6(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new nr({itemStyle:o},this,n);a=r.levels=fye(a,n);var l=we(a||[],function(f){return new nr(f,s,n)},this),u=UI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),p=v?l[v.depth]:null;return h.parentModel=p||s,h})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Mn("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=_b(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},de(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=He(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){a6(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Dr);function o6(e){var t=0;E(e.children,function(n){o6(n);var i=n.value;Se(i)&&(i=i[0]),t+=i});var r=e.value;Se(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Se(e.value)?e.value[0]=r:e.value=r}function fye(e,t){var r=cr(t.get("color")),n=cr(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;E(e,function(s){var l=new nr(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var hye=8,kF=8,FC=5,dye=function(){function e(t){this.group=new et,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),ob(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=mn(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+hye*2,r.emptyItemWidth);r.totalWidth+=s+kF,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=wce(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var m=d[p],y=m.node,S=m.width,b=m.text;h>f.width&&(h-=S-u,S=u,b=null);var w=new Ti({shape:{points:vye(l,0,S,c,p===d.length-1,p===0)},style:qe(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zt({style:Ar(a,{text:b})}),textConfig:{position:"inside"},z2:Ld*1e4,onclick:st(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Ar(o,{text:b}),w.ensureState("emphasis").style=v,Yr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),pye(w,t,y),l+=S+kF}},e.prototype.remove=function(){this.group.removeAll()},e}();function vye(e,t,r,n,i,a){var o=[[i?e:e-FC,t],[e+r,t],[e+r,t+n],[i?e:e-FC,t+n]];return!a&&o.splice(2,0,[e+r+FC,t+n/2]),!i&&o.push([e,t+n/2]),o}function pye(e,t,r){rt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&_b(r,t)}}var gye=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;iNF||Math.abs(r.dy)>NF)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ht(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var h=u.min||0,d=u.max||1/0;f=Math.max(Math.min(d,f),h)}var v=f/c.zoom;c.zoom=f;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var m=ca();as(m,m,[-n,-i]),kM(m,m,[v,v]),as(m,m,[n,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&A1(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new dye(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(WI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ov(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(pr);function Ov(){return{nodeGroup:[],background:[],content:[]}}function wye(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),h=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var d=c.width,v=c.height,p=c.borderWidth,m=c.invisible,y=o.getRawIndex(),S=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,C=b&&b.length,x=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),D=h.getModel(["blur","itemStyle"]),M=h.getModel(["select","itemStyle"]),I=x.get("borderRadius")||0,P=Pe("nodeGroup",VD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),$1(P).nodeWidth=d,$1(P).nodeHeight=v,c.isAboveViewRoot)return P;var R=Pe("background",OF,u,_ye);R&&j(P,R,C&&c.upperLabelHeight);var N=h.getModel("emphasis"),O=N.get("focus"),F=N.get("blurScope"),B=N.get("disabled"),W=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(C)yg(P)&&$c(P,!1),R&&($c(R,!B),f.setItemGraphicEl(o.dataIndex,R),iD(R,W,F));else{var z=Pe("content",OF,u,Sye);z&&ee(P,z),R.disableMorphing=!0,R&&yg(R)&&$c(R,!1),$c(P,!B),f.setItemGraphicEl(o.dataIndex,P),iD(P,W,F)}return P;function j(se,he,pe){var ye=rt(he);if(ye.dataIndex=o.dataIndex,ye.seriesIndex=e.seriesIndex,he.setShape({x:0,y:0,width:d,height:v,r:I}),m)te(he);else{he.invisible=!1;var xe=o.getVisual("style"),ke=xe.stroke,H=VF(x);H.fill=ke;var U=bc(A);U.fill=A.get("borderColor");var ie=bc(D);ie.fill=D.get("borderColor");var _e=bc(M);if(_e.fill=M.get("borderColor"),pe){var fe=d-2*p;me(he,ke,xe.opacity,{x:p,y:0,width:fe,height:w})}else he.removeTextContent();he.setStyle(H),he.ensureState("emphasis").style=U,he.ensureState("blur").style=ie,he.ensureState("select").style=_e,Sf(he)}se.add(he)}function ee(se,he){var pe=rt(he);pe.dataIndex=o.dataIndex,pe.seriesIndex=e.seriesIndex;var ye=Math.max(d-2*p,0),xe=Math.max(v-2*p,0);if(he.culling=!0,he.setShape({x:p,y:p,width:ye,height:xe,r:I}),m)te(he);else{he.invisible=!1;var ke=o.getVisual("style"),H=ke.fill,U=VF(x);U.fill=H,U.decal=ke.decal;var ie=bc(A),_e=bc(D),fe=bc(M);me(he,H,ke.opacity,null),he.setStyle(U),he.ensureState("emphasis").style=ie,he.ensureState("blur").style=_e,he.ensureState("select").style=fe,Sf(he)}se.add(he)}function te(se){!se.invisible&&a.push(se)}function me(se,he,pe,ye){var xe=h.getModel(ye?BF:FF),ke=mn(h.get("name"),null),H=xe.getShallow("show");Yn(se,Dn(h,ye?BF:FF),{defaultText:H?ke:null,inheritColor:he,defaultOpacity:pe,labelFetcher:e,labelDataIndex:o.dataIndex});var U=se.getTextContent();if(U){var ie=U.style,_e=PM(ie.padding||0);ye&&(se.setTextConfig({layoutRect:ye}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var $=Math.max((ye?ye.width:se.shape.width)-_e[1]-_e[3],0),Y=Math.max((ye?ye.height:se.shape.height)-_e[0]-_e[2],0);(ie.width!==$||ie.height!==Y)&&U.setStyle({width:$,height:Y})},ie.truncateMinChar=2,ie.lineOverflow="truncate",Ae(ie,ye,c);var fe=U.getState("emphasis");Ae(fe?fe.style:null,ye,c)}}function Ae(se,he,pe){var ye=se?se.text:null;if(!he&&pe.isLeafRoot&&ye!=null){var xe=e.get("drillDownIcon",!0);se.text=xe?xe+" "+ye:ye}}function Pe(se,he,pe,ye){var xe=S!=null&&r[se][S],ke=i[se];return xe?(r[se][S]=null,Oe(ke,xe)):m||(xe=new he,xe instanceof Ua&&(xe.z2=xye(pe,ye)),Ue(ke,xe)),t[se][y]=xe}function Oe(se,he){var pe=se[y]={};he instanceof VD?(pe.oldX=he.x,pe.oldY=he.y):pe.oldShape=de({},he.shape)}function Ue(se,he){var pe=se[y]={},ye=o.parentNode,xe=he instanceof et;if(ye&&(!n||n.direction==="drillDown")){var ke=0,H=0,U=i.background[ye.getRawIndex()];!n&&U&&U.oldShape&&(ke=U.oldShape.width,H=U.oldShape.height),xe?(pe.oldX=0,pe.oldY=H):pe.oldShape={x:ke,y:H,width:0,height:0}}pe.fadein=!xe}}function xye(e,t){return e*yye+t}var Eg=E,Cye=Ke,H1=-1,Tn=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Je(t);this.type=n,this.mappingMethod=r,this._normalizeData=Dye[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(BC(i),Tye(i)):r==="category"?i.categories?Aye(i):BC(i,!0):(wi(r!=="linear"||i.dataExtent),BC(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Fe(this._normalizeData,this)},e.listVisualTypes=function(){return Mt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ke(t)?E(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Se(t)?[]:Ke(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&Eg(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Se(t))t=t.slice();else if(Cye(t)){var r=[];Eg(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function BC(e,t){var r=e.visual,n=[];Ke(r)?Eg(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),s6(e,n)}function S0(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:zD([0,1])}}function zF(e){var t=this.option.visual;return t[Math.round(ir(e,[0,1],[0,t.length-1],!0))]||{}}function Nv(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function fp(e){var t=this.option.visual;return t[this.option.loop&&e!==H1?e%t.length:e]}function wc(){return this.option.visual[0]}function zD(e){return{linear:function(t){return ir(t,e,this.option.visual,!0)},category:fp,piecewise:function(t,r){var n=GD.call(this,r);return n==null&&(n=ir(t,e,this.option.visual,!0)),n},fixed:wc}}function GD(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=Tn.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function s6(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=we(t,function(r){var n=fa(r);return n||[0,0,0,1]})),t}var Dye={linear:function(e){return ir(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=Tn.findPieceIndex(e,t,!0);if(r!=null)return ir(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??H1},fixed:rn};function b0(e,t,r){return e?t<=r:t=r.length||p===r[p.depth]){var y=Rye(i,l,p,m,v,n);u6(p,y,r,n)}})}}}function Lye(e,t,r){var n=de({},t),i=r.designatedVisualItemStyle;return E(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function GF(e){var t=VC(e,"color");if(t){var r=VC(e,"colorAlpha"),n=VC(e,"colorSaturation");return n&&(t=Rp(t,null,null,n)),r&&(t=v1(t,r)),t}}function Pye(e,t){return t!=null?Rp(t,null,null,e):null}function VC(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function Eye(e,t,r,n,i,a){if(!(!a||!a.length)){var o=zC(t,"color")||i.color!=null&&i.color!=="none"&&(zC(t,"colorAlpha")||zC(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var h=new Tn(f);return l6(h).drColorMappingBy=c,h}}}function zC(e,t){var r=e.get(t);return Se(r)&&r.length?{name:t,range:r}:null}function Rye(e,t,r,n,i,a){var o=de({},t);if(i){var s=i.type,l=s==="color"&&l6(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Rg=Math.max,U1=Math.min,$F=On,YI=E,c6=["itemStyle","borderWidth"],kye=["itemStyle","gapWidth"],Oye=["upperLabel","show"],Nye=["upperLabel","height"];const Fye={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=yn(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ee($F(s.width,l[0]),i),c=Ee($F(s.height,l[1]),a),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=Pg(n,h,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,p=e.getViewRoot(),m=i6(p);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Hye(e,d,p,u,c):v?[v.width,v.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var b={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(w),f6(p,b,!1,0),w=p.getLayout(),YI(m,function(x,A){var D=(m[A+1]||p).getValue();x.setLayout(de({dataExtent:[D,D],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(Uye(s,v,d),!0),e.setLayoutInfo(s),h6(C,new ht(-s.x,-s.y,i,a),m,p,0)}};function f6(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(c6),u=s.get(kye)/2,c=d6(s),f=Math.max(l,c),h=l-u,d=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=Rg(i-2*h,0),a=Rg(a-h-d,0);var v=i*a,p=Bye(e,s,v,t,r,n);if(p.length){var m={x:h,y:d,width:i,height:a},y=U1(i,a),S=1/0,b=[];b.area=0;for(var w=0,C=p.length;w=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function $ye(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?Rg(u*n/l,l/(u*i)):1/0}function HF(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,h=e.length;frO&&(u=rO),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var A=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var D=-Math.atan2(w[1],w[0]);f[0].8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*y+c[0],a.y=-h[1]*S+c[1],v=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*A+c[0],a.y=c[1]+M,v=w[0]<0?"right":"left",a.originX=-y*A,a.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+M,v="center",a.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*A+f[0],a.y=f[1]+M,v=w[0]>=0?"right":"left",a.originX=y*A,a.originY=-M;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},t}(et),KI=function(){function e(t){this.group=new et,this._LineCtor=t||jI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=qF(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.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=qF(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!l0e(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function qF(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:Dn(t)}}function jF(e){return isNaN(e[0])||isNaN(e[1])}function WC(e){return e&&!jF(e[0])&&!jF(e[1])}var YC=[],XC=[],ZC=[],ph=Rn,qC=ef,KF=Math.abs;function JF(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){YC[0]=ph(n[0],i[0],a[0],c),YC[1]=ph(n[1],i[1],a[1],c);var f=KF(qC(YC,t)-l);f=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function jC(e,t){var r=[],n=hg,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Hs(u[0]),Hs(u[1])],u[2]&&u.__original.push(Hs(u[2])));var h=u.__original;if(u[2]!=null){if(pi(i[0],h[0]),pi(i[1],h[2]),pi(i[2],h[1]),c&&c!=="none"){var d=dp(s.node1),v=JF(i,h[0],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var d=dp(s.node2),v=JF(i,h[1],d*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}pi(u[0],i[0]),pi(u[1],i[2]),pi(u[2],i[1])}else{if(pi(a[0],h[0]),pi(a[1],h[1]),zc(o,a[1],a[0]),Dd(o,o),c&&c!=="none"){var d=dp(s.node1);IA(a[0],a[0],o,d*t)}if(f&&f!=="none"){var d=dp(s.node2);IA(a[1],a[1],o,-d*t)}pi(u[0],a[0]),pi(u[1],a[1])}})}function QF(e){return e.type==="view"}var u0e=function(e){Q(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){var i=new dm,a=new KI,o=this.group;this._controller=new ym(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(QF(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Yt(u,c,r)}jC(r.getGraph(),hp(r));var f=r.getData();s.updateData(f);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var p=r.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,C=b.getGraphicEl(),x=b.getModel();if(C){C.off("drag").off("dragend");var A=x.get("draggable");A&&C.on("drag",function(M){switch(p){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),b.setLayout({fixed:!0},!0),qI(r,"symbolSize",b,[M.offsetX,M.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),ZI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(w)}),C.setDraggable(A,!!x.get("cursor"));var D=x.get(["emphasis","focus"]);D==="adjacency"&&(rt(C).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),C=b.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(rt(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),y=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(b){m6(b,m,y,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,f)&&!mb(u,i,r)}),!QF(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){VI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){zI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),jC(r.getGraph(),hp(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=hp(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){jC(r.getGraph(),hp(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(pr);function gh(e){return"_EC_"+e}var c0e=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[gh(t)]){var i=new xc(t,r);return i.hostGraph=this,this.nodes.push(i),n[gh(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[gh(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if($t(t)&&(t=this.nodes[t]),$t(r)&&(r=this.nodes[r]),t instanceof xc||(t=i[gh(t)]),r instanceof xc||(r=i[gh(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new _6(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof xc&&(t=t.id),r instanceof xc&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof xc||(r=this._nodesMap[gh(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}dn(xc,S6("hostGraph","data"));dn(_6,S6("hostGraph","edgeData"));function b6(e,t,r,n,i){for(var a=new c0e(n),o=0;o "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=ul(e,r);else{var p=lm.get(d),m=p?p.dimensions||[]:[];St(m,"value")<0&&m.concat(["value"]);var y=cm(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;v=new Si(y,r),v.initData(e)}var S=new Si(["value"],r);return S.initData(l,s),i&&i(v,S),r6({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var f0e=function(e){Q(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.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new mm(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),mf(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){Kye(this);var s=b6(a,i,this,!0,l);return E(s.edges,function(u){Jye(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,m=v.getShallow("category"),y=p[m];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=nr.prototype.getModel;function h(v,p){var m=f.call(this,v,p);return m.resolveParentPath=d,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Mn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=YU({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=we(this.option.categories||[],function(i){return i.value!=null?i:de({value:0},i)}),n=new Si(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Dr),h0e={type:"graphRoam",event:"graphRoam",update:"none"};function d0e(e){e.registerChartView(u0e),e.registerSeriesModel(f0e),e.registerProcessor(Yye),e.registerVisual(Xye),e.registerVisual(Zye),e.registerLayout(Qye),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,t0e),e.registerLayout(n0e),e.registerCoordinateSystem("graphView",{dimensions:_m.dimensions,create:a0e}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},rn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},rn),e.registerAction(h0e,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=$I(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var v0e=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),p0e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new v0e},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(Ct);function g0e(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=Ee(r[0],t.getWidth()),s=Ee(r[1],t.getHeight()),l=Ee(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function x0(e,t){var r=e==null?"":e+"";return t&&(Ne(t)?r=t.replace("{value}",r):Xe(t)&&(r=t(e))),r}var m0e=function(e){Q(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,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=g0e(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),h=f.get("roundCap"),d=h?V1:Ci,v=f.get("show"),p=f.getModel("lineStyle"),m=p.get("width"),y=[u,c];HM(y,!l),u=y[0],c=y[1];for(var S=c-u,b=u,w=[],C=0;v&&C=M&&(I===0?0:a[I-1][0])Math.PI/2&&(Pe+=Math.PI)):Ae==="tangential"?Pe=-D-Math.PI/2:$t(Ae)&&(Pe=Ae*Math.PI/180),Pe===0?f.add(new zt({style:Ar(b,{text:j,x:te,y:me,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:ee}),silent:!0})):f.add(new zt({style:Ar(b,{text:j,x:te,y:me,verticalAlign:"middle",align:"center"},{inheritColor:ee}),silent:!0,originX:te,originY:me,rotation:Pe}))}if(S.get("show")&&B!==w){var W=S.get("distance");W=W?W+c:c;for(var Oe=0;Oe<=C;Oe++){O=Math.cos(D),F=Math.sin(D);var Ue=new xn({shape:{x1:O*(v-W)+h,y1:F*(v-W)+d,x2:O*(v-A-W)+h,y2:F*(v-A-W)+d},silent:!0,style:R});R.stroke==="auto"&&Ue.setStyle({stroke:a((B+Oe/C)/w)}),f.add(Ue),D+=I}D-=I}else D+=M}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,h=this._data,d=this._progressEls,v=[],p=r.get(["pointer","show"]),m=r.getModel("progress"),y=m.get("show"),S=r.getData(),b=S.mapDimension("value"),w=+r.get("min"),C=+r.get("max"),x=[w,C],A=[s,l];function D(I,P){var R=S.getItemModel(I),N=R.getModel("pointer"),O=Ee(N.get("width"),o.r),F=Ee(N.get("length"),o.r),B=r.get(["pointer","icon"]),W=N.get("offsetCenter"),z=Ee(W[0],o.r),j=Ee(W[1],o.r),ee=N.get("keepAspect"),te;return B?te=hn(B,z-O/2,j-F,O,F,null,ee):te=new p0e({shape:{angle:-Math.PI/2,width:O,r:F,x:z,y:j}}),te.rotation=-(P+Math.PI/2),te.x=o.cx,te.y=o.cy,te}function M(I,P){var R=m.get("roundCap"),N=R?V1:Ci,O=m.get("overlap"),F=O?m.get("width"):c/S.count(),B=O?o.r-F:o.r-(I+1)*F,W=O?o.r:o.r-I*F,z=new N({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:B,r:W}});return O&&(z.z2=C-S.get(b,I)%C),z}(y||p)&&(S.diff(h).add(function(I){var P=S.get(b,I);if(p){var R=D(I,s);Rr(R,{rotation:-((isNaN(+P)?A[0]:ir(P,x,A,!0))+Math.PI/2)},r),f.add(R),S.setItemGraphicEl(I,R)}if(y){var N=M(I,s),O=m.get("clip");Rr(N,{shape:{endAngle:ir(P,x,A,O)}},r),f.add(N),tD(r.seriesIndex,S.dataType,I,N),v[I]=N}}).update(function(I,P){var R=S.get(b,I);if(p){var N=h.getItemGraphicEl(P),O=N?N.rotation:s,F=D(I,O);F.rotation=O,Yt(F,{rotation:-((isNaN(+R)?A[0]:ir(R,x,A,!0))+Math.PI/2)},r),f.add(F),S.setItemGraphicEl(I,F)}if(y){var B=d[P],W=B?B.shape.endAngle:s,z=M(I,W),j=m.get("clip");Yt(z,{shape:{endAngle:ir(R,x,A,j)}},r),f.add(z),tD(r.seriesIndex,S.dataType,I,z),v[I]=z}}).execute(),S.each(function(I){var P=S.getItemModel(I),R=P.getModel("emphasis"),N=R.get("focus"),O=R.get("blurScope"),F=R.get("disabled");if(p){var B=S.getItemGraphicEl(I),W=S.getItemVisual(I,"style"),z=W.fill;if(B instanceof Fn){var j=B.style;B.useStyle(de({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},W))}else B.useStyle(W),B.type!=="pointer"&&B.setColor(z);B.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",a(ir(S.get(b,I),x,[0,1],!0))),B.z2EmphasisLift=0,Wn(B,P),Yr(B,N,O,F)}if(y){var ee=v[I];ee.useStyle(S.getItemVisual(I,"style")),ee.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),ee.z2EmphasisLift=0,Wn(ee,P),Yr(ee,N,O,F)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=hn(s,n.cx-o/2+Ee(l[0],n.r),n.cy-o/2+Ee(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),h=new et,d=[],v=[],p=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new zt({silent:!0}),v[y]=new zt({silent:!0})}).update(function(y,S){d[y]=s._titleEls[S],v[y]=s._detailEls[S]}).execute(),l.each(function(y){var S=l.getItemModel(y),b=l.get(u,y),w=new et,C=a(ir(b,[c,f],[0,1],!0)),x=S.getModel("title");if(x.get("show")){var A=x.get("offsetCenter"),D=o.cx+Ee(A[0],o.r),M=o.cy+Ee(A[1],o.r),I=d[y];I.attr({z2:m?0:2,style:Ar(x,{x:D,y:M,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(I)}var P=S.getModel("detail");if(P.get("show")){var R=P.get("offsetCenter"),N=o.cx+Ee(R[0],o.r),O=o.cy+Ee(R[1],o.r),F=Ee(P.get("width"),o.r),B=Ee(P.get("height"),o.r),W=r.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=v[y],z=P.get("formatter");I.attr({z2:m?0:2,style:Ar(P,{x:N,y:O,text:x0(b,z),width:isNaN(F)?null:F,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:W})}),jH(I,{normal:P},b,function(ee){return x0(ee,z)}),p&&KH(I,y,l,r,{getFormattedLabel:function(ee,te,me,Ae,Pe,Oe){return x0(Oe?Oe.interpolatedValue:b,z)}}),w.add(I)}h.add(w)}),this.group.add(h),this._titleEls=d,this._detailEls=v},t.type="gauge",t}(pr),y0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return $d(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Dr);function _0e(e){e.registerChartView(m0e),e.registerSeriesModel(y0e)}var S0e=["itemStyle","opacity"],b0e=function(e){Q(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Mi,s=new zt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(S0e);c=c??1,i||wo(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Rr(a,{style:{opacity:c}},o,n)):Yt(a,{style:{opacity:c},shape:{points:l.points}},o,n),Wn(a,s),this._updateLabel(r,n),Yr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),h=f.fill;Yn(o,Dn(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var d=c.linePoints;a.setShape({points:d}),i.textGuideLineConfig={anchor:d?new ut(d[0][0],d[0][1]):null},Yt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),MI(i,II(l),{stroke:h})},t}(Ti),w0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new b0e(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);_g(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(pr),x0e=function(e){Q(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new mm(Fe(this.getData,this),Fe(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return $d(this,{coordDimensions:["value"],encodeDefaulter:st(oI,this)})},t.prototype._defaultLabelLine=function(r){mf(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Dr);function C0e(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function T0e(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();oG0e)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!JC(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function JC(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var U0e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&ft(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){E(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=sr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);E(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Dt),W0e=function(e){Q(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Ao);function kf(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=mh(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=mh(s,[0,o]),i=a=mh(s,[i,a]),n=0}t[0]=mh(t[0],r),t[1]=mh(t[1],r);var l=QC(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=mh(t[n],c);var f;return f=QC(t,n),i!=null&&(f.sign!==l.sign||f.spana&&(t[1-n]=t[n]+f.sign*a),t}function QC(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 mh(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var eT=E,x6=Math.min,C6=Math.max,r3=Math.floor,Y0e=Math.ceil,n3=qr,X0e=Math.PI,Z0e=function(){function e(t,r,n){this.type="parallel",this._axesMap=He(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;eT(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new W0e(o,pb(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();eT(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),cd(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=yn(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=C0(t.get("axisExpandWidth"),l),f=C0(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,d=t.get("axisExpandWindow"),v;if(d)v=C0(d[1]-d[0],l),d[1]=d[0]+v;else{v=C0(c*(f-1),l);var p=t.get("axisExpandCenter")||r3(u/2);d=[c*p-v/2],d[1]=d[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[r3(n3(d[0]/c,1))+1,Y0e(n3(d[1]/c,1))-1],S=m/c*d[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:S}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),eT(n,function(o,s){var l=(i.axisExpandable?j0e:q0e)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:X0e/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],h=c[a],d=ca();Mf(d,d,h),as(d,d,f),this._axesLayout[o]={position:f,rotation:h,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];E(o,function(m){s.push(t.mapDimension(m)),l.push(a.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?kf(l,i,o,"all"):u="none";else{var d=i[1]-i[0],v=o[1]*s/d;i=[C6(0,v-d/2)],i[1]=x6(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:u}},e}();function C0(e,t){return x6(C6(e,t[0]),t[1])}function q0e(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function j0e(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)za(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;at_e}function L6(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function P6(e,t,r,n){var i=new et;return i.add(new Ot({name:"main",style:rL(r),silent:!0,draggable:!0,cursor:"move",drift:st(o3,e,t,i,["n","s","w","e"]),ondragend:st(xf,t,{isEnd:!0})})),E(n,function(a){i.add(new Ot({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:st(o3,e,t,i,a),ondragend:st(xf,t,{isEnd:!0})}))}),i}function E6(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=dd(i,r_e),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],h=c-a+i/2,d=f-a+i/2,v=c-o,p=f-s,m=v+i,y=p+i;As(e,t,"main",o,s,v,p),n.transformable&&(As(e,t,"w",l,u,a,y),As(e,t,"e",h,u,a,y),As(e,t,"n",l,u,m,a),As(e,t,"s",l,d,m,a),As(e,t,"nw",l,u,a,a),As(e,t,"ne",h,u,a,a),As(e,t,"sw",l,d,a,a),As(e,t,"se",h,d,a,a))}function XD(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(rL(r)),i.attr({silent:!n,cursor:n?"move":"default"}),E([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?ZD(e,a[0]):l_e(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?i_e[s]+"-resize":null})})}function As(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(c_e(nL(e,t,[[n,i],[n+a,i+o]])))}function rL(e){return qe({strokeNoScale:!0},e.brushStyle)}function R6(e,t,r,n){var i=[Og(e,r),Og(t,n)],a=[dd(e,r),dd(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function s_e(e){return of(e.group)}function ZD(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=QS(r[t],s_e(e));return n[i]}function l_e(e,t){var r=[ZD(e,t[0]),ZD(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function o3(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=k6(t,i,a);E(n,function(u){var c=n_e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(R6(s[0][0],s[1][0],s[0][1],s[1][1])),QI(t,r),xf(t,{isEnd:!1})}function u_e(e,t,r,n){var i=t.__brushOption.range,a=k6(e,r,n);E(i,function(o){o[0]+=a[0],o[1]+=a[1]}),QI(e,t),xf(e,{isEnd:!1})}function k6(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function nL(e,t,r){var n=I6(e,t);return n&&n!==wf?n.clipPath(r,e._transform):Je(r)}function c_e(e){var t=Og(e[0][0],e[1][0]),r=Og(e[0][1],e[1][1]),n=dd(e[0][0],e[1][0]),i=dd(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function f_e(e,t,r){if(!(!e._brushType||d_e(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=tL(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var bb={lineX:u3(0),lineY:u3(1),rect:{createCover:function(e,t){function r(n){return n}return P6({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=L6(e);return R6(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){E6(e,t,r,n)},updateCommon:XD,contain:jD},polygon:{createCover:function(e,t){var r=new et;return r.add(new Mi({name:"main",style:rL(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Ti({name:"main",draggable:!0,drift:st(u_e,e,t),ondragend:st(xf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:nL(e,t,r)})},updateCommon:XD,contain:jD}};function u3(e){return{createCover:function(t,r){return P6({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=L6(t),n=Og(r[0][e],r[1][e]),i=dd(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=I6(t,r);if(o!==wf&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),E6(t,r,l,i)},updateCommon:XD,contain:jD}}function N6(e){return e=iL(e),function(t){return XH(t,e)}}function F6(e,t){return e=iL(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function B6(e,t,r){var n=iL(e);return function(i,a){return n.contain(a[0],a[1])&&!mb(i,t,r)}}function iL(e){return ht.create(e)}var v_e=["axisLine","axisTickLabel","axisName"],p_e=function(e){Q(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){e.prototype.init.apply(this,arguments),(this._brushController=new JI(n.getZr())).on("brush",Fe(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!g_e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new et,this.group.add(this._axisGroup),!!r.get("show")){var s=y_e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,h=l.getAxisLayout(f),d=de({strokeContainThreshold:c},h),v=new bi(r,d);E(v_e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(d,u,r,s,c,i),om(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=ht.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:N6(f),isTargetByCursor:B6(f,s,a),getLinearBrushOtherExtent:F6(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(m_e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=we(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Br);function g_e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function m_e(e){var t=e.axis;return we(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function y_e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var __e={type:"axisAreaSelect",event:"axisAreaSelected"};function S_e(e){e.registerAction(__e,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var b_e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function V6(e){e.registerComponentView($0e),e.registerComponentModel(U0e),e.registerCoordinateSystem("parallel",J0e),e.registerPreprocessor(B0e),e.registerComponentModel(WD),e.registerComponentView(p_e),hd(e,"parallel",WD,b_e),S_e(e)}function w_e(e){bt(V6),e.registerChartView(L0e),e.registerSeriesModel(R0e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,F0e)}var x_e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),C_e=function(e){Q(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new x_e},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){Js(this)},t.prototype.downplay=function(){Qs(this)},t}(Ct),T_e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),h=r.getData("edge"),d=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new C_e,m=rt(p);m.dataIndex=v.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var y=v.getModel(),S=y.getModel("lineStyle"),b=S.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),x=C.get("localX"),A=C.get("localY"),D=v.node2.getLayout(),M=v.node2.getModel(),I=M.get("localX"),P=M.get("localY"),R=v.getLayout(),N,O,F,B,W,z,j,ee;p.shape.extent=Math.max(1,R.dy),p.shape.orient=d,d==="vertical"?(N=(x!=null?x*u:w.x)+R.sy,O=(A!=null?A*c:w.y)+w.dy,F=(I!=null?I*u:D.x)+R.ty,B=P!=null?P*c:D.y,W=N,z=O*(1-b)+B*b,j=F,ee=O*b+B*(1-b)):(N=(x!=null?x*u:w.x)+w.dx,O=(A!=null?A*c:w.y)+R.sy,F=I!=null?I*u:D.x,B=(P!=null?P*c:D.y)+R.ty,W=N*(1-b)+F*b,z=O,j=N*b+F*(1-b),ee=B),p.setShape({x1:N,y1:O,x2:F,y2:B,cpx1:W,cpy1:z,cpx2:j,cpy2:ee}),p.useStyle(S.getItemStyle()),c3(p.style,d,v);var te=""+y.get("value"),me=Dn(y,"edgeLabel");Yn(p,me,{labelFetcher:{getFormattedLabel:function(Oe,Ue,se,he,pe,ye){return r.getFormattedLabel(Oe,Ue,"edge",he,Qo(pe,me.normal&&me.normal.get("formatter"),te),ye)}},labelDataIndex:v.dataIndex,defaultText:te}),p.setTextConfig({position:"inside"});var Ae=y.getModel("emphasis");Wn(p,y,"lineStyle",function(Oe){var Ue=Oe.getItemStyle();return c3(Ue,d,v),Ue}),s.add(p),h.setItemGraphicEl(v.dataIndex,p);var Pe=Ae.get("focus");Yr(p,Pe==="adjacency"?v.getAdjacentDataIndices():Pe==="trajectory"?v.getTrajectoryDataIndices():Pe,Ae.get("blurScope"),Ae.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),m=v.getModel(),y=m.get("localX"),S=m.get("localY"),b=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,C=new Ot({shape:{x:y!=null?y*u:p.x,y:S!=null?S*c:p.y,width:p.dx,height:p.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Yn(C,Dn(m),{labelFetcher:{getFormattedLabel:function(A,D){return r.getFormattedLabel(A,D,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),C.disableLabelAnimation=!0,C.setStyle("fill",v.getVisual("color")),C.setStyle("decal",v.getVisual("style").decal),Wn(C,m),s.add(C),f.setItemGraphicEl(v.dataIndex,C),rt(C).dataType="node";var x=b.get("focus");Yr(C,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var m=f.getItemModel(p);m.get("draggable")&&(v.drift=function(y,S){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(A_e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(pr);function c3(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");Ne(n)&&Ne(i)&&(e.fill=new am(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function A_e(e,t,r){var n=new Ot({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Rr(n,{shape:{width:e.width+20}},t,r),n}var D_e=function(e){Q(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){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new nr(o[l],this,n));if(a&&i){var u=b6(a,i,this,!0,c);return u.data}function c(f,h){f.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,m=p.getData().getItemLayout(v);if(m){var y=m.depth,S=p.levelModels[y];S&&(d.parentModel=S)}return d}),h.wrapMethod("getItemModel",function(d,v){var p=d.parentModel,m=p.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var S=y.depth,b=p.levelModels[S];b&&(d.parentModel=b)}return d})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(d){return isNaN(d)||d==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Mn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,h=this.getDataParams(r,i).data.name;return Mn("nameValue",{name:h!=null?h+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Dr);function M_e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=I_e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;P_e(u);var f=sr(u,function(p){return p.getLayout().value===0}),h=f.length!==0?0:r.get("layoutIterations"),d=r.get("orient"),v=r.get("nodeAlign");L_e(u,c,n,i,o,s,h,d,v)})}function I_e(e,t){return yn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function L_e(e,t,r,n,i,a,o,s,l){E_e(e,t,r,i,a,s,l),N_e(e,t,a,i,n,o,s),W_e(e,s)}function P_e(e){E(e,function(t){var r=fu(t.outEdges,W1),n=fu(t.inEdges,W1),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function E_e(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,h=0;h=0;y&&m.depth>d&&(d=m.depth),p.setLayout({depth:y?m.depth:f},!0),a==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var S=0;Sf-1?d:f-1;o&&o!=="left"&&R_e(e,o,a,A);var D=a==="vertical"?(i-r)/A:(n-r)/A;O_e(e,D,a)}function z6(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function R_e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,V_e(s,l,o),tT(s,i,r,n,o),U_e(s,l,o),tT(s,i,r,n,o)}function F_e(e,t){var r=[],n=t==="vertical"?"y":"x",i=KA(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),E(i.keys,function(a){r.push(i.buckets.get(a))}),r}function B_e(e,t,r,n,i,a){var o=1/0;E(e,function(s){var l=s.length,u=0;E(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[h]+t;var v=i==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=f-2;d>=0;--d)l=o[d],u=l.getLayout()[a]+l.getLayout()[h]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function V_e(e,t,r){E(e.slice().reverse(),function(n){E(n,function(i){if(i.outEdges.length){var a=fu(i.outEdges,z_e,r)/fu(i.outEdges,W1);if(isNaN(a)){var o=i.outEdges.length;a=o?fu(i.outEdges,G_e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-wu(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-wu(i,r))*t;i.setLayout({y:l},!0)}}})})}function z_e(e,t){return wu(e.node2,t)*e.getValue()}function G_e(e,t){return wu(e.node2,t)}function $_e(e,t){return wu(e.node1,t)*e.getValue()}function H_e(e,t){return wu(e.node1,t)}function wu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function W1(e){return e.getValue()}function fu(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),E(n,function(s){var l=new Tn({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&E(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function X_e(e){e.registerChartView(T_e),e.registerSeriesModel(D_e),e.registerLayout(M_e),e.registerVisual(Y_e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var G6=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],h=u[1-c],d=[i,a],v=d[c].get("type"),p=d[1-c].get("type"),m=t.data;if(m&&l){var y=[];E(m,function(w,C){var x;Se(w)?(x=w.slice(),w.unshift(C)):Se(w.value)?(x=de({},w),x.value=x.value.slice(),w.value.unshift(C)):x=w,y.push(x)}),t.data=y}var S=this.defaultValueDimensions,b=[{name:f,type:k1(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:k1(p),dimsDef:S.slice()}];return $d(this,{coordDimensions:b,dimensionsCount:S.length+1,encodeDefaulter:st(_U,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),$6=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Dr);dn($6,G6,!0);var Z_e=function(e){Q(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,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=f3(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var h=a.getItemLayout(u);f?(wo(f),H6(h,f,a,u)):f=f3(h,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(pr),q_e=function(){function e(){}return e}(),j_e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new q_e},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();ap){var w=[y,b];n.push(w)}}}return{boxData:r,outliers:n}}var n1e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==ai){var n="";tr(n)}var i=r1e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function i1e(e){e.registerSeriesModel($6),e.registerChartView(Z_e),e.registerLayout(J_e),e.registerTransform(n1e)}var a1e=["color","borderColor"],o1e=function(e){Q(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,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Iu(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){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&h3(u,f))return;var h=rT(f,c,!0);Rr(h,{shape:{points:f.ends}},r,c),nT(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}}).update(function(c,f){var h=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(h);return}var d=n.getItemLayout(c);if(s&&h3(u,d)){a.remove(h);return}h?(Yt(h,{shape:{points:d.ends}},r,c),wo(h)):h=rT(d),nT(h,n,c,o),a.add(h),n.setItemGraphicEl(c,h)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),d3(r,this.group);var n=r.get("clip",!0)?vm(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=rT(s);nT(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){d3(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(pr),s1e=function(){function e(){}return e}(),l1e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new s1e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(Ct);function rT(e,t,r){var n=e.ends;return new l1e({shape:{points:r?u1e(n,e):n},z2:100})}function h3(e,t){for(var r=!0,n=0;n0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(a1e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var U6=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Dr);dn(U6,G6,!0);function f1e(e){!e||!Se(e.series)||E(e.series,function(t){Ke(t)&&t.type==="k"&&(t.type="candlestick")})}var h1e=["itemStyle","borderColor"],d1e=["itemStyle","borderColor0"],v1e=["itemStyle","borderColorDoji"],p1e=["itemStyle","color"],g1e=["itemStyle","color0"],m1e={seriesType:"candlestick",plan:Bd(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?p1e:g1e)}function n(a,o){return o.get(a===0?v1e:a>0?h1e:d1e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");de(f,c)}}}}}},y1e={seriesType:"candlestick",plan:Bd(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=_1e(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=we(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],h=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:d};function d(p,m){for(var y,S=m.getStore();(y=p.next())!=null;){var b=S.get(s,y),w=S.get(u,y),C=S.get(c,y),x=S.get(f,y),A=S.get(h,y),D=Math.min(w,C),M=Math.max(w,C),I=W(D,b),P=W(M,b),R=W(x,b),N=W(A,b),O=[];z(O,P,0),z(O,I,1),O.push(ee(N),ee(P),ee(R),ee(I));var F=m.getItemModel(y),B=!!F.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:v3(S,y,w,C,c,B),initBaseline:w>C?P[a]:I[a],ends:O,brushRect:j(x,A,b)})}function W(te,me){var Ae=[];return Ae[i]=me,Ae[a]=te,isNaN(me)||isNaN(te)?[NaN,NaN]:t.dataToPoint(Ae)}function z(te,me,Ae){var Pe=me.slice(),Oe=me.slice();Pe[i]=D_(Pe[i]+n/2,1,!1),Oe[i]=D_(Oe[i]-n/2,1,!0),Ae?te.push(Pe,Oe):te.push(Oe,Pe)}function j(te,me,Ae){var Pe=W(te,Ae),Oe=W(me,Ae);return Pe[i]-=n/2,Oe[i]-=n/2,{x:Pe[0],y:Pe[1],width:n,height:Oe[1]-Pe[1]}}function ee(te){return te[i]=D_(te[i],1),te}}function v(p,m){for(var y=jo(p.count*4),S=0,b,w=[],C=[],x,A=m.getStore(),D=!!e.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var M=A.get(s,x),I=A.get(u,x),P=A.get(c,x),R=A.get(f,x),N=A.get(h,x);if(isNaN(M)||isNaN(R)||isNaN(N)){y[S++]=NaN,S+=3;continue}y[S++]=v3(A,x,I,P,c,D),w[i]=M,w[a]=R,b=t.dataToPoint(w,null,C),y[S++]=b?b[0]:NaN,y[S++]=b?b[1]:NaN,w[a]=N,b=t.dataToPoint(w,null,C),y[S++]=b?b[1]:NaN}m.setLayout("largePoints",y)}}};function v3(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function _1e(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Ee(ot(e.get("barMaxWidth"),i),i),o=Ee(ot(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ee(s,i):Math.max(Math.min(i/2,a),o)}function S1e(e){e.registerChartView(o1e),e.registerSeriesModel(U6),e.registerPreprocessor(f1e),e.registerVisual(m1e),e.registerLayout(y1e)}function p3(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var b1e=function(e){Q(t,e);function t(r,n){var i=e.call(this)||this,a=new hm(r,n),o=new et;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var h=void 0;Xe(f)?h=f(i):h=f,a.__t>0&&(h=-s*a.__t),this._animateSymbol(a,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return jl(r.__p1,r.__cp1)+jl(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Rn,c=NA;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),h=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(h,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],h=i[l+1];r.x=f[0]*(1-c)+c*h[0],r.y=f[1]*(1-c)+c*h[1];var d=r.__t<1?h[0]-f[0]:f[0]-h[0],v=r.__t<1?h[1]-f[1]:f[1]-h[1];r.rotation=-Math.atan2(v,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(W6),A1e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),D1e=function(e){Q(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A1e},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var d=(u+f)/2-(c-h)*a,v=(c+h)/2-(f-u)*a;r.quadraticCurveTo(d,v,f,h)}else r.lineTo(f,h)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=a[u++],h=a[u++],d=1;d0){var m=(f+v)/2-(h-p)*o,y=(h+p)/2-(v-f)*o;if(_H(f,h,m,y,v,p,s,r,n))return l}else if(zl(f,h,v,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),X6={seriesType:"lines",plan:Bd(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&vm(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=X6.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new M1e:new KI(o?a?T1e:Y6:a?W6:jI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(pr),L1e=typeof Uint32Array>"u"?Array:Uint32Array,P1e=typeof Float64Array>"u"?Array:Float64Array;function g3(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=we(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),IM([i,r[0],r[1]])}))}var E1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],g3(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(g3(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=c1(this._flatCoords,n.flatCoords),this._flatCoordsOffset=c1(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Dr);function T0(e){return e instanceof Array||(e=[e,e]),e}var R1e={seriesType:"lines",reset:function(e){var t=T0(e.get("symbol")),r=T0(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=T0(s.getShallow("symbol",!0)),u=T0(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function k1e(e){e.registerChartView(I1e),e.registerSeriesModel(E1e),e.registerLayout(X6),e.registerVisual(R1e)}var O1e=256,N1e=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=mu.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,h=f.getContext("2d"),d=t.length;f.width=r,f.height=n;for(var v=0;v0){var R=o(b)?l:u;b>0&&(b=b*I+D),C[x++]=R[P],C[x++]=R[P+1],C[x++]=R[P+2],C[x++]=R[P+3]*b*256}else x+=4}return h.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=mu.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function F1e(e,t,r){var n=e[1]-e[0];t=we(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function m3(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var V1e=function(e){Q(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,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):m3(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(m3(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Iu(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Ef(s,"cartesian2d"),u,c,f,h;if(l){var d=s.getAxis("x"),v=s.getAxis("y");u=d.getBandWidth()+.5,c=v.getBandWidth()+.5,f=d.scale.getExtent(),h=v.scale.getExtent()}for(var p=this.group,m=r.getData(),y=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),C=Dn(r),x=r.getModel("emphasis"),A=x.get("focus"),D=x.get("blurScope"),M=x.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=i;Pf[1]||Fh[1])continue;var B=s.dataToPoint([O,F]);R=new Ot({shape:{x:B[0]-u/2,y:B[1]-c/2,width:u,height:c},style:N})}else{if(isNaN(m.get(I[1],P)))continue;R=new Ot({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:N})}if(m.hasItemOption){var W=m.getItemModel(P),z=W.getModel("emphasis");y=z.getModel("itemStyle").getItemStyle(),S=W.getModel(["blur","itemStyle"]).getItemStyle(),b=W.getModel(["select","itemStyle"]).getItemStyle(),w=W.get(["itemStyle","borderRadius"]),A=z.get("focus"),D=z.get("blurScope"),M=z.get("disabled"),C=Dn(W)}R.shape.r=w;var j=r.getRawValue(P),ee="-";j&&j[2]!=null&&(ee=j[2]+""),Yn(R,C,{labelFetcher:r,labelDataIndex:P,defaultOpacity:N.opacity,defaultText:ee}),R.ensureState("emphasis").style=y,R.ensureState("blur").style=S,R.ensureState("select").style=b,Yr(R,A,D,M),R.incremental=o,o&&(R.states.emphasis.hoverLayer=!0),p.add(R),m.setItemGraphicEl(P,R),this._progressiveEls&&this._progressiveEls.push(R)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new N1e;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var h=Math.max(c.x,0),d=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),p=Math.min(c.height+c.y,a.getHeight()),m=v-h,y=p-d,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(S,function(A,D,M){var I=r.dataToPoint([A,D]);return I[0]-=h,I[1]-=d,I.push(M),I}),w=i.getExtent(),C=i.type==="visualMap.continuous"?B1e(w,i.option.range):F1e(w,i.getPieceList(),i.option.selected);u.update(b,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var x=new Fn({style:{width:m,height:y,x:h,y:d,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(pr),z1e=function(e){Q(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 ul(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=lm.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Dr);function G1e(e){e.registerChartView(V1e),e.registerSeriesModel(z1e)}var $1e=["itemStyle","borderWidth"],y3=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],oT=new ll,H1e=function(e){Q(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,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:y3[+c],categoryDim:y3[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var p=S3(o,v),m=_3(o,v,p,h),y=b3(o,h,m);o.setItemGraphicEl(v,y),a.add(y),x3(y,h,m)}}).update(function(v,p){var m=s.getItemGraphicEl(p);if(!o.hasValue(v)){a.remove(m);return}var y=S3(o,v),S=_3(o,v,y,h),b=Q6(o,S);m&&b!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(v,null),m=null),m?j1e(m,h,S):m=b3(o,h,S,!0),o.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=S,a.add(m),x3(m,h,S)}).remove(function(v){var p=s.getItemGraphicEl(v);p&&w3(s,v,p.__pictorialSymbolMeta.animationModel,p)}).execute();var d=r.get("clip",!0)?vm(r.coordinateSystem,!1,r):null;return d?a.setClipPath(d):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){w3(a,rt(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(pr);function _3(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};U1e(r,a,i,n,h),W1e(e,t,i,a,o,h.boundingLength,h.pxSign,c,n,h),Y1e(r,h.symbolScale,u,n,h);var d=h.symbolSize,v=Lf(r.get("symbolOffset"),d);return X1e(r,d,i,a,o,v,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function U1e(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Se(o)){var f=[sT(s,o[0])-l,sT(s,o[1])-l];f[1]0?1:-1}function sT(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function W1e(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,h=Math.abs(r[f.wh]),d=e.getItemVisual(t,"symbolSize"),v;Se(d)?v=d.slice():d==null?v=["100%","100%"]:v=[d,d],v[f.index]=Ee(v[f.index],h),v[c.index]=Ee(v[c.index],n?h:Math.abs(a)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function Y1e(e,t,r,n,i){var a=e.get($1e)||0;a&&(oT.attr({scaleX:t[0],scaleY:t[1],rotation:r}),oT.updateTransform(),a/=oT.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function X1e(e,t,r,n,i,a,o,s,l,u,c,f){var h=c.categoryDim,d=c.valueDim,v=f.pxSign,p=Math.max(t[d.index]+s,0),m=p;if(n){var y=Math.abs(l),S=On(e.get("symbolMargin"),"15%")+"",b=!1;S.lastIndexOf("!")===S.length-1&&(b=!0,S=S.slice(0,S.length-1));var w=Ee(S,t[d.index]),C=Math.max(p+w*2,0),x=b?0:w*2,A=aH(n),D=A?n:C3((y+x)/C),M=y-D*p;w=M/2/(b?D:Math.max(D-1,1)),C=p+w*2,x=b?0:w*2,!A&&n!=="fixed"&&(D=u?C3((Math.abs(u)+x)/C):0),m=D*C-x,f.repeatTimes=D,f.symbolMargin=w}var I=v*(m/2),P=f.pathPosition=[];P[h.index]=r[h.wh]/2,P[d.index]=o==="start"?I:o==="end"?l-I:l/2,a&&(P[0]+=a[0],P[1]+=a[1]);var R=f.bundlePosition=[];R[h.index]=r[h.xy],R[d.index]=r[d.xy];var N=f.barRectShape=de({},r);N[d.wh]=v*Math.max(Math.abs(r[d.wh]),Math.abs(P[d.index]+I)),N[h.wh]=r[h.wh];var O=f.clipShape={};O[h.xy]=-r[h.xy],O[h.wh]=c.ecSize[h.wh],O[d.xy]=0,O[d.wh]=r[d.wh]}function Z6(e){var t=e.symbolPatternSize,r=hn(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function q6(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(aL(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:y<0)&&(S=u-1-p),m[l.index]=f*(S-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function j6(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Qh(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=Z6(r),i.add(a),Qh(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function K6(e,t,r){var n=de({},t.barRectShape),i=e.__pictorialBarRect;i?Qh(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ot({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function J6(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=de({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Yt(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ot({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],If[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function S3(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=Z1e,r.isAnimationEnabled=q1e,r}function Z1e(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function q1e(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function b3(e,t,r,n){var i=new et,a=new et;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?q6(i,t,r):j6(i,t,r),K6(i,r,n),J6(i,t,r,n),i.__pictorialShapeStr=Q6(e,r),i.__pictorialSymbolMeta=r,i}function j1e(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Yt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?q6(e,t,r,!0):j6(e,t,r,!0),K6(e,r,!0),J6(e,t,r,!0)}function w3(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];aL(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),E(a,function(o){_u(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function Q6(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function aL(e,t,r){E(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Qh(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&If[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function x3(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),h=a.get("scale");aL(e,function(p){if(p instanceof Fn){var m=p.style;p.useStyle(de({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else p.useStyle(r.style);var y=p.ensureState("emphasis");y.style=o,h&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var d=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,Yn(v,Dn(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:fd(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:d}),Yr(e,c,f,a.get("disabled"))}function C3(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var K1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Lu(Ig.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(Ig);function J1e(e){e.registerChartView(H1e),e.registerSeriesModel(K1e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,st(N8,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,F8("pictorialBar"))}var Q1e=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function h(m){return m.name}var d=new el(this._layersSeries||[],l,h,h),v=[];d.add(Fe(p,this,"add")).update(Fe(p,this,"update")).remove(Fe(p,this,"remove")).execute();function p(m,y,S){var b=o._layers;if(m==="remove"){s.remove(b[y]);return}for(var w=[],C=[],x,A=l[y].indices,D=0;Da&&(a=s),n.push(s)}for(var u=0;ua&&(a=f)}return{y0:i,max:a}}function iSe(e){e.registerChartView(Q1e),e.registerSeriesModel(tSe),e.registerLayout(rSe),e.registerProcessor(gm("themeRiver"))}var aSe=2,oSe=4,A3=function(e){Q(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=aSe,o.textConfig={inside:!0},rt(o).seriesIndex=n.seriesIndex;var s=new zt({z2:oSe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;rt(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=de({},c);f.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var d=n.getVisual("decal");d&&(h.decal=ud(d,o));var v=Xc(l.getModel("itemStyle"),f,!0);de(f,v),E(xi,function(S){var b=s.ensureState(S),w=l.getModel([S,"itemStyle"]);b.style=w.getItemStyle();var C=Xc(w,f);C&&(b.shape=C)}),r?(s.setShape(f),s.shape.r=c.r0,Rr(s,{shape:{r:c.r}},i,n.dataIndex)):(Yt(s,{shape:f},i),wo(s)),s.useStyle(h),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;Yr(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,h=f.getTextContent(),d=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(v!=null&&Math.abs(s)O&&!pg(B-O)&&B0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new A3(S,r,n,i),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";A1(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:KD,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(pr),cSe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};e7(i);var a=this._levelModels=we(r.levels||[],function(l){return new nr(l,this,n)},this),o=UI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),h=a[f.depth];return h&&(u.parentModel=h),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=_b(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){a6(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Dr);function e7(e){var t=0;E(e.children,function(n){e7(n);var i=n.value;Se(i)&&(i=i[0]),t+=i});var r=e.value;Se(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Se(e.value)?e.value[0]=r:e.value=r}var M3=Math.PI/180;function fSe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Se(a)||(a=[0,a]),Se(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ee(i[0],o),c=Ee(i[1],s),f=Ee(a[0],l/2),h=Ee(a[1],l/2),d=-n.get("startAngle")*M3,v=n.get("minAngle")*M3,p=n.getData().tree.root,m=n.getViewRoot(),y=m.depth,S=n.get("sort");S!=null&&t7(m,S);var b=0;E(m.children,function(B){!isNaN(B.getValue())&&b++});var w=m.getValue(),C=Math.PI/(w||b)*2,x=m.depth>0,A=m.height-(x?-1:1),D=(h-f)/(A||1),M=n.get("clockwise"),I=n.get("stillShowZeroSum"),P=M?1:-1,R=function(B,W){if(B){var z=W;if(B!==p){var j=B.getValue(),ee=w===0&&I?C:j*C;ee1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Ne(s)&&(s=VA(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");de(u,l)})})}function vSe(e){e.registerChartView(uSe),e.registerSeriesModel(cSe),e.registerLayout(st(fSe,"sunburst")),e.registerProcessor(st(gm,"sunburst")),e.registerVisual(dSe),lSe(e)}var I3={color:"fill",borderColor:"stroke"},pSe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ys=Nt(),gSe=function(e){Q(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 ul(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=Ys(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Dr);function mSe(e,t){return t=t||[0,0],we(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function ySe(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:Fe(mSe,e)}}}function _Se(e,t){return t=t||[0,0],we([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function SSe(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:Fe(_Se,e)}}}function bSe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function wSe(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:Fe(bSe,e)}}}function xSe(e,t){return t=t||[0,0],we(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function CSe(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(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Fe(xSe,e)}}}function TSe(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,i){return e.dataToPoint(n,i)}}}}function r7(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Ve(e,"text")))}function n7(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Ve(n,"text")&&(o.text=n.text),Ve(n,"rich")&&(o.rich=n.rich),Ve(n,"textFill")&&(o.fill=n.textFill),Ve(n,"textStroke")&&(o.stroke=n.textStroke),Ve(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Ve(n,"fontSize")&&(o.fontSize=n.fontSize),Ve(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Ve(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Ve(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Ve(n,"textPosition")&&(i.position=n.textPosition),Ve(n,"textOffset")&&(i.offset=n.textOffset),Ve(n,"textRotation")&&(i.rotation=n.textRotation),Ve(n,"textDistance")&&(i.distance=n.textDistance)}return L3(o,e),E(o.rich,function(l){L3(l,l)}),{textConfig:i,textContent:a}}function L3(e,t){t&&(t.font=t.textFont||t.font,Ve(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Ve(t,"textAlign")&&(e.align=t.textAlign),Ve(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Ve(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Ve(t,"textWidth")&&(e.width=t.textWidth),Ve(t,"textHeight")&&(e.height=t.textHeight),Ve(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Ve(t,"textPadding")&&(e.padding=t.textPadding),Ve(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Ve(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Ve(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Ve(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Ve(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Ve(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Ve(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function P3(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 i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";E3(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),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,E(t.rich,function(s){E3(s,s)}),n}function E3(e,t){t&&(Ve(t,"fill")&&(e.textFill=t.fill),Ve(t,"stroke")&&(e.textStroke=t.fill),Ve(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Ve(t,"font")&&(e.font=t.font),Ve(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Ve(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Ve(t,"fontSize")&&(e.fontSize=t.fontSize),Ve(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Ve(t,"align")&&(e.textAlign=t.align),Ve(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Ve(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Ve(t,"width")&&(e.textWidth=t.width),Ve(t,"height")&&(e.textHeight=t.height),Ve(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Ve(t,"padding")&&(e.textPadding=t.padding),Ve(t,"borderColor")&&(e.textBorderColor=t.borderColor),Ve(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Ve(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Ve(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Ve(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Ve(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Ve(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Ve(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Ve(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Ve(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Ve(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var i7={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},R3=Mt(i7);is(os,function(e,t){return e[t]=1,e},{});os.join(", ");var Y1=["","style","shape","extra"],vd=Nt();function oL(e,t,r,n,i){var a=e+"Animation",o=Pd(e,n,i)||{},s=vd(t).userDuring;return o.duration>0&&(o.during=s?Fe(LSe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),de(o,r[a]),o}function R_(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=vd(e),u=t.style;l.userDuring=t.during;var c={},f={};if(ESe(e,t,f),O3("shape",t,f),O3("extra",t,f),!a&&s&&(PSe(e,t,c),k3("shape",e,t,c),k3("extra",e,t,c),RSe(e,t,u,c)),f.style=u,ASe(e,f,o),MSe(e,t),s)if(a){var h={};E(Y1,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(h[v]=h[v]||{}),de(v?h[v]:h,p.enterFrom))});var d=oL("enter",e,t,r,i);d.duration>0&&e.animateFrom(h,d)}else DSe(e,t,i||0,r,c);a7(e,t),u?e.dirty():e.markRedraw()}function a7(e,t){for(var r=vd(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function MSe(e,t){Ve(t,"silent")&&(e.silent=t.silent),Ve(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ua&&Ve(t,"invisible")&&(e.invisible=t.invisible),e instanceof Ct&&Ve(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Bo={},ISe={setTransform:function(e,t){return Bo.el[e]=t,this},getTransform:function(e){return Bo.el[e]},setShape:function(e,t){var r=Bo.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Bo.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Bo.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Bo.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Bo.el.extra||(Bo.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Bo.el.extra;if(t)return t[e]}};function LSe(){var e=this,t=e.el;if(t){var r=vd(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Bo.el=t,n(ISe)}}function k3(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),uf(l))de(o,a);else for(var u=cr(l),c=0;c=0){!o&&(o=n[e]={});for(var d=Mt(a),c=0;c=0)){var h=e.getAnimationStyleProps(),d=h?h.style:null;if(d){!a&&(a=n.style={});for(var v=Mt(r),u=0;u=0?t.getStore().get(W,F):void 0}var z=t.get(B.name,F),j=B&&B.ordinalMeta;return j?j.categories[z]:z}function x(O,F){F==null&&(F=u);var B=t.getItemVisual(F,"style"),W=B&&B.fill,z=B&&B.opacity,j=S(F,nu).getItemStyle();W!=null&&(j.fill=W),z!=null&&(j.opacity=z);var ee={inheritColor:Ne(W)?W:"#000"},te=b(F,nu),me=Ar(te,null,ee,!1,!0);me.text=te.getShallow("show")?ot(e.getFormattedLabel(F,nu),fd(t,F)):null;var Ae=C1(te,ee,!1);return M(O,j),j=P3(j,me,Ae),O&&D(j,O),j.legacy=!0,j}function A(O,F){F==null&&(F=u);var B=S(F,Xs).getItemStyle(),W=b(F,Xs),z=Ar(W,null,null,!0,!0);z.text=W.getShallow("show")?Qo(e.getFormattedLabel(F,Xs),e.getFormattedLabel(F,nu),fd(t,F)):null;var j=C1(W,null,!0);return M(O,B),B=P3(B,z,j),O&&D(B,O),B.legacy=!0,B}function D(O,F){for(var B in F)Ve(F,B)&&(O[B]=F[B])}function M(O,F){O&&(O.textFill&&(F.textFill=O.textFill),O.textPosition&&(F.textPosition=O.textPosition))}function I(O,F){if(F==null&&(F=u),Ve(I3,O)){var B=t.getItemVisual(F,"style");return B?B[I3[O]]:null}if(Ve(pSe,O))return t.getItemVisual(F,O)}function P(O){if(a.type==="cartesian2d"){var F=a.getBaseAxis();return Ede(qe({axis:F},O))}}function R(){return r.getCurrentSeriesIndices()}function N(O){return QM(O,r)}}function HSe(e){var t={};return E(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function fT(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=fL(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Yr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function fL(e,t,r,n,i,a){var o=-1,s=t;t&&u7(t,n,i)&&(o=St(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=uL(n),s&&VSe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Da.normal.cfg=Da.normal.conOpt=Da.emphasis.cfg=Da.emphasis.conOpt=Da.blur.cfg=Da.blur.conOpt=Da.select.cfg=Da.select.conOpt=null,Da.isLegacy=!1,WSe(u,r,n,i,l,Da),USe(u,r,n,i,l),cL(e,u,r,n,Da,i,l),Ve(n,"info")&&(Ys(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function u7(e,t,r){var n=Ys(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&jSe(a)&&c7(a)!==n.customPathData||i==="image"&&Ve(o,"image")&&o.image!==n.customImagePath}function USe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&u7(o,a,n)&&(o=null),o||(o=uL(a),e.setClipPath(o)),cL(null,o,t,a,null,n,i)}}function WSe(e,t,r,n,i,a){if(!e.isGroup){F3(r,null,a),F3(r,Xs,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=uL(o),e.setTextContent(c)),cL(null,c,t,o,null,n,i);for(var f=o&&o.style,h=0;h=c;d--){var v=t.childAt(d);XSe(t,v,i)}}}function XSe(e,t,r){t&&wb(t,Ys(e).option,r)}function ZSe(e){new el(e.oldChildren,e.newChildren,B3,B3,e).add(V3).update(V3).remove(qSe).execute()}function B3(e,t){var r=e&&e.name;return r??FSe+t}function V3(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;fL(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function qSe(e){var t=this.context,r=t.oldChildren[e];r&&wb(r,Ys(r).option,t.seriesModel)}function c7(e){return e&&(e.pathData||e.d)}function jSe(e){return e&&(Ve(e,"pathData")||Ve(e,"d"))}function KSe(e){e.registerChartView(zSe),e.registerSeriesModel(gSe)}var Ec=Nt(),z3=Je,hT=Fe,dL=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,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 et,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var h=st(G3,r,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}H3(s,r,!0),this._renderHandle(a)}},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"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=FI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ec(t).pointerEl=new If[a.type](z3(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ec(t).labelEl=new zt(z3(r.label));t.add(a),$3(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ec(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ec(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),$3(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=sm(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){js(u.event)},onmousedown:hT(this._onHandleDragMove,this,0,0),drift:hT(this._onHandleDragMove,this),ondragend:hT(this._onHandleDragEnd,this)}),n.add(i)),H3(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Se(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Vd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){G3(this._axisPointerModel,!r&&this._moveAnimation,this._handle,dT(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(dT(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(dT(i)),Ec(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,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),xg(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 G3(e,t,r,n){f7(Ec(r).lastProp,n)||(Ec(r).lastProp=n,t?Yt(r,n,e):(r.stopAnimation(),r.attr(n)))}function f7(e,t){if(Ke(e)&&Ke(t)){var r=!0;return E(t,function(n,i){r=r&&f7(e[i],n)}),!!r}else return e===t}function $3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function dT(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function H3(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function vL(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 h7(e,t,r,n,i){var a=r.get("value"),o=d7(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Od(s.get("padding")||0),u=s.getFont(),c=em(o,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=h),v==="center"&&(f[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=d),p==="middle"&&(f[1]-=d/2),JSe(f,h,d,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Ar(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function JSe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function d7(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:AI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};E(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ne(o)?a=o.replace("{value}",a):Xe(o)&&(a=o(s))}return a}function pL(e,t,r){var n=ca();return Mf(n,n,r.rotation),as(n,n,r.position),mo([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function v7(e,t,r,n,i,a){var o=bi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),h7(t,n,i,a,{position:pL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gL(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function p7(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function U3(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var QSe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=W3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=vL(a),d=ebe[u](s,f,c);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=RD(l.model,i);v7(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=RD(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=pL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=W3(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 h=(u[1]+u[0])/2,d=[h,h];d[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[c]}},t}(dL);function W3(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var ebe={line:function(e,t,r){var n=gL([t,r[0]],[t,r[1]],Y3(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:p7([t-n/2,r[0]],[n,i],Y3(e))}}};function Y3(e){return e.dim==="x"?0:1}var tbe=function(e){Q(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}(Dt),Vs=Nt(),rbe=E;function g7(e,t,r){if(!At.node){var n=t.getZr();Vs(n).records||(Vs(n).records={}),nbe(n,t);var i=Vs(n).records[e]||(Vs(n).records[e]={});i.handler=r}}function nbe(e,t){if(Vs(e).initialized)return;Vs(e).initialized=!0,r("click",st(X3,"click")),r("mousemove",st(X3,"mousemove")),r("globalout",abe);function r(n,i){e.on(n,function(a){var o=obe(t);rbe(Vs(e).records,function(s){s&&i(s,a,o.dispatchAction)}),ibe(o.pendings,t)})}}function ibe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function abe(e,t,r){e.handler("leave",null,r)}function X3(e,t,r,n){t.handler(e,r,n)}function obe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function e2(e,t){if(!At.node){var r=t.getZr(),n=(Vs(r).records||{})[e];n&&(Vs(r).records[e]=null)}}var sbe=function(e){Q(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,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";g7("axisPointer",i,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){e2("axisPointer",n)},t.prototype.dispose=function(r,n){e2("axisPointer",n)},t.type="axisPointer",t}(Br);function m7(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=yf(a,e);if(o==null||o<0||Se(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,h=u.dim,d=f==="x"||f==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(we(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var Z3=Nt();function lbe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Fe(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){k_(i)&&(i=m7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=k_(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||k_(i),h={},d={},v={list:[],map:{}},p={showPointer:st(cbe,d),showTooltip:st(fbe,v)};E(s.coordSysMap,function(y,S){var b=l||y.containPoint(i);E(s.coordSysAxesInfo[S],function(w,C){var x=w.axis,A=pbe(u,w);if(!f&&b&&(!u||A)){var D=A&&A.value;D==null&&!l&&(D=x.pointToData(i)),D!=null&&q3(w,D,p,!1,h)}})});var m={};return E(c,function(y,S){var b=y.linkGroup;b&&!d[S]&&E(b.axesInfo,function(w,C){var x=d[C];if(w!==y&&x){var A=x.value;b.mapper&&(A=y.axis.scale.parse(b.mapper(A,j3(w),j3(y)))),m[y.key]=A}})}),E(m,function(y,S){q3(c[S],y,p,!0,h)}),hbe(d,c,h),dbe(v,i,e,o),vbe(c,o,r),h}}function q3(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=ube(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&de(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function ube(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return E(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,r);h=d.dataIndices,f=d.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p=0&&s<0)&&(o=p,s=v,i=f,a.length=0),E(h,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function cbe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function fbe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Lg(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function hbe(e,t,r){var n=r.axesInfo=[];E(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function dbe(e,t,r,n){if(k_(t)||!e.list.length){n({type:"hideTip"});return}var i=((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:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function vbe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Z3(n)[i]||{},o=Z3(n)[i]={};E(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&E(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];E(a,function(u,c){!o[c]&&l.push(u)}),E(o,function(u,c){!a[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 pbe(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 j3(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 k_(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Sm(e){Rf.registerAxisPointerClass("CartesianAxisPointer",QSe),e.registerComponentModel(tbe),e.registerComponentView(sbe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Se(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Tge(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lbe)}function gbe(e){bt(WW),bt(Sm)}var mbe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),h=a.get("type");if(h&&h!=="none"){var d=vL(a),v=_be[h](s,l,f,c);v.style=d,r.graphicKey=v.type,r.pointer=v}var p=a.get(["label","margin"]),m=ybe(n,i,a,l,p);h7(r,i,a,o,m)},t}(dL);function ybe(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var h=ca();Mf(h,h,s),as(h,h,[n.cx,n.cy]),u=mo([o,-i],h);var d=t.getModel("axisLabel").get("rotate")||0,v=bi.innerTextLayout(s,d*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var m=n.cx,y=n.cy;c=Math.abs(u[0]-m)/p<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var _be={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:gL(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:U3(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:U3(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},Sbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Dt),mL=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",cn).models[0]},t.type="polarAxis",t}(Dt);dn(mL,fm);var bbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(mL),wbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(mL),yL=function(e){Q(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Ao);yL.prototype.dataToRadius=Ao.prototype.dataToCoord;yL.prototype.radiusToData=Ao.prototype.coordToData;var xbe=Nt(),_L=function(e){Q(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=em(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),h=f/u;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),v=xbe(r.model),p=v.lastAutoInterval,m=v.lastTickCount;return p!=null&&m!=null&&Math.abs(p-d)<=1&&Math.abs(m-o)<=1&&p>d?d=p:(v.lastTickCount=o,v.lastAutoInterval=d),d},t}(Ao);_L.prototype.dataToAngle=Ao.prototype.dataToCoord;_L.prototype.angleToData=Ao.prototype.coordToData;var y7=["radius","angle"],Cbe=function(){function e(t){this.dimensions=y7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new yL,this._angleAxis=new _L,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,h=this.r0;return c<=f*f&&c>=h*h}}},e.prototype.convertToPixel=function(t,r,n){var i=K3(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=K3(r);return i===this?this.pointToData(n):null},e}();function K3(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Tbe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=Ee(n[0],i),e.cy=Ee(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Se(l)||(l=[0,l]);var u=[Ee(l[0],s),Ee(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Abe(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();E(O1(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),E(O1(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),cd(n.scale,n.model),cd(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function Dbe(e){return e.mainType==="angleAxis"}function J3(e,t){var r;if(e.type=t.get("type"),e.scale=pb(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Dbe(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var Mbe={dimensions:y7,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new Cbe(i+"");a.update=Abe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");J3(o,l),J3(s,u),Tbe(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",cn).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},Ibe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function A0(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function D0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function Q3(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var Lbe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=we(i.getViewLabels(),function(c){c=Je(c);var f=i.scale,h=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});Q3(u),Q3(s),E(Ibe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Pbe[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Rf),Pbe={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=D0(r),f=c?0:1,h,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?h=new If[d]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):h=new nm({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,e.add(h)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[D0(r)],u=we(n,function(c){return new xn({shape:A0(r,[l,l+s],c.coord)})});e.add(Ba(u,{style:qe(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[D0(r)],c=[],f=0;fy?"left":"right",w=Math.abs(m[1]-S)/p<.3?"middle":m[1]>S?"top":"bottom";if(s&&s[v]){var C=s[v];Ke(C)&&C.textStyle&&(d=new nr(C.textStyle,l,l.ecModel))}var x=new zt({silent:bi.isLabelSilent(t),style:Ar(d,{x:m[0],y:m[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(x),c){var A=bi.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,rt(x).eventData=A}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",F=M;C&&(n[c][N]||(n[c][N]={p:M,n:M}),F=n[c][N][O]);var B=void 0,W=void 0,z=void 0,j=void 0;if(v.dim==="radius"){var ee=v.dataToCoord(R)-M,te=l.dataToCoord(N);Math.abs(ee)=j})}}})}function Bbe(e){var t={};E(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=S7(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;t[l]=f;var d=_7(n);h[d]||f.autoWidthCount++,h[d]=h[d]||{width:0,maxWidth:0};var v=Ee(n.get("barWidth"),c),p=Ee(n.get("barMaxWidth"),c),m=n.get("barGap"),y=n.get("barCategoryGap");v&&!h[d].width&&(v=Math.min(f.remainedWidth,v),h[d].width=v,f.remainedWidth-=v),p&&(h[d].maxWidth=p),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var r={};return E(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=Ee(n.categoryGap,o),l=Ee(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),E(a,function(p,m){var y=p.maxWidth;y&&y=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=eB(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=eB(r);return i===this?this.pointToData(n):null},e}();function eB(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function qbe(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new Zbe(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",cn).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var jbe={create:qbe,dimensions:b7},tB=["x","y"],Kbe=["width","height"],Jbe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=vT(l,1-q1(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var h=vL(a),d=Qbe[f](s,c,u);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=t2(i);v7(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=t2(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=pL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=q1(o),u=vT(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=vT(s,1-l),h=(f[1]+f[0])/2,d=[h,h];return d[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(dL),Qbe={line:function(e,t,r){var n=gL([t,r[0]],[t,r[1]],q1(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:p7([t-n/2,r[0]],[n,i],q1(e))}}};function q1(e){return e.isHorizontal()?0:1}function vT(e,t){var r=e.getRect();return[r[tB[t]],r[tB[t]]+r[Kbe[t]]]}var ewe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(Br);function twe(e){bt(Sm),Rf.registerAxisPointerClass("SingleAxisPointer",Jbe),e.registerComponentView(ewe),e.registerComponentView(Wbe),e.registerComponentModel(O_),hd(e,"single",O_,O_.defaultOption),e.registerCoordinateSystem("single",jbe)}var rwe=function(e){Q(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,i){var a=Nd(r);e.prototype.init.apply(this,arguments),rB(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),rB(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Dt);function rB(e,t){var r=e.cellSize,n;Se(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=we([0,1],function(a){return xce(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Su(e,t,{type:"box",ignoreSize:i})}var nwe=function(e){Q(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,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ot({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,h=0;f.time<=n.end.time;h++){v(f.formatedDate),h===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var d=f.date;d.setMonth(d.getMonth()+1),f=s.getDateInfo(d)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var m=o._getLinePointsOfOneWeek(r,p,i);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Mi({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return Ne(r)&&r?Sce(r,n):Xe(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,h=i==="horizontal"?0:1,d={top:[c,u[h][1]],bottom:[c,u[1-h][1]],left:[u[1-h][0],f],right:[u[h][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var p=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:v},y=this._formatterLabel(p,m),S=new zt({z2:30,style:Ar(o,{text:y})});S.attr(this._yearTextPositionControl(S,d[l],i,l,s)),a.add(S)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ne(s))&&(s&&(n=uD(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,d=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/pT)-Math.floor(r[0].time/pT)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function nB(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function awe(e){e.registerComponentModel(rwe),e.registerComponentView(nwe),e.registerCoordinateSystem("calendar",iwe)}function owe(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function iB(e,t){var r;return E(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function swe(e,t,r){var n=de({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(ft(i,n,!0),Su(i,n,{ignoreSize:!0}),vU(r,i),M0(r,i),M0(r,i,"shape"),M0(r,i,"style"),M0(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var w7=["transition","enterFrom","leaveTo"],lwe=w7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function M0(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?w7:lwe,i=0;i=0;c--){var f=i[c],h=mn(f.id,null),d=h!=null?o.get(h):null;if(d){var v=d.parent,y=ka(v),S=v===a?{width:s,height:l}:{width:y.width,height:y.height},b={},w=ob(d,f,S,null,{hv:f.hv,boundingMode:f.bounding},b);if(!ka(d).isNew&&w){for(var C=f.transition,x={},A=0;A=0)?x[D]=M:d[D]=M}Yt(d,x,r,0)}else d.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){N_(i,ka(i).option,n,r._lastGraphicModel)}),this._elMap=He()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Br);function r2(e){var t=Ve(aB,e)?aB[e]:JM(e),r=new t({});return ka(r).type=e,r}function oB(e,t,r,n){var i=r2(r);return t.add(i),n.set(e,i),ka(i).id=e,ka(i).isNew=!0,i}function N_(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){N_(a,t,r,n)}),wb(e,t,n),r.removeKey(ka(e).id))}function sB(e,t,r,n){e.isGroup||E([["cursor",Ua.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Ve(t,a)?e[a]=ot(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),E(Mt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Xe(a)?a:null}}),Ve(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function hwe(e){return e=de({},e),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(dU),function(t){delete e[t]}),e}function dwe(e,t,r){var n=rt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=rt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function vwe(e){e.registerComponentModel(cwe),e.registerComponentView(fwe),e.registerPreprocessor(function(t){var r=t.graphic;Se(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var lB=["x","y","radius","angle","single"],pwe=["cartesian2d","polar","singleAxis"];function gwe(e){var t=e.get("coordinateSystem");return St(pwe,t)>=0}function iu(e){return e+"Axis"}function mwe(e,t){var r=He(),n=[],i=He();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(h,d){var v=r.get(h);v&&v[d]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,h){(r.get(f)||r.set(f,[]))[h]=!0})}return n}function x7(e){var t=e.ecModel,r={infoList:[],infoMap:He()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(iu(n),i);if(a){var o=a.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(a)}}}),r}var gT=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}(),Ng=function(e){Q(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,i){var a=uB(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=uB(r);ft(this.option,r,!0),ft(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;E([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=He(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return E(lB,function(i){var a=this.getReferringComponents(iu(i),ule);if(a.specified){n=!0;var o=new gT;E(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.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 h=new gT;if(h.add(f.componentIndex),r.set(c,h),a=!1,c==="x"||c==="y"){var d=f.getReferringComponents("grid",cn).models[0];d&&E(u,function(v){f.componentIndex!==v.componentIndex&&d===v.getReferringComponents("grid",cn).models[0]&&h.add(v.componentIndex)})}}}a&&E(lB,function(u){if(a){var c=i.findComponents({mainType:iu(u),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var f=new gT;f.add(c[0].componentIndex),r.set(u,f),a=!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,i=this.get("rangeMode");E([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(iu(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){E(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(iu(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;E([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;E(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},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 i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(b&&!w&&!C)return!0;b&&(m=!0),w&&(v=!0),C&&(p=!0)}return m&&v&&p})}else Mh(c,function(d){if(a==="empty")l.setData(u=u.map(d,function(p){return s(p)?p:NaN}));else{var v={};v[d]=o,u.selectRange(v)}});Mh(c,function(d){u.setApproximateExtent(o,d)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Mh(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=ir(n[0]+o,n,[0,100],!0):a!=null&&(o=ir(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=rH(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function bwe(e,t,r){var n=[1/0,-1/0];Mh(r,function(o){eve(n,o.getData(),t)});var i=e.getAxisModel(),a=G8(i.axis.scale,i,n).calculate();return[a.min,a.max]}var wwe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(iu(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Swe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=He();return E(r,function(i){E(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function xwe(e){e.registerAction("dataZoom",function(t,r){var n=mwe(r,t);E(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var fB=!1;function bL(e){fB||(fB=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,wwe),xwe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Cwe(e){e.registerComponentModel(ywe),e.registerComponentView(_we),bL(e)}var Na=function(){function e(){}return e}(),C7={};function Ih(e,t){C7[e]=t}function T7(e){return C7[e]}var Twe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;E(this.option.feature,function(n,i){var a=T7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),ft(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Dt);function Awe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=yn(n,a,i);sf(t.get("orient"),e,t.get("itemGap"),o.width,o.height),ob(e,n,a,i)}function A7(e,t){var r=Od(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ot({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 Dwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];E(u,function(v,p){f.push(p)}),new el(this._featureNames||[],f).add(h).update(h).remove(st(h,null)).execute(),this._featureNames=f;function h(v,p){var m=f[v],y=f[p],S=u[m],b=new nr(S,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===m&&(S.title=a.newTitle),m&&!y){if(Mwe(m))w={onclick:b.option.onclick,featureName:m};else{var C=T7(m);if(!C)return;w=new C}c[m]=w}else if(w=c[y],!w)return;w.uid=kd("toolbox-feature"),w.model=b,w.ecModel=n,w.api=i;var x=w instanceof Na;if(!m&&y){x&&w.dispose&&w.dispose(n,i);return}if(!b.get("show")||x&&w.unusable){x&&w.remove&&w.remove(n,i);return}d(b,w,m),b.setIconStatus=function(A,D){var M=this.option,I=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[A]=D,I[A]&&(D==="emphasis"?Js:Qs)(I[A])},w instanceof Na&&w.render&&w.render(b,n,i,a)}function d(v,p,m){var y=v.getModel("iconStyle"),S=v.getModel(["emphasis","iconStyle"]),b=p instanceof Na&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},C,x;Ne(b)?(C={},C[m]=b):C=b,Ne(w)?(x={},x[m]=w):x=w;var A=v.iconPaths={};E(C,function(D,M){var I=sm(D,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=S.getItemStyle();var R=new zt({style:{text:x[M],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:QM({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});I.setTextContent(R),Ed({el:I,componentModel:r,itemName:M,formatterParamsExtra:{title:x[M]}}),I.__title=x[M],I.on("mouseover",function(){var N=S.getItemStyle(),O=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:S.get("textFill")||N.fill||N.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),I.setTextConfig({position:S.get("textPosition")||O}),R.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&i.leaveEmphasis(this),R.hide()}),(v.get(["iconStatus",M])==="emphasis"?Js:Qs)(I),o.add(I),I.on("click",Fe(p.onclick,p,n,i,M)),A[M]=I})}Awe(o,r,i),o.add(A7(o.getBoundingRect(),r)),l||o.eachChild(function(v){var p=v.__title,m=v.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),S=v.getTextContent(),b=S&&S.ensureState("emphasis");if(b&&!Xe(b)&&p){var w=b.style||(b.style={}),C=em(p,zt.makeFont(w)),x=v.x+o.x,A=v.y+o.y+s,D=!1;A+C.height>i.getHeight()&&(y.position="top",D=!0);var M=D?-5-C.height:s+10;x+C.width/2>i.getWidth()?(y.position=["100%",M],w.align="right"):x-C.width/2<0&&(y.position=[0,M],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){E(this._features,function(o){o instanceof Na&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){E(this._features,function(i){i instanceof Na&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){E(this._features,function(i){i instanceof Na&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(Br);function Mwe(e){return e.indexOf("my")===0}var Iwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=At.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),d=h[0].indexOf("base64")>-1,v=o?decodeURIComponent(h[1]):h[1];d&&(v=window.atob(v));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,y=new Uint8Array(m);m--;)y[m]=v.charCodeAt(m);var S=new Blob([y]);window.navigator.msSaveOrOpenBlob(S,p)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,p),document.body.removeChild(b)}}else{var x=i.get("lang"),A='',D=window.open();D.document.write(A),D.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Na),hB="__ec_magicType_stack__",Lwe=[["line","bar"],["stack"]],Pwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return E(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(dB[i]){var s={series:[]},l=function(f){var h=f.subType,d=f.id,v=dB[i](h,d,f,a);v&&(qe(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var y=m.dim,S=y+"Axis",b=f.getReferringComponents(S,cn).models[0],w=b.componentIndex;s[S]=s[S]||[];for(var C=0;C<=w;C++)s[S][w]=s[S][w]||{};s[S][w].boundaryGap=i==="bar"}}};E(Lwe,function(f){St(f,i)>=0&&E(f,function(h){a.setIconStatus(h,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=ft({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Na),dB={line:function(e,t,r,n){if(e==="bar")return ft({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return ft({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===hB;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),ft({id:t,stack:i?"":hB},n.get(["option","stack"])||{},!0)}};fs({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var xb=new Array(60).join("-"),pd=" ";function Ewe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function Rwe(e){var t=[];return E(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(we(r.series,function(d){return d.name})),l=[i.model.getCategories()];E(r.series,function(d){var v=d.getRawData();l.push(d.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(pd)],c=0;c=0)return!0}var n2=new RegExp("["+pd+"]+","g");function Fwe(e){for(var t=e.split(/\n+/g),r=j1(t.shift()).split(n2),n=[],i=we(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function Hwe(e){var t=wL(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return D7(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function Uwe(e){M7(e).snapshots=null}function Wwe(e){return wL(e).length}function wL(e){var t=M7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Ywe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){Uwe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Na);fs({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var Xwe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],xL=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=vB(r,t);E(Zwe,function(o,s){(!n||!n.include||St(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=mT[n.brushType](0,a,i);n.__rangeOffset={offset:yB[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){E(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&E(a.coordSyses,function(o){var s=mT[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){E(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=mT[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?yB[n.brushType](a.values,o.offset,qwe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return we(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:N6(i),isTargetByCursor:B6(i,t,n.coordSysModel),getLinearBrushOtherExtent:F6(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&St(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=vB(r,t),a=0;ae[1]&&e.reverse(),e}function vB(e,t){return Np(e,t,{includeMainTypes:Xwe})}var Zwe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=He(),o={},s={};!r&&!n&&!i||(E(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),E(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),E(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];E(u.getCartesians(),function(f,h){(St(r,f.getAxis("x").model)>=0||St(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:gB.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){E(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:gB.geo})})}},pB=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],gB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(of(e)),t}},mT={lineX:st(mB,0),lineY:st(mB,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[i2([i[0],a[0]]),i2([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=we(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function mB(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=i2(we([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var yB={lineX:st(_B,0),lineY:st(_B,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return we(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function _B(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function qwe(e,t){var r=SB(e),n=SB(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function SB(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var a2=E,jwe=ile("toolbox-dataZoom_"),Kwe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new JI(i.getZr()),this._brushController.on("brush",Fe(this._onBrush,this)).mount()),exe(r,n,this,a,i),Qwe(r,n)},t.prototype.onclick=function(r,n,i){Jwe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new xL(CL(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[h],f,c)}}),$we(a,i),this._dispatchZoomAction(i);function s(u,c,f){var h=c.getAxis(u),d=h.model,v=l(u,d,a),p=v.findRepresentativeAxisProxy(d).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=kf(0,f.slice(),h.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var h;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var v=d.getAxisModel(u,c.componentIndex);v&&(h=d)}),h}},t.prototype._dispatchZoomAction=function(r){var n=[];a2(r,function(i,a){n.push(Je(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Na),Jwe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Hwe(this.ecModel))}};function CL(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Qwe(e,t){e.setIconStatus("back",Wwe(t)>1?"emphasis":"normal")}function exe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new xL(CL(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}Ice("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=CL(n),o=Np(e,a);a2(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),a2(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:jwe+u+f};h[c]=f,i.push(h)}return i});function txe(e){e.registerComponentModel(Twe),e.registerComponentView(Dwe),Ih("saveAsImage",Iwe),Ih("magicType",Pwe),Ih("dataView",zwe),Ih("dataZoom",Kwe),Ih("restore",Ywe),bt(Cwe)}var rxe=function(e){Q(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}(Dt);function I7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function L7(e){if(At.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,h=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-f)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function uxe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=At.transformSupported?","+TL+n:",left"+n+",top"+n),axe+":"+i}function bB(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!At.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=At.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+TL+":"+o+";":[["top",0],["left",0],[P7,o]]}function cxe(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 i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),E(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function fxe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=WU(e,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),t&&i&&n.push(uxe(i,r)),a&&n.push("background-color:"+a),E(["width","color","radius"],function(d){var v="border-"+d,p=fU(v),m=e.get(p);m!=null&&n.push(v+":"+m+(d==="color"?"":"px"))}),n.push(cxe(c)),f!=null&&n.push("padding:"+Od(f).join("px ")+"px"),n.join(";")+";"}function wB(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&Noe(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var hxe=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,At.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Ne(a)?document.querySelector(a):ad(a)?a:Xe(a)&&a(t.getDom()));wB(this._styleCoord,i,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=i.handler,c=i.painter.getViewportRoot();Ia(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=ixe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=oxe+fxe(t,!this._firstShow,this._longHide)+bB(a[0],a[1],!0)+("border-color:"+bf(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ne(a)&&n.get("trigger")==="item"&&!I7(n)&&(s=lxe(n,i,a)),Ne(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Se(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||At.node||!i.getDom())){var o=TB(a,i);this._ticket="";var s=a.dataByCoordSys,l=_xe(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=vxe;c.x=a.x,c.y=a.y,c.update(),rt(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=m7(a,n),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(TB(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.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=Fv([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=rt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Uc(i,function(c){if(rt(c).dataIndex!=null)return l=c,!0;if(rt(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 i=r.get("showDelay");n=Fe(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fv([n.tooltipOption],a),l=this._renderMode,u=[],c=Mn("section",{blocks:[],noHeader:!0}),f=[],h=new rC;E(r,function(S){E(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),C=b.value;if(!(!w||C==null)){var x=d7(C,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),A=Mn("section",{header:x,noHeader:!uo(x),sortBlocks:!0,blocks:[]});c.blocks.push(A),E(b.seriesDataIndices,function(D){var M=i.getSeriesByIndex(D.seriesIndex),I=D.dataIndexInside,P=M.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=b.axisDim,P.axisIndex=b.axisIndex,P.axisType=b.axisType,P.axisId=b.axisId,P.axisValue=AI(w.axis,{value:C}),P.axisValueLabel=x,P.marker=h.makeTooltipMarker("item",bf(P.color),l);var R=fN(M.formatTooltip(I,!0,null)),N=R.frag;if(N){var O=Fv([M],a).get("valueFormatter");A.blocks.push(O?de({valueFormatter:O},N):N)}R.text&&f.push(R.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var d=n.position,v=s.get("order"),p=mN(c,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?` - -`:"
",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=rt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,h=u.getData(f),d=this._renderMode,v=r.positionDefault,p=Fv([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),S=new rC;y.marker=S.makeTooltipMarker("item",bf(y.color),d);var b=fN(u.formatTooltip(c,!1,f)),w=p.get("order"),C=p.get("valueFormatter"),x=b.frag,A=x?mN(C?de({valueFormatter:C},x):x,S,d,w,a.get("useUTC"),p.get("textStyle")):b.text,D="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,A,y,D,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=rt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ne(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Je(l),l.content=Bi(l.content));var f=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=r.positionDefault,v=Fv(f,this._tooltipModel,d?{position:d}:null),p=v.get("content"),m=Math.random()+"",y=new rC;this._showOrMove(v,function(){var S=Je(v.get("formatterParams")||{});this._showTooltipContent(v,p,S,m,r.offsetX,r.offsetY,r.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(Ne(h)){var m=r.ecModel.get("useUTC"),y=Se(i)?i[0]:i,S=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=h,S&&(d=tb(y.axisValue,d,m)),d=hU(d,i,!0)}else if(Xe(h)){var b=Fe(function(w,C){w===this._ticket&&(f.setContent(C,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,d=h(i,a,b)}else d=h;f.setContent(d,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Se(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Se(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Xe(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Se(n))i=Ee(n[0],u),a=Ee(n[1],c);else if(Ke(n)){var p=n;p.width=f[0],p.height=f[1];var m=yn(p,{width:u,height:c});i=m.x,a=m.y,h=null,d=null}else if(Ne(n)&&l){var y=yxe(n,v,f,r.get("borderWidth"));i=y[0],a=y[1]}else{var y=gxe(i,a,o,u,c,h?null:20,d?null:20);i=y[0],a=y[1]}if(h&&(i-=AB(h)?f[0]/2:h==="right"?f[0]:0),d&&(a-=AB(d)?f[1]/2:d==="bottom"?f[1]:0),I7(r)){var y=mxe(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&E(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&E(u,function(h,d){var v=f[d]||{},p=h.seriesDataIndices||[],m=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===m.length,o&&E(p,function(y,S){var b=m[S];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),a&&E(h.seriesDataIndices,function(y){var S=y.seriesIndex,b=n[S],w=a[S];b&&w&&w.data!==b.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){At.node||!n.getDom()||(xg(this,"_updatePosition"),this._tooltipContent.dispose(),e2("itemTooltip",n))},t.type="tooltip",t}(Br);function Fv(e,t,r){var n=t.ecModel,i;r?(i=new nr(r,n,n),i=new nr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof nr&&(o=o.get("tooltip",!0)),Ne(o)&&(o={formatter:o}),o&&(i=new nr(o,i,n)))}return i}function TB(e,t){return e.dispatchAction||Fe(t.dispatchAction,t)}function gxe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function mxe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function yxe(e,t,r,n){var i=r[0],a=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-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function AB(e){return e==="center"||e==="middle"}function _xe(e,t,r){var n=zM(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=tm(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=rt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function Sxe(e){bt(Sm),e.registerComponentModel(rxe),e.registerComponentView(pxe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},rn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},rn)}var bxe=["rect","polygon","keep","clear"];function wxe(e,t){var r=cr(e?e.brush:[]);if(r.length){var n=[];E(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Se(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),xxe(s),t&&!s.length&&s.push.apply(s,bxe)}}function xxe(e){var t={};E(e,function(r){t[r]=1}),e.length=0,E(t,function(r,n){e.push(n)})}var DB=E;function MB(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function o2(e,t,r){var n={};return DB(t,function(a){var o=n[a]=i();DB(e[a],function(s,l){if(Tn.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Tn(u),l==="opacity"&&(u=Je(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Tn(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function R7(e,t,r){var n;E(r,function(i){t.hasOwnProperty(i)&&MB(t[i])&&(n=!0)}),n&&E(r,function(i){t.hasOwnProperty(i)&&MB(t[i])?e[i]=Je(t[i]):delete e[i]})}function Cxe(e,t,r,n,i,a){var o={};E(e,function(f){var h=Tn.prepareVisualTypes(t[f]);o[f]=h});var s;function l(f){return pI(r,s,f)}function u(f,h){t8(r,s,f,h)}r.each(c);function c(f,h){s=f;var d=r.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var v=n.call(i,f),p=t[v],m=o[v],y=0,S=m.length;yt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&RB(t)}};function RB(e){return new ht(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var Exe=function(e){Q(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){this.ecModel=r,this.api=n,this.model,(this._brushController=new JI(n.getZr())).on("brush",Fe(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){k7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:Je(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Je(i),$from:n})},t.type="brush",t}(Br),Rxe="#ddd",kxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&R7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:Rxe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=we(r,function(n){return kB(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=kB(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Dt);function kB(e,t){return ft({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new nr(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var Oxe=["rect","polygon","lineX","lineY","keep","clear"],Nxe=function(e){Q(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,E(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return E(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:Oxe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Na);function Fxe(e){e.registerComponentView(Exe),e.registerComponentModel(kxe),e.registerPreprocessor(wxe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Dxe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},rn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},rn),Ih("brush",Nxe)}var Bxe=function(e){Q(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}(Dt),Vxe=function(e){Q(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,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ot(r.get("textBaseline"),r.get("textVerticalAlign")),c=new zt({style:Ar(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),h=r.get("subtext"),d=new zt({style:Ar(s,{text:h,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!v&&!m,d.silent=!p&&!m,v&&c.on("click",function(){A1(v,"_"+r.get("target"))}),p&&d.on("click",function(){A1(p,"_"+r.get("subtarget"))}),rt(c).eventData=rt(d).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),h&&a.add(d);var y=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=y.width,S.height=y.height;var b=yn(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),d.setStyle(w),y=a.getBoundingRect();var C=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var A=new Ot({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(Br);function zxe(e){e.registerComponentModel(Bxe),e.registerComponentView(Vxe)}var OB=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],E(n,function(u,c){var f=mn(Id(u),""),h;Ke(u)?(h=Je(u),h.value=c):h=c,o.push(h),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Si([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Dt),O7=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Lu(OB.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(OB);dn(O7,lb.prototype);var Gxe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(Br),$xe=function(e){Q(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Ao),_T=Math.PI,NB=Nt(),Hxe=function(e){Q(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){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Mn("nameValue",{noName:!0,value:c})},E(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=Wxe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:_T/2},f=a==="vertical"?o.height:o.width,h=r.getModel("controlStyle"),d=h.get("show",!0),v=d?h.get("itemSize"):0,p=d?h.get("itemGap"):0,m=v+p,y=r.get(["label","rotate"])||0;y=y*_T/180;var S,b,w,C=h.get("position",!0),x=d&&h.get("showPlayBtn",!0),A=d&&h.get("showPrevBtn",!0),D=d&&h.get("showNextBtn",!0),M=0,I=f;C==="left"||C==="bottom"?(x&&(S=[0,0],M+=m),A&&(b=[M,0],M+=m),D&&(w=[I-v,0],I-=m)):(x&&(S=[I-v,0],I-=m),A&&(b=[0,0],M+=m),D&&(w=[I-v,0],I-=m));var P=[M,I];return r.get("inverse")&&P.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:b,nextBtnPosition:w,axisExtent:P,controlSize:v,controlGap:p}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=ca(),l=o.x,u=o.y+o.height;as(s,s,[-l,-u]),Mf(s,s,-_T/2),as(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),h=S(a.getBoundingRect()),d=[i.x,i.y],v=[a.x,a.y];v[0]=d[0]=c[0][0];var p=r.labelPosOpt;if(p==null||Ne(p)){var m=p==="+"?0:1;b(d,f,c,1,m),b(v,h,c,1,1-m)}else{var m=p>=0?0:1;b(d,f,c,1,m),v[1]=d[1]+p}i.setPosition(d),a.setPosition(v),i.rotation=a.rotation=r.rotation,y(i),y(a);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function S(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,C,x,A,D){w[A]+=x[A][D]-C[A][D]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=Uxe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new $xe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new et;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new xn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:de({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new xn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:qe({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],E(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),h=f.getModel("itemStyle"),d=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Fe(o._changeTimeline,o,u.value)},m=FB(f,h,n,p);m.ensureState("emphasis").style=d.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),af(m);var y=rt(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],E(u,function(c){var f=c.tickValue,h=l.getItemModel(f),d=h.getModel("label"),v=h.getModel(["emphasis","label"]),p=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new zt({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:Fe(o._changeTimeline,o,f),silent:!1,style:Ar(d,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});y.ensureState("emphasis").style=Ar(v),y.ensureState("progress").style=Ar(p),n.add(y),af(y),NB(y).dataIndex=f,o._tickLabels.push(y)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);h(r.nextBtnPosition,"next",Fe(this._changeTimeline,this,f?"-":"+")),h(r.prevBtnPosition,"prev",Fe(this._changeTimeline,this,f?"+":"-")),h(r.playPosition,c?"stop":"play",Fe(this._handlePlayClick,this,!c),!0);function h(d,v,p,m){if(d){var y=bo(ot(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-y/2,y,y],b=Yxe(a,v+"Icon",S,{x:d[0],y:d[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:p});b.ensureState("emphasis").style=u,n.add(b),af(b)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Fe(u._handlePointerDrag,u),f.ondragend=Fe(u._handlePointerDragend,u),BB(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){BB(f,u._progressLine,s,i,a)}};this._currentPointer=FB(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=za(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(h)),[o,f]}var ST={min:st(P0,"min"),max:st(P0,"max"),average:st(P0,"average"),median:st(P0,"median")};function Fg(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!Jxe(t)&&!Se(t.coord)&&Se(i)){var a=N7(t,r,n,e);if(t=Je(t),t.type&&ST[t.type]&&a.baseAxis&&a.valueAxis){var o=St(i,a.baseAxis.dim),s=St(i,a.valueAxis.dim),l=ST[t.type](r,a.baseDataDim,a.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||!Se(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)ST[u[c]]&&(u[c]=DL(r,r.mapDimension(i[c]),u[c]));return t}}function N7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(Qxe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Qxe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Bg(e,t){return e&&e.containData&&t.coord&&!l2(t)?e.containData(t.coord):!0}function eCe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!l2(t)&&!l2(r)?e.containZone(t.coord,r.coord):!0}function F7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return cu(o,t[a])}:function(r,n,i,a){return cu(r.value,t[a])}}function DL(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var bT=Nt(),ML=function(e){Q(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=He()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){bT(s).keep=!1}),n.eachSeries(function(s){var l=nl.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!bT(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){bT(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;E(r,function(a){var o=nl.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?IH(l):XM(l))})}})},t.type="marker",t}(Br);function zB(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Ee(a.get("x"),r.getWidth()),l=Ee(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var tCe=function(e){Q(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,i){n.eachSeries(function(a){var o=nl.getMarkerModelFromSeries(a,"markPoint");o&&(zB(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new dm),f=rCe(o,r,n);n.setData(f),zB(n.getData(),r,a),f.each(function(h){var d=f.getItemModel(h),v=d.getShallow("symbol"),p=d.getShallow("symbolSize"),m=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),S=d.getShallow("symbolKeepAspect");if(Xe(v)||Xe(p)||Xe(m)||Xe(y)){var b=n.getRawValue(h),w=n.getDataParams(h);Xe(v)&&(v=v(b,w)),Xe(p)&&(p=p(b,w)),Xe(m)&&(m=m(b,w)),Xe(y)&&(y=y(b,w))}var C=d.getModel("itemStyle").getItemStyle(),x=um(l,"color");C.fill||(C.fill=x),f.setItemVisual(h,{symbol:v,symbolSize:p,symbolRotate:m,symbolOffset:y,symbolKeepAspect:S,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(h){h.traverse(function(d){rt(d).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(ML);function rCe(e,t,r){var n;e?n=we(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return de(de({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Si(n,r),a=we(r.get("data"),st(Fg,t));e&&(a=sr(a,st(Bg,e)));var o=F7(!!e,n);return i.initData(a,null,o),i}function nCe(e){e.registerComponentModel(Kxe),e.registerComponentView(tCe),e.registerPreprocessor(function(t){AL(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var iCe=function(e){Q(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,i){return new t(r,n,i)},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}(nl),E0=Nt(),aCe=function(e,t,r,n){var i=e.getData(),a;if(Se(n))a=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=On(n.yAxis,n.xAxis);else{var u=N7(n,i,t,e);s=u.valueAxis;var c=L8(i,u.valueDataDim);l=DL(i,c,o)}var f=s.dim==="x"?0:1,h=1-f,d=Je(n),v={coord:[]};d.type=null,d.coord=[],d.coord[h]=-1/0,v.coord[h]=1/0;var p=r.get("precision");p>=0&&$t(l)&&(l=+l.toFixed(Math.min(p,20))),d.coord[f]=v.coord[f]=l,a=[d,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[Fg(e,a[0]),Fg(e,a[1]),de({},a[2])];return m[2].type=m[2].type||null,ft(m[2],m[0]),ft(m[2],m[1]),m};function K1(e){return!isNaN(e)&&!isFinite(e)}function GB(e,t,r,n){var i=1-e,a=n.dimensions[e];return K1(t[i])&&K1(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function oCe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(GB(1,r,n,e)||GB(0,r,n,e)))return!0}return Bg(e,t[0])&&Bg(e,t[1])}function wT(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ee(o.get("x"),i.getWidth()),u=Ee(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),h=e.get(c[1],t);s=a.dataToPoint([f,h])}if(Ef(a,"cartesian2d")){var d=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;K1(e.get(c[0],t))?s[0]=d.toGlobalCoord(d.getExtent()[r?0:1]):K1(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 sCe=function(e){Q(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,i){n.eachSeries(function(a){var o=nl.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=E0(o).from,u=E0(o).to;l.each(function(c){wT(l,c,!0,a,i),wT(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new KI);this.group.add(c.group);var f=lCe(o,r,n),h=f.from,d=f.to,v=f.line;E0(n).from=h,E0(n).to=d,n.setData(v);var p=n.get("symbol"),m=n.get("symbolSize"),y=n.get("symbolRotate"),S=n.get("symbolOffset");Se(p)||(p=[p,p]),Se(m)||(m=[m,m]),Se(y)||(y=[y,y]),Se(S)||(S=[S,S]),f.from.each(function(w){b(h,w,!0),b(d,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[h.getItemLayout(w),d.getItemLayout(w)]),C.stroke==null&&(C.stroke=h.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(w,"symbolOffset"),fromSymbolRotate:h.getItemVisual(w,"symbolRotate"),fromSymbolSize:h.getItemVisual(w,"symbolSize"),fromSymbol:h.getItemVisual(w,"symbol"),toSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(w,"symbolOffset"),toSymbolRotate:d.getItemVisual(w,"symbolRotate"),toSymbolSize:d.getItemVisual(w,"symbolSize"),toSymbol:d.getItemVisual(w,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){rt(w).dataModel=n,w.traverse(function(C){rt(C).dataModel=n})});function b(w,C,x){var A=w.getItemModel(C);wT(w,C,x,r,a);var D=A.getModel("itemStyle").getItemStyle();D.fill==null&&(D.fill=um(l,"color")),w.setItemVisual(C,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:ot(A.get("symbolOffset",!0),S[x?0:1]),symbolRotate:ot(A.get("symbolRotate",!0),y[x?0:1]),symbolSize:ot(A.get("symbolSize"),m[x?0:1]),symbol:ot(A.get("symbol",!0),p[x?0:1]),style:D})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(ML);function lCe(e,t,r){var n;e?n=we(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return de(de({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new Si(n,r),a=new Si(n,r),o=new Si([],r),s=we(r.get("data"),st(aCe,t,e,r));e&&(s=sr(s,st(oCe,e)));var l=F7(!!e,n);return i.initData(we(s,function(u){return u[0]}),null,l),a.initData(we(s,function(u){return u[1]}),null,l),o.initData(we(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function uCe(e){e.registerComponentModel(iCe),e.registerComponentView(sCe),e.registerPreprocessor(function(t){AL(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var cCe=function(e){Q(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,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(nl),R0=Nt(),fCe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=Fg(e,i),s=Fg(e,a),l=o.coord,u=s.coord;l[0]=On(l[0],-1/0),l[1]=On(l[1],-1/0),u[0]=On(u[0],1/0),u[1]=On(u[1],1/0);var c=IM([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function J1(e){return!isNaN(e)&&!isFinite(e)}function $B(e,t,r,n){var i=1-e;return J1(t[i])&&J1(r[i])}function hCe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Ef(e,"cartesian2d")?r&&n&&($B(1,r,n)||$B(0,r,n))?!0:eCe(e,i,a):Bg(e,i)||Bg(e,a)}function HB(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ee(o.get(r[0]),i.getWidth()),u=Ee(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),h=a.clampData(c),d=a.clampData(f),v=[];r[0]==="x0"?v[0]=h[0]>d[0]?f[0]:c[0]:v[0]=h[0]>d[0]?c[0]:f[0],r[1]==="y0"?v[1]=h[1]>d[1]?f[1]:c[1]:v[1]=h[1]>d[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var p=e.get(r[0],t),m=e.get(r[1],t),y=[p,m];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(Ef(a,"cartesian2d")){var S=a.getAxis("x"),b=a.getAxis("y"),p=e.get(r[0],t),m=e.get(r[1],t);J1(p)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):J1(m)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var UB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dCe=function(e){Q(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,i){n.eachSeries(function(a){var o=nl.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=we(UB,function(f){return HB(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new et});this.group.add(c.group),this.markKeep(c);var f=vCe(o,r,n);n.setData(f),f.each(function(h){var d=we(UB,function(D){return HB(f,h,D,r,a)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,m=v.getExtent(),y=p.getExtent(),S=[v.parse(f.get("x0",h)),v.parse(f.get("x1",h))],b=[p.parse(f.get("y0",h)),p.parse(f.get("y1",h))];za(S),za(b);var w=!(m[0]>S[1]||m[1]b[1]||y[1]=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}(Dt),yh=st,c2=E,k0=et,B7=function(e){Q(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 k0),this.group.add(this._selectorGroup=new k0),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=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,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=yn(c,f,h),v=this.layoutInner(r,o,d,a,l,u),p=yn(qe({width:v.width,height:v.height},c),f,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=A7(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,i,a,o,s,l){var u=this.getContentGroup(),c=He(),f=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),c2(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===` -`)){var m=new k0;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(p)[0];if(!c.get(p))if(y){var S=y.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),C=S.getVisual("style"),x=this._createItem(y,p,v,d,n,r,b,C,w,f,a);x.on("click",yh(WB,p,null,a,h)).on("mouseover",yh(f2,y.name,null,a,h)).on("mouseout",yh(h2,y.name,null,a,h)),i.ssr&&x.eachChild(function(A){var D=rt(A);D.seriesIndex=y.seriesIndex,D.dataIndex=v,D.ssrType="legend"}),c.set(p,!0)}else i.eachRawSeries(function(A){if(!c.get(p)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(p))return;var M=D.indexOfName(p),I=D.getItemVisual(M,"style"),P=D.getItemVisual(M,"legendIcon"),R=fa(I.fill);R&&R[3]===0&&(R[3]=.2,I=de(de({},I),{fill:Ws(R,"rgba")}));var N=this._createItem(A,p,v,d,n,r,{},I,P,f,a);N.on("click",yh(WB,null,p,a,h)).on("mouseover",yh(f2,null,p,a,h)).on("mouseout",yh(h2,null,p,a,h)),i.ssr&&N.eachChild(function(O){var F=rt(O);F.seriesIndex=A.seriesIndex,F.dataIndex=v,F.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();c2(r,function(u){var c=u.type,f=new zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);Yn(f,{normal:h,emphasis:d},{defaultText:u.title}),af(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),y=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),b=a.get("icon");c=b||c||"roundRect";var w=mCe(c,a,l,u,d,m,h),C=new k0,x=a.getModel("textStyle");if(Xe(r.getLegendIcon)&&(!b||b==="inherit"))C.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var A=b==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;C.add(yCe({itemWidth:v,itemHeight:p,icon:c,iconRotate:A,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}))}var D=s==="left"?v+5:-5,M=s,I=o.get("formatter"),P=n;Ne(I)&&I?P=I.replace("{name}",n??""):Xe(I)&&(P=I(n));var R=m?x.getTextColor():a.get("inactiveColor");C.add(new zt({style:Ar(x,{text:P,x:D,y:p/2,fill:R,align:M,verticalAlign:"middle"},{inheritColor:R})}));var N=new Ot({shape:C.getBoundingRect(),style:{fill:"transparent"}}),O=a.getModel("tooltip");return O.get("show")&&Ed({el:N,componentModel:o,itemName:n,itemTooltipOption:O.option}),C.add(N),C.eachChild(function(F){F.silent=!0}),N.silent=!f,this.getContentGroup().add(C),af(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();sf(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){sf("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",y=p===0?"height":"width",S=p===0?"y":"x";s==="end"?d[p]+=c[m]+v:f[p]+=h[m]+v,d[1-p]+=c[y]/2-h[y]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[m]=c[m]+v+h[m],b[y]=Math.max(c[y],h[y]),b[S]=Math.min(0,h[S]+d[1-p]),b}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}(Br);function mCe(e,t,r,n,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),c2(m,function(S,b){m[b]==="inherit"&&(m[b]=y[b])})}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:ud(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function yCe(e){var t=e.icon||"roundRect",r=hn(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 WB(e,t,r,n){h2(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),f2(e,t,r,n)}function V7(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],m=[-d.x,-d.y];n||(m[a]=c[u]);var y=[0,0],S=[-v.x,-v.y],b=ot(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var w=r.get("pageButtonPosition",!0);w==="end"?S[a]+=i[o]-v[o]:y[a]+=v[o]+b}S[1-a]+=d[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),h.setPosition(S);var C={x:0,y:0};if(C[o]=p?i[o]:d[o],C[s]=Math.max(d[s],v[s]),C[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-v[o]-b,0),x[s]=C[s],f.setClipPath(new Ot({shape:x})),f.__rectSize=x[o]}else h.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&Yt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},p?r:null),this._updatePageInfoView(r,A),C},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;E(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=n[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Ne(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),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=xT[o],l=CT[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],h=c.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var m=u+1,y=p,S=p,b=null;m<=h;++m)b=w(c[m]),(!b&&S.e>y.s+a||b&&!C(b,y.s))&&(S.i>y.i?y=S:y=b,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),S=b;for(var m=u-1,y=p,S=p,b=null;m>=-1;--m)b=w(c[m]),(!b||!C(S,b.s))&&y.i=A&&x.s<=A+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(B7);function xCe(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function CCe(e){bt(z7),e.registerComponentModel(bCe),e.registerComponentView(wCe),xCe(e)}function TCe(e){bt(z7),bt(CCe)}var ACe=function(e){Q(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=Lu(Ng.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ng),IL=Nt();function DCe(e,t,r){IL(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function MCe(e,t){for(var r=IL(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function RCe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=IL(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=He());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=x7(a);E(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,ICe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=He());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){G7(i,a);return}var c=ECe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Vd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var kCe=function(e){Q(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,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),DCe(i,r,{pan:Fe(TT.pan,this),zoom:Fe(TT.zoom,this),scrollMove:Fe(TT.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){MCe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(SL),TT={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=AT[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*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kf(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:ZB(function(e,t,r,n,i,a){var o=AT[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:ZB(function(e,t,r,n,i,a){var o=AT[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function ZB(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(kf(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var AT={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.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=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function $7(e){bL(e),e.registerComponentModel(ACe),e.registerComponentView(kCe),RCe(e)}var OCe=function(e){Q(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=Lu(Ng.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}(Ng),zv=Ot,qB=7,NCe=1,DT=30,FCe=7,Gv="horizontal",jB="vertical",BCe=5,VCe=["line","bar","candlestick","scatter"],zCe={easing:"cubicOut",duration:100,delay:0},GCe=function(e){Q(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=Fe(this._onBrush,this),this._onBrushEnd=Fe(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Vd(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xg(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 et;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?FCe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Gv?{right:s.width-o.x-o.width,top:s.height-DT-qB-a,width:o.width,height:DT}:{right:qB,top:o.y,width:DT,height:o.height},u=Nd(r.option);E(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=yn(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,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Gv&&!o?{scaleY:l?1:-1,scaleX:1}:i===Gv&&o?{scaleY:l?1:-1,scaleX:-1}:i===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,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new zv({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new zv({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Fe(this._onClickPanel,this)}),s=this.api.getZr();a?(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)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var d=[0,n[1]],v=[0,n[0]],p=[[n[0],0],[0,0]],m=[],y=v[1]/(o.count()-1),S=0,b=Math.round(o.count()/n[0]),w;o.each([l],function(M,I){if(b>0&&I%b){S+=y;return}var P=M==null||isNaN(M)||M==="",R=P?0:ir(M,f,d,!0);P&&!w&&I?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&w&&(p.push([S,0]),m.push([S,0])),p.push([S,R]),m.push([S,R]),S+=y,w=P}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function x(M){var I=C.getModel(M?"selectedDataBackground":"dataBackground"),P=new et,R=new Ti({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),N=new Mi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(N),P}for(var A=0;A<3;A++){var D=x(A===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();E(l,function(u){if(!i&&!(n!==!0&&St(VCe,u.get("type"))<0)){var c=a.getComponent(iu(o),s).axis,f=$Ce(o),h,d=u.coordinateSystem;f!=null&&d.getOtherAxis&&(h=d.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=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"),h=n.filler=new zv({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new zv({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:NCe,fill:"rgba(0,0,0,0)"}})),E([0,1],function(b){var w=l.get("handleIcon");!I1[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=hn(w,-1,0,2,2,null,!0);C.attr({cursor:KB(this._orient),draggable:!0,drift:Fe(this._onDragMove,this,b),ondragend:Fe(this._onDragEnd,this),onmouseover:Fe(this._showDataInfo,this,!0),onmouseout:Fe(this._showDataInfo,this,!1),z2:5});var x=C.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ee(A,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),af(C);var D=l.get("handleColor");D!=null&&(C.style.fill=D),o.add(i[b]=C);var M=l.getModel("textStyle");r.add(a[b]=new zt({silent:!0,invisible:!0,style:Ar(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var d=h;if(f){var v=Ee(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ot({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,y=n.moveHandleIcon=hn(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));d=n.moveZone=new Ot({invisible:!0,shape:{y:s[1]-S,height:v+S}}),d.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(d)}d.attr({draggable:!0,cursor:KB(this._orient),drift:Fe(this._onDragMove,this,"all"),ondragstart:Fe(this._showDataInfo,this,!0),ondragend:Fe(this._onDragEnd,this),onmouseover:Fe(this._showDataInfo,this,!0),onmouseout:Fe(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[ir(r[0],[0,100],n,!0),ir(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];kf(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?ir(s.minSpan,l,o,!0):null,s.maxSpan!=null?ir(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=za([ir(a[0],o,l,!0),ir(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=za(i.slice()),o=this._size;E([0,1],function(d){var v=n.handles[d],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:i[d]+(d?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[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,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new ut(n,i),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 i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=za([ir(i.x,o,s,!0),ir(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(js(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new zv({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.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?zCe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=x7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(SL);function $Ce(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function KB(e){return e==="vertical"?"ns-resize":"ew-resize"}function H7(e){e.registerComponentModel(OCe),e.registerComponentView(GCe),bL(e)}function HCe(e){bt($7),bt(H7)}var U7={get:function(e,t,r){var n=Je((UCe[e]||{})[t]);return r&&Se(n)?n[n.length-1]:n}},UCe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JB=Tn.mapVisual,WCe=Tn.eachVisual,YCe=Se,QB=E,XCe=za,ZCe=ir,Q1=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&R7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Fe(r,this),this.controllerVisuals=o2(this.option.controller,n,r),this.targetVisuals=o2(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=cr(r),n},t.prototype.eachTargetSeries=function(r,n){E(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Se(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(Ne(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Xe(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=XCe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});ft(a,i),ft(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){YCe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,h,d){var v=f[h],p=f[d];v&&!p&&(p=f[d]={},QB(v,function(m,y){if(Tn.isValidType(y)){var S=U7.get(y,"inactive",s);S!=null&&(p[y]=S,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var h=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,d=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),m=p||"roundRect";QB(this.stateList,function(y){var S=this.itemSize,b=f[y];b||(b=f[y]={color:s?v:[v]}),b.symbol==null&&(b.symbol=h&&Je(h)||(s?m:[m])),b.symbolSize==null&&(b.symbolSize=d&&Je(d)||(s?S[0]:[S[0],S[0]])),b.symbol=JB(b.symbol,function(x){return x==="none"?m:x});var w=b.symbolSize;if(w!=null){var C=-1/0;WCe(w,function(x){x>C&&(C=x)}),b.symbolSize=JB(w,function(x){return ZCe(x,[0,C],[0,S[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Dt),eV=[20,140],qCe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=eV[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=eV[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Se(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=za((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=tV(this,"outOfRange",this.getExtent()),i=tV(this,"inRange",this.option.range.slice()),a=[];function o(d,v){a.push({value:d,color:r(d,v)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new et(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();jCe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var h=Vo(r[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=d/l[0],f.x=l[0]-d/2;var v=mo(i.handleLabelPoints[c],of(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var h={convertOpacityToAlpha:!0},d=this.getControllerVisual(r,"color",h),v=this.getControllerVisual(r,"symbolSize"),p=Vo(r,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=p,f.x=m;var S=mo(c.indicatorLabelPoint,of(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,x=C==="horizontal";b.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?w:"middle",align:x?"center":w});var A={x:m,y:p,style:{fill:d}},D={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(A,M),b.animateTo(D,M)}else f.attr(A),b.attr(D);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var h=this._hoverLinkDataIndices,d=[];(n||aV(i))&&(d=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=sle(h,d);this._dispatchHighDown("downplay",F_(v[0],i)),this._dispatchHighDown("highlight",F_(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Uc(r.target,function(l){var u=rt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function iTe(e,t,r,n){for(var i=t.targetVisuals[n],a=Tn.prepareVisualTypes(i),o={color:um(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(tTe,rTe),E(nTe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(aTe))}function Z7(e){e.registerComponentModel(qCe),e.registerComponentView(QCe),X7(e)}var oTe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],sTe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Je(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=we(this._pieceList,function(l){return l=Je(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Tn.listVisualTypes(),a=this.isCategory();E(r.pieces,function(s){E(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),E(n,function(s,l){var u=!1;E(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&E(this.stateList,function(c){(r[c]||(r[c]={}))[l]=U7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,E(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;E(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=Je(r)},t.prototype.getValueState=function(r){var n=Tn.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Tn.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var h=a.getRepresentValue({interval:c});f||(f=a.getValueState(h));var d=r(h,f);c[0]===-1/0?i[0]=d:c[1]===1/0?i[1]=d:n.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return E(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Lu(Q1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Q1),sTe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function uV(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var lTe=function(e){Q(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,h=On(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,h,l),E(c.viewPieceList,function(d){var v=d.piece,p=new et;p.onclick=Fe(this._onItemClick,this,v),this._enableHoverLink(p,d.indexInModelPieceList);var m=n.getRepresentValue(v);if(this._createItemSymbol(p,m,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(m);p.add(new zt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}r.add(p)},this),f&&this._renderEndsText(r,f[1],u,h,l),sf(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:F_(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return Y7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new et,l=this.visualMapModel.textStyleModel;s.add(new zt({style:Ar(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=we(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(hn(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Je(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,E(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(W7);function q7(e){e.registerComponentModel(oTe),e.registerComponentView(lTe),X7(e)}function uTe(e){bt(Z7),bt(q7)}var cTe={label:{enabled:!0},decal:{show:!1}},cV=Nt(),fTe={};function hTe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Je(cTe);ft(n.label,e.getLocaleModel().get("aria"),!1),ft(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=He();e.eachSeries(function(h){if(!h.isColorBySeries()){var d=f.get(h.type);d||(d={},f.set(h.type,d)),cV(h).scope=d}}),e.eachRawSeries(function(h){if(e.isSeriesFiltered(h))return;if(Xe(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var S=hD(h.ecModel,h.name,fTe,e.getSeriesCount()),b=d.getVisual("decal");d.setVisual("decal",w(b,S))}else{var v=h.getRawData(),p={},m=cV(h).scope;d.each(function(C){var x=d.getRawIndex(C);p[x]=C});var y=v.count();v.each(function(C){var x=p[C],A=v.getName(C)||C+"",D=hD(h.ecModel,A,m,y),M=d.getItemVisual(x,"decal");d.setItemVisual(x,"decal",w(M,D))})}function w(C,x){var A=C?de(de({},x),C):x;return A.dirty=!0,A}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=qe(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var h=e.getSeriesCount(),d=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,p=Math.min(h,v),m;if(!(h<1)){var y=s();if(y){var S=f.get(["general","withTitle"]);m=o(S,{title:y})}else m=f.get(["general","withoutTitle"]);var b=[],w=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(w,{seriesCount:h}),e.eachSeries(function(D,M){if(M1?f.get(["series","multiple",R]):f.get(["series","single",R]),I=o(I,{seriesId:D.seriesIndex,seriesName:D.get("name"),seriesType:l(D.subType)});var N=D.getData();if(N.count()>d){var O=f.get(["data","partialData"]);I+=o(O,{displayCnt:d})}else I+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),W=[],z=0;z":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pTe=function(){function e(t){var r=this._condVal=Ne(t)?new RegExp(t):Doe(t)?t:null;if(r==null){var n="";tr(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Ne(r)?this._condVal.test(t):$t(r)?this._condVal.test(t+""):!1},e}(),gTe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),mTe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[N,O]}function c(N,O,F,B){Nh(N,F)&&Nh(O,B)||i.push(N,O,F,B,F,B)}function f(N,O,F,B,W,z){var j=Math.abs(O-N),ee=Math.tan(j/4)*4/3,te=OD:P2&&n.push(i),n}function v2(e,t,r,n,i,a,o,s,l,u){if(Nh(e,r)&&Nh(t,n)&&Nh(i,o)&&Nh(a,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-e,d=s-t,v=Math.sqrt(h*h+d*d);h/=v,d/=v;var p=r-e,m=n-t,y=i-o,S=a-s,b=p*p+m*m,w=y*y+S*S;if(b=0&&D=0){l.push(o,s);return}var M=[],I=[];yu(e,r,i,o,.5,M),yu(t,n,a,s,.5,I),v2(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,u),v2(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,u)}function PTe(e,t){var r=d2(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),f=K7([l,u],c?0:1,t),h=(c?s:u)/f.length,d=0;di,o=K7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,h=0;h1?null:new ut(p*l+e,p*u+t)}function kTe(e,t,r){var n=new ut;ut.sub(n,r,t),n.normalize();var i=new ut;ut.sub(i,e,t);var a=i.dot(n);return a}function Sh(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function OTe(e,t,r){for(var n=e.length,i=[],a=0;ao?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),OTe(t,u,c)}function eS(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);eS(e,a[0],i,n),eS(e,a[1],r-i,n)}return n}function NTe(e,t){for(var r=[],n=0;n0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function nS(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=we(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=we(a,function(s,l){return{cp:s,z:WTe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function e9(e){return VTe(e.path,e.count)}function p2(){return{fromIndividuals:[],toIndividuals:[],count:0}}function YTe(e,t,r){var n=[];function i(C){for(var x=0;x=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var ZTe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;_V(e)&&(u=e,c=t),_V(t)&&(u=t,c=e);function f(y,S,b,w,C){var x=y.many,A=y.one;if(x.length===1&&!C){var D=S?x[0]:A,M=S?A:x[0];if(tS(D))f({many:[D],one:M},!0,b,w,!0);else{var I=s?qe({delay:s(b,w)},l):l;PL(D,M,I),a(D,M,D,M,I)}}else for(var P=qe({dividePath:ZTe[r],individualDelay:s&&function(W,z,j,ee){return s(W+b,w)}},l),R=S?YTe(x,A,P):XTe(A,x,P),N=R.fromIndividuals,O=R.toIndividuals,F=N.length,B=0;Bt.length,d=u?SV(c,u):SV(h?t:e,[h?e:t]),v=0,p=0;pt9))for(var a=n.getIndices(),o=0;o0&&x.group.traverse(function(D){D instanceof Ct&&!D.animators.length&&D.animateFrom({style:{opacity:0}},A)})})}function TV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function AV(e){return Se(e)?e.sort().join(","):e}function Gl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function tAe(e,t){var r=He(),n=He(),i=He();return E(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=TV(a),c=AV(u);n.set(c,{dataGroupId:s,data:l}),Se(u)&&E(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),E(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=TV(a),u=AV(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Gl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Gl(s),data:s}]});else if(Se(l)){var f=[];E(l,function(v){var p=n.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Gl(p.data),data:p.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Gl(s)}]})}else{var h=i.get(l);if(h){var d=r.get(h.key);d||(d={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Gl(h.data)}],newSeries:[]},r.set(h.key,d)),d.newSeries.push({dataGroupId:o,data:s,divide:Gl(s)})}}}}),r}function DV(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Gl(t.oldData[s]),groupIdDim:o.dimension})}),E(cr(e.to),function(o){var s=DV(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Gl(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&r9(i,a,n)}function nAe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){E(cr(n.seriesTransition),function(i){E(cr(i.to),function(a){for(var o=n.updatedSeries,s=0;st?Symbol.for(e):Symbol(e),iAe=(e,t,r)=>aAe({l:e,k:t,s:r}),aAe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),un=e=>typeof e=="number"&&isFinite(e),oAe=e=>EL(e)==="[object Date]",gd=e=>EL(e)==="[object RegExp]",Cb=e=>Wt(e)&&Object.keys(e).length===0,An=Object.assign,sAe=Object.create,Ir=(e=null)=>sAe(e);let MV;const Zc=()=>MV||(MV=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ir());function IV(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const lAe=Object.prototype.hasOwnProperty;function fo(e,t){return lAe.call(e,t)}const tn=Array.isArray,$r=e=>typeof e=="function",Ze=e=>typeof e=="string",ur=e=>typeof e=="boolean",vr=e=>e!==null&&typeof e=="object",uAe=e=>vr(e)&&$r(e.then)&&$r(e.catch),n9=Object.prototype.toString,EL=e=>n9.call(e),Wt=e=>EL(e)==="[object Object]",cAe=e=>e==null?"":tn(e)||Wt(e)&&e.toString===n9?JSON.stringify(e,null,2):String(e);function RL(e,t=""){return e.reduce((r,n,i)=>i===0?r+n:r+t+n,"")}function fAe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const O0=e=>!vr(e)||tn(e);function B_(e,t){if(O0(e)||O0(t))throw new Error("Invalid value");const r=[{src:e,des:t}];for(;r.length;){const{src:n,des:i}=r.pop();Object.keys(n).forEach(a=>{a!=="__proto__"&&(vr(n[a])&&!vr(i[a])&&(i[a]=Array.isArray(n[a])?[]:Ir()),O0(i[a])||O0(n[a])?i[a]=n[a]:r.push({src:n[a],des:i[a]}))})}}/*! - * message-compiler v10.0.5 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function hAe(e,t,r){return{line:e,column:t,offset:r}}function g2(e,t,r){return{start:e,end:t}}const xr={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},dAe=17;function Tb(e,t,r={}){const{domain:n,messages:i,args:a}=r,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=n,s}function vAe(e){throw e}const Ds=" ",pAe="\r",vi=` -`,gAe="\u2028",mAe="\u2029";function yAe(e){const t=e;let r=0,n=1,i=1,a=0;const o=A=>t[A]===pAe&&t[A+1]===vi,s=A=>t[A]===vi,l=A=>t[A]===mAe,u=A=>t[A]===gAe,c=A=>o(A)||s(A)||l(A)||u(A),f=()=>r,h=()=>n,d=()=>i,v=()=>a,p=A=>o(A)||l(A)||u(A)?vi:t[A],m=()=>p(r),y=()=>p(r+a);function S(){return a=0,c(r)&&(n++,i=0),o(r)&&r++,r++,i++,t[r]}function b(){return o(r+a)&&a++,a++,t[r+a]}function w(){r=0,n=1,i=1,a=0}function C(A=0){a=A}function x(){const A=r+a;for(;A!==r;)S();a=0}return{index:f,line:h,column:d,peekOffset:v,charAt:p,currentChar:m,currentPeek:y,next:S,peek:b,reset:w,resetPeek:C,skipToPeek:x}}const Rl=void 0,_Ae=".",LV="'",SAe="tokenizer";function bAe(e,t={}){const r=t.location!==!1,n=yAe(e),i=()=>n.index(),a=()=>hAe(n.line(),n.column(),n.index()),o=a(),s=i(),l={currentType:13,offset:s,startLoc:o,endLoc:o,lastType:13,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f($,Y,re,...ue){const Ce=u();if(Y.column+=re,Y.offset+=re,c){const Re=r?g2(Ce.startLoc,Y):null,J=Tb($,Re,{domain:SAe,args:ue});c(J)}}function h($,Y,re){$.endLoc=a(),$.currentType=Y;const ue={type:Y};return r&&(ue.loc=g2($.startLoc,$.endLoc)),re!=null&&(ue.value=re),ue}const d=$=>h($,13);function v($,Y){return $.currentChar()===Y?($.next(),Y):(f(xr.EXPECTED_TOKEN,a(),0,Y),"")}function p($){let Y="";for(;$.currentPeek()===Ds||$.currentPeek()===vi;)Y+=$.currentPeek(),$.peek();return Y}function m($){const Y=p($);return $.skipToPeek(),Y}function y($){if($===Rl)return!1;const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y===95}function S($){if($===Rl)return!1;const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function b($,Y){const{currentType:re}=Y;if(re!==2)return!1;p($);const ue=y($.currentPeek());return $.resetPeek(),ue}function w($,Y){const{currentType:re}=Y;if(re!==2)return!1;p($);const ue=$.currentPeek()==="-"?$.peek():$.currentPeek(),Ce=S(ue);return $.resetPeek(),Ce}function C($,Y){const{currentType:re}=Y;if(re!==2)return!1;p($);const ue=$.currentPeek()===LV;return $.resetPeek(),ue}function x($,Y){const{currentType:re}=Y;if(re!==7)return!1;p($);const ue=$.currentPeek()===".";return $.resetPeek(),ue}function A($,Y){const{currentType:re}=Y;if(re!==8)return!1;p($);const ue=y($.currentPeek());return $.resetPeek(),ue}function D($,Y){const{currentType:re}=Y;if(!(re===7||re===11))return!1;p($);const ue=$.currentPeek()===":";return $.resetPeek(),ue}function M($,Y){const{currentType:re}=Y;if(re!==9)return!1;const ue=()=>{const Re=$.currentPeek();return Re==="{"?y($.peek()):Re==="@"||Re==="|"||Re===":"||Re==="."||Re===Ds||!Re?!1:Re===vi?($.peek(),ue()):P($,!1)},Ce=ue();return $.resetPeek(),Ce}function I($){p($);const Y=$.currentPeek()==="|";return $.resetPeek(),Y}function P($,Y=!0){const re=(Ce=!1,Re="")=>{const J=$.currentPeek();return J==="{"||J==="@"||!J?Ce:J==="|"?!(Re===Ds||Re===vi):J===Ds?($.peek(),re(!0,Ds)):J===vi?($.peek(),re(!0,vi)):!0},ue=re();return Y&&$.resetPeek(),ue}function R($,Y){const re=$.currentChar();return re===Rl?Rl:Y(re)?($.next(),re):null}function N($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36}function O($){return R($,N)}function F($){const Y=$.charCodeAt(0);return Y>=97&&Y<=122||Y>=65&&Y<=90||Y>=48&&Y<=57||Y===95||Y===36||Y===45}function B($){return R($,F)}function W($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57}function z($){return R($,W)}function j($){const Y=$.charCodeAt(0);return Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102}function ee($){return R($,j)}function te($){let Y="",re="";for(;Y=z($);)re+=Y;return re}function me($){let Y="";for(;;){const re=$.currentChar();if(re==="{"||re==="}"||re==="@"||re==="|"||!re)break;if(re===Ds||re===vi)if(P($))Y+=re,$.next();else{if(I($))break;Y+=re,$.next()}else Y+=re,$.next()}return Y}function Ae($){m($);let Y="",re="";for(;Y=B($);)re+=Y;return $.currentChar()===Rl&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),re}function Pe($){m($);let Y="";return $.currentChar()==="-"?($.next(),Y+=`-${te($)}`):Y+=te($),$.currentChar()===Rl&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),Y}function Oe($){return $!==LV&&$!==vi}function Ue($){m($),v($,"'");let Y="",re="";for(;Y=R($,Oe);)Y==="\\"?re+=se($):re+=Y;const ue=$.currentChar();return ue===vi||ue===Rl?(f(xr.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),ue===vi&&($.next(),v($,"'")),re):(v($,"'"),re)}function se($){const Y=$.currentChar();switch(Y){case"\\":case"'":return $.next(),`\\${Y}`;case"u":return he($,Y,4);case"U":return he($,Y,6);default:return f(xr.UNKNOWN_ESCAPE_SEQUENCE,a(),0,Y),""}}function he($,Y,re){v($,Y);let ue="";for(let Ce=0;Ce{const ue=$.currentChar();return ue==="{"||ue==="@"||ue==="|"||ue==="("||ue===")"||!ue||ue===Ds?re:(re+=ue,$.next(),Y(re))};return Y("")}function H($){m($);const Y=v($,"|");return m($),Y}function U($,Y){let re=null;switch($.currentChar()){case"{":return Y.braceNest>=1&&f(xr.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),$.next(),re=h(Y,2,"{"),m($),Y.braceNest++,re;case"}":return Y.braceNest>0&&Y.currentType===2&&f(xr.EMPTY_PLACEHOLDER,a(),0),$.next(),re=h(Y,3,"}"),Y.braceNest--,Y.braceNest>0&&m($),Y.inLinked&&Y.braceNest===0&&(Y.inLinked=!1),re;case"@":return Y.braceNest>0&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),re=ie($,Y)||d(Y),Y.braceNest=0,re;default:{let Ce=!0,Re=!0,J=!0;if(I($))return Y.braceNest>0&&f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),re=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,re;if(Y.braceNest>0&&(Y.currentType===4||Y.currentType===5||Y.currentType===6))return f(xr.UNTERMINATED_CLOSING_BRACE,a(),0),Y.braceNest=0,_e($,Y);if(Ce=b($,Y))return re=h(Y,4,Ae($)),m($),re;if(Re=w($,Y))return re=h(Y,5,Pe($)),m($),re;if(J=C($,Y))return re=h(Y,6,Ue($)),m($),re;if(!Ce&&!Re&&!J)return re=h(Y,12,ye($)),f(xr.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,re.value),m($),re;break}}return re}function ie($,Y){const{currentType:re}=Y;let ue=null;const Ce=$.currentChar();switch((re===7||re===8||re===11||re===9)&&(Ce===vi||Ce===Ds)&&f(xr.INVALID_LINKED_FORMAT,a(),0),Ce){case"@":return $.next(),ue=h(Y,7,"@"),Y.inLinked=!0,ue;case".":return m($),$.next(),h(Y,8,".");case":":return m($),$.next(),h(Y,9,":");default:return I($)?(ue=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,ue):x($,Y)||D($,Y)?(m($),ie($,Y)):A($,Y)?(m($),h(Y,11,xe($))):M($,Y)?(m($),Ce==="{"?U($,Y)||ue:h(Y,10,ke($))):(re===7&&f(xr.INVALID_LINKED_FORMAT,a(),0),Y.braceNest=0,Y.inLinked=!1,_e($,Y))}}function _e($,Y){let re={type:13};if(Y.braceNest>0)return U($,Y)||d(Y);if(Y.inLinked)return ie($,Y)||d(Y);switch($.currentChar()){case"{":return U($,Y)||d(Y);case"}":return f(xr.UNBALANCED_CLOSING_BRACE,a(),0),$.next(),h(Y,3,"}");case"@":return ie($,Y)||d(Y);default:{if(I($))return re=h(Y,1,H($)),Y.braceNest=0,Y.inLinked=!1,re;if(P($))return h(Y,0,me($));break}}return re}function fe(){const{currentType:$,offset:Y,startLoc:re,endLoc:ue}=l;return l.lastType=$,l.lastOffset=Y,l.lastStartLoc=re,l.lastEndLoc=ue,l.offset=i(),l.startLoc=a(),n.currentChar()===Rl?h(l,13):_e(n,l)}return{nextToken:fe,currentOffset:i,currentPosition:a,context:u}}const wAe="parser",xAe=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function CAe(e,t,r){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||r,16);return n<=55295||n>=57344?String.fromCodePoint(n):"�"}}}function TAe(e={}){const t=e.location!==!1,{onError:r}=e;function n(y,S,b,w,...C){const x=y.currentPosition();if(x.offset+=w,x.column+=w,r){const A=t?g2(b,x):null,D=Tb(S,A,{domain:wAe,args:C});r(D)}}function i(y,S,b){const w={type:y};return t&&(w.start=S,w.end=S,w.loc={start:b,end:b}),w}function a(y,S,b,w){t&&(y.end=S,y.loc&&(y.loc.end=b))}function o(y,S){const b=y.context(),w=i(3,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function s(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(5,w,C);return x.index=parseInt(S,10),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function l(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(4,w,C);return x.key=S,y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function u(y,S){const b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(9,w,C);return x.value=S.replace(xAe,CAe),y.nextToken(),a(x,y.currentOffset(),y.currentPosition()),x}function c(y){const S=y.nextToken(),b=y.context(),{lastOffset:w,lastStartLoc:C}=b,x=i(8,w,C);return S.type!==11?(n(y,xr.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),x.value="",a(x,w,C),{nextConsumeToken:S,node:x}):(S.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Fo(S)),x.value=S.value||"",a(x,y.currentOffset(),y.currentPosition()),{node:x})}function f(y,S){const b=y.context(),w=i(7,b.offset,b.startLoc);return w.value=S,a(w,y.currentOffset(),y.currentPosition()),w}function h(y){const S=y.context(),b=i(6,S.offset,S.startLoc);let w=y.nextToken();if(w.type===8){const C=c(y);b.modifier=C.node,w=C.nextConsumeToken||y.nextToken()}switch(w.type!==9&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=f(y,w.value||"");break;case 4:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=l(y,w.value||"");break;case 5:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=s(y,w.value||"");break;case 6:w.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(w)),b.key=u(y,w.value||"");break;default:{n(y,xr.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const C=y.context(),x=i(7,C.offset,C.startLoc);return x.value="",a(x,C.offset,C.startLoc),b.key=x,a(b,C.offset,C.startLoc),{nextConsumeToken:w,node:b}}}return a(b,y.currentOffset(),y.currentPosition()),{node:b}}function d(y){const S=y.context(),b=S.currentType===1?y.currentOffset():S.offset,w=S.currentType===1?S.endLoc:S.startLoc,C=i(2,b,w);C.items=[];let x=null;do{const M=x||y.nextToken();switch(x=null,M.type){case 0:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(o(y,M.value||""));break;case 5:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(s(y,M.value||""));break;case 4:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(l(y,M.value||""));break;case 6:M.value==null&&n(y,xr.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fo(M)),C.items.push(u(y,M.value||""));break;case 7:{const I=h(y);C.items.push(I.node),x=I.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const A=S.currentType===1?S.lastOffset:y.currentOffset(),D=S.currentType===1?S.lastEndLoc:y.currentPosition();return a(C,A,D),C}function v(y,S,b,w){const C=y.context();let x=w.items.length===0;const A=i(1,S,b);A.cases=[],A.cases.push(w);do{const D=d(y);x||(x=D.items.length===0),A.cases.push(D)}while(C.currentType!==13);return x&&n(y,xr.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),a(A,y.currentOffset(),y.currentPosition()),A}function p(y){const S=y.context(),{offset:b,startLoc:w}=S,C=d(y);return S.currentType===13?C:v(y,b,w,C)}function m(y){const S=bAe(y,An({},e)),b=S.context(),w=i(0,b.offset,b.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=p(S),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),b.currentType!==13&&n(S,xr.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,y[b.offset]||""),a(w,S.currentOffset(),S.currentPosition()),w}return{parse:m}}function Fo(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function AAe(e,t={}){const r={ast:e,helpers:new Set};return{context:()=>r,helper:a=>(r.helpers.add(a),a)}}function PV(e,t){for(let r=0;rEV(r)),e}function EV(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let r=0;rs;function u(m,y){s.code+=m}function c(m,y=!0){const S=y?i:"";u(a?S+" ".repeat(m):S)}function f(m=!0){const y=++s.indentLevel;m&&c(y)}function h(m=!0){const y=--s.indentLevel;m&&c(y)}function d(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:d,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function LAe(e,t){const{helper:r}=e;e.push(`${r("linked")}(`),md(e,t.key),t.modifier?(e.push(", "),md(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function PAe(e,t){const{helper:r,needIndent:n}=e;e.push(`${r("normalize")}([`),e.indent(n());const i=t.items.length;for(let a=0;a1){e.push(`${r("plural")}([`),e.indent(n());const i=t.cases.length;for(let a=0;a{const r=Ze(t.mode)?t.mode:"normal",n=Ze(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=t.breakLineCode!=null?t.breakLineCode:r==="arrow"?";":` -`,o=t.needIndent?t.needIndent:r!=="arrow",s=e.helpers||[],l=IAe(e,{mode:r,filename:n,sourceMap:i,breakLineCode:a,needIndent:o});l.push(r==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${RL(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),md(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function OAe(e,t={}){const r=An({},t),n=!!r.jit,i=!!r.minify,a=r.optimize==null?!0:r.optimize,s=TAe(r).parse(e);return n?(a&&MAe(s),i&&Lh(s),{ast:s,code:""}):(DAe(s,r),kAe(s,r))}/*! - * core-base v10.0.5 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function NAe(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function ET(e){return r=>FAe(r,e)}function FAe(e,t){const r=VAe(t);if(r==null)throw Vg(0);if(OL(r)===1){const a=GAe(r);return e.plural(a.reduce((o,s)=>[...o,RV(e,s)],[]))}else return RV(e,r)}const BAe=["b","body"];function VAe(e){return Eu(e,BAe)}const zAe=["c","cases"];function GAe(e){return Eu(e,zAe,[])}function RV(e,t){const r=HAe(t);if(r!=null)return e.type==="text"?r:e.normalize([r]);{const n=WAe(t).reduce((i,a)=>[...i,m2(e,a)],[]);return e.normalize(n)}}const $Ae=["s","static"];function HAe(e){return Eu(e,$Ae)}const UAe=["i","items"];function WAe(e){return Eu(e,UAe,[])}function m2(e,t){const r=OL(t);switch(r){case 3:return N0(t,r);case 9:return N0(t,r);case 4:{const n=t;if(fo(n,"k")&&n.k)return e.interpolate(e.named(n.k));if(fo(n,"key")&&n.key)return e.interpolate(e.named(n.key));throw Vg(r)}case 5:{const n=t;if(fo(n,"i")&&un(n.i))return e.interpolate(e.list(n.i));if(fo(n,"index")&&un(n.index))return e.interpolate(e.list(n.index));throw Vg(r)}case 6:{const n=t,i=qAe(n),a=KAe(n);return e.linked(m2(e,a),i?m2(e,i):void 0,e.type)}case 7:return N0(t,r);case 8:return N0(t,r);default:throw new Error(`unhandled node on format message part: ${r}`)}}const YAe=["t","type"];function OL(e){return Eu(e,YAe)}const XAe=["v","value"];function N0(e,t){const r=Eu(e,XAe);if(r)return r;throw Vg(t)}const ZAe=["m","modifier"];function qAe(e){return Eu(e,ZAe)}const jAe=["k","key"];function KAe(e){const t=Eu(e,jAe);if(t)return t;throw Vg(6)}function Eu(e,t,r){for(let n=0;ne;let F0=Ir();function yd(e){return vr(e)&&OL(e)===0&&(fo(e,"b")||fo(e,"body"))}function QAe(e,t={}){let r=!1;const n=t.onError||vAe;return t.onError=i=>{r=!0,n(i)},{...OAe(e,t),detectError:r}}function eDe(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ze(e)){ur(t.warnHtmlMessage)&&t.warnHtmlMessage;const n=(t.onCacheKey||JAe)(e),i=F0[n];if(i)return i;const{ast:a,detectError:o}=QAe(e,{...t,location:!1,jit:!0}),s=ET(a);return o?s:F0[n]=s}else{const r=e.cacheKey;if(r){const n=F0[r];return n||(F0[r]=ET(e))}else return ET(e)}}let zg=null;function tDe(e){zg=e}function rDe(e,t,r){zg&&zg.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:r})}const nDe=iDe("function:translate");function iDe(e){return t=>zg&&zg.emit(e,t)}const zs={INVALID_ARGUMENT:dAe,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},aDe=24;function Gs(e){return Tb(e,null,void 0)}function NL(e,t){return t.locale!=null?kV(t.locale):kV(e.locale)}let RT;function kV(e){if(Ze(e))return e;if($r(e)){if(e.resolvedOnce&&RT!=null)return RT;if(e.constructor.name==="Function"){const t=e();if(uAe(t))throw Gs(zs.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return RT=t}else throw Gs(zs.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gs(zs.NOT_SUPPORT_LOCALE_TYPE)}function oDe(e,t,r){return[...new Set([r,...tn(t)?t:vr(t)?Object.keys(t):Ze(t)?[t]:[r]])]}function i9(e,t,r){const n=Ze(r)?r:Gg,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(n);if(!a){a=[];let o=[r];for(;tn(o);)o=OV(a,o,t);const s=tn(t)||!Wt(t)?t:t.default?t.default:null;o=Ze(s)?[s]:s,tn(o)&&OV(a,o,!1),i.__localeChainCache.set(n,a)}return a}function OV(e,t,r){let n=!0;for(let i=0;i{o===void 0?o=s:o+=s},h[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,n=4,h[0]();else{if(i=0,o===void 0||(o=dDe(o),o===!1))return!1;h[1]()}};function d(){const v=e[r+1];if(n===5&&v==="'"||n===6&&v==='"')return r++,s="\\"+v,h[0](),!0}for(;n!==null;)if(r++,a=e[r],!(a==="\\"&&d())){if(l=hDe(a),f=Ru[n],u=f[l]||f.l||8,u===8||(n=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(s=a,c()===!1))))return;if(n===7)return t}}const NV=new Map;function pDe(e,t){return vr(e)?e[t]:null}function gDe(e,t){if(!vr(e))return null;let r=NV.get(t);if(r||(r=vDe(t),r&&NV.set(t,r)),!r)return null;const n=r.length;let i=e,a=0;for(;a`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function yDe(){return{upper:(e,t)=>t==="text"&&Ze(e)?e.toUpperCase():t==="vnode"&&vr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ze(e)?e.toLowerCase():t==="vnode"&&vr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ze(e)?BV(e):t==="vnode"&&vr(e)&&"__v_isVNode"in e?BV(e.children):e}}let a9;function _De(e){a9=e}let o9;function SDe(e){o9=e}let s9;function bDe(e){s9=e}let l9=null;const wDe=e=>{l9=e},xDe=()=>l9;let u9=null;const VV=e=>{u9=e},CDe=()=>u9;let zV=0;function TDe(e={}){const t=$r(e.onWarn)?e.onWarn:fAe,r=Ze(e.version)?e.version:mDe,n=Ze(e.locale)||$r(e.locale)?e.locale:Gg,i=$r(n)?Gg:n,a=tn(e.fallbackLocale)||Wt(e.fallbackLocale)||Ze(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=Wt(e.messages)?e.messages:kT(i),s=Wt(e.datetimeFormats)?e.datetimeFormats:kT(i),l=Wt(e.numberFormats)?e.numberFormats:kT(i),u=An(Ir(),e.modifiers,yDe()),c=e.pluralRules||Ir(),f=$r(e.missing)?e.missing:null,h=ur(e.missingWarn)||gd(e.missingWarn)?e.missingWarn:!0,d=ur(e.fallbackWarn)||gd(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,p=!!e.unresolving,m=$r(e.postTranslation)?e.postTranslation:null,y=Wt(e.processor)?e.processor:null,S=ur(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,w=$r(e.messageCompiler)?e.messageCompiler:a9,C=$r(e.messageResolver)?e.messageResolver:o9||pDe,x=$r(e.localeFallbacker)?e.localeFallbacker:s9||oDe,A=vr(e.fallbackContext)?e.fallbackContext:void 0,D=e,M=vr(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,I=vr(D.__numberFormatters)?D.__numberFormatters:new Map,P=vr(D.__meta)?D.__meta:{};zV++;const R={version:r,cid:zV,locale:n,fallbackLocale:a,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:v,unresolving:p,postTranslation:m,processor:y,warnHtmlMessage:S,escapeParameter:b,messageCompiler:w,messageResolver:C,localeFallbacker:x,fallbackContext:A,onWarn:t,__meta:P};return R.datetimeFormats=s,R.numberFormats=l,R.__datetimeFormatters=M,R.__numberFormatters=I,__INTLIFY_PROD_DEVTOOLS__&&rDe(R,r,P),R}const kT=e=>({[e]:Ir()});function FL(e,t,r,n,i){const{missing:a,onWarn:o}=e;if(a!==null){const s=a(e,r,t,i);return Ze(s)?s:t}else return t}function $v(e,t,r){const n=e;n.__localeChainCache=new Map,e.localeFallbacker(e,r,t)}function ADe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function DDe(e,t){const r=t.indexOf(e);if(r===-1)return!1;for(let n=r+1;n{c9.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ze(n)?a.locale=n:Wt(n)&&(o=n),Wt(i)&&(o=i),[a.key||"",s,a,o]}function $V(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function HV(e,...t){const{numberFormats:r,unresolving:n,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=_2(...t),h=ur(c.missingWarn)?c.missingWarn:e.missingWarn;ur(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,v=NL(e,c),p=o(e,i,v);if(!Ze(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let m={},y,S=null;const b="number format";for(let x=0;x{f9.includes(l)?o[l]=r[l]:a[l]=r[l]}),Ze(n)?a.locale=n:Wt(n)&&(o=n),Wt(i)&&(o=i),[a.key||"",s,a,o]}function UV(e,t,r){const n=e;for(const i in r){const a=`${t}__${i}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const MDe=e=>e,IDe=e=>"",LDe="text",PDe=e=>e.length===0?"":RL(e),EDe=cAe;function WV(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function RDe(e){const t=un(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(un(e.named.count)||un(e.named.n))?un(e.named.count)?e.named.count:un(e.named.n)?e.named.n:t:t}function kDe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ODe(e={}){const t=e.locale,r=RDe(e),n=vr(e.pluralRules)&&Ze(t)&&$r(e.pluralRules[t])?e.pluralRules[t]:WV,i=vr(e.pluralRules)&&Ze(t)&&$r(e.pluralRules[t])?WV:void 0,a=y=>y[n(r,y.length,i)],o=e.list||[],s=y=>o[y],l=e.named||Ir();un(e.pluralIndex)&&kDe(r,l);const u=y=>l[y];function c(y,S){const b=$r(e.messages)?e.messages(y,!!S):vr(e.messages)?e.messages[y]:!1;return b||(e.parent?e.parent.message(y):IDe)}const f=y=>e.modifiers?e.modifiers[y]:MDe,h=Wt(e.processor)&&$r(e.processor.normalize)?e.processor.normalize:PDe,d=Wt(e.processor)&&$r(e.processor.interpolate)?e.processor.interpolate:EDe,v=Wt(e.processor)&&Ze(e.processor.type)?e.processor.type:LDe,m={list:s,named:u,plural:a,linked:(y,...S)=>{const[b,w]=S;let C="text",x="";S.length===1?vr(b)?(x=b.modifier||x,C=b.type||C):Ze(b)&&(x=b||x):S.length===2&&(Ze(b)&&(x=b||x),Ze(w)&&(C=w||C));const A=c(y,!0)(m),D=C==="vnode"&&tn(A)&&x?A[0]:A;return x?f(x)(D,C):D},message:c,type:v,interpolate:d,normalize:h,values:An(Ir(),o,l)};return m}const YV=()=>"",Fa=e=>$r(e);function XV(e,...t){const{fallbackFormat:r,postTranslation:n,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=S2(...t),c=ur(u.missingWarn)?u.missingWarn:e.missingWarn,f=ur(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ur(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,v=Ze(u.default)||ur(u.default)?ur(u.default)?a?l:()=>l:u.default:r?a?l:()=>l:null,p=r||v!=null&&(Ze(v)||$r(v)),m=NL(e,u);h&&NDe(u);let[y,S,b]=d?[l,m,s[m]||Ir()]:h9(e,l,m,o,f,c),w=y,C=l;if(!d&&!(Ze(w)||yd(w)||Fa(w))&&p&&(w=v,C=w),!d&&(!(Ze(w)||yd(w)||Fa(w))||!Ze(S)))return i?Ab:l;let x=!1;const A=()=>{x=!0},D=Fa(w)?w:d9(e,l,S,w,C,A);if(x)return w;const M=VDe(e,S,b,u),I=ODe(M),P=FDe(e,D,I),R=n?n(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const N={timestamp:Date.now(),key:Ze(l)?l:Fa(w)?w.key:"",locale:S||(Fa(w)?w.locale:""),format:Ze(w)?w:Fa(w)?w.source:"",message:R};N.meta=An({},e.__meta,xDe()||{}),nDe(N)}return R}function NDe(e){tn(e.list)?e.list=e.list.map(t=>Ze(t)?IV(t):t):vr(e.named)&&Object.keys(e.named).forEach(t=>{Ze(e.named[t])&&(e.named[t]=IV(e.named[t]))})}function h9(e,t,r,n,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,n,r);let f=Ir(),h,d=null;const v="translate";for(let p=0;pn;return u.locale=r,u.key=t,u}const l=o(n,BDe(e,r,i,n,s,a));return l.locale=r,l.key=t,l.source=n,l}function FDe(e,t,r){return t(r)}function S2(...e){const[t,r,n]=e,i=Ir();if(!Ze(t)&&!un(t)&&!Fa(t)&&!yd(t))throw Gs(zs.INVALID_ARGUMENT);const a=un(t)?String(t):(Fa(t),t);return un(r)?i.plural=r:Ze(r)?i.default=r:Wt(r)&&!Cb(r)?i.named=r:tn(r)&&(i.list=r),un(n)?i.plural=n:Ze(n)?i.default=n:Wt(n)&&An(i,n),[a,i]}function BDe(e,t,r,n,i,a){return{locale:t,key:r,warnHtmlMessage:i,onError:o=>{throw a&&a(o),o},onCacheKey:o=>iAe(t,r,o)}}function VDe(e,t,r,n){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:i,pluralRules:a,messages:(d,v)=>{let p=o(r,d);if(p==null&&(c||v)){const[,,m]=h9(c||e,d,t,s,l,u);p=o(m,d)}if(Ze(p)||yd(p)){let m=!1;const S=d9(e,d,t,p,d,()=>{m=!0});return m?YV:S}else return Fa(p)?p:YV}};return e.processor&&(h.processor=e.processor),n.list&&(h.list=n.list),n.named&&(h.named=n.named),un(n.plural)&&(h.pluralIndex=n.plural),h}NAe();/*! - * vue-i18n v10.0.5 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const zDe="10.0.5";function GDe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Zc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Zc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zc().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ai={UNEXPECTED_RETURN_TYPE:aDe,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Ui(e,...t){return Tb(e,null,void 0)}const b2=Pu("__translateVNode"),w2=Pu("__datetimeParts"),x2=Pu("__numberParts"),v9=Pu("__setPluralRules"),p9=Pu("__injectWithOption"),C2=Pu("__dispose");function $g(e){if(!vr(e))return e;for(const t in e)if(fo(e,t))if(!t.includes("."))vr(e[t])&&$g(e[t]);else{const r=t.split("."),n=r.length-1;let i=e,a=!1;for(let o=0;o{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||Ir(),B_(u,o[l])):B_(u,o)}else Ze(s)&&B_(JSON.parse(s),o)}),i==null&&a)for(const s in o)fo(o,s)&&$g(o[s]);return o}function g9(e){return e.type}function m9(e,t,r){let n=vr(t.messages)?t.messages:Ir();"__i18nGlobal"in r&&(n=BL(e.locale.value,{messages:n,__i18n:r.__i18nGlobal}));const i=Object.keys(n);i.length&&i.forEach(a=>{e.mergeLocaleMessage(a,n[a])});{if(vr(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(vr(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function ZV(e){return ze(qg,null,e,0)}const qV="__INTLIFY_META__",jV=()=>[],$De=()=>!1;let KV=0;function JV(e){return(t,r,n,i)=>e(r,n,ns()||void 0,i)}const HDe=()=>{const e=ns();let t=null;return e&&(t=g9(e)[qV])?{[qV]:t}:null};function VL(e={}){const{__root:t,__injectWithOption:r}=e,n=t===void 0,i=e.flatJson,a=iS?Ye:bS;let o=ur(e.inheritLocale)?e.inheritLocale:!0;const s=a(t&&o?t.locale.value:Ze(e.locale)?e.locale:Gg),l=a(t&&o?t.fallbackLocale.value:Ze(e.fallbackLocale)||tn(e.fallbackLocale)||Wt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=a(BL(s.value,e)),c=a(Wt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=a(Wt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:ur(e.missingWarn)||gd(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:ur(e.fallbackWarn)||gd(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:ur(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,m=$r(e.missing)?e.missing:null,y=$r(e.missing)?JV(e.missing):null,S=$r(e.postTranslation)?e.postTranslation:null,b=t?t.warnHtmlMessage:ur(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const C=t?t.modifiers:Wt(e.modifiers)?e.modifiers:{};let x=e.pluralRules||t&&t.pluralRules,A;A=(()=>{n&&VV(null);const J={version:zDe,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:x,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:d,fallbackFormat:p,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:b,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};J.datetimeFormats=c.value,J.numberFormats=f.value,J.__datetimeFormatters=Wt(A)?A.__datetimeFormatters:void 0,J.__numberFormatters=Wt(A)?A.__numberFormatters:void 0;const ce=TDe(J);return n&&VV(ce),ce})(),$v(A,s.value,l.value);function M(){return[s.value,l.value,u.value,c.value,f.value]}const I=at({get:()=>s.value,set:J=>{s.value=J,A.locale=s.value}}),P=at({get:()=>l.value,set:J=>{l.value=J,A.fallbackLocale=l.value,$v(A,s.value,J)}}),R=at(()=>u.value),N=at(()=>c.value),O=at(()=>f.value);function F(){return $r(S)?S:null}function B(J){S=J,A.postTranslation=J}function W(){return m}function z(J){J!==null&&(y=JV(J)),m=J,A.missing=y}const j=(J,ce,Ge,Qe,It,Ft)=>{M();let Mr;try{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=t?CDe():void 0),Mr=J(A)}finally{__INTLIFY_PROD_DEVTOOLS__,n||(A.fallbackContext=void 0)}if(Ge!=="translate exists"&&un(Mr)&&Mr===Ab||Ge==="translate exists"&&!Mr){const[Vr,nn]=ce();return t&&v?Qe(t):It(Vr)}else{if(Ft(Mr))return Mr;throw Ui(Ai.UNEXPECTED_RETURN_TYPE)}};function ee(...J){return j(ce=>Reflect.apply(XV,null,[ce,...J]),()=>S2(...J),"translate",ce=>Reflect.apply(ce.t,ce,[...J]),ce=>ce,ce=>Ze(ce))}function te(...J){const[ce,Ge,Qe]=J;if(Qe&&!vr(Qe))throw Ui(Ai.INVALID_ARGUMENT);return ee(ce,Ge,An({resolvedMessage:!0},Qe||{}))}function me(...J){return j(ce=>Reflect.apply(GV,null,[ce,...J]),()=>y2(...J),"datetime format",ce=>Reflect.apply(ce.d,ce,[...J]),()=>FV,ce=>Ze(ce))}function Ae(...J){return j(ce=>Reflect.apply(HV,null,[ce,...J]),()=>_2(...J),"number format",ce=>Reflect.apply(ce.n,ce,[...J]),()=>FV,ce=>Ze(ce))}function Pe(J){return J.map(ce=>Ze(ce)||un(ce)||ur(ce)?ZV(String(ce)):ce)}const Ue={normalize:Pe,interpolate:J=>J,type:"vnode"};function se(...J){return j(ce=>{let Ge;const Qe=ce;try{Qe.processor=Ue,Ge=Reflect.apply(XV,null,[Qe,...J])}finally{Qe.processor=null}return Ge},()=>S2(...J),"translate",ce=>ce[b2](...J),ce=>[ZV(ce)],ce=>tn(ce))}function he(...J){return j(ce=>Reflect.apply(HV,null,[ce,...J]),()=>_2(...J),"number format",ce=>ce[x2](...J),jV,ce=>Ze(ce)||tn(ce))}function pe(...J){return j(ce=>Reflect.apply(GV,null,[ce,...J]),()=>y2(...J),"datetime format",ce=>ce[w2](...J),jV,ce=>Ze(ce)||tn(ce))}function ye(J){x=J,A.pluralRules=x}function xe(J,ce){return j(()=>{if(!J)return!1;const Ge=Ze(ce)?ce:s.value,Qe=U(Ge),It=A.messageResolver(Qe,J);return yd(It)||Fa(It)||Ze(It)},()=>[J],"translate exists",Ge=>Reflect.apply(Ge.te,Ge,[J,ce]),$De,Ge=>ur(Ge))}function ke(J){let ce=null;const Ge=i9(A,l.value,s.value);for(let Qe=0;Qe{o&&(s.value=J,A.locale=J,$v(A,s.value,l.value))}),Sr(t.fallbackLocale,J=>{o&&(l.value=J,A.fallbackLocale=J,$v(A,s.value,l.value))}));const Re={id:KV,locale:I,fallbackLocale:P,get inheritLocale(){return o},set inheritLocale(J){o=J,J&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,$v(A,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:R,get modifiers(){return C},get pluralRules(){return x||{}},get isGlobal(){return n},get missingWarn(){return h},set missingWarn(J){h=J,A.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(J){d=J,A.fallbackWarn=d},get fallbackRoot(){return v},set fallbackRoot(J){v=J},get fallbackFormat(){return p},set fallbackFormat(J){p=J,A.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(J){b=J,A.warnHtmlMessage=J},get escapeParameter(){return w},set escapeParameter(J){w=J,A.escapeParameter=J},t:ee,getLocaleMessage:U,setLocaleMessage:ie,mergeLocaleMessage:_e,getPostTranslationHandler:F,setPostTranslationHandler:B,getMissingHandler:W,setMissingHandler:z,[v9]:ye};return Re.datetimeFormats=N,Re.numberFormats=O,Re.rt=te,Re.te=xe,Re.tm=H,Re.d=me,Re.n=Ae,Re.getDateTimeFormat=fe,Re.setDateTimeFormat=$,Re.mergeDateTimeFormat=Y,Re.getNumberFormat=re,Re.setNumberFormat=ue,Re.mergeNumberFormat=Ce,Re[p9]=r,Re[b2]=se,Re[w2]=pe,Re[x2]=he,Re}function UDe(e){const t=Ze(e.locale)?e.locale:Gg,r=Ze(e.fallbackLocale)||tn(e.fallbackLocale)||Wt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=$r(e.missing)?e.missing:void 0,i=ur(e.silentTranslationWarn)||gd(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=ur(e.silentFallbackWarn)||gd(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ur(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Wt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=$r(e.postTranslation)?e.postTranslation:void 0,f=Ze(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,d=ur(e.sync)?e.sync:!0;let v=e.messages;if(Wt(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((A,D)=>{const M=A[D]||(A[D]={});return An(M,C[D]),A},v||{})}const{__i18n:p,__root:m,__injectWithOption:y}=e,S=e.datetimeFormats,b=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:r,messages:v,flatJson:w,datetimeFormats:S,numberFormats:b,missing:n,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:d,__i18n:p,__root:m,__injectWithOption:y}}function T2(e={}){const t=VL(UDe(e)),{__extender:r}=e,n={id:t.id,get locale(){return t.locale.value},set locale(i){t.locale.value=i},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(i){t.fallbackLocale.value=i},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(i){t.setMissingHandler(i)},get silentTranslationWarn(){return ur(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=ur(i)?!i:i},get silentFallbackWarn(){return ur(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=ur(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){return Reflect.apply(t.t,t,[...i])},rt(...i){return Reflect.apply(t.rt,t,[...i])},tc(...i){const[a,o,s]=i,l={plural:1};let u=null,c=null;if(!Ze(a))throw Ui(Ai.INVALID_ARGUMENT);const f=a;return Ze(o)?l.locale=o:un(o)?l.plural=o:tn(o)?u=o:Wt(o)&&(c=o),Ze(s)?l.locale=s:tn(s)?u=s:Wt(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},te(i,a){return t.te(i,a)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,a){t.setLocaleMessage(i,a)},mergeLocaleMessage(i,a){t.mergeLocaleMessage(i,a)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,a){t.setDateTimeFormat(i,a)},mergeDateTimeFormat(i,a){t.mergeDateTimeFormat(i,a)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,a){t.setNumberFormat(i,a)},mergeNumberFormat(i,a){t.mergeNumberFormat(i,a)}};return n.__extender=r,n}function WDe(e,t,r){return{beforeCreate(){const n=ns();if(!n)throw Ui(Ai.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const a=i.i18n;if(i.__i18n&&(a.__i18n=i.__i18n),a.__root=t,this===this.$root)this.$i18n=QV(e,a);else{a.__injectWithOption=!0,a.__extender=r.__vueI18nExtend,this.$i18n=T2(a);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=QV(e,i);else{this.$i18n=T2({__i18n:i.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&m9(t,i,i),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$tc=(...a)=>this.$i18n.tc(...a),this.$te=(a,o)=>this.$i18n.te(a,o),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),r.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const n=ns();if(!n)throw Ui(Ai.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),r.__deleteInstance(n),delete this.$i18n}}}function QV(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[v9](t.pluralizationRules||e.pluralizationRules);const r=BL(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(r).forEach(n=>e.mergeLocaleMessage(n,r[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}const zL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function YDe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((n,i)=>[...n,...i.type===it?i.children:[i]],[]):t.reduce((r,n)=>{const i=e[n];return i&&(r[n]=i()),r},Ir())}function y9(){return it}const XDe=qt({name:"i18n-t",props:An({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>un(e)||!isNaN(e)}},zL),setup(e,t){const{slots:r,attrs:n}=t,i=e.i18n||Cf({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(r).filter(f=>f!=="_"),o=Ir();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Ze(e.plural)?+e.plural:e.plural);const s=YDe(t,a),l=i[b2](e.keypath,s,o),u=An(Ir(),n),c=Ze(e.tag)||vr(e.tag)?e.tag:y9();return Wo(c,u,l)}}}),e4=XDe;function ZDe(e){return tn(e)&&!Ze(e[0])}function _9(e,t,r,n){const{slots:i,attrs:a}=t;return()=>{const o={part:!0};let s=Ir();e.locale&&(o.locale=e.locale),Ze(e.format)?o.key=e.format:vr(e.format)&&(Ze(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((h,d)=>r.includes(d)?An(Ir(),h,{[d]:e.format[d]}):h,Ir()));const l=n(e.value,o,s);let u=[o.key];tn(l)?u=l.map((h,d)=>{const v=i[h.type],p=v?v({[h.type]:h.value,index:d,parts:l}):[h.value];return ZDe(p)&&(p[0].key=`${h.type}-${d}`),p}):Ze(l)&&(u=[l]);const c=An(Ir(),a),f=Ze(e.tag)||vr(e.tag)?e.tag:y9();return Wo(f,c,u)}}const qDe=qt({name:"i18n-n",props:An({value:{type:Number,required:!0},format:{type:[String,Object]}},zL),setup(e,t){const r=e.i18n||Cf({useScope:e.scope,__useComponent:!0});return _9(e,t,f9,(...n)=>r[x2](...n))}}),t4=qDe,jDe=qt({name:"i18n-d",props:An({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zL),setup(e,t){const r=e.i18n||Cf({useScope:e.scope,__useComponent:!0});return _9(e,t,c9,(...n)=>r[w2](...n))}}),r4=jDe;function KDe(e,t){const r=e;if(e.mode==="composition")return r.__getInstance(t)||e.global;{const n=r.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function JDe(e){const t=o=>{const{instance:s,value:l}=o;if(!s||!s.$)throw Ui(Ai.UNEXPECTED_ERROR);const u=KDe(e,s.$),c=n4(l);return[Reflect.apply(u.t,u,[...i4(c)]),u]};return{created:(o,s)=>{const[l,u]=t(s);iS&&e.global===u&&(o.__i18nWatcher=Sr(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{iS&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:s})=>{if(o.__composer){const l=o.__composer,u=n4(s);o.textContent=Reflect.apply(l.t,l,[...i4(u)])}},getSSRProps:o=>{const[s]=t(o);return{textContent:s}}}}function n4(e){if(Ze(e))return{path:e};if(Wt(e)){if(!("path"in e))throw Ui(Ai.REQUIRED_VALUE,"path");return e}else throw Ui(Ai.INVALID_VALUE)}function i4(e){const{path:t,locale:r,args:n,choice:i,plural:a}=e,o={},s=n||{};return Ze(r)&&(o.locale=r),un(i)&&(o.plural=i),un(a)&&(o.plural=a),[t,s,o]}function QDe(e,t,...r){const n=Wt(r[0])?r[0]:{};(ur(n.globalInstall)?n.globalInstall:!0)&&([e4.name,"I18nT"].forEach(a=>e.component(a,e4)),[t4.name,"I18nN"].forEach(a=>e.component(a,t4)),[r4.name,"I18nD"].forEach(a=>e.component(a,r4))),e.directive("t",JDe(t))}const e2e=Pu("global-vue-i18n");function t2e(e={},t){const r=__VUE_I18N_LEGACY_API__&&ur(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ur(e.globalInjection)?e.globalInjection:!0,i=new Map,[a,o]=r2e(e,r),s=Pu("");function l(h){return i.get(h)||null}function u(h,d){i.set(h,d)}function c(h){i.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&r?"legacy":"composition"},async install(h,...d){if(h.__VUE_I18N_SYMBOL__=s,h.provide(h.__VUE_I18N_SYMBOL__,f),Wt(d[0])){const m=d[0];f.__composerExtend=m.__composerExtend,f.__vueI18nExtend=m.__vueI18nExtend}let v=null;!r&&n&&(v=c2e(h,f.global)),__VUE_I18N_FULL_INSTALL__&&QDe(h,f,...d),__VUE_I18N_LEGACY_API__&&r&&h.mixin(WDe(o,o.__composer,f));const p=h.unmount;h.unmount=()=>{v&&v(),f.dispose(),p()}},get global(){return o},dispose(){a.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Cf(e={}){const t=ns();if(t==null)throw Ui(Ai.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ui(Ai.NOT_INSTALLED);const r=n2e(t),n=a2e(r),i=g9(t),a=i2e(e,i);if(a==="global")return m9(n,e,i),n;if(a==="parent"){let l=o2e(r,t,e.__useComponent);return l==null&&(l=n),l}const o=r;let s=o.__getInstance(t);if(s==null){const l=An({},e);"__i18n"in i&&(l.__i18n=i.__i18n),n&&(l.__root=n),s=VL(l),o.__composerExtend&&(s[C2]=o.__composerExtend(s)),l2e(o,t,s),o.__setInstance(t,s)}return s}function r2e(e,t,r){const n=qQ(),i=__VUE_I18N_LEGACY_API__&&t?n.run(()=>T2(e)):n.run(()=>VL(e));if(i==null)throw Ui(Ai.UNEXPECTED_ERROR);return[n,i]}function n2e(e){const t=vo(e.isCE?e2e:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ui(e.isCE?Ai.NOT_INSTALLED_WITH_PROVIDE:Ai.UNEXPECTED_ERROR);return t}function i2e(e,t){return Cb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function a2e(e){return e.mode==="composition"?e.global:e.global.__composer}function o2e(e,t,r=!1){let n=null;const i=t.root;let a=s2e(t,r);for(;a!=null;){const o=e;if(e.mode==="composition")n=o.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const s=o.__getInstance(a);s!=null&&(n=s.__composer,r&&n&&!n[p9]&&(n=null))}if(n!=null||i===a)break;a=a.parent}return n}function s2e(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function l2e(e,t,r){ol(()=>{},t),Zg(()=>{const n=r;e.__deleteInstance(t);const i=n[C2];i&&(i(),delete n[C2])},t)}const u2e=["locale","fallbackLocale","availableLocales"],a4=["t","rt","d","n","tm","te"];function c2e(e,t){const r=Object.create(null);return u2e.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a)throw Ui(Ai.UNEXPECTED_ERROR);const o=vt(a.value)?{get(){return a.value.value},set(s){a.value.value=s}}:{get(){return a.get&&a.get()}};Object.defineProperty(r,i,o)}),e.config.globalProperties.$i18n=r,a4.forEach(i=>{const a=Object.getOwnPropertyDescriptor(t,i);if(!a||!a.value)throw Ui(Ai.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,a)}),()=>{delete e.config.globalProperties.$i18n,a4.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}GDe();_De(eDe);SDe(gDe);bDe(i9);if(__INTLIFY_PROD_DEVTOOLS__){const e=Zc();e.__INTLIFY__=!0,tDe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const f2e=qt({__name:"SpeedCharts",setup(e){const t=Ye(),r=Ye(),n=Ye(),i=Cf().t,a=Ye();return ol(()=>{const o=at(()=>{var d,v,p;const c=(d=getComputedStyle(t.value))==null?void 0:d.color,f=(v=getComputedStyle(r.value))==null?void 0:v.color,h=(p=getComputedStyle(n.value))==null?void 0:p.color;return{legend:{bottom:0,data:[i("download"),i("upload")],textStyle:{color:c}},grid:{left:60,top:15,right:10,bottom:25},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:m=>Math.max(m.max,102400),axisLine:{show:!1},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:m=>`${Wr(m,{maximumFractionDigits:1})}/s`,color:c},splitLine:{show:!1}},series:[{name:i("upload"),data:tp.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:h,smooth:!0},{name:i("download"),data:ep.value,symbol:"none",emphasis:{disabled:!0},type:"line",color:f,smooth:!0}]}}),s=Khe(a.value);s.setOption(o.value),Sr(o,()=>{s.setOption(o.value)});const{width:l}=Mre(a),u=vf.debounce(()=>{s.resize()},100);Sr(()=>l.value,()=>{u()})}),(o,s)=>(oe(),ve(it,null,[X("div",{ref_key:"chart",ref:a,class:"card h-28 w-full bg-base-100 p-0 shadow-lg"},null,512),X("span",{class:"hidden text-base-content",ref_key:"text",ref:t},null,512),X("span",{class:"hidden text-primary",ref_key:"primaryText",ref:r},null,512),X("span",{class:"hidden text-info",ref_key:"secondaryText",ref:n},null,512)],64))}}),h2e={setup:"Setup",overview:"Overview",proxies:"Proxies",rules:"Rules",connections:"Connections",logs:"Logs",protocol:"Protocol",host:"Host",port:"Port",password:"Password",submit:"Submit",cancel:"Cancel",download:"Download",upload:"Upload",downloadSpeed:"Download Speed",uploadSpeed:"Upload Speed",memoryUsage:"Memory Usage",version:"Version",quickFilter:"Quick Filter",noContent:"No Content",flushFakeIP:"Flush Fake IP",compactCard:"Compact Card",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumnProxyGroup:"Two Column Proxy Group",type:"Type",process:"Process",sniffHost:"Sniff Host",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",dashboard:"Dashboard",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Upgrade All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"By Configs",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc",language:"Language",automaticDisconnection:"Automatic Disconnection",twoColumnNodeForMobile:"Two Column Proxy Node",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",hideUnavailable:"Hide Unavailable",protocolTips:"You are trying to connect a http backend but the zashboard is served by https. This may cause connection error. Please allow the insecure content in your browser settings. The settings is on the left of the browser address bar.",global:"Global",direct:"Direct",quickFilterTip:"Quick filtering allows one-click exclusion of connections matching proxy chains, host, or destination IPs using regular expressions.",lowLatencyDesc:"Yellow threshold",mediumLatencyDesc:"Red threshold",[So.EN_US]:"English",[So.ZH_CN]:"中文"},d2e={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",compactCard:"紧凑卡片",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",sniffHost:"嗅探主机",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",dashboard:"面板",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",twoColumnNodeForMobile:"双列显示节点",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",hideUnavailable:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",[So.EN_US]:"English",[So.ZH_CN]:"中文"},Db=t2e({locale:sa.value,messages:{[So.EN_US]:h2e,[So.ZH_CN]:d2e}}),v2e=qt({props:{conn:Object},name:"ConnectionCard",setup(e,{emit:t}){return()=>{const r=ze("span",{class:"flex-1"},null),n=ze("span",{class:"w-80 grow break-all text-sm tracking-tight text-primary/80 sm:text-base"},[e.conn.metadata.host||e.conn.metadata.destinationIP,ze("span",{class:"hidden sm:inline"},[Xt(":"),e.conn.metadata.destinationPort])]),i=ze("div",{class:"badge flex bg-base-200 px-1 text-sm text-base-content"},[ze(qie,{class:"h-4 w-3"},null),ze("div",{class:"hidden w-16 text-right sm:inline"},[Wr(e.conn.download),Xt(" |")," "]),ze("div",{class:"w-20 text-right"},[Wr(e.conn.downloadSpeed),Xt("/s")])]),a=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content 2xl:flex"},[ze(bk,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Wr(e.conn.upload),Xt(" | ")]),ze("div",{class:"w-20 text-right"},[Wr(e.conn.uploadSpeed),Xt("/s")])]),o=ze("div",{class:"badge hidden bg-base-200 px-1 text-sm text-base-content lg:flex"},[ze(bk,{class:"h-4 w-3"},null),ze("div",{class:"w-16 text-right"},[Wr(e.conn.upload),Xt(" | ")]),ze("div",{class:"w-20 text-right"},[Wr(e.conn.uploadSpeed),Xt("/s")])]),s=ze("div",{class:"flex w-12 gap-1"},[ze("button",{class:"btn btn-circle btn-xs",onClick:()=>t("info",e.conn)},[ze(t$,{class:"h-4 w-4"},null)]),ze("button",{onClick:()=>ES(e.conn.id)},[ze(SM,{class:"h-4 w-4"},null)])]),l=ze("span",{class:"inline w-56 truncate text-sm"},[[...e.conn.chains].reverse().join("->")]),u=ze("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),c=ze("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[XG(e.conn)]),f=ze("span",{class:Tr("inline whitespace-nowrap text-right text-sm tracking-tight",sa.value===So.ZH_CN?"w-20":"w-32")},[OS(e.conn.start)]),h=ze("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,Xt(" | "),e.conn.metadata.network]),d=ze("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,Xt(" | "),e.conn.metadata.network]),v=e.conn.metadata.destinationIP||"remote-resolve",p=yM(e.conn.metadata.sourceIP),m=ze("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[ze("span",null,[p,Xt(":"),e.conn.metadata.sourcePort]),ze("span",null,[Xt("->")]),ze("span",null,[v,Xt(":"),e.conn.metadata.destinationPort])]),y=ze("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[ze("span",null,[p]),ze("span",null,[Xt("->")]),ze("span",null,[v])]);return WG.value&&s_.value?ze("div",{class:"card w-full flex-row items-center justify-between gap-1 rounded-xl bg-base-100 px-2 py-1 shadow-lg"},[n,l,y,d,i,a,f,s]):ze("div",{class:"card w-full gap-[1px] rounded-xl bg-base-100 px-2 py-[1px] shadow-lg"},[ze("div",{class:"flex flex-row items-center gap-1 px-1"},[n,r,c,m,i,o]),ze("div",{class:"flex flex-row items-center gap-1 px-1"},[l,u,r,h,f,s])])}}});/** - * table-core - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function au(e,t){return typeof e=="function"?e(t):e}function da(e,t){return r=>{t.setState(n=>({...n,[e]:au(r,n[e])}))}}function cf(e){return e instanceof Function}function p2e(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function S9(e,t){const r=[],n=i=>{i.forEach(a=>{r.push(a);const o=t(a);o!=null&&o.length&&n(o)})};return n(e),r}function yt(e,t,r){let n=[],i;return a=>{let o;r.key&&r.debug&&(o=Date.now());const s=e(a);if(!(s.length!==n.length||s.some((c,f)=>n[f]!==c)))return i;n=s;let u;if(r.key&&r.debug&&(u=Date.now()),i=t(...s),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const c=Math.round((Date.now()-o)*100)/100,f=Math.round((Date.now()-u)*100)/100,h=f/16,d=(v,p)=>{for(v=String(v);v.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:n}}function g2e(e,t,r,n){const i=()=>{var o;return(o=a.getValue())!=null?o:e.options.renderFallbackValue},a={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:yt(()=>[e,r,t,a],(o,s,l,u)=>({table:o,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),_t(e.options,"debugCells"))};return e._features.forEach(o=>{o.createCell==null||o.createCell(a,r,t,e)},{}),a}function m2e(e,t,r,n){var i,a;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(a=s.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let d=h;for(const p of l.split(".")){var v;d=(v=d)==null?void 0:v[p]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:yt(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},_t(e.options,"debugColumns")),getLeafColumns:yt(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let v=f.columns.flatMap(p=>p.getLeafColumns());return h(v)}return[f]},_t(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Jn="debugHeaders";function o4(e,t,r){var n;let a={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:e,header:a,column:t})};return e._features.forEach(o=>{o.createHeader==null||o.createHeader(a,e)}),a}const y2e={createTable:e=>{e.getHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var a,o;const s=(a=n==null?void 0:n.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?a:[],l=(o=i==null?void 0:i.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?o:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return B0(t,[...s,...u,...l],e)},_t(e.options,Jn)),e.getCenterHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(a=>!(n!=null&&n.includes(a.id))&&!(i!=null&&i.includes(a.id))),B0(t,r,e,"center")),_t(e.options,Jn)),e.getLeftHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return B0(t,a,e,"left")},_t(e.options,Jn)),e.getRightHeaderGroups=yt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const a=(i=n==null?void 0:n.map(o=>r.find(s=>s.id===o)).filter(Boolean))!=null?i:[];return B0(t,a,e,"right")},_t(e.options,Jn)),e.getFooterGroups=yt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getLeftFooterGroups=yt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getCenterFooterGroups=yt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getRightFooterGroups=yt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),_t(e.options,Jn)),e.getFlatHeaders=yt(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getLeftFlatHeaders=yt(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getCenterFlatHeaders=yt(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getRightFlatHeaders=yt(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),_t(e.options,Jn)),e.getCenterLeafHeaders=yt(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),_t(e.options,Jn)),e.getLeftLeafHeaders=yt(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),_t(e.options,Jn)),e.getRightLeafHeaders=yt(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),_t(e.options,Jn)),e.getLeafHeaders=yt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,a,o,s,l,u;return[...(i=(a=t[0])==null?void 0:a.headers)!=null?i:[],...(o=(s=r[0])==null?void 0:s.headers)!=null?o:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},_t(e.options,Jn))}};function B0(e,t,r,n){var i,a;let o=0;const s=function(h,d){d===void 0&&(d=1),o=Math.max(o,d),h.filter(v=>v.getIsVisible()).forEach(v=>{var p;(p=v.columns)!=null&&p.length&&s(v.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const v={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},p=[];h.forEach(m=>{const y=[...p].reverse()[0],S=m.column.depth===v.depth;let b,w=!1;if(S&&m.column.parent?b=m.column.parent:(b=m.column,w=!0),y&&(y==null?void 0:y.column)===b)y.subHeaders.push(m);else{const C=o4(r,b,{id:[n,d,b.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${p.filter(x=>x.column===b).length}`:void 0,depth:d,index:p.length});C.subHeaders.push(m),p.push(C)}v.headers.push(m),m.headerGroup=v}),l.push(v),d>0&&u(p,d-1)},c=t.map((h,d)=>o4(r,h,{depth:o,index:d}));u(c,o-1),l.reverse();const f=h=>h.filter(v=>v.column.getIsVisible()).map(v=>{let p=0,m=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],f(v.subHeaders).forEach(b=>{let{colSpan:w,rowSpan:C}=b;p+=w,y.push(C)})):p=1;const S=Math.min(...y);return m=m+S,v.colSpan=p,v.rowSpan=m,{colSpan:p,rowSpan:m}});return f((i=(a=l[0])==null?void 0:a.headers)!=null?i:[]),l}const b9=(e,t,r,n,i,a,o)=>{let s={id:t,index:n,original:r,depth:i,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>S9(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:yt(()=>[e.getAllLeafColumns()],l=>l.map(u=>g2e(e,s,u,u.id)),_t(e.options,"debugRows")),_getAllCellsByColumnId:yt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),_t(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},w9=(e,t,r)=>{var n,i;const a=r==null||(n=r.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(a))};w9.autoRemove=e=>yo(e);const x9=(e,t,r)=>{var n;return!!(!((n=e.getValue(t))==null||(n=n.toString())==null)&&n.includes(r))};x9.autoRemove=e=>yo(e);const C9=(e,t,r)=>{var n;return((n=e.getValue(t))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(r==null?void 0:r.toLowerCase())};C9.autoRemove=e=>yo(e);const T9=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};T9.autoRemove=e=>yo(e)||!(e!=null&&e.length);const A9=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});A9.autoRemove=e=>yo(e)||!(e!=null&&e.length);const D9=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});D9.autoRemove=e=>yo(e)||!(e!=null&&e.length);const M9=(e,t,r)=>e.getValue(t)===r;M9.autoRemove=e=>yo(e);const I9=(e,t,r)=>e.getValue(t)==r;I9.autoRemove=e=>yo(e);const GL=(e,t,r)=>{let[n,i]=r;const a=e.getValue(t);return a>=n&&a<=i};GL.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,a=t===null||Number.isNaN(n)?-1/0:n,o=r===null||Number.isNaN(i)?1/0:i;if(a>o){const s=a;a=o,o=s}return[a,o]};GL.autoRemove=e=>yo(e)||yo(e[0])&&yo(e[1]);const Rs={includesString:w9,includesStringSensitive:x9,equalsString:C9,arrIncludes:T9,arrIncludesAll:A9,arrIncludesSome:D9,equals:M9,weakEquals:I9,inNumberRange:GL};function yo(e){return e==null||e===""}const S2e={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:da("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Rs.includesString:typeof n=="number"?Rs.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Rs.equals:Array.isArray(n)?Rs.arrIncludes:Rs.weakEquals},e.getFilterFn=()=>{var r,n;return cf(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Rs[e.columnDef.filterFn]},e.getCanFilter=()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var r;return(r=t.getState().columnFilters)==null||(r=r.find(n=>n.id===e.id))==null?void 0:r.value},e.getFilterIndex=()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.setFilterValue=r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),a=n==null?void 0:n.find(c=>c.id===e.id),o=au(r,a?a.value:void 0);if(s4(i,o,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:o};if(a){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const r=e.getAllLeafColumns(),n=i=>{var a;return(a=au(t,i))==null?void 0:a.filter(o=>{const s=r.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(s4(l,o.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function s4(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const b2e=(e,t,r)=>r.reduce((n,i)=>{const a=i.getValue(e);return n+(typeof a=="number"?a:0)},0),w2e=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},x2e=(e,t,r)=>{let n;return r.forEach(i=>{const a=i.getValue(e);a!=null&&(n=a)&&(n=a)}),n},C2e=(e,t,r)=>{let n,i;return r.forEach(a=>{const o=a.getValue(e);o!=null&&(n===void 0?o>=o&&(n=i=o):(n>o&&(n=o),i{let r=0,n=0;if(t.forEach(i=>{let a=i.getValue(e);a!=null&&(a=+a)>=a&&(++r,n+=a)}),r)return n/r},A2e=(e,t)=>{if(!t.length)return;const r=t.map(a=>a.getValue(e));if(!p2e(r))return;if(r.length===1)return r[0];const n=Math.floor(r.length/2),i=r.sort((a,o)=>a-o);return r.length%2!==0?i[n]:(i[n-1]+i[n])/2},D2e=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),M2e=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,I2e=(e,t)=>t.length,OT={sum:b2e,min:w2e,max:x2e,extent:C2e,mean:T2e,median:A2e,unique:D2e,uniqueCount:M2e,count:I2e},L2e={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:da("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},e.getCanGroup=()=>{var r,n;return((r=e.columnDef.enableGrouping)!=null?r:!0)&&((n=t.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},e.getGroupedIndex=()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return OT.sum;if(Object.prototype.toString.call(n)==="[object Date]")return OT.extent},e.getAggregationFn=()=>{var r,n;if(!e)throw new Error;return cf(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:OT[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=r=>{if(e._groupingValuesCache.hasOwnProperty(r))return e._groupingValuesCache[r];const n=t.getColumn(r);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[r]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[r]):e.getValue(r)},e._groupingValuesCache={}},createCell:(e,t,r,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===r.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}}};function P2e(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(a=>!t.includes(a.id));return r==="remove"?n:[...t.map(a=>e.find(o=>o.id===a)).filter(Boolean),...n]}const E2e={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:da("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=yt(r=>[Xp(t,r)],r=>r.findIndex(n=>n.id===e.id),_t(t.options,"debugColumns")),e.getIsFirstColumn=r=>{var n;return((n=Xp(t,r)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=r=>{var n;const i=Xp(t,r);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},e._getOrderColumnsFn=yt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let a=[];if(!(t!=null&&t.length))a=i;else{const o=[...t],s=[...i];for(;s.length&&o.length;){const l=o.shift(),u=s.findIndex(c=>c.id===l);u>-1&&a.push(s.splice(u,1)[0])}a=[...a,...s]}return P2e(a,r,n)},_t(e.options,"debugTable"))}},NT=()=>({left:[],right:[]}),R2e={getInitialState:e=>({columnPinning:NT(),...e}),getDefaultOptions:e=>({onColumnPinningChange:da("columnPinning",e)}),createColumn:(e,t)=>{e.pin=r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var a,o;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((a=i==null?void 0:i.left)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f))),right:((o=i==null?void 0:i.right)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,a,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((a=(o=t.options.enableColumnPinning)!=null?o:t.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"left":o?"right":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();return i?(r=(n=t.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?r:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=yt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const a=[...n??[],...i??[]];return r.filter(o=>!a.includes(o.column.id))},_t(t.options,"debugRows")),e.getLeftVisibleCells=yt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),_t(t.options,"debugRows")),e.getRightVisibleCells=yt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(a=>r.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),_t(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var r,n;return e.setColumnPinning(t?NT():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:NT())},e.getIsSomeColumnsPinned=t=>{var r;const n=e.getState().columnPinning;if(!t){var i,a;return!!((i=n.left)!=null&&i.length||(a=n.right)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e.getLeftLeafColumns=yt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),_t(e.options,"debugColumns")),e.getRightLeafColumns=yt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),_t(e.options,"debugColumns")),e.getCenterLeafColumns=yt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(a=>!i.includes(a.id))},_t(e.options,"debugColumns"))}},V0={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},FT=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),k2e={getDefaultColumnDef:()=>V0,getInitialState:e=>({columnSizing:{},columnSizingInfo:FT(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:da("columnSizing",e),onColumnSizingInfoChange:da("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var r,n,i;const a=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:V0.minSize,(n=a??e.columnDef.size)!=null?n:V0.size),(i=e.columnDef.maxSize)!=null?i:V0.maxSize)},e.getStart=yt(r=>[r,Xp(t,r),t.getState().columnSizing],(r,n)=>n.slice(0,e.getIndex(r)).reduce((i,a)=>i+a.getSize(),0),_t(t.options,"debugColumns")),e.getAfter=yt(r=>[r,Xp(t,r),t.getState().columnSizing],(r,n)=>n.slice(e.getIndex(r)+1).reduce((i,a)=>i+a.getSize(),0),_t(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},e.getCanResize=()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var a;r+=(a=i.column.getSize())!=null?a:0}};return n(e),r},e.getStart=()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},e.getResizeHandler=r=>{const n=t.getColumn(e.column.id),i=n==null?void 0:n.getCanResize();return a=>{if(!n||!i||(a.persist==null||a.persist(),BT(a)&&a.touches&&a.touches.length>1))return;const o=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[n.id,n.getSize()]],l=BT(a)?Math.round(a.touches[0].clientX):a.clientX,u={},c=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(b=>{var w,C;const x=t.options.columnResizeDirection==="rtl"?-1:1,A=(S-((w=b==null?void 0:b.startOffset)!=null?w:0))*x,D=Math.max(A/((C=b==null?void 0:b.startSize)!=null?C:0),-.999999);return b.columnSizingStart.forEach(M=>{let[I,P]=M;u[I]=Math.round(Math.max(P+P*D,0)*100)/100}),{...b,deltaOffset:A,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(b=>({...b,...u})))},f=y=>c("move",y),h=y=>{c("end",y),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=r||typeof document<"u"?document:null,v={moveHandler:y=>f(y.clientX),upHandler:y=>{d==null||d.removeEventListener("mousemove",v.moveHandler),d==null||d.removeEventListener("mouseup",v.upHandler),h(y.clientX)}},p={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var S;d==null||d.removeEventListener("touchmove",p.moveHandler),d==null||d.removeEventListener("touchend",p.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),h((S=y.touches[0])==null?void 0:S.clientX)}},m=O2e()?{passive:!1}:!1;BT(a)?(d==null||d.addEventListener("touchmove",p.moveHandler,m),d==null||d.addEventListener("touchend",p.upHandler,m)):(d==null||d.addEventListener("mousemove",v.moveHandler,m),d==null||d.addEventListener("mouseup",v.upHandler,m)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},e.resetHeaderSizeInfo=t=>{var r;e.setColumnSizingInfo(t?FT():(r=e.initialState.columnSizingInfo)!=null?r:FT())},e.getTotalSize=()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}}};let z0=null;function O2e(){if(typeof z0=="boolean")return z0;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return z0=e,z0}function BT(e){return e.type==="touchstart"}const N2e={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:da("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},e.getIsVisible=()=>{var r,n;const i=e.columns;return(r=i.length?i.some(a=>a.getIsVisible()):(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},e.getCanHide=()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=yt(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),_t(t.options,"debugRows")),e.getVisibleCells=yt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],_t(t.options,"debugRows"))},createTable:e=>{const t=(r,n)=>yt(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),_t(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),e.resetColumnVisibility=r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,a)=>({...i,[a.id]:r||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}};function Xp(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const F2e={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},B2e={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:da("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r;const n=(r=e.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[t.id])==null?void 0:r.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var r,n,i,a;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((a=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Rs.includesString,e.getGlobalFilterFn=()=>{var t,r;const{globalFilterFn:n}=e.options;return cf(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Rs[n]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},V2e={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:da("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;e._autoResetExpanded=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,a;e.setExpanded(n?{}:(i=(a=e.initialState)==null?void 0:a.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const o=a.split(".");n=Math.max(n,o.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=r=>{t.setExpanded(n=>{var i;const a=n===!0?!0:!!(n!=null&&n[e.id]);let o={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,r=(i=r)!=null?i:!a,!a&&r)return{...o,[e.id]:!0};if(a&&!r){const{[e.id]:s,...l}=o;return l}return n})},e.getIsExpanded=()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let r=!0,n=e;for(;r&&n.parentId;)n=t.getRow(n.parentId,!0),r=n.getIsExpanded();return r},e.getToggleExpandedHandler=()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}}},A2=0,D2=10,VT=()=>({pageIndex:A2,pageSize:D2}),z2e={getInitialState:e=>({...e,pagination:{...VT(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:da("pagination",e)}),createTable:e=>{let t=!1,r=!1;e._autoResetPageIndex=()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},e.setPagination=n=>{const i=a=>au(n,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?VT():(i=e.initialState.pagination)!=null?i:VT())},e.setPageIndex=n=>{e.setPagination(i=>{let a=au(n,i.pageIndex);const o=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...i,pageIndex:a}})},e.resetPageIndex=n=>{var i,a;e.setPageIndex(n?A2:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?i:A2)},e.resetPageSize=n=>{var i,a;e.setPageSize(n?D2:(i=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?i:D2)},e.setPageSize=n=>{e.setPagination(i=>{const a=Math.max(1,au(n,i.pageSize)),o=i.pageSize*i.pageIndex,s=Math.floor(o/a);return{...i,pageIndex:s,pageSize:a}})},e.setPageCount=n=>e.setPagination(i=>{var a;let o=au(n,(a=e.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...i,pageCount:o}}),e.getPageOptions=yt(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((a,o)=>o)),i},_t(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:ne.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},zT=()=>({top:[],bottom:[]}),G2e={getInitialState:e=>({rowPinning:zT(),...e}),getDefaultOptions:e=>({onRowPinningChange:da("rowPinning",e)}),createRow:(e,t)=>{e.pin=(r,n,i)=>{const a=n?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],o=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...o,e.id,...a]);t.setRowPinning(l=>{var u,c;if(r==="bottom"){var f,h;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((h=l==null?void 0:l.bottom)!=null?h:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(r==="top"){var d,v;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p)))}})},e.getCanPin=()=>{var r;const{enableRowPinning:n,enablePinning:i}=t.options;return typeof n=="function"?n(e):(r=n??i)!=null?r:!0},e.getIsPinned=()=>{const r=[e.id],{top:n,bottom:i}=t.getState().rowPinning,a=r.some(s=>n==null?void 0:n.includes(s)),o=r.some(s=>i==null?void 0:i.includes(s));return a?"top":o?"bottom":!1},e.getPinnedIndex=()=>{var r,n;const i=e.getIsPinned();if(!i)return-1;const a=(r=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:r.map(o=>{let{id:s}=o;return s});return(n=a==null?void 0:a.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var r,n;return e.setRowPinning(t?zT():(r=(n=e.initialState)==null?void 0:n.rowPinning)!=null?r:zT())},e.getIsSomeRowsPinned=t=>{var r;const n=e.getState().rowPinning;if(!t){var i,a;return!!((i=n.top)!=null&&i.length||(a=n.bottom)!=null&&a.length)}return!!((r=n[t])!=null&&r.length)},e._getPinnedRows=(t,r,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(r??[]).map(o=>{const s=e.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(o=>t.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},e.getTopRows=yt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,r)=>e._getPinnedRows(t,r,"top"),_t(e.options,"debugRows")),e.getBottomRows=yt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,r)=>e._getPinnedRows(t,r,"bottom"),_t(e.options,"debugRows")),e.getCenterRows=yt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,r,n)=>{const i=new Set([...r??[],...n??[]]);return t.filter(a=>!i.has(a.id))},_t(e.options,"debugRows"))}},$2e={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:da("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):i.forEach(a=>{delete n[a.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(a=>{M2(i,a.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=yt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?GT(e,r):{rows:[],flatRows:[],rowsById:{}},_t(e.options,"debugTable")),e.getFilteredSelectedRowModel=yt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?GT(e,r):{rows:[],flatRows:[],rowsById:{}},_t(e.options,"debugTable")),e.getGroupedSelectedRowModel=yt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?GT(e,r):{rows:[],flatRows:[],rowsById:{}},_t(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>!r[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(r,n)=>{const i=e.getIsSelected();t.setRowSelection(a=>{var o;if(r=typeof r<"u"?r:!i,e.getCanSelect()&&i===r)return a;const s={...a};return M2(s,e.id,r,(o=n==null?void 0:n.selectChildren)!=null?o:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:r}=t.getState();return $L(e,r)},e.getIsSomeSelected=()=>{const{rowSelection:r}=t.getState();return I2(e,r)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=t.getState();return I2(e,r)==="all"},e.getCanSelect=()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},e.getCanSelectSubRows=()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},e.getCanMultiSelect=()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},e.getToggleSelectedHandler=()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},M2=(e,t,r,n,i)=>{var a;const o=i.getRow(t,!0);r?(o.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),o.getCanSelect()&&(e[t]=!0)):delete e[t],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>M2(e,s.id,r,n,i))};function GT(e,t){const r=e.getState().rowSelection,n=[],i={},a=function(o,s){return o.map(l=>{var u;const c=$L(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:a(l.subRows)}),c)return l}).filter(Boolean)};return{rows:a(t.rows),flatRows:n,rowsById:i}}function $L(e,t){var r;return(r=t[e.id])!=null?r:!1}function I2(e,t,r){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,a=!1;return e.subRows.forEach(o=>{if(!(a&&!i)&&(o.getCanSelect()&&($L(o,t)?a=!0:i=!1),o.subRows&&o.subRows.length)){const s=I2(o,t);s==="all"?a=!0:(s==="some"&&(a=!0),i=!1)}}),i?"all":a?"some":!1}const L2=/([0-9]+)/gm,H2e=(e,t,r)=>L9(Cu(e.getValue(r)).toLowerCase(),Cu(t.getValue(r)).toLowerCase()),U2e=(e,t,r)=>L9(Cu(e.getValue(r)),Cu(t.getValue(r))),W2e=(e,t,r)=>HL(Cu(e.getValue(r)).toLowerCase(),Cu(t.getValue(r)).toLowerCase()),Y2e=(e,t,r)=>HL(Cu(e.getValue(r)),Cu(t.getValue(r))),X2e=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:nHL(e.getValue(r),t.getValue(r));function HL(e,t){return e===t?0:e>t?1:-1}function Cu(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function L9(e,t){const r=e.split(L2).filter(Boolean),n=t.split(L2).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),a=n.shift(),o=parseInt(i,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(i>a)return 1;if(a>i)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return r.length-n.length}const Hv={alphanumeric:H2e,alphanumericCaseSensitive:U2e,text:W2e,textCaseSensitive:Y2e,datetime:X2e,basic:Z2e},q2e={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:da("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const a=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return Hv.datetime;if(typeof a=="string"&&(n=!0,a.split(L2).length>1))return Hv.alphanumeric}return n?Hv.text:Hv.basic},e.getAutoSortDir=()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var r,n;if(!e)throw new Error;return cf(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Hv[e.columnDef.sortingFn]},e.toggleSorting=(r,n)=>{const i=e.getNextSortingOrder(),a=typeof r<"u"&&r!==null;t.setSorting(o=>{const s=o==null?void 0:o.find(d=>d.id===e.id),l=o==null?void 0:o.findIndex(d=>d.id===e.id);let u=[],c,f=a?r:i==="desc";if(o!=null&&o.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":o!=null&&o.length&&l!==o.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(a||i||(c="remove")),c==="add"){var h;u=[...o,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=o.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=o.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=r=>{var n,i;const a=e.getFirstSortDir(),o=e.getIsSorted();return o?o!==a&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:o==="desc"?"asc":"desc":a},e.getCanSort=()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},e.getIsSorted=()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},e.clearSorting=()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},j2e=[y2e,N2e,E2e,R2e,_2e,S2e,F2e,B2e,q2e,L2e,V2e,z2e,G2e,$2e,k2e];function K2e(e){var t,r;const n=[...j2e,...(t=e._features)!=null?t:[]];let i={_features:n};const a=i._features.reduce((h,d)=>Object.assign(h,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),o=h=>i.options.mergeOptions?i.options.mergeOptions(a,h):{...a,...h};let l={...{},...(r=e.initialState)!=null?r:{}};i._features.forEach(h=>{var d;l=(d=h.getInitialState==null?void 0:h.getInitialState(l))!=null?d:l});const u=[];let c=!1;const f={_features:n,options:{...a,...e},initialState:l,_queue:h=>{u.push(h),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:h=>{const d=au(h,i.options);i.options=o(d)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,d,v)=>{var p;return(p=i.options.getRowId==null?void 0:i.options.getRowId(h,d,v))!=null?p:`${v?[v.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,d)=>{let v=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!v&&(v=i.getCoreRowModel().rowsById[h],!v))throw new Error;return v},_getDefaultColumnDef:yt(()=>[i.options.defaultColumn],h=>{var d;return h=(d=h)!=null?d:{},{header:v=>{const p=v.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:v=>{var p,m;return(p=(m=v.renderValue())==null||m.toString==null?void 0:m.toString())!=null?p:null},...i._features.reduce((v,p)=>Object.assign(v,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...h}},_t(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:yt(()=>[i._getColumnDefs()],h=>{const d=function(v,p,m){return m===void 0&&(m=0),v.map(y=>{const S=m2e(i,y,m,p),b=y;return S.columns=b.columns?d(b.columns,S,m+1):[],S})};return d(h)},_t(e,"debugColumns")),getAllFlatColumns:yt(()=>[i.getAllColumns()],h=>h.flatMap(d=>d.getFlatColumns()),_t(e,"debugColumns")),_getAllFlatColumnsById:yt(()=>[i.getAllFlatColumns()],h=>h.reduce((d,v)=>(d[v.id]=v,d),{}),_t(e,"debugColumns")),getAllLeafColumns:yt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,d)=>{let v=h.flatMap(p=>p.getLeafColumns());return d(v)},_t(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;hyt(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,a,o){a===void 0&&(a=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function Q2e(){return e=>yt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,r,n)=>!r.rows.length||t!==!0&&!Object.keys(t??{}).length||!n?r:eMe(r),_t(e.options,"debugTable"))}function eMe(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function tMe(){return e=>yt(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,r)=>{if(!r.rows.length||!t.length)return r.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),r;const n=t.filter(l=>e.getColumn(l)),i=[],a={},o=function(l,u,c){if(u===void 0&&(u=0),u>=n.length)return l.map(v=>(v.depth=u,i.push(v),a[v.id]=v,v.subRows&&(v.subRows=o(v.subRows,u+1,v.id)),v));const f=n[u],h=rMe(l,f);return Array.from(h.entries()).map((v,p)=>{let[m,y]=v,S=`${f}:${m}`;S=c?`${c}>${S}`:S;const b=o(y,u+1,S);b.forEach(x=>{x.parentId=S});const w=u?S9(y,x=>x.subRows):y,C=b9(e,S,w[0].original,p,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:m,subRows:b,leafRows:w,getValue:x=>{if(n.includes(x)){if(C._valuesCache.hasOwnProperty(x))return C._valuesCache[x];if(y[0]){var A;C._valuesCache[x]=(A=y[0].getValue(x))!=null?A:void 0}return C._valuesCache[x]}if(C._groupingValuesCache.hasOwnProperty(x))return C._groupingValuesCache[x];const D=e.getColumn(x),M=D==null?void 0:D.getAggregationFn();if(M)return C._groupingValuesCache[x]=M(x,w,y),C._groupingValuesCache[x]}}),b.forEach(x=>{i.push(x),a[x.id]=x}),C})},s=o(r.rows,0);return s.forEach(l=>{i.push(l),a[l.id]=l}),{rows:s,flatRows:i,rowsById:a}},_t(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function rMe(e,t){const r=new Map;return e.reduce((n,i)=>{const a=`${i.getGroupingValue(t)}`,o=n.get(a);return o?o.push(i):n.set(a,[i]),n},r)}function nMe(){return e=>yt(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],a=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),o={};a.forEach(l=>{const u=e.getColumn(l.id);u&&(o[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let d=0;d{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},_t(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/** - * vue-table - * - * Copyright (c) TanStack - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function G0(){return!0}const iMe=Symbol("merge-proxy"),aMe={get(e,t,r){return t===iMe?r:e.get(t)},has(e,t){return e.has(t)},set:G0,deleteProperty:G0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:G0,deleteProperty:G0}},ownKeys(e){return e.keys()}};function $T(e){return"value"in e?e.value:e}function vp(){for(var e=arguments.length,t=new Array(e),r=0;r=0;i--){const a=$T(t[i])[n];if(a!==void 0)return a}},has(n){for(let i=t.length-1;i>=0;i--)if(n in $T(t[i]))return!0;return!1},keys(){const n=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?Wo(e.render,e.props):e.render});function l4(e){return vp(e,{data:q(e.data)})}function oMe(e){const t=vt(e.data),r=vp({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(a,o){return t?{...a,...o}:vp(a,o)}},t?l4(e):e),n=K2e(r);if(t){const a=bS(e.data);Sr(a,()=>{n.setState(o=>({...o,data:a.value}))},{immediate:!0})}const i=Ye(n.initialState);return oM(()=>{n.setOptions(a=>{var o;const s=new Proxy({},{get:(l,u)=>i.value[u]});return vp(a,t?l4(e):e,{state:vp(s,(o=e.state)!=null?o:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),n}const sMe={class:"table table-zebra table-xs overflow-hidden rounded-lg bg-base-100 shadow-lg"},lMe={class:"bg-base-100"},uMe=["colSpan","onClick"],cMe={class:"flex items-center gap-1"},fMe=["onClick"],hMe=["onClick"],dMe={key:0},vMe=qt({__name:"ConnectionTable",emits:["info"],setup(e,{emit:t}){const r=t,{t:n}=Cf(),i=[{header:()=>n("details"),enableSorting:!1,id:or.Details,cell:({row:u})=>Wo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;r("info",c)}},[Wo(t$,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:or.Close,cell:({row:u})=>Wo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const c=u.original;ES(c.id)}},[Wo(SM,{class:"h-4 w-4"})])},{header:()=>n("type"),id:or.Type,accessorFn:u=>`${u.metadata.type} | ${u.metadata.network}`},{header:()=>n("process"),id:or.Process,accessorFn:u=>XG(u)},{header:()=>n("host"),id:or.Host,accessorFn:u=>`${u.metadata.host?u.metadata.host:u.metadata.destinationIP}:${u.metadata.destinationPort}`},{header:()=>n("rule"),id:or.Rule,accessorFn:u=>u.rulePayload?`${u.rule} -> ${u.rulePayload}`:u.rule},{header:()=>n("chains"),id:or.Chains,accessorFn:u=>u.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:or.ConnectTime,accessorFn:u=>OS(u.start),sortingFn:(u,c)=>hu(u.original.start).valueOf()-hu(c.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:or.DlSpeed,accessorFn:u=>`${Wr(u.downloadSpeed)}/s`,sortingFn:(u,c)=>u.original.downloadSpeed-c.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:or.UlSpeed,accessorFn:u=>`${Wr(u.uploadSpeed)}/s`,sortingFn:(u,c)=>u.original.uploadSpeed-c.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:or.Download,accessorFn:u=>Wr(u.download),sortingFn:(u,c)=>u.original.download-c.original.download},{header:()=>n("ul"),enableGrouping:!1,id:or.Upload,accessorFn:u=>Wr(u.upload),sortingFn:(u,c)=>u.original.upload-c.original.upload},{header:()=>n("sourceIP"),id:or.SourceIP,accessorFn:u=>yM(u.metadata.sourceIP)},{header:()=>n("sourcePort"),id:or.SourcePort,accessorFn:u=>u.metadata.sourcePort},{header:()=>n("destination"),id:or.Destination,accessorFn:u=>u.metadata.destinationIP||u.metadata.host}],a=Ye([]),o=Ye({}),s=Or("config/table-sorting",[]),l=oMe({get data(){return a1.value},columns:i,state:{get columnOrder(){return Mc.value},get columnVisibility(){return{...Object.fromEntries(Object.values(or).map(u=>[u,!1])),...Object.fromEntries(Mc.value.map(u=>[u,!0]))}},get grouping(){return a.value},get expanded(){return o.value},get sorting(){return s.value}},onGroupingChange:u=>{cf(u)?a.value=u(a.value):a.value=u},onExpandedChange:u=>{cf(u)&&(o.value=u(o.value))},onSortingChange:u=>{cf(u)?s.value=u(s.value):s.value=u},getSortedRowModel:nMe(),getGroupedRowModel:tMe(),getExpandedRowModel:Q2e(),getCoreRowModel:J2e()});return(u,c)=>(oe(),ve("table",sMe,[X("thead",lMe,[(oe(!0),ve(it,null,lr(q(l).getHeaderGroups(),f=>(oe(),ve("tr",{key:f.id},[(oe(!0),ve(it,null,lr(f.headers,h=>(oe(),ve("th",{key:h.id,colSpan:h.colSpan,class:Tt(h.column.getCanSort()?"cursor-pointer select-none":""),onClick:d=>{var v;return(v=h.column.getToggleSortingHandler())==null?void 0:v(d)}},[X("div",cMe,[h.column.getCanGroup()?(oe(),ve("button",{key:0,class:"cursor-pointer",onClick:uM(()=>h.column.getToggleGroupingHandler()(),["stop"])},[h.column.getIsGrouped()?(oe(),er(q(wk),{key:0,class:"h-4 w-4"})):(oe(),er(q(xk),{key:1,class:"h-4 w-4"}))],8,fMe)):Ut("",!0),h.isPlaceholder?Ut("",!0):(oe(),er(q($0),{key:1,render:h.column.columnDef.header,props:h.getContext()},null,8,["render","props"])),h.column.getIsSorted()==="asc"?(oe(),er(q(jG),{key:2,class:"h-4 w-4"})):Ut("",!0),h.column.getIsSorted()==="desc"?(oe(),er(q(ZG),{key:3,class:"h-4 w-4"})):Ut("",!0)])],10,uMe))),128))]))),128))]),X("tbody",null,[(oe(!0),ve(it,null,lr(q(l).getRowModel().rows,f=>(oe(),ve("tr",{key:f.id,class:"h-9 hover:!bg-primary hover:text-primary-content"},[(oe(!0),ve(it,null,lr(f.getVisibleCells(),h=>(oe(),ve("td",{key:h.id,class:"text-sm"},[X("div",{class:Tt(q(Tr)("flex items-center gap-2 whitespace-nowrap",[q(or).Download,q(or).DlSpeed,q(or).Upload,q(or).UlSpeed].includes(h.column.id)&&"w-14",[q(or).Host].includes(h.column.id)&&"max-w-[32rem] truncate"))},[h.column.getIsGrouped()?(oe(),ve(it,{key:0},[f.getCanExpand()?(oe(),ve(it,{key:0},[X("button",{onClick:()=>f.getToggleExpandedHandler()(),class:"cursor-pointer"},[f.getIsExpanded()?(oe(),er(q(wk),{key:0,class:"h-4 w-4"})):(oe(),er(q(xk),{key:1,class:"h-4 w-4"}))],8,hMe),ze(q($0),{render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]),h.column.getIsGrouped()?(oe(),ve("div",dMe,"("+Ie(f.subRows.length)+")",1)):Ut("",!0)],64)):Ut("",!0)],64)):h.getIsAggregated()?(oe(),er(q($0),{key:1,render:h.column.columnDef.aggregatedCell??h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"])):h.getIsPlaceholder()?Ut("",!0):(oe(),er(q($0),{key:2,render:h.column.columnDef.cell,props:h.getContext()},null,8,["render","props"]))],2)]))),128))]))),128))])]))}});var aS={d:(e,t)=>{for(var r in t)aS.o(t,r)&&!aS.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},P9={};function P2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r_Me});const ct=(u4={computed:()=>at,createTextVNode:()=>Xt,createVNode:()=>ze,defineComponent:()=>qt,reactive:()=>Du,ref:()=>Ye,watch:()=>Sr,watchEffect:()=>oM},HT={},aS.d(HT,u4),HT),pMe=(0,ct.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,ct.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),gMe=(0,ct.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var r=t.emit;return{uiType:(0,ct.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,ct.computed)({get:function(){return e.checked},set:function(n){return r("update:modelValue",n)}})}},render:function(){var e=this.uiType,t=this.model,r=this.$emit;return(0,ct.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,ct.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,ct.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return r("change",t)}},null)])}}),mMe=(0,ct.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,r=e==="objectStart"||e==="arrayStart";return r||e==="objectCollapsed"||e==="arrayCollapsed"?(0,ct.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(r?"open":"close"),onClick:t},[(0,ct.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,ct.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var u4,HT;function E2(e){return E2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},E2(e)}function R9(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Tc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,i=n||{},a=i.key,o=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,h=f===void 0?1:f,d=R9(e);if(d==="array"){var v=c4(e.map(function(y,S,b){return Tc(y,"".concat(t,"[").concat(S,"]"),r+1,{index:S,showComma:S!==b.length-1,length:h,type:l})}));return[Tc("[",t,r,{showComma:!1,key:a,length:e.length,type:"arrayStart"})[0]].concat(v,Tc("]",t,r,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var p=Object.keys(e),m=c4(p.map(function(y,S,b){return Tc(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),r+1,{key:y,showComma:S!==b.length-1,length:h,type:l})}));return[Tc("{",t,r,{showComma:!1,key:a,index:o,length:p.length,type:"objectStart"})[0]].concat(m,Tc("}",t,r,{showComma:c,length:p.length,type:"objectEnd"})[0])}return[{content:e,level:r,key:a,index:o,path:t,showComma:c,length:h,type:l}]}function c4(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=oS(e),r=[];t.length;){var n=t.shift();Array.isArray(n)?t.unshift.apply(t,oS(n)):r.push(n)}return r}function R2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e==null)return e;if(e instanceof Date)return new Date(e);if(e instanceof RegExp)return new RegExp(e);if(E2(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var r=e.map(function(a){return R2(a,t)});return t.set(e,r),r}var n={};for(var i in e)n[i]=R2(e[i],t);return t.set(e,n),n}function f4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h4(e){for(var t=1;t=b||x.length>=w,M=(A=e.pathCollapsible)===null||A===void 0?void 0:A.call(e,x);return x.type!=="objectStart"&&x.type!=="arrayStart"||!D&&!M?C:Qi(Qi({},C),{},sS({},x.path,1))},{})},s=(0,ct.reactive)({translateY:0,visibleData:null,hiddenPaths:o(e.deep,e.collapsedNodeLength)}),l=(0,ct.computed)(function(){for(var b=null,w=[],C=a.value.length,x=0;xb.length?b.length-C:A;D<0&&(D=0);var M=D+C;s.translateY=D*e.itemHeight,s.visibleData=b.filter(function(I,P){return P>=D&&P{var a;t.value=i,(a=r.value)==null||a.showModal()};return(i,a)=>(oe(),ve("div",bMe,[q(Fc)?(oe(),ve(it,{key:0},[q(a1).length?Ut("",!0):(oe(),ve("div",wMe,Ie(i.$t("noContent")),1)),X("div",xMe,[(oe(!0),ve(it,null,lr(q(a1),o=>(oe(),er(q(v2e),{key:o.id,conn:o,onInfo:n},null,8,["conn"]))),128))])],64)):(oe(),er(vMe,{key:1,onInfo:n})),X("dialog",{ref_key:"modalRef",ref:r,class:"modal"},[X("div",CMe,[ze(q(SMe),{data:t.value},null,8,["data"])]),a[0]||(a[0]=X("form",{method:"dialog",class:"modal-backdrop"},[X("button",null,"close")],-1))],512)]))}}),AMe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},DMe={key:0,class:"card w-full flex-row gap-1 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},MMe={class:"mx-2 text-primary"},IMe={class:"ml-2"},LMe=qt({__name:"LogsPage",setup(e){const t={[Nc.Error]:"text-error",[Nc.Warning]:"text-warning",[Nc.Info]:"text-info",[Nc.Debug]:"text-accent"},r=at(()=>Qv.value.filter(n=>Xh.value?n.payload.includes(Xh.value)||n.type.includes(Xh.value):!0));return(n,i)=>(oe(),ve("div",AMe,[r.value.length?Ut("",!0):(oe(),ve("div",DMe,Ie(n.$t("noContent")),1)),(oe(!0),ve(it,null,lr(r.value,a=>(oe(),ve("div",{key:a.seq,class:"card block rounded-xl bg-base-100 p-2 text-sm shadow-lg"},[X("span",null,Ie(a.seq),1),X("span",MMe,Ie(q(hu)(a.time).locale(q(sa)).format("HH:mm:ss")),1),X("span",{class:Tt(t[a.type])},Ie(a.type),3),X("span",IMe,Ie(a.payload),1)]))),128))]))}}),PMe={class:"badge flex w-8 items-center justify-center shadow-sm"},O9=qt({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,r=at(()=>kS(t.name)),n=at(()=>r.value(oe(),ve("div",PMe,[r.value>0?(oe(),ve("div",{key:0,class:Tt(q(Tr)("text-xs",n.value))},Ie(r.value),3)):(oe(),er(q(KG),{key:1,class:"h-4 w-4"}))]))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:N9,setPrototypeOf:v4,isFrozen:EMe,getPrototypeOf:RMe,getOwnPropertyDescriptor:kMe}=Object;let{freeze:Di,seal:Wa,create:F9}=Object,{apply:k2,construct:O2}=typeof Reflect<"u"&&Reflect;Di||(Di=function(t){return t});Wa||(Wa=function(t){return t});k2||(k2=function(t,r,n){return t.apply(r,n)});O2||(O2=function(t,r){return new t(...r)});const H0=va(Array.prototype.forEach),p4=va(Array.prototype.pop),Uv=va(Array.prototype.push),V_=va(String.prototype.toLowerCase),UT=va(String.prototype.toString),g4=va(String.prototype.match),Wv=va(String.prototype.replace),OMe=va(String.prototype.indexOf),NMe=va(String.prototype.trim),oo=va(Object.prototype.hasOwnProperty),ci=va(RegExp.prototype.test),Yv=FMe(TypeError);function va(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:V_;v4&&v4(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const a=r(i);a!==i&&(EMe(t)||(t[n]=a),i=a)}e[i]=!0}return e}function BMe(e){for(let t=0;t/gm),HMe=Wa(/\${[\w\W]*}/gm),UMe=Wa(/^data-[\-\w.\u00B7-\uFFFF]/),WMe=Wa(/^aria-[\-\w]+$/),B9=Wa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),YMe=Wa(/^(?:\w+script|data):/i),XMe=Wa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V9=Wa(/^html$/i),ZMe=Wa(/^[a-z][.\w]*(-[.\w]+)+$/i);var b4=Object.freeze({__proto__:null,ARIA_ATTR:WMe,ATTR_WHITESPACE:XMe,CUSTOM_ELEMENT:ZMe,DATA_ATTR:UMe,DOCTYPE_NAME:V9,ERB_EXPR:$Me,IS_ALLOWED_URI:B9,IS_SCRIPT_OR_DATA:YMe,MUSTACHE_EXPR:GMe,TMPLIT_EXPR:HMe});const Zv={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qMe=function(){return typeof window>"u"?null:window},jMe=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},w4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function z9(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qMe();const t=lt=>z9(lt);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==Zv.document)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,v=l.prototype,p=Xv(v,"cloneNode"),m=Xv(v,"remove"),y=Xv(v,"nextSibling"),S=Xv(v,"childNodes"),b=Xv(v,"parentNode");if(typeof o=="function"){const lt=r.createElement("template");lt.content&<.content.ownerDocument&&(r=lt.content.ownerDocument)}let w,C="";const{implementation:x,createNodeIterator:A,createDocumentFragment:D,getElementsByTagName:M}=r,{importNode:I}=n;let P=w4();t.isSupported=typeof N9=="function"&&typeof b=="function"&&x&&x.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:N,TMPLIT_EXPR:O,DATA_ATTR:F,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:j}=b4;let{IS_ALLOWED_URI:ee}=b4,te=null;const me=Kt({},[...m4,...WT,...YT,...XT,...y4]);let Ae=null;const Pe=Kt({},[..._4,...ZT,...S4,...U0]);let Oe=Object.seal(F9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ue=null,se=null,he=!0,pe=!0,ye=!1,xe=!0,ke=!1,H=!0,U=!1,ie=!1,_e=!1,fe=!1,$=!1,Y=!1,re=!0,ue=!1;const Ce="user-content-";let Re=!0,J=!1,ce={},Ge=null;const Qe=Kt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const Ft=Kt({},["audio","video","img","source","image","track"]);let Mr=null;const Vr=Kt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nn="http://www.w3.org/1998/Math/MathML",jr="http://www.w3.org/2000/svg",_n="http://www.w3.org/1999/xhtml";let Wi=_n,an=!1,In=null;const Of=Kt({},[nn,jr,_n],UT);let Nf=Kt({},["mi","mo","mn","ms","mtext"]),Ff=Kt({},["annotation-xml"]);const Cm=Kt({},["title","style","font","a","script"]);let fl=null;const Lb=["application/xhtml+xml","text/html"],Pb="text/html";let vn=null,hl=null;const Tm=r.createElement("form"),Am=function(ne){return ne instanceof RegExp||ne instanceof Function},Hd=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(hl&&hl===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=Ac(ne),fl=Lb.indexOf(ne.PARSER_MEDIA_TYPE)===-1?Pb:ne.PARSER_MEDIA_TYPE,vn=fl==="application/xhtml+xml"?UT:V_,te=oo(ne,"ALLOWED_TAGS")?Kt({},ne.ALLOWED_TAGS,vn):me,Ae=oo(ne,"ALLOWED_ATTR")?Kt({},ne.ALLOWED_ATTR,vn):Pe,In=oo(ne,"ALLOWED_NAMESPACES")?Kt({},ne.ALLOWED_NAMESPACES,UT):Of,Mr=oo(ne,"ADD_URI_SAFE_ATTR")?Kt(Ac(Vr),ne.ADD_URI_SAFE_ATTR,vn):Vr,It=oo(ne,"ADD_DATA_URI_TAGS")?Kt(Ac(Ft),ne.ADD_DATA_URI_TAGS,vn):Ft,Ge=oo(ne,"FORBID_CONTENTS")?Kt({},ne.FORBID_CONTENTS,vn):Qe,Ue=oo(ne,"FORBID_TAGS")?Kt({},ne.FORBID_TAGS,vn):{},se=oo(ne,"FORBID_ATTR")?Kt({},ne.FORBID_ATTR,vn):{},ce=oo(ne,"USE_PROFILES")?ne.USE_PROFILES:!1,he=ne.ALLOW_ARIA_ATTR!==!1,pe=ne.ALLOW_DATA_ATTR!==!1,ye=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ke=ne.SAFE_FOR_TEMPLATES||!1,H=ne.SAFE_FOR_XML!==!1,U=ne.WHOLE_DOCUMENT||!1,fe=ne.RETURN_DOM||!1,$=ne.RETURN_DOM_FRAGMENT||!1,Y=ne.RETURN_TRUSTED_TYPE||!1,_e=ne.FORCE_BODY||!1,re=ne.SANITIZE_DOM!==!1,ue=ne.SANITIZE_NAMED_PROPS||!1,Re=ne.KEEP_CONTENT!==!1,J=ne.IN_PLACE||!1,ee=ne.ALLOWED_URI_REGEXP||B9,Wi=ne.NAMESPACE||_n,Nf=ne.MATHML_TEXT_INTEGRATION_POINTS||Nf,Ff=ne.HTML_INTEGRATION_POINTS||Ff,Oe=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&Am(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&Am(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Oe.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ke&&(pe=!1),$&&(fe=!0),ce&&(te=Kt({},y4),Ae=[],ce.html===!0&&(Kt(te,m4),Kt(Ae,_4)),ce.svg===!0&&(Kt(te,WT),Kt(Ae,ZT),Kt(Ae,U0)),ce.svgFilters===!0&&(Kt(te,YT),Kt(Ae,ZT),Kt(Ae,U0)),ce.mathMl===!0&&(Kt(te,XT),Kt(Ae,S4),Kt(Ae,U0))),ne.ADD_TAGS&&(te===me&&(te=Ac(te)),Kt(te,ne.ADD_TAGS,vn)),ne.ADD_ATTR&&(Ae===Pe&&(Ae=Ac(Ae)),Kt(Ae,ne.ADD_ATTR,vn)),ne.ADD_URI_SAFE_ATTR&&Kt(Mr,ne.ADD_URI_SAFE_ATTR,vn),ne.FORBID_CONTENTS&&(Ge===Qe&&(Ge=Ac(Ge)),Kt(Ge,ne.FORBID_CONTENTS,vn)),Re&&(te["#text"]=!0),U&&Kt(te,["html","head","body"]),te.table&&(Kt(te,["tbody"]),delete Ue.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw Yv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Yv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ne.TRUSTED_TYPES_POLICY,C=w.createHTML("")}else w===void 0&&(w=jMe(d,i)),w!==null&&typeof C=="string"&&(C=w.createHTML(""));Di&&Di(ne),hl=ne}},Dm=Kt({},[...WT,...YT,...VMe]),Bf=Kt({},[...XT,...zMe]),Eb=function(ne){let Be=b(ne);(!Be||!Be.tagName)&&(Be={namespaceURI:Wi,tagName:"template"});const tt=V_(ne.tagName),br=V_(Be.tagName);return In[ne.namespaceURI]?ne.namespaceURI===jr?Be.namespaceURI===_n?tt==="svg":Be.namespaceURI===nn?tt==="svg"&&(br==="annotation-xml"||Nf[br]):!!Dm[tt]:ne.namespaceURI===nn?Be.namespaceURI===_n?tt==="math":Be.namespaceURI===jr?tt==="math"&&Ff[br]:!!Bf[tt]:ne.namespaceURI===_n?Be.namespaceURI===jr&&!Ff[br]||Be.namespaceURI===nn&&!Nf[br]?!1:!Bf[tt]&&(Cm[tt]||!Dm[tt]):!!(fl==="application/xhtml+xml"&&In[ne.namespaceURI]):!1},Ii=function(ne){Uv(t.removed,{element:ne});try{b(ne).removeChild(ne)}catch{m(ne)}},Vf=function(ne,Be){try{Uv(t.removed,{attribute:Be.getAttributeNode(ne),from:Be})}catch{Uv(t.removed,{attribute:null,from:Be})}if(Be.removeAttribute(ne),ne==="is")if(fe||$)try{Ii(Be)}catch{}else try{Be.setAttribute(ne,"")}catch{}},Mm=function(ne){let Be=null,tt=null;if(_e)ne=""+ne;else{const Kr=g4(ne,/^[\r\n\t ]+/);tt=Kr&&Kr[0]}fl==="application/xhtml+xml"&&Wi===_n&&(ne=''+ne+"");const br=w?w.createHTML(ne):ne;if(Wi===_n)try{Be=new h().parseFromString(br,fl)}catch{}if(!Be||!Be.documentElement){Be=x.createDocument(Wi,"template",null);try{Be.documentElement.innerHTML=an?C:br}catch{}}const Ln=Be.body||Be.documentElement;return ne&&tt&&Ln.insertBefore(r.createTextNode(tt),Ln.childNodes[0]||null),Wi===_n?M.call(Be,U?"html":"body")[0]:U?Be.documentElement:Ln},Im=function(ne){return A.call(ne.ownerDocument||ne,ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Lm=function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof c)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},Pm=function(ne){return typeof s=="function"&&ne instanceof s};function qa(lt,ne,Be){H0(lt,tt=>{tt.call(t,ne,Be,hl)})}const Em=function(ne){let Be=null;if(qa(P.beforeSanitizeElements,ne,null),Lm(ne))return Ii(ne),!0;const tt=vn(ne.nodeName);if(qa(P.uponSanitizeElement,ne,{tagName:tt,allowedTags:te}),ne.hasChildNodes()&&!Pm(ne.firstElementChild)&&ci(/<[/\w]/g,ne.innerHTML)&&ci(/<[/\w]/g,ne.textContent)||ne.nodeType===Zv.progressingInstruction||H&&ne.nodeType===Zv.comment&&ci(/<[/\w]/g,ne.data))return Ii(ne),!0;if(!te[tt]||Ue[tt]){if(!Ue[tt]&&Ud(tt)&&(Oe.tagNameCheck instanceof RegExp&&ci(Oe.tagNameCheck,tt)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(tt)))return!1;if(Re&&!Ge[tt]){const br=b(ne)||ne.parentNode,Ln=S(ne)||ne.childNodes;if(Ln&&br){const Kr=Ln.length;for(let Xn=Kr-1;Xn>=0;--Xn){const pa=p(Ln[Xn],!0);pa.__removalCount=(ne.__removalCount||0)+1,br.insertBefore(pa,y(ne))}}}return Ii(ne),!0}return ne instanceof l&&!Eb(ne)||(tt==="noscript"||tt==="noembed"||tt==="noframes")&&ci(/<\/no(script|embed|frames)/i,ne.innerHTML)?(Ii(ne),!0):(ke&&ne.nodeType===Zv.text&&(Be=ne.textContent,H0([R,N,O],br=>{Be=Wv(Be,br," ")}),ne.textContent!==Be&&(Uv(t.removed,{element:ne.cloneNode()}),ne.textContent=Be)),qa(P.afterSanitizeElements,ne,null),!1)},Rm=function(ne,Be,tt){if(re&&(Be==="id"||Be==="name")&&(tt in r||tt in Tm))return!1;if(!(pe&&!se[Be]&&ci(F,Be))){if(!(he&&ci(B,Be))){if(!Ae[Be]||se[Be]){if(!(Ud(ne)&&(Oe.tagNameCheck instanceof RegExp&&ci(Oe.tagNameCheck,ne)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(ne))&&(Oe.attributeNameCheck instanceof RegExp&&ci(Oe.attributeNameCheck,Be)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(Be))||Be==="is"&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&ci(Oe.tagNameCheck,tt)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(tt))))return!1}else if(!Mr[Be]){if(!ci(ee,Wv(tt,z,""))){if(!((Be==="src"||Be==="xlink:href"||Be==="href")&&ne!=="script"&&OMe(tt,"data:")===0&&It[ne])){if(!(ye&&!ci(W,Wv(tt,z,"")))){if(tt)return!1}}}}}}return!0},Ud=function(ne){return ne!=="annotation-xml"&&g4(ne,j)},km=function(ne){qa(P.beforeSanitizeAttributes,ne,null);const{attributes:Be}=ne;if(!Be)return;const tt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae,forceKeepAttr:void 0};let br=Be.length;for(;br--;){const Ln=Be[br],{name:Kr,namespaceURI:Xn,value:pa}=Ln,ku=vn(Kr);let Pn=Kr==="value"?pa:NMe(pa);if(tt.attrName=ku,tt.attrValue=Pn,tt.keepAttr=!0,tt.forceKeepAttr=void 0,qa(P.uponSanitizeAttribute,ne,tt),Pn=tt.attrValue,ue&&(ku==="id"||ku==="name")&&(Vf(Kr,ne),Pn=Ce+Pn),H&&ci(/((--!?|])>)|<\/(style|title)/i,Pn)){Vf(Kr,ne);continue}if(tt.forceKeepAttr||(Vf(Kr,ne),!tt.keepAttr))continue;if(!xe&&ci(/\/>/i,Pn)){Vf(Kr,ne);continue}ke&&H0([R,N,O],Yd=>{Pn=Wv(Pn,Yd," ")});const Wd=vn(ne.nodeName);if(Rm(Wd,ku,Pn)){if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Xn)switch(d.getAttributeType(Wd,ku)){case"TrustedHTML":{Pn=w.createHTML(Pn);break}case"TrustedScriptURL":{Pn=w.createScriptURL(Pn);break}}try{Xn?ne.setAttributeNS(Xn,Kr,Pn):ne.setAttribute(Kr,Pn),Lm(ne)?Ii(ne):p4(t.removed)}catch{}}}qa(P.afterSanitizeAttributes,ne,null)},Rb=function lt(ne){let Be=null;const tt=Im(ne);for(qa(P.beforeSanitizeShadowDOM,ne,null);Be=tt.nextNode();)qa(P.uponSanitizeShadowNode,Be,null),!Em(Be)&&(Be.content instanceof a&<(Be.content),km(Be));qa(P.afterSanitizeShadowDOM,ne,null)};return t.sanitize=function(lt){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Be=null,tt=null,br=null,Ln=null;if(an=!lt,an&&(lt=""),typeof lt!="string"&&!Pm(lt))if(typeof lt.toString=="function"){if(lt=lt.toString(),typeof lt!="string")throw Yv("dirty is not a string, aborting")}else throw Yv("toString is not a function");if(!t.isSupported)return lt;if(ie||Hd(ne),t.removed=[],typeof lt=="string"&&(J=!1),J){if(lt.nodeName){const pa=vn(lt.nodeName);if(!te[pa]||Ue[pa])throw Yv("root node is forbidden and cannot be sanitized in-place")}}else if(lt instanceof s)Be=Mm(""),tt=Be.ownerDocument.importNode(lt,!0),tt.nodeType===Zv.element&&tt.nodeName==="BODY"||tt.nodeName==="HTML"?Be=tt:Be.appendChild(tt);else{if(!fe&&!ke&&!U&<.indexOf("<")===-1)return w&&Y?w.createHTML(lt):lt;if(Be=Mm(lt),!Be)return fe?null:Y?C:""}Be&&_e&&Ii(Be.firstChild);const Kr=Im(J?lt:Be);for(;br=Kr.nextNode();)Em(br)||(br.content instanceof a&&Rb(br.content),km(br));if(J)return lt;if(fe){if($)for(Ln=D.call(Be.ownerDocument);Be.firstChild;)Ln.appendChild(Be.firstChild);else Ln=Be;return(Ae.shadowroot||Ae.shadowrootmode)&&(Ln=I.call(n,Ln,!0)),Ln}let Xn=U?Be.outerHTML:Be.innerHTML;return U&&te["!doctype"]&&Be.ownerDocument&&Be.ownerDocument.doctype&&Be.ownerDocument.doctype.name&&ci(V9,Be.ownerDocument.doctype.name)&&(Xn=" -`+Xn),ke&&H0([R,N,O],pa=>{Xn=Wv(Xn,pa," ")}),w&&Y?w.createHTML(Xn):Xn},t.setConfig=function(){let lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hd(lt),ie=!0},t.clearConfig=function(){hl=null,ie=!1},t.isValidAttribute=function(lt,ne,Be){hl||Hd({});const tt=vn(lt),br=vn(ne);return Rm(tt,br,Be)},t.addHook=function(lt,ne){typeof ne=="function"&&Uv(P[lt],ne)},t.removeHook=function(lt){return p4(P[lt])},t.removeHooks=function(lt){P[lt]=[]},t.removeAllHooks=function(){P=w4()},t}var KMe=z9();const JMe=["innerHTML"],QMe=["src"],x4="data:image/svg+xml,",eIe=qt({__name:"ProxyIcon",props:{icon:{}},setup(e){const t=e,r=at(()=>t.icon.startsWith(x4)),n=at(()=>{if(r.value)return KMe.sanitize(t.icon.replace(x4,""))});return(i,a)=>r.value?(oe(),ve("div",{key:0,class:"h-5 w-5 fill-primary",innerHTML:n.value},null,8,JMe)):(oe(),ve("img",{key:1,class:"w-5",src:i.icon},null,8,QMe))}}),tIe=["data-tip"],rIe={class:"flex-1"},nIe=qt({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,r=Ye(),n=Ye(!1);let i=null;const a=()=>{if(r.value){const{scrollWidth:c,clientWidth:f}=r.value;n.value=c>f}};ol(()=>{r.value&&(i=new ResizeObserver(()=>{a()}),i.observe(r.value)),a()}),Zg(()=>{i&&r.value&&i.unobserve(r.value),i=null});const o=at(()=>qs.value[t.name]),s=Ye(!1),l=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),u=async()=>{if(!s.value){s.value=!0;try{await Vie(t.name),s.value=!1}catch{s.value=!1}}};return(c,f)=>(oe(),ve("div",{class:Tt(q(Tr)("flex cursor-pointer flex-wrap items-center justify-end gap-1 rounded-md bg-base-200 p-2 shadow-md sm:hover:scale-105",c.active&&"bg-primary text-primary-content",q(Ap)&&n.value&&"tooltip text-left")),"data-tip":o.value.name},[X("div",{class:Tt(q(Tr)("flex-1 whitespace-nowrap text-xs md:text-sm",q(Ap)&&"truncate")),ref_key:"nameRef",ref:r},Ie(o.value.name),3),X("div",{class:Tt(q(Tr)("flex items-center text-xs sm:gap-2",q(Jc)?"gap-[2px]":"gap-1"))},[X("div",rIe,[X("span",null,Ie(l(o.value.type)),1),o.value.udp?(oe(),ve(it,{key:0},[X("span",{class:Tt(q(Tr)("hidden sm:hidden",q(Jc)&&"inline"))},":udp",2),X("span",{class:Tt(q(Tr)("hidden sm:inline",!q(Jc)&&"inline"))}," | udp ",2)],64)):Ut("",!0)]),ze(O9,{class:Tt(s.value?"animate-pulse":""),name:o.value.name,onClick:uM(u,["stop"])},null,8,["class","name"])],2)],10,tIe))}}),G9=h$(nIe,[["__scopeId","data-v-09e42248"]]),$9=qt({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=NS();return(r,n)=>(oe(),ve("div",{class:Tt(q(Tr)("grid gap-2",q(Jc)?"grid-cols-2":"grid-cols-1",q(Kc)?q(t)?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-2 2xl:grid-cols-3":"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4 2xl:grid-cols-6":q(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 3xl:grid-cols-3":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 3xl:grid-cols-5"))},[Yee(r.$slots,"default")],2))}}),iIe={key:0,class:"flex flex-wrap gap-1 pt-2"},aIe={key:0,class:"h-2 w-2 rounded-full bg-white"},oIe={key:1,class:"flex items-center gap-2 py-2"},sIe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},H9=qt({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,r=at(()=>Dp.value===ug.DOTS||Dp.value===ug.AUTO&&t.nodes.length<20),n=at(()=>t.nodes.map(u=>({latency:kS(u),name:u}))),i=u=>u===Ty?"bg-gray-500":un.value.filter(u=>u.latencyTy).length),o=at(()=>n.value.filter(u=>u.latency>=Zl.value&&u.latencyn.value.filter(u=>u.latency>=Ns.value).length),l=at(()=>n.value.filter(u=>u.latency===Ty).length);return(u,c)=>r.value?(oe(),ve("div",iIe,[(oe(!0),ve(it,null,lr(n.value,f=>(oe(),ve("div",{key:f.name,class:Tt(["flex h-4 w-4 items-center justify-center rounded-full shadow-lg",i(f.latency)])},[u.now===f.name?(oe(),ve("div",aIe)):Ut("",!0)],2))),128))])):(oe(),ve("div",oIe,[X("div",sIe,[X("div",{class:Tt(i(q(Zl)-1)),style:kc({width:`${a.value*100/u.nodes.length}%`})},null,6),X("div",{class:Tt(i(q(Ns)-1)),style:kc({width:`${o.value*100/u.nodes.length}%`})},null,6),X("div",{class:Tt(i(q(Ns)+1)),style:kc({width:`${s.value*100/u.nodes.length}%`})},null,6),X("div",{class:Tt(i(q(Ty))),style:kc({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),lIe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},uIe={class:"collapse-title"},cIe={class:"flex items-center gap-2"},fIe={class:"flex items-center gap-1 text-lg font-medium sm:text-xl"},hIe={class:"text-xs"},dIe={key:0,class:"flex hidden items-center gap-2 text-xs sm:flex sm:text-sm"},vIe={class:"text-sm"},pIe={key:0,class:"flex items-center gap-2 text-xs sm:hidden sm:text-sm"},gIe={class:"collapse-content flex flex-col gap-2 max-sm:px-2"},mIe=qt({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,r=at({get(){return e1.value[t.name]},set(u){e1.value[t.name]=u}}),n=Ye(r.value);Sr(r,u=>{u?n.value=u:setTimeout(()=>{u===r.value&&(n.value=u)},1e3)});const i=at(()=>qs.value[t.name]),a=at(()=>YG(i.value.all??[])),o=Ye(!1),s=async()=>{if(!o.value){o.value=!0;try{await zie(t.name),o.value=!1}catch{o.value=!1}}},l=at(()=>Yo.value.filter(c=>c.chains.includes(t.name)).reduce((c,f)=>c+f.downloadSpeed,0));return(u,c)=>(oe(),ve("div",lIe,[X("div",uIe,[X("div",cIe,[X("div",fIe,[i.value.icon?(oe(),er(eIe,{key:0,icon:i.value.icon},null,8,["icon"])):Ut("",!0),Xt(" "+Ie(i.value.name)+" ",1),X("span",hIe,":: "+Ie(i.value.type),1)]),i.value.now?(oe(),ve("div",dIe," -> "+Ie(i.value.now),1)):Ut("",!0),c[1]||(c[1]=X("div",{class:"flex-1"},null,-1)),X("div",vIe,Ie(q(Wr)(l.value))+"/s",1),ze(O9,{class:Tt(q(Tr)("z-10",o.value?"animate-pulse":"")),name:i.value.now,onClick:uM(s,["stop"])},null,8,["class","name"])]),i.value.now?(oe(),ve("div",pIe," -> "+Ie(i.value.now),1)):Ut("",!0),r.value?Ut("",!0):(oe(),er(H9,{key:1,nodes:a.value,now:i.value.now},null,8,["nodes","now"]))]),Qt(X("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=f=>r.value=f)},null,512),[[Ea,r.value]]),X("div",gIe,[n.value?(oe(),er($9,{key:0},{default:ig(()=>[(oe(!0),ve(it,null,lr(a.value,f=>(oe(),er(G9,{key:f,name:f,active:f===i.value.now,onClick:h=>q(Bie)(i.value.name,f)},null,8,["name","active","onClick"]))),128))]),_:1})):Ut("",!0)])]))}}),yIe={class:"collapse collapse-arrow bg-base-100 shadow-lg"},_Ie={class:"collapse-title"},SIe={class:"flex items-center gap-2"},bIe={class:"text-lg font-medium sm:text-xl"},wIe={class:"flex gap-2"},xIe=["value"],CIe={class:"flex gap-4"},TIe={class:"text-sm text-slate-500"},AIe={class:"text-sm text-slate-500"},DIe={class:"text-sm text-slate-500"},MIe={class:"collapse-content flex flex-col gap-2"},IIe=qt({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,r=at({get(){return e1.value[t.name]},set(h){e1.value[t.name]=h}}),n=Ye(r.value);Sr(r,h=>{h?n.value=h:setTimeout(()=>{h===r.value&&(n.value=h)},1e3)});const i=h=>{const{Download:d=0,Upload:v=0,Total:p=0,Expire:m=0}=h,y=Wr(p,{binary:!0}),S=Wr(d+v,{binary:!0}),b=vf.toFinite(((d+v)/p*100).toFixed(2));return{total:y,used:S,percentage:b,expirePrefix:()=>{const{t:x}=Cf();return x("expire")},expireStr:()=>{const{t:x}=Cf();return m===0?x("noExpire"):hu(m*1e3).format("YYYY-MM-DD")}}},a=at(()=>Wh.value.find(h=>h.name===t.name)),o=at(()=>YG(a.value.proxies.map(h=>h.name))),s=at(()=>a.value.subscriptionInfo?i(a.value.subscriptionInfo):null),l=Ye(!1),u=Ye(!1),c=async()=>{if(!u.value){u.value=!0;try{await xie(t.name),await id(),u.value=!1}catch{u.value=!1}}},f=async()=>{if(!l.value){l.value=!0;try{await $G(t.name),await id(),l.value=!1}catch{l.value=!1}}};return(h,d)=>(oe(),ve("div",yIe,[X("div",_Ie,[X("div",SIe,[X("div",bIe,Ie(a.value.name),1),d[1]||(d[1]=X("div",{class:"flex-1"},null,-1)),X("div",wIe,[X("button",{class:Tt(q(Tr)("btn btn-circle btn-xs z-30",u.value?"animate-pulse":"")),onClick:c},[ze(q(KG),{class:"h-4 w-4"})],2),X("button",{class:Tt(q(Tr)("btn btn-circle btn-xs z-30",l.value?"animate-spin":"")),onClick:f},[ze(q(qG),{class:"h-4 w-4"})],2)])]),s.value?(oe(),ve("progress",{key:0,class:"progress",value:s.value.percentage,max:"100"},null,8,xIe)):Ut("",!0),X("div",CIe,[s.value?(oe(),ve(it,{key:0},[X("div",TIe,Ie(s.value.used)+" / "+Ie(s.value.total)+" ( "+Ie(s.value.percentage)+"% ) ",1),X("div",AIe,Ie(s.value.expirePrefix())+": "+Ie(s.value.expireStr()),1)],64)):Ut("",!0),X("div",DIe,Ie(h.$t("updated"))+" "+Ie(q(OS)(a.value.updatedAt)),1)]),r.value?Ut("",!0):(oe(),er(H9,{key:1,nodes:o.value},null,8,["nodes"]))]),Qt(X("input",{type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>r.value=v)},null,512),[[Ea,r.value]]),X("div",MIe,[n.value?(oe(),er($9,{key:0},{default:ig(()=>[(oe(!0),ve(it,null,lr(o.value,v=>(oe(),er(G9,{key:v,name:v},null,8,["name"]))),128))]),_:1})):Ut("",!0)])]))}}),LIe={class:"h-full overflow-y-auto overflow-x-hidden p-2"},PIe={key:0,class:"grid grid-cols-2 gap-1"},EIe={key:1,class:"grid grid-cols-1 gap-1"},RIe=qt({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:r}=NS(),n=at(()=>t.value===hf.PROVIDER?IIe:mIe),i=(a,o)=>a.filter((s,l)=>l%2===o);return(a,o)=>(oe(),ve("div",LIe,[q(WG)&&q(xp)&&q(r).length>1?(oe(),ve("div",PIe,[(oe(),ve(it,null,lr([0,1],s=>X("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(oe(!0),ve(it,null,lr(i(q(r),s),l=>(oe(),er(du(n.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(oe(),ve("div",EIe,[(oe(!0),ve(it,null,lr(q(r),s=>(oe(),er(du(n.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),kIe={class:"card block w-full gap-2 rounded-xl bg-base-100 p-2 text-sm shadow-lg"},OIe={class:"mx-2"},NIe={class:"min-w-32 text-primary"},FIe=qt({__name:"RuleCard",props:{rule:{}},setup(e){return(t,r)=>(oe(),ve("div",kIe,[X("span",null,Ie(t.rule.type),1),X("span",OIe,Ie(t.rule.payload),1),X("span",NIe,"-> "+Ie(t.rule.proxy),1)]))}}),BIe={class:"card w-full flex-row items-center gap-2 rounded-xl bg-base-100 p-1 px-2 text-sm shadow-lg"},VIe={class:"flex flex-1 flex-col sm:flex-row"},zIe={class:"w-48 flex-1 text-primary"},GIe={class:"flex gap-1"},$Ie=qt({__name:"RuleProvider",props:{ruleProvider:{}},setup(e){const t=Ye(!1),r=e,n=async()=>{t.value||(t.value=!0,await HG(r.ruleProvider.name),s1(),t.value=!1)};return(i,a)=>(oe(),ve("div",BIe,[X("div",VIe,[X("div",zIe,Ie(i.ruleProvider.name)+" ("+Ie(i.ruleProvider.ruleCount)+") ",1),X("div",GIe,[X("span",null,Ie(i.ruleProvider.behavior),1),X("span",null,Ie(i.ruleProvider.vehicleType),1),X("span",null,Ie(i.$t("updated"))+" "+Ie(q(OS)(i.ruleProvider.updatedAt)),1)])]),X("button",{class:Tt(q(Tr)("btn btn-circle btn-xs",t.value?"animate-spin":"")),onClick:n},[ze(q(qG),{class:"h-4 w-4"})],2)]))}}),HIe={class:"flex h-full flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},UIe=qt({__name:"RulesPage",setup(e){return(t,r)=>(oe(),ve("div",HIe,[q(Lp)===q(nd).PROVIDER?(oe(!0),ve(it,{key:0},lr(q(o1),n=>(oe(),er($Ie,{key:n.name,ruleProvider:n},null,8,["ruleProvider"]))),128)):(oe(!0),ve(it,{key:1},lr(q(S$),n=>(oe(),er(FIe,{key:n.payload,rule:n},null,8,["rule"]))),128))]))}}),WIe={class:"flex flex-col gap-2 p-2"},YIe=["onUpdate:modelValue"],XIe=["onClick"],ZIe={class:"flex w-full items-center gap-2"},qIe=qt({__name:"SourceIPLabels",setup(e){const t=at(()=>Object.keys(Ls.value)),r=Du({ip:"",label:""}),n=()=>{Ls.value[r.ip]=r.label,r.ip="",r.label=""},i=a=>{Reflect.deleteProperty(Ls.value,a),Ls.value={...Ls.value}};return(a,o)=>(oe(),ve(it,null,[X("div",null,Ie(a.$t("sourceIPLabels"))+":",1),X("div",WIe,[(oe(!0),ve(it,null,lr(t.value,s=>(oe(),ve("div",{key:s,class:"flex items-center gap-2"},[Xt(Ie(s)+" -> ",1),Qt(X("input",{type:"text",class:"input input-xs input-bordered w-24","onUpdate:modelValue":l=>q(Ls)[s]=l},null,8,YIe),[[oa,q(Ls)[s]]]),X("button",{class:"btn btn-circle btn-xs bg-base-300",onClick:()=>i(s)},[ze(q(r$),{class:"h-4 w-4"})],8,XIe)]))),128)),X("div",ZIe,[o[2]||(o[2]=Xt(" IP: ")),Qt(X("input",{type:"text",class:"input input-xs input-bordered w-44","onUpdate:modelValue":o[0]||(o[0]=s=>r.ip=s)},null,512),[[oa,r.ip]]),Qt(X("input",{type:"text",class:"input input-xs input-bordered w-20","onUpdate:modelValue":o[1]||(o[1]=s=>r.label=s)},null,512),[[oa,r.label]]),X("button",{class:"btn btn-circle btn-xs bg-base-300",onClick:n},[ze(q(a$),{class:"h-4 w-4"})])])])],64))}});var jIe=Object.defineProperty,lS=Object.getOwnPropertySymbols,U9=Object.prototype.hasOwnProperty,W9=Object.prototype.propertyIsEnumerable,C4=(e,t,r)=>t in e?jIe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fh=(e,t)=>{for(var r in t||(t={}))U9.call(t,r)&&C4(e,r,t[r]);if(lS)for(var r of lS(t))W9.call(t,r)&&C4(e,r,t[r]);return e},Y9=(e,t)=>{var r={};for(var n in e)U9.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&lS)for(var n of lS(e))t.indexOf(n)<0&&W9.call(e,n)&&(r[n]=e[n]);return r};const X9="[vue-draggable-plus]: ";function KIe(e){console.warn(X9+e)}function JIe(e){console.error(X9+e)}function T4(e,t,r){return r>=0&&rr?r.toUpperCase():"")}function eLe(e){return Object.keys(e).reduce((t,r)=>(typeof e[r]<"u"&&(t[QIe(r)]=e[r]),t),{})}function A4(e,t){return Array.isArray(e)&&e.splice(t,1),e}function D4(e,t,r){return Array.isArray(e)&&e.splice(t,0,r),e}function tLe(e){return typeof e>"u"}function rLe(e){return typeof e=="string"}function M4(e,t,r){const n=e.children[r];e.insertBefore(t,n)}function qT(e){e.parentNode&&e.parentNode.removeChild(e)}function nLe(e,t=document){var r;let n=null;return typeof(t==null?void 0:t.querySelector)=="function"?n=(r=t==null?void 0:t.querySelector)==null?void 0:r.call(t,e):n=document.querySelector(e),n||KIe(`Element not found: ${e}`),n}function iLe(e,t,r=null){return function(...n){return e.apply(r,n),t.apply(r,n)}}function aLe(e,t){const r=Fh({},e);return Object.keys(t).forEach(n=>{r[n]?r[n]=iLe(e[n],t[n]):r[n]=t[n]}),r}function oLe(e){return e instanceof HTMLElement}function I4(e,t){Object.keys(e).forEach(r=>{t(r,e[r])})}function sLe(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const lLe=Object.assign;/**! - * Sortable 1.15.2 - * @author RubaXa - * @author owenm - * @license MIT - */function L4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function us(e){for(var t=1;t=0)&&(r[i]=e[i]);return r}function fLe(e,t){if(e==null)return{};var r=cLe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var hLe="1.15.2";function Zs(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var cl=Zs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),bm=Zs(/Edge/i),P4=Zs(/firefox/i),Zp=Zs(/safari/i)&&!Zs(/chrome/i)&&!Zs(/android/i),Z9=Zs(/iP(ad|od|hone)/i),q9=Zs(/chrome/i)&&Zs(/android/i),j9={capture:!1,passive:!1};function hr(e,t,r){e.addEventListener(t,r,!cl&&j9)}function ar(e,t,r){e.removeEventListener(t,r,!cl&&j9)}function uS(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function dLe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function lo(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&uS(e,t):uS(e,t))||n&&e===r)return e;if(e===r)break}while(e=dLe(e))}return null}var E4=/\s+/g;function ea(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(E4," ").replace(" "+t+" "," ");e.className=(n+(r?" "+t:"")).replace(E4," ")}}function wt(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function ed(e,t){var r="";if(typeof e=="string")r=e;else do{var n=wt(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function K9(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,a=n.length;if(r)for(;i=a,!o)return n;if(n===ts())break;n=ou(n,!1)}return!1}function _d(e,t,r,n){for(var i=0,a=0,o=e.children;a2&&arguments[2]!==void 0?arguments[2]:{},n=r.evt,i=fLe(r,bLe);wm.pluginEvent.bind(xt)(e,t,us({dragEl:$e,parentEl:Qr,ghostEl:Pt,rootEl:Ur,nextEl:Dc,lastDownEl:G_,cloneEl:Zr,cloneHidden:Yl,dragStarted:pp,putSortable:Gn,activeSortable:xt.active,originalEvent:n,oldIndex:Bh,oldDraggableIndex:jp,newIndex:ra,newDraggableIndex:$l,hideGhostForTarget:aY,unhideGhostForTarget:oY,cloneNowHidden:function(){Yl=!0},cloneNowShown:function(){Yl=!1},dispatchSortableEvent:function(a){di({sortable:t,name:a,originalEvent:n})}},i))};function di(e){SLe(us({putSortable:Gn,cloneEl:Zr,targetEl:$e,rootEl:Ur,oldIndex:Bh,oldDraggableIndex:jp,newIndex:ra,newDraggableIndex:$l},e))}var $e,Qr,Pt,Ur,Dc,G_,Zr,Yl,Bh,ra,jp,$l,W0,Gn,Ph=!1,cS=!1,fS=[],gc,ro,JT,QT,O4,N4,pp,xh,Kp,Jp=!1,Y0=!1,$_,Qn,eA=[],N2=!1,hS=[],Mb=typeof document<"u",X0=Z9,F4=bm||cl?"cssFloat":"float",wLe=Mb&&!q9&&!Z9&&"draggable"in document.createElement("div"),rY=function(){if(Mb){if(cl)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),nY=function(e,t){var r=wt(e),n=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=_d(e,0,t),a=_d(e,1,t),o=i&&wt(i),s=a&&wt(a),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+gn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&o.float!=="none"){var c=o.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||l>=n&&r[F4]==="none"||a&&r[F4]==="none"&&l+u>n)?"vertical":"horizontal"},xLe=function(e,t,r){var n=r?e.left:e.top,i=r?e.right:e.bottom,a=r?e.width:e.height,o=r?t.left:t.top,s=r?t.right:t.bottom,l=r?t.width:t.height;return n===o||i===s||n+a/2===o+l/2},CLe=function(e,t){var r;return fS.some(function(n){var i=n[ia].options.emptyInsertThreshold;if(!(!i||UL(n))){var a=gn(n),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return r=n}}),r},iY=function(e){function t(i,a){return function(o,s,l,u){var c=o.options.group.name&&s.options.group.name&&o.options.group.name===s.options.group.name;if(i==null&&(a||c))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return t(i(o,s,l,u),a)(o,s,l,u);var f=(a?o:s).options.group.name;return i===!0||typeof i=="string"&&i===f||i.join&&i.indexOf(f)>-1}}var r={},n=e.group;(!n||z_(n)!="object")&&(n={name:n}),r.name=n.name,r.checkPull=t(n.pull,!0),r.checkPut=t(n.put),r.revertClone=n.revertClone,e.group=r},aY=function(){!rY&&Pt&&wt(Pt,"display","none")},oY=function(){!rY&&Pt&&wt(Pt,"display","")};Mb&&!q9&&document.addEventListener("click",function(e){if(cS)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),cS=!1,!1},!0);var mc=function(e){if($e){e=e.touches?e.touches[0]:e;var t=CLe(e.clientX,e.clientY);if(t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[ia]._onDragOver(r)}}},TLe=function(e){$e&&$e.parentNode[ia]._isOutsideThisEl(e.target)};function xt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=il({},t),e[ia]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return nY(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:xt.supportPointer!==!1&&"PointerEvent"in window&&!Zp,emptyInsertThreshold:5};wm.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);iY(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:wLe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?hr(e,"pointerdown",this._onTapStart):(hr(e,"mousedown",this._onTapStart),hr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(hr(e,"dragover",this),hr(e,"dragenter",this)),fS.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),il(this,mLe())}xt.prototype={constructor:xt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(xh=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,$e):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,n=this.options,i=n.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=n.filter;if(RLe(r),!$e&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Zp&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=lo(s,n.draggable,r,!1),!(s&&s.animated)&&G_!==s)){if(Bh=Pa(s),jp=Pa(s,n.draggable),typeof u=="function"){if(u.call(this,e,s,this)){di({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),Ni("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=lo(l,c.trim(),r,!1),c)return di({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:r,toEl:r}),Ni("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}n.handle&&!lo(l,n.handle,r,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,r){var n=this,i=n.el,a=n.options,o=i.ownerDocument,s;if(r&&!$e&&r.parentNode===i){var l=gn(r);if(Ur=i,$e=r,Qr=$e.parentNode,Dc=$e.nextSibling,G_=r,W0=a.group,xt.dragged=$e,gc={target:$e,clientX:(t||e).clientX,clientY:(t||e).clientY},O4=gc.clientX-l.left,N4=gc.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,$e.style["will-change"]="all",s=function(){if(Ni("delayEnded",n,{evt:e}),xt.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!P4&&n.nativeDraggable&&($e.draggable=!0),n._triggerDragStart(e,t),di({sortable:n,name:"choose",originalEvent:e}),ea($e,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){K9($e,u.trim(),tA)}),hr(o,"dragover",mc),hr(o,"mousemove",mc),hr(o,"touchmove",mc),hr(o,"mouseup",n._onDrop),hr(o,"touchend",n._onDrop),hr(o,"touchcancel",n._onDrop),P4&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$e.draggable=!0),Ni("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(bm||cl))){if(xt.eventCanceled){this._onDrop();return}hr(o,"mouseup",n._disableDelayedDrag),hr(o,"touchend",n._disableDelayedDrag),hr(o,"touchcancel",n._disableDelayedDrag),hr(o,"mousemove",n._delayedDragTouchMoveHandler),hr(o,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&hr(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){$e&&tA($e),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ar(e,"mouseup",this._disableDelayedDrag),ar(e,"touchend",this._disableDelayedDrag),ar(e,"touchcancel",this._disableDelayedDrag),ar(e,"mousemove",this._delayedDragTouchMoveHandler),ar(e,"touchmove",this._delayedDragTouchMoveHandler),ar(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?hr(document,"pointermove",this._onTouchMove):t?hr(document,"touchmove",this._onTouchMove):hr(document,"mousemove",this._onTouchMove):(hr($e,"dragend",this),hr(Ur,"dragstart",this._onDragStart));try{document.selection?H_(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ph=!1,Ur&&$e){Ni("dragStarted",this,{evt:t}),this.nativeDraggable&&hr(document,"dragover",TLe);var r=this.options;!e&&ea($e,r.dragClass,!1),ea($e,r.ghostClass,!0),xt.active=this,e&&this._appendGhost(),di({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ro){this._lastX=ro.clientX,this._lastY=ro.clientY,aY();for(var e=document.elementFromPoint(ro.clientX,ro.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ro.clientX,ro.clientY),e!==t);)t=e;if($e.parentNode[ia]._isOutsideThisEl(e),t)do{if(t[ia]){var r=void 0;if(r=t[ia]._onDragOver({clientX:ro.clientX,clientY:ro.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);oY()}},_onTouchMove:function(e){if(gc){var t=this.options,r=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Pt&&ed(Pt,!0),o=Pt&&a&&a.a,s=Pt&&a&&a.d,l=X0&&Qn&&k4(Qn),u=(i.clientX-gc.clientX+n.x)/(o||1)+(l?l[0]-eA[0]:0)/(o||1),c=(i.clientY-gc.clientY+n.y)/(s||1)+(l?l[1]-eA[1]:0)/(s||1);if(!xt.active&&!Ph){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(di({rootEl:Qr,name:"add",toEl:Qr,fromEl:Ur,originalEvent:e}),di({sortable:this,name:"remove",toEl:Qr,originalEvent:e}),di({rootEl:Qr,name:"sort",toEl:Qr,fromEl:Ur,originalEvent:e}),di({sortable:this,name:"sort",toEl:Qr,originalEvent:e})),Gn&&Gn.save()):ra!==Bh&&ra>=0&&(di({sortable:this,name:"update",toEl:Qr,originalEvent:e}),di({sortable:this,name:"sort",toEl:Qr,originalEvent:e})),xt.active&&((ra==null||ra===-1)&&(ra=Bh,$l=jp),di({sortable:this,name:"end",toEl:Qr,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ni("nulling",this),Ur=$e=Qr=Pt=Dc=Zr=G_=Yl=gc=ro=pp=ra=$l=Bh=jp=xh=Kp=Gn=W0=xt.dragged=xt.ghost=xt.clone=xt.active=null,hS.forEach(function(e){e.checked=!0}),hS.length=JT=QT=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":$e&&(this._onDragOver(e),ALe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,n=0,i=r.length,a=this.options;ni.right+a||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+a||e.clientX>n.right&&e.clientY>n.top}function LLe(e,t,r,n,i,a,o,s){var l=n?e.clientY:e.clientX,u=n?r.height:r.width,c=n?r.top:r.left,f=n?r.bottom:r.right,h=!1;if(!o){if(s&&$_c+u*a/2:lf-$_)return-Kp}else if(l>c+u*(1-i)/2&&lf-u*a/2)?l>c+u/2?1:-1:0}function PLe(e){return Pa($e){if(F&&(i==null?void 0:i.length)!==R.childNodes.length)return P.insertBefore(F,B.nextSibling),!0;const z=R.childNodes[W];F=R==null?void 0:R.replaceChild(B,z)})}}catch(F){N=F}finally{i=null}Af(()=>{if(V4(),N)throw N})}const y={onUpdate:p,onStart:h,onAdd:d,onRemove:v,onEnd:m};function S(D){const M=q(a);return D||(D=rLe(M)?nLe(M,n==null?void 0:n.$el):M),D&&!oLe(D)&&(D=D.$el),D||JIe("Root element not found"),D}function b(){var D;const M=(D=q(s))!=null?D:{},I=Y9(M,["immediate","clone"]);return I4(I,(P,R)=>{sLe(P)&&(I[P]=(N,...O)=>{const F=BLe();return lLe(N,F),R(N,...O)})}),aLe(o===null?{}:y,I)}const w=D=>{D=S(D),l&&C.destroy(),l=new xt(D,b())};Sr(()=>s,()=>{l&&I4(b(),(D,M)=>{l==null||l.option(D,M)})},{deep:!0});const C={option:(D,M)=>l==null?void 0:l.option(D,M),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...D)=>l==null?void 0:l.closest(...D)},x=()=>C==null?void 0:C.option("disabled",!0),A=()=>C==null?void 0:C.option("disabled",!1);return FLe(()=>{u&&w()}),NLe(C.destroy),Fh({start:w,pause:x,resume:A},C)}const z2=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],zLe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...z2.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],G4=qt({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:zLe,emits:["update:modelValue",...z2],setup(e,{slots:t,emit:r,expose:n,attrs:i}){const a=z2.reduce((c,f)=>{const h=`on${f.replace(/^\S/,d=>d.toUpperCase())}`;return c[h]=(...d)=>r(f,...d),c},{}),o=at(()=>{const c=bee(e),f=Y9(c,["modelValue"]),h=Object.entries(f).reduce((d,[v,p])=>{const m=q(p);return m!==void 0&&(d[v]=m),d},{});return Fh(Fh({},a),eLe(Fh(Fh({},i),h)))}),s=at({get:()=>e.modelValue,set:c=>r("update:modelValue",c)}),l=Ye(),u=Du(VLe(e.target||l,s,o));return n(u),()=>{var c;return Wo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),GLe={class:"flex rounded bg-base-200 lg:flex-col"},$Le=qt({__name:"TableSettings",setup(e){const t=Ye(Object.values(or).filter(r=>!Mc.value.includes(r)));return(r,n)=>(oe(),ve(it,null,[X("div",null,Ie(r.$t("customTableColumns"))+":",1),X("div",GLe,[ze(q(G4),{class:"flex flex-1 flex-col gap-2 bg-base-300 p-2 lg:flex-row",modelValue:q(Mc),"onUpdate:modelValue":n[0]||(n[0]=i=>vt(Mc)?Mc.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:ig(()=>[(oe(!0),ve(it,null,lr(q(Mc),i=>(oe(),ve("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},Ie(r.$t(i)),1))),128))]),_:1},8,["modelValue"]),ze(q(G4),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":n[1]||(n[1]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:ig(()=>[(oe(!0),ve(it,null,lr(t.value,i=>(oe(),ve("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content shadow-lg"},Ie(r.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),HLe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},ULe={class:"card card-compact bg-base-100 shadow-lg"},WLe={class:"card-title px-4 pt-4 text-primary"},YLe={class:"indicator"},XLe={key:0,class:"indicator-item flex"},ZLe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},qLe={class:"card-body gap-4"},jLe={class:"flex items-center gap-2"},KLe=["value"],JLe={class:"flex items-center gap-2"},QLe=["value","label"],ePe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},tPe={class:"card card-compact bg-base-100 shadow-lg"},rPe={class:"card-title px-4 pt-4"},nPe={class:"card-body gap-4"},iPe={key:0,class:"flex items-center gap-2"},aPe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},oPe={class:"card card-compact bg-base-100 shadow-lg"},sPe={class:"card-title px-4 pt-4"},lPe={class:"card-body"},uPe={class:"flex items-center gap-2"},cPe=["value"],fPe={class:"flex items-center gap-2"},hPe={class:"flex items-center gap-2"},dPe={key:0,class:"flex items-center gap-2"},vPe={class:"flex items-center gap-2"},pPe={class:"flex items-center gap-2 sm:hidden"},gPe={class:"flex items-center gap-2"},mPe={class:"shrink-0"},yPe={class:"flex items-center gap-2"},_Pe={class:"shrink-0"},SPe={class:"flex items-center gap-2"},bPe={class:"shrink-0"},wPe={class:"shrink-0"},xPe={class:"card card-compact bg-base-100 shadow-lg"},CPe={class:"card-title px-4 pt-4"},TPe={class:"card-body"},APe={class:"flex items-center gap-2"},DPe={key:0,class:"flex items-center gap-2"},MPe=qt({__name:"SettingsPage",setup(e){const t=Ye(!1),r=async()=>{if(!t.value){t.value=!0;try{await Lie(),t.value=!1}catch{t.value=!1}}},n=Ye(!1),i=Ye(!1),a=async()=>{if(!i.value){i.value=!0;try{await Iie(),i.value=!1}catch{i.value=!1}}};ol(async()=>{n.value=await Oie()});const o=Ye(!1),s=async()=>{if(!o.value){o.value=!0;try{await Mie(),o.value=!1}catch{o.value=!1}}},l=async()=>{var h;await g$({tun:{enable:(h=Xo.value)==null?void 0:h.tun.enable}})},u=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"],c=()=>{const h={};for(const m in localStorage)(m.startsWith("config/")||m.startsWith("setup/"))&&(h[m]=localStorage.getItem(m));const d=new Blob([JSON.stringify(h,null,2)],{type:"application/json"}),v=URL.createObjectURL(d),p=document.createElement("a");p.href=v,p.download="zashboard-settings",p.click(),URL.revokeObjectURL(v)},f=()=>{const h=document.createElement("input");h.type="file",h.accept=".json",h.onchange=async()=>{var p;const d=(p=h.files)==null?void 0:p[0];if(!d)return;const v=new FileReader;v.onload=async()=>{const m=JSON.parse(v.result);for(const y in m)localStorage.setItem(y,m[y]);location.reload()},v.readAsText(d)},h.click()};return(h,d)=>{var v;return oe(),ve("div",HLe,[X("div",ULe,[X("div",WLe,[X("div",YLe,[n.value?(oe(),ve("span",XLe,d[17]||(d[17]=[X("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),X("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):Ut("",!0),X("a",ZLe,"zashboard v"+Ie(q(GG)),1)])]),X("div",qLe,[X("div",jLe,[Xt(Ie(h.$t("theme"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":d[0]||(d[0]=p=>vt(r_)?r_.value=p:null)},[(oe(),ve(it,null,lr(u,p=>X("option",{key:p,value:p},Ie(p),9,KLe)),64))],512),[[po,q(r_)]])]),X("div",JLe,[Xt(Ie(h.$t("language"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":d[1]||(d[1]=p=>vt(sa)?sa.value=p:null),onChange:d[2]||(d[2]=()=>q(Db).global.locale=q(sa))},[(oe(!0),ve(it,null,lr(Object.values(q(So)),p=>(oe(),ve("option",{key:p,value:p,label:h.$t(p)},null,8,QLe))),128))],544),[[po,q(sa)]])]),X("div",ePe,[q(Vc)?Ut("",!0):(oe(),ve(it,{key:0},[X("button",{class:Tt(q(Tr)("btn btn-primary btn-xs sm:btn-sm",i.value?"animate-pulse":"")),onClick:a},Ie(h.$t("upgradeUI")),3),d[18]||(d[18]=X("div",{class:"sm:hidden"},null,-1))],64)),X("button",{class:"btn btn-xs sm:btn-sm",onClick:c},Ie(h.$t("exportSettings")),1),X("button",{class:"btn btn-xs sm:btn-sm",onClick:f},Ie(h.$t("importSettings")),1)])])]),X("div",tPe,[X("div",rPe,Ie(h.$t("backend")),1),X("div",nPe,[ze(w$),!q(Vc)&&((v=q(Xo))!=null&&v.tun)?(oe(),ve("div",iPe,[Xt(Ie(h.$t("tunMode"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[3]||(d[3]=p=>q(Xo).tun.enable=p),onChange:l},null,544),[[Ea,q(Xo).tun.enable]])])):Ut("",!0),X("div",aPe,[q(Vc)?Ut("",!0):(oe(),ve(it,{key:0},[X("button",{class:Tt(q(Tr)("btn btn-primary btn-xs sm:btn-sm",t.value?"animate-pulse":"")),onClick:r},Ie(h.$t("upgradeCore")),3),d[19]||(d[19]=X("div",{class:"sm:hidden"},null,-1))],64)),X("button",{class:Tt(q(Tr)("btn btn-xs sm:btn-sm",o.value?"animate-pulse":"")),onClick:s},Ie(h.$t("reloadConfigs")),3),X("button",{class:"btn btn-xs sm:btn-sm",onClick:d[4]||(d[4]=(...p)=>q(yk)&&q(yk)(...p))},Ie(h.$t("flushFakeIP")),1)])])]),X("div",oPe,[X("div",sPe,Ie(h.$t("proxies")),1),X("div",lPe,[X("div",uPe,[Xt(Ie(h.$t("proxyPreviewType"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs","onUpdate:modelValue":d[5]||(d[5]=p=>vt(Dp)?Dp.value=p:null)},[(oe(!0),ve(it,null,lr(Object.values(q(ug)),p=>(oe(),ve("option",{key:p,value:p},Ie(h.$t(p)),9,cPe))),128))],512),[[po,q(Dp)]])]),X("div",fPe,[Xt(Ie(h.$t("truncateProxyName"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[6]||(d[6]=p=>vt(Ap)?Ap.value=p:null)},null,512),[[Ea,q(Ap)]])]),X("div",hPe,[Xt(Ie(h.$t("automaticDisconnection"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[7]||(d[7]=p=>vt(a_)?a_.value=p:null)},null,512),[[Ea,q(a_)]])]),q(Vc)?(oe(),ve("div",dPe,[Xt(Ie(h.$t("showGlobalProxy"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[8]||(d[8]=p=>vt(n_)?n_.value=p:null)},null,512),[[Ea,q(n_)]])])):Ut("",!0),X("div",vPe,[Xt(Ie(h.$t("twoColumnProxyGroup"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[9]||(d[9]=p=>vt(xp)?xp.value=p:null)},null,512),[[Ea,q(xp)]])]),X("div",pPe,[Xt(Ie(h.$t("twoColumnNodeForMobile"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[10]||(d[10]=p=>vt(Jc)?Jc.value=p:null)},null,512),[[Ea,q(Jc)]])]),X("div",gPe,[X("span",mPe,Ie(h.$t("speedtestUrl"))+": ",1),Qt(X("input",{type:"text",class:"input input-sm input-bordered w-60 sm:w-96","onUpdate:modelValue":d[11]||(d[11]=p=>vt(Cp)?Cp.value=p:null)},null,512),[[oa,q(Cp)]])]),X("div",yPe,[X("span",_Pe,Ie(h.$t("speedtestTimeout"))+": ",1),Qt(X("input",{type:"text",class:"input input-sm input-bordered w-60 sm:w-96","onUpdate:modelValue":d[12]||(d[12]=p=>vt(Tp)?Tp.value=p:null)},null,512),[[oa,q(Tp)]])]),X("div",SPe,[X("span",bPe,Ie(h.$t("lowLatencyDesc"))+": ",1),Qt(X("input",{type:"number",class:"input input-sm input-bordered w-16","onUpdate:modelValue":d[13]||(d[13]=p=>vt(Zl)?Zl.value=p:null)},null,512),[[oa,q(Zl)]]),X("span",wPe,Ie(h.$t("mediumLatencyDesc"))+": ",1),Qt(X("input",{type:"number",class:"input input-sm input-bordered w-16","onUpdate:modelValue":d[14]||(d[14]=p=>vt(Ns)?Ns.value=p:null)},null,512),[[oa,q(Ns)]])])])]),X("div",xPe,[X("div",CPe,Ie(h.$t("connections")),1),X("div",TPe,[X("div",APe,[Xt(Ie(h.$t("connectionStyle"))+": "+Ie(h.$t("table"))+" ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[15]||(d[15]=p=>vt(Fc)?Fc.value=p:null)},null,512),[[Ea,q(Fc)]]),Xt(" "+Ie(h.$t("card")),1)]),q(Fc)?(oe(),ve("div",DPe,[Xt(Ie(h.$t("compactCard"))+": ",1),Qt(X("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[16]||(d[16]=p=>vt(s_)?s_.value=p:null)},null,512),[[Ea,q(s_)]])])):(oe(),er($Le,{key:1})),ze(qIe)])])])}}});/*! - * vue-router v4.5.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const Eh=typeof document<"u";function cY(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IPe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&cY(e.default)}const yr=Object.assign;function aA(e,t){const r={};for(const n in t){const i=t[n];r[n]=xo(i)?i.map(e):e(i)}return r}const Qp=()=>{},xo=Array.isArray,fY=/#/g,LPe=/&/g,PPe=/\//g,EPe=/=/g,RPe=/\?/g,hY=/\+/g,kPe=/%5B/g,OPe=/%5D/g,dY=/%5E/g,NPe=/%60/g,vY=/%7B/g,FPe=/%7C/g,pY=/%7D/g,BPe=/%20/g;function XL(e){return encodeURI(""+e).replace(FPe,"|").replace(kPe,"[").replace(OPe,"]")}function VPe(e){return XL(e).replace(vY,"{").replace(pY,"}").replace(dY,"^")}function G2(e){return XL(e).replace(hY,"%2B").replace(BPe,"+").replace(fY,"%23").replace(LPe,"%26").replace(NPe,"`").replace(vY,"{").replace(pY,"}").replace(dY,"^")}function zPe(e){return G2(e).replace(EPe,"%3D")}function GPe(e){return XL(e).replace(fY,"%23").replace(RPe,"%3F")}function $Pe(e){return e==null?"":GPe(e).replace(PPe,"%2F")}function Hg(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const HPe=/\/$/,UPe=e=>e.replace(HPe,"");function oA(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=ZPe(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:Hg(o)}}function WPe(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function $4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function YPe(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Sd(t.matched[n],r.matched[i])&&gY(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Sd(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gY(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XPe(e[r],t[r]))return!1;return!0}function XPe(e,t){return xo(e)?H4(e,t):xo(t)?H4(t,e):e===t}function H4(e,t){return xo(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function ZPe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const kl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ug;(function(e){e.pop="pop",e.push="push"})(Ug||(Ug={}));var eg;(function(e){e.back="back",e.forward="forward",e.unknown=""})(eg||(eg={}));function qPe(e){if(!e)if(Eh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),UPe(e)}const jPe=/^[^#]+#/;function KPe(e,t){return e.replace(jPe,"#")+t}function JPe(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Ib=()=>({left:window.scrollX,top:window.scrollY});function QPe(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=JPe(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function U4(e,t){return(history.state?history.state.position-t:-1)+e}const $2=new Map;function eEe(e,t){$2.set(e,t)}function tEe(e){const t=$2.get(e);return $2.delete(e),t}let rEe=()=>location.protocol+"//"+location.host;function mY(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),$4(l,"")}return $4(r,e)+n+i}function nEe(e,t,r,n){let i=[],a=[],o=null;const s=({state:h})=>{const d=mY(e,location),v=r.value,p=t.value;let m=0;if(h){if(r.value=d,t.value=h,o&&o===v){o=null;return}m=p?h.position-p.position:0}else n(d);i.forEach(y=>{y(r.value,v,{delta:m,type:Ug.pop,direction:m?m>0?eg.forward:eg.back:eg.unknown})})};function l(){o=r.value}function u(h){i.push(h);const d=()=>{const v=i.indexOf(h);v>-1&&i.splice(v,1)};return a.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(yr({},h.state,{scroll:Ib()}),"")}function f(){for(const h of a)h();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function W4(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Ib():null}}function iEe(e){const{history:t,location:r}=window,n={value:mY(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:rEe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),r[c?"replace":"assign"](h)}}function o(l,u){const c=yr({},t.state,W4(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=yr({},i.value,t.state,{forward:l,scroll:Ib()});a(c.current,c,!0);const f=yr({},W4(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function aEe(e){e=qPe(e);const t=iEe(e),r=nEe(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=yr({location:"",base:e,go:n,createHref:KPe.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function oEe(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),aEe(e)}function sEe(e){return typeof e=="string"||e&&typeof e=="object"}function yY(e){return typeof e=="string"||typeof e=="symbol"}const _Y=Symbol("");var Y4;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Y4||(Y4={}));function bd(e,t){return yr(new Error,{type:e,[_Y]:!0},t)}function Ms(e,t){return e instanceof Error&&_Y in e&&(t==null||!!(e.type&t))}const X4="[^/]+?",lEe={sensitive:!1,strict:!1,start:!0,end:!0},uEe=/[.+*?^${}()[\]/\\]/g;function cEe(e,t){const r=yr({},lEe,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function SY(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const hEe={type:0,value:""},dEe=/[a-zA-Z0-9_]/;function vEe(e){if(!e)return[[]];if(e==="/")return[[hEe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${r})/"${u}": ${d}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function f(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;s{o(b)}:Qp}function o(f){if(yY(f)){const h=n.get(f);h&&(n.delete(f),r.splice(r.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=r.indexOf(f);h>-1&&(r.splice(h,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function s(){return r}function l(f){const h=_Ee(f,r);r.splice(h,0,f),f.record.name&&!K4(f)&&n.set(f.record.name,f)}function u(f,h){let d,v={},p,m;if("name"in f&&f.name){if(d=n.get(f.name),!d)throw bd(1,{location:f});m=d.record.name,v=yr(q4(h.params,d.keys.filter(b=>!b.optional).concat(d.parent?d.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&q4(f.params,d.keys.map(b=>b.name))),p=d.stringify(v)}else if(f.path!=null)p=f.path,d=r.find(b=>b.re.test(p)),d&&(v=d.parse(p),m=d.record.name);else{if(d=h.name?n.get(h.name):r.find(b=>b.re.test(h.path)),!d)throw bd(1,{location:f,currentLocation:h});m=d.record.name,v=yr({},h.params,f.params),p=d.stringify(v)}const y=[];let S=d;for(;S;)y.unshift(S.record),S=S.parent;return{name:m,path:p,params:v,matched:y,meta:yEe(y)}}e.forEach(f=>a(f));function c(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function q4(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function j4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mEe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mEe(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function K4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yEe(e){return e.reduce((t,r)=>yr(t,r.meta),{})}function J4(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function _Ee(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;SY(e,t[a])<0?n=a:r=a+1}const i=SEe(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function SEe(e){let t=e;for(;t=t.parent;)if(bY(t)&&SY(e,t)===0)return t}function bY({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bEe(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&G2(a)):[n&&G2(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function wEe(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=xo(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const xEe=Symbol(""),ez=Symbol(""),ZL=Symbol(""),qL=Symbol(""),H2=Symbol("");function qv(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Hl(e,t,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(bd(4,{from:r,to:t})):h instanceof Error?l(h):sEe(h)?l(bd(2,{from:t,to:h})):(o&&n.enterCallbacks[i]===o&&typeof h=="function"&&o.push(h),s())},c=a(()=>e.call(n&&n.instances[i],t,r,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function sA(e,t,r,n,i=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(cY(l)){const c=(l.__vccOpts||l)[t];c&&a.push(Hl(c,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const f=IPe(c)?c.default:c;o.mods[s]=c,o.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&Hl(d,r,n,o,s,i)()}))}}return a}function tz(e){const t=vo(ZL),r=vo(qL),n=at(()=>{const l=q(e.to);return t.resolve(l)}),i=at(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const h=f.findIndex(Sd.bind(null,c));if(h>-1)return h;const d=rz(l[u-2]);return u>1&&rz(c)===d&&f[f.length-1].path!==d?f.findIndex(Sd.bind(null,l[u-2])):h}),a=at(()=>i.value>-1&&MEe(r.params,n.value.params)),o=at(()=>i.value>-1&&i.value===r.matched.length-1&&gY(r.params,n.value.params));function s(l={}){if(DEe(l)){const u=t[q(e.replace)?"replace":"push"](q(e.to)).catch(Qp);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:at(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function CEe(e){return e.length===1?e[0]:e}const TEe=qt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:tz,setup(e,{slots:t}){const r=Du(tz(e)),{options:n}=vo(ZL),i=at(()=>({[nz(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[nz(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&CEe(t.default(r));return e.custom?a:Wo("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),AEe=TEe;function DEe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function MEe(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!xo(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function rz(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nz=(e,t,r)=>e??t??r,IEe=qt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=vo(H2),i=at(()=>e.route||n.value),a=vo(ez,0),o=at(()=>{let u=q(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=at(()=>i.value.matched[o.value]);Q0(ez,at(()=>o.value+1)),Q0(xEe,s),Q0(H2,i);const l=Ye();return Sr(()=>[l.value,s.value,e.name],([u,c,f],[h,d,v])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Sd(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,h=f&&f.components[c];if(!h)return iz(r.default,{Component:h,route:u});const d=f.props[c],v=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=Wo(h,yr({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return iz(r.default,{Component:m,route:u})||m}}});function iz(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const wY=IEe;function LEe(e){const t=gEe(e.routes,e),r=e.parseQuery||bEe,n=e.stringifyQuery||Q4,i=e.history,a=qv(),o=qv(),s=qv(),l=bS(kl);let u=kl;Eh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=aA.bind(null,se=>""+se),f=aA.bind(null,$Pe),h=aA.bind(null,Hg);function d(se,he){let pe,ye;return yY(se)?(pe=t.getRecordMatcher(se),ye=he):ye=se,t.addRoute(ye,pe)}function v(se){const he=t.getRecordMatcher(se);he&&t.removeRoute(he)}function p(){return t.getRoutes().map(se=>se.record)}function m(se){return!!t.getRecordMatcher(se)}function y(se,he){if(he=yr({},he||l.value),typeof se=="string"){const U=oA(r,se,he.path),ie=t.resolve({path:U.path},he),_e=i.createHref(U.fullPath);return yr(U,ie,{params:h(ie.params),hash:Hg(U.hash),redirectedFrom:void 0,href:_e})}let pe;if(se.path!=null)pe=yr({},se,{path:oA(r,se.path,he.path).path});else{const U=yr({},se.params);for(const ie in U)U[ie]==null&&delete U[ie];pe=yr({},se,{params:f(U)}),he.params=f(he.params)}const ye=t.resolve(pe,he),xe=se.hash||"";ye.params=c(h(ye.params));const ke=WPe(n,yr({},se,{hash:VPe(xe),path:ye.path})),H=i.createHref(ke);return yr({fullPath:ke,hash:xe,query:n===Q4?wEe(se.query):se.query||{}},ye,{redirectedFrom:void 0,href:H})}function S(se){return typeof se=="string"?oA(r,se,l.value.path):yr({},se)}function b(se,he){if(u!==se)return bd(8,{from:he,to:se})}function w(se){return A(se)}function C(se){return w(yr(S(se),{replace:!0}))}function x(se){const he=se.matched[se.matched.length-1];if(he&&he.redirect){const{redirect:pe}=he;let ye=typeof pe=="function"?pe(se):pe;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=S(ye):{path:ye},ye.params={}),yr({query:se.query,hash:se.hash,params:ye.path!=null?{}:se.params},ye)}}function A(se,he){const pe=u=y(se),ye=l.value,xe=se.state,ke=se.force,H=se.replace===!0,U=x(pe);if(U)return A(yr(S(U),{state:typeof U=="object"?yr({},xe,U.state):xe,force:ke,replace:H}),he||pe);const ie=pe;ie.redirectedFrom=he;let _e;return!ke&&YPe(n,ye,pe)&&(_e=bd(16,{to:ie,from:ye}),te(ye,ye,!0,!1)),(_e?Promise.resolve(_e):I(ie,ye)).catch(fe=>Ms(fe)?Ms(fe,2)?fe:ee(fe):z(fe,ie,ye)).then(fe=>{if(fe){if(Ms(fe,2))return A(yr({replace:H},S(fe.to),{state:typeof fe.to=="object"?yr({},xe,fe.to.state):xe,force:ke}),he||ie)}else fe=R(ie,ye,!0,H,xe);return P(ie,ye,fe),fe})}function D(se,he){const pe=b(se,he);return pe?Promise.reject(pe):Promise.resolve()}function M(se){const he=Pe.values().next().value;return he&&typeof he.runWithContext=="function"?he.runWithContext(se):se()}function I(se,he){let pe;const[ye,xe,ke]=PEe(se,he);pe=sA(ye.reverse(),"beforeRouteLeave",se,he);for(const U of ye)U.leaveGuards.forEach(ie=>{pe.push(Hl(ie,se,he))});const H=D.bind(null,se,he);return pe.push(H),Ue(pe).then(()=>{pe=[];for(const U of a.list())pe.push(Hl(U,se,he));return pe.push(H),Ue(pe)}).then(()=>{pe=sA(xe,"beforeRouteUpdate",se,he);for(const U of xe)U.updateGuards.forEach(ie=>{pe.push(Hl(ie,se,he))});return pe.push(H),Ue(pe)}).then(()=>{pe=[];for(const U of ke)if(U.beforeEnter)if(xo(U.beforeEnter))for(const ie of U.beforeEnter)pe.push(Hl(ie,se,he));else pe.push(Hl(U.beforeEnter,se,he));return pe.push(H),Ue(pe)}).then(()=>(se.matched.forEach(U=>U.enterCallbacks={}),pe=sA(ke,"beforeRouteEnter",se,he,M),pe.push(H),Ue(pe))).then(()=>{pe=[];for(const U of o.list())pe.push(Hl(U,se,he));return pe.push(H),Ue(pe)}).catch(U=>Ms(U,8)?U:Promise.reject(U))}function P(se,he,pe){s.list().forEach(ye=>M(()=>ye(se,he,pe)))}function R(se,he,pe,ye,xe){const ke=b(se,he);if(ke)return ke;const H=he===kl,U=Eh?history.state:{};pe&&(ye||H?i.replace(se.fullPath,yr({scroll:H&&U&&U.scroll},xe)):i.push(se.fullPath,xe)),l.value=se,te(se,he,pe,H),ee()}let N;function O(){N||(N=i.listen((se,he,pe)=>{if(!Oe.listening)return;const ye=y(se),xe=x(ye);if(xe){A(yr(xe,{replace:!0,force:!0}),ye).catch(Qp);return}u=ye;const ke=l.value;Eh&&eEe(U4(ke.fullPath,pe.delta),Ib()),I(ye,ke).catch(H=>Ms(H,12)?H:Ms(H,2)?(A(yr(S(H.to),{force:!0}),ye).then(U=>{Ms(U,20)&&!pe.delta&&pe.type===Ug.pop&&i.go(-1,!1)}).catch(Qp),Promise.reject()):(pe.delta&&i.go(-pe.delta,!1),z(H,ye,ke))).then(H=>{H=H||R(ye,ke,!1),H&&(pe.delta&&!Ms(H,8)?i.go(-pe.delta,!1):pe.type===Ug.pop&&Ms(H,20)&&i.go(-1,!1)),P(ye,ke,H)}).catch(Qp)}))}let F=qv(),B=qv(),W;function z(se,he,pe){ee(se);const ye=B.list();return ye.length?ye.forEach(xe=>xe(se,he,pe)):console.error(se),Promise.reject(se)}function j(){return W&&l.value!==kl?Promise.resolve():new Promise((se,he)=>{F.add([se,he])})}function ee(se){return W||(W=!se,O(),F.list().forEach(([he,pe])=>se?pe(se):he()),F.reset()),se}function te(se,he,pe,ye){const{scrollBehavior:xe}=e;if(!Eh||!xe)return Promise.resolve();const ke=!pe&&tEe(U4(se.fullPath,0))||(ye||!pe)&&history.state&&history.state.scroll||null;return Af().then(()=>xe(se,he,ke)).then(H=>H&&QPe(H)).catch(H=>z(H,se,he))}const me=se=>i.go(se);let Ae;const Pe=new Set,Oe={currentRoute:l,listening:!0,addRoute:d,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:p,resolve:y,options:e,push:w,replace:C,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:B.add,isReady:j,install(se){const he=this;se.component("RouterLink",AEe),se.component("RouterView",wY),se.config.globalProperties.$router=he,Object.defineProperty(se.config.globalProperties,"$route",{enumerable:!0,get:()=>q(l)}),Eh&&!Ae&&l.value===kl&&(Ae=!0,w(i.location).catch(xe=>{}));const pe={};for(const xe in kl)Object.defineProperty(pe,xe,{get:()=>l.value[xe],enumerable:!0});se.provide(ZL,he),se.provide(qL,Lz(pe)),se.provide(H2,l);const ye=se.unmount;Pe.add(se),se.unmount=function(){Pe.delete(se),Pe.size<1&&(u=kl,N&&N(),N=null,l.value=kl,Ae=!1,W=!1),ye()}}};function Ue(se){return se.reduce((he,pe)=>he.then(()=>M(pe)),Promise.resolve())}return Oe}function PEe(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oSd(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Sd(u,l))||i.push(l))}return[r,n,i]}function xY(e){return vo(qL)}const xm=LEe({history:oEe("./"),routes:[{path:"/proxies",name:Pr.proxies,component:RIe},{path:"/connections",name:Pr.connections,component:TMe},{path:"/logs",name:Pr.logs,component:LMe},{path:"/rules",name:Pr.rules,component:UIe},{path:"/settings",name:Pr.settings,component:MPe},{path:"/:catchAll(.*)",redirect:Pr.proxies}]}),az=Ire("zashboard"),CY=e=>{typeof e=="string"&&ql.value?az.value=`zashboard | ${Db.global.t(e)}`:az.value="zashboard"};xm.afterEach(e=>{CY(e.name)});Sr(sa,()=>{CY(xm.currentRoute.value.name)});const EEe={class:"flex flex-col gap-4 text-xs"},REe={class:"flex flex-col items-center justify-center"},kEe={class:"flex flex-col items-center justify-center"},OEe={class:"flex flex-col items-center justify-center"},NEe={class:"flex flex-col items-center justify-center"},FEe={class:"flex flex-col items-center justify-center"},BEe=qt({__name:"VerticalInfos",setup(e){return(t,r)=>(oe(),ve("div",EEe,[X("div",REe,[ze(q(_M),{class:"h-4 w-4"}),Xt(" "+Ie(q(Yo).length),1)]),X("div",kEe,[ze(q(ZG),{class:"h-4 w-4"}),Xt(" "+Ie(q(Wr)(q(n1)))+" ",1),X("span",null,Ie(q(Wr)(q(xM)))+"/s ",1)]),X("div",OEe,[ze(q(jG),{class:"h-4 w-4"}),Xt(" "+Ie(q(Wr)(q(i1)))+" ",1),X("span",null,Ie(q(Wr)(q(CM)))+"/s ",1)]),X("div",NEe,[ze(q(Qie),{class:"h-4 w-4"}),Xt(" "+Ie(q(Wr)(q(wM),{binary:!0})),1)]),X("div",FEe,[X("button",{class:"btn btn-circle btn-sm",onClick:r[0]||(r[0]=n=>Kc.value=!1)},[ze(q(Kie),{class:"h-5 w-5"})])])]))}}),VEe={class:"drawer-side z-30"},zEe={class:"menu flex-1 pb-0"},GEe=["onClick"],$Ee={class:"card bg-base-100 shadow-lg"},HEe=qt({__name:"SideBar",setup(e){const t={[Pr.connections]:d$,[Pr.logs]:v$,[Pr.proxies]:_$,[Pr.rules]:b$},r={[Pr.proxies]:e$,[Pr.connections]:_M,[Pr.rules]:o$,[Pr.logs]:QG,[Pr.settings]:JG},n=at(()=>i.name?t[i.name]:null),i=xY(),a=Object.values(Pr);return(o,s)=>(oe(),ve("div",VEe,[s[0]||(s[0]=X("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),X("div",{class:Tt(q(Tr)("flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",q(Kc)?"w-18 px-0":"w-[21rem]"))},[X("ul",zEe,[(oe(!0),ve(it,null,lr(q(a),l=>(oe(),ve("li",{key:l},[X("a",{class:Tt(l===q(i).name?"active":"inactive"),onClick:()=>q(xm).push({name:l})},[(oe(),er(du(r[l]),{class:"h-5 w-5"})),q(Kc)?Ut("",!0):(oe(),ve(it,{key:0},[Xt(Ie(o.$t(l)),1)],64))],10,GEe)]))),128))]),q(Kc)?(oe(),er(BEe,{key:0})):(oe(),ve(it,{key:1},[X("div",$Ee,[n.value?(oe(),er(du(n.value),{key:0})):Ut("",!0),ze(coe)]),ze(f2e)],64))],2)]))}}),UEe={class:"w-128 drawer md:drawer-open"},WEe={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/50 md:relative md:w-auto"},YEe={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},XEe={class:"menu menu-horizontal flex flex-1"},ZEe=["href"],qEe={for:"sidebar"},jEe={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content shadow-lg"},KEe=qt({__name:"HomePage",setup(e){const t=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[Pr.proxies]:e$,[Pr.connections]:_M,[Pr.rules]:o$,[Pr.logs]:QG,[Pr.settings]:JG},n={[Pr.connections]:d$,[Pr.logs]:v$,[Pr.proxies]:_$,[Pr.rules]:b$},i=xY(),a=Object.values(Pr),o=at(()=>n[i.name]),{proxiesTabShow:s}=NS();return Sr(Fs,()=>{Lp.value=nd.RULES,s.value=hf.PROXIES,p$(),id(),s1(),Nie(),AA(),roe()},{immediate:!0}),(l,u)=>(oe(),ve("div",UEe,[u[0]||(u[0]=X("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ze(HEe),X("div",WEe,[o.value&&q(Kc)?(oe(),er(du(o.value),{key:0,horizontal:!0})):Ut("",!0),ze(q(wY),{class:Tt(`${q(t)?"mb-24":"mb-12"} md:mb-0`)},null,8,["class"]),X("div",{class:Tt(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${q(t)?"h-24 pb-12":"h-12"}`)},[X("div",YEe,[X("ul",XEe,[(oe(!0),ve(it,null,lr(q(a),c=>(oe(),ve("li",{key:c,class:"flex-1"},[X("a",{class:Tt(["flex items-center justify-center",c===q(i).name?"active":"inactive"]),href:`#${c}`},[(oe(),er(du(r[c]),{class:"h-5 w-5"}))],10,ZEe)]))),128))]),X("label",qEe,[X("div",jEe,[ze(q(Jie),{class:"h-4 w-4"})])])])],2)])]))}}),JEe={class:"flex h-full w-full items-center justify-center"},QEe={key:0,class:"toast toast-start toast-top max-w-64 whitespace-normal text-sm"},eRe={class:"breaks-all alert alert-warning w-72 whitespace-normal"},tRe={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank"},rRe={class:"absolute bottom-4 right-4"},nRe=["value","label"],iRe={class:"rounded-lg bg-base-100 p-6 shadow-lg"},aRe={class:"mb-4 text-2xl font-semibold"},oRe={class:"form-control mb-4"},sRe={class:"label"},lRe={class:"label-text"},uRe={class:"form-control mb-4"},cRe={class:"label"},fRe={class:"label-text"},hRe={class:"form-control mb-4"},dRe={class:"label"},vRe={class:"label-text"},pRe={class:"form-control"},gRe={class:"label"},mRe={class:"label-text"},yRe={class:"flex flex-col gap-2 pt-4"},_Re=["onClick"],SRe=["onClick"],bRe=qt({__name:"SetupPage",setup(e){var a,o;const t=Du({protocol:"http",host:"127.0.0.1",port:9090,password:""}),r=Ye(!1),n=async(s,l=!1)=>{const{protocol:u,host:c,port:f,password:h}=s;if(!u||!c||!f){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&u==="http"&&!l&&(r.value=!0,setTimeout(()=>{r.value=!1},1e4));const d=await fetch(`${u}://${c}:${f}/version`,{method:"GET",headers:{Authorization:`Bearer ${h}`}}),{version:v,message:p}=await d.json();if(!v){l||alert(p);return}zre(s),xm.push({name:"proxies"})},i=new URLSearchParams(window.location.search||((o=(a=location.hash.match(/\?.*$/))==null?void 0:a[0])==null?void 0:o.replace("?","")));return i.has("hostname")?n({protocol:window.location.protocol.replace(":",""),host:i.get("hostname"),port:Number(i.get("port")),password:i.get("secret")}):n(t,!0),(s,l)=>(oe(),ve("div",JEe,[r.value?(oe(),ve("div",QEe,[X("div",eRe,[X("a",tRe,Ie(s.$t("protocolTips")),1)])])):Ut("",!0),X("div",rRe,[Xt(Ie(s.$t("language"))+": ",1),Qt(X("select",{class:"select select-bordered select-xs w-48","onUpdate:modelValue":l[0]||(l[0]=u=>vt(sa)?sa.value=u:null),onChange:l[1]||(l[1]=()=>q(Db).global.locale=q(sa))},[(oe(!0),ve(it,null,lr(Object.values(q(So)),u=>(oe(),ve("option",{key:u,value:u,label:s.$t(u)},null,8,nRe))),128))],544),[[po,q(sa)]])]),X("div",iRe,[X("h1",aRe,Ie(s.$t("setup")),1),X("div",oRe,[X("label",sRe,[X("span",lRe,Ie(s.$t("protocol")),1)]),Qt(X("select",{class:"select select-bordered w-full","onUpdate:modelValue":l[2]||(l[2]=u=>t.protocol=u)},l[7]||(l[7]=[X("option",{value:"http"},"HTTP",-1),X("option",{value:"https"},"HTTPS",-1)]),512),[[po,t.protocol]])]),X("div",uRe,[X("label",cRe,[X("span",fRe,Ie(s.$t("host")),1)]),Qt(X("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":l[3]||(l[3]=u=>t.host=u)},null,512),[[oa,t.host]])]),X("div",hRe,[X("label",dRe,[X("span",vRe,Ie(s.$t("port")),1)]),Qt(X("input",{type:"text",class:"input input-bordered w-full","onUpdate:modelValue":l[4]||(l[4]=u=>t.port=u)},null,512),[[oa,t.port]])]),X("div",pRe,[X("label",gRe,[X("span",mRe,Ie(s.$t("password")),1)]),Qt(X("input",{type:"password",class:"input input-bordered w-full","onUpdate:modelValue":l[5]||(l[5]=u=>t.password=u)},null,512),[[oa,t.password]])]),X("button",{class:"btn btn-primary mt-4 w-full",onClick:l[6]||(l[6]=u=>n(t))},Ie(s.$t("submit")),1),X("div",yRe,[(oe(!0),ve(it,null,lr(q(pf),u=>(oe(),ve("div",{key:u.uuid,class:"flex items-center gap-2"},[X("button",{class:"btn btn-xs flex-1",onClick:c=>Fs.value=u.uuid},Ie(u.protocol)+"://"+Ie(u.host)+":"+Ie(u.port),9,_Re),X("button",{class:"btn btn-circle btn-xs",onClick:()=>q(Gre)(u.uuid)},[ze(q(r$),{class:"h-4 w-4"})],8,SRe)]))),128))])])]))}}),wRe=["data-theme"],xRe=qt({__name:"App",setup(e){const t=Ye();return ol(()=>{const r=getComputedStyle(t.value).getPropertyValue("background-color").trim(),n=document.querySelector('meta[name="theme-color"]');n&&n.setAttribute("content",r)}),(r,n)=>(oe(),ve("div",{ref_key:"app",ref:t,class:"font-twemoji flex h-dvh w-screen overflow-x-hidden bg-base-100","data-theme":q(r_)},[q(ql)?(oe(),er(KEe,{key:1})):(oe(),er(bRe,{key:0}))],8,wRe))}}),jL=are(xRe);hu.extend(NQ);jL.use(xm);jL.use(Db);jL.mount("#app"); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html b/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html index c6245060d..d678f4fe9 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html @@ -1,16 +1,55 @@ - + - + zashboard - - - - - - - - + + + + + + + + + + +
diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js index b91dadaba..8f20b20ba 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(i[c])return;let f={};const o=e=>s(e,c),d={module:{uri:c},exports:f,require:o};i[c]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(r(...e),f)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BpMWcX30.css",revision:null},{url:"assets/index-Eir5DzNE.js",revision:null},{url:"index.html",revision:"81dcf3167b5ce1226484c65c1c5f3282"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let d={};const o=e=>s(e,f),c={module:{uri:f},exports:d,require:o};i[f]=Promise.all(n.map((e=>c[e]||o(e)))).then((e=>(r(...e),d)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BYhhgJN7.css",revision:null},{url:"assets/index-D9NwuV-C.js",revision:null},{url:"index.html",revision:"cfdf488d6346498f0e0c29ee500f6038"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt b/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt index 388ceb4fb..4799ffed4 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt @@ -1 +1 @@ -v1.19.0 \ No newline at end of file +v1.29.0 \ No newline at end of file diff --git a/luci-app-store/Makefile b/luci-app-store/Makefile index f738e2183..53b069522 100644 --- a/luci-app-store/Makefile +++ b/luci-app-store/Makefile @@ -11,7 +11,7 @@ LUCI_DEPENDS:=+curl +opkg +luci-base +tar +libuci-lua +mount-utils +luci-lib-tas LUCI_EXTRA_DEPENDS:=luci-lib-taskd (>=1.0.19) LUCI_PKGARCH:=all -PKG_VERSION:=0.1.27-2 +PKG_VERSION:=0.1.27-3 # PKG_RELEASE MUST be empty for luci.mk PKG_RELEASE:= diff --git a/luci-app-store/root/bin/is-opkg b/luci-app-store/root/bin/is-opkg index ab5470a8c..0566af268 100755 --- a/luci-app-store/root/bin/is-opkg +++ b/luci-app-store/root/bin/is-opkg @@ -74,7 +74,7 @@ opkg_wrap_mirrors() { alias fcurl='curl -L --fail --show-error' check_space() { - local free="$((`df -k / | awk 'NR==2 {print $4}'` >> 10 ))" + local free="$((`df -kP / | awk 'NR==2 {print $4}'` >> 10 ))" if [ "$free" -lt 1 ]; then echo "Root disk full!" >&2 exit 1