Files
small-package/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-DgxkpWtA.js
2025-09-23 16:29:53 +08:00

195 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/**
* @vue/shared v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function fi(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const sn={},Qf=[],li=()=>{},Uf=()=>!1,Nc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Aw=e=>e.startsWith("onUpdate:"),un=Object.assign,Pw=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mee=Object.prototype.hasOwnProperty,yn=(e,t)=>Mee.call(e,t),st=Array.isArray,ed=e=>Ud(e)==="[object Map]",Fc=e=>Ud(e)==="[object Set]",J2=e=>Ud(e)==="[object Date]",QU=e=>Ud(e)==="[object RegExp]",At=e=>typeof e=="function",kt=e=>typeof e=="string",ao=e=>typeof e=="symbol",Cn=e=>e!==null&&typeof e=="object",Rw=e=>(Cn(e)||At(e))&&At(e.then)&&At(e.catch),iR=Object.prototype.toString,Ud=e=>iR.call(e),eV=e=>Ud(e).slice(8,-1),Oy=e=>Ud(e)==="[object Object]",Mw=e=>kt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ql=fi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tV=fi("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Dw=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Dee=/-\w/g,Zn=Dw(e=>e.replace(Dee,t=>t.slice(1).toUpperCase())),Oee=/\B([A-Z])/g,Ni=Dw(e=>e.replace(Oee,"-$1").toLowerCase()),$c=Dw(e=>e.charAt(0).toUpperCase()+e.slice(1)),td=Dw(e=>e?`on${$c(e)}`:""),Li=(e,t)=>!Object.is(e,t),nd=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},oR=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Lm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},km=e=>{const t=kt(e)?Number(e):NaN;return isNaN(t)?e:t};let eN;const Ly=()=>eN||(eN=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Lee=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function kee(e){return Lee.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function Nee(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const Fee={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},$ee={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"CACHED",[-2]:"BAIL"},Bee={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},Uee={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},Vee={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},Hee="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",aR=fi(Hee),zee=aR,tN=2;function nV(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const i=r.filter((s,l)=>l%2===1);r=r.filter((s,l)=>l%2===0);let o=0;const a=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+(i[s]&&i[s].length||0),o>=t){for(let l=s-tN;l<=s+tN||n>o;l++){if(l<0||l>=r.length)continue;const u=l+1;a.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${r[l]}`);const c=r[l].length,f=i[l]&&i[l].length||0;if(l===s){const h=t-(o-(c+f)),d=Math.max(1,n>o?c-h:n-t);a.push(" | "+" ".repeat(h)+"^".repeat(d))}else if(l>s){if(n>o){const h=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(h))}o+=c+f}}break}return a.join(`
`)}function Kn(e){if(st(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=kt(r)?sR(r):Kn(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(kt(e)||Cn(e))return e}const Gee=/;(?![^(]*\))/g,Wee=/:([^]+)/,jee=/\/\*[^]*?\*\//g;function sR(e){const t={};return e.replace(jee,"").split(Gee).forEach(n=>{if(n){const r=n.split(Wee);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Yee(e){if(!e)return"";if(kt(e))return e;let t="";for(const n in e){const r=e[n];if(kt(r)||typeof r=="number"){const i=n.startsWith("--")?n:Ni(n);t+=`${i}:${r};`}}return t}function ct(e){let t="";if(kt(e))t=e;else if(st(e))for(let n=0;n<e.length;n++){const r=ct(e[n]);r&&(t+=r+" ")}else if(Cn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function rV(e){if(!e)return null;let{class:t,style:n}=e;return t&&!kt(t)&&(e.class=ct(t)),n&&(e.style=Kn(n)),e}const Xee="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Kee="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Zee="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",qee="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",iV=fi(Xee),oV=fi(Kee),aV=fi(Zee),sV=fi(qee),lV="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",uV=fi(lV),Jee=fi(lV+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function lR(e){return!!e||e===""}const Qee=/[>/="'\u0009\u000a\u000c\u0020]/,bC={};function ete(e){if(bC.hasOwnProperty(e))return bC[e];const t=Qee.test(e);return t&&console.error(`unsafe attribute name: ${e}`),bC[e]=!t}const tte={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},nte=fi("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),rte=fi("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),ite=fi("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function ote(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const ate=/["'&<>]/;function ste(e){const t=""+e,n=ate.exec(t);if(!n)return t;let r="",i,o,a=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}a!==o&&(r+=t.slice(a,o)),a=o+1,r+=i}return a!==o?r+t.slice(a,o):r}const lte=/^-?>|<!--|-->|--!>|<!-$/g;function ute(e){return e.replace(lte,"")}const cV=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function cte(e,t){return e.replace(cV,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function fte(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=uu(e[r],t[r]);return n}function uu(e,t){if(e===t)return!0;let n=J2(e),r=J2(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ao(e),r=ao(t),n||r)return e===t;if(n=st(e),r=st(t),n||r)return n&&r?fte(e,t):!1;if(n=Cn(e),r=Cn(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!uu(e[a],t[a]))return!1}}return String(e)===String(t)}function ky(e,t){return e.findIndex(n=>uu(n,t))}const fV=e=>!!(e&&e.__v_isRef===!0),q=e=>kt(e)?e:e==null?"":st(e)||Cn(e)&&(e.toString===iR||!At(e.toString))?fV(e)?q(e.value):JSON.stringify(e,dV,2):String(e),dV=(e,t)=>fV(t)?dV(e,t.value):ed(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[SC(r,o)+" =>"]=i,n),{})}:Fc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>SC(n))}:ao(t)?SC(t):Cn(t)&&!st(t)&&!Oy(t)?String(t):t,SC=(e,t="")=>{var n;return ao(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function hV(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const dte=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Qf,EMPTY_OBJ:sn,NO:Uf,NOOP:li,PatchFlagNames:$ee,PatchFlags:Fee,ShapeFlags:Bee,SlotFlags:Uee,camelize:Zn,capitalize:$c,cssVarNameEscapeSymbolsRE:cV,def:oR,escapeHtml:ste,escapeHtmlComment:ute,extend:un,genCacheKey:Nee,genPropsAccessExp:kee,generateCodeFrame:nV,getEscapedCssVarName:cte,getGlobalThis:Ly,hasChanged:Li,hasOwn:yn,hyphenate:Ni,includeBooleanAttr:lR,invokeArrayFns:nd,isArray:st,isBooleanAttr:Jee,isBuiltInDirective:tV,isDate:J2,isFunction:At,isGloballyAllowed:aR,isGloballyWhitelisted:zee,isHTMLTag:iV,isIntegerKey:Mw,isKnownHtmlAttr:nte,isKnownMathMLAttr:ite,isKnownSvgAttr:rte,isMap:ed,isMathMLTag:aV,isModelListener:Aw,isObject:Cn,isOn:Nc,isPlainObject:Oy,isPromise:Rw,isRegExp:QU,isRenderableAttrValue:ote,isReservedProp:Ql,isSSRSafeAttrName:ete,isSVGTag:oV,isSet:Fc,isSpecialBooleanAttr:uV,isString:kt,isSymbol:ao,isVoidTag:sV,looseEqual:uu,looseIndexOf:ky,looseToNumber:Lm,makeMap:fi,normalizeClass:ct,normalizeCssVarValue:hV,normalizeProps:rV,normalizeStyle:Kn,objectToString:iR,parseStringStyle:sR,propsToAttrMap:tte,remove:Pw,slotFlagsText:Vee,stringifyStyle:Yee,toDisplayString:q,toHandlerKey:td,toNumber:km,toRawType:eV,toTypeString:Ud},Symbol.toStringTag,{value:"Module"}));/**
* @vue/reactivity v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Mi;class uR{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Mi,!t&&Mi&&(this.index=(Mi.scopes||(Mi.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Mi;try{return Mi=this,t()}finally{Mi=n}}}on(){++this._on===1&&(this.prevScope=Mi,Mi=this)}off(){this._on>0&&--this._on===0&&(Mi=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function pV(e){return new uR(e)}function cR(){return Mi}function fR(e,t=!1){Mi&&Mi.cleanups.push(e)}let Xn;const wC=new WeakSet;class Nm{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Mi&&Mi.active&&Mi.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,wC.has(this)&&(wC.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gV(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nN(this),mV(this);const t=Xn,n=ds;Xn=this,ds=!0;try{return this.fn()}finally{yV(this),Xn=t,ds=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)pR(t);this.deps=this.depsTail=void 0,nN(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?wC.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Q2(this)&&this.run()}get dirty(){return Q2(this)}}let vV=0,Yg,Xg;function gV(e,t=!1){if(e.flags|=8,t){e.next=Xg,Xg=e;return}e.next=Yg,Yg=e}function dR(){vV++}function hR(){if(--vV>0)return;if(Xg){let t=Xg;for(Xg=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Yg;){let t=Yg;for(Yg=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function mV(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yV(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),pR(r),hte(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Q2(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_V(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _V(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Fm)||(e.globalVersion=Fm,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Q2(e))))return;e.flags|=2;const t=e.dep,n=Xn,r=ds;Xn=e,ds=!0;try{mV(e);const i=e.fn(e._value);(t.version===0||Li(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Xn=n,ds=r,yV(e),e.flags&=-3}}function pR(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)pR(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function hte(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function pte(e,t){e.effect instanceof Nm&&(e=e.effect.fn);const n=new Nm(e);t&&un(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function vte(e){e.effect.stop()}let ds=!0;const bV=[];function cu(){bV.push(ds),ds=!1}function fu(){const e=bV.pop();ds=e===void 0?!0:e}function nN(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Xn;Xn=void 0;try{t()}finally{Xn=n}}}let Fm=0;class gte{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ow{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,this.__v_skip=!0}track(t){if(!Xn||!ds||Xn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Xn)n=this.activeLink=new gte(Xn,this),Xn.deps?(n.prevDep=Xn.depsTail,Xn.depsTail.nextDep=n,Xn.depsTail=n):Xn.deps=Xn.depsTail=n,SV(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Xn.depsTail,n.nextDep=void 0,Xn.depsTail.nextDep=n,Xn.depsTail=n,Xn.deps===n&&(Xn.deps=r)}return n}trigger(t){this.version++,Fm++,this.notify(t)}notify(t){dR();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{hR()}}}function SV(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)SV(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const tS=new WeakMap,rd=Symbol(""),eI=Symbol(""),$m=Symbol("");function ki(e,t,n){if(ds&&Xn){let r=tS.get(e);r||tS.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Ow),i.map=r,i.key=n),i.track()}}function Vl(e,t,n,r,i,o){const a=tS.get(e);if(!a){Fm++;return}const s=l=>{l&&l.trigger()};if(dR(),t==="clear")a.forEach(s);else{const l=st(e),u=l&&Mw(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,h)=>{(h==="length"||h===$m||!ao(h)&&h>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get($m)),t){case"add":l?u&&s(a.get("length")):(s(a.get(rd)),ed(e)&&s(a.get(eI)));break;case"delete":l||(s(a.get(rd)),ed(e)&&s(a.get(eI)));break;case"set":ed(e)&&s(a.get(rd));break}}hR()}function mte(e,t){const n=tS.get(e);return n&&n.get(t)}function fh(e){const t=vn(e);return t===e?t:(ki(t,"iterate",$m),ia(e)?t:t.map(mi))}function Lw(e){return ki(e=vn(e),"iterate",$m),e}const yte={__proto__:null,[Symbol.iterator](){return xC(this,Symbol.iterator,mi)},concat(...e){return fh(this).concat(...e.map(t=>st(t)?fh(t):t))},entries(){return xC(this,"entries",e=>(e[1]=mi(e[1]),e))},every(e,t){return Tl(this,"every",e,t,void 0,arguments)},filter(e,t){return Tl(this,"filter",e,t,n=>n.map(mi),arguments)},find(e,t){return Tl(this,"find",e,t,mi,arguments)},findIndex(e,t){return Tl(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Tl(this,"findLast",e,t,mi,arguments)},findLastIndex(e,t){return Tl(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Tl(this,"forEach",e,t,void 0,arguments)},includes(...e){return TC(this,"includes",e)},indexOf(...e){return TC(this,"indexOf",e)},join(e){return fh(this).join(e)},lastIndexOf(...e){return TC(this,"lastIndexOf",e)},map(e,t){return Tl(this,"map",e,t,void 0,arguments)},pop(){return Nv(this,"pop")},push(...e){return Nv(this,"push",e)},reduce(e,...t){return rN(this,"reduce",e,t)},reduceRight(e,...t){return rN(this,"reduceRight",e,t)},shift(){return Nv(this,"shift")},some(e,t){return Tl(this,"some",e,t,void 0,arguments)},splice(...e){return Nv(this,"splice",e)},toReversed(){return fh(this).toReversed()},toSorted(e){return fh(this).toSorted(e)},toSpliced(...e){return fh(this).toSpliced(...e)},unshift(...e){return Nv(this,"unshift",e)},values(){return xC(this,"values",mi)}};function xC(e,t,n){const r=Lw(e),i=r[t]();return r!==e&&!ia(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const _te=Array.prototype;function Tl(e,t,n,r,i,o){const a=Lw(e),s=a!==e&&!ia(e),l=a[t];if(l!==_te[t]){const f=l.apply(e,o);return s?mi(f):f}let u=n;a!==e&&(s?u=function(f,h){return n.call(this,mi(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function rN(e,t,n,r){const i=Lw(e);let o=n;return i!==e&&(ia(e)?n.length>3&&(o=function(a,s,l){return n.call(this,a,s,l,e)}):o=function(a,s,l){return n.call(this,a,mi(s),l,e)}),i[t](o,...r)}function TC(e,t,n){const r=vn(e);ki(r,"iterate",$m);const i=r[t](...n);return(i===-1||i===!1)&&Fw(n[0])?(n[0]=vn(n[0]),r[t](...n)):i}function Nv(e,t,n=[]){cu(),dR();const r=vn(e)[t].apply(e,n);return hR(),fu(),r}const bte=fi("__proto__,__v_isRef,__isVue"),wV=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ao));function Ste(e){ao(e)||(e=String(e));const t=vn(this);return ki(t,"has",e),t.hasOwnProperty(e)}class xV{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?PV:AV:o?IV:EV).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=st(t);if(!i){let l;if(a&&(l=yte[n]))return l;if(n==="hasOwnProperty")return Ste}const s=Reflect.get(t,n,rt(t)?t:r);return(ao(n)?wV.has(n):bte(n))||(i||ki(t,"get",n),o)?s:rt(s)?a&&Mw(n)?s:s.value:Cn(s)?i?Ny(s):Hi(s):s}}class TV extends xV{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=du(o);if(!ia(r)&&!du(r)&&(o=vn(o),r=vn(r)),!st(t)&&rt(o)&&!rt(r))return l||(o.value=r),!0}const a=st(t)&&Mw(n)?Number(n)<t.length:yn(t,n),s=Reflect.set(t,n,r,rt(t)?t:i);return t===vn(i)&&(a?Li(r,o)&&Vl(t,"set",n,r):Vl(t,"add",n,r)),s}deleteProperty(t,n){const r=yn(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&Vl(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!ao(n)||!wV.has(n))&&ki(t,"has",n),r}ownKeys(t){return ki(t,"iterate",st(t)?"length":rd),Reflect.ownKeys(t)}}class CV extends xV{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const wte=new TV,xte=new CV,Tte=new TV(!0),Cte=new CV(!0),tI=e=>e,d1=e=>Reflect.getPrototypeOf(e);function Ete(e,t,n){return function(...r){const i=this.__v_raw,o=vn(i),a=ed(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?tI:t?nS:mi;return!t&&ki(o,"iterate",l?eI:rd),{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 h1(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ite(e,t){const n={get(i){const o=this.__v_raw,a=vn(o),s=vn(i);e||(Li(i,s)&&ki(a,"get",i),ki(a,"get",s));const{has:l}=d1(a),u=t?tI:e?nS:mi;if(l.call(a,i))return u(o.get(i));if(l.call(a,s))return u(o.get(s));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&ki(vn(i),"iterate",rd),i.size},has(i){const o=this.__v_raw,a=vn(o),s=vn(i);return e||(Li(i,s)&&ki(a,"has",i),ki(a,"has",s)),i===s?o.has(i):o.has(i)||o.has(s)},forEach(i,o){const a=this,s=a.__v_raw,l=vn(s),u=t?tI:e?nS:mi;return!e&&ki(l,"iterate",rd),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return un(n,e?{add:h1("add"),set:h1("set"),delete:h1("delete"),clear:h1("clear")}:{add(i){!t&&!ia(i)&&!du(i)&&(i=vn(i));const o=vn(this);return d1(o).has.call(o,i)||(o.add(i),Vl(o,"add",i,i)),this},set(i,o){!t&&!ia(o)&&!du(o)&&(o=vn(o));const a=vn(this),{has:s,get:l}=d1(a);let u=s.call(a,i);u||(i=vn(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?Li(o,c)&&Vl(a,"set",i,o):Vl(a,"add",i,o),this},delete(i){const o=vn(this),{has:a,get:s}=d1(o);let l=a.call(o,i);l||(i=vn(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&Vl(o,"delete",i,void 0),u},clear(){const i=vn(this),o=i.size!==0,a=i.clear();return o&&Vl(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Ete(i,e,t)}),n}function kw(e,t){const n=Ite(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(yn(n,i)&&i in r?n:r,i,o)}const Ate={get:kw(!1,!1)},Pte={get:kw(!1,!0)},Rte={get:kw(!0,!1)},Mte={get:kw(!0,!0)},EV=new WeakMap,IV=new WeakMap,AV=new WeakMap,PV=new WeakMap;function Dte(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ote(e){return e.__v_skip||!Object.isExtensible(e)?0:Dte(eV(e))}function Hi(e){return du(e)?e:Nw(e,!1,wte,Ate,EV)}function vR(e){return Nw(e,!1,Tte,Pte,IV)}function Ny(e){return Nw(e,!0,xte,Rte,AV)}function Lte(e){return Nw(e,!0,Cte,Mte,PV)}function Nw(e,t,n,r,i){if(!Cn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ote(e);if(o===0)return e;const a=i.get(e);if(a)return a;const s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function mc(e){return du(e)?mc(e.__v_raw):!!(e&&e.__v_isReactive)}function du(e){return!!(e&&e.__v_isReadonly)}function ia(e){return!!(e&&e.__v_isShallow)}function Fw(e){return e?!!e.__v_raw:!1}function vn(e){const t=e&&e.__v_raw;return t?vn(t):e}function RV(e){return!yn(e,"__v_skip")&&Object.isExtensible(e)&&oR(e,"__v_skip",!0),e}const mi=e=>Cn(e)?Hi(e):e,nS=e=>Cn(e)?Ny(e):e;function rt(e){return e?e.__v_isRef===!0:!1}function Te(e){return MV(e,!1)}function Lr(e){return MV(e,!0)}function MV(e,t){return rt(e)?e:new kte(e,t)}class kte{constructor(t,n){this.dep=new Ow,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:vn(t),this._value=n?t:mi(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ia(t)||du(t);t=r?t:vn(t),Li(t,n)&&(this._rawValue=t,this._value=r?t:mi(t),this.dep.trigger())}}function nI(e){e.dep&&e.dep.trigger()}function L(e){return rt(e)?e.value:e}function tr(e){return At(e)?e():L(e)}const Nte={get:(e,t,n)=>t==="__v_raw"?e:L(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return rt(i)&&!rt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function gR(e){return mc(e)?e:new Proxy(e,Nte)}class Fte{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ow,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function $w(e){return new Fte(e)}function $te(e){const t=st(e)?new Array(e.length):{};for(const n in e)t[n]=OV(e,n);return t}class Bte{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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 mte(vn(this._object),this._key)}}class Ute{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 DV(e,t,n){return rt(e)?e:At(e)?new Ute(e):Cn(e)&&arguments.length>1?OV(e,t,n):Te(e)}function OV(e,t,n){const r=e[t];return rt(r)?r:new Bte(e,t,n)}class Vte{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ow(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Fm-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Xn!==this)return gV(this,!0),!0}get value(){const t=this.dep.track();return _V(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Hte(e,t,n=!1){let r,i;return At(e)?r=e:(r=e.get,i=e.set),new Vte(r,i,n)}const zte={GET:"get",HAS:"has",ITERATE:"iterate"},Gte={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},p1={},rS=new WeakMap;let Ju;function Wte(){return Ju}function LV(e,t=!1,n=Ju){if(n){let r=rS.get(n);r||rS.set(n,r=[]),r.push(e)}}function jte(e,t,n=sn){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=S=>i?S:ia(S)||i===!1||i===0?Hl(S,1):Hl(S);let c,f,h,d,p=!1,g=!1;if(rt(e)?(f=()=>e.value,p=ia(e)):mc(e)?(f=()=>u(e),p=!0):st(e)?(g=!0,p=e.some(S=>mc(S)||ia(S)),f=()=>e.map(S=>{if(rt(S))return S.value;if(mc(S))return u(S);if(At(S))return l?l(S,2):S()})):At(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){cu();try{h()}finally{fu()}}const S=Ju;Ju=c;try{return l?l(e,3,[d]):e(d)}finally{Ju=S}}:f=li,t&&i){const S=f,C=i===!0?1/0:i;f=()=>Hl(S(),C)}const y=cR(),m=()=>{c.stop(),y&&y.active&&Pw(y.effects,c)};if(o&&t){const S=t;t=(...C)=>{S(...C),m()}}let b=g?new Array(e.length).fill(p1):p1;const w=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const C=c.run();if(i||p||(g?C.some((T,E)=>Li(T,b[E])):Li(C,b))){h&&h();const T=Ju;Ju=c;try{const E=[C,b===p1?void 0:g&&b[0]===p1?[]:b,d];b=C,l?l(t,3,E):t(...E)}finally{Ju=T}}}else c.run()};return s&&s(w),c=new Nm(f),c.scheduler=a?()=>a(w,!1):w,d=S=>LV(S,!1,c),h=c.onStop=()=>{const S=rS.get(c);if(S){if(l)l(S,4);else for(const C of S)C();rS.delete(c)}},t?r?w(!0):b=c.run():a?a(w.bind(null,!0),!0):c.run(),m.pause=c.pause.bind(c),m.resume=c.resume.bind(c),m.stop=m,m}function Hl(e,t=1/0,n){if(t<=0||!Cn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,rt(e))Hl(e.value,t,n);else if(st(e))for(let r=0;r<e.length;r++)Hl(e[r],t,n);else if(Fc(e)||ed(e))e.forEach(r=>{Hl(r,t,n)});else if(Oy(e)){for(const r in e)Hl(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Hl(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const kV=[];function Yte(e){kV.push(e)}function Xte(){kV.pop()}function Kte(e,t){}const Zte={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},qte={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function tv(e,t,n,r){try{return r?e(...r):e()}catch(i){Vd(i,t,n)}}function Fa(e,t,n,r){if(At(e)){const i=tv(e,t,n,r);return i&&Rw(i)&&i.catch(o=>{Vd(o,t,n)}),i}if(st(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Fa(e[o],t,n,r));return i}}function Vd(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||sn;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}s=s.parent}if(o){cu(),tv(o,null,10,[e,l,u]),fu();return}}Jte(e,n,i,r,a)}function Jte(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const eo=[];let Bs=-1;const rp=[];let Qu=null,Nh=0;const NV=Promise.resolve();let iS=null;function Zr(e){const t=iS||NV;return e?t.then(this?e.bind(this):e):t}function Qte(e){let t=Bs+1,n=eo.length;for(;t<n;){const r=t+n>>>1,i=eo[r],o=Um(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function mR(e){if(!(e.flags&1)){const t=Um(e),n=eo[eo.length-1];!n||!(e.flags&2)&&t>=Um(n)?eo.push(e):eo.splice(Qte(t),0,e),e.flags|=1,FV()}}function FV(){iS||(iS=NV.then($V))}function Bm(e){st(e)?rp.push(...e):Qu&&e.id===-1?Qu.splice(Nh+1,0,e):e.flags&1||(rp.push(e),e.flags|=1),FV()}function iN(e,t,n=Bs+1){for(;n<eo.length;n++){const r=eo[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;eo.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function oS(e){if(rp.length){const t=[...new Set(rp)].sort((n,r)=>Um(n)-Um(r));if(rp.length=0,Qu){Qu.push(...t);return}for(Qu=t,Nh=0;Nh<Qu.length;Nh++){const n=Qu[Nh];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Qu=null,Nh=0}}const Um=e=>e.id==null?e.flags&2?-1:1/0:e.id;function $V(e){try{for(Bs=0;Bs<eo.length;Bs++){const t=eo[Bs];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),tv(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Bs<eo.length;Bs++){const t=eo[Bs];t&&(t.flags&=-2)}Bs=-1,eo.length=0,oS(),iS=null,(eo.length||rp.length)&&$V()}}let Fh,v1=[];function BV(e,t){var n,r;Fh=e,Fh?(Fh.enabled=!0,v1.forEach(({event:i,args:o})=>Fh.emit(i,...o)),v1=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{BV(o,t)}),setTimeout(()=>{Fh||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,v1=[])},3e3)):v1=[]}let Si=null,Bw=null;function Vm(e){const t=Si;return Si=e,Bw=e&&e.type.__scopeId||null,t}function ene(e){Bw=e}function tne(){Bw=null}const nne=e=>gn;function gn(e,t=Si,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Gm(-1);const o=Vm(t);let a;try{a=e(...i)}finally{Vm(o),r._d&&Gm(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function tt(e,t){if(Si===null)return e;const n=Uy(Si),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,a,s,l=sn]=t[i];o&&(At(o)&&(o={mounted:o,updated:o}),o.deep&&Hl(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function Vs(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(cu(),Fa(l,n,8,[e.el,s,e,t]),fu())}}const UV=Symbol("_vte"),VV=e=>e.__isTeleport,Kg=e=>e&&(e.disabled||e.disabled===""),oN=e=>e&&(e.defer||e.defer===""),aN=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sN=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,rI=(e,t)=>{const n=e&&e.to;return kt(n)?t?t(n):null:n},HV={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:g,createComment:y}}=u,m=Kg(t.props);let{shapeFlag:b,children:w,dynamicChildren:S}=t;if(e==null){const C=t.el=g(""),T=t.anchor=g("");d(C,n,r),d(T,n,r);const E=(I,D)=>{b&16&&(i&&i.isCE&&(i.ce._teleportTarget=I),c(w,I,D,i,o,a,s,l))},P=()=>{const I=t.target=rI(t.props,p),D=GV(I,t,g,d);I&&(a!=="svg"&&aN(I)?a="svg":a!=="mathml"&&sN(I)&&(a="mathml"),m||(E(I,D),V_(t,!1)))};m&&(E(n,T),V_(t,!0)),oN(t.props)?(t.el.__isMounted=!1,jr(()=>{P(),delete t.el.__isMounted},o)):P()}else{if(oN(t.props)&&e.el.__isMounted===!1){jr(()=>{HV.process(e,t,n,r,i,o,a,s,l,u)},o);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,T=t.target=e.target,E=t.targetAnchor=e.targetAnchor,P=Kg(e.props),I=P?n:T,D=P?C:E;if(a==="svg"||aN(T)?a="svg":(a==="mathml"||sN(T))&&(a="mathml"),S?(h(e.dynamicChildren,S,I,i,o,a,s),PR(e,t,!0)):l||f(e,t,I,D,i,o,a,s,!1),m)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):g1(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const O=t.target=rI(t.props,p);O&&g1(t,O,null,u,0)}else P&&g1(t,T,E,u,1);V_(t,m)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:h}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const d=o||!Kg(h);for(let p=0;p<s.length;p++){const g=s[p];r(g,t,n,d,!!g.dynamicChildren)}}},move:g1,hydrate:rne};function g1(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(a,t,n),(!f||Kg(c))&&l&16)for(let h=0;h<u.length;h++)i(u[h],t,n,2);f&&r(s,t,n)}function rne(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},f){function h(g,y,m,b){y.anchor=f(a(g),y,s(g),n,r,i,o),y.targetStart=m,y.targetAnchor=b}const d=t.target=rI(t.props,l),p=Kg(t.props);if(d){const g=d._lpa||d.firstChild;if(t.shapeFlag&16)if(p)h(e,t,g,g&&a(g));else{t.anchor=a(e);let y=g;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}}y=a(y)}t.targetAnchor||GV(d,t,c,u),f(g&&a(g),t,d,n,r,i,o)}V_(t,p)}else p&&t.shapeFlag&16&&h(e,t,e,a(e));return t.anchor&&a(t.anchor)}const zV=HV;function V_(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function GV(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[UV]=o,e&&(r(i,e),r(o,e)),o}const Ul=Symbol("_leaveCb"),m1=Symbol("_enterCb");function yR(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Er(()=>{e.isMounted=!0}),Hw(()=>{e.isUnmounting=!0}),e}const _a=[Function,Array],_R={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_a,onEnter:_a,onAfterEnter:_a,onEnterCancelled:_a,onBeforeLeave:_a,onLeave:_a,onAfterLeave:_a,onLeaveCancelled:_a,onBeforeAppear:_a,onAppear:_a,onAfterAppear:_a,onAppearCancelled:_a},WV=e=>{const t=e.subTree;return t.component?WV(t.component):t},ine={name:"BaseTransition",props:_R,setup(e,{slots:t}){const n=vr(),r=yR();return()=>{const i=t.default&&Uw(t.default(),!0);if(!i||!i.length)return;const o=jV(i),a=vn(e),{mode:s}=a;if(r.isLeaving)return CC(o);const l=lN(o);if(!l)return CC(o);let u=xp(l,a,r,n,f=>u=f);l.type!==Mr&&hu(l,u);let c=n.subTree&&lN(n.subTree);if(c&&c.type!==Mr&&!os(c,l)&&WV(n).type!==Mr){let f=xp(c,a,r,n);if(hu(c,f),s==="out-in"&&l.type!==Mr)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},CC(o);s==="in-out"&&l.type!==Mr?f.delayLeave=(h,d,p)=>{const g=XV(r,c);g[String(c.key)]=c,h[Ul]=()=>{d(),h[Ul]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function jV(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Mr){t=n;break}}return t}const YV=ine;function XV(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function xp(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:m,onAfterAppear:b,onAppearCancelled:w}=t,S=String(e.key),C=XV(n,e),T=(I,D)=>{I&&Fa(I,r,9,D)},E=(I,D)=>{const O=D[1];T(I,D),st(I)?I.every(N=>N.length<=1)&&O():I.length<=1&&O()},P={mode:a,persisted:s,beforeEnter(I){let D=l;if(!n.isMounted)if(o)D=y||l;else return;I[Ul]&&I[Ul](!0);const O=C[S];O&&os(e,O)&&O.el[Ul]&&O.el[Ul](),T(D,[I])},enter(I){let D=u,O=c,N=f;if(!n.isMounted)if(o)D=m||u,O=b||c,N=w||f;else return;let M=!1;const k=I[m1]=V=>{M||(M=!0,V?T(N,[I]):T(O,[I]),P.delayedLeave&&P.delayedLeave(),I[m1]=void 0)};D?E(D,[I,k]):k()},leave(I,D){const O=String(e.key);if(I[m1]&&I[m1](!0),n.isUnmounting)return D();T(h,[I]);let N=!1;const M=I[Ul]=k=>{N||(N=!0,D(),k?T(g,[I]):T(p,[I]),I[Ul]=void 0,C[O]===e&&delete C[O])};C[O]=e,d?E(d,[I,M]):M()},clone(I){const D=xp(I,t,n,r,i);return i&&i(D),D}};return P}function CC(e){if(Fy(e))return e=al(e),e.children=null,e}function lN(e){if(!Fy(e))return VV(e.type)&&e.children?jV(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&At(n.default))return n.default()}}function hu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,hu(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Uw(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===Ve?(a.patchFlag&128&&i++,r=r.concat(Uw(a.children,t,s))):(t||a.type!==Mr)&&r.push(s!=null?al(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ze(e,t){return At(e)?un({name:e.name},t,{setup:e}):e}function one(){const e=vr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function bR(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ane(e){const t=vr(),n=Lr(null);if(t){const i=t.refs===sn?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const aS=new WeakMap;function ip(e,t,n,r,i=!1){if(st(e)){e.forEach((p,g)=>ip(p,t&&(st(t)?t[g]:t),n,r,i));return}if(yc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ip(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Uy(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===sn?s.refs={}:s.refs,f=s.setupState,h=vn(f),d=f===sn?Uf:p=>yn(h,p);if(u!=null&&u!==l){if(uN(t),kt(u))c[u]=null,d(u)&&(f[u]=null);else if(rt(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(At(l))tv(l,s,12,[a,c]);else{const p=kt(l),g=rt(l);if(p||g){const y=()=>{if(e.f){const m=p?d(l)?f[l]:c[l]:l.value;if(i)st(m)&&Pw(m,o);else if(st(m))m.includes(o)||m.push(o);else if(p)c[l]=[o],d(l)&&(f[l]=c[l]);else{const b=[o];l.value=b,e.k&&(c[e.k]=b)}}else p?(c[l]=a,d(l)&&(f[l]=a)):g&&(l.value=a,e.k&&(c[e.k]=a))};if(a){const m=()=>{y(),aS.delete(e)};m.id=-1,aS.set(e,m),jr(m,n)}else uN(e),y()}}}function uN(e){const t=aS.get(e);t&&(t.flags|=8,aS.delete(e))}let cN=!1;const dh=()=>{cN||(console.error("Hydration completed but contains mismatches."),cN=!0)},sne=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",lne=e=>e.namespaceURI.includes("MathML"),y1=e=>{if(e.nodeType===1){if(sne(e))return"svg";if(lne(e))return"mathml"}},Wh=e=>e.nodeType===8;function une(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(w,S)=>{if(!S.hasChildNodes()){n(null,w,S),oS(),S._vnode=w;return}f(S.firstChild,w,null,null,null),oS(),S._vnode=w},f=(w,S,C,T,E,P=!1)=>{P=P||!!S.dynamicChildren;const I=Wh(w)&&w.data==="[",D=()=>g(w,S,C,T,E,I),{type:O,ref:N,shapeFlag:M,patchFlag:k}=S;let V=w.nodeType;S.el=w,k===-2&&(P=!1,S.dynamicChildren=null);let B=null;switch(O){case tu:V!==3?S.children===""?(l(S.el=i(""),a(w),w),B=w):B=D():(w.data!==S.children&&(dh(),w.data=S.children),B=o(w));break;case Mr:b(w)?(B=o(w),m(S.el=w.content.firstChild,w,C)):V!==8||I?B=D():B=o(w);break;case od:if(I&&(w=o(w),V=w.nodeType),V===1||V===3){B=w;const U=!S.children.length;for(let $=0;$<S.staticCount;$++)U&&(S.children+=B.nodeType===1?B.outerHTML:B.data),$===S.staticCount-1&&(S.anchor=B),B=o(B);return I?o(B):B}else D();break;case Ve:I?B=p(w,S,C,T,E,P):B=D();break;default:if(M&1)(V!==1||S.type.toLowerCase()!==w.tagName.toLowerCase())&&!b(w)?B=D():B=h(w,S,C,T,E,P);else if(M&6){S.slotScopeIds=E;const U=a(w);if(I?B=y(w):Wh(w)&&w.data==="teleport start"?B=y(w,w.data,"teleport end"):B=o(w),t(S,U,null,C,T,y1(U),P),yc(S)&&!S.type.__asyncResolved){let $;I?($=z(Ve),$.anchor=B?B.previousSibling:U.lastChild):$=w.nodeType===3?Be(""):z("div"),$.el=w,S.component.subTree=$}}else M&64?V!==8?B=D():B=S.type.hydrate(w,S,C,T,E,P,e,d):M&128&&(B=S.type.hydrate(w,S,C,T,y1(a(w)),E,P,e,f))}return N!=null&&ip(N,null,T,S),B},h=(w,S,C,T,E,P)=>{P=P||!!S.dynamicChildren;const{type:I,props:D,patchFlag:O,shapeFlag:N,dirs:M,transition:k}=S,V=I==="input"||I==="option";if(V||O!==-1){M&&Vs(S,null,C,"created");let B=!1;if(b(w)){B=y6(null,k)&&C&&C.vnode.props&&C.vnode.props.appear;const $=w.content.firstChild;if(B){const J=$.getAttribute("class");J&&($.$cls=J),k.beforeEnter($)}m($,w,C),S.el=w=$}if(N&16&&!(D&&(D.innerHTML||D.textContent))){let $=d(w.firstChild,S,w,C,T,E,P);for(;$;){_1(w,1)||dh();const J=$;$=$.nextSibling,s(J)}}else if(N&8){let $=S.children;$[0]===`
`&&(w.tagName==="PRE"||w.tagName==="TEXTAREA")&&($=$.slice(1)),w.textContent!==$&&(_1(w,0)||dh(),w.textContent=S.children)}if(D){if(V||!P||O&48){const $=w.tagName.includes("-");for(const J in D)(V&&(J.endsWith("value")||J==="indeterminate")||Nc(J)&&!Ql(J)||J[0]==="."||$)&&r(w,J,null,D[J],void 0,C)}else if(D.onClick)r(w,"onClick",null,D.onClick,void 0,C);else if(O&4&&mc(D.style))for(const $ in D.style)D.style[$]}let U;(U=D&&D.onVnodeBeforeMount)&&bo(U,C,S),M&&Vs(S,null,C,"beforeMount"),((U=D&&D.onVnodeMounted)||M||B)&&I6(()=>{U&&bo(U,C,S),B&&k.enter(w),M&&Vs(S,null,C,"mounted")},T)}return w.nextSibling},d=(w,S,C,T,E,P,I)=>{I=I||!!S.dynamicChildren;const D=S.children,O=D.length;for(let N=0;N<O;N++){const M=I?D[N]:D[N]=So(D[N]),k=M.type===tu;w?(k&&!I&&N+1<O&&So(D[N+1]).type===tu&&(l(i(w.data.slice(M.children.length)),C,o(w)),w.data=M.children),w=f(w,M,T,E,P,I)):k&&!M.children?l(M.el=i(""),C):(_1(C,1)||dh(),n(null,M,C,null,T,E,y1(C),P))}return w},p=(w,S,C,T,E,P)=>{const{slotScopeIds:I}=S;I&&(E=E?E.concat(I):I);const D=a(w),O=d(o(w),S,D,C,T,E,P);return O&&Wh(O)&&O.data==="]"?o(S.anchor=O):(dh(),l(S.anchor=u("]"),D,O),O)},g=(w,S,C,T,E,P)=>{if(_1(w.parentElement,1)||dh(),S.el=null,P){const O=y(w);for(;;){const N=o(w);if(N&&N!==O)s(N);else break}}const I=o(w),D=a(w);return s(w),n(null,S,D,I,C,T,y1(D),E),C&&(C.vnode.el=S.el,Ww(C,S.el)),I},y=(w,S="[",C="]")=>{let T=0;for(;w;)if(w=o(w),w&&Wh(w)&&(w.data===S&&T++,w.data===C)){if(T===0)return o(w);T--}return w},m=(w,S,C)=>{const T=S.parentNode;T&&T.replaceChild(w,S);let E=C;for(;E;)E.vnode.el===S&&(E.vnode.el=E.subTree.el=w),E=E.parent},b=w=>w.nodeType===1&&w.tagName==="TEMPLATE";return[c,f]}const fN="data-allow-mismatch",cne={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function _1(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(fN);)e=e.parentElement;const n=e&&e.getAttribute(fN);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(cne[t])}}const fne=Ly().requestIdleCallback||(e=>setTimeout(e,1)),dne=Ly().cancelIdleCallback||(e=>clearTimeout(e)),hne=(e=1e4)=>t=>{const n=fne(t,{timeout:e});return()=>dne(n)};function pne(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t<o||r>0&&r<o)&&(n>0&&n<a||i>0&&i<a)}const vne=e=>(t,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(pne(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},gne=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},mne=(e=[])=>(t,n)=>{kt(e)&&(e=[e]);let r=!1;const i=a=>{r||(r=!0,o(),t(),a.target.dispatchEvent(new a.constructor(a.type,a)))},o=()=>{n(a=>{for(const s of e)a.removeEventListener(s,i)})};return n(a=>{for(const s of e)a.addEventListener(s,i,{once:!0})}),o};function yne(e,t){if(Wh(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Wh(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const yc=e=>!!e.type.__asyncLoader;function _ne(e){At(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:a,suspensible:s=!0,onError:l}=e;let u=null,c,f=0;const h=()=>(f++,u=null,d()),d=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,m)=>{l(g,()=>y(h()),()=>m(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return Ze({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,g,y){let m=!1;(g.bu||(g.bu=[])).push(()=>m=!0);const b=()=>{m||y()},w=o?()=>{const S=o(b,C=>yne(p,C));S&&(g.bum||(g.bum=[])).push(S)}:b;c?w():d().then(()=>!g.isUnmounted&&w())},get __asyncResolved(){return c},setup(){const p=bi;if(bR(p),c)return()=>EC(c,p);const g=w=>{u=null,Vd(w,p,13,!r)};if(s&&p.suspense||Tp)return d().then(w=>()=>EC(w,p)).catch(w=>(g(w),()=>r?z(r,{error:w}):null));const y=Te(!1),m=Te(),b=Te(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!y.value&&!m.value){const w=new Error(`Async component timed out after ${a}ms.`);g(w),m.value=w}},a),d().then(()=>{y.value=!0,p.parent&&Fy(p.parent.vnode)&&p.parent.update()}).catch(w=>{g(w),m.value=w}),()=>{if(y.value&&c)return EC(c,p);if(m.value&&r)return z(r,{error:m.value});if(n&&!b.value)return z(n)}}})}function EC(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=z(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const Fy=e=>e.type.__isKeepAlive,bne={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=vr(),r=n.ctx;if(!r.renderer)return()=>{const b=t.default&&t.default();return b&&b.length===1?b[0]:b};const i=new Map,o=new Set;let a=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,h=f("div");r.activate=(b,w,S,C,T)=>{const E=b.component;u(b,w,S,0,s),l(E.vnode,b,w,S,E,s,C,b.slotScopeIds,T),jr(()=>{E.isDeactivated=!1,E.a&&nd(E.a);const P=b.props&&b.props.onVnodeMounted;P&&bo(P,E.parent,b)},s)},r.deactivate=b=>{const w=b.component;uS(w.m),uS(w.a),u(b,h,null,1,s),jr(()=>{w.da&&nd(w.da);const S=b.props&&b.props.onVnodeUnmounted;S&&bo(S,w.parent,b),w.isDeactivated=!0},s)};function d(b){IC(b),c(b,n,s,!0)}function p(b){i.forEach((w,S)=>{const C=pI(w.type);C&&!b(C)&&g(S)})}function g(b){const w=i.get(b);w&&(!a||!os(w,a))?d(w):a&&IC(a),i.delete(b),o.delete(b)}mt(()=>[e.include,e.exclude],([b,w])=>{b&&p(S=>xg(b,S)),w&&p(S=>!xg(w,S))},{flush:"post",deep:!0});let y=null;const m=()=>{y!=null&&(cS(n.subTree.type)?jr(()=>{i.set(y,b1(n.subTree))},n.subTree.suspense):i.set(y,b1(n.subTree)))};return Er(m),$y(m),Hw(()=>{i.forEach(b=>{const{subTree:w,suspense:S}=n,C=b1(w);if(b.type===C.type&&b.key===C.key){IC(C);const T=C.component.da;T&&jr(T,S);return}d(b)})}),()=>{if(y=null,!t.default)return a=null;const b=t.default(),w=b[0];if(b.length>1)return a=null,b;if(!pu(w)||!(w.shapeFlag&4)&&!(w.shapeFlag&128))return a=null,w;let S=b1(w);if(S.type===Mr)return a=null,S;const C=S.type,T=pI(yc(S)?S.type.__asyncResolved||{}:C),{include:E,exclude:P,max:I}=e;if(E&&(!T||!xg(E,T))||P&&T&&xg(P,T))return S.shapeFlag&=-257,a=S,w;const D=S.key==null?C:S.key,O=i.get(D);return S.el&&(S=al(S),w.shapeFlag&128&&(w.ssContent=S)),y=D,O?(S.el=O.el,S.component=O.component,S.transition&&hu(S,S.transition),S.shapeFlag|=512,o.delete(D),o.add(D)):(o.add(D),I&&o.size>parseInt(I,10)&&g(o.values().next().value)),S.shapeFlag|=256,a=S,cS(w.type)?w:S}}},Sne=bne;function xg(e,t){return st(e)?e.some(n=>xg(n,t)):kt(e)?e.split(",").includes(t):QU(e)?(e.lastIndex=0,e.test(t)):!1}function KV(e,t){qV(e,"a",t)}function ZV(e,t){qV(e,"da",t)}function qV(e,t,n=bi){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Vw(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Fy(i.parent.vnode)&&wne(r,t,n,i),i=i.parent}}function wne(e,t,n,r){const i=Vw(t,e,r,!0);Bc(()=>{Pw(r[t],i)},n)}function IC(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function b1(e){return e.shapeFlag&128?e.ssContent:e}function Vw(e,t,n=bi,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{cu();const s=Td(n),l=Fa(t,n,e,a);return s(),fu(),l});return r?i.unshift(o):i.push(o),o}}const Su=e=>(t,n=bi)=>{(!Tp||e==="sp")&&Vw(e,(...r)=>t(...r),n)},JV=Su("bm"),Er=Su("m"),SR=Su("bu"),$y=Su("u"),Hw=Su("bum"),Bc=Su("um"),QV=Su("sp"),e6=Su("rtg"),t6=Su("rtc");function n6(e,t=bi){Vw("ec",e,t)}const wR="components",xne="directives";function Tne(e,t){return xR(wR,e,!0,t)||e}const r6=Symbol.for("v-ndc");function Po(e){return kt(e)?xR(wR,e,!1)||e:e||r6}function Cne(e){return xR(xne,e)}function xR(e,t,n=!0,r=!1){const i=Si||bi;if(i){const o=i.type;if(e===wR){const s=pI(o,!1);if(s&&(s===t||s===Zn(t)||s===$c(Zn(t))))return o}const a=dN(i[e]||o[e],t)||dN(i.appContext[e],t);return!a&&r?o:a}}function dN(e,t){return e&&(e[t]||e[Zn(t)]||e[$c(Zn(t))])}function Yt(e,t,n,r){let i;const o=n&&n[r],a=st(e);if(a||kt(e)){const s=a&&mc(e);let l=!1,u=!1;s&&(l=!ia(e),u=du(e),e=Lw(e)),i=new Array(e.length);for(let c=0,f=e.length;c<f;c++)i[c]=t(l?u?nS(mi(e[c])):mi(e[c]):e[c],c,void 0,o&&o[c])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(Cn(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=t(e[c],c,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function Ene(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(st(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function eu(e,t,n={},r,i){if(Si.ce||Si.parent&&yc(Si.parent)&&Si.parent.ce)return t!=="default"&&(n.name=t),H(),it(Ve,null,[z("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),H();const a=o&&TR(o(n)),s=n.key||a&&a.key,l=it(Ve,{key:(s&&!ao(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function TR(e){return e.some(t=>pu(t)?!(t.type===Mr||t.type===Ve&&!TR(t.children)):!0)?e:null}function Ine(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:td(r)]=e[r];return n}const iI=e=>e?L6(e)?Uy(e):iI(e.parent):null,Zg=un(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=>iI(e.parent),$root:e=>iI(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>CR(e),$forceUpdate:e=>e.f||(e.f=()=>{mR(e.update)}),$nextTick:e=>e.n||(e.n=Zr.bind(e.proxy)),$watch:e=>nre.bind(e)}),AC=(e,t)=>e!==sn&&!e.__isScriptSetup&&yn(e,t),oI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(AC(r,t))return a[t]=1,r[t];if(i!==sn&&yn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&yn(u,t))return a[t]=3,o[t];if(n!==sn&&yn(n,t))return a[t]=4,n[t];aI&&(a[t]=0)}}const c=Zg[t];let f,h;if(c)return t==="$attrs"&&ki(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==sn&&yn(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,yn(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return AC(i,t)?(i[t]=n,!0):r!==sn&&yn(r,t)?(r[t]=n,!0):yn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o,type:a}},s){let l,u;return!!(n[s]||e!==sn&&s[0]!=="$"&&yn(e,s)||AC(t,s)||(l=o[0])&&yn(l,s)||yn(r,s)||yn(Zg,s)||yn(i.config.globalProperties,s)||(u=a.__cssModules)&&u[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:yn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Ane=un({},oI,{get(e,t){if(t!==Symbol.unscopables)return oI.get(e,t,e)},has(e,t){return t[0]!=="_"&&!aR(t)}});function Pne(){return null}function Rne(){return null}function Mne(e){}function Dne(e){}function One(){return null}function Lne(){}function kne(e,t){return null}function Nne(){return i6().slots}function Fne(){return i6().attrs}function i6(e){const t=vr();return t.setupContext||(t.setupContext=F6(t))}function Hm(e){return st(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function $ne(e,t){const n=Hm(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?st(i)||At(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function sS(e,t){return!e||!t?e||t:st(e)&&st(t)?e.concat(t):un({},Hm(e),Hm(t))}function Bne(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Une(e){const t=vr();let n=e();return fI(),Rw(n)&&(n=n.catch(r=>{throw Td(t),r})),[n,()=>Td(t)]}let aI=!0;function Vne(e){const t=CR(e),n=e.proxy,r=e.ctx;aI=!1,t.beforeCreate&&hN(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:y,beforeDestroy:m,beforeUnmount:b,destroyed:w,unmounted:S,render:C,renderTracked:T,renderTriggered:E,errorCaptured:P,serverPrefetch:I,expose:D,inheritAttrs:O,components:N,directives:M,filters:k}=t;if(u&&Hne(u,r,null),a)for(const U in a){const $=a[U];At($)&&(r[U]=$.bind(n))}if(i){const U=i.call(n,n);Cn(U)&&(e.data=Hi(U))}if(aI=!0,o)for(const U in o){const $=o[U],J=At($)?$.bind(n,n):At($.get)?$.get.bind(n,n):li,ae=!At($)&&At($.set)?$.set.bind(n):li,ne=ge({get:J,set:ae});Object.defineProperty(r,U,{enumerable:!0,configurable:!0,get:()=>ne.value,set:_e=>ne.value=_e})}if(s)for(const U in s)o6(s[U],r,n,U);if(l){const U=At(l)?l.call(n):l;Reflect.ownKeys(U).forEach($=>{qg($,U[$])})}c&&hN(c,e,"c");function B(U,$){st($)?$.forEach(J=>U(J.bind(n))):$&&U($.bind(n))}if(B(JV,f),B(Er,h),B(SR,d),B($y,p),B(KV,g),B(ZV,y),B(n6,P),B(t6,T),B(e6,E),B(Hw,b),B(Bc,S),B(QV,I),st(D))if(D.length){const U=e.exposed||(e.exposed={});D.forEach($=>{Object.defineProperty(U,$,{get:()=>n[$],set:J=>n[$]=J,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===li&&(e.render=C),O!=null&&(e.inheritAttrs=O),N&&(e.components=N),M&&(e.directives=M),I&&bR(e)}function Hne(e,t,n=li){st(e)&&(e=sI(e));for(const r in e){const i=e[r];let o;Cn(i)?"default"in i?o=Mo(i.from||r,i.default,!0):o=Mo(i.from||r):o=Mo(i),rt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function hN(e,t,n){Fa(st(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function o6(e,t,n,r){let i=r.includes(".")?x6(n,r):()=>n[r];if(kt(e)){const o=t[e];At(o)&&mt(i,o)}else if(At(e))mt(i,e.bind(n));else if(Cn(e))if(st(e))e.forEach(o=>o6(o,t,n,r));else{const o=At(e.handler)?e.handler.bind(n):t[e.handler];At(o)&&mt(i,o,e)}}function CR(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,s=o.get(t);let l;return s?l=s:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>lS(l,u,a,!0)),lS(l,t,a)),Cn(t)&&o.set(t,l),l}function lS(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&lS(e,o,n,!0),i&&i.forEach(a=>lS(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=zne[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const zne={data:pN,props:vN,emits:vN,methods:Tg,computed:Tg,beforeCreate:Xi,created:Xi,beforeMount:Xi,mounted:Xi,beforeUpdate:Xi,updated:Xi,beforeDestroy:Xi,beforeUnmount:Xi,destroyed:Xi,unmounted:Xi,activated:Xi,deactivated:Xi,errorCaptured:Xi,serverPrefetch:Xi,components:Tg,directives:Tg,watch:Wne,provide:pN,inject:Gne};function pN(e,t){return t?e?function(){return un(At(e)?e.call(this,this):e,At(t)?t.call(this,this):t)}:t:e}function Gne(e,t){return Tg(sI(e),sI(t))}function sI(e){if(st(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xi(e,t){return e?[...new Set([].concat(e,t))]:t}function Tg(e,t){return e?un(Object.create(null),e,t):t}function vN(e,t){return e?st(e)&&st(t)?[...new Set([...e,...t])]:un(Object.create(null),Hm(e),Hm(t??{})):t}function Wne(e,t){if(!e)return t;if(!t)return e;const n=un(Object.create(null),e);for(const r in t)n[r]=Xi(e[r],t[r]);return n}function a6(){return{app:null,config:{isNativeTag:Uf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let jne=0;function Yne(e,t){return function(r,i=null){At(r)||(r=un({},r)),i!=null&&!Cn(i)&&(i=null);const o=a6(),a=new WeakSet,s=[];let l=!1;const u=o.app={_uid:jne++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:B6,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&At(c.install)?(a.add(c),c.install(u,...f)):At(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!l){const d=u._ceVNode||z(r,i);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),l=!0,u._container=c,c.__vue_app__=u,Uy(d.component)}},onUnmount(c){s.push(c)},unmount(){l&&(Fa(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=id;id=u;try{return c()}finally{id=f}}};return u}}let id=null;function qg(e,t){if(bi){let n=bi.provides;const r=bi.parent&&bi.parent.provides;r===n&&(n=bi.provides=Object.create(r)),n[e]=t}}function Mo(e,t,n=!1){const r=vr();if(r||id){let i=id?id._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&At(t)?t.call(r&&r.proxy):t}}function ER(){return!!(vr()||id)}const s6={},l6=()=>Object.create(s6),u6=e=>Object.getPrototypeOf(e)===s6;function Xne(e,t,n,r=!1){const i={},o=l6();e.propsDefaults=Object.create(null),c6(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:vR(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Kne(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=vn(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Gw(e.emitsOptions,h))continue;const d=t[h];if(l)if(yn(o,h))d!==o[h]&&(o[h]=d,u=!0);else{const p=Zn(h);i[p]=lI(l,s,p,d,e,!1)}else d!==o[h]&&(o[h]=d,u=!0)}}}else{c6(e,t,i,o)&&(u=!0);let c;for(const f in s)(!t||!yn(t,f)&&((c=Ni(f))===f||!yn(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=lI(l,s,f,void 0,e,!0)):delete i[f]);if(o!==s)for(const f in o)(!t||!yn(t,f))&&(delete o[f],u=!0)}u&&Vl(e.attrs,"set","")}function c6(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(Ql(l))continue;const u=t[l];let c;i&&yn(i,c=Zn(l))?!o||!o.includes(c)?n[c]=u:(s||(s={}))[c]=u:Gw(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=vn(n),u=s||sn;for(let c=0;c<o.length;c++){const f=o[c];n[f]=lI(i,l,f,u[f],e,!yn(u,f))}}return a}function lI(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=yn(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&At(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=Td(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===Ni(n))&&(r=!0))}return r}const Zne=new WeakMap;function f6(e,t,n=!1){const r=n?Zne:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!At(e)){const c=f=>{l=!0;const[h,d]=f6(f,t,!0);un(a,h),d&&s.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Cn(e)&&r.set(e,Qf),Qf;if(st(o))for(let c=0;c<o.length;c++){const f=Zn(o[c]);gN(f)&&(a[f]=sn)}else if(o)for(const c in o){const f=Zn(c);if(gN(f)){const h=o[c],d=a[f]=st(h)||At(h)?{type:h}:un({},h),p=d.type;let g=!1,y=!0;if(st(p))for(let m=0;m<p.length;++m){const b=p[m],w=At(b)&&b.name;if(w==="Boolean"){g=!0;break}else w==="String"&&(y=!1)}else g=At(p)&&p.name==="Boolean";d[0]=g,d[1]=y,(g||yn(d,"default"))&&s.push(f)}}const u=[a,s];return Cn(e)&&r.set(e,u),u}function gN(e){return e[0]!=="$"&&!Ql(e)}const IR=e=>e==="_"||e==="_ctx"||e==="$stable",AR=e=>st(e)?e.map(So):[So(e)],qne=(e,t,n)=>{if(t._n)return t;const r=gn((...i)=>AR(t(...i)),n);return r._c=!1,r},d6=(e,t,n)=>{const r=e._ctx;for(const i in e){if(IR(i))continue;const o=e[i];if(At(o))t[i]=qne(i,o,r);else if(o!=null){const a=AR(o);t[i]=()=>a}}},h6=(e,t)=>{const n=AR(t);e.slots.default=()=>n},p6=(e,t,n)=>{for(const r in t)(n||!IR(r))&&(e[r]=t[r])},Jne=(e,t,n)=>{const r=e.slots=l6();if(e.vnode.shapeFlag&32){const i=t._;i?(p6(r,t,n),n&&oR(r,"_",i,!0)):d6(t,r)}else t&&h6(e,t)},Qne=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=sn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:p6(i,t,n):(o=!t.$stable,d6(t,i)),a=t}else t&&(h6(e,t),a={default:1});if(o)for(const s in i)!IR(s)&&a[s]==null&&delete i[s]},jr=I6;function v6(e){return m6(e)}function g6(e){return m6(e,une)}function m6(e,t){const n=Ly();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=li,insertStaticContent:p}=e,g=(Y,X,de,Ie=null,be=null,W=null,Z=void 0,re=null,pe=!!X.dynamicChildren)=>{if(Y===X)return;Y&&!os(Y,X)&&(Ie=oe(Y),_e(Y,be,W,!0),Y=null),X.patchFlag===-2&&(pe=!1,X.dynamicChildren=null);const{type:Ce,ref:$e,shapeFlag:te}=X;switch(Ce){case tu:y(Y,X,de,Ie);break;case Mr:m(Y,X,de,Ie);break;case od:Y==null&&b(X,de,Ie,Z);break;case Ve:N(Y,X,de,Ie,be,W,Z,re,pe);break;default:te&1?C(Y,X,de,Ie,be,W,Z,re,pe):te&6?M(Y,X,de,Ie,be,W,Z,re,pe):(te&64||te&128)&&Ce.process(Y,X,de,Ie,be,W,Z,re,pe,Ae)}$e!=null&&be?ip($e,Y&&Y.ref,W,X||Y,!X):$e==null&&Y&&Y.ref!=null&&ip(Y.ref,null,W,Y,!0)},y=(Y,X,de,Ie)=>{if(Y==null)r(X.el=s(X.children),de,Ie);else{const be=X.el=Y.el;X.children!==Y.children&&u(be,X.children)}},m=(Y,X,de,Ie)=>{Y==null?r(X.el=l(X.children||""),de,Ie):X.el=Y.el},b=(Y,X,de,Ie)=>{[Y.el,Y.anchor]=p(Y.children,X,de,Ie,Y.el,Y.anchor)},w=({el:Y,anchor:X},de,Ie)=>{let be;for(;Y&&Y!==X;)be=h(Y),r(Y,de,Ie),Y=be;r(X,de,Ie)},S=({el:Y,anchor:X})=>{let de;for(;Y&&Y!==X;)de=h(Y),i(Y),Y=de;i(X)},C=(Y,X,de,Ie,be,W,Z,re,pe)=>{X.type==="svg"?Z="svg":X.type==="math"&&(Z="mathml"),Y==null?T(X,de,Ie,be,W,Z,re,pe):I(Y,X,be,W,Z,re,pe)},T=(Y,X,de,Ie,be,W,Z,re)=>{let pe,Ce;const{props:$e,shapeFlag:te,transition:ve,dirs:je}=Y;if(pe=Y.el=a(Y.type,W,$e&&$e.is,$e),te&8?c(pe,Y.children):te&16&&P(Y.children,pe,null,Ie,be,PC(Y,W),Z,re),je&&Vs(Y,null,Ie,"created"),E(pe,Y,Y.scopeId,Z,Ie),$e){for(const Tt in $e)Tt!=="value"&&!Ql(Tt)&&o(pe,Tt,null,$e[Tt],W,Ie);"value"in $e&&o(pe,"value",null,$e.value,W),(Ce=$e.onVnodeBeforeMount)&&bo(Ce,Ie,Y)}je&&Vs(Y,null,Ie,"beforeMount");const nt=y6(be,ve);nt&&ve.beforeEnter(pe),r(pe,X,de),((Ce=$e&&$e.onVnodeMounted)||nt||je)&&jr(()=>{Ce&&bo(Ce,Ie,Y),nt&&ve.enter(pe),je&&Vs(Y,null,Ie,"mounted")},be)},E=(Y,X,de,Ie,be)=>{if(de&&d(Y,de),Ie)for(let W=0;W<Ie.length;W++)d(Y,Ie[W]);if(be){let W=be.subTree;if(X===W||cS(W.type)&&(W.ssContent===X||W.ssFallback===X)){const Z=be.vnode;E(Y,Z,Z.scopeId,Z.slotScopeIds,be.parent)}}},P=(Y,X,de,Ie,be,W,Z,re,pe=0)=>{for(let Ce=pe;Ce<Y.length;Ce++){const $e=Y[Ce]=re?ec(Y[Ce]):So(Y[Ce]);g(null,$e,X,de,Ie,be,W,Z,re)}},I=(Y,X,de,Ie,be,W,Z)=>{const re=X.el=Y.el;let{patchFlag:pe,dynamicChildren:Ce,dirs:$e}=X;pe|=Y.patchFlag&16;const te=Y.props||sn,ve=X.props||sn;let je;if(de&&nf(de,!1),(je=ve.onVnodeBeforeUpdate)&&bo(je,de,X,Y),$e&&Vs(X,Y,de,"beforeUpdate"),de&&nf(de,!0),(te.innerHTML&&ve.innerHTML==null||te.textContent&&ve.textContent==null)&&c(re,""),Ce?D(Y.dynamicChildren,Ce,re,de,Ie,PC(X,be),W):Z||$(Y,X,re,null,de,Ie,PC(X,be),W,!1),pe>0){if(pe&16)O(re,te,ve,de,be);else if(pe&2&&te.class!==ve.class&&o(re,"class",null,ve.class,be),pe&4&&o(re,"style",te.style,ve.style,be),pe&8){const nt=X.dynamicProps;for(let Tt=0;Tt<nt.length;Tt++){const se=nt[Tt],ce=te[se],ye=ve[se];(ye!==ce||se==="value")&&o(re,se,ce,ye,be,de)}}pe&1&&Y.children!==X.children&&c(re,X.children)}else!Z&&Ce==null&&O(re,te,ve,de,be);((je=ve.onVnodeUpdated)||$e)&&jr(()=>{je&&bo(je,de,X,Y),$e&&Vs(X,Y,de,"updated")},Ie)},D=(Y,X,de,Ie,be,W,Z)=>{for(let re=0;re<X.length;re++){const pe=Y[re],Ce=X[re],$e=pe.el&&(pe.type===Ve||!os(pe,Ce)||pe.shapeFlag&198)?f(pe.el):de;g(pe,Ce,$e,null,Ie,be,W,Z,!0)}},O=(Y,X,de,Ie,be)=>{if(X!==de){if(X!==sn)for(const W in X)!Ql(W)&&!(W in de)&&o(Y,W,X[W],null,be,Ie);for(const W in de){if(Ql(W))continue;const Z=de[W],re=X[W];Z!==re&&W!=="value"&&o(Y,W,re,Z,be,Ie)}"value"in de&&o(Y,"value",X.value,de.value,be)}},N=(Y,X,de,Ie,be,W,Z,re,pe)=>{const Ce=X.el=Y?Y.el:s(""),$e=X.anchor=Y?Y.anchor:s("");let{patchFlag:te,dynamicChildren:ve,slotScopeIds:je}=X;je&&(re=re?re.concat(je):je),Y==null?(r(Ce,de,Ie),r($e,de,Ie),P(X.children||[],de,$e,be,W,Z,re,pe)):te>0&&te&64&&ve&&Y.dynamicChildren?(D(Y.dynamicChildren,ve,de,be,W,Z,re),(X.key!=null||be&&X===be.subTree)&&PR(Y,X,!0)):$(Y,X,de,$e,be,W,Z,re,pe)},M=(Y,X,de,Ie,be,W,Z,re,pe)=>{X.slotScopeIds=re,Y==null?X.shapeFlag&512?be.ctx.activate(X,de,Ie,Z,pe):k(X,de,Ie,be,W,Z,pe):V(Y,X,pe)},k=(Y,X,de,Ie,be,W,Z)=>{const re=Y.component=O6(Y,Ie,be);if(Fy(Y)&&(re.ctx.renderer=Ae),k6(re,!1,Z),re.asyncDep){if(be&&be.registerDep(re,B,Z),!Y.el){const pe=re.subTree=z(Mr);m(null,pe,X,de),Y.placeholder=pe.el}}else B(re,Y,X,de,be,W,Z)},V=(Y,X,de)=>{const Ie=X.component=Y.component;if(lre(Y,X,de))if(Ie.asyncDep&&!Ie.asyncResolved){U(Ie,X,de);return}else Ie.next=X,Ie.update();else X.el=Y.el,Ie.vnode=X},B=(Y,X,de,Ie,be,W,Z)=>{const re=()=>{if(Y.isMounted){let{next:te,bu:ve,u:je,parent:nt,vnode:Tt}=Y;{const Xe=_6(Y);if(Xe){te&&(te.el=Tt.el,U(Y,te,Z)),Xe.asyncDep.then(()=>{Y.isUnmounted||re()});return}}let se=te,ce;nf(Y,!1),te?(te.el=Tt.el,U(Y,te,Z)):te=Tt,ve&&nd(ve),(ce=te.props&&te.props.onVnodeBeforeUpdate)&&bo(ce,nt,te,Tt),nf(Y,!0);const ye=H_(Y),De=Y.subTree;Y.subTree=ye,g(De,ye,f(De.el),oe(De),Y,be,W),te.el=ye.el,se===null&&Ww(Y,ye.el),je&&jr(je,be),(ce=te.props&&te.props.onVnodeUpdated)&&jr(()=>bo(ce,nt,te,Tt),be)}else{let te;const{el:ve,props:je}=X,{bm:nt,m:Tt,parent:se,root:ce,type:ye}=Y,De=yc(X);if(nf(Y,!1),nt&&nd(nt),!De&&(te=je&&je.onVnodeBeforeMount)&&bo(te,se,X),nf(Y,!0),ve&&Ue){const Xe=()=>{Y.subTree=H_(Y),Ue(ve,Y.subTree,Y,be,null)};De&&ye.__asyncHydrate?ye.__asyncHydrate(ve,Y,Xe):Xe()}else{ce.ce&&ce.ce._def.shadowRoot!==!1&&ce.ce._injectChildStyle(ye);const Xe=Y.subTree=H_(Y);g(null,Xe,de,Ie,Y,be,W),X.el=Xe.el}if(Tt&&jr(Tt,be),!De&&(te=je&&je.onVnodeMounted)){const Xe=X;jr(()=>bo(te,se,Xe),be)}(X.shapeFlag&256||se&&yc(se.vnode)&&se.vnode.shapeFlag&256)&&Y.a&&jr(Y.a,be),Y.isMounted=!0,X=de=Ie=null}};Y.scope.on();const pe=Y.effect=new Nm(re);Y.scope.off();const Ce=Y.update=pe.run.bind(pe),$e=Y.job=pe.runIfDirty.bind(pe);$e.i=Y,$e.id=Y.uid,pe.scheduler=()=>mR($e),nf(Y,!0),Ce()},U=(Y,X,de)=>{X.component=Y;const Ie=Y.vnode.props;Y.vnode=X,Y.next=null,Kne(Y,X.props,Ie,de),Qne(Y,X.children,de),cu(),iN(Y),fu()},$=(Y,X,de,Ie,be,W,Z,re,pe=!1)=>{const Ce=Y&&Y.children,$e=Y?Y.shapeFlag:0,te=X.children,{patchFlag:ve,shapeFlag:je}=X;if(ve>0){if(ve&128){ae(Ce,te,de,Ie,be,W,Z,re,pe);return}else if(ve&256){J(Ce,te,de,Ie,be,W,Z,re,pe);return}}je&8?($e&16&&ke(Ce,be,W),te!==Ce&&c(de,te)):$e&16?je&16?ae(Ce,te,de,Ie,be,W,Z,re,pe):ke(Ce,be,W,!0):($e&8&&c(de,""),je&16&&P(te,de,Ie,be,W,Z,re,pe))},J=(Y,X,de,Ie,be,W,Z,re,pe)=>{Y=Y||Qf,X=X||Qf;const Ce=Y.length,$e=X.length,te=Math.min(Ce,$e);let ve;for(ve=0;ve<te;ve++){const je=X[ve]=pe?ec(X[ve]):So(X[ve]);g(Y[ve],je,de,null,be,W,Z,re,pe)}Ce>$e?ke(Y,be,W,!0,!1,te):P(X,de,Ie,be,W,Z,re,pe,te)},ae=(Y,X,de,Ie,be,W,Z,re,pe)=>{let Ce=0;const $e=X.length;let te=Y.length-1,ve=$e-1;for(;Ce<=te&&Ce<=ve;){const je=Y[Ce],nt=X[Ce]=pe?ec(X[Ce]):So(X[Ce]);if(os(je,nt))g(je,nt,de,null,be,W,Z,re,pe);else break;Ce++}for(;Ce<=te&&Ce<=ve;){const je=Y[te],nt=X[ve]=pe?ec(X[ve]):So(X[ve]);if(os(je,nt))g(je,nt,de,null,be,W,Z,re,pe);else break;te--,ve--}if(Ce>te){if(Ce<=ve){const je=ve+1,nt=je<$e?X[je].el:Ie;for(;Ce<=ve;)g(null,X[Ce]=pe?ec(X[Ce]):So(X[Ce]),de,nt,be,W,Z,re,pe),Ce++}}else if(Ce>ve)for(;Ce<=te;)_e(Y[Ce],be,W,!0),Ce++;else{const je=Ce,nt=Ce,Tt=new Map;for(Ce=nt;Ce<=ve;Ce++){const ze=X[Ce]=pe?ec(X[Ce]):So(X[Ce]);ze.key!=null&&Tt.set(ze.key,Ce)}let se,ce=0;const ye=ve-nt+1;let De=!1,Xe=0;const ue=new Array(ye);for(Ce=0;Ce<ye;Ce++)ue[Ce]=0;for(Ce=je;Ce<=te;Ce++){const ze=Y[Ce];if(ce>=ye){_e(ze,be,W,!0);continue}let lt;if(ze.key!=null)lt=Tt.get(ze.key);else for(se=nt;se<=ve;se++)if(ue[se-nt]===0&&os(ze,X[se])){lt=se;break}lt===void 0?_e(ze,be,W,!0):(ue[lt-nt]=Ce+1,lt>=Xe?Xe=lt:De=!0,g(ze,X[lt],de,null,be,W,Z,re,pe),ce++)}const Le=De?ere(ue):Qf;for(se=Le.length-1,Ce=ye-1;Ce>=0;Ce--){const ze=nt+Ce,lt=X[ze],Ke=X[ze+1],qe=ze+1<$e?Ke.el||Ke.placeholder:Ie;ue[Ce]===0?g(null,lt,de,qe,be,W,Z,re,pe):De&&(se<0||Ce!==Le[se]?ne(lt,de,qe,2):se--)}}},ne=(Y,X,de,Ie,be=null)=>{const{el:W,type:Z,transition:re,children:pe,shapeFlag:Ce}=Y;if(Ce&6){ne(Y.component.subTree,X,de,Ie);return}if(Ce&128){Y.suspense.move(X,de,Ie);return}if(Ce&64){Z.move(Y,X,de,Ae);return}if(Z===Ve){r(W,X,de);for(let te=0;te<pe.length;te++)ne(pe[te],X,de,Ie);r(Y.anchor,X,de);return}if(Z===od){w(Y,X,de);return}if(Ie!==2&&Ce&1&&re)if(Ie===0)re.beforeEnter(W),r(W,X,de),jr(()=>re.enter(W),be);else{const{leave:te,delayLeave:ve,afterLeave:je}=re,nt=()=>{Y.ctx.isUnmounted?i(W):r(W,X,de)},Tt=()=>{W._isLeaving&&W[Ul](!0),te(W,()=>{nt(),je&&je()})};ve?ve(W,nt,Tt):Tt()}else r(W,X,de)},_e=(Y,X,de,Ie=!1,be=!1)=>{const{type:W,props:Z,ref:re,children:pe,dynamicChildren:Ce,shapeFlag:$e,patchFlag:te,dirs:ve,cacheIndex:je}=Y;if(te===-2&&(be=!1),re!=null&&(cu(),ip(re,null,de,Y,!0),fu()),je!=null&&(X.renderCache[je]=void 0),$e&256){X.ctx.deactivate(Y);return}const nt=$e&1&&ve,Tt=!yc(Y);let se;if(Tt&&(se=Z&&Z.onVnodeBeforeUnmount)&&bo(se,X,Y),$e&6)Re(Y.component,de,Ie);else{if($e&128){Y.suspense.unmount(de,Ie);return}nt&&Vs(Y,null,X,"beforeUnmount"),$e&64?Y.type.remove(Y,X,de,Ae,Ie):Ce&&!Ce.hasOnce&&(W!==Ve||te>0&&te&64)?ke(Ce,X,de,!1,!0):(W===Ve&&te&384||!be&&$e&16)&&ke(pe,X,de),Ie&&me(Y)}(Tt&&(se=Z&&Z.onVnodeUnmounted)||nt)&&jr(()=>{se&&bo(se,X,Y),nt&&Vs(Y,null,X,"unmounted")},de)},me=Y=>{const{type:X,el:de,anchor:Ie,transition:be}=Y;if(X===Ve){Me(de,Ie);return}if(X===od){S(Y);return}const W=()=>{i(de),be&&!be.persisted&&be.afterLeave&&be.afterLeave()};if(Y.shapeFlag&1&&be&&!be.persisted){const{leave:Z,delayLeave:re}=be,pe=()=>Z(de,W);re?re(Y.el,W,pe):pe()}else W()},Me=(Y,X)=>{let de;for(;Y!==X;)de=h(Y),i(Y),Y=de;i(X)},Re=(Y,X,de)=>{const{bum:Ie,scope:be,job:W,subTree:Z,um:re,m:pe,a:Ce}=Y;uS(pe),uS(Ce),Ie&&nd(Ie),be.stop(),W&&(W.flags|=8,_e(Z,Y,X,de)),re&&jr(re,X),jr(()=>{Y.isUnmounted=!0},X)},ke=(Y,X,de,Ie=!1,be=!1,W=0)=>{for(let Z=W;Z<Y.length;Z++)_e(Y[Z],X,de,Ie,be)},oe=Y=>{if(Y.shapeFlag&6)return oe(Y.component.subTree);if(Y.shapeFlag&128)return Y.suspense.next();const X=h(Y.anchor||Y.el),de=X&&X[UV];return de?h(de):X};let Ee=!1;const we=(Y,X,de)=>{Y==null?X._vnode&&_e(X._vnode,null,null,!0):g(X._vnode||null,Y,X,null,null,null,de),X._vnode=Y,Ee||(Ee=!0,iN(),oS(),Ee=!1)},Ae={p:g,um:_e,m:ne,r:me,mt:k,mc:P,pc:$,pbc:D,n:oe,o:e};let Oe,Ue;return t&&([Oe,Ue]=t(Ae)),{render:we,hydrate:Oe,createApp:Yne(we,Oe)}}function PC({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function nf({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function y6(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function PR(e,t,n=!1){const r=e.children,i=t.children;if(st(r)&&st(i))for(let o=0;o<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=ec(i[o]),s.el=a.el),!n&&s.patchFlag!==-2&&PR(a,s)),s.type===tu&&s.patchFlag!==-1&&(s.el=a.el),s.type===Mr&&!s.el&&(s.el=a.el)}}function ere(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function _6(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:_6(t)}function uS(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const b6=Symbol.for("v-scx"),S6=()=>Mo(b6);function zw(e,t){return By(e,null,t)}function tre(e,t){return By(e,null,{flush:"post"})}function w6(e,t){return By(e,null,{flush:"sync"})}function mt(e,t,n){return By(e,t,n)}function By(e,t,n=sn){const{immediate:r,deep:i,flush:o,once:a}=n,s=un({},n),l=t&&r||!t&&o!=="post";let u;if(Tp){if(o==="sync"){const d=S6();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=li,d.resume=li,d.pause=li,d}}const c=bi;s.call=(d,p,g)=>Fa(d,c,p,g);let f=!1;o==="post"?s.scheduler=d=>{jr(d,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(d,p)=>{p?d():mR(d)}),s.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=jte(e,t,s);return Tp&&(u?u.push(h):l&&h()),h}function nre(e,t,n){const r=this.proxy,i=kt(e)?e.includes(".")?x6(r,e):()=>r[e]:e.bind(r,r);let o;At(t)?o=t:(o=t.handler,n=t);const a=Td(this),s=By(i,o.bind(r),n);return a(),s}function x6(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Hd(e,t,n=sn){const r=vr(),i=Zn(t),o=Ni(t),a=T6(e,i),s=$w((l,u)=>{let c,f=sn,h;return w6(()=>{const d=e[i];Li(c,d)&&(c=d,u())}),{get(){return l(),n.get?n.get(c):c},set(d){const p=n.set?n.set(d):d;if(!Li(p,c)&&!(f!==sn&&Li(d,f)))return;const g=r.vnode.props;g&&(t in g||i in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${i}`in g||`onUpdate:${o}`in g)||(c=d,u()),r.emit(`update:${t}`,p),Li(d,p)&&Li(d,f)&&!Li(p,h)&&u(),f=d,h=p}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||sn:s,done:!1}:{done:!0}}}},s}const T6=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zn(t)}Modifiers`]||e[`${Ni(t)}Modifiers`];function rre(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||sn;let i=n;const o=t.startsWith("update:"),a=o&&T6(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>kt(c)?c.trim():c)),a.number&&(i=n.map(Lm)));let s,l=r[s=td(t)]||r[s=td(Zn(t))];!l&&o&&(l=r[s=td(Ni(t))]),l&&Fa(l,e,6,i);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Fa(u,e,6,i)}}const ire=new WeakMap;function C6(e,t,n=!1){const r=n?ire:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!At(e)){const l=u=>{const c=C6(u,t,!0);c&&(s=!0,un(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(Cn(e)&&r.set(e,null),null):(st(o)?o.forEach(l=>a[l]=null):un(a,o),Cn(e)&&r.set(e,a),a)}function Gw(e,t){return!e||!Nc(t)?!1:(t=t.slice(2).replace(/Once$/,""),yn(e,t[0].toLowerCase()+t.slice(1))||yn(e,Ni(t))||yn(e,t))}function H_(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:f,data:h,setupState:d,ctx:p,inheritAttrs:g}=e,y=Vm(e);let m,b;try{if(n.shapeFlag&4){const S=i||r,C=S;m=So(u.call(C,S,c,f,d,h,p)),b=s}else{const S=t;m=So(S.length>1?S(f,{attrs:s,slots:a,emit:l}):S(f,null)),b=t.props?s:are(s)}}catch(S){Jg.length=0,Vd(S,e,1),m=z(Mr)}let w=m;if(b&&g!==!1){const S=Object.keys(b),{shapeFlag:C}=w;S.length&&C&7&&(o&&S.some(Aw)&&(b=sre(b,o)),w=al(w,b,!1,!0))}return n.dirs&&(w=al(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&hu(w,n.transition),m=w,Vm(y),m}function ore(e,t=!0){let n;for(let r=0;r<e.length;r++){const i=e[r];if(pu(i)){if(i.type!==Mr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const are=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nc(n))&&((t||(t={}))[n]=e[n]);return t},sre=(e,t)=>{const n={};for(const r in e)(!Aw(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lre(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?mN(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(a[h]!==r[h]&&!Gw(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?mN(r,a,u):!0:!!a;return!1}function mN(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Gw(n,o))return!0}return!1}function Ww({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const cS=e=>e.__isSuspense;let uI=0;const ure={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)fre(t,n,r,i,o,a,s,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}dre(e,t,n,r,i,a,s,l,u)}},hydrate:hre,normalize:pre},cre=ure;function zm(e,t){const n=e.props&&e.props[t];At(n)&&n()}function fre(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),h=e.suspense=E6(e,i,r,t,f,n,o,a,s,l);u(null,h.pendingBranch=e.ssContent,f,null,r,h,o,a),h.deps>0?(zm(e,"onPending"),zm(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),op(h,e.ssFallback)):h.resolve(!1,!0)}function dre(e,t,n,r,i,o,a,s,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:m}=f;if(g)f.pendingBranch=h,os(g,h)?(l(g,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():y&&(m||(l(p,d,n,r,i,null,o,a,s),op(f,d)))):(f.pendingId=uI++,m?(f.isHydrating=!1,f.activeBranch=g):u(g,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(p,d,n,r,i,null,o,a,s),op(f,d))):p&&os(p,h)?(l(p,h,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(p&&os(p,h))l(p,h,n,r,i,f,o,a,s),op(f,h);else if(zm(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=uI++,l(null,h,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:w}=f;b>0?setTimeout(()=>{f.pendingId===w&&f.fallback(d)},b):b===0&&f.fallback(d)}}function E6(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:g,remove:y}}=u;let m;const b=vre(e);b&&t&&t.pendingBranch&&(m=t.pendingId,t.deps++);const w=e.props?km(e.props.timeout):void 0,S=o,C={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:uI++,timeout:typeof w=="number"?w:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(T=!1,E=!1){const{vnode:P,activeBranch:I,pendingBranch:D,pendingId:O,effects:N,parentComponent:M,container:k}=C;let V=!1;C.isHydrating?C.isHydrating=!1:T||(V=I&&D.transition&&D.transition.mode==="out-in",V&&(I.transition.afterLeave=()=>{O===C.pendingId&&(h(D,k,o===S?p(I):o,0),Bm(N))}),I&&(g(I.el)===k&&(o=p(I)),d(I,M,C,!0)),V||h(D,k,o,0)),op(C,D),C.pendingBranch=null,C.isInFallback=!1;let B=C.parent,U=!1;for(;B;){if(B.pendingBranch){B.effects.push(...N),U=!0;break}B=B.parent}!U&&!V&&Bm(N),C.effects=[],b&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),zm(P,"onResolve")},fallback(T){if(!C.pendingBranch)return;const{vnode:E,activeBranch:P,parentComponent:I,container:D,namespace:O}=C;zm(E,"onFallback");const N=p(P),M=()=>{C.isInFallback&&(f(null,T,D,N,I,null,O,s,l),op(C,T))},k=T.transition&&T.transition.mode==="out-in";k&&(P.transition.afterLeave=M),C.isInFallback=!0,d(P,I,null,!0),k||M()},move(T,E,P){C.activeBranch&&h(C.activeBranch,T,E,P),C.container=T},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(T,E,P){const I=!!C.pendingBranch;I&&C.deps++;const D=T.vnode.el;T.asyncDep.catch(O=>{Vd(O,T,0)}).then(O=>{if(T.isUnmounted||C.isUnmounted||C.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:N}=T;dI(T,O,!1),D&&(N.el=D);const M=!D&&T.subTree.el;E(T,N,g(D||T.subTree.el),D?null:p(T.subTree),C,a,P),M&&y(M),Ww(T,N.el),I&&--C.deps===0&&C.resolve()})},unmount(T,E){C.isUnmounted=!0,C.activeBranch&&d(C.activeBranch,n,T,E),C.pendingBranch&&d(C.pendingBranch,n,T,E)}};return C}function hre(e,t,n,r,i,o,a,s,l){const u=t.suspense=E6(t,r,n,e.parentNode,document.createElement("div"),null,i,o,a,s,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,a);return u.deps===0&&u.resolve(!1,!0),c}function pre(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=yN(r?n.default:n),e.ssFallback=r?yN(n.fallback):z(Mr)}function yN(e){let t;if(At(e)){const n=xd&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=Bi,A6())}return st(e)&&(e=ore(e)),e=So(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function I6(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):Bm(e)}function op(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,Ww(r,i))}function vre(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ve=Symbol.for("v-fgt"),tu=Symbol.for("v-txt"),Mr=Symbol.for("v-cmt"),od=Symbol.for("v-stc"),Jg=[];let Bi=null;function H(e=!1){Jg.push(Bi=e?null:[])}function A6(){Jg.pop(),Bi=Jg[Jg.length-1]||null}let xd=1;function Gm(e,t=!1){xd+=e,e<0&&Bi&&t&&(Bi.hasOnce=!0)}function P6(e){return e.dynamicChildren=xd>0?Bi||Qf:null,A6(),xd>0&&Bi&&Bi.push(e),e}function K(e,t,n,r,i,o){return P6(R(e,t,n,r,i,o,!0))}function it(e,t,n,r,i){return P6(z(e,t,n,r,i,!0))}function pu(e){return e?e.__v_isVNode===!0:!1}function os(e,t){return e.type===t.type&&e.key===t.key}function gre(e){}const R6=({key:e})=>e??null,z_=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?kt(e)||rt(e)||At(e)?{i:Si,r:e,k:t,f:!!n}:e:null);function R(e,t=null,n=null,r=0,i=null,o=e===Ve?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&R6(t),ref:t&&z_(t),scopeId:Bw,slotScopeIds:null,children:n,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Si};return s?(RR(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=kt(n)?8:16),xd>0&&!a&&Bi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Bi.push(l),l}const z=mre;function mre(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===r6)&&(e=Mr),pu(e)){const s=al(e,t,!0);return n&&RR(s,n),xd>0&&!o&&Bi&&(s.shapeFlag&6?Bi[Bi.indexOf(e)]=s:Bi.push(s)),s.patchFlag=-2,s}if(Cre(e)&&(e=e.__vccOpts),t){t=M6(t);let{class:s,style:l}=t;s&&!kt(s)&&(t.class=ct(s)),Cn(l)&&(Fw(l)&&!st(l)&&(l=un({},l)),t.style=Kn(l))}const a=kt(e)?1:cS(e)?128:VV(e)?64:Cn(e)?4:At(e)?2:0;return R(e,t,n,r,i,a,o,!0)}function M6(e){return e?Fw(e)||u6(e)?un({},e):e:null}function al(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?D6(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&R6(u),ref:t&&t.ref?n&&o?st(o)?o.concat(z_(t)):[o,z_(t)]:z_(t):o,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!==Ve?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&al(e.ssContent),ssFallback:e.ssFallback&&al(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&hu(c,l.clone(c)),c}function Be(e=" ",t=0){return z(tu,null,e,t)}function yre(e,t){const n=z(od,null,e);return n.staticCount=t,n}function Ge(e="",t=!1){return t?(H(),it(Mr,null,e)):z(Mr,null,e)}function So(e){return e==null||typeof e=="boolean"?z(Mr):st(e)?z(Ve,null,e.slice()):pu(e)?ec(e):z(tu,null,String(e))}function ec(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:al(e)}function RR(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(st(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),RR(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!u6(t)?t._ctx=Si:i===3&&Si&&(Si.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else At(t)?(t={default:t,_ctx:Si},n=32):(t=String(t),r&64?(n=16,t=[Be(t)]):n=8);e.children=t,e.shapeFlag|=n}function D6(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ct([t.class,r.class]));else if(i==="style")t.style=Kn([t.style,r.style]);else if(Nc(i)){const o=t[i],a=r[i];a&&o!==a&&!(st(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function bo(e,t,n,r=null){Fa(e,t,7,[n,r])}const _re=a6();let bre=0;function O6(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||_re,o={uid:bre++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new uR(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:f6(r,i),emitsOptions:C6(r,i),emit:null,emitted:null,propsDefaults:sn,inheritAttrs:r.inheritAttrs,ctx:sn,data:sn,props:sn,attrs:sn,slots:sn,refs:sn,setupState:sn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=rre.bind(null,o),e.ce&&e.ce(o),o}let bi=null;const vr=()=>bi||Si;let fS,cI;{const e=Ly(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};fS=t("__VUE_INSTANCE_SETTERS__",n=>bi=n),cI=t("__VUE_SSR_SETTERS__",n=>Tp=n)}const Td=e=>{const t=bi;return fS(e),e.scope.on(),()=>{e.scope.off(),fS(t)}},fI=()=>{bi&&bi.scope.off(),fS(null)};function L6(e){return e.vnode.shapeFlag&4}let Tp=!1;function k6(e,t=!1,n=!1){t&&cI(t);const{props:r,children:i}=e.vnode,o=L6(e);Xne(e,r,o,t),Jne(e,i,n||t);const a=o?Sre(e,t):void 0;return t&&cI(!1),a}function Sre(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,oI);const{setup:r}=n;if(r){cu();const i=e.setupContext=r.length>1?F6(e):null,o=Td(e),a=tv(r,e,0,[e.props,i]),s=Rw(a);if(fu(),o(),(s||e.sp)&&!yc(e)&&bR(e),s){if(a.then(fI,fI),t)return a.then(l=>{dI(e,l,t)}).catch(l=>{Vd(l,e,0)});e.asyncDep=a}else dI(e,a,t)}else N6(e,t)}function dI(e,t,n){At(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Cn(t)&&(e.setupState=gR(t)),N6(e,n)}let dS,hI;function wre(e){dS=e,hI=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Ane))}}const xre=()=>!dS;function N6(e,t,n){const r=e.type;if(!e.render){if(!t&&dS&&!r.render){const i=r.template||CR(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=un(un({isCustomElement:o,delimiters:s},a),l);r.render=dS(i,u)}}e.render=r.render||li,hI&&hI(e)}{const i=Td(e);cu();try{Vne(e)}finally{fu(),i()}}}const Tre={get(e,t){return ki(e,"get",""),e[t]}};function F6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Tre),slots:e.slots,emit:e.emit,expose:t}}function Uy(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gR(RV(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zg)return Zg[n](e)},has(t,n){return n in t||n in Zg}})):e.proxy}function pI(e,t=!0){return At(e)?e.displayName||e.name:e.name||t&&e.__name}function Cre(e){return At(e)&&"__vccOpts"in e}const ge=(e,t)=>Hte(e,t,Tp);function yi(e,t,n){const r=(o,a,s)=>{Gm(-1);try{return z(o,a,s)}finally{Gm(1)}},i=arguments.length;return i===2?Cn(t)&&!st(t)?pu(t)?r(e,null,[t]):r(e,t):r(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&pu(n)&&(n=[n]),r(e,t,n))}function Ere(){}function Ire(e,t,n,r){const i=n[r];if(i&&$6(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function $6(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Li(n[r],t[r]))return!1;return xd>0&&Bi&&Bi.push(e),!0}const B6="3.5.21",Are=li,Pre=qte,Rre=Fh,Mre=BV,Dre={createComponentInstance:O6,setupComponent:k6,renderComponentRoot:H_,setCurrentRenderingInstance:Vm,isVNode:pu,normalizeVNode:So,getComponentPublicInstance:Uy,ensureValidVNode:TR,pushWarningContext:Yte,popWarningContext:Xte},Ore=Dre,Lre=null,kre=null,Nre=null;/**
* @vue/runtime-dom v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let vI;const _N=typeof window<"u"&&window.trustedTypes;if(_N)try{vI=_N.createPolicy("vue",{createHTML:e=>e})}catch{}const U6=vI?e=>vI.createHTML(e):e=>e,Fre="http://www.w3.org/2000/svg",$re="http://www.w3.org/1998/Math/MathML",Fl=typeof document<"u"?document:null,bN=Fl&&Fl.createElement("template"),Bre={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?Fl.createElementNS(Fre,e):t==="mathml"?Fl.createElementNS($re,e):n?Fl.createElement(e,{is:n}):Fl.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Fl.createTextNode(e),createComment:e=>Fl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Fl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{bN.innerHTML=U6(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const s=bN.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ku="transition",Fv="animation",Cp=Symbol("_vtc"),V6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},H6=un({},_R,V6),Ure=e=>(e.displayName="Transition",e.props=H6,e),z6=Ure((e,{slots:t})=>yi(YV,G6(e),t)),rf=(e,t=[])=>{st(e)?e.forEach(n=>n(...t)):e&&e(...t)},SN=e=>e?st(e)?e.some(t=>t.length>1):e.length>1:!1;function G6(e){const t={};for(const N in e)N in V6||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,p=Vre(i),g=p&&p[0],y=p&&p[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:C,onBeforeAppear:T=m,onAppear:E=b,onAppearCancelled:P=w}=t,I=(N,M,k,V)=>{N._enterCancelled=V,Ku(N,M?c:s),Ku(N,M?u:a),k&&k()},D=(N,M)=>{N._isLeaving=!1,Ku(N,f),Ku(N,d),Ku(N,h),M&&M()},O=N=>(M,k)=>{const V=N?E:b,B=()=>I(M,N,k);rf(V,[M,B]),wN(()=>{Ku(M,N?l:o),$s(M,N?c:s),SN(V)||xN(M,r,g,B)})};return un(t,{onBeforeEnter(N){rf(m,[N]),$s(N,o),$s(N,a)},onBeforeAppear(N){rf(T,[N]),$s(N,l),$s(N,u)},onEnter:O(!1),onAppear:O(!0),onLeave(N,M){N._isLeaving=!0;const k=()=>D(N,M);$s(N,f),N._enterCancelled?($s(N,h),gI()):(gI(),$s(N,h)),wN(()=>{N._isLeaving&&(Ku(N,f),$s(N,d),SN(S)||xN(N,r,y,k))}),rf(S,[N,k])},onEnterCancelled(N){I(N,!1,void 0,!0),rf(w,[N])},onAppearCancelled(N){I(N,!0,void 0,!0),rf(P,[N])},onLeaveCancelled(N){D(N),rf(C,[N])}})}function Vre(e){if(e==null)return null;if(Cn(e))return[RC(e.enter),RC(e.leave)];{const t=RC(e);return[t,t]}}function RC(e){return km(e)}function $s(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cp]||(e[Cp]=new Set)).add(t)}function Ku(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Cp];n&&(n.delete(t),n.size||(e[Cp]=void 0))}function wN(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hre=0;function xN(e,t,n,r){const i=e._endId=++Hre,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=W6(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),o()},h=d=>{d.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,h)}function W6(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),i=r(`${ku}Delay`),o=r(`${ku}Duration`),a=TN(i,o),s=r(`${Fv}Delay`),l=r(`${Fv}Duration`),u=TN(s,l);let c=null,f=0,h=0;t===ku?a>0&&(c=ku,f=a,h=o.length):t===Fv?u>0&&(c=Fv,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?ku:Fv:null,h=c?c===ku?o.length:l.length:0);const d=c===ku&&/\b(?:transform|all)(?:,|$)/.test(r(`${ku}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}function TN(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>CN(n)+CN(e[r])))}function CN(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function gI(){return document.body.offsetHeight}function zre(e,t,n){const r=e[Cp];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hS=Symbol("_vod"),j6=Symbol("_vsh"),MR={name:"show",beforeMount(e,{value:t},{transition:n}){e[hS]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$v(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),$v(e,!0),r.enter(e)):r.leave(e,()=>{$v(e,!1)}):$v(e,t))},beforeUnmount(e,{value:t}){$v(e,t)}};function $v(e,t){e.style.display=t?e[hS]:"none",e[j6]=!t}function Gre(){MR.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Y6=Symbol("");function Wre(e){const t=vr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>pS(o,i))},r=()=>{const i=e(t.proxy);t.ce?pS(t.ce,i):mI(t.subTree,i),n(i)};SR(()=>{Bm(r)}),Er(()=>{mt(r,li,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Bc(()=>i.disconnect())})}function mI(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{mI(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)pS(e.el,t);else if(e.type===Ve)e.children.forEach(n=>mI(n,t));else if(e.type===od){let{el:n,anchor:r}=e;for(;n&&(pS(n,t),n!==r);)n=n.nextSibling}}function pS(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const o=hV(t[i]);n.setProperty(`--${i}`,o),r+=`--${i}: ${o};`}n[Y6]=r}}const jre=/(?:^|;)\s*display\s*:/;function Yre(e,t,n){const r=e.style,i=kt(n);let o=!1;if(n&&!i){if(t)if(kt(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&G_(r,s,"")}else for(const a in t)n[a]==null&&G_(r,a,"");for(const a in n)a==="display"&&(o=!0),G_(r,a,n[a])}else if(i){if(t!==n){const a=r[Y6];a&&(n+=";"+a),r.cssText=n,o=jre.test(n)}}else t&&e.removeAttribute("style");hS in e&&(e[hS]=o?r.display:"",e[j6]&&(r.display="none"))}const EN=/\s*!important$/;function G_(e,t,n){if(st(n))n.forEach(r=>G_(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Xre(e,t);EN.test(n)?e.setProperty(Ni(r),n.replace(EN,""),"important"):e[r]=n}}const IN=["Webkit","Moz","ms"],MC={};function Xre(e,t){const n=MC[t];if(n)return n;let r=Zn(t);if(r!=="filter"&&r in e)return MC[t]=r;r=$c(r);for(let i=0;i<IN.length;i++){const o=IN[i]+r;if(o in e)return MC[t]=o}return t}const AN="http://www.w3.org/1999/xlink";function PN(e,t,n,r,i,o=uV(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(AN,t.slice(6,t.length)):e.setAttributeNS(AN,t,n):n==null||o&&!lR(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ao(n)?String(n):n)}function RN(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?U6(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=lR(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(i||t)}function zl(e,t,n,r){e.addEventListener(t,n,r)}function Kre(e,t,n,r){e.removeEventListener(t,n,r)}const MN=Symbol("_vei");function Zre(e,t,n,r,i=null){const o=e[MN]||(e[MN]={}),a=o[t];if(r&&a)a.value=r;else{const[s,l]=qre(t);if(r){const u=o[t]=eie(r,i);zl(e,s,u,l)}else a&&(Kre(e,s,a,l),o[t]=void 0)}}const DN=/(?:Once|Passive|Capture)$/;function qre(e){let t;if(DN.test(e)){t={};let r;for(;r=e.match(DN);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ni(e.slice(2)),t]}let DC=0;const Jre=Promise.resolve(),Qre=()=>DC||(Jre.then(()=>DC=0),DC=Date.now());function eie(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fa(tie(r,n.value),t,5,[r])};return n.value=e,n.attached=Qre(),n}function tie(e,t){if(st(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const ON=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,nie=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?zre(e,r,a):t==="style"?Yre(e,n,r):Nc(t)?Aw(t)||Zre(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rie(e,t,r,a))?(RN(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&PN(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!kt(r))?RN(e,Zn(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),PN(e,t,r,a))};function rie(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ON(t)&&At(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 ON(t)&&kt(n)?!1:t in e}const LN={};function X6(e,t,n){let r=Ze(e,t);Oy(r)&&(r=un({},r,t));class i extends jw{constructor(a){super(r,a,n)}}return i.def=r,i}const iie=((e,t)=>X6(e,t,oH)),oie=typeof HTMLElement<"u"?HTMLElement:class{};class jw extends oie{constructor(t,n={},r=Wm){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Wm?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof jw){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Zr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let s;if(o&&!st(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=km(this._props[l])),(s||(s=Object.create(null)))[Zn(l)]=!0)}this._numberProps=s,this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)yn(this,r)||Object.defineProperty(this,r,{get:()=>L(n[r])})}_resolveProps(t){const{props:n}=t,r=st(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i]);for(const i of r.map(Zn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):LN;const i=Zn(t);n&&this._numberProps&&this._numberProps[i]&&(r=km(r)),this._setProp(i,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!1){if(n!==this._props[t]&&(n===LN?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),r)){const o=this._ob;o&&o.disconnect(),n===!0?this.setAttribute(Ni(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ni(t),n+""):n||this.removeAttribute(Ni(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),iH(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=z(this._def,un(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const i=(o,a)=>{this.dispatchEvent(new CustomEvent(o,Oy(a[0])?un({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{i(o,a),Ni(o)!==o&&i(Ni(o),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let i=t.length-1;i>=0;i--){const o=document.createElement("style");r&&o.setAttribute("nonce",r),o.textContent=t[i],this.shadowRoot.prepend(o)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const i=t[r],o=i.getAttribute("name")||"default",a=this._slots[o],s=i.parentNode;if(a)for(const l of a){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function K6(e){const t=vr(),n=t&&t.ce;return n||null}function aie(){const e=K6();return e&&e.shadowRoot}function sie(e="$style"){{const t=vr();if(!t)return sn;const n=t.type.__cssModules;if(!n)return sn;const r=n[e];return r||sn}}const Z6=new WeakMap,q6=new WeakMap,vS=Symbol("_moveCb"),kN=Symbol("_enterCb"),lie=e=>(delete e.props.mode,e),uie=lie({name:"TransitionGroup",props:un({},H6,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vr(),r=yR();let i,o;return $y(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!pie(i[0].el,n.vnode.el,a)){i=[];return}i.forEach(fie),i.forEach(die);const s=i.filter(hie);gI(),s.forEach(l=>{const u=l.el,c=u.style;$s(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[vS]=h=>{h&&h.target!==u||(!h||h.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",f),u[vS]=null,Ku(u,a))};u.addEventListener("transitionend",f)}),i=[]}),()=>{const a=vn(e),s=G6(a);let l=a.tag||Ve;if(i=[],o)for(let u=0;u<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),hu(c,xp(c,s,r,n)),Z6.set(c,c.el.getBoundingClientRect()))}o=t.default?Uw(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&hu(c,xp(c,s,r,n))}return z(l,null,o)}}}),cie=uie;function fie(e){const t=e.el;t[vS]&&t[vS](),t[kN]&&t[kN]()}function die(e){q6.set(e,e.el.getBoundingClientRect())}function hie(e){const t=Z6.get(e),n=q6.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function pie(e,t,n){const r=e.cloneNode(),i=e[Cp];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=W6(r);return o.removeChild(r),a}const Ec=e=>{const t=e.props["onUpdate:modelValue"]||!1;return st(t)?n=>nd(t,n):t};function vie(e){e.target.composing=!0}function NN(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Oa=Symbol("_assign"),Yr={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Oa]=Ec(i);const o=r||i.props&&i.props.type==="number";zl(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=Lm(s)),e[Oa](s)}),n&&zl(e,"change",()=>{e.value=e.value.trim()}),t||(zl(e,"compositionstart",vie),zl(e,"compositionend",NN),zl(e,"change",NN))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[Oa]=Ec(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?Lm(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l))}},en={deep:!0,created(e,t,n){e[Oa]=Ec(n),zl(e,"change",()=>{const r=e._modelValue,i=Ep(e),o=e.checked,a=e[Oa];if(st(r)){const s=ky(r,i),l=s!==-1;if(o&&!l)a(r.concat(i));else if(!o&&l){const u=[...r];u.splice(s,1),a(u)}}else if(Fc(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(J6(e,o))})},mounted:FN,beforeUpdate(e,t,n){e[Oa]=Ec(n),FN(e,t,n)}};function FN(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(st(t))i=ky(t,r.props.value)>-1;else if(Fc(t))i=t.has(r.props.value);else{if(t===n)return;i=uu(t,J6(e,!0))}e.checked!==i&&(e.checked=i)}const DR={created(e,{value:t},n){e.checked=uu(t,n.props.value),e[Oa]=Ec(n),zl(e,"change",()=>{e[Oa](Ep(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Oa]=Ec(r),t!==n&&(e.checked=uu(t,r.props.value))}},zn={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Fc(t);zl(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Lm(Ep(a)):Ep(a));e[Oa](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Zr(()=>{e._assigning=!1})}),e[Oa]=Ec(r)},mounted(e,{value:t}){$N(e,t)},beforeUpdate(e,t,n){e[Oa]=Ec(n)},updated(e,{value:t}){e._assigning||$N(e,t)}};function $N(e,t){const n=e.multiple,r=st(t);if(!(n&&!r&&!Fc(t))){for(let i=0,o=e.options.length;i<o;i++){const a=e.options[i],s=Ep(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(u)===String(s)):a.selected=ky(t,s)>-1}else a.selected=t.has(s);else if(uu(Ep(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ep(e){return"_value"in e?e._value:e.value}function J6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Q6={created(e,t,n){S1(e,t,n,null,"created")},mounted(e,t,n){S1(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){S1(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){S1(e,t,n,r,"updated")}};function eH(e,t){switch(e){case"SELECT":return zn;case"TEXTAREA":return Yr;default:switch(t){case"checkbox":return en;case"radio":return DR;default:return Yr}}}function S1(e,t,n,r,i){const a=eH(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function gie(){Yr.getSSRProps=({value:e})=>({value:e}),DR.getSSRProps=({value:e},t)=>{if(t.props&&uu(t.props.value,e))return{checked:!0}},en.getSSRProps=({value:e},t)=>{if(st(e)){if(t.props&&ky(e,t.props.value)>-1)return{checked:!0}}else if(Fc(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Q6.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=eH(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const mie=["ctrl","shift","alt","meta"],yie={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)=>mie.some(n=>e[`${n}Key`]&&!t.includes(n))},Pn=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((i,...o)=>{for(let a=0;a<t.length;a++){const s=yie[t[a]];if(s&&s(i,t))return}return e(i,...o)}))},_ie={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ic=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(i=>{if(!("key"in i))return;const o=Ni(i.key);if(t.some(a=>a===o||_ie[a]===o))return e(i)}))},tH=un({patchProp:nie},Bre);let Qg,BN=!1;function nH(){return Qg||(Qg=v6(tH))}function rH(){return Qg=BN?Qg:g6(tH),BN=!0,Qg}const iH=((...e)=>{nH().render(...e)}),bie=((...e)=>{rH().hydrate(...e)}),Wm=((...e)=>{const t=nH().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=sH(r);if(!i)return;const o=t._component;!At(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,aH(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t}),oH=((...e)=>{const t=rH().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=sH(r);if(i)return n(i,!0,aH(i))},t});function aH(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sH(e){return kt(e)?document.querySelector(e):e}let UN=!1;const Sie=()=>{UN||(UN=!0,gie(),Gre())},wie=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:YV,BaseTransitionPropsValidators:_R,Comment:Mr,DeprecationTypes:Nre,EffectScope:uR,ErrorCodes:Zte,ErrorTypeStrings:Pre,Fragment:Ve,KeepAlive:Sne,ReactiveEffect:Nm,Static:od,Suspense:cre,Teleport:zV,Text:tu,TrackOpTypes:zte,Transition:z6,TransitionGroup:cie,TriggerOpTypes:Gte,VueElement:jw,assertNumber:Kte,callWithAsyncErrorHandling:Fa,callWithErrorHandling:tv,camelize:Zn,capitalize:$c,cloneVNode:al,compatUtils:kre,computed:ge,createApp:Wm,createBlock:it,createCommentVNode:Ge,createElementBlock:K,createElementVNode:R,createHydrationRenderer:g6,createPropsRestProxy:Bne,createRenderer:v6,createSSRApp:oH,createSlots:Ene,createStaticVNode:yre,createTextVNode:Be,createVNode:z,customRef:$w,defineAsyncComponent:_ne,defineComponent:Ze,defineCustomElement:X6,defineEmits:Rne,defineExpose:Mne,defineModel:Lne,defineOptions:Dne,defineProps:Pne,defineSSRCustomElement:iie,defineSlots:One,devtools:Rre,effect:pte,effectScope:pV,getCurrentInstance:vr,getCurrentScope:cR,getCurrentWatcher:Wte,getTransitionRawChildren:Uw,guardReactiveProps:M6,h:yi,handleError:Vd,hasInjectionContext:ER,hydrate:bie,hydrateOnIdle:hne,hydrateOnInteraction:mne,hydrateOnMediaQuery:gne,hydrateOnVisible:vne,initCustomFormatter:Ere,initDirectivesForSSR:Sie,inject:Mo,isMemoSame:$6,isProxy:Fw,isReactive:mc,isReadonly:du,isRef:rt,isRuntimeOnly:xre,isShallow:ia,isVNode:pu,markRaw:RV,mergeDefaults:$ne,mergeModels:sS,mergeProps:D6,nextTick:Zr,normalizeClass:ct,normalizeProps:rV,normalizeStyle:Kn,onActivated:KV,onBeforeMount:JV,onBeforeUnmount:Hw,onBeforeUpdate:SR,onDeactivated:ZV,onErrorCaptured:n6,onMounted:Er,onRenderTracked:t6,onRenderTriggered:e6,onScopeDispose:fR,onServerPrefetch:QV,onUnmounted:Bc,onUpdated:$y,onWatcherCleanup:LV,openBlock:H,popScopeId:tne,provide:qg,proxyRefs:gR,pushScopeId:ene,queuePostFlushCb:Bm,reactive:Hi,readonly:Ny,ref:Te,registerRuntimeCompiler:wre,render:iH,renderList:Yt,renderSlot:eu,resolveComponent:Tne,resolveDirective:Cne,resolveDynamicComponent:Po,resolveFilter:Lre,resolveTransitionHooks:xp,setBlockTracking:Gm,setDevtoolsHook:Mre,setTransitionHooks:hu,shallowReactive:vR,shallowReadonly:Lte,shallowRef:Lr,ssrContextKey:b6,ssrUtils:Ore,stop:vte,toDisplayString:q,toHandlerKey:td,toHandlers:Ine,toRaw:vn,toRef:DV,toRefs:$te,toValue:tr,transformVNodeArgs:gre,triggerRef:nI,unref:L,useAttrs:Fne,useCssModule:sie,useCssVars:Wre,useHost:K6,useId:one,useModel:Hd,useSSRContext:S6,useShadowRoot:aie,useSlots:Nne,useTemplateRef:ane,useTransitionState:yR,vModelCheckbox:en,vModelDynamic:Q6,vModelRadio:DR,vModelSelect:zn,vModelText:Yr,vShow:MR,version:B6,warn:Are,watch:mt,watchEffect:zw,watchPostEffect:tre,watchSyncEffect:w6,withAsyncContext:Une,withCtx:gn,withDefaults:kne,withDirectives:tt,withKeys:Ic,withMemo:Ire,withModifiers:Pn,withScopeId:nne},Symbol.toStringTag,{value:"Module"}));function xie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"})])}function Yw(e,t){return H(),K("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"},[R("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 lH(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})])}function Tie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Cie(e,t){return H(),K("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"},[R("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 nv(e,t){return H(),K("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"},[R("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 aa(e,t){return H(),K("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"},[R("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 Vy(e,t){return H(),K("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"},[R("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 Eie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})])}function Iie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function VN(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})])}function Aie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})])}function uH(e,t){return H(),K("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"},[R("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 Hy(e,t){return H(),K("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"},[R("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 Pie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function Xw(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function cH(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function Kw(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function Rie(e,t){return H(),K("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"},[R("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"}),R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Mie(e,t){return H(),K("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"},[R("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 HN(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"})])}function Die(e,t){return H(),K("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"},[R("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 OR(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"})])}function LR(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function Oie(e,t){return H(),K("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"},[R("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 fH(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})])}function Lie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5V6.75a4.5 4.5 0 1 1 9 0v3.75M3.75 21.75h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H3.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})])}function zN(e,t){return H(),K("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"},[R("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 GN(e,t){return H(),K("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"},[R("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 kR(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"})])}function kie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.25 9v6m-4.5 0V9M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function dH(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function hH(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125"})])}function Nie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.91 11.672a.375.375 0 0 1 0 .656l-5.603 3.113a.375.375 0 0 1-.557-.328V8.887c0-.286.307-.466.557-.327l5.603 3.112Z"})])}function pH(e,t){return H(),K("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"},[R("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 rv(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function ss(e,t){return H(),K("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"},[R("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 vH(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.75 17.25v-.228a4.5 4.5 0 0 0-.12-1.03l-2.268-9.64a3.375 3.375 0 0 0-3.285-2.602H7.923a3.375 3.375 0 0 0-3.285 2.602l-2.268 9.64a4.5 4.5 0 0 0-.12 1.03v.228m19.5 0a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3m19.5 0a3 3 0 0 0-3-3H5.25a3 3 0 0 0-3 3m16.5 0h.008v.008h-.008v-.008Zm-3 0h.008v.008h-.008v-.008Z"})])}function Fie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"})])}function $ie(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 6h.008v.008H6V6Z"})])}function zy(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function Zw(e,t){return H(),K("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"},[R("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 nu(e,t){return H(),K("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"},[R("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const Bie=/Mac|iPod|iPhone|iPad/.test(navigator.platform),ap="GLOBAL",gH="https://www.gstatic.com/generate_204",NR="https://ipv6.google.com/generate_204",ai=0;var Ys=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(Ys||{}),Ri=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(Ri||{}),ad=(e=>(e.TWEMOJI="twemoji",e.NOTO_COLOR_EMOJI="noto-color-emoji",e))(ad||{}),We=(e=>(e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.Outbound="outbound",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.SniffHost="sniffHost",e.Destination="destination",e.DestinationType="destinationType",e.RemoteAddress="remoteAddress",e.InboundUser="inboundUser",e))(We||{}),qw=(e=>(e.AUTO="auto",e.MANUAL="manual",e))(qw||{}),Ws=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Ws||{}),jm=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(jm||{}),_c=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(_c||{}),ta=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(ta||{}),qi=(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.INBOUND_USER="inboundUser",e))(qi||{}),Vf=(e=>(e.ASC="asc",e.DESC="desc",e))(Vf||{}),zd=(e=>(e.ACTIVE="activeConnections",e.CLOSED="closedConnections",e))(zd||{}),Qi=(e=>(e.Trace="trace",e.Debug="debug",e.Info="info",e.Warning="warning",e.Error="error",e.Fatal="fatal",e.Panic="panic",e.Silent="silent",e))(Qi||{}),an=(e=>(e.overview="overview",e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(an||{});const mH={overview:HN,proxies:Oie,connections:uH,rules:Fie,logs:Die,settings:Rie,setup:HN};var Ym=(e=>(e.SMALL="small",e.LARGE="large",e))(Ym||{}),iv=(e=>(e.SMALL="small",e.LARGE="large",e))(iv||{}),yI=(e=>(e[e.SMALL=130]="SMALL",e[e.LARGE=145]="LARGE",e))(yI||{}),Cd=(e=>(e.NORMAL="normal",e.REVERSE="reverse",e))(Cd||{}),$r=(e=>(e.Direct="direct",e.Reject="reject",e.RejectDrop="rejectdrop",e.Compatible="compatible",e.Pass="pass",e.Dns="dns",e.Selector="selector",e.Fallback="fallback",e.URLTest="urltest",e.Smart="smart",e.LoadBalance="loadbalance",e))($r||{}),Xm=(e=>(e.FILTERED_TOTAL="filteredTotal",e.TOTAL="total",e.ALIVE_TOTAL="aliveTotal",e))(Xm||{});const Uie=[["host","connectTime"],["chains","dlSpeed","close"]],yH=[["host","connectTime"],["type","dl","ul"],["chains","dlSpeed","close"]],gS=["light","dark","light-legacy","dark-legacy","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","caramellatte","abyss","silk"],WN={name:"custom",id:"","--border":"1px","--color-base-100":"#ffffff","--color-base-200":"#fcfcfc","--color-base-300":"#f2f2f2","--color-base-content":"#2d2d33","--color-primary":"#5a3cd2","--color-primary-content":"#f3efff","--color-secondary":"#ea4c5a","--color-secondary-content":"#fff1f2","--color-accent":"#49c6c1","--color-accent-content":"#285e66","--color-neutral":"#1e1e1f","--color-neutral-content":"#ececec","--color-info":"#5b90ff","--color-info-content":"#273c66","--color-success":"#44c07a","--color-success-content":"#1d472f","--color-warning":"#e5a300","--color-warning-content":"#705322","--color-error":"#d13a30","--color-error-content":"#551d1d","--depth":"0","--noise":"0","--radius-box":"1rem","--radius-field":"0.5rem","--radius-selector":"1rem","--size-field":"0.25rem","--size-selector":"0.25rem","color-scheme":"dark",default:!1,prefersdark:!1};var sp=(e=>(e.IPSB="ip.sb",e.IPWHOIS="ipwho.is",e.IPAPI="ipapi.is",e))(sp||{});function Vie(e,t,n={}){let r,i,o,a=!0;const s=()=>{a=!0,o()};mt(e,s,{flush:"sync",...n});const l=typeof t=="function"?t:t.get,u=typeof t=="function"?void 0:t.set,c=$w((f,h)=>(i=f,o=h,{get(){return a&&(r=l(r),a=!1),i(),r},set(d){u?.(d)}}));return c.trigger=s,c}function Gy(e){return cR()?(fR(e),!0):!1}const OC=new WeakMap,Hie=(...e)=>{var t;const n=e[0],r=(t=vr())==null?void 0:t.proxy;if(r==null&&!ER())throw new Error("injectLocal must be called in setup");return r&&OC.has(r)&&n in OC.get(r)?OC.get(r)[n]:Mo(...e)},_H=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const bH=e=>e!=null,zie=Object.prototype.toString,Gie=e=>zie.call(e)==="[object Object]",qs=()=>{};function SH(...e){if(e.length!==1)return DV(...e);const t=e[0];return typeof t=="function"?Ny($w(()=>({get:t,set:qs}))):Te(t)}function FR(e,t){function n(...r){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(o)})}return n}const wH=e=>e();function Wie(e,t={}){let n,r,i=qs;const o=l=>{clearTimeout(l),i(),i=qs};let a;return l=>{const u=tr(e),c=tr(t.maxWait);return n&&o(n),u<=0||c!==void 0&&c<=0?(r&&(o(r),r=void 0),Promise.resolve(l())):new Promise((f,h)=>{i=t.rejectOnCancel?h:f,a=l,c&&!r&&(r=setTimeout(()=>{n&&o(n),r=void 0,f(a())},c)),n=setTimeout(()=>{r&&o(r),r=void 0,f(l())},u)})}}function jie(...e){let t=0,n,r=!0,i=qs,o,a,s,l,u;!rt(e[0])&&typeof e[0]=="object"?{delay:a,trailing:s=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[a,s=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,i(),i=qs)};return h=>{const d=tr(a),p=Date.now()-t,g=()=>o=h();return c(),d<=0?(t=Date.now(),g()):(p>d&&(l||!r)?(t=Date.now(),g()):s&&(o=new Promise((y,m)=>{i=u?m:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(g()),c()},Math.max(0,d-p))})),!l&&!n&&(n=setTimeout(()=>r=!0,d)),r=!1,o)}}function Yie(e=wH,t={}){const{initialState:n="active"}=t,r=SH(n==="active");function i(){r.value=!1}function o(){r.value=!0}const a=(...s)=>{r.value&&e(...s)};return{isActive:Ny(r),pause:i,resume:o,eventFilter:a}}function jN(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function lp(e){return Array.isArray(e)?e:[e]}function xH(e){return vr()}function Xie(e,t=200,n={}){return FR(Wie(t,n),e)}function Kie(e,t=200,n=!1,r=!0,i=!1){return FR(jie(t,n,r,i),e)}function Zie(e,t,n={}){const{eventFilter:r=wH,...i}=n;return mt(e,FR(r,t),i)}function qie(e,t,n={}){const{eventFilter:r,initialState:i="active",...o}=n,{eventFilter:a,pause:s,resume:l,isActive:u}=Yie(r,{initialState:i});return{stop:Zie(e,t,{...o,eventFilter:a}),pause:s,resume:l,isActive:u}}function $R(e,t=!0,n){xH()?Er(e,n):t?e():Zr(e)}function Jie(e,t){xH()&&Bc(e,t)}function Qie(e,t,n){return mt(e,t,{...n,immediate:!0})}function TH(e,t,n){return mt(e,t,{...n,once:!0})}const ms=_H?window:void 0,CH=_H?window.document:void 0;function Ma(e){var t;const n=tr(e);return(t=n?.$el)!=null?t:n}function ru(...e){const t=[],n=()=>{t.forEach(s=>s()),t.length=0},r=(s,l,u,c)=>(s.addEventListener(l,u,c),()=>s.removeEventListener(l,u,c)),i=ge(()=>{const s=lp(tr(e[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),o=Qie(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>Ma(u)))!=null?l:[ms].filter(u=>u!=null),lp(tr(i.value?e[1]:e[0])),lp(L(i.value?e[2]:e[1])),tr(i.value?e[3]:e[2])]},([s,l,u,c])=>{if(n(),!s?.length||!l?.length||!u?.length)return;const f=Gie(c)?{...c}:c;t.push(...s.flatMap(h=>l.flatMap(d=>u.map(p=>r(h,d,p,f)))))},{flush:"post"}),a=()=>{o(),n()};return Gy(n),a}function eoe(){const e=Lr(!1),t=vr();return t&&Er(()=>{e.value=!0},t),e}function Jw(e){const t=eoe();return ge(()=>(t.value,!!e()))}function EH(e,t,n={}){const{window:r=ms,...i}=n;let o;const a=Jw(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=ge(()=>{const h=tr(e),d=lp(h).map(Ma).filter(bH);return new Set(d)}),u=mt(l,h=>{s(),a.value&&h.size&&(o=new MutationObserver(t),h.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>o?.takeRecords(),f=()=>{u(),s()};return Gy(f),{isSupported:a,stop:f,takeRecords:c}}const toe=Symbol("vueuse-ssr-width");function noe(){const e=ER()?Hie(toe,null):null;return typeof e=="number"?e:void 0}function BR(e,t={}){const{window:n=ms,ssrWidth:r=noe()}=t,i=Jw(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=Lr(typeof r=="number"),a=Lr(),s=Lr(!1),l=u=>{s.value=u.matches};return zw(()=>{if(o.value){o.value=!i.value;const u=tr(e).split(",");s.value=u.some(c=>{const f=c.includes("not all"),h=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),d=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(h||d);return h&&p&&(p=r>=jN(h[1])),d&&p&&(p=r<=jN(d[1])),f?!p:p});return}i.value&&(a.value=n.matchMedia(tr(e)),s.value=a.value.matches)}),ru(a,"change",l,{passive:!0}),ge(()=>s.value)}const w1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x1="__vueuse_ssr_handlers__",roe=ioe();function ioe(){return x1 in w1||(w1[x1]=w1[x1]||{}),w1[x1]}function ooe(e,t){return roe[e]||t}function aoe(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 soe={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()}},YN="vueuse-storage";function Je(e,t,n,r={}){var i;const{flush:o="pre",deep:a=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=ms,eventFilter:h,onError:d=k=>{console.error(k)},initOnMounted:p}=r,g=(c?Lr:Te)(typeof t=="function"?t():t),y=ge(()=>tr(e));if(!n)try{n=ooe("getDefaultStorage",()=>{var k;return(k=ms)==null?void 0:k.localStorage})()}catch(k){d(k)}if(!n)return g;const m=tr(t),b=aoe(m),w=(i=r.serializer)!=null?i:soe[b],{pause:S,resume:C}=qie(g,k=>D(k),{flush:o,deep:a,eventFilter:h});mt(y,()=>N(),{flush:o});let T=!1;const E=k=>{p&&!T||N(k)},P=k=>{p&&!T||M(k)};f&&s&&(n instanceof Storage?ru(f,"storage",E,{passive:!0}):ru(f,YN,P)),p?$R(()=>{T=!0,N()}):N();function I(k,V){if(f){const B={key:y.value,oldValue:k,newValue:V,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",B):new CustomEvent(YN,{detail:B}))}}function D(k){try{const V=n.getItem(y.value);if(k==null)I(V,null),n.removeItem(y.value);else{const B=w.write(k);V!==B&&(n.setItem(y.value,B),I(V,B))}}catch(V){d(V)}}function O(k){const V=k?k.newValue:n.getItem(y.value);if(V==null)return l&&m!=null&&n.setItem(y.value,w.write(m)),m;if(!k&&u){const B=w.read(V);return typeof u=="function"?u(B,m):b==="object"&&!Array.isArray(B)?{...m,...B}:B}else return typeof V!="string"?V:w.read(V)}function N(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){g.value=m;return}if(!(k&&k.key!==y.value)){S();try{const V=w.write(g.value);(k===void 0||k?.newValue!==V)&&(g.value=O(k))}catch(V){d(V)}finally{k?Zr(C):C()}}}}function M(k){N(k.detail)}return g}function IH(e){const t=vr(),n=Vie(()=>null,()=>t.proxy.$el);return $y(n.trigger),Er(n.trigger),n}function loe(e={}){const{document:t=CH}=e;if(!t)return Lr("visible");const n=Lr(t.visibilityState);return ru(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function uoe(e,t,n={}){const{window:r=ms,...i}=n;let o;const a=Jw(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=ge(()=>{const f=tr(e);return Array.isArray(f)?f.map(h=>Ma(h)):[Ma(f)]}),u=mt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const h of f)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return Gy(c),{isSupported:a,stop:c}}function ov(e,t={width:0,height:0},n={}){const{window:r=ms,box:i="content-box"}=n,o=ge(()=>{var f,h;return(h=(f=Ma(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),a=Lr(t.width),s=Lr(t.height),{stop:l}=uoe(e,([f])=>{const h=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const d=Ma(e);if(d){const p=d.getBoundingClientRect();a.value=p.width,s.value=p.height}}else if(h){const d=lp(h);a.value=d.reduce((p,{inlineSize:g})=>p+g,0),s.value=d.reduce((p,{blockSize:g})=>p+g,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);$R(()=>{const f=Ma(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=mt(()=>Ma(e),f=>{a.value=f?t.width:0,s.value=f?t.height:0});function c(){l(),u()}return{width:a,height:s,stop:c}}function coe(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:o=0,window:a=ms,immediate:s=!0}=n,l=Jw(()=>a&&"IntersectionObserver"in a),u=ge(()=>{const p=tr(e);return lp(p).map(Ma).filter(bH)});let c=qs;const f=Lr(s),h=l.value?mt(()=>[u.value,Ma(r),f.value],([p,g])=>{if(c(),!f.value||!p.length)return;const y=new IntersectionObserver(t,{root:Ma(g),rootMargin:i,threshold:o});p.forEach(m=>m&&y.observe(m)),c=()=>{y.disconnect(),c=qs}},{immediate:s,flush:"post"}):qs,d=()=>{c(),h(),f.value=!1};return Gy(d),{isSupported:l,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:d}}function AH(e,t={}){const{window:n=ms,scrollTarget:r,threshold:i=0,rootMargin:o,once:a=!1}=t,s=Lr(!1),{stop:l}=coe(e,u=>{let c=s.value,f=0;for(const h of u)h.time>=f&&(f=h.time,c=h.isIntersecting);s.value=c,a&&TH(s,()=>{l()})},{root:r,window:n,threshold:i,rootMargin:tr(o)});return s}function foe(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const XN=1;function doe(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=qs,onScroll:o=qs,offset:a={left:0,right:0,top:0,bottom:0},observe:s={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=ms,onError:f=I=>{console.error(I)}}=t,h=typeof s=="boolean"?{mutation:s}:s,d=Lr(0),p=Lr(0),g=ge({get(){return d.value},set(I){m(I,void 0)}}),y=ge({get(){return p.value},set(I){m(void 0,I)}});function m(I,D){var O,N,M,k;if(!c)return;const V=tr(e);if(!V)return;(M=V instanceof Document?c.document.body:V)==null||M.scrollTo({top:(O=tr(D))!=null?O:y.value,left:(N=tr(I))!=null?N:g.value,behavior:tr(u)});const B=((k=V?.document)==null?void 0:k.documentElement)||V?.documentElement||V;g!=null&&(d.value=B.scrollLeft),y!=null&&(p.value=B.scrollTop)}const b=Lr(!1),w=Hi({left:!0,right:!1,top:!0,bottom:!1}),S=Hi({left:!1,right:!1,top:!1,bottom:!1}),C=I=>{b.value&&(b.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,i(I))},T=Xie(C,n+r),E=I=>{var D;if(!c)return;const O=((D=I?.document)==null?void 0:D.documentElement)||I?.documentElement||Ma(I),{display:N,flexDirection:M,direction:k}=getComputedStyle(O),V=k==="rtl"?-1:1,B=O.scrollLeft;S.left=B<d.value,S.right=B>d.value;const U=Math.abs(B*V)<=(a.left||0),$=Math.abs(B*V)+O.clientWidth>=O.scrollWidth-(a.right||0)-XN;N==="flex"&&M==="row-reverse"?(w.left=$,w.right=U):(w.left=U,w.right=$),d.value=B;let J=O.scrollTop;I===c.document&&!J&&(J=c.document.body.scrollTop),S.top=J<p.value,S.bottom=J>p.value;const ae=Math.abs(J)<=(a.top||0),ne=Math.abs(J)+O.clientHeight>=O.scrollHeight-(a.bottom||0)-XN;N==="flex"&&M==="column-reverse"?(w.top=ne,w.bottom=ae):(w.top=ae,w.bottom=ne),p.value=J},P=I=>{var D;if(!c)return;const O=(D=I.target.documentElement)!=null?D:I.target;E(O),b.value=!0,T(I),o(I)};return ru(e,"scroll",n?Kie(P,n,!0,!1):P,l),$R(()=>{try{const I=tr(e);if(!I)return;E(I)}catch(I){f(I)}}),h?.mutation&&e!=null&&e!==c&&e!==document&&EH(e,()=>{const I=tr(e);I&&E(I)},{attributes:!0,childList:!0,subtree:!0}),ru(e,"scrollend",C,l),{x:g,y,isScrolling:b,arrivedState:w,directions:S,measure(){const I=tr(e);c&&I&&E(I)}}}function hoe(e,t,n={}){var r;const{direction:i="bottom",interval:o=100,canLoadMore:a=()=>!0}=n,s=Hi(doe(e,{...n,offset:{[i]:(r=n.distance)!=null?r:0,...n.offset}})),l=Te(),u=ge(()=>!!l.value),c=ge(()=>foe(tr(e))),f=AH(c);function h(){if(s.measure(),!c.value||!f.value||!a(c.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:y,clientWidth:m}=c.value,b=i==="bottom"||i==="top"?p<=g:y<=m;(s.arrivedState[i]||b)&&(l.value||(l.value=Promise.all([t(s),new Promise(w=>setTimeout(w,o))]).finally(()=>{l.value=null,Zr(()=>h())})))}const d=mt(()=>[s.arrivedState[i],f.value],h,{immediate:!0});return Jie(d),{isLoading:u,reset(){Zr(()=>h())}}}function Qw(e,t,n={}){const{window:r=ms}=n;return Je(e,t,r?.sessionStorage,n)}function poe(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0}=t,s=Hi({x:0,y:0}),l=Hi({x:0,y:0}),u=ge(()=>s.x-l.x),c=ge(()=>s.y-l.y),{max:f,abs:h}=Math,d=ge(()=>f(h(u.value),h(c.value))>=n),p=Lr(!1),g=ge(()=>d.value?h(u.value)>h(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),y=E=>[E.touches[0].clientX,E.touches[0].clientY],m=(E,P)=>{s.x=E,s.y=P},b=(E,P)=>{l.x=E,l.y=P},w={passive:a,capture:!a},S=E=>{p.value&&i?.(E,g.value),p.value=!1},C=[ru(e,"touchstart",E=>{if(E.touches.length!==1)return;const[P,I]=y(E);m(P,I),b(P,I),o?.(E)},w),ru(e,"touchmove",E=>{if(E.touches.length!==1)return;const[P,I]=y(E);b(P,I),w.capture&&!w.passive&&Math.abs(u.value)>Math.abs(c.value)&&E.preventDefault(),!p.value&&d.value&&(p.value=!0),p.value&&r?.(E)},w),ru(e,["touchend","touchcancel"],S,w)];return{isSwiping:p,direction:g,coordsStart:s,coordsEnd:l,lengthX:u,lengthY:c,stop:()=>C.forEach(E=>E()),isPassiveEventSupported:!0}}function voe(e=null,t={}){var n,r,i;const{document:o=CH,restoreOnUnmount:a=f=>f}=t,s=(n=o?.title)!=null?n:"",l=SH((r=e??o?.title)!=null?r: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):tr(h).replace(/%s/g,f)}return mt(l,(f,h)=>{f!==h&&o&&(o.title=c(f??""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&EH((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),Gy(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}var T1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ex(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var W_={exports:{}},goe=W_.exports,KN;function UR(){return KN||(KN=1,(function(e,t){(function(n,r){e.exports=r()})(goe,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",h="quarter",d="year",p="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,b={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(k){var V=["th","st","nd","rd"],B=k%100;return"["+k+(V[(B-20)%10]||V[B]||V[0])+"]"}},w=function(k,V,B){var U=String(k);return!U||U.length>=V?k:""+Array(V+1-U.length).join(B)+k},S={s:w,z:function(k){var V=-k.utcOffset(),B=Math.abs(V),U=Math.floor(B/60),$=B%60;return(V<=0?"+":"-")+w(U,2,"0")+":"+w($,2,"0")},m:function k(V,B){if(V.date()<B.date())return-k(B,V);var U=12*(B.year()-V.year())+(B.month()-V.month()),$=V.clone().add(U,f),J=B-$<0,ae=V.clone().add(U+(J?-1:1),f);return+(-(U+(B-$)/(J?$-ae:ae-$))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:f,y:d,w:c,d:u,D:p,h:l,m:s,s:a,ms:o,Q:h}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},C="en",T={};T[C]=b;var E="$isDayjsObject",P=function(k){return k instanceof N||!(!k||!k[E])},I=function k(V,B,U){var $;if(!V)return C;if(typeof V=="string"){var J=V.toLowerCase();T[J]&&($=J),B&&(T[J]=B,$=J);var ae=V.split("-");if(!$&&ae.length>1)return k(ae[0])}else{var ne=V.name;T[ne]=V,$=ne}return!U&&$&&(C=$),$||!U&&C},D=function(k,V){if(P(k))return k.clone();var B=typeof V=="object"?V:{};return B.date=k,B.args=arguments,new N(B)},O=S;O.l=I,O.i=P,O.w=function(k,V){return D(k,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var N=(function(){function k(B){this.$L=I(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[E]=!0}var V=k.prototype;return V.parse=function(B){this.$d=(function(U){var $=U.date,J=U.utc;if($===null)return new Date(NaN);if(O.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var ae=$.match(y);if(ae){var ne=ae[2]-1||0,_e=(ae[7]||"0").substring(0,3);return J?new Date(Date.UTC(ae[1],ne,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,_e)):new Date(ae[1],ne,ae[3]||1,ae[4]||0,ae[5]||0,ae[6]||0,_e)}}return new Date($)})(B),this.init()},V.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()},V.$utils=function(){return O},V.isValid=function(){return this.$d.toString()!==g},V.isSame=function(B,U){var $=D(B);return this.startOf(U)<=$&&$<=this.endOf(U)},V.isAfter=function(B,U){return D(B)<this.startOf(U)},V.isBefore=function(B,U){return this.endOf(U)<D(B)},V.$g=function(B,U,$){return O.u(B)?this[U]:this.set($,B)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(B,U){var $=this,J=!!O.u(U)||U,ae=O.p(B),ne=function(we,Ae){var Oe=O.w($.$u?Date.UTC($.$y,Ae,we):new Date($.$y,Ae,we),$);return J?Oe:Oe.endOf(u)},_e=function(we,Ae){return O.w($.toDate()[we].apply($.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Ae)),$)},me=this.$W,Me=this.$M,Re=this.$D,ke="set"+(this.$u?"UTC":"");switch(ae){case d:return J?ne(1,0):ne(31,11);case f:return J?ne(1,Me):ne(0,Me+1);case c:var oe=this.$locale().weekStart||0,Ee=(me<oe?me+7:me)-oe;return ne(J?Re-Ee:Re+(6-Ee),Me);case u:case p:return _e(ke+"Hours",0);case l:return _e(ke+"Minutes",1);case s:return _e(ke+"Seconds",2);case a:return _e(ke+"Milliseconds",3);default:return this.clone()}},V.endOf=function(B){return this.startOf(B,!1)},V.$set=function(B,U){var $,J=O.p(B),ae="set"+(this.$u?"UTC":""),ne=($={},$[u]=ae+"Date",$[p]=ae+"Date",$[f]=ae+"Month",$[d]=ae+"FullYear",$[l]=ae+"Hours",$[s]=ae+"Minutes",$[a]=ae+"Seconds",$[o]=ae+"Milliseconds",$)[J],_e=J===u?this.$D+(U-this.$W):U;if(J===f||J===d){var me=this.clone().set(p,1);me.$d[ne](_e),me.init(),this.$d=me.set(p,Math.min(this.$D,me.daysInMonth())).$d}else ne&&this.$d[ne](_e);return this.init(),this},V.set=function(B,U){return this.clone().$set(B,U)},V.get=function(B){return this[O.p(B)]()},V.add=function(B,U){var $,J=this;B=Number(B);var ae=O.p(U),ne=function(Me){var Re=D(J);return O.w(Re.date(Re.date()+Math.round(Me*B)),J)};if(ae===f)return this.set(f,this.$M+B);if(ae===d)return this.set(d,this.$y+B);if(ae===u)return ne(1);if(ae===c)return ne(7);var _e=($={},$[s]=r,$[l]=i,$[a]=n,$)[ae]||1,me=this.$d.getTime()+B*_e;return O.w(me,this)},V.subtract=function(B,U){return this.add(-1*B,U)},V.format=function(B){var U=this,$=this.$locale();if(!this.isValid())return $.invalidDate||g;var J=B||"YYYY-MM-DDTHH:mm:ssZ",ae=O.z(this),ne=this.$H,_e=this.$m,me=this.$M,Me=$.weekdays,Re=$.months,ke=$.meridiem,oe=function(Ae,Oe,Ue,Y){return Ae&&(Ae[Oe]||Ae(U,J))||Ue[Oe].slice(0,Y)},Ee=function(Ae){return O.s(ne%12||12,Ae,"0")},we=ke||function(Ae,Oe,Ue){var Y=Ae<12?"AM":"PM";return Ue?Y.toLowerCase():Y};return J.replace(m,(function(Ae,Oe){return Oe||(function(Ue){switch(Ue){case"YY":return String(U.$y).slice(-2);case"YYYY":return O.s(U.$y,4,"0");case"M":return me+1;case"MM":return O.s(me+1,2,"0");case"MMM":return oe($.monthsShort,me,Re,3);case"MMMM":return oe(Re,me);case"D":return U.$D;case"DD":return O.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return oe($.weekdaysMin,U.$W,Me,2);case"ddd":return oe($.weekdaysShort,U.$W,Me,3);case"dddd":return Me[U.$W];case"H":return String(ne);case"HH":return O.s(ne,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return we(ne,_e,!0);case"A":return we(ne,_e,!1);case"m":return String(_e);case"mm":return O.s(_e,2,"0");case"s":return String(U.$s);case"ss":return O.s(U.$s,2,"0");case"SSS":return O.s(U.$ms,3,"0");case"Z":return ae}return null})(Ae)||ae.replace(":","")}))},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(B,U,$){var J,ae=this,ne=O.p(U),_e=D(B),me=(_e.utcOffset()-this.utcOffset())*r,Me=this-_e,Re=function(){return O.m(ae,_e)};switch(ne){case d:J=Re()/12;break;case f:J=Re();break;case h:J=Re()/3;break;case c:J=(Me-me)/6048e5;break;case u:J=(Me-me)/864e5;break;case l:J=Me/i;break;case s:J=Me/r;break;case a:J=Me/n;break;default:J=Me}return $?J:O.a(J)},V.daysInMonth=function(){return this.endOf(f).$D},V.$locale=function(){return T[this.$L]},V.locale=function(B,U){if(!B)return this.$L;var $=this.clone(),J=I(B,U,!0);return J&&($.$L=J),$},V.clone=function(){return O.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},k})(),M=N.prototype;return D.prototype=M,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",d],["$D",p]].forEach((function(k){M[k[1]]=function(V){return this.$g(V,k[0],k[1])}})),D.extend=function(k,V){return k.$i||(k(V,N,D),k.$i=!0),D},D.locale=I,D.isDayjs=P,D.unix=function(k){return D(1e3*k)},D.en=T[C],D.Ls=T,D.p={},D}))})(W_)),W_.exports}var moe=UR();const ui=Wy(moe),yoe=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],_oe=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],boe=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],Soe=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],ZN=(e,t,n)=>{let r=e;return typeof t=="string"||Array.isArray(t)?r=e.toLocaleString(t,n):(t===!0||n!==void 0)&&(r=e.toLocaleString(void 0,n)),r},PH=e=>{if(typeof e=="number")return Math.log10(e);const t=e.toString(10);return t.length+Math.log10("0."+t.slice(0,15))},woe=e=>typeof e=="number"?Math.log(e):PH(e)*Math.log(10),xoe=(e,t)=>{if(typeof e=="number")return e/t;const n=e/BigInt(t),r=e%BigInt(t);return Number(n)+Number(r)/t};function Toe(e,t){if(typeof e!="bigint"&&!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?Soe:boe:t.binary?_oe:yoe,r=t.space?" ":"";if(t.signed&&(typeof e=="number"?e===0:e===0n))return` 0${r}${n[0]}`;const i=e<0,o=i?"-":t.signed?"+":"";i&&(e=-e);let a;if(t.minimumFractionDigits!==void 0&&(a={minimumFractionDigits:t.minimumFractionDigits}),t.maximumFractionDigits!==void 0&&(a={maximumFractionDigits:t.maximumFractionDigits,...a}),e<1){const c=ZN(e,t.locale,a);return o+c+r+n[0]}const s=Math.min(Math.floor(t.binary?woe(e)/Math.log(1024):PH(e)/3),n.length-1);if(e=xoe(e,(t.binary?1024:1e3)**s),!a){const c=Math.max(3,Number.parseInt(e,10).toString().length);e=e.toPrecision(c)}const l=ZN(Number(e),t.locale,a),u=n[s];return o+l+r+u}const RH=BR("(prefers-color-scheme: dark)"),sd=BR("(max-width: 768px)");BR("(max-width: 1024px)");const Coe=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,nr=(e,t)=>Toe(e,{binary:!1,...t}),tx=e=>ui(e).fromNow(),qN=()=>{const e={};for(const i in localStorage)(i.startsWith("config/")||i.startsWith("setup/"))&&(e[i]=localStorage.getItem(i));const t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download="zashboard-settings",r.click(),URL.revokeObjectURL(n)},jy=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,Ed=e=>e.label||jy(e),VR=e=>e===iv.LARGE?yI.LARGE:yI.SMALL,HR="scrollable-parent",JN=e=>{const t=zR(e);if(!t)return;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();if(n.top>=r.top&&n.bottom<=r.bottom)return;const i=t.offsetTop,a=e.offsetTop-i-t.clientHeight/2+e.clientHeight/2;t.scrollTo({top:a,behavior:"smooth"})},zR=e=>{const t=e?.parentElement;return t?.classList.contains(HR)&&t.scrollHeight>t.clientHeight?t:t?zR(t):null},MH=()=>{const e=new URLSearchParams(window.location.search||location.hash.match(/\?.*$/)?.[0]?.replace("?",""));return e.has("hostname")?{protocol:e.get("http")?"http":e.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:e.get("secondaryPath")||"",host:e.get("hostname"),port:e.get("port"),password:e.get("secret")||"",label:e.get("label")||"",disableUpgradeCore:e.get("disableUpgradeCore")==="1"||e.get("disableUpgradeCore")==="core"}:null},up=Je("config/default-theme","light"),cp=Je("config/dark-theme","dark"),Cg=Je("config/auto-theme",!0),mS=ge(()=>Cg.value&&RH.value?cp.value:up.value),Km=Je("config/custom-themes",[]),oc=Je("config/language",Object.values(Ys).includes(navigator.language)?navigator.language:Ys.EN_US),QN=Je("config/is-sidebar-collapsed",!0),Hs=ge({get:()=>sd.value?!0:QN.value,set:e=>{QN.value=e}}),e5=Je("config/font",Ri.MI_SANS),fp=ge({get:()=>{const e="cdn-fonts";return Object.values(Ri).includes(e)?e:e5.value},set:e=>{e5.value=e}}),j_=Je("config/emoji",Bie?ad.TWEMOJI:ad.NOTO_COLOR_EMOJI),qo=Je("config/custom-background-image",""),em=Je("config/dashboard-transparent",90),Y_=Je("config/auto-upgrade",!1),$h=Je("config/check-upgrade-core",!0),Eg=Je("config/auto-upgrade-core",!1),Ig=Je("config/swipe-in-pages",!0),X_=Je("config/swipe-in-tabs",!1),tm=Je("config/disable-pull-to-refresh",!0),K_=Je("config/display-all-features",!1),iu=Je("config/blur-intensity",10),Z_=Je("config/scroll-animation-effect",!0),dp=Je("config/geoip-info-api",sp.IPSB),Ag=Je("config/auto-disconnect-idle-udp",!1),q_=Je("config/auto-disconnect-idle-udp-time",300),jh=Je("config/split-overview-page",!1),ac=Je("config/show-ip-and-connection-info",!0),J_=Je("config/auto-ip-check",!0),Q_=Je("config/auto-connection-check",!0),eb=Je("config/show-statistics-when-sidebar-collapsed",!0),tb=Je("config/number-of-charts-in-sidebar",2),nb=Je("config/display-proxies-relationship",!0),yS=Je("config/collapse-group-map",{}),_I=Je("config/show-seleted-for-now-node",!1),nm=Je("config/two-columns",!0),rb=Je("config/speedtest-url",gH),Hf=Je("config/independent-latency-test",!1),hp=Je("config/speedtest-timeout",5e3),Zm=Je("config/proxy-sort-type",Ws.DEFAULT),ib=Je("config/automatic-disconnection",!0),rm=Je("config/truncate-proxy-name",!0),im=Je("config/proxy-preview-type",jm.AUTO),bI=Je("config/hide-unavailable-proxies",!1),sc=Je("config/low-latency",400),Gl=Je("config/medium-latency",800),ld=Je("config/ipv6-test",!1),lc=Je("config/proxy-card-size",iv.LARGE),pp=Je("config/min-proxy-card-width",VR(lc.value)),qm=Je("config/manage-hidden-group-mode",!1),Pg=Je("config/display-global-by-mode",!1),om=Je("config/custom-global-node-name",ap),ob=Je("config/proxy-group-icon-size",24),ab=Je("config/proxy-group-icon-margin",6),am=Je("config/proxies-count-mode",Xm.ALIVE_TOTAL),Ol=Je("config/icon-reflect-list",[]),_S=Je("config/group-proxies-by-provider",!1),SI=Je("config/use-smart-group-sort",!1),Ll=Je("config/group-test-urls",[]),ls=Je("config/use-connecticon-card",window.innerWidth<640),ud=Je("config/proxy-chain-direction",Cd.NORMAL),sb=Je("config/connecticon-table-size",Ym.SMALL),lb=Je("config/table-width-mode",qw.AUTO),Yh=Je("config/connection-table-columns",[We.Close,We.Host,We.Type,We.Rule,We.Chains,We.DlSpeed,We.UlSpeed,We.Download,We.Upload,We.ConnectTime]),xa=Je("config/connection-card-lines",yH),ri=Je("config/source-ip-label-list",[]),wI=Je("config/display-now-node-in-rule",!0),xI=Je("config/display-latency-in-rule",!0),TI=Je("config/log-retention-limit",1e3),of=Je("config/log-search-history",[]);var ub={exports:{}},Eoe=ub.exports,t5;function Ioe(){return t5||(t5=1,(function(e,t){(function(n,r){e.exports=r(UR())})(Eoe,(function(n){function r(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var i=r(n),o="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),s="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),l="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),u=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function c(p,g,y){var m,b;return y==="m"?g?"минута":"минуту":p+" "+(m=+p,b={mm:g?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",MM:"месяц_месяцаесяцев",yy:"год_годает"}[y].split("_"),m%10==1&&m%100!=11?b[0]:m%10>=2&&m%10<=4&&(m%100<10||m%100>=20)?b[1]:b[2])}var f=function(p,g){return u.test(g)?o[p.month()]:a[p.month()]};f.s=a,f.f=o;var h=function(p,g){return u.test(g)?s[p.month()]:l[p.month()]};h.s=l,h.f=s;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:h,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:c,mm:c,h:"час",hh:c,d:"день",dd:c,M:"месяц",MM:c,y:"год",yy:c},ordinal:function(p){return p},meridiem:function(p){return p<4?"ночи":p<12?"утра":p<17?"дня":"вечера"}};return i.default.locale(d,null,!0),d}))})(ub)),ub.exports}Ioe();var cb={exports:{}},Aoe=cb.exports,n5;function Poe(){return n5||(n5=1,(function(e,t){(function(n,r){e.exports=r(UR())})(Aoe,(function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,s){return s==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,s){var l=100*a+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(o,null,!0),o}))})(cb)),cb.exports}Poe();var fb={exports:{}},Roe=fb.exports,r5;function Moe(){return r5||(r5=1,(function(e,t){(function(n,r){e.exports=r()})(Roe,(function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,c,f,h){return o.fromToBase(u,c,f,h)}i.en.relativeTime=a,o.fromToBase=function(u,c,f,h,d){for(var p,g,y,m=f.$locale().relativeTime||a,b=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=b.length,S=0;S<w;S+=1){var C=b[S];C.d&&(p=h?i(u).diff(f,C.d,!0):f.diff(u,C.d,!0));var T=(n.rounding||Math.round)(Math.abs(p));if(y=p>0,T<=C.r||!C.r){T<=1&&S>0&&(C=b[S-1]);var E=m[C.l];d&&(T=d(""+T)),g=typeof E=="string"?E.replace("%d",T):E(T,c,C.l,y);break}}if(c)return g;var P=y?m.future:m.past;return typeof P=="function"?P(g):P.replace("%s",g)},o.to=function(u,c){return s(u,c,this,!0)},o.from=function(u,c){return s(u,c,this)};var l=function(u){return u.$u?i.utc():i()};o.toNow=function(u){return this.to(l(this),u)},o.fromNow=function(u){return this.from(l(this),u)}}}))})(fb)),fb.exports}var Doe=Moe();const Ooe=Wy(Doe);var db={exports:{}},Loe=db.exports,i5;function koe(){return i5||(i5=1,(function(e,t){(function(n,r){e.exports=r()})(Loe,(function(){return function(n,r,i){i.updateLocale=function(o,a){var s=i.Ls[o];if(s)return(a?Object.keys(a):[]).forEach((function(l){s[l]=a[l]})),s}}}))})(db)),db.exports}var Noe=koe();const Foe=Wy(Noe);ui.extend(Ooe);ui.extend(Foe);ui.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});mt(()=>oc.value,()=>{ui.locale(oc.value)},{immediate:!0});/*!
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Bh=typeof document<"u";function DH(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $oe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&DH(e.default)}const An=Object.assign;function LC(e,t){const n={};for(const r in t){const i=t[r];n[r]=ys(i)?i.map(e):e(i)}return n}const sm=()=>{},ys=Array.isArray,OH=/#/g,Boe=/&/g,Uoe=/\//g,Voe=/=/g,Hoe=/\?/g,LH=/\+/g,zoe=/%5B/g,Goe=/%5D/g,kH=/%5E/g,Woe=/%60/g,NH=/%7B/g,joe=/%7C/g,FH=/%7D/g,Yoe=/%20/g;function GR(e){return encodeURI(""+e).replace(joe,"|").replace(zoe,"[").replace(Goe,"]")}function Xoe(e){return GR(e).replace(NH,"{").replace(FH,"}").replace(kH,"^")}function CI(e){return GR(e).replace(LH,"%2B").replace(Yoe,"+").replace(OH,"%23").replace(Boe,"%26").replace(Woe,"`").replace(NH,"{").replace(FH,"}").replace(kH,"^")}function Koe(e){return CI(e).replace(Voe,"%3D")}function Zoe(e){return GR(e).replace(OH,"%23").replace(Hoe,"%3F")}function qoe(e){return e==null?"":Zoe(e).replace(Uoe,"%2F")}function Jm(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Joe=/\/$/,Qoe=e=>e.replace(Joe,"");function kC(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=rae(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:Jm(a)}}function eae(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function o5(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function tae(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ip(t.matched[r],n.matched[i])&&$H(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ip(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $H(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!nae(e[n],t[n]))return!1;return!0}function nae(e,t){return ys(e)?a5(e,t):ys(t)?a5(t,e):e===t}function a5(e,t){return ys(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function rae(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const Nu={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Qm;(function(e){e.pop="pop",e.push="push"})(Qm||(Qm={}));var lm;(function(e){e.back="back",e.forward="forward",e.unknown=""})(lm||(lm={}));function iae(e){if(!e)if(Bh){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Qoe(e)}const oae=/^[^#]+#/;function aae(e,t){return e.replace(oae,"#")+t}function sae(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const nx=()=>({left:window.scrollX,top:window.scrollY});function lae(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=sae(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 s5(e,t){return(history.state?history.state.position-t:-1)+e}const EI=new Map;function uae(e,t){EI.set(e,t)}function cae(e){const t=EI.get(e);return EI.delete(e),t}let fae=()=>location.protocol+"//"+location.host;function BH(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),o5(l,"")}return o5(n,e)+r+i}function dae(e,t,n,r){let i=[],o=[],a=null;const s=({state:h})=>{const d=BH(e,location),p=n.value,g=t.value;let y=0;if(h){if(n.value=d,t.value=h,a&&a===p){a=null;return}y=g?h.position-g.position:0}else r(d);i.forEach(m=>{m(n.value,p,{delta:y,type:Qm.pop,direction:y?y>0?lm.forward:lm.back:lm.unknown})})};function l(){a=n.value}function u(h){i.push(h);const d=()=>{const p=i.indexOf(h);p>-1&&i.splice(p,1)};return o.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(An({},h.state,{scroll:nx()}),"")}function f(){for(const h of o)h();o=[],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 l5(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?nx():null}}function hae(e){const{history:t,location:n}=window,r={value:BH(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:fae()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),i.value=u}catch(d){console.error(d),n[c?"replace":"assign"](h)}}function a(l,u){const c=An({},t.state,l5(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function s(l,u){const c=An({},i.value,t.state,{forward:l,scroll:nx()});o(c.current,c,!0);const f=An({},l5(r.value,l,null),{position:c.position+1},u);o(l,f,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function pae(e){e=iae(e);const t=hae(e),n=dae(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=An({location:"",base:e,go:r,createHref:aae.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function vae(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),pae(e)}function gae(e){return typeof e=="string"||e&&typeof e=="object"}function UH(e){return typeof e=="string"||typeof e=="symbol"}const VH=Symbol("");var u5;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(u5||(u5={}));function Ap(e,t){return An(new Error,{type:e,[VH]:!0},t)}function Cl(e,t){return e instanceof Error&&VH in e&&(t==null||!!(e.type&t))}const c5="[^/]+?",mae={sensitive:!1,strict:!1,start:!0,end:!0},yae=/[.+*?^${}()[\]/\\]/g;function _ae(e,t){const n=An({},mae,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=40+(n.sensitive?.25:0);if(h.type===0)f||(i+="/"),i+=h.value.replace(yae,"\\$&"),d+=40;else if(h.type===1){const{value:p,repeatable:g,optional:y,regexp:m}=h;o.push({name:p,repeatable:g,optional:y});const b=m||c5;if(b!==c5){d+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+S.message)}}let w=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(w=y&&u.length<2?`(?:/${w})`:"/"+w),y&&(w+="?"),i+=w,d+=20,y&&(d+=-8),g&&(d+=-20),b===".*"&&(d+=-50)}c.push(d)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(u){const c=u.match(a),f={};if(!c)return null;for(let h=1;h<c.length;h++){const d=c[h]||"",p=o[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of h)if(d.type===0)c+=d.value;else if(d.type===1){const{value:p,repeatable:g,optional:y}=d,m=p in u?u[p]:"";if(ys(m)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=ys(m)?m.join("/"):m;if(!b)if(y)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=b}}return c||"/"}return{re:a,score:r,keys:o,parse:s,stringify:l}}function bae(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function HH(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=bae(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(f5(r))return 1;if(f5(i))return-1}return i.length-r.length}function f5(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Sae={type:0,value:""},wae=/[a-zA-Z0-9_]/;function xae(e){if(!e)return[[]];if(e==="/")return[[Sae]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function f(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.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<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):h();break;case 4:h(),n=r;break;case 1:l==="("?n=2:wae.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),i}function Tae(e,t,n){const r=_ae(xae(e.path),n),i=An(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Cae(e,t){const n=[],r=new Map;t=v5({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function o(f,h,d){const p=!d,g=h5(f);g.aliasOf=d&&d.record;const y=v5(t,f),m=[g];if("alias"in f){const S=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of S)m.push(h5(An({},g,{components:d?d.record.components:g.components,path:C,aliasOf:d?d.record:g})))}let b,w;for(const S of m){const{path:C}=S;if(h&&C[0]!=="/"){const T=h.record.path,E=T[T.length-1]==="/"?"":"/";S.path=h.record.path+(C&&E+C)}if(b=Tae(S,h,y),d?d.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&f.name&&!p5(b)&&a(f.name)),zH(b)&&l(b),g.children){const T=g.children;for(let E=0;E<T.length;E++)o(T[E],b,d&&d.children[E])}d=d||b}return w?()=>{a(w)}:sm}function a(f){if(UH(f)){const h=r.get(f);h&&(r.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function s(){return n}function l(f){const h=Aae(f,n);n.splice(h,0,f),f.record.name&&!p5(f)&&r.set(f.record.name,f)}function u(f,h){let d,p={},g,y;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Ap(1,{location:f});y=d.record.name,p=An(d5(h.params,d.keys.filter(w=>!w.optional).concat(d.parent?d.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&d5(f.params,d.keys.map(w=>w.name))),g=d.stringify(p)}else if(f.path!=null)g=f.path,d=n.find(w=>w.re.test(g)),d&&(p=d.parse(g),y=d.record.name);else{if(d=h.name?r.get(h.name):n.find(w=>w.re.test(h.path)),!d)throw Ap(1,{location:f,currentLocation:h});y=d.record.name,p=An({},h.params,f.params),g=d.stringify(p)}const m=[];let b=d;for(;b;)m.unshift(b.record),b=b.parent;return{name:y,path:g,params:p,matched:m,meta:Iae(m)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function d5(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function h5(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Eae(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 Eae(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function p5(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Iae(e){return e.reduce((t,n)=>An(t,n.meta),{})}function v5(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Aae(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;HH(e,t[o])<0?r=o:n=o+1}const i=Pae(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Pae(e){let t=e;for(;t=t.parent;)if(zH(t)&&HH(e,t)===0)return t}function zH({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Rae(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(LH," "),a=o.indexOf("="),s=Jm(a<0?o:o.slice(0,a)),l=a<0?null:Jm(o.slice(a+1));if(s in t){let u=t[s];ys(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function g5(e){let t="";for(let n in e){const r=e[n];if(n=Koe(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ys(r)?r.map(o=>o&&CI(o)):[r&&CI(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Mae(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ys(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const Dae=Symbol(""),m5=Symbol(""),rx=Symbol(""),WR=Symbol(""),II=Symbol("");function Bv(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function tc(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=h=>{h===!1?l(Ap(4,{from:n,to:t})):h instanceof Error?l(h):gae(h)?l(Ap(2,{from:t,to:h})):(a&&r.enterCallbacks[i]===a&&typeof h=="function"&&a.push(h),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function NC(e,t,n,r,i=o=>o()){const o=[];for(const a of e)for(const s in a.components){let l=a.components[s];if(!(t!=="beforeRouteEnter"&&!a.instances[s]))if(DH(l)){const c=(l.__vccOpts||l)[t];c&&o.push(tc(c,n,r,a,s,i))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${a.path}"`);const f=$oe(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const d=(f.__vccOpts||f)[t];return d&&tc(d,n,r,a,s,i)()}))}}return o}function y5(e){const t=Mo(rx),n=Mo(WR),r=ge(()=>{const l=L(e.to);return t.resolve(l)}),i=ge(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(Ip.bind(null,c));if(h>-1)return h;const d=_5(l[u-2]);return u>1&&_5(c)===d&&f[f.length-1].path!==d?f.findIndex(Ip.bind(null,l[u-2])):h}),o=ge(()=>i.value>-1&&Fae(n.params,r.value.params)),a=ge(()=>i.value>-1&&i.value===n.matched.length-1&&$H(n.params,r.value.params));function s(l={}){if(Nae(l)){const u=t[L(e.replace)?"replace":"push"](L(e.to)).catch(sm);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:ge(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function Oae(e){return e.length===1?e[0]:e}const Lae=Ze({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"},viewTransition:Boolean},useLink:y5,setup(e,{slots:t}){const n=Hi(y5(e)),{options:r}=Mo(rx),i=ge(()=>({[b5(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[b5(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Oae(t.default(n));return e.custom?o:yi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),kae=Lae;function Nae(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 Fae(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!ys(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function _5(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const b5=(e,t,n)=>e??t??n,$ae=Ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Mo(II),i=ge(()=>e.route||r.value),o=Mo(m5,0),a=ge(()=>{let u=L(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=ge(()=>i.value.matched[a.value]);qg(m5,ge(()=>a.value+1)),qg(Dae,s),qg(II,i);const l=Te();return mt(()=>[l.value,s.value,e.name],([u,c,f],[h,d,p])=>{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||!Ip(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,h=f&&f.components[c];if(!h)return S5(n.default,{Component:h,route:u});const d=f.props[c],p=d?d===!0?u.params:typeof d=="function"?d(u):d:null,y=yi(h,An({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return S5(n.default,{Component:y,route:u})||y}}});function S5(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jR=$ae;function Bae(e){const t=Cae(e.routes,e),n=e.parseQuery||Rae,r=e.stringifyQuery||g5,i=e.history,o=Bv(),a=Bv(),s=Bv(),l=Lr(Nu);let u=Nu;Bh&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=LC.bind(null,oe=>""+oe),f=LC.bind(null,qoe),h=LC.bind(null,Jm);function d(oe,Ee){let we,Ae;return UH(oe)?(we=t.getRecordMatcher(oe),Ae=Ee):Ae=oe,t.addRoute(Ae,we)}function p(oe){const Ee=t.getRecordMatcher(oe);Ee&&t.removeRoute(Ee)}function g(){return t.getRoutes().map(oe=>oe.record)}function y(oe){return!!t.getRecordMatcher(oe)}function m(oe,Ee){if(Ee=An({},Ee||l.value),typeof oe=="string"){const X=kC(n,oe,Ee.path),de=t.resolve({path:X.path},Ee),Ie=i.createHref(X.fullPath);return An(X,de,{params:h(de.params),hash:Jm(X.hash),redirectedFrom:void 0,href:Ie})}let we;if(oe.path!=null)we=An({},oe,{path:kC(n,oe.path,Ee.path).path});else{const X=An({},oe.params);for(const de in X)X[de]==null&&delete X[de];we=An({},oe,{params:f(X)}),Ee.params=f(Ee.params)}const Ae=t.resolve(we,Ee),Oe=oe.hash||"";Ae.params=c(h(Ae.params));const Ue=eae(r,An({},oe,{hash:Xoe(Oe),path:Ae.path})),Y=i.createHref(Ue);return An({fullPath:Ue,hash:Oe,query:r===g5?Mae(oe.query):oe.query||{}},Ae,{redirectedFrom:void 0,href:Y})}function b(oe){return typeof oe=="string"?kC(n,oe,l.value.path):An({},oe)}function w(oe,Ee){if(u!==oe)return Ap(8,{from:Ee,to:oe})}function S(oe){return E(oe)}function C(oe){return S(An(b(oe),{replace:!0}))}function T(oe){const Ee=oe.matched[oe.matched.length-1];if(Ee&&Ee.redirect){const{redirect:we}=Ee;let Ae=typeof we=="function"?we(oe):we;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=b(Ae):{path:Ae},Ae.params={}),An({query:oe.query,hash:oe.hash,params:Ae.path!=null?{}:oe.params},Ae)}}function E(oe,Ee){const we=u=m(oe),Ae=l.value,Oe=oe.state,Ue=oe.force,Y=oe.replace===!0,X=T(we);if(X)return E(An(b(X),{state:typeof X=="object"?An({},Oe,X.state):Oe,force:Ue,replace:Y}),Ee||we);const de=we;de.redirectedFrom=Ee;let Ie;return!Ue&&tae(r,Ae,we)&&(Ie=Ap(16,{to:de,from:Ae}),ne(Ae,Ae,!0,!1)),(Ie?Promise.resolve(Ie):D(de,Ae)).catch(be=>Cl(be)?Cl(be,2)?be:ae(be):$(be,de,Ae)).then(be=>{if(be){if(Cl(be,2))return E(An({replace:Y},b(be.to),{state:typeof be.to=="object"?An({},Oe,be.to.state):Oe,force:Ue}),Ee||de)}else be=N(de,Ae,!0,Y,Oe);return O(de,Ae,be),be})}function P(oe,Ee){const we=w(oe,Ee);return we?Promise.reject(we):Promise.resolve()}function I(oe){const Ee=Me.values().next().value;return Ee&&typeof Ee.runWithContext=="function"?Ee.runWithContext(oe):oe()}function D(oe,Ee){let we;const[Ae,Oe,Ue]=Uae(oe,Ee);we=NC(Ae.reverse(),"beforeRouteLeave",oe,Ee);for(const X of Ae)X.leaveGuards.forEach(de=>{we.push(tc(de,oe,Ee))});const Y=P.bind(null,oe,Ee);return we.push(Y),ke(we).then(()=>{we=[];for(const X of o.list())we.push(tc(X,oe,Ee));return we.push(Y),ke(we)}).then(()=>{we=NC(Oe,"beforeRouteUpdate",oe,Ee);for(const X of Oe)X.updateGuards.forEach(de=>{we.push(tc(de,oe,Ee))});return we.push(Y),ke(we)}).then(()=>{we=[];for(const X of Ue)if(X.beforeEnter)if(ys(X.beforeEnter))for(const de of X.beforeEnter)we.push(tc(de,oe,Ee));else we.push(tc(X.beforeEnter,oe,Ee));return we.push(Y),ke(we)}).then(()=>(oe.matched.forEach(X=>X.enterCallbacks={}),we=NC(Ue,"beforeRouteEnter",oe,Ee,I),we.push(Y),ke(we))).then(()=>{we=[];for(const X of a.list())we.push(tc(X,oe,Ee));return we.push(Y),ke(we)}).catch(X=>Cl(X,8)?X:Promise.reject(X))}function O(oe,Ee,we){s.list().forEach(Ae=>I(()=>Ae(oe,Ee,we)))}function N(oe,Ee,we,Ae,Oe){const Ue=w(oe,Ee);if(Ue)return Ue;const Y=Ee===Nu,X=Bh?history.state:{};we&&(Ae||Y?i.replace(oe.fullPath,An({scroll:Y&&X&&X.scroll},Oe)):i.push(oe.fullPath,Oe)),l.value=oe,ne(oe,Ee,we,Y),ae()}let M;function k(){M||(M=i.listen((oe,Ee,we)=>{if(!Re.listening)return;const Ae=m(oe),Oe=T(Ae);if(Oe){E(An(Oe,{replace:!0,force:!0}),Ae).catch(sm);return}u=Ae;const Ue=l.value;Bh&&uae(s5(Ue.fullPath,we.delta),nx()),D(Ae,Ue).catch(Y=>Cl(Y,12)?Y:Cl(Y,2)?(E(An(b(Y.to),{force:!0}),Ae).then(X=>{Cl(X,20)&&!we.delta&&we.type===Qm.pop&&i.go(-1,!1)}).catch(sm),Promise.reject()):(we.delta&&i.go(-we.delta,!1),$(Y,Ae,Ue))).then(Y=>{Y=Y||N(Ae,Ue,!1),Y&&(we.delta&&!Cl(Y,8)?i.go(-we.delta,!1):we.type===Qm.pop&&Cl(Y,20)&&i.go(-1,!1)),O(Ae,Ue,Y)}).catch(sm)}))}let V=Bv(),B=Bv(),U;function $(oe,Ee,we){ae(oe);const Ae=B.list();return Ae.length?Ae.forEach(Oe=>Oe(oe,Ee,we)):console.error(oe),Promise.reject(oe)}function J(){return U&&l.value!==Nu?Promise.resolve():new Promise((oe,Ee)=>{V.add([oe,Ee])})}function ae(oe){return U||(U=!oe,k(),V.list().forEach(([Ee,we])=>oe?we(oe):Ee()),V.reset()),oe}function ne(oe,Ee,we,Ae){const{scrollBehavior:Oe}=e;if(!Bh||!Oe)return Promise.resolve();const Ue=!we&&cae(s5(oe.fullPath,0))||(Ae||!we)&&history.state&&history.state.scroll||null;return Zr().then(()=>Oe(oe,Ee,Ue)).then(Y=>Y&&lae(Y)).catch(Y=>$(Y,oe,Ee))}const _e=oe=>i.go(oe);let me;const Me=new Set,Re={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:m,options:e,push:S,replace:C,go:_e,back:()=>_e(-1),forward:()=>_e(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:B.add,isReady:J,install(oe){const Ee=this;oe.component("RouterLink",kae),oe.component("RouterView",jR),oe.config.globalProperties.$router=Ee,Object.defineProperty(oe.config.globalProperties,"$route",{enumerable:!0,get:()=>L(l)}),Bh&&!me&&l.value===Nu&&(me=!0,S(i.location).catch(Oe=>{}));const we={};for(const Oe in Nu)Object.defineProperty(we,Oe,{get:()=>l.value[Oe],enumerable:!0});oe.provide(rx,Ee),oe.provide(WR,vR(we)),oe.provide(II,l);const Ae=oe.unmount;Me.add(oe),oe.unmount=function(){Me.delete(oe),Me.size<1&&(u=Nu,M&&M(),M=null,l.value=Nu,me=!1,U=!1),Ae()}}};function ke(oe){return oe.reduce((Ee,we)=>Ee.then(()=>I(we)),Promise.resolve())}return Re}function Uae(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const s=t.matched[a];s&&(e.matched.find(u=>Ip(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Ip(u,l))||i.push(l))}return[n,r,i]}function YR(){return Mo(rx)}function GH(e){return Mo(WR)}/*!
* shared v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Vae(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const bS=typeof window<"u",Uc=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Hae=(e,t,n)=>zae({l:e,k:t,s:n}),zae=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Vr=e=>typeof e=="number"&&isFinite(e),Gae=e=>XR(e)==="[object Date]",Pp=e=>XR(e)==="[object RegExp]",ix=e=>ln(e)&&Object.keys(e).length===0,Xr=Object.assign,Wae=Object.create,Fn=(e=null)=>Wae(e);let w5;const zf=()=>w5||(w5=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Fn());function x5(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function T5(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function jae(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,i,o)=>`${i}="${T5(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,i,o)=>`${i}='${T5(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Yae=Object.prototype.hasOwnProperty;function us(e,t){return Yae.call(e,t)}const Sr=Array.isArray,er=e=>typeof e=="function",dt=e=>typeof e=="string",_n=e=>typeof e=="boolean",xn=e=>e!==null&&typeof e=="object",Xae=e=>xn(e)&&er(e.then)&&er(e.catch),WH=Object.prototype.toString,XR=e=>WH.call(e),ln=e=>XR(e)==="[object Object]",Kae=e=>e==null?"":Sr(e)||ln(e)&&e.toString===WH?JSON.stringify(e,null,2):String(e);function KR(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const C1=e=>!xn(e)||Sr(e);function hb(e,t){if(C1(e)||C1(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(o=>{o!=="__proto__"&&(xn(r[o])&&!xn(i[o])&&(i[o]=Array.isArray(r[o])?[]:Fn()),C1(i[o])||C1(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*!
* message-compiler v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Zae(e,t,n){return{line:e,column:t,offset:n}}function AI(e,t,n){return{start:e,end:t}}const Ln={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},qae=17;function ox(e,t,n={}){const{domain:r,messages:i,args:o}=n,a=e,s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}function Jae(e){throw e}const El=" ",Qae="\r",Zi=`
`,ese="\u2028",tse="\u2029";function nse(e){const t=e;let n=0,r=1,i=1,o=0;const a=E=>t[E]===Qae&&t[E+1]===Zi,s=E=>t[E]===Zi,l=E=>t[E]===tse,u=E=>t[E]===ese,c=E=>a(E)||s(E)||l(E)||u(E),f=()=>n,h=()=>r,d=()=>i,p=()=>o,g=E=>a(E)||l(E)||u(E)?Zi:t[E],y=()=>g(n),m=()=>g(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function w(){return a(n+o)&&o++,o++,t[n+o]}function S(){n=0,r=1,i=1,o=0}function C(E=0){o=E}function T(){const E=n+o;for(;E!==n;)b();o=0}return{index:f,line:h,column:d,peekOffset:p,charAt:g,currentChar:y,currentPeek:m,next:b,peek:w,reset:S,resetPeek:C,skipToPeek:T}}const Fu=void 0,rse=".",C5="'",ise="tokenizer";function ose(e,t={}){const n=t.location!==!1,r=nse(e),i=()=>r.index(),o=()=>Zae(r.line(),r.column(),r.index()),a=o(),s=i(),l={currentType:13,offset:s,startLoc:a,endLoc:a,lastType:13,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(W,Z,re,...pe){const Ce=u();if(Z.column+=re,Z.offset+=re,c){const $e=n?AI(Ce.startLoc,Z):null,te=ox(W,$e,{domain:ise,args:pe});c(te)}}function h(W,Z,re){W.endLoc=o(),W.currentType=Z;const pe={type:Z};return n&&(pe.loc=AI(W.startLoc,W.endLoc)),re!=null&&(pe.value=re),pe}const d=W=>h(W,13);function p(W,Z){return W.currentChar()===Z?(W.next(),Z):(f(Ln.EXPECTED_TOKEN,o(),0,Z),"")}function g(W){let Z="";for(;W.currentPeek()===El||W.currentPeek()===Zi;)Z+=W.currentPeek(),W.peek();return Z}function y(W){const Z=g(W);return W.skipToPeek(),Z}function m(W){if(W===Fu)return!1;const Z=W.charCodeAt(0);return Z>=97&&Z<=122||Z>=65&&Z<=90||Z===95}function b(W){if(W===Fu)return!1;const Z=W.charCodeAt(0);return Z>=48&&Z<=57}function w(W,Z){const{currentType:re}=Z;if(re!==2)return!1;g(W);const pe=m(W.currentPeek());return W.resetPeek(),pe}function S(W,Z){const{currentType:re}=Z;if(re!==2)return!1;g(W);const pe=W.currentPeek()==="-"?W.peek():W.currentPeek(),Ce=b(pe);return W.resetPeek(),Ce}function C(W,Z){const{currentType:re}=Z;if(re!==2)return!1;g(W);const pe=W.currentPeek()===C5;return W.resetPeek(),pe}function T(W,Z){const{currentType:re}=Z;if(re!==7)return!1;g(W);const pe=W.currentPeek()===".";return W.resetPeek(),pe}function E(W,Z){const{currentType:re}=Z;if(re!==8)return!1;g(W);const pe=m(W.currentPeek());return W.resetPeek(),pe}function P(W,Z){const{currentType:re}=Z;if(!(re===7||re===11))return!1;g(W);const pe=W.currentPeek()===":";return W.resetPeek(),pe}function I(W,Z){const{currentType:re}=Z;if(re!==9)return!1;const pe=()=>{const $e=W.currentPeek();return $e==="{"?m(W.peek()):$e==="@"||$e==="|"||$e===":"||$e==="."||$e===El||!$e?!1:$e===Zi?(W.peek(),pe()):O(W,!1)},Ce=pe();return W.resetPeek(),Ce}function D(W){g(W);const Z=W.currentPeek()==="|";return W.resetPeek(),Z}function O(W,Z=!0){const re=(Ce=!1,$e="")=>{const te=W.currentPeek();return te==="{"||te==="@"||!te?Ce:te==="|"?!($e===El||$e===Zi):te===El?(W.peek(),re(!0,El)):te===Zi?(W.peek(),re(!0,Zi)):!0},pe=re();return Z&&W.resetPeek(),pe}function N(W,Z){const re=W.currentChar();return re===Fu?Fu:Z(re)?(W.next(),re):null}function M(W){const Z=W.charCodeAt(0);return Z>=97&&Z<=122||Z>=65&&Z<=90||Z>=48&&Z<=57||Z===95||Z===36}function k(W){return N(W,M)}function V(W){const Z=W.charCodeAt(0);return Z>=97&&Z<=122||Z>=65&&Z<=90||Z>=48&&Z<=57||Z===95||Z===36||Z===45}function B(W){return N(W,V)}function U(W){const Z=W.charCodeAt(0);return Z>=48&&Z<=57}function $(W){return N(W,U)}function J(W){const Z=W.charCodeAt(0);return Z>=48&&Z<=57||Z>=65&&Z<=70||Z>=97&&Z<=102}function ae(W){return N(W,J)}function ne(W){let Z="",re="";for(;Z=$(W);)re+=Z;return re}function _e(W){let Z="";for(;;){const re=W.currentChar();if(re==="{"||re==="}"||re==="@"||re==="|"||!re)break;if(re===El||re===Zi)if(O(W))Z+=re,W.next();else{if(D(W))break;Z+=re,W.next()}else Z+=re,W.next()}return Z}function me(W){y(W);let Z="",re="";for(;Z=B(W);)re+=Z;return W.currentChar()===Fu&&f(Ln.UNTERMINATED_CLOSING_BRACE,o(),0),re}function Me(W){y(W);let Z="";return W.currentChar()==="-"?(W.next(),Z+=`-${ne(W)}`):Z+=ne(W),W.currentChar()===Fu&&f(Ln.UNTERMINATED_CLOSING_BRACE,o(),0),Z}function Re(W){return W!==C5&&W!==Zi}function ke(W){y(W),p(W,"'");let Z="",re="";for(;Z=N(W,Re);)Z==="\\"?re+=oe(W):re+=Z;const pe=W.currentChar();return pe===Zi||pe===Fu?(f(Ln.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),pe===Zi&&(W.next(),p(W,"'")),re):(p(W,"'"),re)}function oe(W){const Z=W.currentChar();switch(Z){case"\\":case"'":return W.next(),`\\${Z}`;case"u":return Ee(W,Z,4);case"U":return Ee(W,Z,6);default:return f(Ln.UNKNOWN_ESCAPE_SEQUENCE,o(),0,Z),""}}function Ee(W,Z,re){p(W,Z);let pe="";for(let Ce=0;Ce<re;Ce++){const $e=ae(W);if(!$e){f(Ln.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${Z}${pe}${W.currentChar()}`);break}pe+=$e}return`\\${Z}${pe}`}function we(W){return W!=="{"&&W!=="}"&&W!==El&&W!==Zi}function Ae(W){y(W);let Z="",re="";for(;Z=N(W,we);)re+=Z;return re}function Oe(W){let Z="",re="";for(;Z=k(W);)re+=Z;return re}function Ue(W){const Z=re=>{const pe=W.currentChar();return pe==="{"||pe==="@"||pe==="|"||pe==="("||pe===")"||!pe||pe===El?re:(re+=pe,W.next(),Z(re))};return Z("")}function Y(W){y(W);const Z=p(W,"|");return y(W),Z}function X(W,Z){let re=null;switch(W.currentChar()){case"{":return Z.braceNest>=1&&f(Ln.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),W.next(),re=h(Z,2,"{"),y(W),Z.braceNest++,re;case"}":return Z.braceNest>0&&Z.currentType===2&&f(Ln.EMPTY_PLACEHOLDER,o(),0),W.next(),re=h(Z,3,"}"),Z.braceNest--,Z.braceNest>0&&y(W),Z.inLinked&&Z.braceNest===0&&(Z.inLinked=!1),re;case"@":return Z.braceNest>0&&f(Ln.UNTERMINATED_CLOSING_BRACE,o(),0),re=de(W,Z)||d(Z),Z.braceNest=0,re;default:{let Ce=!0,$e=!0,te=!0;if(D(W))return Z.braceNest>0&&f(Ln.UNTERMINATED_CLOSING_BRACE,o(),0),re=h(Z,1,Y(W)),Z.braceNest=0,Z.inLinked=!1,re;if(Z.braceNest>0&&(Z.currentType===4||Z.currentType===5||Z.currentType===6))return f(Ln.UNTERMINATED_CLOSING_BRACE,o(),0),Z.braceNest=0,Ie(W,Z);if(Ce=w(W,Z))return re=h(Z,4,me(W)),y(W),re;if($e=S(W,Z))return re=h(Z,5,Me(W)),y(W),re;if(te=C(W,Z))return re=h(Z,6,ke(W)),y(W),re;if(!Ce&&!$e&&!te)return re=h(Z,12,Ae(W)),f(Ln.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,re.value),y(W),re;break}}return re}function de(W,Z){const{currentType:re}=Z;let pe=null;const Ce=W.currentChar();switch((re===7||re===8||re===11||re===9)&&(Ce===Zi||Ce===El)&&f(Ln.INVALID_LINKED_FORMAT,o(),0),Ce){case"@":return W.next(),pe=h(Z,7,"@"),Z.inLinked=!0,pe;case".":return y(W),W.next(),h(Z,8,".");case":":return y(W),W.next(),h(Z,9,":");default:return D(W)?(pe=h(Z,1,Y(W)),Z.braceNest=0,Z.inLinked=!1,pe):T(W,Z)||P(W,Z)?(y(W),de(W,Z)):E(W,Z)?(y(W),h(Z,11,Oe(W))):I(W,Z)?(y(W),Ce==="{"?X(W,Z)||pe:h(Z,10,Ue(W))):(re===7&&f(Ln.INVALID_LINKED_FORMAT,o(),0),Z.braceNest=0,Z.inLinked=!1,Ie(W,Z))}}function Ie(W,Z){let re={type:13};if(Z.braceNest>0)return X(W,Z)||d(Z);if(Z.inLinked)return de(W,Z)||d(Z);switch(W.currentChar()){case"{":return X(W,Z)||d(Z);case"}":return f(Ln.UNBALANCED_CLOSING_BRACE,o(),0),W.next(),h(Z,3,"}");case"@":return de(W,Z)||d(Z);default:{if(D(W))return re=h(Z,1,Y(W)),Z.braceNest=0,Z.inLinked=!1,re;if(O(W))return h(Z,0,_e(W));break}}return re}function be(){const{currentType:W,offset:Z,startLoc:re,endLoc:pe}=l;return l.lastType=W,l.lastOffset=Z,l.lastStartLoc=re,l.lastEndLoc=pe,l.offset=i(),l.startLoc=o(),r.currentChar()===Fu?h(l,13):Ie(r,l)}return{nextToken:be,currentOffset:i,currentPosition:o,context:u}}const ase="parser",sse=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function lse(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"<22>"}}}function use(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,b,w,S,...C){const T=m.currentPosition();if(T.offset+=S,T.column+=S,n){const E=t?AI(w,T):null,P=ox(b,E,{domain:ase,args:C});n(P)}}function i(m,b,w){const S={type:m};return t&&(S.start=b,S.end=b,S.loc={start:w,end:w}),S}function o(m,b,w,S){t&&(m.end=b,m.loc&&(m.loc.end=w))}function a(m,b){const w=m.context(),S=i(3,w.offset,w.startLoc);return S.value=b,o(S,m.currentOffset(),m.currentPosition()),S}function s(m,b){const w=m.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(5,S,C);return T.index=parseInt(b,10),m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function l(m,b){const w=m.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(4,S,C);return T.key=b,m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function u(m,b){const w=m.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(9,S,C);return T.value=b.replace(sse,lse),m.nextToken(),o(T,m.currentOffset(),m.currentPosition()),T}function c(m){const b=m.nextToken(),w=m.context(),{lastOffset:S,lastStartLoc:C}=w,T=i(8,S,C);return b.type!==11?(r(m,Ln.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),T.value="",o(T,S,C),{nextConsumeToken:b,node:T}):(b.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ps(b)),T.value=b.value||"",o(T,m.currentOffset(),m.currentPosition()),{node:T})}function f(m,b){const w=m.context(),S=i(7,w.offset,w.startLoc);return S.value=b,o(S,m.currentOffset(),m.currentPosition()),S}function h(m){const b=m.context(),w=i(6,b.offset,b.startLoc);let S=m.nextToken();if(S.type===8){const C=c(m);w.modifier=C.node,S=C.nextConsumeToken||m.nextToken()}switch(S.type!==9&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(S)),S=m.nextToken(),S.type===2&&(S=m.nextToken()),S.type){case 10:S.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(S)),w.key=f(m,S.value||"");break;case 4:S.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(S)),w.key=l(m,S.value||"");break;case 5:S.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(S)),w.key=s(m,S.value||"");break;case 6:S.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(S)),w.key=u(m,S.value||"");break;default:{r(m,Ln.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const C=m.context(),T=i(7,C.offset,C.startLoc);return T.value="",o(T,C.offset,C.startLoc),w.key=T,o(w,C.offset,C.startLoc),{nextConsumeToken:S,node:w}}}return o(w,m.currentOffset(),m.currentPosition()),{node:w}}function d(m){const b=m.context(),w=b.currentType===1?m.currentOffset():b.offset,S=b.currentType===1?b.endLoc:b.startLoc,C=i(2,w,S);C.items=[];let T=null;do{const I=T||m.nextToken();switch(T=null,I.type){case 0:I.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(I)),C.items.push(a(m,I.value||""));break;case 5:I.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(I)),C.items.push(s(m,I.value||""));break;case 4:I.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(I)),C.items.push(l(m,I.value||""));break;case 6:I.value==null&&r(m,Ln.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ps(I)),C.items.push(u(m,I.value||""));break;case 7:{const D=h(m);C.items.push(D.node),T=D.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const E=b.currentType===1?b.lastOffset:m.currentOffset(),P=b.currentType===1?b.lastEndLoc:m.currentPosition();return o(C,E,P),C}function p(m,b,w,S){const C=m.context();let T=S.items.length===0;const E=i(1,b,w);E.cases=[],E.cases.push(S);do{const P=d(m);T||(T=P.items.length===0),E.cases.push(P)}while(C.currentType!==13);return T&&r(m,Ln.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(E,m.currentOffset(),m.currentPosition()),E}function g(m){const b=m.context(),{offset:w,startLoc:S}=b,C=d(m);return b.currentType===13?C:p(m,w,S,C)}function y(m){const b=ose(m,Xr({},e)),w=b.context(),S=i(0,w.offset,w.startLoc);return t&&S.loc&&(S.loc.source=m),S.body=g(b),e.onCacheKey&&(S.cacheKey=e.onCacheKey(m)),w.currentType!==13&&r(b,Ln.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,m[w.offset]||""),o(S,b.currentOffset(),b.currentPosition()),S}return{parse:y}}function Ps(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 cse(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function E5(e,t){for(let n=0;n<e.length;n++)ZR(e[n],t)}function ZR(e,t){switch(e.type){case 1:E5(e.cases,t),t.helper("plural");break;case 2:E5(e.items,t);break;case 6:{ZR(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function fse(e,t={}){const n=cse(e);n.helper("normalize"),e.body&&ZR(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function dse(e){const t=e.body;return t.type===2?I5(t):t.cases.forEach(n=>I5(n)),e}function I5(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 n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=KR(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Uh(e){switch(e.t=e.type,e.type){case 0:{const t=e;Uh(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Uh(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Uh(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Uh(t.key),t.k=t.key,delete t.key,t.modifier&&(Uh(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function hse(e,t){const{filename:n,breakLineCode:r,needIndent:i}=t,o=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const s=()=>a;function l(g,y){a.code+=g}function u(g,y=!0){const m=y?r:"";l(i?m+" ".repeat(g):m)}function c(g=!0){const y=++a.indentLevel;g&&u(y)}function f(g=!0){const y=--a.indentLevel;g&&u(y)}function h(){u(a.indentLevel)}return{context:s,push:l,indent:c,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>a.needIndent}}function pse(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Rp(e,t.key),t.modifier?(e.push(", "),Rp(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function vse(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o<i&&(Rp(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function gse(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o<i&&(Rp(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function mse(e,t){t.body?Rp(e,t.body):e.push("null")}function Rp(e,t){const{helper:n}=e;switch(t.type){case 0:mse(e,t);break;case 1:gse(e,t);break;case 2:vse(e,t);break;case 6:pse(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const yse=(e,t={})=>{const n=dt(t.mode)?t.mode:"normal",r=dt(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],s=hse(e,{filename:r,breakLineCode:i,needIndent:o});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),a.length>0&&(s.push(`const { ${KR(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),s.newline()),s.push("return "),Rp(s,e),s.deindent(o),s.push("}"),delete e.helpers;const{code:l,map:u}=s.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function _se(e,t={}){const n=Xr({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=use(n).parse(e);return r?(o&&dse(s),i&&Uh(s),{ast:s,code:""}):(fse(s,n),yse(s,n))}/*!
* core-base v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function bse(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zf().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Js(e){return xn(e)&&qR(e)===0&&(us(e,"b")||us(e,"body"))}const jH=["b","body"];function Sse(e){return Vc(e,jH)}const YH=["c","cases"];function wse(e){return Vc(e,YH,[])}const XH=["s","static"];function xse(e){return Vc(e,XH)}const KH=["i","items"];function Tse(e){return Vc(e,KH,[])}const ZH=["t","type"];function qR(e){return Vc(e,ZH)}const qH=["v","value"];function E1(e,t){const n=Vc(e,qH);if(n!=null)return n;throw ey(t)}const JH=["m","modifier"];function Cse(e){return Vc(e,JH)}const QH=["k","key"];function Ese(e){const t=Vc(e,QH);if(t)return t;throw ey(6)}function Vc(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(us(e,i)&&e[i]!=null)return e[i]}return n}const e8=[...jH,...YH,...XH,...KH,...QH,...JH,...qH,...ZH];function ey(e){return new Error(`unhandled node type: ${e}`)}function FC(e){return n=>Ise(n,e)}function Ise(e,t){const n=Sse(t);if(n==null)throw ey(0);if(qR(n)===1){const o=wse(n);return e.plural(o.reduce((a,s)=>[...a,A5(e,s)],[]))}else return A5(e,n)}function A5(e,t){const n=xse(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Tse(t).reduce((i,o)=>[...i,PI(e,o)],[]);return e.normalize(r)}}function PI(e,t){const n=qR(t);switch(n){case 3:return E1(t,n);case 9:return E1(t,n);case 4:{const r=t;if(us(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(us(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw ey(n)}case 5:{const r=t;if(us(r,"i")&&Vr(r.i))return e.interpolate(e.list(r.i));if(us(r,"index")&&Vr(r.index))return e.interpolate(e.list(r.index));throw ey(n)}case 6:{const r=t,i=Cse(r),o=Ese(r);return e.linked(PI(e,o),i?PI(e,i):void 0,e.type)}case 7:return E1(t,n);case 8:return E1(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Ase=e=>e;let I1=Fn();function Pse(e,t={}){let n=!1;const r=t.onError||Jae;return t.onError=i=>{n=!0,r(i)},{..._se(e,t),detectError:n}}function Rse(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&dt(e)){_n(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Ase)(e),i=I1[r];if(i)return i;const{ast:o,detectError:a}=Pse(e,{...t,location:!1,jit:!0}),s=FC(o);return a?s:I1[r]=s}else{const n=e.cacheKey;if(n){const r=I1[n];return r||(I1[n]=FC(e))}else return FC(e)}}let ty=null;function Mse(e){ty=e}function Dse(e,t,n){ty&&ty.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ose=Lse("function:translate");function Lse(e){return t=>ty&&ty.emit(e,t)}const Xl={INVALID_ARGUMENT:qae,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},kse=24;function Kl(e){return ox(e,null,void 0)}function JR(e,t){return t.locale!=null?P5(t.locale):P5(e.locale)}let $C;function P5(e){if(dt(e))return e;if(er(e)){if(e.resolvedOnce&&$C!=null)return $C;if(e.constructor.name==="Function"){const t=e();if(Xae(t))throw Kl(Xl.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return $C=t}else throw Kl(Xl.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Kl(Xl.NOT_SUPPORT_LOCALE_TYPE)}function Nse(e,t,n){return[...new Set([n,...Sr(t)?t:xn(t)?Object.keys(t):dt(t)?[t]:[n]])]}function t8(e,t,n){const r=dt(n)?n:ny,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Sr(a);)a=R5(o,a,t);const s=Sr(t)||!ln(t)?t:t.default?t.default:null;a=dt(s)?[s]:s,Sr(a)&&R5(o,a,!1),i.__localeChainCache.set(r,o)}return o}function R5(e,t,n){let r=!0;for(let i=0;i<t.length&&_n(r);i++){const o=t[i];dt(o)&&(r=Fse(e,t[i],n))}return r}function Fse(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=$se(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function $se(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(Sr(n)||ln(n))&&n[i]&&(r=n[i])}return r}const Hc=[];Hc[0]={w:[0],i:[3,0],"[":[4],o:[7]};Hc[1]={w:[1],".":[2],"[":[4],o:[7]};Hc[2]={w:[2],i:[3,0],0:[3,0]};Hc[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Hc[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Hc[5]={"'":[4,0],o:8,l:[5,0]};Hc[6]={'"':[4,0],o:8,l:[6,0]};const Bse=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Use(e){return Bse.test(e)}function Vse(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Hse(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function zse(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Use(t)?Vse(t):"*"+t}function Gse(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,f;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,r=4,h[0]();else{if(i=0,a===void 0||(a=zse(a),a===!1))return!1;h[1]()}};function d(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,s="\\"+p,h[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&d())){if(l=Hse(o),f=Hc[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const M5=new Map;function Wse(e,t){return xn(e)?e[t]:null}function jse(e,t){if(!xn(e))return null;let n=M5.get(t);if(n||(n=Gse(t),n&&M5.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o<r;){const a=n[o];if(e8.includes(a)&&Js(i))return null;const s=i[a];if(s===void 0||er(i))return null;i=s,o++}return i}const Yse="11.1.11",ax=-1,ny="en-US",D5="",O5=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Xse(){return{upper:(e,t)=>t==="text"&&dt(e)?e.toUpperCase():t==="vnode"&&xn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&dt(e)?e.toLowerCase():t==="vnode"&&xn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&dt(e)?O5(e):t==="vnode"&&xn(e)&&"__v_isVNode"in e?O5(e.children):e}}let n8;function Kse(e){n8=e}let r8;function Zse(e){r8=e}let i8;function qse(e){i8=e}let o8=null;const Jse=e=>{o8=e},Qse=()=>o8;let a8=null;const L5=e=>{a8=e},ele=()=>a8;let k5=0;function tle(e={}){const t=er(e.onWarn)?e.onWarn:Vae,n=dt(e.version)?e.version:Yse,r=dt(e.locale)||er(e.locale)?e.locale:ny,i=er(r)?ny:r,o=Sr(e.fallbackLocale)||ln(e.fallbackLocale)||dt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=ln(e.messages)?e.messages:BC(i),s=ln(e.datetimeFormats)?e.datetimeFormats:BC(i),l=ln(e.numberFormats)?e.numberFormats:BC(i),u=Xr(Fn(),e.modifiers,Xse()),c=e.pluralRules||Fn(),f=er(e.missing)?e.missing:null,h=_n(e.missingWarn)||Pp(e.missingWarn)?e.missingWarn:!0,d=_n(e.fallbackWarn)||Pp(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,g=!!e.unresolving,y=er(e.postTranslation)?e.postTranslation:null,m=ln(e.processor)?e.processor:null,b=_n(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=er(e.messageCompiler)?e.messageCompiler:n8,C=er(e.messageResolver)?e.messageResolver:r8||Wse,T=er(e.localeFallbacker)?e.localeFallbacker:i8||Nse,E=xn(e.fallbackContext)?e.fallbackContext:void 0,P=e,I=xn(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,D=xn(P.__numberFormatters)?P.__numberFormatters:new Map,O=xn(P.__meta)?P.__meta:{};k5++;const N={version:n,cid:k5,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:p,unresolving:g,postTranslation:y,processor:m,warnHtmlMessage:b,escapeParameter:w,messageCompiler:S,messageResolver:C,localeFallbacker:T,fallbackContext:E,onWarn:t,__meta:O};return N.datetimeFormats=s,N.numberFormats=l,N.__datetimeFormatters=I,N.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&Dse(N,n,O),N}const BC=e=>({[e]:Fn()});function QR(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return dt(s)?s:t}else return t}function Uv(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function nle(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function rle(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(nle(e,t[r]))return!0;return!1}function N5(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=RI(...t),h=_n(c.missingWarn)?c.missingWarn:e.missingWarn;_n(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,p=JR(e,c),g=a(e,i,p);if(!dt(l)||l==="")return new Intl.DateTimeFormat(p,f).format(u);let y={},m,b=null;const w="datetime format";for(let T=0;T<g.length&&(m=g[T],y=n[m]||{},b=y[l],!ln(b));T++)QR(e,l,m,h,w);if(!ln(b)||!dt(m))return r?ax:l;let S=`${m}__${l}`;ix(f)||(S=`${S}__${JSON.stringify(f)}`);let C=s.get(S);return C||(C=new Intl.DateTimeFormat(m,Xr({},b,f)),s.set(S,C)),d?C.formatToParts(u):C.format(u)}const s8=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function RI(...e){const[t,n,r,i]=e,o=Fn();let a=Fn(),s;if(dt(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Kl(Xl.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw Kl(Xl.INVALID_ISO_DATE_ARGUMENT)}}else if(Gae(t)){if(isNaN(t.getTime()))throw Kl(Xl.INVALID_DATE_ARGUMENT);s=t}else if(Vr(t))s=t;else throw Kl(Xl.INVALID_ARGUMENT);return dt(n)?o.key=n:ln(n)&&Object.keys(n).forEach(l=>{s8.includes(l)?a[l]=n[l]:o[l]=n[l]}),dt(r)?o.locale=r:ln(r)&&(a=r),ln(i)&&(a=i),[o.key||"",s,o,a]}function F5(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function $5(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=MI(...t),h=_n(c.missingWarn)?c.missingWarn:e.missingWarn;_n(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,p=JR(e,c),g=a(e,i,p);if(!dt(l)||l==="")return new Intl.NumberFormat(p,f).format(u);let y={},m,b=null;const w="number format";for(let T=0;T<g.length&&(m=g[T],y=n[m]||{},b=y[l],!ln(b));T++)QR(e,l,m,h,w);if(!ln(b)||!dt(m))return r?ax:l;let S=`${m}__${l}`;ix(f)||(S=`${S}__${JSON.stringify(f)}`);let C=s.get(S);return C||(C=new Intl.NumberFormat(m,Xr({},b,f)),s.set(S,C)),d?C.formatToParts(u):C.format(u)}const l8=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function MI(...e){const[t,n,r,i]=e,o=Fn();let a=Fn();if(!Vr(t))throw Kl(Xl.INVALID_ARGUMENT);const s=t;return dt(n)?o.key=n:ln(n)&&Object.keys(n).forEach(l=>{l8.includes(l)?a[l]=n[l]:o[l]=n[l]}),dt(r)?o.locale=r:ln(r)&&(a=r),ln(i)&&(a=i),[o.key||"",s,o,a]}function B5(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const ile=e=>e,ole=e=>"",ale="text",sle=e=>e.length===0?"":KR(e),lle=Kae;function U5(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ule(e){const t=Vr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Vr(e.named.count)||Vr(e.named.n))?Vr(e.named.count)?e.named.count:Vr(e.named.n)?e.named.n:t:t}function cle(e,t){t.count||(t.count=e),t.n||(t.n=e)}function fle(e={}){const t=e.locale,n=ule(e),r=xn(e.pluralRules)&&dt(t)&&er(e.pluralRules[t])?e.pluralRules[t]:U5,i=xn(e.pluralRules)&&dt(t)&&er(e.pluralRules[t])?U5:void 0,o=m=>m[r(n,m.length,i)],a=e.list||[],s=m=>a[m],l=e.named||Fn();Vr(e.pluralIndex)&&cle(n,l);const u=m=>l[m];function c(m,b){const w=er(e.messages)?e.messages(m,!!b):xn(e.messages)?e.messages[m]:!1;return w||(e.parent?e.parent.message(m):ole)}const f=m=>e.modifiers?e.modifiers[m]:ile,h=ln(e.processor)&&er(e.processor.normalize)?e.processor.normalize:sle,d=ln(e.processor)&&er(e.processor.interpolate)?e.processor.interpolate:lle,p=ln(e.processor)&&dt(e.processor.type)?e.processor.type:ale,y={list:s,named:u,plural:o,linked:(m,...b)=>{const[w,S]=b;let C="text",T="";b.length===1?xn(w)?(T=w.modifier||T,C=w.type||C):dt(w)&&(T=w||T):b.length===2&&(dt(w)&&(T=w||T),dt(S)&&(C=S||C));const E=c(m,!0)(y),P=C==="vnode"&&Sr(E)&&T?E[0]:E;return T?f(T)(P,C):P},message:c,type:p,interpolate:d,normalize:h,values:Xr(Fn(),a,l)};return y}const V5=()=>"",Ia=e=>er(e);function H5(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=DI(...t),c=_n(u.missingWarn)?u.missingWarn:e.missingWarn,f=_n(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=_n(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,p=dt(u.default)||_n(u.default)?_n(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,g=n||p!=null&&(dt(p)||er(p)),y=JR(e,u);h&&dle(u);let[m,b,w]=d?[l,y,s[y]||Fn()]:u8(e,l,y,a,f,c),S=m,C=l;if(!d&&!(dt(S)||Js(S)||Ia(S))&&g&&(S=p,C=S),!d&&(!(dt(S)||Js(S)||Ia(S))||!dt(b)))return i?ax:l;let T=!1;const E=()=>{T=!0},P=Ia(S)?S:c8(e,l,b,S,C,E);if(T)return S;const I=vle(e,b,w,u),D=fle(I),O=hle(e,P,D);let N=r?r(O,l):O;if(h&&dt(N)&&(N=jae(N)),__INTLIFY_PROD_DEVTOOLS__){const M={timestamp:Date.now(),key:dt(l)?l:Ia(S)?S.key:"",locale:b||(Ia(S)?S.locale:""),format:dt(S)?S:Ia(S)?S.source:"",message:N};M.meta=Xr({},e.__meta,Qse()||{}),Ose(M)}return N}function dle(e){Sr(e.list)?e.list=e.list.map(t=>dt(t)?x5(t):t):xn(e.named)&&Object.keys(e.named).forEach(t=>{dt(e.named[t])&&(e.named[t]=x5(e.named[t]))})}function u8(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=Fn(),h,d=null;const p="translate";for(let g=0;g<c.length&&(h=c[g],f=a[h]||Fn(),(d=l(f,t))===null&&(d=f[t]),!(dt(d)||Js(d)||Ia(d)));g++)if(!rle(h,c)){const y=QR(e,t,h,o,p);y!==t&&(d=y)}return[d,h,f]}function c8(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Ia(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(a==null){const u=(()=>r);return u.locale=n,u.key=t,u}const l=a(r,ple(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function hle(e,t,n){return t(n)}function DI(...e){const[t,n,r]=e,i=Fn();if(!dt(t)&&!Vr(t)&&!Ia(t)&&!Js(t))throw Kl(Xl.INVALID_ARGUMENT);const o=Vr(t)?String(t):(Ia(t),t);return Vr(n)?i.plural=n:dt(n)?i.default=n:ln(n)&&!ix(n)?i.named=n:Sr(n)&&(i.list=n),Vr(r)?i.plural=r:dt(r)?i.default=r:ln(r)&&Xr(i,r),[o,i]}function ple(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>Hae(t,n,a)}}function vle(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:i,pluralRules:o,messages:(d,p)=>{let g=a(n,d);if(g==null&&(c||p)){const[,,y]=u8(c||e,d,t,s,l,u);g=a(y,d)}if(dt(g)||Js(g)){let y=!1;const b=c8(e,d,t,g,d,()=>{y=!0});return y?V5:b}else return Ia(g)?g:V5}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Vr(r.plural)&&(h.pluralIndex=r.plural),h}bse();/*!
* vue-i18n v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const gle="11.1.11";function mle(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(zf().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(zf().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(zf().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(zf().__INTLIFY_PROD_DEVTOOLS__=!1)}const No={UNEXPECTED_RETURN_TYPE:kse,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function sa(e,...t){return ox(e,null,void 0)}const OI=Uc("__translateVNode"),LI=Uc("__datetimeParts"),kI=Uc("__numberParts"),f8=Uc("__setPluralRules"),d8=Uc("__injectWithOption"),NI=Uc("__dispose");function ry(e){if(!xn(e)||Js(e))return e;for(const t in e)if(us(e,t))if(!t.includes("."))xn(e[t])&&ry(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in i||(i[n[a]]=Fn()),!xn(i[n[a]])){o=!0;break}i=i[n[a]]}if(o||(Js(i)?e8.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!Js(i)){const a=i[n[r]];xn(a)&&ry(a)}}return e}function eM(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=ln(n)?n:Sr(r)?Fn():{[e]:Fn()};if(Sr(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||Fn(),hb(u,a[l])):hb(u,a)}else dt(s)&&hb(JSON.parse(s),a)}),i==null&&o)for(const s in a)us(a,s)&&ry(a[s]);return a}function h8(e){return e.type}function p8(e,t,n){let r=xn(t.messages)?t.messages:Fn();"__i18nGlobal"in n&&(r=eM(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(xn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(xn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function z5(e){return z(tu,null,e,0)}const G5="__INTLIFY_META__",W5=()=>[],yle=()=>!1;let j5=0;function Y5(e){return((t,n,r,i)=>e(n,r,vr()||void 0,i))}const _le=()=>{const e=vr();let t=null;return e&&(t=h8(e)[G5])?{[G5]:t}:null};function tM(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=bS?Te:Lr;let a=_n(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:dt(e.locale)?e.locale:ny),l=o(t&&a?t.fallbackLocale.value:dt(e.fallbackLocale)||Sr(e.fallbackLocale)||ln(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(eM(s.value,e)),c=o(ln(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(ln(e.numberFormats)?e.numberFormats:{[s.value]:{}});let h=t?t.missingWarn:_n(e.missingWarn)||Pp(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:_n(e.fallbackWarn)||Pp(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:_n(e.fallbackRoot)?e.fallbackRoot:!0,g=!!e.fallbackFormat,y=er(e.missing)?e.missing:null,m=er(e.missing)?Y5(e.missing):null,b=er(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:_n(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const C=t?t.modifiers:ln(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&L5(null);const te={version:gle,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:T,missing:m===null?void 0:m,missingWarn:h,fallbackWarn:d,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:w,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};te.datetimeFormats=c.value,te.numberFormats=f.value,te.__datetimeFormatters=ln(E)?E.__datetimeFormatters:void 0,te.__numberFormatters=ln(E)?E.__numberFormatters:void 0;const ve=tle(te);return r&&L5(ve),ve})(),Uv(E,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,f.value]}const D=ge({get:()=>s.value,set:te=>{E.locale=te,s.value=te}}),O=ge({get:()=>l.value,set:te=>{E.fallbackLocale=te,l.value=te,Uv(E,s.value,te)}}),N=ge(()=>u.value),M=ge(()=>c.value),k=ge(()=>f.value);function V(){return er(b)?b:null}function B(te){b=te,E.postTranslation=te}function U(){return y}function $(te){te!==null&&(m=Y5(te)),y=te,E.missing=m}const J=(te,ve,je,nt,Tt,se)=>{I();let ce;try{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?ele():void 0),ce=te(E)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(je!=="translate exists"&&Vr(ce)&&ce===ax||je==="translate exists"&&!ce){const[ye,De]=ve();return t&&p?nt(t):Tt(ye)}else{if(se(ce))return ce;throw sa(No.UNEXPECTED_RETURN_TYPE)}};function ae(...te){return J(ve=>Reflect.apply(H5,null,[ve,...te]),()=>DI(...te),"translate",ve=>Reflect.apply(ve.t,ve,[...te]),ve=>ve,ve=>dt(ve))}function ne(...te){const[ve,je,nt]=te;if(nt&&!xn(nt))throw sa(No.INVALID_ARGUMENT);return ae(ve,je,Xr({resolvedMessage:!0},nt||{}))}function _e(...te){return J(ve=>Reflect.apply(N5,null,[ve,...te]),()=>RI(...te),"datetime format",ve=>Reflect.apply(ve.d,ve,[...te]),()=>D5,ve=>dt(ve)||Sr(ve))}function me(...te){return J(ve=>Reflect.apply($5,null,[ve,...te]),()=>MI(...te),"number format",ve=>Reflect.apply(ve.n,ve,[...te]),()=>D5,ve=>dt(ve)||Sr(ve))}function Me(te){return te.map(ve=>dt(ve)||Vr(ve)||_n(ve)?z5(String(ve)):ve)}const ke={normalize:Me,interpolate:te=>te,type:"vnode"};function oe(...te){return J(ve=>{let je;const nt=ve;try{nt.processor=ke,je=Reflect.apply(H5,null,[nt,...te])}finally{nt.processor=null}return je},()=>DI(...te),"translate",ve=>ve[OI](...te),ve=>[z5(ve)],ve=>Sr(ve))}function Ee(...te){return J(ve=>Reflect.apply($5,null,[ve,...te]),()=>MI(...te),"number format",ve=>ve[kI](...te),W5,ve=>dt(ve)||Sr(ve))}function we(...te){return J(ve=>Reflect.apply(N5,null,[ve,...te]),()=>RI(...te),"datetime format",ve=>ve[LI](...te),W5,ve=>dt(ve)||Sr(ve))}function Ae(te){T=te,E.pluralRules=T}function Oe(te,ve){return J(()=>{if(!te)return!1;const je=dt(ve)?ve:s.value,nt=X(je),Tt=E.messageResolver(nt,te);return Js(Tt)||Ia(Tt)||dt(Tt)},()=>[te],"translate exists",je=>Reflect.apply(je.te,je,[te,ve]),yle,je=>_n(je))}function Ue(te){let ve=null;const je=t8(E,l.value,s.value);for(let nt=0;nt<je.length;nt++){const Tt=u.value[je[nt]]||{},se=E.messageResolver(Tt,te);if(se!=null){ve=se;break}}return ve}function Y(te){const ve=Ue(te);return ve??(t?t.tm(te)||{}:{})}function X(te){return u.value[te]||{}}function de(te,ve){if(i){const je={[te]:ve};for(const nt in je)us(je,nt)&&ry(je[nt]);ve=je[te]}u.value[te]=ve,E.messages=u.value}function Ie(te,ve){u.value[te]=u.value[te]||{};const je={[te]:ve};if(i)for(const nt in je)us(je,nt)&&ry(je[nt]);ve=je[te],hb(ve,u.value[te]),E.messages=u.value}function be(te){return c.value[te]||{}}function W(te,ve){c.value[te]=ve,E.datetimeFormats=c.value,F5(E,te,ve)}function Z(te,ve){c.value[te]=Xr(c.value[te]||{},ve),E.datetimeFormats=c.value,F5(E,te,ve)}function re(te){return f.value[te]||{}}function pe(te,ve){f.value[te]=ve,E.numberFormats=f.value,B5(E,te,ve)}function Ce(te,ve){f.value[te]=Xr(f.value[te]||{},ve),E.numberFormats=f.value,B5(E,te,ve)}j5++,t&&bS&&(mt(t.locale,te=>{a&&(s.value=te,E.locale=te,Uv(E,s.value,l.value))}),mt(t.fallbackLocale,te=>{a&&(l.value=te,E.fallbackLocale=te,Uv(E,s.value,l.value))}));const $e={id:j5,locale:D,fallbackLocale:O,get inheritLocale(){return a},set inheritLocale(te){a=te,te&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Uv(E,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:N,get modifiers(){return C},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(te){h=te,E.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(te){d=te,E.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(te){p=te},get fallbackFormat(){return g},set fallbackFormat(te){g=te,E.fallbackFormat=g},get warnHtmlMessage(){return w},set warnHtmlMessage(te){w=te,E.warnHtmlMessage=te},get escapeParameter(){return S},set escapeParameter(te){S=te,E.escapeParameter=te},t:ae,getLocaleMessage:X,setLocaleMessage:de,mergeLocaleMessage:Ie,getPostTranslationHandler:V,setPostTranslationHandler:B,getMissingHandler:U,setMissingHandler:$,[f8]:Ae};return $e.datetimeFormats=M,$e.numberFormats=k,$e.rt=ne,$e.te=Oe,$e.tm=Y,$e.d=_e,$e.n=me,$e.getDateTimeFormat=be,$e.setDateTimeFormat=W,$e.mergeDateTimeFormat=Z,$e.getNumberFormat=re,$e.setNumberFormat=pe,$e.mergeNumberFormat=Ce,$e[d8]=n,$e[OI]=oe,$e[LI]=we,$e[kI]=Ee,$e}function ble(e){const t=dt(e.locale)?e.locale:ny,n=dt(e.fallbackLocale)||Sr(e.fallbackLocale)||ln(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=er(e.missing)?e.missing:void 0,i=_n(e.silentTranslationWarn)||Pp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=_n(e.silentFallbackWarn)||Pp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=_n(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=ln(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=er(e.postTranslation)?e.postTranslation:void 0,f=dt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,d=_n(e.sync)?e.sync:!0;let p=e.messages;if(ln(e.sharedMessages)){const C=e.sharedMessages;p=Object.keys(C).reduce((E,P)=>{const I=E[P]||(E[P]={});return Xr(I,C[P]),E},p||{})}const{__i18n:g,__root:y,__injectWithOption:m}=e,b=e.datetimeFormats,w=e.numberFormats,S=e.flatJson;return{locale:t,fallbackLocale:n,messages:p,flatJson:S,datetimeFormats:b,numberFormats:w,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:d,__i18n:g,__root:y,__injectWithOption:m}}function FI(e={}){const t=tM(ble(e)),{__extender:n}=e,r={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 _n(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=_n(i)?!i:i},get silentFallbackWarn(){return _n(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=_n(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])},te(i,o){return t.te(i,o)},tm(i){return t.tm(i)},getLocaleMessage(i){return t.getLocaleMessage(i)},setLocaleMessage(i,o){t.setLocaleMessage(i,o)},mergeLocaleMessage(i,o){t.mergeLocaleMessage(i,o)},d(...i){return Reflect.apply(t.d,t,[...i])},getDateTimeFormat(i){return t.getDateTimeFormat(i)},setDateTimeFormat(i,o){t.setDateTimeFormat(i,o)},mergeDateTimeFormat(i,o){t.mergeDateTimeFormat(i,o)},n(...i){return Reflect.apply(t.n,t,[...i])},getNumberFormat(i){return t.getNumberFormat(i)},setNumberFormat(i,o){t.setNumberFormat(i,o)},mergeNumberFormat(i,o){t.mergeNumberFormat(i,o)}};return r.__extender=n,r}function Sle(e,t,n){return{beforeCreate(){const r=vr();if(!r)throw sa(No.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const o=i.i18n;if(i.__i18n&&(o.__i18n=i.__i18n),o.__root=t,this===this.$root)this.$i18n=X5(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=FI(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=X5(e,i);else{this.$i18n=FI({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&p8(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=vr();if(!r)throw sa(No.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function X5(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[f8](t.pluralizationRules||e.pluralizationRules);const n=eM(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const nM={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function wle({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ve?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Fn())}function v8(){return Ve}const xle=Ze({name:"i18n-t",props:Xr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Vr(e)||!isNaN(e)}},nM),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||qr({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),a=Fn();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=dt(e.plural)?+e.plural:e.plural);const s=wle(t,o),l=i[OI](e.keypath,s,a),u=Xr(Fn(),r),c=dt(e.tag)||xn(e.tag)?e.tag:v8();return yi(c,u,l)}}}),K5=xle;function Tle(e){return Sr(e)&&!dt(e[0])}function g8(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=Fn();e.locale&&(a.locale=e.locale),dt(e.format)?a.key=e.format:xn(e.format)&&(dt(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,d)=>n.includes(d)?Xr(Fn(),h,{[d]:e.format[d]}):h,Fn()));const l=r(e.value,a,s);let u=[a.key];Sr(l)?u=l.map((h,d)=>{const p=i[h.type],g=p?p({[h.type]:h.value,index:d,parts:l}):[h.value];return Tle(g)&&(g[0].key=`${h.type}-${d}`),g}):dt(l)&&(u=[l]);const c=Xr(Fn(),o),f=dt(e.tag)||xn(e.tag)?e.tag:v8();return yi(f,c,u)}}const Cle=Ze({name:"i18n-n",props:Xr({value:{type:Number,required:!0},format:{type:[String,Object]}},nM),setup(e,t){const n=e.i18n||qr({useScope:e.scope,__useComponent:!0});return g8(e,t,l8,(...r)=>n[kI](...r))}}),Z5=Cle;function Ele(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ile(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw sa(No.UNEXPECTED_ERROR);const u=Ele(e,s.$),c=q5(l);return[Reflect.apply(u.t,u,[...J5(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);bS&&e.global===u&&(a.__i18nWatcher=mt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{bS&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,u=q5(s);a.textContent=Reflect.apply(l.t,l,[...J5(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function q5(e){if(dt(e))return{path:e};if(ln(e)){if(!("path"in e))throw sa(No.REQUIRED_VALUE,"path");return e}else throw sa(No.INVALID_VALUE)}function J5(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return dt(n)&&(a.locale=n),Vr(i)&&(a.plural=i),Vr(o)&&(a.plural=o),[t,s,a]}function Ale(e,t,...n){const r=ln(n[0])?n[0]:{};(_n(r.globalInstall)?r.globalInstall:!0)&&([K5.name,"I18nT"].forEach(o=>e.component(o,K5)),[Z5.name,"I18nN"].forEach(o=>e.component(o,Z5)),[eF.name,"I18nD"].forEach(o=>e.component(o,eF))),e.directive("t",Ile(t))}const Ple=Uc("global-vue-i18n");function Rle(e={}){const t=__VUE_I18N_LEGACY_API__&&_n(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=_n(e.globalInjection)?e.globalInjection:!0,r=new Map,[i,o]=Mle(e,t),a=Uc("");function s(f){return r.get(f)||null}function l(f,h){r.set(f,h)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,c),ln(h[0])){const g=h[0];c.__composerExtend=g.__composerExtend,c.__vueI18nExtend=g.__vueI18nExtend}let d=null;!t&&n&&(d=Ble(f,c.global)),__VUE_I18N_FULL_INSTALL__&&Ale(f,c,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Sle(o,o.__composer,c));const p=f.unmount;f.unmount=()=>{d&&d(),c.dispose(),p()}},get global(){return o},dispose(){i.stop()},__instances:r,__getInstance:s,__setInstance:l,__deleteInstance:u};return c}function qr(e={}){const t=vr();if(t==null)throw sa(No.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw sa(No.NOT_INSTALLED);const n=Dle(t),r=Lle(n),i=h8(t),o=Ole(e,i);if(o==="global")return p8(r,e,i),r;if(o==="parent"){let l=kle(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Xr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=tM(l),a.__composerExtend&&(s[NI]=a.__composerExtend(s)),Fle(a,t,s),a.__setInstance(t,s)}return s}function Mle(e,t){const n=pV(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>FI(e)):n.run(()=>tM(e));if(r==null)throw sa(No.UNEXPECTED_ERROR);return[n,r]}function Dle(e){const t=Mo(e.isCE?Ple:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw sa(e.isCE?No.NOT_INSTALLED_WITH_PROVIDE:No.UNEXPECTED_ERROR);return t}function Ole(e,t){return ix(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Lle(e){return e.mode==="composition"?e.global:e.global.__composer}function kle(e,t,n=!1){let r=null;const i=t.root;let o=Nle(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(r=s.__composer,n&&r&&!r[d8]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function Nle(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Fle(e,t,n){Er(()=>{},t),Bc(()=>{const r=n;e.__deleteInstance(t);const i=r[NI];i&&(i(),delete r[NI])},t)}const $le=["locale","fallbackLocale","availableLocales"],Q5=["t","rt","d","n","tm","te"];function Ble(e,t){const n=Object.create(null);return $le.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw sa(No.UNEXPECTED_ERROR);const a=rt(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,Q5.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw sa(No.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,Q5.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const Ule=Ze({name:"i18n-d",props:Xr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nM),setup(e,t){const n=e.i18n||qr({useScope:e.scope,__useComponent:!0});return g8(e,t,s8,(...r)=>n[LI](...r))}}),eF=Ule;mle();Kse(Rse);Zse(jse);qse(t8);if(__INTLIFY_PROD_DEVTOOLS__){const e=zf();e.__INTLIFY__=!0,Mse(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Vle={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",noContent:"No Content",flushFakeIP:"Flush Fake IP",flushDNSCache:"Flush DNS Cache",flushDNSCacheSuccess:"DNS cache flushed successfully",flushFakeIPSuccess:"Fake IP flushed successfully",restartCoreSuccess:"Core restarted successfully",reloadConfigsSuccess:"Configs reloaded successfully",updateGeoSuccess:"Geo database updated successfully",chains:"Chains",outbound:"Outbound",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active",closedConnections:"Closed",logLevel:"Log Level",logType:"Log Type",twoColumnProxyGroup:"Two-Column Proxy Group",type:"Type",process:"Process",connectTime:"Connect Time",sourcePort:"Source Port",destination:"Final Destination",destinationType:"Dest Type",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",customCardLines:"Custom Card Lines",close:"Close",defaultTheme:"Default Theme",darkTheme:"Dark Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"No Expiry",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Update All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"Config Order",nameasc:"Name Ascending",namedesc:"Name Descending",latencydesc:"Latency Descending",latencyasc:"Latency Ascending",language:"Language",automaticDisconnection:"Auto Disconnect on Node Switch",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",upgradeToRelease:"Upgrade to Release",upgradeToAlpha:"Upgrade to Alpha",updateGeoDatabase:"Update Geo",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",unavailableProxy:"Hide Unavailable Proxies",protocolTips:"You are trying to connect to an HTTP backend, but zashboard is provided via HTTPS. This may cause connection errors. Please allow insecure content in your browser settings or use the HTTP version of zashboard, such as http://board.zash.run.place.",global:"Global",direct:"Direct",lowLatencyDesc:"Yellow Threshold",mediumLatencyDesc:"Red Threshold",fonts:"Fonts",unauthorizedTip:"Unauthorized, please log in again.",restartCore:"Restart Core",checkUpgrade:"Check for Updates",autoUpgrade:"Auto Upgrade",secondaryPath:"Secondary Path",secondaryPathTip:'If present, start with "/", otherwise leave empty.',logRetentionLimit:"Log Retention Limit",DNSQuery:"DNS Query",currentBackendUnavailable:"The current backend is unavailable. Would you like to switch to another backend?",confirm:"Confirm",backendSwitchTo:"Auto Switch to {backend}",ipv6Test:"IPv6 Test",socksPort:"SOCKS Port",httpPort:"HTTP Port",mixedPort:"Mixed Port",redirPort:"Redir Port",tproxyPort:"TProxy Port",tableSize:"Table Size",proxyCardSize:"Proxy Card Size",small:"Small",normal:"Normal",large:"Large",autoIPCheckWhenStart:"Auto IP Check on Start",autoConnectionCheckWhenStart:"Auto Connection Check on Start",chinaIP:"China IP",globalIP:"Global IP",networkInfo:"Network Info",autoSwitchTheme:"Auto Switch Theme",customBackgroundURL:"Background",splitOverviewPage:"Split Overview Page",manageHiddenGroup:"Manage Hidden Groups",showIPAndConnectionInfo:"Show IP and Connection Info",transparent:"Transparency",proxyGroupIconSize:"Proxy Group Icon Size",proxyGroupIconMargin:"Proxy Group Icon Margin",allowLan:"Allow LAN",proxyChainDirection:"Proxy Chain Direction",reverse:"Reverse",sniffHost:"Sniff Host",ipScreenshotTip:"Please hide the IP when taking screenshots.",showStatisticsWhenSidebarCollapsed:"Show Statistics When Sidebar Collapsed",totalConnections:"Total Connections",mostDownloadHost:"Most Downloaded Host",mostUploadHost:"Most Uploaded Host",mostDownloadSourceIP:"Most Downloaded Source IP",mostUploadSourceIP:"Most Uploaded Source IP",mostDownloadProxy:"Most Downloaded Proxy",mostUploadProxy:"Most Uploaded Proxy",manual:"Manual",tableWidthMode:"Table Width Mode",testFailed:"Test Failed",testFinishedTip:`{name}{'@'}{url}
{number}/{total} Test Finished`,testFinishedResultTip:`{name}{'@'}{url}
Test Finished: {success} Success, {failed} Timeout`,testFailedTip:`{name}{'@'}{url}
Test Failed`,updateFinishedTip:"{number} Update(s) Finished",independentLatencyTest:"Independent Latency Test",independentLatencyTestTip:"When enabled, the latency test will use URLs specified in the configuration file instead of zashboard's URL settings. Latency will be displayed independently based on the URLs set in policy groups.",search:"Search",searchMultiple:"Space-separated keywords",allSourceIP:"All Source IPs",importing:"Importing...",hideConnection:"Hide Connection",hideConnectionRegex:"Hide Connection Regex",hideConnectionTip:"You can use case-insensitive regular expressions to match and hide unwanted connections.",loadBalance:"Load Balance",label:"Label",optional:"Optional",swipeInTabs:"Swipe to Switch Between Tabs",swipeInPages:"Swipe to Switch Between Pages",simpleCardPreset:"Simple Preset",detailedCardPreset:"Detailed Preset",refresh:"Refresh",reset:"Reset",minProxyCardWidth:"Proxy Card Min Width",displayGlobalByMode:"Display GLOBAL by Mode",proxyCountMode:"Proxy Count Mode",filteredTotal:"Filtered Total",total:"Total",aliveTotal:"Alive / Total",displaySelectedNode:"Show Selected Node",displayLatencyNumber:"Show Latency Numbers",tipForFixed:"The current policy group is locked to the current node. Run a speed test to restore urltest/fallback behavior.",remoteAddress:"Remote Address",themeName:"Theme Name",save:"Save",moreDetails:"More Details",customIcon:"Custom Icon",disablePullToRefresh:"Disable Pull to Refresh",disablePullToRefreshTip:"Pull-to-refresh and virtual scrolling components may conflict. If you experience lag or accidentally trigger pull-to-refresh while scrolling, try disabling this feature.",displayAllFeatures:"Show All Features",displayAllFeaturesTip:"Show all features, including those not supported by the official sing-box version. If you're using a forked version of sing-box that supports some of these features, you can try enabling them.",blurIntensity:"Blur Intensity",scrollAnimationEffect:"Scroll Animation Effect",importFromFile:"Import from File",importFromUrl:"Import from URL",sync:"Sync",upgradeSuccess:"Upgrade Successful",numberOfChartsInSidebar:"Number of Charts in Sidebar",flushSmartWeights:"Clear Smart Weights",IPInfoAPI:"IP Info API",IPInfoAPITip:"This API will be used for IP checks in global node IP information queries, IP geolocation queries in connection details, and IP geolocation queries in zashboard's DNS query feature.",general:"General",groupProxiesByProvider:"Group Proxies by Provider",useSmartGroupSort:"Smart Group Sort by Usage Frequency",RarelyUsed:"Rarely Used",OccasionalUsed:"Occasionally Used",MostUsed:"Most Used",all:"All",autoDisconnectIdleUDP:"Auto Disconnect Idle UDP",autoDisconnectIdleUDPTime:"UDP Idle Time",autoDisconnectIdleUDPTip:"When enabled, opening zashboard will close UDP connections that have been idle longer than the configured time. This may help with UDP connections that don't disconnect automatically as expected.",customGlobalNode:"Custom Global Node",proxiesRelationship:"Proxy Relationships",displayProxiesRelationship:"Show Proxy Relationships",editBackend:"Edit Backend",editBackendTitle:"Edit Backend Configuration",selectBackend:"Select Backend",backendConnectionFailed:"Backend connection failed, please check configuration",backendConfigSaved:"Backend configuration saved successfully",saveFailed:"Save failed",checking:"Checking...",copySuccess:"Copied successfully",importFromBackend:"Import from Backend",importFromBackendTip:"The default ./zashboard-settings.json is located in the ui folder. Please ensure the ui folder exists and contains the configuration file.",importFailed:"Import failed, please check the URL: {url}",autoImportFromUrl:"Auto Import",autoImportFromUrlTip:"When enabled, settings will be automatically imported from the URL when opening zashboard. If the hash differs from the last imported hash, settings will be re-imported and the page will be refreshed.",getting:"Getting...",mmdbSizeTip:"If you are using mmdb format geo files, the number will be 0",displayFinalOutbound:"Show Final Outbound Node",groupTestUrls:"Group Test URLs",groupTestUrlsTip:"For manual tests triggered from the panel, set test URLs here > URLs in configuration > Global test URLs, but for groups with UrlTest/Fallback, etc., the URLs in the configuration still need to be modified, So this is only recommended for Selector scenes",groupName:"Group Name"},Hle={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загружено",upload:"Отправлено",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость отдачи",memoryUsage:"Память",version:"Версия",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",flushDNSCache:"Очистить DNS кэш",flushDNSCacheSuccess:"DNS кэш успешно очищен",flushFakeIPSuccess:"Fake IP успешно очищен",restartCoreSuccess:"Ядро успешно перезапущено",reloadConfigsSuccess:"Конфигурации успешно перезагружены",updateGeoSuccess:"Geo база данных успешно обновлена",chains:"Цепочки",outbound:"Исходящий",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",logType:"Тип журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",connectTime:"Время",sourcePort:"Исходный порт",destination:"Финальное назначение",destinationType:"Тип назначения",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Отдч",dlSpeed:"Загрузка",ulSpeed:"Отдача",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",customCardLines:"Пользовательские строчки карточки",close:"Закрыть",defaultTheme:"Тема по умолчанию",darkTheme:"Темная тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновление все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",upgradeToRelease:"Обновить до Release",upgradeToAlpha:"Обновить до Alpha",updateGeoDatabase:"Обновить GEO",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",unavailableProxy:"Скрыть недоступное",protocolTips:"Вы пытаетесь подключиться к HTTP-бэкенду, но Zashboard предоставляется через HTTPS. Это может вызвать ошибки подключения. Разрешите небезопасный контент в настройках браузера или используйте HTTP-версию панели, например, http://board.zash.run.place.",global:"Глобальный",direct:"Прямой",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",unauthorizedTip:"Не авторизован, пожалуйста, войдите снова.",restartCore:"Перезапустить ядро",checkUpgrade:"Проверить обновления",autoUpgrade:"Автоматическое обновление",secondaryPath:"Дополнительный путь",secondaryPathTip:'Если присутствует, начните с "/", в противном случае оставьте пустым.',logRetentionLimit:"Лимит хранения журнала",DNSQuery:"DNS-запрос",currentBackendUnavailable:"Текущий бэкенд недоступен. Попробуйте переключиться на другой бэкенд?",confirm:"Подтвердить",backendSwitchTo:"Автоматическое переключение на {backend}",ipv6Test:"IPv6-тест",socksPort:"Порт Socks",httpPort:"Порт HTTP",mixedPort:"Порт Mixed",redirPort:"Порт Redir",tproxyPort:"Порт TProxy",tableSize:"Размер таблицы",proxyCardSize:"Размер карточки прокси",small:"Маленький",normal:"Нормальный",large:"Большой",autoIPCheckWhenStart:"Автоматическая проверка IP при запуске",autoConnectionCheckWhenStart:"Автоматическая проверка соединений при запуске",chinaIP:"IP для Китая",globalIP:"Мировой IP",networkInfo:"Информация о сети",autoSwitchTheme:"Автоматический темы",customBackgroundURL:"URL фона",splitOverviewPage:"Разделить страницу с обзором",manageHiddenGroup:"Управление скрытыми группами",showIPAndConnectionInfo:"Показать IP и информацию о соединениях",transparent:"Прозрачность",proxyGroupIconSize:"Размер иконки группы прокси",proxyGroupIconMargin:"Отступ иконки группы прокси",allowLan:"Разрешить локальную сеть",proxyChainDirection:"Направление цепочки прокси",reverse:"Обратное",sniffHost:"Захватывать хост",ipScreenshotTip:"Пожалуйста, убедитесь, что реальный IP скрыт при создании скриншотов.",showStatisticsWhenSidebarCollapsed:"Показать статистику при сворачивании панели",totalConnections:"Всего соединений",mostDownloadHost:"Ресурс с наибольшим скачиванием",mostUploadHost:"Ресурс с наибольшей отправкой данных",mostDownloadSourceIP:"IP-источник с наибольшим скачиванием",mostUploadSourceIP:"IP-источник с наибольшей отдачей",mostDownloadProxy:"Прокси с наибольшим скачиванием",mostUploadProxy:"Прокси с наибольшей отдачей",manual:"Ручной",tableWidthMode:"Режим ширины таблицы",testFailed:"Тест задержки таймаут",testFinishedTip:`{name}{'@'}{url}
{number}/{total} Тест завершен`,testFinishedResultTip:`{name}{'@'}{url}
Тест завершен: {success} Успешно, {failed} Таймаут`,testFailedTip:`{name}{'@'}{url}
Тест задержки таймаут`,updateFinishedTip:"{number} Обновление завершено",independentLatencyTest:"Независимый тест задержки",independentLatencyTestTip:"Включение независимого тестирования задержки попытается использовать URL-адреса, указанные в конфигурационном файле, вместо настроек URL-адресов в панели управления во время теста задержки. Задержка будет отображаться отдельно на основе URL-адресов, установленных в группах политик.",search:"Поиск",searchMultiple:"Ключевые слова через пробелы",allSourceIP:"Все IP-источники",importing:"Импортируется",hideConnection:"Скрыть соединение",hideConnectionRegex:"Скрыть соединение Regex",hideConnectionTip:"Используйте регистронезависимое регулярное выражение, чтобы найти и скрыть нежелательные соединения.",loadBalance:"Балансировка нагрузки",label:"Метка",optional:"Необязательно",swipeInTabs:"Провести для переключения вкладок",swipeInPages:"Провести для переключения страниц",simpleCardPreset:"Простой",detailedCardPreset:"Подробный",refresh:"Обновить",reset:"Сбросить",minProxyCardWidth:"Минимальная ширина карточки прокси",displayGlobalByMode:"Отображать GLOBAL по режиму",proxyCountMode:"Режим подсчета прокси",filteredTotal:"Отфильтровано всего",total:"Всего",aliveTotal:"Живых / всего",displaySelectedNode:"Отображать выбранный узел",displayLatencyNumber:"Отображать задержку",tipForFixed:"Текущая стратегическая группа закреплена за текущим узлом. Нажмите «Тест скорости», чтобы восстановить поведение urltest/fallback.",remoteAddress:"удалённый адрес",themeName:"Название темы",save:"Сохранить",moreDetails:"Подробнее",customIcon:"Пользовательская иконка",disablePullToRefresh:"Отключить свойство обновления",disablePullToRefreshTip:"Компоненты Pull-to-refresh и виртуальной прокрутки иногда могут конфликтовать. Если при прокрутке вверх-вниз у вас часто возникают задержки или случайные срабатывания Pull-to-refresh, попробуйте отключить Pull-to-refresh.",displayAllFeatures:"Показать все функции",displayAllFeaturesTip:"Показать все функции, включая те, которые не поддерживаются официальной версией sing-box. Если вы используете форк sing-box, поддерживающий некоторые из этих функций, вы можете попробовать их включить.",blurIntensity:"Интенсивность размытия",scrollAnimationEffect:"Эффект анимации прокрутки",importFromFile:"Импортировать из файла",importFromUrl:"Импортировать из URL",sync:"Синхронизировать",upgradeSuccess:"Обновление успешно",numberOfChartsInSidebar:"Количество графиков в боковой панели",flushSmartWeights:"Очистить Smart веса",IPInfoAPI:"API информации о IP",IPInfoAPITip:"Этот API будет использоваться для проверки IP-адресов при запросах информации о глобальных узлах, определения геолокации IP-адресов в деталях соединения, а также для определения геолокации IP-адресов при DNS-запросах в панели.",general:"Универсальный",groupProxiesByProvider:"Группировать прокси по провайдеру",useSmartGroupSort:"Сортировать Smart группы по частоте использования",RarelyUsed:"Редко используется",OccasionalUsed:"Временно используется",MostUsed:"Часто используется",all:"Все",autoDisconnectIdleUDP:"Автоматически отключить UDP-идле",autoDisconnectIdleUDPTime:"Время UDP-идле",autoDisconnectIdleUDPTip:"При включении открытие zashboard приведёт к закрытию UDP-соединений, продолжительность которых превышает заданное количество минут. Это может помочь в случае с некоторыми UDP-соединениями, которые не разрываются автоматически, как ожидается.",customGlobalNode:"Пользовательский глобальный узел",proxiesRelationship:"Отношение прокси",displayProxiesRelationship:"Показать отношение прокси",editBackend:"Редактировать бэкенд",editBackendTitle:"Редактировать конфигурацию бэкенда",selectBackend:"Выберите бэкенд",backendConnectionFailed:"Не удалось подключиться к бэкенду, проверьте конфигурацию",backendConfigSaved:"Конфигурация бэкенда успешно сохранена",saveFailed:"Не удалось сохранить",checking:"Проверка...",copySuccess:"Копирование успешно",importFromBackend:"Импортировать из бэкенда",importFromBackendTip:"По умолчанию ./zashboard-settings.json находится в папке ui. Пожалуйста, убедитесь, что папка ui существует и содержит файл конфигурации.",importFailed:"Импорт не выполнен, проверьте url {url}",autoImportFromUrl:"Автоматический импорт",autoImportFromUrlTip:"При включении настройки будут автоматически импортироваться из url при открытии zashboard. Если хэш отличается от последнего импортированного хэша, настройки будут импортированы заново и страница будет обновлена.",getting:"Получение...",mmdbSizeTip:"Если вы используете mmdb-формат файлов geo, то количество будет равно 0",displayFinalOutbound:"Показать конечный исходящий узел",groupTestUrls:"Группа тестовых URL",groupTestUrlsTip:"Для ручных тестов, запущенных из панели, установите тестовые URL > URL в конфигурации > Глобальные тестовые URL, но для групп с UrlTest/Fallback и т.д., URL в конфигурации все равно нужно изменить, поэтому это рекомендуется только для Selector и т.д. ",groupName:"Группа имени"},zle={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",noContent:"无内容",flushFakeIP:"清空Fake IP",flushDNSCache:"清空DNS缓存",flushDNSCacheSuccess:"DNS缓存清空成功",flushFakeIPSuccess:"Fake IP清空成功",restartCoreSuccess:"核心重启成功",reloadConfigsSuccess:"配置重载成功",updateGeoSuccess:"GEO数据库更新成功",chains:"代理链",outbound:"出站节点",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃",closedConnections:"已关闭",logLevel:"日志等级",logType:"日志类型",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",connectTime:"连接时间",sourcePort:"源端口",destination:"最终目标",destinationType:"目标类型",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",customCardLines:"自定义卡片行",close:"关闭",defaultTheme:"默认主题",darkTheme:"深色主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"面板语言",automaticDisconnection:"切换节点时自动断开连接",backend:"后端",upgradeCore:"更新核心",upgradeToRelease:"更新到 Release",upgradeToAlpha:"更新到 Alpha",updateGeoDatabase:"更新GEO",tunMode:"Tun 模式",truncateProxyName:"截断节点名称",sourceIPLabels:"源IP标签",proxyPreviewType:"节点预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",unavailableProxy:"隐藏不可用节点",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的这可能会导致连接错误请在浏览器设置中允许不安全的内容或者使用http版本面板例如http://board.zash.run.place",global:"全局",direct:"直连",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"面板字体",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",checkUpgrade:"检查更新",autoUpgrade:"自动更新",secondaryPath:"二级路径",secondaryPathTip:"如果有的话以/开头,没有则留空不填",logRetentionLimit:"日志保留条数",DNSQuery:"DNS 查询",currentBackendUnavailable:"当前后端不可用,尝试切换到其他后端?",confirm:"确定",backendSwitchTo:"自动切换到{backend}",ipv6Test:"IPv6 测试",socksPort:"Socks 端口",httpPort:"HTTP 端口",mixedPort:"Mixed 端口",redirPort:"Redir 端口",tproxyPort:"TProxy 端口",tableSize:"表格尺寸",proxyCardSize:"节点卡片尺寸",small:"小",normal:"正常",large:"大",autoIPCheckWhenStart:"自动检查 IP",autoConnectionCheckWhenStart:"自动检查连接",chinaIP:"中国大陆 IP",globalIP:"全球节点 IP",networkInfo:"网络信息",autoSwitchTheme:"自动切换主题",customBackgroundURL:"面板背景",splitOverviewPage:"分离概览页",manageHiddenGroup:"管理隐藏代理组",showIPAndConnectionInfo:"显示 IP 和连接信息",transparent:"透明度",proxyGroupIconSize:"策略组图标尺寸",proxyGroupIconMargin:"策略组图标间距",allowLan:"允许局域网",proxyChainDirection:"代理链方向",reverse:"反向",sniffHost:"嗅探主机",ipScreenshotTip:"截图时请确保隐藏IP",showStatisticsWhenSidebarCollapsed:"侧边栏折叠时显示统计",totalConnections:"总连接数",mostDownloadHost:"最多下载主机",mostUploadHost:"最多上传主机",mostDownloadSourceIP:"最多下载源IP",mostUploadSourceIP:"最多上传源IP",mostDownloadProxy:"最多下载节点",mostUploadProxy:"最多上传节点",manual:"手动",tableWidthMode:"表格宽度模式",testFailed:"测速超时",testFinishedTip:`{name}{'@'}{url}
{number}/{total} 测试完成`,testFinishedResultTip:`{name}{'@'}{url}
测试完成: {success} 成功,{failed} 超时`,testFailedTip:`{name}{'@'}{url}
测速超时`,updateFinishedTip:"{number} 更新完成",independentLatencyTest:"独立延迟测试",independentLatencyTestTip:"开启独立延迟测试会在测速中尽可能的使用配置文件中的url覆盖面板设置的url并展示根据策略组设置的url获取的延迟。",search:"搜索",searchMultiple:"多个关键词用空格分隔",allSourceIP:"全部源IP",importing:"正在导入",hideConnection:"隐藏连接",hideConnectionRegex:"隐藏连接正则",hideConnectionTip:"可通过不区分大小写的正则表达式来匹配并隐藏不需要看到的连接",loadBalance:"负载均衡",label:"标签",optional:"可选",swipeInTabs:"滑动切换页面二级标签",swipeInPages:"滑动切换页面",simpleCardPreset:"简洁预设",detailedCardPreset:"详细预设",refresh:"刷新",reset:"重置",minProxyCardWidth:"节点卡片最小宽度",displayGlobalByMode:"根据模式显示 GLOBAL",proxyCountMode:"节点计数模式",filteredTotal:"过滤后总数",total:"总数",aliveTotal:"可用 / 总数",displaySelectedNode:"显示选中节点",displayLatencyNumber:"显示延迟数字",tipForFixed:"当前策略组被固定在了当前节点点击测速来恢复urltest/fallback行为",remoteAddress:"远端地址",themeName:"主题名称",save:"保存",moreDetails:"更多详情",customIcon:"自定义图标",disablePullToRefresh:"禁用下拉刷新",disablePullToRefreshTip:"下拉刷新和虚拟滚动的组件有时会有冲突,如果你在上下滚动的时候经常卡顿或者误触发下拉刷新,可以尝试禁用下拉刷新",displayAllFeatures:"显示所有功能",displayAllFeaturesTip:"显示所有功能包括sing-box官方版本不支持的功能如果您使用了fork版本的sing-box支持其中的某些功能可以尝试启用",blurIntensity:"毛玻璃强度",scrollAnimationEffect:"滚动动画效果",importFromFile:"从文件导入",importFromUrl:"从 URL 导入",sync:"同步",upgradeSuccess:"更新成功",numberOfChartsInSidebar:"侧边栏图表数量",flushSmartWeights:"清空Smart权重",IPInfoAPI:"IP信息API",IPInfoAPITip:"此API会用于IP检查中全球节点IP信息查询、连接详情中的IP地理信息查询、面板DNS查询中的IP地理信息查询。",general:"通用",groupProxiesByProvider:"节点根据提供商分组",useSmartGroupSort:"Smart组根据使用频率排序",RarelyUsed:"很少使用",OccasionalUsed:"偶尔使用",MostUsed:"经常使用",all:"全部",autoDisconnectIdleUDP:"自动断开空闲UDP",autoDisconnectIdleUDPTime:"UDP空闲时间",autoDisconnectIdleUDPTip:"启用后打开zashboard时将关闭持续时间超过配置分钟数的UDP连接这可能对某些无法正常自动断开的UDP连接带来帮助。(这是作者自己的私货,你大概率不需要打开它)",customGlobalNode:"自定义全局节点",proxiesRelationship:"节点关系",displayProxiesRelationship:"显示节点关系",editBackend:"编辑后端",editBackendTitle:"修改后端配置",selectBackend:"选择后端",backendConnectionFailed:"后端连接失败,请检查配置信息",backendConfigSaved:"后端配置保存成功",saveFailed:"保存失败",checking:"检查中...",copySuccess:"复制成功",importFromBackend:"从后端导入",importFromBackendTip:"默认的./zashboard-settings.json位于ui文件夹下导入前请确保ui文件夹下存在配置文件。",importFailed:"导入失败请检查url {url}",autoImportFromUrl:"自动导入",autoImportFromUrlTip:"启用后每次打开zashboard时会自动从url设置导入并计算hash如果hash与上次导入的hash不同则重新导入并刷新页面。",getting:"获取中...",mmdbSizeTip:"mmdb等格式的geo文件无法统计数量因此数量为0",displayFinalOutbound:"显示最终出口节点",groupTestUrls:"组测试链接",groupTestUrlsTip:"对于从面板手动触发的测试,此处设置测试链接 > 配置中的链接 > 面板全局测试链接但是对于UrlTest/Fallback等具有核心内部的定时测速逻辑的组仍然需要修改配置中的链接此处仅推荐Selector等场景",groupName:"组名"},Yy=Rle({locale:oc.value,messages:{[Ys.EN_US]:Vle,[Ys.ZH_CN]:zle,[Ys.RU_RU]:Hle}}),Gle=Yy.global.t,vu=new Map;let $I=null;const Wle=e=>{$I=e},jle=e=>{const t=vu.get(e);t&&!t.isPaused&&(clearTimeout(t.timer),t.isPaused=!0,t.remainingTime=t.remainingTime-(Date.now()-t.startTime),t.progressBar.style.animationPlayState="paused")},Yle=e=>{const t=vu.get(e);t&&t.isPaused&&(t.isPaused=!1,t.startTime=Date.now(),t.timer=setTimeout(()=>{vu.delete(e),t.alert.remove()},t.remainingTime),t.progressBar.style.animationPlayState="running")},tF=(e,t,n,r)=>{let i=-1;t!==0&&(r&&(r.style.animation=`progressBar ${t}ms linear forwards`),i=setTimeout(()=>{n&&vu.delete(n),e.remove()},t)),n&&r&&vu.set(n,{alert:e,timer:i,progressBar:r,startTime:Date.now(),remainingTime:t,isPaused:!1})},Xle=(e,t)=>{if(t){const n=vu.get(t);n&&(clearTimeout(n.timer),vu.delete(t))}e.remove()},nF=(e,t,n,r,i)=>{e.className=`alert flex p-2 pr-5 relative ${r}`;const o=document.createElement("div");o.className="break-all whitespace-pre-wrap",o.innerHTML=Gle(t,n);const a=document.createElement("button");a.className="absolute top-0 right-0 btn btn-xs btn-circle btn-ghost",a.innerHTML=`
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-3 h-3">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
`,a.addEventListener("click",()=>Xle(e,i));const s=document.createElement("div");s.className="absolute -bottom-2 left-1 right-1 h-1 bg-transparent rounded-lg overflow-hidden";const l=document.createElement("div");return l.className="h-full bg-primary/30 transition-all duration-100 ease-linear",l.style.width="100%",s.appendChild(l),e.innerHTML="",e.appendChild(o),e.appendChild(a),e.appendChild(s),e.addEventListener("mouseenter",()=>jle(i)),e.addEventListener("mouseleave",()=>Yle(i)),l},pr=({content:e,params:t={},key:n,type:r="alert-warning",timeout:i=3e3})=>{const o=n||e;if(o&&vu.has(o)){const{alert:l,timer:u}=vu.get(o);clearTimeout(u);const c=nF(l,e,t,r,o);tF(l,i,o,c);return}const a=document.createElement("div"),s=nF(a,e,t,r,o);$I?.value?.insertBefore(a,$I?.value?.firstChild),tF(a,i,o,s)};var Rg={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var Kle=Rg.exports,rF;function Zle(){return rF||(rF=1,(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="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,p=1,g=2,y=1,m=2,b=4,w=8,S=16,C=32,T=64,E=128,P=256,I=512,D=30,O="...",N=800,M=16,k=1,V=2,B=3,U=1/0,$=9007199254740991,J=17976931348623157e292,ae=NaN,ne=4294967295,_e=ne-1,me=ne>>>1,Me=[["ary",E],["bind",y],["bindKey",m],["curry",w],["curryRight",S],["flip",I],["partial",C],["partialRight",T],["rearg",P]],Re="[object Arguments]",ke="[object Array]",oe="[object AsyncFunction]",Ee="[object Boolean]",we="[object Date]",Ae="[object DOMException]",Oe="[object Error]",Ue="[object Function]",Y="[object GeneratorFunction]",X="[object Map]",de="[object Number]",Ie="[object Null]",be="[object Object]",W="[object Promise]",Z="[object Proxy]",re="[object RegExp]",pe="[object Set]",Ce="[object String]",$e="[object Symbol]",te="[object Undefined]",ve="[object WeakMap]",je="[object WeakSet]",nt="[object ArrayBuffer]",Tt="[object DataView]",se="[object Float32Array]",ce="[object Float64Array]",ye="[object Int8Array]",De="[object Int16Array]",Xe="[object Int32Array]",ue="[object Uint8Array]",Le="[object Uint8ClampedArray]",ze="[object Uint16Array]",lt="[object Uint32Array]",Ke=/\b__p \+= '';/g,qe=/\b(__p \+=) '' \+/g,ut=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Nt=/&(?:amp|lt|gt|quot|#39);/g,Ut=/[&<>"']/g,Gn=RegExp(Nt.source),Ha=RegExp(Ut.source),Un=/<%-([\s\S]+?)%>/g,kr=/<%([\s\S]+?)%>/g,Xd=/<%=([\s\S]+?)%>/g,Tu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cs=/^\w*$/,y0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kd=/[\\^$.*+?()[\]{}|]/g,lT=RegExp(Kd.source),co=/^\s+/,Cu=/\s/,_0=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,b0=/\{\n\/\* \[wrapped with (.+)\] \*/,yv=/,? & /,S0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,za=/[()=,{}\[\]\/\s]/,w0=/\\(\\)?/g,x0=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_v=/\w*$/,T0=/^[-+]0x[0-9a-f]+$/i,uT=/^0b[01]+$/i,xt=/^\[object .+?Constructor\]$/,le=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dn=/($^)/,Qr=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",xi="\\u0300-\\u036f",Ga="\\ufe20-\\ufe2f",jc="\\u20d0-\\u20ff",Zd=xi+Ga+jc,Hr="\\u2700-\\u27bf",bv="a-z\\xdf-\\xf6\\xf8-\\xff",C0="\\xac\\xb1\\xd7\\xf7",AY="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",PY="\\u2000-\\u206f",RY=" \\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",DO="A-Z\\xc0-\\xd6\\xd8-\\xde",OO="\\ufe0e\\ufe0f",LO=C0+AY+PY+RY,cT="[']",MY="["+ar+"]",kO="["+LO+"]",E0="["+Zd+"]",NO="\\d+",DY="["+Hr+"]",FO="["+bv+"]",$O="[^"+ar+LO+NO+Hr+bv+DO+"]",fT="\\ud83c[\\udffb-\\udfff]",OY="(?:"+E0+"|"+fT+")",BO="[^"+ar+"]",dT="(?:\\ud83c[\\udde6-\\uddff]){2}",hT="[\\ud800-\\udbff][\\udc00-\\udfff]",qd="["+DO+"]",UO="\\u200d",VO="(?:"+FO+"|"+$O+")",LY="(?:"+qd+"|"+$O+")",HO="(?:"+cT+"(?:d|ll|m|re|s|t|ve))?",zO="(?:"+cT+"(?:D|LL|M|RE|S|T|VE))?",GO=OY+"?",WO="["+OO+"]?",kY="(?:"+UO+"(?:"+[BO,dT,hT].join("|")+")"+WO+GO+")*",NY="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FY="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",jO=WO+GO+kY,$Y="(?:"+[DY,dT,hT].join("|")+")"+jO,BY="(?:"+[BO+E0+"?",E0,dT,hT,MY].join("|")+")",UY=RegExp(cT,"g"),VY=RegExp(E0,"g"),pT=RegExp(fT+"(?="+fT+")|"+BY+jO,"g"),HY=RegExp([qd+"?"+FO+"+"+HO+"(?="+[kO,qd,"$"].join("|")+")",LY+"+"+zO+"(?="+[kO,qd+VO,"$"].join("|")+")",qd+"?"+VO+"+"+HO,qd+"+"+zO,FY,NY,NO,$Y].join("|"),"g"),zY=RegExp("["+UO+ar+Zd+OO+"]"),GY=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,WY=["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"],jY=-1,Jn={};Jn[se]=Jn[ce]=Jn[ye]=Jn[De]=Jn[Xe]=Jn[ue]=Jn[Le]=Jn[ze]=Jn[lt]=!0,Jn[Re]=Jn[ke]=Jn[nt]=Jn[Ee]=Jn[Tt]=Jn[we]=Jn[Oe]=Jn[Ue]=Jn[X]=Jn[de]=Jn[be]=Jn[re]=Jn[pe]=Jn[Ce]=Jn[ve]=!1;var Wn={};Wn[Re]=Wn[ke]=Wn[nt]=Wn[Tt]=Wn[Ee]=Wn[we]=Wn[se]=Wn[ce]=Wn[ye]=Wn[De]=Wn[Xe]=Wn[X]=Wn[de]=Wn[be]=Wn[re]=Wn[pe]=Wn[Ce]=Wn[$e]=Wn[ue]=Wn[Le]=Wn[ze]=Wn[lt]=!0,Wn[Oe]=Wn[Ue]=Wn[ve]=!1;var YY={À:"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"},XY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},KY={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ZY={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qY=parseFloat,JY=parseInt,YO=typeof T1=="object"&&T1&&T1.Object===Object&&T1,QY=typeof self=="object"&&self&&self.Object===Object&&self,di=YO||QY||Function("return this")(),vT=t&&!t.nodeType&&t,Yc=vT&&!0&&e&&!e.nodeType&&e,XO=Yc&&Yc.exports===vT,gT=XO&&YO.process,fa=(function(){try{var fe=Yc&&Yc.require&&Yc.require("util").types;return fe||gT&&gT.binding&&gT.binding("util")}catch{}})(),KO=fa&&fa.isArrayBuffer,ZO=fa&&fa.isDate,qO=fa&&fa.isMap,JO=fa&&fa.isRegExp,QO=fa&&fa.isSet,eL=fa&&fa.isTypedArray;function Vo(fe,Pe,Se){switch(Se.length){case 0:return fe.call(Pe);case 1:return fe.call(Pe,Se[0]);case 2:return fe.call(Pe,Se[0],Se[1]);case 3:return fe.call(Pe,Se[0],Se[1],Se[2])}return fe.apply(Pe,Se)}function eX(fe,Pe,Se,ht){for(var Vt=-1,bn=fe==null?0:fe.length;++Vt<bn;){var zr=fe[Vt];Pe(ht,zr,Se(zr),fe)}return ht}function da(fe,Pe){for(var Se=-1,ht=fe==null?0:fe.length;++Se<ht&&Pe(fe[Se],Se,fe)!==!1;);return fe}function tX(fe,Pe){for(var Se=fe==null?0:fe.length;Se--&&Pe(fe[Se],Se,fe)!==!1;);return fe}function tL(fe,Pe){for(var Se=-1,ht=fe==null?0:fe.length;++Se<ht;)if(!Pe(fe[Se],Se,fe))return!1;return!0}function Eu(fe,Pe){for(var Se=-1,ht=fe==null?0:fe.length,Vt=0,bn=[];++Se<ht;){var zr=fe[Se];Pe(zr,Se,fe)&&(bn[Vt++]=zr)}return bn}function I0(fe,Pe){var Se=fe==null?0:fe.length;return!!Se&&Jd(fe,Pe,0)>-1}function mT(fe,Pe,Se){for(var ht=-1,Vt=fe==null?0:fe.length;++ht<Vt;)if(Se(Pe,fe[ht]))return!0;return!1}function sr(fe,Pe){for(var Se=-1,ht=fe==null?0:fe.length,Vt=Array(ht);++Se<ht;)Vt[Se]=Pe(fe[Se],Se,fe);return Vt}function Iu(fe,Pe){for(var Se=-1,ht=Pe.length,Vt=fe.length;++Se<ht;)fe[Vt+Se]=Pe[Se];return fe}function yT(fe,Pe,Se,ht){var Vt=-1,bn=fe==null?0:fe.length;for(ht&&bn&&(Se=fe[++Vt]);++Vt<bn;)Se=Pe(Se,fe[Vt],Vt,fe);return Se}function nX(fe,Pe,Se,ht){var Vt=fe==null?0:fe.length;for(ht&&Vt&&(Se=fe[--Vt]);Vt--;)Se=Pe(Se,fe[Vt],Vt,fe);return Se}function _T(fe,Pe){for(var Se=-1,ht=fe==null?0:fe.length;++Se<ht;)if(Pe(fe[Se],Se,fe))return!0;return!1}var rX=bT("length");function iX(fe){return fe.split("")}function oX(fe){return fe.match(S0)||[]}function nL(fe,Pe,Se){var ht;return Se(fe,function(Vt,bn,zr){if(Pe(Vt,bn,zr))return ht=bn,!1}),ht}function A0(fe,Pe,Se,ht){for(var Vt=fe.length,bn=Se+(ht?1:-1);ht?bn--:++bn<Vt;)if(Pe(fe[bn],bn,fe))return bn;return-1}function Jd(fe,Pe,Se){return Pe===Pe?mX(fe,Pe,Se):A0(fe,rL,Se)}function aX(fe,Pe,Se,ht){for(var Vt=Se-1,bn=fe.length;++Vt<bn;)if(ht(fe[Vt],Pe))return Vt;return-1}function rL(fe){return fe!==fe}function iL(fe,Pe){var Se=fe==null?0:fe.length;return Se?wT(fe,Pe)/Se:ae}function bT(fe){return function(Pe){return Pe==null?n:Pe[fe]}}function ST(fe){return function(Pe){return fe==null?n:fe[Pe]}}function oL(fe,Pe,Se,ht,Vt){return Vt(fe,function(bn,zr,Vn){Se=ht?(ht=!1,bn):Pe(Se,bn,zr,Vn)}),Se}function sX(fe,Pe){var Se=fe.length;for(fe.sort(Pe);Se--;)fe[Se]=fe[Se].value;return fe}function wT(fe,Pe){for(var Se,ht=-1,Vt=fe.length;++ht<Vt;){var bn=Pe(fe[ht]);bn!==n&&(Se=Se===n?bn:Se+bn)}return Se}function xT(fe,Pe){for(var Se=-1,ht=Array(fe);++Se<fe;)ht[Se]=Pe(Se);return ht}function lX(fe,Pe){return sr(Pe,function(Se){return[Se,fe[Se]]})}function aL(fe){return fe&&fe.slice(0,cL(fe)+1).replace(co,"")}function Ho(fe){return function(Pe){return fe(Pe)}}function TT(fe,Pe){return sr(Pe,function(Se){return fe[Se]})}function Sv(fe,Pe){return fe.has(Pe)}function sL(fe,Pe){for(var Se=-1,ht=fe.length;++Se<ht&&Jd(Pe,fe[Se],0)>-1;);return Se}function lL(fe,Pe){for(var Se=fe.length;Se--&&Jd(Pe,fe[Se],0)>-1;);return Se}function uX(fe,Pe){for(var Se=fe.length,ht=0;Se--;)fe[Se]===Pe&&++ht;return ht}var cX=ST(YY),fX=ST(XY);function dX(fe){return"\\"+ZY[fe]}function hX(fe,Pe){return fe==null?n:fe[Pe]}function Qd(fe){return zY.test(fe)}function pX(fe){return GY.test(fe)}function vX(fe){for(var Pe,Se=[];!(Pe=fe.next()).done;)Se.push(Pe.value);return Se}function CT(fe){var Pe=-1,Se=Array(fe.size);return fe.forEach(function(ht,Vt){Se[++Pe]=[Vt,ht]}),Se}function uL(fe,Pe){return function(Se){return fe(Pe(Se))}}function Au(fe,Pe){for(var Se=-1,ht=fe.length,Vt=0,bn=[];++Se<ht;){var zr=fe[Se];(zr===Pe||zr===c)&&(fe[Se]=c,bn[Vt++]=Se)}return bn}function P0(fe){var Pe=-1,Se=Array(fe.size);return fe.forEach(function(ht){Se[++Pe]=ht}),Se}function gX(fe){var Pe=-1,Se=Array(fe.size);return fe.forEach(function(ht){Se[++Pe]=[ht,ht]}),Se}function mX(fe,Pe,Se){for(var ht=Se-1,Vt=fe.length;++ht<Vt;)if(fe[ht]===Pe)return ht;return-1}function yX(fe,Pe,Se){for(var ht=Se+1;ht--;)if(fe[ht]===Pe)return ht;return ht}function eh(fe){return Qd(fe)?bX(fe):rX(fe)}function Wa(fe){return Qd(fe)?SX(fe):iX(fe)}function cL(fe){for(var Pe=fe.length;Pe--&&Cu.test(fe.charAt(Pe)););return Pe}var _X=ST(KY);function bX(fe){for(var Pe=pT.lastIndex=0;pT.test(fe);)++Pe;return Pe}function SX(fe){return fe.match(pT)||[]}function wX(fe){return fe.match(HY)||[]}var xX=(function fe(Pe){Pe=Pe==null?di:th.defaults(di.Object(),Pe,th.pick(di,WY));var Se=Pe.Array,ht=Pe.Date,Vt=Pe.Error,bn=Pe.Function,zr=Pe.Math,Vn=Pe.Object,ET=Pe.RegExp,TX=Pe.String,ha=Pe.TypeError,R0=Se.prototype,CX=bn.prototype,nh=Vn.prototype,M0=Pe["__core-js_shared__"],D0=CX.toString,On=nh.hasOwnProperty,EX=0,fL=(function(){var v=/[^.]+$/.exec(M0&&M0.keys&&M0.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""})(),O0=nh.toString,IX=D0.call(Vn),AX=di._,PX=ET("^"+D0.call(On).replace(Kd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L0=XO?Pe.Buffer:n,Pu=Pe.Symbol,k0=Pe.Uint8Array,dL=L0?L0.allocUnsafe:n,N0=uL(Vn.getPrototypeOf,Vn),hL=Vn.create,pL=nh.propertyIsEnumerable,F0=R0.splice,vL=Pu?Pu.isConcatSpreadable:n,wv=Pu?Pu.iterator:n,Xc=Pu?Pu.toStringTag:n,$0=(function(){try{var v=Qc(Vn,"defineProperty");return v({},"",{}),v}catch{}})(),RX=Pe.clearTimeout!==di.clearTimeout&&Pe.clearTimeout,MX=ht&&ht.now!==di.Date.now&&ht.now,DX=Pe.setTimeout!==di.setTimeout&&Pe.setTimeout,B0=zr.ceil,U0=zr.floor,IT=Vn.getOwnPropertySymbols,OX=L0?L0.isBuffer:n,gL=Pe.isFinite,LX=R0.join,kX=uL(Vn.keys,Vn),Gr=zr.max,Ti=zr.min,NX=ht.now,FX=Pe.parseInt,mL=zr.random,$X=R0.reverse,AT=Qc(Pe,"DataView"),xv=Qc(Pe,"Map"),PT=Qc(Pe,"Promise"),rh=Qc(Pe,"Set"),Tv=Qc(Pe,"WeakMap"),Cv=Qc(Vn,"create"),V0=Tv&&new Tv,ih={},BX=ef(AT),UX=ef(xv),VX=ef(PT),HX=ef(rh),zX=ef(Tv),H0=Pu?Pu.prototype:n,Ev=H0?H0.valueOf:n,yL=H0?H0.toString:n;function G(v){if(gr(v)&&!jt(v)&&!(v instanceof cn)){if(v instanceof pa)return v;if(On.call(v,"__wrapped__"))return _k(v)}return new pa(v)}var oh=(function(){function v(){}return function(_){if(!dr(_))return{};if(hL)return hL(_);v.prototype=_;var x=new v;return v.prototype=n,x}})();function z0(){}function pa(v,_){this.__wrapped__=v,this.__actions__=[],this.__chain__=!!_,this.__index__=0,this.__values__=n}G.templateSettings={escape:Un,evaluate:kr,interpolate:Xd,variable:"",imports:{_:G}},G.prototype=z0.prototype,G.prototype.constructor=G,pa.prototype=oh(z0.prototype),pa.prototype.constructor=pa;function cn(v){this.__wrapped__=v,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ne,this.__views__=[]}function GX(){var v=new cn(this.__wrapped__);return v.__actions__=fo(this.__actions__),v.__dir__=this.__dir__,v.__filtered__=this.__filtered__,v.__iteratees__=fo(this.__iteratees__),v.__takeCount__=this.__takeCount__,v.__views__=fo(this.__views__),v}function WX(){if(this.__filtered__){var v=new cn(this);v.__dir__=-1,v.__filtered__=!0}else v=this.clone(),v.__dir__*=-1;return v}function jX(){var v=this.__wrapped__.value(),_=this.__dir__,x=jt(v),A=_<0,F=x?v.length:0,j=iZ(0,F,this.__views__),Q=j.start,ie=j.end,he=ie-Q,Ne=A?ie:Q-1,Fe=this.__iteratees__,He=Fe.length,ot=0,bt=Ti(he,this.__takeCount__);if(!x||!A&&F==he&&bt==he)return HL(v,this.__actions__);var Pt=[];e:for(;he--&&ot<bt;){Ne+=_;for(var qt=-1,Rt=v[Ne];++qt<He;){var rn=Fe[qt],pn=rn.iteratee,Wo=rn.type,ji=pn(Rt);if(Wo==V)Rt=ji;else if(!ji){if(Wo==k)continue e;break e}}Pt[ot++]=Rt}return Pt}cn.prototype=oh(z0.prototype),cn.prototype.constructor=cn;function Kc(v){var _=-1,x=v==null?0:v.length;for(this.clear();++_<x;){var A=v[_];this.set(A[0],A[1])}}function YX(){this.__data__=Cv?Cv(null):{},this.size=0}function XX(v){var _=this.has(v)&&delete this.__data__[v];return this.size-=_?1:0,_}function KX(v){var _=this.__data__;if(Cv){var x=_[v];return x===l?n:x}return On.call(_,v)?_[v]:n}function ZX(v){var _=this.__data__;return Cv?_[v]!==n:On.call(_,v)}function qX(v,_){var x=this.__data__;return this.size+=this.has(v)?0:1,x[v]=Cv&&_===n?l:_,this}Kc.prototype.clear=YX,Kc.prototype.delete=XX,Kc.prototype.get=KX,Kc.prototype.has=ZX,Kc.prototype.set=qX;function vl(v){var _=-1,x=v==null?0:v.length;for(this.clear();++_<x;){var A=v[_];this.set(A[0],A[1])}}function JX(){this.__data__=[],this.size=0}function QX(v){var _=this.__data__,x=G0(_,v);if(x<0)return!1;var A=_.length-1;return x==A?_.pop():F0.call(_,x,1),--this.size,!0}function eK(v){var _=this.__data__,x=G0(_,v);return x<0?n:_[x][1]}function tK(v){return G0(this.__data__,v)>-1}function nK(v,_){var x=this.__data__,A=G0(x,v);return A<0?(++this.size,x.push([v,_])):x[A][1]=_,this}vl.prototype.clear=JX,vl.prototype.delete=QX,vl.prototype.get=eK,vl.prototype.has=tK,vl.prototype.set=nK;function gl(v){var _=-1,x=v==null?0:v.length;for(this.clear();++_<x;){var A=v[_];this.set(A[0],A[1])}}function rK(){this.size=0,this.__data__={hash:new Kc,map:new(xv||vl),string:new Kc}}function iK(v){var _=n1(this,v).delete(v);return this.size-=_?1:0,_}function oK(v){return n1(this,v).get(v)}function aK(v){return n1(this,v).has(v)}function sK(v,_){var x=n1(this,v),A=x.size;return x.set(v,_),this.size+=x.size==A?0:1,this}gl.prototype.clear=rK,gl.prototype.delete=iK,gl.prototype.get=oK,gl.prototype.has=aK,gl.prototype.set=sK;function Zc(v){var _=-1,x=v==null?0:v.length;for(this.__data__=new gl;++_<x;)this.add(v[_])}function lK(v){return this.__data__.set(v,l),this}function uK(v){return this.__data__.has(v)}Zc.prototype.add=Zc.prototype.push=lK,Zc.prototype.has=uK;function ja(v){var _=this.__data__=new vl(v);this.size=_.size}function cK(){this.__data__=new vl,this.size=0}function fK(v){var _=this.__data__,x=_.delete(v);return this.size=_.size,x}function dK(v){return this.__data__.get(v)}function hK(v){return this.__data__.has(v)}function pK(v,_){var x=this.__data__;if(x instanceof vl){var A=x.__data__;if(!xv||A.length<i-1)return A.push([v,_]),this.size=++x.size,this;x=this.__data__=new gl(A)}return x.set(v,_),this.size=x.size,this}ja.prototype.clear=cK,ja.prototype.delete=fK,ja.prototype.get=dK,ja.prototype.has=hK,ja.prototype.set=pK;function _L(v,_){var x=jt(v),A=!x&&tf(v),F=!x&&!A&&Lu(v),j=!x&&!A&&!F&&uh(v),Q=x||A||F||j,ie=Q?xT(v.length,TX):[],he=ie.length;for(var Ne in v)(_||On.call(v,Ne))&&!(Q&&(Ne=="length"||F&&(Ne=="offset"||Ne=="parent")||j&&(Ne=="buffer"||Ne=="byteLength"||Ne=="byteOffset")||bl(Ne,he)))&&ie.push(Ne);return ie}function bL(v){var _=v.length;return _?v[UT(0,_-1)]:n}function vK(v,_){return r1(fo(v),qc(_,0,v.length))}function gK(v){return r1(fo(v))}function RT(v,_,x){(x!==n&&!Ya(v[_],x)||x===n&&!(_ in v))&&ml(v,_,x)}function Iv(v,_,x){var A=v[_];(!(On.call(v,_)&&Ya(A,x))||x===n&&!(_ in v))&&ml(v,_,x)}function G0(v,_){for(var x=v.length;x--;)if(Ya(v[x][0],_))return x;return-1}function mK(v,_,x,A){return Ru(v,function(F,j,Q){_(A,F,x(F),Q)}),A}function SL(v,_){return v&&Is(_,ei(_),v)}function yK(v,_){return v&&Is(_,po(_),v)}function ml(v,_,x){_=="__proto__"&&$0?$0(v,_,{configurable:!0,enumerable:!0,value:x,writable:!0}):v[_]=x}function MT(v,_){for(var x=-1,A=_.length,F=Se(A),j=v==null;++x<A;)F[x]=j?n:fC(v,_[x]);return F}function qc(v,_,x){return v===v&&(x!==n&&(v=v<=x?v:x),_!==n&&(v=v>=_?v:_)),v}function va(v,_,x,A,F,j){var Q,ie=_&f,he=_&h,Ne=_&d;if(x&&(Q=F?x(v,A,F,j):x(v)),Q!==n)return Q;if(!dr(v))return v;var Fe=jt(v);if(Fe){if(Q=aZ(v),!ie)return fo(v,Q)}else{var He=Ci(v),ot=He==Ue||He==Y;if(Lu(v))return WL(v,ie);if(He==be||He==Re||ot&&!F){if(Q=he||ot?{}:ck(v),!ie)return he?KK(v,yK(Q,v)):XK(v,SL(Q,v))}else{if(!Wn[He])return F?v:{};Q=sZ(v,He,ie)}}j||(j=new ja);var bt=j.get(v);if(bt)return bt;j.set(v,Q),Bk(v)?v.forEach(function(Rt){Q.add(va(Rt,_,x,Rt,v,j))}):Fk(v)&&v.forEach(function(Rt,rn){Q.set(rn,va(Rt,_,x,rn,v,j))});var Pt=Ne?he?qT:ZT:he?po:ei,qt=Fe?n:Pt(v);return da(qt||v,function(Rt,rn){qt&&(rn=Rt,Rt=v[rn]),Iv(Q,rn,va(Rt,_,x,rn,v,j))}),Q}function _K(v){var _=ei(v);return function(x){return wL(x,v,_)}}function wL(v,_,x){var A=x.length;if(v==null)return!A;for(v=Vn(v);A--;){var F=x[A],j=_[F],Q=v[F];if(Q===n&&!(F in v)||!j(Q))return!1}return!0}function xL(v,_,x){if(typeof v!="function")throw new ha(a);return Lv(function(){v.apply(n,x)},_)}function Av(v,_,x,A){var F=-1,j=I0,Q=!0,ie=v.length,he=[],Ne=_.length;if(!ie)return he;x&&(_=sr(_,Ho(x))),A?(j=mT,Q=!1):_.length>=i&&(j=Sv,Q=!1,_=new Zc(_));e:for(;++F<ie;){var Fe=v[F],He=x==null?Fe:x(Fe);if(Fe=A||Fe!==0?Fe:0,Q&&He===He){for(var ot=Ne;ot--;)if(_[ot]===He)continue e;he.push(Fe)}else j(_,He,A)||he.push(Fe)}return he}var Ru=ZL(Es),TL=ZL(OT,!0);function bK(v,_){var x=!0;return Ru(v,function(A,F,j){return x=!!_(A,F,j),x}),x}function W0(v,_,x){for(var A=-1,F=v.length;++A<F;){var j=v[A],Q=_(j);if(Q!=null&&(ie===n?Q===Q&&!Go(Q):x(Q,ie)))var ie=Q,he=j}return he}function SK(v,_,x,A){var F=v.length;for(x=Zt(x),x<0&&(x=-x>F?0:F+x),A=A===n||A>F?F:Zt(A),A<0&&(A+=F),A=x>A?0:Vk(A);x<A;)v[x++]=_;return v}function CL(v,_){var x=[];return Ru(v,function(A,F,j){_(A,F,j)&&x.push(A)}),x}function hi(v,_,x,A,F){var j=-1,Q=v.length;for(x||(x=uZ),F||(F=[]);++j<Q;){var ie=v[j];_>0&&x(ie)?_>1?hi(ie,_-1,x,A,F):Iu(F,ie):A||(F[F.length]=ie)}return F}var DT=qL(),EL=qL(!0);function Es(v,_){return v&&DT(v,_,ei)}function OT(v,_){return v&&EL(v,_,ei)}function j0(v,_){return Eu(_,function(x){return Sl(v[x])})}function Jc(v,_){_=Du(_,v);for(var x=0,A=_.length;v!=null&&x<A;)v=v[As(_[x++])];return x&&x==A?v:n}function IL(v,_,x){var A=_(v);return jt(v)?A:Iu(A,x(v))}function Gi(v){return v==null?v===n?te:Ie:Xc&&Xc in Vn(v)?rZ(v):gZ(v)}function LT(v,_){return v>_}function wK(v,_){return v!=null&&On.call(v,_)}function xK(v,_){return v!=null&&_ in Vn(v)}function TK(v,_,x){return v>=Ti(_,x)&&v<Gr(_,x)}function kT(v,_,x){for(var A=x?mT:I0,F=v[0].length,j=v.length,Q=j,ie=Se(j),he=1/0,Ne=[];Q--;){var Fe=v[Q];Q&&_&&(Fe=sr(Fe,Ho(_))),he=Ti(Fe.length,he),ie[Q]=!x&&(_||F>=120&&Fe.length>=120)?new Zc(Q&&Fe):n}Fe=v[0];var He=-1,ot=ie[0];e:for(;++He<F&&Ne.length<he;){var bt=Fe[He],Pt=_?_(bt):bt;if(bt=x||bt!==0?bt:0,!(ot?Sv(ot,Pt):A(Ne,Pt,x))){for(Q=j;--Q;){var qt=ie[Q];if(!(qt?Sv(qt,Pt):A(v[Q],Pt,x)))continue e}ot&&ot.push(Pt),Ne.push(bt)}}return Ne}function CK(v,_,x,A){return Es(v,function(F,j,Q){_(A,x(F),j,Q)}),A}function Pv(v,_,x){_=Du(_,v),v=pk(v,_);var A=v==null?v:v[As(ma(_))];return A==null?n:Vo(A,v,x)}function AL(v){return gr(v)&&Gi(v)==Re}function EK(v){return gr(v)&&Gi(v)==nt}function IK(v){return gr(v)&&Gi(v)==we}function Rv(v,_,x,A,F){return v===_?!0:v==null||_==null||!gr(v)&&!gr(_)?v!==v&&_!==_:AK(v,_,x,A,Rv,F)}function AK(v,_,x,A,F,j){var Q=jt(v),ie=jt(_),he=Q?ke:Ci(v),Ne=ie?ke:Ci(_);he=he==Re?be:he,Ne=Ne==Re?be:Ne;var Fe=he==be,He=Ne==be,ot=he==Ne;if(ot&&Lu(v)){if(!Lu(_))return!1;Q=!0,Fe=!1}if(ot&&!Fe)return j||(j=new ja),Q||uh(v)?sk(v,_,x,A,F,j):tZ(v,_,he,x,A,F,j);if(!(x&p)){var bt=Fe&&On.call(v,"__wrapped__"),Pt=He&&On.call(_,"__wrapped__");if(bt||Pt){var qt=bt?v.value():v,Rt=Pt?_.value():_;return j||(j=new ja),F(qt,Rt,x,A,j)}}return ot?(j||(j=new ja),nZ(v,_,x,A,F,j)):!1}function PK(v){return gr(v)&&Ci(v)==X}function NT(v,_,x,A){var F=x.length,j=F,Q=!A;if(v==null)return!j;for(v=Vn(v);F--;){var ie=x[F];if(Q&&ie[2]?ie[1]!==v[ie[0]]:!(ie[0]in v))return!1}for(;++F<j;){ie=x[F];var he=ie[0],Ne=v[he],Fe=ie[1];if(Q&&ie[2]){if(Ne===n&&!(he in v))return!1}else{var He=new ja;if(A)var ot=A(Ne,Fe,he,v,_,He);if(!(ot===n?Rv(Fe,Ne,p|g,A,He):ot))return!1}}return!0}function PL(v){if(!dr(v)||fZ(v))return!1;var _=Sl(v)?PX:xt;return _.test(ef(v))}function RK(v){return gr(v)&&Gi(v)==re}function MK(v){return gr(v)&&Ci(v)==pe}function DK(v){return gr(v)&&u1(v.length)&&!!Jn[Gi(v)]}function RL(v){return typeof v=="function"?v:v==null?vo:typeof v=="object"?jt(v)?OL(v[0],v[1]):DL(v):Jk(v)}function FT(v){if(!Ov(v))return kX(v);var _=[];for(var x in Vn(v))On.call(v,x)&&x!="constructor"&&_.push(x);return _}function OK(v){if(!dr(v))return vZ(v);var _=Ov(v),x=[];for(var A in v)A=="constructor"&&(_||!On.call(v,A))||x.push(A);return x}function $T(v,_){return v<_}function ML(v,_){var x=-1,A=ho(v)?Se(v.length):[];return Ru(v,function(F,j,Q){A[++x]=_(F,j,Q)}),A}function DL(v){var _=QT(v);return _.length==1&&_[0][2]?dk(_[0][0],_[0][1]):function(x){return x===v||NT(x,v,_)}}function OL(v,_){return tC(v)&&fk(_)?dk(As(v),_):function(x){var A=fC(x,v);return A===n&&A===_?dC(x,v):Rv(_,A,p|g)}}function Y0(v,_,x,A,F){v!==_&&DT(_,function(j,Q){if(F||(F=new ja),dr(j))LK(v,_,Q,x,Y0,A,F);else{var ie=A?A(rC(v,Q),j,Q+"",v,_,F):n;ie===n&&(ie=j),RT(v,Q,ie)}},po)}function LK(v,_,x,A,F,j,Q){var ie=rC(v,x),he=rC(_,x),Ne=Q.get(he);if(Ne){RT(v,x,Ne);return}var Fe=j?j(ie,he,x+"",v,_,Q):n,He=Fe===n;if(He){var ot=jt(he),bt=!ot&&Lu(he),Pt=!ot&&!bt&&uh(he);Fe=he,ot||bt||Pt?jt(ie)?Fe=ie:Ir(ie)?Fe=fo(ie):bt?(He=!1,Fe=WL(he,!0)):Pt?(He=!1,Fe=jL(he,!0)):Fe=[]:kv(he)||tf(he)?(Fe=ie,tf(ie)?Fe=Hk(ie):(!dr(ie)||Sl(ie))&&(Fe=ck(he))):He=!1}He&&(Q.set(he,Fe),F(Fe,he,A,j,Q),Q.delete(he)),RT(v,x,Fe)}function LL(v,_){var x=v.length;if(x)return _+=_<0?x:0,bl(_,x)?v[_]:n}function kL(v,_,x){_.length?_=sr(_,function(j){return jt(j)?function(Q){return Jc(Q,j.length===1?j[0]:j)}:j}):_=[vo];var A=-1;_=sr(_,Ho(It()));var F=ML(v,function(j,Q,ie){var he=sr(_,function(Ne){return Ne(j)});return{criteria:he,index:++A,value:j}});return sX(F,function(j,Q){return YK(j,Q,x)})}function kK(v,_){return NL(v,_,function(x,A){return dC(v,A)})}function NL(v,_,x){for(var A=-1,F=_.length,j={};++A<F;){var Q=_[A],ie=Jc(v,Q);x(ie,Q)&&Mv(j,Du(Q,v),ie)}return j}function NK(v){return function(_){return Jc(_,v)}}function BT(v,_,x,A){var F=A?aX:Jd,j=-1,Q=_.length,ie=v;for(v===_&&(_=fo(_)),x&&(ie=sr(v,Ho(x)));++j<Q;)for(var he=0,Ne=_[j],Fe=x?x(Ne):Ne;(he=F(ie,Fe,he,A))>-1;)ie!==v&&F0.call(ie,he,1),F0.call(v,he,1);return v}function FL(v,_){for(var x=v?_.length:0,A=x-1;x--;){var F=_[x];if(x==A||F!==j){var j=F;bl(F)?F0.call(v,F,1):zT(v,F)}}return v}function UT(v,_){return v+U0(mL()*(_-v+1))}function FK(v,_,x,A){for(var F=-1,j=Gr(B0((_-v)/(x||1)),0),Q=Se(j);j--;)Q[A?j:++F]=v,v+=x;return Q}function VT(v,_){var x="";if(!v||_<1||_>$)return x;do _%2&&(x+=v),_=U0(_/2),_&&(v+=v);while(_);return x}function Jt(v,_){return iC(hk(v,_,vo),v+"")}function $K(v){return bL(ch(v))}function BK(v,_){var x=ch(v);return r1(x,qc(_,0,x.length))}function Mv(v,_,x,A){if(!dr(v))return v;_=Du(_,v);for(var F=-1,j=_.length,Q=j-1,ie=v;ie!=null&&++F<j;){var he=As(_[F]),Ne=x;if(he==="__proto__"||he==="constructor"||he==="prototype")return v;if(F!=Q){var Fe=ie[he];Ne=A?A(Fe,he,ie):n,Ne===n&&(Ne=dr(Fe)?Fe:bl(_[F+1])?[]:{})}Iv(ie,he,Ne),ie=ie[he]}return v}var $L=V0?function(v,_){return V0.set(v,_),v}:vo,UK=$0?function(v,_){return $0(v,"toString",{configurable:!0,enumerable:!1,value:pC(_),writable:!0})}:vo;function VK(v){return r1(ch(v))}function ga(v,_,x){var A=-1,F=v.length;_<0&&(_=-_>F?0:F+_),x=x>F?F:x,x<0&&(x+=F),F=_>x?0:x-_>>>0,_>>>=0;for(var j=Se(F);++A<F;)j[A]=v[A+_];return j}function HK(v,_){var x;return Ru(v,function(A,F,j){return x=_(A,F,j),!x}),!!x}function X0(v,_,x){var A=0,F=v==null?A:v.length;if(typeof _=="number"&&_===_&&F<=me){for(;A<F;){var j=A+F>>>1,Q=v[j];Q!==null&&!Go(Q)&&(x?Q<=_:Q<_)?A=j+1:F=j}return F}return HT(v,_,vo,x)}function HT(v,_,x,A){var F=0,j=v==null?0:v.length;if(j===0)return 0;_=x(_);for(var Q=_!==_,ie=_===null,he=Go(_),Ne=_===n;F<j;){var Fe=U0((F+j)/2),He=x(v[Fe]),ot=He!==n,bt=He===null,Pt=He===He,qt=Go(He);if(Q)var Rt=A||Pt;else Ne?Rt=Pt&&(A||ot):ie?Rt=Pt&&ot&&(A||!bt):he?Rt=Pt&&ot&&!bt&&(A||!qt):bt||qt?Rt=!1:Rt=A?He<=_:He<_;Rt?F=Fe+1:j=Fe}return Ti(j,_e)}function BL(v,_){for(var x=-1,A=v.length,F=0,j=[];++x<A;){var Q=v[x],ie=_?_(Q):Q;if(!x||!Ya(ie,he)){var he=ie;j[F++]=Q===0?0:Q}}return j}function UL(v){return typeof v=="number"?v:Go(v)?ae:+v}function zo(v){if(typeof v=="string")return v;if(jt(v))return sr(v,zo)+"";if(Go(v))return yL?yL.call(v):"";var _=v+"";return _=="0"&&1/v==-U?"-0":_}function Mu(v,_,x){var A=-1,F=I0,j=v.length,Q=!0,ie=[],he=ie;if(x)Q=!1,F=mT;else if(j>=i){var Ne=_?null:QK(v);if(Ne)return P0(Ne);Q=!1,F=Sv,he=new Zc}else he=_?[]:ie;e:for(;++A<j;){var Fe=v[A],He=_?_(Fe):Fe;if(Fe=x||Fe!==0?Fe:0,Q&&He===He){for(var ot=he.length;ot--;)if(he[ot]===He)continue e;_&&he.push(He),ie.push(Fe)}else F(he,He,x)||(he!==ie&&he.push(He),ie.push(Fe))}return ie}function zT(v,_){return _=Du(_,v),v=pk(v,_),v==null||delete v[As(ma(_))]}function VL(v,_,x,A){return Mv(v,_,x(Jc(v,_)),A)}function K0(v,_,x,A){for(var F=v.length,j=A?F:-1;(A?j--:++j<F)&&_(v[j],j,v););return x?ga(v,A?0:j,A?j+1:F):ga(v,A?j+1:0,A?F:j)}function HL(v,_){var x=v;return x instanceof cn&&(x=x.value()),yT(_,function(A,F){return F.func.apply(F.thisArg,Iu([A],F.args))},x)}function GT(v,_,x){var A=v.length;if(A<2)return A?Mu(v[0]):[];for(var F=-1,j=Se(A);++F<A;)for(var Q=v[F],ie=-1;++ie<A;)ie!=F&&(j[F]=Av(j[F]||Q,v[ie],_,x));return Mu(hi(j,1),_,x)}function zL(v,_,x){for(var A=-1,F=v.length,j=_.length,Q={};++A<F;){var ie=A<j?_[A]:n;x(Q,v[A],ie)}return Q}function WT(v){return Ir(v)?v:[]}function jT(v){return typeof v=="function"?v:vo}function Du(v,_){return jt(v)?v:tC(v,_)?[v]:yk(En(v))}var zK=Jt;function Ou(v,_,x){var A=v.length;return x=x===n?A:x,!_&&x>=A?v:ga(v,_,x)}var GL=RX||function(v){return di.clearTimeout(v)};function WL(v,_){if(_)return v.slice();var x=v.length,A=dL?dL(x):new v.constructor(x);return v.copy(A),A}function YT(v){var _=new v.constructor(v.byteLength);return new k0(_).set(new k0(v)),_}function GK(v,_){var x=_?YT(v.buffer):v.buffer;return new v.constructor(x,v.byteOffset,v.byteLength)}function WK(v){var _=new v.constructor(v.source,_v.exec(v));return _.lastIndex=v.lastIndex,_}function jK(v){return Ev?Vn(Ev.call(v)):{}}function jL(v,_){var x=_?YT(v.buffer):v.buffer;return new v.constructor(x,v.byteOffset,v.length)}function YL(v,_){if(v!==_){var x=v!==n,A=v===null,F=v===v,j=Go(v),Q=_!==n,ie=_===null,he=_===_,Ne=Go(_);if(!ie&&!Ne&&!j&&v>_||j&&Q&&he&&!ie&&!Ne||A&&Q&&he||!x&&he||!F)return 1;if(!A&&!j&&!Ne&&v<_||Ne&&x&&F&&!A&&!j||ie&&x&&F||!Q&&F||!he)return-1}return 0}function YK(v,_,x){for(var A=-1,F=v.criteria,j=_.criteria,Q=F.length,ie=x.length;++A<Q;){var he=YL(F[A],j[A]);if(he){if(A>=ie)return he;var Ne=x[A];return he*(Ne=="desc"?-1:1)}}return v.index-_.index}function XL(v,_,x,A){for(var F=-1,j=v.length,Q=x.length,ie=-1,he=_.length,Ne=Gr(j-Q,0),Fe=Se(he+Ne),He=!A;++ie<he;)Fe[ie]=_[ie];for(;++F<Q;)(He||F<j)&&(Fe[x[F]]=v[F]);for(;Ne--;)Fe[ie++]=v[F++];return Fe}function KL(v,_,x,A){for(var F=-1,j=v.length,Q=-1,ie=x.length,he=-1,Ne=_.length,Fe=Gr(j-ie,0),He=Se(Fe+Ne),ot=!A;++F<Fe;)He[F]=v[F];for(var bt=F;++he<Ne;)He[bt+he]=_[he];for(;++Q<ie;)(ot||F<j)&&(He[bt+x[Q]]=v[F++]);return He}function fo(v,_){var x=-1,A=v.length;for(_||(_=Se(A));++x<A;)_[x]=v[x];return _}function Is(v,_,x,A){var F=!x;x||(x={});for(var j=-1,Q=_.length;++j<Q;){var ie=_[j],he=A?A(x[ie],v[ie],ie,x,v):n;he===n&&(he=v[ie]),F?ml(x,ie,he):Iv(x,ie,he)}return x}function XK(v,_){return Is(v,eC(v),_)}function KK(v,_){return Is(v,lk(v),_)}function Z0(v,_){return function(x,A){var F=jt(x)?eX:mK,j=_?_():{};return F(x,v,It(A,2),j)}}function ah(v){return Jt(function(_,x){var A=-1,F=x.length,j=F>1?x[F-1]:n,Q=F>2?x[2]:n;for(j=v.length>3&&typeof j=="function"?(F--,j):n,Q&&Wi(x[0],x[1],Q)&&(j=F<3?n:j,F=1),_=Vn(_);++A<F;){var ie=x[A];ie&&v(_,ie,A,j)}return _})}function ZL(v,_){return function(x,A){if(x==null)return x;if(!ho(x))return v(x,A);for(var F=x.length,j=_?F:-1,Q=Vn(x);(_?j--:++j<F)&&A(Q[j],j,Q)!==!1;);return x}}function qL(v){return function(_,x,A){for(var F=-1,j=Vn(_),Q=A(_),ie=Q.length;ie--;){var he=Q[v?ie:++F];if(x(j[he],he,j)===!1)break}return _}}function ZK(v,_,x){var A=_&y,F=Dv(v);function j(){var Q=this&&this!==di&&this instanceof j?F:v;return Q.apply(A?x:this,arguments)}return j}function JL(v){return function(_){_=En(_);var x=Qd(_)?Wa(_):n,A=x?x[0]:_.charAt(0),F=x?Ou(x,1).join(""):_.slice(1);return A[v]()+F}}function sh(v){return function(_){return yT(Zk(Kk(_).replace(UY,"")),v,"")}}function Dv(v){return function(){var _=arguments;switch(_.length){case 0:return new v;case 1:return new v(_[0]);case 2:return new v(_[0],_[1]);case 3:return new v(_[0],_[1],_[2]);case 4:return new v(_[0],_[1],_[2],_[3]);case 5:return new v(_[0],_[1],_[2],_[3],_[4]);case 6:return new v(_[0],_[1],_[2],_[3],_[4],_[5]);case 7:return new v(_[0],_[1],_[2],_[3],_[4],_[5],_[6])}var x=oh(v.prototype),A=v.apply(x,_);return dr(A)?A:x}}function qK(v,_,x){var A=Dv(v);function F(){for(var j=arguments.length,Q=Se(j),ie=j,he=lh(F);ie--;)Q[ie]=arguments[ie];var Ne=j<3&&Q[0]!==he&&Q[j-1]!==he?[]:Au(Q,he);if(j-=Ne.length,j<x)return rk(v,_,q0,F.placeholder,n,Q,Ne,n,n,x-j);var Fe=this&&this!==di&&this instanceof F?A:v;return Vo(Fe,this,Q)}return F}function QL(v){return function(_,x,A){var F=Vn(_);if(!ho(_)){var j=It(x,3);_=ei(_),x=function(ie){return j(F[ie],ie,F)}}var Q=v(_,x,A);return Q>-1?F[j?_[Q]:Q]:n}}function ek(v){return _l(function(_){var x=_.length,A=x,F=pa.prototype.thru;for(v&&_.reverse();A--;){var j=_[A];if(typeof j!="function")throw new ha(a);if(F&&!Q&&t1(j)=="wrapper")var Q=new pa([],!0)}for(A=Q?A:x;++A<x;){j=_[A];var ie=t1(j),he=ie=="wrapper"?JT(j):n;he&&nC(he[0])&&he[1]==(E|w|C|P)&&!he[4].length&&he[9]==1?Q=Q[t1(he[0])].apply(Q,he[3]):Q=j.length==1&&nC(j)?Q[ie]():Q.thru(j)}return function(){var Ne=arguments,Fe=Ne[0];if(Q&&Ne.length==1&&jt(Fe))return Q.plant(Fe).value();for(var He=0,ot=x?_[He].apply(this,Ne):Fe;++He<x;)ot=_[He].call(this,ot);return ot}})}function q0(v,_,x,A,F,j,Q,ie,he,Ne){var Fe=_&E,He=_&y,ot=_&m,bt=_&(w|S),Pt=_&I,qt=ot?n:Dv(v);function Rt(){for(var rn=arguments.length,pn=Se(rn),Wo=rn;Wo--;)pn[Wo]=arguments[Wo];if(bt)var ji=lh(Rt),jo=uX(pn,ji);if(A&&(pn=XL(pn,A,F,bt)),j&&(pn=KL(pn,j,Q,bt)),rn-=jo,bt&&rn<Ne){var Ar=Au(pn,ji);return rk(v,_,q0,Rt.placeholder,x,pn,Ar,ie,he,Ne-rn)}var Xa=He?x:this,xl=ot?Xa[v]:v;return rn=pn.length,ie?pn=mZ(pn,ie):Pt&&rn>1&&pn.reverse(),Fe&&he<rn&&(pn.length=he),this&&this!==di&&this instanceof Rt&&(xl=qt||Dv(xl)),xl.apply(Xa,pn)}return Rt}function tk(v,_){return function(x,A){return CK(x,v,_(A),{})}}function J0(v,_){return function(x,A){var F;if(x===n&&A===n)return _;if(x!==n&&(F=x),A!==n){if(F===n)return A;typeof x=="string"||typeof A=="string"?(x=zo(x),A=zo(A)):(x=UL(x),A=UL(A)),F=v(x,A)}return F}}function XT(v){return _l(function(_){return _=sr(_,Ho(It())),Jt(function(x){var A=this;return v(_,function(F){return Vo(F,A,x)})})})}function Q0(v,_){_=_===n?" ":zo(_);var x=_.length;if(x<2)return x?VT(_,v):_;var A=VT(_,B0(v/eh(_)));return Qd(_)?Ou(Wa(A),0,v).join(""):A.slice(0,v)}function JK(v,_,x,A){var F=_&y,j=Dv(v);function Q(){for(var ie=-1,he=arguments.length,Ne=-1,Fe=A.length,He=Se(Fe+he),ot=this&&this!==di&&this instanceof Q?j:v;++Ne<Fe;)He[Ne]=A[Ne];for(;he--;)He[Ne++]=arguments[++ie];return Vo(ot,F?x:this,He)}return Q}function nk(v){return function(_,x,A){return A&&typeof A!="number"&&Wi(_,x,A)&&(x=A=n),_=wl(_),x===n?(x=_,_=0):x=wl(x),A=A===n?_<x?1:-1:wl(A),FK(_,x,A,v)}}function e1(v){return function(_,x){return typeof _=="string"&&typeof x=="string"||(_=ya(_),x=ya(x)),v(_,x)}}function rk(v,_,x,A,F,j,Q,ie,he,Ne){var Fe=_&w,He=Fe?Q:n,ot=Fe?n:Q,bt=Fe?j:n,Pt=Fe?n:j;_|=Fe?C:T,_&=~(Fe?T:C),_&b||(_&=-4);var qt=[v,_,F,bt,He,Pt,ot,ie,he,Ne],Rt=x.apply(n,qt);return nC(v)&&vk(Rt,qt),Rt.placeholder=A,gk(Rt,v,_)}function KT(v){var _=zr[v];return function(x,A){if(x=ya(x),A=A==null?0:Ti(Zt(A),292),A&&gL(x)){var F=(En(x)+"e").split("e"),j=_(F[0]+"e"+(+F[1]+A));return F=(En(j)+"e").split("e"),+(F[0]+"e"+(+F[1]-A))}return _(x)}}var QK=rh&&1/P0(new rh([,-0]))[1]==U?function(v){return new rh(v)}:mC;function ik(v){return function(_){var x=Ci(_);return x==X?CT(_):x==pe?gX(_):lX(_,v(_))}}function yl(v,_,x,A,F,j,Q,ie){var he=_&m;if(!he&&typeof v!="function")throw new ha(a);var Ne=A?A.length:0;if(Ne||(_&=-97,A=F=n),Q=Q===n?Q:Gr(Zt(Q),0),ie=ie===n?ie:Zt(ie),Ne-=F?F.length:0,_&T){var Fe=A,He=F;A=F=n}var ot=he?n:JT(v),bt=[v,_,x,A,F,Fe,He,j,Q,ie];if(ot&&pZ(bt,ot),v=bt[0],_=bt[1],x=bt[2],A=bt[3],F=bt[4],ie=bt[9]=bt[9]===n?he?0:v.length:Gr(bt[9]-Ne,0),!ie&&_&(w|S)&&(_&=-25),!_||_==y)var Pt=ZK(v,_,x);else _==w||_==S?Pt=qK(v,_,ie):(_==C||_==(y|C))&&!F.length?Pt=JK(v,_,x,A):Pt=q0.apply(n,bt);var qt=ot?$L:vk;return gk(qt(Pt,bt),v,_)}function ok(v,_,x,A){return v===n||Ya(v,nh[x])&&!On.call(A,x)?_:v}function ak(v,_,x,A,F,j){return dr(v)&&dr(_)&&(j.set(_,v),Y0(v,_,n,ak,j),j.delete(_)),v}function eZ(v){return kv(v)?n:v}function sk(v,_,x,A,F,j){var Q=x&p,ie=v.length,he=_.length;if(ie!=he&&!(Q&&he>ie))return!1;var Ne=j.get(v),Fe=j.get(_);if(Ne&&Fe)return Ne==_&&Fe==v;var He=-1,ot=!0,bt=x&g?new Zc:n;for(j.set(v,_),j.set(_,v);++He<ie;){var Pt=v[He],qt=_[He];if(A)var Rt=Q?A(qt,Pt,He,_,v,j):A(Pt,qt,He,v,_,j);if(Rt!==n){if(Rt)continue;ot=!1;break}if(bt){if(!_T(_,function(rn,pn){if(!Sv(bt,pn)&&(Pt===rn||F(Pt,rn,x,A,j)))return bt.push(pn)})){ot=!1;break}}else if(!(Pt===qt||F(Pt,qt,x,A,j))){ot=!1;break}}return j.delete(v),j.delete(_),ot}function tZ(v,_,x,A,F,j,Q){switch(x){case Tt:if(v.byteLength!=_.byteLength||v.byteOffset!=_.byteOffset)return!1;v=v.buffer,_=_.buffer;case nt:return!(v.byteLength!=_.byteLength||!j(new k0(v),new k0(_)));case Ee:case we:case de:return Ya(+v,+_);case Oe:return v.name==_.name&&v.message==_.message;case re:case Ce:return v==_+"";case X:var ie=CT;case pe:var he=A&p;if(ie||(ie=P0),v.size!=_.size&&!he)return!1;var Ne=Q.get(v);if(Ne)return Ne==_;A|=g,Q.set(v,_);var Fe=sk(ie(v),ie(_),A,F,j,Q);return Q.delete(v),Fe;case $e:if(Ev)return Ev.call(v)==Ev.call(_)}return!1}function nZ(v,_,x,A,F,j){var Q=x&p,ie=ZT(v),he=ie.length,Ne=ZT(_),Fe=Ne.length;if(he!=Fe&&!Q)return!1;for(var He=he;He--;){var ot=ie[He];if(!(Q?ot in _:On.call(_,ot)))return!1}var bt=j.get(v),Pt=j.get(_);if(bt&&Pt)return bt==_&&Pt==v;var qt=!0;j.set(v,_),j.set(_,v);for(var Rt=Q;++He<he;){ot=ie[He];var rn=v[ot],pn=_[ot];if(A)var Wo=Q?A(pn,rn,ot,_,v,j):A(rn,pn,ot,v,_,j);if(!(Wo===n?rn===pn||F(rn,pn,x,A,j):Wo)){qt=!1;break}Rt||(Rt=ot=="constructor")}if(qt&&!Rt){var ji=v.constructor,jo=_.constructor;ji!=jo&&"constructor"in v&&"constructor"in _&&!(typeof ji=="function"&&ji instanceof ji&&typeof jo=="function"&&jo instanceof jo)&&(qt=!1)}return j.delete(v),j.delete(_),qt}function _l(v){return iC(hk(v,n,wk),v+"")}function ZT(v){return IL(v,ei,eC)}function qT(v){return IL(v,po,lk)}var JT=V0?function(v){return V0.get(v)}:mC;function t1(v){for(var _=v.name+"",x=ih[_],A=On.call(ih,_)?x.length:0;A--;){var F=x[A],j=F.func;if(j==null||j==v)return F.name}return _}function lh(v){var _=On.call(G,"placeholder")?G:v;return _.placeholder}function It(){var v=G.iteratee||vC;return v=v===vC?RL:v,arguments.length?v(arguments[0],arguments[1]):v}function n1(v,_){var x=v.__data__;return cZ(_)?x[typeof _=="string"?"string":"hash"]:x.map}function QT(v){for(var _=ei(v),x=_.length;x--;){var A=_[x],F=v[A];_[x]=[A,F,fk(F)]}return _}function Qc(v,_){var x=hX(v,_);return PL(x)?x:n}function rZ(v){var _=On.call(v,Xc),x=v[Xc];try{v[Xc]=n;var A=!0}catch{}var F=O0.call(v);return A&&(_?v[Xc]=x:delete v[Xc]),F}var eC=IT?function(v){return v==null?[]:(v=Vn(v),Eu(IT(v),function(_){return pL.call(v,_)}))}:yC,lk=IT?function(v){for(var _=[];v;)Iu(_,eC(v)),v=N0(v);return _}:yC,Ci=Gi;(AT&&Ci(new AT(new ArrayBuffer(1)))!=Tt||xv&&Ci(new xv)!=X||PT&&Ci(PT.resolve())!=W||rh&&Ci(new rh)!=pe||Tv&&Ci(new Tv)!=ve)&&(Ci=function(v){var _=Gi(v),x=_==be?v.constructor:n,A=x?ef(x):"";if(A)switch(A){case BX:return Tt;case UX:return X;case VX:return W;case HX:return pe;case zX:return ve}return _});function iZ(v,_,x){for(var A=-1,F=x.length;++A<F;){var j=x[A],Q=j.size;switch(j.type){case"drop":v+=Q;break;case"dropRight":_-=Q;break;case"take":_=Ti(_,v+Q);break;case"takeRight":v=Gr(v,_-Q);break}}return{start:v,end:_}}function oZ(v){var _=v.match(b0);return _?_[1].split(yv):[]}function uk(v,_,x){_=Du(_,v);for(var A=-1,F=_.length,j=!1;++A<F;){var Q=As(_[A]);if(!(j=v!=null&&x(v,Q)))break;v=v[Q]}return j||++A!=F?j:(F=v==null?0:v.length,!!F&&u1(F)&&bl(Q,F)&&(jt(v)||tf(v)))}function aZ(v){var _=v.length,x=new v.constructor(_);return _&&typeof v[0]=="string"&&On.call(v,"index")&&(x.index=v.index,x.input=v.input),x}function ck(v){return typeof v.constructor=="function"&&!Ov(v)?oh(N0(v)):{}}function sZ(v,_,x){var A=v.constructor;switch(_){case nt:return YT(v);case Ee:case we:return new A(+v);case Tt:return GK(v,x);case se:case ce:case ye:case De:case Xe:case ue:case Le:case ze:case lt:return jL(v,x);case X:return new A;case de:case Ce:return new A(v);case re:return WK(v);case pe:return new A;case $e:return jK(v)}}function lZ(v,_){var x=_.length;if(!x)return v;var A=x-1;return _[A]=(x>1?"& ":"")+_[A],_=_.join(x>2?", ":" "),v.replace(_0,`{
/* [wrapped with `+_+`] */
`)}function uZ(v){return jt(v)||tf(v)||!!(vL&&v&&v[vL])}function bl(v,_){var x=typeof v;return _=_??$,!!_&&(x=="number"||x!="symbol"&&Ye.test(v))&&v>-1&&v%1==0&&v<_}function Wi(v,_,x){if(!dr(x))return!1;var A=typeof _;return(A=="number"?ho(x)&&bl(_,x.length):A=="string"&&_ in x)?Ya(x[_],v):!1}function tC(v,_){if(jt(v))return!1;var x=typeof v;return x=="number"||x=="symbol"||x=="boolean"||v==null||Go(v)?!0:Cs.test(v)||!Tu.test(v)||_!=null&&v in Vn(_)}function cZ(v){var _=typeof v;return _=="string"||_=="number"||_=="symbol"||_=="boolean"?v!=="__proto__":v===null}function nC(v){var _=t1(v),x=G[_];if(typeof x!="function"||!(_ in cn.prototype))return!1;if(v===x)return!0;var A=JT(x);return!!A&&v===A[0]}function fZ(v){return!!fL&&fL in v}var dZ=M0?Sl:_C;function Ov(v){var _=v&&v.constructor,x=typeof _=="function"&&_.prototype||nh;return v===x}function fk(v){return v===v&&!dr(v)}function dk(v,_){return function(x){return x==null?!1:x[v]===_&&(_!==n||v in Vn(x))}}function hZ(v){var _=s1(v,function(A){return x.size===u&&x.clear(),A}),x=_.cache;return _}function pZ(v,_){var x=v[1],A=_[1],F=x|A,j=F<(y|m|E),Q=A==E&&x==w||A==E&&x==P&&v[7].length<=_[8]||A==(E|P)&&_[7].length<=_[8]&&x==w;if(!(j||Q))return v;A&y&&(v[2]=_[2],F|=x&y?0:b);var ie=_[3];if(ie){var he=v[3];v[3]=he?XL(he,ie,_[4]):ie,v[4]=he?Au(v[3],c):_[4]}return ie=_[5],ie&&(he=v[5],v[5]=he?KL(he,ie,_[6]):ie,v[6]=he?Au(v[5],c):_[6]),ie=_[7],ie&&(v[7]=ie),A&E&&(v[8]=v[8]==null?_[8]:Ti(v[8],_[8])),v[9]==null&&(v[9]=_[9]),v[0]=_[0],v[1]=F,v}function vZ(v){var _=[];if(v!=null)for(var x in Vn(v))_.push(x);return _}function gZ(v){return O0.call(v)}function hk(v,_,x){return _=Gr(_===n?v.length-1:_,0),function(){for(var A=arguments,F=-1,j=Gr(A.length-_,0),Q=Se(j);++F<j;)Q[F]=A[_+F];F=-1;for(var ie=Se(_+1);++F<_;)ie[F]=A[F];return ie[_]=x(Q),Vo(v,this,ie)}}function pk(v,_){return _.length<2?v:Jc(v,ga(_,0,-1))}function mZ(v,_){for(var x=v.length,A=Ti(_.length,x),F=fo(v);A--;){var j=_[A];v[A]=bl(j,x)?F[j]:n}return v}function rC(v,_){if(!(_==="constructor"&&typeof v[_]=="function")&&_!="__proto__")return v[_]}var vk=mk($L),Lv=DX||function(v,_){return di.setTimeout(v,_)},iC=mk(UK);function gk(v,_,x){var A=_+"";return iC(v,lZ(A,yZ(oZ(A),x)))}function mk(v){var _=0,x=0;return function(){var A=NX(),F=M-(A-x);if(x=A,F>0){if(++_>=N)return arguments[0]}else _=0;return v.apply(n,arguments)}}function r1(v,_){var x=-1,A=v.length,F=A-1;for(_=_===n?A:_;++x<_;){var j=UT(x,F),Q=v[j];v[j]=v[x],v[x]=Q}return v.length=_,v}var yk=hZ(function(v){var _=[];return v.charCodeAt(0)===46&&_.push(""),v.replace(y0,function(x,A,F,j){_.push(F?j.replace(w0,"$1"):A||x)}),_});function As(v){if(typeof v=="string"||Go(v))return v;var _=v+"";return _=="0"&&1/v==-U?"-0":_}function ef(v){if(v!=null){try{return D0.call(v)}catch{}try{return v+""}catch{}}return""}function yZ(v,_){return da(Me,function(x){var A="_."+x[0];_&x[1]&&!I0(v,A)&&v.push(A)}),v.sort()}function _k(v){if(v instanceof cn)return v.clone();var _=new pa(v.__wrapped__,v.__chain__);return _.__actions__=fo(v.__actions__),_.__index__=v.__index__,_.__values__=v.__values__,_}function _Z(v,_,x){(x?Wi(v,_,x):_===n)?_=1:_=Gr(Zt(_),0);var A=v==null?0:v.length;if(!A||_<1)return[];for(var F=0,j=0,Q=Se(B0(A/_));F<A;)Q[j++]=ga(v,F,F+=_);return Q}function bZ(v){for(var _=-1,x=v==null?0:v.length,A=0,F=[];++_<x;){var j=v[_];j&&(F[A++]=j)}return F}function SZ(){var v=arguments.length;if(!v)return[];for(var _=Se(v-1),x=arguments[0],A=v;A--;)_[A-1]=arguments[A];return Iu(jt(x)?fo(x):[x],hi(_,1))}var wZ=Jt(function(v,_){return Ir(v)?Av(v,hi(_,1,Ir,!0)):[]}),xZ=Jt(function(v,_){var x=ma(_);return Ir(x)&&(x=n),Ir(v)?Av(v,hi(_,1,Ir,!0),It(x,2)):[]}),TZ=Jt(function(v,_){var x=ma(_);return Ir(x)&&(x=n),Ir(v)?Av(v,hi(_,1,Ir,!0),n,x):[]});function CZ(v,_,x){var A=v==null?0:v.length;return A?(_=x||_===n?1:Zt(_),ga(v,_<0?0:_,A)):[]}function EZ(v,_,x){var A=v==null?0:v.length;return A?(_=x||_===n?1:Zt(_),_=A-_,ga(v,0,_<0?0:_)):[]}function IZ(v,_){return v&&v.length?K0(v,It(_,3),!0,!0):[]}function AZ(v,_){return v&&v.length?K0(v,It(_,3),!0):[]}function PZ(v,_,x,A){var F=v==null?0:v.length;return F?(x&&typeof x!="number"&&Wi(v,_,x)&&(x=0,A=F),SK(v,_,x,A)):[]}function bk(v,_,x){var A=v==null?0:v.length;if(!A)return-1;var F=x==null?0:Zt(x);return F<0&&(F=Gr(A+F,0)),A0(v,It(_,3),F)}function Sk(v,_,x){var A=v==null?0:v.length;if(!A)return-1;var F=A-1;return x!==n&&(F=Zt(x),F=x<0?Gr(A+F,0):Ti(F,A-1)),A0(v,It(_,3),F,!0)}function wk(v){var _=v==null?0:v.length;return _?hi(v,1):[]}function RZ(v){var _=v==null?0:v.length;return _?hi(v,U):[]}function MZ(v,_){var x=v==null?0:v.length;return x?(_=_===n?1:Zt(_),hi(v,_)):[]}function DZ(v){for(var _=-1,x=v==null?0:v.length,A={};++_<x;){var F=v[_];A[F[0]]=F[1]}return A}function xk(v){return v&&v.length?v[0]:n}function OZ(v,_,x){var A=v==null?0:v.length;if(!A)return-1;var F=x==null?0:Zt(x);return F<0&&(F=Gr(A+F,0)),Jd(v,_,F)}function LZ(v){var _=v==null?0:v.length;return _?ga(v,0,-1):[]}var kZ=Jt(function(v){var _=sr(v,WT);return _.length&&_[0]===v[0]?kT(_):[]}),NZ=Jt(function(v){var _=ma(v),x=sr(v,WT);return _===ma(x)?_=n:x.pop(),x.length&&x[0]===v[0]?kT(x,It(_,2)):[]}),FZ=Jt(function(v){var _=ma(v),x=sr(v,WT);return _=typeof _=="function"?_:n,_&&x.pop(),x.length&&x[0]===v[0]?kT(x,n,_):[]});function $Z(v,_){return v==null?"":LX.call(v,_)}function ma(v){var _=v==null?0:v.length;return _?v[_-1]:n}function BZ(v,_,x){var A=v==null?0:v.length;if(!A)return-1;var F=A;return x!==n&&(F=Zt(x),F=F<0?Gr(A+F,0):Ti(F,A-1)),_===_?yX(v,_,F):A0(v,rL,F,!0)}function UZ(v,_){return v&&v.length?LL(v,Zt(_)):n}var VZ=Jt(Tk);function Tk(v,_){return v&&v.length&&_&&_.length?BT(v,_):v}function HZ(v,_,x){return v&&v.length&&_&&_.length?BT(v,_,It(x,2)):v}function zZ(v,_,x){return v&&v.length&&_&&_.length?BT(v,_,n,x):v}var GZ=_l(function(v,_){var x=v==null?0:v.length,A=MT(v,_);return FL(v,sr(_,function(F){return bl(F,x)?+F:F}).sort(YL)),A});function WZ(v,_){var x=[];if(!(v&&v.length))return x;var A=-1,F=[],j=v.length;for(_=It(_,3);++A<j;){var Q=v[A];_(Q,A,v)&&(x.push(Q),F.push(A))}return FL(v,F),x}function oC(v){return v==null?v:$X.call(v)}function jZ(v,_,x){var A=v==null?0:v.length;return A?(x&&typeof x!="number"&&Wi(v,_,x)?(_=0,x=A):(_=_==null?0:Zt(_),x=x===n?A:Zt(x)),ga(v,_,x)):[]}function YZ(v,_){return X0(v,_)}function XZ(v,_,x){return HT(v,_,It(x,2))}function KZ(v,_){var x=v==null?0:v.length;if(x){var A=X0(v,_);if(A<x&&Ya(v[A],_))return A}return-1}function ZZ(v,_){return X0(v,_,!0)}function qZ(v,_,x){return HT(v,_,It(x,2),!0)}function JZ(v,_){var x=v==null?0:v.length;if(x){var A=X0(v,_,!0)-1;if(Ya(v[A],_))return A}return-1}function QZ(v){return v&&v.length?BL(v):[]}function eq(v,_){return v&&v.length?BL(v,It(_,2)):[]}function tq(v){var _=v==null?0:v.length;return _?ga(v,1,_):[]}function nq(v,_,x){return v&&v.length?(_=x||_===n?1:Zt(_),ga(v,0,_<0?0:_)):[]}function rq(v,_,x){var A=v==null?0:v.length;return A?(_=x||_===n?1:Zt(_),_=A-_,ga(v,_<0?0:_,A)):[]}function iq(v,_){return v&&v.length?K0(v,It(_,3),!1,!0):[]}function oq(v,_){return v&&v.length?K0(v,It(_,3)):[]}var aq=Jt(function(v){return Mu(hi(v,1,Ir,!0))}),sq=Jt(function(v){var _=ma(v);return Ir(_)&&(_=n),Mu(hi(v,1,Ir,!0),It(_,2))}),lq=Jt(function(v){var _=ma(v);return _=typeof _=="function"?_:n,Mu(hi(v,1,Ir,!0),n,_)});function uq(v){return v&&v.length?Mu(v):[]}function cq(v,_){return v&&v.length?Mu(v,It(_,2)):[]}function fq(v,_){return _=typeof _=="function"?_:n,v&&v.length?Mu(v,n,_):[]}function aC(v){if(!(v&&v.length))return[];var _=0;return v=Eu(v,function(x){if(Ir(x))return _=Gr(x.length,_),!0}),xT(_,function(x){return sr(v,bT(x))})}function Ck(v,_){if(!(v&&v.length))return[];var x=aC(v);return _==null?x:sr(x,function(A){return Vo(_,n,A)})}var dq=Jt(function(v,_){return Ir(v)?Av(v,_):[]}),hq=Jt(function(v){return GT(Eu(v,Ir))}),pq=Jt(function(v){var _=ma(v);return Ir(_)&&(_=n),GT(Eu(v,Ir),It(_,2))}),vq=Jt(function(v){var _=ma(v);return _=typeof _=="function"?_:n,GT(Eu(v,Ir),n,_)}),gq=Jt(aC);function mq(v,_){return zL(v||[],_||[],Iv)}function yq(v,_){return zL(v||[],_||[],Mv)}var _q=Jt(function(v){var _=v.length,x=_>1?v[_-1]:n;return x=typeof x=="function"?(v.pop(),x):n,Ck(v,x)});function Ek(v){var _=G(v);return _.__chain__=!0,_}function bq(v,_){return _(v),v}function i1(v,_){return _(v)}var Sq=_l(function(v){var _=v.length,x=_?v[0]:0,A=this.__wrapped__,F=function(j){return MT(j,v)};return _>1||this.__actions__.length||!(A instanceof cn)||!bl(x)?this.thru(F):(A=A.slice(x,+x+(_?1:0)),A.__actions__.push({func:i1,args:[F],thisArg:n}),new pa(A,this.__chain__).thru(function(j){return _&&!j.length&&j.push(n),j}))});function wq(){return Ek(this)}function xq(){return new pa(this.value(),this.__chain__)}function Tq(){this.__values__===n&&(this.__values__=Uk(this.value()));var v=this.__index__>=this.__values__.length,_=v?n:this.__values__[this.__index__++];return{done:v,value:_}}function Cq(){return this}function Eq(v){for(var _,x=this;x instanceof z0;){var A=_k(x);A.__index__=0,A.__values__=n,_?F.__wrapped__=A:_=A;var F=A;x=x.__wrapped__}return F.__wrapped__=v,_}function Iq(){var v=this.__wrapped__;if(v instanceof cn){var _=v;return this.__actions__.length&&(_=new cn(this)),_=_.reverse(),_.__actions__.push({func:i1,args:[oC],thisArg:n}),new pa(_,this.__chain__)}return this.thru(oC)}function Aq(){return HL(this.__wrapped__,this.__actions__)}var Pq=Z0(function(v,_,x){On.call(v,x)?++v[x]:ml(v,x,1)});function Rq(v,_,x){var A=jt(v)?tL:bK;return x&&Wi(v,_,x)&&(_=n),A(v,It(_,3))}function Mq(v,_){var x=jt(v)?Eu:CL;return x(v,It(_,3))}var Dq=QL(bk),Oq=QL(Sk);function Lq(v,_){return hi(o1(v,_),1)}function kq(v,_){return hi(o1(v,_),U)}function Nq(v,_,x){return x=x===n?1:Zt(x),hi(o1(v,_),x)}function Ik(v,_){var x=jt(v)?da:Ru;return x(v,It(_,3))}function Ak(v,_){var x=jt(v)?tX:TL;return x(v,It(_,3))}var Fq=Z0(function(v,_,x){On.call(v,x)?v[x].push(_):ml(v,x,[_])});function $q(v,_,x,A){v=ho(v)?v:ch(v),x=x&&!A?Zt(x):0;var F=v.length;return x<0&&(x=Gr(F+x,0)),c1(v)?x<=F&&v.indexOf(_,x)>-1:!!F&&Jd(v,_,x)>-1}var Bq=Jt(function(v,_,x){var A=-1,F=typeof _=="function",j=ho(v)?Se(v.length):[];return Ru(v,function(Q){j[++A]=F?Vo(_,Q,x):Pv(Q,_,x)}),j}),Uq=Z0(function(v,_,x){ml(v,x,_)});function o1(v,_){var x=jt(v)?sr:ML;return x(v,It(_,3))}function Vq(v,_,x,A){return v==null?[]:(jt(_)||(_=_==null?[]:[_]),x=A?n:x,jt(x)||(x=x==null?[]:[x]),kL(v,_,x))}var Hq=Z0(function(v,_,x){v[x?0:1].push(_)},function(){return[[],[]]});function zq(v,_,x){var A=jt(v)?yT:oL,F=arguments.length<3;return A(v,It(_,4),x,F,Ru)}function Gq(v,_,x){var A=jt(v)?nX:oL,F=arguments.length<3;return A(v,It(_,4),x,F,TL)}function Wq(v,_){var x=jt(v)?Eu:CL;return x(v,l1(It(_,3)))}function jq(v){var _=jt(v)?bL:$K;return _(v)}function Yq(v,_,x){(x?Wi(v,_,x):_===n)?_=1:_=Zt(_);var A=jt(v)?vK:BK;return A(v,_)}function Xq(v){var _=jt(v)?gK:VK;return _(v)}function Kq(v){if(v==null)return 0;if(ho(v))return c1(v)?eh(v):v.length;var _=Ci(v);return _==X||_==pe?v.size:FT(v).length}function Zq(v,_,x){var A=jt(v)?_T:HK;return x&&Wi(v,_,x)&&(_=n),A(v,It(_,3))}var qq=Jt(function(v,_){if(v==null)return[];var x=_.length;return x>1&&Wi(v,_[0],_[1])?_=[]:x>2&&Wi(_[0],_[1],_[2])&&(_=[_[0]]),kL(v,hi(_,1),[])}),a1=MX||function(){return di.Date.now()};function Jq(v,_){if(typeof _!="function")throw new ha(a);return v=Zt(v),function(){if(--v<1)return _.apply(this,arguments)}}function Pk(v,_,x){return _=x?n:_,_=v&&_==null?v.length:_,yl(v,E,n,n,n,n,_)}function Rk(v,_){var x;if(typeof _!="function")throw new ha(a);return v=Zt(v),function(){return--v>0&&(x=_.apply(this,arguments)),v<=1&&(_=n),x}}var sC=Jt(function(v,_,x){var A=y;if(x.length){var F=Au(x,lh(sC));A|=C}return yl(v,A,_,x,F)}),Mk=Jt(function(v,_,x){var A=y|m;if(x.length){var F=Au(x,lh(Mk));A|=C}return yl(_,A,v,x,F)});function Dk(v,_,x){_=x?n:_;var A=yl(v,w,n,n,n,n,n,_);return A.placeholder=Dk.placeholder,A}function Ok(v,_,x){_=x?n:_;var A=yl(v,S,n,n,n,n,n,_);return A.placeholder=Ok.placeholder,A}function Lk(v,_,x){var A,F,j,Q,ie,he,Ne=0,Fe=!1,He=!1,ot=!0;if(typeof v!="function")throw new ha(a);_=ya(_)||0,dr(x)&&(Fe=!!x.leading,He="maxWait"in x,j=He?Gr(ya(x.maxWait)||0,_):j,ot="trailing"in x?!!x.trailing:ot);function bt(Ar){var Xa=A,xl=F;return A=F=n,Ne=Ar,Q=v.apply(xl,Xa),Q}function Pt(Ar){return Ne=Ar,ie=Lv(rn,_),Fe?bt(Ar):Q}function qt(Ar){var Xa=Ar-he,xl=Ar-Ne,Qk=_-Xa;return He?Ti(Qk,j-xl):Qk}function Rt(Ar){var Xa=Ar-he,xl=Ar-Ne;return he===n||Xa>=_||Xa<0||He&&xl>=j}function rn(){var Ar=a1();if(Rt(Ar))return pn(Ar);ie=Lv(rn,qt(Ar))}function pn(Ar){return ie=n,ot&&A?bt(Ar):(A=F=n,Q)}function Wo(){ie!==n&&GL(ie),Ne=0,A=he=F=ie=n}function ji(){return ie===n?Q:pn(a1())}function jo(){var Ar=a1(),Xa=Rt(Ar);if(A=arguments,F=this,he=Ar,Xa){if(ie===n)return Pt(he);if(He)return GL(ie),ie=Lv(rn,_),bt(he)}return ie===n&&(ie=Lv(rn,_)),Q}return jo.cancel=Wo,jo.flush=ji,jo}var Qq=Jt(function(v,_){return xL(v,1,_)}),eJ=Jt(function(v,_,x){return xL(v,ya(_)||0,x)});function tJ(v){return yl(v,I)}function s1(v,_){if(typeof v!="function"||_!=null&&typeof _!="function")throw new ha(a);var x=function(){var A=arguments,F=_?_.apply(this,A):A[0],j=x.cache;if(j.has(F))return j.get(F);var Q=v.apply(this,A);return x.cache=j.set(F,Q)||j,Q};return x.cache=new(s1.Cache||gl),x}s1.Cache=gl;function l1(v){if(typeof v!="function")throw new ha(a);return function(){var _=arguments;switch(_.length){case 0:return!v.call(this);case 1:return!v.call(this,_[0]);case 2:return!v.call(this,_[0],_[1]);case 3:return!v.call(this,_[0],_[1],_[2])}return!v.apply(this,_)}}function nJ(v){return Rk(2,v)}var rJ=zK(function(v,_){_=_.length==1&&jt(_[0])?sr(_[0],Ho(It())):sr(hi(_,1),Ho(It()));var x=_.length;return Jt(function(A){for(var F=-1,j=Ti(A.length,x);++F<j;)A[F]=_[F].call(this,A[F]);return Vo(v,this,A)})}),lC=Jt(function(v,_){var x=Au(_,lh(lC));return yl(v,C,n,_,x)}),kk=Jt(function(v,_){var x=Au(_,lh(kk));return yl(v,T,n,_,x)}),iJ=_l(function(v,_){return yl(v,P,n,n,n,_)});function oJ(v,_){if(typeof v!="function")throw new ha(a);return _=_===n?_:Zt(_),Jt(v,_)}function aJ(v,_){if(typeof v!="function")throw new ha(a);return _=_==null?0:Gr(Zt(_),0),Jt(function(x){var A=x[_],F=Ou(x,0,_);return A&&Iu(F,A),Vo(v,this,F)})}function sJ(v,_,x){var A=!0,F=!0;if(typeof v!="function")throw new ha(a);return dr(x)&&(A="leading"in x?!!x.leading:A,F="trailing"in x?!!x.trailing:F),Lk(v,_,{leading:A,maxWait:_,trailing:F})}function lJ(v){return Pk(v,1)}function uJ(v,_){return lC(jT(_),v)}function cJ(){if(!arguments.length)return[];var v=arguments[0];return jt(v)?v:[v]}function fJ(v){return va(v,d)}function dJ(v,_){return _=typeof _=="function"?_:n,va(v,d,_)}function hJ(v){return va(v,f|d)}function pJ(v,_){return _=typeof _=="function"?_:n,va(v,f|d,_)}function vJ(v,_){return _==null||wL(v,_,ei(_))}function Ya(v,_){return v===_||v!==v&&_!==_}var gJ=e1(LT),mJ=e1(function(v,_){return v>=_}),tf=AL((function(){return arguments})())?AL:function(v){return gr(v)&&On.call(v,"callee")&&!pL.call(v,"callee")},jt=Se.isArray,yJ=KO?Ho(KO):EK;function ho(v){return v!=null&&u1(v.length)&&!Sl(v)}function Ir(v){return gr(v)&&ho(v)}function _J(v){return v===!0||v===!1||gr(v)&&Gi(v)==Ee}var Lu=OX||_C,bJ=ZO?Ho(ZO):IK;function SJ(v){return gr(v)&&v.nodeType===1&&!kv(v)}function wJ(v){if(v==null)return!0;if(ho(v)&&(jt(v)||typeof v=="string"||typeof v.splice=="function"||Lu(v)||uh(v)||tf(v)))return!v.length;var _=Ci(v);if(_==X||_==pe)return!v.size;if(Ov(v))return!FT(v).length;for(var x in v)if(On.call(v,x))return!1;return!0}function xJ(v,_){return Rv(v,_)}function TJ(v,_,x){x=typeof x=="function"?x:n;var A=x?x(v,_):n;return A===n?Rv(v,_,n,x):!!A}function uC(v){if(!gr(v))return!1;var _=Gi(v);return _==Oe||_==Ae||typeof v.message=="string"&&typeof v.name=="string"&&!kv(v)}function CJ(v){return typeof v=="number"&&gL(v)}function Sl(v){if(!dr(v))return!1;var _=Gi(v);return _==Ue||_==Y||_==oe||_==Z}function Nk(v){return typeof v=="number"&&v==Zt(v)}function u1(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=$}function dr(v){var _=typeof v;return v!=null&&(_=="object"||_=="function")}function gr(v){return v!=null&&typeof v=="object"}var Fk=qO?Ho(qO):PK;function EJ(v,_){return v===_||NT(v,_,QT(_))}function IJ(v,_,x){return x=typeof x=="function"?x:n,NT(v,_,QT(_),x)}function AJ(v){return $k(v)&&v!=+v}function PJ(v){if(dZ(v))throw new Vt(o);return PL(v)}function RJ(v){return v===null}function MJ(v){return v==null}function $k(v){return typeof v=="number"||gr(v)&&Gi(v)==de}function kv(v){if(!gr(v)||Gi(v)!=be)return!1;var _=N0(v);if(_===null)return!0;var x=On.call(_,"constructor")&&_.constructor;return typeof x=="function"&&x instanceof x&&D0.call(x)==IX}var cC=JO?Ho(JO):RK;function DJ(v){return Nk(v)&&v>=-$&&v<=$}var Bk=QO?Ho(QO):MK;function c1(v){return typeof v=="string"||!jt(v)&&gr(v)&&Gi(v)==Ce}function Go(v){return typeof v=="symbol"||gr(v)&&Gi(v)==$e}var uh=eL?Ho(eL):DK;function OJ(v){return v===n}function LJ(v){return gr(v)&&Ci(v)==ve}function kJ(v){return gr(v)&&Gi(v)==je}var NJ=e1($T),FJ=e1(function(v,_){return v<=_});function Uk(v){if(!v)return[];if(ho(v))return c1(v)?Wa(v):fo(v);if(wv&&v[wv])return vX(v[wv]());var _=Ci(v),x=_==X?CT:_==pe?P0:ch;return x(v)}function wl(v){if(!v)return v===0?v:0;if(v=ya(v),v===U||v===-U){var _=v<0?-1:1;return _*J}return v===v?v:0}function Zt(v){var _=wl(v),x=_%1;return _===_?x?_-x:_:0}function Vk(v){return v?qc(Zt(v),0,ne):0}function ya(v){if(typeof v=="number")return v;if(Go(v))return ae;if(dr(v)){var _=typeof v.valueOf=="function"?v.valueOf():v;v=dr(_)?_+"":_}if(typeof v!="string")return v===0?v:+v;v=aL(v);var x=uT.test(v);return x||le.test(v)?JY(v.slice(2),x?2:8):T0.test(v)?ae:+v}function Hk(v){return Is(v,po(v))}function $J(v){return v?qc(Zt(v),-$,$):v===0?v:0}function En(v){return v==null?"":zo(v)}var BJ=ah(function(v,_){if(Ov(_)||ho(_)){Is(_,ei(_),v);return}for(var x in _)On.call(_,x)&&Iv(v,x,_[x])}),zk=ah(function(v,_){Is(_,po(_),v)}),f1=ah(function(v,_,x,A){Is(_,po(_),v,A)}),UJ=ah(function(v,_,x,A){Is(_,ei(_),v,A)}),VJ=_l(MT);function HJ(v,_){var x=oh(v);return _==null?x:SL(x,_)}var zJ=Jt(function(v,_){v=Vn(v);var x=-1,A=_.length,F=A>2?_[2]:n;for(F&&Wi(_[0],_[1],F)&&(A=1);++x<A;)for(var j=_[x],Q=po(j),ie=-1,he=Q.length;++ie<he;){var Ne=Q[ie],Fe=v[Ne];(Fe===n||Ya(Fe,nh[Ne])&&!On.call(v,Ne))&&(v[Ne]=j[Ne])}return v}),GJ=Jt(function(v){return v.push(n,ak),Vo(Gk,n,v)});function WJ(v,_){return nL(v,It(_,3),Es)}function jJ(v,_){return nL(v,It(_,3),OT)}function YJ(v,_){return v==null?v:DT(v,It(_,3),po)}function XJ(v,_){return v==null?v:EL(v,It(_,3),po)}function KJ(v,_){return v&&Es(v,It(_,3))}function ZJ(v,_){return v&&OT(v,It(_,3))}function qJ(v){return v==null?[]:j0(v,ei(v))}function JJ(v){return v==null?[]:j0(v,po(v))}function fC(v,_,x){var A=v==null?n:Jc(v,_);return A===n?x:A}function QJ(v,_){return v!=null&&uk(v,_,wK)}function dC(v,_){return v!=null&&uk(v,_,xK)}var eQ=tk(function(v,_,x){_!=null&&typeof _.toString!="function"&&(_=O0.call(_)),v[_]=x},pC(vo)),tQ=tk(function(v,_,x){_!=null&&typeof _.toString!="function"&&(_=O0.call(_)),On.call(v,_)?v[_].push(x):v[_]=[x]},It),nQ=Jt(Pv);function ei(v){return ho(v)?_L(v):FT(v)}function po(v){return ho(v)?_L(v,!0):OK(v)}function rQ(v,_){var x={};return _=It(_,3),Es(v,function(A,F,j){ml(x,_(A,F,j),A)}),x}function iQ(v,_){var x={};return _=It(_,3),Es(v,function(A,F,j){ml(x,F,_(A,F,j))}),x}var oQ=ah(function(v,_,x){Y0(v,_,x)}),Gk=ah(function(v,_,x,A){Y0(v,_,x,A)}),aQ=_l(function(v,_){var x={};if(v==null)return x;var A=!1;_=sr(_,function(j){return j=Du(j,v),A||(A=j.length>1),j}),Is(v,qT(v),x),A&&(x=va(x,f|h|d,eZ));for(var F=_.length;F--;)zT(x,_[F]);return x});function sQ(v,_){return Wk(v,l1(It(_)))}var lQ=_l(function(v,_){return v==null?{}:kK(v,_)});function Wk(v,_){if(v==null)return{};var x=sr(qT(v),function(A){return[A]});return _=It(_),NL(v,x,function(A,F){return _(A,F[0])})}function uQ(v,_,x){_=Du(_,v);var A=-1,F=_.length;for(F||(F=1,v=n);++A<F;){var j=v==null?n:v[As(_[A])];j===n&&(A=F,j=x),v=Sl(j)?j.call(v):j}return v}function cQ(v,_,x){return v==null?v:Mv(v,_,x)}function fQ(v,_,x,A){return A=typeof A=="function"?A:n,v==null?v:Mv(v,_,x,A)}var jk=ik(ei),Yk=ik(po);function dQ(v,_,x){var A=jt(v),F=A||Lu(v)||uh(v);if(_=It(_,4),x==null){var j=v&&v.constructor;F?x=A?new j:[]:dr(v)?x=Sl(j)?oh(N0(v)):{}:x={}}return(F?da:Es)(v,function(Q,ie,he){return _(x,Q,ie,he)}),x}function hQ(v,_){return v==null?!0:zT(v,_)}function pQ(v,_,x){return v==null?v:VL(v,_,jT(x))}function vQ(v,_,x,A){return A=typeof A=="function"?A:n,v==null?v:VL(v,_,jT(x),A)}function ch(v){return v==null?[]:TT(v,ei(v))}function gQ(v){return v==null?[]:TT(v,po(v))}function mQ(v,_,x){return x===n&&(x=_,_=n),x!==n&&(x=ya(x),x=x===x?x:0),_!==n&&(_=ya(_),_=_===_?_:0),qc(ya(v),_,x)}function yQ(v,_,x){return _=wl(_),x===n?(x=_,_=0):x=wl(x),v=ya(v),TK(v,_,x)}function _Q(v,_,x){if(x&&typeof x!="boolean"&&Wi(v,_,x)&&(_=x=n),x===n&&(typeof _=="boolean"?(x=_,_=n):typeof v=="boolean"&&(x=v,v=n)),v===n&&_===n?(v=0,_=1):(v=wl(v),_===n?(_=v,v=0):_=wl(_)),v>_){var A=v;v=_,_=A}if(x||v%1||_%1){var F=mL();return Ti(v+F*(_-v+qY("1e-"+((F+"").length-1))),_)}return UT(v,_)}var bQ=sh(function(v,_,x){return _=_.toLowerCase(),v+(x?Xk(_):_)});function Xk(v){return hC(En(v).toLowerCase())}function Kk(v){return v=En(v),v&&v.replace(yt,cX).replace(VY,"")}function SQ(v,_,x){v=En(v),_=zo(_);var A=v.length;x=x===n?A:qc(Zt(x),0,A);var F=x;return x-=_.length,x>=0&&v.slice(x,F)==_}function wQ(v){return v=En(v),v&&Ha.test(v)?v.replace(Ut,fX):v}function xQ(v){return v=En(v),v&&lT.test(v)?v.replace(Kd,"\\$&"):v}var TQ=sh(function(v,_,x){return v+(x?"-":"")+_.toLowerCase()}),CQ=sh(function(v,_,x){return v+(x?" ":"")+_.toLowerCase()}),EQ=JL("toLowerCase");function IQ(v,_,x){v=En(v),_=Zt(_);var A=_?eh(v):0;if(!_||A>=_)return v;var F=(_-A)/2;return Q0(U0(F),x)+v+Q0(B0(F),x)}function AQ(v,_,x){v=En(v),_=Zt(_);var A=_?eh(v):0;return _&&A<_?v+Q0(_-A,x):v}function PQ(v,_,x){v=En(v),_=Zt(_);var A=_?eh(v):0;return _&&A<_?Q0(_-A,x)+v:v}function RQ(v,_,x){return x||_==null?_=0:_&&(_=+_),FX(En(v).replace(co,""),_||0)}function MQ(v,_,x){return(x?Wi(v,_,x):_===n)?_=1:_=Zt(_),VT(En(v),_)}function DQ(){var v=arguments,_=En(v[0]);return v.length<3?_:_.replace(v[1],v[2])}var OQ=sh(function(v,_,x){return v+(x?"_":"")+_.toLowerCase()});function LQ(v,_,x){return x&&typeof x!="number"&&Wi(v,_,x)&&(_=x=n),x=x===n?ne:x>>>0,x?(v=En(v),v&&(typeof _=="string"||_!=null&&!cC(_))&&(_=zo(_),!_&&Qd(v))?Ou(Wa(v),0,x):v.split(_,x)):[]}var kQ=sh(function(v,_,x){return v+(x?" ":"")+hC(_)});function NQ(v,_,x){return v=En(v),x=x==null?0:qc(Zt(x),0,v.length),_=zo(_),v.slice(x,x+_.length)==_}function FQ(v,_,x){var A=G.templateSettings;x&&Wi(v,_,x)&&(_=n),v=En(v),_=f1({},_,A,ok);var F=f1({},_.imports,A.imports,ok),j=ei(F),Q=TT(F,j),ie,he,Ne=0,Fe=_.interpolate||Dn,He="__p += '",ot=ET((_.escape||Dn).source+"|"+Fe.source+"|"+(Fe===Xd?x0:Dn).source+"|"+(_.evaluate||Dn).source+"|$","g"),bt="//# sourceURL="+(On.call(_,"sourceURL")?(_.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++jY+"]")+`
`;v.replace(ot,function(Rt,rn,pn,Wo,ji,jo){return pn||(pn=Wo),He+=v.slice(Ne,jo).replace(Qr,dX),rn&&(ie=!0,He+=`' +
__e(`+rn+`) +
'`),ji&&(he=!0,He+=`';
`+ji+`;
__p += '`),pn&&(He+=`' +
((__t = (`+pn+`)) == null ? '' : __t) +
'`),Ne=jo+Rt.length,Rt}),He+=`';
`;var Pt=On.call(_,"variable")&&_.variable;if(!Pt)He=`with (obj) {
`+He+`
}
`;else if(za.test(Pt))throw new Vt(s);He=(he?He.replace(Ke,""):He).replace(qe,"$1").replace(ut,"$1;"),He="function("+(Pt||"obj")+`) {
`+(Pt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ie?", __e = _.escape":"")+(he?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+He+`return __p
}`;var qt=qk(function(){return bn(j,bt+"return "+He).apply(n,Q)});if(qt.source=He,uC(qt))throw qt;return qt}function $Q(v){return En(v).toLowerCase()}function BQ(v){return En(v).toUpperCase()}function UQ(v,_,x){if(v=En(v),v&&(x||_===n))return aL(v);if(!v||!(_=zo(_)))return v;var A=Wa(v),F=Wa(_),j=sL(A,F),Q=lL(A,F)+1;return Ou(A,j,Q).join("")}function VQ(v,_,x){if(v=En(v),v&&(x||_===n))return v.slice(0,cL(v)+1);if(!v||!(_=zo(_)))return v;var A=Wa(v),F=lL(A,Wa(_))+1;return Ou(A,0,F).join("")}function HQ(v,_,x){if(v=En(v),v&&(x||_===n))return v.replace(co,"");if(!v||!(_=zo(_)))return v;var A=Wa(v),F=sL(A,Wa(_));return Ou(A,F).join("")}function zQ(v,_){var x=D,A=O;if(dr(_)){var F="separator"in _?_.separator:F;x="length"in _?Zt(_.length):x,A="omission"in _?zo(_.omission):A}v=En(v);var j=v.length;if(Qd(v)){var Q=Wa(v);j=Q.length}if(x>=j)return v;var ie=x-eh(A);if(ie<1)return A;var he=Q?Ou(Q,0,ie).join(""):v.slice(0,ie);if(F===n)return he+A;if(Q&&(ie+=he.length-ie),cC(F)){if(v.slice(ie).search(F)){var Ne,Fe=he;for(F.global||(F=ET(F.source,En(_v.exec(F))+"g")),F.lastIndex=0;Ne=F.exec(Fe);)var He=Ne.index;he=he.slice(0,He===n?ie:He)}}else if(v.indexOf(zo(F),ie)!=ie){var ot=he.lastIndexOf(F);ot>-1&&(he=he.slice(0,ot))}return he+A}function GQ(v){return v=En(v),v&&Gn.test(v)?v.replace(Nt,_X):v}var WQ=sh(function(v,_,x){return v+(x?" ":"")+_.toUpperCase()}),hC=JL("toUpperCase");function Zk(v,_,x){return v=En(v),_=x?n:_,_===n?pX(v)?wX(v):oX(v):v.match(_)||[]}var qk=Jt(function(v,_){try{return Vo(v,n,_)}catch(x){return uC(x)?x:new Vt(x)}}),jQ=_l(function(v,_){return da(_,function(x){x=As(x),ml(v,x,sC(v[x],v))}),v});function YQ(v){var _=v==null?0:v.length,x=It();return v=_?sr(v,function(A){if(typeof A[1]!="function")throw new ha(a);return[x(A[0]),A[1]]}):[],Jt(function(A){for(var F=-1;++F<_;){var j=v[F];if(Vo(j[0],this,A))return Vo(j[1],this,A)}})}function XQ(v){return _K(va(v,f))}function pC(v){return function(){return v}}function KQ(v,_){return v==null||v!==v?_:v}var ZQ=ek(),qQ=ek(!0);function vo(v){return v}function vC(v){return RL(typeof v=="function"?v:va(v,f))}function JQ(v){return DL(va(v,f))}function QQ(v,_){return OL(v,va(_,f))}var eee=Jt(function(v,_){return function(x){return Pv(x,v,_)}}),tee=Jt(function(v,_){return function(x){return Pv(v,x,_)}});function gC(v,_,x){var A=ei(_),F=j0(_,A);x==null&&!(dr(_)&&(F.length||!A.length))&&(x=_,_=v,v=this,F=j0(_,ei(_)));var j=!(dr(x)&&"chain"in x)||!!x.chain,Q=Sl(v);return da(F,function(ie){var he=_[ie];v[ie]=he,Q&&(v.prototype[ie]=function(){var Ne=this.__chain__;if(j||Ne){var Fe=v(this.__wrapped__),He=Fe.__actions__=fo(this.__actions__);return He.push({func:he,args:arguments,thisArg:v}),Fe.__chain__=Ne,Fe}return he.apply(v,Iu([this.value()],arguments))})}),v}function nee(){return di._===this&&(di._=AX),this}function mC(){}function ree(v){return v=Zt(v),Jt(function(_){return LL(_,v)})}var iee=XT(sr),oee=XT(tL),aee=XT(_T);function Jk(v){return tC(v)?bT(As(v)):NK(v)}function see(v){return function(_){return v==null?n:Jc(v,_)}}var lee=nk(),uee=nk(!0);function yC(){return[]}function _C(){return!1}function cee(){return{}}function fee(){return""}function dee(){return!0}function hee(v,_){if(v=Zt(v),v<1||v>$)return[];var x=ne,A=Ti(v,ne);_=It(_),v-=ne;for(var F=xT(A,_);++x<v;)_(x);return F}function pee(v){return jt(v)?sr(v,As):Go(v)?[v]:fo(yk(En(v)))}function vee(v){var _=++EX;return En(v)+_}var gee=J0(function(v,_){return v+_},0),mee=KT("ceil"),yee=J0(function(v,_){return v/_},1),_ee=KT("floor");function bee(v){return v&&v.length?W0(v,vo,LT):n}function See(v,_){return v&&v.length?W0(v,It(_,2),LT):n}function wee(v){return iL(v,vo)}function xee(v,_){return iL(v,It(_,2))}function Tee(v){return v&&v.length?W0(v,vo,$T):n}function Cee(v,_){return v&&v.length?W0(v,It(_,2),$T):n}var Eee=J0(function(v,_){return v*_},1),Iee=KT("round"),Aee=J0(function(v,_){return v-_},0);function Pee(v){return v&&v.length?wT(v,vo):0}function Ree(v,_){return v&&v.length?wT(v,It(_,2)):0}return G.after=Jq,G.ary=Pk,G.assign=BJ,G.assignIn=zk,G.assignInWith=f1,G.assignWith=UJ,G.at=VJ,G.before=Rk,G.bind=sC,G.bindAll=jQ,G.bindKey=Mk,G.castArray=cJ,G.chain=Ek,G.chunk=_Z,G.compact=bZ,G.concat=SZ,G.cond=YQ,G.conforms=XQ,G.constant=pC,G.countBy=Pq,G.create=HJ,G.curry=Dk,G.curryRight=Ok,G.debounce=Lk,G.defaults=zJ,G.defaultsDeep=GJ,G.defer=Qq,G.delay=eJ,G.difference=wZ,G.differenceBy=xZ,G.differenceWith=TZ,G.drop=CZ,G.dropRight=EZ,G.dropRightWhile=IZ,G.dropWhile=AZ,G.fill=PZ,G.filter=Mq,G.flatMap=Lq,G.flatMapDeep=kq,G.flatMapDepth=Nq,G.flatten=wk,G.flattenDeep=RZ,G.flattenDepth=MZ,G.flip=tJ,G.flow=ZQ,G.flowRight=qQ,G.fromPairs=DZ,G.functions=qJ,G.functionsIn=JJ,G.groupBy=Fq,G.initial=LZ,G.intersection=kZ,G.intersectionBy=NZ,G.intersectionWith=FZ,G.invert=eQ,G.invertBy=tQ,G.invokeMap=Bq,G.iteratee=vC,G.keyBy=Uq,G.keys=ei,G.keysIn=po,G.map=o1,G.mapKeys=rQ,G.mapValues=iQ,G.matches=JQ,G.matchesProperty=QQ,G.memoize=s1,G.merge=oQ,G.mergeWith=Gk,G.method=eee,G.methodOf=tee,G.mixin=gC,G.negate=l1,G.nthArg=ree,G.omit=aQ,G.omitBy=sQ,G.once=nJ,G.orderBy=Vq,G.over=iee,G.overArgs=rJ,G.overEvery=oee,G.overSome=aee,G.partial=lC,G.partialRight=kk,G.partition=Hq,G.pick=lQ,G.pickBy=Wk,G.property=Jk,G.propertyOf=see,G.pull=VZ,G.pullAll=Tk,G.pullAllBy=HZ,G.pullAllWith=zZ,G.pullAt=GZ,G.range=lee,G.rangeRight=uee,G.rearg=iJ,G.reject=Wq,G.remove=WZ,G.rest=oJ,G.reverse=oC,G.sampleSize=Yq,G.set=cQ,G.setWith=fQ,G.shuffle=Xq,G.slice=jZ,G.sortBy=qq,G.sortedUniq=QZ,G.sortedUniqBy=eq,G.split=LQ,G.spread=aJ,G.tail=tq,G.take=nq,G.takeRight=rq,G.takeRightWhile=iq,G.takeWhile=oq,G.tap=bq,G.throttle=sJ,G.thru=i1,G.toArray=Uk,G.toPairs=jk,G.toPairsIn=Yk,G.toPath=pee,G.toPlainObject=Hk,G.transform=dQ,G.unary=lJ,G.union=aq,G.unionBy=sq,G.unionWith=lq,G.uniq=uq,G.uniqBy=cq,G.uniqWith=fq,G.unset=hQ,G.unzip=aC,G.unzipWith=Ck,G.update=pQ,G.updateWith=vQ,G.values=ch,G.valuesIn=gQ,G.without=dq,G.words=Zk,G.wrap=uJ,G.xor=hq,G.xorBy=pq,G.xorWith=vq,G.zip=gq,G.zipObject=mq,G.zipObjectDeep=yq,G.zipWith=_q,G.entries=jk,G.entriesIn=Yk,G.extend=zk,G.extendWith=f1,gC(G,G),G.add=gee,G.attempt=qk,G.camelCase=bQ,G.capitalize=Xk,G.ceil=mee,G.clamp=mQ,G.clone=fJ,G.cloneDeep=hJ,G.cloneDeepWith=pJ,G.cloneWith=dJ,G.conformsTo=vJ,G.deburr=Kk,G.defaultTo=KQ,G.divide=yee,G.endsWith=SQ,G.eq=Ya,G.escape=wQ,G.escapeRegExp=xQ,G.every=Rq,G.find=Dq,G.findIndex=bk,G.findKey=WJ,G.findLast=Oq,G.findLastIndex=Sk,G.findLastKey=jJ,G.floor=_ee,G.forEach=Ik,G.forEachRight=Ak,G.forIn=YJ,G.forInRight=XJ,G.forOwn=KJ,G.forOwnRight=ZJ,G.get=fC,G.gt=gJ,G.gte=mJ,G.has=QJ,G.hasIn=dC,G.head=xk,G.identity=vo,G.includes=$q,G.indexOf=OZ,G.inRange=yQ,G.invoke=nQ,G.isArguments=tf,G.isArray=jt,G.isArrayBuffer=yJ,G.isArrayLike=ho,G.isArrayLikeObject=Ir,G.isBoolean=_J,G.isBuffer=Lu,G.isDate=bJ,G.isElement=SJ,G.isEmpty=wJ,G.isEqual=xJ,G.isEqualWith=TJ,G.isError=uC,G.isFinite=CJ,G.isFunction=Sl,G.isInteger=Nk,G.isLength=u1,G.isMap=Fk,G.isMatch=EJ,G.isMatchWith=IJ,G.isNaN=AJ,G.isNative=PJ,G.isNil=MJ,G.isNull=RJ,G.isNumber=$k,G.isObject=dr,G.isObjectLike=gr,G.isPlainObject=kv,G.isRegExp=cC,G.isSafeInteger=DJ,G.isSet=Bk,G.isString=c1,G.isSymbol=Go,G.isTypedArray=uh,G.isUndefined=OJ,G.isWeakMap=LJ,G.isWeakSet=kJ,G.join=$Z,G.kebabCase=TQ,G.last=ma,G.lastIndexOf=BZ,G.lowerCase=CQ,G.lowerFirst=EQ,G.lt=NJ,G.lte=FJ,G.max=bee,G.maxBy=See,G.mean=wee,G.meanBy=xee,G.min=Tee,G.minBy=Cee,G.stubArray=yC,G.stubFalse=_C,G.stubObject=cee,G.stubString=fee,G.stubTrue=dee,G.multiply=Eee,G.nth=UZ,G.noConflict=nee,G.noop=mC,G.now=a1,G.pad=IQ,G.padEnd=AQ,G.padStart=PQ,G.parseInt=RQ,G.random=_Q,G.reduce=zq,G.reduceRight=Gq,G.repeat=MQ,G.replace=DQ,G.result=uQ,G.round=Iee,G.runInContext=fe,G.sample=jq,G.size=Kq,G.snakeCase=OQ,G.some=Zq,G.sortedIndex=YZ,G.sortedIndexBy=XZ,G.sortedIndexOf=KZ,G.sortedLastIndex=ZZ,G.sortedLastIndexBy=qZ,G.sortedLastIndexOf=JZ,G.startCase=kQ,G.startsWith=NQ,G.subtract=Aee,G.sum=Pee,G.sumBy=Ree,G.template=FQ,G.times=hee,G.toFinite=wl,G.toInteger=Zt,G.toLength=Vk,G.toLower=$Q,G.toNumber=ya,G.toSafeInteger=$J,G.toString=En,G.toUpper=BQ,G.trim=UQ,G.trimEnd=VQ,G.trimStart=HQ,G.truncate=zQ,G.unescape=GQ,G.uniqueId=vee,G.upperCase=WQ,G.upperFirst=hC,G.each=Ik,G.eachRight=Ak,G.first=xk,gC(G,(function(){var v={};return Es(G,function(_,x){On.call(G.prototype,x)||(v[x]=_)}),v})(),{chain:!1}),G.VERSION=r,da(["bind","bindKey","curry","curryRight","partial","partialRight"],function(v){G[v].placeholder=G}),da(["drop","take"],function(v,_){cn.prototype[v]=function(x){x=x===n?1:Gr(Zt(x),0);var A=this.__filtered__&&!_?new cn(this):this.clone();return A.__filtered__?A.__takeCount__=Ti(x,A.__takeCount__):A.__views__.push({size:Ti(x,ne),type:v+(A.__dir__<0?"Right":"")}),A},cn.prototype[v+"Right"]=function(x){return this.reverse()[v](x).reverse()}}),da(["filter","map","takeWhile"],function(v,_){var x=_+1,A=x==k||x==B;cn.prototype[v]=function(F){var j=this.clone();return j.__iteratees__.push({iteratee:It(F,3),type:x}),j.__filtered__=j.__filtered__||A,j}}),da(["head","last"],function(v,_){var x="take"+(_?"Right":"");cn.prototype[v]=function(){return this[x](1).value()[0]}}),da(["initial","tail"],function(v,_){var x="drop"+(_?"":"Right");cn.prototype[v]=function(){return this.__filtered__?new cn(this):this[x](1)}}),cn.prototype.compact=function(){return this.filter(vo)},cn.prototype.find=function(v){return this.filter(v).head()},cn.prototype.findLast=function(v){return this.reverse().find(v)},cn.prototype.invokeMap=Jt(function(v,_){return typeof v=="function"?new cn(this):this.map(function(x){return Pv(x,v,_)})}),cn.prototype.reject=function(v){return this.filter(l1(It(v)))},cn.prototype.slice=function(v,_){v=Zt(v);var x=this;return x.__filtered__&&(v>0||_<0)?new cn(x):(v<0?x=x.takeRight(-v):v&&(x=x.drop(v)),_!==n&&(_=Zt(_),x=_<0?x.dropRight(-_):x.take(_-v)),x)},cn.prototype.takeRightWhile=function(v){return this.reverse().takeWhile(v).reverse()},cn.prototype.toArray=function(){return this.take(ne)},Es(cn.prototype,function(v,_){var x=/^(?:filter|find|map|reject)|While$/.test(_),A=/^(?:head|last)$/.test(_),F=G[A?"take"+(_=="last"?"Right":""):_],j=A||/^find/.test(_);F&&(G.prototype[_]=function(){var Q=this.__wrapped__,ie=A?[1]:arguments,he=Q instanceof cn,Ne=ie[0],Fe=he||jt(Q),He=function(rn){var pn=F.apply(G,Iu([rn],ie));return A&&ot?pn[0]:pn};Fe&&x&&typeof Ne=="function"&&Ne.length!=1&&(he=Fe=!1);var ot=this.__chain__,bt=!!this.__actions__.length,Pt=j&&!ot,qt=he&&!bt;if(!j&&Fe){Q=qt?Q:new cn(this);var Rt=v.apply(Q,ie);return Rt.__actions__.push({func:i1,args:[He],thisArg:n}),new pa(Rt,ot)}return Pt&&qt?v.apply(this,ie):(Rt=this.thru(He),Pt?A?Rt.value()[0]:Rt.value():Rt)})}),da(["pop","push","shift","sort","splice","unshift"],function(v){var _=R0[v],x=/^(?:push|sort|unshift)$/.test(v)?"tap":"thru",A=/^(?:pop|shift)$/.test(v);G.prototype[v]=function(){var F=arguments;if(A&&!this.__chain__){var j=this.value();return _.apply(jt(j)?j:[],F)}return this[x](function(Q){return _.apply(jt(Q)?Q:[],F)})}}),Es(cn.prototype,function(v,_){var x=G[_];if(x){var A=x.name+"";On.call(ih,A)||(ih[A]=[]),ih[A].push({name:_,func:x})}}),ih[q0(n,m).name]=[{name:"wrapper",func:n}],cn.prototype.clone=GX,cn.prototype.reverse=WX,cn.prototype.value=jX,G.prototype.at=Sq,G.prototype.chain=wq,G.prototype.commit=xq,G.prototype.next=Tq,G.prototype.plant=Eq,G.prototype.reverse=Iq,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=Aq,G.prototype.first=G.prototype.head,wv&&(G.prototype[wv]=Cq),G}),th=xX();Yc?((Yc.exports=th)._=th,vT._=th):di._=th}).call(Kle)})(Rg,Rg.exports)),Rg.exports}var xr=Zle();const pi=[];for(let e=0;e<256;++e)pi.push((e+256).toString(16).slice(1));function qle(e,t=0){return(pi[e[t+0]]+pi[e[t+1]]+pi[e[t+2]]+pi[e[t+3]]+"-"+pi[e[t+4]]+pi[e[t+5]]+"-"+pi[e[t+6]]+pi[e[t+7]]+"-"+pi[e[t+8]]+pi[e[t+9]]+"-"+pi[e[t+10]]+pi[e[t+11]]+pi[e[t+12]]+pi[e[t+13]]+pi[e[t+14]]+pi[e[t+15]]).toLowerCase()}let UC;const Jle=new Uint8Array(16);function Qle(){if(!UC){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");UC=crypto.getRandomValues.bind(crypto)}return UC(Jle)}const eue=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iF={randomUUID:eue};function Xy(e,t,n){if(iF.randomUUID&&!e)return iF.randomUUID();e=e||{};const r=e.random??e.rng?.()??Qle();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,qle(r)}const Or=Je("setup/api-list",[]),si=Je("setup/active-uuid",""),Cr=ge(()=>Or.value.find(e=>e.uuid===si.value)),tue=e=>{const t=Or.value.find(r=>xr.isEqual(xr.omit(r,"uuid"),e));if(t){si.value=t.uuid;return}const n=Xy();Or.value.push({...e,uuid:n}),si.value=n},nue=(e,t)=>{const n=Or.value.findIndex(r=>r.uuid===e);n!==-1&&(Or.value[n]={...t,uuid:e})},rue=e=>{Or.value=Or.value.filter(t=>t.uuid!==e),ri.value.forEach(t=>{t.scope&&t.scope.includes(e)&&(t.scope=t.scope.filter(n=>n!==e),t.scope.length||delete t.scope)})},bc=Te(zd.ACTIVE),BI=Je("config/connection-sort-type",qi.HOST),pb=Je("config/connection-sort-direction",Vf.ASC),SS=Je("config/quick-filter-regex","direct|dns-out"),UI=Je("config/quick-filter-enabled",!1),wS=Te(""),Us=Te(null),cs=Te([]),um=Te([]),vb=Te(!1),VI=Te(0),HI=Te(0);let oF,Vv=new Map;const iue=()=>{oF?.(),cs.value=[],um.value=[],VI.value=0,HI.value=0,Vv.clear();const e=Lke(),t=mt(e.data,n=>{if(!n||(VI.value=n.downloadTotal,HI.value=n.uploadTotal,vb.value))return;const r=new Map;cs.value=n.connections?.map(i=>{const o=i,a=Vv.get(o.id);return(o.metadata.destinationPort==="443"||o.metadata.sniffHost)&&o.metadata.network==="udp"&&(o.metadata.network="quic"),a?(o.downloadSpeed=o.download-a.download,o.uploadSpeed=o.upload-a.upload):(o.downloadSpeed=0,o.uploadSpeed=0),Vv.delete(o.id),r.set(o.id,o),o})??[],um.value=um.value.concat(Array.from(Vv.values())).slice(-500),Vv=r});Ag.value&&TH(cs,()=>{cs.value.filter(n=>n.metadata.network!=="tcp").forEach(n=>{const r=ui(),i=ui(n.start);r.diff(i,"minute")>q_.value&&mv(n.id)})}),oF=()=>{t(),e.close()}},oue=ge(()=>pb.value===Vf.DESC),aF={[qi.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[qi.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[qi.CHAINS]:(e,t)=>JU(e).localeCompare(JU(t)),[qi.DOWNLOAD]:(e,t)=>e.download-t.download,[qi.DOWNLOAD_SPEED]:(e,t)=>e.downloadSpeed-t.downloadSpeed,[qi.UPLOAD]:(e,t)=>e.upload-t.upload,[qi.UPLOAD_SPEED]:(e,t)=>e.uploadSpeed-t.uploadSpeed,[qi.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[qi.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[qi.CONNECT_TIME]:(e,t)=>ui(e.start).valueOf()-ui(t.start).valueOf(),[qi.INBOUND_USER]:(e,t)=>Iw(e).localeCompare(Iw(t))},cd=ge(()=>bc.value===zd.ACTIVE?cs.value:um.value),Id=ge(()=>{const e=wS.value.split(" ").map(n=>n.toLowerCase().trim());let t=null;return UI.value&&SS.value&&(t=new RegExp(SS.value,"i")),cd.value.filter(n=>{const r=[n.metadata.host,n.metadata.destinationIP,n.metadata.destinationPort,n.metadata.sourceIP,n.metadata.sourcePort,n.metadata.sniffHost,n.metadata.processPath,n.metadata.type,n.metadata.network,n.chains.join(""),n.rule,n.rulePayload];return Us.value!==null&&Us.value.every(i=>i!==n.metadata.sourceIP)||t&&r.some(o=>t.test(o))?!1:wS.value?e.every(i=>r.some(o=>o?.toLowerCase().includes(i))):!0}).sort((n,r)=>{ls.value&&oue.value&&([n,r]=[r,n]);const i=ls.value?aF[BI.value](n,r):aF[qi.HOST](n,r);return i===0?n.id.localeCompare(r.id):i})});function hh(e,t,n){let r=n.initialDeps??[],i;function o(){var a,s,l,u;let c;n.key&&((a=n.debug)!=null&&a.call(n))&&(c=Date.now());const f=e();if(!(f.length!==r.length||f.some((p,g)=>r[g]!==p)))return i;r=f;let d;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(d=Date.now()),i=t(...f),n.key&&((l=n.debug)!=null&&l.call(n))){const p=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-d)*100)/100,y=g/16,m=(b,w)=>{for(b=String(b);b.length<w;)b=" "+b;return b};console.info(`%c⏱ ${m(g,5)} /${m(p,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*y,120))}deg 100% 31%);`,n?.key)}return(u=n?.onChange)==null||u.call(n,i),i}return o.updateDeps=a=>{r=a},o}function sF(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const aue=(e,t)=>Math.abs(e-t)<1.01,sue=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},lF=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},lue=e=>e,uue=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},cue=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=a=>{const{width:s,height:l}=a;t({width:Math.round(s),height:Math.round(l)})};if(i(lF(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const s=()=>{const l=a[0];if(l?.borderBoxSize){const u=l.borderBoxSize[0];if(u){i({width:u.inlineSize,height:u.blockSize});return}}i(lF(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},uF={passive:!0},cF=typeof window>"u"?!0:"onscrollend"in window,fue=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&cF?()=>{}:sue(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=c=>()=>{const{horizontal:f,isRtl:h}=e.options;i=f?n.scrollLeft*(h&&-1||1):n.scrollTop,o(),t(i,c)},s=a(!0),l=a(!1);l(),n.addEventListener("scroll",s,uF);const u=e.options.useScrollendEvent&&cF;return u&&n.addEventListener("scrollend",l,uF),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},due=(e,t,n)=>{if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},hue=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class pue{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{const a=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:lue,rangeExtractor:uue,onChange:()=>{},measureElement:due,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=hh(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((a,s)=>a.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=hh(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a}),{key:!1}),this.getMeasurements=hh(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},s)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const f=o(c),h=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),d=h?h.end+this.options.gap:r+i,p=s.get(f),g=typeof p=="number"?p:this.options.estimateSize(c),y=d+g,m=h?h.lane:c%this.options.lanes;u[c]={index:c,start:d,size:g,end:y,key:f,lane:m}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=hh(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?vue({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=hh(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,o,a)=>o===null||a===null?[]:n({startIndex:o,endIndex:a,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const a=o.key,s=this.elementsCache.get(a);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=hh(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;o<a;o++){const s=n[o],l=r[s];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return sF(r[m8(0,r.length-1,i=>sF(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const o=this.getSize(),a=this.getScrollOffset();r==="auto"&&(r=n>=a+o?"end":"start"),r==="center"?n+=(i-o)/2:r==="end"&&(n-=o);const s=this.getTotalSize()+this.options.scrollMargin-o;return Math.max(Math.min(s,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const s=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),n=Math.max(0,Math.min(n,this.options.count-1));let o=0;const a=10,s=u=>{if(!this.targetWindow)return;const c=this.getOffsetForIndex(n,u);if(!c){console.warn("Failed to get offset for index:",n);return}const[f,h]=c;this._scrollToOffset(f,{adjustments:void 0,behavior:i}),this.targetWindow.requestAnimationFrame(()=>{const d=this.getScrollOffset(),p=this.getOffsetForIndex(n,h);if(!p){console.warn("Failed to get offset for index:",n);return}aue(p[0],d)||l(h)})},l=u=>{this.targetWindow&&(o++,o<a?this.targetWindow.requestAnimationFrame(()=>s(u)):console.warn(`Failed to scroll to index ${n} after ${a} attempts.`))};s(r)},this.scrollBy=(n,{behavior:r}={})=>{r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const o=Array(this.options.lanes).fill(null);let a=r.length-1;for(;a>=0&&o.some(s=>s===null);){const s=r[a];o[s.lane]===null&&(o[s.lane]=s.end),a--}i=Math.max(...o.filter(s=>s!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const m8=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else if(o>r)t=i-1;else return i}return e>0?e-1:0};function vue({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=l=>e[l].start;if(e.length<=r)return{startIndex:0,endIndex:i};let a=m8(0,i,o,n),s=a;if(r===1)for(;s<i&&e[s].end<n+t;)s++;else if(r>1){const l=Array(r).fill(0);for(;s<i&&l.some(c=>c<n+t);){const c=e[s];l[c.lane]=c.end,s++}const u=Array(r).fill(n+t);for(;a>=0&&u.some(c=>c>=n);){const c=e[a];u[c.lane]=c.start,a--}a=Math.max(0,a-a%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:a,endIndex:s}}function gue(e){const t=new pue(L(e)),n=Lr(t),r=t._didMount();return mt(()=>L(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),mt(()=>L(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;nI(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),nI(n)},{immediate:!0}),fR(r),n}function y8(e){return gue(ge(()=>({observeElementRect:cue,observeElementOffset:fue,scrollToFn:hue,...L(e)})))}const mue=["data-index"],rM=Ze({__name:"VirtualScroller",props:{data:{default:()=>[]},size:{default:64},overscan:{default:24}},setup(e){const t=Te(null),n=e,r=ge(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>n.size,overscan:n.overscan})),i=y8(r),o=ge(()=>i.value.getVirtualItems()),a=ge(()=>i.value.getTotalSize()),s=l=>{l&&Zr(()=>{i.value.measureElement(l)})};return(l,u)=>(H(),K("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto p-2"},[R("div",{style:Kn({height:`${a.value}px`}),class:"relative w-full"},[R("div",{class:"absolute top-0 left-0 w-full",style:Kn({transform:`translateY(${o.value[0]?.start??0}px)`})},[(H(!0),K(Ve,null,Yt(o.value,c=>(H(),K("div",{key:c.key.toString(),"data-index":c.index,ref_for:!0,ref:f=>s(f),class:"mb-1"},[eu(l.$slots,"default",{item:l.data[c.index],index:c.index})],8,mue))),128))],4)],4)],512))}}),fF="bounce-in",VC=["scale-85","opacity-0"];function Gd(e=IH()){if(!sd.value||!Z_.value)return;const t=AH(e);Er(()=>{e.value&&(e.value.classList.add(...VC),mt(t,n=>{e.value&&(n?(e.value.classList.add(fF),e.value.classList.remove(...VC)):(e.value.classList.remove(fF),e.value.classList.add(...VC)))},{immediate:!0}))})}const HC=Te(null),dF=Te(!1),iM=()=>({infoConn:HC,connectionDetailModalShow:dF,handlerInfo:async t=>{HC.value=null,await Zr(),HC.value=t,dF.value=!0}}),yue=256,Gf=new Map,cm=new Map,zI=[],_ue=()=>{Gf.clear(),cm.clear(),zI.length=0;for(const{key:e,label:t,scope:n}of ri.value)n&&!n.includes(Cr.value?.uuid)||(e.startsWith("/")?zI.push({regex:new RegExp(e.slice(1),"i"),label:t}):cm.set(e,t))},A1=(e,t)=>{if(Gf.set(e,t),Gf.size>yue){const n=Gf.keys().next().value;n&&Gf.delete(n)}return t};mt(()=>[ri.value,Cr.value],_ue,{immediate:!0,deep:!0});const xS=e=>{if(!e)return e===""?"Inner":"";if(Gf.has(e))return Gf.get(e);if(e.includes(":")){for(const[n,r]of cm.entries())if(e.endsWith(n))return A1(e,r)}else if(cm.has(e))return A1(e,cm.get(e));for(const{regex:n,label:r}of zI)if(n.test(e))return A1(e,r);return A1(e,e)};class bue{value;next;constructor(t){this.value=t}}class Sue{#e;#t;#n;constructor(){this.clear()}enqueue(t){const n=new bue(t);this.#e?(this.#t.next=n,this.#t=n):(this.#e=n,this.#t=n),this.#n++}dequeue(){const t=this.#e;if(t)return this.#e=this.#e.next,this.#n--,t.value}peek(){if(this.#e)return this.#e.value}clear(){this.#e=void 0,this.#t=void 0,this.#n=0}get size(){return this.#n}*[Symbol.iterator](){let t=this.#e;for(;t;)yield t.value,t=t.next}*drain(){for(;this.#e;)yield this.dequeue()}}function wue(e){hF(e);const t=new Sue;let n=0;const r=()=>{n<e&&t.size>0&&(n++,t.dequeue()())},i=()=>{n--,r()},o=async(l,u,c)=>{const f=(async()=>l(...c))();u(f);try{await f}catch{}i()},a=(l,u,c)=>{new Promise(f=>{t.enqueue(f)}).then(o.bind(void 0,l,u,c)),n<e&&r()},s=(l,...u)=>new Promise(c=>{a(l,c,u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(l){hF(l),e=l,queueMicrotask(()=>{for(;n<e&&t.size>0;)r()})}},map:{async value(l,u){const c=l.map((f,h)=>this(u,f,h));return Promise.all(c)}}}),s}function hF(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up")}const vp=Te({}),xue=async e=>{const{data:t}=await bke(e);vp.value[e]=t.weights},Tue=async e=>{const{status:t,data:n}=await _ke();if(t!==200){e.forEach(r=>{xue(r)});return}vp.value=n.weights},TS=Te(""),wo=Te(ta.PROXIES),Ac=Te([]),$n=Te({}),Mp=Je("config/ipv6-map",{}),CS=Je("config/hidden-group-map",{}),ou=Te([]),ES=ge(()=>rb.value||gH),oM=e=>{if(!e||!Hf.value)return ES.value;const t=Ll.value.find(r=>r.name===e);return t?t.url:($n.value[e]||ou.value.find(r=>r.name===e))?.testUrl||ES.value},av=(e,t)=>{const n=aM(e,t);return Pue(n)},aM=(e,t)=>{if(Hf.value&&!oa.value){const r=$n.value[e],i=oM(t);return r?(r?.extra||(r.extra={}),r.extra?.[i]||(r.extra[i]={history:[],alive:!0}),r?.extra?.[i]?.history):[]}return $n.value[Ad(e)]?.history},Cue=e=>Mp.value[Ad(e)];let pF=0;const Fo=async()=>{const e=Date.now();pF=e;const[t,n]=await Promise.all([gke(),Ske()]),r=t.data,i=n.data;if(pF!==e)return;const o=r.proxies[ap].all??[],a={},s=Object.values(i.providers).filter(u=>u.name!=="default"&&u.vehicleType!=="Compatible");for(const u of s)for(const c of u.proxies)a[c.name]=c;$n.value={...a,...r.proxies},Ac.value=Object.values(r.proxies).filter(u=>u.all?.length&&u.name!==ap).sort((u,c)=>{const f=o.indexOf(u.name),h=o.indexOf(c.name);return f===-1&&h===-1?0:f===-1?1:h===-1?-1:f-h}).map(u=>u.name),ou.value=s;const l=[];Object.entries($n.value).forEach(([u,c])=>{const f=Ol.value.find(h=>h.name===u);f&&($n.value[u].icon=f.icon),ld.value&&Rue(c)&&(Mp.value[u]=!0),c.type.toLowerCase()===$r.Smart&&l.push(u)}),l.length>0&&Tue(l)},sM=async(e,t)=>{const n=$n.value[e];n.type.toLowerCase()!==$r.LoadBalance&&(n.now===t&&(await Fo(),n.now===t)||(await mke(e,t),$n.value[e].now=t,ib.value&&cs.value.filter(r=>r.chains.includes(e)).forEach(r=>mv(r.id)),Fo()))},_8=async(e,t,n)=>{const r=Ad(e);if(ld.value)try{const{data:i}=await XU(r,NR,2e3);Mp.value[r]=i.delay>ai}catch{Mp.value[r]=!1}return await XU(Hf.value?e:r,t,n)},Eue=async(e,t=ES.value,n=hp.value)=>{const r=await _8(e,t,n);await Fo(),r.status!==200&&pr({content:"testFailedTip",params:{name:e,url:t},type:"alert-error"})},vF=(e,t)=>{const n=aM(e),r=new Date;n.push({time:r.toISOString(),delay:t})},GI="testLatencyOneByOneWithTip",Iue=wue(5),b8=async(e,t,n=ES.value)=>{const r=t.length;let i=0,o=0;await Promise.allSettled(t.map(a=>Iue(async()=>{const s=await _8(a,n,Math.min(1500,hp.value));s.status!==200?(o++,vF(a,ai)):vF(a,s.data.delay),i++,pr({content:"testFinishedTip",key:GI+e,params:{name:e,url:n,total:r.toString(),number:i.toString()},type:"alert-info",timeout:0})}))),pr({content:"testFinishedResultTip",key:GI+e,params:{name:e,url:n,total:r.toString(),success:`${r-o}`,failed:`${o}`},type:o?"alert-warning":"alert-success",timeout:3e3}),await Fo()},S8=async e=>{const t=$n.value[e],n=t.all??[],r=oM(e);if([$r.Selector,$r.LoadBalance,$r.Smart].includes(t.type.toLowerCase()))return t.fixed&&yke(e),b8(e,n,r);const i=Math.max(5e3,hp.value);if(ld.value)try{const{data:s}=await KU(e,NR,i);n?.forEach(l=>{Mp.value[Ad(l)]=s[l]>ai})}catch{n?.forEach(s=>{Mp.value[Ad(s)]=!1})}await KU(e,r,i),await Fo();const o=n.length,a=n.filter(s=>av(s,e)===ai).length;pr({content:"testFinishedResultTip",key:GI+e,params:{name:e,url:r,total:o.toString(),success:`${o-a}`,failed:`${a}`},type:a?"alert-warning":"alert-success",timeout:3e3})},Aue=async()=>{const e=Object.keys($n.value).filter(t=>!rR(t));return b8("all",e)},Pue=e=>xr.last(e)?.delay??ai,Rue=e=>{const t=e.extra?.[NR]?.history;return(xr.last(t)?.delay??ai)>ai},Ad=e=>{let t=$n.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=$n.value[t.now];if(!n)return t.name;t=n}return t.name},WI=ge(()=>Object.values($n.value).some(e=>e.type.toLowerCase()===$r.Smart));/*! @license DOMPurify 3.2.6 | (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.6/LICENSE */const{entries:w8,setPrototypeOf:gF,isFrozen:Mue,getPrototypeOf:Due,getOwnPropertyDescriptor:Oue}=Object;let{freeze:so,seal:$a,create:x8}=Object,{apply:jI,construct:YI}=typeof Reflect<"u"&&Reflect;so||(so=function(t){return t});$a||($a=function(t){return t});jI||(jI=function(t,n,r){return t.apply(n,r)});YI||(YI=function(t,n){return new t(...n)});const P1=lo(Array.prototype.forEach),Lue=lo(Array.prototype.lastIndexOf),mF=lo(Array.prototype.pop),Hv=lo(Array.prototype.push),kue=lo(Array.prototype.splice),gb=lo(String.prototype.toLowerCase),zC=lo(String.prototype.toString),yF=lo(String.prototype.match),zv=lo(String.prototype.replace),Nue=lo(String.prototype.indexOf),Fue=lo(String.prototype.trim),es=lo(Object.prototype.hasOwnProperty),Yi=lo(RegExp.prototype.test),Gv=$ue(TypeError);function lo(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return jI(e,t,r)}}function $ue(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return YI(e,n)}}function on(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gb;gF&&gF(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Mue(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Bue(e){for(let t=0;t<e.length;t++)es(e,t)||(e[t]=null);return e}function kl(e){const t=x8(null);for(const[n,r]of w8(e))es(e,n)&&(Array.isArray(r)?t[n]=Bue(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=kl(r):t[n]=r);return t}function Wv(e,t){for(;e!==null;){const r=Oue(e,t);if(r){if(r.get)return lo(r.get);if(typeof r.value=="function")return lo(r.value)}e=Due(e)}function n(){return null}return n}const _F=so(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),GC=so(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),WC=so(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Uue=so(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),jC=so(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Vue=so(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),bF=so(["#text"]),SF=so(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),YC=so(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),wF=so(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),R1=so(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Hue=$a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zue=$a(/<%[\w\W]*|[\w\W]*%>/gm),Gue=$a(/\$\{[\w\W]*/gm),Wue=$a(/^data-[\-\w.\u00B7-\uFFFF]+$/),jue=$a(/^aria-[\-\w]+$/),T8=$a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yue=$a(/^(?:\w+script|data):/i),Xue=$a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),C8=$a(/^html$/i),Kue=$a(/^[a-z][.\w]*(-[.\w]+)+$/i);var xF=Object.freeze({__proto__:null,ARIA_ATTR:jue,ATTR_WHITESPACE:Xue,CUSTOM_ELEMENT:Kue,DATA_ATTR:Wue,DOCTYPE_NAME:C8,ERB_EXPR:zue,IS_ALLOWED_URI:T8,IS_SCRIPT_OR_DATA:Yue,MUSTACHE_EXPR:Hue,TMPLIT_EXPR:Gue});const jv={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zue=function(){return typeof window>"u"?null:window},que=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},TF=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function E8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zue();const t=xt=>E8(xt);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==jv.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,p=l.prototype,g=Wv(p,"cloneNode"),y=Wv(p,"remove"),m=Wv(p,"nextSibling"),b=Wv(p,"childNodes"),w=Wv(p,"parentNode");if(typeof a=="function"){const xt=n.createElement("template");xt.content&&xt.content.ownerDocument&&(n=xt.content.ownerDocument)}let S,C="";const{implementation:T,createNodeIterator:E,createDocumentFragment:P,getElementsByTagName:I}=n,{importNode:D}=r;let O=TF();t.isSupported=typeof w8=="function"&&typeof w=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:N,ERB_EXPR:M,TMPLIT_EXPR:k,DATA_ATTR:V,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:J}=xF;let{IS_ALLOWED_URI:ae}=xF,ne=null;const _e=on({},[..._F,...GC,...WC,...jC,...bF]);let me=null;const Me=on({},[...SF,...YC,...wF,...R1]);let Re=Object.seal(x8(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}})),ke=null,oe=null,Ee=!0,we=!0,Ae=!1,Oe=!0,Ue=!1,Y=!0,X=!1,de=!1,Ie=!1,be=!1,W=!1,Z=!1,re=!0,pe=!1;const Ce="user-content-";let $e=!0,te=!1,ve={},je=null;const nt=on({},["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 Tt=null;const se=on({},["audio","video","img","source","image","track"]);let ce=null;const ye=on({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",ue="http://www.w3.org/1999/xhtml";let Le=ue,ze=!1,lt=null;const Ke=on({},[De,Xe,ue],zC);let qe=on({},["mi","mo","mn","ms","mtext"]),ut=on({},["annotation-xml"]);const Nt=on({},["title","style","font","a","script"]);let Ut=null;const Gn=["application/xhtml+xml","text/html"],Ha="text/html";let Un=null,kr=null;const Xd=n.createElement("form"),Tu=function(le){return le instanceof RegExp||le instanceof Function},Cs=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kr&&kr===le)){if((!le||typeof le!="object")&&(le={}),le=kl(le),Ut=Gn.indexOf(le.PARSER_MEDIA_TYPE)===-1?Ha:le.PARSER_MEDIA_TYPE,Un=Ut==="application/xhtml+xml"?zC:gb,ne=es(le,"ALLOWED_TAGS")?on({},le.ALLOWED_TAGS,Un):_e,me=es(le,"ALLOWED_ATTR")?on({},le.ALLOWED_ATTR,Un):Me,lt=es(le,"ALLOWED_NAMESPACES")?on({},le.ALLOWED_NAMESPACES,zC):Ke,ce=es(le,"ADD_URI_SAFE_ATTR")?on(kl(ye),le.ADD_URI_SAFE_ATTR,Un):ye,Tt=es(le,"ADD_DATA_URI_TAGS")?on(kl(se),le.ADD_DATA_URI_TAGS,Un):se,je=es(le,"FORBID_CONTENTS")?on({},le.FORBID_CONTENTS,Un):nt,ke=es(le,"FORBID_TAGS")?on({},le.FORBID_TAGS,Un):kl({}),oe=es(le,"FORBID_ATTR")?on({},le.FORBID_ATTR,Un):kl({}),ve=es(le,"USE_PROFILES")?le.USE_PROFILES:!1,Ee=le.ALLOW_ARIA_ATTR!==!1,we=le.ALLOW_DATA_ATTR!==!1,Ae=le.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ue=le.SAFE_FOR_TEMPLATES||!1,Y=le.SAFE_FOR_XML!==!1,X=le.WHOLE_DOCUMENT||!1,be=le.RETURN_DOM||!1,W=le.RETURN_DOM_FRAGMENT||!1,Z=le.RETURN_TRUSTED_TYPE||!1,Ie=le.FORCE_BODY||!1,re=le.SANITIZE_DOM!==!1,pe=le.SANITIZE_NAMED_PROPS||!1,$e=le.KEEP_CONTENT!==!1,te=le.IN_PLACE||!1,ae=le.ALLOWED_URI_REGEXP||T8,Le=le.NAMESPACE||ue,qe=le.MATHML_TEXT_INTEGRATION_POINTS||qe,ut=le.HTML_INTEGRATION_POINTS||ut,Re=le.CUSTOM_ELEMENT_HANDLING||{},le.CUSTOM_ELEMENT_HANDLING&&Tu(le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Re.tagNameCheck=le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),le.CUSTOM_ELEMENT_HANDLING&&Tu(le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Re.attributeNameCheck=le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),le.CUSTOM_ELEMENT_HANDLING&&typeof le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Re.allowCustomizedBuiltInElements=le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(we=!1),W&&(be=!0),ve&&(ne=on({},bF),me=[],ve.html===!0&&(on(ne,_F),on(me,SF)),ve.svg===!0&&(on(ne,GC),on(me,YC),on(me,R1)),ve.svgFilters===!0&&(on(ne,WC),on(me,YC),on(me,R1)),ve.mathMl===!0&&(on(ne,jC),on(me,wF),on(me,R1))),le.ADD_TAGS&&(ne===_e&&(ne=kl(ne)),on(ne,le.ADD_TAGS,Un)),le.ADD_ATTR&&(me===Me&&(me=kl(me)),on(me,le.ADD_ATTR,Un)),le.ADD_URI_SAFE_ATTR&&on(ce,le.ADD_URI_SAFE_ATTR,Un),le.FORBID_CONTENTS&&(je===nt&&(je=kl(je)),on(je,le.FORBID_CONTENTS,Un)),$e&&(ne["#text"]=!0),X&&on(ne,["html","head","body"]),ne.table&&(on(ne,["tbody"]),delete ke.tbody),le.TRUSTED_TYPES_POLICY){if(typeof le.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof le.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=le.TRUSTED_TYPES_POLICY,C=S.createHTML("")}else S===void 0&&(S=que(d,i)),S!==null&&typeof C=="string"&&(C=S.createHTML(""));so&&so(le),kr=le}},y0=on({},[...GC,...WC,...Uue]),Kd=on({},[...jC,...Vue]),lT=function(le){let Ye=w(le);(!Ye||!Ye.tagName)&&(Ye={namespaceURI:Le,tagName:"template"});const yt=gb(le.tagName),Dn=gb(Ye.tagName);return lt[le.namespaceURI]?le.namespaceURI===Xe?Ye.namespaceURI===ue?yt==="svg":Ye.namespaceURI===De?yt==="svg"&&(Dn==="annotation-xml"||qe[Dn]):!!y0[yt]:le.namespaceURI===De?Ye.namespaceURI===ue?yt==="math":Ye.namespaceURI===Xe?yt==="math"&&ut[Dn]:!!Kd[yt]:le.namespaceURI===ue?Ye.namespaceURI===Xe&&!ut[Dn]||Ye.namespaceURI===De&&!qe[Dn]?!1:!Kd[yt]&&(Nt[yt]||!y0[yt]):!!(Ut==="application/xhtml+xml"&&lt[le.namespaceURI]):!1},co=function(le){Hv(t.removed,{element:le});try{w(le).removeChild(le)}catch{y(le)}},Cu=function(le,Ye){try{Hv(t.removed,{attribute:Ye.getAttributeNode(le),from:Ye})}catch{Hv(t.removed,{attribute:null,from:Ye})}if(Ye.removeAttribute(le),le==="is")if(be||W)try{co(Ye)}catch{}else try{Ye.setAttribute(le,"")}catch{}},_0=function(le){let Ye=null,yt=null;if(Ie)le="<remove></remove>"+le;else{const ar=yF(le,/^[\r\n\t ]+/);yt=ar&&ar[0]}Ut==="application/xhtml+xml"&&Le===ue&&(le='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+le+"</body></html>");const Dn=S?S.createHTML(le):le;if(Le===ue)try{Ye=new h().parseFromString(Dn,Ut)}catch{}if(!Ye||!Ye.documentElement){Ye=T.createDocument(Le,"template",null);try{Ye.documentElement.innerHTML=ze?C:Dn}catch{}}const Qr=Ye.body||Ye.documentElement;return le&&yt&&Qr.insertBefore(n.createTextNode(yt),Qr.childNodes[0]||null),Le===ue?I.call(Ye,X?"html":"body")[0]:X?Ye.documentElement:Qr},b0=function(le){return E.call(le.ownerDocument||le,le,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},yv=function(le){return le instanceof f&&(typeof le.nodeName!="string"||typeof le.textContent!="string"||typeof le.removeChild!="function"||!(le.attributes instanceof c)||typeof le.removeAttribute!="function"||typeof le.setAttribute!="function"||typeof le.namespaceURI!="string"||typeof le.insertBefore!="function"||typeof le.hasChildNodes!="function")},S0=function(le){return typeof s=="function"&&le instanceof s};function za(xt,le,Ye){P1(xt,yt=>{yt.call(t,le,Ye,kr)})}const w0=function(le){let Ye=null;if(za(O.beforeSanitizeElements,le,null),yv(le))return co(le),!0;const yt=Un(le.nodeName);if(za(O.uponSanitizeElement,le,{tagName:yt,allowedTags:ne}),Y&&le.hasChildNodes()&&!S0(le.firstElementChild)&&Yi(/<[/\w!]/g,le.innerHTML)&&Yi(/<[/\w!]/g,le.textContent)||le.nodeType===jv.progressingInstruction||Y&&le.nodeType===jv.comment&&Yi(/<[/\w]/g,le.data))return co(le),!0;if(!ne[yt]||ke[yt]){if(!ke[yt]&&_v(yt)&&(Re.tagNameCheck instanceof RegExp&&Yi(Re.tagNameCheck,yt)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(yt)))return!1;if($e&&!je[yt]){const Dn=w(le)||le.parentNode,Qr=b(le)||le.childNodes;if(Qr&&Dn){const ar=Qr.length;for(let xi=ar-1;xi>=0;--xi){const Ga=g(Qr[xi],!0);Ga.__removalCount=(le.__removalCount||0)+1,Dn.insertBefore(Ga,m(le))}}}return co(le),!0}return le instanceof l&&!lT(le)||(yt==="noscript"||yt==="noembed"||yt==="noframes")&&Yi(/<\/no(script|embed|frames)/i,le.innerHTML)?(co(le),!0):(Ue&&le.nodeType===jv.text&&(Ye=le.textContent,P1([N,M,k],Dn=>{Ye=zv(Ye,Dn," ")}),le.textContent!==Ye&&(Hv(t.removed,{element:le.cloneNode()}),le.textContent=Ye)),za(O.afterSanitizeElements,le,null),!1)},x0=function(le,Ye,yt){if(re&&(Ye==="id"||Ye==="name")&&(yt in n||yt in Xd))return!1;if(!(we&&!oe[Ye]&&Yi(V,Ye))){if(!(Ee&&Yi(B,Ye))){if(!me[Ye]||oe[Ye]){if(!(_v(le)&&(Re.tagNameCheck instanceof RegExp&&Yi(Re.tagNameCheck,le)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(le))&&(Re.attributeNameCheck instanceof RegExp&&Yi(Re.attributeNameCheck,Ye)||Re.attributeNameCheck instanceof Function&&Re.attributeNameCheck(Ye))||Ye==="is"&&Re.allowCustomizedBuiltInElements&&(Re.tagNameCheck instanceof RegExp&&Yi(Re.tagNameCheck,yt)||Re.tagNameCheck instanceof Function&&Re.tagNameCheck(yt))))return!1}else if(!ce[Ye]){if(!Yi(ae,zv(yt,$,""))){if(!((Ye==="src"||Ye==="xlink:href"||Ye==="href")&&le!=="script"&&Nue(yt,"data:")===0&&Tt[le])){if(!(Ae&&!Yi(U,zv(yt,$,"")))){if(yt)return!1}}}}}}return!0},_v=function(le){return le!=="annotation-xml"&&yF(le,J)},T0=function(le){za(O.beforeSanitizeAttributes,le,null);const{attributes:Ye}=le;if(!Ye||yv(le))return;const yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0};let Dn=Ye.length;for(;Dn--;){const Qr=Ye[Dn],{name:ar,namespaceURI:xi,value:Ga}=Qr,jc=Un(ar),Zd=Ga;let Hr=ar==="value"?Zd:Fue(Zd);if(yt.attrName=jc,yt.attrValue=Hr,yt.keepAttr=!0,yt.forceKeepAttr=void 0,za(O.uponSanitizeAttribute,le,yt),Hr=yt.attrValue,pe&&(jc==="id"||jc==="name")&&(Cu(ar,le),Hr=Ce+Hr),Y&&Yi(/((--!?|])>)|<\/(style|title)/i,Hr)){Cu(ar,le);continue}if(yt.forceKeepAttr)continue;if(!yt.keepAttr){Cu(ar,le);continue}if(!Oe&&Yi(/\/>/i,Hr)){Cu(ar,le);continue}Ue&&P1([N,M,k],C0=>{Hr=zv(Hr,C0," ")});const bv=Un(le.nodeName);if(!x0(bv,jc,Hr)){Cu(ar,le);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!xi)switch(d.getAttributeType(bv,jc)){case"TrustedHTML":{Hr=S.createHTML(Hr);break}case"TrustedScriptURL":{Hr=S.createScriptURL(Hr);break}}if(Hr!==Zd)try{xi?le.setAttributeNS(xi,ar,Hr):le.setAttribute(ar,Hr),yv(le)?co(le):mF(t.removed)}catch{Cu(ar,le)}}za(O.afterSanitizeAttributes,le,null)},uT=function xt(le){let Ye=null;const yt=b0(le);for(za(O.beforeSanitizeShadowDOM,le,null);Ye=yt.nextNode();)za(O.uponSanitizeShadowNode,Ye,null),w0(Ye),T0(Ye),Ye.content instanceof o&&xt(Ye.content);za(O.afterSanitizeShadowDOM,le,null)};return t.sanitize=function(xt){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=null,yt=null,Dn=null,Qr=null;if(ze=!xt,ze&&(xt="<!-->"),typeof xt!="string"&&!S0(xt))if(typeof xt.toString=="function"){if(xt=xt.toString(),typeof xt!="string")throw Gv("dirty is not a string, aborting")}else throw Gv("toString is not a function");if(!t.isSupported)return xt;if(de||Cs(le),t.removed=[],typeof xt=="string"&&(te=!1),te){if(xt.nodeName){const Ga=Un(xt.nodeName);if(!ne[Ga]||ke[Ga])throw Gv("root node is forbidden and cannot be sanitized in-place")}}else if(xt instanceof s)Ye=_0("<!---->"),yt=Ye.ownerDocument.importNode(xt,!0),yt.nodeType===jv.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?Ye=yt:Ye.appendChild(yt);else{if(!be&&!Ue&&!X&&xt.indexOf("<")===-1)return S&&Z?S.createHTML(xt):xt;if(Ye=_0(xt),!Ye)return be?null:Z?C:""}Ye&&Ie&&co(Ye.firstChild);const ar=b0(te?xt:Ye);for(;Dn=ar.nextNode();)w0(Dn),T0(Dn),Dn.content instanceof o&&uT(Dn.content);if(te)return xt;if(be){if(W)for(Qr=P.call(Ye.ownerDocument);Ye.firstChild;)Qr.appendChild(Ye.firstChild);else Qr=Ye;return(me.shadowroot||me.shadowrootmode)&&(Qr=D.call(r,Qr,!0)),Qr}let xi=X?Ye.outerHTML:Ye.innerHTML;return X&&ne["!doctype"]&&Ye.ownerDocument&&Ye.ownerDocument.doctype&&Ye.ownerDocument.doctype.name&&Yi(C8,Ye.ownerDocument.doctype.name)&&(xi="<!DOCTYPE "+Ye.ownerDocument.doctype.name+`>
`+xi),Ue&&P1([N,M,k],Ga=>{xi=zv(xi,Ga," ")}),S&&Z?S.createHTML(xi):xi},t.setConfig=function(){let xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Cs(xt),de=!0},t.clearConfig=function(){kr=null,de=!1},t.isValidAttribute=function(xt,le,Ye){kr||Cs({});const yt=Un(xt),Dn=Un(le);return x0(yt,Dn,Ye)},t.addHook=function(xt,le){typeof le=="function"&&Hv(O[xt],le)},t.removeHook=function(xt,le){if(le!==void 0){const Ye=Lue(O[xt],le);return Ye===-1?void 0:kue(O[xt],Ye,1)[0]}return mF(O[xt])},t.removeHooks=function(xt){O[xt]=[]},t.removeAllHooks=function(){O=TF()},t}var Jue=E8();const Que=["innerHTML"],ece=["src"],CF="data:image/svg+xml,",sx=Ze({__name:"ProxyIcon",props:{icon:{},fill:{},size:{default:16},margin:{default:4}},setup(e){const t=e,n=ge(()=>({width:`${t.size}px`,height:`${t.size}px`,marginRight:`${t.margin}px`})),r=ge(()=>t.icon.startsWith(CF)),i=ge(()=>{if(r.value)return Jue.sanitize(t.icon.replace(CF,""))});return(o,a)=>r.value?(H(),K("div",{key:0,class:ct(["inline-block",o.fill||"fill-primary"]),style:Kn(n.value),innerHTML:i.value},null,14,Que)):(H(),K("img",{key:1,style:Kn(n.value),src:o.icon},null,12,ece))}}),tce={class:"flex shrink-0 items-center"},gu=Ze({__name:"ProxyName",props:{name:{},iconSize:{default:16},iconMargin:{default:4}},setup(e){const t=e,n=ge(()=>$n.value[t.name]?.icon);return(r,i)=>(H(),K("div",tce,[n.value?(H(),it(sx,{key:0,icon:n.value,margin:r.iconMargin,size:r.iconSize},null,8,["icon","margin","size"])):Ge("",!0),Be(" "+q(r.name),1)]))}}),nce=Ze({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=iM();return Gd(),()=>{const n=e.conn,r=n.metadata,i={[We.Host]:z("span",{class:"text-main w-80 grow truncate"},[SY(n)]),[We.Destination]:z("span",{class:"w-80 grow truncate break-all"},[PO(n)]),[We.RemoteAddress]:z("span",{class:"w-80 grow truncate break-all"},[n.metadata.remoteDestination||"-"]),[We.SourceIP]:z("span",{class:"w-40 grow truncate break-all"},[xS(r.sourceIP)]),[We.SourcePort]:z("span",{class:"w-20 grow truncate break-all"},[r.sourcePort]),[We.SniffHost]:z("span",{class:"w-80 grow truncate break-all"},[r.sniffHost||"-"]),[We.Type]:z("span",{class:"w-60 grow truncate break-all"},[TY(n)]),[We.Rule]:z("span",{class:"w-80 grow truncate break-all"},[n.rule,n.rulePayload&&z(Ve,null,[Be(": "),n.rulePayload])]),[We.Process]:z("span",{class:"w-60 grow truncate break-all"},[wY(n)]),[We.Chains]:z("span",{class:["flex w-80 grow items-center gap-1 truncate break-all",ud.value===Cd.REVERSE&&"flex-row-reverse justify-end"]},[z(gu,{name:xr.last(n.chains)},null),xr.last(n.chains)!==xr.first(n.chains)&&z(Ve,null,[z(aa,{class:"h-4 w-4 shrink-0"},null),z(gu,{name:xr.first(n.chains)},null)])]),[We.Outbound]:z("span",{class:"w-60 grow truncate break-all"},[n.chains[0]]),[We.Download]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[nr(n.download),z(Tie,{class:"text-success h-4 w-4"},null)]),[We.Upload]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[nr(n.upload),z(Iie,{class:"text-info h-4 w-4"},null)]),[We.DlSpeed]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[nr(n.downloadSpeed),Be("/s"),z(Yw,{class:"text-success h-4 w-4"},null)]),[We.UlSpeed]:z("div",{class:"flex items-center gap-1 whitespace-nowrap"},[nr(n.uploadSpeed),Be("/s"),z(Vy,{class:"text-info h-4 w-4"},null)]),[We.ConnectTime]:z("div",{class:"gap-1 whitespace-nowrap"},[tx(n.start)]),[We.DestinationType]:z("div",{class:"gap-1 whitespace-nowrap"},[xY(n)]),[We.InboundUser]:z("div",{class:"gap-1 whitespace-nowrap"},[Iw(n)]),[We.Close]:z("button",{class:"btn btn-circle btn-xs",onClick:o=>{o.stopPropagation(),mv(n.id)}},[z(nu,{class:"h-4 w-4"},null)])};return z("div",{class:"card cursor-pointer gap-1 p-1 md:p-2",onClick:()=>t(n)},[xa.value.map(o=>z("div",{class:"flex h-5 items-center gap-1 text-sm"},[o.filter(a=>a!==We.Close||bc.value!==zd.CLOSED).map(a=>i[a])]))])}}}),rce={key:0,class:"card m-2 flex-row p-2 text-sm"},ice=Ze({__name:"ConnectionCardList",setup(e){const t=ge(()=>xa.value.length*28+4);return(n,r)=>L(Id).length?(H(),it(rM,{key:1,data:L(Id),size:t.value},{default:gn(({item:i})=>[z(L(nce),{conn:i},null,8,["conn"])]),_:1},8,["data","size"])):(H(),K("div",rce,q(n.$t("noContent")),1))}}),oce=async()=>await(await fetch("https://myip.ipip.net/json?t="+Date.now())).json(),ace=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:"")+"?t="+Date.now())).json(),sce=async(e="")=>await(await fetch("https://ipwho.is"+(e?`/${e}`:"")+"?t="+Date.now())).json(),lce=async(e="")=>await(await fetch("https://api.ipapi.is"+(e?`/?q=${e}`:"")+(e?"&":"?")+"t="+Date.now())).json(),lM=async(e="")=>{switch(dp.value){case sp.IPAPI:const t=await lce(e);return{ip:t.ip,country:t.location.country,region:t.location.state,city:t.location.city,asn:t.asn.asn.toString(),organization:t.asn.org};case sp.IPWHOIS:const n=await sce(e);return{ip:n.ip,region:n.region,country:n.country,city:n.city,asn:n.connection.asn.toString(),organization:n.connection.org};case sp.IPSB:default:const r=await ace(e);return{ip:r.ip,country:r.country,region:r.region,city:r.city,asn:r.asn.toString(),organization:r.organization}}},uce={method:"dialog"},cce={class:"btn btn-circle btn-ghost btn-xs absolute top-1 right-1 z-10"},dl=Ze({__name:"DialogWrapper",props:sS({noPadding:{type:Boolean}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Te(),n=Hd(e,"modelValue");return mt(n,r=>{r?t.value?.showModal():t.value?.close()}),(r,i)=>(H(),K("dialog",{ref_key:"modalRef",ref:t,class:"modal",onClose:i[0]||(i[0]=o=>n.value=!1)},[R("form",{method:"dialog",class:ct(["modal-backdrop w-screen transition-[backdrop-filter]",n.value?"backdrop-blur-sm":"backdrop-blur-none"])},[...i[1]||(i[1]=[R("button",{class:"!outline-none"},"close",-1)])],2),R("div",{class:ct(["modal-box relative max-h-[90dvh] overflow-hidden p-0 max-md:max-h-[70dvh]",L(iu)<5&&"backdrop-blur-sm!"])},[R("form",uce,[R("button",cce,[z(L(nu),{class:"h-4 w-4"})])]),n.value?(H(),K("div",{key:0,class:ct(["max-h-[90dvh] overflow-y-auto max-md:max-h-[70dvh]",r.noPadding?"p-0":"p-4"])},[eu(r.$slots,"default")],2)):Ge("",!0)],2)],544))}});var mb={exports:{}},fce=mb.exports,EF;function dce(){return EF||(EF=1,(function(e){(function(t){const n="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${n}\\.${n}\\.${n}\\.${n}$`,"i"),threeOctet:new RegExp(`^${n}\\.${n}\\.${n}$`,"i"),twoOctet:new RegExp(`^${n}\\.${n}$`,"i"),longValue:new RegExp(`^${n}$`,"i")},i=new RegExp("^0[0-7]+$","i"),o=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",l={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${n}\\.${n}\\.${n}\\.${n}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${n}\\.${n}\\.${n}\\.${n}(${a})?$`,"i")};function u(p,g){if(p.indexOf("::")!==p.lastIndexOf("::"))return null;let y=0,m=-1,b=(p.match(l.zoneIndex)||[])[0],w,S;for(b&&(b=b.substring(1),p=p.replace(/%.+$/,""));(m=p.indexOf(":",m+1))>=0;)y++;if(p.substr(0,2)==="::"&&y--,p.substr(-2,2)==="::"&&y--,y>g)return null;for(S=g-y,w=":";S--;)w+="0:";return p=p.replace("::",w),p[0]===":"&&(p=p.slice(1)),p[p.length-1]===":"&&(p=p.slice(0,-1)),g=(function(){const C=p.split(":"),T=[];for(let E=0;E<C.length;E++)T.push(parseInt(C[E],16));return T})(),{parts:g,zoneId:b}}function c(p,g,y,m){if(p.length!==g.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let b=0,w;for(;m>0;){if(w=y-m,w<0&&(w=0),p[b]>>w!==g[b]>>w)return!1;m-=y,b+=1}return!0}function f(p){if(o.test(p))return parseInt(p,16);if(p[0]==="0"&&!isNaN(parseInt(p[1],10))){if(i.test(p))return parseInt(p,8);throw new Error(`ipaddr: cannot parse ${p} as octal`)}return parseInt(p,10)}function h(p,g){for(;p.length<g;)p=`0${p}`;return p}const d={};d.IPv4=(function(){function p(g){if(g.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let y,m;for(y=0;y<g.length;y++)if(m=g[y],!(0<=m&&m<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=g}return p.prototype.SpecialRanges={unspecified:[[new p([0,0,0,0]),8]],broadcast:[[new p([255,255,255,255]),32]],multicast:[[new p([224,0,0,0]),4]],linkLocal:[[new p([169,254,0,0]),16]],loopback:[[new p([127,0,0,0]),8]],carrierGradeNat:[[new p([100,64,0,0]),10]],private:[[new p([10,0,0,0]),8],[new p([172,16,0,0]),12],[new p([192,168,0,0]),16]],reserved:[[new p([192,0,0,0]),24],[new p([192,0,2,0]),24],[new p([192,88,99,0]),24],[new p([198,18,0,0]),15],[new p([198,51,100,0]),24],[new p([203,0,113,0]),24],[new p([240,0,0,0]),4]],as112:[[new p([192,175,48,0]),24],[new p([192,31,196,0]),24]],amt:[[new p([192,52,193,0]),24]]},p.prototype.kind=function(){return"ipv4"},p.prototype.match=function(g,y){let m;if(y===void 0&&(m=g,g=m[0],y=m[1]),g.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return c(this.octets,g.octets,8,y)},p.prototype.prefixLengthFromSubnetMask=function(){let g=0,y=!1;const m={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let b,w,S;for(b=3;b>=0;b-=1)if(w=this.octets[b],w in m){if(S=m[w],y&&S!==0)return null;S!==8&&(y=!0),g+=S}else return null;return 32-g},p.prototype.range=function(){return d.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){return this.octets.slice(0)},p.prototype.toIPv4MappedAddress=function(){return d.IPv6.parse(`::ffff:${this.toString()}`)},p.prototype.toNormalizedString=function(){return this.toString()},p.prototype.toString=function(){return this.octets.join(".")},p})(),d.IPv4.broadcastAddressFromCIDR=function(p){try{const g=this.parseCIDR(p),y=g[0].toByteArray(),m=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),b=[];let w=0;for(;w<4;)b.push(parseInt(y[w],10)|parseInt(m[w],10)^255),w++;return new this(b)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},d.IPv4.isIPv4=function(p){return this.parser(p)!==null},d.IPv4.isValid=function(p){try{return new this(this.parser(p)),!0}catch{return!1}},d.IPv4.isValidCIDR=function(p){try{return this.parseCIDR(p),!0}catch{return!1}},d.IPv4.isValidFourPartDecimal=function(p){return!!(d.IPv4.isValid(p)&&p.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},d.IPv4.networkAddressFromCIDR=function(p){let g,y,m,b,w;try{for(g=this.parseCIDR(p),m=g[0].toByteArray(),w=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),b=[],y=0;y<4;)b.push(parseInt(m[y],10)&parseInt(w[y],10)),y++;return new this(b)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},d.IPv4.parse=function(p){const g=this.parser(p);if(g===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(g)},d.IPv4.parseCIDR=function(p){let g;if(g=p.match(/^(.+)\/(\d+)$/)){const y=parseInt(g[2]);if(y>=0&&y<=32){const m=[this.parse(g[1]),y];return Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},d.IPv4.parser=function(p){let g,y,m;if(g=p.match(r.fourOctet))return(function(){const b=g.slice(1,6),w=[];for(let S=0;S<b.length;S++)y=b[S],w.push(f(y));return w})();if(g=p.match(r.longValue)){if(m=f(g[1]),m>4294967295||m<0)throw new Error("ipaddr: address outside defined range");return(function(){const b=[];let w;for(w=0;w<=24;w+=8)b.push(m>>w&255);return b})().reverse()}else return(g=p.match(r.twoOctet))?(function(){const b=g.slice(1,4),w=[];if(m=f(b[1]),m>16777215||m<0)throw new Error("ipaddr: address outside defined range");return w.push(f(b[0])),w.push(m>>16&255),w.push(m>>8&255),w.push(m&255),w})():(g=p.match(r.threeOctet))?(function(){const b=g.slice(1,5),w=[];if(m=f(b[2]),m>65535||m<0)throw new Error("ipaddr: address outside defined range");return w.push(f(b[0])),w.push(f(b[1])),w.push(m>>8&255),w.push(m&255),w})():null},d.IPv4.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>32)throw new Error("ipaddr: invalid IPv4 prefix length");const g=[0,0,0,0];let y=0;const m=Math.floor(p/8);for(;y<m;)g[y]=255,y++;return m<4&&(g[m]=Math.pow(2,p%8)-1<<8-p%8),new this(g)},d.IPv6=(function(){function p(g,y){let m,b;if(g.length===16)for(this.parts=[],m=0;m<=14;m+=2)this.parts.push(g[m]<<8|g[m+1]);else if(g.length===8)this.parts=g;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(m=0;m<this.parts.length;m++)if(b=this.parts[m],!(0<=b&&b<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");y&&(this.zoneId=y)}return p.prototype.SpecialRanges={unspecified:[new p([0,0,0,0,0,0,0,0]),128],linkLocal:[new p([65152,0,0,0,0,0,0,0]),10],multicast:[new p([65280,0,0,0,0,0,0,0]),8],loopback:[new p([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new p([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new p([0,0,0,0,0,65535,0,0]),96],discard:[new p([256,0,0,0,0,0,0,0]),64],rfc6145:[new p([0,0,0,0,65535,0,0,0]),96],rfc6052:[new p([100,65435,0,0,0,0,0,0]),96],"6to4":[new p([8194,0,0,0,0,0,0,0]),16],teredo:[new p([8193,0,0,0,0,0,0,0]),32],benchmarking:[new p([8193,2,0,0,0,0,0,0]),48],amt:[new p([8193,3,0,0,0,0,0,0]),32],as112v6:[[new p([8193,4,274,0,0,0,0,0]),48],[new p([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new p([8193,16,0,0,0,0,0,0]),28],orchid2:[new p([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new p([8193,48,0,0,0,0,0,0]),28],reserved:[[new p([8193,0,0,0,0,0,0,0]),23],[new p([8193,3512,0,0,0,0,0,0]),32]]},p.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},p.prototype.kind=function(){return"ipv6"},p.prototype.match=function(g,y){let m;if(y===void 0&&(m=g,g=m[0],y=m[1]),g.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return c(this.parts,g.parts,16,y)},p.prototype.prefixLengthFromSubnetMask=function(){let g=0,y=!1;const m={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let b,w;for(let S=7;S>=0;S-=1)if(b=this.parts[S],b in m){if(w=m[b],y&&w!==0)return null;w!==16&&(y=!0),g+=w}else return null;return 128-g},p.prototype.range=function(){return d.subnetMatch(this,this.SpecialRanges)},p.prototype.toByteArray=function(){let g;const y=[],m=this.parts;for(let b=0;b<m.length;b++)g=m[b],y.push(g>>8),y.push(g&255);return y},p.prototype.toFixedLengthString=function(){const g=(function(){const m=[];for(let b=0;b<this.parts.length;b++)m.push(h(this.parts[b].toString(16),4));return m}).call(this).join(":");let y="";return this.zoneId&&(y=`%${this.zoneId}`),g+y},p.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const g=this.parts.slice(-2),y=g[0],m=g[1];return new d.IPv4([y>>8,y&255,m>>8,m&255])},p.prototype.toNormalizedString=function(){const g=(function(){const m=[];for(let b=0;b<this.parts.length;b++)m.push(this.parts[b].toString(16));return m}).call(this).join(":");let y="";return this.zoneId&&(y=`%${this.zoneId}`),g+y},p.prototype.toRFC5952String=function(){const g=/((^|:)(0(:|$)){2,})/g,y=this.toNormalizedString();let m=0,b=-1,w;for(;w=g.exec(y);)w[0].length>b&&(m=w.index,b=w[0].length);return b<0?y:`${y.substring(0,m)}::${y.substring(m+b)}`},p.prototype.toString=function(){return this.toRFC5952String()},p})(),d.IPv6.broadcastAddressFromCIDR=function(p){try{const g=this.parseCIDR(p),y=g[0].toByteArray(),m=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),b=[];let w=0;for(;w<16;)b.push(parseInt(y[w],10)|parseInt(m[w],10)^255),w++;return new this(b)}catch(g){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${g})`)}},d.IPv6.isIPv6=function(p){return this.parser(p)!==null},d.IPv6.isValid=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{const g=this.parser(p);return new this(g.parts,g.zoneId),!0}catch{return!1}},d.IPv6.isValidCIDR=function(p){if(typeof p=="string"&&p.indexOf(":")===-1)return!1;try{return this.parseCIDR(p),!0}catch{return!1}},d.IPv6.networkAddressFromCIDR=function(p){let g,y,m,b,w;try{for(g=this.parseCIDR(p),m=g[0].toByteArray(),w=this.subnetMaskFromPrefixLength(g[1]).toByteArray(),b=[],y=0;y<16;)b.push(parseInt(m[y],10)&parseInt(w[y],10)),y++;return new this(b)}catch(S){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${S})`)}},d.IPv6.parse=function(p){const g=this.parser(p);if(g.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(g.parts,g.zoneId)},d.IPv6.parseCIDR=function(p){let g,y,m;if((y=p.match(/^(.+)\/(\d+)$/))&&(g=parseInt(y[2]),g>=0&&g<=128))return m=[this.parse(y[1]),g],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},d.IPv6.parser=function(p){let g,y,m,b,w,S;if(m=p.match(l.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(l.native.test(p))return u(p,8);if((m=p.match(l.transitional))&&(S=m[6]||"",g=m[1],m[1].endsWith("::")||(g=g.slice(0,-1)),g=u(g+S,6),g.parts)){for(w=[parseInt(m[2]),parseInt(m[3]),parseInt(m[4]),parseInt(m[5])],y=0;y<w.length;y++)if(b=w[y],!(0<=b&&b<=255))return null;return g.parts.push(w[0]<<8|w[1]),g.parts.push(w[2]<<8|w[3]),{parts:g.parts,zoneId:g.zoneId}}return null},d.IPv6.subnetMaskFromPrefixLength=function(p){if(p=parseInt(p),p<0||p>128)throw new Error("ipaddr: invalid IPv6 prefix length");const g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let y=0;const m=Math.floor(p/8);for(;y<m;)g[y]=255,y++;return m<16&&(g[m]=Math.pow(2,p%8)-1<<8-p%8),new this(g)},d.fromByteArray=function(p){const g=p.length;if(g===4)return new d.IPv4(p);if(g===16)return new d.IPv6(p);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},d.isValid=function(p){return d.IPv6.isValid(p)||d.IPv4.isValid(p)},d.isValidCIDR=function(p){return d.IPv6.isValidCIDR(p)||d.IPv4.isValidCIDR(p)},d.parse=function(p){if(d.IPv6.isValid(p))return d.IPv6.parse(p);if(d.IPv4.isValid(p))return d.IPv4.parse(p);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},d.parseCIDR=function(p){try{return d.IPv6.parseCIDR(p)}catch{try{return d.IPv4.parseCIDR(p)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},d.process=function(p){const g=this.parse(p);return g.kind()==="ipv6"&&g.isIPv4MappedAddress()?g.toIPv4Address():g},d.subnetMatch=function(p,g,y){let m,b,w,S;y==null&&(y="unicast");for(b in g)if(Object.prototype.hasOwnProperty.call(g,b)){for(w=g[b],w[0]&&!(w[0]instanceof Array)&&(w=[w]),m=0;m<w.length;m++)if(S=w[m],p.kind()===S[0].kind()&&p.match.apply(p,S))return b}return y},e.exports?e.exports=d:t.ipaddr=d})(fce)})(mb)),mb.exports}var uc=dce(),hce={207:(e,t,n)=>{e.exports=n(452)},452:e=>{var t=(function(n){var r,i=Object.prototype,o=i.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(U,$,J){return Object.defineProperty(U,$,{value:J,enumerable:!0,configurable:!0,writable:!0}),U[$]}try{c({},"")}catch{c=function($,J,ae){return $[J]=ae}}function f(U,$,J,ae){var ne=$&&$.prototype instanceof b?$:b,_e=Object.create(ne.prototype),me=new k(ae||[]);return _e._invoke=(function(Me,Re,ke){var oe=d;return function(Ee,we){if(oe===g)throw new Error("Generator is already running");if(oe===y){if(Ee==="throw")throw we;return B()}for(ke.method=Ee,ke.arg=we;;){var Ae=ke.delegate;if(Ae){var Oe=O(Ae,ke);if(Oe){if(Oe===m)continue;return Oe}}if(ke.method==="next")ke.sent=ke._sent=ke.arg;else if(ke.method==="throw"){if(oe===d)throw oe=y,ke.arg;ke.dispatchException(ke.arg)}else ke.method==="return"&&ke.abrupt("return",ke.arg);oe=g;var Ue=h(Me,Re,ke);if(Ue.type==="normal"){if(oe=ke.done?y:p,Ue.arg===m)continue;return{value:Ue.arg,done:ke.done}}Ue.type==="throw"&&(oe=y,ke.method="throw",ke.arg=Ue.arg)}}})(U,J,me),_e}function h(U,$,J){try{return{type:"normal",arg:U.call($,J)}}catch(ae){return{type:"throw",arg:ae}}}n.wrap=f;var d="suspendedStart",p="suspendedYield",g="executing",y="completed",m={};function b(){}function w(){}function S(){}var C={};c(C,s,(function(){return this}));var T=Object.getPrototypeOf,E=T&&T(T(V([])));E&&E!==i&&o.call(E,s)&&(C=E);var P=S.prototype=b.prototype=Object.create(C);function I(U){["next","throw","return"].forEach((function($){c(U,$,(function(J){return this._invoke($,J)}))}))}function D(U,$){function J(ne,_e,me,Me){var Re=h(U[ne],U,_e);if(Re.type!=="throw"){var ke=Re.arg,oe=ke.value;return oe&&typeof oe=="object"&&o.call(oe,"__await")?$.resolve(oe.__await).then((function(Ee){J("next",Ee,me,Me)}),(function(Ee){J("throw",Ee,me,Me)})):$.resolve(oe).then((function(Ee){ke.value=Ee,me(ke)}),(function(Ee){return J("throw",Ee,me,Me)}))}Me(Re.arg)}var ae;this._invoke=function(ne,_e){function me(){return new $((function(Me,Re){J(ne,_e,Me,Re)}))}return ae=ae?ae.then(me,me):me()}}function O(U,$){var J=U.iterator[$.method];if(J===r){if($.delegate=null,$.method==="throw"){if(U.iterator.return&&($.method="return",$.arg=r,O(U,$),$.method==="throw"))return m;$.method="throw",$.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var ae=h(J,U.iterator,$.arg);if(ae.type==="throw")return $.method="throw",$.arg=ae.arg,$.delegate=null,m;var ne=ae.arg;return ne?ne.done?($[U.resultName]=ne.value,$.next=U.nextLoc,$.method!=="return"&&($.method="next",$.arg=r),$.delegate=null,m):ne:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,m)}function N(U){var $={tryLoc:U[0]};1 in U&&($.catchLoc=U[1]),2 in U&&($.finallyLoc=U[2],$.afterLoc=U[3]),this.tryEntries.push($)}function M(U){var $=U.completion||{};$.type="normal",delete $.arg,U.completion=$}function k(U){this.tryEntries=[{tryLoc:"root"}],U.forEach(N,this),this.reset(!0)}function V(U){if(U){var $=U[s];if($)return $.call(U);if(typeof U.next=="function")return U;if(!isNaN(U.length)){var J=-1,ae=function ne(){for(;++J<U.length;)if(o.call(U,J))return ne.value=U[J],ne.done=!1,ne;return ne.value=r,ne.done=!0,ne};return ae.next=ae}}return{next:B}}function B(){return{value:r,done:!0}}return w.prototype=S,c(P,"constructor",S),c(S,"constructor",w),w.displayName=c(S,u,"GeneratorFunction"),n.isGeneratorFunction=function(U){var $=typeof U=="function"&&U.constructor;return!!$&&($===w||($.displayName||$.name)==="GeneratorFunction")},n.mark=function(U){return Object.setPrototypeOf?Object.setPrototypeOf(U,S):(U.__proto__=S,c(U,u,"GeneratorFunction")),U.prototype=Object.create(P),U},n.awrap=function(U){return{__await:U}},I(D.prototype),c(D.prototype,l,(function(){return this})),n.AsyncIterator=D,n.async=function(U,$,J,ae,ne){ne===void 0&&(ne=Promise);var _e=new D(f(U,$,J,ae),ne);return n.isGeneratorFunction($)?_e:_e.next().then((function(me){return me.done?me.value:_e.next()}))},I(P),c(P,u,"Generator"),c(P,s,(function(){return this})),c(P,"toString",(function(){return"[object Generator]"})),n.keys=function(U){var $=[];for(var J in U)$.push(J);return $.reverse(),function ae(){for(;$.length;){var ne=$.pop();if(ne in U)return ae.value=ne,ae.done=!1,ae}return ae.done=!0,ae}},n.values=V,k.prototype={constructor:k,reset:function(U){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(M),!U)for(var $ in this)$.charAt(0)==="t"&&o.call(this,$)&&!isNaN(+$.slice(1))&&(this[$]=r)},stop:function(){this.done=!0;var U=this.tryEntries[0].completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(U){if(this.done)throw U;var $=this;function J(Re,ke){return _e.type="throw",_e.arg=U,$.next=Re,ke&&($.method="next",$.arg=r),!!ke}for(var ae=this.tryEntries.length-1;ae>=0;--ae){var ne=this.tryEntries[ae],_e=ne.completion;if(ne.tryLoc==="root")return J("end");if(ne.tryLoc<=this.prev){var me=o.call(ne,"catchLoc"),Me=o.call(ne,"finallyLoc");if(me&&Me){if(this.prev<ne.catchLoc)return J(ne.catchLoc,!0);if(this.prev<ne.finallyLoc)return J(ne.finallyLoc)}else if(me){if(this.prev<ne.catchLoc)return J(ne.catchLoc,!0)}else{if(!Me)throw new Error("try statement without catch or finally");if(this.prev<ne.finallyLoc)return J(ne.finallyLoc)}}}},abrupt:function(U,$){for(var J=this.tryEntries.length-1;J>=0;--J){var ae=this.tryEntries[J];if(ae.tryLoc<=this.prev&&o.call(ae,"finallyLoc")&&this.prev<ae.finallyLoc){var ne=ae;break}}ne&&(U==="break"||U==="continue")&&ne.tryLoc<=$&&$<=ne.finallyLoc&&(ne=null);var _e=ne?ne.completion:{};return _e.type=U,_e.arg=$,ne?(this.method="next",this.next=ne.finallyLoc,m):this.complete(_e)},complete:function(U,$){if(U.type==="throw")throw U.arg;return U.type==="break"||U.type==="continue"?this.next=U.arg:U.type==="return"?(this.rval=this.arg=U.arg,this.method="return",this.next="end"):U.type==="normal"&&$&&(this.next=$),m},finish:function(U){for(var $=this.tryEntries.length-1;$>=0;--$){var J=this.tryEntries[$];if(J.finallyLoc===U)return this.complete(J.completion,J.afterLoc),M(J),m}},catch:function(U){for(var $=this.tryEntries.length-1;$>=0;--$){var J=this.tryEntries[$];if(J.tryLoc===U){var ae=J.completion;if(ae.type==="throw"){var ne=ae.arg;M(J)}return ne}}throw new Error("illegal catch attempt")},delegateYield:function(U,$,J){return this.delegate={iterator:V(U),resultName:$,nextLoc:J},this.method==="next"&&(this.arg=r),m}},n})(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}},IF={};function is(e){var t=IF[e];if(t!==void 0)return t.exports;var n=IF[e]={exports:{}};return hce[e](n,n.exports,is),n.exports}is.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return is.d(t,{a:t}),t},is.d=(e,t)=>{for(var n in t)is.o(t,n)&&!is.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},is.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var I8={};function XI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A8(e,t){if(e){if(typeof e=="string")return XI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XI(e,t):void 0}}function IS(e){return(function(t){if(Array.isArray(t))return XI(t)})(e)||(function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)})(e)||A8(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}is.d(I8,{A:()=>_ce});const St=(AF={Fragment:()=>Ve,computed:()=>ge,createTextVNode:()=>Be,createVNode:()=>z,defineComponent:()=>Ze,reactive:()=>Hi,ref:()=>Te,watch:()=>mt,watchEffect:()=>zw},XC={},is.d(XC,AF),XC),pce=(0,St.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,St.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),vce=(0,St.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(e,t){var n=t.emit;return{uiType:(0,St.computed)((function(){return e.isMultiple?"checkbox":"radio"})),model:(0,St.computed)({get:function(){return e.checked},set:function(r){return n("update:modelValue",r)}})}},render:function(){var e=this.uiType,t=this.model,n=this.$emit;return(0,St.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,St.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,St.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),gce=(0,St.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var e=this.nodeType,t=this.onClick,n=e==="objectStart"||e==="arrayStart";return n||e==="objectCollapsed"||e==="arrayCollapsed"?(0,St.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,St.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,St.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 AF,XC;function KI(e){return KI=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},KI(e)}function P8(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Of(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=(arguments.length>3?arguments[3]:void 0)||{},i=r.key,o=r.index,a=r.type,s=a===void 0?"content":a,l=r.showComma,u=l!==void 0&&l,c=r.length,f=c===void 0?1:c,h=P8(e);if(h==="array"){var d=PF(e.map((function(y,m,b){return Of(y,"".concat(t,"[").concat(m,"]"),n+1,{index:m,showComma:m!==b.length-1,length:f,type:s})})));return[Of("[",t,n,{showComma:!1,key:i,length:e.length,type:"arrayStart"})[0]].concat(d,Of("]",t,n,{showComma:u,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var p=Object.keys(e),g=PF(p.map((function(y,m,b){return Of(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),n+1,{key:y,showComma:m!==b.length-1,length:f,type:s})})));return[Of("{",t,n,{showComma:!1,key:i,index:o,length:p.length,type:"objectStart"})[0]].concat(g,Of("}",t,n,{showComma:u,length:p.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:i,index:o,path:t,showComma:u,length:f,type:s}]}function PF(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=IS(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,IS(r)):n.push(r)}return n}function ZI(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(KI(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map((function(o){return ZI(o,t)}));return t.set(e,n),n}var r={};for(var i in e)r[i]=ZI(e[i],t);return t.set(e,r),r}function RF(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}var mce=is(207),MF=is.n(mce);function DF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function OF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DF(Object(n),!0).forEach((function(r){iy(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DF(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var R8={data:{type:[String,Number,Boolean,Array,Object],default:null},rootPath:{type:String,default:"root"},indent:{type:Number,default:2},showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,renderNodeActions:{type:[Boolean,Function],default:void 0},selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onNodeMouseover:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const yce=(0,St.defineComponent)({name:"TreeNode",props:OF(OF({},R8),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,St.computed)((function(){return P8(e.node.content)})),i=(0,St.computed)((function(){return"vjs-value vjs-value-".concat(r.value)})),o=(0,St.computed)((function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key})),a=(0,St.computed)((function(){return e.selectableType==="multiple"})),s=(0,St.computed)((function(){return e.selectableType==="single"})),l=(0,St.computed)((function(){return e.nodeSelectable(e.node)&&(a.value||s.value)})),u=(0,St.reactive)({editing:!1}),c=function(T){var E,P,I=(P=(E=T.target)===null||E===void 0?void 0:E.value)==="null"?null:P==="undefined"?void 0:P==="true"||P!=="false"&&(P[0]+P[P.length-1]==='""'||P[0]+P[P.length-1]==="''"?P.slice(1,-1):typeof Number(P)=="number"&&!isNaN(Number(P))||P==="NaN"?Number(P):P);n("valueChange",I,e.node.path)},f=(0,St.computed)((function(){var T,E=(T=e.node)===null||T===void 0?void 0:T.content;return E===null?E="null":E===void 0&&(E="undefined"),r.value==="string"?'"'.concat(E,'"'):E+""})),h=function(){var T=e.renderNodeValue;return T?T({node:e.node,defaultValue:f.value}):f.value},d=function(){n("bracketsClick",!e.collapsed,e.node)},p=function(){n("iconClick",!e.collapsed,e.node)},g=function(){n("selectedChange",e.node)},y=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},m=function(){n("nodeMouseover",e.node)},b=function(T){if(e.editable&&!u.editing){u.editing=!0;var E=function P(I){var D;I.target!==T.target&&((D=I.target)===null||D===void 0?void 0:D.parentElement)!==T.target&&(u.editing=!1,document.removeEventListener("click",P))};document.removeEventListener("click",E),document.addEventListener("click",E)}},w=(function(){var T=(0,St.ref)(!1),E=(function(){var P,I=(P=MF().mark((function D(O){return MF().wrap((function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,N.next=3,navigator.clipboard.writeText(O);case 3:T.value=!0,setTimeout((function(){T.value=!1}),300),N.next=10;break;case 7:N.prev=7,N.t0=N.catch(0),console.error("[vue-json-pretty] Copy failed: ",N.t0);case 10:case"end":return N.stop()}}),D,null,[[0,7]])})),function(){var D=this,O=arguments;return new Promise((function(N,M){var k=P.apply(D,O);function V(U){RF(k,N,M,V,B,"next",U)}function B(U){RF(k,N,M,V,B,"throw",U)}V(void 0)}))});return function(D){return I.apply(this,arguments)}})();return{copy:E}})().copy,S=function(){var T=e.node,E=T.key,P=T.path,I=e.rootPath,D=new Function("data","return data".concat(P.slice(I.length)))(e.data),O=JSON.stringify(E?iy({},E,D):D,null,2);w(O)},C=function(){var T=e.renderNodeActions;if(!T)return null;var E={copy:S};return typeof T=="function"?T({node:e.node,defaultActions:E}):(0,St.createVNode)("span",{onClick:S,class:"vjs-tree-node-actions-item"},[(0,St.createTextVNode)("copy")])};return function(){var T,E=e.node;return(0,St.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:y,onMouseover:m,style:e.style},[e.showLineNumber&&(0,St.createVNode)("span",{class:"vjs-node-index"},[E.id+1]),e.showSelectController&&l.value&&E.type!=="objectEnd"&&E.type!=="arrayEnd"&&(0,St.createVNode)(vce,{isMultiple:a.value,checked:e.checked,onChange:g},null),(0,St.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(E.level)).map((function(P,I){return(0,St.createVNode)("div",{key:I,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},[Array.from(Array(e.indent)).map((function(){return(0,St.createVNode)(St.Fragment,null,[(0,St.createTextVNode)(" ")])}))])})),e.showIcon&&(0,St.createVNode)(gce,{nodeType:E.type,onClick:p},null)]),E.key&&(0,St.createVNode)("span",{class:"vjs-key"},[(T=e.renderNodeKey,T?T({node:e.node,defaultKey:o.value||""}):o.value),(0,St.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,St.createVNode)("span",null,[E.type!=="content"&&E.content?(0,St.createVNode)(pce,{data:E.content.toString(),onClick:d},null):(0,St.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:b,onDblclick:e.editable&&e.editableTrigger==="dblclick"?b:void 0},[e.editable&&u.editing?(0,St.createVNode)("input",{value:f.value,onChange:c,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):h()]),E.showComma&&(0,St.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,St.createVNode)("span",{class:"vjs-comment"},[(0,St.createTextVNode)(" // "),E.length,(0,St.createTextVNode)(" items ")])]),e.renderNodeActions&&(0,St.createVNode)("span",{class:"vjs-tree-node-actions"},[C()])])}}});function LF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function Yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LF(Object(n),!0).forEach((function(r){iy(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LF(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}const _ce=(0,St.defineComponent)({name:"Tree",props:Yo(Yo({},R8),{},{collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue","renderNodeActions"],emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,St.ref)(),o=(0,St.computed)((function(){return Of(e.data,e.rootPath)})),a=function(S,C){return o.value.reduce((function(T,E){var P,I=E.level>=S||E.length>=C,D=(P=e.pathCollapsible)===null||P===void 0?void 0:P.call(e,E);return E.type!=="objectStart"&&E.type!=="arrayStart"||!I&&!D?T:Yo(Yo({},T),{},iy({},E.path,1))}),{})},s=(0,St.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,St.computed)((function(){for(var S=null,C=[],T=o.value.length,E=0;E<T;E++){var P=Yo(Yo({},o.value[E]),{},{id:E}),I=s.hiddenPaths[P.path];if(S&&S.path===P.path){var D=S.type==="objectStart",O=Yo(Yo(Yo({},P),S),{},{showComma:P.showComma,content:D?"{...}":"[...]",type:D?"objectCollapsed":"arrayCollapsed"});S=null,C.push(O)}else{if(I&&!S){S=P;continue}if(S)continue;C.push(P)}}return C})),u=(0,St.computed)((function(){var S=e.selectedValue;return S&&e.selectableType==="multiple"&&Array.isArray(S)?S:[S]})),c=(0,St.computed)((function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."})),f=function(){var S=l.value;if(e.virtual){var C,T=e.height/e.itemHeight,E=((C=i.value)===null||C===void 0?void 0:C.scrollTop)||0,P=Math.floor(E/e.itemHeight),I=P<0?0:P+T>S.length?S.length-T:P;I<0&&(I=0);var D=I+T;s.translateY=I*e.itemHeight,s.visibleData=S.filter((function(O,N){return N>=I&&N<D}))}else s.visibleData=S},h=function(){f()},d=function(S){var C,T,E=S.path,P=e.selectableType;if(P==="multiple"){var I=u.value.findIndex((function(M){return M===E})),D=IS(u.value);I!==-1?D.splice(I,1):D.push(E),n("update:selectedValue",D),n("selectedChange",D,IS(u.value))}else if(P==="single"&&u.value[0]!==E){var O=(C=u.value,T=1,(function(M){if(Array.isArray(M))return M})(C)||(function(M,k){var V=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if(V!=null){var B,U,$=[],J=!0,ae=!1;try{for(V=V.call(M);!(J=(B=V.next()).done)&&($.push(B.value),!k||$.length!==k);J=!0);}catch(ne){ae=!0,U=ne}finally{try{J||V.return==null||V.return()}finally{if(ae)throw U}}return $}})(C,T)||A8(C,T)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})())[0],N=E;n("update:selectedValue",N),n("selectedChange",N,O)}},p=function(S){n("nodeClick",S)},g=function(S){n("nodeMouseover",S)},y=function(S,C){if(S)s.hiddenPaths=Yo(Yo({},s.hiddenPaths),{},iy({},C,1));else{var T=Yo({},s.hiddenPaths);delete T[C],s.hiddenPaths=T}},m=function(S,C){e.collapsedOnClickBrackets&&y(S,C.path),n("bracketsClick",S,C)},b=function(S,C){y(S,C.path),n("iconClick",S,C)},w=function(S,C){var T=ZI(e.data),E=e.rootPath;new Function("data","val","data".concat(C.slice(E.length),"=val"))(T,S),n("update:data",T)};return(0,St.watchEffect)((function(){c.value&&(function(S){throw new Error("[VueJSONPretty] ".concat(S))})(c.value)})),(0,St.watchEffect)((function(){l.value&&f()})),(0,St.watch)((function(){return e.deep}),(function(S){S&&(s.hiddenPaths=a(S,e.collapsedNodeLength))})),(0,St.watch)((function(){return e.collapsedNodeLength}),(function(S){S&&(s.hiddenPaths=a(e.deep,S))})),function(){var S,C,T,E,P=(S=e.renderNodeKey)!==null&&S!==void 0?S:r.renderNodeKey,I=(C=e.renderNodeValue)!==null&&C!==void 0?C:r.renderNodeValue,D=(T=(E=e.renderNodeActions)!==null&&E!==void 0?E:r.renderNodeActions)!==null&&T!==void 0&&T,O=s.visibleData&&s.visibleData.map((function(N){return(0,St.createVNode)(yce,{key:N.id,data:e.data,rootPath:e.rootPath,indent:e.indent,node:N,collapsed:!!s.hiddenPaths[N.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:u.value.includes(N.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:P,renderNodeValue:I,renderNodeActions:D,onNodeClick:p,onNodeMouseover:g,onBracketsClick:m,onIconClick:b,onSelectedChange:d,onValueChange:w,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)}));return(0,St.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?h:void 0,style:e.showLineNumber?Yo({paddingLeft:"".concat(12*Number(o.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,St.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,St.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,St.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[O])])]):O])}}});var bce=I8.A;const Sce={class:"flex h-full max-h-[69dvh] flex-col overflow-hidden py-4 md:max-h-[89dvh]"},wce={key:0},xce={key:0,class:"min-h-12 shrink-0 px-4 pt-2 text-sm"},Tce={class:"flex flex-wrap items-center gap-1"},Cce={class:"flex flex-wrap"},Ece={key:0,class:"mr-3 flex items-center gap-1"},Ice={class:"flex items-center gap-1"},Ace=Ze({__name:"ConnectionDetails",setup(e){const{infoConn:t,connectionDetailModalShow:n}=iM(),r=Te(null),i=ge(()=>t.value?.metadata.destinationIP),o=ge(()=>{if(!i.value||!uc.isValid(i.value))return!1;const s=uc.parse(i.value).range();return["private","uniqueLocal","loopback","linkLocal"].includes(s)});return mt(()=>i.value,a=>{if(a){if(o.value){r.value=null;return}r.value?.ip!==a&&(r.value=null,lM(t.value?.metadata.destinationIP).then(s=>{r.value=s}))}}),(a,s)=>(H(),it(dl,{modelValue:L(n),"onUpdate:modelValue":s[0]||(s[0]=l=>rt(n)?n.value=l:null),"no-padding":!0},{default:gn(()=>[R("div",Sce,[z(L(bce),{data:L(t),class:"overflow-y-auto px-4"},{renderNodeValue:gn(({node:l,defaultValue:u})=>[l.path.startsWith("root.chains")&&L($n)[l.content]?.icon?(H(),K("span",wce,[s[1]||(s[1]=Be(' "',-1)),z(sx,{icon:L($n)[l.content].icon,class:"inline-block",margin:0},null,8,["icon"]),Be(" "+q(l.content)+'" ',1)])):(H(),K(Ve,{key:1},[Be(q(u),1)],64))]),_:1},8,["data"]),i.value&&!o.value?(H(),K("div",xce,[r.value?(H(),K(Ve,{key:0},[R("div",Tce,[z(L(aa),{class:"h-4 w-4 shrink-0"}),R("div",null,q(r.value?.ip),1),R("div",null,"( AS"+q(r.value?.asn)+" )",1)]),R("div",Cce,[r.value?.country?(H(),K("div",Ece,[z(L(kR),{class:"h-4 w-4 shrink-0"}),r.value?.city&&r.value?.city!==r.value?.country?(H(),K(Ve,{key:0},[Be(q(r.value?.city)+", ",1)],64)):r.value?.region&&r.value?.region!==r.value?.country?(H(),K(Ve,{key:1},[Be(q(r.value?.region)+", ",1)],64)):Ge("",!0),Be(" "+q(r.value?.country),1)])):Ge("",!0),R("div",Ice,[z(L(vH),{class:"h-4 w-4 shrink-0"}),Be(" "+q(r.value?.organization),1)])])],64)):Ge("",!0)])):Ge("",!0)])]),_:1},8,["modelValue"]))}});/**
* 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 cc(e,t){return typeof e=="function"?e(t):e}function la(e,t){return n=>{t.setState(r=>({...r,[e]:cc(n,r[e])}))}}function Wl(e){return e instanceof Function}function Pce(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function M8(e,t){const n=[],r=i=>{i.forEach(o=>{n.push(o);const a=t(o);a!=null&&a.length&&r(a)})};return r(e),n}function Mt(e,t,n){let r=[],i;return o=>{let a;n.key&&n.debug&&(a=Date.now());const s=e(o);if(!(s.length!==r.length||s.some((c,f)=>r[f]!==c)))return i;r=s;let u;if(n.key&&n.debug&&(u=Date.now()),i=t(...s),n==null||n.onChange==null||n.onChange(i),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-a)*100)/100,f=Math.round((Date.now()-u)*100)/100,h=f/16,d=(p,g)=>{for(p=String(p);p.length<g;)p=" "+p;return p};console.info(`%c⏱ ${d(f,5)} /${d(c,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,n?.key)}return i}}function Dt(e,t,n,r){return{debug:()=>{var i;return(i=e?.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function Rce(e,t,n,r){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:i,getContext:Mt(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Dt(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function Mce(e,t,n,r){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o: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 g of l.split(".")){var p;d=(p=d)==null?void 0:p[g]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:Mt(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},Dt(e.options,"debugColumns")),getLeafColumns:Mt(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let p=f.columns.flatMap(g=>g.getLeafColumns());return h(p)}return[f]},Dt(e.options,"debugColumns"))};for(const h of e._features)h.createColumn==null||h.createColumn(f,e);return f}const Ei="debugHeaders";function kF(e,t,n){var r;let o={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(o,e)}),o}const Dce={createTable:e=>{e.getHeaderGroups=Mt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r?.map(f=>n.find(h=>h.id===f)).filter(Boolean))!=null?o:[],l=(a=i?.map(f=>n.find(h=>h.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return M1(t,[...s,...u,...l],e)},Dt(e.options,Ei)),e.getCenterHeaderGroups=Mt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>(n=n.filter(o=>!(r!=null&&r.includes(o.id))&&!(i!=null&&i.includes(o.id))),M1(t,n,e,"center")),Dt(e.options,Ei)),e.getLeftHeaderGroups=Mt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r?.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return M1(t,o,e,"left")},Dt(e.options,Ei)),e.getRightHeaderGroups=Mt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r?.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return M1(t,o,e,"right")},Dt(e.options,Ei)),e.getFooterGroups=Mt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Dt(e.options,Ei)),e.getLeftFooterGroups=Mt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Dt(e.options,Ei)),e.getCenterFooterGroups=Mt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Dt(e.options,Ei)),e.getRightFooterGroups=Mt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Dt(e.options,Ei)),e.getFlatHeaders=Mt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Dt(e.options,Ei)),e.getLeftFlatHeaders=Mt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Dt(e.options,Ei)),e.getCenterFlatHeaders=Mt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Dt(e.options,Ei)),e.getRightFlatHeaders=Mt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Dt(e.options,Ei)),e.getCenterLeafHeaders=Mt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Dt(e.options,Ei)),e.getLeftLeafHeaders=Mt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Dt(e.options,Ei)),e.getRightLeafHeaders=Mt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Dt(e.options,Ei)),e.getLeafHeaders=Mt(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},Dt(e.options,Ei))}};function M1(e,t,n,r){var i,o;let a=0;const s=function(h,d){d===void 0&&(d=1),a=Math.max(a,d),h.filter(p=>p.getIsVisible()).forEach(p=>{var g;(g=p.columns)!=null&&g.length&&s(p.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const p={depth:d,id:[r,`${d}`].filter(Boolean).join("_"),headers:[]},g=[];h.forEach(y=>{const m=[...g].reverse()[0],b=y.column.depth===p.depth;let w,S=!1;if(b&&y.column.parent?w=y.column.parent:(w=y.column,S=!0),m&&m?.column===w)m.subHeaders.push(y);else{const C=kF(n,w,{id:[r,d,w.id,y?.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${g.filter(T=>T.column===w).length}`:void 0,depth:d,index:g.length});C.subHeaders.push(y),g.push(C)}p.headers.push(y),y.headerGroup=p}),l.push(p),d>0&&u(g,d-1)},c=t.map((h,d)=>kF(n,h,{depth:a,index:d}));u(c,a-1),l.reverse();const f=h=>h.filter(p=>p.column.getIsVisible()).map(p=>{let g=0,y=0,m=[0];p.subHeaders&&p.subHeaders.length?(m=[],f(p.subHeaders).forEach(w=>{let{colSpan:S,rowSpan:C}=w;g+=S,m.push(C)})):g=1;const b=Math.min(...m);return y=y+b,p.colSpan=g,p.rowSpan=y,{colSpan:g,rowSpan:y}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const D8=(e,t,n,r,i,o,a)=>{let s={id:t,index:r,original:n,depth:i,parentId:a,_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,r),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,r),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:()=>M8(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:Mt(()=>[e.getAllLeafColumns()],l=>l.map(u=>Rce(e,s,u,u.id)),Dt(e.options,"debugRows")),_getAllCellsByColumnId:Mt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),Dt(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},Oce={createColumn:(e,t)=>{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()}}},O8=(e,t,n)=>{var r,i;const o=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((i=e.getValue(t))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(o))};O8.autoRemove=e=>hs(e);const L8=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};L8.autoRemove=e=>hs(e);const k8=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};k8.autoRemove=e=>hs(e);const N8=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};N8.autoRemove=e=>hs(e);const F8=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});F8.autoRemove=e=>hs(e)||!(e!=null&&e.length);const $8=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});$8.autoRemove=e=>hs(e)||!(e!=null&&e.length);const B8=(e,t,n)=>e.getValue(t)===n;B8.autoRemove=e=>hs(e);const U8=(e,t,n)=>e.getValue(t)==n;U8.autoRemove=e=>hs(e);const uM=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};uM.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,i=typeof n!="number"?parseFloat(n):n,o=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};uM.autoRemove=e=>hs(e)||hs(e[0])&&hs(e[1]);const $l={includesString:O8,includesStringSensitive:L8,equalsString:k8,arrIncludes:N8,arrIncludesAll:F8,arrIncludesSome:$8,equals:B8,weakEquals:U8,inNumberRange:uM};function hs(e){return e==null||e===""}const Lce={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:la("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);return typeof r=="string"?$l.includesString:typeof r=="number"?$l.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?$l.equals:Array.isArray(r)?$l.arrIncludes:$l.weakEquals},e.getFilterFn=()=>{var n,r;return Wl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:$l[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,i;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const i=e.getFilterFn(),o=r?.find(c=>c.id===e.id),a=cc(n,o?o.value:void 0);if(NF(i,a,e)){var s;return(s=r?.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r?.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=i=>{var o;return(o=cc(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(NF(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},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 NF(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const kce=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),Nce=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}),r},Fce=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}),r},$ce=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i<a&&(i=a)))}),[r,i]},Bce=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},Uce=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!Pce(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),i=n.sort((o,a)=>o-a);return n.length%2!==0?i[r]:(i[r-1]+i[r])/2},Vce=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Hce=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,zce=(e,t)=>t.length,KC={sum:kce,min:Nce,max:Fce,extent:$ce,mean:Bce,median:Uce,unique:Vce,uniqueCount:Hce,count:zce},Gce={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:la("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n?.getValue(e.id);if(typeof r=="number")return KC.sum;if(Object.prototype.toString.call(r)==="[object Date]")return KC.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Wl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:KC[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},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=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=n.subRows)!=null&&i.length)}}};function Wce(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(o=>!t.includes(o.id));return n==="remove"?r:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...r]}const jce={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:la("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Mt(n=>[fm(t,n)],n=>n.findIndex(r=>r.id===e.id),Dt(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=fm(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=fm(t,n);return((r=i[i.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Mt(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return Wce(o,n,r)},Dt(e.options,"debugTable"))}},ZC=()=>({left:[],right:[]}),Yce={getInitialState:e=>({columnPinning:ZC(),...e}),getDefaultOptions:e=>({onColumnPinningChange:la("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(n==="right"){var s,l;return{left:((s=i?.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=i?.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i?.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((c=i?.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((o=i?.left)!=null?o:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=i?.right)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var i,o,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((o=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?o:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:i}=t.getState().columnPinning,o=n.some(s=>r?.includes(s)),a=n.some(s=>i?.includes(s));return o?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();return i?(n=(r=t.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Mt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,i)=>{const o=[...r??[],...i??[]];return n.filter(a=>!o.includes(a.column.id))},Dt(t.options,"debugRows")),e.getLeftVisibleCells=Mt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),Dt(t.options,"debugRows")),e.getRightVisibleCells=Mt(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(o=>n.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),Dt(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?ZC():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:ZC())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var i,o;return!!((i=r.left)!=null&&i.length||(o=r.right)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Mt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Dt(e.options,"debugColumns")),e.getRightLeafColumns=Mt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Dt(e.options,"debugColumns")),e.getCenterLeafColumns=Mt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const i=[...n??[],...r??[]];return t.filter(o=>!i.includes(o.id))},Dt(e.options,"debugColumns"))}};function Xce(e){return e||(typeof document<"u"?document:null)}const D1={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},qC=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Kce={getDefaultColumnDef:()=>D1,getInitialState:e=>({columnSizing:{},columnSizingInfo:qC(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:la("columnSizing",e),onColumnSizingInfoChange:la("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:D1.minSize,(r=o??e.columnDef.size)!=null?r:D1.size),(i=e.columnDef.maxSize)!=null?i:D1.maxSize)},e.getStart=Mt(n=>[n,fm(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),Dt(t.options,"debugColumns")),e.getAfter=Mt(n=>[n,fm(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),Dt(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...i}=n;return i})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=i=>{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var o;n+=(o=i.column.getSize())!=null?o:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),i=r?.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),JC(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],l=JC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(m,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(w=>{var S,C;const T=t.options.columnResizeDirection==="rtl"?-1:1,E=(b-((S=w?.startOffset)!=null?S:0))*T,P=Math.max(E/((C=w?.startSize)!=null?C:0),-.999999);return w.columnSizingStart.forEach(I=>{let[D,O]=I;u[D]=Math.round(Math.max(O+O*P,0)*100)/100}),{...w,deltaOffset:E,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||m==="end")&&t.setColumnSizing(w=>({...w,...u})))},f=m=>c("move",m),h=m=>{c("end",m),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=Xce(n),p={moveHandler:m=>f(m.clientX),upHandler:m=>{d?.removeEventListener("mousemove",p.moveHandler),d?.removeEventListener("mouseup",p.upHandler),h(m.clientX)}},g={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),f(m.touches[0].clientX),!1),upHandler:m=>{var b;d?.removeEventListener("touchmove",g.moveHandler),d?.removeEventListener("touchend",g.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),h((b=m.touches[0])==null?void 0:b.clientX)}},y=Zce()?{passive:!1}:!1;JC(o)?(d?.addEventListener("touchmove",g.moveHandler,y),d?.addEventListener("touchend",g.upHandler,y)):(d?.addEventListener("mousemove",p.moveHandler,y),d?.addEventListener("mouseup",p.upHandler,y)),t.setColumnSizingInfo(m=>({...m,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.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 n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?qC():(n=e.initialState.columnSizingInfo)!=null?n:qC())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,i)=>r+i.getSize(),0))!=null?t:0}}};let O1=null;function Zce(){if(typeof O1=="boolean")return O1;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return O1=e,O1}function JC(e){return e.type==="touchstart"}const qce={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:la("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const i=e.columns;return(n=i.length?i.some(o=>o.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Mt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Dt(t.options,"debugRows")),e.getVisibleCells=Mt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Dt(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Mt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Dt(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=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:n||!(o.getCanHide!=null&&o.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function fm(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Jce={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()}}},Qce={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:la("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,i,o;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>$l.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Wl(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:$l[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},efe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:la("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var i,o;e.setExpanded(r?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");r=Math.max(r,a.length)}),r},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=n=>{t.setExpanded(r=>{var i;const o=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(i=n)!=null?i:!o,!o&&n)return{...a,[e.id]:!0};if(o&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r?.[e.id])},e.getCanExpand=()=>{var n,r,i;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},qI=0,JI=10,QC=()=>({pageIndex:qI,pageSize:JI}),tfe={getInitialState:e=>({...e,pagination:{...QC(),...e?.pagination}}),getDefaultOptions:e=>({onPaginationChange:la("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,i;if(!t){e._queue(()=>{t=!0});return}if((r=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const i=o=>cc(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?QC():(i=e.initialState.pagination)!=null?i:QC())},e.setPageIndex=r=>{e.setPagination(i=>{let o=cc(r,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},e.resetPageIndex=r=>{var i,o;e.setPageIndex(r?qI:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:qI)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?JI:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:JI)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,cc(r,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},e.setPageCount=r=>e.setPagination(i=>{var o;let a=cc(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=Mt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},Dt(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+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 r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},eE=()=>({top:[],bottom:[]}),nfe={getInitialState:e=>({rowPinning:eE(),...e}),getDefaultOptions:e=>({onRowPinningChange:la("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,i)=>{const o=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...o]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var f,h;return{top:((f=l?.top)!=null?f:[]).filter(g=>!(s!=null&&s.has(g))),bottom:[...((h=l?.bottom)!=null?h:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)]}}if(n==="top"){var d,p;return{top:[...((d=l?.top)!=null?d:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((p=l?.bottom)!=null?p:[]).filter(g=>!(s!=null&&s.has(g)))}}return{top:((u=l?.top)!=null?u:[]).filter(g=>!(s!=null&&s.has(g))),bottom:((c=l?.bottom)!=null?c:[]).filter(g=>!(s!=null&&s.has(g)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:i}=t.options;return typeof r=="function"?r(e):(n=r??i)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:i}=t.getState().rowPinning,o=n.some(s=>r?.includes(s)),a=n.some(s=>i?.includes(s));return o?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const i=e.getIsPinned();if(!i)return-1;const o=(n=i==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=o?.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?eE():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:eE())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var i,o;return!!((i=r.top)!=null&&i.length||(o=r.bottom)!=null&&o.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(n??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(n??[]).map(a=>t.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=Mt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Dt(e.options,"debugRows")),e.getBottomRows=Mt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Dt(e.options,"debugRows")),e.getCenterRows=Mt(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const i=new Set([...n??[],...r??[]]);return t.filter(o=>!i.has(o.id))},Dt(e.options,"debugRows"))}},rfe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:la("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 n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(r[o.id]=!0)}):i.forEach(o=>{delete r[o.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...n};return e.getRowModel().rows.forEach(o=>{QI(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Mt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?tE(e,n):{rows:[],flatRows:[],rowsById:{}},Dt(e.options,"debugTable")),e.getFilteredSelectedRowModel=Mt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?tE(e,n):{rows:[],flatRows:[],rowsById:{}},Dt(e.options,"debugTable")),e.getGroupedSelectedRowModel=Mt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?tE(e,n):{rows:[],flatRows:[],rowsById:{}},Dt(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return QI(s,e.id,n,(a=r?.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return cM(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return eA(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return eA(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var i;n&&e.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},QI=(e,t,n,r,i)=>{var o;const a=i.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(o=a.subRows)!=null&&o.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>QI(e,s.id,n,r,i))};function tE(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=cM(l,n);if(c&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:r,rowsById:i}}function cM(e,t){var n;return(n=t[e.id])!=null?n:!1}function eA(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let i=!0,o=!1;return e.subRows.forEach(a=>{if(!(o&&!i)&&(a.getCanSelect()&&(cM(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=eA(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const tA=/([0-9]+)/gm,ife=(e,t,n)=>V8(Pc(e.getValue(n)).toLowerCase(),Pc(t.getValue(n)).toLowerCase()),ofe=(e,t,n)=>V8(Pc(e.getValue(n)),Pc(t.getValue(n))),afe=(e,t,n)=>fM(Pc(e.getValue(n)).toLowerCase(),Pc(t.getValue(n)).toLowerCase()),sfe=(e,t,n)=>fM(Pc(e.getValue(n)),Pc(t.getValue(n))),lfe=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:r<i?-1:0},ufe=(e,t,n)=>fM(e.getValue(n),t.getValue(n));function fM(e,t){return e===t?0:e>t?1:-1}function Pc(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function V8(e,t){const n=e.split(tA).filter(Boolean),r=t.split(tA).filter(Boolean);for(;n.length&&r.length;){const i=n.shift(),o=r.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Yv={alphanumeric:ife,alphanumericCaseSensitive:ofe,text:afe,textCaseSensitive:sfe,datetime:lfe,basic:ufe},cfe={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:la("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of n){const o=i?.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Yv.datetime;if(typeof o=="string"&&(r=!0,o.split(tA).length>1))return Yv.alphanumeric}return r?Yv.text:Yv.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof n?.getValue(e.id)=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Wl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Yv[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a?.find(d=>d.id===e.id),l=a?.findIndex(d=>d.id===e.id);let u=[],c,f=o?n:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var h;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(i=>i.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(i=>i.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},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())}},ffe=[Dce,qce,jce,Yce,Oce,Lce,Jce,Qce,cfe,Gce,efe,tfe,nfe,rfe,Kce];function dfe(e){var t,n;const r=[...ffe,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((h,d)=>Object.assign(h,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),a=h=>i.options.mergeOptions?i.options.mergeOptions(o,h):{...o,...h};let l={...{},...(n=e.initialState)!=null?n:{}};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:r,options:{...o,...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=cc(h,i.options);i.options=a(d)},getState:()=>i.options.state,setState:h=>{i.options.onStateChange==null||i.options.onStateChange(h)},_getRowId:(h,d,p)=>{var g;return(g=i.options.getRowId==null?void 0:i.options.getRowId(h,d,p))!=null?g:`${p?[p.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(h,d)=>{let p=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[h];if(!p&&(p=i.getCoreRowModel().rowsById[h],!p))throw new Error;return p},_getDefaultColumnDef:Mt(()=>[i.options.defaultColumn],h=>{var d;return h=(d=h)!=null?d:{},{header:p=>{const g=p.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:p=>{var g,y;return(g=(y=p.renderValue())==null||y.toString==null?void 0:y.toString())!=null?g:null},...i._features.reduce((p,g)=>Object.assign(p,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},Dt(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:Mt(()=>[i._getColumnDefs()],h=>{const d=function(p,g,y){return y===void 0&&(y=0),p.map(m=>{const b=Mce(i,m,y,g),w=m;return b.columns=w.columns?d(w.columns,b,y+1):[],b})};return d(h)},Dt(e,"debugColumns")),getAllFlatColumns:Mt(()=>[i.getAllColumns()],h=>h.flatMap(d=>d.getFlatColumns()),Dt(e,"debugColumns")),_getAllFlatColumnsById:Mt(()=>[i.getAllFlatColumns()],h=>h.reduce((d,p)=>(d[p.id]=p,d),{}),Dt(e,"debugColumns")),getAllLeafColumns:Mt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(h,d)=>{let p=h.flatMap(g=>g.getLeafColumns());return d(p)},Dt(e,"debugColumns")),getColumn:h=>i._getAllFlatColumnsById()[h]};Object.assign(i,f);for(let h=0;h<i._features.length;h++){const d=i._features[h];d==null||d.createTable==null||d.createTable(i)}return i}function hfe(){return e=>Mt(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=D8(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a?.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return s};return n.rows=r(t),n},Dt(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function pfe(){return e=>Mt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:vfe(n),Dt(e.options,"debugTable"))}function vfe(e){const t=[],n=r=>{var i;t.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function gfe(){return e=>Mt(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),n;const r=t.filter(l=>e.getColumn(l)),i=[],o={},a=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(p=>(p.depth=u,i.push(p),o[p.id]=p,p.subRows&&(p.subRows=a(p.subRows,u+1,p.id)),p));const f=r[u],h=mfe(l,f);return Array.from(h.entries()).map((p,g)=>{let[y,m]=p,b=`${f}:${y}`;b=c?`${c}>${b}`:b;const w=a(m,u+1,b);w.forEach(T=>{T.parentId=b});const S=u?M8(m,T=>T.subRows):m,C=D8(e,b,S[0].original,g,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:y,subRows:w,leafRows:S,getValue:T=>{if(r.includes(T)){if(C._valuesCache.hasOwnProperty(T))return C._valuesCache[T];if(m[0]){var E;C._valuesCache[T]=(E=m[0].getValue(T))!=null?E:void 0}return C._valuesCache[T]}if(C._groupingValuesCache.hasOwnProperty(T))return C._groupingValuesCache[T];const P=e.getColumn(T),I=P?.getAggregationFn();if(I)return C._groupingValuesCache[T]=I(T,S,m),C._groupingValuesCache[T]}}),w.forEach(T=>{i.push(T),o[T.id]=T}),C})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},Dt(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function mfe(e,t){const n=new Map;return e.reduce((r,i)=>{const o=`${i.getGroupingValue(t)}`,a=r.get(o);return a?a.push(i):r.set(o,[i]),r},n)}function yfe(){return e=>Mt(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,i=[],o=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[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<o.length;d+=1){var h;const p=o[d],g=a[p.id],y=g.sortUndefined,m=(h=p?.desc)!=null?h:!1;let b=0;if(y){const w=c.getValue(p.id),S=f.getValue(p.id),C=w===void 0,T=S===void 0;if(C||T){if(y==="first")return C?-1:1;if(y==="last")return C?1:-1;b=C&&T?0:C?y:-y}}if(b===0&&(b=g.sortingFn(c,f,p.id)),b!==0)return m&&(b*=-1),g.invertSorting&&(b*=-1),b}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},Dt(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 L1(){return!0}const _fe=Symbol("merge-proxy"),bfe={get(e,t,n){return t===_fe?n:e.get(t)},has(e,t){return e.has(t)},set:L1,deleteProperty:L1,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:L1,deleteProperty:L1}},ownKeys(e){return e.keys()}};function nE(e){return"value"in e?e.value:e}function Mg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Proxy({get(r){for(let i=t.length-1;i>=0;i--){const o=nE(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in nE(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i<t.length;i++)r.push(...Object.keys(nE(t[i])));return[...Array.from(new Set(r))]}},bfe)}const rE=Ze({props:["render","props"],setup:e=>()=>typeof e.render=="function"||typeof e.render=="object"?yi(e.render,e.props):e.render});function FF(e){return Mg(e,{data:L(e.data)})}function Sfe(e){const t=rt(e.data),n=Mg({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:Mg(o,a)}},t?FF(e):e),r=dfe(n);if(t){const o=Lr(e.data);mt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Te(r.initialState);return zw(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return Mg(o,t?FF(e):e,{state:Mg(s,(a=e.state)!=null?a:{}),onStateChange:l=>{l instanceof Function?i.value=l(i.value):i.value=l,e.onStateChange==null||e.onStateChange(l)}})})}),r}const dM="-",wfe=e=>{const t=Tfe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(dM);return s[0]===""&&s.length!==1&&s.shift(),H8(s,t)||xfe(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},H8=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?H8(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(dM);return t.validators.find(({validator:a})=>a(o))?.classGroupId},$F=/^\[(.+)\]$/,xfe=e=>{if($F.test(e)){const t=$F.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tfe=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const i in n)nA(n[i],r,i,t);return r},nA=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:BF(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Cfe(i)){nA(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{nA(a,BF(t,o),n,r)})})},BF=(e,t)=>{let n=e;return t.split(dM).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Cfe=e=>e.isThemeGetter,Efe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},rA="!",iA=":",Ife=iA.length,Afe=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let a=0,s=0,l=0,u;for(let p=0;p<i.length;p++){let g=i[p];if(a===0&&s===0){if(g===iA){o.push(i.slice(l,p)),l=p+Ife;continue}if(g==="/"){u=p;continue}}g==="["?a++:g==="]"?a--:g==="("?s++:g===")"&&s--}const c=o.length===0?i:i.substring(l),f=Pfe(c),h=f!==c,d=u&&u>l?u-l:void 0;return{modifiers:o,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}};if(t){const i=t+iA,o=r;r=a=>a.startsWith(i)?o(a.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},Pfe=e=>e.endsWith(rA)?e.substring(0,e.length-1):e.startsWith(rA)?e.substring(1):e,Rfe=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(i.push(...o.sort(),a),o=[]):o.push(a)}),i.push(...o.sort()),i}},Mfe=e=>({cache:Efe(e.cacheSize),parseClassName:Afe(e),sortModifiers:Rfe(e),...wfe(e)}),Dfe=/\s+/,Ofe=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,a=[],s=e.trim().split(Dfe);let l="";for(let u=s.length-1;u>=0;u-=1){const c=s[u],{isExternal:f,modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:g}=n(c);if(f){l=c+(l.length>0?" "+l:l);continue}let y=!!g,m=r(y?p.substring(0,g):p);if(!m){if(!y){l=c+(l.length>0?" "+l:l);continue}if(m=r(p),!m){l=c+(l.length>0?" "+l:l);continue}y=!1}const b=o(h).join(":"),w=d?b+rA:b,S=w+m;if(a.includes(S))continue;a.push(S);const C=i(m,y);for(let T=0;T<C.length;++T){const E=C[T];a.push(w+E)}l=c+(l.length>0?" "+l:l)}return l};function Lfe(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=z8(t))&&(r&&(r+=" "),r+=n);return r}const z8=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=z8(e[r]))&&(n&&(n+=" "),n+=t);return n};function kfe(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((c,f)=>f(c),e());return n=Mfe(u),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const u=r(l);if(u)return u;const c=Ofe(l,n);return i(l,c),c}return function(){return o(Lfe.apply(null,arguments))}}const Wr=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},G8=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,W8=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Nfe=/^\d+\/\d+$/,Ffe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$fe=/\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$/,Bfe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ufe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vfe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ph=e=>Nfe.test(e),Qt=e=>!!e&&!Number.isNaN(Number(e)),$u=e=>!!e&&Number.isInteger(Number(e)),iE=e=>e.endsWith("%")&&Qt(e.slice(0,-1)),Il=e=>Ffe.test(e),Hfe=()=>!0,zfe=e=>$fe.test(e)&&!Bfe.test(e),j8=()=>!1,Gfe=e=>Ufe.test(e),Wfe=e=>Vfe.test(e),jfe=e=>!vt(e)&&!gt(e),Yfe=e=>sv(e,K8,j8),vt=e=>G8.test(e),af=e=>sv(e,Z8,zfe),oE=e=>sv(e,Jfe,Qt),UF=e=>sv(e,Y8,j8),Xfe=e=>sv(e,X8,Wfe),k1=e=>sv(e,q8,Gfe),gt=e=>W8.test(e),Xv=e=>lv(e,Z8),Kfe=e=>lv(e,Qfe),VF=e=>lv(e,Y8),Zfe=e=>lv(e,K8),qfe=e=>lv(e,X8),N1=e=>lv(e,q8,!0),sv=(e,t,n)=>{const r=G8.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},lv=(e,t,n=!1)=>{const r=W8.exec(e);return r?r[1]?t(r[1]):n:!1},Y8=e=>e==="position"||e==="percentage",X8=e=>e==="image"||e==="url",K8=e=>e==="length"||e==="size"||e==="bg-size",Z8=e=>e==="length",Jfe=e=>e==="number",Qfe=e=>e==="family-name",q8=e=>e==="shadow",ede=()=>{const e=Wr("color"),t=Wr("font"),n=Wr("text"),r=Wr("font-weight"),i=Wr("tracking"),o=Wr("leading"),a=Wr("breakpoint"),s=Wr("container"),l=Wr("spacing"),u=Wr("radius"),c=Wr("shadow"),f=Wr("inset-shadow"),h=Wr("text-shadow"),d=Wr("drop-shadow"),p=Wr("blur"),g=Wr("perspective"),y=Wr("aspect"),m=Wr("ease"),b=Wr("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),gt,vt],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[gt,vt,l],I=()=>[ph,"full","auto",...P()],D=()=>[$u,"none","subgrid",gt,vt],O=()=>["auto",{span:["full",$u,gt,vt]},$u,gt,vt],N=()=>[$u,"auto",gt,vt],M=()=>["auto","min","max","fr",gt,vt],k=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...P()],U=()=>[ph,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],$=()=>[e,gt,vt],J=()=>[...S(),VF,UF,{position:[gt,vt]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",Zfe,Yfe,{size:[gt,vt]}],_e=()=>[iE,Xv,af],me=()=>["","none","full",u,gt,vt],Me=()=>["",Qt,Xv,af],Re=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],oe=()=>[Qt,iE,VF,UF],Ee=()=>["","none",p,gt,vt],we=()=>["none",Qt,gt,vt],Ae=()=>["none",Qt,gt,vt],Oe=()=>[Qt,gt,vt],Ue=()=>[ph,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Il],breakpoint:[Il],color:[Hfe],container:[Il],"drop-shadow":[Il],ease:["in","out","in-out"],font:[jfe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Il],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Il],shadow:[Il],spacing:["px",Qt],text:[Il],"text-shadow":[Il],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ph,vt,gt,y]}],container:["container"],columns:[{columns:[Qt,vt,gt,s]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[$u,"auto",gt,vt]}],basis:[{basis:[ph,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qt,ph,"auto","initial","none",vt]}],grow:[{grow:["",Qt,gt,vt]}],shrink:[{shrink:["",Qt,gt,vt]}],order:[{order:[$u,"first","last","none",gt,vt]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":M()}],"auto-rows":[{"auto-rows":M()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...k(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...k()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[s,"screen",...U()]}],"min-w":[{"min-w":[s,"screen","none",...U()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,Xv,af]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,gt,oE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iE,vt]}],"font-family":[{font:[Kfe,vt,t]}],"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:[i,gt,vt]}],"line-clamp":[{"line-clamp":[Qt,"none",gt,oE]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",gt,vt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",gt,vt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qt,"from-font","auto",gt,af]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Qt,"auto",gt,vt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",gt,vt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",gt,vt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$u,gt,vt],radial:["",gt,vt],conic:[$u,gt,vt]},qfe,Xfe]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:_e()}],"gradient-via-pos":[{via:_e()}],"gradient-to-pos":[{to:_e()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Me()}],"border-w-x":[{"border-x":Me()}],"border-w-y":[{"border-y":Me()}],"border-w-s":[{"border-s":Me()}],"border-w-e":[{"border-e":Me()}],"border-w-t":[{"border-t":Me()}],"border-w-r":[{"border-r":Me()}],"border-w-b":[{"border-b":Me()}],"border-w-l":[{"border-l":Me()}],"divide-x":[{"divide-x":Me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qt,gt,vt]}],"outline-w":[{outline:["",Qt,Xv,af]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",c,N1,k1]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",f,N1,k1]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:Me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Qt,af]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":Me()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",h,N1,k1]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Qt,gt,vt]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qt]}],"mask-image-linear-from-pos":[{"mask-linear-from":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[gt,vt]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[Qt]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",gt,vt]}],filter:[{filter:["","none",gt,vt]}],blur:[{blur:Ee()}],brightness:[{brightness:[Qt,gt,vt]}],contrast:[{contrast:[Qt,gt,vt]}],"drop-shadow":[{"drop-shadow":["","none",d,N1,k1]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Qt,gt,vt]}],"hue-rotate":[{"hue-rotate":[Qt,gt,vt]}],invert:[{invert:["",Qt,gt,vt]}],saturate:[{saturate:[Qt,gt,vt]}],sepia:[{sepia:["",Qt,gt,vt]}],"backdrop-filter":[{"backdrop-filter":["","none",gt,vt]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Qt,gt,vt]}],"backdrop-contrast":[{"backdrop-contrast":[Qt,gt,vt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qt,gt,vt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qt,gt,vt]}],"backdrop-invert":[{"backdrop-invert":["",Qt,gt,vt]}],"backdrop-opacity":[{"backdrop-opacity":[Qt,gt,vt]}],"backdrop-saturate":[{"backdrop-saturate":[Qt,gt,vt]}],"backdrop-sepia":[{"backdrop-sepia":["",Qt,gt,vt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",gt,vt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qt,"initial",gt,vt]}],ease:[{ease:["linear","initial",m,gt,vt]}],delay:[{delay:[Qt,gt,vt]}],animate:[{animate:["none",b,gt,vt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,gt,vt]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:Ae()}],"scale-x":[{"scale-x":Ae()}],"scale-y":[{"scale-y":Ae()}],"scale-z":[{"scale-z":Ae()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[gt,vt,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ue()}],"translate-x":[{"translate-x":Ue()}],"translate-y":[{"translate-y":Ue()}],"translate-z":[{"translate-z":Ue()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",gt,vt]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",gt,vt]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Qt,Xv,af,oE]}],stroke:[{stroke:["none",...$()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ui=kfe(ede),tde={class:"bg-base-100 sticky -top-2 z-10"},nde=["colSpan","onClick"],rde={class:"flex items-center gap-1"},ide=["onClick"],ode=["onClick"],ade=["onDblclick","onMousedown","onTouchstart"],sde=["onClick"],lde=["onContextmenu"],ude={key:0,class:"flex items-center overflow-hidden"},cde={class:"ml-1 shrink-0"},fde=Ze({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=iM(),n=Je("config/table-column-width",{[We.Close]:50,[We.Host]:320,[We.Chains]:320,[We.Rule]:200,[We.Download]:80,[We.DlSpeed]:80,[We.Upload]:80,[We.UlSpeed]:80,[We.Outbound]:80,[We.Type]:150,[We.Process]:150,[We.SourceIP]:150,[We.SourcePort]:100,[We.SniffHost]:200,[We.Destination]:150,[We.ConnectTime]:100}),r=ge(()=>lb.value===qw.MANUAL),{t:i}=qr(),o=[{header:()=>i(We.Close),enableSorting:!1,id:We.Close,cell:({row:M})=>yi("button",{class:"btn btn-xs btn-circle",onClick:k=>{const V=M.original;k.stopPropagation(),mv(V.id)}},[yi(nu,{class:"h-4 w-4"})])},{header:()=>i(We.Type),id:We.Type,accessorFn:TY},{header:()=>i(We.Process),id:We.Process,accessorFn:wY},{header:()=>i(We.Host),id:We.Host,accessorFn:SY},{header:()=>i(We.SniffHost),id:We.SniffHost,accessorFn:M=>M.metadata.sniffHost||"-"},{header:()=>i(We.Rule),id:We.Rule,accessorFn:M=>M.rulePayload?`${M.rule}: ${M.rulePayload}`:M.rule},{header:()=>i(We.Chains),id:We.Chains,accessorFn:M=>{const k=[...M.chains];return ud.value===Cd.REVERSE?k.join(" → "):k.reverse().join(" → ")},cell:({row:M})=>{const k=[],V=M.original.chains;return V.forEach((B,U)=>{k.unshift(yi(gu,{name:B,key:B})),U<V.length-1&&k.unshift(yi(aa,{class:"h-4 w-4 shrink-0",key:`arrow-${U}`}))}),yi("div",{class:`flex items-center ${ud.value===Cd.REVERSE&&"flex-row-reverse justify-end"} gap-1`},k)}},{header:()=>i(We.Outbound),id:We.Outbound,accessorFn:M=>M.chains[0],cell:({row:M})=>yi(gu,{name:M.original.chains[0]})},{header:()=>i(We.ConnectTime),enableGrouping:!1,id:We.ConnectTime,accessorFn:M=>tx(M.start),sortingFn:(M,k)=>ui(k.original.start).valueOf()-ui(M.original.start).valueOf()},{header:()=>i(We.DlSpeed),enableGrouping:!1,sortDescFirst:!0,id:We.DlSpeed,accessorFn:M=>`${nr(M.downloadSpeed)}/s`,sortingFn:(M,k)=>M.original.downloadSpeed-k.original.downloadSpeed},{header:()=>i(We.UlSpeed),enableGrouping:!1,sortDescFirst:!0,id:We.UlSpeed,accessorFn:M=>`${nr(M.uploadSpeed)}/s`,sortingFn:(M,k)=>M.original.uploadSpeed-k.original.uploadSpeed},{header:()=>i(We.Download),enableGrouping:!1,sortDescFirst:!0,id:We.Download,accessorFn:M=>nr(M.download),sortingFn:(M,k)=>M.original.download-k.original.download},{header:()=>i(We.Upload),enableGrouping:!1,sortDescFirst:!0,id:We.Upload,accessorFn:M=>nr(M.upload),sortingFn:(M,k)=>M.original.upload-k.original.upload},{header:()=>i(We.SourceIP),id:We.SourceIP,accessorFn:M=>xS(M.metadata.sourceIP)},{header:()=>i(We.SourcePort),id:We.SourcePort,accessorFn:M=>M.metadata.sourcePort},{header:()=>i(We.Destination),id:We.Destination,accessorFn:PO},{header:()=>i(We.DestinationType),id:We.DestinationType,accessorFn:xY},{header:()=>i(We.RemoteAddress),id:We.RemoteAddress,accessorFn:M=>M.metadata.remoteDestination||"-"},{header:()=>i(We.InboundUser),id:We.InboundUser,accessorFn:Iw}],a=Te([]),s=Te({}),l=Je("config/table-sorting",[]),u=Je("config/table-column-pinning",{left:[],right:[]}),c=Sfe({get data(){return Id.value},columns:o,columnResizeMode:"onChange",columnResizeDirection:"ltr",state:{get columnOrder(){return Yh.value},get columnVisibility(){return{...Object.fromEntries(Object.values(We).map(M=>[M,!1])),...Object.fromEntries(Yh.value.filter(M=>M!==We.Close||bc.value!==zd.CLOSED).map(M=>[M,!0]))}},get grouping(){return a.value},get expanded(){return s.value},get sorting(){return l.value},get columnSizing(){return n.value},get columnPinning(){return u.value}},onGroupingChange:M=>{Wl(M)?a.value=M(a.value):a.value=M},onExpandedChange:M=>{Wl(M)&&(s.value=M(s.value))},onSortingChange:M=>{Wl(M)?l.value=M(l.value):l.value=M},onColumnSizingChange:M=>{Wl(M)?n.value=M(n.value):n.value=M},onColumnPinningChange:M=>{Wl(M)?u.value=M(u.value):u.value=M},getSortedRowModel:yfe(),getGroupedRowModel:gfe(),getExpandedRowModel:pfe(),getCoreRowModel:hfe()}),f=ge(()=>c.getRowModel().rows),h=Te(null),d=ge(()=>({count:f.value.length,getScrollElement:()=>h.value,estimateSize:()=>36,overscan:24})),p=y8(d),g=ge(()=>p.value.getVirtualItems()),y=ge(()=>p.value.getTotalSize()+24),m={[Ym.SMALL]:"table-xs",[Ym.LARGE]:"table-sm"},b=ge(()=>m[sb.value]),w=M=>{C.value||(M.getIsGrouped()?M.getCanExpand()&&M.getToggleExpandedHandler()():t(M.original))},S=M=>{M.getIsPinned()==="left"?M.pin(!1):((u.value.left||[]).forEach(V=>{if(V!==M.id){const B=c.getColumn(V);B&&B.pin(!1)}}),M.pin("left"))},C=Te(!1),T=Te(!1),E=Math.pow(3,2),P=M=>{M.button===0&&(T.value=!0,M.preventDefault())},I=M=>{if(!T.value||!h.value)return;const k=M.movementX,V=M.movementY;!C.value&&Math.pow(k,2)+Math.pow(V,2)>E&&(C.value=!0),C.value&&(h.value.scrollLeft-=k,h.value.scrollTop-=V,M.preventDefault())},D=()=>{C.value&&setTimeout(()=>{C.value=!1},100),T.value=!1},O=async M=>{try{await navigator.clipboard.writeText(M),pr({content:"copySuccess",type:"alert-success",timeout:2e3})}catch{const k=document.createElement("textarea");k.value=M,document.body.appendChild(k),k.select();try{document.execCommand("copy"),pr({content:"copySuccess",type:"alert-success",timeout:2e3})}catch(V){console.error("复制失败:",V)}document.body.removeChild(k)}},N=(M,k)=>{M.preventDefault();const V=k.getValue();V&&V!=="-"&&O(String(V))};return(M,k)=>(H(),K("div",{ref_key:"parentRef",ref:h,class:ct(["h-full overflow-auto p-2",{"select-none":C.value}]),onTouchstartPassive:k[1]||(k[1]=Pn(()=>{},["stop"])),onTouchmovePassive:k[2]||(k[2]=Pn(()=>{},["stop"])),onTouchendPassive:k[3]||(k[3]=Pn(()=>{},["stop"])),onMousedown:P,onMousemove:I,onMouseup:D,onMouseleave:D},[R("div",{style:Kn({height:`${y.value}px`})},[R("table",{class:ct(["table-zebra table rounded-none shadow-md",b.value,r.value&&"table-fixed"]),style:Kn(r.value&&{width:`${L(c).getCenterTotalSize()}px`})},[R("thead",tde,[(H(!0),K(Ve,null,Yt(L(c).getHeaderGroups(),V=>(H(),K("tr",{key:V.id},[(H(!0),K(Ve,null,Yt(V.headers,B=>(H(),K("th",{key:B.id,colSpan:B.colSpan,class:ct(["relative",[B.column.getCanSort()?"cursor-pointer select-none":"",B.column.getIsPinned&&B.column.getIsPinned()==="left"?"pinned-td bg-base-100 sticky -left-2 z-20":""]]),style:Kn(r.value&&{width:`${B.getSize()}px`}),onClick:U=>B.column.getToggleSortingHandler()?.(U)},[R("div",rde,[B.isPlaceholder?Ge("",!0):(H(),it(L(rE),{key:0,render:B.column.columnDef.header,props:B.getContext()},null,8,["render","props"])),B.column.getIsSorted()==="asc"?(H(),it(L(Vy),{key:1,class:"h-4 w-4"})):Ge("",!0),B.column.getIsSorted()==="desc"?(H(),it(L(Yw),{key:2,class:"h-4 w-4"})):Ge("",!0),R("div",null,[B.column.getCanGroup()?(H(),K("button",{key:0,class:"btn btn-xs btn-circle btn-ghost",onClick:Pn(()=>B.column.getToggleGroupingHandler()(),["stop"])},[B.column.getIsGrouped()?(H(),it(L(zN),{key:0,class:"h-4 w-4"})):(H(),it(L(GN),{key:1,class:"h-4 w-4"}))],8,ide)):Ge("",!0),B.column.id===L(We).Host||B.column.id===L(We).SniffHost?(H(),K("button",{key:1,class:"btn btn-xs btn-circle btn-ghost",onClick:Pn(()=>S(B.column),["stop"])},[B.column.getIsPinned()!=="left"?(H(),it(L(kR),{key:0,class:"h-4 w-4"})):(H(),it(L(nu),{key:1,class:"h-4 w-4"}))],8,ode)):Ge("",!0)])]),r.value?(H(),K("div",{key:0,onDblclick:()=>B.column.resetSize(),onClick:k[0]||(k[0]=Pn(()=>{},["stop"])),onMousedown:Pn(U=>B.getResizeHandler()(U),["stop"]),onTouchstart:Pn(U=>B.getResizeHandler()(U),["stop"]),class:"resizer bg-neutral absolute top-0 right-0 h-full w-1 cursor-ew-resize"},null,40,ade)):Ge("",!0)],14,nde))),128))]))),128))]),R("tbody",null,[(H(!0),K(Ve,null,Yt(g.value,(V,B)=>(H(),K("tr",{key:V.key.toString(),style:Kn({height:`${V.size}px`,transform:`translateY(${V.start-B*V.size}px)`}),class:ct(["bg-base-100 hover:bg-primary! hover:text-primary-content",{"cursor-pointer":!C.value,"cursor-grabbing":C.value}]),onClick:U=>w(f.value[V.index])},[(H(!0),K(Ve,null,Yt(f.value[V.index].getVisibleCells(),U=>(H(),K("td",{key:U.id,class:ct([r.value?"truncate text-sm":L(Ui)("text-sm whitespace-nowrap",[L(We).Download,L(We).DlSpeed,L(We).Upload,L(We).UlSpeed].includes(U.column.id)&&"min-w-20",L(We).Host===U.column.id&&"max-w-xs truncate",[L(We).Chains,L(We).Rule].includes(U.column.id)&&"max-w-xl truncate"),U.column.getIsPinned&&U.column.getIsPinned()==="left"?"pinned-td sticky -left-2 z-20 bg-inherit shadow-md":""]),onContextmenu:$=>N($,U)},[U.column.getIsGrouped()?(H(),K(Ve,{key:0},[f.value[V.index].getCanExpand()?(H(),K("div",ude,[(H(),it(Po(f.value[V.index].getIsExpanded()?L(zN):L(GN)),{class:"mr-1 inline-block h-4 w-4 shrink-0"})),z(L(rE),{render:U.column.columnDef.cell,props:U.getContext(),class:"shrink-1 overflow-hidden"},null,8,["render","props"]),R("span",cde," ("+q(f.value[V.index].subRows.length)+") ",1)])):Ge("",!0)],64)):(H(),it(L(rE),{key:1,render:U.getIsAggregated()?U.column.columnDef.aggregatedCell:U.column.columnDef.cell,props:U.getContext()},null,8,["render","props"]))],42,lde))),128))],14,sde))),128))])],6)],4)],34))}}),dde={class:"size-full overflow-x-hidden"},hde=Ze({__name:"ConnectionsPage",setup(e){return(t,n)=>(H(),K("div",dde,[L(ls)?(H(),it(ice,{key:0})):(H(),it(fde,{key:1})),z(Ace)]))}});var Do="top",Ba="bottom",Ua="right",Oo="left",hM="auto",Ky=[Do,Ba,Ua,Oo],Dp="start",oy="end",pde="clippingParents",J8="viewport",Kv="popper",vde="reference",HF=Ky.reduce(function(e,t){return e.concat([t+"-"+Dp,t+"-"+oy])},[]),Q8=[].concat(Ky,[hM]).reduce(function(e,t){return e.concat([t,t+"-"+Dp,t+"-"+oy])},[]),gde="beforeRead",mde="read",yde="afterRead",_de="beforeMain",bde="main",Sde="afterMain",wde="beforeWrite",xde="write",Tde="afterWrite",Cde=[gde,mde,yde,_de,bde,Sde,wde,xde,Tde];function sl(e){return e?(e.nodeName||"").toLowerCase():null}function ua(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pd(e){var t=ua(e).Element;return e instanceof t||e instanceof Element}function La(e){var t=ua(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function pM(e){if(typeof ShadowRoot>"u")return!1;var t=ua(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ede(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!La(o)||!sl(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function Ide(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!La(i)||!sl(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const ez={name:"applyStyles",enabled:!0,phase:"write",fn:Ede,effect:Ide,requires:["computeStyles"]};function Qs(e){return e.split("-")[0]}var fd=Math.max,AS=Math.min,Op=Math.round;function oA(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tz(){return!/^((?!chrome|android).)*safari/i.test(oA())}function Lp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&La(e)&&(i=e.offsetWidth>0&&Op(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Op(r.height)/e.offsetHeight||1);var a=Pd(e)?ua(e):window,s=a.visualViewport,l=!tz()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:c,right:u+f,bottom:c+h,left:u,x:u,y:c}}function vM(e){var t=Lp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&pM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mu(e){return ua(e).getComputedStyle(e)}function Ade(e){return["table","td","th"].indexOf(sl(e))>=0}function zc(e){return((Pd(e)?e.ownerDocument:e.document)||window.document).documentElement}function lx(e){return sl(e)==="html"?e:e.assignedSlot||e.parentNode||(pM(e)?e.host:null)||zc(e)}function zF(e){return!La(e)||mu(e).position==="fixed"?null:e.offsetParent}function Pde(e){var t=/firefox/i.test(oA()),n=/Trident/i.test(oA());if(n&&La(e)){var r=mu(e);if(r.position==="fixed")return null}var i=lx(e);for(pM(i)&&(i=i.host);La(i)&&["html","body"].indexOf(sl(i))<0;){var o=mu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Zy(e){for(var t=ua(e),n=zF(e);n&&Ade(n)&&mu(n).position==="static";)n=zF(n);return n&&(sl(n)==="html"||sl(n)==="body"&&mu(n).position==="static")?t:n||Pde(e)||t}function gM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dm(e,t,n){return fd(e,AS(t,n))}function Rde(e,t,n){var r=dm(e,t,n);return r>n?n:r}function rz(){return{top:0,right:0,bottom:0,left:0}}function iz(e){return Object.assign({},rz(),e)}function oz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Mde=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,iz(typeof t!="number"?t:oz(t,Ky))};function Dde(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Qs(n.placement),l=gM(s),u=[Oo,Ua].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=Mde(i.padding,n),h=vM(o),d=l==="y"?Do:Oo,p=l==="y"?Ba:Ua,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],y=a[l]-n.rects.reference[l],m=Zy(o),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=g/2-y/2,S=f[d],C=b-h[c]-f[p],T=b/2-h[c]/2+w,E=dm(S,T,C),P=l;n.modifiersData[r]=(t={},t[P]=E,t.centerOffset=E-T,t)}}function Ode(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||nz(t.elements.popper,i)&&(t.elements.arrow=i))}const Lde={name:"arrow",enabled:!0,phase:"main",fn:Dde,effect:Ode,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kp(e){return e.split("-")[1]}var kde={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nde(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Op(n*i)/i||0,y:Op(r*i)/i||0}}function GF(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=a.x,d=h===void 0?0:h,p=a.y,g=p===void 0?0:p,y=typeof c=="function"?c({x:d,y:g}):{x:d,y:g};d=y.x,g=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),w=Oo,S=Do,C=window;if(u){var T=Zy(n),E="clientHeight",P="clientWidth";if(T===ua(n)&&(T=zc(n),mu(T).position!=="static"&&s==="absolute"&&(E="scrollHeight",P="scrollWidth")),T=T,i===Do||(i===Oo||i===Ua)&&o===oy){S=Ba;var I=f&&T===C&&C.visualViewport?C.visualViewport.height:T[E];g-=I-r.height,g*=l?1:-1}if(i===Oo||(i===Do||i===Ba)&&o===oy){w=Ua;var D=f&&T===C&&C.visualViewport?C.visualViewport.width:T[P];d-=D-r.width,d*=l?1:-1}}var O=Object.assign({position:s},u&&kde),N=c===!0?Nde({x:d,y:g},ua(n)):{x:d,y:g};if(d=N.x,g=N.y,l){var M;return Object.assign({},O,(M={},M[S]=b?"0":"",M[w]=m?"0":"",M.transform=(C.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",M))}return Object.assign({},O,(t={},t[S]=b?g+"px":"",t[w]=m?d+"px":"",t.transform="",t))}function Fde(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Qs(t.placement),variation:kp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,GF(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,GF(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const $de={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fde,data:{}};var F1={passive:!0};function Bde(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=ua(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,F1)}),s&&l.addEventListener("resize",n.update,F1),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,F1)}),s&&l.removeEventListener("resize",n.update,F1)}}const Ude={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bde,data:{}};var Vde={left:"right",right:"left",bottom:"top",top:"bottom"};function yb(e){return e.replace(/left|right|bottom|top/g,function(t){return Vde[t]})}var Hde={start:"end",end:"start"};function WF(e){return e.replace(/start|end/g,function(t){return Hde[t]})}function mM(e){var t=ua(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function yM(e){return Lp(zc(e)).left+mM(e).scrollLeft}function zde(e,t){var n=ua(e),r=zc(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=tz();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+yM(e),y:l}}function Gde(e){var t,n=zc(e),r=mM(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=fd(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=fd(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+yM(e),l=-r.scrollTop;return mu(i||n).direction==="rtl"&&(s+=fd(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function _M(e){var t=mu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function az(e){return["html","body","#document"].indexOf(sl(e))>=0?e.ownerDocument.body:La(e)&&_M(e)?e:az(lx(e))}function hm(e,t){var n;t===void 0&&(t=[]);var r=az(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ua(r),a=i?[o].concat(o.visualViewport||[],_M(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(hm(lx(a)))}function aA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Wde(e,t){var n=Lp(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jF(e,t,n){return t===J8?aA(zde(e,n)):Pd(t)?Wde(t,n):aA(Gde(zc(e)))}function jde(e){var t=hm(lx(e)),n=["absolute","fixed"].indexOf(mu(e).position)>=0,r=n&&La(e)?Zy(e):e;return Pd(r)?t.filter(function(i){return Pd(i)&&nz(i,r)&&sl(i)!=="body"}):[]}function Yde(e,t,n,r){var i=t==="clippingParents"?jde(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=jF(e,u,r);return l.top=fd(c.top,l.top),l.right=AS(c.right,l.right),l.bottom=AS(c.bottom,l.bottom),l.left=fd(c.left,l.left),l},jF(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sz(e){var t=e.reference,n=e.element,r=e.placement,i=r?Qs(r):null,o=r?kp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Do:l={x:a,y:t.y-n.height};break;case Ba:l={x:a,y:t.y+t.height};break;case Ua:l={x:t.x+t.width,y:s};break;case Oo:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?gM(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Dp:l[u]=l[u]-(t[c]/2-n[c]/2);break;case oy:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ay(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?pde:s,u=n.rootBoundary,c=u===void 0?J8:u,f=n.elementContext,h=f===void 0?Kv:f,d=n.altBoundary,p=d===void 0?!1:d,g=n.padding,y=g===void 0?0:g,m=iz(typeof y!="number"?y:oz(y,Ky)),b=h===Kv?vde:Kv,w=e.rects.popper,S=e.elements[p?b:h],C=Yde(Pd(S)?S:S.contextElement||zc(e.elements.popper),l,c,a),T=Lp(e.elements.reference),E=sz({reference:T,element:w,placement:i}),P=aA(Object.assign({},w,E)),I=h===Kv?P:T,D={top:C.top-I.top+m.top,bottom:I.bottom-C.bottom+m.bottom,left:C.left-I.left+m.left,right:I.right-C.right+m.right},O=e.modifiersData.offset;if(h===Kv&&O){var N=O[i];Object.keys(D).forEach(function(M){var k=[Ua,Ba].indexOf(M)>=0?1:-1,V=[Do,Ba].indexOf(M)>=0?"y":"x";D[M]+=N[V]*k})}return D}function Xde(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Q8:l,c=kp(r),f=c?s?HF:HF.filter(function(p){return kp(p)===c}):Ky,h=f.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=f);var d=h.reduce(function(p,g){return p[g]=ay(e,{placement:g,boundary:i,rootBoundary:o,padding:a})[Qs(g)],p},{});return Object.keys(d).sort(function(p,g){return d[p]-d[g]})}function Kde(e){if(Qs(e)===hM)return[];var t=yb(e);return[WF(e),t,WF(t)]}function Zde(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=d===void 0?!0:d,g=n.allowedAutoPlacements,y=t.options.placement,m=Qs(y),b=m===y,w=l||(b||!p?[yb(y)]:Kde(y)),S=[y].concat(w).reduce(function(Me,Re){return Me.concat(Qs(Re)===hM?Xde(t,{placement:Re,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:g}):Re)},[]),C=t.rects.reference,T=t.rects.popper,E=new Map,P=!0,I=S[0],D=0;D<S.length;D++){var O=S[D],N=Qs(O),M=kp(O)===Dp,k=[Do,Ba].indexOf(N)>=0,V=k?"width":"height",B=ay(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),U=k?M?Ua:Oo:M?Ba:Do;C[V]>T[V]&&(U=yb(U));var $=yb(U),J=[];if(o&&J.push(B[N]<=0),s&&J.push(B[U]<=0,B[$]<=0),J.every(function(Me){return Me})){I=O,P=!1;break}E.set(O,J)}if(P)for(var ae=p?3:1,ne=function(Re){var ke=S.find(function(oe){var Ee=E.get(oe);if(Ee)return Ee.slice(0,Re).every(function(we){return we})});if(ke)return I=ke,"break"},_e=ae;_e>0;_e--){var me=ne(_e);if(me==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const qde={name:"flip",enabled:!0,phase:"main",fn:Zde,requiresIfExists:["offset"],data:{_skip:!1}};function YF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function XF(e){return[Do,Ua,Ba,Oo].some(function(t){return e[t]>=0})}function Jde(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ay(t,{elementContext:"reference"}),s=ay(t,{altBoundary:!0}),l=YF(a,r),u=YF(s,i,o),c=XF(l),f=XF(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Qde={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jde};function ehe(e,t,n){var r=Qs(e),i=[Oo,Do].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Oo,Ua].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function the(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Q8.reduce(function(c,f){return c[f]=ehe(f,t.rects,o),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const nhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:the};function rhe(e){var t=e.state,n=e.name;t.modifiersData[n]=sz({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const ihe={name:"popperOffsets",enabled:!0,phase:"read",fn:rhe,data:{}};function ohe(e){return e==="x"?"y":"x"}function ahe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=h===void 0?!0:h,p=n.tetherOffset,g=p===void 0?0:p,y=ay(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Qs(t.placement),b=kp(t.placement),w=!b,S=gM(m),C=ohe(S),T=t.modifiersData.popperOffsets,E=t.rects.reference,P=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(T){if(o){var M,k=S==="y"?Do:Oo,V=S==="y"?Ba:Ua,B=S==="y"?"height":"width",U=T[S],$=U+y[k],J=U-y[V],ae=d?-P[B]/2:0,ne=b===Dp?E[B]:P[B],_e=b===Dp?-P[B]:-E[B],me=t.elements.arrow,Me=d&&me?vM(me):{width:0,height:0},Re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rz(),ke=Re[k],oe=Re[V],Ee=dm(0,E[B],Me[B]),we=w?E[B]/2-ae-Ee-ke-D.mainAxis:ne-Ee-ke-D.mainAxis,Ae=w?-E[B]/2+ae+Ee+oe+D.mainAxis:_e+Ee+oe+D.mainAxis,Oe=t.elements.arrow&&Zy(t.elements.arrow),Ue=Oe?S==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Y=(M=O?.[S])!=null?M:0,X=U+we-Y-Ue,de=U+Ae-Y,Ie=dm(d?AS($,X):$,U,d?fd(J,de):J);T[S]=Ie,N[S]=Ie-U}if(s){var be,W=S==="x"?Do:Oo,Z=S==="x"?Ba:Ua,re=T[C],pe=C==="y"?"height":"width",Ce=re+y[W],$e=re-y[Z],te=[Do,Oo].indexOf(m)!==-1,ve=(be=O?.[C])!=null?be:0,je=te?Ce:re-E[pe]-P[pe]-ve+D.altAxis,nt=te?re+E[pe]+P[pe]-ve-D.altAxis:$e,Tt=d&&te?Rde(je,re,nt):dm(d?je:Ce,re,d?nt:$e);T[C]=Tt,N[C]=Tt-re}t.modifiersData[r]=N}}const she={name:"preventOverflow",enabled:!0,phase:"main",fn:ahe,requiresIfExists:["offset"]};function lhe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uhe(e){return e===ua(e)||!La(e)?mM(e):lhe(e)}function che(e){var t=e.getBoundingClientRect(),n=Op(t.width)/e.offsetWidth||1,r=Op(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fhe(e,t,n){n===void 0&&(n=!1);var r=La(t),i=La(t)&&che(t),o=zc(t),a=Lp(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((sl(t)!=="body"||_M(o))&&(s=uhe(t)),La(t)?(l=Lp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=yM(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function dhe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function hhe(e){var t=dhe(e);return Cde.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function phe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vhe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var KF={placement:"bottom",modifiers:[],strategy:"absolute"};function ZF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ghe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?KF:i;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},KF,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],h=!1,d={state:c,setOptions:function(m){var b=typeof m=="function"?m(c.options):m;g(),c.options=Object.assign({},o,c.options,b),c.scrollParents={reference:Pd(s)?hm(s):s.contextElement?hm(s.contextElement):[],popper:hm(l)};var w=hhe(vhe([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),d.update()},forceUpdate:function(){if(!h){var m=c.elements,b=m.reference,w=m.popper;if(ZF(b,w)){c.rects={reference:fhe(b,Zy(w),c.options.strategy==="fixed"),popper:vM(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(D){return c.modifiersData[D.name]=Object.assign({},D.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],T=C.fn,E=C.options,P=E===void 0?{}:E,I=C.name;typeof T=="function"&&(c=T({state:c,options:P,name:I,instance:d})||c)}}}},update:phe(function(){return new Promise(function(y){d.forceUpdate(),y(c)})}),destroy:function(){g(),h=!0}};if(!ZF(s,l))return d;d.setOptions(u).then(function(y){!h&&u.onFirstUpdate&&u.onFirstUpdate(y)});function p(){c.orderedModifiers.forEach(function(y){var m=y.name,b=y.options,w=b===void 0?{}:b,S=y.effect;if(typeof S=="function"){var C=S({state:c,name:m,instance:d,options:w}),T=function(){};f.push(C||T)}})}function g(){f.forEach(function(y){return y()}),f=[]}return d}}var mhe=[Ude,ihe,$de,ez,nhe,qde,she,Lde,Qde],yhe=ghe({defaultModifiers:mhe}),_he="tippy-box",lz="tippy-content",bhe="tippy-backdrop",uz="tippy-arrow",cz="tippy-svg-arrow",Lf={passive:!0,capture:!0},fz=function(){return document.body};function aE(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function bM(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function dz(e,t){return typeof e=="function"?e.apply(void 0,t):e}function qF(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function She(e){return e.split(/\s+/).filter(Boolean)}function Vh(e){return[].concat(e)}function JF(e,t){e.indexOf(t)===-1&&e.push(t)}function whe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function xhe(e){return e.split("-")[0]}function PS(e){return[].slice.call(e)}function QF(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function pm(){return document.createElement("div")}function ux(e){return["Element","Fragment"].some(function(t){return bM(e,t)})}function The(e){return bM(e,"NodeList")}function Che(e){return bM(e,"MouseEvent")}function Ehe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Ihe(e){return ux(e)?[e]:The(e)?PS(e):Array.isArray(e)?e:PS(document.querySelectorAll(e))}function sE(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function e3(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function Ahe(e){var t,n=Vh(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Phe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(i){var o=i.popperRect,a=i.popperState,s=i.props,l=s.interactiveBorder,u=xhe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,h=u==="top"?c.bottom.y:0,d=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,g=o.top-r+f>l,y=r-o.bottom-h>l,m=o.left-n+d>l,b=n-o.right-p>l;return g||y||m||b})}function lE(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function t3(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var zs={isTouch:!1},n3=0;function Rhe(){zs.isTouch||(zs.isTouch=!0,window.performance&&document.addEventListener("mousemove",hz))}function hz(){var e=performance.now();e-n3<20&&(zs.isTouch=!1,document.removeEventListener("mousemove",hz)),n3=e}function Mhe(){var e=document.activeElement;if(Ehe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Dhe(){document.addEventListener("touchstart",Rhe,Lf),window.addEventListener("blur",Mhe)}var Ohe=typeof window<"u"&&typeof document<"u",Lhe=Ohe?!!window.msCrypto:!1,khe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Nhe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},fs=Object.assign({appendTo:fz,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},khe,Nhe),Fhe=Object.keys(fs),$he=function(t){var n=Object.keys(t);n.forEach(function(r){fs[r]=t[r]})};function pz(e){var t=e.plugins||[],n=t.reduce(function(r,i){var o=i.name,a=i.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=fs[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function Bhe(e,t){var n=t?Object.keys(pz(Object.assign({},fs,{plugins:t}))):Fhe,r=n.reduce(function(i,o){var a=(e.getAttribute("data-tippy-"+o)||"").trim();if(!a)return i;if(o==="content")i[o]=a;else try{i[o]=JSON.parse(a)}catch{i[o]=a}return i},{});return r}function r3(e,t){var n=Object.assign({},t,{content:dz(t.content,[e])},t.ignoreAttributes?{}:Bhe(e,t.plugins));return n.aria=Object.assign({},fs.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var Uhe=function(){return"innerHTML"};function sA(e,t){e[Uhe()]=t}function i3(e){var t=pm();return e===!0?t.className=uz:(t.className=cz,ux(e)?t.appendChild(e):sA(t,e)),t}function o3(e,t){ux(t.content)?(sA(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?sA(e,t.content):e.textContent=t.content)}function lA(e){var t=e.firstElementChild,n=PS(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(lz)}),arrow:n.find(function(r){return r.classList.contains(uz)||r.classList.contains(cz)}),backdrop:n.find(function(r){return r.classList.contains(bhe)})}}function vz(e){var t=pm(),n=pm();n.className=_he,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=pm();r.className=lz,r.setAttribute("data-state","hidden"),o3(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=lA(t),l=s.box,u=s.content,c=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(o.content!==a.content||o.allowHTML!==a.allowHTML)&&o3(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(i3(a.arrow))):l.appendChild(i3(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}vz.$$tippy=!0;var Vhe=1,$1=[],uE=[];function Hhe(e,t){var n=r3(e,Object.assign({},fs,pz(QF(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,h,d=[],p=qF(X,n.interactiveDebounce),g,y=Vhe++,m=null,b=whe(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},S={id:y,reference:e,popper:pm(),popperInstance:m,props:n,state:w,plugins:b,clearDelayTimeouts:je,setProps:nt,setContent:Tt,show:se,hide:ce,hideWithInteractivity:ye,enable:te,disable:ve,unmount:De,destroy:Xe};if(!n.render)return S;var C=n.render(S),T=C.popper,E=C.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+S.id,S.popper=T,e._tippy=S,T._tippy=S;var P=b.map(function(ue){return ue.fn(S)}),I=e.hasAttribute("aria-expanded");return Oe(),ae(),U(),$("onCreate",[S]),n.showOnCreate&&Ce(),T.addEventListener("mouseenter",function(){S.props.interactive&&S.state.isVisible&&S.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){S.props.interactive&&S.props.trigger.indexOf("mouseenter")>=0&&k().addEventListener("mousemove",p)}),S;function D(){var ue=S.props.touch;return Array.isArray(ue)?ue:[ue,0]}function O(){return D()[0]==="hold"}function N(){var ue;return!!((ue=S.props.render)!=null&&ue.$$tippy)}function M(){return g||e}function k(){var ue=M().parentNode;return ue?Ahe(ue):document}function V(){return lA(T)}function B(ue){return S.state.isMounted&&!S.state.isVisible||zs.isTouch||c&&c.type==="focus"?0:aE(S.props.delay,ue?0:1,fs.delay)}function U(ue){ue===void 0&&(ue=!1),T.style.pointerEvents=S.props.interactive&&!ue?"":"none",T.style.zIndex=""+S.props.zIndex}function $(ue,Le,ze){if(ze===void 0&&(ze=!0),P.forEach(function(Ke){Ke[ue]&&Ke[ue].apply(Ke,Le)}),ze){var lt;(lt=S.props)[ue].apply(lt,Le)}}function J(){var ue=S.props.aria;if(ue.content){var Le="aria-"+ue.content,ze=T.id,lt=Vh(S.props.triggerTarget||e);lt.forEach(function(Ke){var qe=Ke.getAttribute(Le);if(S.state.isVisible)Ke.setAttribute(Le,qe?qe+" "+ze:ze);else{var ut=qe&&qe.replace(ze,"").trim();ut?Ke.setAttribute(Le,ut):Ke.removeAttribute(Le)}})}}function ae(){if(!(I||!S.props.aria.expanded)){var ue=Vh(S.props.triggerTarget||e);ue.forEach(function(Le){S.props.interactive?Le.setAttribute("aria-expanded",S.state.isVisible&&Le===M()?"true":"false"):Le.removeAttribute("aria-expanded")})}}function ne(){k().removeEventListener("mousemove",p),$1=$1.filter(function(ue){return ue!==p})}function _e(ue){if(!(zs.isTouch&&(l||ue.type==="mousedown"))){var Le=ue.composedPath&&ue.composedPath()[0]||ue.target;if(!(S.props.interactive&&t3(T,Le))){if(Vh(S.props.triggerTarget||e).some(function(ze){return t3(ze,Le)})){if(zs.isTouch||S.state.isVisible&&S.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[S,ue]);S.props.hideOnClick===!0&&(S.clearDelayTimeouts(),S.hide(),s=!0,setTimeout(function(){s=!1}),S.state.isMounted||ke())}}}function me(){l=!0}function Me(){l=!1}function Re(){var ue=k();ue.addEventListener("mousedown",_e,!0),ue.addEventListener("touchend",_e,Lf),ue.addEventListener("touchstart",Me,Lf),ue.addEventListener("touchmove",me,Lf)}function ke(){var ue=k();ue.removeEventListener("mousedown",_e,!0),ue.removeEventListener("touchend",_e,Lf),ue.removeEventListener("touchstart",Me,Lf),ue.removeEventListener("touchmove",me,Lf)}function oe(ue,Le){we(ue,function(){!S.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Le()})}function Ee(ue,Le){we(ue,Le)}function we(ue,Le){var ze=V().box;function lt(Ke){Ke.target===ze&&(lE(ze,"remove",lt),Le())}if(ue===0)return Le();lE(ze,"remove",f),lE(ze,"add",lt),f=lt}function Ae(ue,Le,ze){ze===void 0&&(ze=!1);var lt=Vh(S.props.triggerTarget||e);lt.forEach(function(Ke){Ke.addEventListener(ue,Le,ze),d.push({node:Ke,eventType:ue,handler:Le,options:ze})})}function Oe(){O()&&(Ae("touchstart",Y,{passive:!0}),Ae("touchend",de,{passive:!0})),She(S.props.trigger).forEach(function(ue){if(ue!=="manual")switch(Ae(ue,Y),ue){case"mouseenter":Ae("mouseleave",de);break;case"focus":Ae(Lhe?"focusout":"blur",Ie);break;case"focusin":Ae("focusout",Ie);break}})}function Ue(){d.forEach(function(ue){var Le=ue.node,ze=ue.eventType,lt=ue.handler,Ke=ue.options;Le.removeEventListener(ze,lt,Ke)}),d=[]}function Y(ue){var Le,ze=!1;if(!(!S.state.isEnabled||be(ue)||s)){var lt=((Le=c)==null?void 0:Le.type)==="focus";c=ue,g=ue.currentTarget,ae(),!S.state.isVisible&&Che(ue)&&$1.forEach(function(Ke){return Ke(ue)}),ue.type==="click"&&(S.props.trigger.indexOf("mouseenter")<0||a)&&S.props.hideOnClick!==!1&&S.state.isVisible?ze=!0:Ce(ue),ue.type==="click"&&(a=!ze),ze&&!lt&&$e(ue)}}function X(ue){var Le=ue.target,ze=M().contains(Le)||T.contains(Le);if(!(ue.type==="mousemove"&&ze)){var lt=pe().concat(T).map(function(Ke){var qe,ut=Ke._tippy,Nt=(qe=ut.popperInstance)==null?void 0:qe.state;return Nt?{popperRect:Ke.getBoundingClientRect(),popperState:Nt,props:n}:null}).filter(Boolean);Phe(lt,ue)&&(ne(),$e(ue))}}function de(ue){var Le=be(ue)||S.props.trigger.indexOf("click")>=0&&a;if(!Le){if(S.props.interactive){S.hideWithInteractivity(ue);return}$e(ue)}}function Ie(ue){S.props.trigger.indexOf("focusin")<0&&ue.target!==M()||S.props.interactive&&ue.relatedTarget&&T.contains(ue.relatedTarget)||$e(ue)}function be(ue){return zs.isTouch?O()!==ue.type.indexOf("touch")>=0:!1}function W(){Z();var ue=S.props,Le=ue.popperOptions,ze=ue.placement,lt=ue.offset,Ke=ue.getReferenceClientRect,qe=ue.moveTransition,ut=N()?lA(T).arrow:null,Nt=Ke?{getBoundingClientRect:Ke,contextElement:Ke.contextElement||M()}:e,Ut={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Un){var kr=Un.state;if(N()){var Xd=V(),Tu=Xd.box;["placement","reference-hidden","escaped"].forEach(function(Cs){Cs==="placement"?Tu.setAttribute("data-placement",kr.placement):kr.attributes.popper["data-popper-"+Cs]?Tu.setAttribute("data-"+Cs,""):Tu.removeAttribute("data-"+Cs)}),kr.attributes.popper={}}}},Gn=[{name:"offset",options:{offset:lt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!qe}},Ut];N()&&ut&&Gn.push({name:"arrow",options:{element:ut,padding:3}}),Gn.push.apply(Gn,Le?.modifiers||[]),S.popperInstance=yhe(Nt,T,Object.assign({},Le,{placement:ze,onFirstUpdate:h,modifiers:Gn}))}function Z(){S.popperInstance&&(S.popperInstance.destroy(),S.popperInstance=null)}function re(){var ue=S.props.appendTo,Le,ze=M();S.props.interactive&&ue===fz||ue==="parent"?Le=ze.parentNode:Le=dz(ue,[ze]),Le.contains(T)||Le.appendChild(T),S.state.isMounted=!0,W()}function pe(){return PS(T.querySelectorAll("[data-tippy-root]"))}function Ce(ue){S.clearDelayTimeouts(),ue&&$("onTrigger",[S,ue]),Re();var Le=B(!0),ze=D(),lt=ze[0],Ke=ze[1];zs.isTouch&&lt==="hold"&&Ke&&(Le=Ke),Le?r=setTimeout(function(){S.show()},Le):S.show()}function $e(ue){if(S.clearDelayTimeouts(),$("onUntrigger",[S,ue]),!S.state.isVisible){ke();return}if(!(S.props.trigger.indexOf("mouseenter")>=0&&S.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ue.type)>=0&&a)){var Le=B(!1);Le?i=setTimeout(function(){S.state.isVisible&&S.hide()},Le):o=requestAnimationFrame(function(){S.hide()})}}function te(){S.state.isEnabled=!0}function ve(){S.hide(),S.state.isEnabled=!1}function je(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function nt(ue){if(!S.state.isDestroyed){$("onBeforeUpdate",[S,ue]),Ue();var Le=S.props,ze=r3(e,Object.assign({},Le,QF(ue),{ignoreAttributes:!0}));S.props=ze,Oe(),Le.interactiveDebounce!==ze.interactiveDebounce&&(ne(),p=qF(X,ze.interactiveDebounce)),Le.triggerTarget&&!ze.triggerTarget?Vh(Le.triggerTarget).forEach(function(lt){lt.removeAttribute("aria-expanded")}):ze.triggerTarget&&e.removeAttribute("aria-expanded"),ae(),U(),E&&E(Le,ze),S.popperInstance&&(W(),pe().forEach(function(lt){requestAnimationFrame(lt._tippy.popperInstance.forceUpdate)})),$("onAfterUpdate",[S,ue])}}function Tt(ue){S.setProps({content:ue})}function se(){var ue=S.state.isVisible,Le=S.state.isDestroyed,ze=!S.state.isEnabled,lt=zs.isTouch&&!S.props.touch,Ke=aE(S.props.duration,0,fs.duration);if(!(ue||Le||ze||lt)&&!M().hasAttribute("disabled")&&($("onShow",[S],!1),S.props.onShow(S)!==!1)){if(S.state.isVisible=!0,N()&&(T.style.visibility="visible"),U(),Re(),S.state.isMounted||(T.style.transition="none"),N()){var qe=V(),ut=qe.box,Nt=qe.content;sE([ut,Nt],0)}h=function(){var Gn;if(!(!S.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=S.props.moveTransition,N()&&S.props.animation){var Ha=V(),Un=Ha.box,kr=Ha.content;sE([Un,kr],Ke),e3([Un,kr],"visible")}J(),ae(),JF(uE,S),(Gn=S.popperInstance)==null||Gn.forceUpdate(),$("onMount",[S]),S.props.animation&&N()&&Ee(Ke,function(){S.state.isShown=!0,$("onShown",[S])})}},re()}}function ce(){var ue=!S.state.isVisible,Le=S.state.isDestroyed,ze=!S.state.isEnabled,lt=aE(S.props.duration,1,fs.duration);if(!(ue||Le||ze)&&($("onHide",[S],!1),S.props.onHide(S)!==!1)){if(S.state.isVisible=!1,S.state.isShown=!1,u=!1,a=!1,N()&&(T.style.visibility="hidden"),ne(),ke(),U(!0),N()){var Ke=V(),qe=Ke.box,ut=Ke.content;S.props.animation&&(sE([qe,ut],lt),e3([qe,ut],"hidden"))}J(),ae(),S.props.animation?N()&&oe(lt,S.unmount):S.unmount()}}function ye(ue){k().addEventListener("mousemove",p),JF($1,p),p(ue)}function De(){S.state.isVisible&&S.hide(),S.state.isMounted&&(Z(),pe().forEach(function(ue){ue._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),uE=uE.filter(function(ue){return ue!==S}),S.state.isMounted=!1,$("onHidden",[S]))}function Xe(){S.state.isDestroyed||(S.clearDelayTimeouts(),S.unmount(),Ue(),delete e._tippy,S.state.isDestroyed=!0,$("onDestroy",[S]))}}function qy(e,t){t===void 0&&(t={});var n=fs.plugins.concat(t.plugins||[]);Dhe();var r=Object.assign({},t,{plugins:n}),i=Ihe(e),o=i.reduce(function(a,s){var l=s&&Hhe(s,r);return l&&a.push(l),a},[]);return ux(e)?o[0]:o}qy.defaultProps=fs;qy.setDefaultProps=$he;qy.currentInput=zs;Object.assign({},ez,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});qy.setDefaultProps({render:vz});let cE,Zv=null,fE=null;const uo=()=>(cE||(cE=document.getElementById("app-content")),{showTip:(n,r,i={})=>{fE!==n.currentTarget&&(Zv?.destroy(),Zv=qy(n.currentTarget,{content:r,placement:"top",animation:"scale",appendTo:cE,allowHTML:!0,showOnCreate:!0,onHidden:()=>{Zv?.destroy(),Zv=null,fE=null},popperOptions:{modifiers:[{name:"preventOverflow",options:{boundary:"clippingParents",padding:8}},{name:"flip",options:{fallbackPlacements:["top","bottom","right","left"]}}]},...i}),fE=n.currentTarget)},hideTip:()=>{Zv?.hide()}}),{showTip:zhe}=uo(),Gs=e=>{const t=e.target,{scrollWidth:n,clientWidth:r}=t;n>r&&zhe(e,t.innerText,{delay:[700,0],trigger:"mouseenter",touch:["hold",500]})},Ghe={class:"relative"},Whe=["placeholder","name","autocomplete"],Tn=Ze({__name:"TextInput",props:sS({placeholder:{},beforeClose:{type:Boolean},name:{},autocomplete:{},clearable:{type:Boolean},menus:{},menusDeleteable:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:sS(["input","change","update:menus"],["update:modelValue"]),setup(e,{emit:t}){const n=t,r=e,i=Hd(e,"modelValue"),o=()=>{i.value=""},{showTip:a,hideTip:s}=uo(),l=u=>{if(!r.menus?.length)return;const c=Ze({props:{menus:{type:Array,default:()=>[]},menusDeleteable:{type:Boolean,default:!1}},setup(d){return()=>yi("div",{class:"max-h-64 overflow-y-auto overflow-x-hidden scrollbar-hidden min-w-24"},d.menus.map(p=>yi("div",{class:"cursor-pointer p-1 flex gap-2 items-center"},[yi("span",{class:"flex-1 transition-transform hover:scale-105 hover:text-primary",onClick:()=>{i.value=p,s()}},p),d.menusDeleteable&&yi(nu,{class:"h-3 w-3 transition-transform hover:scale-125",onClick:()=>{n("update:menus",d.menus.filter(g=>g!==p)),s()}})])))}}),f=document.createElement("div");Wm(c,{menus:r.menus,menusDeleteable:r.menusDeleteable}).mount(f),a(u,f,{theme:"base",placement:"bottom-start",trigger:"click",interactive:!0,appendTo:document.body,arrow:!1})};return(u,c)=>(H(),K("div",Ghe,[u.beforeClose&&u.clearable?(H(),it(L(nu),{key:0,class:"absolute top-2 right-2 z-10 h-4 w-3 cursor-pointer hover:scale-125",onClick:o})):Ge("",!0),tt(R("input",{"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),type:"text",class:ct(["input input-sm join-item w-full",{"pr-6":u.clearable}]),placeholder:u.placeholder||"",name:u.name||"",autocomplete:u.autocomplete||"",onClick:l,onInput:c[1]||(c[1]=f=>(n("input",i.value||""),L(s)())),onChange:c[2]||(c[2]=f=>n("change",i.value||""))},null,42,Whe),[[Yr,i.value]]),!u.beforeClose&&u.clearable?(H(),it(L(nu),{key:1,class:"absolute top-2 right-2 z-10 h-4 w-3 cursor-pointer hover:scale-125",onClick:o})):Ge("",!0)]))}});var _b={exports:{}},dE={exports:{}},hE={};/**
* @vue/compiler-core v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Np=Symbol(""),gp=Symbol(""),cx=Symbol(""),sy=Symbol(""),SM=Symbol(""),Rc=Symbol(""),wM=Symbol(""),xM=Symbol(""),fx=Symbol(""),dx=Symbol(""),uv=Symbol(""),hx=Symbol(""),TM=Symbol(""),px=Symbol(""),vx=Symbol(""),gx=Symbol(""),mx=Symbol(""),yx=Symbol(""),_x=Symbol(""),CM=Symbol(""),EM=Symbol(""),Jy=Symbol(""),ly=Symbol(""),bx=Symbol(""),Sx=Symbol(""),Fp=Symbol(""),cv=Symbol(""),xx=Symbol(""),RS=Symbol(""),gz=Symbol(""),MS=Symbol(""),uy=Symbol(""),mz=Symbol(""),yz=Symbol(""),Tx=Symbol(""),_z=Symbol(""),bz=Symbol(""),Cx=Symbol(""),IM=Symbol(""),Rd={[Np]:"Fragment",[gp]:"Teleport",[cx]:"Suspense",[sy]:"KeepAlive",[SM]:"BaseTransition",[Rc]:"openBlock",[wM]:"createBlock",[xM]:"createElementBlock",[fx]:"createVNode",[dx]:"createElementVNode",[uv]:"createCommentVNode",[hx]:"createTextVNode",[TM]:"createStaticVNode",[px]:"resolveComponent",[vx]:"resolveDynamicComponent",[gx]:"resolveDirective",[mx]:"resolveFilter",[yx]:"withDirectives",[_x]:"renderList",[CM]:"renderSlot",[EM]:"createSlots",[Jy]:"toDisplayString",[ly]:"mergeProps",[bx]:"normalizeClass",[Sx]:"normalizeStyle",[Fp]:"normalizeProps",[cv]:"guardReactiveProps",[xx]:"toHandlers",[RS]:"camelize",[gz]:"capitalize",[MS]:"toHandlerKey",[uy]:"setBlockTracking",[mz]:"pushScopeId",[yz]:"popScopeId",[Tx]:"withCtx",[_z]:"unref",[bz]:"isRef",[Cx]:"withMemo",[IM]:"isMemoSame"};function Sz(e){Object.getOwnPropertySymbols(e).forEach(t=>{Rd[t]=e[t]})}const jhe={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},Yhe={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},Xhe={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},Khe={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},Jr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function wz(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Jr}}function $p(e,t,n,r,i,o,a,s=!1,l=!1,u=!1,c=Jr){return e&&(s?(e.helper(Rc),e.helper(Od(e.inSSR,u))):e.helper(Dd(e.inSSR,u)),a&&e.helper(yx)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function Sc(e,t=Jr){return{type:17,loc:t,elements:e}}function na(e,t=Jr){return{type:15,loc:t,properties:e}}function Tr(e,t){return{type:16,loc:Jr,key:kt(e)?Gt(e,!0):e,value:t}}function Gt(e,t=!1,n=Jr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Zhe(e,t){return{type:5,loc:t,content:kt(e)?Gt(e,!1,t):e}}function ka(e,t=Jr){return{type:8,loc:t,children:e}}function Br(e,t=[],n=Jr){return{type:14,loc:n,callee:e,arguments:t}}function Md(e,t=void 0,n=!1,r=!1,i=Jr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function DS(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Jr}}function xz(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Jr}}function Tz(e){return{type:21,body:e,loc:Jr}}function qhe(e){return{type:22,elements:e,loc:Jr}}function Jhe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Jr}}function Qhe(e,t){return{type:24,left:e,right:t,loc:Jr}}function epe(e){return{type:25,expressions:e,loc:Jr}}function tpe(e){return{type:26,returns:e,loc:Jr}}function Dd(e,t){return e||t?fx:dx}function Od(e,t){return e||t?wM:xM}function Ex(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Dd(r,e.isComponent)),t(Rc),t(Od(r,e.isComponent)))}const a3=new Uint8Array([123,123]),s3=new Uint8Array([125,125]);function l3(e){return e>=97&&e<=122||e>=65&&e<=90}function Jo(e){return e===32||e===10||e===9||e===12||e===13}function Bu(e){return e===47||e===62||Jo(e)}function OS(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const Ii={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class npe{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=a3,this.delimiterClose=s3,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=a3,this.delimiterClose=s3}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=0;i--){const o=this.newlines[i];if(t>o){n=i+2,r=t-o;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Bu(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(t)}stateInRCDATA(t){if(this.sequenceIndex===this.currentSequence.length){if(t===62||Jo(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ii.TitleEnd||this.currentSequence===Ii.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===Ii.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ii.Cdata.length&&(this.state=28,this.currentSequence=Ii.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ii.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):l3(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){Bu(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(Bu(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(OS("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Jo(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=l3(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||Jo(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Jo(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Jo(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||Bu(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||Bu(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||Bu(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||Bu(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||Bu(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Jo(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):Jo(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Jo(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=Ii.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===Ii.ScriptEnd[3]?this.startSpecial(Ii.ScriptEnd,4):t===Ii.StyleEnd[3]?this.startSpecial(Ii.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===Ii.TitleEnd[3]?this.startSpecial(Ii.TitleEnd,4):t===Ii.TextareaEnd[3]?this.startSpecial(Ii.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===Ii.CdataEnd?this.cbs.oncdata(this.sectionStart,t):this.cbs.oncomment(this.sectionStart,t):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){}}const rpe={COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},ipe={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function uA(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function dd(e,t){const n=uA("MODE",t),r=uA(e,t);return n===3?r===!0:r!==!1}function Bp(e,t,n,...r){return dd(e,t)}function ope(e,t,n,...r){if(uA(e,t)==="suppress-warning")return;const{message:o,link:a}=ipe[e],s=`(deprecation ${e}) ${typeof o=="function"?o(...r):o}${a?`
Details: ${a}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function AM(e){throw e}function Cz(e){}function rr(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const ape={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},spe={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function lpe(e,t,n=!1,r=[],i=Object.create(null)){}function upe(e,t,n){return!1}function cpe(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function fpe(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function dpe(e,t){for(const n of e.params)for(const r of jl(n))t(r)}function hpe(e,t){for(const n of e.body)if(n.type==="VariableDeclaration"){if(n.declare)continue;for(const r of n.declarations)for(const i of jl(r.id))t(i)}else if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){if(n.declare||!n.id)continue;t(n.id)}else ppe(n)&&vpe(n,!0,t)}function ppe(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function vpe(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"?t:!t))for(const i of r.declarations)for(const o of jl(i.id))n(o)}function jl(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?jl(r.argument,t):jl(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&jl(r,t)});break;case"RestElement":jl(e.argument,t);break;case"AssignmentPattern":jl(e.left,t);break}return t}const gpe=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Ez=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,mpe=(e,t)=>Ez(t)&&t.key===e,Iz=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function Az(e){return Iz.includes(e.type)?Az(e.expression):e}const no=e=>e.type===4&&e.isStatic;function PM(e){switch(e){case"Teleport":case"teleport":return gp;case"Suspense":case"suspense":return cx;case"KeepAlive":case"keep-alive":return sy;case"BaseTransition":case"base-transition":return SM}}const ype=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Qy=e=>!ype.test(e),_pe=/[A-Za-z_$\xA0-\uFFFF]/,bpe=/[\.\?\w$\xA0-\uFFFF]/,Spe=/\s+[.[]\s*|\s*[.[]\s+/g,Pz=e=>e.type===4?e.content:e.loc.source,Rz=e=>{const t=Pz(e).trim().replace(Spe,s=>s.trim());let n=0,r=[],i=0,o=0,a=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")r.push(n),n=1,i++;else if(l==="(")r.push(n),n=2,o++;else if(!(s===0?_pe:bpe).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,a=l):l==="["?i++:l==="]"&&(--i||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,a=l;else if(l==="(")o++;else if(l===")"){if(s===t.length-1)return!1;--o||(n=r.pop())}break;case 3:l===a&&(n=r.pop(),a=null);break}}return!i&&!o},wpe=li,RM=Rz,xpe=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,Mz=e=>xpe.test(Pz(e)),Tpe=li,Dz=Mz;function Cpe(e,t,n=t.length){return Oz({offset:e.offset,line:e.line,column:e.column},t,n)}function Oz(e,t,n=t.length){let r=0,i=-1;for(let o=0;o<n;o++)t.charCodeAt(o)===10&&(r++,i=o);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function Epe(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function to(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(kt(t)?i.name===t:t.test(i.name)))return i}}function e0(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(n)continue;if(o.name===t&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&fc(o.arg,t))return o}}function fc(e,t){return!!(e&&no(e)&&e.content===t)}function Lz(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function bb(e){return e.type===5||e.type===2}function cA(e){return e.type===7&&e.name==="pre"}function MM(e){return e.type===7&&e.name==="slot"}function Up(e){return e.type===1&&e.tagType===3}function cy(e){return e.type===1&&e.tagType===2}const Ipe=new Set([Fp,cv]);function kz(e,t=[]){if(e&&!kt(e)&&e.type===14){const n=e.callee;if(!kt(n)&&Ipe.has(n))return kz(e.arguments[0],t.concat(e))}return[e,t]}function fy(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],o=[],a;if(i&&!kt(i)&&i.type===14){const s=kz(i);i=s[0],o=s[1],a=o[o.length-1]}if(i==null||kt(i))r=na([t]);else if(i.type===14){const s=i.arguments[0];!kt(s)&&s.type===15?u3(t,s)||s.properties.unshift(t):i.callee===xx?r=Br(n.helper(ly),[na([t]),i]):i.arguments.unshift(na([t])),!r&&(r=i)}else i.type===15?(u3(t,i)||i.properties.unshift(t),r=i):(r=Br(n.helper(ly),[na([t]),i]),a&&a.callee===cv&&(a=o[o.length-2]));e.type===13?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function u3(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function Vp(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Ja(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(Ja(r.arg,t)||Ja(r.exp,t)))return!0}return e.children.some(n=>Ja(n,t));case 11:return Ja(e.source,t)?!0:e.children.some(n=>Ja(n,t));case 9:return e.branches.some(n=>Ja(n,t));case 10:return Ja(e.condition,t)?!0:e.children.some(n=>Ja(n,t));case 4:return!e.isStatic&&Qy(e.content)&&!!t[e.content];case 8:return e.children.some(n=>Cn(n)&&Ja(n,t));case 5:case 12:return Ja(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function Nz(e){return e.type===14&&e.callee===Cx?e.arguments[1].returns:e}const Fz=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,$z={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:Uf,isPreTag:Uf,isIgnoreNewlineTag:Uf,isCustomElement:Uf,onError:AM,onWarn:Cz,comments:!1,prefixIdentifiers:!1};let Sn=$z,dy=null,au="",Di=null,fn=null,_o="",Nl=-1,kf=-1,DM=0,nc=!1,fA=null;const ur=[],wr=new npe(ur,{onerr:Al,ontext(e,t){B1(gi(e,t),e,t)},ontextentity(e,t,n){B1(e,t,n)},oninterpolation(e,t){if(nc)return B1(gi(e,t),e,t);let n=e+wr.delimiterOpen.length,r=t-wr.delimiterClose.length;for(;Jo(au.charCodeAt(n));)n++;for(;Jo(au.charCodeAt(r-1));)r--;let i=gi(n,r);i.includes("&")&&(i=Sn.decodeEntities(i,!1)),dA({type:5,content:wb(i,!1,Pr(n,r)),loc:Pr(e,t)})},onopentagname(e,t){const n=gi(e,t);Di={type:1,tag:n,ns:Sn.getNamespace(n,ur[0],Sn.ns),tagType:0,props:[],children:[],loc:Pr(e-1,t),codegenNode:void 0}},onopentagend(e){f3(e)},onclosetag(e,t){const n=gi(e,t);if(!Sn.isVoidTag(n)){let r=!1;for(let i=0;i<ur.length;i++)if(ur[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Al(24,ur[0].loc.start.offset);for(let a=0;a<=i;a++){const s=ur.shift();Sb(s,t,a<i)}break}r||Al(23,Bz(e,60))}},onselfclosingtag(e){const t=Di.tag;Di.isSelfClosing=!0,f3(e),ur[0]&&ur[0].tag===t&&Sb(ur.shift(),e)},onattribname(e,t){fn={type:6,name:gi(e,t),nameLoc:Pr(e,t),value:void 0,loc:Pr(e)}},ondirname(e,t){const n=gi(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!nc&&r===""&&Al(26,e),nc||r==="")fn={type:6,name:n,nameLoc:Pr(e,t),value:void 0,loc:Pr(e)};else if(fn={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[Gt("prop")]:[],loc:Pr(e)},r==="pre"){nc=wr.inVPre=!0,fA=Di;const i=Di.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=$pe(i[o]))}},ondirarg(e,t){if(e===t)return;const n=gi(e,t);if(nc&&!cA(fn))fn.name+=n,Wf(fn.nameLoc,t);else{const r=n[0]!=="[";fn.arg=wb(r?n:n.slice(1,-1),r,Pr(e,t),r?3:0)}},ondirmodifier(e,t){const n=gi(e,t);if(nc&&!cA(fn))fn.name+="."+n,Wf(fn.nameLoc,t);else if(fn.name==="slot"){const r=fn.arg;r&&(r.content+="."+n,Wf(r.loc,t))}else{const r=Gt(n,!0,Pr(e,t));fn.modifiers.push(r)}},onattribdata(e,t){_o+=gi(e,t),Nl<0&&(Nl=e),kf=t},onattribentity(e,t,n){_o+=e,Nl<0&&(Nl=t),kf=n},onattribnameend(e){const t=fn.loc.start.offset,n=gi(t,e);fn.type===7&&(fn.rawName=n),Di.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Al(2,t)},onattribend(e,t){if(Di&&fn){if(Wf(fn.loc,t),e!==0)if(_o.includes("&")&&(_o=Sn.decodeEntities(_o,!0)),fn.type===6)fn.name==="class"&&(_o=Vz(_o).trim()),e===1&&!_o&&Al(13,t),fn.value={type:2,content:_o,loc:e===1?Pr(Nl,kf):Pr(Nl-1,kf+1)},wr.inSFCRoot&&Di.tag==="template"&&fn.name==="lang"&&_o&&_o!=="html"&&wr.enterRCDATA(OS("</template"),0);else{let n=0;fn.exp=wb(_o,!1,Pr(Nl,kf),0,n),fn.name==="for"&&(fn.forParseResult=Ppe(fn.exp));let r=-1;fn.name==="bind"&&(r=fn.modifiers.findIndex(i=>i.content==="sync"))>-1&&Bp("COMPILER_V_BIND_SYNC",Sn,fn.loc,fn.arg.loc.source)&&(fn.name="model",fn.modifiers.splice(r,1))}(fn.type!==7||fn.name!=="pre")&&Di.props.push(fn)}_o="",Nl=kf=-1},oncomment(e,t){Sn.comments&&dA({type:3,content:gi(e,t),loc:Pr(e-4,t+3)})},onend(){const e=au.length;for(let t=0;t<ur.length;t++)Sb(ur[t],e-1),Al(24,ur[t].loc.start.offset)},oncdata(e,t){ur[0].ns!==0?B1(gi(e,t),e,t):Al(1,e-9)},onprocessinginstruction(e){(ur[0]?ur[0].ns:Sn.ns)===0&&Al(21,e-1)}}),c3=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ape=/^\(|\)$/g;function Ppe(e){const t=e.loc,n=e.content,r=n.match(Fz);if(!r)return;const[,i,o]=r,a=(f,h,d=!1)=>{const p=t.start.offset+h,g=p+f.length;return wb(f,!1,Pr(p,g),0,d?1:0)},s={source:a(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Ape,"").trim();const u=i.indexOf(l),c=l.match(c3);if(c){l=l.replace(c3,"").trim();const f=c[1].trim();let h;if(f&&(h=n.indexOf(f,u+l.length),s.key=a(f,h,!0)),c[2]){const d=c[2].trim();d&&(s.index=a(d,n.indexOf(d,s.key?h+f.length:u+l.length),!0))}}return l&&(s.value=a(l,u,!0)),s}function gi(e,t){return au.slice(e,t)}function f3(e){wr.inSFCRoot&&(Di.innerLoc=Pr(e+1,e+1)),dA(Di);const{tag:t,ns:n}=Di;n===0&&Sn.isPreTag(t)&&DM++,Sn.isVoidTag(t)?Sb(Di,e):(ur.unshift(Di),(n===1||n===2)&&(wr.inXML=!0)),Di=null}function B1(e,t,n){{const o=ur[0]&&ur[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=Sn.decodeEntities(e,!1))}const r=ur[0]||dy,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,Wf(i.loc,n)):r.children.push({type:2,content:e,loc:Pr(t,n)})}function Sb(e,t,n=!1){n?Wf(e.loc,Bz(t,60)):Wf(e.loc,Rpe(t,62)+1),wr.inSFCRoot&&(e.children.length?e.innerLoc.end=un({},e.children[e.children.length-1].loc.end):e.innerLoc.end=un({},e.innerLoc.start),e.innerLoc.source=gi(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(nc||(r==="slot"?e.tagType=2:d3(e)?e.tagType=3:Dpe(e)&&(e.tagType=1)),wr.inRCDATA||(e.children=Uz(o)),i===0&&Sn.isIgnoreNewlineTag(r)){const a=o[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}i===0&&Sn.isPreTag(r)&&DM--,fA===e&&(nc=wr.inVPre=!1,fA=null),wr.inXML&&(ur[0]?ur[0].ns:Sn.ns)===0&&(wr.inXML=!1);{const a=e.props;if(!wr.inSFCRoot&&dd("COMPILER_NATIVE_TEMPLATE",Sn)&&e.tag==="template"&&!d3(e)){const l=ur[0]||dy,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const s=a.find(l=>l.type===6&&l.name==="inline-template");s&&Bp("COMPILER_INLINE_TEMPLATE",Sn,s.loc)&&e.children.length&&(s.value={type:2,content:gi(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function Rpe(e,t){let n=e;for(;au.charCodeAt(n)!==t&&n<au.length-1;)n++;return n}function Bz(e,t){let n=e;for(;au.charCodeAt(n)!==t&&n>=0;)n--;return n}const Mpe=new Set(["if","else","else-if","for","slot"]);function d3({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&Mpe.has(t[n].name))return!0}return!1}function Dpe({tag:e,props:t}){if(Sn.isCustomElement(e))return!1;if(e==="component"||Ope(e.charCodeAt(0))||PM(e)||Sn.isBuiltInComponent&&Sn.isBuiltInComponent(e)||Sn.isNativeTag&&!Sn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Bp("COMPILER_IS_ON_ELEMENT",Sn,r.loc))return!0}}else if(r.name==="bind"&&fc(r.arg,"is")&&Bp("COMPILER_IS_ON_ELEMENT",Sn,r.loc))return!0}return!1}function Ope(e){return e>64&&e<91}const Lpe=/\r\n/g;function Uz(e){const t=Sn.whitespace!=="preserve";let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(i.type===2)if(DM)i.content=i.content.replace(Lpe,`
`);else if(kpe(i.content)){const o=e[r-1]&&e[r-1].type,a=e[r+1]&&e[r+1].type;!o||!a||t&&(o===3&&(a===3||a===1)||o===1&&(a===3||a===1&&Npe(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=Vz(i.content))}return n?e.filter(Boolean):e}function kpe(e){for(let t=0;t<e.length;t++)if(!Jo(e.charCodeAt(t)))return!1;return!0}function Npe(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Vz(e){let t="",n=!1;for(let r=0;r<e.length;r++)Jo(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function dA(e){(ur[0]||dy).children.push(e)}function Pr(e,t){return{start:wr.getPos(e),end:t==null?t:wr.getPos(t),source:t==null?t:gi(e,t)}}function Fpe(e){return Pr(e.start.offset,e.end.offset)}function Wf(e,t){e.end=wr.getPos(t),e.source=gi(e.start.offset,t)}function $pe(e){const t={type:6,name:e.rawName,nameLoc:Pr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function wb(e,t=!1,n,r=0,i=0){return Gt(e,t,n,r)}function Al(e,t,n){Sn.onError(rr(e,Pr(t,t)))}function Bpe(){wr.reset(),Di=null,fn=null,_o="",Nl=-1,kf=-1,ur.length=0}function OM(e,t){if(Bpe(),au=e,Sn=un({},$z),t){let i;for(i in t)t[i]!=null&&(Sn[i]=t[i])}wr.mode=Sn.parseMode==="html"?1:Sn.parseMode==="sfc"?2:0,wr.inXML=Sn.ns===1||Sn.ns===2;const n=t&&t.delimiters;n&&(wr.delimiterOpen=OS(n[0]),wr.delimiterClose=OS(n[1]));const r=dy=wz([],e);return wr.parse(au),r.loc=Pr(0,e.length),r.children=Uz(r.children),dy=null,r}function Upe(e,t){xb(e,void 0,t,!!Hz(e))}function Hz(e){const t=e.children.filter(n=>n.type!==3);return t.length===1&&t[0].type===1&&!cy(t[0])?t[0]:null}function xb(e,t,n,r=!1,i=!1){const{children:o}=e,a=[];for(let c=0;c<o.length;c++){const f=o[c];if(f.type===1&&f.tagType===0){const h=r?0:Ro(f,n);if(h>0){if(h>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const d=f.codegenNode;if(d.type===13){const p=d.patchFlag;if((p===void 0||p===512||p===1)&&Gz(f,n)>=2){const g=Wz(f);g&&(d.props=n.hoist(g))}d.dynamicProps&&(d.dynamicProps=n.hoist(d.dynamicProps))}}}else if(f.type===12&&(r?0:Ro(f,n))>=2){f.codegenNode.type===14&&f.codegenNode.arguments.length>0&&f.codegenNode.arguments.push("-1"),a.push(f);continue}if(f.type===1){const h=f.tagType===1;h&&n.scopes.vSlot++,xb(f,e,n,!1,i),h&&n.scopes.vSlot--}else if(f.type===11)xb(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let h=0;h<f.branches.length;h++)xb(f.branches[h],e,n,f.branches[h].children.length===1,i)}let s=!1;if(a.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&st(e.codegenNode.children))e.codegenNode.children=l(Sc(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!st(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(Sc(c.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!st(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=to(e,"slot",!0),f=c&&c.arg&&u(t.codegenNode,c.arg);f&&(f.returns=l(Sc(f.returns)),s=!0)}}if(!s)for(const c of a)c.codegenNode=n.cache(c.codegenNode);function l(c){const f=n.cache(c);return f.needArraySpread=!0,f}function u(c,f){if(c.children&&!st(c.children)&&c.children.type===15){const h=c.children.properties.find(d=>d.key===f||d.key.content===f);return h&&h.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function Ro(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let a=3;const s=Gz(e,t);if(s===0)return n.set(e,0),0;s<a&&(a=s);for(let l=0;l<e.children.length;l++){const u=Ro(e.children[l],t);if(u===0)return n.set(e,0),0;u<a&&(a=u)}if(a>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=Ro(u.exp,t);if(c===0)return n.set(e,0),0;c<a&&(a=c)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Rc),t.removeHelper(Od(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Dd(t.inSSR,i.isComponent))}return n.set(e,a),a}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return Ro(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const s=e.children[a];if(kt(s)||ao(s))continue;const l=Ro(s,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const Vpe=new Set([bx,Sx,Fp,cv]);function zz(e,t){if(e.type===14&&!kt(e.callee)&&Vpe.has(e.callee)){const n=e.arguments[0];if(n.type===4)return Ro(n,t);if(n.type===14)return zz(n,t)}return 0}function Gz(e,t){let n=3;const r=Wz(e);if(r&&r.type===15){const{properties:i}=r;for(let o=0;o<i.length;o++){const{key:a,value:s}=i[o],l=Ro(a,t);if(l===0)return l;l<n&&(n=l);let u;if(s.type===4?u=Ro(s,t):s.type===14?u=zz(s,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function Wz(e){const t=e.codegenNode;if(t.type===13)return t.props}function jz(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:u=li,isCustomElement:c=li,expressionPlugins:f=[],scopeId:h=null,slotted:d=!0,ssr:p=!1,inSSR:g=!1,ssrCssVars:y="",bindingMetadata:m=sn,inline:b=!1,isTS:w=!1,onError:S=AM,onWarn:C=Cz,compatConfig:T}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),P={filename:t,selfName:E&&$c(Zn(E[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:f,scopeId:h,slotted:d,ssr:p,inSSR:g,ssrCssVars:y,bindingMetadata:m,inline:b,isTS:w,onError:S,onWarn:C,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const D=P.helpers.get(I)||0;return P.helpers.set(I,D+1),I},removeHelper(I){const D=P.helpers.get(I);if(D){const O=D-1;O?P.helpers.set(I,O):P.helpers.delete(I)}},helperString(I){return`_${Rd[P.helper(I)]}`},replaceNode(I){P.parent.children[P.childIndex]=P.currentNode=I},removeNode(I){const D=P.parent.children,O=I?D.indexOf(I):P.currentNode?P.childIndex:-1;!I||I===P.currentNode?(P.currentNode=null,P.onNodeRemoved()):P.childIndex>O&&(P.childIndex--,P.onNodeRemoved()),P.parent.children.splice(O,1)},onNodeRemoved:li,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){kt(I)&&(I=Gt(I)),P.hoists.push(I);const D=Gt(`_hoisted_${P.hoists.length}`,!1,I.loc,2);return D.hoisted=I,D},cache(I,D=!1,O=!1){const N=xz(P.cached.length,I,D,O);return P.cached.push(N),N}};return P.filters=new Set,P}function Yz(e,t){const n=jz(e,t);t0(e,n),t.hoistStatic&&Upe(e,n),t.ssr||Hpe(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Hpe(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=Hz(e);if(i&&i.codegenNode){const o=i.codegenNode;o.type===13&&Ex(o,t),e.codegenNode=o}else e.codegenNode=r[0]}else if(r.length>1){let i=64;e.codegenNode=$p(t,n(Np),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function zpe(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];kt(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,t0(i,t))}}function t0(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const a=n[o](e,t);if(a&&(st(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(uv);break;case 5:t.ssr||t.helper(Jy);break;case 9:for(let o=0;o<e.branches.length;o++)t0(e.branches[o],t);break;case 10:case 11:case 1:case 0:zpe(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function LM(e,t){const n=kt(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:o}=r;if(r.tagType===3&&o.some(MM))return;const a=[];for(let s=0;s<o.length;s++){const l=o[s];if(l.type===7&&n(l.name)){o.splice(s,1),s--;const u=t(r,l,i);u&&a.push(u)}}return a}}}const Ix="/*@__PURE__*/",Xz=e=>`${Rd[e]}: _${Rd[e]}`;function Gpe(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:h=!1}){const d={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(g){return`_${Rd[g]}`},push(g,y=-2,m){d.code+=g},indent(){p(++d.indentLevel)},deindent(g=!1){g?--d.indentLevel:p(--d.indentLevel)},newline(){p(d.indentLevel)}};function p(g){d.push(`
`+" ".repeat(g),0)}return d}function Kz(e,t={}){const n=Gpe(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:u,ssr:c}=n,f=Array.from(e.helpers),h=f.length>0,d=!o&&r!=="module";Wpe(e,n);const g=c?"ssrRender":"render",m=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${g}(${m}) {`),a(),d&&(i("with (_ctx) {"),a(),h&&(i(`const { ${f.map(Xz).join(", ")} } = _Vue
`,-1),l())),e.components.length&&(pE(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(pE(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),pE(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let b=0;b<e.temps;b++)i(`${b>0?", ":""}_temp${b}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),l()),c||i("return "),e.codegenNode?Vi(e.codegenNode,n):i("null"),d&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Wpe(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,u=s,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${u}
`,-1),e.hoists.length)){const f=[fx,dx,uv,hx,TM].filter(h=>c.includes(h)).map(Xz).join(", ");i(`const { ${f} } = _Vue
`,-1)}jpe(e.hoists,t),o(),i("return ")}function pE(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n(t==="filter"?mx:t==="component"?px:gx);for(let s=0;s<e.length;s++){let l=e[s];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${Vp(l,t)} = ${a}(${JSON.stringify(l)}${u?", true":""})${o?"!":""}`),s<e.length-1&&i()}}function jpe(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),Vi(o,t),r())}t.pure=!1}function kM(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),n0(e,t,n),n&&t.deindent(),t.push("]")}function n0(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];kt(s)?i(s,-3):st(s)?kM(s,t):Vi(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function Vi(e,t){if(kt(e)){t.push(e,-3);return}if(ao(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:Vi(e.codegenNode,t);break;case 2:Ype(e,t);break;case 4:Zz(e,t);break;case 5:Xpe(e,t);break;case 12:Vi(e.codegenNode,t);break;case 8:qz(e,t);break;case 3:Zpe(e,t);break;case 13:qpe(e,t);break;case 14:Qpe(e,t);break;case 15:eve(e,t);break;case 17:tve(e,t);break;case 18:nve(e,t);break;case 19:rve(e,t);break;case 20:ive(e,t);break;case 21:n0(e.body,t,!0,!1);break}}function Ype(e,t){t.push(JSON.stringify(e.content),-3,e)}function Zz(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Xpe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Ix),n(`${r(Jy)}(`),Vi(e.content,t),n(")")}function qz(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];kt(r)?t.push(r,-3):Vi(r,t)}}function Kpe(e,t){const{push:n}=t;if(e.type===8)n("["),qz(e,t),n("]");else if(e.isStatic){const r=Qy(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function Zpe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Ix),n(`${r(uv)}(${JSON.stringify(e.content)})`,-3,e)}function qpe(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:h,isComponent:d}=e;let p;l&&(p=String(l)),c&&n(r(yx)+"("),f&&n(`(${r(Rc)}(${h?"true":""}), `),i&&n(Ix);const g=f?Od(t.inSSR,d):Dd(t.inSSR,d);n(r(g)+"(",-2,e),n0(Jpe([o,a,s,p,u]),t),n(")"),f&&n(")"),c&&(n(", "),Vi(c,t),n(")"))}function Jpe(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function Qpe(e,t){const{push:n,helper:r,pure:i}=t,o=kt(e.callee)?e.callee:r(e.callee);i&&n(Ix),n(o+"(",-2,e),n0(e.arguments,t),n(")")}function eve(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length){n("{}",-2,e);return}const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<a.length;l++){const{key:u,value:c}=a[l];Kpe(u,t),n(": "),Vi(c,t),l<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}function tve(e,t){kM(e.elements,t)}function nve(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${Rd[Tx]}(`),n("(",-2,e),st(o)?n0(o,t):o&&Vi(o,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),st(a)?kM(a,t):Vi(a,t)):s&&Vi(s,t),(l||s)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function rve(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:u}=t;if(n.type===4){const f=!Qy(n.content);f&&a("("),Zz(n,t),f&&a(")")}else a("("),Vi(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),Vi(r,t),t.indentLevel--,o&&u(),o||a(" "),a(": ");const c=i.type===19;c||t.indentLevel++,Vi(i,t),c||t.indentLevel--,o&&l(!0)}function ive(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(uy)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("(")),n(`_cache[${e.index}] = `),Vi(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(uy)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const ove=(e,t)=>{if(e.type===5)e.content=Tb(e.content,t);else if(e.type===1){const n=to(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const o=i.exp,a=i.arg;o&&o.type===4&&!(i.name==="on"&&a)&&!(n&&a&&a.type===4&&a.content==="key")&&(i.exp=Tb(o,t,i.name==="slot")),a&&a.type===4&&!a.isStatic&&(i.arg=Tb(a,t))}}}};function Tb(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function Jz(e){return kt(e)?e:e.type===4?e.content:e.children.map(Jz).join("")}const ave=LM(/^(?:if|else|else-if)$/,(e,t,n)=>Qz(e,t,n,(r,i,o)=>{const a=n.parent.children;let s=a.indexOf(r),l=0;for(;s-->=0;){const u=a[s];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(o)r.codegenNode=p3(i,l,n);else{const u=sve(r.codegenNode);u.alternate=p3(i,l+r.branches.length-1,n)}}}));function Qz(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(rr(28,t.loc)),t.exp=Gt("true",!1,i)}if(t.name==="if"){const i=h3(e,t),o={type:9,loc:Fpe(e.loc),branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const a=i[o];if(a&&a.type===3){n.removeNode(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){(t.name==="else-if"||t.name==="else")&&a.branches[a.branches.length-1].condition===void 0&&n.onError(rr(30,e.loc)),n.removeNode();const s=h3(e,t);a.branches.push(s);const l=r&&r(a,s,!1);t0(s,n),l&&l(),n.currentNode=null}else n.onError(rr(30,e.loc));break}}}function h3(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!to(e,"for")?e.children:[e],userKey:e0(e,"key"),isTemplateIf:n}}function p3(e,t,n){return e.condition?DS(e.condition,v3(e,t,n),Br(n.helper(uv),['""',"true"])):v3(e,t,n)}function v3(e,t,n){const{helper:r}=n,i=Tr("key",Gt(`${t}`,!1,Jr,2)),{children:o}=e,a=o[0];if(o.length!==1||a.type!==1)if(o.length===1&&a.type===11){const l=a.codegenNode;return fy(l,i,n),l}else return $p(n,r(Np),na([i]),o,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=a.codegenNode,u=Nz(l);return u.type===13&&Ex(u,n),fy(u,i,n),l}}function sve(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const eG=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(o.type!==4||!o.isStatic)return n.onError(rr(52,o.loc)),{props:[Tr(o,Gt("",!0,i))]};tG(e),a=e.exp}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),r.some(s=>s.content==="camel")&&(o.type===4?o.isStatic?o.content=Zn(o.content):o.content=`${n.helperString(RS)}(${o.content})`:(o.children.unshift(`${n.helperString(RS)}(`),o.children.push(")"))),n.inSSR||(r.some(s=>s.content==="prop")&&g3(o,"."),r.some(s=>s.content==="attr")&&g3(o,"^")),{props:[Tr(o,a)]}},tG=(e,t)=>{const n=e.arg,r=Zn(n.content);e.exp=Gt(r,!1,n.loc)},g3=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},lve=LM("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return nG(e,t,n,o=>{const a=Br(r(_x),[o.source]),s=Up(e),l=to(e,"memo"),u=e0(e,"key",!1,!0);u&&u.type===7&&!u.exp&&tG(u);let f=u&&(u.type===6?u.value?Gt(u.value.content,!0):void 0:u.exp);const h=u&&f?Tr("key",f):null,d=o.source.type===4&&o.source.constType>0,p=d?64:u?128:256;return o.codegenNode=$p(n,r(Np),void 0,a,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let g;const{children:y}=o,m=y.length!==1||y[0].type!==1,b=cy(e)?e:s&&e.children.length===1&&cy(e.children[0])?e.children[0]:null;if(b?(g=b.codegenNode,s&&h&&fy(g,h,n)):m?g=$p(n,r(Np),h?na([h]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(g=y[0].codegenNode,s&&h&&fy(g,h,n),g.isBlock!==!d&&(g.isBlock?(i(Rc),i(Od(n.inSSR,g.isComponent))):i(Dd(n.inSSR,g.isComponent))),g.isBlock=!d,g.isBlock?(r(Rc),r(Od(n.inSSR,g.isComponent))):r(Dd(n.inSSR,g.isComponent))),l){const w=Md(LS(o.parseResult,[Gt("_cached")]));w.body=Tz([ka(["const _memo = (",l.exp,")"]),ka(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(IM)}(_cached, _memo)) return _cached`]),ka(["const _item = ",g]),Gt("_item.memo = _memo"),Gt("return _item")]),a.arguments.push(w,Gt("_cache"),Gt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Md(LS(o.parseResult),g,!0))}})});function nG(e,t,n,r){if(!t.exp){n.onError(rr(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(rr(32,t.loc));return}NM(i);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=i,h={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:i,children:Up(e)?e.children:[e]};n.replaceNode(h),s.vFor++;const d=r&&r(h);return()=>{s.vFor--,d&&d()}}function NM(e,t){e.finalized||(e.finalized=!0)}function LS({value:e,key:t,index:n},r=[]){return uve([e,t,n,...r])}function uve(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||Gt("_".repeat(r+1),!1))}const m3=Gt("undefined",!1),rG=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=to(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},cve=(e,t)=>{let n;if(Up(e)&&e.props.some(MM)&&(n=to(e,"for"))){const r=n.forParseResult;if(r){NM(r);const{value:i,key:o,index:a}=r,{addIdentifiers:s,removeIdentifiers:l}=t;return i&&s(i),o&&s(o),a&&s(a),()=>{i&&l(i),o&&l(o),a&&l(a)}}}},fve=(e,t,n,r)=>Md(e,n,!1,!0,n.length?n[0].loc:r);function iG(e,t,n=fve){t.helper(Tx);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=to(e,"slot",!0);if(l){const{arg:y,exp:m}=l;y&&!no(y)&&(s=!0),o.push(Tr(y||Gt("default",!0),n(m,void 0,r,i)))}let u=!1,c=!1;const f=[],h=new Set;let d=0;for(let y=0;y<r.length;y++){const m=r[y];let b;if(!Up(m)||!(b=to(m,"slot",!0))){m.type!==3&&f.push(m);continue}if(l){t.onError(rr(37,b.loc));break}u=!0;const{children:w,loc:S}=m,{arg:C=Gt("default",!0),exp:T,loc:E}=b;let P;no(C)?P=C?C.content:"default":s=!0;const I=to(m,"for"),D=n(T,I,w,S);let O,N;if(O=to(m,"if"))s=!0,a.push(DS(O.exp,U1(C,D,d++),m3));else if(N=to(m,/^else(?:-if)?$/,!0)){let M=y,k;for(;M--&&(k=r[M],!(k.type!==3&&hA(k))););if(k&&Up(k)&&to(k,/^(?:else-)?if$/)){let V=a[a.length-1];for(;V.alternate.type===19;)V=V.alternate;V.alternate=N.exp?DS(N.exp,U1(C,D,d++),m3):U1(C,D,d++)}else t.onError(rr(30,N.loc))}else if(I){s=!0;const M=I.forParseResult;M?(NM(M),a.push(Br(t.helper(_x),[M.source,Md(LS(M),U1(C,D),!0)]))):t.onError(rr(32,I.loc))}else{if(P){if(h.has(P)){t.onError(rr(38,E));continue}h.add(P),P==="default"&&(c=!0)}o.push(Tr(C,D))}}if(!l){const y=(m,b)=>{const w=n(m,void 0,b,i);return t.compatConfig&&(w.isNonScopedSlot=!0),Tr("default",w)};u?f.length&&f.some(m=>hA(m))&&(c?t.onError(rr(39,f[0].loc)):o.push(y(void 0,f))):o.push(y(void 0,r))}const p=s?2:Cb(e.children)?3:1;let g=na(o.concat(Tr("_",Gt(p+"",!1))),i);return a.length&&(g=Br(t.helper(EM),[g,Sc(a)])),{slots:g,hasDynamicSlots:s}}function U1(e,t,n){const r=[Tr("name",e),Tr("fn",t)];return n!=null&&r.push(Tr("key",Gt(String(n),!0))),na(r)}function Cb(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||Cb(n.children))return!0;break;case 9:if(Cb(n.branches))return!0;break;case 10:case 11:if(Cb(n.children))return!0;break}}return!1}function hA(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():hA(e.content)}const oG=new WeakMap,aG=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,o=e.tagType===1;let a=o?sG(e,t):`"${r}"`;const s=Cn(a)&&a.callee===vx;let l,u,c=0,f,h,d,p=s||a===gp||a===cx||!o&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const g=FM(e,t,void 0,o,s);l=g.props,c=g.patchFlag,h=g.dynamicPropNames;const y=g.directives;d=y&&y.length?Sc(y.map(m=>lG(m,t))):void 0,g.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===sy&&(p=!0,c|=1024),o&&a!==gp&&a!==sy){const{slots:y,hasDynamicSlots:m}=iG(e,t);u=y,m&&(c|=1024)}else if(e.children.length===1&&a!==gp){const y=e.children[0],m=y.type,b=m===5||m===8;b&&Ro(y,t)===0&&(c|=1),b||m===2?u=y:u=e.children}else u=e.children;h&&h.length&&(f=hve(h)),e.codegenNode=$p(t,a,l,u,c===0?void 0:c,f,d,!!p,!1,o,e.loc)};function sG(e,t,n=!1){let{tag:r}=e;const i=pA(r),o=e0(e,"is",!1,!0);if(o)if(i||dd("COMPILER_IS_ON_ELEMENT",t)){let s;if(o.type===6?s=o.value&&Gt(o.value.content,!0):(s=o.exp,s||(s=Gt("is",!1,o.arg.loc))),s)return Br(t.helper(vx),[s])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=PM(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(px),t.components.add(r),Vp(r,"component"))}function FM(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let u=[];const c=[],f=[],h=l.length>0;let d=!1,p=0,g=!1,y=!1,m=!1,b=!1,w=!1,S=!1;const C=[],T=D=>{u.length&&(c.push(na(y3(u),s)),u=[]),D&&c.push(D)},E=()=>{t.scopes.vFor>0&&u.push(Tr(Gt("ref_for",!0),Gt("true")))},P=({key:D,value:O})=>{if(no(D)){const N=D.content,M=Nc(N);if(M&&(!r||i)&&N.toLowerCase()!=="onclick"&&N!=="onUpdate:modelValue"&&!Ql(N)&&(b=!0),M&&Ql(N)&&(S=!0),M&&O.type===14&&(O=O.arguments[0]),O.type===20||(O.type===4||O.type===8)&&Ro(O,t)>0)return;N==="ref"?g=!0:N==="class"?y=!0:N==="style"?m=!0:N!=="key"&&!C.includes(N)&&C.push(N),r&&(N==="class"||N==="style")&&!C.includes(N)&&C.push(N)}else w=!0};for(let D=0;D<n.length;D++){const O=n[D];if(O.type===6){const{loc:N,name:M,nameLoc:k,value:V}=O;let B=!0;if(M==="ref"&&(g=!0,E()),M==="is"&&(pA(a)||V&&V.content.startsWith("vue:")||dd("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Tr(Gt(M,!0,k),Gt(V?V.content:"",B,V?V.loc:N)))}else{const{name:N,arg:M,exp:k,loc:V,modifiers:B}=O,U=N==="bind",$=N==="on";if(N==="slot"){r||t.onError(rr(40,V));continue}if(N==="once"||N==="memo"||N==="is"||U&&fc(M,"is")&&(pA(a)||dd("COMPILER_IS_ON_ELEMENT",t))||$&&o)continue;if((U&&fc(M,"key")||$&&h&&fc(M,"vue:before-update"))&&(d=!0),U&&fc(M,"ref")&&E(),!M&&(U||$)){if(w=!0,k)if(U){if(T(),dd("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift(k);continue}E(),T(),c.push(k)}else T({type:14,loc:V,callee:t.helper(xx),arguments:r?[k]:[k,"true"]});else t.onError(rr(U?34:35,V));continue}U&&B.some(ae=>ae.content==="prop")&&(p|=32);const J=t.directiveTransforms[N];if(J){const{props:ae,needRuntime:ne}=J(O,e,t);!o&&ae.forEach(P),$&&M&&!no(M)?T(na(ae,s)):u.push(...ae),ne&&(f.push(O),ao(ne)&&oG.set(O,ne))}else tV(N)||(f.push(O),h&&(d=!0))}}let I;if(c.length?(T(),c.length>1?I=Br(t.helper(ly),c,s):I=c[0]):u.length&&(I=na(y3(u),s)),w?p|=16:(y&&!r&&(p|=2),m&&!r&&(p|=4),C.length&&(p|=8),b&&(p|=32)),!d&&(p===0||p===32)&&(g||S||f.length>0)&&(p|=512),!t.inSSR&&I)switch(I.type){case 15:let D=-1,O=-1,N=!1;for(let V=0;V<I.properties.length;V++){const B=I.properties[V].key;no(B)?B.content==="class"?D=V:B.content==="style"&&(O=V):B.isHandlerKey||(N=!0)}const M=I.properties[D],k=I.properties[O];N?I=Br(t.helper(Fp),[I]):(M&&!no(M.value)&&(M.value=Br(t.helper(bx),[M.value])),k&&(m||k.value.type===4&&k.value.content.trim()[0]==="["||k.value.type===17)&&(k.value=Br(t.helper(Sx),[k.value])));break;case 14:break;default:I=Br(t.helper(Fp),[Br(t.helper(cv),[I])]);break}return{props:I,directives:f,patchFlag:p,dynamicPropNames:C,shouldUseBlock:d}}function y3(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?(o==="style"||o==="class"||Nc(o))&&dve(a,i):(t.set(o,i),n.push(i))}return n}function dve(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Sc([e.value,t.value],e.loc)}function lG(e,t){const n=[],r=oG.get(e);r?n.push(t.helperString(r)):(t.helper(gx),t.directives.add(e.name),n.push(Vp(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const o=Gt("true",!1,i);n.push(na(e.modifiers.map(a=>Tr(a,o)),i))}return Sc(n,e.loc)}function hve(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function pA(e){return e==="component"||e==="Component"}const pve=(e,t)=>{if(cy(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=uG(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=Md([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=Br(t.helper(CM),a,r)}};function uG(e,t){let n='"default"',r;const i=[];for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===6)a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=Zn(a.name),i.push(a)));else if(a.name==="bind"&&fc(a.arg,"name")){if(a.exp)n=a.exp;else if(a.arg&&a.arg.type===4){const s=Zn(a.arg.content);n=a.exp=Gt(s,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&no(a.arg)&&(a.arg.content=Zn(a.arg.content)),i.push(a)}if(i.length>0){const{props:o,directives:a}=FM(e,t,i,!1,!1);r=o,a.length&&t.onError(rr(36,a[0].loc))}return{slotName:n,slotProps:r}}const $M=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;!e.exp&&!o.length&&n.onError(rr(35,i));let s;if(a.type===4)if(a.isStatic){let f=a.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const h=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?td(Zn(f)):`on:${f}`;s=Gt(h,!0,a.loc)}else s=ka([`${n.helperString(MS)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(MS)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=RM(l),h=!(f||Dz(l)),d=l.content.includes(";");(h||u&&f)&&(l=ka([`${h?"$event":"(...args)"} => ${d?"{":"("}`,l,d?"}":")"]))}let c={props:[Tr(s,l||Gt("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},vve=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let o=0;o<n.length;o++){const a=n[o];if(bb(a)){i=!0;for(let s=o+1;s<n.length;s++){const l=n[s];if(bb(l))r||(r=n[o]=ka([a],a.loc)),r.children.push(" + ",l),n.splice(s,1),s--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<n.length;o++){const a=n[o];if(bb(a)||a.type===8){const s=[];(a.type!==2||a.content!==" ")&&s.push(a),!t.ssr&&Ro(a,t)===0&&s.push("1"),n[o]={type:12,content:a,loc:a.loc,codegenNode:Br(t.helper(hx),s)}}}}},_3=new WeakSet,gve=(e,t)=>{if(e.type===1&&to(e,"once",!0))return _3.has(e)||t.inVOnce||t.inSSR?void 0:(_3.add(e),t.inVOnce=!0,t.helper(uy),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},BM=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(rr(41,e.loc)),V1();const o=r.loc.source.trim(),a=r.type===4?r.content:o,s=n.bindingMetadata[o];if(s==="props"||s==="props-aliased")return n.onError(rr(44,r.loc)),V1();if(!a.trim()||!RM(r))return n.onError(rr(42,r.loc)),V1();const l=i||Gt("modelValue",!0),u=i?no(i)?`onUpdate:${Zn(i.content)}`:ka(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;const f=n.isTS?"($event: any)":"$event";c=ka([`${f} => ((`,r,") = $event)"]);const h=[Tr(l,e.exp),Tr(u,c)];if(e.modifiers.length&&t.tagType===1){const d=e.modifiers.map(g=>g.content).map(g=>(Qy(g)?g:JSON.stringify(g))+": true").join(", "),p=i?no(i)?`${i.content}Modifiers`:ka([i,' + "Modifiers"']):"modelModifiers";h.push(Tr(p,Gt(`{ ${d} }`,!1,e.loc,2)))}return V1(h)};function V1(e=[]){return{props:e}}const mve=/[\w).+\-_$\]]/,yve=(e,t)=>{dd("COMPILER_FILTERS",t)&&(e.type===5?kS(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&kS(n.exp,t)}))};function kS(e,t){if(e.type===4)b3(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?b3(r,t):r.type===8?kS(e,t):r.type===5&&kS(r.content,t))}}function b3(e,t){const n=e.content;let r=!1,i=!1,o=!1,a=!1,s=0,l=0,u=0,c=0,f,h,d,p,g=[];for(d=0;d<n.length;d++)if(h=f,f=n.charCodeAt(d),r)f===39&&h!==92&&(r=!1);else if(i)f===34&&h!==92&&(i=!1);else if(o)f===96&&h!==92&&(o=!1);else if(a)f===47&&h!==92&&(a=!1);else if(f===124&&n.charCodeAt(d+1)!==124&&n.charCodeAt(d-1)!==124&&!s&&!l&&!u)p===void 0?(c=d+1,p=n.slice(0,d).trim()):y();else{switch(f){case 34:i=!0;break;case 39:r=!0;break;case 96:o=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(f===47){let m=d-1,b;for(;m>=0&&(b=n.charAt(m),b===" ");m--);(!b||!mve.test(b))&&(a=!0)}}p===void 0?p=n.slice(0,d).trim():c!==0&&y();function y(){g.push(n.slice(c,d).trim()),c=d+1}if(g.length){for(d=0;d<g.length;d++)p=_ve(p,g[d],t);e.content=p,e.ast=void 0}}function _ve(e,t,n){n.helper(mx);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Vp(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${Vp(i,"filter")}(${e}${o!==")"?","+o:o}`}}const S3=new WeakSet,bve=(e,t)=>{if(e.type===1){const n=to(e,"memo");return!n||S3.has(e)||t.inSSR?void 0:(S3.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&Ex(r,t),e.codegenNode=Br(t.helper(Cx),[n.exp,Md(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function cG(e){return[[gve,ave,bve,lve,yve,pve,aG,rG,vve],{on:$M,bind:eG,model:BM}]}function fG(e,t={}){const n=t.onError||AM,r=t.mode==="module";t.prefixIdentifiers===!0?n(rr(47)):r&&n(rr(48));const i=!1;t.cacheHandlers&&n(rr(49)),t.scopeId&&!r&&n(rr(50));const o=un({},t,{prefixIdentifiers:i}),a=kt(e)?OM(e,o):e,[s,l]=cG();return Yz(a,un({},o,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:un({},l,t.directiveTransforms||{})})),Kz(a,o)}const Sve={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},dG=()=>({props:[]});/**
* @vue/compiler-dom v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const UM=Symbol(""),VM=Symbol(""),HM=Symbol(""),zM=Symbol(""),NS=Symbol(""),GM=Symbol(""),WM=Symbol(""),jM=Symbol(""),YM=Symbol(""),XM=Symbol("");Sz({[UM]:"vModelRadio",[VM]:"vModelCheckbox",[HM]:"vModelText",[zM]:"vModelSelect",[NS]:"vModelDynamic",[GM]:"withModifiers",[WM]:"withKeys",[jM]:"vShow",[YM]:"Transition",[XM]:"TransitionGroup"});let vh;function wve(e,t=!1){return vh||(vh=document.createElement("div")),t?(vh.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,vh.children[0].getAttribute("foo")):(vh.innerHTML=e,vh.textContent)}const KM={parseMode:"html",isVoidTag:sV,isNativeTag:e=>iV(e)||oV(e)||aV(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:wve,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return YM;if(e==="TransitionGroup"||e==="transition-group")return XM},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},hG=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:Gt("style",!0,t.loc),exp:xve(t.value.content,t.loc),modifiers:[],loc:t.loc})})},xve=(e,t)=>{const n=sR(e);return Gt(JSON.stringify(n),!1,t,3)};function su(e,t){return rr(e,t)}const Tve={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},Cve={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},Eve=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(su(53,i)),t.children.length&&(n.onError(su(54,i)),t.children.length=0),{props:[Tr(Gt("innerHTML",!0,i),r||Gt("",!0))]}},Ive=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(su(55,i)),t.children.length&&(n.onError(su(56,i)),t.children.length=0),{props:[Tr(Gt("textContent",!0),r?Ro(r,n)>0?r:Br(n.helperString(Jy),[r],i):Gt("",!0))]}},Ave=(e,t,n)=>{const r=BM(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(su(58,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let a=HM,s=!1;if(i==="input"||o){const l=e0(t,"type");if(l){if(l.type===7)a=NS;else if(l.value)switch(l.value.content){case"radio":a=UM;break;case"checkbox":a=VM;break;case"file":s=!0,n.onError(su(59,e.loc));break}}else Lz(t)&&(a=NS)}else i==="select"&&(a=zM);s||(r.needRuntime=n.helper(a))}else n.onError(su(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},Pve=fi("passive,once,capture"),Rve=fi("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Mve=fi("left,right"),pG=fi("onkeyup,onkeydown,onkeypress"),Dve=(e,t,n,r)=>{const i=[],o=[],a=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&Bp("COMPILER_V_ON_NATIVE",n)||Pve(l)?a.push(l):Mve(l)?no(e)?pG(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):Rve(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},w3=(e,t)=>no(e)&&e.content.toLowerCase()==="onclick"?Gt(t,!0):e.type!==4?ka(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Ove=(e,t,n)=>$M(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:o,value:a}=r.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:u}=Dve(o,i,n,e.loc);if(l.includes("right")&&(o=w3(o,"onContextmenu")),l.includes("middle")&&(o=w3(o,"onMouseup")),l.length&&(a=Br(n.helper(GM),[a,JSON.stringify(l)])),s.length&&(!no(o)||pG(o.content.toLowerCase()))&&(a=Br(n.helper(WM),[a,JSON.stringify(s)])),u.length){const c=u.map($c).join("");o=no(o)?Gt(`${o.content}${c}`,!0):ka(["(",o,`) + "${c}"`])}return{props:[Tr(o,a)]}}),Lve=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(su(61,i)),{props:[],needRuntime:n.helper(jM)}},kve=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},vG=[hG],gG={cloak:dG,html:Eve,text:Ive,model:Ave,on:Ove,show:Lve};function Nve(e,t={}){return fG(e,un({},KM,t,{nodeTransforms:[kve,...vG,...t.nodeTransforms||[]],directiveTransforms:un({},gG,t.directiveTransforms||{}),transformHoist:null}))}function Fve(e,t={}){return OM(e,un({},KM,t))}const $ve=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:SM,BindingTypes:Sve,CAMELIZE:RS,CAPITALIZE:gz,CREATE_BLOCK:wM,CREATE_COMMENT:uv,CREATE_ELEMENT_BLOCK:xM,CREATE_ELEMENT_VNODE:dx,CREATE_SLOTS:EM,CREATE_STATIC:TM,CREATE_TEXT:hx,CREATE_VNODE:fx,CompilerDeprecationTypes:rpe,ConstantTypes:Khe,DOMDirectiveTransforms:gG,DOMErrorCodes:Tve,DOMErrorMessages:Cve,DOMNodeTransforms:vG,ElementTypes:Xhe,ErrorCodes:ape,FRAGMENT:Np,GUARD_REACTIVE_PROPS:cv,IS_MEMO_SAME:IM,IS_REF:bz,KEEP_ALIVE:sy,MERGE_PROPS:ly,NORMALIZE_CLASS:bx,NORMALIZE_PROPS:Fp,NORMALIZE_STYLE:Sx,Namespaces:jhe,NodeTypes:Yhe,OPEN_BLOCK:Rc,POP_SCOPE_ID:yz,PUSH_SCOPE_ID:mz,RENDER_LIST:_x,RENDER_SLOT:CM,RESOLVE_COMPONENT:px,RESOLVE_DIRECTIVE:gx,RESOLVE_DYNAMIC_COMPONENT:vx,RESOLVE_FILTER:mx,SET_BLOCK_TRACKING:uy,SUSPENSE:cx,TELEPORT:gp,TO_DISPLAY_STRING:Jy,TO_HANDLERS:xx,TO_HANDLER_KEY:MS,TRANSITION:YM,TRANSITION_GROUP:XM,TS_NODE_TYPES:Iz,UNREF:_z,V_MODEL_CHECKBOX:VM,V_MODEL_DYNAMIC:NS,V_MODEL_RADIO:UM,V_MODEL_SELECT:zM,V_MODEL_TEXT:HM,V_ON_WITH_KEYS:WM,V_ON_WITH_MODIFIERS:GM,V_SHOW:jM,WITH_CTX:Tx,WITH_DIRECTIVES:yx,WITH_MEMO:Cx,advancePositionWithClone:Cpe,advancePositionWithMutation:Oz,assert:Epe,baseCompile:fG,baseParse:OM,buildDirectiveArgs:lG,buildProps:FM,buildSlots:iG,checkCompatEnabled:Bp,compile:Nve,convertToBlock:Ex,createArrayExpression:Sc,createAssignmentExpression:Qhe,createBlockStatement:Tz,createCacheExpression:xz,createCallExpression:Br,createCompilerError:rr,createCompoundExpression:ka,createConditionalExpression:DS,createDOMCompilerError:su,createForLoopParams:LS,createFunctionExpression:Md,createIfStatement:Jhe,createInterpolation:Zhe,createObjectExpression:na,createObjectProperty:Tr,createReturnStatement:tpe,createRoot:wz,createSequenceExpression:epe,createSimpleExpression:Gt,createStructuralDirectiveTransform:LM,createTemplateLiteral:qhe,createTransformContext:jz,createVNodeCall:$p,errorMessages:spe,extractIdentifiers:jl,findDir:to,findProp:e0,forAliasRE:Fz,generate:Kz,generateCodeFrame:nV,getBaseTransformPreset:cG,getConstantType:Ro,getMemoedVNodeCall:Nz,getVNodeBlockHelper:Od,getVNodeHelper:Dd,hasDynamicKeyVBind:Lz,hasScopeRef:Ja,helperNameMap:Rd,injectProp:fy,isCoreComponent:PM,isFnExpression:Dz,isFnExpressionBrowser:Mz,isFnExpressionNode:Tpe,isFunctionType:gpe,isInDestructureAssignment:cpe,isInNewExpression:fpe,isMemberExpression:RM,isMemberExpressionBrowser:Rz,isMemberExpressionNode:wpe,isReferencedIdentifier:upe,isSimpleIdentifier:Qy,isSlotOutlet:cy,isStaticArgOf:fc,isStaticExp:no,isStaticProperty:Ez,isStaticPropertyKey:mpe,isTemplateNode:Up,isText:bb,isVPre:cA,isVSlot:MM,locStub:Jr,noopDirectiveTransform:dG,parse:Fve,parserOptions:KM,processExpression:Tb,processFor:nG,processIf:Qz,processSlotOutlet:uG,registerRuntimeHelpers:Sz,resolveComponentType:sG,stringifyExpression:Jz,toValidAssetId:Vp,trackSlotScopes:rG,trackVForSlotScopes:cve,transform:Yz,transformBind:eG,transformElement:aG,transformExpression:ove,transformModel:BM,transformOn:$M,transformStyle:hG,traverseNode:t0,unwrapTSNode:Az,walkBlockDeclarations:hpe,walkFunctionParams:dpe,walkIdentifiers:lpe,warnDeprecation:ope},Symbol.toStringTag,{value:"Module"})),Bve=ex($ve),Uve=ex(wie),Vve=ex(dte);/**
* vue v3.5.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/var x3;function Hve(){return x3||(x3=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Bve,n=Uve,r=Vve;function i(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var o=i(n);const a=Object.create(null);function s(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),f=a[c];if(f)return f;if(l[0]==="#"){const g=document.querySelector(l);l=g?g.innerHTML:""}const h=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!h.isCustomElement&&typeof customElements<"u"&&(h.isCustomElement=g=>!!customElements.get(g));const{code:d}=t.compile(l,h),p=new Function("Vue",d)(o);return p._rc=!0,a[c]=p}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})})(hE)),hE}var T3;function zve(){return T3||(T3=1,dE.exports=Hve()),dE.exports}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function C3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(n),!0).forEach(function(r){Gve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eb(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Eb=function(t){return typeof t}:Eb=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eb(e)}function Gve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Va(){return Va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}function Wve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jve(e,t){if(e==null)return{};var n=Wve(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yve(e){return Xve(e)||Kve(e)||Zve(e)||qve()}function Xve(e){if(Array.isArray(e))return vA(e)}function Kve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zve(e,t){if(e){if(typeof e=="string")return vA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vA(e,t)}}function vA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Jve="1.14.0";function lu(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var wu=lu(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),r0=lu(/Edge/i),E3=lu(/firefox/i),vm=lu(/safari/i)&&!lu(/chrome/i)&&!lu(/android/i),mG=lu(/iP(ad|od|hone)/i),Qve=lu(/chrome/i)&&lu(/android/i),yG={capture:!1,passive:!1};function dn(e,t,n){e.addEventListener(t,n,!wu&&yG)}function nn(e,t,n){e.removeEventListener(t,n,!wu&&yG)}function FS(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 ege(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function rs(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&FS(e,t):FS(e,t))||r&&e===n)return e;if(e===n)break}while(e=ege(e))}return null}var I3=/\s+/g;function hr(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(I3," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(I3," ")}}function _t(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function hd(e,t){var n="";if(typeof e=="string")n=e;else do{var r=_t(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function _G(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function el(){var e=document.scrollingElement;return e||document.documentElement}function cr(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,a,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==el()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!wu))do if(i&&i.getBoundingClientRect&&(_t(i,"transform")!=="none"||n&&_t(i,"position")!=="static")){var h=i.getBoundingClientRect();a-=h.top+parseInt(_t(i,"border-top-width")),s-=h.left+parseInt(_t(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==window){var d=hd(i||e),p=d&&d.a,g=d&&d.d;d&&(a/=g,s/=p,f/=p,c/=g,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function A3(e,t,n){for(var r=dc(e,!0),i=cr(e)[t];r;){var o=cr(r)[n],a=void 0;if(a=i>=o,!a)return r;if(r===el())break;r=dc(r,!1)}return!1}function Hp(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==Ot.ghost&&(r||a[o]!==Ot.dragged)&&rs(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function ZM(e,t){for(var n=e.lastElementChild;n&&(n===Ot.ghost||_t(n,"display")==="none"||t&&!FS(n,t));)n=n.previousElementSibling;return n||null}function br(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Ot.clone&&(!t||FS(e,t))&&n++;return n}function P3(e){var t=0,n=0,r=el();if(e)do{var i=hd(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function tge(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function dc(e,t){if(!e||!e.getBoundingClientRect)return el();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=_t(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return el();if(r||t)return n;r=!0}}while(n=n.parentNode);return el()}function nge(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function vE(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var gm;function bG(e,t){return function(){if(!gm){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),gm=setTimeout(function(){gm=void 0},t)}}}function rge(){clearTimeout(gm),gm=void 0}function SG(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function qM(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function R3(e,t){_t(e,"position","absolute"),_t(e,"top",t.top),_t(e,"left",t.left),_t(e,"width",t.width),_t(e,"height",t.height)}function gE(e){_t(e,"position",""),_t(e,"top",""),_t(e,"left",""),_t(e,"width",""),_t(e,"height","")}var Fi="Sortable"+new Date().getTime();function ige(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(_t(i,"display")==="none"||i===Ot.ghost)){e.push({target:i,rect:cr(i)});var o=ll({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=hd(i,!0);a&&(o.top-=a.f,o.left-=a.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(tge(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,a=0;e.forEach(function(s){var l=0,u=s.target,c=u.fromRect,f=cr(u),h=u.prevFromRect,d=u.prevToRect,p=s.rect,g=hd(u,!0);g&&(f.top-=g.f,f.left-=g.e),u.toRect=f,u.thisAnimationDuration&&vE(h,f)&&!vE(c,f)&&(p.top-f.top)/(p.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=age(p,h,d,i.options)),vE(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=i.options.animation),i.animate(u,p,f,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,a){if(a){_t(r,"transition",""),_t(r,"transform","");var s=hd(this.el),l=s&&s.a,u=s&&s.d,c=(i.left-o.left)/(l||1),f=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!f,_t(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=oge(r),_t(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),_t(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){_t(r,"transition",""),_t(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function oge(e){return e.offsetWidth}function age(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var gh=[],mE={initializeByDefault:!0},i0={mount:function(t){for(var n in mE)mE.hasOwnProperty(n)&&!(n in t)&&(t[n]=mE[n]);gh.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),gh.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";gh.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][o]&&n[a.pluginName][o](ll({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](ll({sortable:n},r)))})},initializePlugins:function(t,n,r,i){gh.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,Va(r,u.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,n){var r={};return gh.forEach(function(i){typeof i.eventProperties=="function"&&Va(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return gh.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function Dg(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,d=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[Fi],!!t){var g,y=t.options,m="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!wu&&!r0?g=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(r,!0,!0)),g.to=a||n,g.from=s||n,g.item=i||n,g.clone=o,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=c,g.newDraggableIndex=f,g.originalEvent=h,g.pullMode=d?d.lastPutMode:void 0;var b=ll(ll({},p),i0.getEventProperties(r,t));for(var w in b)g[w]=b[w];n&&n.dispatchEvent(g),y[m]&&y[m].call(t,g)}}var sge=["evt"],go=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=jve(r,sge);i0.pluginEvent.bind(Ot)(t,n,ll({dragEl:Qe,parentEl:mr,ghostEl:Xt,rootEl:lr,nextEl:Nf,lastDownEl:Ib,cloneEl:yr,cloneHidden:ic,dragStarted:Og,putSortable:vi,activeSortable:Ot.active,originalEvent:i,oldIndex:Xh,oldDraggableIndex:mm,newIndex:Ko,newDraggableIndex:rc,hideGhostForTarget:CG,unhideGhostForTarget:EG,cloneNowHidden:function(){ic=!0},cloneNowShown:function(){ic=!1},dispatchSortableEvent:function(s){Ki({sortable:n,name:s,originalEvent:i})}},o))};function Ki(e){Dg(ll({putSortable:vi,cloneEl:yr,targetEl:Qe,rootEl:lr,oldIndex:Xh,oldDraggableIndex:mm,newIndex:Ko,newDraggableIndex:rc},e))}var Qe,mr,Xt,lr,Nf,Ib,yr,ic,Xh,Ko,mm,rc,H1,vi,Hh=!1,$S=!1,BS=[],sf,Ka,yE,_E,M3,D3,Og,mh,ym,_m=!1,z1=!1,Ab,Ai,bE=[],gA=!1,US=[],Ax=typeof document<"u",G1=mG,O3=r0||wu?"cssFloat":"float",lge=Ax&&!Qve&&!mG&&"draggable"in document.createElement("div"),wG=(function(){if(Ax){if(wu)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),xG=function(t,n){var r=_t(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Hp(t,0,n),a=Hp(t,1,n),s=o&&_t(o),l=a&&_t(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+cr(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+cr(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(o&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return o&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[O3]==="none"||a&&r[O3]==="none"&&u+c>i)?"vertical":"horizontal"},uge=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,a=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||o===l||i+a/2===s+u/2},cge=function(t,n){var r;return BS.some(function(i){var o=i[Fi].options.emptyInsertThreshold;if(!(!o||ZM(i))){var a=cr(i),s=t>=a.left-o&&t<=a.right+o,l=n>=a.top-o&&n<=a.bottom+o;if(s&&l)return r=i}}),r},TG=function(t){function n(o,a){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(o==null&&(a||f))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return n(o(s,l,u,c),a)(s,l,u,c);var h=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===h||o.join&&o.indexOf(h)>-1}}var r={},i=t.group;(!i||Eb(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},CG=function(){!wG&&Xt&&_t(Xt,"display","none")},EG=function(){!wG&&Xt&&_t(Xt,"display","")};Ax&&document.addEventListener("click",function(e){if($S)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),$S=!1,!1},!0);var lf=function(t){if(Qe){t=t.touches?t.touches[0]:t;var n=cge(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[Fi]._onDragOver(r)}}},fge=function(t){Qe&&Qe.parentNode[Fi]._isOutsideThisEl(t.target)};function Ot(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=Va({},t),e[Fi]=this;var n={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 xG(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,s){a.setData("Text",s.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:Ot.supportPointer!==!1&&"PointerEvent"in window&&!vm,emptyInsertThreshold:5};i0.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);TG(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:lge,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?dn(e,"pointerdown",this._onTapStart):(dn(e,"mousedown",this._onTapStart),dn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(dn(e,"dragover",this),dn(e,"dragenter",this)),BS.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Va(this,ige())}Ot.prototype={constructor:Ot,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(mh=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Qe):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(_ge(r),!Qe&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&vm&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=rs(l,i.draggable,r,!1),!(l&&l.animated)&&Ib!==l)){if(Xh=br(l),mm=br(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){Ki({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),go("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=rs(u,f.trim(),r,!1),f)return Ki({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),go("filter",n,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!rs(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,a=i.options,s=o.ownerDocument,l;if(r&&!Qe&&r.parentNode===o){var u=cr(r);if(lr=o,Qe=r,mr=Qe.parentNode,Nf=Qe.nextSibling,Ib=r,H1=a.group,Ot.dragged=Qe,sf={target:Qe,clientX:(n||t).clientX,clientY:(n||t).clientY},M3=sf.clientX-u.left,D3=sf.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Qe.style["will-change"]="all",l=function(){if(go("delayEnded",i,{evt:t}),Ot.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!E3&&i.nativeDraggable&&(Qe.draggable=!0),i._triggerDragStart(t,n),Ki({sortable:i,name:"choose",originalEvent:t}),hr(Qe,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){_G(Qe,c.trim(),SE)}),dn(s,"dragover",lf),dn(s,"mousemove",lf),dn(s,"touchmove",lf),dn(s,"mouseup",i._onDrop),dn(s,"touchend",i._onDrop),dn(s,"touchcancel",i._onDrop),E3&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Qe.draggable=!0),go("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(r0||wu))){if(Ot.eventCanceled){this._onDrop();return}dn(s,"mouseup",i._disableDelayedDrag),dn(s,"touchend",i._disableDelayedDrag),dn(s,"touchcancel",i._disableDelayedDrag),dn(s,"mousemove",i._delayedDragTouchMoveHandler),dn(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&dn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Qe&&SE(Qe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;nn(t,"mouseup",this._disableDelayedDrag),nn(t,"touchend",this._disableDelayedDrag),nn(t,"touchcancel",this._disableDelayedDrag),nn(t,"mousemove",this._delayedDragTouchMoveHandler),nn(t,"touchmove",this._delayedDragTouchMoveHandler),nn(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?dn(document,"pointermove",this._onTouchMove):n?dn(document,"touchmove",this._onTouchMove):dn(document,"mousemove",this._onTouchMove):(dn(Qe,"dragend",this),dn(lr,"dragstart",this._onDragStart));try{document.selection?Pb(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Hh=!1,lr&&Qe){go("dragStarted",this,{evt:n}),this.nativeDraggable&&dn(document,"dragover",fge);var r=this.options;!t&&hr(Qe,r.dragClass,!1),hr(Qe,r.ghostClass,!0),Ot.active=this,t&&this._appendGhost(),Ki({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ka){this._lastX=Ka.clientX,this._lastY=Ka.clientY,CG();for(var t=document.elementFromPoint(Ka.clientX,Ka.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ka.clientX,Ka.clientY),t!==n);)n=t;if(Qe.parentNode[Fi]._isOutsideThisEl(t),n)do{if(n[Fi]){var r=void 0;if(r=n[Fi]._onDragOver({clientX:Ka.clientX,clientY:Ka.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);EG()}},_onTouchMove:function(t){if(sf){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=Xt&&hd(Xt,!0),s=Xt&&a&&a.a,l=Xt&&a&&a.d,u=G1&&Ai&&P3(Ai),c=(o.clientX-sf.clientX+i.x)/(s||1)+(u?u[0]-bE[0]:0)/(s||1),f=(o.clientY-sf.clientY+i.y)/(l||1)+(u?u[1]-bE[1]:0)/(l||1);if(!Ot.active&&!Hh){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(Xt){a?(a.e+=c-(yE||0),a.f+=f-(_E||0)):a={a:1,b:0,c:0,d:1,e:c,f};var h="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");_t(Xt,"webkitTransform",h),_t(Xt,"mozTransform",h),_t(Xt,"msTransform",h),_t(Xt,"transform",h),yE=c,_E=f,Ka=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Xt){var t=this.options.fallbackOnBody?document.body:lr,n=cr(Qe,!0,G1,!0,t),r=this.options;if(G1){for(Ai=t;_t(Ai,"position")==="static"&&_t(Ai,"transform")==="none"&&Ai!==document;)Ai=Ai.parentNode;Ai!==document.body&&Ai!==document.documentElement?(Ai===document&&(Ai=el()),n.top+=Ai.scrollTop,n.left+=Ai.scrollLeft):Ai=el(),bE=P3(Ai)}Xt=Qe.cloneNode(!0),hr(Xt,r.ghostClass,!1),hr(Xt,r.fallbackClass,!0),hr(Xt,r.dragClass,!0),_t(Xt,"transition",""),_t(Xt,"transform",""),_t(Xt,"box-sizing","border-box"),_t(Xt,"margin",0),_t(Xt,"top",n.top),_t(Xt,"left",n.left),_t(Xt,"width",n.width),_t(Xt,"height",n.height),_t(Xt,"opacity","0.8"),_t(Xt,"position",G1?"absolute":"fixed"),_t(Xt,"zIndex","100000"),_t(Xt,"pointerEvents","none"),Ot.ghost=Xt,t.appendChild(Xt),_t(Xt,"transform-origin",M3/parseInt(Xt.style.width)*100+"% "+D3/parseInt(Xt.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,o=r.options;if(go("dragStart",this,{evt:t}),Ot.eventCanceled){this._onDrop();return}go("setupClone",this),Ot.eventCanceled||(yr=qM(Qe),yr.draggable=!1,yr.style["will-change"]="",this._hideClone(),hr(yr,this.options.chosenClass,!1),Ot.clone=yr),r.cloneId=Pb(function(){go("clone",r),!Ot.eventCanceled&&(r.options.removeCloneOnHide||lr.insertBefore(yr,Qe),r._hideClone(),Ki({sortable:r,name:"clone"}))}),!n&&hr(Qe,o.dragClass,!0),n?($S=!0,r._loopId=setInterval(r._emulateDragOver,50)):(nn(document,"mouseup",r._onDrop),nn(document,"touchend",r._onDrop),nn(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Qe)),dn(document,"drop",r),_t(Qe,"transform","translateZ(0)")),Hh=!0,r._dragStartId=Pb(r._dragStarted.bind(r,n,t)),dn(document,"selectstart",r),Og=!0,vm&&_t(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,o,a,s=this.options,l=s.group,u=Ot.active,c=H1===l,f=s.sort,h=vi||u,d,p=this,g=!1;if(gA)return;function y($,J){go($,p,ll({evt:t,isOwner:c,axis:d?"vertical":"horizontal",revert:a,dragRect:i,targetRect:o,canSort:f,fromSortable:h,target:r,completed:b,onMove:function(ne,_e){return W1(lr,n,Qe,i,ne,cr(ne),t,_e)},changed:w},J))}function m(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function b($){return y("dragOverCompleted",{insertion:$}),$&&(c?u._hideClone():u._showClone(p),p!==h&&(hr(Qe,vi?vi.options.ghostClass:u.options.ghostClass,!1),hr(Qe,s.ghostClass,!0)),vi!==p&&p!==Ot.active?vi=p:p===Ot.active&&vi&&(vi=null),h===p&&(p._ignoreWhileAnimating=r),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(r===Qe&&!Qe.animated||r===n&&!r.animated)&&(mh=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Qe.parentNode[Fi]._isOutsideThisEl(t.target),!$&&lf(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function w(){Ko=br(Qe),rc=br(Qe,s.draggable),Ki({sortable:p,name:"change",toEl:n,newIndex:Ko,newDraggableIndex:rc,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=rs(r,s.draggable,n,!0),y("dragOver"),Ot.eventCanceled)return g;if(Qe.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||p._ignoreWhileAnimating===r)return b(!1);if($S=!1,u&&!s.disabled&&(c?f||(a=mr!==lr):vi===this||(this.lastPutMode=H1.checkPull(this,u,Qe,t))&&l.checkPut(this,u,Qe,t))){if(d=this._getDirection(t,r)==="vertical",i=cr(Qe),y("dragOverValid"),Ot.eventCanceled)return g;if(a)return mr=lr,m(),this._hideClone(),y("revert"),Ot.eventCanceled||(Nf?lr.insertBefore(Qe,Nf):lr.appendChild(Qe)),b(!0);var S=ZM(n,s.draggable);if(!S||vge(t,d,this)&&!S.animated){if(S===Qe)return b(!1);if(S&&n===t.target&&(r=S),r&&(o=cr(r)),W1(lr,n,Qe,i,r,o,t,!!r)!==!1)return m(),n.appendChild(Qe),mr=n,w(),b(!0)}else if(S&&pge(t,d,this)){var C=Hp(n,0,s,!0);if(C===Qe)return b(!1);if(r=C,o=cr(r),W1(lr,n,Qe,i,r,o,t,!1)!==!1)return m(),n.insertBefore(Qe,C),mr=n,w(),b(!0)}else if(r.parentNode===n){o=cr(r);var T=0,E,P=Qe.parentNode!==n,I=!uge(Qe.animated&&Qe.toRect||i,r.animated&&r.toRect||o,d),D=d?"top":"left",O=A3(r,"top","top")||A3(Qe,"top","top"),N=O?O.scrollTop:void 0;mh!==r&&(E=o[D],_m=!1,z1=!I&&s.invertSwap||P),T=gge(t,r,o,d,I?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,z1,mh===r);var M;if(T!==0){var k=br(Qe);do k-=T,M=mr.children[k];while(M&&(_t(M,"display")==="none"||M===Xt))}if(T===0||M===r)return b(!1);mh=r,ym=T;var V=r.nextElementSibling,B=!1;B=T===1;var U=W1(lr,n,Qe,i,r,o,t,B);if(U!==!1)return(U===1||U===-1)&&(B=U===1),gA=!0,setTimeout(hge,30),m(),B&&!V?n.appendChild(Qe):r.parentNode.insertBefore(Qe,B?V:r),O&&SG(O,0,N-O.scrollTop),mr=Qe.parentNode,E!==void 0&&!z1&&(Ab=Math.abs(E-cr(r)[D])),w(),b(!0)}if(n.contains(Qe))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){nn(document,"mousemove",this._onTouchMove),nn(document,"touchmove",this._onTouchMove),nn(document,"pointermove",this._onTouchMove),nn(document,"dragover",lf),nn(document,"mousemove",lf),nn(document,"touchmove",lf)},_offUpEvents:function(){var t=this.el.ownerDocument;nn(t,"mouseup",this._onDrop),nn(t,"touchend",this._onDrop),nn(t,"pointerup",this._onDrop),nn(t,"touchcancel",this._onDrop),nn(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(Ko=br(Qe),rc=br(Qe,r.draggable),go("drop",this,{evt:t}),mr=Qe&&Qe.parentNode,Ko=br(Qe),rc=br(Qe,r.draggable),Ot.eventCanceled){this._nulling();return}Hh=!1,z1=!1,_m=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),mA(this.cloneId),mA(this._dragStartId),this.nativeDraggable&&(nn(document,"drop",this),nn(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),vm&&_t(document.body,"user-select",""),_t(Qe,"transform",""),t&&(Og&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),Xt&&Xt.parentNode&&Xt.parentNode.removeChild(Xt),(lr===mr||vi&&vi.lastPutMode!=="clone")&&yr&&yr.parentNode&&yr.parentNode.removeChild(yr),Qe&&(this.nativeDraggable&&nn(Qe,"dragend",this),SE(Qe),Qe.style["will-change"]="",Og&&!Hh&&hr(Qe,vi?vi.options.ghostClass:this.options.ghostClass,!1),hr(Qe,this.options.chosenClass,!1),Ki({sortable:this,name:"unchoose",toEl:mr,newIndex:null,newDraggableIndex:null,originalEvent:t}),lr!==mr?(Ko>=0&&(Ki({rootEl:mr,name:"add",toEl:mr,fromEl:lr,originalEvent:t}),Ki({sortable:this,name:"remove",toEl:mr,originalEvent:t}),Ki({rootEl:mr,name:"sort",toEl:mr,fromEl:lr,originalEvent:t}),Ki({sortable:this,name:"sort",toEl:mr,originalEvent:t})),vi&&vi.save()):Ko!==Xh&&Ko>=0&&(Ki({sortable:this,name:"update",toEl:mr,originalEvent:t}),Ki({sortable:this,name:"sort",toEl:mr,originalEvent:t})),Ot.active&&((Ko==null||Ko===-1)&&(Ko=Xh,rc=mm),Ki({sortable:this,name:"end",toEl:mr,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){go("nulling",this),lr=Qe=mr=Xt=Nf=yr=Ib=ic=sf=Ka=Og=Ko=rc=Xh=mm=mh=ym=vi=H1=Ot.dragged=Ot.ghost=Ot.clone=Ot.active=null,US.forEach(function(t){t.checked=!0}),US.length=yE=_E=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Qe&&(this._onDragOver(t),dge(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)n=r[i],rs(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||yge(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,a){var s=i.children[a];rs(s,this.options.draggable,i,!1)&&(r[o]=s)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return rs(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=i0.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&TG(r)},destroy:function(){go("destroy",this);var t=this.el;t[Fi]=null,nn(t,"mousedown",this._onTapStart),nn(t,"touchstart",this._onTapStart),nn(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(nn(t,"dragover",this),nn(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),BS.splice(BS.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ic){if(go("hideClone",this),Ot.eventCanceled)return;_t(yr,"display","none"),this.options.removeCloneOnHide&&yr.parentNode&&yr.parentNode.removeChild(yr),ic=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(ic){if(go("showClone",this),Ot.eventCanceled)return;Qe.parentNode==lr&&!this.options.group.revertClone?lr.insertBefore(yr,Qe):Nf?lr.insertBefore(yr,Nf):lr.appendChild(yr),this.options.group.revertClone&&this.animate(Qe,yr),_t(yr,"display",""),ic=!1}}};function dge(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function W1(e,t,n,r,i,o,a,s){var l,u=e[Fi],c=u.options.onMove,f;return window.CustomEvent&&!wu&&!r0?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||cr(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),c&&(f=c.call(u,l,a)),f}function SE(e){e.draggable=!1}function hge(){gA=!1}function pge(e,t,n){var r=cr(Hp(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function vge(e,t,n){var r=cr(ZM(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function gge(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,h=!1;if(!a){if(s&&Ab<u*i){if(!_m&&(ym===1?l>c+u*o/2:l<f-u*o/2)&&(_m=!0),_m)h=!0;else if(ym===1?l<c+Ab:l>f-Ab)return-ym}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return mge(t)}return h=h||a,h&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function mge(e){return br(Qe)<br(e)?1:-1}function yge(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function _ge(e){US.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&US.push(r)}}function Pb(e){return setTimeout(e,0)}function mA(e){return clearTimeout(e)}Ax&&dn(document,"touchmove",function(e){(Ot.active||Hh)&&e.cancelable&&e.preventDefault()});Ot.utils={on:dn,off:nn,css:_t,find:_G,is:function(t,n){return!!rs(t,n,t,!1)},extend:nge,throttle:bG,closest:rs,toggleClass:hr,clone:qM,index:br,nextTick:Pb,cancelNextTick:mA,detectDirection:xG,getChild:Hp};Ot.get=function(e){return e[Fi]};Ot.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Ot.utils=ll(ll({},Ot.utils),r.utils)),i0.mount(r)})};Ot.create=function(e,t){return new Ot(e,t)};Ot.version=Jve;var Fr=[],Lg,yA,_A=!1,wE,xE,VS,kg;function bge(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?dn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?dn(document,"pointermove",this._handleFallbackAutoScroll):r.touches?dn(document,"touchmove",this._handleFallbackAutoScroll):dn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?nn(document,"dragover",this._handleAutoScroll):(nn(document,"pointermove",this._handleFallbackAutoScroll),nn(document,"touchmove",this._handleFallbackAutoScroll),nn(document,"mousemove",this._handleFallbackAutoScroll)),L3(),Rb(),rge()},nulling:function(){VS=yA=Lg=_A=kg=wE=xE=null,Fr.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(o,a);if(VS=n,r||this.options.forceAutoScrollFallback||r0||wu||vm){TE(n,this.options,s,r);var l=dc(s,!0);_A&&(!kg||o!==wE||a!==xE)&&(kg&&L3(),kg=setInterval(function(){var u=dc(document.elementFromPoint(o,a),!0);u!==l&&(l=u,Rb()),TE(n,i.options,u,r)},10),wE=o,xE=a)}else{if(!this.options.bubbleScroll||dc(s,!0)===el()){Rb();return}TE(n,this.options,dc(s,!1),!1)}}},Va(e,{pluginName:"scroll",initializeByDefault:!0})}function Rb(){Fr.forEach(function(e){clearInterval(e.pid)}),Fr=[]}function L3(){clearInterval(kg)}var TE=bG(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=el(),u=!1,c;yA!==n&&(yA=n,Rb(),Lg=t.scroll,c=t.scrollFn,Lg===!0&&(Lg=dc(n,!0)));var f=0,h=Lg;do{var d=h,p=cr(d),g=p.top,y=p.bottom,m=p.left,b=p.right,w=p.width,S=p.height,C=void 0,T=void 0,E=d.scrollWidth,P=d.scrollHeight,I=_t(d),D=d.scrollLeft,O=d.scrollTop;d===l?(C=w<E&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),T=S<P&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(C=w<E&&(I.overflowX==="auto"||I.overflowX==="scroll"),T=S<P&&(I.overflowY==="auto"||I.overflowY==="scroll"));var N=C&&(Math.abs(b-i)<=a&&D+w<E)-(Math.abs(m-i)<=a&&!!D),M=T&&(Math.abs(y-o)<=a&&O+S<P)-(Math.abs(g-o)<=a&&!!O);if(!Fr[f])for(var k=0;k<=f;k++)Fr[k]||(Fr[k]={});(Fr[f].vx!=N||Fr[f].vy!=M||Fr[f].el!==d)&&(Fr[f].el=d,Fr[f].vx=N,Fr[f].vy=M,clearInterval(Fr[f].pid),(N!=0||M!=0)&&(u=!0,Fr[f].pid=setInterval((function(){r&&this.layer===0&&Ot.active._onTouchMove(VS);var V=Fr[this.layer].vy?Fr[this.layer].vy*s:0,B=Fr[this.layer].vx?Fr[this.layer].vx*s:0;typeof c=="function"&&c.call(Ot.dragged.parentNode[Fi],B,V,e,VS,Fr[this.layer].el)!=="continue"||SG(Fr[this.layer].el,B,V)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&h!==l&&(h=dc(h,!1)));_A=u}},30),IG=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||o;s();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function JM(){}JM.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Hp(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:IG};Va(JM,{pluginName:"revertOnSpill"});function QM(){}QM.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:IG};Va(QM,{pluginName:"removeOnSpill"});var ba;function Sge(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;ba=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,a=n.activeSortable,s=n.changed,l=n.cancel;if(a.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var f=ba;o(i)!==!1?(hr(i,c.swapClass,!0),ba=i):ba=null,f&&f!==ba&&hr(f,c.swapClass,!1)}s(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,a=i||this.sortable,s=this.options;ba&&hr(ba,s.swapClass,!1),ba&&(s.swap||i&&i.options.swap)&&o!==ba&&(a.captureAnimationState(),a!==r&&r.captureAnimationState(),wge(o,ba),a.animateAll(),a!==r&&r.animateAll())},nulling:function(){ba=null}},Va(e,{pluginName:"swap",eventProperties:function(){return{swapItem:ba}}})}function wge(e,t){var n=e.parentNode,r=t.parentNode,i,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=br(e),o=br(t),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[o]))}var Ht=[],Xo=[],qv,Za,Jv=!1,mo=!1,yh=!1,Yn,Qv,j1;function xge(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?dn(document,"pointerup",this._deselectMultiDrag):(dn(document,"mouseup",this._deselectMultiDrag),dn(document,"touchend",this._deselectMultiDrag)),dn(document,"keydown",this._checkKeyDown),dn(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var a="";Ht.length&&Za===t?Ht.forEach(function(s,l){a+=(l?", ":"")+s.textContent}):a=o.textContent,i.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Yn=r},delayEnded:function(){this.isMultiDrag=~Ht.indexOf(Yn)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<Ht.length;o++)Xo.push(qM(Ht[o])),Xo[o].sortableIndex=Ht[o].sortableIndex,Xo[o].draggable=!1,Xo[o].style["will-change"]="",hr(Xo[o],this.options.selectedClass,!1),Ht[o]===Yn&&hr(Xo[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,a=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Ht.length&&Za===r&&(k3(!0,i),o("clone"),a()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(k3(!1,i),Xo.forEach(function(a){_t(a,"display","")}),r(),j1=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Xo.forEach(function(a){_t(a,"display","none"),r.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),j1=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Za&&Za.multiDrag._deselectMultiDrag(),Ht.forEach(function(r){r.sortableIndex=br(r)}),Ht=Ht.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),yh=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Ht.forEach(function(a){a!==Yn&&_t(a,"position","absolute")});var o=cr(Yn,!1,!0,!0);Ht.forEach(function(a){a!==Yn&&R3(a,o)}),mo=!0,Jv=!0}i.animateAll(function(){mo=!1,Jv=!1,r.options.animation&&Ht.forEach(function(a){gE(a)}),r.options.sort&&Y1()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;mo&&~Ht.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,a=n.dragRect;Ht.length>1&&(Ht.forEach(function(s){o.addAnimationState({target:s,rect:mo?cr(s):a}),gE(s),s.fromRect=a,r.removeAnimationState(s)}),mo=!1,Tge(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,a=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&a._hideClone(),Jv=!1,u.animation&&Ht.length>1&&(mo||!i&&!a.options.sort&&!l)){var c=cr(Yn,!1,!0,!0);Ht.forEach(function(h){h!==Yn&&(R3(h,c),s.appendChild(h))}),mo=!0}if(!i)if(mo||Y1(),Ht.length>1){var f=j1;a._showClone(r),a.options.animation&&!j1&&f&&Xo.forEach(function(h){a.addAnimationState({target:h,rect:Qv}),h.fromRect=Qv,h.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(Ht.forEach(function(s){s.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){Qv=Va({},r);var a=hd(Yn,!0);Qv.top-=a.f,Qv.left-=a.e}},dragOverAnimationComplete:function(){mo&&(mo=!1,Y1())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,a=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var f=this.options,h=o.children;if(!yh)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),hr(Yn,f.selectedClass,!~Ht.indexOf(Yn)),~Ht.indexOf(Yn))Ht.splice(Ht.indexOf(Yn),1),qv=null,Dg({sortable:a,rootEl:i,name:"deselect",targetEl:Yn});else{if(Ht.push(Yn),Dg({sortable:a,rootEl:i,name:"select",targetEl:Yn}),r.shiftKey&&qv&&a.el.contains(qv)){var d=br(qv),p=br(Yn);if(~d&&~p&&d!==p){var g,y;for(p>d?(y=d,g=p):(y=p,g=d+1);y<g;y++)~Ht.indexOf(h[y])||(hr(h[y],f.selectedClass,!0),Ht.push(h[y]),Dg({sortable:a,rootEl:i,name:"select",targetEl:h[y]}))}}else qv=Yn;Za=c}if(yh&&this.isMultiDrag){if(mo=!1,(o[Fi].options.sort||o!==i)&&Ht.length>1){var m=cr(Yn),b=br(Yn,":not(."+this.options.selectedClass+")");if(!Jv&&f.animation&&(Yn.thisAnimationDuration=null),c.captureAnimationState(),!Jv&&(f.animation&&(Yn.fromRect=m,Ht.forEach(function(S){if(S.thisAnimationDuration=null,S!==Yn){var C=mo?cr(S):m;S.fromRect=C,c.addAnimationState({target:S,rect:C})}})),Y1(),Ht.forEach(function(S){h[b]?o.insertBefore(S,h[b]):o.appendChild(S),b++}),l===br(Yn))){var w=!1;Ht.forEach(function(S){if(S.sortableIndex!==br(S)){w=!0;return}}),w&&s("update")}Ht.forEach(function(S){gE(S)}),c.animateAll()}Za=c}(i===o||u&&u.lastPutMode!=="clone")&&Xo.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=yh=!1,Xo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),nn(document,"pointerup",this._deselectMultiDrag),nn(document,"mouseup",this._deselectMultiDrag),nn(document,"touchend",this._deselectMultiDrag),nn(document,"keydown",this._checkKeyDown),nn(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof yh<"u"&&yh)&&Za===this.sortable&&!(n&&rs(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Ht.length;){var r=Ht[0];hr(r,this.options.selectedClass,!1),Ht.shift(),Dg({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Va(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[Fi];!r||!r.options.multiDrag||~Ht.indexOf(n)||(Za&&Za!==r&&(Za.multiDrag._deselectMultiDrag(),Za=r),hr(n,r.options.selectedClass,!0),Ht.push(n))},deselect:function(n){var r=n.parentNode[Fi],i=Ht.indexOf(n);!r||!r.options.multiDrag||!~i||(hr(n,r.options.selectedClass,!1),Ht.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Ht.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var a;mo&&o!==Yn?a=-1:mo?a=br(o,":not(."+n.options.selectedClass+")"):a=br(o),i.push({multiDragElement:o,index:a})}),{items:Yve(Ht),clones:[].concat(Xo),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Tge(e,t){Ht.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function k3(e,t){Xo.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Y1(){Ht.forEach(function(e){e!==Yn&&e.parentNode&&e.parentNode.removeChild(e)})}Ot.mount(new bge);Ot.mount(QM,JM);const Cge=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:xge,Sortable:Ot,Swap:Sge,default:Ot},Symbol.toStringTag,{value:"Module"})),Ege=ex(Cge);var Ige=_b.exports,N3;function Age(){return N3||(N3=1,(function(e,t){(function(r,i){e.exports=i(zve(),Ege)})(typeof self<"u"?self:Ige,function(n,r){return(function(i){var o={};function a(s){if(o[s])return o[s].exports;var l=o[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=o,a.d=function(s,l,u){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(l&1&&(s=a(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)a.d(u,c,(function(f){return s[f]}).bind(null,c));return u},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s="fb15")})({"00ee":(function(i,o,a){var s=a("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"}),"0366":(function(i,o,a){var s=a("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,h){return l.call(u,f,h)};case 3:return function(f,h,d){return l.call(u,f,h,d)}}return function(){return l.apply(u,arguments)}}}),"057f":(function(i,o,a){var s=a("fc6a"),l=a("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(h){try{return l(h)}catch{return c.slice()}};i.exports.f=function(d){return c&&u.call(d)=="[object Window]"?f(d):l(s(d))}}),"06cf":(function(i,o,a){var s=a("83ab"),l=a("d1e7"),u=a("5c6c"),c=a("fc6a"),f=a("c04e"),h=a("5135"),d=a("0cfb"),p=Object.getOwnPropertyDescriptor;o.f=s?p:function(y,m){if(y=c(y),m=f(m,!0),d)try{return p(y,m)}catch{}if(h(y,m))return u(!l.f.call(y,m),y[m])}}),"0cfb":(function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})}),"13d5":(function(i,o,a){var s=a("23e7"),l=a("d58f").left,u=a("a640"),c=a("ae40"),f=u("reduce"),h=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!h},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(i,o,a){var s=a("c6b6"),l=a("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var h=f.call(u,c);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}}),"159b":(function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("17c2"),c=a("9112");for(var f in l){var h=s[f],d=h&&h.prototype;if(d&&d.forEach!==u)try{c(d,"forEach",u)}catch{d.forEach=u}}}),"17c2":(function(i,o,a){var s=a("b727").forEach,l=a("a640"),u=a("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(d){return s(this,d,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(i,o,a){var s=a("d066");i.exports=s("document","documentElement")}),"1c0b":(function(i,o){i.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}}),"1c7e":(function(i,o,a){var s=a("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(h,d){if(!d&&!u)return!1;var p=!1;try{var g={};g[l]=function(){return{next:function(){return{done:p=!0}}}},h(g)}catch{}return p}}),"1d80":(function(i,o){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}}),"1dde":(function(i,o,a){var s=a("d039"),l=a("b622"),u=a("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var h=[],d=h.constructor={};return d[c]=function(){return{foo:1}},h[f](Boolean).foo!==1})}}),"23cb":(function(i,o,a){var s=a("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var h=s(c);return h<0?l(h+f,0):u(h,f)}}),"23e7":(function(i,o,a){var s=a("da84"),l=a("06cf").f,u=a("9112"),c=a("6eeb"),f=a("ce4e"),h=a("e893"),d=a("94ca");i.exports=function(p,g){var y=p.target,m=p.global,b=p.stat,w,S,C,T,E,P;if(m?S=s:b?S=s[y]||f(y,{}):S=(s[y]||{}).prototype,S)for(C in g){if(E=g[C],p.noTargetGet?(P=l(S,C),T=P&&P.value):T=S[C],w=d(m?C:y+(b?".":"#")+C,p.forced),!w&&T!==void 0){if(typeof E==typeof T)continue;h(E,T)}(p.sham||T&&T.sham)&&u(E,"sham",!0),c(S,C,E,p)}}}),"241c":(function(i,o,a){var s=a("ca84"),l=a("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return s(f,u)}}),"25f0":(function(i,o,a){var s=a("6eeb"),l=a("825a"),u=a("d039"),c=a("ad6d"),f="toString",h=RegExp.prototype,d=h[f],p=u(function(){return d.call({source:"a",flags:"b"})!="/a/b"}),g=d.name!=f;(p||g)&&s(RegExp.prototype,f,function(){var m=l(this),b=String(m.source),w=m.flags,S=String(w===void 0&&m instanceof RegExp&&!("flags"in h)?c.call(m):w);return"/"+b+"/"+S},{unsafe:!0})}),"2ca0":(function(i,o,a){var s=a("23e7"),l=a("06cf").f,u=a("50c4"),c=a("5a34"),f=a("1d80"),h=a("ab13"),d=a("c430"),p="".startsWith,g=Math.min,y=h("startsWith"),m=!d&&!y&&!!(function(){var b=l(String.prototype,"startsWith");return b&&!b.writable})();s({target:"String",proto:!0,forced:!m&&!y},{startsWith:function(w){var S=String(f(this));c(w);var C=u(g(arguments.length>1?arguments[1]:void 0,S.length)),T=String(w);return p?p.call(S,T,C):S.slice(C,C+T.length)===T}})}),"2d00":(function(i,o,a){var s=a("da84"),l=a("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,h,d;f?(h=f.split("."),d=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(d=h[1]))),i.exports=d&&+d}),"342f":(function(i,o,a){var s=a("d066");i.exports=s("navigator","userAgent")||""}),"35a1":(function(i,o,a){var s=a("f5df"),l=a("3f8c"),u=a("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}}),"37e8":(function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("825a"),c=a("df75");i.exports=s?Object.defineProperties:function(h,d){u(h);for(var p=c(d),g=p.length,y=0,m;g>y;)l.f(h,m=p[y++],d[m]);return h}}),"3bbe":(function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}}),"3ca3":(function(i,o,a){var s=a("6547").charAt,l=a("69f3"),u=a("7dd0"),c="String Iterator",f=l.set,h=l.getterFor(c);u(String,"String",function(d){f(this,{type:c,string:String(d),index:0})},function(){var p=h(this),g=p.string,y=p.index,m;return y>=g.length?{value:void 0,done:!0}:(m=s(g,y),p.index+=m.length,{value:m,done:!1})})}),"3f8c":(function(i,o){i.exports={}}),4160:(function(i,o,a){var s=a("23e7"),l=a("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})}),"428f":(function(i,o,a){var s=a("da84");i.exports=s}),"44ad":(function(i,o,a){var s=a("d039"),l=a("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object}),"44d2":(function(i,o,a){var s=a("b622"),l=a("7c73"),u=a("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(h){f[c][h]=!0}}),"44e7":(function(i,o,a){var s=a("861d"),l=a("c6b6"),u=a("b622"),c=u("match");i.exports=function(f){var h;return s(f)&&((h=f[c])!==void 0?!!h:l(f)=="RegExp")}}),4930:(function(i,o,a){var s=a("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})}),"4d64":(function(i,o,a){var s=a("fc6a"),l=a("50c4"),u=a("23cb"),c=function(f){return function(h,d,p){var g=s(h),y=l(g.length),m=u(p,y),b;if(f&&d!=d){for(;y>m;)if(b=g[m++],b!=b)return!0}else for(;y>m;m++)if((f||m in g)&&g[m]===d)return f||m||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}}),"4de4":(function(i,o,a){var s=a("23e7"),l=a("b727").filter,u=a("1dde"),c=a("ae40"),f=u("filter"),h=c("filter");s({target:"Array",proto:!0,forced:!f||!h},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(i,o,a){var s=a("0366"),l=a("7b0b"),u=a("9bdd"),c=a("e95a"),f=a("50c4"),h=a("8418"),d=a("35a1");i.exports=function(g){var y=l(g),m=typeof this=="function"?this:Array,b=arguments.length,w=b>1?arguments[1]:void 0,S=w!==void 0,C=d(y),T=0,E,P,I,D,O,N;if(S&&(w=s(w,b>2?arguments[2]:void 0,2)),C!=null&&!(m==Array&&c(C)))for(D=C.call(y),O=D.next,P=new m;!(I=O.call(D)).done;T++)N=S?u(D,w,[I.value,T],!0):I.value,h(P,T,N);else for(E=f(y.length),P=new m(E);E>T;T++)N=S?w(y[T],T):y[T],h(P,T,N);return P.length=T,P}}),"4fad":(function(i,o,a){var s=a("23e7"),l=a("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})}),"50c4":(function(i,o,a){var s=a("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}}),5135:(function(i,o){var a={}.hasOwnProperty;i.exports=function(s,l){return a.call(s,l)}}),5319:(function(i,o,a){var s=a("d784"),l=a("825a"),u=a("7b0b"),c=a("50c4"),f=a("a691"),h=a("1d80"),d=a("8aa5"),p=a("14c3"),g=Math.max,y=Math.min,m=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,w=/\$([$&'`]|\d\d?)/g,S=function(C){return C===void 0?C:String(C)};s("replace",2,function(C,T,E,P){var I=P.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,D=P.REPLACE_KEEPS_$0,O=I?"$":"$0";return[function(k,V){var B=h(this),U=k?.[C];return U!==void 0?U.call(k,B,V):T.call(String(B),k,V)},function(M,k){if(!I&&D||typeof k=="string"&&k.indexOf(O)===-1){var V=E(T,M,this,k);if(V.done)return V.value}var B=l(M),U=String(this),$=typeof k=="function";$||(k=String(k));var J=B.global;if(J){var ae=B.unicode;B.lastIndex=0}for(var ne=[];;){var _e=p(B,U);if(_e===null||(ne.push(_e),!J))break;var me=String(_e[0]);me===""&&(B.lastIndex=d(U,c(B.lastIndex),ae))}for(var Me="",Re=0,ke=0;ke<ne.length;ke++){_e=ne[ke];for(var oe=String(_e[0]),Ee=g(y(f(_e.index),U.length),0),we=[],Ae=1;Ae<_e.length;Ae++)we.push(S(_e[Ae]));var Oe=_e.groups;if($){var Ue=[oe].concat(we,Ee,U);Oe!==void 0&&Ue.push(Oe);var Y=String(k.apply(void 0,Ue))}else Y=N(oe,U,Ee,we,Oe,k);Ee>=Re&&(Me+=U.slice(Re,Ee)+Y,Re=Ee+oe.length)}return Me+U.slice(Re)}];function N(M,k,V,B,U,$){var J=V+M.length,ae=B.length,ne=w;return U!==void 0&&(U=u(U),ne=b),T.call($,ne,function(_e,me){var Me;switch(me.charAt(0)){case"$":return"$";case"&":return M;case"`":return k.slice(0,V);case"'":return k.slice(J);case"<":Me=U[me.slice(1,-1)];break;default:var Re=+me;if(Re===0)return _e;if(Re>ae){var ke=m(Re/10);return ke===0?_e:ke<=ae?B[ke-1]===void 0?me.charAt(1):B[ke-1]+me.charAt(1):_e}Me=B[Re-1]}return Me===void 0?"":Me})}})}),5692:(function(i,o,a){var s=a("c430"),l=a("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),"56ef":(function(i,o,a){var s=a("d066"),l=a("241c"),u=a("7418"),c=a("825a");i.exports=s("Reflect","ownKeys")||function(h){var d=l.f(c(h)),p=u.f;return p?d.concat(p(h)):d}}),"5a34":(function(i,o,a){var s=a("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}}),"5c6c":(function(i,o){i.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}}),"5db7":(function(i,o,a){var s=a("23e7"),l=a("a2bf"),u=a("7b0b"),c=a("50c4"),f=a("1c0b"),h=a("65f0");s({target:"Array",proto:!0},{flatMap:function(p){var g=u(this),y=c(g.length),m;return f(p),m=h(g,0),m.length=l(m,g,g,y,0,1,p,arguments.length>1?arguments[1]:void 0),m}})}),6547:(function(i,o,a){var s=a("a691"),l=a("1d80"),u=function(c){return function(f,h){var d=String(l(f)),p=s(h),g=d.length,y,m;return p<0||p>=g?c?"":void 0:(y=d.charCodeAt(p),y<55296||y>56319||p+1===g||(m=d.charCodeAt(p+1))<56320||m>57343?c?d.charAt(p):y:c?d.slice(p,p+2):(y-55296<<10)+(m-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}}),"65f0":(function(i,o,a){var s=a("861d"),l=a("e8b5"),u=a("b622"),c=u("species");i.exports=function(f,h){var d;return l(f)&&(d=f.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:s(d)&&(d=d[c],d===null&&(d=void 0))),new(d===void 0?Array:d)(h===0?0:h)}}),"69f3":(function(i,o,a){var s=a("7f9a"),l=a("da84"),u=a("861d"),c=a("9112"),f=a("5135"),h=a("f772"),d=a("d012"),p=l.WeakMap,g,y,m,b=function(I){return m(I)?y(I):g(I,{})},w=function(I){return function(D){var O;if(!u(D)||(O=y(D)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return O}};if(s){var S=new p,C=S.get,T=S.has,E=S.set;g=function(I,D){return E.call(S,I,D),D},y=function(I){return C.call(S,I)||{}},m=function(I){return T.call(S,I)}}else{var P=h("state");d[P]=!0,g=function(I,D){return c(I,P,D),D},y=function(I){return f(I,P)?I[P]:{}},m=function(I){return f(I,P)}}i.exports={set:g,get:y,has:m,enforce:b,getterFor:w}}),"6eeb":(function(i,o,a){var s=a("da84"),l=a("9112"),u=a("5135"),c=a("ce4e"),f=a("8925"),h=a("69f3"),d=h.get,p=h.enforce,g=String(String).split("String");(i.exports=function(y,m,b,w){var S=w?!!w.unsafe:!1,C=w?!!w.enumerable:!1,T=w?!!w.noTargetGet:!1;if(typeof b=="function"&&(typeof m=="string"&&!u(b,"name")&&l(b,"name",m),p(b).source=g.join(typeof m=="string"?m:"")),y===s){C?y[m]=b:c(m,b);return}else S?!T&&y[m]&&(C=!0):delete y[m];C?y[m]=b:l(y,m,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(this).source||f(this)})}),"6f53":(function(i,o,a){var s=a("83ab"),l=a("df75"),u=a("fc6a"),c=a("d1e7").f,f=function(h){return function(d){for(var p=u(d),g=l(p),y=g.length,m=0,b=[],w;y>m;)w=g[m++],(!s||c.call(p,w))&&b.push(h?[w,p[w]]:p[w]);return b}};i.exports={entries:f(!0),values:f(!1)}}),"73d9":(function(i,o,a){var s=a("44d2");s("flatMap")}),7418:(function(i,o){o.f=Object.getOwnPropertySymbols}),"746f":(function(i,o,a){var s=a("428f"),l=a("5135"),u=a("e538"),c=a("9bf2").f;i.exports=function(f){var h=s.Symbol||(s.Symbol={});l(h,f)||c(h,f,{value:u.f(f)})}}),7839:(function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),"7b0b":(function(i,o,a){var s=a("1d80");i.exports=function(l){return Object(s(l))}}),"7c73":(function(i,o,a){var s=a("825a"),l=a("37e8"),u=a("7839"),c=a("d012"),f=a("1be4"),h=a("cc12"),d=a("f772"),p=">",g="<",y="prototype",m="script",b=d("IE_PROTO"),w=function(){},S=function(I){return g+m+p+I+g+"/"+m+p},C=function(I){I.write(S("")),I.close();var D=I.parentWindow.Object;return I=null,D},T=function(){var I=h("iframe"),D="java"+m+":",O;return I.style.display="none",f.appendChild(I),I.src=String(D),O=I.contentWindow.document,O.open(),O.write(S("document.F=Object")),O.close(),O.F},E,P=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch{}P=E?C(E):T();for(var I=u.length;I--;)delete P[y][u[I]];return P()};c[b]=!0,i.exports=Object.create||function(D,O){var N;return D!==null?(w[y]=s(D),N=new w,w[y]=null,N[b]=D):N=P(),O===void 0?N:l(N,O)}}),"7dd0":(function(i,o,a){var s=a("23e7"),l=a("9ed3"),u=a("e163"),c=a("d2bb"),f=a("d44e"),h=a("9112"),d=a("6eeb"),p=a("b622"),g=a("c430"),y=a("3f8c"),m=a("ae93"),b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,S=p("iterator"),C="keys",T="values",E="entries",P=function(){return this};i.exports=function(I,D,O,N,M,k,V){l(O,D,N);var B=function(ke){if(ke===M&&ne)return ne;if(!w&&ke in J)return J[ke];switch(ke){case C:return function(){return new O(this,ke)};case T:return function(){return new O(this,ke)};case E:return function(){return new O(this,ke)}}return function(){return new O(this)}},U=D+" Iterator",$=!1,J=I.prototype,ae=J[S]||J["@@iterator"]||M&&J[M],ne=!w&&ae||B(M),_e=D=="Array"&&J.entries||ae,me,Me,Re;if(_e&&(me=u(_e.call(new I)),b!==Object.prototype&&me.next&&(!g&&u(me)!==b&&(c?c(me,b):typeof me[S]!="function"&&h(me,S,P)),f(me,U,!0,!0),g&&(y[U]=P))),M==T&&ae&&ae.name!==T&&($=!0,ne=function(){return ae.call(this)}),(!g||V)&&J[S]!==ne&&h(J,S,ne),y[D]=ne,M)if(Me={values:B(T),keys:k?ne:B(C),entries:B(E)},V)for(Re in Me)(w||$||!(Re in J))&&d(J,Re,Me[Re]);else s({target:D,proto:!0,forced:w||$},Me);return Me}}),"7f9a":(function(i,o,a){var s=a("da84"),l=a("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))}),"825a":(function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}}),"83ab":(function(i,o,a){var s=a("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(i,o,a){var s=a("c04e"),l=a("9bf2"),u=a("5c6c");i.exports=function(c,f,h){var d=s(f);d in c?l.f(c,d,u(0,h)):c[d]=h}}),"861d":(function(i,o){i.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}}),8875:(function(i,o,a){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(o,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(E){var h=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,p=h.exec(E.stack)||d.exec(E.stack),g=p&&p[1]||!1,y=p&&p[2]||!1,m=document.location.href.replace(document.location.hash,""),b,w,S,C=document.getElementsByTagName("script");g===m&&(b=document.documentElement.outerHTML,w=new RegExp("(?:[^\\n]+?\\n){0,"+(y-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),S=b.replace(w,"$1").trim());for(var T=0;T<C.length;T++)if(C[T].readyState==="interactive"||C[T].src===g||g===m&&C[T].innerHTML&&C[T].innerHTML.trim()===S)return C[T];return null}}return c})}),8925:(function(i,o,a){var s=a("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),i.exports=s.inspectSource}),"8aa5":(function(i,o,a){var s=a("6547").charAt;i.exports=function(l,u,c){return u+(c?s(l,u).length:1)}}),"8bbf":(function(i,o){i.exports=n}),"90e3":(function(i,o){var a=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++a+s).toString(36)}}),9112:(function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("5c6c");i.exports=s?function(c,f,h){return l.f(c,f,u(1,h))}:function(c,f,h){return c[f]=h,c}}),9263:(function(i,o,a){var s=a("ad6d"),l=a("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,h=(function(){var y=/a/,m=/b*/g;return u.call(y,"a"),u.call(m,"a"),y.lastIndex!==0||m.lastIndex!==0})(),d=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=h||p||d;g&&(f=function(m){var b=this,w,S,C,T,E=d&&b.sticky,P=s.call(b),I=b.source,D=0,O=m;return E&&(P=P.replace("y",""),P.indexOf("g")===-1&&(P+="g"),O=String(m).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&m[b.lastIndex-1]!==`
`)&&(I="(?: "+I+")",O=" "+O,D++),S=new RegExp("^(?:"+I+")",P)),p&&(S=new RegExp("^"+I+"$(?!\\s)",P)),h&&(w=b.lastIndex),C=u.call(E?S:b,O),E?C?(C.input=C.input.slice(D),C[0]=C[0].slice(D),C.index=b.lastIndex,b.lastIndex+=C[0].length):b.lastIndex=0:h&&C&&(b.lastIndex=b.global?C.index+C[0].length:w),p&&C&&C.length>1&&c.call(C[0],S,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(C[T]=void 0)}),C}),i.exports=f}),"94ca":(function(i,o,a){var s=a("d039"),l=/#|\.prototype\./,u=function(p,g){var y=f[c(p)];return y==d?!0:y==h?!1:typeof g=="function"?s(g):!!g},c=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",d=u.POLYFILL="P";i.exports=u}),"99af":(function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("e8b5"),c=a("861d"),f=a("7b0b"),h=a("50c4"),d=a("8418"),p=a("65f0"),g=a("1dde"),y=a("b622"),m=a("2d00"),b=y("isConcatSpreadable"),w=9007199254740991,S="Maximum allowed index exceeded",C=m>=51||!l(function(){var I=[];return I[b]=!1,I.concat()[0]!==I}),T=g("concat"),E=function(I){if(!c(I))return!1;var D=I[b];return D!==void 0?!!D:u(I)},P=!C||!T;s({target:"Array",proto:!0,forced:P},{concat:function(D){var O=f(this),N=p(O,0),M=0,k,V,B,U,$;for(k=-1,B=arguments.length;k<B;k++)if($=k===-1?O:arguments[k],E($)){if(U=h($.length),M+U>w)throw TypeError(S);for(V=0;V<U;V++,M++)V in $&&d(N,M,$[V])}else{if(M>=w)throw TypeError(S);d(N,M++,$)}return N.length=M,N}})}),"9bdd":(function(i,o,a){var s=a("825a");i.exports=function(l,u,c,f){try{return f?u(s(c)[0],c[1]):u(c)}catch(d){var h=l.return;throw h!==void 0&&s(h.call(l)),d}}}),"9bf2":(function(i,o,a){var s=a("83ab"),l=a("0cfb"),u=a("825a"),c=a("c04e"),f=Object.defineProperty;o.f=s?f:function(d,p,g){if(u(d),p=c(p,!0),u(g),l)try{return f(d,p,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(d[p]=g.value),d}}),"9ed3":(function(i,o,a){var s=a("ae93").IteratorPrototype,l=a("7c73"),u=a("5c6c"),c=a("d44e"),f=a("3f8c"),h=function(){return this};i.exports=function(d,p,g){var y=p+" Iterator";return d.prototype=l(s,{next:u(1,g)}),c(d,y,!1,!0),f[y]=h,d}}),"9f7f":(function(i,o,a){var s=a("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})}),a2bf:(function(i,o,a){var s=a("e8b5"),l=a("50c4"),u=a("0366"),c=function(f,h,d,p,g,y,m,b){for(var w=g,S=0,C=m?u(m,b,3):!1,T;S<p;){if(S in d){if(T=C?C(d[S],S,h):d[S],y>0&&s(T))w=c(f,h,T,l(T.length),w,y-1)-1;else{if(w>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[w]=T}w++}S++}return w};i.exports=c}),a352:(function(i,o){i.exports=r}),a434:(function(i,o,a){var s=a("23e7"),l=a("23cb"),u=a("a691"),c=a("50c4"),f=a("7b0b"),h=a("65f0"),d=a("8418"),p=a("1dde"),g=a("ae40"),y=p("splice"),m=g("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,w=Math.min,S=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!y||!m},{splice:function(E,P){var I=f(this),D=c(I.length),O=l(E,D),N=arguments.length,M,k,V,B,U,$;if(N===0?M=k=0:N===1?(M=0,k=D-O):(M=N-2,k=w(b(u(P),0),D-O)),D+M-k>S)throw TypeError(C);for(V=h(I,k),B=0;B<k;B++)U=O+B,U in I&&d(V,B,I[U]);if(V.length=k,M<k){for(B=O;B<D-k;B++)U=B+k,$=B+M,U in I?I[$]=I[U]:delete I[$];for(B=D;B>D-k+M;B--)delete I[B-1]}else if(M>k)for(B=D-k;B>O;B--)U=B+k-1,$=B+M-1,U in I?I[$]=I[U]:delete I[$];for(B=0;B<M;B++)I[B+O]=arguments[B+2];return I.length=D-k+M,V}})}),a4d3:(function(i,o,a){var s=a("23e7"),l=a("da84"),u=a("d066"),c=a("c430"),f=a("83ab"),h=a("4930"),d=a("fdbf"),p=a("d039"),g=a("5135"),y=a("e8b5"),m=a("861d"),b=a("825a"),w=a("7b0b"),S=a("fc6a"),C=a("c04e"),T=a("5c6c"),E=a("7c73"),P=a("df75"),I=a("241c"),D=a("057f"),O=a("7418"),N=a("06cf"),M=a("9bf2"),k=a("d1e7"),V=a("9112"),B=a("6eeb"),U=a("5692"),$=a("f772"),J=a("d012"),ae=a("90e3"),ne=a("b622"),_e=a("e538"),me=a("746f"),Me=a("d44e"),Re=a("69f3"),ke=a("b727").forEach,oe=$("hidden"),Ee="Symbol",we="prototype",Ae=ne("toPrimitive"),Oe=Re.set,Ue=Re.getterFor(Ee),Y=Object[we],X=l.Symbol,de=u("JSON","stringify"),Ie=N.f,be=M.f,W=D.f,Z=k.f,re=U("symbols"),pe=U("op-symbols"),Ce=U("string-to-symbol-registry"),$e=U("symbol-to-string-registry"),te=U("wks"),ve=l.QObject,je=!ve||!ve[we]||!ve[we].findChild,nt=f&&p(function(){return E(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(Ke,qe,ut){var Nt=Ie(Y,qe);Nt&&delete Y[qe],be(Ke,qe,ut),Nt&&Ke!==Y&&be(Y,qe,Nt)}:be,Tt=function(Ke,qe){var ut=re[Ke]=E(X[we]);return Oe(ut,{type:Ee,tag:Ke,description:qe}),f||(ut.description=qe),ut},se=d?function(Ke){return typeof Ke=="symbol"}:function(Ke){return Object(Ke)instanceof X},ce=function(qe,ut,Nt){qe===Y&&ce(pe,ut,Nt),b(qe);var Ut=C(ut,!0);return b(Nt),g(re,Ut)?(Nt.enumerable?(g(qe,oe)&&qe[oe][Ut]&&(qe[oe][Ut]=!1),Nt=E(Nt,{enumerable:T(0,!1)})):(g(qe,oe)||be(qe,oe,T(1,{})),qe[oe][Ut]=!0),nt(qe,Ut,Nt)):be(qe,Ut,Nt)},ye=function(qe,ut){b(qe);var Nt=S(ut),Ut=P(Nt).concat(ze(Nt));return ke(Ut,function(Gn){(!f||Xe.call(Nt,Gn))&&ce(qe,Gn,Nt[Gn])}),qe},De=function(qe,ut){return ut===void 0?E(qe):ye(E(qe),ut)},Xe=function(qe){var ut=C(qe,!0),Nt=Z.call(this,ut);return this===Y&&g(re,ut)&&!g(pe,ut)?!1:Nt||!g(this,ut)||!g(re,ut)||g(this,oe)&&this[oe][ut]?Nt:!0},ue=function(qe,ut){var Nt=S(qe),Ut=C(ut,!0);if(!(Nt===Y&&g(re,Ut)&&!g(pe,Ut))){var Gn=Ie(Nt,Ut);return Gn&&g(re,Ut)&&!(g(Nt,oe)&&Nt[oe][Ut])&&(Gn.enumerable=!0),Gn}},Le=function(qe){var ut=W(S(qe)),Nt=[];return ke(ut,function(Ut){!g(re,Ut)&&!g(J,Ut)&&Nt.push(Ut)}),Nt},ze=function(qe){var ut=qe===Y,Nt=W(ut?pe:S(qe)),Ut=[];return ke(Nt,function(Gn){g(re,Gn)&&(!ut||g(Y,Gn))&&Ut.push(re[Gn])}),Ut};if(h||(X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var qe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ut=ae(qe),Nt=function(Ut){this===Y&&Nt.call(pe,Ut),g(this,oe)&&g(this[oe],ut)&&(this[oe][ut]=!1),nt(this,ut,T(1,Ut))};return f&&je&&nt(Y,ut,{configurable:!0,set:Nt}),Tt(ut,qe)},B(X[we],"toString",function(){return Ue(this).tag}),B(X,"withoutSetter",function(Ke){return Tt(ae(Ke),Ke)}),k.f=Xe,M.f=ce,N.f=ue,I.f=D.f=Le,O.f=ze,_e.f=function(Ke){return Tt(ne(Ke),Ke)},f&&(be(X[we],"description",{configurable:!0,get:function(){return Ue(this).description}}),c||B(Y,"propertyIsEnumerable",Xe,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:X}),ke(P(te),function(Ke){me(Ke)}),s({target:Ee,stat:!0,forced:!h},{for:function(Ke){var qe=String(Ke);if(g(Ce,qe))return Ce[qe];var ut=X(qe);return Ce[qe]=ut,$e[ut]=qe,ut},keyFor:function(qe){if(!se(qe))throw TypeError(qe+" is not a symbol");if(g($e,qe))return $e[qe]},useSetter:function(){je=!0},useSimple:function(){je=!1}}),s({target:"Object",stat:!0,forced:!h,sham:!f},{create:De,defineProperty:ce,defineProperties:ye,getOwnPropertyDescriptor:ue}),s({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Le,getOwnPropertySymbols:ze}),s({target:"Object",stat:!0,forced:p(function(){O.f(1)})},{getOwnPropertySymbols:function(qe){return O.f(w(qe))}}),de){var lt=!h||p(function(){var Ke=X();return de([Ke])!="[null]"||de({a:Ke})!="{}"||de(Object(Ke))!="{}"});s({target:"JSON",stat:!0,forced:lt},{stringify:function(qe,ut,Nt){for(var Ut=[qe],Gn=1,Ha;arguments.length>Gn;)Ut.push(arguments[Gn++]);if(Ha=ut,!(!m(ut)&&qe===void 0||se(qe)))return y(ut)||(ut=function(Un,kr){if(typeof Ha=="function"&&(kr=Ha.call(this,Un,kr)),!se(kr))return kr}),Ut[1]=ut,de.apply(null,Ut)}})}X[we][Ae]||V(X[we],Ae,X[we].valueOf),Me(X,Ee),J[oe]=!0}),a630:(function(i,o,a){var s=a("23e7"),l=a("4df4"),u=a("1c7e"),c=!u(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:c},{from:l})}),a640:(function(i,o,a){var s=a("d039");i.exports=function(l,u){var c=[][l];return!!c&&s(function(){c.call(null,u||function(){throw 1},1)})}}),a691:(function(i,o){var a=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:a)(l)}}),ab13:(function(i,o,a){var s=a("b622"),l=s("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}}),ac1f:(function(i,o,a){var s=a("23e7"),l=a("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})}),ad6d:(function(i,o,a){var s=a("825a");i.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}}),ae40:(function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("5135"),c=Object.defineProperty,f={},h=function(d){throw d};i.exports=function(d,p){if(u(f,d))return f[d];p||(p={});var g=[][d],y=u(p,"ACCESSORS")?p.ACCESSORS:!1,m=u(p,0)?p[0]:h,b=u(p,1)?p[1]:void 0;return f[d]=!!g&&!l(function(){if(y&&!s)return!0;var w={length:-1};y?c(w,1,{enumerable:!0,get:h}):w[1]=1,g.call(w,m,b)})}}),ae93:(function(i,o,a){var s=a("e163"),l=a("9112"),u=a("5135"),c=a("b622"),f=a("c430"),h=c("iterator"),d=!1,p=function(){return this},g,y,m;[].keys&&(m=[].keys(),"next"in m?(y=s(s(m)),y!==Object.prototype&&(g=y)):d=!0),g==null&&(g={}),!f&&!u(g,h)&&l(g,h,p),i.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:d}}),b041:(function(i,o,a){var s=a("00ee"),l=a("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}}),b0c0:(function(i,o,a){var s=a("83ab"),l=a("9bf2").f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,h="name";s&&!(h in u)&&l(u,h,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})}),b622:(function(i,o,a){var s=a("da84"),l=a("5692"),u=a("5135"),c=a("90e3"),f=a("4930"),h=a("fdbf"),d=l("wks"),p=s.Symbol,g=h?p:p&&p.withoutSetter||c;i.exports=function(y){return u(d,y)||(f&&u(p,y)?d[y]=p[y]:d[y]=g("Symbol."+y)),d[y]}}),b64b:(function(i,o,a){var s=a("23e7"),l=a("7b0b"),u=a("df75"),c=a("d039"),f=c(function(){u(1)});s({target:"Object",stat:!0,forced:f},{keys:function(d){return u(l(d))}})}),b727:(function(i,o,a){var s=a("0366"),l=a("44ad"),u=a("7b0b"),c=a("50c4"),f=a("65f0"),h=[].push,d=function(p){var g=p==1,y=p==2,m=p==3,b=p==4,w=p==6,S=p==5||w;return function(C,T,E,P){for(var I=u(C),D=l(I),O=s(T,E,3),N=c(D.length),M=0,k=P||f,V=g?k(C,N):y?k(C,0):void 0,B,U;N>M;M++)if((S||M in D)&&(B=D[M],U=O(B,M,I),p)){if(g)V[M]=U;else if(U)switch(p){case 3:return!0;case 5:return B;case 6:return M;case 2:h.call(V,B)}else if(b)return!1}return w?-1:m||b?b:V}};i.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6)}}),c04e:(function(i,o,a){var s=a("861d");i.exports=function(l,u){if(!s(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!s(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}}),c430:(function(i,o){i.exports=!1}),c6b6:(function(i,o){var a={}.toString;i.exports=function(s){return a.call(s).slice(8,-1)}}),c6cd:(function(i,o,a){var s=a("da84"),l=a("ce4e"),u="__core-js_shared__",c=s[u]||l(u,{});i.exports=c}),c740:(function(i,o,a){var s=a("23e7"),l=a("b727").findIndex,u=a("44d2"),c=a("ae40"),f="findIndex",h=!0,d=c(f);f in[]&&Array(1)[f](function(){h=!1}),s({target:"Array",proto:!0,forced:h||!d},{findIndex:function(g){return l(this,g,arguments.length>1?arguments[1]:void 0)}}),u(f)}),c8ba:(function(i,o){var a;a=(function(){return this})();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}i.exports=a}),c975:(function(i,o,a){var s=a("23e7"),l=a("4d64").indexOf,u=a("a640"),c=a("ae40"),f=[].indexOf,h=!!f&&1/[1].indexOf(1,-0)<0,d=u("indexOf"),p=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:h||!d||!p},{indexOf:function(y){return h?f.apply(this,arguments)||0:l(this,y,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(i,o,a){var s=a("5135"),l=a("fc6a"),u=a("4d64").indexOf,c=a("d012");i.exports=function(f,h){var d=l(f),p=0,g=[],y;for(y in d)!s(c,y)&&s(d,y)&&g.push(y);for(;h.length>p;)s(d,y=h[p++])&&(~u(g,y)||g.push(y));return g}}),caad:(function(i,o,a){var s=a("23e7"),l=a("4d64").includes,u=a("44d2"),c=a("ae40"),f=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}}),u("includes")}),cc12:(function(i,o,a){var s=a("da84"),l=a("861d"),u=s.document,c=l(u)&&l(u.createElement);i.exports=function(f){return c?u.createElement(f):{}}}),ce4e:(function(i,o,a){var s=a("da84"),l=a("9112");i.exports=function(u,c){try{l(s,u,c)}catch{s[u]=c}return c}}),d012:(function(i,o){i.exports={}}),d039:(function(i,o){i.exports=function(a){try{return!!a()}catch{return!0}}}),d066:(function(i,o,a){var s=a("428f"),l=a("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,f){return arguments.length<2?u(s[c])||u(l[c]):s[c]&&s[c][f]||l[c]&&l[c][f]}}),d1e7:(function(i,o,a){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);o.f=u?function(f){var h=l(this,f);return!!h&&h.enumerable}:s}),d28b:(function(i,o,a){var s=a("746f");s("iterator")}),d2bb:(function(i,o,a){var s=a("825a"),l=a("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(d,p){return s(d),l(p),u?f.call(d,p):d.__proto__=p,d}})():void 0)}),d3b7:(function(i,o,a){var s=a("00ee"),l=a("6eeb"),u=a("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})}),d44e:(function(i,o,a){var s=a("9bf2").f,l=a("5135"),u=a("b622"),c=u("toStringTag");i.exports=function(f,h,d){f&&!l(f=d?f:f.prototype,c)&&s(f,c,{configurable:!0,value:h})}}),d58f:(function(i,o,a){var s=a("1c0b"),l=a("7b0b"),u=a("44ad"),c=a("50c4"),f=function(h){return function(d,p,g,y){s(p);var m=l(d),b=u(m),w=c(m.length),S=h?w-1:0,C=h?-1:1;if(g<2)for(;;){if(S in b){y=b[S],S+=C;break}if(S+=C,h?S<0:w<=S)throw TypeError("Reduce of empty array with no initial value")}for(;h?S>=0:w>S;S+=C)S in b&&(y=p(y,b[S],S,m));return y}};i.exports={left:f(!1),right:f(!0)}}),d784:(function(i,o,a){a("ac1f");var s=a("6eeb"),l=a("d039"),u=a("b622"),c=a("9263"),f=a("9112"),h=u("species"),d=!l(function(){var b=/./;return b.exec=function(){var w=[];return w.groups={a:"7"},w},"".replace(b,"$<a>")!=="7"}),p=(function(){return"a".replace(/./,"$0")==="$0"})(),g=u("replace"),y=(function(){return/./[g]?/./[g]("a","$0")==="":!1})(),m=!l(function(){var b=/(?:)/,w=b.exec;b.exec=function(){return w.apply(this,arguments)};var S="ab".split(b);return S.length!==2||S[0]!=="a"||S[1]!=="b"});i.exports=function(b,w,S,C){var T=u(b),E=!l(function(){var M={};return M[T]=function(){return 7},""[b](M)!=7}),P=E&&!l(function(){var M=!1,k=/a/;return b==="split"&&(k={},k.constructor={},k.constructor[h]=function(){return k},k.flags="",k[T]=/./[T]),k.exec=function(){return M=!0,null},k[T](""),!M});if(!E||!P||b==="replace"&&!(d&&p&&!y)||b==="split"&&!m){var I=/./[T],D=S(T,""[b],function(M,k,V,B,U){return k.exec===c?E&&!U?{done:!0,value:I.call(k,V,B)}:{done:!0,value:M.call(V,k,B)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),O=D[0],N=D[1];s(String.prototype,b,O),s(RegExp.prototype,T,w==2?function(M,k){return N.call(M,this,k)}:function(M){return N.call(M,this)})}C&&f(RegExp.prototype[T],"sham",!0)}}),d81d:(function(i,o,a){var s=a("23e7"),l=a("b727").map,u=a("1dde"),c=a("ae40"),f=u("map"),h=c("map");s({target:"Array",proto:!0,forced:!f||!h},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(i,o,a){(function(s){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,a("c8ba"))}),dbb4:(function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("56ef"),c=a("fc6a"),f=a("06cf"),h=a("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var g=c(p),y=f.f,m=u(g),b={},w=0,S,C;m.length>w;)C=y(g,S=m[w++]),C!==void 0&&h(b,S,C);return b}})}),dbf1:(function(i,o,a){(function(s){a.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,a("c8ba"))}),ddb0:(function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("e260"),c=a("9112"),f=a("b622"),h=f("iterator"),d=f("toStringTag"),p=u.values;for(var g in l){var y=s[g],m=y&&y.prototype;if(m){if(m[h]!==p)try{c(m,h,p)}catch{m[h]=p}if(m[d]||c(m,d,g),l[g]){for(var b in u)if(m[b]!==u[b])try{c(m,b,u[b])}catch{m[b]=u[b]}}}}}),df75:(function(i,o,a){var s=a("ca84"),l=a("7839");i.exports=Object.keys||function(c){return s(c,l)}}),e01a:(function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("da84"),c=a("5135"),f=a("861d"),h=a("9bf2").f,d=a("e893"),p=u.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var g={},y=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),E=this instanceof y?new p(T):T===void 0?p():p(T);return T===""&&(g[E]=!0),E};d(y,p);var m=y.prototype=p.prototype;m.constructor=y;var b=m.toString,w=String(p("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;h(m,"description",{configurable:!0,get:function(){var T=f(this)?this.valueOf():this,E=b.call(T);if(c(g,T))return"";var P=w?E.slice(7,-1):E.replace(S,"$1");return P===""?void 0:P}}),s({global:!0,forced:!0},{Symbol:y})}}),e163:(function(i,o,a){var s=a("5135"),l=a("7b0b"),u=a("f772"),c=a("e177"),f=u("IE_PROTO"),h=Object.prototype;i.exports=c?Object.getPrototypeOf:function(d){return d=l(d),s(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?h:null}}),e177:(function(i,o,a){var s=a("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})}),e260:(function(i,o,a){var s=a("fc6a"),l=a("44d2"),u=a("3f8c"),c=a("69f3"),f=a("7dd0"),h="Array Iterator",d=c.set,p=c.getterFor(h);i.exports=f(Array,"Array",function(g,y){d(this,{type:h,target:s(g),index:0,kind:y})},function(){var g=p(this),y=g.target,m=g.kind,b=g.index++;return!y||b>=y.length?(g.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:b,done:!1}:m=="values"?{value:y[b],done:!1}:{value:[b,y[b]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")}),e439:(function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("fc6a"),c=a("06cf").f,f=a("83ab"),h=l(function(){c(1)}),d=!f||h;s({target:"Object",stat:!0,forced:d,sham:!f},{getOwnPropertyDescriptor:function(g,y){return c(u(g),y)}})}),e538:(function(i,o,a){var s=a("b622");o.f=s}),e893:(function(i,o,a){var s=a("5135"),l=a("56ef"),u=a("06cf"),c=a("9bf2");i.exports=function(f,h){for(var d=l(h),p=c.f,g=u.f,y=0;y<d.length;y++){var m=d[y];s(f,m)||p(f,m,g(h,m))}}}),e8b5:(function(i,o,a){var s=a("c6b6");i.exports=Array.isArray||function(u){return s(u)=="Array"}}),e95a:(function(i,o,a){var s=a("b622"),l=a("3f8c"),u=s("iterator"),c=Array.prototype;i.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}}),f5df:(function(i,o,a){var s=a("00ee"),l=a("c6b6"),u=a("b622"),c=u("toStringTag"),f=l((function(){return arguments})())=="Arguments",h=function(d,p){try{return d[p]}catch{}};i.exports=s?l:function(d){var p,g,y;return d===void 0?"Undefined":d===null?"Null":typeof(g=h(p=Object(d),c))=="string"?g:f?l(p):(y=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":y}}),f772:(function(i,o,a){var s=a("5692"),l=a("90e3"),u=s("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}}),fb15:(function(i,o,a){if(a.r(o),typeof window<"u"){var s=window.document.currentScript;{var l=a("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(a.p=u[1])}a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("159b"),a("a4d3"),a("e439"),a("dbb4"),a("b64b");function c(se,ce,ye){return ce in se?Object.defineProperty(se,ce,{value:ye,enumerable:!0,configurable:!0,writable:!0}):se[ce]=ye,se}function f(se,ce){var ye=Object.keys(se);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols(se);ce&&(De=De.filter(function(Xe){return Object.getOwnPropertyDescriptor(se,Xe).enumerable})),ye.push.apply(ye,De)}return ye}function h(se){for(var ce=1;ce<arguments.length;ce++){var ye=arguments[ce]!=null?arguments[ce]:{};ce%2?f(Object(ye),!0).forEach(function(De){c(se,De,ye[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties(se,Object.getOwnPropertyDescriptors(ye)):f(Object(ye)).forEach(function(De){Object.defineProperty(se,De,Object.getOwnPropertyDescriptor(ye,De))})}return se}function d(se){if(Array.isArray(se))return se}a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");function p(se,ce){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(se)))){var ye=[],De=!0,Xe=!1,ue=void 0;try{for(var Le=se[Symbol.iterator](),ze;!(De=(ze=Le.next()).done)&&(ye.push(ze.value),!(ce&&ye.length===ce));De=!0);}catch(lt){Xe=!0,ue=lt}finally{try{!De&&Le.return!=null&&Le.return()}finally{if(Xe)throw ue}}return ye}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function g(se,ce){(ce==null||ce>se.length)&&(ce=se.length);for(var ye=0,De=new Array(ce);ye<ce;ye++)De[ye]=se[ye];return De}function y(se,ce){if(se){if(typeof se=="string")return g(se,ce);var ye=Object.prototype.toString.call(se).slice(8,-1);if(ye==="Object"&&se.constructor&&(ye=se.constructor.name),ye==="Map"||ye==="Set")return Array.from(se);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return g(se,ce)}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(se,ce){return d(se)||p(se,ce)||y(se,ce)||m()}function w(se){if(Array.isArray(se))return g(se)}function S(se){if(typeof Symbol<"u"&&Symbol.iterator in Object(se))return Array.from(se)}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(se){return w(se)||S(se)||y(se)||C()}var E=a("a352"),P=a.n(E);function I(se){se.parentElement!==null&&se.parentElement.removeChild(se)}function D(se,ce,ye){var De=ye===0?se.children[0]:se.children[ye-1].nextSibling;se.insertBefore(ce,De)}var O=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function N(se){var ce=Object.create(null);return function(De){var Xe=ce[De];return Xe||(ce[De]=se(De))}}var M=/-(\w)/g,k=N(function(se){return se.replace(M,function(ce,ye){return ye.toUpperCase()})});a("5db7"),a("73d9");var V=["Start","Add","Remove","Update","End"],B=["Choose","Unchoose","Sort","Filter","Clone"],U=["Move"],$=[U,V,B].flatMap(function(se){return se}).map(function(se){return"on".concat(se)}),J={manage:U,manageAndEmit:V,emit:B};function ae(se){return $.indexOf(se)!==-1}a("caad"),a("2ca0");var ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function _e(se){return ne.includes(se)}function me(se){return["transition-group","TransitionGroup"].includes(se)}function Me(se){return["id","class","role","style"].includes(se)||se.startsWith("data-")||se.startsWith("aria-")||se.startsWith("on")}function Re(se){return se.reduce(function(ce,ye){var De=b(ye,2),Xe=De[0],ue=De[1];return ce[Xe]=ue,ce},{})}function ke(se){var ce=se.$attrs,ye=se.componentData,De=ye===void 0?{}:ye,Xe=Re(Object.entries(ce).filter(function(ue){var Le=b(ue,2),ze=Le[0];return Le[1],Me(ze)}));return h(h({},Xe),De)}function oe(se){var ce=se.$attrs,ye=se.callBackBuilder,De=Re(Ee(ce));Object.entries(ye).forEach(function(ue){var Le=b(ue,2),ze=Le[0],lt=Le[1];J[ze].forEach(function(Ke){De["on".concat(Ke)]=lt(Ke)})});var Xe="[data-draggable]".concat(De.draggable||"");return h(h({},De),{},{draggable:Xe})}function Ee(se){return Object.entries(se).filter(function(ce){var ye=b(ce,2),De=ye[0];return ye[1],!Me(De)}).map(function(ce){var ye=b(ce,2),De=ye[0],Xe=ye[1];return[k(De),Xe]}).filter(function(ce){var ye=b(ce,2),De=ye[0];return ye[1],!ae(De)})}a("c740");function we(se,ce){if(!(se instanceof ce))throw new TypeError("Cannot call a class as a function")}function Ae(se,ce){for(var ye=0;ye<ce.length;ye++){var De=ce[ye];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty(se,De.key,De)}}function Oe(se,ce,ye){return ce&&Ae(se.prototype,ce),se}var Ue=function(ce){var ye=ce.el;return ye},Y=function(ce,ye){return ce.__draggable_context=ye},X=function(ce){return ce.__draggable_context},de=(function(){function se(ce){var ye=ce.nodes,De=ye.header,Xe=ye.default,ue=ye.footer,Le=ce.root,ze=ce.realList;we(this,se),this.defaultNodes=Xe,this.children=[].concat(T(De),T(Xe),T(ue)),this.externalComponent=Le.externalComponent,this.rootTransition=Le.transition,this.tag=Le.tag,this.realList=ze}return Oe(se,[{key:"render",value:function(ye,De){var Xe=this.tag,ue=this.children,Le=this._isRootComponent,ze=Le?{default:function(){return ue}}:ue;return ye(Xe,De,ze)}},{key:"updated",value:function(){var ye=this.defaultNodes,De=this.realList;ye.forEach(function(Xe,ue){Y(Ue(Xe),{element:De[ue],index:ue})})}},{key:"getUnderlyingVm",value:function(ye){return X(ye)}},{key:"getVmIndexFromDomIndex",value:function(ye,De){var Xe=this.defaultNodes,ue=Xe.length,Le=De.children,ze=Le.item(ye);if(ze===null)return ue;var lt=X(ze);if(lt)return lt.index;if(ue===0)return 0;var Ke=Ue(Xe[0]),qe=T(Le).findIndex(function(ut){return ut===Ke});return ye<qe?0:ue}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),se})(),Ie=a("8bbf");function be(se,ce){var ye=se[ce];return ye?ye():[]}function W(se){var ce=se.$slots,ye=se.realList,De=se.getKey,Xe=ye||[],ue=["header","footer"].map(function(ut){return be(ce,ut)}),Le=b(ue,2),ze=Le[0],lt=Le[1],Ke=ce.item;if(!Ke)throw new Error("draggable element must have an item slot");var qe=Xe.flatMap(function(ut,Nt){return Ke({element:ut,index:Nt}).map(function(Ut){return Ut.key=De(ut),Ut.props=h(h({},Ut.props||{}),{},{"data-draggable":!0}),Ut})});if(qe.length!==Xe.length)throw new Error("Item slot must have only one child");return{header:ze,footer:lt,default:qe}}function Z(se){var ce=me(se),ye=!_e(se)&&!ce;return{transition:ce,externalComponent:ye,tag:ye?Object(Ie.resolveComponent)(se):ce?Ie.TransitionGroup:se}}function re(se){var ce=se.$slots,ye=se.tag,De=se.realList,Xe=se.getKey,ue=W({$slots:ce,realList:De,getKey:Xe}),Le=Z(ye);return new de({nodes:ue,root:Le,realList:De})}function pe(se,ce){var ye=this;Object(Ie.nextTick)(function(){return ye.$emit(se.toLowerCase(),ce)})}function Ce(se){var ce=this;return function(ye,De){if(ce.realList!==null)return ce["onDrag".concat(se)](ye,De)}}function $e(se){var ce=this,ye=Ce.call(this,se);return function(De,Xe){ye.call(ce,De,Xe),pe.call(ce,se,De)}}var te=null,ve={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(ce){return ce}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},je=["update:modelValue","change"].concat(T([].concat(T(J.manageAndEmit),T(J.emit)).map(function(se){return se.toLowerCase()}))),nt=Object(Ie.defineComponent)({name:"draggable",inheritAttrs:!1,props:ve,emits:je,data:function(){return{error:!1}},render:function(){try{this.error=!1;var ce=this.$slots,ye=this.$attrs,De=this.tag,Xe=this.componentData,ue=this.realList,Le=this.getKey,ze=re({$slots:ce,tag:De,realList:ue,getKey:Le});this.componentStructure=ze;var lt=ke({$attrs:ye,componentData:Xe});return ze.render(Ie.h,lt)}catch(Ke){return this.error=!0,Object(Ie.h)("pre",{style:{color:"red"}},Ke.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&O.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var ce=this;if(!this.error){var ye=this.$attrs,De=this.$el,Xe=this.componentStructure;Xe.updated();var ue=oe({$attrs:ye,callBackBuilder:{manageAndEmit:function(lt){return $e.call(ce,lt)},emit:function(lt){return pe.bind(ce,lt)},manage:function(lt){return Ce.call(ce,lt)}}}),Le=De.nodeType===1?De:De.parentElement;this._sortable=new P.a(Le,ue),this.targetDomElement=Le,Le.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var ce=this.list;return ce||this.modelValue},getKey:function(){var ce=this.itemKey;return typeof ce=="function"?ce:function(ye){return ye[ce]}}},watch:{$attrs:{handler:function(ce){var ye=this._sortable;ye&&Ee(ce).forEach(function(De){var Xe=b(De,2),ue=Xe[0],Le=Xe[1];ye.option(ue,Le)})},deep:!0}},methods:{getUnderlyingVm:function(ce){return this.componentStructure.getUnderlyingVm(ce)||null},getUnderlyingPotencialDraggableComponent:function(ce){return ce.__draggable_component__},emitChanges:function(ce){var ye=this;Object(Ie.nextTick)(function(){return ye.$emit("change",ce)})},alterList:function(ce){if(this.list){ce(this.list);return}var ye=T(this.modelValue);ce(ye),this.$emit("update:modelValue",ye)},spliceList:function(){var ce=arguments,ye=function(Xe){return Xe.splice.apply(Xe,T(ce))};this.alterList(ye)},updatePosition:function(ce,ye){var De=function(ue){return ue.splice(ye,0,ue.splice(ce,1)[0])};this.alterList(De)},getRelatedContextFromMoveEvent:function(ce){var ye=ce.to,De=ce.related,Xe=this.getUnderlyingPotencialDraggableComponent(ye);if(!Xe)return{component:Xe};var ue=Xe.realList,Le={list:ue,component:Xe};if(ye!==De&&ue){var ze=Xe.getUnderlyingVm(De)||{};return h(h({},ze),Le)}return Le},getVmIndexFromDomIndex:function(ce){return this.componentStructure.getVmIndexFromDomIndex(ce,this.targetDomElement)},onDragStart:function(ce){this.context=this.getUnderlyingVm(ce.item),ce.item._underlying_vm_=this.clone(this.context.element),te=ce.item},onDragAdd:function(ce){var ye=ce.item._underlying_vm_;if(ye!==void 0){I(ce.item);var De=this.getVmIndexFromDomIndex(ce.newIndex);this.spliceList(De,0,ye);var Xe={element:ye,newIndex:De};this.emitChanges({added:Xe})}},onDragRemove:function(ce){if(D(this.$el,ce.item,ce.oldIndex),ce.pullMode==="clone"){I(ce.clone);return}var ye=this.context,De=ye.index,Xe=ye.element;this.spliceList(De,1);var ue={element:Xe,oldIndex:De};this.emitChanges({removed:ue})},onDragUpdate:function(ce){I(ce.item),D(ce.from,ce.item,ce.oldIndex);var ye=this.context.index,De=this.getVmIndexFromDomIndex(ce.newIndex);this.updatePosition(ye,De);var Xe={element:this.context.element,oldIndex:ye,newIndex:De};this.emitChanges({moved:Xe})},computeFutureIndex:function(ce,ye){if(!ce.element)return 0;var De=T(ye.to.children).filter(function(ze){return ze.style.display!=="none"}),Xe=De.indexOf(ye.related),ue=ce.component.getVmIndexFromDomIndex(Xe),Le=De.indexOf(te)!==-1;return Le||!ye.willInsertAfter?ue:ue+1},onDragMove:function(ce,ye){var De=this.move,Xe=this.realList;if(!De||!Xe)return!0;var ue=this.getRelatedContextFromMoveEvent(ce),Le=this.computeFutureIndex(ue,ce),ze=h(h({},this.context),{},{futureIndex:Le}),lt=h(h({},ce),{},{relatedContext:ue,draggedContext:ze});return De(lt,ye)},onDragEnd:function(){te=null}}}),Tt=nt;o.default=Tt}),fb6a:(function(i,o,a){var s=a("23e7"),l=a("861d"),u=a("e8b5"),c=a("23cb"),f=a("50c4"),h=a("fc6a"),d=a("8418"),p=a("b622"),g=a("1dde"),y=a("ae40"),m=g("slice"),b=y("slice",{ACCESSORS:!0,0:0,1:2}),w=p("species"),S=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!m||!b},{slice:function(E,P){var I=h(this),D=f(I.length),O=c(E,D),N=c(P===void 0?D:P,D),M,k,V;if(u(I)&&(M=I.constructor,typeof M=="function"&&(M===Array||u(M.prototype))?M=void 0:l(M)&&(M=M[w],M===null&&(M=void 0)),M===Array||M===void 0))return S.call(I,O,N);for(k=new(M===void 0?Array:M)(C(N-O,0)),V=0;O<N;O++,V++)O in I&&d(k,V,I[O]);return k.length=V,k}})}),fc6a:(function(i,o,a){var s=a("44ad"),l=a("1d80");i.exports=function(u){return s(l(u))}}),fdbc:(function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}}),fdbf:(function(i,o,a){var s=a("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"})}).default})})(_b)),_b.exports}var Pge=Age();const zp=Wy(Pge),Rge={class:"flex flex-col gap-3"},Mge={class:"flex items-center gap-2"},Dge={class:"relative flex flex-col rounded-sm"},Oge=["onClick"],Lge={class:"bg-neutral text-neutral-content flex h-8 cursor-move items-center rounded-sm px-2 select-none"},kge={class:"bg-base-200 text-base-content flex h-8 cursor-move items-center rounded-sm px-2 select-none"},Nge=Ze({__name:"ConnectionCardSettings",setup(e){const t=Te([]),n=()=>{t.value=Object.values(We).filter(o=>!xa.value.flat().includes(o))};n();const r=()=>{xa.value=[...xa.value,t.value[0]?[t.value[0]]:[]],n()},i=o=>{xa.value.splice(o,1),n()};return(o,a)=>(H(),K("div",Rge,[R("span",null,q(o.$t("customCardLines")),1),R("div",Mge,[R("button",{class:"btn btn-sm",onClick:a[0]||(a[0]=s=>(xa.value=L(Uie),n()))},q(o.$t("simpleCardPreset")),1),R("button",{class:"btn btn-sm",onClick:a[1]||(a[1]=s=>(xa.value=L(yH),n()))},q(o.$t("detailedCardPreset")),1),a[3]||(a[3]=R("div",{class:"flex-1"},null,-1)),R("button",{class:"btn btn-circle btn-neutral btn-sm",onClick:r},[z(L(rv),{class:"h-4 w-4"})])]),R("div",Dge,[(H(!0),K(Ve,null,Yt(L(xa),(s,l)=>(H(),K("div",{key:l,class:ct(`flex items-center gap-2 p-2 ${l%2===0?"bg-base-200":"bg-base-300"}`)},[L(xa).length>1?(H(),K("button",{key:0,class:"btn btn-circle btn-neutral btn-sm",onClick:u=>i(l)},[z(L(zy),{class:"h-4 w-4"})],8,Oge)):Ge("",!0),z(L(zp),{class:"flex flex-1 flex-wrap items-center gap-2",modelValue:L(xa)[l],"onUpdate:modelValue":u=>L(xa)[l]=u,animation:150,group:"list",ghostClass:"ghost","item-key":u=>u},{item:gn(({element:u})=>[R("div",Lge,q(o.$t(u)),1)]),_:1},8,["modelValue","onUpdate:modelValue","item-key"])],2))),128)),z(L(zp),{class:"flex flex-1 flex-wrap gap-2 p-2",modelValue:t.value,"onUpdate:modelValue":a[2]||(a[2]=s=>t.value=s),animation:150,group:"list",ghostClass:"ghost","item-key":s=>s},{item:gn(({element:s})=>[R("div",kge,q(o.$t(s)),1)]),_:1},8,["modelValue","item-key"])])]))}}),Fge={class:"flex gap-4 rounded-sm"},$ge={class:"bg-neutral text-neutral-content flex h-8 cursor-move items-center justify-center rounded-sm px-2 select-none"},Bge={class:"bg-base-200 text-base-content flex h-8 cursor-move items-center justify-center rounded-sm px-2 select-none"},Uge=Ze({__name:"TableSettings",setup(e){const t=Te(Object.values(We).filter(n=>!Yh.value.includes(n)));return(n,r)=>(H(),K(Ve,null,[R("div",null,q(n.$t("customTableColumns")),1),R("div",Fge,[z(L(zp),{class:"bg-base-200 flex flex-1 flex-col gap-2 p-4",modelValue:L(Yh),"onUpdate:modelValue":r[0]||(r[0]=i=>rt(Yh)?Yh.value=i:null),group:"list",animation:150,"item-key":i=>i},{item:gn(({element:i})=>[R("div",$ge,q(n.$t(i)),1)]),_:1},8,["modelValue","item-key"]),z(L(zp),{class:"flex flex-1 flex-col gap-2 p-4",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=i=>t.value=i),group:"list",animation:150,"item-key":i=>i},{item:gn(({element:i})=>[R("div",Bge,q(n.$t(i)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),Vge={class:"tabs-box tabs tabs-xs"},Hge=["onClick"],CE=Ze({__name:"ConnectionTabs",props:{horizental:{type:Boolean,default:!0}},setup(e){const t=ge(()=>Id.value.length!==cd.value.length?`${Id.value.length} / ${cd.value.length}`:cd.value.length);return(n,r)=>(H(),K("div",Vge,[(H(!0),K(Ve,null,Yt(Object.values(L(zd)),i=>(H(),K("a",{key:i,role:"tab",class:ct(L(Ui)("tab",L(bc)===i&&"tab-active",!e.horizental&&"flex-1")),onClick:()=>bc.value=i},[Be(q(n.$t(i))+" ",1),L(bc)===i?(H(),K(Ve,{key:0},[Be(" ("+q(t.value)+") ",1)],64)):Ge("",!0)],10,Hge))),128))]))}}),zge={value:null},Gge=["value"],EE=Ze({__name:"SourceIPFilter",setup(e){const t=ge(()=>xr.uniq(cd.value.map(r=>r.metadata.sourceIP)).sort((r,i)=>{if(!uc.isValid(r))return-1;if(!uc.isValid(i))return 1;const o=uc.parse(r),a=uc.parse(i),s=o.kind()==="ipv4",l=a.kind()==="ipv4";if(!s&&l)return 1;if(!l&&s)return-1;const u=o.toByteArray(),c=a.toByteArray();for(let f=0;f<u.length;f++)if(u[f]!==c[f])return u[f]-c[f];return 0})),n=Te([]);return mt(t,(r,i)=>{if(!xr.isEqual(r,i)&&(n.value=[],t.value.forEach(o=>{const a=xS(o),s=n.value.findIndex(l=>l.label===a);s===-1?n.value.push({label:a,value:[o]}):n.value[s].value.push(o)}),Us.value!==null)){const o=xS(Us.value[0]),a=n.value.find(s=>s.label===o);a?xr.isEqual(a.value,Us.value)||(Us.value=a.value):n.value.unshift({label:o,value:Us.value})}},{immediate:!0}),(r,i)=>tt((H(),K("select",{class:"join-item select select-sm","onUpdate:modelValue":i[0]||(i[0]=o=>rt(Us)?Us.value=o:null)},[R("option",zge,q(r.$t("allSourceIP")),1),(H(!0),K(Ve,null,Yt(n.value,o=>(H(),K("option",{key:o.value.join(","),value:o.value},q(o.label),9,Gge))),128))],512)),[[zn,L(Us)]])}}),Wge=()=>{Id.value.length===cd.value.length?Cke():Id.value.forEach(e=>{mv(e.id)})},jge=Ze({name:"ConnectionCtrl",components:{TextInput:Tn,ConnectionTabs:CE,SourceIPFilter:EE},props:{isLargeCtrlsBar:{type:Boolean,default:!0}},setup(e){const{t}=qr(),n=Te(!1),{showTip:r}=uo();return()=>{const i=z("div",{class:"flex w-full items-center gap-1 text-sm lg:w-auto"},[z("span",{class:"shrink-0"},[t("sortBy")]),z("div",{class:"join flex-1 max-lg:w-0"},[tt(z("select",{class:"join-item select select-sm flex-1 max-lg:w-0","onUpdate:modelValue":l=>BI.value=l},[Object.values(qi).map(l=>z("option",{key:l,value:l},[t(l)||l]))]),[[zn,BI.value]]),z("button",{class:"btn join-item btn-sm",onClick:()=>{pb.value=pb.value===Vf.ASC?Vf.DESC:Vf.ASC}},[pb.value===Vf.ASC?z(Vy,{class:"h-4 w-4"},null):z(Yw,{class:"h-4 w-4"},null)])])]),o=z(Ve,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[z(Zw,{class:"h-4 w-4"},null)]),z(dl,{modelValue:n.value,"onUpdate:modelValue":l=>n.value=l},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[z("span",{class:"shrink-0"},[t("hideConnectionRegex")]),z(Tn,{class:"w-32 max-w-64 flex-1",modelValue:SS.value,"onUpdate:modelValue":l=>SS.value=l},null)]),z("div",{class:"flex items-center gap-2"},[t("hideConnection"),tt(z("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":l=>UI.value=l},null),[[en,UI.value]]),z("div",{onMouseenter:l=>r(l,t("hideConnectionTip"),{appendTo:"parent"})},[z(ss,{class:"h-4 w-4"},null)])]),ls.value?z(Nge,null,null):z(Uge,null,null)])]})]),a=z(Tn,{modelValue:wS.value,"onUpdate:modelValue":l=>wS.value=l,placeholder:`${t("search")} | ${t("searchMultiple")}`,clearable:!0,"before-close":!0,class:e.isLargeCtrlsBar?"w-32 max-w-80 flex-1":"w-full"},null),s=z(Ve,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>{vb.value=!vb.value}},[vb.value?z(pH,{class:"h-4 w-4"},null):z(dH,{class:"h-4 w-4"},null)]),z("button",{class:"btn btn-circle btn-sm",onClick:Wge},[z(nu,{class:"h-4 w-4"},null)])]);return e.isLargeCtrlsBar?z("div",{class:"flex items-center gap-2 p-2"},[z(CE,null,null),ls.value&&i,z(EE,{class:"w-40"},null),z("div",{class:"flex flex-1"},[a]),o,s]):z("div",{class:"flex flex-wrap items-center gap-2 p-2"},[z("div",{class:"flex w-full items-center justify-between gap-2"},[z(CE,null,null),!ls.value&&z("div",{class:"flex items-center gap-1"},[o,s])]),ls.value&&z("div",{class:"flex w-full items-center gap-2"},[i,o,s]),z("div",{class:"join w-full"},[z(EE,{class:"w-40"},null),a])])}}}),Zl=Te([]),mp=Te(""),Kh=Te(""),Mb=Te(!1),bA=Je("config/log-level",Qi.Info);let F3,HS=[];const Yge=xr.throttle(()=>{Zl.value=HS.concat(Zl.value).slice(0,TI.value),HS=[]},500),SA=[],Xge=()=>{SA.length=0;for(const{key:e,label:t,scope:n}of ri.value){if(n&&!n.includes(Cr.value?.uuid)||e.startsWith("/"))continue;const r=new RegExp(e+":","ig");SA.push([r,`${e} (${t}) :`])}};mt(()=>[ri.value,Cr.value],()=>{Xge()},{immediate:!0,deep:!0});const AG=()=>{F3?.(),Zl.value=[],HS=[];let e=1;const t=kke({level:bA.value}),n=mt(t.data,r=>{if(r){if(Mb.value){e++;return}for(const[i,o]of SA)r.payload=r.payload.replace(i,o);HS.unshift({...r,time:ui().format("HH:mm:ss"),seq:e++}),Yge()}});F3=()=>{n(),t.close()}},Kge=Ze({props:{isLargeCtrlsBar:{type:Boolean,default:!0}},setup(e){const{t}=qr(),n=Te(!1),r=xr.debounce(s=>{if(!s)return;const l=of.value.indexOf(s);l!==-1&&of.value.splice(l,1),of.value.unshift(s),of.value.length>5&&of.value.pop()},1500);mt(mp,r);const i=ge(()=>oa.value?Object.values(Qi):[Qi.Debug,Qi.Info,Qi.Warning,Qi.Error,Qi.Silent]),o=ge(()=>{const s=[],l=[];if(oa.value)for(const u of Zl.value){const c=u.payload.startsWith("[")?u.payload.indexOf("]")+2:0,f=u.payload.indexOf(":",c),h=u.payload.slice(c,f+1);s.includes(h)||s.push(h),l.includes(u.type)||l.push(u.type)}else for(const u of Zl.value){const c=u.payload.indexOf(" "),f=c===-1?u.payload:u.payload.slice(0,c);s.includes(f)||s.push(f),l.includes(u.type)||l.push(u.type)}return{levels:l.sort((u,c)=>{const f=i.value.indexOf(u),h=i.value.indexOf(c);return f-h}),types:s.sort()}}),a=()=>{const s=new Blob([Zl.value.map(c=>[c.seq.toString().padEnd(5," "),c.time,c.type.padEnd(7," "),c.payload].join(" ")).join(`
`)],{type:"text/plain"}),l=URL.createObjectURL(s),u=document.createElement("a");u.href=l,u.download=ui().format("YYYY-MM-DD HH-mm-ss")+".log",u.click(),URL.revokeObjectURL(l)};return()=>{const s=tt(z("select",{class:["join-item select select-sm min-w-30"],"onUpdate:modelValue":h=>bA.value=h,onChange:AG},[i.value.map(h=>z("option",{key:h,value:h},[h]))]),[[zn,bA.value]]),l=z(Tn,{modelValue:mp.value,"onUpdate:modelValue":h=>mp.value=h,beforeClose:!0,class:"flex-1",placeholder:`${t("search")} | Regex`,clearable:!0,menus:of.value,menusDeleteable:!0,"onUpdate:menus":h=>of.value=h},null),u=tt(z("select",{class:["join-item select select-sm",e.isLargeCtrlsBar?"w-36":"w-24 max-w-40 flex-1"],"onUpdate:modelValue":h=>Kh.value=h},[z("option",{value:""},[t("all")]),z("optgroup",{label:t("logLevel")},[o.value.levels.map(h=>z("option",{key:h,value:h},[h]))]),z("optgroup",{label:t("logType")},[o.value.types.map(h=>z("option",{key:h,value:h},[h]))])]),[[zn,Kh.value]]),c=z(Ve,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[z(Zw,{class:"h-4 w-4"},null)]),z(dl,{modelValue:n.value,"onUpdate:modelValue":h=>n.value=h},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[t("logRetentionLimit"),tt(z("input",{class:"input input-sm w-20",type:"number",max:"9999","onUpdate:modelValue":h=>TI.value=h},null),[[Yr,TI.value]])])])]})]),f=z("div",{class:"flex items-center gap-2"},[z("button",{class:"btn btn-circle btn-sm",onClick:a},[z(lH,{class:"h-4 w-4"},null)]),c,z("button",{class:"btn btn-circle btn-sm",onClick:()=>Mb.value=!Mb.value},[Mb.value?z(pH,{class:"h-4 w-4"},null):z(dH,{class:"h-4 w-4"},null)]),z("button",{class:"btn btn-circle btn-sm",onClick:()=>Zl.value=[]},[z(nu,{class:"h-4 w-4"},null)])]);return e.isLargeCtrlsBar?z("div",{class:"flex items-center justify-between gap-2 p-2"},[z("div",{class:"flex items-center gap-2"},[s,z("div",{class:"join w-96"},[u,l])]),f]):z("div",{class:"flex flex-col gap-2 p-2"},[z("div",{class:"flex w-full justify-between gap-2"},[z("div",{class:"join flex-1"},[s]),f]),z("div",{class:"join"},[u,l])])}}}),ii=Te({port:0,"socks-port":0,"redir-port":0,"tproxy-port":0,"mixed-port":0,"allow-lan":!1,"bind-address":"",mode:"","mode-list":[],modes:[],"log-level":"",ipv6:!1,tun:{enable:!1}}),Px=async()=>{ii.value=(await Eke()).data},Db=async e=>{await Ike(e),Px()},$3=e=>qm.value?e:e.filter(t=>!RO(t)),Zge=()=>xr.isEmpty($n.value)?[]:wo.value===ta.PROVIDER?ou.value.map(e=>e.name):Pg.value?ii.value?.mode.toUpperCase()===ap?[oa.value&&$n.value[om.value]?om.value:ap]:$3(Ac.value):$3([...Ac.value,ap]),PG=Te(!1),wA=Te(!1),bm=ge(()=>{const e=Zge();return wA.value?e:e.slice(0,16)}),qge=Ze({name:"ProxiesCtrl",props:{isLargeCtrlsBar:{type:Boolean,default:!0}},setup(e){const{t}=qr(),n=Te(!1),r=Te(!1),i=Te(!1),o=async()=>{if(!n.value){n.value=!0;try{await Promise.all(ou.value.map(y=>vY(y.name))),await Fo(),n.value=!1}catch{await Fo(),n.value=!1}}},a=ge(()=>ou.value.length>0),s=["direct","rule","global"],l=ge(()=>ii.value?.["mode-list"]||ii.value?.modes||s),u=ge(()=>xr.every(l.value,y=>s.includes(y.toLowerCase()))),c=y=>{const m=y.target.value;Db({mode:m}),oa.value&&ib.value&&cs.value.forEach(b=>{b.rule.includes("clash_mode")&&mv(b.id)})},f=async()=>{if(!r.value){r.value=!0;try{await Aue(),r.value=!1}catch{r.value=!1}}},h=ge(()=>bm.value.some(y=>yS.value[y])),d=()=>{yS.value=Object.fromEntries(bm.value.map(y=>[y,!h.value]))},p=()=>{pp.value=VR(lc.value)},g=ge(()=>Object.values(ta).map(y=>({type:y,count:y===ta.PROXIES?Ac.value.length:ou.value.length})));return()=>{const y=z("div",{role:"tablist",class:"tabs-box tabs tabs-xs"},[g.value.map(({type:P,count:I})=>z("a",{role:"tab",key:P,class:["tab",wo.value===P&&"tab-active"],onClick:()=>wo.value=P},[t(P),Be(" ("),I,Be(")")]))]),m=wo.value===ta.PROVIDER&&z("button",{class:"btn btn-circle btn-sm",onClick:o},[z(nv,{class:["h-4 w-4",n.value&&"animate-spin"]},null)]),b=ii.value&&tt(z("select",{class:["select select-sm inline-block",e.isLargeCtrlsBar?"min-w-40":"min-w-24"],"onUpdate:modelValue":P=>ii.value.mode=P,onChange:c},[l.value.map(P=>z("option",{key:P,value:P},[u.value?t(P.toLowerCase()):P]))]),[[zn,ii.value.mode]]),w=tt(z("select",{class:["select select-sm"],"onUpdate:modelValue":P=>Zm.value=P},[Object.values(Ws).map(P=>z("option",{key:P,value:P},[t(P)]))]),[[zn,Zm.value]]),S=z("button",{class:"btn btn-circle btn-sm",onClick:f},[r.value?z("span",{class:"loading loading-spinner loading-sm"},null):z(Hy,{class:"h-4 w-4"},null)]),C=z("button",{class:["btn btn-circle btn-sm",nm.value&&wo.value===ta.PROXIES&&"max-sm:hidden"],onClick:d},[h.value?z(Kw,{class:"h-4 w-4"},null):z(Xw,{class:"h-4 w-4"},null)]),T=z(Tn,{class:["w-32 flex-1",e.isLargeCtrlsBar&&"max-w-80"],modelValue:TS.value,"onUpdate:modelValue":P=>TS.value=P,placeholder:`${t("search")} | ${t("searchMultiple")}`,clearable:!0},null),E=z(Ve,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>i.value=!0},[z(Zw,{class:"h-4 w-4"},null)]),z(dl,{modelValue:i.value,"onUpdate:modelValue":P=>i.value=P},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[t("sortBy"),w]),WI.value&&z("div",{class:"flex items-center gap-2"},[t("useSmartGroupSort"),tt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":P=>SI.value=P},null),[[en,SI.value]])]),z("div",{class:"flex items-center gap-2"},[t("groupProxiesByProvider"),tt(z("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":P=>_S.value=P},null),[[en,_S.value]])]),z("div",{class:"flex items-center gap-2"},[t("unavailableProxy"),tt(z("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":P=>bI.value=P},null),[[en,bI.value]])]),z("div",{class:"flex items-center gap-2"},[t("manageHiddenGroup"),tt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":P=>qm.value=P},null),[[en,qm.value]])]),z("div",{class:"flex items-center gap-2"},[t("automaticDisconnection"),tt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":P=>ib.value=P},null),[[en,ib.value]])]),z("div",{class:"flex items-center gap-2"},[t("displayFinalOutbound"),tt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":P=>_I.value=P},null),[[en,_I.value]])]),z("div",{class:"flex items-center gap-2"},[t("minProxyCardWidth"),z("div",{class:"join"},[tt(z("input",{class:"input input-sm join-item w-20",type:"number","onUpdate:modelValue":P=>pp.value=P},null),[[Yr,pp.value]]),z("button",{class:"btn join-item btn-sm",onClick:p},[t("reset")])])])])]})]);return e.isLargeCtrlsBar?z("div",{class:"flex gap-2 p-2"},[a.value&&y,b,z("div",{class:"flex flex-1"},[T]),m,E,C,S]):z("div",{class:"flex flex-col gap-2 p-2"},[a.value&&z("div",{class:"flex gap-2"},[y,m]),z("div",{class:"flex w-full gap-2"},[b,T,E,C,S])])}}}),Gp=Te(""),pd=Te(_c.RULES),Wp=Te([]),as=Te([]),X1=ge(()=>{const e=Gp.value.split(" ").map(t=>t.toLowerCase().trim());return Gp.value===""?Wp.value:Wp.value.filter(t=>e.every(n=>[t.type.toLowerCase(),t.payload.toLowerCase(),t.proxy.toLowerCase()].some(r=>r.includes(n))))}),Jge=ge(()=>{const e=Gp.value.split(" ").map(t=>t.toLowerCase().trim());return Gp.value===""?as.value:as.value.filter(t=>e.every(n=>[t.name.toLowerCase(),t.behavior.toLowerCase(),t.vehicleType.toLowerCase()].some(r=>r.includes(n))))}),Mc=async()=>{const{data:e}=await xke(),{data:t}=await Tke();Wp.value=e.rules.map(n=>{const r=n.proxy,i=r.startsWith("route(")?r.substring(6,r.length-1):r;return{...n,proxy:i}}),as.value=Object.values(t.providers)},Qge=Ze({name:"RulesCtrl",props:{isLargeCtrlsBar:{type:Boolean,default:!0}},setup(e){const{t}=qr(),n=Te(!1),r=Te(!1),i=ge(()=>as.value.length>0),o=async()=>{if(!r.value){r.value=!0;try{let s=0;await Promise.all(as.value.map(l=>IO(l.name).then(()=>{s++;const u=s===as.value.length;pr({key:"updateFinishedTip",content:"updateFinishedTip",params:{number:`${s}/${as.value.length}`},type:u?"alert-success":"alert-info",timeout:u?2e3:0})}))),await Mc(),r.value=!1}catch{await Mc(),r.value=!1}}},a=ge(()=>Object.values(_c).map(s=>({type:s,count:s===_c.RULES?Wp.value.length:as.value.length})));return()=>{const s=z("div",{role:"tablist",class:"tabs-box tabs tabs-xs"},[a.value.map(({type:f,count:h})=>z("a",{role:"tab",key:f,class:["tab",pd.value===f&&"tab-active"],onClick:()=>pd.value=f},[t(f),Be(" ("),h,Be(")")]))]),l=pd.value===_c.PROVIDER&&z("button",{class:"btn btn-circle btn-sm",onClick:o},[z(nv,{class:["h-4 w-4",r.value&&"animate-spin"]},null)]),u=z(Tn,{class:e.isLargeCtrlsBar?"w-80":"w-32 flex-1",modelValue:Gp.value,"onUpdate:modelValue":f=>Gp.value=f,placeholder:`${t("search")} | ${t("searchMultiple")}`,clearable:!0},null),c=z(Ve,null,[z("button",{class:"btn btn-circle btn-sm",onClick:()=>n.value=!0},[z(Zw,{class:"h-4 w-4"},null)]),z(dl,{modelValue:n.value,"onUpdate:modelValue":f=>n.value=f},{default:()=>[z("div",{class:"flex flex-col gap-4 p-2 text-sm"},[z("div",{class:"flex items-center gap-2"},[t("displaySelectedNode"),tt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":f=>wI.value=f},null),[[en,wI.value]])]),z("div",{class:"flex items-center gap-2"},[t("displayLatencyNumber"),tt(z("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":f=>xI.value=f},null),[[en,xI.value]])])])]})]);return e.isLargeCtrlsBar?z("div",{class:"flex flex-wrap gap-2 p-2"},[i.value&&s,u,z("div",{class:"flex-1"},null),l,c]):z("div",{class:"flex flex-col gap-2 p-2"},[i.value&&z("div",{class:"flex gap-2"},[s,l]),z("div",{class:"flex w-full gap-2"},[u,c])])}}}),eme=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,tme="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",nme={class:"flex items-center gap-1 overflow-hidden"},rme=["src"],eD=Ze({__name:"BackendVersion",setup(e){return(t,n)=>(H(),K("div",nme,[R("img",{src:L(oa)?L(tme):L(eme),class:"h-4 w-4 rounded-xs"},null,8,rme),R("span",{class:"truncate",onMouseenter:n[0]||(n[0]=(...r)=>L(Gs)&&L(Gs)(...r))},q(L(wp)),33)]))}});var Qn=(e=>(e.CONNECTIONS="connections",e.DOWNLOAD="download",e.DL_SPEED="dlSpeed",e.MEMORY_USAGE="memoryUsage",e.UPLOAD="upload",e.UL_SPEED="ulSpeed",e))(Qn||{});const Ff=ge(()=>({connections:cs.value.length,memoryUsage:nr(yY.value,{binary:!0}),download:nr(VI.value),upload:nr(HI.value),dlSpeed:nr(_Y.value)+"/s",ulSpeed:nr(bY.value)+"/s"})),tD=Ze({__name:"StatisticsStats",props:{type:{}},setup(e){const t=e,n={overview:{list:"grid grid-cols-2 gap-2 rounded-lg bg-base-200/50 px-4 py-2 lg:grid-cols-6",item:"flex h-12 flex-col items-start justify-center lg:gap-2 lg:h-24 lg:items-center",label:"text-sm lg:text-lg lg:font-bold max-lg:text-base-content/70",value:"text-lg lg:text-xl"},settings:{list:"grid w-full grid-cols-3 gap-1 rounded-lg bg-base-200/50 p-3",item:"flex flex-col items-start",label:"text-xs text-base-content/70",value:"text-sm"},ctrl:{list:"grid w-full grid-cols-2 gap-2 rounded-lg bg-base-200/50 p-2",item:"flex items-start flex-col",label:"text-xs text-base-content/70",value:"text-sm"}},r={overview:[Qn.CONNECTIONS,Qn.MEMORY_USAGE,Qn.DOWNLOAD,Qn.DL_SPEED,Qn.UPLOAD,Qn.UL_SPEED],settings:[Qn.CONNECTIONS,Qn.DOWNLOAD,Qn.DL_SPEED,Qn.MEMORY_USAGE,Qn.UPLOAD,Qn.UL_SPEED],ctrl:[Qn.CONNECTIONS,Qn.MEMORY_USAGE,Qn.DOWNLOAD,Qn.DL_SPEED,Qn.UPLOAD,Qn.UL_SPEED]},i=ge(()=>n[t.type]),o=ge(()=>r[t.type]);return(a,s)=>(H(),K("div",{class:ct(i.value.list)},[(H(!0),K(Ve,null,Yt(o.value,l=>(H(),K("div",{key:l,class:ct(i.value.item)},[R("div",{class:ct(i.value.label)},q(a.$t(l)),3),R("div",{class:ct(i.value.value)},q(L(Ff)[l]),3)],2))),128))],2))}}),ime={class:"flex flex-col gap-4"},ome={class:"text-lg font-bold"},ame={class:"flex flex-col gap-1"},sme={class:"text-sm"},lme=["value"],ume={key:0,class:"flex flex-col gap-3"},cme={class:"flex flex-col gap-1"},fme={class:"text-sm"},dme={class:"flex flex-col gap-1"},hme={class:"text-sm"},pme={class:"flex flex-col gap-1"},vme={class:"text-sm"},gme={class:"flex flex-col gap-1"},mme={class:"text-sm"},yme={class:"flex flex-col gap-1"},_me={class:"text-sm"},bme={class:"flex flex-col gap-1"},Sme={class:"text-sm"},wme={class:"flex justify-end gap-2"},xme=["disabled"],Tme=["disabled"],Cme={key:0,class:"loading loading-spinner loading-xs"},RG=Ze({__name:"EditBackendModal",props:{modelValue:{type:Boolean},defaultBackendUuid:{}},emits:["update:modelValue","saved"],setup(e,{emit:t}){const n=e,r=t,{t:i}=qr(),o=ge({get:()=>n.modelValue,set:h=>r("update:modelValue",h)}),a=Te(null),s=Te(""),l=Te(!1),u=ge(()=>Or.value.find(h=>h.uuid===s.value)||null);mt(()=>n.modelValue,h=>{h&&(n.defaultBackendUuid?s.value=n.defaultBackendUuid:Cr.value&&(s.value=Cr.value.uuid))}),mt(u,h=>{h&&(a.value={protocol:h.protocol,host:h.host,port:h.port,secondaryPath:h.secondaryPath,password:h.password,label:h.label||"",disableUpgradeCore:h.disableUpgradeCore||!1})},{immediate:!0});const c=()=>{o.value=!1,a.value=null,s.value=""},f=async()=>{if(!(!a.value||!u.value)){l.value=!0;try{const h={uuid:u.value.uuid,...a.value};if(!await nR(h,1e4)){pr({content:i("backendConnectionFailed"),type:"alert-error"});return}nue(u.value.uuid,a.value),pr({content:i("backendConfigSaved"),type:"alert-success"}),o.value=!1,a.value=null,s.value="",r("saved")}catch(h){pr({content:`${i("saveFailed")}: ${h}`,type:"alert-error"})}finally{l.value=!1}}};return(h,d)=>(H(),it(dl,{modelValue:o.value,"onUpdate:modelValue":d[7]||(d[7]=p=>o.value=p),onKeydown:d[8]||(d[8]=Ic(p=>!l.value&&f(),["enter"]))},{default:gn(()=>[R("div",ime,[R("h3",ome,q(L(i)("editBackendTitle")),1),R("div",ame,[R("label",sme,q(L(i)("selectBackend")),1),tt(R("select",{class:"select select-sm w-full","onUpdate:modelValue":d[0]||(d[0]=p=>s.value=p)},[(H(!0),K(Ve,null,Yt(L(Or),p=>(H(),K("option",{key:p.uuid,value:p.uuid},q(L(Ed)(p)),9,lme))),128))],512),[[zn,s.value]])]),a.value?(H(),K("div",ume,[R("div",cme,[R("label",fme,q(L(i)("protocol")),1),tt(R("select",{class:"select select-sm w-full","onUpdate:modelValue":d[1]||(d[1]=p=>a.value.protocol=p)},[...d[9]||(d[9]=[R("option",{value:"http"},"HTTP",-1),R("option",{value:"https"},"HTTPS",-1)])],512),[[zn,a.value.protocol]])]),R("div",dme,[R("label",hme,q(L(i)("host")),1),z(Tn,{class:"w-full",name:"username",modelValue:a.value.host,"onUpdate:modelValue":d[2]||(d[2]=p=>a.value.host=p),placeholder:"127.0.0.1"},null,8,["modelValue"])]),R("div",pme,[R("label",vme,q(L(i)("port")),1),z(Tn,{class:"w-full",modelValue:a.value.port,"onUpdate:modelValue":d[3]||(d[3]=p=>a.value.port=p),placeholder:"9090"},null,8,["modelValue"])]),R("div",gme,[R("label",mme,q(h.$t("secondaryPath"))+" ("+q(h.$t("optional"))+")",1),z(Tn,{class:"w-full",modelValue:a.value.secondaryPath,"onUpdate:modelValue":d[4]||(d[4]=p=>a.value.secondaryPath=p),placeholder:L(i)("optional")},null,8,["modelValue","placeholder"])]),R("div",yme,[R("label",_me,q(L(i)("password")),1),tt(R("input",{type:"password",class:"input input-sm w-full","onUpdate:modelValue":d[5]||(d[5]=p=>a.value.password=p)},null,512),[[Yr,a.value.password]])]),R("div",bme,[R("label",Sme,q(L(i)("label"))+" ("+q(L(i)("optional"))+")",1),z(Tn,{class:"w-full",modelValue:a.value.label,"onUpdate:modelValue":d[6]||(d[6]=p=>a.value.label=p),placeholder:L(i)("label")},null,8,["modelValue","placeholder"])])])):Ge("",!0),R("div",wme,[R("button",{class:"btn btn-sm",onClick:c,disabled:l.value},q(L(i)("cancel")),9,xme),R("button",{class:"btn btn-primary btn-sm",onClick:f,disabled:l.value},[l.value?(H(),K("span",Cme)):Ge("",!0),Be(" "+q(l.value?L(i)("checking"):L(i)("save")),1)],8,Tme)])])]),_:1},8,["modelValue"]))}}),Eme={class:"join flex"},Ime=["value"],Ame=["disabled"],MG=Ze({__name:"BackendSwitch",props:{disableEditBackend:{type:Boolean,default:!1}},setup(e){const t=ge(()=>Or.value.map(o=>({label:Ed(o),value:o.uuid}))),n=Te(!1),r=()=>{si.value=null,Da.push({name:an.setup})},i=()=>{Cr.value&&(n.value=!0)};return(o,a)=>(H(),K(Ve,null,[R("div",Eme,[tt(R("select",{class:"join-item select select-sm w-46 max-w-60 flex-1","onUpdate:modelValue":a[0]||(a[0]=s=>rt(si)?si.value=s:null)},[(H(!0),K(Ve,null,Yt(t.value,s=>(H(),K("option",{key:s.value,value:s.value},q(s.label),9,Ime))),128))],512),[[zn,L(si)]]),o.disableEditBackend?Ge("",!0):(H(),K("button",{key:0,class:"btn join-item btn-sm",onClick:i,disabled:!L(Cr)},[z(L(hH),{class:"h-4 w-4"})],8,Ame)),R("button",{class:"btn join-item btn-sm",onClick:r},[z(L(rv),{class:"h-4 w-4"})])]),z(RG,{modelValue:n.value,"onUpdate:modelValue":a[1]||(a[1]=s=>n.value=s)},null,8,["modelValue"])],64))}}),Pme={class:"flex flex-col gap-2 p-2 text-sm"},Rme={class:"flex gap-2"},Mme=Ze({__name:"CommonCtrl",setup(e){return(t,n)=>(H(),K("div",Pme,[z(tD,{type:"ctrl"}),z(MG,{"disable-edit-backend":!0}),R("div",Rme,[R("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>Hs.value=!0)},[z(L(Cie),{class:"h-5 w-5"})]),z(eD)])]))}});/*! *****************************************************************************
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 xA=function(e,t){return xA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},xA(e,t)};function ft(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nD=12,Dme="sans-serif",Dc=nD+"px "+Dme,Ome=20,Lme=100,kme="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Nme(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-Ome)/Lme;t[r]=i}return t}var Fme=Nme(kme),yu={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(n,r){if(!e){var i=yu.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Dc),e.measureText(n);n=n||"",r=r||Dc;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||nD,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Fme[n[l]];s+=u==null?a:u*a}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},DG=fv(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),OG=fv(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),o0=Object.prototype.toString,Rx=Array.prototype,$me=Rx.forEach,Bme=Rx.filter,rD=Rx.slice,Ume=Rx.map,B3=(function(){}).constructor,K1=B3?B3.prototype:null,iD="__proto__",Vme=2311;function LG(){return Vme++}function oD(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function hn(e){if(e==null||typeof e!="object")return e;var t=e,n=o0.call(e);if(n==="[object Array]"){if(!Sm(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=hn(e[r])}}else if(OG[n]){if(!Sm(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!DG[n]&&!Sm(e)&&!hy(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==iD&&(t[a]=hn(e[a]))}return t}function Rn(e,t,n){if(!Et(t)||!Et(e))return n?hn(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==iD){var i=e[r],o=t[r];Et(o)&&Et(i)&&!pt(o)&&!pt(i)&&!hy(o)&&!hy(i)&&!U3(o)&&!U3(i)&&!Sm(o)&&!Sm(i)?Rn(i,o,n):(n||!(r in e))&&(e[r]=hn(t[r]))}return e}function et(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==iD&&(e[n]=t[n]);return e}function Mn(e,t,n){for(var r=ir(t),i=0,o=r.length;i<o;i++){var a=r[i];e[a]==null&&(e[a]=t[a])}return e}function wn(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Hme(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function hl(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else Mn(e,t)}function $o(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function ee(e,t,n){if(e&&t)if(e.forEach&&e.forEach===$me)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function $t(e,t,n){if(!e)return[];if(!t)return aD(e);if(e.map&&e.map===Ume)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function fv(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function oi(e,t,n){if(!e)return[];if(!t)return aD(e);if(e.filter&&e.filter===Bme)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function zme(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function ir(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Gme(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(rD.call(arguments)))}}var mn=K1&&Bt(K1.bind)?K1.call.bind(K1.bind):Gme;function Dr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(rD.call(arguments)))}}function pt(e){return Array.isArray?Array.isArray(e):o0.call(e)==="[object Array]"}function Bt(e){return typeof e=="function"}function wt(e){return typeof e=="string"}function TA(e){return o0.call(e)==="[object String]"}function qn(e){return typeof e=="number"}function Et(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function U3(e){return!!DG[o0.call(e)]}function Bo(e){return!!OG[o0.call(e)]}function hy(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Mx(e){return e.colorStops!=null}function Wme(e){return e.image!=null}function py(e){return e!==e}function zS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function Ft(e,t){return e??t}function yp(e,t,n){return e??t??n}function aD(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rD.apply(e,t)}function sD(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function ul(e,t){if(!e)throw new Error(t)}function Xs(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kG="__ec_primitive__";function CA(e){e[kG]=!0}function Sm(e){return e[kG]}var jme=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return ir(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e})(),NG=typeof Map=="function";function Yme(){return NG?new Map:new jme}var Xme=(function(){function e(t){var n=pt(t);this.data=Yme();var r=this;t instanceof e?t.each(i):t&&ee(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return NG?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function tn(e){return new Xme(e)}function FG(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Dx(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&et(n,t),n}function $G(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ps(e,t){return e.hasOwnProperty(t)}function ro(){}var Kme=180/Math.PI,Zme=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),qme=(function(){function e(){this.browser=new Zme,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})(),zt=new qme;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(zt.wxa=!0,zt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?zt.worker=!0:!zt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(zt.node=!0,zt.svgSupported=!0):Jme(navigator.userAgent,zt);function Jme(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Qme=".",uf="___EC__COMPONENT__CONTAINER___",BG="___EC__EXTENDED_CLASS___";function Ks(e){var t={main:"",sub:""};if(e){var n=e.split(Qme);t.main=n[0]||"",t.sub=n[1]||""}return t}function eye(e){ul(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function tye(e){return!!(e&&e[BG])}function lD(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return nye(r)?i=(function(o){ft(a,o);function a(){return o.apply(this,arguments)||this}return a})(r):(i=function(){(n.$constructor||r).apply(this,arguments)},Hme(i,this)),et(i.prototype,n),i[BG]=!0,i.extend=this.extend,i.superCall=oye,i.superApply=aye,i.superClass=r,i}}function nye(e){return Bt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function UG(e,t){e.extend=t.extend}var rye=Math.round(Math.random()*10);function iye(e){var t=["__\0is_clz",rye++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function oye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function aye(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Ox(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){eye(i),r.prototype.type=i;var o=Ks(i);if(!o.sub)t[o.main]=r;else if(o.sub!==uf){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[uf]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=Ks(r),o=[],a=t[i.main];return a&&a[uf]?ee(a,function(s,l){l!==uf&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=Ks(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return ee(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=Ks(r),o=t[i.main];return o&&o[uf]};function n(r){var i=t[r.main];return(!i||!i[uf])&&(i=t[r.main]={},i[uf]=!0),i}}function vy(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&wn(i,l)>=0||o&&wn(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var sye=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],lye=vy(sye),uye=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return lye(this,t,n)},e})(),VG=(function(){function e(t){this.value=t}return e})(),cye=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new VG(t);return this.insertEntry(n),n},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 n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,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})(),jp=(function(){function e(t){this._list=new cye,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,i=this._map,o=null;if(i[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new VG(n),s.key=t,r.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),EA=new jp(50);function fye(e){if(typeof e=="string"){var t=EA.get(e);return t&&t.image}else return e}function HG(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=EA.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!Lx(t)&&o.pending.push(a)):(t=yu.loadImage(e,V3,V3),t.__zrImageSrc=e,EA.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function V3(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Lx(e){return e&&e.width&&e.height}function tl(){return[1,0,0,1,0,0]}function uD(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function cD(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 wm(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function IA(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fD(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(a-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(a-r[0])+r[1],e}function dye(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function dv(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var Hn=(function(){function e(t,n){this.x=t||0,this.y=n||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,n){return this.x=t,this.y=n,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,n){this.x+=t.x*n,this.y+=t.y*n},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 n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+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,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.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,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e})(),jf=Math.min,Zh=Math.max,AA=Math.abs,H3=["x","y"],hye=["width","height"],cf=new Hn,ff=new Hn,df=new Hn,hf=new Hn,Qo=zG(),Ng=Qo.minTv,PA=Qo.maxTv,xm=[0,0],Wt=(function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(t,n,r,i,o){return i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),t.x=n,t.y=r,t.width=i,t.height=o,t},e.prototype.union=function(t){var n=jf(t.x,this.x),r=jf(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Zh(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Zh(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,o=tl();return IA(o,o,[-n.x,-n.y]),dye(o,o,[r,i]),IA(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Hn.set(r,0,0);var o=i&&i.outIntersectRect||null,a=i&&i.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(pye,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(vye,n.x,n.y,n.width,n.height));var s=!!r;Qo.reset(i,s);var l=Qo.touchThreshold,u=t.x+l,c=t.x+t.width-l,f=t.y+l,h=t.y+t.height-l,d=n.x+l,p=n.x+n.width-l,g=n.y+l,y=n.y+n.height-l;if(u>c||f>h||d>p||g>y)return!1;var m=!(c<d||p<u||h<g||y<f);return(s||o)&&(xm[0]=1/0,xm[1]=0,z3(u,c,d,p,0,s,o,a),z3(f,h,g,y,1,s,o,a),s&&Hn.copy(r,m?Qo.useDir?Qo.dirMinTv:Ng:PA)),m},e.contain=function(t,n,r){return n>=t.x&&n<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(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,n){return t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height,t},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}cf.x=df.x=n.x,cf.y=hf.y=n.y,ff.x=hf.x=n.x+n.width,ff.y=df.y=n.y+n.height,cf.transform(r),hf.transform(r),ff.transform(r),df.transform(r),t.x=jf(cf.x,ff.x,df.x,hf.x),t.y=jf(cf.y,ff.y,df.y,hf.y);var l=Zh(cf.x,ff.x,df.x,hf.x),u=Zh(cf.y,ff.y,df.y,hf.y);t.width=l-t.x,t.height=u-t.y},e})(),pye=new Wt(0,0,0,0),vye=new Wt(0,0,0,0);function z3(e,t,n,r,i,o,a,s){var l=AA(t-n),u=AA(r-e),c=jf(l,u),f=H3[i],h=H3[1-i],d=hye[i];t<n||r<e?l<u?(o&&(PA[f]=-l),s&&(a[f]=t,a[d]=0)):(o&&(PA[f]=u),s&&(a[f]=e,a[d]=0)):(a&&(a[f]=Zh(e,n),a[d]=jf(t,r)-a[f]),o&&(c<xm[0]||Qo.useDir)&&(xm[0]=jf(c,xm[0]),(l<u||!Qo.bidirectional)&&(Ng[f]=l,Ng[h]=0,Qo.useDir&&Qo.calcDirMTV()),(l>=u||!Qo.bidirectional)&&(Ng[f]=-u,Ng[h]=0,Qo.useDir&&Qo.calcDirMTV())))}function zG(){var e=0,t=new Hn,n=new Hn,r={minTv:new Hn,maxTv:new Hn,useDir:!1,dirMinTv:new Hn,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){r.touchThreshold=0,o&&o.touchThreshold!=null&&(r.touchThreshold=Zh(0,o.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,o&&o.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=o.direction,r.bidirectional=o.bidirectional==null||!!o.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(e),u=Math.cos(e),c=l*o.y+u*o.x;if(i(c)){i(o.x)&&i(o.y)&&a.set(0,0);return}if(n.x=s*u/c,n.y=s*l/c,i(n.x)&&i(n.y)){a.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function i(o){return AA(o)<1e-10}return r}function nl(e){Z1||(Z1=new jp(100)),e=e||Dc;var t=Z1.get(e);return t||(t={font:e,strWidthCache:new jp(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:yu.measureText("国",e).width,asciiCharWidth:yu.measureText("a",e).width},Z1.put(e,t)),t}var Z1;function gye(e){if(!(IE>=G3)){e=e||Dc;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=yu.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?IE=G3:i>2&&IE++,t}}var IE=0,G3=5;function GG(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=gye(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function rl(e,t){var n=e.strWidthCache,r=n.get(t);return r==null&&(r=yu.measureText(t,e.font).width,n.put(t,r)),r}function W3(e,t,n,r){var i=rl(nl(t),e),o=kx(t),a=Yp(0,i,n),s=vd(0,o,r),l=new Wt(a,s,i,o);return l}function WG(e,t,n,r){var i=((e||"")+"").split(`
`),o=i.length;if(o===1)return W3(i[0],t,n,r);for(var a=new Wt(0,0,0,0),s=0;s<i.length;s++){var l=W3(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function Yp(e,t,n,r){return n==="right"?r?e+=t:e-=t:n==="center"&&(r?e+=t/2:e-=t/2),e}function vd(e,t,n,r){return n==="middle"?r?e+=t/2:e-=t/2:n==="bottom"&&(r?e+=t:e-=t),e}function kx(e){return nl(e).stWideCharWidth}function Ld(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function jG(e,t,n){var r=t.position||"inside",i=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Ld(r[0],n.width),u+=Ld(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var AE=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function mye(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
`);o=YG(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)XG(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
`),e.isTruncated=s}function YG(e,t,n,r){r=r||{};var i=et({},r);n=Ft(n,"..."),i.maxIterations=Ft(r.maxIterations,2);var o=i.minChar=Ft(r.minChar,0),a=i.fontMeasureInfo=nl(t),s=a.asciiCharWidth;i.placeholder=Ft(r.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<o&&l>=s;u++)l-=s;var c=rl(a,n);return c>l&&(n="",c=0),l=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=e,i}function XG(e,t,n){var r=n.containerWidth,i=n.contentWidth,o=n.fontMeasureInfo;if(!r){e.textLine="",e.isTruncated=!1;return}var a=rl(o,t);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=i||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?yye(t,i,o):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,l),a=rl(o,t)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function yye(e,t,n){for(var r=0,i=0,o=e.length;i<o&&r<t;i++)r+=GG(n,e.charCodeAt(i));return i}function _ye(e,t,n,r){var i=dD(e),o=t.overflow,a=t.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=t.font,c=o==="truncate",f=kx(u),h=Ft(t.lineHeight,f),d=t.lineOverflow==="truncate",p=!1,g=t.width;g==null&&n!=null&&(g=n-s);var y=t.height;y==null&&r!=null&&(y=r-l);var m;g!=null&&(o==="break"||o==="breakAll")?m=i?KG(i,t.font,g,o==="breakAll",0).lines:[]:m=i?i.split(`
`):[];var b=m.length*h;if(y==null&&(y=b),b>y&&d){var w=Math.floor(y/h);p=p||m.length>w,m=m.slice(0,w),b=m.length*h}if(i&&c&&g!=null)for(var S=YG(g,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},T=0;T<m.length;T++)XG(C,m[T],S),m[T]=C.textLine,p=p||C.isTruncated;for(var E=y,P=0,I=nl(u),T=0;T<m.length;T++)P=Math.max(rl(I,m[T]),P);g==null&&(g=P);var D=g;return E+=l,D+=s,{lines:m,height:y,outerWidth:D,outerHeight:E,lineHeight:h,calculatedLineHeight:f,contentWidth:P,contentHeight:b,width:g,isTruncated:p}}var bye=(function(){function e(){}return e})(),j3=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),Sye=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function wye(e,t,n,r,i){var o=new Sye,a=dD(e);if(!a)return o;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=t.width;c==null&&n!=null&&(c=n-l);var f=t.height;f==null&&r!=null&&(f=r-u);for(var h=t.overflow,d=(h==="break"||h==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:h==="breakAll"}:null,p=AE.lastIndex=0,g;(g=AE.exec(a))!=null;){var y=g.index;y>p&&PE(o,a.substring(p,y),t,d),PE(o,g[2],t,d,g[1]),p=AE.lastIndex}p<a.length&&PE(o,a.substring(p,a.length),t,d);var m=[],b=0,w=0,S=h==="truncate",C=t.lineOverflow==="truncate",T={};function E(ke,oe,Ee){ke.width=oe,ke.lineHeight=Ee,b+=Ee,w=Math.max(w,oe)}e:for(var P=0;P<o.lines.length;P++){for(var I=o.lines[P],D=0,O=0,N=0;N<I.tokens.length;N++){var M=I.tokens[N],k=M.styleName&&t.rich[M.styleName]||{},V=M.textPadding=k.padding,B=V?V[1]+V[3]:0,U=M.font=k.font||t.font;M.contentHeight=kx(U);var $=Ft(k.height,M.contentHeight);if(M.innerHeight=$,V&&($+=V[0]+V[2]),M.height=$,M.lineHeight=yp(k.lineHeight,t.lineHeight,$),M.align=k&&k.align||i,M.verticalAlign=k&&k.verticalAlign||"middle",C&&f!=null&&b+M.lineHeight>f){var J=o.lines.length;N>0?(I.tokens=I.tokens.slice(0,N),E(I,O,D),o.lines=o.lines.slice(0,P+1)):o.lines=o.lines.slice(0,P),o.isTruncated=o.isTruncated||o.lines.length<J;break e}var ae=k.width,ne=ae==null||ae==="auto";if(typeof ae=="string"&&ae.charAt(ae.length-1)==="%")M.percentWidth=ae,m.push(M),M.contentWidth=rl(nl(U),M.text);else{if(ne){var _e=k.backgroundColor,me=_e&&_e.image;me&&(me=fye(me),Lx(me)&&(M.width=Math.max(M.width,me.width*$/me.height)))}var Me=S&&c!=null?c-O:null;Me!=null&&Me<M.width?!ne||Me<B?(M.text="",M.width=M.contentWidth=0):(mye(T,M.text,Me-B,U,t.ellipsis,{minChar:t.truncateMinChar}),M.text=T.text,o.isTruncated=o.isTruncated||T.isTruncated,M.width=M.contentWidth=rl(nl(U),M.text)):M.contentWidth=rl(nl(U),M.text)}M.width+=B,O+=M.width,k&&(D=Math.max(D,M.lineHeight))}E(I,O,D)}o.outerWidth=o.width=Ft(c,w),o.outerHeight=o.height=Ft(f,b),o.contentHeight=b,o.contentWidth=w,o.outerWidth+=l,o.outerHeight+=u;for(var P=0;P<m.length;P++){var M=m[P],Re=M.percentWidth;M.width=parseInt(Re,10)/100*o.width}return o}function PE(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,u=!1,c,f;if(r){var h=a.padding,d=h?h[1]+h[3]:0;if(a.width!=null&&a.width!=="auto"){var p=Ld(a.width,r.width)+d;s.length>0&&p+r.accumWidth>r.width&&(c=t.split(`
`),u=!0),r.accumWidth=p}else{var g=KG(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,f=g.linesWidths,c=g.lines}}c||(c=t.split(`
`));for(var y=nl(l),m=0;m<c.length;m++){var b=c[m],w=new bye;if(w.styleName=i,w.text=b,w.isLineHolder=!b&&!o,typeof a.width=="number"?w.width=a.width:w.width=f?f[m]:rl(y,b),!m&&!u){var S=(s[s.length-1]||(s[0]=new j3)).tokens,C=S.length;C===1&&S[0].isLineHolder?S[0]=w:(b||!C||o)&&S.push(w)}else s.push(new j3([w]))}}function xye(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Tye=fv(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Cye(e){return xye(e)?!!Tye[e]:!0}function KG(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=nl(t),h=0;h<e.length;h++){var d=e.charAt(h);if(d===`
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var p=GG(f,d.charCodeAt(0)),g=r?!1:!Cye(d);if(o.length?c+p>n:i+c+p>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):g?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p));continue}c+=p,g?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function Y3(e,t,n,r,i,o){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,!!t){var a=t.width*2,s=t.height*2;Wt.set(X3,Yp(n,a,i),vd(r,s,o),a,s),Wt.intersect(t,X3,null,K3);var l=K3.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=Yp(l.x,l.width,i,!0),e.baseY=vd(l.y,l.height,o,!0)}}var X3=new Wt(0,0,0,0),K3={outIntersectRect:{},clamp:!0};function dD(e){return e!=null?e+="":e=""}function Eye(e){var t=dD(e.text),n=e.font,r=rl(nl(n),t),i=kx(n);return RA(e,r,i,null)}function RA(e,t,n,r){var i=new Wt(Yp(e.x||0,t,e.textAlign),vd(e.y||0,n,e.textBaseline),t,n),o=r??(ZG(e)?e.lineWidth:0);return o>0&&(i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o),i}function ZG(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}function hv(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Iye(e,t){return e[0]=t[0],e[1]=t[1],e}function Aye(e){return[e[0],e[1]]}function Z3(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Pye(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Rye(e){return Math.sqrt(Mye(e))}function Mye(e){return e[0]*e[0]+e[1]*e[1]}function RE(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Dye(e,t){var n=Rye(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function MA(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Oye=MA;function Lye(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var _p=Lye;function io(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function qh(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Jh(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var q3=uD,J3=5e-5;function pf(e){return e>J3||e<-J3}var vf=[],_h=[],ME=tl(),DE=Math.abs,Yf=(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 pf(this.rotation)||pf(this.x)||pf(this.y)||pf(this.scaleX-1)||pf(this.scaleY-1)||pf(this.skewX)||pf(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(q3(r),this.invTransform=null);return}r=r||tl(),n?this.getLocalTransform(r):q3(r),t&&(n?wm(r,t,r):cD(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(vf);var r=vf[0]<0?-1:1,i=vf[1]<0?-1:1,o=((vf[0]-r)*n+r)/vf[0]||0,a=((vf[1]-i)*n+i)/vf[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||tl(),dv(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||tl(),wm(_h,t.invTransform,n),n=_h);var r=this.originX,i=this.originY;(r||i)&&(ME[4]=r,ME[5]=i,wm(_h,n,ME),_h[4]-=r,_h[5]-=i,n=_h),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],i=this.invTransform;return i&&io(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&io(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&DE(t[0]-1)>1e-10&&DE(t[3]-1)>1e-10?Math.sqrt(DE(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){DA(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,i=t.originY||0,o=t.scaleX,a=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(r||i||s||l){var p=r+s,g=i+l;n[4]=-p*o-h*g*a,n[5]=-g*a-d*p*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=d*o,n[2]=h*a,u&&fD(n,n,u),n[4]+=r+c,n[5]+=i+f,n},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})(),gy=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function DA(e,t){for(var n=0;n<gy.length;n++){var r=gy[n];e[r]=t[r]}}var Tm={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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Tm.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?Tm.bounceIn(e*2)*.5:Tm.bounceOut(e*2-1)*.5+.5}},q1=Math.pow,wc=Math.sqrt,GS=1e-8,qG=1e-4,Q3=wc(3),J1=1/3,js=hv(),Aa=hv(),bp=hv();function hc(e){return e>-GS&&e<GS}function JG(e){return e>GS||e<-GS}function _i(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function e4(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function WS(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,f=s*l-9*a*u,h=l*l-3*s*u,d=0;if(hc(c)&&hc(f))if(hc(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[d++]=p)}else{var g=f*f-4*c*h;if(hc(g)){var y=f/c,p=-s/a+y,m=-y/2;p>=0&&p<=1&&(o[d++]=p),m>=0&&m<=1&&(o[d++]=m)}else if(g>0){var b=wc(g),w=c*s+1.5*a*(-f+b),S=c*s+1.5*a*(-f-b);w<0?w=-q1(-w,J1):w=q1(w,J1),S<0?S=-q1(-S,J1):S=q1(S,J1);var p=(-s-(w+S))/(3*a);p>=0&&p<=1&&(o[d++]=p)}else{var C=(2*c*s-3*a*f)/(2*wc(c*c*c)),T=Math.acos(C)/3,E=wc(c),P=Math.cos(T),p=(-s-2*E*P)/(3*a),m=(-s+E*(P+Q3*Math.sin(T)))/(3*a),I=(-s+E*(P-Q3*Math.sin(T)))/(3*a);p>=0&&p<=1&&(o[d++]=p),m>=0&&m<=1&&(o[d++]=m),I>=0&&I<=1&&(o[d++]=I)}}return d}function QG(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(hc(a)){if(JG(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(hc(c))i[0]=-o/(2*a);else if(c>0){var f=wc(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 jS(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function kye(e,t,n,r,i,o,a,s,l,u,c){var f,h=.005,d=1/0,p,g,y,m;js[0]=l,js[1]=u;for(var b=0;b<1;b+=.05)Aa[0]=_i(e,n,i,a,b),Aa[1]=_i(t,r,o,s,b),y=_p(js,Aa),y<d&&(f=b,d=y);d=1/0;for(var w=0;w<32&&!(h<qG);w++)p=f-h,g=f+h,Aa[0]=_i(e,n,i,a,p),Aa[1]=_i(t,r,o,s,p),y=_p(Aa,js),p>=0&&y<d?(f=p,d=y):(bp[0]=_i(e,n,i,a,g),bp[1]=_i(t,r,o,s,g),m=_p(bp,js),g<=1&&m<d?(f=g,d=m):h*=.5);return wc(d)}function Nye(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,h=1/l,d=1;d<=l;d++){var p=d*h,g=_i(e,n,i,a,p),y=_i(t,r,o,s,p),m=g-u,b=y-c;f+=Math.sqrt(m*m+b*b),u=g,c=y}return f}function xo(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function t4(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Fye(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(hc(o)){if(JG(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(hc(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=wc(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 e9(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function YS(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function $ye(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;js[0]=a,js[1]=s;for(var h=0;h<1;h+=.05){Aa[0]=xo(e,n,i,h),Aa[1]=xo(t,r,o,h);var d=_p(js,Aa);d<f&&(u=h,f=d)}f=1/0;for(var p=0;p<32&&!(c<qG);p++){var g=u-c,y=u+c;Aa[0]=xo(e,n,i,g),Aa[1]=xo(t,r,o,g);var d=_p(Aa,js);if(g>=0&&d<f)u=g,f=d;else{bp[0]=xo(e,n,i,y),bp[1]=xo(t,r,o,y);var m=_p(bp,js);y<=1&&m<f?(u=y,f=m):c*=.5}}return wc(f)}function Bye(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var h=f*c,d=xo(e,n,i,h),p=xo(t,r,o,h),g=d-s,y=p-l;u+=Math.sqrt(g*g+y*y),s=d,l=p}return u}var Uye=/cubic-bezier\(([0-9,\.e ]+)\)/;function t9(e){var t=e&&Uye.exec(e);if(t){var n=t[1].split(","),r=+Xs(n[0]),i=+Xs(n[1]),o=+Xs(n[2]),a=+Xs(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:WS(0,r,o,1,l,s)&&_i(0,i,a,1,s[0])}}}var Vye=(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||ro,this.ondestroy=t.ondestroy||ro,this.onrestart=t.onrestart||ro,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=t-this._startTime-this._pausedTime,o=i/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%r;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=Bt(t)?t:Tm[t]||t9(t)},e})(),n4={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 xc(e){return e=Math.round(e),e<0?0:e>255?255:e}function OA(e){return e<0?0:e>1?1:e}function OE(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?xc(parseFloat(t)/100*255):xc(parseInt(t,10))}function gd(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?OA(parseFloat(t)/100):OA(parseFloat(t))}function LE(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Q1(e,t,n){return e+(t-e)*n}function wa(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function LA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var n9=new jp(20),e_=null;function bh(e,t){e_&&LA(e_,t),e_=n9.put(e,e_||t.slice())}function il(e,t){if(e){t=t||[];var n=n9.get(e);if(n)return LA(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in n4)return LA(t,n4[r]),bh(e,t),t;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){wa(t,0,0,0,1);return}return wa(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),bh(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){wa(t,0,0,0,1);return}return wa(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),bh(e,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===i){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?wa(t,+u[0],+u[1],+u[2],1):wa(t,0,0,0,1);c=gd(u.pop());case"rgb":if(u.length>=3)return wa(t,OE(u[0]),OE(u[1]),OE(u[2]),u.length===3?c:gd(u[3])),bh(e,t),t;wa(t,0,0,0,1);return;case"hsla":if(u.length!==4){wa(t,0,0,0,1);return}return u[3]=gd(u[3]),kA(u,t),bh(e,t),t;case"hsl":if(u.length!==3){wa(t,0,0,0,1);return}return kA(u,t),bh(e,t),t;default:return}}wa(t,0,0,0,1)}}function kA(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=gd(e[1]),i=gd(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],wa(t,xc(LE(a,o,n+1/3)*255),xc(LE(a,o,n)*255),xc(LE(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Hye(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=o-i,s=(o+i)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+i):u=a/(2-o-i);var c=((o-t)/6+a/2)/a,f=((o-n)/6+a/2)/a,h=((o-r)/6+a/2)/a;t===o?l=h-f:n===o?l=1/3+c-h:r===o&&(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 r4(e,t){var n=il(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return a0(n,n.length===4?"rgba":"rgb")}}function zye(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=il(t[i]),s=il(t[o]),l=r-i,u=a0([xc(Q1(a[0],s[0],l)),xc(Q1(a[1],s[1],l)),xc(Q1(a[2],s[2],l)),OA(Q1(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function NA(e,t,n,r){var i=il(e);if(e)return i=Hye(i),n!=null&&(i[1]=gd(Bt(n)?n(i[1]):n)),r!=null&&(i[2]=gd(Bt(r)?r(i[2]):r)),a0(kA(i),"rgba")}function a0(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function XS(e,t){var n=il(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var i4=new jp(100);function o4(e){if(wt(e)){var t=i4.get(e);return t||(t=r4(e,-.1),i4.put(e,t)),t}else if(Mx(e)){var n=et({},e);return n.colorStops=$t(e.colorStops,function(r){return{offset:r.offset,color:r4(r.color,-.1)}}),n}return e}function Gye(e){return e.type==="linear"}function Wye(e){return e.type==="radial"}(function(){return zt.hasGlobalWindow&&Bt(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}})();var FA=Array.prototype.slice;function Bl(e,t,n){return(t-e)*n+e}function kE(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=Bl(t[o],n[o],r);return e}function jye(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Bl(t[a][s],n[a][s],r)}return e}function t_(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function a4(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Yye(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Xye(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:FA.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function Ob(e){if($o(e)){var t=e.length;if($o(e[0])){for(var n=[],r=0;r<t;r++)n.push(FA.call(e[r]));return n}return FA.call(e)}return e}function Lb(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Kye(e){return $o(e&&e[0])?2:1}var n_=0,kb=1,r9=2,Fg=3,$A=4,BA=5,s4=6;function l4(e){return e===$A||e===BA}function r_(e){return e===kb||e===r9}var eg=[0,0,0,0],Zye=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=s4,l=n;if($o(n)){var u=Kye(n);s=u,(u===1&&!qn(n[0])||u===2&&!qn(n[0][0]))&&(a=!0)}else if(qn(n)&&!py(n))s=n_;else if(wt(n))if(!isNaN(+n))s=n_;else{var c=il(n);c&&(l=c,s=Fg)}else if(Mx(n)){var f=et({},l);f.colorStops=$t(n.colorStops,function(d){return{offset:d.offset,color:il(d.color)}}),Gye(n)?s=$A:Wye(n)&&(s=BA),l=f}o===0?this.valType=s:(s!==this.valType||s===s4)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:l,rawValue:n,percent:0};return r&&(h.easing=r,h.easingFunc=Bt(r)?r:Tm[r]||t9(r)),i.push(h),h},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,y){return g.time-y.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=r_(i),u=l4(i),c=0;c<o;c++){var f=r[c],h=f.value,d=a.value;f.percent=f.time/t,s||(l&&c!==o-1?Xye(h,d,i):u&&Yye(h.colorStops,d.colorStops))}if(!s&&i!==BA&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var p=r[0].value,c=0;c<o;c++)i===n_?r[c].additiveValue=r[c].value-p:i===Fg?r[c].additiveValue=t_([],r[c].value,p,-1):r_(i)&&(r[c].additiveValue=i===kb?t_([],r[c].value,p,-1):a4([],r[c].value,p,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===Fg,c,f=this._lastFr,h=Math.min,d,p;if(s===1)d=p=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var g=h(f+1,s-1);for(c=g;c>=0&&!(a[c].percent<=n);c--);c=h(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);c++);c=h(c-1,s-2)}p=a[c+1],d=a[c]}if(d&&p){this._lastFr=c,this._lastFrP=n;var y=p.percent-d.percent,m=y===0?1:h((n-d.percent)/y,1);p.easingFunc&&(m=p.easingFunc(m));var b=r?this._additiveValue:u?eg:t[l];if((r_(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?d.rawValue:p.rawValue;else if(r_(o))o===kb?kE(b,d[i],p[i],m):jye(b,d[i],p[i],m);else if(l4(o)){var w=d[i],S=p[i],C=o===$A;t[l]={type:C?"linear":"radial",x:Bl(w.x,S.x,m),y:Bl(w.y,S.y,m),colorStops:$t(w.colorStops,function(E,P){var I=S.colorStops[P];return{offset:Bl(E.offset,I.offset,m),color:Lb(kE([],E.color,I.color,m))}}),global:S.global},C?(t[l].x2=Bl(w.x2,S.x2,m),t[l].y2=Bl(w.y2,S.y2,m)):t[l].r=Bl(w.r,S.r,m)}else if(u)kE(b,d[i],p[i],m),r||(t[l]=Lb(b));else{var T=Bl(d[i],p[i],m);r?this._additiveValue=T:t[l]=T}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,i=this._additiveValue;n===n_?t[r]=t[r]+i:n===Fg?(il(t[r],eg),t_(eg,eg,i,1),t[r]=Lb(eg)):n===kb?t_(t[r],t[r],i,1):n===r9&&a4(t[r],t[r],i,1)},e})(),hD=(function(){function e(t,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&i){oD("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}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,n,r){return this.whenWithKeys(t,n,ir(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new Zye(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,h=f[f.length-1];u=h&&h.value,c.valType===Fg&&u&&(u=Lb(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ob(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ob(n[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 n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var h=new Vye({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){n._started=2;var p=n._additiveAnimators;if(p){for(var g=!1,y=0;y<p.length;y++)if(p[y]._clip){g=!0;break}g||(n._additiveAnimators=null)}for(var y=0;y<r.length;y++)r[y].step(n._target,d);var m=n._onframeCbs;if(m)for(var y=0;y<m.length;y++)m[y](n._target,d)},ondestroy:function(){n._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return $t(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=Ob(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||ir(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e})(),Ss=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e})(),i9=1;zt.hasGlobalWindow&&(i9=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var KS=i9,UA=.4,VA="#333",HA="#ccc",qye="#eee",ea=1,$g=2,zh=4,NE="__zr_normal__",FE=gy.concat(["ignore"]),Jye=fv(gy,function(e,t){return e[t]=!0,e},{ignore:!1}),Sh={},Qye=new Wt(0,0,0,0),i_=[],Nx=(function(){function e(t){this.id=LG(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=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]+=n,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 n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;o.copyTransform(n);var c=r.position!=null,f=r.autoOverflowArea,h=void 0;if((f||c)&&(h=Qye,r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(Sh,r,h):jG(Sh,r,h),o.x=Sh.x,o.y=Sh.y,a=Sh.align,s=Sh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var p=void 0,g=void 0;d==="center"?(p=h.width*.5,g=h.height*.5):(p=Ld(d[0],h.width),g=Ld(d[1],h.height)),u=!0,o.originX=-o.x+p+(i?0:h.x),o.originY=-o.y+g+(i?0:h.y)}}r.rotation!=null&&(o.rotation=r.rotation);var y=r.offset;y&&(o.x+=y[0],o.y+=y[1],u||(o.originX=-y[0],o.originY=-y[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(f){var b=m.overflowRect=m.overflowRect||new Wt(0,0,0,0);o.getLocalTransform(i_),dv(i_,i_),Wt.copy(b,h),b.applyTransform(i_)}else m.overflowRect=null;var w=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,S=void 0,C=void 0,T=void 0;w&&this.canBeInsideText()?(S=r.insideFill,C=r.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(C==null||C==="auto")&&(C=this.getInsideTextStroke(S),T=!0)):(S=r.outsideFill,C=r.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(C==null||C==="auto")&&(C=this.getOutsideStroke(S),T=!0)),S=S||"#000",(S!==m.fill||C!==m.stroke||T!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=S,m.stroke=C,m.autoStroke=T,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=ea,l&&n.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()?HA:VA},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&il(n);r||(r=[255,255,255,1]);for(var i=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*i+(o?0:255)*(1-i);return r[3]=1,a0(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},et(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Et(t))for(var r=t,i=ir(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==NE)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,FE)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(NE,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===NE,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(wn(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){oD("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,h=this._textGuide;return f&&f.useState(t,n,r,c),h&&h.useState(t,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ea),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[a-1],h=!!(f&&f.hoverLayer||r);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,n,h),y&&y.useStates(t,n,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ea)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var n=t.__hostTarget;t=n?t.ignoreHostSilent?null:n:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=wn(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=wn(i,t),a=wn(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i<t.length;i++){var o=t[i];et(n,o),o.textConfig&&(r=r||{},et(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=et({},i?this.textConfig:r.textConfig),et(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<FE.length;c++){var f=FE[c],h=o&&Jye[f];n&&n[f]!=null?h?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(h?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(n||r)[p]:n||r)}u&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Yf,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),et(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=ea;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new hD(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=wn(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){$E(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){$E(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=$E(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ea;function n(r,i,o,a){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(c){l[a]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),e})();hl(Nx,Ss);hl(Nx,Yf);function $E(e,t,n,r,i){n=n||{};var o=[];o9(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(p,g){n.during(g)});for(var h=0;h<o.length;h++){var d=o[h];c&&d.done(c),f&&d.aborted(f),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function BE(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function e0e(e){return $o(e[0])}function t0e(e,t,n){if($o(t[n]))if($o(e[n])||(e[n]=[]),Bo(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),BE(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(e0e(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?BE(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else BE(o,i,a);o.length=i.length}else e[n]=t[n]}function n0e(e,t){return e===t||$o(e)&&$o(t)&&r0e(e,t)}function r0e(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function o9(e,t,n,r,i,o,a,s){for(var l=ir(r),u=i.duration,c=i.delay,f=i.additive,h=i.setToFinal,d=!Et(o),p=e.animators,g=[],y=0;y<l.length;y++){var m=l[y],b=r[m];if(b!=null&&n[m]!=null&&(d||o[m]))if(Et(b)&&!$o(b)&&!Mx(b)){if(t){s||(n[m]=b,e.updateDuringAnimation(t));continue}o9(e,m,n[m],b,i,o&&o[m],a,s)}else g.push(m);else s||(n[m]=b,e.updateDuringAnimation(t),g.push(m))}var w=g.length;if(!f&&w)for(var S=0;S<p.length;S++){var C=p[S];if(C.targetName===t){var T=C.stopTracks(g);if(T){var E=wn(p,C);p.splice(E,1)}}}if(i.force||(g=oi(g,function(O){return!n0e(r[O],n[O])}),w=g.length),w>0||i.force&&!a.length){var P=void 0,I=void 0,D=void 0;if(s){I={},h&&(P={});for(var S=0;S<w;S++){var m=g[S];I[m]=n[m],h?P[m]=r[m]:n[m]=r[m]}}else if(h){D={};for(var S=0;S<w;S++){var m=g[S];D[m]=Ob(n[m]),t0e(n,r,m)}}var C=new hD(n,!1,!1,f?oi(p,function(N){return N.targetName===t}):null);C.targetName=t,i.scope&&(C.scope=i.scope),h&&P&&C.whenWithKeys(0,P,g),D&&C.whenWithKeys(0,D,g),C.whenWithKeys(u??500,s?I:r,g).delay(c||0),e.addAnimator(C,t),a.push(C)}}var zA="__zr_style_"+Math.round(Math.random()*10),md={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Fx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};md[zA]=!0;var u4=["z","z2","invisible"],i0e=["invisible"],s0=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=ir(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&o0e(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Wt(0,0,0,0)),r?Wt.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Wt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:et(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=$g,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&$g)},t.prototype.styleUpdated=function(){this.__dirty&=~$g},t.prototype.createStyle=function(n){return Dx(md,n)},t.prototype.useStyle=function(n){n[zA]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[zA]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,u4)},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.style?a?o?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=ir(c),h=0;h<f.length;h++){var d=f[h];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var p=ir(u),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?i0e:u4,h=0;h<g.length;h++){var d=g[h];r&&r[d]!=null?this[d]=r[d]:l&&i[d]!=null&&(this[d]=i[d])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return et(n,r),n},t.prototype.getAnimationStyleProps=function(){return Fx},t.initDefaultProps=(function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=ea|$g})(),t})(Nx),UE=new Wt(0,0,0,0),VE=new Wt(0,0,0,0);function o0e(e,t,n){return UE.copy(e.getBoundingRect()),e.transform&&UE.applyTransform(e.transform),VE.width=t,VE.height=n,!UE.intersect(VE)}var To=Math.min,Co=Math.max,HE=Math.sin,zE=Math.cos,gf=Math.PI*2,o_=hv(),a_=hv(),s_=hv();function a0e(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],i=To(i,r[0]),o=Co(o,r[0]),a=To(a,r[1]),s=Co(s,r[1]);t[0]=i,t[1]=a,n[0]=o,n[1]=s}}function c4(e,t,n,r,i,o){i[0]=To(e,n),i[1]=To(t,r),o[0]=Co(e,n),o[1]=Co(t,r)}var f4=[],d4=[];function s0e(e,t,n,r,i,o,a,s,l,u){var c=QG,f=_i,h=c(e,n,i,a,f4);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var p=f(e,n,i,a,f4[d]);l[0]=To(p,l[0]),u[0]=Co(p,u[0])}h=c(t,r,o,s,d4);for(var d=0;d<h;d++){var g=f(t,r,o,s,d4[d]);l[1]=To(g,l[1]),u[1]=Co(g,u[1])}l[0]=To(e,l[0]),u[0]=Co(e,u[0]),l[0]=To(a,l[0]),u[0]=Co(a,u[0]),l[1]=To(t,l[1]),u[1]=Co(t,u[1]),l[1]=To(s,l[1]),u[1]=Co(s,u[1])}function l0e(e,t,n,r,i,o,a,s){var l=e9,u=xo,c=Co(To(l(e,n,i),1),0),f=Co(To(l(t,r,o),1),0),h=u(e,n,i,c),d=u(t,r,o,f);a[0]=To(e,i,h),a[1]=To(t,o,d),s[0]=Co(e,i,h),s[1]=Co(t,o,d)}function u0e(e,t,n,r,i,o,a,s,l){var u=qh,c=Jh,f=Math.abs(i-o);if(f%gf<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(o_[0]=zE(i)*n+e,o_[1]=HE(i)*r+t,a_[0]=zE(o)*n+e,a_[1]=HE(o)*r+t,u(s,o_,a_),c(l,o_,a_),i=i%gf,i<0&&(i=i+gf),o=o%gf,o<0&&(o=o+gf),i>o&&!a?o+=gf:i<o&&a&&(i+=gf),a){var h=o;o=i,i=h}for(var d=0;d<o;d+=Math.PI/2)d>i&&(s_[0]=zE(d)*n+e,s_[1]=HE(d)*r+t,u(s,s_,s),c(l,s_,l))}var In={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},mf=[],yf=[],Rs=[],Uu=[],Ms=[],Ds=[],GE=Math.min,WE=Math.max,_f=Math.cos,bf=Math.sin,Pl=Math.abs,GA=Math.PI,Zu=GA*2,jE=typeof Float32Array<"u",tg=[];function YE(e){var t=Math.round(e/GA*1e8)/1e8;return t%2*GA}function c0e(e,t){var n=YE(e[0]);n<0&&(n+=Zu);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Zu?i=n+Zu:t&&n-i>=Zu?i=n-Zu:!t&&n>i?i=n+(Zu-YE(n-i)):t&&n<i&&(i=n-(Zu-YE(i-n))),e[0]=n,e[1]=i}var kd=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=Pl(r/KS/t)||0,this._uy=Pl(r/KS/n)||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,n){return this._drawPendingPt(),this.addData(In.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Pl(t-this._xi),i=Pl(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(In.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,r,i,o,a){return this._drawPendingPt(),this.addData(In.C,t,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,r,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,r,i){return this._drawPendingPt(),this.addData(In.Q,t,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,i),this._xi=r,this._yi=i,this},e.prototype.arc=function(t,n,r,i,o,a){this._drawPendingPt(),tg[0]=i,tg[1]=o,c0e(tg,a),i=tg[0],o=tg[1];var s=o-i;return this.addData(In.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=_f(o)*r+t,this._yi=bf(o)*r+n,this},e.prototype.arcTo=function(t,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,i,o),this},e.prototype.rect=function(t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,i),this.addData(In.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(In.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,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){if(this._saveData){var n=t.length;!(this.data&&this.data.length===n)&&jE&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();var a=this.data;if(jE&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(i+r),i>0&&a))for(var s=0;s<i;s++)this.data[s]=a[s];for(var o=0;o<n;o++)for(var l=t[o].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},e.prototype.addData=function(t,n,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,jE&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rs[0]=Rs[1]=Ms[0]=Ms[1]=Number.MAX_VALUE,Uu[0]=Uu[1]=Ds[0]=Ds[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case In.M:n=i=t[a++],r=o=t[a++],Ms[0]=i,Ms[1]=o,Ds[0]=i,Ds[1]=o;break;case In.L:c4(n,r,t[a],t[a+1],Ms,Ds),n=t[a++],r=t[a++];break;case In.C:s0e(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],Ms,Ds),n=t[a++],r=t[a++];break;case In.Q:l0e(n,r,t[a++],t[a++],t[a],t[a+1],Ms,Ds),n=t[a++],r=t[a++];break;case In.A:var u=t[a++],c=t[a++],f=t[a++],h=t[a++],d=t[a++],p=t[a++]+d;a+=1;var g=!t[a++];l&&(i=_f(d)*f+u,o=bf(d)*h+c),u0e(u,c,f,h,d,p,g,Ms,Ds),n=_f(p)*f+u,r=bf(p)*h+c;break;case In.R:i=n=t[a++],o=r=t[a++];var y=t[a++],m=t[a++];c4(i,o,i+y,o+m,Ms,Ds);break;case In.Z:n=i,r=o;break}qh(Rs,Rs,Ms),Jh(Uu,Uu,Ds)}return a===0&&(Rs[0]=Rs[1]=Uu[0]=Uu[1]=0),new Wt(Rs[0],Rs[1],Uu[0]-Rs[0],Uu[1]-Rs[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,h=0;h<n;){var d=t[h++],p=h===1;p&&(o=t[h],a=t[h+1],s=o,l=a);var g=-1;switch(d){case In.M:o=s=t[h++],a=l=t[h++];break;case In.L:{var y=t[h++],m=t[h++],b=y-o,w=m-a;(Pl(b)>r||Pl(w)>i||h===n-1)&&(g=Math.sqrt(b*b+w*w),o=y,a=m);break}case In.C:{var S=t[h++],C=t[h++],y=t[h++],m=t[h++],T=t[h++],E=t[h++];g=Nye(o,a,S,C,y,m,T,E,10),o=T,a=E;break}case In.Q:{var S=t[h++],C=t[h++],y=t[h++],m=t[h++];g=Bye(o,a,S,C,y,m,10),o=y,a=m;break}case In.A:var P=t[h++],I=t[h++],D=t[h++],O=t[h++],N=t[h++],M=t[h++],k=M+N;h+=1,p&&(s=_f(N)*D+P,l=bf(N)*O+I),g=WE(D,O)*GE(Zu,Math.abs(M)),o=_f(k)*D+P,a=bf(k)*O+I;break;case In.R:{s=o=t[h++],l=a=t[h++];var V=t[h++],B=t[h++];g=V*2+B*2;break}case In.Z:{var b=s-o,w=l-a;g=Math.sqrt(b*b+w*w),o=s,a=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,h,d=n<1,p,g,y=0,m=0,b,w=0,S,C;if(!(d&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=n*g,!b)))e:for(var T=0;T<a;){var E=r[T++],P=T===1;switch(P&&(u=r[T],c=r[T+1],s=u,l=c),E!==In.L&&w>0&&(t.lineTo(S,C),w=0),E){case In.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case In.L:{f=r[T++],h=r[T++];var I=Pl(f-u),D=Pl(h-c);if(I>i||D>o){if(d){var O=p[m++];if(y+O>b){var N=(b-y)/O;t.lineTo(u*(1-N)+f*N,c*(1-N)+h*N);break e}y+=O}t.lineTo(f,h),u=f,c=h,w=0}else{var M=I*I+D*D;M>w&&(S=f,C=h,w=M)}break}case In.C:{var k=r[T++],V=r[T++],B=r[T++],U=r[T++],$=r[T++],J=r[T++];if(d){var O=p[m++];if(y+O>b){var N=(b-y)/O;jS(u,k,B,$,N,mf),jS(c,V,U,J,N,yf),t.bezierCurveTo(mf[1],yf[1],mf[2],yf[2],mf[3],yf[3]);break e}y+=O}t.bezierCurveTo(k,V,B,U,$,J),u=$,c=J;break}case In.Q:{var k=r[T++],V=r[T++],B=r[T++],U=r[T++];if(d){var O=p[m++];if(y+O>b){var N=(b-y)/O;YS(u,k,B,N,mf),YS(c,V,U,N,yf),t.quadraticCurveTo(mf[1],yf[1],mf[2],yf[2]);break e}y+=O}t.quadraticCurveTo(k,V,B,U),u=B,c=U;break}case In.A:var ae=r[T++],ne=r[T++],_e=r[T++],me=r[T++],Me=r[T++],Re=r[T++],ke=r[T++],oe=!r[T++],Ee=_e>me?_e:me,we=Pl(_e-me)>.001,Ae=Me+Re,Oe=!1;if(d){var O=p[m++];y+O>b&&(Ae=Me+Re*(b-y)/O,Oe=!0),y+=O}if(we&&t.ellipse?t.ellipse(ae,ne,_e,me,ke,Me,Ae,oe):t.arc(ae,ne,Ee,Me,Ae,oe),Oe)break e;P&&(s=_f(Me)*_e+ae,l=bf(Me)*me+ne),u=_f(Ae)*_e+ae,c=bf(Ae)*me+ne;break;case In.R:s=u=r[T],l=c=r[T+1],f=r[T++],h=r[T++];var Ue=r[T++],Y=r[T++];if(d){var O=p[m++];if(y+O>b){var X=b-y;t.moveTo(f,h),t.lineTo(f+GE(X,Ue),h),X-=Ue,X>0&&t.lineTo(f+Ue,h+GE(X,Y)),X-=Y,X>0&&t.lineTo(f+WE(Ue-X,0),h+Y),X-=Ue,X>0&&t.lineTo(f,h+WE(Y-X,0));break e}y+=O}t.rect(f,h,Ue,Y);break;case In.Z:if(d){var O=p[m++];if(y+O>b){var N=(b-y)/O;t.lineTo(u*(1-N)+s*N,c*(1-N)+l*N);break e}y+=O}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=In,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function wh(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function f0e(e,t,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>i+f&&u>a+f||u<e-f&&u<n-f&&u<i-f&&u<a-f)return!1;var h=kye(e,t,n,r,i,o,a,s,u,c);return h<=f/2}function d0e(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=$ye(e,t,n,r,i,o,s,l);return c<=u/2}var h4=Math.PI*2;function l_(e){return e%=h4,e<0&&(e+=h4),e}var ng=Math.PI*2;function h0e(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%ng<1e-4)return!0;if(o){var f=r;r=l_(i),i=l_(f)}else r=l_(r),i=l_(i);r>i&&(i+=ng);var h=Math.atan2(l,s);return h<0&&(h+=ng),h>=r&&h<=i||h+ng>=r&&h+ng<=i}function Sf(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var Vu=kd.CMD,wf=Math.PI*2,p0e=1e-4;function v0e(e,t){return Math.abs(e-t)<p0e}var Ji=[-1,-1,-1],Ea=[-1,-1];function g0e(){var e=Ea[0];Ea[0]=Ea[1],Ea[1]=e}function m0e(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=WS(t,r,o,s,u,Ji);if(c===0)return 0;for(var f=0,h=-1,d=void 0,p=void 0,g=0;g<c;g++){var y=Ji[g],m=y===0||y===1?.5:1,b=_i(e,n,i,a,y);b<l||(h<0&&(h=QG(t,r,o,s,Ea),Ea[1]<Ea[0]&&h>1&&g0e(),d=_i(t,r,o,s,Ea[0]),h>1&&(p=_i(t,r,o,s,Ea[1]))),h===2?y<Ea[0]?f+=d<t?m:-m:y<Ea[1]?f+=p<d?m:-m:f+=s<p?m:-m:y<Ea[0]?f+=d<t?m:-m:f+=s<d?m:-m)}return f}function y0e(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=Fye(t,r,o,s,Ji);if(l===0)return 0;var u=e9(t,r,o);if(u>=0&&u<=1){for(var c=0,f=xo(t,r,o,u),h=0;h<l;h++){var d=Ji[h]===0||Ji[h]===1?.5:1,p=xo(e,n,i,Ji[h]);p<a||(Ji[h]<u?c+=f<t?d:-d:c+=o<f?d:-d)}return c}else{var d=Ji[0]===0||Ji[0]===1?.5:1,p=xo(e,n,i,Ji[0]);return p<a?0:o<t?d:-d}}function _0e(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ji[0]=-l,Ji[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=wf-1e-4){r=0,i=wf;var c=o?1:-1;return a>=Ji[0]+e&&a<=Ji[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=wf,i+=wf);for(var h=0,d=0;d<2;d++){var p=Ji[d];if(p+e>a){var g=Math.atan2(s,p),c=o?1:-1;g<0&&(g=wf+g),(g>=r&&g<=i||g+wf>=r&&g+wf<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),h+=c)}}return h}function a9(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,f=0,h,d,p=0;p<a;){var g=o[p++],y=p===1;switch(g===Vu.M&&p>1&&(n||(s+=Sf(l,u,c,f,r,i))),y&&(l=o[p],u=o[p+1],c=l,f=u),g){case Vu.M:c=o[p++],f=o[p++],l=c,u=f;break;case Vu.L:if(n){if(wh(l,u,o[p],o[p+1],t,r,i))return!0}else s+=Sf(l,u,o[p],o[p+1],r,i)||0;l=o[p++],u=o[p++];break;case Vu.C:if(n){if(f0e(l,u,o[p++],o[p++],o[p++],o[p++],o[p],o[p+1],t,r,i))return!0}else s+=m0e(l,u,o[p++],o[p++],o[p++],o[p++],o[p],o[p+1],r,i)||0;l=o[p++],u=o[p++];break;case Vu.Q:if(n){if(d0e(l,u,o[p++],o[p++],o[p],o[p+1],t,r,i))return!0}else s+=y0e(l,u,o[p++],o[p++],o[p],o[p+1],r,i)||0;l=o[p++],u=o[p++];break;case Vu.A:var m=o[p++],b=o[p++],w=o[p++],S=o[p++],C=o[p++],T=o[p++];p+=1;var E=!!(1-o[p++]);h=Math.cos(C)*w+m,d=Math.sin(C)*S+b,y?(c=h,f=d):s+=Sf(l,u,h,d,r,i);var P=(r-m)*S/w+m;if(n){if(h0e(m,b,S,C,C+T,E,t,P,i))return!0}else s+=_0e(m,b,S,C,C+T,E,P,i);l=Math.cos(C+T)*w+m,u=Math.sin(C+T)*S+b;break;case Vu.R:c=l=o[p++],f=u=o[p++];var I=o[p++],D=o[p++];if(h=c+I,d=f+D,n){if(wh(c,f,h,f,t,r,i)||wh(h,f,h,d,t,r,i)||wh(h,d,c,d,t,r,i)||wh(c,d,c,f,t,r,i))return!0}else s+=Sf(h,f,h,d,r,i),s+=Sf(c,d,c,f,r,i);break;case Vu.Z:if(n){if(wh(l,u,c,f,t,r,i))return!0}else s+=Sf(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!v0e(u,f)&&(s+=Sf(l,u,c,f,r,i)||0),s!==0}function b0e(e,t,n){return a9(e,0,!1,t,n)}function S0e(e,t,n,r){return a9(e,t,!0,n,r)}var s9=Mn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},md),w0e={style:Mn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Fx.style)},XE=gy.concat(["invisible","culling","z","z2","zlevel","parent"]),Bn=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){n.buildPath(l,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<XE.length;++s)i[XE[s]]=this[XE[s]];i.__dirty|=ea}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=ir(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?et(this.style,s):this.useStyle(s):a==="shape"?et(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(wt(n)){var r=XS(n,0);return r>.5?VA:r>.2?qye:HA}else if(n)return HA}return VA},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(wt(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=XS(n,0)<UA;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=~zh},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new kd(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&zh)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||i){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.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 n},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect(),a=this.style;if(n=i[0],r=i[1],o.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),S0e(s,l/u,n,r)))return!0}if(this.hasFill())return b0e(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=zh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:et(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&zh)},t.prototype.createStyle=function(n){return Dx(s9,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=et({},this.shape))},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.shape?a?o?u=r.shape:(u=et({},i.shape),et(u,r.shape)):(u=et({},o?this.shape:i.shape),et(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=et({},this.shape);for(var c={},f=ir(u),h=0;h<f.length;h++){var d=f[h];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return w0e},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=(function(o){ft(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return hn(n.style)},a.prototype.getDefaultShape=function(){return hn(n.shape)},a})(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=(function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=ea|$g|zh})(),t})(s0),x0e=Mn({strokeFirst:!0,font:Dc,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},s9),ZS=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return ZG(this.style)},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return Dx(x0e,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Eye(this.style)),this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(s0);ZS.prototype.type="tspan";var T0e=Mn({x:0,y:0},md),C0e={style:Mn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Fx.style)};function E0e(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Gc=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return Dx(T0e,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=E0e(r.image)?r.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=r[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return C0e},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Wt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(s0);Gc.prototype.type="image";function I0e(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.r,s,l,u,c;i<0&&(n=n+i,i=-i),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[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>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/f),e.moveTo(n+s,r),e.lineTo(n+i-l,r),l!==0&&e.arc(n+i-l,r+l,l,-Math.PI/2,0),e.lineTo(n+i,r+o-u),u!==0&&e.arc(n+i-u,r+o-u,u,0,Math.PI/2),e.lineTo(n+c,r+o),c!==0&&e.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Qh=Math.round;function l9(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(Qh(r*2)===Qh(i*2)&&(e.x1=e.x2=Xf(r,s,!0)),Qh(o*2)===Qh(a*2)&&(e.y1=e.y2=Xf(o,s,!0))),e}}function u9(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=Xf(r,s,!0),e.y=Xf(i,s,!0),e.width=Math.max(Xf(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Xf(i+a,s,!1)-e.y,a===0?0:1)),e}}function Xf(e,t,n){if(!t)return e;var r=Qh(e*2);return(r+Qh(t))%2===0?r/2:(r+(n?1:-1))/2}var A0e=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),P0e={},Kr=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new A0e},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=u9(P0e,r,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,o=r.y,a=r.width,s=r.height;r.r?I0e(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Bn);Kr.prototype.type="rect";var p4={fill:"#000"},v4=2,Os={},R0e={style:Mn({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},Fx.style)},Uo=(function(e){ft(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=p4,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,k0e(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Wt(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||p4},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return et(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=ir(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},et(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return R0e},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Dc,i=n.padding,o=this._defaultStyle,a=n.x||0,s=n.y||0,l=n.align||o.align||"left",u=n.verticalAlign||o.verticalAlign||"top";Y3(Os,o.overflowRect,a,s,l,u),a=Os.baseX,s=Os.baseY;var c=w4(n),f=_ye(c,n,Os.outerWidth,Os.outerHeight),h=KE(n),d=!!n.backgroundColor,p=f.outerHeight,g=f.outerWidth,y=f.lines,m=f.lineHeight;this.isTruncated=!!f.isTruncated;var b=a,w=vd(s,f.contentHeight,u);if(h||i){var S=Yp(a,g,l),C=vd(s,p,u);h&&this._renderBackground(n,n,S,C,g,p)}w+=m/2,i&&(b=S4(a,l,i),u==="top"?w+=i[0]:u==="bottom"&&(w-=i[2]));for(var T=0,E=!1,P=!1,I=b4("fill"in n?n.fill:(P=!0,o.fill)),D=_4("stroke"in n?n.stroke:!d&&(!o.autoStroke||P)?(T=v4,E=!0,o.stroke):null),O=n.textShadowBlur>0,N=0;N<y.length;N++){var M=this._getOrCreateChild(ZS),k=M.createStyle();M.useStyle(k),k.text=y[N],k.x=b,k.y=w,k.textAlign=l,k.textBaseline="middle",k.opacity=n.opacity,k.strokeFirst=!0,O&&(k.shadowBlur=n.textShadowBlur||0,k.shadowColor=n.textShadowColor||"transparent",k.shadowOffsetX=n.textShadowOffsetX||0,k.shadowOffsetY=n.textShadowOffsetY||0),k.stroke=D,k.fill=I,D&&(k.lineWidth=n.lineWidth||T,k.lineDash=n.lineDash,k.lineDashOffset=n.lineDashOffset||0),k.font=r,m4(k,n),w+=m,M.setBoundingRect(RA(k,f.contentWidth,f.calculatedLineHeight,E?0:null))}},t.prototype._updateRichTexts=function(){var n=this.style,r=this._defaultStyle,i=n.align||r.align,o=n.verticalAlign||r.verticalAlign,a=n.x||0,s=n.y||0;Y3(Os,r.overflowRect,a,s,i,o),a=Os.baseX,s=Os.baseY;var l=w4(n),u=wye(l,n,Os.outerWidth,Os.outerHeight,i),c=u.width,f=u.outerWidth,h=u.outerHeight,d=n.padding;this.isTruncated=!!u.isTruncated;var p=Yp(a,f,i),g=vd(s,h,o),y=p,m=g;d&&(y+=d[3],m+=d[0]);var b=y+c;KE(n)&&this._renderBackground(n,n,p,g,f,h);for(var w=!!n.backgroundColor,S=0;S<u.lines.length;S++){for(var C=u.lines[S],T=C.tokens,E=T.length,P=C.lineHeight,I=C.width,D=0,O=y,N=b,M=E-1,k=void 0;D<E&&(k=T[D],!k.align||k.align==="left");)this._placeToken(k,n,P,m,O,"left",w),I-=k.width,O+=k.width,D++;for(;M>=0&&(k=T[M],k.align==="right");)this._placeToken(k,n,P,m,N,"right",w),I-=k.width,N-=k.width,M--;for(O+=(c-(O-y)-(b-N)-I)/2;D<=M;)k=T[D],this._placeToken(k,n,P,m,O+k.width/2,"center",w),O+=k.width,D++;m+=P}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var h=!n.isLineHolder&&KE(u);h&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var d=!!u.backgroundColor,p=n.textPadding;p&&(a=S4(a,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var g=this._getOrCreateChild(ZS),y=g.createStyle();g.useStyle(y);var m=this._defaultStyle,b=!1,w=0,S=!1,C=b4("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),T=_4("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!m.autoStroke||b)?(w=v4,S=!0,m.stroke):null),E=u.textShadowBlur>0||r.textShadowBlur>0;y.text=n.text,y.x=a,y.y=f,E&&(y.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,y.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=n.font||Dc,y.opacity=yp(u.opacity,r.opacity,1),m4(y,u),T&&(y.lineWidth=yp(u.lineWidth,r.lineWidth,w),y.lineDash=Ft(u.lineDash,r.lineDash),y.lineDashOffset=r.lineDashOffset||0,y.stroke=T),C&&(y.fill=C),g.setBoundingRect(RA(y,n.contentWidth,n.contentHeight,S?0:null))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,h=l&&!f,d=n.borderRadius,p=this,g,y;if(h||n.lineHeight||u&&c){g=this._getOrCreateChild(Kr),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=o,m.width=a,m.height=s,m.r=d,g.dirtyShape()}if(h){var b=g.style;b.fill=l||null,b.fillOpacity=Ft(n.fillOpacity,1)}else if(f){y=this._getOrCreateChild(Gc),y.onload=function(){p.dirtyStyle()};var w=y.style;w.image=l.image,w.x=i,w.y=o,w.width=a,w.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ft(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||y).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=yp(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return L0e(n)&&(r=[n.fontStyle,n.fontWeight,O0e(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Xs(r)||n.textFont||n.font},t})(s0),M0e={left:!0,right:1,center:1},D0e={top:1,bottom:1,middle:1},g4=["fontStyle","fontWeight","fontSize","fontFamily"];function O0e(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?nD+"px":e+"px"}function m4(e,t){for(var n=0;n<g4.length;n++){var r=g4[n],i=t[r];i!=null&&(e[r]=i)}}function L0e(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function k0e(e){return y4(e),ee(e.rich,y4),e}function y4(e){if(e){e.font=Uo.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||M0e[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||D0e[n]?n:"top";var r=e.padding;r&&(e.padding=sD(e.padding))}}function _4(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function b4(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function S4(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function w4(e){var t=e.text;return t!=null&&(t+=""),t}function KE(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var x4=1e-4,c9=20;function N0e(e){return e.replace(/^\s+|\s+$/g,"")}var my=Math.min,ra=Math.max,Zs=Math.abs;function T4(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}var Ur=F0e;function F0e(e,t,n){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return WA(e,t,n)}function WA(e,t,n){return wt(e)?N0e(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function wi(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),c9),e=(+e).toFixed(t),n?e:+e}function ql(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return $0e(e)}function $0e(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function B0e(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Zs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function U0e(e,t){var n=Math.max(ql(e),ql(t)),r=e+t;return n>c9?r:wi(r,n)}function f9(e){var t=Math.PI*2;return(e%t+t)%t}function qS(e){return e>-x4&&e<x4}var V0e=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function pv(e){if(e instanceof Date)return e;if(wt(e)){var t=V0e.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function H0e(e){return Math.pow(10,pD(e))}function pD(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function d9(e,t){var n=pD(e),r=Math.pow(10,n),i=e/r,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*r,n>=-20?+e.toFixed(n<0?-n:0):e}function JS(e){var t=parseFloat(e);return t==e&&(t!==0||!wt(e)||e.indexOf("x")<=0)?t:NaN}function z0e(e){return!isNaN(JS(e))}function h9(){return Math.round(Math.random()*9)}function p9(e,t){return t===0?e:p9(t,e%t)}function C4(e,t){return e==null?t:t==null?e:e*t/p9(e,t)}var G0e="[ECharts] ",W0e=typeof console<"u"&&console.warn&&console.log;function j0e(e,t,n){W0e&&console[e](G0e+t)}function v9(e,t){j0e("error",e)}function Eo(e){throw new Error(e)}function E4(e,t,n){return(t-e)*n+e}var g9="series\0",Y0e="\0_ec_\0";function oo(e){return e instanceof Array?e:e==null?[]:[e]}function I4(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var A4=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function l0(e){return Et(e)&&!pt(e)&&!(e instanceof Date)?e.value:e}function X0e(e){return Et(e)&&!(e instanceof Array)}function K0e(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=tn();ee(t,function(l,u){if(!Et(l)){t[u]=null;return}});var s=Z0e(e,a,n);return(r||i)&&q0e(s,e,a,t),r&&J0e(s,t),r||i?Q0e(s,t,i):o&&e1e(s,t),t1e(s),s}function Z0e(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||yy(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function q0e(e,t,n,r){ee(r,function(i,o){if(!(!i||i.id==null)){var a=Cm(i.id),s=n.get(a);if(s!=null){var l=e[s];ul(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function J0e(e,t){ee(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!yy(n)&&!yy(o)&&m9("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function Q0e(e,t,n){ee(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||yy(i.existing)||i.existing&&r.id!=null&&!m9("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function e1e(e,t){ee(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function t1e(e){var t=tn();ee(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),ee(e,function(n){var r=n.newOption;ul(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),ee(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(Et(o)){if(a.name=o.name!=null?Cm(o.name):i?i.name:g9+r,i)a.id=Cm(i.id);else if(o.id!=null)a.id=Cm(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function m9(e,t,n){var r=vs(t[e],null),i=vs(n[e],null);return r!=null&&i!=null&&r===i}function Cm(e){return vs(e,"")}function vs(e,t){return e==null?t:wt(e)?e:qn(e)||TA(e)?e+"":t}function vD(e){var t=e.name;return!!(t&&t.indexOf(g9))}function yy(e){return e&&e.id!=null&&Cm(e.id).indexOf(Y0e)===0}function n1e(e,t,n){ee(e,function(r){var i=r.newOption;Et(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=r1e(t,i,r.existing,n))})}function r1e(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function Nd(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return pt(t.dataIndex)?$t(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return pt(t.name)?$t(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function or(){var e="__ec_inner_"+i1e++;return function(t){return t[e]||(t[e]={})}}var i1e=h9();function ZE(e,t,n){var r=gD(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var f=u0(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function gD(e,t){var n;if(wt(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=tn(),o={},a=!1;return ee(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&wn(t.includeMainTypes,c)<0)){a=a||!!c;var h=i.get(c)||i.set(c,{});h[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Pa={useDefault:!0,enableAll:!1,enableNone:!1};function u0(e,t,n,r){r=r||Pa;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(i==="none"||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i==="all"&&(r.enableAll?i=o=a=null:i=-1),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s}function y9(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function o1e(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function a1e(e){return e==="auto"?zt.domSupported?"html":"richText":e||"html"}function s1e(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(qn(r)){var a=E4(n||0,r,i);return wi(a,o?Math.max(ql(n||0),ql(r)):t)}else{if(wt(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var h=e.getDimensionInfo(f);if(h&&h.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var d=l&&l[f]?l[f]:0,p=u[f],a=E4(d,p,i);s[f]=wi(a,o?Math.max(ql(d),ql(p)):t)}}return s}}var kn=or(),l1e=function(e,t,n,r){if(r){var i=kn(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=kn(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},P4=1,R4={},_9=or(),mD=or(),yD=0,c0=1,$x=2,cl=["emphasis","blur","select"],M4=["normal","emphasis","blur","select"],u1e=10,c1e=9,yd="highlight",Nb="downplay",QS="select",jA="unselect",ew="toggleSelect",_D="selectchanged";function xh(e){return e!=null&&e!=="none"}function Bx(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function b9(e){Bx(e,"emphasis",$x)}function S9(e){e.hoverState===$x&&Bx(e,"normal",yD)}function bD(e){Bx(e,"blur",c0)}function w9(e){e.hoverState===c0&&Bx(e,"normal",yD)}function f1e(e){e.selected=!0}function d1e(e){e.selected=!1}function D4(e,t,n){t(e,n)}function xu(e,t,n){D4(e,t,n),e.isGroup&&e.traverse(function(r){D4(r,t,n)})}function YA(e,t){switch(t){case"emphasis":e.hoverState=$x;break;case"normal":e.hoverState=yD;break;case"blur":e.hoverState=c0;break;case"select":e.selected=!0}}function h1e(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function p1e(e,t,n,r){var i=n&&wn(n,"select")>=0,o=!1;if(e instanceof Bn){var a=_9(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(xh(s)||xh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=et({},r),u=et({},u),u.fill=s):!xh(u.fill)&&xh(s)?(o=!0,r=et({},r),u=et({},u),u.fill=o4(s)):!xh(u.stroke)&&xh(l)&&(o||(r=et({},r),u=et({},u)),u.stroke=o4(l)),r.style=u}}if(r&&r.z2==null){o||(r=et({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??u1e)}return r}function v1e(e,t,n){if(n&&n.z2==null){n=et({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??c1e)}return n}function g1e(e,t,n){var r=wn(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:h1e(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=et({},n),a=et({opacity:r?i:o.opacity*.1},a),n.style=a),n}function qE(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return p1e(this,e,t,n);if(e==="blur")return g1e(this,e,n);if(e==="select")return v1e(this,e,n)}return n}function x9(e){e.stateProxy=qE;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=qE),n&&(n.stateProxy=qE)}function O4(e,t){!I9(e,t)&&!e.__highByOuter&&xu(e,b9)}function L4(e,t){!I9(e,t)&&!e.__highByOuter&&xu(e,S9)}function tw(e,t){e.__highByOuter|=1<<(t||0),xu(e,b9)}function nw(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&xu(e,S9)}function m1e(e){xu(e,bD)}function T9(e){xu(e,w9)}function C9(e){xu(e,f1e)}function E9(e){xu(e,d1e)}function I9(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function A9(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=mD(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){w9(u)}),s&&n.push(o)),a.isBlured=!1}),ee(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function XA(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var h=u.getItemGraphicEl(c[f]);h&&T9(h)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var h=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!h||t==="series"&&c)){var d=r.getViewOfSeriesModel(u);if(d.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||bD(y)}),$o(t))o(u.getData(),t);else if(Et(t))for(var p=ir(t),g=0;g<p.length;g++)o(u.getData(p[g]),t[p[g]]);l.push(u),mD(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function KA(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){mD(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){bD(o)})}}}function y1e(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Nd(i,t);o=(pt(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=kn(a);XA(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&XA(r,c,f,n)}}}function SD(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(kn(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function _1e(e,t,n){var r=kn(e),i=SD(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&KA(r.componentMainType,r.componentIndex,n),ee(o,function(s){return O4(s,t)})):(XA(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&KA(r.componentMainType,r.componentIndex,n),O4(e,t))}function b1e(e,t,n){A9(n);var r=kn(e),i=SD(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?ee(i,function(o){return L4(o,t)}):L4(e,t)}function S1e(e,t,n){if(eP(t)){var r=t.dataType,i=e.getData(r),o=Nd(i,t);pt(o)||(o=[o]),e[t.type===ew?"toggleSelect":t.type===QS?"select":"unselect"](o,r)}}function k4(e){var t=e.getAllData();ee(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?C9(o):E9(o)})})}function w1e(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();ee(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function ZA(e,t,n){P9(e,!0),xu(e,x9),T1e(e,t,n)}function x1e(e){P9(e,!1)}function qA(e,t,n,r){r?x1e(e):ZA(e,t,n)}function T1e(e,t,n){var r=kn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var N4=["emphasis","blur","select"],C1e={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function JA(e,t,n,r){n=n||"itemStyle";for(var i=0;i<N4.length;i++){var o=N4[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[C1e[n]]()}}function P9(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function QA(e){return!!(e&&e.__highDownDispatcher)}function E1e(e){var t=R4[e];return t==null&&P4<=32&&(t=R4[e]=P4++),t}function eP(e){var t=e.type;return t===QS||t===jA||t===ew}function F4(e){var t=e.type;return t===yd||t===Nb}function I1e(e){var t=_9(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Th=kd.CMD,A1e=[[],[],[]],$4=Math.sqrt,P1e=Math.atan2;function R1e(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,u,c=Th.M,f=Th.C,h=Th.L,d=Th.R,p=Th.A,g=Th.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case h:o=1;break;case f:o=3;break;case g:o=2;break;case p:var y=t[4],m=t[5],b=$4(t[0]*t[0]+t[1]*t[1]),w=$4(t[2]*t[2]+t[3]*t[3]),S=P1e(-t[1]/w,t[0]/b);n[a]*=b,n[a++]+=y,n[a]*=w,n[a++]+=m,n[a++]*=b,n[a++]*=w,n[a++]+=S,n[a++]+=S,a+=2,s=a;break;case d:u[0]=n[a++],u[1]=n[a++],io(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],io(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var C=A1e[l];C[0]=n[a++],C[1]=n[a++],io(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var JE=Math.sqrt,u_=Math.sin,c_=Math.cos,rg=Math.PI;function B4(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function tP(e,t){return(e[0]*t[0]+e[1]*t[1])/(B4(e)*B4(t))}function U4(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(tP(e,t))}function V4(e,t,n,r,i,o,a,s,l,u,c){var f=l*(rg/180),h=c_(f)*(e-n)/2+u_(f)*(t-r)/2,d=-1*u_(f)*(e-n)/2+c_(f)*(t-r)/2,p=h*h/(a*a)+d*d/(s*s);p>1&&(a*=JE(p),s*=JE(p));var g=(i===o?-1:1)*JE((a*a*(s*s)-a*a*(d*d)-s*s*(h*h))/(a*a*(d*d)+s*s*(h*h)))||0,y=g*a*d/s,m=g*-s*h/a,b=(e+n)/2+c_(f)*y-u_(f)*m,w=(t+r)/2+u_(f)*y+c_(f)*m,S=U4([1,0],[(h-y)/a,(d-m)/s]),C=[(h-y)/a,(d-m)/s],T=[(-1*h-y)/a,(-1*d-m)/s],E=U4(C,T);if(tP(C,T)<=-1&&(E=rg),tP(C,T)>=1&&(E=0),E<0){var P=Math.round(E/rg*1e6)/1e6;E=rg*2+P%2*rg}c.addData(u,b,w,a,s,S,E,f,o)}var M1e=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,D1e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function O1e(e){var t=new kd;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=kd.CMD,l=e.match(M1e);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),h=void 0,d=c.match(D1e)||[],p=d.length,g=0;g<p;g++)d[g]=parseFloat(d[g]);for(var y=0;y<p;){var m=void 0,b=void 0,w=void 0,S=void 0,C=void 0,T=void 0,E=void 0,P=n,I=r,D=void 0,O=void 0;switch(f){case"l":n+=d[y++],r+=d[y++],h=s.L,t.addData(h,n,r);break;case"L":n=d[y++],r=d[y++],h=s.L,t.addData(h,n,r);break;case"m":n+=d[y++],r+=d[y++],h=s.M,t.addData(h,n,r),i=n,o=r,f="l";break;case"M":n=d[y++],r=d[y++],h=s.M,t.addData(h,n,r),i=n,o=r,f="L";break;case"h":n+=d[y++],h=s.L,t.addData(h,n,r);break;case"H":n=d[y++],h=s.L,t.addData(h,n,r);break;case"v":r+=d[y++],h=s.L,t.addData(h,n,r);break;case"V":r=d[y++],h=s.L,t.addData(h,n,r);break;case"C":h=s.C,t.addData(h,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],r=d[y-1];break;case"c":h=s.C,t.addData(h,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r,d[y++]+n,d[y++]+r),n+=d[y-2],r+=d[y-1];break;case"S":m=n,b=r,D=t.len(),O=t.data,a===s.C&&(m+=n-O[D-4],b+=r-O[D-3]),h=s.C,P=d[y++],I=d[y++],n=d[y++],r=d[y++],t.addData(h,m,b,P,I,n,r);break;case"s":m=n,b=r,D=t.len(),O=t.data,a===s.C&&(m+=n-O[D-4],b+=r-O[D-3]),h=s.C,P=n+d[y++],I=r+d[y++],n+=d[y++],r+=d[y++],t.addData(h,m,b,P,I,n,r);break;case"Q":P=d[y++],I=d[y++],n=d[y++],r=d[y++],h=s.Q,t.addData(h,P,I,n,r);break;case"q":P=d[y++]+n,I=d[y++]+r,n+=d[y++],r+=d[y++],h=s.Q,t.addData(h,P,I,n,r);break;case"T":m=n,b=r,D=t.len(),O=t.data,a===s.Q&&(m+=n-O[D-4],b+=r-O[D-3]),n=d[y++],r=d[y++],h=s.Q,t.addData(h,m,b,n,r);break;case"t":m=n,b=r,D=t.len(),O=t.data,a===s.Q&&(m+=n-O[D-4],b+=r-O[D-3]),n+=d[y++],r+=d[y++],h=s.Q,t.addData(h,m,b,n,r);break;case"A":w=d[y++],S=d[y++],C=d[y++],T=d[y++],E=d[y++],P=n,I=r,n=d[y++],r=d[y++],h=s.A,V4(P,I,n,r,T,E,w,S,C,h,t);break;case"a":w=d[y++],S=d[y++],C=d[y++],T=d[y++],E=d[y++],P=n,I=r,n+=d[y++],r+=d[y++],h=s.A,V4(P,I,n,r,T,E,w,S,C,h,t);break}}(f==="z"||f==="Z")&&(h=s.Z,t.addData(h),n=i,r=o),a=h}return t.toStatic(),t}var R9=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t})(Bn);function M9(e){return e.setData!=null}function D9(e,t){var n=O1e(e),r=et({},t);return r.buildPath=function(i){var o=M9(i);if(o&&i.canSave()){i.appendPath(n);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=o?i.getContext():i;a&&n.rebuildPath(a,1)}},r.applyTransform=function(i){R1e(n,i),this.dirtyShape()},r}function L1e(e,t){return new R9(D9(e,t))}function k1e(e,t){var n=D9(e,t),r=(function(i){ft(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o})(R9);return r}function N1e(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Bn(t);return a.createPathProxy(),a.buildPath=function(s){if(M9(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var ci=(function(e){ft(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=wn(this._children,n);return i>=0&&this.replaceAt(r,i),this},t.prototype.replaceAt=function(n,r){var i=this._children,o=i[r];if(n&&n!==this&&n.parent!==this&&n!==o){i[r]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,i=this._children,o=wn(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,i=0;i<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new Wt(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(Wt.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},t})(Nx);ci.prototype.type="group";var F1e=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),Ux=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new F1e},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t})(Bn);Ux.prototype.type="circle";var $1e=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),wD=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new $1e},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},t})(Bn);wD.prototype.type="ellipse";var O9=Math.PI,QE=O9*2,xf=Math.sin,Ch=Math.cos,B1e=Math.acos,Pi=Math.atan2,H4=Math.abs,Em=Math.sqrt,Bg=Math.max,Ls=Math.min,Qa=1e-4;function U1e(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,h=f*l-c*u;if(!(h*h<Qa))return h=(c*(t-o)-f*(e-i))/h,[e+h*l,t+h*u]}function f_(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Em(s*s+l*l),c=u*l,f=-u*s,h=e+c,d=t+f,p=n+c,g=r+f,y=(h+p)/2,m=(d+g)/2,b=p-h,w=g-d,S=b*b+w*w,C=i-o,T=h*g-p*d,E=(w<0?-1:1)*Em(Bg(0,C*C*S-T*T)),P=(T*w-b*E)/S,I=(-T*b-w*E)/S,D=(T*w+b*E)/S,O=(-T*b+w*E)/S,N=P-y,M=I-m,k=D-y,V=O-m;return N*N+M*M>k*k+V*V&&(P=D,I=O),{cx:P,cy:I,x0:-c,y0:-f,x1:P*(i/C-1),y1:I*(i/C-1)}}function V1e(e){var t;if(pt(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function H1e(e,t){var n,r=Bg(t.r,0),i=Bg(t.r0||0,0),o=r>0,a=i>0;if(!(!o&&!a)){if(o||(r=i,i=0),i>r){var s=r;r=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=H4(u-l),p=d>QE&&d%QE;if(p>Qa&&(d=p),!(r>Qa))e.moveTo(c,f);else if(d>QE-Qa)e.moveTo(c+r*Ch(l),f+r*xf(l)),e.arc(c,f,r,l,u,!h),i>Qa&&(e.moveTo(c+i*Ch(u),f+i*xf(u)),e.arc(c,f,i,u,l,h));else{var g=void 0,y=void 0,m=void 0,b=void 0,w=void 0,S=void 0,C=void 0,T=void 0,E=void 0,P=void 0,I=void 0,D=void 0,O=void 0,N=void 0,M=void 0,k=void 0,V=r*Ch(l),B=r*xf(l),U=i*Ch(u),$=i*xf(u),J=d>Qa;if(J){var ae=t.cornerRadius;ae&&(n=V1e(ae),g=n[0],y=n[1],m=n[2],b=n[3]);var ne=H4(r-i)/2;if(w=Ls(ne,m),S=Ls(ne,b),C=Ls(ne,g),T=Ls(ne,y),I=E=Bg(w,S),D=P=Bg(C,T),(E>Qa||P>Qa)&&(O=r*Ch(u),N=r*xf(u),M=i*Ch(l),k=i*xf(l),d<O9)){var _e=U1e(V,B,M,k,O,N,U,$);if(_e){var me=V-_e[0],Me=B-_e[1],Re=O-_e[0],ke=N-_e[1],oe=1/xf(B1e((me*Re+Me*ke)/(Em(me*me+Me*Me)*Em(Re*Re+ke*ke)))/2),Ee=Em(_e[0]*_e[0]+_e[1]*_e[1]);I=Ls(E,(r-Ee)/(oe+1)),D=Ls(P,(i-Ee)/(oe-1))}}}if(!J)e.moveTo(c+V,f+B);else if(I>Qa){var we=Ls(m,I),Ae=Ls(b,I),Oe=f_(M,k,V,B,r,we,h),Ue=f_(O,N,U,$,r,Ae,h);e.moveTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),I<E&&we===Ae?e.arc(c+Oe.cx,f+Oe.cy,I,Pi(Oe.y0,Oe.x0),Pi(Ue.y0,Ue.x0),!h):(we>0&&e.arc(c+Oe.cx,f+Oe.cy,we,Pi(Oe.y0,Oe.x0),Pi(Oe.y1,Oe.x1),!h),e.arc(c,f,r,Pi(Oe.cy+Oe.y1,Oe.cx+Oe.x1),Pi(Ue.cy+Ue.y1,Ue.cx+Ue.x1),!h),Ae>0&&e.arc(c+Ue.cx,f+Ue.cy,Ae,Pi(Ue.y1,Ue.x1),Pi(Ue.y0,Ue.x0),!h))}else e.moveTo(c+V,f+B),e.arc(c,f,r,l,u,!h);if(!(i>Qa)||!J)e.lineTo(c+U,f+$);else if(D>Qa){var we=Ls(g,D),Ae=Ls(y,D),Oe=f_(U,$,O,N,i,-Ae,h),Ue=f_(V,B,M,k,i,-we,h);e.lineTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),D<P&&we===Ae?e.arc(c+Oe.cx,f+Oe.cy,D,Pi(Oe.y0,Oe.x0),Pi(Ue.y0,Ue.x0),!h):(Ae>0&&e.arc(c+Oe.cx,f+Oe.cy,Ae,Pi(Oe.y0,Oe.x0),Pi(Oe.y1,Oe.x1),!h),e.arc(c,f,i,Pi(Oe.cy+Oe.y1,Oe.cx+Oe.x1),Pi(Ue.cy+Ue.y1,Ue.cx+Ue.x1),h),we>0&&e.arc(c+Ue.cx,f+Ue.cy,we,Pi(Ue.y1,Ue.x1),Pi(Ue.y0,Ue.x0),!h))}else e.lineTo(c+U,f+$),e.arc(c,f,i,u,l,h)}e.closePath()}}}var z1e=(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})(),Vx=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new z1e},t.prototype.buildPath=function(n,r){H1e(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Bn);Vx.prototype.type="sector";var G1e=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),xD=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new G1e},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.PI*2;n.moveTo(i+r.r,o),n.arc(i,o,r.r,0,a,!1),n.moveTo(i+r.r0,o),n.arc(i,o,r.r0,0,a,!0)},t})(Bn);xD.prototype.type="ring";function W1e(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var h=0,d=e.length;h<d;h++)qh(c,c,e[h]),Jh(f,f,e[h]);qh(c,c,r[0]),Jh(f,f,r[1])}for(var h=0,d=e.length;h<d;h++){var p=e[h];if(n)l=e[h?h-1:d-1],u=e[(h+1)%d];else if(h===0||h===d-1){i.push(Aye(e[h]));continue}else l=e[h-1],u=e[h+1];Pye(o,u,l),RE(o,o,t);var g=MA(p,l),y=MA(p,u),m=g+y;m!==0&&(g/=m,y/=m),RE(a,o,-g),RE(s,o,y);var b=Z3([],p,a),w=Z3([],p,s);r&&(Jh(b,b,c),qh(b,b,f),Jh(w,w,c),qh(w,w,f)),i.push(b),i.push(w)}return n&&i.push(i.shift()),i}function L9(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=W1e(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=i[(s+1)%a];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;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var j1e=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),TD=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new j1e},t.prototype.buildPath=function(n,r){L9(n,r,!0)},t})(Bn);TD.prototype.type="polygon";var Y1e=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),CD=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Y1e},t.prototype.buildPath=function(n,r){L9(n,r,!1)},t})(Bn);CD.prototype.type="polyline";var X1e={},K1e=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),Oc=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new K1e},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=l9(X1e,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t})(Bn);Oc.prototype.type="line";var yo=[],Z1e=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function z4(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?e4:_i)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?e4:_i)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?t4:xo)(e.x1,e.cpx1,e.x2,t),(n?t4:xo)(e.y1,e.cpy1,e.y2,t)]}var Hx=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Z1e},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,h=r.percent;h!==0&&(n.moveTo(i,o),c==null||f==null?(h<1&&(YS(i,l,a,h,yo),l=yo[1],a=yo[2],YS(o,u,s,h,yo),u=yo[1],s=yo[2]),n.quadraticCurveTo(l,u,a,s)):(h<1&&(jS(i,l,c,a,h,yo),l=yo[1],c=yo[2],a=yo[3],jS(o,u,f,s,h,yo),u=yo[1],f=yo[2],s=yo[3]),n.bezierCurveTo(l,u,c,f,a,s)))},t.prototype.pointAt=function(n){return z4(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=z4(this.shape,n,!0);return Dye(r,r)},t})(Bn);Hx.prototype.type="bezier-curve";var q1e=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),zx=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new q1e},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*a+i,f*a+o),n.arc(i,o,a,s,l,!u)},t})(Bn);zx.prototype.type="arc";var J1e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bn.prototype.getBoundingRect.call(this)},t})(Bn),k9=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e})(),ED=(function(e){ft(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(k9),Q1e=(function(e){ft(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t})(k9),e2=Math.min,e_e=Math.max,d_=Math.abs,Tf=[0,0],Cf=[0,0],ni=zG(),h_=ni.minTv,p_=ni.maxTv,N9=(function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Hn;for(var r=0;r<2;r++)this._axes[r]=new Hn;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);Hn.sub(i[0],r[1],r[0]),Hn.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},e.prototype.intersect=function(t,n,r){var i=!0,o=!n;return n&&Hn.set(n,0,0),ni.reset(r,!o),!this._intersectCheckOneSide(this,t,o,1)&&(i=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(i=!1,o)||!o&&!ni.negativeSize&&Hn.copy(n,i?ni.useDir?ni.dirMinTv:h_:p_),i},e.prototype._intersectCheckOneSide=function(t,n,r,i){for(var o=!0,a=0;a<2;a++){var s=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,Tf),t._getProjMinMaxOnAxis(a,n._corners,Cf),ni.negativeSize||Tf[1]<Cf[0]||Tf[0]>Cf[1]){if(o=!1,ni.negativeSize||r)return o;var l=d_(Cf[0]-Tf[1]),u=d_(Tf[0]-Cf[1]);e2(l,u)>p_.len()&&(l<u?Hn.scale(p_,s,-l*i):Hn.scale(p_,s,u*i))}else if(!r){var l=d_(Cf[0]-Tf[1]),u=d_(Tf[0]-Cf[1]);(ni.useDir||e2(l,u)<h_.len())&&((l<u||!ni.bidirectional)&&(Hn.scale(h_,s,l*i),ni.useDir&&ni.calcDirMTV()),(l>=u||!ni.bidirectional)&&(Hn.scale(h_,s,-u*i),ni.useDir&&ni.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[t];s=e2(c,s),l=e_e(c,l)}r[0]=s+ni.touchThreshold,r[1]=l-ni.touchThreshold,ni.negativeSize=r[1]<r[0]},e})(),t_e=[],n_e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Wt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(t_e)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t})(s0),r_e=or();function i_e(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Ft(r.duration,200),c=Ft(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),Bt(f)&&(f=f(n,i)),Bt(u)&&(u=u(n));var h={duration:u||0,delay:f,easing:c};return h}else return null}function ID(e,t,n,r,i,o,a){var s=!1,l;Bt(i)?(a=o,o=i,i=null):Et(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=i_e(e,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,h=c.delay,d=c.easing,p={duration:f,delay:h||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function _s(e,t,n,r,i,o){ID("update",e,t,n,r,i,o)}function f0(e,t,n,r,i,o){ID("enter",e,t,n,r,i,o)}function Im(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function Fd(e,t,n,r,i,o){Im(e)||ID("leave",e,t,n,r,i,o)}function G4(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Fd(e,{style:{opacity:0}},t,n,r)}function o_e(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||G4(i,t,n,r)}):G4(e,t,n,r)}function a_e(e){r_e(e).oldStyle=e.style}var nP={},$f=["x","y"],_y=["width","height"];function s_e(e){return Bn.extend(e)}var l_e=k1e;function u_e(e,t){return l_e(e,t)}function ws(e,t){nP[e]=t}function c_e(e){if(nP.hasOwnProperty(e))return nP[e]}function AD(e,t,n,r){var i=L1e(e,t);return n&&(r==="center"&&(n=$9(n,i.getBoundingRect())),B9(i,n)),i}function F9(e,t,n){var r=new Gc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle($9(t,o))}}});return r}function $9(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var f_e=N1e;function B9(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function by(e,t){return l9(e,e,{lineWidth:t}),e}function d_e(e,t){return u9(e,e,t),e}var h_e=Xf;function p_e(e,t){for(var n=uD([]);e&&e!==t;)wm(n,e.getLocalTransform(),n),e=e.parent;return n}function PD(e,t,n){return t&&!$o(t)&&(t=Yf.getLocalTransform(t)),n&&(t=dv([],t)),io([],e,t)}function v_e(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Zs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Zs(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=PD(o,t,n),Zs(o[0])>Zs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function W4(e){return!e.isGroup}function g_e(e){return e.shape!=null}function U9(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){W4(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return g_e(a)&&(s.shape=hn(a.shape)),s}var o=r(e);t.traverse(function(a){if(W4(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),_s(a,l,n,kn(a).dataIndex)}}})}function m_e(e,t){return $t(e,function(n){var r=n[0];r=ra(r,t.x),r=my(r,t.x+t.width);var i=n[1];return i=ra(i,t.y),i=my(i,t.y+t.height),[r,i]})}function y_e(e,t){var n=ra(e.x,t.x),r=my(e.x+e.width,t.x+t.width),i=ra(e.y,t.y),o=my(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function RD(e,t,n){var r=et({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Mn(i,n),new Gc(r)):AD(e.replace("path://",""),r,n,"center")}function __e(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(V9(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function V9(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,h=t2(c,f,l,u);if(b_e(h))return!1;var d=e-i,p=t-o,g=t2(d,p,l,u)/h;if(g<0||g>1)return!1;var y=t2(d,p,c,f)/h;return!(y<0||y>1)}function t2(e,t,n,r){return e*r-n*t}function b_e(e){return e<=1e-6&&e>=-1e-6}function rw(e,t,n,r,i){return t==null||(qn(t)?jn[0]=jn[1]=jn[2]=jn[3]=t:(jn[0]=t[0],jn[1]=t[1],jn[2]=t[2],jn[3]=t[3]),r&&(jn[0]=ra(0,jn[0]),jn[1]=ra(0,jn[1]),jn[2]=ra(0,jn[2]),jn[3]=ra(0,jn[3])),n&&(jn[0]=-jn[0],jn[1]=-jn[1],jn[2]=-jn[2],jn[3]=-jn[3]),j4(e,jn,"x","width",3,1,i&&i[0]||0),j4(e,jn,"y","height",0,2,i&&i[1]||0)),e}var jn=[0,0,0,0];function j4(e,t,n,r,i,o,a){var s=t[o]+t[i],l=e[r];e[r]+=s,a=ra(0,my(a,l)),e[r]<a?(e[r]=a,e[n]+=t[i]>=0?-t[i]:t[o]>=0?l+t[o]:Zs(s)>1e-8?(l-a)*t[i]/s:0):e[n]-=t[i]}function Gx(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=wt(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&ee(ir(l),function(c){ps(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=kn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Mn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function rP(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function MD(e,t){if(e)if(pt(e))for(var n=0;n<e.length;n++)rP(e[n],t);else rP(e,t)}function DD(e){return!e||Zs(e[1])<v_&&Zs(e[2])<v_||Zs(e[0])<v_&&Zs(e[3])<v_}var v_=1e-5;function Sy(e,t){return e?Wt.copy(e,t):t.clone()}function OD(e,t){return t?cD(e||tl(),t):void 0}function wy(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function S_e(e){var t=-1/0,n=1/0;rP(e,function(o){r(o),r(o.getTextContent()),r(o.getTextGuideLine())});function r(o){if(!(!o||o.isGroup)){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)i(o.states[a[s]]);i(o)}}function i(o){if(o){var a=o.z2;a>t&&(t=a),a<n&&(n=a)}}return n>t&&(n=t=0),{min:n,max:t}}function H9(e,t,n){z9(e,t,n,-1/0)}function z9(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=ra(z9(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=ra(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+(u&&u.showAbove?1:-1))}return r}ws("circle",Ux);ws("ellipse",wD);ws("sector",Vx);ws("ring",xD);ws("polygon",TD);ws("polyline",CD);ws("rect",Kr);ws("line",Oc);ws("bezierCurve",Hx);ws("arc",zx);const w_e=Object.freeze(Object.defineProperty({__proto__:null,Arc:zx,BezierCurve:Hx,BoundingRect:Wt,Circle:Ux,CompoundPath:J1e,Ellipse:wD,Group:ci,Image:Gc,IncrementalDisplayable:n_e,Line:Oc,LinearGradient:ED,OrientedBoundingRect:N9,Path:Bn,Point:Hn,Polygon:TD,Polyline:CD,RadialGradient:Q1e,Rect:Kr,Ring:xD,Sector:Vx,Text:Uo,WH:_y,XY:$f,applyTransform:PD,calcZ2Range:S_e,clipPointsByRect:m_e,clipRectByRect:y_e,createIcon:RD,ensureCopyRect:Sy,ensureCopyTransform:OD,expandOrShrinkRect:rw,extendPath:u_e,extendShape:s_e,getShapeClass:c_e,getTransform:p_e,groupTransition:U9,initProps:f0,isBoundingRectAxisAligned:DD,isElementRemoved:Im,lineLineIntersect:V9,linePolygonIntersect:__e,makeImage:F9,makePath:AD,mergePath:f_e,registerShape:ws,removeElement:Fd,removeElementWithFadeOut:o_e,resizePath:B9,retrieveZInfo:wy,setTooltipConfig:Gx,subPixelOptimize:h_e,subPixelOptimizeLine:by,subPixelOptimizeRect:d_e,transformDirection:v_e,traverseElements:MD,traverseUpdateZ:H9,updateProps:_s},Symbol.toStringTag,{value:"Module"}));var Wx={};function x_e(e,t){for(var n=0;n<cl.length;n++){var r=cl[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function Y4(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=Bt(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},u=0;u<cl.length;u++){var c=cl[u],f=t[c];l[c]=Ft(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function LD(e,t,n,r){n=n||Wx;for(var i=e instanceof Uo,o=!1,a=0;a<M4.length;a++){var s=t[M4[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new Uo,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Y4(n,t),c=t.normal,f=!!c.getShallow("show"),h=Xp(c,r&&r.normal,n,!1,!i);h.text=u.normal,i||e.setTextConfig(X4(c,n,!1));for(var a=0;a<cl.length;a++){var d=cl[a],s=t[d];if(s){var p=l.ensureState(d),g=!!Ft(s.getShallow("show"),f);if(g!==f&&(p.ignore=!g),p.style=Xp(s,r&&r[d],n,!0,!i),p.style.text=u[d],!i){var y=e.ensureState(d);y.textConfig=X4(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!f,l.useStyle(h),l.dirty(),n.enableTextSetter&&(G9(l).setLabelText=function(m){var b=Y4(n,t,m);x_e(l,b)})}else l&&(l.ignore=!0);e.dirty()}function kD(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<cl.length;r++){var i=cl[r];n[i]=e.getModel([i,t])}return n}function Xp(e,t,n,r,i){var o={};return T_e(o,e,n,r,i),t&&et(o,t),o}function X4(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=Ft(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function T_e(e,t,n,r,i){n=n||Wx;var o=t.ecModel,a=o&&o.option.textStyle,s=C_e(t),l;if(s){l={};var u="richInheritPlainLabel",c=Ft(t.get(u),o?o.get(u):void 0);for(var f in s)if(s.hasOwnProperty(f)){var h=t.getModel(["rich",f]);J4(l[f]={},h,a,t,c,n,r,i,!1,!0)}}l&&(e.rich=l);var d=t.get("overflow");d&&(e.overflow=d);var p=t.get("lineOverflow");p&&(e.lineOverflow=p);var g=e,y=t.get("minMargin");if(y!=null)y=qn(y)?y/2:0,g.margin=[y,y,y,y],g.__marginType=ep.minMargin;else{var m=t.get("textMargin");m!=null&&(g.margin=sD(m),g.__marginType=ep.textMargin)}J4(e,t,a,null,null,n,r,i,!0,!1)}function C_e(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Wx).rich;if(n){t=t||{};for(var r=ir(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var K4=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Z4=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],q4=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function J4(e,t,n,r,i,o,a,s,l,u){n=!a&&n||Wx;var c=o&&o.inheritColor,f=t.getShallow("color"),h=t.getShallow("textBorderColor"),d=Ft(t.getShallow("opacity"),n.opacity);(f==="inherit"||f==="auto")&&(c?f=c:f=null),(h==="inherit"||h==="auto")&&(c?h=c:h=null),s||(f=f||n.color,h=h||n.textBorderColor),f!=null&&(e.fill=f),h!=null&&(e.stroke=h);var p=Ft(t.getShallow("textBorderWidth"),n.textBorderWidth);p!=null&&(e.lineWidth=p);var g=Ft(t.getShallow("textBorderType"),n.textBorderType);g!=null&&(e.lineDash=g);var y=Ft(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);y!=null&&(e.lineDashOffset=y),!a&&d==null&&!u&&(d=o&&o.defaultOpacity),d!=null&&(e.opacity=d),!a&&!s&&e.fill==null&&o.inheritColor&&(e.fill=o.inheritColor);for(var m=0;m<K4.length;m++){var b=K4[m],w=i!==!1&&r?yp(t.getShallow(b),r.getShallow(b),n[b]):Ft(t.getShallow(b),n[b]);w!=null&&(e[b]=w)}for(var m=0;m<Z4.length;m++){var b=Z4[m],w=t.getShallow(b);w!=null&&(e[b]=w)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!l||!o.disableBox){for(var m=0;m<q4.length;m++){var b=q4[m],w=t.getShallow(b);w!=null&&(e[b]=w)}var C=t.getShallow("borderType");C!=null&&(e.borderDash=C),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&c&&(e.backgroundColor=c),(e.borderColor==="auto"||e.borderColor==="inherit")&&c&&(e.borderColor=c)}}function E_e(e,t){var n=t&&t.getModel("textStyle");return Xs([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var G9=or(),ep={minMargin:1,textMargin:2},I_e=["textStyle","color"],n2=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],r2=new Uo,A_e=(function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(I_e):null)},e.prototype.getFont=function(){return E_e({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<n2.length;r++)n[n2[r]]=this.getShallow(n2[r]);return r2.useStyle(n),r2.update(),r2.getBoundingRect()},e})(),W9=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],P_e=vy(W9),R_e=(function(){function e(){}return e.prototype.getLineStyle=function(t){return P_e(this,t)},e})(),j9=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],M_e=vy(j9),D_e=(function(){function e(){}return e.prototype.getItemStyle=function(t,n){return M_e(this,t,n)},e})(),fr=(function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){Rn(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(hn(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!zt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e})();lD(fr);iye(fr);hl(fr,R_e);hl(fr,D_e);hl(fr,uye);hl(fr,A_e);function ig(e){return e==null?0:e.length||1}function Q4(e){return e}var O_e=(function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||Q4,this._newKeyGetter=i||Q4,this.context=o,this._diffModeMultiple=a==="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,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],u=ig(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=i[l],f=ig(u),h=ig(c);if(f>1&&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;d<f;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=ig(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=ig(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e})(),Y9=tn(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ca="original",zi="arrayRows",xs="objectRows",pl="keyedColumns",Tc="typedArray",X9="unknown",ol="column",Wd="row",Zo={Must:1,Might:2,Not:3},K9=or();function L_e(e){K9(e).datasetMap=tn()}function k_e(e,t,n){var r={},i=Z9(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=K9(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),ee(e,function(g,y){var m=Et(g)?g:e[y]={name:g};m.type==="ordinal"&&c==null&&(c=y,f=p(m)),r[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});ee(e,function(g,y){var m=g.name,b=p(g);if(c==null){var w=h.valueWayDim;d(r[m],w,b),d(a,w,b),h.valueWayDim+=b}else if(c===y)d(r[m],0,b),d(o,0,b);else{var w=h.categoryWayDim;d(r[m],w,b),d(a,w,b),h.categoryWayDim+=b}});function d(g,y,m){for(var b=0;b<m;b++)g.push(y+b)}function p(g){var y=g.dimsDef;return y?y.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function Z9(e){var t=e.get("data",!0);if(!t)return u0(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Pa).models[0]}function N_e(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:u0(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Pa).models}function q9(e,t){return F_e(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function F_e(e,t,n,r,i,o){var a,s=5;if(Bo(e))return Zo.Not;var l,u;if(r){var c=r[o];Et(c)?(l=c.name,u=c.type):wt(c)&&(l=c)}if(u!=null)return u==="ordinal"?Zo.Must:Zo.Not;if(t===zi){var f=e;if(n===Wd){for(var h=f[o],d=0;d<(h||[]).length&&d<s;d++)if((a=S(h[i+d]))!=null)return a}else for(var d=0;d<f.length&&d<s;d++){var p=f[i+d];if(p&&(a=S(p[o]))!=null)return a}}else if(t===xs){var g=e;if(!l)return Zo.Not;for(var d=0;d<g.length&&d<s;d++){var y=g[d];if(y&&(a=S(y[l]))!=null)return a}}else if(t===pl){var m=e;if(!l)return Zo.Not;var h=m[l];if(!h||Bo(h))return Zo.Not;for(var d=0;d<h.length&&d<s;d++)if((a=S(h[d]))!=null)return a}else if(t===ca)for(var b=e,d=0;d<b.length&&d<s;d++){var y=b[d],w=l0(y);if(!pt(w))return Zo.Not;if((a=S(w[o]))!=null)return a}function S(C){var T=wt(C);if(C!=null&&Number.isFinite(Number(C))&&C!=="")return T?Zo.Might:Zo.Not;if(T&&C!=="-")return Zo.Must}return Zo.Not}var jx=(function(){function e(t){this.data=t.data||(t.sourceFormat===pl?{}:[]),this.sourceFormat=t.sourceFormat||X9,this.seriesLayoutBy=t.seriesLayoutBy||ol,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&q9(this,r)===Zo.Must&&(i.type="ordinal")}}return e})();function ND(e){return e instanceof jx}function iP(e,t,n){n=n||Q9(e);var r=t.seriesLayoutBy,i=B_e(e,n,r,t.sourceHeader,t.dimensions),o=new jx({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:hn(t)});return o}function J9(e){return new jx({data:e,sourceFormat:Bo(e)?Tc:ca})}function $_e(e){return new jx({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:hn(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Q9(e){var t=X9;if(Bo(e))t=Tc;else if(pt(e)){e.length===0&&(t=zi);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(pt(i)||Bo(i)){t=zi;break}else if(Et(i)){t=xs;break}}}}else if(Et(e)){for(var o in e)if(ps(e,o)&&$o(e[o])){t=pl;break}}return t}function B_e(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:e$(i),startIndex:a,dimensionsDetectedCount:o};if(t===zi){var s=e;r==="auto"||r==null?t$(function(u){u!=null&&u!=="-"&&(wt(u)?a==null&&(a=1):a=0)},n,s,10):a=qn(r)?r:r?1:0,!i&&a===1&&(i=[],t$(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===Wd?s.length:s[0]?s[0].length:null}else if(t===xs)i||(i=U_e(e));else if(t===pl)i||(i=[],ee(e,function(u,c){i.push(c)}));else if(t===ca){var l=l0(e[0]);o=pt(l)&&l.length||1}return{startIndex:a,dimensionsDefine:e$(i),dimensionsDetectedCount:o}}function U_e(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return ir(n)}function e$(e){if(e){var t=tn();return $t(e,function(n,r){n=Et(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function t$(e,t,n,r){if(t===Wd)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function e7(e){var t=e.sourceFormat;return t===xs||t===pl}var Ef,If,Af,Pf,n$,r$,t7=(function(){function e(t,n){var r=ND(t)?t:J9(t);this._source=r;var i=this._data=r.data,o=r.sourceFormat;r.seriesLayoutBy,o===Tc&&(this._offset=0,this._dimSize=n,this._data=i),r$(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;r$=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,h=l.dimensionsDefine,d=n$[FD(u,c)];if(et(a,d),u===Tc)a.getItem=n,a.count=i,a.fillStorage=r;else{var p=n7(u,c);a.getItem=mn(p,null,s,f,h);var g=r7(u,c);a.count=mn(g,null,s,f,h)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,h=0;h<f;h++){for(var d=u[h],p=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],y=s-a,m=l[h],b=0;b<y;b++){var w=c[b*f+h];m[a+b]=w,w<p&&(p=w),w>g&&(g=w)}d[0]=p,d[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};n$=(t={},t[zi+"_"+ol]={pure:!0,appendData:o},t[zi+"_"+Wd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[xs]={pure:!0,appendData:o},t[pl]={pure:!0,appendData:function(a){var s=this._data;ee(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ca]={appendData:o},t[Tc]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),e})(),g_=function(e){pt(e)||v9("series.data or dataset.source must be an array.")};Ef={},Ef[zi+"_"+ol]=g_,Ef[zi+"_"+Wd]=g_,Ef[xs]=g_,Ef[pl]=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].name;r==null&&v9("dimension name must not be null/undefined.")}},Ef[ca]=g_;var i$=function(e,t,n,r){return e[r]},V_e=(If={},If[zi+"_"+ol]=function(e,t,n,r){return e[r+t]},If[zi+"_"+Wd]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},If[xs]=i$,If[pl]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=s!=null?e[s]:null;o[a]=l?l[r]:null}return o},If[ca]=i$,If);function n7(e,t){var n=V_e[FD(e,t)];return n}var o$=function(e,t,n){return e.length},H_e=(Af={},Af[zi+"_"+ol]=function(e,t,n){return Math.max(0,e.length-t)},Af[zi+"_"+Wd]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Af[xs]=o$,Af[pl]=function(e,t,n){var r=n[0].name,i=r!=null?e[r]:null;return i?i.length:0},Af[ca]=o$,Af);function r7(e,t){var n=H_e[FD(e,t)];return n}var i2=function(e,t,n){return e[t]},z_e=(Pf={},Pf[zi]=i2,Pf[xs]=function(e,t,n){return e[n]},Pf[pl]=i2,Pf[ca]=function(e,t,n){var r=l0(e);return r instanceof Array?r[t]:r},Pf[Tc]=i2,Pf);function i7(e){var t=z_e[e];return t}function FD(e,t){return e===zi?e+"_"+t:e}function Kp(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return i7(o)(r,a,s)}else{var l=r;return o===ca&&(l=l0(r)),l}}}}var G_e=(function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function W_e(e,t){var n={},r=n.encode={},i=tn(),o=[],a=[],s={};ee(e.dimensions,function(h){var d=e.getDimensionInfo(h),p=d.coordDim;if(p){var g=d.coordDimIndex;o2(r,p)[g]=h,d.isExtraCoord||(i.set(p,1),Y_e(d.type)&&(o[0]=h),o2(s,p)[g]=e.getDimensionIndex(d.name)),d.defaultTooltip&&a.push(h)}Y9.each(function(y,m){var b=o2(r,m),w=d.otherDims[m];w!=null&&w!==!1&&(b[w]=d.name)})});var l=[],u={};i.each(function(h,d){var p=r[d];u[d]=p[0],l=l.concat(p)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=$t(l,function(h){return e.getDimensionInfo(h).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new G_e(s,t),n}function o2(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function j_e(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Y_e(e){return!(e==="ordinal"||e==="time")}var Fb=(function(){function e(t){this.otherDims={},t!=null&&et(this,t)}return e})();function $b(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!qn(e)&&e!=null&&e!=="-"&&(e=+pv(e)),e==null||e===""?NaN:Number(e))}tn({number:function(e){return parseFloat(e)},time:function(e){return+pv(e)},trim:function(e){return wt(e)?Xs(e):e}});var X_e=(function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=qn(t)?t:JS(t),i=qn(n)?n:JS(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=wt(t),l=wt(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},e})(),Yx="undefined",K_e=typeof Uint32Array===Yx?Array:Uint32Array,Z_e=typeof Uint16Array===Yx?Array:Uint16Array,o7=typeof Int32Array===Yx?Array:Int32Array,a$=typeof Float64Array===Yx?Array:Float64Array,a7={float:a$,int:o7,ordinal:Array,number:Array,time:a$},a2;function Eh(e){return e>65535?K_e:Z_e}function Ih(){return[1/0,-1/0]}function q_e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function s$(e,t,n,r,i){var o=a7[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var oP=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=tn()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=a2[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],e7(i),this._dimensions=$t(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new a7[n||"float"](this._rawCount),this._rawExtent[o]=Ih(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=Ih());for(var l=o[t],u=a;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=i[u];s$(r,u,c.type,l,!0)}for(var f=[],h=s;h<l;h++)for(var d=h-s,p=0;p<o;p++){var c=i[p],g=a2.arrayRows.call(this,t[d]||f,c.property,d,p);r[p][h]=g;var y=a[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=$t(a,function(b){return b.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=Ih()),s$(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var h=[],d=t;d<n;d++){h=i.getItem(d,h);for(var p=0;p<s;p++){var g=o[p],y=this._dimValueGetter(h,u[p],d,p);g[d]=y;var m=l[p];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){t=new r(i);for(var o=0;o<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=Eh(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=Eh(r._rawCount),a=new o(i),s=[],l=t.length,u=0,c=t[0],f=r._chunks,h=0;h<i;h++){var d=void 0,p=r.getRawIndex(h);if(l===0)d=n(h);else if(l===1){var g=f[c][p];d=n(g,h)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][p];s[y]=h,d=n.apply(null,s)}d&&(a[u++]=p)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=ir(t),o=i.length;if(!o)return this;var a=n.count(),s=Eh(n._rawCount),l=new s(a),u=0,c=i[0],f=t[c][0],h=t[c][1],d=n._chunks,p=!1;if(!n._indices){var g=0;if(o===1){for(var y=d[i[0]],m=0;m<r;m++){var b=y[m];(b>=f&&b<=h||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(o===2){for(var y=d[i[0]],w=d[i[1]],S=t[i[1]][0],C=t[i[1]][1],m=0;m<r;m++){var b=y[m],T=w[m];(b>=f&&b<=h||isNaN(b))&&(T>=S&&T<=C||isNaN(T))&&(l[u++]=g),g++}p=!0}}if(!p)if(o===1)for(var m=0;m<a;m++){var E=n.getRawIndex(m),b=d[i[0]][E];(b>=f&&b<=h||isNaN(b))&&(l[u++]=E)}else for(var m=0;m<a;m++){for(var P=!0,E=n.getRawIndex(m),I=0;I<o;I++){var D=i[I],b=d[D][E];(b<t[D][0]||b>t[D][1])&&(P=!1)}P&&(l[u++]=n.getRawIndex(m))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Ih();for(var f=0;f<s;f++){for(var h=t.getRawIndex(f),d=0;d<a;d++)l[d]=i[n[d]][h];l[a]=f;var p=r&&r.apply(null,l);if(p!=null){typeof p!="object"&&(o[0]=p,p=o);for(var c=0;c<p.length;c++){var g=n[c],y=p[c],m=u[g],b=i[g];b&&(b[h]=y),y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),i=r._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,h,d=new(Eh(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var p=1;p<a-1;p+=l){for(var g=Math.min(p+l,a-1),y=Math.min(p+l*2,a),m=(y+g)/2,b=0,w=g;w<y;w++){var S=this.getRawIndex(w),C=o[S];isNaN(C)||(b+=C)}b/=y-g;var T=p,E=Math.min(p+l,a),P=p-1,I=o[u];c=-1,h=T;for(var D=-1,O=0,w=T;w<E;w++){var S=this.getRawIndex(w),C=o[S];if(isNaN(C)){O++,D<0&&(D=S);continue}f=Math.abs((P-m)*(C-I)-(P-w)*(b-I)),f>c&&(c=f,h=S)}O>0&&O<E-T&&(d[s++]=Math.min(D,h),h=Math.max(D,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(a-1),r._count=s,r._indices=d,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(Eh(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,h=a[this.getRawIndex(f)],d=c,p=a[this.getRawIndex(d)],g=o;c+o>s&&(g=s-c);for(var y=0;y<g;y++){var m=this.getRawIndex(c+y),b=a[m];b<h&&(h=b,f=c+y),b>p&&(p=b,d=c+y)}var w=this.getRawIndex(f),S=this.getRawIndex(d);f<d?(l[u++]=w,l[u++]=S):(l[u++]=S,l[u++]=w)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[t],c=this.count(),f=o._rawExtent[t]=Ih(),h=new(Eh(this._rawCount))(Math.ceil(c/l)),d=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var g=0;g<l;g++){var y=this.getRawIndex(p+g);s[g]=u[y]}var m=r(s),b=this.getRawIndex(Math.min(p+i(s,m)||0,c-1));u[b]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),h[d++]=b}return o._count=d,o._indices=h,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=Ih();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&fv(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?q_e(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=hn(this._extent),t._rawExtent=hn(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,r,i,o){return $b(n[o],this._dimensions[o])}a2={arrayRows:t,objectRows:function(n,r,i,o){return $b(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return $b(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}})(),e})(),J_e=or(),Q_e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},s7=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=c7(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Ft(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=e7(this.source),r=!f7(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var h=this.getSourceDimension(a);h&&(l=n?h.name:null,u=h.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Q_e[u]||"f",c&&(i+=c.uid),i+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:o,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function l7(e){return e instanceof s7}function u7(e){for(var t=tn(),n=0;n<(e||[]).length;n++){var r=e[n],i=Et(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function c7(e){var t=J_e(e);return t.dimNameMap||(t.dimNameMap=u7(e.dimensionsDefine))}function f7(e){return e>30}var og=Et,Hu=$t,ebe=typeof Int32Array>"u"?Array:Int32Array,tbe="e\0\0",l$=-1,nbe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],rbe=["_approximateExtent"],u$,m_,ag,sg,s2,lg,l2,d7=(function(){function e(t,n){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,i=!1;l7(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],h=wt(f)?new Fb({name:f}):f instanceof Fb?f:new Fb(f),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};a.push(d),o[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]);var g=c;qn(h.storeDimIndex)&&(g=h.storeDimIndex),p.itemName===0&&(this._nameDimIdx=g),p.itemId===0&&(this._idDimIdx=g),i&&(h.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=tn();ee(a,function(m){y.set(o[m].storeDimIndex,m)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(qn(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof oP&&(o=t),!o){var a=this.dimensions,s=ND(t)||$o(t)?new t7(t,a.length):t;o=new oP;var l=Hu(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=W_e(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&l2(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Tc&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===ca;if(l&&!i.pure)for(var u=[],c=t;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&X0e(f)&&(this.hasItemOption=!0),f){var h=f.name;o[c]==null&&h!=null&&(o[c]=vs(h,null));var d=f.id;a[c]==null&&d!=null&&(a[c]=vs(d,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)l2(this,c);u$(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){og(t)?et(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=ag(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return m_(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return pt(t)?i.getValues(Hu(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?l$:i},e.prototype.each=function(t,n,r){Bt(t)&&(r=n,n=t,t=[]);var i=r||this,o=Hu(sg(t),this._getStoreDimIndex,this);this._store.each(o,i?mn(n,i):n)},e.prototype.filterSelf=function(t,n,r){Bt(t)&&(r=n,n=t,t=[]);var i=r||this,o=Hu(sg(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?mn(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=ir(t);return ee(i,function(o){var a=n._getStoreDimIndex(o);r[a]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){Bt(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var o=r||i||this,a=Hu(sg(t),this._getStoreDimIndex,this),s=lg(this);return s._store=this._store.map(a,o?mn(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=Hu(sg(t),this._getStoreDimIndex,this);this._store.modify(a,o?mn(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=lg(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=lg(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=lg(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new fr(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new O_e(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return m_(t,r)},function(r){return m_(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},og(t)?et(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),pt(o)?o=o.slice():og(o)&&(o=et({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,og(n)?et(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){og(t)?et(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?et(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;l1e(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){ee(this._graphicEls,function(r,i){r&&t&&t.call(n,r,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Hu(this.dimensions,this._getDimInfo,this),this.hostModel)),s2(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Bt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(aD(arguments)))})},e.internalField=(function(){u$=function(t){var n=t._invertedIndicesMap;ee(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new ebe(a.categories.length);for(var l=0;l<r.length;l++)r[l]=l$;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},ag=function(t,n,r){return vs(t._getCategory(n,r),null)},m_=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=ag(t,t._idDimIdx,n)),r==null&&(r=tbe+n),r},sg=function(t){return pt(t)||(t=t!=null?[t]:[]),t},lg=function(t){var n=new e(t._schema?t._schema:Hu(t.dimensions,t._getDimInfo,t),t.hostModel);return s2(n,t),n},s2=function(t,n){ee(nbe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,ee(rbe,function(r){t[r]=hn(n[r])}),t._calculationInfo=et({},n._calculationInfo)},l2=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=ag(t,o,n)),l==null&&a!=null&&(i[n]=l=ag(t,a,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}})(),e})();function h7(e,t){ND(e)||(e=J9(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=tn(),o=[],a=obe(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&f7(a),l=r===e.dimensionsDefine,u=l?c7(e):u7(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=tn(c),h=new o7(a),d=0;d<h.length;d++)h[d]=-1;function p(I){var D=h[I];if(D<0){var O=r[I],N=Et(O)?O:{name:O},M=new Fb,k=N.name;k!=null&&u.get(k)!=null&&(M.name=M.displayName=k),N.type!=null&&(M.type=N.type),N.displayName!=null&&(M.displayName=N.displayName);var V=o.length;return h[I]=V,M.storeDimIndex=I,o.push(M),M}return o[D]}if(!s)for(var d=0;d<a;d++)p(d);f.each(function(I,D){var O=oo(I).slice();if(O.length===1&&!wt(O[0])&&O[0]<0){f.set(D,!1);return}var N=f.set(D,[]);ee(O,function(M,k){var V=wt(M)?u.get(M):M;V!=null&&V<a&&(N[k]=V,y(p(V),D,k))})});var g=0;ee(n,function(I){var D,O,N,M;if(wt(I))D=I,M={};else{M=I,D=M.name;var k=M.ordinalMeta;M.ordinalMeta=null,M=et({},M),M.ordinalMeta=k,O=M.dimsDef,N=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var V=f.get(D);if(V!==!1){if(V=oo(V),!V.length)for(var B=0;B<(O&&O.length||1);B++){for(;g<a&&p(g).coordDim!=null;)g++;g<a&&V.push(g++)}ee(V,function(U,$){var J=p(U);if(l&&M.type!=null&&(J.type=M.type),y(Mn(J,M),D,$),J.name==null&&O){var ae=O[$];!Et(ae)&&(ae={name:ae}),J.name=J.displayName=ae.name,J.defaultTooltip=ae.defaultTooltip}N&&Mn(J.otherDims,N)})}});function y(I,D,O){Y9.get(D)!=null?I.otherDims[D]=O:(I.coordDim=D,I.coordDimIndex=O,i.set(D,!0))}var m=t.generateCoord,b=t.generateCoordCount,w=b!=null;b=m?b||1:0;var S=m||"value";function C(I){I.name==null&&(I.name=I.coordDim)}if(s)ee(o,function(I){C(I)}),o.sort(function(I,D){return I.storeDimIndex-D.storeDimIndex});else for(var T=0;T<a;T++){var E=p(T),P=E.coordDim;P==null&&(E.coordDim=abe(S,i,w),E.coordDimIndex=0,(!m||b<=0)&&(E.isExtraCoord=!0),b--),C(E),E.type==null&&(q9(e,T)===Zo.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return ibe(o),new s7({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function ibe(e){for(var t=tn(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function obe(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return ee(t,function(o){var a;Et(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function abe(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Bb={},u2={},$D=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,n){this._nonSeriesBoxMasterList=r(Bb),this._normalMasterList=r(u2);function r(i,o){var a=[];return ee(i,function(s,l){var u=s.create(t,n);a=a.concat(u||[])}),a}},e.prototype.update=function(t,n){ee(this._normalMasterList,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,n){if(t==="matrix"||t==="calendar"){Bb[t]=n;return}u2[t]=n},e.get=function(t){return u2[t]||Bb[t]},e})();function sbe(e){return!!Bb[e]}var c$={coord:1,coord2:2},lbe=tn();function ube(e){var t=e.getShallow("coord",!0),n=c$.coord;if(t==null){var r=lbe.get(e.type);r&&r.getCoord2&&(n=c$.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Yl={none:0,dataCoordSys:1,boxCoordSys:2};function cbe(e,t){var n=e.getShallow("coordinateSystem"),r=e.getShallow("coordinateSystemUsage",!0),i=Yl.none;if(n){var o=e.mainType==="series";r==null&&(r=o?"data":"box"),r==="data"?(i=Yl.dataCoordSys,o||(i=Yl.none)):r==="box"&&(i=Yl.boxCoordSys,!o&&!sbe(n)&&(i=Yl.none))}return{coordSysType:n,kind:i}}function fbe(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,o=cbe(t),a=o.kind,s=o.coordSysType;if(i&&a!==Yl.dataCoordSys&&(a=Yl.dataCoordSys,s=n),a===Yl.none||s!==n)return!1;var l=r(n,t);return l?(a===Yl.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var dbe=(function(){function e(t){this.coordSysDims=[],this.axisMap=tn(),this.categoryAxisMap=tn(),this.coordSysName=t}return e})();function hbe(e){var t=e.get("coordinateSystem"),n=new dbe(t),r=pbe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var pbe={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Pa).models[0],o=e.getReferringComponents("yAxis",Pa).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Ah(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Ah(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Pa).models[0];t.coordSysDims=["single"],n.set("single",i),Ah(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Pa).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Ah(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Ah(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();ee(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Ah(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,n,r){var i=e.getReferringComponents("matrix",Pa).models[0];t.coordSysDims=["x","y"];var o=i.getDimensionModel("x"),a=i.getDimensionModel("y");n.set("x",o),n.set("y",a),r.set("x",o),r.set("y",a)}};function Ah(e){return e.get("type")==="category"}function vbe(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;gbe(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,h;if(ee(o,function(b,w){wt(b)&&(o[w]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,p=c.type,g=0;ee(o,function(b){b.coordDim===d&&g++});var y={name:f,coordDim:d,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),a.appendCalculationDimension(y),a.appendCalculationDimension(m)):(o.push(y),o.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:f}}function gbe(e){return!l7(e.schema)}function xy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function mbe(e,t){return xy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ybe(e,t){var n=e.get("coordinateSystem"),r=$D.get(n),i;return t&&t.coordSysDims&&(i=$t(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=j_e(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function _be(e,t,n){var r,i;return n&&ee(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function bbe(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===ca;var a=hbe(t),s=ybe(t,a),l=n.useEncodeDefaulter,u=Bt(l)?l:l?Dr(k_e,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=h7(i,c),h=_be(f.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(f),p=vbe(t,{schema:f,store:d}),g=new d7(f,t);g.setCalculationInfo(p);var y=h!=null&&Sbe(i)?function(m,b,w,S){return S===h?w:this.defaultDimValueGetter(m,b,w,S)}:null;return g.hasItemOption=!1,g.initData(o?i:d,null,y),g}function Sbe(e){if(e.sourceFormat===ca){var t=wbe(e.data||[]);return!pt(l0(t))}}function wbe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var xbe=Math.round(Math.random()*10);function Xx(e){return[e||"",xbe++].join("_")}function Tbe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=Ks(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=Ks(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function Cbe(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,h={};for(ee(o,function(b){h[b]=!0});f.length;){var d=f.pop(),p=c[d],g=!!h[d];g&&(s.call(l,d,p.originalDeps.slice()),delete h[d]),ee(p.successor,g?m:y)}ee(h,function(){var b="";throw new Error(b)});function y(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function m(b){h[b]=!0,y(b)}};function n(o){var a={},s=[];return ee(o,function(l){var u=r(a,l),c=u.originalDeps=t(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),ee(f,function(h){wn(u.predecessor,h)<0&&u.predecessor.push(h);var d=r(a,h);wn(d.successor,h)<0&&d.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return ee(o,function(l){wn(a,l)>=0&&s.push(l)}),s}}function Ebe(e,t){return Rn(Rn({},e,!0),t,!0)}var Ibe=Math.log(2);function aP(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/Ibe);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,h=0,d=0;h<s;h++){var p=1<<h;p&i||(f+=(d%2?-1:1)*e[n][h]*aP(e,t-1,c,u,i|p,o),d++)}return o[a]=f,f}function f$(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=aP(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*aP(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var iw="___zrEVENTSAVED",c2=[];function Abe(e,t,n,r,i){return sP(c2,t,r,i,!0)&&sP(e,n,c2[0],c2[1])}function Pbe(e,t){e&&n(e),t&&n(t);function n(r){var i=r[iw];i&&(i.clearMarkers&&i.clearMarkers(),delete r[iw])}}function sP(e,t,n,r,i){if(t.getBoundingClientRect&&zt.domSupported&&!p7(t)){var o=t[iw]||(t[iw]={}),a=Rbe(t,o),s=Mbe(a,o,i);if(s)return s(e,n,r),!0}return!1}function Rbe(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return t.clearMarkers=function(){ee(n,function(c){c.parentNode&&c.parentNode.removeChild(c)})},n}function Mbe(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,h=c.left,d=c.top;a.push(h,d),l=l&&o&&h===o[f]&&d===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?f$(s,a):f$(a,s))}function p7(e){return e.nodeName.toUpperCase()==="CANVAS"}var Dbe=/([&<>"'])/g,Obe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Io(e){return e==null?"":(e+"").replace(Dbe,function(t,n){return Obe[n]})}const Lbe={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:". "}}}},kbe={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 ow="ZH",BD="EN",Sp=BD,Ub={},UD={},v7=zt.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Sp).toUpperCase();return e.indexOf(ow)>-1?ow:Sp})():Sp;function g7(e,t){e=e.toUpperCase(),UD[e]=new fr(t),Ub[e]=t}function Nbe(e){if(wt(e)){var t=Ub[e.toUpperCase()]||{};return e===ow||e===BD?hn(t):Rn(hn(t),hn(Ub[Sp]),!1)}else return Rn(hn(e),hn(Ub[Sp]),!1)}function Fbe(e){return UD[e]}function $be(){return UD[Sp]}g7(BD,Lbe);g7(ow,kbe);var Bbe=null;function aw(){return Bbe}var VD=1e3,HD=VD*60,Am=HD*60,Ra=Am*24,d$=Ra*365,Ube={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Vb={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Vbe="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",y_="{yyyy}-{MM}-{dd}",h$={year:"{yyyy}",month:"{yyyy}-{MM}",day:y_,hour:y_+" "+Vb.hour,minute:y_+" "+Vb.minute,second:y_+" "+Vb.second,millisecond:Vbe},_d=["year","month","day","hour","minute","second","millisecond"],Hbe=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function zbe(e){return!wt(e)&&!Bt(e)?Gbe(e):e}function Gbe(e){e=e||{};var t={},n=!0;return ee(_d,function(r){n&&(n=e[r]==null)}),ee(_d,function(r,i){var o=e[r];t[r]={};for(var a=null,s=i;s>=0;s--){var l=_d[s],u=Et(o)&&!pt(o)?o[l]:o,c=void 0;pt(u)?(c=u.slice(),a=c[0]||""):wt(u)?(a=u,c=[a]):(a==null?a=Vb[r]:Ube[l].test(a)||(a=t[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),t[r][l]=c}}),t}function zu(e,t){return e+="","0000".substr(0,t-e.length)+e}function Pm(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 Wbe(e){return e===Pm(e)}function jbe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Kx(e,t,n,r){var i=pv(e),o=i[m7(n)](),a=i[zD(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[GD(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[WD(n)](),f=(c-1)%12+1,h=i[jD(n)](),d=i[YD(n)](),p=i[XD(n)](),g=c>=12?"pm":"am",y=g.toUpperCase(),m=r instanceof fr?r:Fbe(r||v7)||$be(),b=m.getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),C=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,zu(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,w[a-1]).replace(/{MMM}/g,S[a-1]).replace(/{MM}/g,zu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,zu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,zu(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,zu(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,zu(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,zu(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,zu(p,3)).replace(/{S}/g,p+"")}function Ybe(e,t,n,r,i){var o=null;if(wt(n))o=n;else if(Bt(n)){var a={time:e.time,level:e.time.level},s=aw();s&&s.makeAxisLabelFormatterParamBreak(a,e.break),o=n(e.value,t,a)}else{var l=e.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=sw(e.value,i);o=n[c][c][0]}}return Kx(new Date(e.value),o,i,r)}function sw(e,t){var n=pv(e),r=n[zD(t)]()+1,i=n[GD(t)](),o=n[WD(t)](),a=n[jD(t)](),s=n[YD(t)](),l=n[XD(t)](),u=l===0,c=u&&s===0,f=c&&a===0,h=f&&o===0,d=h&&i===1,p=d&&r===1;return p?"year":d?"month":h?"day":f?"hour":c?"minute":u?"second":"millisecond"}function lP(e,t,n){switch(t){case"year":e[y7(n)](0);case"month":e[_7(n)](1);case"day":e[b7(n)](0);case"hour":e[S7(n)](0);case"minute":e[w7(n)](0);case"second":e[x7(n)](0)}return e}function m7(e){return e?"getUTCFullYear":"getFullYear"}function zD(e){return e?"getUTCMonth":"getMonth"}function GD(e){return e?"getUTCDate":"getDate"}function WD(e){return e?"getUTCHours":"getHours"}function jD(e){return e?"getUTCMinutes":"getMinutes"}function YD(e){return e?"getUTCSeconds":"getSeconds"}function XD(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Xbe(e){return e?"setUTCFullYear":"setFullYear"}function y7(e){return e?"setUTCMonth":"setMonth"}function _7(e){return e?"setUTCDate":"setDate"}function b7(e){return e?"setUTCHours":"setHours"}function S7(e){return e?"setUTCMinutes":"setMinutes"}function w7(e){return e?"setUTCSeconds":"setSeconds"}function x7(e){return e?"setUTCMilliseconds":"setMilliseconds"}function T7(e){if(!z0e(e))return wt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function C7(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Zx=sD;function uP(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Xs(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?pv(e):e;if(isNaN(+l)){if(s)return"-"}else return Kx(l,r,n)}if(t==="ordinal")return TA(e)?i(e):qn(e)&&o(e)?e+"":"-";var u=JS(e);return o(u)?T7(u):TA(e)?i(e):typeof e=="boolean"?e+"":"-"}var p$=["a","b","c","d","e","f","g"],f2=function(e,t){return"{"+e+(t??"")+"}"};function E7(e,t,n){pt(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=p$[o];e=e.replace(f2(a),f2(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(f2(p$[l],s),n?Io(u):u)}return e}function Kbe(e,t){var n=wt(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Io(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Io(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function $d(e,t){return t=t||"transparent",wt(e)?e:Et(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Hb=ee,Zbe=["left","right","top","bottom","width","height"],__=[["width","left","right"],["height","top","bottom"]];function KD(e,t,n,r,i){var o=0,a=0;r==null&&(r=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,p;if(e==="horizontal"){var g=c.width+(h?-h.x+c.x:0);d=o+g,d>r||l.newline?(o=0,d=g,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(h?-h.y+c.y:0);p=a+y,p>i||l.newline?(o+=s+n,a=0,p=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=d+n:a=p+n)})}var Rm=KD;Dr(KD,"vertical");Dr(KD,"horizontal");function qbe(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function Zp(e,t,n){n=Zx(n||0);var r=t.width,i=t.height,o=Ur(e.left,r),a=Ur(e.top,i),s=Ur(e.right,r),l=Ur(e.bottom,i),u=Ur(e.width,r),c=Ur(e.height,i),f=n[2]+n[0],h=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-h-o),isNaN(c)&&(c=i-l-f-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-h),isNaN(a)&&(a=i-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-h-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var p=new Wt((t.x||0)+o+n[3],(t.y||0)+a+n[0],u,c);return p.margin=n,p}var d2={rect:1};function ZD(e,t,n){var r,i,o,a=e.boxCoordinateSystem,s;if(a){var l=ube(e),u=l.coord,c=l.from;if(a.dataToLayout){o=d2.rect,s=c;var f=a.dataToLayout(u);r=f.contentRect||f.rect}}return o==null&&(o=d2.rect),o===d2.rect&&(r||(r={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:i,boxCoordFrom:s}}function Ty(e){var t=e.layoutMode||e.constructor.layoutMode;return Et(t)?t:t?{type:t}:null}function Lc(e,t,n){var r=n&&n.ignoreSize;!pt(r)&&(r=[r,r]);var i=a(__[0],0),o=a(__[1],1);l(__[0],e,i),l(__[1],e,o);function a(u,c){var f={},h=0,d={},p=0,g=2;if(Hb(u,function(b){d[b]=e[b]}),Hb(u,function(b){ps(t,b)&&(f[b]=d[b]=t[b]),s(f,b)&&h++,s(d,b)&&p++}),r[c])return s(t,u[1])?d[u[2]]=null:s(t,u[2])&&(d[u[1]]=null),d;if(p===g||!h)return d;if(h>=g)return f;for(var y=0;y<u.length;y++){var m=u[y];if(!ps(f,m)&&ps(e,m)){f[m]=e[m];break}}return f}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,f){Hb(u,function(h){c[h]=f[h]})}}function d0(e){return Jbe({},e)}function Jbe(e,t){return t&&e&&Hb(Zbe,function(n){ps(t,n)&&(e[n]=t[n])}),e}var Qbe=or(),Nn=(function(e){ft(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=Xx("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ty(this),o=i?d0(n):{},a=r.getTheme();Rn(n,a.get(this.mainType)),Rn(n,this.getDefaultOption()),i&&Lc(n,o,i)},t.prototype.mergeOption=function(n,r){Rn(this.option,n,!0);var i=Ty(this);i&&Lc(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!tye(n))return n.defaultOption;var r=Qbe(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Rn(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return u0(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){return qbe(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(fr);UG(Nn,fr);Ox(Nn);Tbe(Nn);Cbe(Nn,eSe);function eSe(e){var t=[];return ee(Nn.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=$t(t,function(n){return Ks(n).main}),e!=="dataset"&&wn(t,"dataset")<=0&&t.unshift("dataset"),t}var v$=or();or();var qD=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=oo(this.get("color",!0)),o=this.get("colorLayer",!0);return nSe(this,v$,i,o,t,n,r)},e.prototype.clearColorPalette=function(){rSe(this,v$)},e})();function tSe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function nSe(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:tSe(r,a);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function rSe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var iSe=/\{@(.+?)\}/g,oSe=(function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),i=this.getRawValue(t,n),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,h=f==="series",d=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&pt(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Bt(o))return l.status=n,l.dimensionIndex=i,o(l);if(wt(o)){var c=E7(o,l);return c.replace(iSe,function(f,h){var d=h.length,p=h;p.charAt(0)==="["&&p.charAt(d-1)==="]"&&(p=+p.slice(1,d-1));var g=Kp(s,t,p);if(a&&pt(a.interpolatedValue)){var y=s.getDimensionIndex(p);y>=0&&(g=a.interpolatedValue[y])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return Kp(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function g$(e){var t,n;return Et(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Mm(e){return new aSe(e)}var aSe=(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 n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||o==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(f||d<p)){var g=this._progress;if(pt(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],d,p,l,u);else this._doProgress(g,d,p,l,u)}this._dueIndex=p;var m=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){m$.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:m$.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),pt(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),m$=(function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),u=t>=e?null:l<r?l:t;return t++,u}})(),sSe=(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,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return $b(t,n)},e})();function lSe(e,t){var n=new sSe,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==ol&&Eo(a);var s=[],l={},u=e.dimensionsDefine;if(u)ee(u,function(g,y){var m=g.name,b={index:y,name:m,displayName:g.displayName};if(s.push(b),m!=null){var w="";ps(l,m)&&Eo(w),l[m]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=n7(i,ol);t.__isBuiltIn&&(n.getRawDataItem=function(g){return f(r,o,s,g)},n.getRawData=mn(uSe,null,e)),n.cloneRawData=mn(cSe,null,e);var h=r7(i,ol);n.count=mn(h,null,r,o,s);var d=i7(i);n.retrieveValue=function(g,y){var m=f(r,o,s,g);return p(m,y)};var p=n.retrieveValueFromItem=function(g,y){if(g!=null){var m=s[y];if(m)return d(g,y,m.name)}};return n.getDimensionInfo=mn(fSe,null,s,l),n.cloneAllDimensionInfo=mn(dSe,null,s),n}function uSe(e){var t=e.sourceFormat;if(!JD(t)){var n="";Eo(n)}return e.data}function cSe(e){var t=e.sourceFormat,n=e.data;if(!JD(t)){var r="";Eo(r)}if(t===zi){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===xs){for(var i=[],o=0,a=n.length;o<a;o++)i.push(et({},n[o]));return i}}function fSe(e,t,n){if(n!=null){if(qn(n)||!isNaN(n)&&!ps(t,n))return e[n];if(ps(t,n))return t[n]}}function dSe(e){return hn(e)}var I7=tn();function hSe(e){e=hn(e);var t=e.type,n="";t||Eo(n);var r=t.split(":");r.length!==2&&Eo(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,I7.set(t,e)}function pSe(e,t,n){var r=oo(e),i=r.length,o="";i||Eo(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=vSe(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function vSe(e,t,n,r){var i="";t.length||Eo(i),Et(e)||Eo(i);var o=e.type,a=I7.get(o);a||Eo(i);var s=$t(t,function(u){return lSe(u,a)}),l=oo(a.transform({upstream:s[0],upstreamList:s,config:hn(e.config)}));return $t(l,function(u,c){var f="";Et(u)||Eo(f),u.data||Eo(f);var h=Q9(u.data);JD(h)||Eo(f);var d,p=t[0];if(p&&c===0&&!u.dimensions){var g=p.startIndex;g&&(u.data=p.data.slice(0,g).concat(u.data)),d={seriesLayoutBy:ol,sourceHeader:g,dimensions:p.metaRawOption.dimensions}}else d={seriesLayoutBy:ol,sourceHeader:0,dimensions:u.dimensions};return iP(u.data,d,null)})}function JD(e){return e===zi||e===xs}var gSe=(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,n){this._sourceList=t,this._upstreamSignList=n,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,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(b_(t)){var a=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=Bo(s)?Tc:ca,o=[];var f=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=Ft(f.seriesLayoutBy,h.seriesLayoutBy)||null,p=Ft(f.sourceHeader,h.sourceHeader),g=Ft(f.dimensions,h.dimensions),y=d!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||g;i=y?[iP(s,{seriesLayoutBy:d,sourceHeader:p,dimensions:g},l)]:[]}else{var m=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var w=m.get("source",!0);i=[iP(w,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&y$(o)}var a,s=[],l=[];return ee(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&y$(f),s.push(c),l.push(u._getVersionSign())}),r?a=pSe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[$_e(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];b_(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new oP,s.initData(new t7(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(b_(t)){var n=Z9(t);return n?[n.getSourceManager()]:[]}else return $t(N_e(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(b_(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e})();function b_(e){return e.mainType==="series"}function y$(e){throw new Error(e)}var Ct={color:{},darkColor:{},size:{}},_r=Ct.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};et(_r,{primary:_r.neutral80,secondary:_r.neutral70,tertiary:_r.neutral60,quaternary:_r.neutral50,disabled:_r.neutral20,border:_r.neutral30,borderTint:_r.neutral20,borderShade:_r.neutral40,background:_r.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:_r.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:_r.neutral70,axisLineTint:_r.neutral40,axisTick:_r.neutral70,axisTickMinor:_r.neutral60,axisLabel:_r.neutral70,axisSplitLine:_r.neutral15,axisMinorSplitLine:_r.neutral05});for(var Rf in _r)if(_r.hasOwnProperty(Rf)){var _$=_r[Rf];Rf==="theme"?Ct.darkColor.theme=_r.theme.slice():Rf==="highlight"?Ct.darkColor.highlight="rgba(255,231,130,0.4)":Rf.indexOf("accent")===0?Ct.darkColor[Rf]=NA(_$,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Ct.darkColor[Rf]=NA(_$,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}Ct.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var mSe="line-height:1";function A7(e){var t=e.lineHeight;return t==null?mSe:"line-height:"+Io(t+"")+"px"}function P7(e,t){var n=e.color||Ct.color.tertiary,r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||Ct.color.secondary,a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Io(r+"")+"px;color:"+Io(n)+";font-weight:"+Io(i+""),valueStyle:"font-size:"+Io(a+"")+"px;color:"+Io(o)+";font-weight:"+Io(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var ySe=[0,10,20,30],_Se=["",`
`,`
`,`
`];function qp(e,t){return t.type=e,t}function cP(e){return e.type==="section"}function R7(e){return cP(e)?bSe:SSe}function M7(e){if(cP(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return ee(e.blocks,function(i){var o=M7(i);o>=t&&(t=o+ +(r&&(!o||cP(i)&&!i.noHeader)))}),t}return 0}function bSe(e,t,n,r){var i=t.noHeader,o=wSe(M7(t)),a=[],s=t.blocks||[];ul(!s||pt(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ps(u,l)){var c=new X_e(u[l],null);s.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}ee(s,function(g,y){var m=t.valueFormatter,b=R7(g)(m?et(et({},e),{valueFormatter:m}):e,g,y>0?o.html:0,r);b!=null&&a.push(b)});var f=e.renderMode==="richText"?a.join(o.richText):fP(r,a.join(""),i?n:o.html);if(i)return f;var h=uP(t.header,"ordinal",e.useUTC),d=P7(r,e.renderMode).nameStyle,p=A7(r);return e.renderMode==="richText"?D7(e,h,d)+o.richText+f:fP(r,'<div style="'+d+";"+p+';">'+Io(h)+"</div>"+f,n)}function SSe(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=pt(S)?S:[S],$t(S,function(C,T){return uP(C,pt(d)?d[T]:d,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Ct.color.secondary,i),h=o?"":uP(l,"ordinal",u),d=t.valueType,p=a?[]:c(t.value,t.dataIndex),g=!s||!o,y=!s&&o,m=P7(r,i),b=m.nameStyle,w=m.valueStyle;return i==="richText"?(s?"":f)+(o?"":D7(e,h,b))+(a?"":CSe(e,p,g,y,w)):fP(r,(s?"":f)+(o?"":xSe(h,!s,b))+(a?"":TSe(p,g,y,w)),n)}}function b$(e,t,n,r,i,o){if(e){var a=R7(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function wSe(e){return{html:ySe[e],richText:_Se[e]}}function fP(e,t,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=A7(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function xSe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Io(e)+"</span>"}function TSe(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=pt(e)?e:[e],'<span style="'+o+";"+r+'">'+$t(e,function(a){return Io(a)}).join("&nbsp;&nbsp;")+"</span>"}function D7(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function CSe(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(pt(t)?t.join(" "):t,o)}function ESe(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return $d(r)}function O7(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var h2=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=h9()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var i=r==="richText"?this._generateStyleName():null,o=Kbe({color:n,type:t,renderMode:r,markerId:i});return wt(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};pt(n)?ee(n,function(o){return et(r,o)}):et(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e})();function ISe(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=pt(s),u=ESe(t,n),c,f,h,d;if(a>1||l&&!a){var p=ASe(s,t,n,o,u);c=p.inlineValues,f=p.inlineValueTypes,h=p.blocks,d=p.inlineValues[0]}else if(a){var g=i.getDimensionInfo(o[0]);d=c=Kp(i,n,o[0]),f=g.type}else d=c=l?s[0]:s;var y=vD(t),m=y&&t.name||"",b=i.getName(n),w=r?m:b;return qp("section",{header:m,noHeader:r||!y,sortParam:d,blocks:[qp("nameValue",{markerType:"item",markerColor:u,name:w,noName:!Xs(w),value:c,valueType:f,dataIndex:n})].concat(h||[])})}function ASe(e,t,n,r,i){var o=t.getData(),a=fv(e,function(f,h,d){var p=o.getDimensionInfo(d);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?ee(r,function(f){c(Kp(o,n,f),f)}):ee(e,c);function c(f,h){var d=o.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(a?u.push(qp("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 Gu=or();function S_(e,t){return e.getName(t)||e.getId(t)}var PSe="__universalTransitionEnabled",_u=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=Mm({count:MSe,reset:DSe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=Gu(this).sourceManager=new gSe(this);o.prepareSource();var a=this.getInitialData(n,i);w$(a,this),this.dataTask.context.data=a,Gu(this).dataBeforeProcessed=a,S$(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ty(this),o=i?d0(n):{},a=this.subType;Nn.hasClass(a)&&(a+="Series"),Rn(n,r.getTheme().get(this.subType)),Rn(n,this.getDefaultOption()),I4(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Lc(n,o,i)},t.prototype.mergeOption=function(n,r){n=Rn(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Ty(this);i&&Lc(this.option,n,i);var o=Gu(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);w$(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Gu(this).dataBeforeProcessed=a,S$(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!Bo(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&I4(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=dP(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return Gu(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=dP(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}Gu(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return tn(n)},t.prototype.getSourceManager=function(){return Gu(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Gu(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.indicesOfNearest=function(n,r,i,o){var a=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(n);if(!s||!l)return[];var u=l.dataToCoord(i);o==null&&(o=1/0);var c=[],f=1/0,h=-1,d=0;return a.each(r,function(p,g){var y=l.dataToCoord(p),m=u-y,b=Math.abs(m);b<=o&&((b<f||b===f&&m>=0&&h<0)&&(f=b,h=m,d=0),m===h&&(c[d++]=g))}),c.length=d,c},t.prototype.formatTooltip=function(n,r,i){return ISe({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(zt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=qD.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=S_(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=ir(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[S_(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[PSe])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var i,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Et(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var f=r[c],h=S_(n,f);u[h]=!0,this._selectedDataIndicesMap[h]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var d=r[l-1],h=S_(n,d);a.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(o={},o[h]=n.getRawIndex(d),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Nn.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(Nn);hl(_u,oSe);hl(_u,qD);UG(_u,Nn);function S$(e){var t=e.name;vD(e)||(e.name=RSe(e)||t)}function RSe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return ee(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function MSe(e){return e.model.getRawData().count()}function DSe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),OSe}function OSe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function w$(e,t){ee(FG(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Dr(LSe,t))})}function LSe(e,t){var n=dP(e);return n&&n.setOutputEnd((t||this).count()),t}function dP(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var kSe=Bn.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),NSe=Bn.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),FSe=Bn.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),h=Math.cos(u),d=a*.6,p=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*d,l+s+h*d,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+f*d,l+s+h*d,n-c,l+s),e.closePath()}}),$Se=Bn.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),BSe={line:Oc,rect:Kr,roundRect:Kr,square:Kr,circle:Ux,diamond:NSe,pin:FSe,arrow:$Se,triangle:kSe},USe={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},hP={};ee(BSe,function(e,t){hP[t]=new e});var VSe=Bn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=jG(e,t,n),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var i=hP[r];i||(r="rect",i=hP[r]),USe[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function HSe(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Ct.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Jp(e,t,n,r,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=F9(e.slice(8),new Wt(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=AD(e.slice(7),{},new Wt(t,n,r,i),a?"center":"cover"):l=new VSe({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=HSe,o&&l.setColor(o),l}function zSe(e){return pt(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function L7(e,t){if(e!=null)return pt(e)||(e=[e,e]),[Ur(e[0],t[0])||0,Ur(Ft(e[1],e[0]),t[1])||0]}var GSe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return bbe(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new ci,i=Jp("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=Jp(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=Ct.color.neutral00,u.style.lineWidth=2),r},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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(_u);function k7(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Kp(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(Kp(e,t,n[a]));return o.join(" ")}}function WSe(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!pt(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var qx=(function(e){ft(t,e);function t(n,r,i,o){var a=e.call(this)||this;return a.updateData(n,r,i,o),a}return t.prototype._createSymbol=function(n,r,i,o,a,s){this.removeAll();var l=Jp(n,-1,-1,2,2,null,s);l.attr({z2:Ft(a,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=jSe,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){tw(this.childAt(0))},t.prototype.downplay=function(){nw(this.childAt(0))},t.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},t.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},t.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=t.getSymbolZ2(n,r),c=a!==this._symbolType,f=o&&o.disableAnimation;if(c){var h=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,u,h)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};f?d.attr(p):_s(d,p,s,r),a_e(d)}if(this._updateCommon(n,r,l,i,o),c){var d=this.childAt(0);if(!f){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,f0(d,p,s,r)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,h,d,p,g,y,m;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,h=o.focus,d=o.blurScope,g=o.labelStatesModels,y=o.hoverScale,m=o.cursorStyle,p=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),w=b.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),h=w.get("focus"),d=w.get("blurScope"),p=w.get("disabled"),g=kD(b),y=w.getShallow("scale"),m=b.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=L7(n.getItemVisual(r,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),m&&s.attr("cursor",m);var T=n.getItemVisual(r,"style"),E=T.fill;if(s instanceof Gc){var P=s.style;s.useStyle(et({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},T))}else s.__isEmptyBrush?s.useStyle(et({},T)):s.useStyle(T),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),D=this._z2;I!=null?D==null&&(this._z2=s.z2,s.z2+=I):D!=null&&(s.z2=D,this._z2=null);var O=a&&a.useNameLabel;LD(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:N,inheritColor:E,defaultOpacity:T.opacity});function N(V){return O?n.getName(V):k7(n,V)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var k=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;M.scaleX=this._sizeX*k,M.scaleY=this._sizeY*k,this.setSymbolScale(1),qA(this,h,d,p)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=kn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&Fd(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Fd(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return zSe(n.getItemVisual(r,"symbolSize"))},t.getSymbolZ2=function(n,r){return n.getItemVisual(r,"z2")},t})(ci);function jSe(e,t){this.parent.drift(e,t)}function p2(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function x$(e){return e!=null&&!Et(e)&&(e={isIgnore:e}),e||{}}function T$(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:kD(t),cursorStyle:t.get("cursor")}}var YSe=(function(){function e(t){this.group=new ci,this._SymbolCtor=t||qx}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=x$(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=T$(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var h=c(f);if(p2(t,h,f,n)){var d=new a(t,f,l,u);d.setPosition(h),t.setItemGraphicEl(f,d),r.add(d)}}).update(function(f,h){var d=o.getItemGraphicEl(h),p=c(f);if(!p2(t,p,f,n)){r.remove(d);return}var g=t.getItemVisual(f,"symbol")||"circle",y=d&&d.getSymbolType&&d.getSymbolType();if(!d||y&&y!==g)r.remove(d),d=new a(t,f,l,u),d.setPosition(p);else{d.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?d.attr(m):_s(d,m,i)}r.add(d),t.setItemGraphicEl(f,d)}).remove(function(f){var h=o.getItemGraphicEl(f);h&&h.fadeOut(function(){r.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=t._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=T$(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=x$(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(p2(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){MD(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e})();function N7(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=XSe(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=$t(e.dimensions,function(p){return t.mapDimension(p)}),h=!1,d=t.getCalculationInfo("stackResultDimension");return xy(t,f[0])&&(h=!0,f[0]=d),xy(t,f[1])&&(h=!0,f[1]=d),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function XSe(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:qn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function F7(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var $7=typeof Float32Array<"u",KSe=$7?Float32Array:Array;function tp(e){return pt(e)?$7?new Float32Array(e):e:new KSe(e)}function ZSe(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,i){n.push({cmd:"=",idx:i,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function qSe(e,t,n,r,i,o,a,s){for(var l=ZSe(e,t),u=[],c=[],f=[],h=[],d=[],p=[],g=[],y=N7(i,t,a),m=e.getLayout("points")||[],b=t.getLayout("points")||[],w=0;w<l.length;w++){var S=l[w],C=!0,T=void 0,E=void 0;switch(S.cmd){case"=":T=S.idx*2,E=S.idx1*2;var P=m[T],I=m[T+1],D=b[E],O=b[E+1];(isNaN(P)||isNaN(I))&&(P=D,I=O),u.push(P,I),c.push(D,O),f.push(n[T],n[T+1]),h.push(r[E],r[E+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var N=S.idx,M=y.dataDimsForPoint,k=i.dataToPoint([t.get(M[0],N),t.get(M[1],N)]);E=N*2,u.push(k[0],k[1]),c.push(b[E],b[E+1]);var V=F7(y,i,t,N);f.push(V[0],V[1]),h.push(r[E],r[E+1]),g.push(t.getRawIndex(N));break;case"-":C=!1}C&&(d.push(S),p.push(p.length))}p.sort(function(Re,ke){return g[Re]-g[ke]});for(var B=u.length,U=tp(B),$=tp(B),J=tp(B),ae=tp(B),ne=[],w=0;w<p.length;w++){var _e=p[w],me=w*2,Me=_e*2;U[me]=u[Me],U[me+1]=u[Me+1],$[me]=c[Me],$[me+1]=c[Me+1],J[me]=f[Me],J[me+1]=f[Me+1],ae[me]=h[Me],ae[me+1]=h[Me+1],ne[w]=d[_e]}return{current:U,next:$,stackedOnCurrent:J,stackedOnNext:ae,status:ne}}var Wu=Math.min,ju=Math.max;function bd(e,t){return isNaN(e)||isNaN(t)}function pP(e,t,n,r,i,o,a,s,l){for(var u,c,f,h,d,p,g=n,y=0;y<r;y++){var m=t[g*2],b=t[g*2+1];if(g>=i||g<0)break;if(bd(m,b)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](m,b),f=m,h=b;else{var w=m-u,S=b-c;if(w*w+S*S<.5){g+=o;continue}if(a>0){for(var C=g+o,T=t[C*2],E=t[C*2+1];T===m&&E===b&&y<r;)y++,C+=o,g+=o,T=t[C*2],E=t[C*2+1],m=t[g*2],b=t[g*2+1],w=m-u,S=b-c;var P=y+1;if(l)for(;bd(T,E)&&P<r;)P++,C+=o,T=t[C*2],E=t[C*2+1];var I=.5,D=0,O=0,N=void 0,M=void 0;if(P>=r||bd(T,E))d=m,p=b;else{D=T-u,O=E-c;var k=m-u,V=T-m,B=b-c,U=E-b,$=void 0,J=void 0;if(s==="x"){$=Math.abs(k),J=Math.abs(V);var ae=D>0?1:-1;d=m-ae*$*a,p=b,N=m+ae*J*a,M=b}else if(s==="y"){$=Math.abs(B),J=Math.abs(U);var ne=O>0?1:-1;d=m,p=b-ne*$*a,N=m,M=b+ne*J*a}else $=Math.sqrt(k*k+B*B),J=Math.sqrt(V*V+U*U),I=J/(J+$),d=m-D*a*(1-I),p=b-O*a*(1-I),N=m+D*a*I,M=b+O*a*I,N=Wu(N,ju(T,m)),M=Wu(M,ju(E,b)),N=ju(N,Wu(T,m)),M=ju(M,Wu(E,b)),D=N-m,O=M-b,d=m-D*$/J,p=b-O*$/J,d=Wu(d,ju(u,m)),p=Wu(p,ju(c,b)),d=ju(d,Wu(u,m)),p=ju(p,Wu(c,b)),D=m-d,O=b-p,N=m+D*J/$,M=b+O*J/$}e.bezierCurveTo(f,h,d,p,m,b),f=N,h=M}else e.lineTo(m,b)}u=m,c=b,g+=o}return y}var B7=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),JSe=(function(e){ft(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:Ct.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new B7},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&bd(i[a*2-2],i[a*2-1]);a--);for(;o<a&&bd(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=pP(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=kd.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var h=o[f++],d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,b=void 0,w=void 0;switch(h){case a.M:s=o[f++],l=o[f++];break;case a.L:if(d=o[f++],p=o[f++],w=u?(n-s)/(d-s):(n-l)/(p-l),w<=1&&w>=0){var S=u?(p-l)*w+l:(d-s)*w+s;return u?[n,S]:[S,n]}s=d,l=p;break;case a.C:d=o[f++],p=o[f++],g=o[f++],y=o[f++],m=o[f++],b=o[f++];var C=u?WS(s,d,g,m,n,c):WS(l,p,y,b,n,c);if(C>0)for(var T=0;T<C;T++){var E=c[T];if(E<=1&&E>=0){var S=u?_i(l,p,y,b,E):_i(s,d,g,m,E);return u?[n,S]:[S,n]}}s=m,l=b;break}}},t})(Bn),QSe=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(B7),ewe=(function(e){ft(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new QSe},t.prototype.buildPath=function(n,r){var i=r.points,o=r.stackedOnPoints,a=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&bd(i[s*2-2],i[s*2-1]);s--);for(;a<s&&bd(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=pP(n,i,a,s,s,1,r.smooth,l,r.connectNulls);pP(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},t})(Bn);function U7(){var e=or();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var V7=or(),twe=U7(),gs=(function(){function e(){this.group=new ci,this.uid=Xx("viewChart"),this.renderTask=Mm({plan:nwe,reset:rwe}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&E$(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&E$(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){MD(this.group,t)},e.markUpdateMethod=function(t,n){V7(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function C$(e,t,n){e&&QA(e)&&(t==="emphasis"?tw:nw)(e,n)}function E$(e,t,n){var r=Nd(e,t),i=t&&t.highlightKey!=null?E1e(t.highlightKey):null;r!=null?ee(oo(r),function(o){C$(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){C$(o,n,i)})}lD(gs);Ox(gs);function nwe(e){return twe(e.model)}function rwe(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&V7(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),iwe[l]}var iwe={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)}}};function owe(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new Kr({shape:{x:a,y:s,width:l,height:u}});if(t){var h=e.getBaseAxis(),d=h.isHorizontal(),p=h.inverse;d?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var g=Bt(i)?function(y){i(y,f)}:null;f0(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return f}function awe(e,t,n){var r=e.getArea(),i=wi(r.r0,1),o=wi(r.r,1),a=new Vx({shape:{cx:wi(e.cx,1),cy:wi(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,f0(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function swe(e,t){return e.type===t}function I$(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function A$(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function P$(e,t){var n=A$(e),r=n[0],i=n[1],o=A$(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function R$(e){return qn(e)?e:e?.5:0}function lwe(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=tp(r*2),o=0;o<r;o++){var a=F7(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Yu(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],h=[];if(i){for(l=0;l<e.length;l+=2){var d=t||e;!isNaN(d[l])&&!isNaN(d[l+1])&&h.push(e[l],e[l+1])}e=h}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[a]=f[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var p=(c[a]+f[a])/2,g=[];u[a]=g[a]=p,u[1-a]=c[1-a],g[1-a]=f[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=f[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function uwe(e,t){var n=[],r=e.length,i,o;function a(c,f,h){var d=c.coord,p=(h-d)/(f.coord-d),g=zye(p,[c.color,f.color]);return{coord:h,color:g}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function cwe(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(o){var l=t.getAxis(i),u=$t(o.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var h=uwe(u,i==="x"?n.getWidth():n.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 p=10,g=h[0].coord-p,y=h[d-1].coord+p,m=y-g;if(m<.001)return"transparent";ee(h,function(w){w.offset=(w.coord-g)/m}),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 b=new ED(0,0,0,0,h,!0);return b[i]=g,b[i+"2"]=y,b}}}function fwe(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&dwe(o,t))){var a=t.mapDimension(o.dim),s={};return ee(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function dwe(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(qx.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function hwe(e,t){return isNaN(e)||isNaN(t)}function pwe(e){for(var t=e.length/2;t>0&&hwe(e[t*2-2],e[t*2-1]);t--);return t-1}function M$(e,t){return[e[t*2],e[t*2+1]]}function vwe(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=e[u*2+i],!(isNaN(a)||isNaN(e[u*2+1-i]))){if(u===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function H7(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<cl.length;t++)if(e.get([cl[t],"endLabel","show"]))return!0;return!1}function v2(e,t,n,r){if(swe(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=H7(r)?function(d,p){e._endLabelOnDuring(d,p,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=owe(t,n,r,function(){var d=e._endLabel;d&&n&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,h=Math.max(f.width,f.height);u?(f.y-=h,f.height+=h*2):(f.x-=h,f.width+=h*2)}return l&&l(1,c),c}else return awe(t,n,r)}function gwe(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var mwe=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new ci,r=new YSe;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=mn(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],f=o.type==="polar",h=this._coordSys,d=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!r.ssr&&n.get("animation"),b=!u.isEmpty(),w=u.get("origin"),S=N7(o,s,w),C=b&&lwe(o,s,S),T=n.get("showSymbol"),E=n.get("connectNulls"),P=T&&!f&&fwe(n,s,o),I=this._data;I&&I.eachItemGraphicEl(function(Re,ke){Re.__temp&&(a.remove(Re),I.setItemGraphicEl(ke,null))}),T||d.remove(),a.add(y);var D=f?!1:n.get("step"),O;o&&o.getArea&&n.get("clip",!0)&&(O=o.getArea(),O.width!=null?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var N=cwe(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&h.type===o.type&&D===this._step))T&&d.updateData(s,{isIgnore:P,clipShape:O,disableAnimation:!0,getSymbolPoint:function(Re){return[c[Re*2],c[Re*2+1]]}}),m&&this._initSymbolLabelAnimation(s,o,O),D&&(C&&(C=Yu(C,c,o,D,E)),c=Yu(c,null,o,D,E)),p=this._newPolyline(c),b?g=this._newPolygon(c,C):g&&(y.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,$d(N)),y.setClipPath(v2(this,o,!0,n));else{b&&!g?g=this._newPolygon(c,C):g&&!b&&(y.remove(g),g=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,$d(N));var M=y.getClipPath();if(M){var k=v2(this,o,!1,n);f0(M,{shape:k.shape},n)}else y.setClipPath(v2(this,o,!0,n));T&&d.updateData(s,{isIgnore:P,clipShape:O,disableAnimation:!0,getSymbolPoint:function(Re){return[c[Re*2],c[Re*2+1]]}}),(!I$(this._stackedOnPoints,C)||!I$(this._points,c))&&(m?this._doUpdateAnimation(s,C,o,i,D,w,E):(D&&(C&&(C=Yu(C,c,o,D,E)),c=Yu(c,null,o,D,E)),p.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:C})))}var V=n.getModel("emphasis"),B=V.get("focus"),U=V.get("blurScope"),$=V.get("disabled");if(p.useStyle(Mn(l.getLineStyle(),{fill:"none",stroke:N,lineJoin:"bevel"})),JA(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var J=p.getState("emphasis").style;J.lineWidth=+p.style.lineWidth+1}kn(p).seriesIndex=n.seriesIndex,qA(p,B,U,$);var ae=R$(n.get("smooth")),ne=n.get("smoothMonotone");if(p.setShape({smooth:ae,smoothMonotone:ne,connectNulls:E}),g){var _e=s.getCalculationInfo("stackedOnSeries"),me=0;g.useStyle(Mn(u.getAreaStyle(),{fill:N,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),_e&&(me=R$(_e.get("smooth"))),g.setShape({smooth:ae,stackedOnSmooth:me,smoothMonotone:ne,connectNulls:E}),JA(g,n,"areaStyle"),kn(g).seriesIndex=n.seriesIndex,qA(g,B,U,$)}var Me=this._changePolyState;s.eachItemGraphicEl(function(Re){Re&&(Re.onHoverStateChange=Me)}),this._polyline.onHoverStateChange=Me,this._data=s,this._coordSys=o,this._stackedOnPoints=C,this._points=c,this._step=D,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){kn(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=Nd(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.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=n.get("zlevel")||0,d=n.get("z")||0;u=new qx(a,s),u.x=c,u.y=f,u.setZ(h,d);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=d,p.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else gs.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Nd(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else gs.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;YA(this._polyline,n),r&&YA(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new JSe({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new ewe({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(n,r,i){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");Bt(c)&&(c=c(null));var f=u.get("animationDelay")||0,h=Bt(f)?f(null):f;n.eachItemGraphicEl(function(d,p){var g=d;if(g){var y=[d.x,d.y],m=void 0,b=void 0,w=void 0;if(i)if(a){var S=i,C=r.pointToCoord(y);o?(m=S.startAngle,b=S.endAngle,w=-C[1]/180*Math.PI):(m=S.r0,b=S.r,w=C[0])}else{var T=i;o?(m=T.x,b=T.x+T.width,w=d.x):(m=T.y+T.height,b=T.y,w=d.y)}var E=b===m?0:(w-m)/(b-m);l&&(E=1-E);var P=Bt(f)?f(p):c*E+h,I=g.getSymbolPath(),D=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:P}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(H7(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Uo({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=pwe(l);c>=0&&(LD(s,kD(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,h,d){return d!=null?WSe(a,d):k7(a,f)},enableTextSetter:!0},gwe(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),h=i.hostModel,d=h.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),m=y.isHorizontal(),b=y.inverse,w=r.shape,S=b?m?w.x:w.y+w.height:m?w.x+w.width:w.y,C=(m?g:0)*(b?-1:1),T=(m?0:-g)*(b?-1:1),E=m?"x":"y",P=vwe(f,S,E),I=P.range,D=I[1]-I[0],O=void 0;if(D>=1){if(D>1&&!d){var N=M$(f,I[0]);u.attr({x:N[0]+C,y:N[1]+T}),a&&(O=h.getRawValue(I[0]))}else{var N=c.getPointOn(S,E);N&&u.attr({x:N[0]+C,y:N[1]+T});var M=h.getRawValue(I[0]),k=h.getRawValue(I[1]);a&&(O=s1e(i,p,M,k,P.t))}o.lastFrameIndex=I[0]}else{var V=n===1||o.lastFrameIndex>0?I[0]:0,N=M$(f,V);a&&(O=h.getRawValue(V)),u.attr({x:N[0]+C,y:N[1]+T})}if(a){var B=G9(u);typeof B.setLabelText=="function"&&B.setLabelText(O)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,h=qSe(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=h.current,p=h.stackedOnCurrent,g=h.next,y=h.stackedOnNext;if(a&&(p=Yu(h.stackedOnCurrent,h.current,i,a,l),d=Yu(h.current,null,i,a,l),y=Yu(h.stackedOnNext,h.next,i,a,l),g=Yu(h.next,null,i,a,l)),P$(d,g)>3e3||c&&P$(p,y)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=d;var m={shape:{points:g}};h.current!==d&&(m.shape.__points=h.next),u.stopAnimation(),_s(u,m,f),c&&(c.setShape({points:d,stackedOnPoints:p}),c.stopAnimation(),_s(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],w=h.status,S=0;S<w.length;S++){var C=w[S].cmd;if(C==="="){var T=n.getItemGraphicEl(w[S].idx1);T&&b.push({el:T,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var E=u.shape.__points,P=0;P<b.length;P++){var I=b[P].el,D=b[P].ptIdx*2;I.x=E[D],I.y=E[D+1],I.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(gs);function ywe(e,t){return{seriesType:e,plan:U7(),reset:function(n){var r=n.getData(),i=n.coordinateSystem;if(n.pipelineContext,!!i){var o=$t(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),a=o.length,s=r.getCalculationInfo("stackResultDimension");xy(r,o[0])&&(o[0]=s),xy(r,o[1])&&(o[1]=s);var l=r.getStore(),u=r.getDimensionIndex(o[0]),c=r.getDimensionIndex(o[1]);return a&&{progress:function(f,h){for(var d=f.end-f.start,p=tp(d*a),g=[],y=[],m=f.start,b=0;m<f.end;m++){var w=void 0;if(a===1){var S=l.get(u,m);w=i.dataToPoint(S,null,y)}else g[0]=l.get(u,m),g[1]=l.get(c,m),w=i.dataToPoint(g,null,y);p[b++]=w[0],p[b++]=w[1]}h.setLayout("points",p)}}}}}}var _we={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},bwe=function(e){return Math.round(e.length/2)};function Swe(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(f||1),d=Math.round(s/h);if(isFinite(d)&&d>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/d));var p=void 0;wt(o)?p=_we[o]:Bt(o)&&(p=o),p&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,p,bwe))}}}}}function wwe(e){e.registerChartView(mwe),e.registerSeriesModel(GSe),e.registerLayout(ywe("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Swe("line"))}var xwe="__ec_stack_";function Twe(e){return e.get("stack")||xwe+e.seriesIndex}function z7(e){return e.dim+e.index}function Cwe(e,t){var n=[];return t.eachSeriesByType(e,function(r){Rwe(r)&&n.push(r)}),n}function Ewe(e){var t={};ee(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),h=c.dim+"_"+c.index,d=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),g=0,y=p.count();g<y;++g){var m=p.get(d,g);t[h]?t[h].push(m):t[h]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(l,u){return l-u});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function Iwe(e){var t=Ewe(e),n=[];return ee(e,function(r){var i=r.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),h=Math.abs(f[1]-f[0]);s=u?c/h*u:c}else{var d=r.getData();s=Math.abs(a[1]-a[0])/d.count()}var p=Ur(r.get("barWidth"),s),g=Ur(r.get("barMaxWidth"),s),y=Ur(r.get("barMinWidth")||(Mwe(r)?.5:1),s),m=r.get("barGap"),b=r.get("barCategoryGap"),w=r.get("defaultBarGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:y,barGap:m,barCategoryGap:b,defaultBarGap:w,axisKey:z7(o),stackId:Twe(r)})}),Awe(n)}function Awe(e){var t={};ee(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:r.defaultBarGap||0,stacks:{}},l=s.stacks;t[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var h=r.barMinWidth;h&&(l[u].minWidth=h);var d=r.barGap;d!=null&&(s.gap=d);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return ee(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=ir(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ur(s,a),c=Ur(r.gap,1),f=r.remainedWidth,h=r.autoWidthCount,d=(f-u)/(h+(h-1)*c);d=Math.max(d,0),ee(o,function(m){var b=m.maxWidth,w=m.minWidth;if(m.width){var S=m.width;b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),m.width=S,f-=S+c*S,h--}else{var S=d;b&&b<S&&(S=Math.min(b,f)),w&&w>S&&(S=w),S!==d&&(m.width=S,f-=S+c*S,h--)}}),d=(f-u)/(h+(h-1)*c),d=Math.max(d,0);var p=0,g;ee(o,function(m,b){m.width||(m.width=d),g=m,p+=m.width*(1+c)}),g&&(p-=g.width*c);var y=-p/2;ee(o,function(m,b){n[i][b]=n[i][b]||{bandWidth:a,offset:y,width:m.width},y+=m.width*(1+c)})}),n}function Pwe(e,t,n){if(e&&t){var r=e[z7(t)];return r}}function Rwe(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Mwe(e){return e.pipelineContext&&e.pipelineContext.large}var lw="\0__throttleOriginMethod",D$="\0__throttleRate",O$="\0__throttleType";function G7(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var h=function(){for(var d=[],p=0;p<arguments.length;p++)d[p]=arguments[p];r=new Date().getTime(),l=this,u=d;var g=c||t,y=c||n;c=null,s=r-(y?i:o)-g,clearTimeout(a),y?a=setTimeout(f,g):s>=0?f():a=setTimeout(f,-s),i=r};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(d){c=d},h}function W7(e,t,n,r){var i=e[t];if(i){var o=i[lw]||i,a=i[O$],s=i[D$];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=G7(o,n,r==="debounce"),i[lw]=o,i[O$]=r,i[D$]=n}return i}}function vP(e,t){var n=e[t];n&&n[lw]&&(n.clear&&n.clear(),e[t]=n[lw])}function Ph(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),h=Nd(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:pt(h)?f.getName(h[0]):f.getName(h),selected:wt(l)?l:et({},l)})}})}function Dwe(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Ph("map","selectchanged",t,i,r),Ph("pie","selectchanged",t,i,r)):r.fromAction==="select"?(Ph("map","selected",t,i,r),Ph("pie","selected",t,i,r)):r.fromAction==="unselect"&&(Ph("map","unselected",t,i,r),Ph("pie","unselected",t,i,r))})}var L$=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Owe=1,uw=2,j7=Owe|uw;function cw(e,t,n){n=n||j7,t?e.dirty|=n:e.dirty&=~n}function Y7(e,t){return t=t||j7,e.dirty==null||!!(e.dirty&t)}function kc(e){if(e)return Y7(e)&&Lwe(e,e.label,e),e}function Lwe(e,t,n){var r=t.getComputedTransform();e.transform=OD(e.transform,r);var i=e.localRect=Sy(e.localRect,t.getBoundingRect()),o=t.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;c==null&&u&&(a=u,c=ep.textMargin);for(var f=0;f<4;f++)g2[f]=c===ep.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:a?a[f]:0;c===ep.textMargin&&rw(i,g2,!1,!1);var h=e.rect=Sy(e.rect,i);return r&&h.applyTransform(r),c===ep.minMargin&&rw(h,g2,!1,!1),e.axisAligned=DD(r),(e.label=e.label||{}).ignore=t.ignore,cw(e,!1),cw(e,!0,uw),e}var g2=[0,0,0,0];function kwe(e,t,n){return e.transform=OD(e.transform,n),e.localRect=Sy(e.localRect,t),e.rect=Sy(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=DD(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Nwe(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function k$(e,t){for(var n=0;n<L$.length;n++){var r=L$[n];e[r]==null&&(e[r]=t[r])}return kc(e)}function N$(e){var t=e.obb;return(!t||Y7(e,uw))&&(e.obb=t=t||new N9,t.fromBoundingRect(e.localRect,e.transform),cw(e,!1,uw)),t}function Fwe(e){var t=[];e.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function n(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var r=0;r<e.length;r++){var i=kc(e[r]);if(!i.label.ignore){for(var o=i.label,a=i.labelLine,s=!1,l=0;l<t.length;l++)if(QD(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):t.push(i)}}}function QD(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:N$(e).intersect(N$(t),n,r)}var Rh=(function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e})(),$we=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Rh(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new Rh(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Rh(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Rh(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Rh(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Rh(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Bwe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,m2=[],Uwe=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function gP(e,t,n,r){return n=n||{},r?F$(e,t,n):Uwe&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):F$(e,t,n),n}function F$(e,t,n){if(zt.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(p7(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(sP(m2,e,r,i)){n.zrX=m2[0],n.zrY=m2[1];return}}n.zrX=n.zrY=0}function eO(e){return e||window.event}function Ta(e,t,n){if(t=eO(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&gP(e,a,t,n)}else{gP(e,t,t,n);var o=Vwe(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Bwe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Vwe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function Hwe(e,t,n,r){e.addEventListener(t,n,r)}function zwe(e,t,n,r){e.removeEventListener(t,n,r)}var fw=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function $$(e){return e.which===2||e.which===3}var Gwe=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a<s;a++){var l=i[a],u=gP(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in y2)if(y2.hasOwnProperty(n)){var r=y2[n](this._track,t);if(r)return r}},e})();function B$(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Wwe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var y2={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=B$(r)/B$(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=Wwe(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},X7="silent";function jwe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ywe}}function Ywe(){fw(this.event)}var Xwe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Ss),ug=(function(){function e(t,n){this.x=t,this.y=n}return e})(),Kwe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_2=new Wt(0,0,0,0),K7=(function(e){ft(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new ug(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new Xwe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new $we(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(ee(Kwe,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=Z7(this,r,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new ug(r,i):this.findHover(r,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new ug(0,0)},t.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=jwe(r,n,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new ug(n,r);if(U$(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Wt(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var h=o[f];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(_2.copy(h.getBoundingRect()),h.transform&&_2.applyTransform(h.transform),_2.intersect(c)&&s.push(h))}if(s.length)for(var d=4,p=Math.PI/12,g=Math.PI*2,y=0;y<u;y+=d)for(var m=0;m<g;m+=p){var b=n+y*Math.cos(m),w=r+y*Math.sin(m);if(U$(s,a,b,w,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Gwe);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new ug;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Ss);ee(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){K7.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Z7(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Oye(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Zwe(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return i?X7:!0}return!1}function U$(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Zwe(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==X7)){t.target=a;break}}}function Z7(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var q7=32,cg=7;function qwe(e){for(var t=0;e>=q7;)t|=e&1,e>>=1;return e+t}function V$(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;Jwe(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Jwe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function H$(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function b2(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function S2(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Qwe(e,t){var n=cg,r,i,o=0,a=[];r=[],i=[];function s(d,p){r[o]=d,i[o]=p,o+=1}function l(){for(;o>1;){var d=o-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]&&d--;else if(i[d]>i[d+1])break;c(d)}}function u(){for(;o>1;){var d=o-2;d>0&&i[d-1]<i[d+1]&&d--,c(d)}}function c(d){var p=r[d],g=i[d],y=r[d+1],m=i[d+1];i[d]=g+m,d===o-3&&(r[d+1]=r[d+2],i[d+1]=i[d+2]),o--;var b=S2(e[y],e,p,g,0,t);p+=b,g-=b,g!==0&&(m=b2(e[p+g-1],e,y,m,m-1,t),m!==0&&(g<=m?f(p,g,y,m):h(p,g,y,m)))}function f(d,p,g,y){var m=0;for(m=0;m<p;m++)a[m]=e[d+m];var b=0,w=g,S=d;if(e[S++]=e[w++],--y===0){for(m=0;m<p;m++)e[S+m]=a[b+m];return}if(p===1){for(m=0;m<y;m++)e[S+m]=e[w+m];e[S+y]=a[b];return}for(var C=n,T,E,P;;){T=0,E=0,P=!1;do if(t(e[w],a[b])<0){if(e[S++]=e[w++],E++,T=0,--y===0){P=!0;break}}else if(e[S++]=a[b++],T++,E=0,--p===1){P=!0;break}while((T|E)<C);if(P)break;do{if(T=S2(e[w],a,b,p,0,t),T!==0){for(m=0;m<T;m++)e[S+m]=a[b+m];if(S+=T,b+=T,p-=T,p<=1){P=!0;break}}if(e[S++]=e[w++],--y===0){P=!0;break}if(E=b2(a[b],e,w,y,0,t),E!==0){for(m=0;m<E;m++)e[S+m]=e[w+m];if(S+=E,w+=E,y-=E,y===0){P=!0;break}}if(e[S++]=a[b++],--p===1){P=!0;break}C--}while(T>=cg||E>=cg);if(P)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),p===1){for(m=0;m<y;m++)e[S+m]=e[w+m];e[S+y]=a[b]}else{if(p===0)throw new Error;for(m=0;m<p;m++)e[S+m]=a[b+m]}}function h(d,p,g,y){var m=0;for(m=0;m<y;m++)a[m]=e[g+m];var b=d+p-1,w=y-1,S=g+y-1,C=0,T=0;if(e[S--]=e[b--],--p===0){for(C=S-(y-1),m=0;m<y;m++)e[C+m]=a[m];return}if(y===1){for(S-=p,b-=p,T=S+1,C=b+1,m=p-1;m>=0;m--)e[T+m]=e[C+m];e[S]=a[w];return}for(var E=n;;){var P=0,I=0,D=!1;do if(t(a[w],e[b])<0){if(e[S--]=e[b--],P++,I=0,--p===0){D=!0;break}}else if(e[S--]=a[w--],I++,P=0,--y===1){D=!0;break}while((P|I)<E);if(D)break;do{if(P=p-S2(a[w],e,d,p,p-1,t),P!==0){for(S-=P,b-=P,p-=P,T=S+1,C=b+1,m=P-1;m>=0;m--)e[T+m]=e[C+m];if(p===0){D=!0;break}}if(e[S--]=a[w--],--y===1){D=!0;break}if(I=y-b2(e[b],a,0,y,y-1,t),I!==0){for(S-=I,w-=I,y-=I,T=S+1,C=w+1,m=0;m<I;m++)e[T+m]=a[C+m];if(y<=1){D=!0;break}}if(e[S--]=e[b--],--p===0){D=!0;break}E--}while(P>=cg||I>=cg);if(D)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),y===1){for(S-=p,b-=p,T=S+1,C=b+1,m=p-1;m>=0;m--)e[T+m]=e[C+m];e[S]=a[w]}else{if(y===0)throw new Error;for(C=S-(y-1),m=0;m<y;m++)e[C+m]=a[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function zb(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<q7){o=V$(e,n,r,t),H$(e,n,r,n+o,t);return}var a=Qwe(e,t),s=qwe(i);do{if(o=V$(e,n,r,t),o<s){var l=i;l>s&&(l=s),H$(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var z$=!1;function w2(){z$||(z$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function G$(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var exe=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=G$}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,zb(r,G$)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),o=n&&n.length,a=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||i)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<n.length;l++)s[a++]=n[l];for(var u=i,c=t;u;)u.parent=c,u.updateTransform(),s[a++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=a),t.childrenRef){for(var f=t.childrenRef(),h=0;h<f.length;h++){var d=f[h];t.__dirty&&(d.__dirty|=ea),this._updateAndAddDisplayable(d,s,r)}t.__dirty=0}else{var p=t;isNaN(p.z)&&(w2(),p.z=0),isNaN(p.z2)&&(w2(),p.z2=0),isNaN(p.zlevel)&&(w2(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,r);var y=t.getTextGuideLine();y&&this._updateAndAddDisplayable(y,s,r);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,r)}},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 n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var i=wn(this._roots,t);i>=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})(),dw;dw=zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function np(){return new Date().getTime()}var txe=(function(e){ft(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,i=n.next;r?r.next=i:this._head=i,i?i.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=np()-this._pausedTime,i=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,n||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(dw(r),!n._paused&&n.update())}dw(r)},t.prototype.start=function(){this._running||(this._time=np(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=np(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=np()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var i=new hD(n,r.loop);return this.addAnimator(i),i},t})(Ss),nxe=300,x2=zt.domSupported,T2=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=$t(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}})(),W$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},j$=!1;function mP(e){var t=e.pointerType;return t==="pen"||t==="touch"}function rxe(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 C2(e){e&&(e.zrByTouch=!0)}function ixe(e,t){return Ta(e.dom,new oxe(e,t),!0)}function J7(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var oxe=(function(){function e(t,n){this.stopPropagation=ro,this.stopImmediatePropagation=ro,this.preventDefault=ro,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),ts={mousedown:function(e){e=Ta(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ta(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=Ta(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ta(this.dom,e);var t=e.toElement||e.relatedTarget;J7(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){j$=!0,e=Ta(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){j$||(e=Ta(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ta(this.dom,e),C2(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ts.mousemove.call(this,e),ts.mousedown.call(this,e)},touchmove:function(e){e=Ta(this.dom,e),C2(e),this.handler.processGesture(e,"change"),ts.mousemove.call(this,e)},touchend:function(e){e=Ta(this.dom,e),C2(e),this.handler.processGesture(e,"end"),ts.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<nxe&&ts.click.call(this,e)},pointerdown:function(e){ts.mousedown.call(this,e)},pointermove:function(e){mP(e)||ts.mousemove.call(this,e)},pointerup:function(e){ts.mouseup.call(this,e)},pointerout:function(e){mP(e)||ts.mouseout.call(this,e)}};ee(["click","dblclick","contextmenu"],function(e){ts[e]=function(t){t=Ta(this.dom,t),this.trigger(e,t)}});var yP={pointermove:function(e){mP(e)||yP.mousemove.call(this,e)},pointerup:function(e){yP.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function axe(e,t){var n=t.domHandlers;zt.pointerEventsSupported?ee(T2.pointer,function(r){Gb(t,r,function(i){n[r].call(e,i)})}):(zt.touchEventsSupported&&ee(T2.touch,function(r){Gb(t,r,function(i){n[r].call(e,i),rxe(t)})}),ee(T2.mouse,function(r){Gb(t,r,function(i){i=eO(i),t.touching||n[r].call(e,i)})}))}function sxe(e,t){zt.pointerEventsSupported?ee(W$.pointer,n):zt.touchEventsSupported||ee(W$.mouse,n);function n(r){function i(o){o=eO(o),J7(e,o.target)||(o=ixe(e,o),t.domHandlers[r].call(e,o))}Gb(t,r,i,{capture:!0})}}function Gb(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Hwe(e.domTarget,t,n,r)}function E2(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&zwe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Y$=(function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e})(),lxe=(function(e){ft(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new Y$(n,ts),x2&&(i._globalHandlerScope=new Y$(document,yP)),axe(i,i._localHandlerScope),i}return t.prototype.dispose=function(){E2(this._localHandlerScope),x2&&E2(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,x2&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?sxe(this,r):E2(r)}},t})(Ss);/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Wb={},Q7={};function uxe(e){delete Q7[e]}function cxe(e){if(!e)return!1;if(typeof e=="string")return XS(e,1)<UA;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=XS(t[i].color,1);return n/=r,n<UA}return!1}var fxe=(function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new exe,a=r.renderer||"canvas";Wb[a]||(a=ir(Wb)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Wb[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!zt.node&&!zt.worker&&!l?new lxe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?zt.touchEventsSupported:!!c,h=44,d;f&&(d=Ft(r.pointerSize,h)),this.handler=new K7(o,s,u,s.root,d),this.animation=new txe({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=cxe(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=np();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=np();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof ci&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,uxe(this.id))},e})();function X$(e,t){var n=new fxe(LG(),e,t);return Q7[n.id]=n,n}function dxe(e,t){Wb[e]=t}var eW="";typeof navigator<"u"&&(eW=navigator.platform||"");var Mh="rgba(0, 0, 0, 0.2)",tW=Ct.color.theme[0],hxe=NA(tW,null,null,.9);const pxe={darkMode:"auto",colorBy:"series",color:Ct.color.theme,gradientColor:[hxe,tW],aria:{decal:{decals:[{color:Mh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Mh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Mh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Mh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Mh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Mh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:eW.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 vxe=tn();function gxe(e,t,n){var r=vxe.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var w_,fg,K$,Z$="\0_ec_inner",mxe=1,tO=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new fr(o),this._locale=new fr(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=Q$(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Q$(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?K$(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&ee(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=tn(),u=r&&r.replaceMergeMainTypeMap;L_e(this),ee(n,function(f,h){f!=null&&(Nn.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?hn(f):Rn(i[h],f,!0))}),u&&u.each(function(f,h){Nn.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Nn.topologicalTravel(s,Nn.getAllClassMainTypes(),c,this);function c(f){var h=gxe(this,f,oo(n[f])),d=o.get(f),p=d?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=K0e(d,h,p);n1e(g,f,Nn),i[f]=null,o.set(f,null),a.set(f,0);var y=[],m=[],b=0,w;ee(g,function(S,C){var T=S.existing,E=S.newOption;if(!E)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var P=f==="series",I=Nn.getClass(f,S.keyInfo.subType,!P);if(!I)return;if(f==="tooltip"){if(w)return;w=!0}if(T&&T.constructor===I)T.name=S.keyInfo.name,T.mergeOption(E,this),T.optionUpdated(E,!1);else{var D=et({componentIndex:C},S.keyInfo);T=new I(E,this,this,D),et(T,D),S.brandNew&&(T.__requireNewView=!0),T.init(E,this,this),T.optionUpdated(null,!0)}}T?(y.push(T.option),m.push(T),b++):(y.push(void 0),m.push(void 0))},this),i[f]=y,o.set(f,m),a.set(f,b),f==="series"&&w_(this)}this._seriesIndices||w_(this)},t.prototype.getOption=function(){var n=hn(this.option);return ee(n,function(r,i){if(Nn.hasClass(i)){for(var o=oo(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!yy(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[Z$],n},t.prototype.setTheme=function(n){this._theme=new fr(n),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],ee(oo(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=q$("id",o,s):a!=null?l=q$("name",a,s):l=oi(s,function(u){return!!u}),J$(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):oi(this._componentsMap.get(i),function(u){return!!u});return l(J$(a,n));function s(u){var c=i+"Index",f=i+"Id",h=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[h]!=null)?{mainType:i,index:u[c],id:u[f],name:u[h]}:null}function l(u){return n.filter?oi(u,n.filter):u}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(Bt(n)){var a=r,s=n;o.each(function(f,h){for(var d=0;f&&d<f.length;d++){var p=f[d];p&&s.call(a,h,p,p.componentIndex)}})}else for(var l=wt(n)?o.get(n):Et(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=vs(n,null);return oi(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return oi(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return oi(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){fg(this),ee(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){ee(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){fg(this),ee(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return ee(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return fg(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){fg(this);var i=[];ee(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=tn(i)},t.prototype.restoreData=function(n){w_(this);var r=this._componentsMap,i=[];r.each(function(o,a){Nn.hasClass(a)&&i.push(a)}),Nn.topologicalTravel(i,Nn.getAllClassMainTypes(),function(o){ee(r.get(o),function(a){a&&(o!=="series"||!yxe(a,n))&&a.restoreData()})})},t.internalField=(function(){w_=function(n){var r=n._seriesIndices=[];ee(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=tn(r)},fg=function(n){},K$=function(n,r){n.option={},n.option[Z$]=mxe,n._componentsMap=tn({series:[]}),n._componentsCount=tn();var i=r.aria;Et(i)&&i.enabled==null&&(i.enabled=!0),_xe(r,n._theme.option),Rn(r,pxe,!1),n._mergeOption(r,null)}})(),t})(fr);function yxe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function _xe(e,t){var n=e.color&&!e.colorLayer;ee(t,function(r,i){i==="colorLayer"&&n||i==="color"&&e.color||Nn.hasClass(i)||(typeof r=="object"?e[i]=e[i]?Rn(e[i],r,!1):hn(r):e[i]==null&&(e[i]=r))})}function q$(e,t,n){if(pt(t)){var r=tn();return ee(t,function(o){if(o!=null){var a=vs(o,null);a!=null&&r.set(o,!0)}}),oi(n,function(o){return o&&r.get(o[e])})}else{var i=vs(t,null);return oi(n,function(o){return o&&i!=null&&o[e]===i})}}function J$(e,t){return t.hasOwnProperty("subType")?oi(e,function(n){return n&&n.subType===t.subType}):e}function Q$(e){var t=tn();return e&&ee(oo(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}hl(tO,qD);var bxe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nW=(function(){function e(t){ee(bxe,function(n){this[n]=mn(t[n],t)},this)}return e})(),Sxe=/^(min|max)?(.+)$/,wxe=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(ee(oo(t.series),function(a){a&&a.data&&Bo(a.data)&&CA(a.data)}),ee(oo(t.dataset),function(a){a&&a.source&&Bo(a.source)&&CA(a.source)})),t=hn(t);var i=this._optionBackup,o=xxe(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],hn(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=hn(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)Txe(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!Exe(a,this._currentMediaIndices)&&(s=$t(a,function(c){return hn(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},e})();function xxe(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&pt(u)&&ee(u,function(d){d&&d.option&&(d.query?r.push(d):i||(i=d))}),h(o),ee(l,function(d){return h(d)}),ee(r,function(d){return h(d.option)});function h(d){ee(t,function(p){p(d,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function Txe(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return ee(e,function(o,a){var s=a.match(Sxe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Cxe(r[u],o,l)||(i=!1)}}),i}function Cxe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function Exe(e,t){return e.join(",")===t.join(",")}var qa=ee,Cy=Et,eB=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function I2(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=eB.length;n<r;n++){var i=eB[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?Rn(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?Rn(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function Oi(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Mn(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Ug(e){Oi(e,"itemStyle"),Oi(e,"lineStyle"),Oi(e,"areaStyle"),Oi(e,"label"),Oi(e,"labelLine"),Oi(e,"upperLabel"),Oi(e,"edgeLabel")}function Rr(e,t){var n=Cy(e)&&e[t],r=Cy(n)&&n.textStyle;if(r)for(var i=0,o=A4.length;i<o;i++){var a=A4[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function Ca(e){e&&(Ug(e),Rr(e,"label"),e.emphasis&&Rr(e.emphasis,"label"))}function Ixe(e){if(Cy(e)){I2(e),Ug(e),Rr(e,"label"),Rr(e,"upperLabel"),Rr(e,"edgeLabel"),e.emphasis&&(Rr(e.emphasis,"label"),Rr(e.emphasis,"upperLabel"),Rr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(I2(t),Ca(t));var n=e.markLine;n&&(I2(n),Ca(n));var r=e.markArea;r&&Ca(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Bo(o))for(var a=0;a<o.length;a++)Ca(o[a]);ee(e.categories,function(u){Ug(u)})}if(i&&!Bo(i))for(var a=0;a<i.length;a++)Ca(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Ca(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)pt(l[a])?(Ca(l[a][0]),Ca(l[a][1])):Ca(l[a]);e.type==="gauge"?(Rr(e,"axisLabel"),Rr(e,"title"),Rr(e,"detail")):e.type==="treemap"?(Oi(e.breadcrumb,"itemStyle"),ee(e.levels,function(u){Ug(u)})):e.type==="tree"&&Ug(e.leaves)}}function Rl(e){return pt(e)?e:e?[e]:[]}function tB(e){return(pt(e)?e[0]:e)||{}}function Axe(e,t){qa(Rl(e.series),function(r){Cy(r)&&Ixe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),qa(n,function(r){qa(Rl(e[r]),function(i){i&&(Rr(i,"axisLabel"),Rr(i.axisPointer,"label"))})}),qa(Rl(e.parallel),function(r){var i=r&&r.parallelAxisDefault;Rr(i,"axisLabel"),Rr(i&&i.axisPointer,"label")}),qa(Rl(e.calendar),function(r){Oi(r,"itemStyle"),Rr(r,"dayLabel"),Rr(r,"monthLabel"),Rr(r,"yearLabel")}),qa(Rl(e.radar),function(r){Rr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),qa(Rl(e.geo),function(r){Cy(r)&&(Ca(r),qa(Rl(r.regions),function(i){Ca(i)}))}),qa(Rl(e.timeline),function(r){Ca(r),Oi(r,"label"),Oi(r,"itemStyle"),Oi(r,"controlStyle",!0);var i=r.data;pt(i)&&ee(i,function(o){Et(o)&&(Oi(o,"label"),Oi(o,"itemStyle"))})}),qa(Rl(e.toolbox),function(r){Oi(r,"iconStyle"),qa(r.feature,function(i){Oi(i,"iconStyle")})}),Rr(tB(e.axisPointer),"label"),Rr(tB(e.tooltip).axisPointer,"label")}function Pxe(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function Rxe(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function nB(e){e&&ee(Mxe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Mxe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Dxe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],A2=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function dg(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<A2.length;n++){var r=A2[n][1],i=A2[n][0];t[r]!=null&&(t[i]=t[r])}}function rB(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function iB(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Oxe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function rW(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&rW(e[n].children,t)}function iW(e,t){Axe(e,t),e.series=oo(e.series),ee(e.series,function(n){if(Et(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),rB(n.label);var i=n.data;if(i&&!Bo(i))for(var o=0;o<i.length;o++)rB(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=Pxe(n,"pointer.color");a!=null&&Rxe(n,"itemStyle.color",a)}else if(r==="bar"){dg(n),dg(n.backgroundStyle),dg(n.emphasis);var i=n.data;if(i&&!Bo(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(dg(i[o]),dg(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),iB(n),rW(n.data,iB)}else r==="graph"||r==="sankey"?Oxe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Mn(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),nB(n)}}),e.dataRange&&(e.visualMap=e.dataRange),ee(Dxe,function(n){var r=e[n];r&&(pt(r)||(r=[r]),ee(r,function(i){nB(i)}))})}function Lxe(e){var t=tn();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.push(a)}}),t.each(function(n){if(n.length!==0){var r=n[0].seriesModel,i=r.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&n.reverse(),ee(n,function(o,a){o.data.setCalculationInfo("stackedOnSeries",a>0?n[a-1].seriesModel:null)}),kxe(n)}})}function kxe(e){ee(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var h=a.get(t.stackedDimension,f);if(isNaN(h))return i;var d,p;s?p=a.getRawIndex(f):d=a.get(t.stackedByDimension,f);for(var g=NaN,y=n-1;y>=0;y--){var m=e[y];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,d)),p>=0){var b=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&h>=0&&b>0||l==="samesign"&&h<=0&&b<0){h=U0e(h,b),g=b;break}}}return r[0]=h,r[1]=g,r})})}var fl=(function(){function e(){this.group=new ci,this.uid=Xx("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){},e.prototype.updateLayout=function(t,n,r,i){},e.prototype.updateVisual=function(t,n,r,i){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();lD(fl);Ox(fl);var oB=or(),aB={itemStyle:vy(j9,!0),lineStyle:vy(W9,!0)},Nxe={lineStyle:"stroke",itemStyle:"fill"};function oW(e,t){var n=e.visualStyleMapper||aB[t];return n||(console.warn("Unknown style type '"+t+"'."),aB.itemStyle)}function aW(e,t){var n=e.visualDrawType||Nxe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Fxe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=oW(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=aW(e,r),u=a[l],c=Bt(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Bt(a.fill)?h:a.fill,a.stroke=a.stroke==="auto"||Bt(a.stroke)?h:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,p){var g=e.getDataParams(p),y=et({},a);y[l]=c(g),d.setItemVisual(p,"style",y)}}}},hg=new fr,$xe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=oW(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){hg.option=l[r];var u=i(hg),c=a.ensureUniqueItemVisual(s,"style");et(c,u),hg.option.decal&&(a.setItemVisual(s,"decal",hg.option.decal),hg.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Bxe={performRawSeries:!0,overallReset:function(e){var t=tn();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=t.get(i);o||(o={},t.set(i,o)),oB(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=oB(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=aW(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var h=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",p=r.count();h[l]=n.getColorFromPalette(d,a,p)}})}})}},x_=Math.PI;function Uxe(e,t){t=t||{},Mn(t,{text:"loading",textColor:Ct.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Ct.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ci,r=new Kr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Uo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Kr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new zx({shape:{startAngle:-x_/2,endAngle:-x_/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:x_*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:x_*3/2}).delay(300).start("circularInOut"),n.add(a)),n.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&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var sW=(function(){function e(t,n,r,i){this._stageTaskMap=tn(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=tn();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;r.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;ee(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";ul(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},e.prototype.prepareView=function(t,n,r,i){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,i){i=i||{};var o=!1,a=this;ee(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,h=c.overallTask;if(h){var d,p=h.agentStubMap;p.each(function(y){s(i,y)&&(y.dirty(),d=!0)}),d&&h.dirty(),a.updatePayload(h,r);var g=a.getPerformArgs(h,i.block);p.each(function(y){y.perform(g)}),h.perform(g)&&(o=!0)}else f&&f.each(function(y,m){s(i,y)&&y.dirty();var b=a.getPerformArgs(y,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(y.context.model),a.updatePayload(y,r),y.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=tn(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var h=f.uid,d=s.set(h,a&&a.get(h)||Mm({plan:Wxe,reset:jxe,count:Xxe}));d.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||Mm({reset:Vxe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=tn(),u=t.seriesType,c=t.getTargetSeries,f=!0,h=!1,d="";ul(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,p):c?c(r,i).each(p):(f=!1,ee(r.getSeries(),p));function p(g){var y=g.uid,m=l.set(y,s&&s.get(y)||(h=!0,Mm({reset:Hxe,onDirty:Gxe})));m.context={model:g,overallProgress:f},m.agent=a,m.__block=f,o._pipe(g,m)}h&&a.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,i=this._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i},e.wrapStageHandler=function(t,n){return Bt(t)&&(t={overallReset:t,seriesType:Kxe(t)}),t.uid=Xx("stageHandler"),n&&(t.visualType=n),t},e})();function Vxe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Hxe(e){return e.overallProgress&&zxe}function zxe(){this.agent.dirty(),this.getDownstream().dirty()}function Gxe(){this.agent&&this.agent.dirty()}function Wxe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function jxe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=oo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?$t(t,function(n,r){return lW(r)}):Yxe}var Yxe=lW(0);function lW(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function Xxe(e){return e.data.count()}function Kxe(e){hw=null;try{e(Ey,uW)}catch{}return hw}var Ey={},uW={},hw;cW(Ey,tO);cW(uW,nW);Ey.eachSeriesByType=Ey.eachRawSeriesByType=function(e){hw=e};Ey.eachComponent=function(e){e.mainType==="series"&&e.subType&&(hw=e.subType)};function cW(e,t){for(var n in t.prototype)e[n]=ro}var at=Ct.darkColor,Zxe=at.background,pg=function(){return{axisLine:{lineStyle:{color:at.axisLine}},splitLine:{lineStyle:{color:at.axisSplitLine}},splitArea:{areaStyle:{color:[at.backgroundTint,at.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:at.axisMinorSplitLine}},axisLabel:{color:at.axisLabel},axisName:{}}},sB={label:{color:at.secondary},itemStyle:{borderColor:at.borderTint},dividerLineStyle:{color:at.border}},fW={darkMode:!0,color:at.theme,backgroundColor:Zxe,axisPointer:{lineStyle:{color:at.border},crossStyle:{color:at.borderShade},label:{color:at.tertiary}},legend:{textStyle:{color:at.secondary},pageTextStyle:{color:at.tertiary}},textStyle:{color:at.secondary},title:{textStyle:{color:at.primary},subtextStyle:{color:at.quaternary}},toolbox:{iconStyle:{borderColor:at.accent50}},tooltip:{backgroundColor:at.neutral20,defaultBorderColor:at.border,textStyle:{color:at.tertiary}},dataZoom:{borderColor:at.accent10,textStyle:{color:at.tertiary},brushStyle:{color:at.backgroundTint},handleStyle:{color:at.neutral00,borderColor:at.accent20},moveHandleStyle:{color:at.accent40},emphasis:{handleStyle:{borderColor:at.accent50}},dataBackground:{lineStyle:{color:at.accent30},areaStyle:{color:at.accent20}},selectedDataBackground:{lineStyle:{color:at.accent50},areaStyle:{color:at.accent30}}},visualMap:{textStyle:{color:at.secondary},handleStyle:{borderColor:at.neutral30}},timeline:{lineStyle:{color:at.accent10},label:{color:at.tertiary},controlStyle:{color:at.accent30,borderColor:at.accent30}},calendar:{itemStyle:{color:at.neutral00,borderColor:at.neutral20},dayLabel:{color:at.tertiary},monthLabel:{color:at.secondary},yearLabel:{color:at.secondary}},matrix:{x:sB,y:sB,backgroundColor:{borderColor:at.axisLine},body:{itemStyle:{borderColor:at.borderTint}}},timeAxis:pg(),logAxis:pg(),valueAxis:pg(),categoryAxis:pg(),line:{symbol:"circle"},graph:{color:at.theme},gauge:{title:{color:at.secondary},axisLine:{lineStyle:{color:[[1,at.neutral05]]}},axisLabel:{color:at.axisLabel},detail:{color:at.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:at.background}},radar:(function(){var e=pg();return e.axisName={color:at.axisLabel},e.axisLine.lineStyle.color=at.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:at.neutral20,textStyle:{color:at.secondary}},emphasis:{itemStyle:{color:at.neutral30}}}},sunburst:{itemStyle:{borderColor:at.background}},map:{itemStyle:{borderColor:at.border,areaColor:at.neutral10},label:{color:at.tertiary},emphasis:{label:{color:at.primary},itemStyle:{areaColor:at.highlight}},select:{label:{color:at.primary},itemStyle:{areaColor:at.highlight}}},geo:{itemStyle:{borderColor:at.border,areaColor:at.neutral10},emphasis:{label:{color:at.primary},itemStyle:{areaColor:at.highlight}},select:{label:{color:at.primary},itemStyle:{color:at.highlight}}}};fW.categoryAxis.splitLine.show=!1;var qxe=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(wt(t)){var o=Ks(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};ee(t,function(l,u){for(var c=!1,f=0;f<a.length;f++){var h=a[f],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var p=u.slice(0,d);p!=="data"&&(n.mainType=p,n[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,i,o));function c(f,h,d,p){return f[d]==null||h[p||d]===f[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),_P=["symbol","symbolSize","symbolRotate","symbolOffset"],lB=_P.concat(["symbolKeepAspect"]),Jxe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<_P.length;a++){var s=_P[a],l=e.get(s);Bt(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(et({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=ir(i);function c(f,h){for(var d=e.getRawValue(h),p=e.getDataParams(h),g=0;g<u.length;g++){var y=u[g];f.setItemVisual(h,y,i[y](d,p))}}return{dataEach:o?c:null}}},Qxe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<lB.length;s++){var l=lB[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function eTe(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function tTe(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function Vg(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var nTe=Math.round(Math.random()*9),rTe=typeof Object.defineProperty=="function",iTe=(function(){function e(){this._id="__ec_inner_"+nTe++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return rTe?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})();function Kf(e){return isFinite(e)}function oTe(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Kf(r)?r:0,i=Kf(i)?i:1,o=Kf(o)?o:0,a=Kf(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function aTe(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=Kf(a)?a:.5,s=Kf(s)?s:.5,l=l>=0&&Kf(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function bP(e,t,n){for(var r=t.type==="radial"?aTe(e,t,n):oTe(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function sTe(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function T_(e){return parseInt(e,10)}function C_(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||T_(s[r])||T_(e.style[r]))-(T_(s[o])||0)-(T_(s[a])||0)|0}function lTe(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:qn(e)?[e]:pt(e)?e:null}function dW(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&lTe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=$t(n,function(o){return o/i}),r/=i)}return[n,r]}var uTe=new kd(!0);function pw(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function uB(e){return typeof e=="string"&&e!=="none"}function vw(e){var t=e.fill;return t!=null&&t!=="none"}function cB(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function fB(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function SP(e,t,n){var r=HG(t.image,t.__image,n);if(Lx(r)){var i=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Kme),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function cTe(e,t,n,r){var i,o=pw(n),a=vw(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||uTe,f=t.__dirty;if(!r){var h=n.fill,d=n.stroke,p=a&&!!h.colorStops,g=o&&!!d.colorStops,y=a&&!!h.image,m=o&&!!d.image,b=void 0,w=void 0,S=void 0,C=void 0,T=void 0;(p||g)&&(T=t.getBoundingRect()),p&&(b=f?bP(e,h,T):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(w=f?bP(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),y&&(S=f||!t.__canvasFillPattern?SP(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(C=f||!t.__canvasStrokePattern?SP(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=C),p?e.fillStyle=b:y&&(S?e.fillStyle=S:a=!1),g?e.strokeStyle=w:m&&(C?e.strokeStyle=C:o=!1)}var E=t.getGlobalScale();c.setScale(E[0],E[1],t.segmentIgnoreThreshold);var P,I;e.setLineDash&&n.lineDash&&(i=dW(t),P=i[0],I=i[1]);var D=!0;(u||f&zh)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),D=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),D&&c.rebuildPath(e,l?s:1),P&&(e.setLineDash(P),e.lineDashOffset=I),r||(n.strokeFirst?(o&&fB(e,n),a&&cB(e,n)):(a&&cB(e,n),o&&fB(e,n))),P&&e.setLineDash([])}function fTe(e,t,n){var r=t.__image=HG(n.image,t.__image,t,t.onload);if(!(!r||!Lx(r))){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,h=s-c;e.drawImage(r,u,c,f,h,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function dTe(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||Dc,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=dW(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(pw(n)&&e.strokeText(i,n.x,n.y),vw(n)&&e.fillText(i,n.x,n.y)):(vw(n)&&e.fillText(i,n.x,n.y),pw(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var dB=["shadowBlur","shadowOffsetX","shadowOffsetY"],hB=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hW(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Ao(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?md.opacity:a}(r||t.blend!==n.blend)&&(o||(Ao(e,i),o=!0),e.globalCompositeOperation=t.blend||md.blend);for(var s=0;s<dB.length;s++){var l=dB[s];(r||t[l]!==n[l])&&(o||(Ao(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(Ao(e,i),o=!0),e.shadowColor=t.shadowColor||md.shadowColor),o}function pB(e,t,n,r,i){var o=Iy(t,i.inHover),a=r?null:n&&Iy(n,i.inHover)||{};if(o===a)return!1;var s=hW(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Ao(e,i),s=!0),uB(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Ao(e,i),s=!0),uB(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Ao(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Ao(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<hB.length;c++){var f=hB[c],h=f[0];(r||o[h]!==a[h])&&(s||(Ao(e,i),s=!0),e[h]=o[h]||f[1])}return s}function hTe(e,t,n,r,i){return hW(e,Iy(t,i.inHover),n&&Iy(n,i.inHover),r,i)}function pW(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function pTe(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),pW(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function vTe(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var vB=1,gB=2,mB=3,yB=4;function gTe(e){var t=vw(e),n=pw(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ao(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Iy(e,t){return t&&e.__hoverStyle||e.style}function vW(e,t){Zf(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Zf(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~ea,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||sTe(o,a))&&(a&&a.length&&(Ao(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Ao(e,n),e.save(),pTe(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Bn&&t.autoBatch&&gTe(t.style);s||vTe(i,u.transform)?(Ao(e,n),pW(e,t)):c||Ao(e,n);var f=Iy(t,n.inHover);t instanceof Bn?(n.lastDrawType!==vB&&(l=!0,n.lastDrawType=vB),pB(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),cTe(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof ZS?(n.lastDrawType!==mB&&(l=!0,n.lastDrawType=mB),pB(e,t,u,l,n),dTe(e,t,f)):t instanceof Gc?(n.lastDrawType!==gB&&(l=!0,n.lastDrawType=gB),hTe(e,t,u,l,n),fTe(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==yB&&(l=!0,n.lastDrawType=yB),mTe(e,t,n)),c&&r&&Ao(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function mTe(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Zf(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Zf(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var P2=new iTe,_B=new jp(100),bB=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function wP(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&P2.delete(e);var o=P2.get(e);if(o)return o;var a=Mn(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,P2.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,h=0;h<bB.length;++h){var d=a[bB[h]];if(d!=null&&!pt(d)&&!wt(d)&&!qn(d)&&typeof d!="boolean"){f=!1;break}c.push(d)}var p;if(f){p=c.join(",")+(i?"-svg":"");var g=_B.get(p);g&&(i?u.svgElement=g:u.image=g)}var y=mW(a.dashArrayX),m=yTe(a.dashArrayY),b=gW(a.symbol),w=_Te(y),S=yW(m),C=!i&&yu.createCanvas(),T=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=I(),P;C&&(C.width=E.width*n,C.height=E.height*n,P=C.getContext("2d")),D(),f&&_B.put(p,C||T),u.image=C,u.svgElement=T,u.svgWidth=E.width,u.svgHeight=E.height;function I(){for(var O=1,N=0,M=w.length;N<M;++N)O=C4(O,w[N]);for(var k=1,N=0,M=b.length;N<M;++N)k=C4(k,b[N].length);O*=k;var V=S*w.length*b.length;return{width:Math.max(1,Math.min(O,a.maxTileWidth)),height:Math.max(1,Math.min(V,a.maxTileHeight))}}function D(){P&&(P.clearRect(0,0,C.width,C.height),a.backgroundColor&&(P.fillStyle=a.backgroundColor,P.fillRect(0,0,C.width,C.height)));for(var O=0,N=0;N<m.length;++N)O+=m[N];if(O<=0)return;for(var M=-S,k=0,V=0,B=0;M<E.height;){if(k%2===0){for(var U=V/2%b.length,$=0,J=0,ae=0;$<E.width*2;){for(var ne=0,N=0;N<y[B].length;++N)ne+=y[B][N];if(ne<=0)break;if(J%2===0){var _e=(1-a.symbolSize)*.5,me=$+y[B][J]*_e,Me=M+m[k]*_e,Re=y[B][J]*a.symbolSize,ke=m[k]*a.symbolSize,oe=ae/2%b[U].length;Ee(me,Me,Re,ke,b[U][oe])}$+=y[B][J],++ae,++J,J===y[B].length&&(J=0)}++B,B===y.length&&(B=0)}M+=m[k],++V,++k,k===m.length&&(k=0)}function Ee(we,Ae,Oe,Ue,Y){var X=i?1:n,de=Jp(Y,we*X,Ae*X,Oe*X,Ue*X,a.color,a.symbolKeepAspect);if(i){var Ie=r.painter.renderOneToVNode(de);Ie&&T.children.push(Ie)}else vW(P,de)}}}}function gW(e){if(!e||e.length===0)return[["rect"]];if(wt(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!wt(e[n])){t=!1;break}if(t)return gW([e]);for(var r=[],n=0;n<e.length;++n)wt(e[n])?r.push([e[n]]):r.push(e[n]);return r}function mW(e){if(!e||e.length===0)return[[0,0]];if(qn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!qn(e[r])){n=!1;break}if(n)return mW([e]);for(var i=[],r=0;r<e.length;++r)if(qn(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=$t(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function yTe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(qn(e)){var t=Math.ceil(e);return[t,t]}var n=$t(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function _Te(e){return $t(e,function(t){return yW(t)})}function yW(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function bTe(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=wP(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=wP(i,t)}}})}var ns=new Ss,_W={};function STe(e,t){_W[e]=t}function wTe(e){return _W[e]}var xTe=1,TTe=800,CTe=900,ETe=1e3,ITe=2e3,ATe=5e3,bW=1e3,PTe=1100,nO=2e3,SW=3e3,RTe=4e3,Jx=4500,MTe=4600,DTe=5e3,OTe=6e3,wW=7e3,LTe={PROCESSOR:{FILTER:ETe,SERIES_FILTER:TTe,STATISTIC:ATe},VISUAL:{LAYOUT:bW,PROGRESSIVE_LAYOUT:PTe,GLOBAL:nO,CHART:SW,POST_CHART_LAYOUT:MTe,COMPONENT:RTe,BRUSH:DTe,CHART_ITEM:Jx,ARIA:OTe,DECAL:wW}},Nr="__flagInMainProcess",E_="__mainProcessVersion",ti="__pendingUpdate",R2="__needsUpdateStatus",SB=/^[a-zA-Z0-9_]+$/,M2="__connectUpdateStatus",wB=0,kTe=1,NTe=2;function xW(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return CW(this,e,t)}}function TW(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return CW(this,e,t)}}function CW(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ss.prototype[t].apply(e,n)}var EW=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ss),IW=EW.prototype;IW.on=TW("on");IW.off=TW("off");var Mf,D2,I_,Ml,A_,O2,L2,Dh,Oh,xB,TB,k2,CB,P_,EB,AW,Sa,IB,Lh,PW=(function(e){ft(t,e);function t(n,r,i){var o=e.call(this,new qxe)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},o._dom=n;var a="canvas",s="auto",l=!1;o[E_]=1,i.ssr;var u=o._zr=X$(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Ft(i.useDirtyRect,l),useCoarsePointer:Ft(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=G7(mn(u.flush,u),17),o._updateTheme(r),o._locale=Nbe(i.locale||v7),o._coordSysMgr=new $D;var c=o._api=EB(o);function f(h,d){return h.__prio-d.__prio}return zb(mw,f),zb(CP,f),o._scheduler=new sW(o,c,CP,mw),o._messageCenter=new EW,o._initEvents(),o.resize=mn(o.resize,o),u.animation.on("frame",o._onframe,o),xB(u,o),TB(u,o),CA(o),o}return t.prototype._onframe=function(){if(!this._disposed){IB(this);var n=this._scheduler;if(this[ti]){var r=this[ti].silent;this[Nr]=!0,Lh(this);try{Mf(this),Ml.update.call(this,null,this[ti].updateParams)}catch(l){throw this[Nr]=!1,this[ti]=null,l}this._zr.flush(),this[Nr]=!1,this[ti]=null,Dh.call(this,r),Oh.call(this,r)}else if(n.unfinished){var i=xTe,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),O2(this,o),n.performVisualTasks(o),P_(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.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(n,r,i){if(!this[Nr]){if(this._disposed){this.id;return}var o,a,s;if(Et(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Nr]=!0,Lh(this),!this._model||r){var l=new wxe(this._api),u=this._theme,c=this._model=new tO;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},EP);var f={seriesTransition:s,optionChanged:!0};if(i)this[ti]={silent:o,updateParams:f},this[Nr]=!1,this.getZr().wakeUp();else{try{Mf(this),Ml.update.call(this,null,f)}catch(h){throw this[ti]=null,this[Nr]=!1,h}this._ssr||this._zr.flush(),this[ti]=null,this[Nr]=!1,Dh.call(this,o),Oh.call(this,o)}}},t.prototype.setTheme=function(n,r){if(!this[Nr]){if(this._disposed){this.id;return}var i=this._model;if(i){var o=r&&r.silent,a=null;this[ti]&&(o==null&&(o=this[ti].silent),a=this[ti].updateParams,this[ti]=null),this[Nr]=!0,Lh(this);try{this._updateTheme(n),i.setTheme(this._theme),Mf(this),Ml.update.call(this,{type:"setTheme"},a)}catch(s){throw this[Nr]=!1,s}this[Nr]=!1,Dh.call(this,o),Oh.call(this,o)}}},t.prototype._updateTheme=function(n){wt(n)&&(n=RW[n]),n&&(n=hn(n),n&&iW(n,!0),this._theme=n)},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||zt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){var n=this._zr,r=n.storage.getDisplayList();return ee(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;ee(r,function(l){i.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return ee(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(AB[i]){var l=s,u=s,c=-s,f=-s,h=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();ee(Dm,function(w,S){if(w.group===i){var C=r?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(hn(n)),T=w.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),f=a(T.bottom,f),h.push({dom:C,left:T.left,top:T.top})}}),l*=d,u*=d,c*=d,f*=d;var p=c-l,g=f-u,y=yu.createCanvas(),m=X$(y,{renderer:r?"svg":"canvas"});if(m.resize({width:p,height:g}),r){var b="";return ee(h,function(w){var S=w.left-l,C=w.top-u;b+='<g transform="translate('+S+","+C+')">'+w.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new Kr({shape:{x:0,y:0,width:p,height:g},style:{fill:n.connectedBackgroundColor}})),ee(h,function(w){var S=new Gc({style:{x:w.left*d-l,y:w.top*d-u,image:w.dom}});m.add(S)}),m.refreshImmediately(),y.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r,i){return A_(this,"convertToPixel",n,r,i)},t.prototype.convertToLayout=function(n,r,i){return A_(this,"convertToLayout",n,r,i)},t.prototype.convertFromPixel=function(n,r,i){return A_(this,"convertFromPixel",n,r,i)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=ZE(i,n);return ee(a,function(s,l){l.indexOf("Models")>=0&&ee(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(o=o||f.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=ZE(i,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?eTe(s,l,r):tTe(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;ee(FTe,function(i){var o=function(a){var s=n.getModel(),l=a.target,u,c=i==="globalout";if(c?u={}:l&&Vg(l,function(g){var y=kn(g);if(y&&y.dataIndex!=null){var m=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=m&&m.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=et({},y.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var d=f&&h!=null&&s.getComponent(f,h),p=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];u.event=a,u.type=i,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:d,view:p},n.trigger(i,u)}};o.zrEventfulCallAtLast=!0,n._zr.on(i,o,n)});var r=this._messageCenter;ee(TP,function(i,o){r.on(o,function(a){n.trigger(o,a)})}),Dwe(r,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 n=this.getDom();n&&y9(this.getDom(),iO,"");var r=this,i=r._api,o=r._model;ee(r._componentsViews,function(a){a.dispose(o,i)}),ee(r._chartsViews,function(a){a.dispose(o,i)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Dm[r.id]},t.prototype.resize=function(n){if(!this[Nr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),o=n&&n.silent;this[ti]&&(o==null&&(o=this[ti].silent),i=!0,this[ti]=null),this[Nr]=!0,Lh(this);try{i&&Mf(this),Ml.update.call(this,{type:"resize",animation:et({duration:0},n&&n.animation)})}catch(a){throw this[Nr]=!1,a}this[Nr]=!1,Dh.call(this,o),Oh.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Et(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!IP[n]){var i=IP[n](this._api,r),o=this._zr;this._loadingFX=i,o.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(n){var r=et({},n);return r.type=xP[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Et(r)||(r={silent:!!r}),!!gw[n.type]&&this._model){if(this[Nr]){this._pendingActions.push(n);return}var i=r.silent;L2.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&zt.browser.weChat&&this._throttledZrFlush(),Dh.call(this,i),Oh.call(this,i)}},t.prototype.updateLabelLayout=function(){ns.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Mf=function(f){var h=f._scheduler;h.restorePipelines(f._model),h.prepareStageTasks(),D2(f,!0),D2(f,!1),h.plan()},D2=function(f,h){for(var d=f._model,p=f._scheduler,g=h?f._componentsViews:f._chartsViews,y=h?f._componentsMap:f._chartsMap,m=f._zr,b=f._api,w=0;w<g.length;w++)g[w].__alive=!1;h?d.eachComponent(function(T,E){T!=="series"&&S(E)}):d.eachSeries(S);function S(T){var E=T.__requireNewView;T.__requireNewView=!1;var P="_ec_"+T.id+"_"+T.type,I=!E&&y[P];if(!I){var D=Ks(T.type),O=h?fl.getClass(D.main,D.sub):gs.getClass(D.sub);I=new O,I.init(d,b),y[P]=I,g.push(I),m.add(I.group)}T.__viewId=I.__id=P,I.__alive=!0,I.__model=T,I.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!h&&p.prepareView(I,T,d,b)}for(var w=0;w<g.length;){var C=g[w];C.__alive?w++:(!h&&C.renderTask.dispose(),m.remove(C.group),C.dispose(d,b),g.splice(w,1),y[C.__id]===C&&delete y[C.__id],C.__id=C.group.__ecComponentInfo=null)}},I_=function(f,h,d,p,g){var y=f._model;if(y.setUpdatePayload(d),!p){ee([].concat(f._componentsViews).concat(f._chartsViews),C);return}var m={};m[p+"Id"]=d[p+"Id"],m[p+"Index"]=d[p+"Index"],m[p+"Name"]=d[p+"Name"];var b={mainType:p,query:m};g&&(b.subType=g);var w=d.excludeSeriesId,S;w!=null&&(S=tn(),ee(oo(w),function(T){var E=vs(T,null);E!=null&&S.set(E,!0)})),y&&y.eachComponent(b,function(T){var E=S&&S.get(T.id)!=null;if(!E)if(F4(d))if(T instanceof _u)d.type===yd&&!d.notBlur&&!T.get(["emphasis","disabled"])&&y1e(T,d,f._api);else{var P=SD(T.mainType,T.componentIndex,d.name,f._api),I=P.focusSelf,D=P.dispatchers;d.type===yd&&I&&!d.notBlur&&KA(T.mainType,T.componentIndex,f._api),D&&ee(D,function(O){d.type===yd?tw(O):nw(O)})}else eP(d)&&T instanceof _u&&(S1e(T,d,f._api),k4(T),Sa(f))},f),y&&y.eachComponent(b,function(T){var E=S&&S.get(T.id)!=null;E||C(f[p==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},f);function C(T){T&&T.__alive&&T[h]&&T[h](T.__model,y,f._api,d)}},Ml={prepareAndUpdate:function(f){Mf(this),Ml.update.call(this,f,f&&{optionChanged:f.newOption!=null})},update:function(f,h){var d=this._model,p=this._api,g=this._zr,y=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(f),m.restoreData(d,f),m.performSeriesTasks(d),y.create(d,p),m.performDataProcessorTasks(d,f),O2(this,d),y.update(d,p),r(d),m.performVisualTasks(d,f);var b=d.get("backgroundColor")||"transparent";g.setBackgroundColor(b);var w=d.get("darkMode");w!=null&&w!=="auto"&&g.setDarkMode(w),k2(this,d,p,f,h),ns.trigger("afterupdate",d,p)}},updateTransform:function(f){var h=this,d=this._model,p=this._api;if(d){d.setUpdatePayload(f);var g=[];d.eachComponent(function(m,b){if(m!=="series"){var w=h.getViewOfComponentModel(b);if(w&&w.__alive)if(w.updateTransform){var S=w.updateTransform(b,d,p,f);S&&S.update&&g.push(w)}else g.push(w)}});var y=tn();d.eachSeries(function(m){var b=h._chartsMap[m.__viewId];if(b.updateTransform){var w=b.updateTransform(m,d,p,f);w&&w.update&&y.set(m.uid,1)}else y.set(m.uid,1)}),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0,dirtyMap:y}),P_(this,d,p,f,{},y),ns.trigger("afterupdate",d,p)}},updateView:function(f){var h=this._model;h&&(h.setUpdatePayload(f),gs.markUpdateMethod(f,"updateView"),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0}),k2(this,h,this._api,f,{}),ns.trigger("afterupdate",h,this._api))},updateVisual:function(f){var h=this,d=this._model;d&&(d.setUpdatePayload(f),d.eachSeries(function(p){p.getData().clearAllVisual()}),gs.markUpdateMethod(f,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,f,{visualType:"visual",setDirty:!0}),d.eachComponent(function(p,g){if(p!=="series"){var y=h.getViewOfComponentModel(g);y&&y.__alive&&y.updateVisual(g,d,h._api,f)}}),d.eachSeries(function(p){var g=h._chartsMap[p.__viewId];g.updateVisual(p,d,h._api,f)}),ns.trigger("afterupdate",d,this._api))},updateLayout:function(f){Ml.update.call(this,f)}};function n(f,h,d,p,g){if(f._disposed){f.id;return}for(var y=f._model,m=f._coordSysMgr.getCoordinateSystems(),b,w=ZE(y,d),S=0;S<m.length;S++){var C=m[S];if(C[h]&&(b=C[h](y,w,p,g))!=null)return b}}A_=n,O2=function(f,h){var d=f._chartsMap,p=f._scheduler;h.eachSeries(function(g){p.updateStreamModes(g,d[g.__viewId])})},L2=function(f,h){var d=this,p=this.getModel(),g=f.type,y=f.escapeConnect,m=gw[g],b=(m.update||"update").split(":"),w=b.pop(),S=b[0]!=null&&Ks(b[0]);this[Nr]=!0,Lh(this);var C=[f],T=!1;f.batch&&(T=!0,C=$t(f.batch,function(B){return B=Mn(et({},B),f),B.batch=null,B}));var E=[],P,I=[],D=m.nonRefinedEventType,O=eP(f),N=F4(f);if(N&&A9(this._api),ee(C,function(B){var U=m.action(B,p,d._api);if(m.refineEvent?I.push(U):P=U,P=P||et({},B),P.type=D,E.push(P),N){var $=gD(f),J=$.queryOptionMap,ae=$.mainTypeSpecified,ne=ae?J.keys()[0]:"series";I_(d,w,B,ne),Sa(d)}else O?(I_(d,w,B,"series"),Sa(d)):S&&I_(d,w,B,S.main,S.sub)}),w!=="none"&&!N&&!O&&!S)try{this[ti]?(Mf(this),Ml.update.call(this,f),this[ti]=null):Ml[w].call(this,f)}catch(B){throw this[Nr]=!1,B}if(T?P={type:D,escapeConnect:y,batch:E}:P=E[0],this[Nr]=!1,!h){var M=void 0;if(m.refineEvent){var k=m.refineEvent(I,f,p,this._api).eventContent;ul(Et(k)),M=Mn({type:m.refinedEventType},k),M.fromAction=f.type,M.fromActionPayload=f,M.escapeConnect=!0}var V=this._messageCenter;V.trigger(P.type,P),M&&V.trigger(M.type,M)}},Dh=function(f){for(var h=this._pendingActions;h.length;){var d=h.shift();L2.call(this,d,f)}},Oh=function(f){!f&&this.trigger("updated")},xB=function(f,h){f.on("rendered",function(d){h.trigger("rendered",d),f.animation.isFinished()&&!h[ti]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},TB=function(f,h){f.on("mouseover",function(d){var p=d.target,g=Vg(p,QA);g&&(_1e(g,d,h._api),Sa(h))}).on("mouseout",function(d){var p=d.target,g=Vg(p,QA);g&&(b1e(g,d,h._api),Sa(h))}).on("click",function(d){var p=d.target,g=Vg(p,function(b){return kn(b).dataIndex!=null},!0);if(g){var y=g.selected?"unselect":"select",m=kn(g);h._api.dispatchAction({type:y,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(h){h.clearColorPalette()})}function i(f){var h=[],d=[],p=!1;if(f.eachComponent(function(b,w){var S=w.get("zlevel")||0,C=w.get("z")||0,T=w.getZLevelKey();p=p||!!T,(b==="series"?d:h).push({zlevel:S,z:C,idx:w.componentIndex,type:b,key:T})}),p){var g=h.concat(d),y,m;zb(g,function(b,w){return b.zlevel===w.zlevel?b.z-w.z:b.zlevel-w.zlevel}),ee(g,function(b){var w=f.getComponent(b.type,b.idx),S=b.zlevel,C=b.key;y!=null&&(S=Math.max(y,S)),C?(S===y&&C!==m&&S++,m=C):m&&(S===y&&S++,m=""),y=S,w.setZLevel(S)})}}k2=function(f,h,d,p,g){i(h),CB(f,h,d,p,g),ee(f._chartsViews,function(y){y.__alive=!1}),P_(f,h,d,p,g),ee(f._chartsViews,function(y){y.__alive||y.remove(h,d)})},CB=function(f,h,d,p,g,y){ee(y||f._componentsViews,function(m){var b=m.__model;u(b,m),m.render(b,h,d,p),l(b,m),c(b,m)})},P_=function(f,h,d,p,g,y){var m=f._scheduler;g=et(g||{},{updatedSeries:h.getSeries()}),ns.trigger("series:beforeupdate",h,d,g);var b=!1;h.eachSeries(function(w){var S=f._chartsMap[w.__viewId];S.__alive=!0;var C=S.renderTask;m.updatePayload(C,p),u(w,S),y&&y.get(w.uid)&&C.dirty(),C.perform(m.getPerformArgs(C))&&(b=!0),S.group.silent=!!w.get("silent"),s(w,S),k4(w)}),m.unfinished=b||m.unfinished,ns.trigger("series:layoutlabels",h,d,g),ns.trigger("series:transition",h,d,g),h.eachSeries(function(w){var S=f._chartsMap[w.__viewId];l(w,S),c(w,S)}),a(f,h),ns.trigger("series:afterupdate",h,d,g)},Sa=function(f){f[R2]=!0,f.getZr().wakeUp()},Lh=function(f){f[E_]=(f[E_]+1)%1e3},IB=function(f){f[R2]&&(f.getZr().storage.traverse(function(h){Im(h)||o(h)}),f[R2]=!1)};function o(f){for(var h=[],d=f.currentStates,p=0;p<d.length;p++){var g=d[p];g==="emphasis"||g==="blur"||g==="select"||h.push(g)}f.selected&&f.states.select&&h.push("select"),f.hoverState===$x&&f.states.emphasis?h.push("emphasis"):f.hoverState===c0&&f.states.blur&&h.push("blur"),f.useStates(h)}function a(f,h){var d=f._zr,p=d.storage,g=0;p.traverse(function(y){y.isGroup||g++}),g>h.get("hoverLayerThreshold")&&!zt.node&&!zt.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=f._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function s(f,h){var d=f.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=d)})}function l(f,h){if(!f.preventAutoZ){var d=wy(f);h.eachRendered(function(p){return H9(p,d.z,d.zlevel),!0})}}function u(f,h){h.eachRendered(function(d){if(!Im(d)){var p=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(f,h){var d=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),g=d.get("duration"),y=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Im(m))return;if(m instanceof Bn&&I1e(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(p){m.stateTransition=y;var w=m.getTextContent(),S=m.getTextGuideLine();w&&(w.stateTransition=y),S&&(S.stateTransition=y)}m.__dirty&&o(m)}})}EB=function(f){return new((function(h){ft(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(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);p=p.parent}},d.prototype.enterEmphasis=function(p,g){tw(p,g),Sa(f)},d.prototype.leaveEmphasis=function(p,g){nw(p,g),Sa(f)},d.prototype.enterBlur=function(p){m1e(p),Sa(f)},d.prototype.leaveBlur=function(p){T9(p),Sa(f)},d.prototype.enterSelect=function(p){C9(p),Sa(f)},d.prototype.leaveSelect=function(p){E9(p),Sa(f)},d.prototype.getModel=function(){return f.getModel()},d.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},d.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},d.prototype.getMainProcessVersion=function(){return f[E_]},d})(nW))(f)},AW=function(f){function h(d,p){for(var g=0;g<d.length;g++){var y=d[g];y[M2]=p}}ee(xP,function(d,p){f._messageCenter.on(p,function(g){if(AB[f.group]&&f[M2]!==wB){if(g&&g.escapeConnect)return;var y=f.makeActionFromEvent(g),m=[];ee(Dm,function(b){b!==f&&b.group===f.group&&m.push(b)}),h(m,wB),ee(m,function(b){b[M2]!==kTe&&b.dispatchAction(y)}),h(m,NTe)}})})}})(),t})(Ss),rO=PW.prototype;rO.on=xW("on");rO.off=xW("off");rO.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var FTe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var gw={},xP={},TP={},CP=[],EP=[],mw=[],RW={},IP={},Dm={},AB={},$Te=+new Date-0,iO="_echarts_instance_";function AP(e,t,n){{var r=BTe(e);if(r)return r}var i=new PW(e,t,n);return i.id="ec_"+$Te++,Dm[i.id]=i,y9(e,iO,i.id),AW(i),ns.trigger("afterinit",i),i}function BTe(e){return Dm[o1e(e,iO)]}function MW(e,t){RW[e]=t}function DW(e){wn(EP,e)<0&&EP.push(e)}function OW(e,t){aO(CP,e,t,ITe)}function UTe(e){oO("afterinit",e)}function VTe(e){oO("afterupdate",e)}function oO(e,t){ns.on(e,t)}function jd(e,t,n){var r,i,o,a,s;Bt(t)&&(n=t,t=""),Et(e)?(r=e.type,i=e.event,a=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),o=e.refineEvent):(r=e,i=t);function l(c){return c.toLowerCase()}i=l(i||r);var u=o?l(r):i;gw[r]||(ul(SB.test(r)&&SB.test(i)),o&&ul(i!==r),gw[r]={actionType:r,refinedEventType:i,nonRefinedEventType:u,update:a,action:n,refineEvent:o},TP[i]=1,o&&s&&(TP[u]=1),xP[u]=r)}function HTe(e,t){$D.register(e,t)}function zTe(e,t){aO(mw,e,t,bW,"layout")}function Yd(e,t){aO(mw,e,t,SW,"visual")}var PB=[];function aO(e,t,n,r,i){if((Bt(t)||Et(t))&&(n=t,t=r),!(wn(PB,n)>=0)){PB.push(n);var o=sW.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function LW(e,t){IP[e]=t}function GTe(e,t,n){var r=wTe("registerMap");r&&r(e,t,n)}var WTe=hSe;Yd(nO,Fxe);Yd(Jx,$xe);Yd(Jx,Bxe);Yd(nO,Jxe);Yd(Jx,Qxe);Yd(wW,bTe);DW(iW);OW(CTe,Lxe);LW("default",Uxe);jd({type:yd,event:yd,update:yd},ro);jd({type:Nb,event:Nb,update:Nb},ro);jd({type:QS,event:_D,update:QS,action:ro,refineEvent:sO,publishNonRefinedEvent:!0});jd({type:jA,event:_D,update:jA,action:ro,refineEvent:sO,publishNonRefinedEvent:!0});jd({type:ew,event:_D,update:ew,action:ro,refineEvent:sO,publishNonRefinedEvent:!0});function sO(e,t,n,r){return{eventContent:{selected:w1e(n),isFromClick:t.isFromClick||!1}}}MW("default",{});MW("dark",fW);var RB=[],jTe={registerPreprocessor:DW,registerProcessor:OW,registerPostInit:UTe,registerPostUpdate:VTe,registerUpdateLifecycle:oO,registerAction:jd,registerCoordinateSystem:HTe,registerLayout:zTe,registerVisual:Yd,registerTransform:WTe,registerLoading:LW,registerMap:GTe,registerImpl:STe,PRIORITY:LTe,ComponentModel:Nn,ComponentView:fl,SeriesModel:_u,ChartView:gs,registerComponentModel:function(e){Nn.registerClass(e)},registerComponentView:function(e){fl.registerClass(e)},registerSeriesModel:function(e){_u.registerClass(e)},registerChartView:function(e){gs.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){Nn.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){dxe(e,t)}};function bu(e){if(pt(e)){ee(e,function(t){bu(t)});return}wn(RB,e)>=0||(RB.push(e),Bt(e)&&(e={install:e}),e.install(jTe))}var kW={left:0,right:0,top:0,bottom:0},yw=["25%","25%"],YTe=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(n,r){var i=d0(n.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&n.outerBounds&&Lc(n.outerBounds,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&Lc(this.option.outerBounds,n.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:kW,outerBoundsContain:"all",outerBoundsClampWidth:yw[0],outerBoundsClampHeight:yw[1],backgroundColor:Ct.color.transparent,borderWidth:1,borderColor:Ct.color.neutral30},t})(Nn),XTe=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),PP=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pa).models[0]},t.type="cartesian2dAxis",t})(Nn);hl(PP,XTe);var NW={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:Ct.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:Ct.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Ct.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Ct.color.backgroundTint,Ct.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Ct.color.neutral00,borderColor:Ct.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},KTe=Rn({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},NW),lO=Rn({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Ct.color.axisMinorSplitLine,width:1}}},NW),ZTe=Rn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},lO),qTe=Mn({logBase:10},lO);const JTe={category:KTe,value:lO,time:ZTe,log:qTe};var QTe=0,RP=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++QTe,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&$t(r,eCe);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!wt(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n),n;var i=this._getOrCreateMap();return n=i.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,i.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=tn(this.categories))},e})();function eCe(e){return Et(e)&&e.value!=null?e.value:e+""}var tCe={value:1,category:1,time:1,log:1},nCe=null;function rCe(){return nCe}function MB(e,t,n,r){ee(tCe,function(i,o){var a=Rn(Rn({},JTe[o],!0),r,!0),s=(function(l){ft(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var h=Ty(this),d=h?d0(c):{},p=f.getTheme();Rn(c,p.get(o+"Axis")),Rn(c,this.getDefaultOption()),c.type=DB(c),h&&Lc(c,d,h)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=RP.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.prototype.updateAxisBreaks=function(c){return{breaks:[]}},u.type=t+"Axis."+o,u.defaultOption=a,u})(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",DB)}function DB(e){return e.type||(e.data?"category":"value")}function MP(e){return e.type==="interval"||e.type==="log"}function iCe(e,t,n,r,i){var o={},a=o.interval=d9(t/n);r!=null&&a<r&&(a=o.interval=r),i!=null&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=Ay(a),l=o.niceTickExtent=[wi(Math.ceil(e[0]/a)*a,s),wi(Math.floor(e[1]/a)*a,s)];return oCe(l,e),o}function N2(e){var t=Math.pow(10,pD(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,wi(n*t)}function Ay(e){return ql(e)+2}function OB(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function oCe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),OB(e,0,t),OB(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function uO(e,t){return e>=t[0]&&e<=t[1]}var aCe=(function(){function e(){this.normalize=LB,this.scale=kB}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=mn(t.normalize,t),this.scale=mn(t.scale,t)):(this.normalize=LB,this.scale=kB)},e})();function LB(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function kB(e,t){return e*(t[1]-t[0])+t[0]}function DP(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var Wc=(function(){function e(t){this._calculator=new aCe,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var n=this._extent;this._innerSetExtent(t[0]<n[0]?t[0]:n[0],t[1]>n[1]?t[1]:n[1])},e.prototype.unionExtentFromData=function(t,n){this._innerUnionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){this._innerSetExtent(t,n)},e.prototype._innerSetExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n),this._brkCtx&&this._brkCtx.update(r)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},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})();Ox(Wc);var FW=(function(e){ft(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new RP({})),pt(i)&&(i=new RP({categories:$t(i,function(o){return Et(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:wt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return uO(n,this._extent)&&n>=0&&n<this._ordinalMeta.categories.length},t.prototype.normalize=function(n){return n=this._getTickNumber(n),this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(this._calculator.scale(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var u=r[a];i[a]=u,o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i.push(c),o[c]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Wc);Wc.registerClass(FW);var Xu=wi,Qp=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n==null||n===""?NaN:Number(n)},t.prototype.contain=function(n){return uO(n,this._extent)},t.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ay(n)},t.prototype.getTicks=function(n){n=n||{};var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=aw(),l=[];if(!r)return l;n.breakTicks;var u=1e4;i[0]<o[0]&&(n.expandToNicedExtent?l.push({value:Xu(o[0]-r,a)}):l.push({value:i[0]}));for(var c=function(p,g){return Math.round((g-p)/r)},f=o[0];f<=o[1];){if(l.push({value:f}),f=Xu(f+r,a),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(f,c);h>=0&&(f=Xu(f+h*r,a))}if(l.length>0&&f===l[l.length-1].value)break;if(l.length>u)return[]}var d=l.length?l[l.length-1].value:o[1];return i[1]>d&&(n.expandToNicedExtent?l.push({value:Xu(d+r,a)}):l.push({value:i[1]})),n.breakTicks,l},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks({expandToNicedExtent:!0}),i=[],o=this.getExtent(),a=1;a<r.length;a++){var s=r[a],l=r[a-1];if(!(l.break||s.break)){for(var u=0,c=[],f=s.value-l.value,h=f/n,d=Ay(h);u<n-1;){var p=Xu(l.value+(u+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),u++}var g=aw();g&&g.pruneTicksByBreak("auto",c,this._getNonTransBreaks(),function(y){return y},this._interval,o),i.push(c)}}return i},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=ql(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=Xu(n.value,i,!0);return T7(o)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(isFinite(a)){a<0&&(a=-a,o.reverse(),this._innerSetExtent(o[0],o[1]),o=this._extent.slice());var s=iCe(o,a,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent.slice();if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this._innerSetExtent(r[0],r[1]),r=this._extent.slice(),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval,s=this._intervalPrecision;n.fixMin||(r[0]=Xu(Math.floor(r[0]/a)*a,s)),n.fixMax||(r[1]=Xu(Math.ceil(r[1]/a)*a,s)),this._innerSetExtent(r[0],r[1])},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t})(Wc);Wc.registerClass(Qp);var sCe=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},$W=(function(e){ft(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return Kx(n.value,h$[jbe(Pm(this._minLevelUnit))]||h$.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return Ybe(n,r,i,a,o)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=[];if(!r)return o;var a=this.getSetting("useUTC"),s=sw(i[1],a);o.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=vCe(this._minLevelUnit,this._approxInterval,a,i,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(l);var u=sw(i[1],a);o.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var c=_d.length-1,f=0;return ee(o,function(h){c=Math.min(c,wn(_d,h.time.upperTimeUnit)),f=Math.max(f,h.time.level)}),o},t.prototype.calcNiceExtent=function(n){var r=this.getExtent();if(r[0]===r[1]&&(r[0]-=Ra,r[1]+=Ra),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Ra}this._innerSetExtent(r[0],r[1]),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._getExtentSpanWithBreaks();this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var a=R_.length,s=Math.min(sCe(R_,this._approxInterval,0,a),a-1);this._interval=R_[s][1],this._intervalPrecision=Ay(this._interval),this._minLevelUnit=R_[Math.max(s-1,0)][0]},t.prototype.parse=function(n){return qn(n)?n:+pv(n)},t.prototype.contain=function(n){return uO(n,this._extent)},t.prototype.normalize=function(n){return this._calculator.normalize(n,this._extent)},t.prototype.scale=function(n){return this._calculator.scale(n,this._extent)},t.type="time",t})(Qp),R_=[["second",VD],["minute",HD],["hour",Am],["quarter-day",Am*6],["half-day",Am*12],["day",Ra*1.2],["half-week",Ra*3.5],["week",Ra*7],["month",Ra*31],["quarter",Ra*95],["half-year",d$/2],["year",d$]];function lCe(e,t,n,r){return lP(new Date(t),e,r).getTime()===lP(new Date(n),e,r).getTime()}function uCe(e,t){return e/=Ra,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function cCe(e){var t=30*Ra;return e/=t,e>6?6:e>3?3:e>2?2:1}function fCe(e){return e/=Am,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function NB(e,t){return e/=t?HD:VD,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function dCe(e){return d9(e)}function hCe(e,t,n){var r=Math.max(0,wn(_d,t)-1);return lP(new Date(e),_d[r],n).getTime()}function pCe(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(o,a){return Math.max(0,Math.round((a-o)/i))}}function vCe(e,t,n,r,i,o){var a=1e4,s=Hbe,l=0;function u(M,k,V,B,U,$,J){for(var ae=pCe(U,M),ne=k,_e=new Date(ne);ne<V&&ne<=r[1]&&(J.push({value:ne}),!(l++>a));)if(_e[U](_e[B]()+M),ne=_e.getTime(),o){var me=o.calcNiceTickMultiple(ne,ae);me>0&&(_e[U](_e[B]()+me*M),ne=_e.getTime())}J.push({value:ne,notAdd:!0})}function c(M,k,V){var B=[],U=!k.length;if(!lCe(Pm(M),r[0],r[1],n)){U&&(k=[{value:hCe(r[0],M,n)},{value:r[1]}]);for(var $=0;$<k.length-1;$++){var J=k[$].value,ae=k[$+1].value;if(J!==ae){var ne=void 0,_e=void 0,me=void 0,Me=!1;switch(M){case"year":ne=Math.max(1,Math.round(t/Ra/365)),_e=m7(n),me=Xbe(n);break;case"half-year":case"quarter":case"month":ne=cCe(t),_e=zD(n),me=y7(n);break;case"week":case"half-week":case"day":ne=uCe(t),_e=GD(n),me=_7(n),Me=!0;break;case"half-day":case"quarter-day":case"hour":ne=fCe(t),_e=WD(n),me=b7(n);break;case"minute":ne=NB(t,!0),_e=jD(n),me=S7(n);break;case"second":ne=NB(t,!1),_e=YD(n),me=w7(n);break;case"millisecond":ne=dCe(t),_e=XD(n),me=x7(n);break}ae>=r[0]&&J<=r[1]&&u(ne,J,ae,_e,me,Me,B),M==="year"&&V.length>1&&$===0&&V.unshift({value:V[0].value-ne})}}for(var $=0;$<B.length;$++)V.push(B[$])}}for(var f=[],h=[],d=0,p=0,g=0;g<s.length;++g){var y=Pm(s[g]);if(Wbe(s[g])){c(s[g],f[f.length-1]||[],h);var m=s[g+1]?Pm(s[g+1]):null;if(y!==m){if(h.length){p=d,h.sort(function(M,k){return M.value-k.value});for(var b=[],w=0;w<h.length;++w){var S=h[w].value;(w===0||h[w-1].value!==S)&&(b.push(h[w]),S>=r[0]&&S<=r[1]&&d++)}var C=i/t;if(d>C*1.5&&p>C/1.5||(f.push(b),d>C||e===s[g]))break}h=[]}}}for(var T=oi($t(f,function(M){return oi(M,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(M){return M.length>0}),E=[],P=T.length-1,g=0;g<T.length;++g)for(var I=T[g],D=0;D<I.length;++D){var O=sw(I[D].value,n);E.push({value:I[D].value,time:{level:P-g,upperTimeUnit:O,lowerTimeUnit:O}})}E.sort(function(M,k){return M.value-k.value});for(var N=[],g=0;g<E.length;++g)(g===0||E[g].value!==E[g-1].value)&&N.push(E[g]);return N}Wc.registerClass($W);var OP=wi,gCe=Math.floor,mCe=Math.ceil,M_=Math.pow,D_=Math.log,BW=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Qp,n}return t.prototype.getTicks=function(n){n=n||{};var r=this._extent.slice(),i=this._originalScale.getExtent(),o=e.prototype.getTicks.call(this,n),a=this.base;return this._originalScale._innerGetBreaks(),$t(o,function(s){var l=s.value,u=null,c=M_(a,l);l===r[0]&&this._fixMin?u=i[0]:l===r[1]&&this._fixMax&&(u=i[1]);var f;return u!=null&&(c=F2(c,u)),{value:c,break:f}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(n,r){this._originalScale.setExtent(n,r);var i=DP(this.base,[n,r]);e.prototype.setExtent.call(this,i[0],i[1])},t.prototype.getExtent=function(){var n=this.base,r=e.prototype.getExtent.call(this);r[0]=M_(n,r[0]),r[1]=M_(n,r[1]);var i=this._originalScale.getExtent();return this._fixMin&&(r[0]=F2(r[0],i[0])),this._fixMax&&(r[1]=F2(r[1],i[1])),r},t.prototype.unionExtentFromData=function(n,r){this._originalScale.unionExtentFromData(n,r);var i=DP(this.base,n.getApproximateExtent(r),!0);this._innerUnionExtent(i)},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var o=H0e(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[OP(mCe(r[0]/o)*o),OP(gCe(r[1]/o)*o)];this._interval=o,this._intervalPrecision=Ay(o),this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){e.prototype.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.contain=function(n){return n=D_(n)/D_(this.base),e.prototype.contain.call(this,n)},t.prototype.normalize=function(n){return n=D_(n)/D_(this.base),e.prototype.normalize.call(this,n)},t.prototype.scale=function(n){return n=e.prototype.scale.call(this,n),M_(this.base,n)},t.prototype.setBreaksFromOption=function(n){},t.type="log",t})(Qp);function F2(e,t){return OP(e,ql(t))}Wc.registerClass(BW);var yCe=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;Bt(a)?this._modelMinNum=O_(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=O_(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(Bt(s)?this._modelMaxNum=O_(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=O_(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=pt(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ld(u[0],1),Ld(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:n-o[0]*a),l==null&&(l=t?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=py(s)||py(l)||t&&!i;this._needCrossZero&&(s>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,n){this[bCe[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=_Ce[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),_Ce={min:"_determinedMin",max:"_determinedMax"},bCe={min:"_dataMin",max:"_dataMax"};function SCe(e,t,n){var r=e.rawExtentInfo;return r||(r=new yCe(e,t,n),e.rawExtentInfo=r,r)}function O_(e,t){return t==null?null:py(t)?NaN:e.parse(t)}function UW(e,t){var n=e.type,r=SCe(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&n==="time"){var s=Cwe("bar",a),l=!1;if(ee(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Iwe(s),c=wCe(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function wCe(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=Pwe(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;ee(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;ee(a,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)/o,h=c/f-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function FB(e,t){var n=t,r=UW(e,n),i=r.extent,o=n.get("splitNumber");e instanceof BW&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";e.setBreaksFromOption(HW(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function xCe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new FW({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new $W({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Wc.getClass(t)||Qp)}}function TCe(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function h0(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var n=zbe(t);return function(i,o){return e.scale.getFormattedLabel(i,o,n)}}else{if(wt(t))return function(i){var o=e.scale.getLabel(i),a=t.replace("{value}",o??"");return a};if(Bt(t)){if(e.type==="category")return function(i,o){return t(_w(e,i),i.value-e.scale.getExtent()[0],null)};var r=aw();return function(i,o){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,i.break)),t(_w(e,i),o,a)}}else return function(i){return e.scale.getLabel(i)}}}function _w(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function cO(e){var t=e.get("interval");return t??"auto"}function VW(e){return e.type==="category"&&cO(e.getLabelModel())===0}function CCe(e,t){var n={};return ee(e.mapDimensionsAll(t),function(r){n[mbe(e,r)]=!0}),ir(n)}function ev(e){return e==="middle"||e==="center"}function Py(e){return e.getShallow("show")}function HW(e){var t=e.get("breaks",!0);t==null}var ECe=(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 $t(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),oi(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),LP=["x","y"];function $B(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var ICe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=LP,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!$B(n)||!$B(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,h=a[0]-i[0]*c,d=a[1]-o[0]*f,p=this._transform=[c,0,0,f,h,d];this._invTransform=dv([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new Wt(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return io(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r,i){if(i=i||[],this._invTransform)return io(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new Wt(o,a,s,l)},t})(ECe),ACe=or(),Om=or(),bs={estimate:1,determine:2};function bw(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function zW(e,t){var n=$t(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function PCe(e,t){var n=e.getLabelModel().get("customValues");if(n){var r=h0(e),i=e.scale.getExtent(),o=zW(e,n),a=oi(o,function(s){return s>=i[0]&&s<=i[1]});return{labels:$t(a,function(s){var l={value:s};return{formattedLabel:r(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?MCe(e,t):OCe(e)}function RCe(e,t,n){var r=e.getTickModel().get("customValues");if(r){var i=e.scale.getExtent(),o=zW(e,r);return{ticks:oi(o,function(a){return a>=i[0]&&a<=i[1]})}}return e.type==="category"?DCe(e,t):{ticks:$t(e.scale.getTicks(n),function(a){return a.value})}}function MCe(e,t){var n=e.getLabelModel(),r=GW(e,n,t);return!n.get("show")||e.scale.isBlank()?{labels:[]}:r}function GW(e,t,n){var r=kCe(e),i=cO(t),o=n.kind===bs.estimate;if(!o){var a=jW(r,i);if(a)return a}var s,l;Bt(i)?s=KW(e,i):(l=i==="auto"?NCe(e,n):i,s=XW(e,l));var u={labels:s,labelCategoryInterval:l};return o?n.out.noPxChangeTryDetermine.push(function(){return kP(r,i,u),!0}):kP(r,i,u),u}function DCe(e,t){var n=LCe(e),r=cO(t),i=jW(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Bt(r))o=KW(e,r,!0);else if(r==="auto"){var s=GW(e,e.getLabelModel(),bw(bs.determine));a=s.labelCategoryInterval,o=$t(s.labels,function(l){return l.tickValue})}else a=r,o=XW(e,a,!0);return kP(n,r,{ticks:o,tickCategoryInterval:a})}function OCe(e){var t=e.scale.getTicks(),n=h0(e);return{labels:$t(t,function(r,i){return{formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value,time:r.time,break:r.break}})}}var LCe=WW("axisTick"),kCe=WW("axisLabel");function WW(e){return function(n){return Om(n)[e]||(Om(n)[e]={list:[]})}}function jW(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function kP(e,t,n){return e.list.push({key:t,value:n}),n}function NCe(e,t){if(t.kind===bs.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Om(e).autoInterval=n,!0}),n}var r=Om(e).autoInterval;return r??(Om(e).autoInterval=e.calculateCategoryInterval(t))}function FCe(e,t){var n=t.kind,r=BCe(e),i=h0(e),o=(r.axisRotate-r.labelRotate)/180*Math.PI,a=e.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],h=e.dataToCoord(f+1)-e.dataToCoord(f),d=Math.abs(h*Math.cos(o)),p=Math.abs(h*Math.sin(o)),g=0,y=0;f<=s[1];f+=u){var m=0,b=0,w=WG(i({value:f}),r.font,"center","top");m=w.width*1.3,b=w.height*1.3,g=Math.max(g,m,7),y=Math.max(y,b,7)}var S=g/d,C=y/p;isNaN(S)&&(S=1/0),isNaN(C)&&(C=1/0);var T=Math.max(0,Math.floor(Math.min(S,C)));if(n===bs.estimate)return t.out.noPxChangeTryDetermine.push(mn($Ce,null,e,T,l)),T;var E=YW(e,T,l);return E??T}function $Ce(e,t,n){return YW(e,t,n)==null}function YW(e,t,n){var r=ACe(e.model),i=e.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(o!=null&&a!=null&&Math.abs(o-t)<=1&&Math.abs(a-n)<=1&&o>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return o;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function BCe(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 XW(e,t,n){var r=h0(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=VW(e),h=a.get("showMinLabel")||f,d=a.get("showMaxLabel")||f;h&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);d&&p-l!==o[1]&&g(o[1]);function g(y){var m={value:y};s.push(n?y:{formattedLabel:r(m),rawLabel:i.getLabel(m),tickValue:y,time:void 0,break:void 0})}return s}function KW(e,t,n){var r=e.scale,i=h0(e),o=[];return ee(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),o}var BB=[0,1],UCe=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return t>=r&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return B0e(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(r=r.slice(),UB(r,i.count())),T4(t,BB,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),UB(r,i.count()));var o=T4(t,r,BB,n);return this.scale.scale(o)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=RCe(this,n,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=r.ticks,o=$t(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return VCe(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=$t(r,function(o){return $t(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||bw(bs.determine),PCe(this,t).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,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/r},e.prototype.calculateCategoryInterval=function(t){return t=t||bw(bs.determine),FCe(this,t)},e})();function UB(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function VCe(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],t[0].onBand=!0,a=t[1]={coord:o[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;ee(t,function(d){d.coord-=u/2,d.onBand=!0});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s,tickValue:c[1]+1,onBand:!0},t.push(a)}var f=o[0]>o[1];h(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&h(o[0],t[0].coord)&&t.unshift({coord:o[0],onBand:!0}),h(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&h(a.coord,o[1])&&t.push({coord:o[1],onBand:!0});function h(d,p){return d=wi(d),p=wi(p),f?d>p:d<p}}var HCe=(function(e){ft(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(UCe),zCe="expandAxisBreak",pc=Math.PI,GCe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],WCe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ry=or(),ZW=or(),qW=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var n=t.axis.dim,r=t.componentIndex,i=this.recordMap,o=i[n]||(i[n]=[]);return o[r]||(o[r]={ready:{}})},e})();function jCe(e,t,n,r){var i=n.axis,o=t.ensureRecord(n),a=[],s,l=fO(e.axisName)&&ev(e.nameLocation);ee(r,function(p){var g=kc(p);if(!(!g||g.label.ignore)){a.push(g);var y=o.transGroup;l&&(y.transform?dv(vg,y.transform):uD(vg),g.transform&&wm(vg,vg,g.transform),Wt.copy(L_,g.localRect),L_.applyTransform(vg),s?s.union(L_):Wt.copy(s=new Wt(0,0,0,0),L_))}});var u=Math.abs(o.dirVec.x)>.1?"x":"y",c=o.transGroup[u];if(a.sort(function(p,g){return Math.abs(p.label[u]-c)-Math.abs(g.label[u]-c)}),l&&s){var f=i.getExtent(),h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1])-h;s.union(new Wt(h,0,d,1))}o.stOccupiedRect=s,o.labelInfoList=a}var vg=tl(),L_=new Wt(0,0,0,0),JW=function(e,t,n,r,i,o){if(ev(e.nameLocation)){var a=o.stOccupiedRect;a&&QW(kwe({},a,o.transGroup.transform),r,i)}else ej(o.labelInfoList,o.dirVec,r,i)};function QW(e,t,n){var r=new Hn;QD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Nwe(t,r)}function ej(e,t,n,r){for(var i=Hn.dot(r,t)>=0,o=0,a=e.length;o<a;o++){var s=e[i?o:a-1-o];s.label.ignore||QW(s,n,r)}}var Cc=(function(){function e(t,n,r,i){this.group=new ci,this._axisModel=t,this._api=n,this._local={},this._shared=i||new qW(JW),this._resetCfgDetermined(r)}return e.prototype.updateCfg=function(t){var n=this._cfg.raw;n.position=t.position,n.labelOffset=t.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var n=this._axisModel,r=n.getDefaultOption?n.getDefaultOption():{},i=Ft(t.axisName,n.get("name")),o=n.get("nameMoveOverlap");(o==null||o==="auto")&&(o=Ft(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:Ft(t.nameDirection,1),tickDirection:Ft(t.tickDirection,1),labelDirection:Ft(t.labelDirection,1),labelOffset:Ft(t.labelOffset,0),silent:Ft(t.silent,!0),axisName:i,nameLocation:yp(n.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:fO(i)&&o,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=a;var s=new ci({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(n);l.transGroup=this._transformGroup,l.dirVec=new Hn(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(t,n){var r=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),ee(YCe,function(i){t[i]&&XCe[i](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,n||{})}),this},e.innerTextLayout=function(t,n,r){var i=f9(n-t),o,a;return qS(i)?(a=r>0?"top":"bottom",o="center"):qS(i-pc)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<pc?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),YCe=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],XCe={axisLine:function(e,t,n,r,i,o,a){var s=r.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=r.axis.getExtent(),u=o.transform,c=[l[0],0],f=[l[1],0],h=c[0]>f[0];u&&(io(c,c,u),io(f,f,u));var d=et({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),p={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())rCe().buildAxisBreakLine(r,i,o,p);else{var g=new Oc(et({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},p));by(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var y=r.get(["axisLine","symbol"]);if(y!=null){var m=r.get(["axisLine","symbolSize"]);wt(y)&&(y=[y,y]),(wt(m)||qn(m))&&(m=[m,m]);var b=L7(r.get(["axisLine","symbolOffset"])||0,m),w=m[0],S=m[1];ee([{rotate:e.rotation+Math.PI/2,offset:b[0],r:0},{rotate:e.rotation-Math.PI/2,offset:b[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}],function(C,T){if(y[T]!=="none"&&y[T]!=null){var E=Jp(y[T],-w/2,-S/2,w,S,d.stroke,!0),P=C.r+C.offset,I=h?f:c;E.attr({rotation:C.rotate,x:I[0]+P*Math.cos(e.rotation),y:I[1]-P*Math.sin(e.rotation),silent:!0,z2:11}),i.add(E)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,o,a,s){var l=HB(t,i,s);l&&VB(e,t,n,r,i,o,a,bs.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,o,a,s){var l=HB(t,i,s);l&&VB(e,t,n,r,i,o,a,bs.determine);var u=JCe(e,i,o,r);qCe(e,t.labelLayoutList,u),QCe(e,i,o,r,e.tickDirection)},axisName:function(e,t,n,r,i,o,a,s){var l=n.ensureRecord(r);t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(fO(u)){var c=e.nameLocation,f=e.nameDirection,h=r.getModel("nameTextStyle"),d=r.get("nameGap")||0,p=r.axis.getExtent(),g=r.axis.inverse?-1:1,y=new Hn(0,0),m=new Hn(0,0);c==="start"?(y.x=p[0]-g*d,m.x=-g):c==="end"?(y.x=p[1]+g*d,m.x=g):(y.x=(p[0]+p[1])/2,y.y=e.labelOffset+f*d,m.y=f);var b=tl();m.transform(fD(b,b,e.rotation));var w=r.get("nameRotate");w!=null&&(w=w*pc/180);var S,C;ev(c)?S=Cc.innerTextLayout(e.rotation,w??e.rotation,f):(S=KCe(e.rotation,c,w||0,p),C=e.raw.axisNameAvailableWidth,C!=null&&(C=Math.abs(C/Math.sin(S.rotation)),!isFinite(C)&&(C=null)));var T=h.getFont(),E=r.get("nameTruncate",!0)||{},P=E.ellipsis,I=zS(e.raw.nameTruncateMaxWidth,E.maxWidth,C),D=s.nameMarginLevel||0,O=new Uo({x:y.x,y:y.y,rotation:S.rotation,silent:Cc.isLabelSilent(r),style:Xp(h,{text:u,font:T,overflow:"truncate",width:I,ellipsis:P,fill:h.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Gx({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid="name",r.get("triggerEvent")){var N=Cc.makeAxisEventDataBase(r);N.targetType="axisName",N.name=u,kn(O).eventData=N}o.add(O),O.updateTransform(),t.nameEl=O;var M=l.nameLayout=kc({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:ev(c)?GCe[D]:WCe[D]});if(l.nameLocation=c,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&M){var k=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,M,m,k)}}}};function VB(e,t,n,r,i,o,a,s){nj(t)||eEe(e,t,i,s,r,a);var l=t.labelLayoutList;tEe(e,r,l,o),e.rotation;var u=e.optionHideOverlap;ZCe(r,l,u),u&&Fwe(oi(l,function(c){return c&&!c.label.ignore})),jCe(e,n,r,l)}function KCe(e,t,n,r){var i=f9(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return qS(i-pc/2)?(a=l?"bottom":"top",o="center"):qS(i-pc*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<pc*1.5&&i>pc/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function ZCe(e,t,n){if(VW(e.axis))return;function r(s,l,u){var c=kc(t[l]),f=kc(t[u]);if(!(!c||!f)){if(s===!1||c.suggestIgnore){Hg(c.label);return}if(f.suggestIgnore){Hg(f.label);return}var h=.1;if(!n){var d=[0,0,0,0];c=k$({marginForce:d},c),f=k$({marginForce:d},f)}QD(c,f,null,{touchThreshold:h})&&Hg(s?f.label:c.label)}}var i=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]),a=t.length;r(i,0,1),r(o,a-1,a-2)}function qCe(e,t,n){e.showMinorTicks||ee(t,function(r){if(r&&r.label.ignore)for(var i=0;i<n.length;i++){var o=n[i],a=ZW(o),s=Ry(r.label);if(a.tickValue!=null&&!a.onBand&&a.tickValue===s.tickValue){Hg(o);return}}})}function Hg(e){e&&(e.ignore=!0)}function tj(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(io(a,a,t),io(s,s,t));var c=new Oc({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});by(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c);var f=ZW(c);f.onBand=!!e[l].onBand,f.tickValue=e[l].tickValue}return o}function JCe(e,t,n,r){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if(a==="auto"&&(a=!0,e.raw.axisTickAutoShow!=null&&(a=!!e.raw.axisTickAutoShow)),!a||i.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=e.tickDirection*o.get("length"),u=i.getTicksCoords(),c=tj(u,n.transform,l,Mn(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}function QCe(e,t,n,r,i){var o=r.axis,a=r.getModel("minorTick");if(!(!e.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=i*a.get("length"),c=Mn(l.getLineStyle(),Mn(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var h=tj(s[f],n.transform,u,c,"minorticks_"+f),d=0;d<h.length;d++)t.add(h[d])}}function HB(e,t,n){if(nj(e)){var r=e.axisLabelsCreationContext,i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,a=0;a<i.length;a++)o=o&&i[a]();if(o)return!1}i.length&&(t.remove(e.labelGroup),NP(e,null,null,null))}return!0}function eEe(e,t,n,r,i,o){var a=i.axis,s=zS(e.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new ci;n.add(l);var u=bw(r);if(!s||a.scale.isBlank()){NP(t,[],l,u);return}var c=i.getModel("axisLabel"),f=a.getViewLabels(u),h=(zS(e.raw.labelRotate,c.get("rotate"))||0)*pc/180,d=Cc.innerTextLayout(e.rotation,h,e.labelDirection),p=i.getCategories&&i.getCategories(!0),g=[],y=i.get("triggerEvent"),m=1/0,b=-1/0;ee(f,function(S,C){var T,E=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,P=S.formattedLabel,I=S.rawLabel,D=c;if(p&&p[E]){var O=p[E];Et(O)&&O.textStyle&&(D=new fr(O.textStyle,c,i.ecModel))}var N=D.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=D.getShallow("align",!0)||d.textAlign,k=Ft(D.getShallow("alignMinLabel",!0),M),V=Ft(D.getShallow("alignMaxLabel",!0),M),B=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||d.textVerticalAlign,U=Ft(D.getShallow("verticalAlignMinLabel",!0),B),$=Ft(D.getShallow("verticalAlignMaxLabel",!0),B),J=10+(((T=S.time)===null||T===void 0?void 0:T.level)||0);m=Math.min(m,J),b=Math.max(b,J);var ae=new Uo({x:0,y:0,rotation:0,silent:Cc.isLabelSilent(i),z2:J,style:Xp(D,{text:P,align:C===0?k:C===f.length-1?V:M,verticalAlign:C===0?U:C===f.length-1?$:B,fill:Bt(N)?N(a.type==="category"?I:a.type==="value"?E+"":E,C):N})});ae.anid="label_"+E;var ne=Ry(ae);if(ne.break=S.break,ne.tickValue=E,ne.layoutRotation=d.rotation,Gx({el:ae,componentModel:i,itemName:P,formatterParamsExtra:{isTruncated:function(){return ae.isTruncated},value:I,tickIndex:C}}),y){var _e=Cc.makeAxisEventDataBase(i);_e.targetType="axisLabel",_e.value=I,_e.tickIndex=C,S.break&&(_e.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),a.type==="category"&&(_e.dataIndex=E),kn(ae).eventData=_e,S.break&&rEe(i,o,ae,S.break)}g.push(ae),l.add(ae)});var w=$t(g,function(S){return{label:S,priority:Ry(S).break?S.z2+(b-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});NP(t,w,l,u)}function nj(e){return!!e.labelLayoutList}function NP(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function tEe(e,t,n,r){var i=t.get(["axisLabel","margin"]);ee(n,function(o,a){var s=kc(o);if(s){var l=s.label,u=Ry(l);s.suggestIgnore=l.ignore,l.ignore=!1,DA(Dl,nEe),Dl.x=t.axis.dataToCoord(u.tickValue),Dl.y=e.labelOffset+e.labelDirection*i,Dl.rotation=u.layoutRotation,r.add(Dl),Dl.updateTransform(),r.remove(Dl),Dl.decomposeTransform(),DA(l,Dl),l.markRedraw(),cw(s,!0),kc(s)}})}var Dl=new Kr,nEe=new Kr;function fO(e){return!!e}function rEe(e,t,n,r){n.on("click",function(i){var o={type:zCe,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};o[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(o)})}function Sw(e,t,n){n=n||{};var r=t.axis,i={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,h=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));h[c.onZero]=Math.max(Math.min(d,h[1]),h[0])}i.position=[l==="y"?h[c[s]]:u[0],l==="x"?h[c[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=p[a],i.labelOffset=o?h[c[a]]-h[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),zS(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function iEe(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function zB(e){var t={xAxisModel:null,yAxisModel:null};return ee(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Pa).models[0];t[r]=o}),t}function oEe(e,t,n,r,i,o){for(var a=Sw(e,n),s=!1,l=!1,u=0;u<t.length;u++)MP(t[u].getOtherAxis(n.axis).scale)&&(s=l=!0,n.axis.type==="category"&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new Cc(n,r,a,i)}function aEe(e,t,n){var r=Sw(t,n);e.updateCfg(r)}function sEe(e,t,n){var r=Qp.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,{expandToNicedExtent:!0}),a=i.length-1,s=r.getInterval.call(n),l=UW(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;e.type==="log"&&(u=DP(e.base,u,!0)),e.setBreaksFromOption(HW(t)),e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var d=r.getInterval.call(e),p=u[0],g=u[1];if(c&&f)d=(g-p)/a;else if(c)for(g=u[0]+d*a;g<u[1]&&isFinite(g)&&isFinite(u[1]);)d=N2(d),g=u[0]+d*a;else if(f)for(p=u[1]-d*a;p>u[0]&&isFinite(p)&&isFinite(u[0]);)d=N2(d),p=u[1]-d*a;else{var y=e.getTicks().length-1;y>a&&(d=N2(d));var m=d*a;g=Math.ceil(u[1]/d)*d,p=wi(g-m),p<0&&u[0]>=0?(p=0,g=wi(m)):g>0&&u[1]<=0&&(g=0,p=-wi(m))}var b=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;r.setExtent.call(e,p+d*b,g+d*w),r.setInterval.call(e,d),(b||w)&&r.setNiceExtent.call(e,p+d,g-d)}var GB=[[3,1],[0,2]],lEe=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=LP,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=ir(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var h=+l[f],d=a[h],p=d.model,g=d.scale;MP(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(d):(FB(g,p),MP(g)&&(s=d))}c.length&&(s||(s=c.pop(),FB(s.scale,s.model)),ee(c,function(y){sEe(y.scale,y.model,s.scale)}))}}i(r.x),i(r.y);var o={};ee(r.x,function(a){WB(r,"y",a,o)}),ee(r.y,function(a){WB(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=ZD(t,n),o=this._rect=Zp(t.getBoxLayoutParams(),i.refContainer),a=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(rj(a,o),!r){var u=cEe(o,s,a,l,n),c=void 0;if(l)c=XB(o.clone(),"axisLabel",null,o,a,u,i);else{var f=fEe(t,o,i),h=f.outerBoundsRect,d=f.parsedOuterBoundsContain,p=f.outerBoundsClamp;h&&(c=XB(h,d,p,o,a,u,i))}ij(o,a,bs.determine,null,c,i)}ee(this._coordsList,function(g){g.calcAffineTransform()})},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Et(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Pa).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",Pa).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,wn(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,ee(s.x,function(c,f){ee(s.y,function(h,d){var p="x"+f+"y"+d,g=new ICe(p);g.master=i,g.model=t,i._coordsMap[p]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(h)})});function u(c){return function(f,h){if($2(f,t)){var d=f.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=a.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=a.left?"right":"left"),a[d]=!0;var p=new HCe(c,xCe(f),[0,0],f.get("type"),d),g=p.type==="category";p.onBand=g&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=o,p.index=h,o._axesList.push(p),s[c][h]=p,l[c]++}}}},e.prototype._updateScale=function(t,n){ee(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(iEe(i)){var o=zB(i),a=o.xAxisModel,s=o.yAxisModel;if(!$2(a,n)||!$2(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(i,o){ee(CCe(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return ee(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);wn(n,o)<0&&n.push(o),wn(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(i){fbe({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:o});function o(){var a=zB(i),s=a.xAxisModel,l=a.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;return c.getCartesian(s.componentIndex,l.componentIndex)}}),r},e.dimensions=LP,e})();function $2(e,t){return e.getCoordSysModel()===t}function WB(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)jB(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&jB(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function jB(e){return e&&e.type!=="category"&&e.type!=="time"&&TCe(e)}function uEe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}function rj(e,t){ee(e.x,function(n){return YB(n,t.x,t.width)}),ee(e.y,function(n){return YB(n,t.y,t.height)})}function YB(e,t,n){var r=[0,n],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),uEe(e,t)}function XB(e,t,n,r,i,o,a){ij(r,i,bs.estimate,t,!1,a);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=zme(s,function(h){return h>0})==null;return rw(r,s,!0,!0,n),rj(i,r),l;function u(h){ee(i[$f[h]],function(d){if(Py(d.model)){var p=o.ensureRecord(d.model),g=p.labelInfoList;if(g)for(var y=0;y<g.length;y++){var m=g[y],b=d.scale.normalize(Ry(m.label).tickValue);b=h===1?1-b:b,c(m.rect,h,b),c(m.rect,1-h,NaN)}var w=p.nameLayout;if(w){var b=ev(p.nameLocation)?.5:NaN;c(w.rect,h,b),c(w.rect,1-h,NaN)}}})}function c(h,d,p){var g=e[$f[d]]-h[$f[d]],y=h[_y[d]]+h[$f[d]]-(e[_y[d]]+e[$f[d]]);g=f(g,1-p),y=f(y,p);var m=GB[d][0],b=GB[d][1];s[m]=ra(s[m],g),s[b]=ra(s[b],y)}function f(h,d){return h>0&&!py(d)&&d>1e-4&&(h/=d),h}}function cEe(e,t,n,r,i){var o=new qW(dEe);return ee(n,function(a){return ee(a,function(s){if(Py(s.model)){var l=!r;s.axisBuilder=oEe(e,t,s.model,i,o,l)}})}),o}function ij(e,t,n,r,i,o){var a=n===bs.determine;ee(t,function(u){return ee(u,function(c){Py(c.model)&&(aEe(c.axisBuilder,e,c.model),c.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[$f[1-u]]=e[_y[u]]<=o.refContainer[_y[u]]*.5?0:1-u===1?2:1}ee(t,function(u,c){return ee(u,function(f){Py(f.model)&&((r==="all"||a)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),a&&f.axisBuilder.build({axisLine:!0}))})})}function fEe(e,t,n){var r,i=e.get("outerBoundsMode",!0);i==="same"?r=t.clone():(i==null||i==="auto")&&(r=Zp(e.get("outerBounds",!0)||kW,n.refContainer));var o=e.get("outerBoundsContain",!0),a;o==null||o==="auto"||wn(["all","axisLabel"],o)<0?a="all":a=o;var s=[WA(Ft(e.get("outerBoundsClampWidth",!0),yw[0]),t.width),WA(Ft(e.get("outerBoundsClampHeight",!0),yw[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var dEe=function(e,t,n,r,i,o){var a=n.axis.dim==="x"?"y":"x";JW(e,t,n,r,i,o),ev(e.nameLocation)||ee(t.recordMap[a],function(s){s&&s.labelInfoList&&s.dirVec&&ej(s.labelInfoList,s.dirVec,r,i)})};function hEe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return pEe(n,e,t),n.seriesInvolved&&gEe(n,e),n}function pEe(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];ee(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=My(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(ee(s.getAxes(),Dr(g,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var h=f.get("trigger")==="axis",d=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(h||d)&&ee(p.baseAxes,Dr(g,d?"cross":!0,h)),d&&ee(p.otherAxes,Dr(g,"cross",!1))}function g(y,m,b){var w=b.model.getModel("axisPointer",i),S=w.get("show");if(!(!S||S==="auto"&&!y&&!FP(w))){m==null&&(m=w.get("triggerTooltip")),w=y?vEe(b,f,i,t,y,m):w;var C=w.get("snap"),T=w.get("triggerEmphasis"),E=My(b.model),P=m||C||b.type==="category",I=e.axesInfo[E]={key:E,axis:b,coordSys:s,axisPointerModel:w,triggerTooltip:m,triggerEmphasis:T,involveSeries:P,snap:C,useHandle:FP(w),seriesModels:[],linkGroup:null};u[E]=I,e.seriesInvolved=e.seriesInvolved||P;var D=mEe(o,b);if(D!=null){var O=a[D]||(a[D]={axesInfo:{}});O.axesInfo[E]=I,O.mapper=o[D].mapper,I.linkGroup=O}}}})}function vEe(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};ee(s,function(h){l[h]=hn(a.get(h))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=a.get("crossStyle");f&&Mn(u,f.textStyle)}}return e.model.getModel("axisPointer",new fr(l,n,r))}function gEe(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||!r.model||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||ee(e.coordSysAxesInfo[My(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function mEe(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(B2(o[r+"AxisId"],n.id)||B2(o[r+"AxisIndex"],n.componentIndex)||B2(o[r+"AxisName"],n.name))return i}}function B2(e,t){return e==="all"||pt(e)&&wn(e,t)>=0||e===t}function yEe(e){var t=dO(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=FP(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function dO(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[My(e)]}function _Ee(e){var t=dO(e);return t&&t.axisPointerModel}function FP(e){return!!e.get(["handle","show"])}function My(e){return e.type+"||"+e.id}var KB={},oj=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i,o){this.axisPointerClass&&yEe(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=_Ee(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){KB[n]=r},t.getAxisPointerClass=function(n){return n&&KB[n]},t.type="axis",t})(fl),$P=or();function bEe(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=$P(e).splitAreaColors,h=tn(),d=0;if(f)for(var p=0;p<u.length;p++){var g=f.get(u[p].tickValue);if(g!=null){d=(g+(c-1)*p)%c;break}}var y=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=pt(s)?s:[s];for(var p=1;p<u.length;p++){var b=i.toGlobalCoord(u[p].coord),w=void 0,S=void 0,C=void 0,T=void 0;i.isHorizontal()?(w=y,S=l.y,C=b-w,T=l.height,y=w+C):(w=l.x,S=y,C=l.width,T=b-S,y=S+T);var E=u[p-1].tickValue;E!=null&&h.set(E,d),t.add(new Kr({anid:E!=null?"area_"+E:null,shape:{x:w,y:S,width:C,height:T},style:Mn({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}$P(e).splitAreaColors=h}}}function SEe(e){$P(e).splitAreaColors=null}var wEe=["splitArea","splitLine","minorSplitLine","breakArea"],aj=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ci,this.group.add(this._axisGroup),!!Py(n)){this._axisGroup.add(n.axis.axisBuilder.group),ee(wEe,function(l){n.get([l,"show"])&&xEe[l](this,this._axisGroup,n,n.getCoordSysModel(),i)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||U9(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){SEe(this)},t.type="cartesianAxis",t})(oj),xEe={splitLine:function(e,t,n,r,i){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=a.get("showMinLine")!==!1,c=a.get("showMaxLine")!==!1;l=pt(l)?l:[l];for(var f=r.coordinateSystem.getRect(),h=o.isHorizontal(),d=0,p=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],m=s.getLineStyle(),b=0;b<p.length;b++){var w=o.toGlobalCoord(p[b].coord);if(!(b===0&&!u||b===p.length-1&&!c)){var S=p[b].tickValue;h?(g[0]=w,g[1]=f.y,y[0]=w,y[1]=f.y+f.height):(g[0]=f.x,g[1]=w,y[0]=f.x+f.width,y[1]=w);var C=d++%l.length,T=new Oc({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:Mn({stroke:l[C]},m),silent:!0});by(T.shape,m.lineWidth),t.add(T)}}}},minorSplitLine:function(e,t,n,r,i){var o=n.axis,a=n.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=r.coordinateSystem.getRect(),u=o.isHorizontal(),c=o.getMinorTicksCoords();if(c.length)for(var f=[],h=[],d=s.getLineStyle(),p=0;p<c.length;p++)for(var g=0;g<c[p].length;g++){var y=o.toGlobalCoord(c[p][g].coord);u?(f[0]=y,f[1]=l.y,h[0]=y,h[1]=l.y+l.height):(f[0]=l.x,f[1]=y,h[0]=l.x+l.width,h[1]=y);var m=new Oc({anid:"minor_line_"+c[p][g].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:d,silent:!0});by(m.shape,d.lineWidth),t.add(m)}},splitArea:function(e,t,n,r,i){bEe(e,t,n,r)},breakArea:function(e,t,n,r,i){n.axis.scale}},sj=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t})(aj),TEe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=sj.type,n}return t.type="yAxis",t})(aj),CEe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Kr({shape:n.coordinateSystem.getRect(),style:Mn({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(fl),ZB={offset:0};function EEe(e){e.registerComponentView(CEe),e.registerComponentModel(YTe),e.registerCoordinateSystem("cartesian2d",lEe),MB(e,"x",PP,ZB),MB(e,"y",PP,ZB),e.registerComponentView(sj),e.registerComponentView(TEe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var IEe=or();function qB(e,t){return!!IEe(e)[t]}jd({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ro);var AEe={axisPointer:1,tooltip:1,brush:1};function PEe(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||AEe.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var o=wy(r),a=wy(n);return!((o.zlevel-a.zlevel||o.z-a.z)<=0)}var REe=(function(e){ft(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var i=mn(r._mousedownHandler,r),o=mn(r._mousemoveHandler,r),a=mn(r._mouseupHandler,r),s=mn(r._mousewheelHandler,r),l=mn(r._pinchHandler,r);return r.enable=function(u,c){var f=c.zInfo,h=wy(f.component),d=h.z,p=h.zlevel,g={component:f.component,z:d,zlevel:p,z2:Ft(f.z2,-1/0)},y=et({},c.triggerInfo);this._opt=Mn(et({},c),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:g,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(mg(n,"mousedown",i,g),mg(n,"mousemove",o,g),mg(n,"mouseup",a,g)),(u===!0||u==="scale"||u==="zoom")&&(mg(n,"mousewheel",s,g),mg(n,"pinch",l,g)))},r.disable=function(){this._enabled=!1,yg(n,"mousedown",i),yg(n,"mousemove",o),yg(n,"mouseup",a),yg(n,"mousewheel",s),yg(n,"pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(n,r,i){var o=this._opt,a=o.zInfoParsed;if(PEe(n,o.api,a.component))return!1;var s=o.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(n,r,i)),u&&s.isInClip&&!s.isInClip(n,r,i)&&(u=!1),u},t.prototype._decideCursorStyle=function(n,r,i,o){var a=n.target;if(!a&&this._checkPointer(n,r,i))return"grab";if(o)return a&&a.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!($$(n)||gg(n))){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,o=n.offsetY;this._checkPointer(n,i,o)&&(this._x=i,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){var r=this._zr;if(!(n.gestureEvent==="pinch"||qB(r,"globalPan")||gg(n))){var i=n.offsetX,o=n.offsetY;if(!this._dragging||!jb("moveOnMouseMove",n,this._opt)){var a=this._decideCursorStyle(n,i,o,!1);a&&r.setCursorStyle(a);return}r.setCursorStyle("grabbing");var s=this._x,l=this._y,u=i-s,c=o-l;this._x=i,this._y=o,this._opt.preventDefaultMouseMove&&fw(n.event),n.__ecRoamConsumed=!0,JB(this,"pan","moveOnMouseMove",n,{dx:u,dy:c,oldX:s,oldY:l,newX:i,newY:o,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){if(!gg(n)){var r=this._zr;if(!$$(n)){this._dragging=!1;var i=this._decideCursorStyle(n,n.offsetX,n.offsetY,!0);i&&r.setCursorStyle(i)}}},t.prototype._mousewheelHandler=function(n){if(!gg(n)){var r=jb("zoomOnMouseWheel",n,this._opt),i=jb("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,a=Math.abs(o),s=n.offsetX,l=n.offsetY;if(!(o===0||!r&&!i)){if(r){var u=a>3?1.4:a>1?1.2:1.1,c=o>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(o),h=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(n){if(!(qB(this._zr,"globalPan")||gg(n))){var r=n.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(n,r,i,o,a){n._checkPointer(o,a.originX,a.originY)&&(fw(o.event),o.__ecRoamConsumed=!0,JB(n,r,i,o,a))},t})(Ss);function gg(e){return e.__ecRoamConsumed}var MEe=or();function Qx(e){var t=MEe(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function mg(e,t,n,r){for(var i=Qx(e),o=i.roam,a=o[t]=o[t]||[],s=0;s<a.length;s++){var l=a[s].zInfoParsed;if((l.zlevel-r.zlevel||l.z-r.z||l.z2-r.z2)<=0)break}a.splice(s,0,{listener:n,zInfoParsed:r}),DEe(e,t)}function yg(e,t,n){for(var r=Qx(e),i=r.roam[t]||[],o=0;o<i.length;o++)if(i[o].listener===n){i.splice(o,1),i.length||OEe(e,t);return}}function DEe(e,t){var n=Qx(e);n.uniform[t]||e.on(t,n.uniform[t]=function(r){var i=n.roam[t];if(i)for(var o=0;o<i.length;o++)i[o].listener(r)})}function OEe(e,t){var n=Qx(e),r=n.uniform;r[t]&&(e.off(t,r[t]),r[t]=null)}function JB(e,t,n,r,i){i.isAvailableBehavior=mn(jb,null,n,r),e.trigger(t,i)}function jb(e,t,n){var r=n[e];return!e||r&&(!wt(r)||t.event[r+"Key"])}function LEe(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function kEe(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;a*=t,a=hO(a,o);var s=a/e.zoom;e.zoom=a,lj(i,n,r,s),i.dirty()}function NEe(e,t,n,r,i,o){var a=new Wt(0,0,0,0);r.enable(e.get("roam"),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(u,c,f){return a.copy(n.getBoundingRect()),a.applyTransform(n.getComputedTransform()),a.contain(c,f)},isInClip:function(u,c,f){return!o||o.contain(c,f)}}}),i.zoomLimit=e.get("scaleLimit");var s=e.coordinateSystem;i.zoom=s?s.getZoom():1;var l=e.subType+"Roam";r.off("pan").off("zoom").on("pan",function(u){LEe(i,u.dx,u.dy),t.dispatchAction({seriesId:e.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){kEe(i,u.scale,u.originX,u.originY),t.dispatchAction({seriesId:e.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),t.updateLabelLayout()})}function QB(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function FEe(e,t,n){var r=e.getZoom(),i=e.getCenter(),o=t.zoom,a=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);return t.dx!=null&&t.dy!=null&&(a[0]-=t.dx,a[1]-=t.dy,e.setCenter(QB(e,a))),o!=null&&(o=hO(r*o,n)/r,lj(e,t.originX,t.originY,o),e.updateTransform(),e.setCenter(QB(e,a)),e.setZoom(o*r)),{center:e.getCenter(),zoom:e.getZoom()}}function lj(e,t,n,r){e.x-=(t-e.x)*(r-1),e.y-=(n-e.y)*(r-1),e.scaleX*=r,e.scaleY*=r}function hO(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}var eU=io,$Ee=(function(e){ft(t,e);function t(n,r){var i=e.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new Yf,i._rawTransformable=new Yf,i.name=n,i._opt=r,i}return t.prototype.setBoundingRect=function(n,r,i,o){return this._rect=new Wt(n,r,i,o),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,i,o){this._transformTo(n,r,i,o),this._viewRect=new Wt(n,r,i,o)},t.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new Wt(n,r,i,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n){var r=this._opt;r&&r.api&&r.ecModel&&r.ecModel.getShallow("legacyViewCoordSysCenterBase")&&n&&(n=[Ur(n[0],r.api.getWidth()),Ur(n[1],r.api.getWidth())]),this._centerOption=hn(n),this._updateCenterAndZoom()},t.prototype.setZoom=function(n){this._zoom=hO(n||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,i=n.y+n.height/2;return[r,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._centerOption,r=this._rect;n&&r&&(this._center=[Ur(n[0],r.width,r.x),Ur(n[1],r.height,r.y)]);var i=this._rawTransformable.getLocalTransform(),o=this._roamTransformable,a=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=io([],s,i),a=io([],a,i),o.originX=s[0],o.originY=s[1],o.x=a[0]-s[0],o.y=a[1]-s[1],o.scaleX=o.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),cD(this.transform||(this.transform=[]),r.transform||tl()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],dv(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new Yf;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,i){var o=r?this._rawTransform:this.transform;return i=i||[],o?eU(i,n,o):Iye(i,n)},t.prototype.pointToData=function(n,r,i){i=i||[];var o=this.invTransform;return o?eU(i,n,o):(i[0]=n[0],i[1]=n[1],i)},t.prototype.convertToPixel=function(n,r,i){var o=tU(r);return o===this?o.dataToPoint(i):null},t.prototype.convertFromPixel=function(n,r,i){var o=tU(r);return o===this?o.pointToData(i):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t})(Yf);function tU(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function BEe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(s)}}function UEe(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){HEe(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=zEe(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function VEe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function nU(e){return arguments.length?e:jEe}function zg(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function HEe(e){for(var t=e.children,n=t.length,r=0,i=0;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function zEe(e,t,n,r){if(t){for(var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,f=s.hierNode.modifier;s=U2(s),o=V2(o),s&&o;){i=U2(i),a=V2(a),i.hierNode.ancestor=e;var h=s.hierNode.prelim+f-o.hierNode.prelim-u+r(s,o);h>0&&(WEe(GEe(s,e,n),e,h),u+=h,l+=h),f+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!U2(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),o&&!V2(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function U2(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function V2(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function GEe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function WEe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function jEe(e,t){return e.parentNode===t.parentNode?1:2}var YEe=(function(){function e(){this.parentPoint=[],this.childPoints=[]}return e})(),XEe=(function(e){ft(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:Ct.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new YEe},t.prototype.buildPath=function(n,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){n.moveTo(a[0],a[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,h=Ur(r.forkPosition,1),d=[];d[c]=a[c],d[f]=a[f]+(l[f]-a[f])*h,n.moveTo(a[0],a[1]),n.lineTo(d[0],d[1]),n.moveTo(s[0],s[1]),d[c]=s[c],n.lineTo(d[0],d[1]),d[c]=l[c],n.lineTo(d[0],d[1]),n.lineTo(l[0],l[1]);for(var p=1;p<o-1;p++){var g=i[p];n.moveTo(g[0],g[1]),d[c]=g[c],n.lineTo(d[0],d[1])}},t})(Bn),KEe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new ci,n}return t.prototype.init=function(n,r){this._controller=new REe(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,i){var o=n.getData(),a=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(n,i),this._updateController(n,null,r,i);var u=this._data;o.diff(u).add(function(c){rU(o,c)&&iU(o,c,null,s,n)}).update(function(c,f){var h=u.getItemGraphicEl(f);if(!rU(o,c)){h&&aU(u,f,h,s,n);return}iU(o,c,h,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&aU(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=o},t.prototype._updateViewCoordSys=function(n,r){var i=n.getData(),o=[];i.each(function(f){var h=i.getItemLayout(f);h&&!isNaN(h.x)&&!isNaN(h.y)&&o.push([+h.x,+h.y])});var a=[],s=[];a0e(o,a,s);var l=this._min,u=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new $Ee(null,{api:r,ecModel:n.ecModel});c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),c.setCenter(n.get("center")),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=a,this._max=s},t.prototype._updateController=function(n,r,i,o){var a=this;NEe(n,o,this.group,this._controller,this._controllerHost,r),this._controller.on("zoom",function(s){a._updateNodeAndLinkScale(n)})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),i=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,a){o.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,o=r.scaleX||1,a=r.getZoom(),s=(a-1)*i+1;return s/o},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t})(gs);function rU(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function iU(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:Ct.color.neutral00,c=e.tree.root,f=a.parentNode===c?a:a.parentNode||a,h=e.getItemGraphicEl(f.dataIndex),d=f.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:d,g=a.getLayout();o?(n=new qx(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,_s(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if(i.get("layout")==="radial"){var m=c.children[0],b=m.getLayout(),w=m.children.length,S=void 0,C=void 0;if(g.x===b.x&&a.isExpand===!0&&m.children.length){var T={x:(m.children[0].getLayout().x+m.children[w-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[w-1].getLayout().y)/2};S=Math.atan2(T.y-b.y,T.x-b.x),S<0&&(S=Math.PI*2+S),C=T.x<b.x,C&&(S=S-Math.PI)}else S=Math.atan2(g.y-b.y,g.x-b.x),S<0&&(S=Math.PI*2+S),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(C=g.x<b.x,C&&(S=S-Math.PI)):(C=g.x>b.x,C||(S=S-Math.PI));var E=C?"left":"right",P=s.getModel("label"),I=P.get("rotate"),D=I*(Math.PI/180),O=y.getTextContent();O&&(y.setTextConfig({position:P.get("position")||E,rotation:I==null?-S:D,origin:"center"}),O.setStyle("verticalAlign","middle"))}var N=s.get(["emphasis","focus"]),M=N==="relative"?FG(a.getAncestorsIndices(),a.getDescendantIndices()):N==="ancestor"?a.getAncestorsIndices():N==="descendant"?a.getDescendantIndices():null;M&&(kn(n).focus=M),ZEe(i,a,c,n,p,d,g,r),n.__edge&&(n.onHoverStateChange=function(k){if(k!=="blur"){var V=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);V&&V.hoverState===c0||YA(n.__edge,k)}})}function ZEe(e,t,n,r,i,o,a,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"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(g||(g=r.__edge=new Hx({shape:BP(c,f,h,i,i)})),_s(g,{shape:BP(c,f,h,o,a)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var y=t.children,m=[],b=0;b<y.length;b++){var w=y[b].getLayout();m.push([w.x,w.y])}g||(g=r.__edge=new XEe({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:f,forkPosition:d}})),_s(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},e)}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(Mn({strokeNoScale:!0,fill:null},p)),JA(g,l,"lineStyle"),x9(g),s.add(g))}function oU(e,t,n,r,i){var o=t.tree.root,a=uj(o,e),s=a.source,l=a.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),d=r.get("edgeShape"),p=r.get("layout"),g=r.get("orient"),y=r.get(["lineStyle","curveness"]);h&&(d==="curve"?Fd(h,{shape:BP(p,g,y,l,l),style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}):d==="polyline"&&r.get("layout")==="orthogonal"&&Fd(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(h)},removeOpt:i}))}}function uj(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function aU(e,t,n,r,i){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=uj(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Fd(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(u){oU(u,e,r,i,l)}),oU(o,e,r,i,l)}function BP(e,t,n,r,i){var o,a,s,l,u,c,f,h;if(e==="radial"){u=r.rawX,f=r.rawY,c=i.rawX,h=i.rawY;var d=zg(u,f),p=zg(u,f+(h-f)*n),g=zg(c,h+(f-h)*n),y=zg(c,h);return{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=r.x,f=r.y,c=i.x,h=i.y,(t==="LR"||t==="RL")&&(o=u+(c-u)*n,a=f,s=c+(u-c)*n,l=h),(t==="TB"||t==="BT")&&(o=u,a=f+(h-f)*n,s=c,l=h+(f-h)*n);return{x1:u,y1:f,x2:c,y2:h,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var Na=or();function qEe(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,cj(t,n,e),ee(n,function(r){ee(t.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,Dr(JEe,e))})}),t.wrapMethod("cloneShallow",Dr(e2e,e)),ee(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Dr(QEe,e))}),ul(n[t.dataType]===t)}function JEe(e,t){if(r2e(this)){var n=et({},Na(this).datas);n[this.dataType]=t,cj(t,n,e)}else pO(t,this.dataType,Na(this).mainData,e);return t}function QEe(e,t){return e.struct&&e.struct.update(),t}function e2e(e,t){return ee(Na(t).datas,function(n,r){n!==t&&pO(n.cloneShallow(),r,t,e)}),t}function t2e(e){var t=Na(this).mainData;return e==null||t==null?t:Na(t).datas[e]}function n2e(){var e=Na(this).mainData;return e==null?[{data:e}]:$t(ir(Na(e).datas),function(t){return{type:t,data:Na(e).datas[t]}})}function r2e(e){return Na(e).mainData===e}function cj(e,t,n){Na(e).datas={},ee(t,function(r,i){pO(r,i,e,n)})}function pO(e,t,n,r){Na(n).datas[t]=e,Na(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=t2e,e.getLinkedDataAll=n2e}var i2e=(function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){Bt(t)&&(r=n,n=t,t=null),t=t||{},wt(t)&&(t={order:t});var i=t.order||"preorder",o=this[t.attr||"children"],a;i==="preorder"&&(a=n.call(r,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(t,n,r);i==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(t+1),i.height>n&&(n=i.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].getNodeById(t);if(o)return o}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].contains(t);if(o)return o}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},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,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e})(),o2e=(function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,i=n.length;r<i;r++)n[r].dataIndex=-1;for(var r=0,i=t.count();r<i;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;s(t);function s(c,f){var h=c.value;a=Math.max(a,pt(h)?h.length:1),o.push(c);var d=new i2e(vs(c.name,""),i);f?a2e(d,f):i.root=d,i._nodes.push(d);var p=c.children;if(p)for(var g=0;g<p.length;g++)s(p[g],d)}i.root.updateDepthAndHeight(0);var l=h7(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new d7(l,n);return u.initData(o),r&&r(u),qEe({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e})();function a2e(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}function s2e(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var l2e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},i=n.leaves||{},o=new fr(i,this,this.ecModel),a=o2e.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(h,d){var p=a.getNodeByDataIndex(d);return p&&p.children.length&&p.isExpand||(h.parentModel=o),h})}var l=0;a.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return a.root.eachNode("preorder",function(f){var h=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=h&&h.collapsed!=null?!h.collapsed:f.depth<=c}),a.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return qp("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=s2e(i,this),r.collapsed=!i.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Ct.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t})(_u);function u2e(e,t,n){for(var r=[e],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;o=i.pop();)t(o,n)}function _g(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var i=r.children;if(i.length)for(var o=i.length-1;o>=0;o--)n.push(i[o])}}function c2e(e,t){e.eachSeriesByType("tree",function(n){f2e(n,t)})}function f2e(e,t){var n=ZD(e,t).refContainer,r=Zp(e.getBoxLayoutParams(),n);e.layoutInfo=r;var i=e.get("layout"),o=0,a=0,s=null;i==="radial"?(o=2*Math.PI,a=Math.min(r.height,r.width)/2,s=nU(function(S,C){return(S.parentNode===C.parentNode?1:2)/S.depth})):(o=r.width,a=r.height,s=nU());var l=e.getData().tree.root,u=l.children[0];if(u){BEe(l),u2e(u,UEe,s),l.hierNode.modifier=-u.hierNode.prelim,_g(u,VEe);var c=u,f=u,h=u;_g(u,function(S){var C=S.getLayout().x;C<c.getLayout().x&&(c=S),C>f.getLayout().x&&(f=S),S.depth>h.depth&&(h=S)});var d=c===f?1:s(c,f)/2,p=d-c.getLayout().x,g=0,y=0,m=0,b=0;if(i==="radial")g=o/(f.getLayout().x+d+p),y=a/(h.depth-1||1),_g(u,function(S){m=(S.getLayout().x+p)*g,b=(S.depth-1)*y;var C=zg(m,b);S.setLayout({x:C.x,y:C.y,rawX:m,rawY:b},!0)});else{var w=e.getOrient();w==="RL"||w==="LR"?(y=a/(f.getLayout().x+d+p),g=o/(h.depth-1||1),_g(u,function(S){b=(S.getLayout().x+p)*y,m=w==="LR"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:m,y:b},!0)})):(w==="TB"||w==="BT")&&(g=o/(f.getLayout().x+d+p),y=a/(h.depth-1||1),_g(u,function(S){m=(S.getLayout().x+p)*g,b=w==="TB"?(S.depth-1)*y:a-(S.depth-1)*y,S.setLayout({x:m,y:b},!0)}))}}}function d2e(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");et(s,a)})})}function h2e(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var i=t.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var o=i.coordinateSystem,a=FEe(o,t,i.get("scaleLimit"));i.setCenter(a.center),i.setZoom(a.zoom)})})}function p2e(e){e.registerChartView(KEe),e.registerSeriesModel(l2e),e.registerLayout(c2e),e.registerVisual(d2e),h2e(e)}var Bf=or(),sU=hn,H2=mn,v2e=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new ci,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var h=Dr(lU,n,f);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,n)}cU(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=dO(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,i,o){},e.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=Bf(t).pointerEl=new w_e[o.type](sU(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Bf(t).labelEl=new Uo(sU(n.label));t.add(o),uU(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Bf(t).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,i){var o=Bf(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),uU(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=RD(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){fw(u.event)},onmousedown:H2(this._onHandleDragMove,this,0,0),drift:H2(this._onHandleDragMove,this),ondragend:H2(this._onHandleDragEnd,this)}),r.add(i)),cU(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");pt(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,W7(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){lU(this._axisPointerModel,!n&&this._moveAnimation,this._handle,z2(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(z2(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(z2(i)),Bf(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,i=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),i&&n.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),vP(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function lU(e,t,n,r){fj(Bf(n).lastProp,r)||(Bf(n).lastProp=r,t?_s(n,r,e):(n.stopAnimation(),n.attr(r)))}function fj(e,t){if(Et(e)&&Et(t)){var n=!0;return ee(t,function(r,i){n=n&&fj(e[i],r)}),!!n}else return e===t}function uU(e,t){e[t.get(["label","show"])?"show":"hide"]()}function z2(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function cU(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function g2e(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function m2e(e,t,n,r,i){var o=n.get("value"),a=dj(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Zx(s.get("padding")||0),u=s.getFont(),c=WG(a,u),f=i.position,h=c.width+l[1]+l[3],d=c.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=h),p==="center"&&(f[0]-=h/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=d),g==="middle"&&(f[1]-=d/2),y2e(f,h,d,r);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xp(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function y2e(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dj(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:_w(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};ee(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),wt(a)?o=a.replace("{value}",o):Bt(a)&&(o=a(s))}return o}function hj(e,t,n){var r=tl();return fD(r,r,n.rotation),IA(r,r,n.position),PD([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function _2e(e,t,n,r,i,o){var a=Cc.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),m2e(t,r,i,o,{position:hj(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function b2e(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function S2e(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var w2e=(function(e){ft(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=fU(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var h=g2e(o),d=x2e[u](s,f,c);d.style=h,n.graphicKey=d.type,n.pointer=d}var p=Sw(l.getRect(),i);_2e(r,n,p,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=Sw(r.axis.grid.getRect(),r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=hj(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=fU(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[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 p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:d,tooltipOption:p[c]}},t})(v2e);function fU(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var x2e={line:function(e,t,n){var r=b2e([t,n[0]],[t,n[1]],dU(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:S2e([t-r/2,n[0]],[r,i],dU(e))}}};function dU(e){return e.dim==="x"?0:1}var T2e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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:Ct.color.border,width:1,type:"dashed"},shadowStyle:{color:Ct.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Ct.color.neutral00,padding:[5,7,5,7],backgroundColor:Ct.color.accent60,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:Ct.color.accent40,throttle:40}},t})(Nn),Jl=or(),C2e=ee;function pj(e,t,n){if(!zt.node){var r=t.getZr();Jl(r).records||(Jl(r).records={}),E2e(r,t);var i=Jl(r).records[e]||(Jl(r).records[e]={});i.handler=n}}function E2e(e,t){if(Jl(e).initialized)return;Jl(e).initialized=!0,n("click",Dr(hU,"click")),n("mousemove",Dr(hU,"mousemove")),n("globalout",A2e);function n(r,i){e.on(r,function(o){var a=P2e(t);C2e(Jl(e).records,function(s){s&&i(s,o,a.dispatchAction)}),I2e(a.pendings,t)})}}function I2e(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function A2e(e,t,n){e.handler("leave",null,n)}function hU(e,t,n,r){t.handler(e,n,r)}function P2e(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function UP(e,t){if(!zt.node){var n=t.getZr(),r=(Jl(n).records||{})[e];r&&(Jl(n).records[e]=null)}}var R2e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";pj("axisPointer",i,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){UP("axisPointer",r)},t.prototype.dispose=function(n,r){UP("axisPointer",r)},t.type="axisPointer",t})(fl);function vj(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Nd(o,e);if(a==null||a<0||pt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];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,p=o.mapDimension(h),g=[];g[d]=o.get(p,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(o.getValues($t(l.dimensions,function(m){return o.mapDimension(m)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),n=[y.x+y.width/2,y.y+y.height/2]}return{point:n,el:s}}var pU=or();function M2e(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||mn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Yb(i)&&(i=vj({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Yb(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||Yb(i),h={},d={},p={list:[],map:{}},g={showPointer:Dr(O2e,d),showTooltip:Dr(L2e,p)};ee(s.coordSysMap,function(m,b){var w=l||m.containPoint(i);ee(s.coordSysAxesInfo[b],function(S,C){var T=S.axis,E=$2e(u,S);if(!f&&w&&(!u||E)){var P=E&&E.value;P==null&&!l&&(P=T.pointToData(i)),P!=null&&vU(S,P,g,!1,h)}})});var y={};return ee(c,function(m,b){var w=m.linkGroup;w&&!d[b]&&ee(w.axesInfo,function(S,C){var T=d[C];if(S!==m&&T){var E=T.value;w.mapper&&(E=m.axis.scale.parse(w.mapper(E,gU(S),gU(m)))),y[m.key]=E}})}),ee(y,function(m,b){vU(c[b],m,g,!0,h)}),k2e(d,c,h),N2e(p,i,e,a),F2e(c,a,n),h}}function vU(e,t,n,r,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=D2e(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&et(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function D2e(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return ee(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);h=d.dataIndices,f=d.nestestValue}else{if(h=l.indicesOfNearest(r,c[0],e,n.type==="category"?.5:null),!h.length)return;f=l.getData().get(c[0],h[0])}if(!(f==null||!isFinite(f))){var p=e-f,g=Math.abs(p);g<=a&&((g<a||p>=0&&s<0)&&(a=g,s=p,i=f,o.length=0),ee(h,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function O2e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function L2e(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=My(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function k2e(e,t,n){var r=n.axesInfo=[];ee(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function N2e(e,t,n,r){if(Yb(t)||!e.list.length){r({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function F2e(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=pU(r)[i]||{},a=pU(r)[i]={};ee(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&ee(f.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;a[d]=h})});var s=[],l=[];ee(o,function(u,c){!a[c]&&l.push(u)}),ee(a,function(u,c){!o[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $2e(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function gU(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function Yb(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gj(e){oj.registerAxisPointerClass("CartesianAxisPointer",w2e),e.registerComponentModel(T2e),e.registerComponentView(R2e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!pt(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=hEe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},M2e)}function mj(e){bu(EEe),bu(gj)}function B2e(e,t){var n=Zx(t.get("padding")),r=t.getItemStyle(["color","opacity"]);r.fill=t.get("backgroundColor");var i=new Kr({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1});return i}var U2e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Ct.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Ct.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Ct.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Ct.color.tertiary,fontSize:14}},t})(Nn);function yj(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function _j(e){if(zt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var bj=_j(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),V2e=_j(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Sj(e,t){if(!e)return t;t=C7(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function H2e(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var z2e=Sj(V2e,"transition"),vO=Sj(bj,"transform"),G2e="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(zt.transform3dSupported?"will-change:transform;":"");function W2e(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function j2e(e,t,n){if(!wt(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=$d(t);var o=W2e(n),a=Math.max(Math.round(i)*1.5,6),s="",l=vO+":",u;wn(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+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+=";"+o+":-"+d+"px";var p=t+" solid "+i+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function Y2e(e,t,n){var r="cubic-bezier(0.23,1,0.32,1)",i="",o="";return n&&(i=" "+e/2+"s "+r,o="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+r,o+=(o.length?",":"")+(zt.transformSupported?""+vO+i:",left"+i+",top"+i)),z2e+":"+o}function mU(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!zt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=zt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+vO+":"+a+";":[["top",0],["left",0],[bj,a]]}function X2e(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Ft(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),ee(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function K2e(e,t,n,r){var i=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),f=e.getModel("textStyle"),h=O7(e,"html"),d=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+d),t&&o>0&&i.push(Y2e(o,n,r)),a&&i.push("background-color:"+a),ee(["width","color","radius"],function(p){var g="border-"+p,y=C7(g),m=e.get(y);m!=null&&i.push(g+":"+m+(p==="color"?"":"px"))}),i.push(X2e(f)),h!=null&&i.push("padding:"+Zx(h).join("px ")+"px"),i.join(";")+";"}function yU(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Abe(e,a,n,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Z2e=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,zt.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=n.appendTo,a=o&&(wt(o)?document.querySelector(o):hy(o)?o:Bt(o)&&o(t.getDom()));yU(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Ta(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=H2e(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=G2e+K2e(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+mU(o[0],o[1],!0)+("border-color:"+$d(n)+";")+(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,n,r,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(wt(o)&&r.get("trigger")==="item"&&!yj(r)&&(s=j2e(r,i,o)),wt(t))a.innerHTML=t+s;else if(t){a.innerHTML="",pt(t)||(t=[t]);for(var l=0;l<t.length;l++)hy(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(yU(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=mU(r[0],r[1]);ee(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;this._enableDisplayTransition?(n.visibility="hidden",n.opacity="0"):n.display="none",zt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(mn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;Pbe(t&&t.painter&&t.painter.getViewportRoot(),this._container);var n=this.el;if(n){n.onmouseenter=n.onmousemove=n.onmouseleave=null;var r=n.parentNode;r&&r.removeChild(n)}this.el=this._container=null},e})(),q2e=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),bU(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;Et(t)&&Eo(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Uo({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:O7(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),ee(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),ee(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=_U(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;bU(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=qu(o.borderWidth||0),s=_U(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(mn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function qu(e){return Math.max(0,e)}function _U(e){var t=qu(e.shadowBlur||0),n=qu(e.shadowOffsetX||0),r=qu(e.shadowOffsetY||0);return{left:qu(t-n),right:qu(t+n),top:qu(t-r),bottom:qu(t+r)}}function bU(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var J2e=new Kr({shape:{x:-1,y:-1,width:2,height:2}}),Q2e=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(zt.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=a1e(i.get("renderMode"));this._tooltipContent=o==="richText"?new q2e(r):new Z2e(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(zt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?W7(this,"_updatePosition",50,"fixRate"):vP(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");pj("itemTooltip",this._api,mn(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||zt.node||!i.getDom())){var a=SU(o,i);this._ticket="";var s=o.dataByCoordSys,l=rIe(o,r,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:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=J2e;c.x=o.x,c.y=o.y,c.update(),kn(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,o))return;var f=vj(o,r),h=f.point[0],d=f.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:f.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,r,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(SU(o,i))},t.prototype._manuallyAxisShowTip=function(n,r,i,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=r.getSeriesByIndex(a);if(u){var c=u.getData(),f=bg([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,r){var i=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(i){var s=kn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Vg(i,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(kn(c).dataIndex!=null?l=c:kn(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=mn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=bg([r.tooltipOption],o),l=this._renderMode,u=[],c=qp("section",{blocks:[],noHeader:!0}),f=[],h=new h2;ee(n,function(b){ee(b.dataByAxis,function(w){var S=i.getComponent(w.axisDim+"Axis",w.axisIndex),C=w.value;if(!(!S||C==null)){var T=dj(C,S.axis,i,w.seriesDataIndices,w.valueLabelOpt),E=qp("section",{header:T,noHeader:!Xs(T),sortBlocks:!0,blocks:[]});c.blocks.push(E),ee(w.seriesDataIndices,function(P){var I=i.getSeriesByIndex(P.seriesIndex),D=P.dataIndexInside,O=I.getDataParams(D);if(!(O.dataIndex<0)){O.axisDim=w.axisDim,O.axisIndex=w.axisIndex,O.axisType=w.axisType,O.axisId=w.axisId,O.axisValue=_w(S.axis,{value:C}),O.axisValueLabel=T,O.marker=h.makeTooltipMarker("item",$d(O.color),l);var N=g$(I.formatTooltip(D,!0,null)),M=N.frag;if(M){var k=bg([I],o).get("valueFormatter");E.blocks.push(k?et({valueFormatter:k},M):M)}N.text&&f.push(N.text),u.push(O)}})}})}),c.blocks.reverse(),f.reverse();var d=r.position,p=s.get("order"),g=b$(c,h,l,p,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var y=l==="richText"?`
`:"<br/>",m=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",a[0],a[1],d,null,h)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=kn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,h=u.getData(f),d=this._renderMode,p=n.positionDefault,g=bg([h.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),y=g.get("trigger");if(!(y!=null&&y!=="item")){var m=u.getDataParams(c,f),b=new h2;m.marker=b.makeTooltipMarker("item",$d(m.color),d);var w=g$(u.formatTooltip(c,!1,f)),S=g.get("order"),C=g.get("valueFormatter"),T=w.frag,E=T?b$(C?et({valueFormatter:C},T):T,b,d,S,o.get("useUTC"),g.get("textStyle")):w.text,P="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,E,m,P,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=kn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(wt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=hn(l),l.content=Io(l.content));var f=[l],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&f.push(h),f.push({formatter:l.content});var d=n.positionDefault,p=bg(f,this._tooltipModel,d?{position:d}:null),g=p.get("content"),y=Math.random()+"",m=new h2;this._showOrMove(p,function(){var b=hn(p.get("formatterParams")||{});this._showTooltipContent(p,g,b,y,n.offsetX,n.offsetY,n.position,r,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var h=n.get("formatter");l=l||n.get("position");var d=r,p=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)),g=p.color;if(h)if(wt(h)){var y=n.ecModel.get("useUTC"),m=pt(i)?i[0]:i,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,b&&(d=Kx(m.axisValue,d,y)),d=E7(d,i,!0)}else if(Bt(h)){var w=mn(function(S,C){S===this._ticket&&(f.setContent(C,c,n,g,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,d=h(i,o,w)}else d=h;f.setContent(d,c,n,g,l),f.show(n,g),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o,a){if(i==="axis"||pt(r))return{color:o||a};if(!pt(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),h=n.get("align"),d=n.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),Bt(r)&&(r=r([i,o],s,a.el,p,{viewSize:[u,c],contentSize:f.slice()})),pt(r))i=Ur(r[0],u),o=Ur(r[1],c);else if(Et(r)){var g=r;g.width=f[0],g.height=f[1];var y=Zp(g,{width:u,height:c});i=y.x,o=y.y,h=null,d=null}else if(wt(r)&&l){var m=nIe(r,p,f,n.get("borderWidth"));i=m[0],o=m[1]}else{var m=eIe(i,o,a,u,c,h?null:20,d?null:20);i=m[0],o=m[1]}if(h&&(i-=wU(h)?f[0]/2:h==="right"?f[0]:0),d&&(o-=wU(d)?f[1]/2:d==="bottom"?f[1]:0),yj(n)){var m=tIe(i,o,a,u,c);i=m[0],o=m[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&ee(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&ee(u,function(h,d){var p=f[d]||{},g=h.seriesDataIndices||[],y=p.seriesDataIndices||[];a=a&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&g.length===y.length,a&&ee(g,function(m,b){var w=y[b];a=a&&m.seriesIndex===w.seriesIndex&&m.dataIndex===w.dataIndex}),o&&ee(h.seriesDataIndices,function(m){var b=m.seriesIndex,w=r[b],S=o[b];w&&S&&S.data!==w.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){zt.node||!r.getDom()||(vP(this,"_updatePosition"),this._tooltipContent.dispose(),UP("itemTooltip",r))},t.type="tooltip",t})(fl);function bg(e,t,n){var r=t.ecModel,i;n?(i=new fr(n,r,r),i=new fr(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof fr&&(a=a.get("tooltip",!0)),wt(a)&&(a={formatter:a}),a&&(i=new fr(a,i,r)))}return i}function SU(e,t){return e.dispatchAction||mn(t.dispatchAction,t)}function eIe(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>r?e-=l+o:e+=o),a!=null&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function tIe(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function nIe(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+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-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function wU(e){return e==="center"||e==="middle"}function rIe(e,t,n){var r=gD(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=u0(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=kn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function wj(e){bu(gj),e.registerComponentModel(U2e),e.registerComponentView(Q2e),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ro),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ro)}var iIe=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},VP=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),pt(r)&&ee(r,function(o,a){wt(o)&&(o={type:o}),r[a]=Rn(o,iIe(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,h=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(h)),h.length?r=r.concat(h):c=!0}else c=!0;c&&vD(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=tn(),s=$t(o,function(l){return(wt(l)||qn(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new fr(l,this,this.ecModel))},this);this._data=oi(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;ee(o,function(a){r[a.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;ee(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;ee(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&wn(this._availableNames,n)>=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",bottom:Ct.size.m,align:"auto",backgroundColor:Ct.color.transparent,borderColor:Ct.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Ct.color.disabled,inactiveBorderColor:Ct.color.disabled,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:Ct.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Ct.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Ct.color.tertiary,borderWidth:1,borderColor:Ct.color.border},emphasis:{selectorLabel:{show:!0,color:Ct.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(Nn),kh=Dr,HP=ee,k_=ci,xj=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new k_),this.group.add(this._selectorGroup=new k_),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=ZD(n,i).refContainer,f=n.getBoxLayoutParams(),h=n.get("padding"),d=Zp(f,c,h),p=this.layoutInner(n,a,d,o,l,u),g=Zp(Mn({width:p.width,height:p.height},f),c,h);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=B2e(p,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=tn(),f=r.get("selectedMode"),h=r.get("triggerEvent"),d=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),HP(r.getData(),function(p,g){var y=this,m=p.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var b=new k_;b.newline=!0,u.add(b);return}var w=i.getSeriesByName(m)[0];if(!c.get(m))if(w){var S=w.getData(),C=S.getVisual("legendLineStyle")||{},T=S.getVisual("legendIcon"),E=S.getVisual("style"),P=this._createItem(w,m,g,p,r,n,C,E,T,f,o);P.on("click",kh(xU,m,null,o,d)).on("mouseover",kh(zP,w.name,null,o,d)).on("mouseout",kh(GP,w.name,null,o,d)),i.ssr&&P.eachChild(function(I){var D=kn(I);D.seriesIndex=w.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),h&&P.eachChild(function(I){y.packEventData(I,r,w,g,m)}),c.set(m,!0)}else i.eachRawSeries(function(I){var D=this;if(!c.get(m)&&I.legendVisualProvider){var O=I.legendVisualProvider;if(!O.containName(m))return;var N=O.indexOfName(m),M=O.getItemVisual(N,"style"),k=O.getItemVisual(N,"legendIcon"),V=il(M.fill);V&&V[3]===0&&(V[3]=.2,M=et(et({},M),{fill:a0(V,"rgba")}));var B=this._createItem(I,m,g,p,r,n,{},M,k,f,o);B.on("click",kh(xU,null,m,o,d)).on("mouseover",kh(zP,null,m,o,d)).on("mouseout",kh(GP,null,m,o,d)),i.ssr&&B.eachChild(function(U){var $=kn(U);$.seriesIndex=I.seriesIndex,$.dataIndex=g,$.ssrType="legend"}),h&&B.eachChild(function(U){D.packEventData(U,r,I,g,m)}),c.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype.packEventData=function(n,r,i,o,a){var s={componentType:"legend",componentIndex:r.componentIndex,dataIndex:o,value:a,seriesIndex:i.seriesIndex};kn(n).eventData=s},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();HP(n,function(u){var c=u.type,f=new Uo({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(f);var h=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);LD(f,{normal:h,emphasis:d},{defaultText:u.title}),ZA(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,h){var d=n.visualDrawType,p=a.get("itemWidth"),g=a.get("itemHeight"),y=a.isSelected(r),m=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),w=o.get("icon");c=w||c||"roundRect";var S=oIe(c,o,l,u,d,y,h),C=new k_,T=o.getModel("textStyle");if(Bt(n.getLegendIcon)&&(!w||w==="inherit"))C.add(n.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var E=w==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;C.add(aIe({itemWidth:p,itemHeight:g,icon:c,iconRotate:E,itemStyle:S.itemStyle,symbolKeepAspect:b}))}var P=s==="left"?p+5:-5,I=s,D=a.get("formatter"),O=r;wt(D)&&D?O=D.replace("{name}",r??""):Bt(D)&&(O=D(r));var N=y?T.getTextColor():o.get("inactiveColor");C.add(new Uo({style:Xp(T,{text:O,x:P,y:g/2,fill:N,align:I,verticalAlign:"middle"},{inheritColor:N})}));var M=new Kr({shape:C.getBoundingRect(),style:{fill:"transparent"}}),k=o.getModel("tooltip");return k.get("show")&&Gx({el:M,componentModel:a,itemName:r,itemTooltipOption:k.option}),C.add(M),C.eachChild(function(V){V.silent=!0}),M.silent=!f,this.getContentGroup().add(C),ZA(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Rm(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){Rm("horizontal",u,n.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],p=n.get("selectorButtonGap",!0),g=n.getOrient().index,y=g===0?"width":"height",m=g===0?"height":"width",b=g===0?"y":"x";s==="end"?d[g]+=c[y]+p:f[g]+=h[y]+p,d[1-g]+=c[m]/2-h[m]/2,u.x=d[0],u.y=d[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[y]=c[y]+p+h[y],w[m]=Math.max(c[m],h[m]),w[b]=Math.min(0,h[b]+d[1-g]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(fl);function oIe(e,t,n,r,i,o,a){function s(y,m){y.lineWidth==="auto"&&(y.lineWidth=m.lineWidth>0?2:0),HP(y,function(b,w){y[w]==="inherit"&&(y[w]=m[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:wP(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var h=t.getModel("lineStyle"),d=h.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?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 aIe(e){var t=e.icon||"roundRect",n=Jp(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=Ct.color.neutral00,n.style.lineWidth=2),n}function xU(e,t,n,r){GP(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),zP(e,t,n,r)}function Tj(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function zP(e,t,n,r){Tj(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function GP(e,t,n,r){Tj(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function sIe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function Sg(e,t,n){var r=e==="allSelect"||e==="inverseSelect",i={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),TU(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){ee(i,function(l,u){s[l?"select":"unSelect"](u)}),TU(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function TU(e,t){var n=t||{};return ee(e.getData(),function(r){var i=r.get("name");if(!(i===`
`||i==="")){var o=e.isSelected(i);ps(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function lIe(e){e.registerAction("legendToggleSelect","legendselectchanged",Dr(Sg,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Dr(Sg,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Dr(Sg,"inverseSelect")),e.registerAction("legendSelect","legendselected",Dr(Sg,"select")),e.registerAction("legendUnSelect","legendunselected",Dr(Sg,"unSelect"))}function Cj(e){e.registerComponentModel(VP),e.registerComponentView(xj),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,sIe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),lIe(e)}var uIe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var o=d0(n);e.prototype.init.call(this,n,r,i),CU(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),CU(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Ebe(VP.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Ct.color.accent50,pageIconInactiveColor:Ct.color.accent10,pageIconSize:15,pageTextStyle:{color:Ct.color.tertiary},animationDurationUpdate:800}),t})(VP);function CU(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Lc(t,n,{type:"box",ignoreSize:!!i})}var EU=ci,G2=["width","height"],W2=["x","y"],cIe=(function(e){ft(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new EU),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new EU)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this;e.prototype.renderInner.call(this,n,r,i,o,a,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),h=pt(f)?f:[f,f];p("pagePrev",0);var d=r.getModel("pageTextStyle");c.add(new Uo({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(g,y){var m=g+"DataIndex",b=RD(r.get("pageIcons",!0)[r.getOrient().name][y],{onclick:mn(u._pageGo,u,m,r,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});b.name=g,c.add(b)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=G2[u],f=W2[u],h=G2[1-u],d=W2[1-u];a&&Rm("horizontal",l,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],m=hn(i);a&&(m[c]=i[c]-g[c]-p);var b=this._layoutContentAndController(n,o,m,u,c,h,d,f);if(a){if(s==="end")y[u]+=b[c]+p;else{var w=g[c]+p;y[u]-=w,b[f]-=w}b[c]+=g[c]+p,y[1-u]+=b[d]+b[h]/2-g[h]/2,b[h]=Math.max(b[h],g[h]),b[d]=Math.min(b[d],g[d]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,h=this._controllerGroup;Rm(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),Rm("horizontal",h,n.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=d[a]>i[a],y=[-d.x,-d.y];r||(y[o]=c[u]);var m=[0,0],b=[-p.x,-p.y],w=Ft(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var S=n.get("pageButtonPosition",!0);S==="end"?b[o]+=i[a]-p[a]:m[o]+=p[a]+w}b[1-o]+=d[s]/2-p[s]/2,c.setPosition(y),f.setPosition(m),h.setPosition(b);var C={x:0,y:0};if(C[a]=g?i[a]:d[a],C[s]=Math.max(d[s],p[s]),C[l]=Math.min(0,p[l]+b[1-o]),f.__rectSize=i[a],g){var T={x:0,y:0};T[a]=Math.max(i[a]-p[a]-w,0),T[s]=C[s],f.setClipPath(new Kr({shape:T})),f.__rectSize=T[a]}else h.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(n);return E.pageIndex!=null&&_s(c,{x:E.contentPosition[0],y:E.contentPosition[1]},g?n:null),this._updatePageInfoView(n,E),C},t.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;ee(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",h=r[f]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",h?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",wt(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=G2[a],l=W2[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],h=c.length,d=h?1:0,p={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var g=S(f);p.contentPosition[a]=-g.s;for(var y=u+1,m=g,b=g,w=null;y<=h;++y)w=S(c[y]),(!w&&b.e>m.s+o||w&&!C(w,m.s))&&(b.i>m.i?m=b:m=w,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),b=w;for(var y=u-1,m=g,b=g,w=null;y>=-1;--y)w=S(c[y]),(!w||!C(b,w.s))&&m.i<b.i&&(b=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=w;return p;function S(T){if(T){var E=T.getBoundingRect(),P=E[l]+T[l];return{s:P,e:P+E[s],i:T.__legendDataIndex}}}function C(T,E){return T.e>=E&&T.s<=E+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t})(xj);function fIe(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(r)})})}function dIe(e){bu(Cj),e.registerComponentModel(uIe),e.registerComponentView(cIe),fIe(e)}function Ej(e){bu(Cj),bu(dIe)}function IU(e,t,n){var r=yu.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}var j2=(function(e){ft(t,e);function t(n,r,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||KS,typeof n=="string"?a=IU(n,r,i):Et(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&($G(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=IU("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new Wt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var w=new Wt(0,0,0,0);w.copy(b),a.push(w)}else{for(var S=!1,C=1/0,T=0,E=0;E<a.length;++E){var P=a[E];if(P.intersect(b)){var I=new Wt(0,0,0,0);I.copy(P),I.union(b),a[E]=I,S=!0;break}else if(l){u.copy(b),u.union(P);var D=b.width*b.height,O=P.width*P.height,N=u.width*u.height,M=N-D-O;M<C&&(C=M,T=E)}}if(l&&(a[T].union(b),S=!0),!S){var w=new Wt(0,0,0,0);w.copy(b),a.push(w)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var h=n[f];if(h){var d=h.shouldBePainted(i,o,!0,!0),p=h.__isRendered&&(h.__dirty&ea||!d)?h.getPrevPaintRect():null;p&&c(p);var g=d&&(h.__dirty&ea||!h.__isRendered)?h.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var h=r[f],d=h&&h.shouldBePainted(i,o,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&c(p)}}var y;do{y=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var m=f+1;m<a.length;)a[f].intersect(a[m])?(y=!0,a[f].union(a[m]),a.splice(m,1)):m++;f++}}while(y);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var d=this.domBack;function p(g,y,m,b){if(a.clearRect(g,y,m,b),r&&r!=="transparent"){var w=void 0;if(Mx(r)){var S=r.global||r.__width===m&&r.__height===b;w=S&&r.__canvasGradient||bP(a,r,{x:0,y:0,width:m,height:b}),r.__canvasGradient=w,r.__width=m,r.__height=b}else Wme(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,w=SP(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));a.save(),a.fillStyle=w||r,a.fillRect(g,y,m,b),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(d,g,y,m,b),a.restore())}!i||u?p(0,0,s,l):i.length&&ee(i,function(g){p(g.x*f,g.y*f,g.width*f,g.height*f)})},t})(Ss),AU=1e5,Df=314159,N_=.01,hIe=.001;function pIe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function vIe(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var gIe=(function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=et({},r||{}),this.dpr=r.devicePixelRatio||KS,this._singleCanvas=o,this.root=t;var a=t.style;a&&($G(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,h=c.height;r.width!=null&&(f=r.width),r.height!=null&&(h=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=h*this.dpr,this._width=f,this._height=h;var d=new j2(c,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Df]=d,d.zlevel=Df,s.push(Df),this._domRoot=t}else{this._width=C_(t,0,r),this._height=C_(t,1,r);var u=this._domRoot=vIe(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(AU)),o||(o=r.ctx,o.save()),Zf(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(AU)},e.prototype.paintOne=function(t,n){vW(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;dw(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Df).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,h=function(g){var y=o[g],m=y.ctx,b=a&&y.createRepaintRects(t,n,d._width,d._height),w=r?y.__startIndex:y.__drawIndex,S=!r&&y.incremental&&Date.now,C=S&&Date.now(),T=y.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,T,b);else if(w===y.__startIndex){var E=t[w];(!E.incremental||!E.notClear||r)&&y.clear(!1,T,b)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=y.__startIndex);var P,I=function(M){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(P=w;P<y.__endIndex;P++){var V=t[P];if(V.__inHover&&(f=!0),i._doPaintEl(V,y,a,M,k,P===y.__endIndex-1),S){var B=Date.now()-C;if(B>15)break}}k.prevElClipPaths&&m.restore()};if(b)if(b.length===0)P=y.__endIndex;else for(var D=d.dpr,O=0;O<b.length;++O){var N=b[O];m.save(),m.beginPath(),m.rect(N.x*D,N.y*D,N.width*D,N.height*D),m.clip(),I(N),m.restore()}else m.save(),I(),m.restore();y.__drawIndex=P,y.__drawIndex<y.__endIndex&&(c=!1)},d=this,p=0;p<o.length;p++)h(p);return zt.wxa&&ee(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,i,o,a){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Zf(s,t,o,a),t.setPrevPaintRect(l))}else Zf(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Df);var r=this._layers[t];return r||(r=new j2("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Rn(r,this._layerConfig[t],!0):this._layerConfig[t-N_]&&Rn(r,this._layerConfig[t-N_],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&pIe(n)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,h){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+hIe,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?N_:0),this._needsManuallyCompositing),c.__builtin__||oD("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),o=c),i.__dirty&ea&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(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,ee(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Rn(r[t],n,!0):r[t]=n;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+N_){var a=this._layers[o];Rn(a,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(wn(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=C_(o,0,i),n=C_(o,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(Df).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Df].dom;var n=new j2("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,i,o):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Zf(r,c,a,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function Ij(e){e.registerPainter("canvas",gIe)}const mIe={class:"relative h-28 w-full overflow-hidden"},gO=Ze({__name:"BasicCharts",props:{data:{},labelFormatter:{type:Function},toolTipFormatter:{type:Function},min:{}},setup(e){bu([wwe,mj,Ej,wj,Ij]);const t=e,n=Te(),r=Te(),i=Te(!1),o={primary30:"",primary60:"",info30:"",info60:"",baseContent10:"",baseContent:"",base70:""};let a="";const s=()=>{const c=getComputedStyle(n.value);o.baseContent=c.getPropertyValue("--color-base-content").trim(),o.base70=c.backgroundColor,o.baseContent10=c.color,o.primary30=c.borderTopColor,o.primary60=c.borderBottomColor,o.info30=c.borderLeftColor,o.info60=c.borderRightColor},l=()=>{a=getComputedStyle(n.value).fontFamily},u=ge(()=>({legend:{bottom:0,data:t.data.map(c=>c.name),textStyle:{color:o.baseContent,fontFamily:a}},grid:{left:60,top:15,right:8,bottom:25},tooltip:{show:!0,trigger:"axis",backgroundColor:o.base70,borderColor:o.base70,confine:!0,padding:[0,5],textStyle:{color:o.baseContent,fontFamily:a},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:c=>Math.max(c.max,t.min),axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:o.baseContent10}},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:t.labelFormatter,color:o.baseContent,fontFamily:a}},series:t.data.map((c,f)=>{const h=f===t.data.length-1?o.primary60:o.info60,d=f===t.data.length-1?o.primary30:o.info30;return{name:c.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:c.data,areaStyle:{color:new ED(0,0,0,1,[{offset:0,color:h},{offset:1,color:d}])},type:"line",color:h,smooth:!0}})}));return Er(()=>{s(),l(),mt(mS,s),mt(fp,l);const c=AP(r.value);c.setOption(u.value),mt(u,()=>{i.value||c?.setOption(u.value)});const{width:f}=ov(r),h=xr.debounce(()=>{c.resize()},100);mt(f,h)}),(c,f)=>(H(),K("div",mIe,[R("div",{ref_key:"chart",ref:r,class:"h-full w-full"},null,512),R("span",{class:"border-b-primary/30 border-t-primary/60 border-l-info/30 border-r-info/60 text-base-content/10 bg-base-100/70 hidden",ref_key:"colorRef",ref:n},null,512),R("button",{class:"btn btn-ghost btn-xs absolute right-1 bottom-0",onClick:f[0]||(f[0]=h=>i.value=!i.value)},[(H(),it(Po(i.value?L(Nie):L(kie)),{class:"h-4 w-4"}))])]))}}),mO=Ze({__name:"ConnectionsCharts",setup(e){const{t}=qr(),n=ge(()=>[{name:t("connections"),data:eS.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name<Jf+1))return`
<div class="flex items-center my-2 gap-1">
<div class="w-4 h-4 rounded-full" style="background-color: ${a.color}"></div>
${a.seriesName}
(${ui(a.data.name).format("HH:mm:ss")}): ${a.data.value}
</div>`}).join(`
`);return(o,a)=>(H(),it(gO,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),yO=Ze({__name:"MemoryCharts",setup(e){const{t}=qr(),n=ge(()=>[{name:t("memoryUsage"),data:Gg.value}]),r=o=>`${nr(o,{maximumFractionDigits:0,binary:!0})}`,i=o=>CY(o[0],{binary:!0,suffix:""});return(o,a)=>(H(),it(gO,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),_O=Ze({__name:"SpeedCharts",setup(e){const t=Te(),{t:n}=qr(),r=ge(()=>[{name:n("ulSpeed"),data:jg.value},{name:n("dlSpeed"),data:Wg.value}]),i=a=>`${nr(a,{maximumFractionDigits:0,binary:!1})}/s`,o=a=>a.map(s=>CY(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(H(),it(gO,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),yIe=Ze({__name:"OverviewCarousel",setup(e){const t={1:"max-h-28",2:"max-h-56",3:"max-h-84"};return(n,r)=>(H(),K("div",{class:ct(["card scrollbar-hidden flex-2 overflow-y-auto text-sm",t[L(tb)]])},[z(_O,{class:"h-28 shrink-0"}),z(yO,{class:"h-28 shrink-0"}),z(mO,{class:"h-28 shrink-0"})],2))}}),_Ie={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},bIe={class:"flex flex-col gap-4"},SIe={class:"flex flex-col items-center justify-center gap-1"},wIe={class:"flex flex-col items-center justify-center gap-1"},xIe={class:"text-base-content/60"},TIe={class:"flex flex-col items-center justify-center gap-1"},CIe={class:"text-base-content/60"},EIe={class:"flex flex-col items-center justify-center gap-1"},IIe={class:"flex flex-col items-center justify-center"},AIe=Ze({__name:"VerticalInfos",setup(e){return(t,n)=>(H(),K("div",_Ie,[R("div",bIe,[R("div",SIe,[z(L(uH),{class:"h-4 w-4"}),Be(" "+q(L(Ff)[L(Qn).CONNECTIONS]),1)]),R("div",wIe,[z(L(Yw),{class:"h-4 w-4"}),Be(" "+q(L(Ff)[L(Qn).DOWNLOAD])+" ",1),R("span",xIe,q(L(Ff)[L(Qn).DL_SPEED]),1)]),R("div",TIe,[z(L(Vy),{class:"h-4 w-4"}),Be(" "+q(L(Ff)[L(Qn).UPLOAD])+" ",1),R("span",CIe,q(L(Ff)[L(Qn).UL_SPEED]),1)]),R("div",EIe,[z(L(Mie),{class:"h-4 w-4"}),Be(" "+q(L(Ff)[L(Qn).MEMORY_USAGE]),1)])]),R("div",IIe,[R("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>Hs.value=!1)},[z(L(aa),{class:"h-5 w-5"})])])]))}}),PIe={class:"menu w-full flex-1"},RIe=["onMouseenter"],MIe=["onClickPassive"],DIe={key:1,class:"flex w-full items-center justify-center"},OIe={class:"card"},LIe=Ze({__name:"SideBar",setup(e){const{showTip:t}=uo(),{t:n}=qr(),r=(o,a)=>{Hs.value&&t(o,n(a),{placement:"right"})},i=GH();return(o,a)=>(H(),K("div",{class:ct(["sidebar bg-base-200 text-base-content scrollbar-hidden h-full overflow-x-hidden p-2 transition-all",L(Hs)?"w-18 px-0":"w-64"])},[R("div",{class:ct(L(Ui)("flex h-full flex-col gap-2",L(Hs)?"w-18 px-0":"w-60"))},[R("ul",PIe,[(H(!0),K(Ve,null,Yt(L(gc),s=>(H(),K("li",{key:s,onMouseenter:l=>r(l,s)},[R("a",{class:ct([s===L(i).name?"menu-active":"",L(Hs)&&"justify-center","py-2"]),onClickPassive:()=>L(Da).push({name:s})},[(H(),it(Po(L(mH)[s]),{class:"h-5 w-5"})),L(Hs)?Ge("",!0):(H(),K(Ve,{key:0},[Be(q(o.$t(s)),1)],64))],42,MIe)],40,RIe))),128))]),L(Hs)?(H(),K(Ve,{key:0},[L(eb)?(H(),it(AIe,{key:0})):(H(),K("div",DIe,[R("button",{class:"btn btn-circle btn-sm bg-base-300",onClick:a[0]||(a[0]=s=>Hs.value=!1)},[z(L(aa),{class:"h-5 w-5"})])]))],64)):(H(),K(Ve,{key:1},[L(i).name!==L(an).overview?(H(),it(yIe,{key:0})):Ge("",!0),R("div",OIe,[z(Mme)])],64))],2)],2))}}),Y2=Te(!1),Aj=()=>({isUIUpdateAvailable:Y2,checkUIUpdate:async()=>{Y2.value=await Bke(),Y2.value&&Y_.value&&gY()}}),WP=Te(!1),kIe=()=>{const e=Te(),t=GH(),n=YR(),{direction:r}=poe(e,{threshold:75}),i=ge(()=>xr.flatten(gc.value.map(u=>{if(X_.value){if(u===an.proxies&&ou.value.length>0)return Object.values(ta).map(c=>[()=>t.name===an.proxies&&wo.value===c,()=>{n.push({name:an.proxies}),wo.value=c}]);if(u===an.connections)return Object.values(zd).map(c=>[()=>t.name===an.connections&&bc.value===c,()=>{n.push({name:an.connections}),bc.value=c}]);if(u===an.rules&&as.value.length>0)return Object.values(_c).map(c=>[()=>t.name===an.rules&&pd.value===c,()=>{n.push({name:an.rules}),pd.value=c}])}return[[()=>t.name===u,()=>n.push({name:u})]]}))),o=()=>i.value.findIndex(u=>u[0]()),a=()=>t.name===an.setup?n.push({name:an.proxies}):i.value[(o()+1)%i.value.length]?.[1]?.(),s=()=>t.name===an.setup?n.push({name:an.proxies}):i.value[(o()-1+i.value.length)%i.value.length]?.[1]?.(),l=()=>{const u=document.activeElement;return u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA")};return mt(r,()=>{Ig.value&&(document.querySelector("dialog:modal")||l()||window.getSelection()?.toString()?.length||WP.value||(r.value==="right"?s():r.value==="left"&&a()))}),{swiperRef:e}},NIe={class:"bg-base-200/50 home-page flex size-full"},FIe={class:"relative h-0 flex-1"},$Ie={class:"absolute flex h-full w-full flex-col overflow-y-auto"},BIe=["onClick"],UIe={class:"dock-label"},VIe={class:"text-lg font-bold"},HIe={class:"flex justify-end gap-2"},zIe=Ze({__name:"HomePage",setup(e){const t={[an.connections]:jge,[an.logs]:Kge,[an.proxies]:qge,[an.rules]:Qge},n={height:"calc(var(--spacing) * 14 + env(safe-area-inset-bottom))","padding-bottom":"env(safe-area-inset-bottom)"},r=YR(),{swiperRef:i}=kIe(),o=Te(),{width:a}=ov(o),s=ge(()=>a.value>720);mt(si,()=>{si.value&&(pd.value=_c.RULES,wo.value=ta.PROXIES,Px(),Fo(),Mc(),iue(),AG(),Vke())},{immediate:!0});const l=Te(!1),u=async()=>{const h=Or.value.filter(p=>p.uuid!==si.value);l.value=!1;const d=await Promise.race(h.map(p=>new Promise((g,y)=>{setTimeout(()=>{y()},1e4),nR(p).then(m=>{m&&g(p)})})));d&&(si.value=d.uuid,pr({content:"backendSwitchTo",params:{backend:Ed(d)}}))},c=loe();mt(c,async()=>{if(!(!Cr.value||Or.value.length<2||c.value!=="visible"))try{const h=Cr.value.uuid,d=await nR(Cr.value);if(h!==si.value)return;d||(l.value=!0)}catch{l.value=!0}},{immediate:!0}),mt(c,()=>{c.value==="visible"&&Fo()});const{checkUIUpdate:f}=Aj();return f(),(h,d)=>(H(),K("div",NIe,[L(sd)?Ge("",!0):(H(),it(LIe,{key:0})),z(L(jR),null,{default:gn(({Component:p,route:g})=>[R("div",{class:"flex flex-1 flex-col overflow-hidden",ref_key:"swiperRef",ref:i},[t[g.name]?(H(),K("div",{key:0,class:"bg-base-100 ctrls-bar w-full",ref_key:"ctrlsBarRef",ref:o},[(H(),it(Po(t[g.name]),{"is-large-ctrls-bar":s.value},null,8,["is-large-ctrls-bar"]))],512)):Ge("",!0),R("div",FIe,[R("div",$Ie,[L(sd)?(H(),it(z6,{key:0,name:g.meta.transition||"fade"},{default:gn(()=>[(H(),it(Po(p)))]),_:2},1032,["name"])):(H(),it(Po(p),{key:1}))])]),L(sd)?(H(),K(Ve,{key:1},[R("div",{class:"nav-bar shrink-0",style:n}),R("div",{class:"dock dock-sm bg-base-200 z-30",style:n},[(H(!0),K(Ve,null,Yt(L(gc),y=>(H(),K("button",{key:y,onClick:m=>L(r).push({name:y}),class:ct(y===g.name&&"dock-active")},[(H(),it(Po(L(mH)[y]),{class:"size-5"})),R("span",UIe,q(h.$t(y)),1)],10,BIe))),128))])],64)):Ge("",!0)],512)]),_:1}),z(dl,{modelValue:l.value,"onUpdate:modelValue":d[1]||(d[1]=p=>l.value=p)},{default:gn(()=>[R("h3",VIe,q(h.$t("currentBackendUnavailable")),1),R("div",HIe,[R("button",{class:"btn btn-sm",onClick:d[0]||(d[0]=p=>l.value=!1)},q(h.$t("cancel")),1),R("button",{class:"btn btn-primary btn-sm",onClick:u},q(h.$t("confirm")),1)])]),_:1},8,["modelValue"])]))}}),GIe={class:"card hover:bg-base-200 block p-2 text-sm break-all"},WIe={class:"inline-flex items-center gap-2"},jIe={class:"badge badge-sm text-main min-w-14"},YIe={class:"leading-6 max-md:mt-2 max-md:block md:ml-2"},XIe=Ze({__name:"LogsCard",props:{log:{}},setup(e){const t=e,n=ge(()=>t.log.seq.toString().padStart(2,"0")),r={[Qi.Trace]:"text-success",[Qi.Debug]:"text-accent",[Qi.Info]:"text-info",[Qi.Warning]:"text-warning",[Qi.Error]:"text-error",[Qi.Fatal]:"text-error",[Qi.Panic]:"text-error"};return Gd(),(i,o)=>(H(),K("div",GIe,[R("div",WIe,[R("div",{style:Kn({minWidth:`${(n.value.length+1)*.62}em`})},q(n.value)+". ",5),R("span",jIe,q(i.log.time),1),R("span",{class:ct(["badge badge-sm min-w-17",r[i.log.type]])},q(i.log.type),3)]),R("span",YIe,q(i.log.payload),1)]))}}),KIe={class:"size-full overflow-x-hidden"},ZIe={key:0,class:"card m-2 flex-row p-2 text-sm"},qIe=Ze({__name:"LogsPage",setup(e){const t=ge(()=>{let n=Zl.value;if(mp.value||Kh.value){const r=new RegExp(mp.value,"i");n=Zl.value.filter(i=>!(mp.value&&![i.payload,i.time,i.type].some(o=>r.test(o))||Kh.value&&!(i.payload.includes(Kh.value)||i.type===Kh.value)))}return n});return(n,r)=>(H(),K("div",KIe,[t.value.length?(H(),it(rM,{key:1,data:t.value,size:L(sd)?96:64},{default:gn(({item:i})=>[z(XIe,{log:i},null,8,["log"])]),_:1},8,["data","size"])):(H(),K("div",ZIe,q(n.$t("noContent")),1))]))}}),JIe={class:"card w-full"},QIe={class:"card-title px-4 pt-4"},eAe={class:"card-body gap-4"},tAe={class:"grid grid-cols-1 gap-2 lg:grid-cols-3"},nAe=Ze({__name:"ChartsCard",setup(e){return(t,n)=>(H(),K("div",JIe,[R("div",QIe,q(t.$t("overview")),1),R("div",eAe,[z(tD,{type:"overview"}),R("div",tAe,[z(_O,{class:"xl:h-64"}),z(yO,{class:"xl:h-64"}),z(mO,{class:"xl:h-64"})])])]))}}),rAe={class:"card w-full"},iAe={class:"card-title px-4 pt-4"},oAe={class:"text-base-content/80 font-normal"},aAe={class:"card-body gap-4"},sAe={class:"bg-base-200/50 grid grid-cols-1 gap-2 rounded-lg px-4 py-2 lg:grid-cols-3"},lAe={class:"flex h-14 flex-col items-start justify-center gap-1"},uAe={class:"text-sm"},cAe={class:"text-base"},fAe={class:"flex h-14 flex-col items-start justify-center gap-1"},dAe={class:"text-sm"},hAe={class:"text-base"},pAe={class:"flex h-14 flex-col items-start justify-center gap-1"},vAe={class:"text-sm"},gAe={class:"text-base"},mAe={class:"flex h-14 flex-col items-start justify-center gap-1"},yAe={class:"text-sm"},_Ae={class:"text-base"},bAe={class:"flex h-14 flex-col items-start justify-center gap-1"},SAe={class:"text-sm"},wAe={class:"text-base"},xAe={class:"flex h-14 flex-col items-start justify-center gap-1"},TAe={class:"text-sm"},CAe={class:"text-base"},EAe=Ze({__name:"ConnectionHistory",setup(e){const t=ge(()=>cs.value.concat(um.value)),n=ge(()=>{const u={},c={},f={},h=g=>{const m=(g.metadata.host||g.metadata.sniffHost)?.split(".").slice(-2).join(".")||g.metadata.destinationIP;m in u?(u[m].download+=g.download,u[m].upload+=g.upload):u[m]={key:m,download:g.download,upload:g.upload}},d=g=>{const y=g.chains[0];y in c?(c[y].download+=g.download,c[y].upload+=g.upload):c[y]={key:y,download:g.download,upload:g.upload}},p=g=>{const y=g.metadata.sourceIP;y in f?(f[y].download+=g.download,f[y].upload+=g.upload):f[y]={key:y,download:g.download,upload:g.upload}};return t.value.forEach(g=>{h(g),d(g),p(g)}),{hostMap:u,proxyMap:c,sourceIPMap:f}}),r=ge(()=>{const u=Object.entries(n.value.hostMap).sort((c,f)=>f[1].download-c[1].download)?.[0];return u?{host:u[0],download:nr(u[1].download)}:{host:"",download:0}}),i=ge(()=>{const u=Object.entries(n.value.hostMap).sort((c,f)=>f[1].upload-c[1].upload)?.[0];return u?{host:u[0],upload:nr(u[1].upload)}:{host:"",upload:0}}),o=ge(()=>{const u=Object.entries(n.value.sourceIPMap).sort((c,f)=>f[1].download-c[1].download)?.[0];return u?{sourceIP:u[0],download:nr(u[1].download)}:{sourceIP:"",download:0}}),a=ge(()=>{const u=Object.entries(n.value.sourceIPMap).sort((c,f)=>f[1].upload-c[1].upload)?.[0];return u?{sourceIP:u[0],upload:nr(u[1].upload)}:{sourceIP:"",upload:0}}),s=ge(()=>{const u=Object.entries(n.value.proxyMap).sort((c,f)=>f[1].download-c[1].download)?.[0];return u?{proxy:u[0],download:nr(u[1].download)}:{proxy:"",download:0}}),l=ge(()=>{const u=Object.entries(n.value.proxyMap).sort((c,f)=>f[1].upload-c[1].upload)?.[0];return u?{proxy:u[0],upload:nr(u[1].upload)}:{proxy:"",upload:0}});return(u,c)=>(H(),K("div",rAe,[R("div",iAe,[Be(q(u.$t("totalConnections"))+" ",1),R("span",oAe," ("+q(t.value.length)+") ",1)]),R("div",aAe,[R("div",sAe,[R("div",lAe,[R("div",uAe,q(u.$t("mostDownloadHost")),1),R("div",cAe,q(r.value.host)+" = "+q(r.value.download),1)]),R("div",fAe,[R("div",dAe,q(u.$t("mostDownloadSourceIP")),1),R("div",hAe,q(o.value.sourceIP)+" = "+q(o.value.download),1)]),R("div",pAe,[R("div",vAe,q(u.$t("mostDownloadProxy")),1),R("div",gAe,q(s.value.proxy)+" = "+q(s.value.download),1)]),R("div",mAe,[R("div",yAe,q(u.$t("mostUploadHost")),1),R("div",_Ae,q(i.value.host)+" = "+q(i.value.upload),1)]),R("div",bAe,[R("div",SAe,q(u.$t("mostUploadSourceIP")),1),R("div",wAe,q(a.value.sourceIP)+" = "+q(a.value.upload),1)]),R("div",xAe,[R("div",TAe,q(u.$t("mostUploadProxy")),1),R("div",CAe,q(l.value.proxy)+" = "+q(l.value.upload),1)])])])]))}}),eT=e=>new Promise(t=>{const n=performance.now(),r=document.createElement("img");r.src=e+"?_="+new Date().getTime(),r.style.display="none",r.onload=()=>{const i=performance.now();r.remove(),t(i-n)},r.onerror=()=>{r.remove(),t(0)},document.body.appendChild(r)}),IAe=()=>eT("https://www.cloudflare.com/favicon.ico"),AAe=()=>eT("https://yt3.ggpht.com/favicon.ico"),PAe=()=>eT("https://github.githubassets.com/favicon.ico"),RAe=()=>eT("https://apps.bdimg.com/favicon.ico"),ks=Te({ip:[],ipWithPrivacy:[]}),Ns=Te({ip:[],ipWithPrivacy:[]}),F_=Te(""),$_=Te(""),B_=Te(""),U_=Te(""),MAe={class:"bg-base-200/50 relative h-28 rounded-lg p-2 text-sm"},DAe={class:"flex h-full flex-col justify-between"},Pj=Ze({__name:"ConnectionStatus",setup(e){const t=async()=>{RAe().then(n=>{F_.value=n.toFixed(0)}),IAe().then(n=>{U_.value=n.toFixed(0)}),PAe().then(n=>{$_.value=n.toFixed(0)}),AAe().then(n=>{B_.value=n.toFixed(0)})};return Er(()=>{Q_.value&&[F_,U_,$_,B_].some(n=>n.value==="")&&t()}),(n,r)=>(H(),K("div",MAe,[R("div",DAe,[R("div",null,[r[0]||(r[0]=R("span",{class:"inline-block w-20"},"Baidu ",-1)),r[1]||(r[1]=Be(" : ",-1)),R("span",{class:ct(L(vc)(Number(L(F_))))},q(L(F_))+"ms ",3)]),R("div",null,[r[2]||(r[2]=R("span",{class:"inline-block w-20"},"Cloudflare ",-1)),r[3]||(r[3]=Be(" : ",-1)),R("span",{class:ct(L(vc)(Number(L(U_))))},q(L(U_))+"ms ",3)]),R("div",null,[r[4]||(r[4]=R("span",{class:"inline-block w-20"},"Github ",-1)),r[5]||(r[5]=Be(" : ",-1)),R("span",{class:ct(L(vc)(Number(L($_))))},q(L($_))+"ms ",3)]),R("div",null,[r[6]||(r[6]=R("span",{class:"inline-block w-20"},"YouTube ",-1)),r[7]||(r[7]=Be(" : ",-1)),R("span",{class:ct(L(vc)(Number(L(B_))))},q(L(B_))+"ms ",3)])]),R("button",{class:"btn btn-circle btn-sm absolute right-2 bottom-2",onClick:t},[z(L(Hy),{class:"h-4 w-4"})])]))}}),OAe={class:"bg-base-200/50 relative flex h-28 flex-col gap-1 rounded-lg p-2"},LAe={class:"grid grid-cols-[auto_auto_1fr] gap-x-2 gap-y-1"},kAe={class:"text-sm"},NAe={key:0,class:"text-xs"},FAe={class:"text-left text-sm"},$Ae={class:"text-sm"},BAe={key:0,class:"text-xs"},UAe={class:"absolute right-2 bottom-2 flex items-center gap-2"},Rj=Ze({__name:"IPCheck",setup(e){const{t}=qr(),n=Te(!1),{showTip:r}=uo(),i=l=>{r(l,t("ipScreenshotTip"))},o={ip:[t("getting"),""],ipWithPrivacy:[t("getting"),""]},a={ip:[t("testFailed"),""],ipWithPrivacy:[t("testFailed"),""]},s=()=>{ks.value={...o},Ns.value={...o},lM().then(l=>{Ns.value={ipWithPrivacy:[`${l.country} ${l.organization}`,l.ip],ip:[`${l.country} ${l.organization}`,"***.***.***.***"]}}).catch(()=>{Ns.value={...a}}),oce().then(l=>{ks.value={ipWithPrivacy:[l.data.location.join(" "),l.data.ip],ip:[`${l.data.location[0]} ** ** **`,"***.***.***.***"]}}).catch(()=>{ks.value={...a}})};return mt(dp,()=>{[ks,Ns].some(l=>l.value.ip.length!==0)&&s()}),Er(()=>{J_.value&&[ks,Ns].some(l=>l.value.ip.length===0)&&s()}),(l,u)=>(H(),K("div",OAe,[R("div",LAe,[u[1]||(u[1]=R("div",{class:"text-left text-sm"},"ipip.net",-1)),u[2]||(u[2]=R("div",{class:"text-right text-sm"},":",-1)),R("div",kAe,[Be(q(n.value?L(ks).ipWithPrivacy[0]:L(ks).ip[0])+" ",1),L(ks).ip[1]?(H(),K("span",NAe," ("+q(n.value?L(ks).ipWithPrivacy[1]:L(ks).ip[1])+") ",1)):Ge("",!0)]),R("div",FAe,q(L(dp)),1),u[3]||(u[3]=R("div",{class:"text-right text-sm"},":",-1)),R("div",$Ae,[Be(q(n.value?L(Ns).ipWithPrivacy[0]:L(Ns).ip[0])+" ",1),L(Ns).ip[1]?(H(),K("span",BAe," ("+q(n.value?L(Ns).ipWithPrivacy[1]:L(Ns).ip[1])+") ",1)):Ge("",!0)])]),R("div",UAe,[R("button",{class:"btn btn-circle btn-sm flex items-center justify-center",onClick:u[0]||(u[0]=c=>n.value=!n.value),onMouseenter:i},[n.value?(H(),it(L(LR),{key:0,class:"h-4 w-4"})):(H(),it(L(OR),{key:1,class:"h-4 w-4"}))],32),R("button",{class:"btn btn-circle btn-sm",onClick:s},[z(L(Hy),{class:"h-4 w-4"})])])]))}}),VAe={class:"card w-full"},HAe={class:"card-title px-4 pt-4"},zAe={class:"card-body gap-4"},GAe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},WAe=Ze({__name:"NetworkCard",setup(e){return(t,n)=>(H(),K("div",VAe,[R("div",HAe,q(t.$t("networkInfo")),1),R("div",zAe,[R("div",GAe,[z(Rj),z(Pj)])])]))}}),jAe=e=>{const t=new Map,r=new Promise((f,h)=>{const d=indexedDB.open(e,1);d.onupgradeneeded=()=>{const p=d.result;p.objectStoreNames.contains(e)||p.createObjectStore(e,{keyPath:"key"})},d.onsuccess=()=>{const y=d.result.transaction(e,"readonly").objectStore(e).openCursor();y.onsuccess=m=>{const b=m.target.result;b?(t.set(b.key,b.value.value),b.continue()):f(d.result)},y.onerror=()=>h(y.error)},d.onerror=()=>h(d.error)}),i=async(f,h)=>{const d=await r;return new Promise((p,g)=>{const m=d.transaction(e,f).objectStore(e),b=h(m);b.onsuccess=()=>p(b.result),b.onerror=()=>g(b.error)})};return{put:async(f,h)=>(t.set(f,h),i("readwrite",d=>d.put({key:f,value:h}))),get:async f=>(await r,t.get(f)),del:async f=>(t.delete(f),i("readwrite",h=>h.delete(f))),getAllKeys:async()=>(await r,Array.from(t.keys())),isExists:async f=>(await r,t.has(f)),clear:async()=>(t.clear(),i("readwrite",f=>f.clear()))}},bO=jAe("base64"),Mj="background-image",YAe=e=>bO.put(Mj,e),XAe=()=>bO.get(Mj),KAe=()=>bO.clear(),ww="local-image",ZAe=ui().format("YYYY-MM-DD"),Dj=Te(""),qAe=async()=>{Dj.value=await XAe()||""};mt(()=>qo.value,()=>{qo.value.includes(ww)&&qAe()},{immediate:!0});const Xb=ge(()=>qo.value?qo.value.includes(ww)?`background-image: url('${Dj.value}');`:`background-image: url('${qo.value}?v=${ZAe}');`:""),JAe=Ze({__name:"ProxiesCharts",setup(e){bu([p2e,mj,Ej,wj,Ij]);const t=Te(!1),n=Te(),r=Te(),i=Te(),o=ge(()=>`backdrop-filter: blur(${iu.value}px);`),a={baseContent10:"",baseContent30:"",baseContent:"",base70:""};let s="";const l=()=>{const d=getComputedStyle(n.value);a.baseContent=d.getPropertyValue("--color-base-content").trim(),a.baseContent10=d.color,a.baseContent30=d.borderColor,a.base70=d.backgroundColor},u=()=>{s=getComputedStyle(n.value).fontFamily},c=(d,p)=>{const g=$n.value[d.name];g&&(d.children=[],g.all?.forEach((y,m)=>{const b={name:y,value:y,collapsed:t.value?m%2===0:m!==0};d.children?.push(b),c(b)})),d.children&&d.children.length>15&&(d.collapsed=!0)},f=ge(()=>{const p={name:oa.value?"SingBox":"Mihomo",children:[],collapsed:!1},g=t.value?10:3,y=Math.max(Math.floor(Ac.value.length/g),1);return Ac.value.forEach((m,b)=>{const w={name:m,collapsed:b%y!==0};c(w),p.children.push(w)}),[p]}),h=ge(()=>({tooltip:{trigger:"item",triggerOn:"mousemove",formatter:d=>{const p=d.name;if(d.treeAncestors.length<=2)return p;const g=d.treeAncestors;return g.splice(0,2),g.map(y=>y.name).join(" > ")},backgroundColor:a.base70,borderColor:a.base70,confine:!0,padding:[0,5],textStyle:{color:a.baseContent,fontFamily:s}},series:[{type:"tree",data:f.value,roam:!0,top:"5%",left:"5%",bottom:"5%",right:"5%",symbolSize:7,label:{position:"left",verticalAlign:"middle",align:"right",fontSize:9,color:a.baseContent,fontFamily:s},itemStyle:{color:a.baseContent30},lineStyle:{color:a.baseContent10},leaves:{label:{position:"right",verticalAlign:"middle",align:"left"}},emphasis:{focus:"descendant"},expandAndCollapse:!0,animationThreshold:99999999999,animationDuration:550,animationDurationUpdate:750,progressive:!0,progressiveThreshold:500,progressiveStep:100,renderer:"canvas",silent:!1,animationEasing:"cubicOut"}]}));return Er(()=>{l(),u(),mt(mS,l),mt(fp,u);const d=AP(r.value),p=Te();d.setOption(h.value),mt([si,h,t],()=>{d?.clear(),d?.setOption(h.value),t.value?Zr(()=>{p.value||(p.value=AP(i.value)),p.value?.clear(),p.value?.setOption(h.value)}):(p.value?.dispose(),p.value=void 0)});const{width:g}=ov(r),y=xr.debounce(()=>{d.resize(),p.value?.resize()},100);mt(g,y)}),(d,p)=>(H(),K(Ve,null,[R("div",{class:ct(L(Ui)("relative h-96 w-full overflow-hidden")),onMousemove:p[1]||(p[1]=Pn(()=>{},["stop"])),onTouchmove:p[2]||(p[2]=Pn(()=>{},["stop"]))},[R("div",{ref_key:"chart",ref:r,class:"h-full w-full"},null,512),R("span",{class:"border-base-content/30 text-base-content/10 bg-base-100/70 hidden",ref_key:"colorRef",ref:n},null,512),R("button",{class:ct(["",L(Ui)("btn btn-ghost btn-circle btn-sm absolute right-1 bottom-1",t.value?"fixed right-4 bottom-4 mb-[env(safe-area-inset-bottom)]":"")]),onClick:p[0]||(p[0]=g=>t.value=!t.value)},[(H(),it(Po(t.value?L(VN):L(Aie)),{class:"h-4 w-4"}))],2)],34),(H(),it(zV,{to:"body"},[t.value?(H(),K("div",{key:0,class:ct(["bg-base-100 custom-background fixed inset-0 z-[9999] h-screen w-screen bg-cover bg-center",`blur-intensity-${L(iu)} custom-background-${L(em)}`]),style:Kn(L(Xb))},[R("div",{ref_key:"fullScreenChart",ref:i,class:"bg-base-100 h-full w-full",style:Kn(o.value)},null,4),R("button",{class:"btn btn-ghost btn-circle btn-sm fixed right-4 bottom-4 mb-[env(safe-area-inset-bottom)]",onClick:p[3]||(p[3]=g=>t.value=!1)},[z(L(VN),{class:"h-4 w-4"})])],6)):Ge("",!0)]))],64))}}),QAe={class:"flex h-full flex-col gap-2 overflow-x-hidden overflow-y-auto p-2"},ePe={key:1,class:"card"},tPe={class:"card-title absolute px-4 pt-4"},nPe={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},rPe=Ze({__name:"OverviewPage",setup(e){return(t,n)=>(H(),K("div",QAe,[z(nAe),L(ac)?(H(),it(WAe,{key:0})):Ge("",!0),L(nb)?(H(),K("div",ePe,[R("div",tPe,q(t.$t("proxiesRelationship")),1),z(JAe)])):Ge("",!0),z(EAe),n[0]||(n[0]=R("div",{class:"flex-1"},null,-1)),R("div",nPe,[Be(q(L(Ed)(L(Cr)))+" : ",1),z(eD)])]))}});function SO(e,t){const n=ge(()=>iPe(e.value,t)),r=ge(()=>n.value.filter(o=>av(o,t)!==ai).length),i=ge(()=>{const o=e.value.length;return am.value===Xm.FILTERED_TOTAL?n.value.length:am.value===Xm.TOTAL||r.value===o?o:`${r.value}/${o}`});return{renderProxies:n,proxiesCount:i}}const iPe=(e,t)=>{const n=new Map;if(e=[...e],e.forEach(l=>{n.set(l,av(l,t))}),bI.value&&(e=e.filter(l=>rR(l)||n.get(l)>ai)),TS.value){const l=TS.value.split(" ").map(u=>u.toLowerCase().trim());e=e.filter(u=>(u=u.toLowerCase(),l.every(c=>u.includes(c))))}if(SI.value&&vp.value[t]){const l=["MostUsed","OccasionalUsed","RarelyUsed"];return e.sort((u,c)=>l.indexOf(vp.value[t][u])-l.indexOf(vp.value[t][c]))}if(Zm.value===Ws.DEFAULT)return e;const r=[],i=[];e.forEach(l=>{rR(l)?r.push(l):i.push(l)});const o=l=>{const u=n.get(l);return u===0?1/0:u},s={[Ws.NAME_ASC]:(l,u)=>l.localeCompare(u),[Ws.NAME_DESC]:(l,u)=>u.localeCompare(l),[Ws.LATENCY_ASC]:(l,u)=>o(l)-o(u),[Ws.LATENCY_DESC]:(l,u)=>o(u)-o(l)}[Zm.value];return r.concat(i.sort(s))},Oj=Ze({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=ge({get(){return yS.value[t.name]},set(o){yS.value[t.name]=o}});mt(n,o=>{o&&(r.value=!0)});const r=Te(n.value),i=()=>{n.value||(r.value=!1)};return(o,a)=>(H(),K("div",{class:ct(`collapse ${n.value?"collapse-open":"collapse-close"}`)},[R("div",{class:"collapse-title cursor-pointer overflow-hidden pr-4 select-none",onClick:a[0]||(a[0]=s=>n.value=!n.value)},[eu(o.$slots,"title"),n.value?Ge("",!0):eu(o.$slots,"preview",{key:0})]),R("div",{class:"collapse-content max-sm:px-2",onTransitionend:i},[r.value?(H(),K("div",{key:0,class:ct(["max-h-108 overflow-y-auto",[L(HR),!n.value&&"opacity-0"]])},[eu(o.$slots,"content")],2)):Ge("",!0)],32)],2))}});var xw=function(){return xw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xw.apply(this,arguments)},oPe=(function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){i.startTime||(i.startTime=o);var a=o-i.startTime;i.remaining=i.duration-a,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(a,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(a,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(a/i.duration);var s=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(o){var a,s,l,u,c=o<0?"-":"";a=Math.abs(o).toFixed(i.options.decimalPlaces);var f=(a+="").split(".");if(s=f[0],l=f.length>1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var h=3,d=0,p=0,g=s.length;p<g;++p)i.options.useIndianSeparators&&p===4&&(h=2,d=1),p!==0&&d%h==0&&(u=i.options.separator+u),d++,u=s[g-p-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,(function(y){return i.options.numerals[+y]})),l=l.replace(/[0-9]/g,(function(y){return i.options.numerals[+y]}))),c+i.options.prefix+s+l+i.options.suffix},this.easeOutExpo=function(o,a,s,l){return s*(1-Math.pow(2,-10*o/l))*1024/1023+a},this.options=xw(xw({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el=typeof t=="string"?document.getElementById(t):t,n=n??this.parse(this.el.innerHTML),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return i.handleScroll(i)})),window.onscroll=function(){window.onScrollFns.forEach((function(o){return o()}))},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,o=r.top+r.height+window.pageYOffset;o<n&&o>window.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e.prototype.parse=function(t){var n=function(a){return a.replace(/([.,'  ])/g,"\\$1")},r=n(this.options.separator),i=n(this.options.decimal),o=t.replace(new RegExp(r,"g"),"").replace(new RegExp(i,"g"),".");return parseFloat(o)},e})();const aPe={key:0,class:"loading loading-dots loading-xs text-base-content/80"},wO=Ze({__name:"LatencyTag",props:{name:{},loading:{type:Boolean},groupName:{}},setup(e){const{showTip:t}=uo(),n=l=>{const u=aM(r.name??"",r.groupName);if(!u.length)return;const c=document.createElement("div");c.classList.add("flex","flex-col","gap-1");for(const f of u){const h=document.createElement("div"),d=document.createElement("div"),p=document.createElement("div");d.textContent=ui(f.time).format("YYYY-MM-DD HH:mm:ss"),p.textContent=f.delay+"ms",p.className=vc(f.delay),h.classList.add("flex","items-center","gap-2"),h.append(d,p),c.append(h)}t(l,c,{delay:[1e3,0],trigger:"mouseenter",touch:!1})},r=e,i=Te(),o=ge(()=>av(r.name??"",r.groupName));let a=null;Er(()=>{mt(o,(l,u)=>{a?a?.update(l):Zr(()=>{a=new oPe(i.value,o.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:u}),a?.update(l)})})}),Bc(()=>{a=null});const s=ge(()=>vc(o.value));return(l,u)=>(H(),K("div",{class:ct(L(Ui)("latency-tag bg-base-100 flex h-5 w-10 items-center justify-center rounded-xl text-xs select-none md:hover:shadow-sm",s.value)),onMouseenter:n},[l.loading?(H(),K("span",aPe)):o.value===L(ai)||!o.value?(H(),it(L(Hy),{key:1,class:"text-base-content h-3 w-3"})):Ge("",!0),tt(R("div",{ref_key:"latencyRef",ref:i},q(o.value),513),[[MR,o.value!==L(ai)&&!l.loading]])],34))}}),Lj=(e,t)=>{const n=IH(),{width:r}=ov(n),i=ge(()=>Math.max(Math.floor(r.value/pp.value),2)*(lc.value===iv.LARGE?9:12)),o=Te(Math.max(24,t+12));return Er(()=>{mt(i,()=>{o.value=Math.max(o.value,i.value)},{immediate:!0}),Zr(()=>{const a=zR(n.value);hoe(a,()=>{o.value=Math.min(o.value+=i.value,e)},{distance:100,canLoadMore:()=>o.value<e})})}),{maxProxies:o}},sPe={class:"flex w-full flex-1 items-center"},lPe={class:"flex h-4 w-full items-center justify-between select-none"},uPe=Ze({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean},groupName:{}},setup(e){const t=e,n=Te(),r=ge(()=>$n.value[t.name]),i=Te(!1),o=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),a=ge(()=>lc.value===iv.SMALL),s=ge(()=>{const c=o(r.value.type),f=vp.value[t.groupName??""]?.[t.name],h=f?Yy.global.t(f):"",d=ld.value&&Cue(r.value.name)?"IPv6":"",p=r.value.udp?r.value.xudp?"xudp":"udp":"";return[c,p,h,d].filter(Boolean).join(a.value?"/":" / ")}),l=Te([]),u=async()=>{if(!i.value){i.value=!0;try{await Eue(t.name,oM(t.groupName)),i.value=!1}catch{i.value=!1}if([Ws.LATENCY_ASC,Ws.LATENCY_DESC].includes(Zm.value)&&n.value){const c=["bg-info/20!","transition-colors","duration-1500"];JN(n.value),l.value=c,setTimeout(()=>{l.value=[]},1500)}}};return Er(()=>{t.active&&setTimeout(()=>{JN(n.value)},300)}),(c,f)=>(H(),K("div",{ref_key:"cardRef",ref:n,class:ct(L(Ui)("bg-base-200 flex cursor-pointer flex-col items-start rounded-md",c.active?"bg-primary sm:hover:bg-primary/95":"sm:hover:bg-base-300",a.value?"gap-1 p-1":"gap-2 p-2",l.value)),onContextmenu:Pn(u,["stop","prevent"])},[R("div",sPe,[r.value?.icon?(H(),it(sx,{key:0,class:"shrink-0",icon:r.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):Ge("",!0),c.active?(H(),K("span",{key:1,class:ct(L(Ui)("text-primary-content text-sm",L(rm)&&"truncate")),onMouseenter:f[0]||(f[0]=(...h)=>L(Gs)&&L(Gs)(...h))},q(r.value.name),35)):(H(),K("span",{key:2,class:ct(L(Ui)("text-base-content text-sm",L(rm)&&"truncate")),onMouseenter:f[1]||(f[1]=(...h)=>L(Gs)&&L(Gs)(...h))},q(r.value.name),35))]),R("div",lPe,[R("span",{class:ct(`truncate text-xs tracking-tight ${c.active?"text-primary-content":"text-base-content/60"}`),onMouseenter:f[2]||(f[2]=(...h)=>L(Gs)&&L(Gs)(...h))},q(s.value),35),z(wO,{class:ct([a.value&&"h-4! w-8! rounded-md!","shrink-0",c.active&&"hover:bg-base-300"]),name:r.value.name,loading:i.value,"group-name":c.groupName,onClick:Pn(u,["stop"])},null,8,["class","name","loading","group-name"])])],34))}}),kj=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Nj=kj(uPe,[["__scopeId","data-v-c5b75165"]]),Fj=Ze({__name:"ProxyNodeGrid",setup(e){return(t,n)=>(H(),K("div",{class:"grid gap-2",style:Kn(`grid-template-columns: repeat(auto-fill, minmax(${L(pp)}px, 1fr));`)},[eu(t.$slots,"default")],4))}}),cPe={class:"flex flex-col gap-2"},fPe={key:0,class:"my-2 text-sm font-semibold"},$j=Ze({__name:"ProxiesByProvider",props:{name:{},now:{},renderProxies:{}},setup(e){const t=e,n=ge(()=>{const a={},s=[];for(const l of t.renderProxies){const u=ou.value.find(c=>c.proxies.find(f=>f.name===l))?.name??"";a[u]?a[u].push(l):(u===""?s.unshift(""):s.push(u),a[u]=[l])}return s.map(l=>({providerName:l,proxies:a[l]}))}),r=n.value.reduce((a,{proxies:s})=>{const l=s.indexOf(t.now);return l!==-1?a+l:a+s.length},0),{maxProxies:i}=Lj(t.renderProxies.length,r),o=ge(()=>{let a=0;const s=[];for(const{providerName:l,proxies:u}of n.value)if(a+u.length>i.value){s.push({providerName:l,proxies:u.slice(0,i.value-a)});break}else s.push({providerName:l,proxies:u}),a+=u.length;return s});return(a,s)=>(H(),K("div",cPe,[(H(!0),K(Ve,null,Yt(o.value,({providerName:l,proxies:u},c)=>(H(),K("div",{key:c},[l!==""?(H(),K("p",fPe,q(l),1)):Ge("",!0),z(Fj,null,{default:gn(()=>[(H(!0),K(Ve,null,Yt(u,f=>(H(),it(Nj,{key:f,name:f,"group-name":a.name,active:f===a.now,onClick:Pn(h=>L(sM)(a.name,f),["stop"])},null,8,["name","group-name","active","onClick"]))),128))]),_:2},1024)]))),128))]))}}),xO=Ze({__name:"ProxiesContent",props:{name:{},now:{},renderProxies:{}},setup(e){const t=e,{maxProxies:n}=Lj(t.renderProxies.length,t.renderProxies.indexOf(t.now??"")),r=ge(()=>t.renderProxies.slice(0,n.value));return(i,o)=>(H(),it(Fj,null,{default:gn(()=>[(H(!0),K(Ve,null,Yt(r.value,a=>(H(),it(Nj,{key:a,name:a,"group-name":i.name,active:a===i.now,onClick:Pn(s=>L(sM)(i.name,a),["stop"])},null,8,["name","group-name","active","onClick"]))),128))]),_:1}))}}),dPe={class:"text-base-content/80 text-xs md:text-sm"},Bj=Ze({__name:"ProxyGroupNow",props:{name:{},mobile:{type:Boolean}},setup(e){const t=e,n=ge(()=>$n.value[t.name]),{showTip:r}=uo(),{t:i}=qr(),o=ge(()=>n.value.fixed===n.value.now),a=l=>{o.value&&r(l,i("tipForFixed"),{delay:[500,0]})},s=ge(()=>{const l=Ad(n.value.now);return l===n.value.now?"":l});return(l,u)=>n.value.now?(H(),K(Ve,{key:0},[(H(),it(Po(o.value?L(fH):L(aa)),{class:"h-4 w-4 shrink-0 outline-none",onMouseenter:a},null,32)),z(gu,{name:n.value.now,class:"text-base-content/80 text-xs md:text-sm"},null,8,["name"]),s.value&&L(_I)?(H(),K(Ve,{key:0},[z(L(aa),{class:"h-4 w-4 shrink-0"}),z(gu,{name:s.value,class:"text-base-content/80 text-xs md:text-sm"},null,8,["name"])],64)):Ge("",!0)],64)):n.value.type.toLowerCase()===L($r).LoadBalance?(H(),K(Ve,{key:1},[z(L(Pie),{class:"h-4 w-4 shrink-0"}),R("span",dPe,q(l.$t("loadBalance")),1)],64)):Ge("",!0)}}),hPe=["onMouseenter","onClick"],pPe={key:0,class:"h-2 w-2 rounded-full bg-white"},vPe={key:1,class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl *:h-2"},gPe=Ze({__name:"ProxyPreview",props:{nodes:{},now:{},groupName:{}},setup(e){const t=e,{showTip:n}=uo(),r=Te(null),{width:i}=ov(r),o=ge(()=>i.value>20*t.nodes.length),a=(p,g)=>{const y=document.createElement("div"),m=document.createElement("div");if(m.textContent=g.name,y.append(m),g.latency!==ai){const b=document.createElement("div");b.textContent=`${g.latency}ms`,b.classList.add(vc(g.latency)),y.append(b)}y.classList.add("flex","items-center","gap-2"),n(p,y)},s=ge(()=>im.value===jm.DOTS||im.value===jm.AUTO&&o.value),l=ge(()=>t.nodes.map(p=>({latency:av(p,t.groupName),name:p}))),u=p=>p===ai?"bg-base-content/60":p<sc.value?"bg-low-latency":p<Gl.value?"bg-medium-latency":"bg-high-latency",c=ge(()=>l.value.filter(p=>p.latency<sc.value&&p.latency>ai).length),f=ge(()=>l.value.filter(p=>p.latency>=sc.value&&p.latency<Gl.value).length),h=ge(()=>l.value.filter(p=>p.latency>=Gl.value).length),d=ge(()=>l.value.filter(p=>p.latency===ai).length);return(p,g)=>(H(),K("div",{ref_key:"previewRef",ref:r,class:ct(["flex flex-wrap",[s.value?"gap-1 pt-3":"gap-2 pt-4 pb-1"]])},[s.value?(H(!0),K(Ve,{key:0},Yt(l.value,y=>(H(),K("div",{key:y.name,class:ct(["flex h-4 w-4 items-center justify-center rounded-full transition hover:scale-110",u(y.latency)]),ref_for:!0,ref:"dotsRef",onMouseenter:m=>a(m,y),onClick:Pn(m=>p.$emit("nodeclick",y.name),["stop"])},[p.now===y.name?(H(),K("div",pPe)):Ge("",!0)],42,hPe))),128)):(H(),K("div",vPe,[R("div",{class:ct(u(L(sc)-1)),style:Kn({width:`${c.value*100/p.nodes.length}%`})},null,6),R("div",{class:ct(u(L(Gl)-1)),style:Kn({width:`${f.value*100/p.nodes.length}%`})},null,6),R("div",{class:ct(u(L(Gl)+1)),style:Kn({width:`${h.value*100/p.nodes.length}%`})},null,6),R("div",{class:ct(u(L(ai))),style:Kn({width:`${d.value*100/p.nodes.length}%`})},null,6)]))],2))}}),Uj=kj(gPe,[["__scopeId","data-v-51b6cabc"]]),mPe={class:"relative flex items-center gap-2"},yPe={class:"flex flex-1 items-center gap-1"},_Pe={class:"text-base-content/60 text-xs"},bPe={class:"text-base-content/80 mt-1.5 flex items-center gap-2"},SPe={class:"flex flex-1 items-center gap-1 truncate text-sm"},wPe={class:"min-w-12 shrink-0 text-right text-xs"},xPe=Ze({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=ge(()=>$n.value[t.name]),r=ge(()=>n.value.all??[]),{proxiesCount:i,renderProxies:o}=SO(r,t.name),a=Te(!1),s=async()=>{if(!a.value){a.value=!0;try{await S8(t.name),a.value=!1}catch{a.value=!1}}},l=ge(()=>cs.value.filter(h=>h.chains.includes(t.name)).reduce((h,d)=>h+d.downloadSpeed,0)),u=ge({get:()=>RO(t.name),set:f=>{CS.value[t.name]=f}}),c=()=>{u.value=!u.value};return Gd(),(f,h)=>(H(),it(Oj,{name:n.value.name,onContextmenu:Pn(s,["prevent","stop"])},{title:gn(()=>[R("div",mPe,[R("div",yPe,[z(gu,{name:f.name,"icon-size":L(ob),"icon-margin":L(ab)},null,8,["name","icon-size","icon-margin"]),R("span",_Pe," : "+q(n.value.type)+" ("+q(L(i))+") ",1),L(qm)?(H(),K("button",{key:0,class:"btn btn-circle btn-xs z-10 ml-1",onClick:Pn(c,["stop"])},[u.value?(H(),it(L(OR),{key:1,class:"h-3 w-3"})):(H(),it(L(LR),{key:0,class:"h-3 w-3"}))])):Ge("",!0)]),z(wO,{class:ct(L(Ui)("bg-base-200/50 hover:bg-base-200 z-10")),loading:a.value,name:n.value.now,"group-name":n.value.name,onClick:Pn(s,["stop"])},null,8,["class","loading","name","group-name"])]),R("div",bPe,[R("div",SPe,[z(Bj,{name:f.name},null,8,["name"])]),R("div",wPe,q(L(nr)(l.value))+"/s ",1)])]),preview:gn(()=>[z(Uj,{nodes:L(o),now:n.value.now,groupName:n.value.name,onNodeclick:h[0]||(h[0]=d=>L(sM)(f.name,d))},null,8,["nodes","now","groupName"])]),content:gn(()=>[(H(),it(Po(L(_S)?$j:xO),{name:f.name,now:n.value.now,"render-proxies":L(o)},null,8,["name","now","render-proxies"]))]),_:1},8,["name"]))}}),TPe={key:0,class:"bg-base-300/50 fixed inset-0 z-40 overflow-hidden"},CPe={class:"relative flex h-22 shrink-0 flex-col justify-between p-2"},EPe={class:"flex items-center"},IPe={class:"flex flex-1 items-center gap-1 truncate"},APe=Ze({__name:"ProxyGroupForMobile",props:{name:{}},setup(e){const t=e,n=ge(()=>$n.value[t.name]),r=ge(()=>n.value.all??[]),{proxiesCount:i,renderProxies:o}=SO(r,t.name),a=Te(!1),s=Te(!1),l=Te(!1),u=Te(s.value),c=Te(0),f=Te(),h=Te(),d={width:"100%",maxHeight:"100%",top:0,left:0,right:0,bottom:0,zIndex:1,transform:"translate3d(0, 0, 0) scale(1)"},p=Te({...d}),g=()=>{requestAnimationFrame(()=>{if(!f.value)return;if(!s.value){p.value={...p.value,width:"100%",maxHeight:"100%",transform:"translate3d(0, 0, 0) scale(1)",zIndex:50};return}const C=o.value.length>4,{left:T,top:E,bottom:P}=f.value.getBoundingClientRect(),{innerHeight:I,innerWidth:D}=window,O=I*.15,N=I*.2,M=I*.3,k=T<D/3,V=(E+P)*.5<I*(C?.7:.5),B=k?V?"top left":"bottom left":V?"top right":"bottom right",U=k?"left":"right",$=V?"top":"bottom";let J=0,ae=0;if(V)(E<O||E>M&&C)&&(J=N-E),ae=E+J;else{const ne=I-O,_e=I-M,me=I-N;(P>ne||P<_e&&C)&&(J=me-P),ae=I-P-J}p.value={width:"calc(100vw - 1rem)",maxHeight:`${I-ae-112}px`,transform:`translate3d(0, ${J}px, 0) scale(1)`,transformOrigin:B,zIndex:50,[$]:0,[U]:0}})},y=C=>{C.propertyName==="width"&&(s.value?(c.value=1,u.value=!0):(l.value=!1,Zr(()=>{p.value={...d}})))},m=async()=>{s.value=!s.value,PG.value=s.value,s.value&&(l.value=!0),u.value=!1,c.value=0,g()},b=async()=>{if(!a.value){a.value=!0;try{await S8(t.name),a.value=!1}catch{a.value=!1}}},w=ge({get:()=>RO(t.name),set:C=>{CS.value[t.name]=C}}),S=()=>{w.value=!w.value};return Gd(h),(C,T)=>(H(),K("div",{class:"relative h-22 cursor-pointer",ref_key:"cardWrapperRef",ref:f,onClick:m},[s.value?(H(),K("div",TPe)):Ge("",!0),R("div",{class:ct(["card absolute overflow-hidden transition-[width,transform,max-height] duration-200 ease-out will-change-transform",s.value&&L(iu)<5&&"backdrop-blur-sm!"]),style:Kn(p.value),onContextmenu:Pn(b,["prevent","stop"]),onTransitionend:y,ref_key:"cardRef",ref:h},[R("div",CPe,[R("div",{class:ct(["text-md truncate",n.value.icon&&"pr-10"])},q(n.value.name),3),R("div",{class:ct(["text-base-content/60 truncate text-xs",n.value.icon&&"pr-10"])},q(n.value.type)+" ("+q(L(i))+") ",3),R("div",EPe,[R("div",IPe,[L(qm)?(H(),K("button",{key:0,class:"btn btn-circle btn-xs z-10",onClick:Pn(S,["stop"])},[w.value?(H(),it(L(OR),{key:1,class:"h-3 w-3"})):(H(),it(L(LR),{key:0,class:"h-3 w-3"}))])):Ge("",!0),z(Bj,{name:n.value.name,mobile:!0},null,8,["name"])]),z(wO,{class:ct(L(Ui)("bg-base-200/50 hover:bg-base-200 z-10")),loading:a.value,name:n.value.now,"group-name":n.value.name,onClick:Pn(b,["stop"])},null,8,["class","loading","name","group-name"])]),n.value?.icon?(H(),it(sx,{key:0,icon:n.value.icon,size:40,margin:0,class:"absolute top-2 right-2"},null,8,["icon"])):Ge("",!0)]),l.value?(H(),K("div",{key:0,class:ct(["will-change-opacity max-h-108 overflow-y-auto overscroll-contain p-2 transition-opacity duration-200 ease-out",[L(HR)]]),style:Kn({width:"calc(100vw - 1rem)",opacity:c.value,contain:"layout style paint"})},[(H(),it(Po(L(_S)?$j:xO),{name:C.name,now:n.value.now,"render-proxies":L(o)},null,8,["name","now","render-proxies"]))],6)):Ge("",!0)],38)],512))}}),PPe={class:"flex items-center justify-between gap-2"},RPe={class:"text-xl font-medium"},MPe={class:"text-base-content/60 text-sm font-normal"},DPe={class:"flex gap-2"},OPe={key:0,class:"loading loading-spinner loading-xs"},LPe={class:"text-base-content/60 flex items-end justify-between text-sm max-sm:flex-col max-sm:items-start"},kPe={class:"min-h-10"},NPe={key:0},FPe={key:1},$Pe=Ze({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=ge(()=>ou.value.find(f=>f.name===t.name)),r=ge(()=>n.value.proxies.map(f=>f.name)??[]),{renderProxies:i,proxiesCount:o}=SO(r),a=ge(()=>{const f=n.value.subscriptionInfo;if(f){const{Download:h=0,Upload:d=0,Total:p=0,Expire:g=0}=f;if(h===0&&d===0&&p===0&&g===0)return null;const{t:y}=qr(),m=nr(p,{binary:!0}),b=nr(h+d,{binary:!0}),w=xr.toFinite(((h+d)/p*100).toFixed(2)),S=g===0?`${y("expire")}: ${y("noExpire")}`:`${y("expire")}: ${ui(g*1e3).format("YYYY-MM-DD")}`,C=`${b} / ${m}`,T=p===0?C:`${C} ( ${w}% )`;return{expireStr:S,usageStr:T}}return null}),s=Te(!1),l=Te(!1),u=async()=>{if(!l.value){l.value=!0;try{await wke(t.name),await Fo(),l.value=!1}catch{l.value=!1}}},c=async()=>{if(!s.value){s.value=!0;try{await vY(t.name),await Fo(),s.value=!1}catch{s.value=!1}}};return Gd(),(f,h)=>(H(),it(Oj,{name:n.value.name},{title:gn(()=>[R("div",PPe,[R("div",RPe,[Be(q(n.value.name)+" ",1),R("span",MPe," ("+q(L(o))+") ",1)]),R("div",DPe,[R("button",{class:ct(L(Ui)("btn btn-circle btn-sm z-30")),onClick:Pn(u,["stop"])},[l.value?(H(),K("span",OPe)):(H(),it(L(Hy),{key:1,class:"h-4 w-4"}))],2),n.value.vehicleType!=="Inline"?(H(),K("button",{key:0,class:ct(L(Ui)("btn btn-circle btn-sm z-30",s.value?"animate-spin":"")),onClick:Pn(c,["stop"])},[z(L(nv),{class:"h-4 w-4"})],2)):Ge("",!0)])]),R("div",LPe,[R("div",kPe,[a.value?(H(),K("div",NPe,q(a.value.expireStr),1)):Ge("",!0),a.value?(H(),K("div",FPe,q(a.value.usageStr),1)):Ge("",!0)]),R("div",null,q(f.$t("updated"))+" "+q(L(tx)(n.value.updatedAt)),1)])]),preview:gn(()=>[z(Uj,{nodes:L(i)},null,8,["nodes"])]),content:gn(()=>[z(xO,{name:f.name,"render-proxies":L(i)},null,8,["name","render-proxies"])]),_:1},8,["name"]))}}),BPe={key:0,class:"grid grid-cols-2 gap-1"},UPe={key:1,class:"grid grid-cols-1 gap-1"},VPe=Ze({__name:"ProxiesPage",setup(e){const t=Te(),{width:n}=ov(t),r=Qw("cache/proxies-scroll-status",{[ta.PROVIDER]:0,[ta.PROXIES]:0}),i=()=>{r.value[wo.value]=t.value.scrollTop},o=(f=performance.now())=>{performance.now()-f>300||t.value.scrollHeight>r.value[wo.value]?t.value.scrollTo({top:r.value[wo.value],behavior:"smooth"}):requestAnimationFrame(()=>{o(f)})};mt(wo,()=>Zr(()=>{o()})),wA.value=!1,Er(()=>{setTimeout(()=>{wA.value=!0,Zr(()=>{o(),Fo()})})});const a=ge(()=>n.value<640&&sd.value),s=ge(()=>n.value>720),l=ge(()=>wo.value===ta.PROVIDER?$Pe:a.value&&u.value?APe:xPe),u=ge(()=>bm.value.length<2||!nm.value?!1:s.value||a.value&&wo.value===ta.PROXIES),c=(f,h)=>f.filter((d,p)=>p%2===h);return(f,h)=>(H(),K("div",{class:ct(["max-sm:scrollbar-hidden h-full p-2 sm:pr-1",L(PG)?"overflow-y-hidden":"overflow-y-scroll"]),ref_key:"proxiesRef",ref:t,onScrollPassive:i},[u.value?(H(),K("div",BPe,[(H(),K(Ve,null,Yt([0,1],d=>R("div",{key:d,class:"flex flex-1 flex-col gap-1"},[(H(!0),K(Ve,null,Yt(c(L(bm),d),p=>(H(),it(Po(l.value),{key:p,name:p},null,8,["name"]))),128))])),64))])):(H(),K("div",UPe,[(H(!0),K(Ve,null,Yt(L(bm),d=>(H(),it(Po(l.value),{key:d,name:d},null,8,["name"]))),128))]))],34))}}),HPe={class:"card hover:bg-base-200 gap-2 p-2 text-sm"},zPe={class:"min-h-6 leading-6"},GPe={class:"ml-2"},WPe={key:0,class:"text-main ml-2"},jPe={key:1,class:"text-base-content/80 ml-1 text-xs"},YPe={class:"flex items-center gap-2"},PU=Ze({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,{t:n}=qr(),{showTip:r}=uo(),i=ge(()=>$n.value[t.rule.proxy]),o=ge(()=>av(t.rule.proxy,t.rule.proxy)),a=ge(()=>vc(Number(o.value))),s=ge(()=>t.rule.type==="RuleSet"?as.value.find(h=>h.name===t.rule.payload)?.ruleCount:t.rule.size),l=Te(!1),u=ge(()=>{if(t.rule.type!=="RuleSet")return!1;const h=as.value.find(d=>d.name===t.rule.payload);return h?h.vehicleType!=="Inline":!1}),c=async()=>{l.value||(l.value=!0,await IO(t.rule.payload),Mc(),l.value=!1)},f=h=>{r(h,n("mmdbSizeTip"))};return Gd(),(h,d)=>(H(),K("div",HPe,[R("div",zPe,[R("span",null,q(h.index)+".",1),R("span",GPe,q(h.rule.type),1),h.rule.payload?(H(),K("span",WPe,q(h.rule.payload),1)):Ge("",!0),typeof s.value=="number"&&s.value!==-1?(H(),K("span",jPe,[Be(" ("+q(s.value)+") ",1),s.value===0?(H(),it(L(ss),{key:0,class:"ml-1 h-4 w-4",onMouseenter:f})):Ge("",!0)])):Ge("",!0),u.value?(H(),K("button",{key:2,class:ct(L(Ui)("btn btn-circle btn-ghost btn-xs -mt-1 ml-1",l.value?"animate-spin":"")),onClick:c},[z(L(nv),{class:"h-4 w-4"})],2)):Ge("",!0)]),R("div",YPe,[z(gu,{name:h.rule.proxy,class:"badge badge-sm gap-0"},null,8,["name"]),i.value?.now&&L(wI)?(H(),K(Ve,{key:0},[z(L(aa),{class:"h-4 w-4"}),z(gu,{name:L(Ad)(h.rule.proxy),class:"badge badge-sm gap-0"},null,8,["name"])],64)):Ge("",!0),o.value!==L(ai)&&L(xI)?(H(),K("span",{key:1,class:ct([a.value,"ml-1 text-xs"])},q(o.value),3)):Ge("",!0)])]))}}),XPe={class:"card hover:bg-base-200 w-full gap-2 p-2 text-sm"},KPe={class:"flex h-6 items-center gap-2 leading-6"},ZPe={class:"text-main"},qPe={class:"text-base-content/80 text-xs"},JPe={class:"text-base-content/80 flex h-5 items-center gap-2 text-xs"},QPe={key:0,class:"badge badge-sm min-w-16"},eRe={key:1,class:"badge badge-sm min-w-12"},tRe=Ze({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=Te(!1),n=e,r=async()=>{t.value||(t.value=!0,await IO(n.ruleProvider.name),Mc(),t.value=!1)};return Gd(),(i,o)=>(H(),K("div",XPe,[R("div",KPe,[R("span",null,q(i.index)+".",1),R("span",ZPe,q(i.ruleProvider.name),1),R("span",qPe," ("+q(i.ruleProvider.ruleCount)+") ",1),i.ruleProvider.vehicleType!=="Inline"?(H(),K("button",{key:0,class:ct(L(Ui)("btn btn-circle btn-xs btn-ghost",t.value?"animate-spin":"")),onClick:r},[z(L(nv),{class:"h-4 w-4"})],2)):Ge("",!0)]),R("div",JPe,[i.ruleProvider.behavior?(H(),K("span",QPe,q(i.ruleProvider.behavior),1)):Ge("",!0),i.ruleProvider.vehicleType?(H(),K("span",eRe,q(i.ruleProvider.vehicleType),1)):Ge("",!0),R("span",null,q(i.$t("updated"))+" "+q(L(tx)(i.ruleProvider.updatedAt)),1)])]))}}),nRe=Ze({__name:"RulesPage",setup(e){return Mc(),(t,n)=>(H(),K("div",{class:ct(["flex flex-col gap-1 overflow-x-hidden",L(X1).length<200&&"p-2"])},[L(pd)===L(_c).PROVIDER?(H(!0),K(Ve,{key:0},Yt(L(Jge),(r,i)=>(H(),it(tRe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128)):L(X1).length<200?(H(!0),K(Ve,{key:1},Yt(L(X1),r=>(H(),it(PU,{key:r.payload,rule:r,index:L(Wp).indexOf(r)+1},null,8,["rule","index"]))),128)):(H(),it(rM,{key:2,data:L(X1),size:64},{default:gn(({item:r})=>[(H(),it(PU,{key:r.payload,rule:r,index:L(Wp).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))],2))}}),rRe={class:"join w-96 max-sm:w-full"},iRe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},oRe={key:0,class:"flex gap-1"},aRe={key:0,class:"mr-3 flex items-center gap-1"},sRe={class:"flex items-center gap-1"},lRe=Ze({__name:"DnsQuery",setup(e){const t=Hi({name:"www.google.com",type:"A"}),n=Te(null),r=Te([]),i=async()=>{const{data:o}=await Oke(t);r.value=o.Answer,r.value?.length?n.value=await lM(r.value[0].data):n.value=null};return(o,a)=>(H(),K(Ve,null,[R("div",rRe,[z(Tn,{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=s=>t.name=s),placeholder:"Domain Name",clearable:!0},null,8,["modelValue"]),tt(R("select",{"onUpdate:modelValue":a[1]||(a[1]=s=>t.type=s),class:"join-item select select-sm"},[...a[2]||(a[2]=[R("option",{value:"A"},"A",-1),R("option",{value:"AAAA"},"AAAA",-1),R("option",{value:"MX"},"MX",-1)])],512),[[zn,t.type]]),R("button",{class:"btn join-item btn-sm",onClick:i},q(o.$t("DNSQuery")),1)]),R("div",iRe,[(H(!0),K(Ve,null,Yt(r.value,s=>(H(),K("div",{class:"flex gap-1",key:s.data},[R("div",null,q(s.name),1),a[3]||(a[3]=Be(" : ",-1)),R("div",null,q(s.data),1)]))),128))]),n.value?(H(),K("div",oRe,[n.value?.country?(H(),K("div",aRe,[z(L(kR),{class:"h-4 w-4 shrink-0"}),n.value?.city&&n.value?.city!==n.value?.country?(H(),K(Ve,{key:0},[Be(q(n.value?.city)+", ",1)],64)):n.value?.region&&n.value?.region!==n.value?.country?(H(),K(Ve,{key:1},[Be(q(n.value?.region)+", ",1)],64)):Ge("",!0),Be(" "+q(n.value?.country),1)])):Ge("",!0),R("div",sRe,[z(L(vH),{class:"h-4 w-4 shrink-0"}),Be(" "+q(n.value?.organization),1)])])):Ge("",!0)],64))}}),uRe={class:"flex flex-col gap-2 p-2"},cRe=["disabled"],fRe={key:0,class:"loading loading-spinner loading-md"},dRe=["disabled"],hRe={key:0,class:"loading loading-spinner loading-md"},pRe=["disabled"],vRe={key:0,class:"loading loading-spinner loading-md"},gRe=Ze({__name:"UpgradeCoreModal",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=()=>{Px(),Mc(),Fo()},n=Te("auto"),r=Hd(e,"modelValue"),i=Te(!1),o=async a=>{if(!i.value){n.value=a,i.value=!0;try{await mY(a),t(),r.value=!1,IY(),i.value=!1}catch(s){console.error(s),i.value=!1}}};return(a,s)=>(H(),it(dl,{modelValue:r.value,"onUpdate:modelValue":s[3]||(s[3]=l=>r.value=l),title:a.$t("upgradeCore")},{default:gn(()=>[R("div",uRe,[R("button",{class:"btn btn-primary",disabled:i.value&&n.value!=="auto",onClick:s[0]||(s[0]=l=>o("auto"))},[i.value&&n.value==="auto"?(H(),K("span",fRe)):Ge("",!0),Be(" "+q(a.$t("upgradeCore")),1)],8,cRe),R("button",{class:"btn",disabled:i.value&&n.value!=="release",onClick:s[1]||(s[1]=l=>o("release"))},[i.value&&n.value==="release"?(H(),K("span",hRe)):Ge("",!0),Be(" "+q(a.$t("upgradeToRelease")),1)],8,dRe),R("button",{class:"btn",disabled:i.value&&n.value!=="alpha",onClick:s[2]||(s[2]=l=>o("alpha"))},[i.value&&n.value==="alpha"?(H(),K("span",vRe)):Ge("",!0),Be(" "+q(a.$t("upgradeToAlpha")),1)],8,pRe)])]),_:1},8,["modelValue","title"]))}}),mRe={class:"card"},yRe={class:"card-title px-4 pt-4"},_Re={class:"indicator"},bRe={key:0,class:"indicator-item top-1 -right-1 flex"},SRe=["href"],wRe={class:"card-body gap-4"},xRe={class:"grid max-w-3xl grid-cols-2 gap-2 lg:grid-cols-3"},TRe={class:"shrink-0"},CRe=["onUpdate:modelValue","onChange"],ERe={class:"grid max-w-3xl grid-cols-2 gap-2 lg:grid-cols-4"},IRe={key:0,class:"flex items-center gap-2"},ARe={class:"flex items-center gap-2"},PRe={class:"flex items-center gap-2"},RRe={key:0,class:"flex items-center gap-2"},MRe={key:0,class:"loading loading-spinner loading-md"},DRe={key:0,class:"loading loading-spinner loading-md"},ORe={key:0,class:"loading loading-spinner loading-md"},LRe=Ze({__name:"BackendSettings",setup(e){const t=[{label:"mixedPort",key:"mixed-port"},{label:"httpPort",key:"port"},{label:"socksPort",key:"socks-port"},{label:"redirPort",key:"redir-port"},{label:"tproxyPort",key:"tproxy-port"}],n=()=>{Px(),Mc(),Fo()},r=Te(!1),i=Te(!1),o=async()=>{if(!i.value){i.value=!0;try{await Dke(),setTimeout(()=>{n()},500),i.value=!1,pr({content:"restartCoreSuccess",type:"alert-success"})}catch{i.value=!1}}},a=Te(!1),s=async()=>{if(!a.value){a.value=!0;try{await Rke(),n(),a.value=!1,pr({content:"reloadConfigsSuccess",type:"alert-success"})}catch{a.value=!1}}},l=Te(!1),u=async()=>{if(!l.value){l.value=!0;try{await Mke(),n(),l.value=!1,pr({content:"updateGeoSuccess",type:"alert-success"})}catch{l.value=!1}}},c=()=>{$h.value||(Eg.value=!1,Ew.value=!1)},f=async()=>{await Db({tun:{enable:ii.value?.tun.enable}})},h=async()=>{await Db({"allow-lan":ii.value?.["allow-lan"]})},d=async()=>{await Pke(),pr({content:"flushDNSCacheSuccess",type:"alert-success"})},p=async()=>{await Ake(),pr({content:"flushFakeIPSuccess",type:"alert-success"})};return(g,y)=>(H(),K("div",mRe,[R("div",yRe,[R("div",_Re,[L(Ew)?(H(),K("span",bRe,[...y[7]||(y[7]=[R("span",{class:"bg-secondary absolute h-2 w-2 animate-ping rounded-full"},null,-1),R("span",{class:"bg-secondary h-2 w-2 rounded-full"},null,-1)])])):Ge("",!0),R("a",{class:"flex cursor-pointer items-center gap-2",href:L(oa)?"https://github.com/sagernet/sing-box":"https://github.com/metacubex/mihomo",target:"_blank"},[Be(q(g.$t("backend"))+" ",1),z(eD,{class:"text-sm font-normal"})],8,SRe)])]),R("div",wRe,[z(MG),!L(oa)&&L(ii)?(H(),K(Ve,{key:0},[y[8]||(y[8]=R("div",{class:"divider"},null,-1)),R("div",xRe,[(H(),K(Ve,null,Yt(t,m=>R("div",{class:"flex items-center gap-2",key:m.key},[R("span",TRe,q(g.$t(m.label)),1),tt(R("input",{class:"input input-sm w-20 sm:w-24",type:"number","onUpdate:modelValue":b=>L(ii)[m.key]=b,onChange:b=>L(Db)({[m.key]:Number(L(ii)[m.key])})},null,40,CRe),[[Yr,L(ii)[m.key]]])])),64))]),R("div",ERe,[L(ii)?.tun?(H(),K("div",IRe,[Be(q(g.$t("tunMode"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[0]||(y[0]=m=>L(ii).tun.enable=m),onChange:f},null,544),[[en,L(ii).tun.enable]])])):Ge("",!0),R("div",ARe,[Be(q(g.$t("allowLan"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[1]||(y[1]=m=>L(ii)["allow-lan"]=m),onChange:h},null,544),[[en,L(ii)["allow-lan"]]])]),L(Cr)?.disableUpgradeCore?Ge("",!0):(H(),K(Ve,{key:1},[R("div",PRe,[Be(q(g.$t("checkUpgrade"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[2]||(y[2]=m=>rt($h)?$h.value=m:null),onChange:c},null,544),[[en,L($h)]])]),L($h)?(H(),K("div",RRe,[Be(q(g.$t("autoUpgrade"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":y[3]||(y[3]=m=>rt(Eg)?Eg.value=m:null)},null,512),[[en,L(Eg)]])])):Ge("",!0)],64))])],64)):Ge("",!0),R("div",{class:ct(["grid max-w-3xl grid-cols-2 gap-2",L(WI)?"md:grid-cols-4 xl:max-w-6xl xl:grid-cols-7":"md:grid-cols-3 xl:max-w-6xl xl:grid-cols-6"])},[!L(oa)||L(K_)?(H(),K(Ve,{key:0},[L(Cr)?.disableUpgradeCore?Ge("",!0):(H(),K("button",{key:0,class:"btn btn-primary btn-sm",onClick:y[4]||(y[4]=m=>r.value=!0)},q(g.$t("upgradeCore")),1)),R("button",{class:"btn btn-sm",onClick:o},[i.value?(H(),K("span",MRe)):Ge("",!0),Be(" "+q(g.$t("restartCore")),1)]),R("button",{class:"btn btn-sm",onClick:s},[a.value?(H(),K("span",DRe)):Ge("",!0),Be(" "+q(g.$t("reloadConfigs")),1)]),R("button",{class:"btn btn-sm",onClick:u},[l.value?(H(),K("span",ORe)):Ge("",!0),Be(" "+q(g.$t("updateGeoDatabase")),1)])],64)):Ge("",!0),R("button",{class:"btn btn-sm",onClick:d},q(g.$t("flushDNSCache")),1),R("button",{class:"btn btn-sm",onClick:p},q(g.$t("flushFakeIP")),1),L(WI)?(H(),K("button",{key:1,class:"btn btn-sm",onClick:y[5]||(y[5]=(...m)=>L(ZU)&&L(ZU)(...m))},q(g.$t("flushSmartWeights")),1)):Ge("",!0)],2),y[9]||(y[9]=R("div",{class:"divider"},null,-1)),z(lRe)]),z(gRe,{modelValue:r.value,"onUpdate:modelValue":y[6]||(y[6]=m=>r.value=m)},null,8,["modelValue"])]))}}),RU=Ze({__name:"SourceIPInput",props:{modelValue:{default:{key:"",label:""}},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=Hd(e,"modelValue"),n=ge(()=>xr.uniq(cd.value.map(l=>l.metadata.sourceIP)).filter(Boolean).filter(l=>!ri.value.find(u=>u.key===l)).sort()),r=(l,u)=>u.scope?.some(c=>c===l)??!1,i=(l,u,c)=>{c?(u.scope||(u.scope=[]),u.scope?.push(l)):(u.scope=u.scope?.filter(f=>f!==l),u.scope?.length||delete u.scope)},o=ge(()=>t.value.scope?.length&&t.value.scope.length<Or.value.length),{showTip:a}=uo(),s=l=>{const u=document.createElement("div");u.classList.add("flex","flex-col","gap-2","py-1");for(const c of Or.value){const f=document.createElement("label"),h=document.createElement("input"),d=document.createElement("span");f.classList.add("flex","items-center","gap-2","cursor-pointer"),h.type="checkbox",h.classList.add("checkbox","checkbox-sm"),h.checked=r(c.uuid,t.value),h.addEventListener("change",p=>{const g=p.target;i(c.uuid,t.value,g.checked)}),d.textContent=Ed(c),f.append(h,d),u.append(f)}a(l,u,{theme:"base",placement:"bottom-start",trigger:"click",appendTo:document.body,interactive:!0,arrow:!1})};return(l,u)=>(H(),K("div",{class:ct(["relative flex w-full items-center gap-2",t.value.scope?.length?"pt-4":""])},[eu(l.$slots,"prefix"),R("span",{class:"absolute top-0 left-6 truncate text-xs",onMouseenter:u[0]||(u[0]=(...c)=>L(Gs)&&L(Gs)(...c))},q(L(Or).filter(c=>t.value.scope?.includes(c.uuid)).map(L(Ed)).join(", ")),33),z(Tn,{class:"w-12 max-w-64 flex-1 sm:w-36",menus:n.value,modelValue:t.value.key,"onUpdate:modelValue":u[1]||(u[1]=c=>t.value.key=c),placeholder:"IP | eui64 | /Regex"},null,8,["menus","modelValue"]),L(Or).length>1?(H(),K("div",{key:0,class:"rounded-field bg-base-200 flex h-8 w-8 cursor-pointer items-center justify-center",onClick:s},[o.value?(H(),it(L(fH),{key:0,class:"h-4 w-4"})):(H(),it(L(Lie),{key:1,class:"h-4 w-4"}))])):Ge("",!0),z(L(aa),{class:"h-4 w-4 shrink-0"}),z(Tn,{class:"w-24 sm:w-40",modelValue:t.value.label,"onUpdate:modelValue":u[2]||(u[2]=c=>t.value.label=c),placeholder:l.$t("label")},null,8,["modelValue","placeholder"]),eu(l.$slots,"default")],2))}}),kRe={class:"flex items-center gap-2"},NRe={class:"collapse-content p-0"},FRe={class:"flex flex-col gap-2"},$Re=["onClick"],BRe=Ze({__name:"SourceIPLabels",setup(e){const t=Qw("cache/sourceip-label-dialog-visible",!1),n=Te({key:"",label:""}),r=()=>{!n.value.key||!n.value.label||(t.value=!0,ri.value.push({...n.value,id:Xy()}),n.value={key:"",label:""})},i=a=>{ri.value.splice(ri.value.findIndex(s=>s.id===a),1)},o=a=>{const s=ri.value.findIndex(l=>l.id===a.id);ri.value[s]={...ri.value[s],...a}};return(a,s)=>(H(),K(Ve,null,[R("div",kRe,[Be(q(a.$t("sourceIPLabels"))+" ",1),L(ri).length?(H(),K(Ve,{key:0},[Be(" ("+q(L(ri).length)+") ",1)],64)):Ge("",!0),L(ri).length?(H(),K("button",{key:1,class:"btn btn-sm btn-circle",onClick:s[0]||(s[0]=l=>t.value=!L(t))},[L(t)?(H(),it(L(Kw),{key:0,class:"h-4 w-4"})):(H(),it(L(Xw),{key:1,class:"h-4 w-4"}))])):Ge("",!0)]),R("div",{class:ct(["transparent-collapse collapse rounded-none shadow-none",L(t)?"collapse-open":""])},[R("div",NRe,[R("div",FRe,[L(t)?(H(),it(L(zp),{key:0,class:"flex flex-1 flex-col gap-2",modelValue:L(ri),"onUpdate:modelValue":s[1]||(s[1]=l=>rt(ri)?ri.value=l:null),group:"list",animation:150,handle:".drag-handle","item-key":"uuid",onStart:s[2]||(s[2]=l=>WP.value=!0),onEnd:s[3]||(s[3]=l=>WP.value=!1)},{item:gn(({element:l})=>[z(RU,{"model-value":l,"onUpdate:modelValue":o},{prefix:gn(()=>[z(L(cH),{class:"drag-handle h-4 w-4 shrink-0 cursor-grab"})]),default:gn(()=>[R("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:()=>i(l.id)},[z(L(zy),{class:"h-4 w-4"})],8,$Re)]),_:2},1032,["model-value"])]),_:1},8,["modelValue"])):Ge("",!0)])])],2),z(RU,{modelValue:n.value,"onUpdate:modelValue":s[4]||(s[4]=l=>n.value=l),onKeydown:Ic(r,["enter"])},{prefix:gn(()=>[z(L($ie),{class:"h-4 w-4 shrink-0"})]),default:gn(()=>[R("button",{class:"btn btn-circle btn-sm",onClick:r},[z(L(rv),{class:"h-4 w-4"})])]),_:1},8,["modelValue"])],64))}}),URe={class:"card"},VRe={class:"card-title px-4 pt-4"},HRe={class:"card-body"},zRe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},GRe={class:"flex items-center gap-2"},WRe={class:"whitespace-nowrap"},jRe={value:!1},YRe={value:!0},XRe={class:"flex items-center gap-2"},KRe=["value"],ZRe={key:0,class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},qRe={class:"flex items-center gap-2"},JRe=["value"],QRe={class:"flex items-center gap-2"},eMe=["value"],tMe=Ze({__name:"ConnectionsSettings",setup(e){return(t,n)=>(H(),K("div",URe,[R("div",VRe,q(t.$t("connections")),1),R("div",HRe,[R("div",zRe,[R("div",GRe,[R("span",WRe,q(t.$t("connectionStyle")),1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[0]||(n[0]=r=>rt(ls)?ls.value=r:null)},[R("option",jRe,q(t.$t("table")),1),R("option",YRe,q(t.$t("card")),1)],512),[[zn,L(ls)]])]),R("div",XRe,[Be(q(t.$t("proxyChainDirection"))+" ",1),tt(R("select",{class:"select select-sm w-24","onUpdate:modelValue":n[1]||(n[1]=r=>rt(ud)?ud.value=r:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(Cd)),r=>(H(),K("option",{key:r,value:r},q(t.$t(r)),9,KRe))),128))],512),[[zn,L(ud)]])])]),L(ls)?Ge("",!0):(H(),K("div",ZRe,[R("div",qRe,[R("div",null,q(t.$t("tableWidthMode")),1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[2]||(n[2]=r=>rt(lb)?lb.value=r:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(qw)),r=>(H(),K("option",{key:r,value:r},q(t.$t(r)),9,JRe))),128))],512),[[zn,L(lb)]])]),R("div",QRe,[R("div",null,q(t.$t("tableSize")),1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[3]||(n[3]=r=>rt(sb)?sb.value=r:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(Ym)),r=>(H(),K("option",{key:r,value:r},q(t.$t(r)),9,eMe))),128))],512),[[zn,L(sb)]])])])),n[4]||(n[4]=R("div",{class:"divider"},null,-1)),z(BRe)])]))}}),nMe={class:"card"},rMe={class:"card-title px-4 pt-4"},iMe={class:"card-body gap-4"},oMe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},aMe={class:"flex items-center gap-2"},sMe={key:0,class:"flex items-center gap-2"},lMe={class:"flex items-center gap-2"},uMe=["value"],cMe={class:"flex items-center gap-2 md:hidden"},fMe={class:"flex items-center gap-2 md:hidden"},dMe={key:1,class:"flex items-center gap-2 md:hidden"},hMe={class:"flex items-center gap-2 md:hidden"},pMe={key:2,class:"flex items-center gap-2"},vMe=Ze({__name:"GeneralSettings",setup(e){const{showTip:t}=uo();return(n,r)=>(H(),K("div",nMe,[R("div",rMe,q(n.$t("general")),1),R("div",iMe,[R("div",oMe,[R("div",aMe,[Be(q(n.$t("autoDisconnectIdleUDP"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":r[0]||(r[0]=i=>rt(Ag)?Ag.value=i:null),class:"toggle"},null,512),[[en,L(Ag)]]),z(L(ss),{class:"h-4 w-4 cursor-pointer",onMouseenter:r[1]||(r[1]=i=>L(t)(i,n.$t("autoDisconnectIdleUDPTip")))})]),L(Ag)?(H(),K("div",sMe,[Be(q(n.$t("autoDisconnectIdleUDPTime"))+" ",1),tt(R("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":r[2]||(r[2]=i=>rt(q_)?q_.value=i:null)},null,512),[[Yr,L(q_)]]),r[12]||(r[12]=Be(" mins ",-1))])):Ge("",!0),R("div",lMe,[Be(q(n.$t("IPInfoAPI"))+" ",1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":r[3]||(r[3]=i=>rt(dp)?dp.value=i:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(sp)),i=>(H(),K("option",{key:i,value:i},q(i),9,uMe))),128))],512),[[zn,L(dp)]]),z(L(ss),{class:"h-4 w-4 cursor-pointer",onMouseenter:r[4]||(r[4]=i=>L(t)(i,n.$t("IPInfoAPITip")))})]),R("div",cMe,[Be(q(n.$t("scrollAnimationEffect"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":r[5]||(r[5]=i=>rt(Z_)?Z_.value=i:null),class:"toggle"},null,512),[[en,L(Z_)]])]),R("div",fMe,[Be(q(n.$t("swipeInPages"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":r[6]||(r[6]=i=>rt(Ig)?Ig.value=i:null),class:"toggle"},null,512),[[en,L(Ig)]])]),L(Ig)?(H(),K("div",dMe,[Be(q(n.$t("swipeInTabs"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":r[7]||(r[7]=i=>rt(X_)?X_.value=i:null),class:"toggle"},null,512),[[en,L(X_)]])])):Ge("",!0),R("div",hMe,[Be(q(n.$t("disablePullToRefresh"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":r[8]||(r[8]=i=>rt(tm)?tm.value=i:null),class:"toggle"},null,512),[[en,L(tm)]]),z(L(ss),{class:"h-4 w-4 cursor-pointer",onMouseenter:r[9]||(r[9]=i=>L(t)(i,n.$t("disablePullToRefreshTip")))})]),L(oa)?(H(),K("div",pMe,[Be(q(n.$t("displayAllFeatures"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":r[10]||(r[10]=i=>rt(K_)?K_.value=i:null),class:"toggle"},null,512),[[en,L(K_)]]),z(L(ss),{class:"h-4 w-4 cursor-pointer",onMouseenter:r[11]||(r[11]=i=>L(t)(i,n.$t("displayAllFeaturesTip")))})])):Ge("",!0)])])]))}}),gMe={class:"card"},mMe={class:"card-title px-4 pt-4"},yMe=Ze({__name:"OverviewCard",setup(e){const t=Te(!1);return Er(()=>{requestAnimationFrame(()=>{t.value=!0})}),(n,r)=>(H(),K("div",gMe,[R("div",mMe,q(n.$t("overview")),1),R("div",{class:ct(["card-body grid grid-cols-1 gap-2",L(Hs)?["md:grid-cols-2",L(ac)?"lg:grid-cols-3":"xl:grid-cols-4"]:["lg:grid-cols-2",L(ac)?"xl:grid-cols-3":"2xl:grid-cols-4"]])},[z(tD,{type:"settings"}),L(ac)?(H(),K(Ve,{key:0},[z(Rj),z(Pj)],64)):Ge("",!0),z(_O),z(yO),z(mO)],2)]))}}),_Me={class:"card"},bMe={class:"card-title px-4 pt-4"},SMe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},wMe={class:"flex items-center gap-2"},xMe={class:"flex items-center gap-2"},TMe={class:"flex items-center gap-2"},CMe={class:"flex items-center gap-2"},EMe={key:1,class:"flex items-center gap-2"},IMe={class:"flex items-center gap-2 max-md:hidden"},AMe={class:"flex items-center gap-2 max-md:hidden"},PMe=["value"],RMe=Ze({__name:"OverviewSettings",setup(e){return(t,n)=>(H(),K("div",_Me,[R("div",bMe,q(t.$t("overview")),1),R("div",SMe,[R("div",wMe,[Be(q(t.$t("splitOverviewPage"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>rt(jh)?jh.value=r:null)},null,512),[[en,L(jh)]])]),R("div",xMe,[Be(q(t.$t("showIPAndConnectionInfo"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>rt(ac)?ac.value=r:null)},null,512),[[en,L(ac)]])]),L(ac)?(H(),K(Ve,{key:0},[R("div",TMe,[Be(q(t.$t("autoIPCheckWhenStart"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=r=>rt(J_)?J_.value=r:null)},null,512),[[en,L(J_)]])]),R("div",CMe,[Be(q(t.$t("autoConnectionCheckWhenStart"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=r=>rt(Q_)?Q_.value=r:null)},null,512),[[en,L(Q_)]])])],64)):Ge("",!0),L(jh)?(H(),K("div",EMe,[Be(q(t.$t("displayProxiesRelationship"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=r=>rt(nb)?nb.value=r:null)},null,512),[[en,L(nb)]])])):Ge("",!0),R("div",IMe,[Be(q(t.$t("showStatisticsWhenSidebarCollapsed"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[5]||(n[5]=r=>rt(eb)?eb.value=r:null)},null,512),[[en,L(eb)]])]),R("div",AMe,[Be(q(t.$t("numberOfChartsInSidebar"))+" ",1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":n[6]||(n[6]=r=>rt(tb)?tb.value=r:null)},[(H(),K(Ve,null,Yt([1,2,3],r=>R("option",{key:r,value:r},q(r),9,PMe)),64))],512),[[zn,L(tb)]])])])]))}}),MMe={class:"mb-2 flex items-center gap-2"},DMe={class:"collapse-content p-0"},OMe={class:"grid grid-cols-1 gap-2"},LMe=["onClick"],kMe={class:"flex items-center gap-2"},NMe=Ze({__name:"GroupTestUrlsSettings",setup(e){const{showTip:t}=uo(),{t:n}=qr(),r=Qw("cache/group-test-urls-dialog-visible",!1),i=Hi({name:"",url:""}),o=l=>t(l,n("groupTestUrlsTip")),a=()=>{!i.name||!i.url||(r.value=!0,Ll.value.push({...i,uuid:Xy()}),i.name="",i.url="")},s=l=>{Ll.value=Ll.value.filter(u=>u.uuid!==l)};return(l,u)=>(H(),K(Ve,null,[R("div",MMe,[Be(q(l.$t("groupTestUrls"))+" ",1),L(Ll).length?(H(),K(Ve,{key:0},[Be(" ("+q(L(Ll).length)+") ",1)],64)):Ge("",!0),L(Ll).length?(H(),K("button",{key:1,class:"btn btn-sm btn-circle",onClick:u[0]||(u[0]=c=>r.value=!L(r))},[L(r)?(H(),it(L(Kw),{key:0,class:"h-4 w-4"})):(H(),it(L(Xw),{key:1,class:"h-4 w-4"}))])):Ge("",!0),z(L(ss),{class:"h-4 w-4",onMouseenter:o})]),R("div",{class:ct(["transparent-collapse collapse rounded-none shadow-none",L(r)?"collapse-open":""])},[R("div",DMe,[R("div",OMe,[L(r)?(H(!0),K(Ve,{key:0},Yt(L(Ll),c=>(H(),K("div",{key:c.uuid,class:"flex items-center gap-2"},[z(Tn,{class:"w-32",modelValue:c.name,"onUpdate:modelValue":f=>c.name=f,clearable:!0,placeholder:l.$t("groupName")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),z(L(aa),{class:"h-4 w-4 shrink-0"}),z(Tn,{class:"max-w-96 flex-1",modelValue:c.url,"onUpdate:modelValue":f=>c.url=f,clearable:!0,placeholder:l.$t("speedtestUrl")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),R("button",{class:"btn btn-sm btn-circle",onClick:f=>s(c.uuid)},[z(L(zy),{class:"h-4 w-4 shrink-0"})],8,LMe)]))),128)):Ge("",!0)])])],2),R("div",kMe,[z(Tn,{class:"w-32",modelValue:i.name,"onUpdate:modelValue":u[1]||(u[1]=c=>i.name=c),placeholder:l.$t("groupName"),menus:L(Ac).filter(c=>!L(Ll).some(f=>f.name===c)),onKeydown:Ic(a,["enter"])},null,8,["modelValue","placeholder","menus"]),z(L(aa),{class:"h-4 w-4 shrink-0"}),z(Tn,{class:"max-w-96 flex-1",modelValue:i.url,"onUpdate:modelValue":u[2]||(u[2]=c=>i.url=c),clearable:!0,placeholder:l.$t("speedtestUrl"),onKeydown:Ic(a,["enter"])},null,8,["modelValue","placeholder"]),R("button",{class:"btn btn-sm btn-circle",onClick:a},[z(L(rv),{class:"h-4 w-4 shrink-0"})])])],64))}}),FMe={class:"flex items-center gap-2"},$Me={class:"collapse-content p-0"},BMe={class:"grid grid-cols-1 gap-2 md:grid-cols-2"},UMe=["onClick"],VMe={class:"flex items-center gap-2"},HMe=Ze({__name:"IconSettings",setup(e){const t=Qw("cache/icon-dialog-visible",!1),n=Hi({name:"",icon:""}),r=()=>{!n.name||!n.icon||(t.value=!0,Ol.value.push({...n,uuid:Xy()}),n.name="",n.icon="")},i=o=>{const a=Ol.value.findIndex(s=>s.uuid===o);Ol.value.splice(a,1)};return(o,a)=>(H(),K(Ve,null,[R("div",FMe,[Be(q(o.$t("customIcon"))+" ",1),L(Ol).length?(H(),K(Ve,{key:0},[Be(" ("+q(L(Ol).length)+") ",1)],64)):Ge("",!0),L(Ol).length?(H(),K("button",{key:1,class:"btn btn-sm btn-circle",onClick:a[0]||(a[0]=s=>t.value=!L(t))},[L(t)?(H(),it(L(Kw),{key:0,class:"h-4 w-4"})):(H(),it(L(Xw),{key:1,class:"h-4 w-4"}))])):Ge("",!0)]),R("div",{class:ct(["transparent-collapse collapse rounded-none shadow-none",L(t)?"collapse-open":""])},[R("div",$Me,[R("div",BMe,[L(t)?(H(!0),K(Ve,{key:0},Yt(L(Ol),s=>(H(),K("div",{key:s.uuid,class:"flex items-center gap-2"},[z(Tn,{class:"w-32",modelValue:s.name,"onUpdate:modelValue":l=>s.name=l,placeholder:o.$t("groupName")},null,8,["modelValue","onUpdate:modelValue","placeholder"]),z(L(aa),{class:"h-4 w-4 shrink-0"}),z(Tn,{modelValue:s.icon,"onUpdate:modelValue":l=>s.icon=l,placeholder:"Icon URL"},null,8,["modelValue","onUpdate:modelValue"]),R("button",{class:"btn btn-sm btn-circle",onClick:l=>i(s.uuid)},[z(L(zy),{class:"h-4 w-4 shrink-0"})],8,UMe)]))),128)):Ge("",!0)])])],2),R("div",VMe,[z(Tn,{class:"w-32",modelValue:n.name,"onUpdate:modelValue":a[1]||(a[1]=s=>n.name=s),placeholder:"Name",menus:L(Ac).filter(s=>!L(Ol).some(l=>l.name===s)),onKeydown:Ic(r,["enter"])},null,8,["modelValue","menus"]),z(L(aa),{class:"h-4 w-4 shrink-0"}),z(Tn,{modelValue:n.icon,"onUpdate:modelValue":a[2]||(a[2]=s=>n.icon=s),placeholder:"Icon URL",onKeydown:Ic(r,["enter"])},null,8,["modelValue"]),R("button",{class:"btn btn-sm btn-circle",onClick:r},[z(L(rv),{class:"h-4 w-4 shrink-0"})])])],64))}}),zMe={class:"card"},GMe={class:"card-title px-4 pt-4"},WMe={class:"card-body"},jMe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},YMe={class:"flex w-full items-center gap-2"},XMe={class:"flex w-full items-center gap-2"},KMe={class:"flex items-center gap-2"},ZMe={class:"flex items-center gap-2"},qMe={class:"flex items-center gap-2"},JMe={class:"flex w-full items-center gap-2"},QMe={key:0,class:"col-span-full"},eDe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},tDe={class:"flex items-center gap-2"},nDe={class:"flex items-center gap-2"},rDe=["value"],iDe={class:"flex items-center gap-2"},oDe=["value"],aDe={class:"flex items-center gap-2"},sDe=["value"],lDe={class:"flex items-center gap-2"},uDe={key:0,class:"flex items-center gap-2"},cDe=["value"],fDe={class:"flex items-center gap-2"},dDe={class:"flex items-center gap-2"},hDe={class:"flex items-center gap-2"},pDe=Ze({__name:"ProxiesSettings",setup(e){const{showTip:t}=uo(),{t:n}=qr(),r=o=>t(o,n("independentLatencyTestTip")),i=()=>{pp.value=VR(lc.value)};return(o,a)=>(H(),K("div",zMe,[R("div",GMe,q(o.$t("proxies")),1),R("div",WMe,[R("div",jMe,[R("div",YMe,[R("span",null,q(o.$t("speedtestUrl")),1),z(Tn,{class:"w-36 flex-1 sm:max-w-80",modelValue:L(rb),"onUpdate:modelValue":a[0]||(a[0]=s=>rt(rb)?rb.value=s:null),clearable:!0},null,8,["modelValue"])]),R("div",XMe,[R("span",null,q(o.$t("speedtestTimeout")),1),tt(R("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":a[1]||(a[1]=s=>rt(hp)?hp.value=s:null)},null,512),[[Yr,L(hp)]]),a[15]||(a[15]=Be(" ms ",-1))]),R("div",KMe,[R("span",null,q(o.$t("lowLatencyDesc")),1),tt(R("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":a[2]||(a[2]=s=>rt(sc)?sc.value=s:null)},null,512),[[Yr,L(sc)]]),a[16]||(a[16]=Be(" ms ",-1))]),R("div",ZMe,[R("span",null,q(o.$t("mediumLatencyDesc")),1),tt(R("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":a[3]||(a[3]=s=>rt(Gl)?Gl.value=s:null)},null,512),[[Yr,L(Gl)]]),a[17]||(a[17]=Be(" ms ",-1))]),R("div",qMe,[Be(q(o.$t("ipv6Test"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[4]||(a[4]=s=>rt(ld)?ld.value=s:null)},null,512),[[en,L(ld)]])]),R("div",JMe,[R("span",null,q(o.$t("independentLatencyTest")),1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[5]||(a[5]=s=>rt(Hf)?Hf.value=s:null)},null,512),[[en,L(Hf)]]),z(L(ss),{class:"h-4 w-4",onMouseenter:r})]),L(Hf)?(H(),K("div",QMe,[z(NMe)])):Ge("",!0)]),a[18]||(a[18]=R("div",{class:"divider"},null,-1)),R("div",eDe,[R("div",tDe,[Be(q(o.$t("twoColumnProxyGroup"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[6]||(a[6]=s=>rt(nm)?nm.value=s:null)},null,512),[[en,L(nm)]])]),R("div",nDe,[Be(q(o.$t("proxyPreviewType"))+" ",1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":a[7]||(a[7]=s=>rt(im)?im.value=s:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(jm)),s=>(H(),K("option",{key:s,value:s},q(o.$t(s)),9,rDe))),128))],512),[[zn,L(im)]])]),R("div",iDe,[Be(q(o.$t("proxyCountMode"))+" ",1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":a[8]||(a[8]=s=>rt(am)?am.value=s:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(Xm)),s=>(H(),K("option",{key:s,value:s},q(o.$t(s)),9,oDe))),128))],512),[[zn,L(am)]])]),R("div",aDe,[Be(q(o.$t("proxyCardSize"))+" ",1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":a[9]||(a[9]=s=>rt(lc)?lc.value=s:null),onChange:i},[(H(!0),K(Ve,null,Yt(Object.values(L(iv)),s=>(H(),K("option",{key:s,value:s},q(o.$t(s)),9,sDe))),128))],544),[[zn,L(lc)]])]),R("div",lDe,[Be(q(o.$t("displayGlobalByMode"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[10]||(a[10]=s=>rt(Pg)?Pg.value=s:null)},null,512),[[en,L(Pg)]])]),L(Pg)&&L(oa)?(H(),K("div",uDe,[Be(q(o.$t("customGlobalNode"))+" ",1),tt(R("select",{class:"select select-sm min-w-24","onUpdate:modelValue":a[11]||(a[11]=s=>rt(om)?om.value=s:null)},[(H(!0),K(Ve,null,Yt(Object.keys(L($n)),s=>(H(),K("option",{key:s,value:s},q(s),9,cDe))),128))],512),[[zn,L(om)]])])):Ge("",!0),R("div",fDe,[Be(q(o.$t("truncateProxyName"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[12]||(a[12]=s=>rt(rm)?rm.value=s:null)},null,512),[[en,L(rm)]])]),R("div",dDe,[Be(q(o.$t("proxyGroupIconSize"))+" ",1),tt(R("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":a[13]||(a[13]=s=>rt(ob)?ob.value=s:null)},null,512),[[Yr,L(ob)]])]),R("div",hDe,[Be(q(o.$t("proxyGroupIconMargin"))+" ",1),tt(R("input",{type:"number",class:"input input-sm w-20","onUpdate:modelValue":a[14]||(a[14]=s=>rt(ab)?ab.value=s:null)},null,512),[[Yr,L(ab)]])])]),a[19]||(a[19]=R("div",{class:"divider"},null,-1)),z(HMe)])]))}}),vDe={class:"flex items-center gap-2"},gDe=["value"],jP=Ze({__name:"LanguageSelect",setup(e){const t={[Ys.EN_US]:"English",[Ys.ZH_CN]:"简体中文",[Ys.RU_RU]:"Русский"};return(n,r)=>(H(),K("div",vDe,[Be(q(n.$t("language"))+" ",1),tt(R("select",{class:"select select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>rt(oc)?oc.value=i:null),onChange:r[1]||(r[1]=()=>L(Yy).global.locale=L(oc))},[(H(!0),K(Ve,null,Yt(Object.values(L(Ys)),i=>(H(),K("option",{key:i,value:i},q(t[i]||i),9,gDe))),128))],544),[[zn,L(oc)]])]))}}),Vj="config/import-settings-url",YP="./zashboard-settings.json",Gh=Je(Vj,YP),Kb=Je("config/auto-import-settings",!1),MU=Je("cache/auto-import-settings-hash",""),mDe=async e=>{const n=Object.keys(e).sort().map(i=>`${i}:${e[i]}`).join("|");let r=0;for(let i=0;i<n.length;i++){const o=n.charCodeAt(i);r=(r<<5)-r+o,r=r&r}return Math.abs(r).toString(16).padStart(8,"0")},Hj=async(e=!1)=>{const t=await fetch(Gh.value),n=()=>{pr({content:"importFailed",params:{url:t.url},type:"alert-error"})};if(!t.ok){n();return}let r={};try{r=await t.json()}catch{n();return}if(!r){n();return}const i=await mDe(r);if(!(i===MU.value&&!e)){pr({content:"importing"}),MU.value=i;for(const o in r)o===Vj&&!r[o]||localStorage.setItem(o,r[o]);location.reload()}},yDe={class:"my-4 flex items-center gap-2"},_De={class:"my-4 flex items-center gap-2 max-sm:flex-col max-sm:items-start"},bDe={class:"flex items-center gap-2"},SDe={class:"join"},wDe={class:"my-4 flex items-center gap-2"},xDe={class:"flex cursor-pointer items-center gap-2"},XP=Ze({__name:"ImportSettings",setup(e){const t=Te(),n=Te(!1),{showTip:r}=uo(),i=()=>{pr({content:"importing"});const s=t.value?.files?.[0];if(!s)return;const l=new FileReader;l.onload=async()=>{const u=JSON.parse(l.result);for(const c in u)localStorage.setItem(c,u[c]);location.reload()},l.readAsText(s)},o=()=>{t.value?.click()},a=async()=>{n.value=!1,await Hj(!0)};return(s,l)=>(H(),K(Ve,null,[R("button",{class:"btn btn-sm",onClick:l[0]||(l[0]=u=>n.value=!0)},q(s.$t("importSettings")),1),z(dl,{modelValue:n.value,"onUpdate:modelValue":l[7]||(l[7]=u=>n.value=u)},{default:gn(()=>[R("div",yDe,[Be(q(s.$t("importFromFile"))+" ",1),R("button",{class:"btn btn-sm",onClick:o},[Be(q(s.$t("importFromFile"))+" ",1),z(L(Vy),{class:"h-4 w-4"})])]),R("div",_De,[Be(q(s.$t("importFromUrl"))+" ",1),R("div",bDe,[R("div",SDe,[z(Tn,{modelValue:L(Gh),"onUpdate:modelValue":l[1]||(l[1]=u=>rt(Gh)?Gh.value=u:null),class:"max-w-60"},null,8,["modelValue"]),R("button",{class:"btn btn-sm join-item",onClick:l[2]||(l[2]=u=>a())},[z(L(lH),{class:"h-4 w-4"})])]),L(Gh)===L(YP)?(H(),it(L(ss),{key:0,class:"h-4 w-4",onMouseenter:l[3]||(l[3]=u=>L(r)(u,s.$t("importFromBackendTip"),{appendTo:"parent"}))})):(H(),K("button",{key:1,class:"btn btn-sm",onClick:l[4]||(l[4]=u=>Gh.value=L(YP))},q(s.$t("reset"))+" URL ",1))])]),R("div",wDe,[R("label",xDe,[R("span",null,q(s.$t("autoImportFromUrl")),1),tt(R("input",{"onUpdate:modelValue":l[5]||(l[5]=u=>rt(Kb)?Kb.value=u:null),type:"checkbox",class:"toggle toggle-sm"},null,512),[[en,L(Kb)]])]),z(L(ss),{class:"h-4 w-4",onMouseenter:l[6]||(l[6]=u=>L(r)(u,s.$t("autoImportFromUrlTip"),{appendTo:"parent"}))})]),R("input",{ref_key:"inputRef",ref:t,type:"file",accept:".json",class:"hidden",onChange:i},null,544)]),_:1},8,["modelValue"])],64))}}),TDe={class:"grid grid-cols-4 gap-2"},CDe={class:"flex cursor-pointer flex-col items-center gap-1"},EDe={class:"flex h-6 items-center justify-center text-xs"},IDe=["onUpdate:modelValue"],ADe={class:"grid grid-cols-1 gap-2 md:grid-cols-3"},PDe={class:"grid grid-cols-1 gap-2 md:grid-cols-3"},RDe={class:"flex items-center gap-2"},MDe={class:"grid grid-cols-1 gap-2 pb-12 md:grid-cols-3"},DDe={class:"bg-base-100 border-base-200 absolute right-0 bottom-0 left-0 flex gap-2 border-t p-2 pt-2"},ODe=["value"],LDe={class:"btn btn-sm",href:"https://daisyui.com/theme-generator/",target:"_blank"},kDe=Ze({__name:"CustomTheme",props:{value:{type:Boolean,default:!1},valueModifiers:{}},emits:["update:value"],setup(e){const t=Hd(e,"value"),n=Te(gS[0]),r=Hi({...Km.value[0]||WN}),i=ge(()=>Object.keys(r).filter(h=>h.startsWith("--color-"))),o=ge(()=>Object.keys(r).filter(h=>h.startsWith("--radius-"))),a=ge(()=>Object.keys(r).filter(h=>h.startsWith("--size-"))),s=ge({get:()=>r["--depth"]==="1",set:h=>{r["--depth"]=h?"1":"0"}}),l=ge({get:()=>r["--noise"]==="1",set:h=>{r["--noise"]=h?"1":"0"}}),u=ge({get:()=>r["color-scheme"]==="dark",set:h=>{r["color-scheme"]=h?"dark":"light"}}),c=async()=>{Km.value=[{...r,id:Xy()}],up.value="",cp.value="",await Zr(),up.value=r.name,cp.value=r.name,EY()},f=()=>{const h=document.createElement("div");h.dataset.theme=n.value,h.style.display="none",document.body.appendChild(h);const d=getComputedStyle(h);Object.keys(WN).forEach(p=>{const g=d.getPropertyValue(p).trim();g&&(r[p]=g)}),h.remove(),c()};return(h,d)=>(H(),it(dl,{modelValue:t.value,"onUpdate:modelValue":d[5]||(d[5]=p=>t.value=p)},{default:gn(()=>[d[11]||(d[11]=R("div",{class:"divider"},"Color",-1)),R("div",TDe,[(H(!0),K(Ve,null,Yt(i.value,p=>(H(),K("div",{key:p},[R("label",CDe,[R("div",EDe,q(p.replace("--color-","")),1),R("div",{class:"border-base-content h-6 w-6 rounded border-2",style:Kn(`background-color: ${r[p]};`)},null,4),tt((H(),K("input",{class:"h-1 w-1 opacity-0",key:p,type:"color","onUpdate:modelValue":g=>r[p]=g},null,8,IDe)),[[Yr,r[p]]])])]))),128))]),d[12]||(d[12]=R("div",{class:"divider"},"Radius",-1)),R("div",ADe,[(H(!0),K(Ve,null,Yt(o.value,p=>(H(),K("div",{key:p,class:"flex items-center gap-2"},[Be(q(p.replace("--radius-",""))+" ",1),z(Tn,{class:"w-20",modelValue:r[p],"onUpdate:modelValue":g=>r[p]=g},null,8,["modelValue","onUpdate:modelValue"])]))),128))]),d[13]||(d[13]=R("div",{class:"divider"},"Size",-1)),R("div",PDe,[(H(!0),K(Ve,null,Yt(a.value,p=>(H(),K("div",{key:p,class:"flex items-center gap-2"},[Be(q(p.replace("--size-",""))+" ",1),z(Tn,{class:"w-20",modelValue:r[p],"onUpdate:modelValue":g=>r[p]=g},null,8,["modelValue","onUpdate:modelValue"])]))),128)),R("div",RDe,[d[6]||(d[6]=Be(" border ",-1)),z(Tn,{class:"w-20",modelValue:r["--border"],"onUpdate:modelValue":d[0]||(d[0]=p=>r["--border"]=p)},null,8,["modelValue"])])]),d[14]||(d[14]=R("div",{class:"divider"},"Effect",-1)),R("div",MDe,[R("div",null,[d[7]||(d[7]=Be(" depth ",-1)),tt(R("input",{class:"toggle","onUpdate:modelValue":d[1]||(d[1]=p=>s.value=p),type:"checkbox"},null,512),[[en,s.value]])]),R("div",null,[d[8]||(d[8]=Be(" noise ",-1)),tt(R("input",{class:"toggle","onUpdate:modelValue":d[2]||(d[2]=p=>l.value=p),type:"checkbox"},null,512),[[en,l.value]])]),R("div",null,[d[9]||(d[9]=Be(" dark ",-1)),tt(R("input",{class:"toggle","onUpdate:modelValue":d[3]||(d[3]=p=>u.value=p),type:"checkbox"},null,512),[[en,u.value]])])]),R("div",DDe,[tt(R("select",{class:"select select-sm w-26","onUpdate:modelValue":d[4]||(d[4]=p=>n.value=p)},[(H(!0),K(Ve,null,Yt(L(gS),p=>(H(),K("option",{key:p,value:p},q(p),9,ODe))),128))],512),[[zn,n.value]]),R("button",{class:"btn btn-sm",onClick:f},q(h.$t("reset")),1),d[10]||(d[10]=R("div",{class:"flex-1"},null,-1)),R("a",LDe,q(h.$t("moreDetails")),1),R("button",{class:"btn btn-sm btn-primary",onClick:c},q(h.$t("save")),1)])]),_:1},8,["modelValue"]))}}),NDe={class:"flex h-full w-full cursor-pointer items-center indent-4"},DU=Ze({__name:"ThemeSelector",props:{value:{type:String,required:!0},valueModifiers:{}},emits:["update:value"],setup(e){const t=Hd(e,"value"),n=ge(()=>Km.value.length?[...gS,...Km.value.map(a=>a.name)]:gS),{showTip:r,hideTip:i}=uo(),o=a=>{const s=document.createElement("div");s.className="card h-96 w-48 overflow-y-auto overscroll-contain shadow-2xl";for(const l of n.value){const u=document.createElement("div"),c=document.createElement("div"),f=document.createElement("span");u.dataset.theme=l,u.className="flex cursor-pointer items-center gap-2 p-2 bg-base-100 hover:bg-base-200",c.className="h-3 w-5 shadow rounded-field bg-primary",f.textContent=l,u.append(c),u.append(f),u.addEventListener("click",()=>{t.value=l,i()}),s.append(u)}r(a,s,{theme:"transparent",placement:"bottom-start",trigger:"click",appendTo:document.body,interactive:!0,arrow:!1})};return(a,s)=>(H(),K("div",{class:"join-item input input-sm inline w-48 p-0",onClick:o},[R("div",NDe,q(t.value),1)]))}}),FDe={class:"card"},$De={class:"card-title px-4 pt-4"},BDe={class:"indicator"},UDe={key:0,class:"indicator-item top-1 -right-1 flex"},VDe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},HDe={class:"text-sm font-normal"},zDe={key:0,class:"text-xs"},GDe={class:"card-body gap-4"},WDe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},jDe={class:"flex items-center gap-2"},YDe={class:"flex items-center gap-2"},XDe={class:"join"},KDe={key:0,class:"flex items-center gap-2"},ZDe={class:"flex items-center gap-2"},qDe=["value"],JDe={class:"flex items-center gap-2"},QDe=["value"],eOe={class:"flex items-center gap-2"},tOe={class:"shrink-0"},nOe={class:"join"},rOe={class:"flex items-center gap-2"},iOe={class:"flex items-center gap-2"},oOe={class:"flex items-center gap-2"},aOe={class:"grid max-w-3xl grid-cols-2 gap-2 sm:grid-cols-4"},sOe=Ze({__name:"ZashboardSettings",setup(e){const t=Te(!1),n=Te(!1),r="";mt(qo,d=>{d&&(n.value=!0)});const i=Te(),o=()=>{i.value?.click()},a=()=>{qo.value.includes(ww)||KAe()},s=d=>{const p=d.target.files?.[0];if(!p)return;const g=new FileReader;g.onload=()=>{qo.value=ww+"-"+Date.now(),YAe(g.result)},g.readAsDataURL(p)},l=ge(()=>{const d="cdn-fonts";return Object.values(Ri).includes(d)?[d]:Object.values(Ri)}),{isUIUpdateAvailable:u}=Aj(),c=Te(!1),f=async()=>{if(!c.value){c.value=!0;try{await gY(),c.value=!1,IY(),setTimeout(()=>{window.location.reload()},1e3)}catch{c.value=!1}}},h=async()=>{const d=await navigator.serviceWorker.getRegistrations();for(const p of d)p.unregister();window.location.reload()};return(d,p)=>(H(),K("div",FDe,[R("div",$De,[R("div",BDe,[L(u)?(H(),K("span",UDe,[...p[19]||(p[19]=[R("span",{class:"bg-secondary absolute h-2 w-2 animate-ping rounded-full"},null,-1),R("span",{class:"bg-secondary h-2 w-2 rounded-full"},null,-1)])])):Ge("",!0),R("a",VDe,[p[20]||(p[20]=R("span",null," zashboard ",-1)),R("span",HDe,[Be(q(L(tR))+" ",1),L(r)?(H(),K("span",zDe,q(L(r)),1)):Ge("",!0)])])]),L(Coe)?(H(),K("button",{key:0,class:"btn btn-sm absolute top-2 right-2",onClick:h},[Be(q(d.$t("refresh"))+" ",1),z(L(nv),{class:"h-4 w-4"})])):Ge("",!0)]),R("div",GDe,[R("div",WDe,[z(jP),R("div",jDe,[Be(q(d.$t("autoSwitchTheme"))+" ",1),tt(R("input",{type:"checkbox","onUpdate:modelValue":p[0]||(p[0]=g=>rt(Cg)?Cg.value=g:null),class:"toggle"},null,512),[[en,L(Cg)]])]),R("div",YDe,[Be(q(d.$t("defaultTheme"))+" ",1),R("div",XDe,[z(DU,{value:L(up),"onUpdate:value":p[1]||(p[1]=g=>rt(up)?up.value=g:null)},null,8,["value"]),R("button",{class:"btn btn-sm join-item",onClick:p[2]||(p[2]=g=>t.value=!t.value)},[z(L(rv),{class:"h-4 w-4"})])]),z(kDe,{value:t.value,"onUpdate:value":p[3]||(p[3]=g=>t.value=g)},null,8,["value"])]),L(Cg)?(H(),K("div",KDe,[Be(q(d.$t("darkTheme"))+" ",1),z(DU,{value:L(cp),"onUpdate:value":p[4]||(p[4]=g=>rt(cp)?cp.value=g:null)},null,8,["value"])])):Ge("",!0),R("div",ZDe,[Be(q(d.$t("fonts"))+" ",1),tt(R("select",{class:"select select-sm w-48","onUpdate:modelValue":p[5]||(p[5]=g=>rt(fp)?fp.value=g:null)},[(H(!0),K(Ve,null,Yt(l.value,g=>(H(),K("option",{key:g,value:g},q(g),9,qDe))),128))],512),[[zn,L(fp)]])]),R("div",JDe,[p[21]||(p[21]=Be(" Emoji ",-1)),tt(R("select",{class:"select select-sm w-48","onUpdate:modelValue":p[6]||(p[6]=g=>rt(j_)?j_.value=g:null)},[(H(!0),K(Ve,null,Yt(Object.values(L(ad)),g=>(H(),K("option",{key:g,value:g},q(g),9,QDe))),128))],512),[[zn,L(j_)]])]),R("div",eOe,[R("span",tOe,q(d.$t("customBackgroundURL")),1),R("div",nOe,[z(Tn,{class:"join-item w-48",modelValue:L(qo),"onUpdate:modelValue":[p[7]||(p[7]=g=>rt(qo)?qo.value=g:null),a],clearable:!0},null,8,["modelValue"]),R("button",{class:"btn join-item btn-sm",onClick:o},[z(L(Eie),{class:"h-4 w-4"})])]),L(qo)?(H(),K("button",{key:0,class:"btn btn-circle join-item btn-sm",onClick:p[8]||(p[8]=g=>n.value=!n.value)},[z(L(xie),{class:"h-4 w-4"})])):Ge("",!0),R("input",{ref_key:"inputFileRef",ref:i,type:"file",accept:"image/*",class:"hidden",onChange:s},null,544)]),L(qo)&&n.value?(H(),K(Ve,{key:1},[R("div",rOe,[Be(q(d.$t("transparent"))+" ",1),tt(R("input",{type:"range",min:"0",max:"100","onUpdate:modelValue":p[9]||(p[9]=g=>rt(em)?em.value=g:null),class:"range max-w-64",onTouchstartPassive:p[10]||(p[10]=Pn(()=>{},["stop"])),onTouchmovePassive:p[11]||(p[11]=Pn(()=>{},["stop"])),onTouchendPassive:p[12]||(p[12]=Pn(()=>{},["stop"]))},null,544),[[Yr,L(em)]])]),R("div",iOe,[Be(q(d.$t("blurIntensity"))+" ",1),tt(R("input",{type:"range",min:"0",max:"40","onUpdate:modelValue":p[13]||(p[13]=g=>rt(iu)?iu.value=g:null),class:"range max-w-64",onTouchstart:p[14]||(p[14]=Pn(()=>{},["stop"])),onTouchmove:p[15]||(p[15]=Pn(()=>{},["stop"])),onTouchend:p[16]||(p[16]=Pn(()=>{},["stop"]))},null,544),[[Yr,L(iu)]])])],64)):Ge("",!0),R("div",oOe,[Be(q(d.$t("autoUpgrade"))+" ",1),tt(R("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":p[17]||(p[17]=g=>rt(Y_)?Y_.value=g:null)},null,512),[[en,L(Y_)]])])]),R("div",aOe,[R("button",{class:ct(L(Ui)("btn btn-primary btn-sm",c.value?"animate-pulse":"")),onClick:f},q(d.$t("upgradeUI")),3),p[22]||(p[22]=R("div",{class:"sm:hidden"},null,-1)),R("button",{class:"btn btn-sm",onClick:p[18]||(p[18]=(...g)=>L(qN)&&L(qN)(...g))},q(d.$t("exportSettings")),1),z(XP)])])]))}}),lOe={class:"grid grid-cols-1 gap-2 overflow-x-hidden p-2"},uOe=Ze({__name:"SettingsPage",setup(e){const t=Te(!1);return Er(()=>{requestAnimationFrame(()=>{t.value=!0})}),(n,r)=>(H(),K("div",lOe,[z(sOe),L(jh)?Ge("",!0):(H(),it(yMe,{key:0})),z(LRe),z(vMe),z(pDe),t.value?(H(),K(Ve,{key:1},[z(tMe),z(RMe)],64)):Ge("",!0)]))}}),cOe={class:"absolute top-4 right-4 max-sm:hidden"},fOe={class:"absolute right-4 bottom-4 max-sm:hidden"},dOe={class:"card mx-auto w-96 max-w-[90%] gap-3 px-6 py-2 max-sm:my-4"},hOe={class:"text-2xl font-semibold"},pOe={class:"flex flex-col gap-1"},vOe={class:"text-sm"},gOe={class:"flex flex-col gap-1"},mOe={class:"text-sm"},yOe={class:"flex flex-col gap-1"},_Oe={class:"text-sm"},bOe={class:"flex flex-col gap-1"},SOe={class:"flex items-center gap-1 text-sm"},wOe=["data-tip"],xOe={class:"flex flex-col gap-1"},TOe={class:"text-sm"},COe={class:"flex flex-col gap-1"},EOe={class:"text-sm"},IOe={class:"btn btn-circle btn-ghost btn-sm"},AOe=["onClick"],POe=["onClick"],ROe=["onClick"],MOe={class:"absolute top-2 right-2 sm:hidden"},DOe=Ze({__name:"SetupPage",setup(e){const t=Hi({protocol:"http",host:"127.0.0.1",port:"9090",secondaryPath:"",password:"",label:""}),n=Te(!1),r=Te("");mt(()=>Da.currentRoute.value.query.editBackend,l=>{l&&typeof l=="string"&&(r.value=l,n.value=!0,Da.replace({query:{}}))},{immediate:!0});const i=l=>{si.value=l,Da.push({name:an.proxies})},o=l=>{r.value=l.uuid,n.value=!0},a=async(l,u=!1)=>{const{protocol:c,host:f,port:h,password:d}=l;if(!c||!f||!h){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&c==="http"&&!["::1","0.0.0.0","127.0.0.1","localhost"].includes(f)&&!u&&pr({content:"protocolTips"});try{const p=await fetch(`${jy(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(p.status!==200){u||alert(p.statusText);return}const{version:g,message:y}=await p.json();if(!g){u||alert(y);return}tue(l),Da.push({name:an.proxies})}catch(p){u||alert(p)}},s=MH();return s?a(s):Or.value.length===0&&a(t,!0),(l,u)=>(H(),K("div",{class:"bg-base-200/50 h-full w-full items-center justify-center overflow-auto sm:flex",onKeydown:u[9]||(u[9]=Ic(c=>a(t),["enter"]))},[R("div",cOe,[z(XP)]),R("div",fOe,[z(jP)]),R("div",dOe,[R("h1",hOe,q(l.$t("setup")),1),R("div",pOe,[R("label",vOe,[R("span",null,q(l.$t("protocol")),1)]),tt(R("select",{class:"select select-sm w-full","onUpdate:modelValue":u[0]||(u[0]=c=>t.protocol=c)},[...u[10]||(u[10]=[R("option",{value:"http"},"HTTP",-1),R("option",{value:"https"},"HTTPS",-1)])],512),[[zn,t.protocol]])]),R("div",gOe,[R("label",mOe,[R("span",null,q(l.$t("host")),1)]),z(Tn,{class:"w-full",name:"username",autocomplete:"username",modelValue:t.host,"onUpdate:modelValue":u[1]||(u[1]=c=>t.host=c)},null,8,["modelValue"])]),R("div",yOe,[R("label",_Oe,[R("span",null,q(l.$t("port")),1)]),z(Tn,{class:"w-full",modelValue:t.port,"onUpdate:modelValue":u[2]||(u[2]=c=>t.port=c)},null,8,["modelValue"])]),R("div",bOe,[R("label",SOe,[R("span",null,q(l.$t("secondaryPath"))+" ("+q(l.$t("optional"))+")",1),R("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[z(L(ss),{class:"h-4 w-4"})],8,wOe)]),z(Tn,{class:"w-full",modelValue:t.secondaryPath,"onUpdate:modelValue":u[3]||(u[3]=c=>t.secondaryPath=c)},null,8,["modelValue"])]),R("div",xOe,[R("label",TOe,[R("span",null,q(l.$t("password")),1)]),tt(R("input",{type:"password",class:"input input-sm w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.password=c)},null,512),[[Yr,t.password]])]),R("div",COe,[R("label",EOe,[R("span",null,q(l.$t("label"))+" ("+q(l.$t("optional"))+")",1)]),z(Tn,{class:"w-full",modelValue:t.label,"onUpdate:modelValue":u[5]||(u[5]=c=>t.label=c)},null,8,["modelValue"])]),R("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>a(t))},q(l.$t("submit")),1),z(L(zp),{class:"flex flex-1 flex-col gap-2",modelValue:L(Or),"onUpdate:modelValue":u[7]||(u[7]=c=>rt(Or)?Or.value=c:null),group:"list",animation:150,"item-key":"uuid"},{item:gn(({element:c})=>[(H(),K("div",{key:c.uuid,class:"flex items-center gap-2"},[R("button",IOe,[z(L(cH),{class:"h-4 w-4 cursor-grab"})]),R("button",{class:"btn btn-sm flex-1",onClick:f=>i(c.uuid)},q(L(Ed)(c)),9,AOe),R("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:f=>o(c)},[z(L(hH),{class:"h-4 w-4"})],8,POe),R("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:()=>L(rue)(c.uuid)},[z(L(zy),{class:"h-4 w-4"})],8,ROe)]))]),_:1},8,["modelValue"]),z(jP,{class:"mt-4 sm:hidden"}),R("div",MOe,[z(XP)])]),z(RG,{modelValue:n.value,"onUpdate:modelValue":u[8]||(u[8]=c=>n.value=c),"default-backend-uuid":r.value},null,8,["modelValue","default-backend-uuid"])],32))}}),OOe=[{path:"proxies",name:an.proxies,component:VPe},{path:"overview",name:an.overview,component:rPe},{path:"connections",name:an.connections,component:hde},{path:"logs",name:an.logs,component:qIe},{path:"rules",name:an.rules,component:nRe},{path:"settings",name:an.settings,component:uOe}],Da=Bae({history:vae("./"),routes:[{path:"/",redirect:an.proxies,component:zIe,children:OOe},{path:"/setup",name:an.setup,component:DOe},{path:"/:catchAll(.*)",redirect:an.proxies}]}),OU=voe("zashboard"),zj=e=>{typeof e=="string"&&Cr.value?OU.value=`zashboard | ${Yy.global.t(e)}`:OU.value="zashboard"};Da.beforeEach((e,t)=>{const n=gc.value.findIndex(i=>i===e.name),r=gc.value.findIndex(i=>i===t.name);n===0&&r===gc.value.length-1?e.meta.transition="slide-left":n===gc.value.length-1&&r===0?e.meta.transition="slide-right":n!==r&&(e.meta.transition=n<r?"slide-right":"slide-left"),!Cr.value&&e.name!==an.setup&&Da.push({name:an.setup})});Da.afterEach(e=>{zj(e.name)});mt(oc,()=>{zj(Da.currentRoute.value.name)});function Gj(e,t){return function(){return e.apply(t,arguments)}}const{toString:LOe}=Object.prototype,{getPrototypeOf:TO}=Object,{iterator:tT,toStringTag:Wj}=Symbol,nT=(e=>t=>{const n=LOe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ts=e=>(e=e.toLowerCase(),t=>nT(t)===e),rT=e=>t=>typeof t===e,{isArray:vv}=Array,Dy=rT("undefined");function p0(e){return e!==null&&!Dy(e)&&e.constructor!==null&&!Dy(e.constructor)&&Lo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jj=Ts("ArrayBuffer");function kOe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jj(e.buffer),t}const NOe=rT("string"),Lo=rT("function"),Yj=rT("number"),v0=e=>e!==null&&typeof e=="object",FOe=e=>e===!0||e===!1,Zb=e=>{if(nT(e)!=="object")return!1;const t=TO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Wj in e)&&!(tT in e)},$Oe=e=>{if(!v0(e)||p0(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},BOe=Ts("Date"),UOe=Ts("File"),VOe=Ts("Blob"),HOe=Ts("FileList"),zOe=e=>v0(e)&&Lo(e.pipe),GOe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Lo(e.append)&&((t=nT(e))==="formdata"||t==="object"&&Lo(e.toString)&&e.toString()==="[object FormData]"))},WOe=Ts("URLSearchParams"),[jOe,YOe,XOe,KOe]=["ReadableStream","Request","Response","Headers"].map(Ts),ZOe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function g0(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),vv(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(p0(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function Xj(e,t){if(p0(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const qf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Kj=e=>!Dy(e)&&e!==qf;function KP(){const{caseless:e}=Kj(this)&&this||{},t={},n=(r,i)=>{const o=e&&Xj(t,i)||i;Zb(t[o])&&Zb(r)?t[o]=KP(t[o],r):Zb(r)?t[o]=KP({},r):vv(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&g0(arguments[r],n);return t}const qOe=(e,t,n,{allOwnKeys:r}={})=>(g0(t,(i,o)=>{n&&Lo(i)?e[o]=Gj(i,n):e[o]=i},{allOwnKeys:r}),e),JOe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),QOe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},eLe=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&TO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tLe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nLe=e=>{if(!e)return null;if(vv(e))return e;let t=e.length;if(!Yj(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rLe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&TO(Uint8Array)),iLe=(e,t)=>{const r=(e&&e[tT]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},oLe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},aLe=Ts("HTMLFormElement"),sLe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),LU=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lLe=Ts("RegExp"),Zj=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};g0(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},uLe=e=>{Zj(e,(t,n)=>{if(Lo(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Lo(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cLe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return vv(e)?r(e):r(String(e).split(t)),n},fLe=()=>{},dLe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function hLe(e){return!!(e&&Lo(e.append)&&e[Wj]==="FormData"&&e[tT])}const pLe=e=>{const t=new Array(10),n=(r,i)=>{if(v0(r)){if(t.indexOf(r)>=0)return;if(p0(r))return r;if(!("toJSON"in r)){t[i]=r;const o=vv(r)?[]:{};return g0(r,(a,s)=>{const l=n(a,i+1);!Dy(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},vLe=Ts("AsyncFunction"),gLe=e=>e&&(v0(e)||Lo(e))&&Lo(e.then)&&Lo(e.catch),qj=((e,t)=>e?setImmediate:t?((n,r)=>(qf.addEventListener("message",({source:i,data:o})=>{i===qf&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),qf.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Lo(qf.postMessage)),mLe=typeof queueMicrotask<"u"?queueMicrotask.bind(qf):typeof process<"u"&&process.nextTick||qj,yLe=e=>e!=null&&Lo(e[tT]),xe={isArray:vv,isArrayBuffer:jj,isBuffer:p0,isFormData:GOe,isArrayBufferView:kOe,isString:NOe,isNumber:Yj,isBoolean:FOe,isObject:v0,isPlainObject:Zb,isEmptyObject:$Oe,isReadableStream:jOe,isRequest:YOe,isResponse:XOe,isHeaders:KOe,isUndefined:Dy,isDate:BOe,isFile:UOe,isBlob:VOe,isRegExp:lLe,isFunction:Lo,isStream:zOe,isURLSearchParams:WOe,isTypedArray:rLe,isFileList:HOe,forEach:g0,merge:KP,extend:qOe,trim:ZOe,stripBOM:JOe,inherits:QOe,toFlatObject:eLe,kindOf:nT,kindOfTest:Ts,endsWith:tLe,toArray:nLe,forEachEntry:iLe,matchAll:oLe,isHTMLForm:aLe,hasOwnProperty:LU,hasOwnProp:LU,reduceDescriptors:Zj,freezeMethods:uLe,toObjectSet:cLe,toCamelCase:sLe,noop:fLe,toFiniteNumber:dLe,findKey:Xj,global:qf,isContextDefined:Kj,isSpecCompliantForm:hLe,toJSONObject:pLe,isAsyncFn:vLe,isThenable:gLe,setImmediate:qj,asap:mLe,isIterable:yLe};function Kt(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}xe.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:xe.toJSONObject(this.config),code:this.code,status:this.status}}});const Jj=Kt.prototype,Qj={};["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=>{Qj[e]={value:e}});Object.defineProperties(Kt,Qj);Object.defineProperty(Jj,"isAxiosError",{value:!0});Kt.from=(e,t,n,r,i,o)=>{const a=Object.create(Jj);return xe.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Kt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const _Le=null;function ZP(e){return xe.isPlainObject(e)||xe.isArray(e)}function eY(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function kU(e,t,n){return e?e.concat(t).map(function(i,o){return i=eY(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function bLe(e){return xe.isArray(e)&&!e.some(ZP)}const SLe=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function iT(e,t,n){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=xe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!xe.isUndefined(y[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(t);if(!xe.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(xe.isDate(p))return p.toISOString();if(xe.isBoolean(p))return p.toString();if(!l&&xe.isBlob(p))throw new Kt("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(p)||xe.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,g,y){let m=p;if(p&&!y&&typeof p=="object"){if(xe.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(xe.isArray(p)&&bLe(p)||(xe.isFileList(p)||xe.endsWith(g,"[]"))&&(m=xe.toArray(p)))return g=eY(g),m.forEach(function(w,S){!(xe.isUndefined(w)||w===null)&&t.append(a===!0?kU([g],S,o):a===null?g:g+"[]",u(w))}),!1}return ZP(p)?!0:(t.append(kU(y,g,o),u(p)),!1)}const f=[],h=Object.assign(SLe,{defaultVisitor:c,convertValue:u,isVisitable:ZP});function d(p,g){if(!xe.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),xe.forEach(p,function(m,b){(!(xe.isUndefined(m)||m===null)&&i.call(t,m,xe.isString(b)?b.trim():b,g,h))===!0&&d(m,g?g.concat(b):[b])}),f.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return d(e),t}function NU(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function CO(e,t){this._pairs=[],e&&iT(e,this,t)}const tY=CO.prototype;tY.append=function(t,n){this._pairs.push([t,n])};tY.toString=function(t){const n=t?function(r){return t.call(this,r,NU)}:NU;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wLe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function nY(e,t,n){if(!t)return e;const r=n&&n.encode||wLe;xe.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=xe.isURLSearchParams(t)?t.toString():new CO(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class FU{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){xe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const rY={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xLe=typeof URLSearchParams<"u"?URLSearchParams:CO,TLe=typeof FormData<"u"?FormData:null,CLe=typeof Blob<"u"?Blob:null,ELe={isBrowser:!0,classes:{URLSearchParams:xLe,FormData:TLe,Blob:CLe},protocols:["http","https","file","blob","url","data"]},EO=typeof window<"u"&&typeof document<"u",qP=typeof navigator=="object"&&navigator||void 0,ILe=EO&&(!qP||["ReactNative","NativeScript","NS"].indexOf(qP.product)<0),ALe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",PLe=EO&&window.location.href||"http://localhost",RLe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:EO,hasStandardBrowserEnv:ILe,hasStandardBrowserWebWorkerEnv:ALe,navigator:qP,origin:PLe},Symbol.toStringTag,{value:"Module"})),$i={...RLe,...ELe};function MLe(e,t){return iT(e,new $i.classes.URLSearchParams,{visitor:function(n,r,i,o){return $i.isNode&&xe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function DLe(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function OLe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function iY(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&xe.isArray(i)?i.length:a,l?(xe.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!xe.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&xe.isArray(i[a])&&(i[a]=OLe(i[a])),!s)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const n={};return xe.forEachEntry(e,(r,i)=>{t(DLe(r),i,n,0)}),n}return null}function LLe(e,t,n){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const m0={transitional:rY,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=xe.isObject(t);if(o&&xe.isHTMLForm(t)&&(t=new FormData(t)),xe.isFormData(t))return i?JSON.stringify(iY(t)):t;if(xe.isArrayBuffer(t)||xe.isBuffer(t)||xe.isStream(t)||xe.isFile(t)||xe.isBlob(t)||xe.isReadableStream(t))return t;if(xe.isArrayBufferView(t))return t.buffer;if(xe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return MLe(t,this.formSerializer).toString();if((s=xe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return iT(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),LLe(t)):t}],transformResponse:[function(t){const n=this.transitional||m0.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(xe.isResponse(t)||xe.isReadableStream(t))return t;if(t&&xe.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)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:$i.classes.FormData,Blob:$i.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch"],e=>{m0.headers[e]={}});const kLe=xe.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"]),NLe=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&kLe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$U=Symbol("internals");function wg(e){return e&&String(e).trim().toLowerCase()}function qb(e){return e===!1||e==null?e:xe.isArray(e)?e.map(qb):String(e)}function FLe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const $Le=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function X2(e,t,n,r,i){if(xe.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!xe.isString(t)){if(xe.isString(r))return t.indexOf(r)!==-1;if(xe.isRegExp(r))return r.test(t)}}function BLe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ULe(e,t){const n=xe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}let ko=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=wg(l);if(!c)throw new Error("header name must be a non-empty string");const f=xe.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=qb(s))}const a=(s,l)=>xe.forEach(s,(u,c)=>o(u,c,l));if(xe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(xe.isString(t)&&(t=t.trim())&&!$Le(t))a(NLe(t),n);else if(xe.isObject(t)&&xe.isIterable(t)){let s={},l,u;for(const c of t){if(!xe.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?xe.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=wg(t),t){const r=xe.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return FLe(i);if(xe.isFunction(n))return n.call(this,i,r);if(xe.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wg(t),t){const r=xe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||X2(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=wg(a),a){const s=xe.findKey(r,a);s&&(!n||X2(r,r[s],s,n))&&(delete r[s],i=!0)}}return xe.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||X2(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return xe.forEach(this,(i,o)=>{const a=xe.findKey(r,o);if(a){n[a]=qb(i),delete n[o];return}const s=t?BLe(o):String(o).trim();s!==o&&delete n[o],n[s]=qb(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return xe.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&xe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[$U]=this[$U]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=wg(a);r[s]||(ULe(i,a),r[s]=!0)}return xe.isArray(t)?t.forEach(o):o(t),this}};ko.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xe.reduceDescriptors(ko.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});xe.freezeMethods(ko);function K2(e,t){const n=this||m0,r=t||n,i=ko.from(r.headers);let o=r.data;return xe.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function oY(e){return!!(e&&e.__CANCEL__)}function gv(e,t,n){Kt.call(this,e??"canceled",Kt.ERR_CANCELED,t,n),this.name="CanceledError"}xe.inherits(gv,Kt,{__CANCEL__:!0});function aY(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Kt("Request failed with status code "+n.status,[Kt.ERR_BAD_REQUEST,Kt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function VLe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function HLe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,h=0;for(;f!==i;)h+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a<t)return;const d=c&&u-c;return d?Math.round(h*1e3/d):void 0}}function zLe(e,t){let n=0,r=1e3/t,i,o;const a=(u,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const Tw=(e,t,n=3)=>{let r=0;const i=HLe(50,250);return zLe(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},BU=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},UU=e=>(...t)=>xe.asap(()=>e(...t)),GLe=$i.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$i.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($i.origin),$i.navigator&&/(msie|trident)/i.test($i.navigator.userAgent)):()=>!0,WLe=$i.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];xe.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),xe.isString(r)&&a.push("path="+r),xe.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 jLe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function YLe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function sY(e,t,n){let r=!jLe(t);return e&&(r||n==!1)?YLe(e,t):t}const VU=e=>e instanceof ko?{...e}:e;function Bd(e,t){t=t||{};const n={};function r(u,c,f,h){return xe.isPlainObject(u)&&xe.isPlainObject(c)?xe.merge.call({caseless:h},u,c):xe.isPlainObject(c)?xe.merge({},c):xe.isArray(c)?c.slice():c}function i(u,c,f,h){if(xe.isUndefined(c)){if(!xe.isUndefined(u))return r(void 0,u,f,h)}else return r(u,c,f,h)}function o(u,c){if(!xe.isUndefined(c))return r(void 0,c)}function a(u,c){if(xe.isUndefined(c)){if(!xe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c,f)=>i(VU(u),VU(c),f,!0)};return xe.forEach(Object.keys({...e,...t}),function(c){const f=l[c]||i,h=f(e[c],t[c],c);xe.isUndefined(h)&&f!==s||(n[c]=h)}),n}const lY=e=>{const t=Bd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=ko.from(a),t.url=nY(sY(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(xe.isFormData(n)){if($i.hasStandardBrowserEnv||$i.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if($i.hasStandardBrowserEnv&&(r&&xe.isFunction(r)&&(r=r(t)),r||r!==!1&&GLe(t.url))){const u=i&&o&&WLe.read(o);u&&a.set(i,u)}return t},XLe=typeof XMLHttpRequest<"u",KLe=XLe&&function(e){return new Promise(function(n,r){const i=lY(e);let o=i.data;const a=ko.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,h,d,p;function g(){d&&d(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function m(){if(!y)return;const w=ko.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};aY(function(E){n(E),g()},function(E){r(E),g()},C),y=null}"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(m)},y.onabort=function(){y&&(r(new Kt("Request aborted",Kt.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new Kt("Network Error",Kt.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||rY;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Kt(S,C.clarifyTimeoutError?Kt.ETIMEDOUT:Kt.ECONNABORTED,e,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&xe.forEach(a.toJSON(),function(S,C){y.setRequestHeader(C,S)}),xe.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([h,p]=Tw(u,!0),y.addEventListener("progress",h)),l&&y.upload&&([f,d]=Tw(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=w=>{y&&(r(!w||w.type?new gv(null,e,y):w),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=VLe(i.url);if(b&&$i.protocols.indexOf(b)===-1){r(new Kt("Unsupported protocol "+b+":",Kt.ERR_BAD_REQUEST,e));return}y.send(o||null)})},ZLe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;r.abort(c instanceof Kt?c:new gv(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new Kt(`timeout ${t} of ms exceeded`,Kt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>xe.asap(s),l}},qLe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},JLe=async function*(e,t){for await(const n of QLe(e))yield*qLe(n,t)},QLe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},HU=(e,t,n,r)=>{const i=JLe(e,t);let o=0,a,s=l=>{a||(a=!0,r&&r(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(n){let h=o+=f;n(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},oT=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",uY=oT&&typeof ReadableStream=="function",eke=oT&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),cY=(e,...t)=>{try{return!!e(...t)}catch{return!1}},tke=uY&&cY(()=>{let e=!1;const t=new Request($i.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),zU=64*1024,JP=uY&&cY(()=>xe.isReadableStream(new Response("").body)),Cw={stream:JP&&(e=>e.body)};oT&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Cw[t]&&(Cw[t]=xe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Kt(`Response type '${t}' is not supported`,Kt.ERR_NOT_SUPPORT,r)})})})(new Response);const nke=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request($i.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(xe.isArrayBufferView(e)||xe.isArrayBuffer(e))return e.byteLength;if(xe.isURLSearchParams(e)&&(e=e+""),xe.isString(e))return(await eke(e)).byteLength},rke=async(e,t)=>{const n=xe.toFiniteNumber(e.getContentLength());return n??nke(t)},ike=oT&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=lY(e);u=u?(u+"").toLowerCase():"text";let d=ZLe([i,o&&o.toAbortSignal()],a),p;const g=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let y;try{if(l&&tke&&n!=="get"&&n!=="head"&&(y=await rke(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(xe.isFormData(r)&&(T=C.headers.get("content-type"))&&c.setContentType(T),C.body){const[E,P]=BU(y,Tw(UU(l)));r=HU(C.body,zU,E,P)}}xe.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;p=new Request(t,{...h,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let b=await fetch(p,h);const w=JP&&(u==="stream"||u==="response");if(JP&&(s||w&&g)){const C={};["status","statusText","headers"].forEach(I=>{C[I]=b[I]});const T=xe.toFiniteNumber(b.headers.get("content-length")),[E,P]=s&&BU(T,Tw(UU(s),!0))||[];b=new Response(HU(b.body,zU,E,()=>{P&&P(),g&&g()}),C)}u=u||"text";let S=await Cw[xe.findKey(Cw,u)||"text"](b,e);return!w&&g&&g(),await new Promise((C,T)=>{aY(C,T,{data:S,headers:ko.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:p})})}catch(m){throw g&&g(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new Kt("Network Error",Kt.ERR_NETWORK,e,p),{cause:m.cause||m}):Kt.from(m,m&&m.code,e,p)}}),QP={http:_Le,xhr:KLe,fetch:ike};xe.forEach(QP,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const GU=e=>`- ${e}`,oke=e=>xe.isFunction(e)||e===null||e===!1,fY={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){n=e[o];let a;if(r=n,!oke(n)&&(r=QP[(a=String(n)).toLowerCase()],r===void 0))throw new Kt(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
`+o.map(GU).join(`
`):" "+GU(o[0]):"as no adapter specified";throw new Kt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:QP};function Z2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gv(null,e)}function WU(e){return Z2(e),e.headers=ko.from(e.headers),e.data=K2.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fY.getAdapter(e.adapter||m0.adapter)(e).then(function(r){return Z2(e),r.data=K2.call(e,e.transformResponse,r),r.headers=ko.from(r.headers),r},function(r){return oY(r)||(Z2(e),r&&r.response&&(r.response.data=K2.call(e,e.transformResponse,r.response),r.response.headers=ko.from(r.response.headers))),Promise.reject(r)})}const dY="1.11.0",aT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{aT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const jU={};aT.transitional=function(t,n,r){function i(o,a){return"[Axios v"+dY+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Kt(i(a," has been removed"+(n?" in "+n:"")),Kt.ERR_DEPRECATED);return n&&!jU[a]&&(jU[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};aT.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ake(e,t,n){if(typeof e!="object")throw new Kt("options must be an object",Kt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new Kt("option "+o+" must be "+l,Kt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Kt("Unknown option "+o,Kt.ERR_BAD_OPTION)}}const Jb={assertOptions:ake,validators:aT},Fs=Jb.validators;let Sd=class{constructor(t){this.defaults=t||{},this.interceptors={request:new FU,response:new FU}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bd(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Jb.assertOptions(r,{silentJSONParsing:Fs.transitional(Fs.boolean),forcedJSONParsing:Fs.transitional(Fs.boolean),clarifyTimeoutError:Fs.transitional(Fs.boolean)},!1),i!=null&&(xe.isFunction(i)?n.paramsSerializer={serialize:i}:Jb.assertOptions(i,{encode:Fs.function,serialize:Fs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Jb.assertOptions(n,{baseUrl:Fs.spelling("baseURL"),withXsrfToken:Fs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&xe.merge(o.common,o[n.method]);o&&xe.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=ko.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,h;if(!l){const p=[WU.bind(this),void 0];for(p.unshift(...s),p.push(...u),h=p.length,c=Promise.resolve(n);f<h;)c=c.then(p[f++],p[f++]);return c}h=s.length;let d=n;for(f=0;f<h;){const p=s[f++],g=s[f++];try{d=p(d)}catch(y){g.call(this,y);break}}try{c=WU.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Bd(this.defaults,t);const n=sY(t.baseURL,t.url,t.allowAbsoluteUrls);return nY(n,t.params,t.paramsSerializer)}};xe.forEach(["delete","get","head","options"],function(t){Sd.prototype[t]=function(n,r){return this.request(Bd(r||{},{method:t,url:n,data:(r||{}).data}))}});xe.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Bd(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Sd.prototype[t]=n(),Sd.prototype[t+"Form"]=n(!0)});let ske=class hY{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new gv(o,a,s),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new hY(function(i){t=i}),cancel:t}}};function lke(e){return function(n){return e.apply(null,n)}}function uke(e){return xe.isObject(e)&&e.isAxiosError===!0}const eR={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(eR).forEach(([e,t])=>{eR[t]=e});function pY(e){const t=new Sd(e),n=Gj(Sd.prototype.request,t);return xe.extend(n,Sd.prototype,t,{allOwnKeys:!0}),xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return pY(Bd(e,i))},n}const Lt=pY(m0);Lt.Axios=Sd;Lt.CanceledError=gv;Lt.CancelToken=ske;Lt.isCancel=oY;Lt.VERSION=dY;Lt.toFormData=iT;Lt.AxiosError=Kt;Lt.Cancel=Lt.CanceledError;Lt.all=function(t){return Promise.all(t)};Lt.spread=lke;Lt.isAxiosError=uke;Lt.mergeConfig=Bd;Lt.AxiosHeaders=ko;Lt.formToJSON=e=>iY(xe.isHTMLForm(e)?new FormData(e):e);Lt.getAdapter=fY.getAdapter;Lt.HttpStatusCode=eR;Lt.default=Lt;const{Axios:Yke,AxiosError:Xke,CanceledError:Kke,isCancel:Zke,CancelToken:qke,VERSION:Jke,all:Qke,Cancel:eNe,isAxiosError:tNe,spread:nNe,toFormData:rNe,AxiosHeaders:iNe,HttpStatusCode:oNe,formToJSON:aNe,getAdapter:sNe,mergeConfig:lNe}=Lt;var Qb={exports:{}},cke=Qb.exports,YU;function fke(){return YU||(YU=1,(function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(cke,function(){if(!("WebSocket"in window))return;function t(n,r,i){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};i||(i={});for(var a in o)typeof i[a]<"u"?this[a]=i[a]:this[a]=o[a];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s=this,l,u=!1,c=!1,f=document.createElement("div");f.addEventListener("open",function(d){s.onopen(d)}),f.addEventListener("close",function(d){s.onclose(d)}),f.addEventListener("connecting",function(d){s.onconnecting(d)}),f.addEventListener("message",function(d){s.onmessage(d)}),f.addEventListener("error",function(d){s.onerror(d)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function h(d,p){var g=document.createEvent("CustomEvent");return g.initCustomEvent(d,!1,!1,p),g}this.open=function(d){if(l=new WebSocket(s.url,r||[]),d){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(h("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var p=l,g=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,p.close(),c=!1},s.timeoutInterval);l.onopen=function(y){clearTimeout(g),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var m=h("open");m.isReconnect=d,d=!1,f.dispatchEvent(m)},l.onclose=function(y){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(h("close"));else{s.readyState=WebSocket.CONNECTING;var m=h("connecting");m.code=y.code,m.reason=y.reason,m.wasClean=y.wasClean,f.dispatchEvent(m),!d&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(h("close")));var b=s.reconnectInterval*Math.pow(s.reconnectDecay,s.reconnectAttempts);setTimeout(function(){s.reconnectAttempts++,s.open(!0)},b>s.maxReconnectInterval?s.maxReconnectInterval:b)}},l.onmessage=function(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,y.data);var m=h("message");m.data=y.data,f.dispatchEvent(m)},l.onerror=function(y){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,y),f.dispatchEvent(h("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(d){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,d),l.send(d);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(d,p){typeof d>"u"&&(d=1e3),u=!0,l&&l.close(d,p)},this.refresh=function(){l&&l.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})})(Qb)),Qb.exports}var dke=fke();const hke=Wy(dke);Lt.interceptors.request.use(e=>(e.baseURL=jy(Cr.value),e.headers.Authorization="Bearer "+Cr.value?.password,e));const pke=["/delay","/weights"];Lt.interceptors.response.use(null,e=>{if(e.status===401&&si.value){const t=si.value;si.value=null,Da.push({name:an.setup,query:{editBackend:t}}),Zr(()=>{pr({content:"unauthorizedTip"})})}else if(!pke.some(t=>e.config?.url?.endsWith(t))){const t=e.response?.data?.message||e.message;return pr({key:t,content:`${e.config?.url}
${t}`,type:"alert-error"}),Promise.reject(e)}return e});const wp=Te(),Ew=Te(!1),vke=()=>Lt.get("/version"),oa=ge(()=>wp.value?.includes("sing-box")),tR=Te("1.105.0");mt(Cr,async e=>{if(e){const{data:t}=await vke();if(wp.value=t?.version||"",oa.value||!$h.value||Cr.value?.disableUpgradeCore)return;Ew.value=await Uke(),Ew.value&&Eg.value&&mY("auto")}},{immediate:!0});const gke=()=>Lt.get("/proxies"),mke=(e,t)=>Lt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),yke=e=>Lt.delete(`/proxies/${encodeURIComponent(e)}`),XU=(e,t,n)=>Lt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),KU=(e,t,n)=>Lt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),_ke=()=>Lt.get("/group/weights"),bke=e=>Lt.get(`/group/${encodeURIComponent(e)}/weights`),ZU=()=>Lt.post("/cache/smart/flush"),Ske=()=>Lt.get("/providers/proxies"),vY=e=>Lt.put(`/providers/proxies/${encodeURIComponent(e)}`),wke=e=>Lt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),xke=()=>Lt.get("/rules"),Tke=()=>Lt.get("/providers/rules"),IO=e=>Lt.put(`/providers/rules/${encodeURIComponent(e)}`),mv=e=>Lt.delete(`/connections/${e}`),Cke=()=>Lt.delete("/connections"),Eke=()=>Lt.get("/configs"),Ike=e=>Lt.patch("/configs",e),Ake=()=>Lt.post("/cache/fakeip/flush"),Pke=()=>Lt.post("/cache/dns/flush"),Rke=()=>Lt.put("/configs?reload=true",{path:"",payload:""}),gY=()=>Lt.post("/upgrade/ui"),Mke=()=>Lt.post("/configs/geo"),mY=e=>{const t=e==="auto"?"/upgrade":`/upgrade?channel=${e}`;return Lt.post(t)},Dke=()=>Lt.post("/restart"),Oke=e=>Lt.get("/dns/query",{params:e}),sT=(e,t)=>{const n=Cr.value,r=new URL(`${jy(n).replace("http","ws")}/${e}`);r.searchParams.append("token",n?.password||""),t&&Object.entries(t).forEach(([l,u])=>{r.searchParams.append(l,u)});const i=Te(),o=new hke(r.toString()),a=()=>{o.close()},s=({data:l})=>{i.value=JSON.parse(l)};return o.onmessage=e==="logs"?s:xr.debounce(s,100),{data:i,close:a}},Lke=()=>sT("connections"),kke=(e={})=>sT("logs",e),Nke=()=>sT("memory"),Fke=()=>sT("traffic"),nR=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${jy(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},$ke=1e3*60*60;async function AO(e,t){const n="cache/"+e,r=localStorage.getItem(n);if(r)try{const s=JSON.parse(r);if(Date.now()-s.timestamp<$ke&&s.version===t)return s.data;localStorage.removeItem(n)}catch(s){console.warn("Failed to parse cache for",e,s)}const i=await fetch(e);if(!i.ok)throw new Error(`Fetch failed: ${i.status} ${i.statusText}`);const o=await i.json(),a={timestamp:Date.now(),version:t,data:o};return localStorage.setItem(n,JSON.stringify(a)),o}const Bke=async()=>{const{tag_name:e}=await AO("https://api.github.com/repos/Zephyruso/zashboard/releases/latest",tR.value);return!!(e&&e!==`v${tR.value}`)},q2=async(e,t)=>{const{assets:n}=await AO(e,t);return!n.some(({name:i})=>i.includes(t))},Uke=async()=>{const e=/(alpha-smart|alpha|beta|meta)-?(\w+)/.exec(wp.value);if(!e){const{tag_name:r}=await AO("https://api.github.com/repos/MetaCubeX/mihomo/releases/latest",wp.value);return!!(r&&!r.endsWith(wp.value))}const t=e[1],n=e[2];return t==="meta"?await q2("https://api.github.com/repos/MetaCubeX/mihomo/releases/latest",n):t==="alpha"?await q2("https://api.github.com/repos/MetaCubeX/mihomo/releases/tags/Prerelease-Alpha",n):t==="alpha-smart"?await q2("https://api.github.com/repos/vernesong/mihomo/releases/tags/Prerelease-Alpha",n):!1},Jf=60,wd=new Array(Jf).fill(0).map((e,t)=>({name:t,value:e})),yY=Te(0),Gg=Te([...wd]),eS=Te([...wd]),_Y=Te(0),bY=Te(0),Wg=Te([...wd]),jg=Te([...wd]);let qU;const Vke=()=>{qU?.(),Wg.value=[...wd],jg.value=[...wd],Gg.value=[...wd];const{data:e,close:t}=Nke(),n=mt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();a.inuse!==0&&(yY.value=a.inuse,Gg.value.push({value:a.inuse,name:s}),eS.value.push({value:cs.value.length,name:s}),Gg.value=Gg.value.slice(-1*Jf),eS.value=eS.value.slice(-1*Jf))}),{data:r,close:i}=Fke(),o=mt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();_Y.value=a.down,bY.value=a.up,Wg.value.push({value:a.down,name:s}),jg.value.push({value:a.up,name:s}),Wg.value=Wg.value.slice(-1*Jf),jg.value=jg.value.slice(-1*Jf)});qU=()=>{t(),i(),n(),o()}},rR=e=>{const t=$n.value[e];return t?t.all?.length?!0:[$r.Dns,$r.Compatible,$r.Direct,$r.Reject,$r.RejectDrop,$r.Pass,$r.Fallback,$r.URLTest,$r.LoadBalance,$r.Selector,$r.Smart].includes(t.type.toLowerCase()):!1},SY=e=>`${e.metadata.host||e.metadata.sniffHost||e.metadata.destinationIP}:${e.metadata.destinationPort}`,wY=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",PO=e=>$n.value[xr.head(e.chains)||""]?.type.toLowerCase()===$r.Direct&&e.metadata.remoteDestination?e.metadata.remoteDestination:e.metadata.destinationIP||e.metadata.host,xY=e=>{const t=PO(e);return uc.IPv4.isIPv4(t)?"IPv4":uc.IPv6.isIPv6(t)?"IPv6":"FQDN"},JU=e=>{const t=[...e.chains];return ud.value===Cd.NORMAL&&t.reverse(),t.join("")},TY=e=>`${e.metadata.type} | ${e.metadata.network}`,Iw=e=>e.metadata.inboundUser||e.metadata.inboundName||e.metadata.inboundPort||"-",CY=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name<Jf+1?"":`
<div class="flex items-center my-2 gap-1">
<div class="w-4 h-4 rounded-full" style="background-color: ${e.color}"></div>
${e.seriesName}
(${ui(e.data.name).format("HH:mm:ss")}): ${nr(e.data.value,{binary:r})}${n}
</div>`},vc=e=>e===ai?"":e<sc.value?"text-green-500":e<Gl.value?"text-yellow-500":"text-red-500",gc=ge(()=>Object.values(an).filter(e=>![an.setup,!jh.value&&an.overview].includes(e))),EY=()=>{document.querySelectorAll(".custom-theme").forEach(e=>{e.remove()}),Km.value.forEach(e=>{const t=document.createElement("style"),n=Object.entries(e).filter(([r])=>!["prefersdark","default","name","type","id"].includes(r)).map(([r,i])=>`${r}:${i}`).join(";");t.innerHTML=`[data-theme="${e.name}"] {
${n}
}`,t.className=`custom-theme ${e.name}`,document.head.appendChild(t)})},RO=e=>Reflect.has(CS.value,e)?CS.value[e]:$n.value[e]?.hidden,IY=()=>{pr({content:"upgradeSuccess",type:"alert-success"})},Hke=()=>{const e=YR(),t=ge(()=>gc.value.map((r,i)=>({key:(i+1).toString(),route:r}))),n=r=>{if(r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||!Cr.value||r.ctrlKey||r.metaKey||r.shiftKey||r.altKey)return;const i=r.key,o=t.value.find(a=>a.key===i);o&&(r.preventDefault(),e.push({name:o.route}))};return Er(()=>{document.addEventListener("keydown",n)}),Bc(()=>{document.removeEventListener("keydown",n)}),{routeShortcuts:t}},zke=Ze({__name:"App",setup(e){const t=Te(),n=Te();Wle(n);const r={[ad.TWEMOJI]:{[Ri.MI_SANS]:"font-MiSans-Twemoji",[Ri.SARASA_UI]:"font-SarasaUI-Twemoji",[Ri.PING_FANG]:"font-PingFang-Twemoji",[Ri.FIRA_SANS]:"font-FiraSans-Twemoji",[Ri.SYSTEM_UI]:"font-SystemUI-Twemoji"},[ad.NOTO_COLOR_EMOJI]:{[Ri.MI_SANS]:"font-MiSans-NotoEmoji",[Ri.SARASA_UI]:"font-SarasaUI-NotoEmoji",[Ri.PING_FANG]:"font-PingFang-NotoEmoji",[Ri.FIRA_SANS]:"font-FiraSans-NotoEmoji",[Ri.SYSTEM_UI]:"font-SystemUI-NotoEmoji"}},i=ge(()=>r[j_.value]?.[fp.value]||r[ad.TWEMOJI][Ri.SYSTEM_UI]),o=()=>{const u=getComputedStyle(t.value).getPropertyValue("background-color").trim(),c=document.querySelector('meta[name="theme-color"]');c&&c.setAttribute("content",u)};mt(RH,o),mt(tm,()=>{tm.value?(document.body.style.overscrollBehavior="none",document.documentElement.style.overscrollBehavior="none"):(document.body.style.overscrollBehavior="",document.documentElement.style.overscrollBehavior="")},{immediate:!0});const a=(u,c)=>u.host===c.host&&u.port===c.port&&u.password===c.password&&u.protocol===c.protocol&&u.secondaryPath===c.secondaryPath;(()=>{const u=MH();if(u){for(const c of Or.value)if(a(c,u)){si.value=c.uuid;return}}})(),Er(()=>{Kb.value&&Hj(),mt(mS,()=>{document.body.setAttribute("data-theme",mS.value),o()},{immediate:!0})});const l=ge(()=>!Xb.value||iu.value===0?"":`blur-intensity-${iu.value}`);return Hke(),(u,c)=>(H(),K("div",{ref_key:"app",ref:t,id:"app-content",class:ct(["bg-base-100 flex h-dvh w-screen overflow-x-hidden",i.value,L(Xb)&&`custom-background-${L(em)} custom-background bg-cover bg-center`,l.value]),style:Kn(L(Xb))},[z(L(jR)),R("div",{ref_key:"toast",ref:n,class:"toast-sm toast toast-end toast-top z-9999 max-w-96 text-sm md:translate-y-8"},null,512)],6))}}),Gke=()=>{{const e=t=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.media="print",n.onload=()=>{n.media="all"},document.head.appendChild(n)};e("https://unpkg.com/subsetted-fonts@latest/MiSans-VF/MiSans-VF.css"),e("https://unpkg.com/subsetted-fonts@latest/SarasaUiSC-Regular/SarasaUiSC-Regular.css"),e("https://unpkg.com/subsetted-fonts@latest/PingFangSC-Regular/PingFangSC-Regular.css"),e("https://unpkg.com/@fontsource/fira-sans")}};EY();Gke();const MO=Wm(zke);MO.use(Da);MO.use(Yy);MO.mount("#app");