var YK=Object.defineProperty;var XD=e=>{throw TypeError(e)};var KK=(e,t,n)=>t in e?YK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _x=(e,t,n)=>KK(e,typeof t!="symbol"?t+"":t,n),YD=(e,t,n)=>t.has(e)||XD("Cannot "+n);var qa=(e,t,n)=>(YD(e,t,"read from private field"),n?n.call(e):t.get(e)),Dy=(e,t,n)=>t.has(e)?XD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Vs=(e,t,n,r)=>(YD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var bx=(e,t,n,r)=>({set _(i){Vs(e,t,i,n)},get _(){return qa(e,t,r)}});(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)}})();var My=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tb(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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 i_={exports:{}},ZK=i_.exports,KD;function _I(){return KD||(KD=1,function(e,t){(function(n,r){e.exports=r()})(ZK,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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($){var z=["th","st","nd","rd"],B=$%100;return"["+$+(z[(B-20)%10]||z[B]||z[0])+"]"}},S=function($,z,B){var K=String($);return!K||K.length>=z?$:""+Array(z+1-K.length).join(B)+$},w={s:S,z:function($){var z=-$.utcOffset(),B=Math.abs(z),K=Math.floor(B/60),j=B%60;return(z<=0?"+":"-")+S(K,2,"0")+":"+S(j,2,"0")},m:function $(z,B){if(z.date()1)return $(me[0])}else{var ge=z.name;T[ge]=z,j=ge}return!K&&j&&(C=j),j||!K&&C},O=function($,z){if(R($))return $.clone();var B=typeof z=="object"?z:{};return B.date=$,B.args=arguments,new M(B)},P=w;P.l=I,P.i=R,P.w=function($,z){return O($,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var M=function(){function $(B){this.$L=I(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[E]=!0}var z=$.prototype;return z.parse=function(B){this.$d=function(K){var j=K.date,le=K.utc;if(j===null)return new Date(NaN);if(P.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var me=j.match(_);if(me){var ge=me[2]-1||0,De=(me[7]||"0").substring(0,3);return le?new Date(Date.UTC(me[1],ge,me[3]||1,me[4]||0,me[5]||0,me[6]||0,De)):new Date(me[1],ge,me[3]||1,me[4]||0,me[5]||0,me[6]||0,De)}}return new Date(j)}(B),this.init()},z.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()},z.$utils=function(){return P},z.isValid=function(){return this.$d.toString()!==m},z.isSame=function(B,K){var j=O(B);return this.startOf(K)<=j&&j<=this.endOf(K)},z.isAfter=function(B,K){return O(B)=2&&y%10<=4&&(y%100<10||y%100>=20)?b[1]:b[2])}var f=function(v,m){return u.test(m)?o[v.month()]:a[v.month()]};f.s=a,f.f=o;var d=function(v,m){return u.test(m)?s[v.month()]:l[v.month()]};d.s=l,d.f=s;var h={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:d,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(v){return v},meridiem:function(v){return v<4?"ночи":v<12?"утра":v<17?"дня":"вечера"}};return i.default.locale(h,null,!0),h})}(o_)),o_.exports}QK();var a_={exports:{}},eZ=a_.exports,qD;function tZ(){return qD||(qD=1,function(e,t){(function(n,r){e.exports=r(_I())})(eZ,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})}(a_)),a_.exports}tZ();var s_={exports:{}},nZ=s_.exports,JD;function rZ(){return JD||(JD=1,function(e,t){(function(n,r){e.exports=r()})(nZ,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,d){return o.fromToBase(u,c,f,d)}i.en.relativeTime=a,o.fromToBase=function(u,c,f,d,h){for(var v,m,_,y=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"}],S=b.length,w=0;w0,T<=C.r||!C.r){T<=1&&w>0&&(C=b[w-1]);var E=y[C.l];h&&(T=h(""+T)),m=typeof E=="string"?E.replace("%d",T):E(T,c,C.l,_);break}}if(c)return m;var R=_?y.future:y.past;return typeof R=="function"?R(m):R.replace("%s",m)},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)}}})}(s_)),s_.exports}var iZ=rZ();const oZ=rm(iZ);var l_={exports:{}},aZ=l_.exports,QD;function sZ(){return QD||(QD=1,function(e,t){(function(n,r){e.exports=r()})(aZ,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}}})}(l_)),l_.exports}var lZ=sZ();const uZ=rm(lZ);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Ur(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Jt={},of=[],Br=()=>{},$d=()=>!1,Hu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Eb=e=>e.startsWith("onUpdate:"),Qt=Object.assign,Ab=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cZ=Object.prototype.hasOwnProperty,cn=(e,t)=>cZ.call(e,t),Qe=Array.isArray,af=e=>Vf(e)==="[object Map]",Gu=e=>Vf(e)==="[object Set]",YT=e=>Vf(e)==="[object Date]",u$=e=>Vf(e)==="[object RegExp]",bt=e=>typeof e=="function",Rt=e=>typeof e=="string",Di=e=>typeof e=="symbol",vn=e=>e!==null&&typeof e=="object",Ib=e=>(vn(e)||bt(e))&&bt(e.then)&&bt(e.catch),bI=Object.prototype.toString,Vf=e=>bI.call(e),c$=e=>Vf(e).slice(8,-1),im=e=>Vf(e)==="[object Object]",Rb=e=>Rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fl=Ur(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),f$=Ur("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Pb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fZ=/-(\w)/g,$n=Pb(e=>e.replace(fZ,(t,n)=>n?n.toUpperCase():"")),dZ=/\B([A-Z])/g,fi=Pb(e=>e.replace(dZ,"-$1").toLowerCase()),zu=Pb(e=>e.charAt(0).toUpperCase()+e.slice(1)),sf=Pb(e=>e?`on${zu(e)}`:""),li=(e,t)=>!Object.is(e,t),lf=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},lg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ug=e=>{const t=Rt(e)?Number(e):NaN;return isNaN(t)?e:t};let eM;const om=()=>eM||(eM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),hZ=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function pZ(e){return hZ.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function vZ(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const gZ={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"},mZ={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]:"HOISTED",[-2]:"BAIL"},yZ={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"},_Z={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},bZ={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},SZ="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",wI=Ur(SZ),wZ=wI,tM=2;function d$(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=t){for(let l=s-tM;l<=s+tM||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 d=t-(o-(c+f)),h=Math.max(1,n>o?c-d:n-t);a.push(" | "+" ".repeat(d)+"^".repeat(h))}else if(l>s){if(n>o){const d=Math.max(Math.min(n-o,c),1);a.push(" | "+"^".repeat(d))}o+=c+f}}break}return a.join(` `)}function Ir(e){if(Qe(e)){const t={};for(let n=0;n{if(n){const r=n.split(CZ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function EZ(e){if(!e)return"";if(Rt(e))return e;let t="";for(const n in e){const r=e[n];if(Rt(r)||typeof r=="number"){const i=n.startsWith("--")?n:fi(n);t+=`${i}:${r};`}}return t}function ot(e){let t="";if(Rt(e))t=e;else if(Qe(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,Sx={};function MZ(e){if(Sx.hasOwnProperty(e))return Sx[e];const t=DZ.test(e);return t&&console.error(`unsafe attribute name: ${e}`),Sx[e]=!t}const LZ={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},NZ=Ur("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"),kZ=Ur("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"),FZ=Ur("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 $Z(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const BZ=/["'&<>]/;function VZ(e){const t=""+e,n=BZ.exec(t);if(!n)return t;let r="",i,o,a=0;for(o=n.index;o||--!>|?@[\\\]^`{|}~]/g;function GZ(e,t){return e.replace(b$,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function zZ(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r_l(n,t))}const S$=e=>!!(e&&e.__v_isRef===!0),ie=e=>Rt(e)?e:e==null?"":Qe(e)||vn(e)&&(e.toString===bI||!bt(e.toString))?S$(e)?ie(e.value):JSON.stringify(e,w$,2):String(e),w$=(e,t)=>S$(t)?w$(e,t.value):af(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[xx(r,o)+" =>"]=i,n),{})}:Gu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>xx(n))}:Di(t)?xx(t):vn(t)&&!Qe(t)&&!im(t)?String(t):t,xx=(e,t="")=>{var n;return Di(e)?`Symbol(${(n=e.description)!=null?n:t})`:e},WZ=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:of,EMPTY_OBJ:Jt,NO:$d,NOOP:Br,PatchFlagNames:mZ,PatchFlags:gZ,ShapeFlags:yZ,SlotFlags:_Z,camelize:$n,capitalize:zu,cssVarNameEscapeSymbolsRE:b$,def:SI,escapeHtml:VZ,escapeHtmlComment:HZ,extend:Qt,genCacheKey:vZ,genPropsAccessExp:pZ,generateCodeFrame:d$,getEscapedCssVarName:GZ,getGlobalThis:om,hasChanged:li,hasOwn:cn,hyphenate:fi,includeBooleanAttr:CI,invokeArrayFns:lf,isArray:Qe,isBooleanAttr:OZ,isBuiltInDirective:f$,isDate:YT,isFunction:bt,isGloballyAllowed:wI,isGloballyWhitelisted:wZ,isHTMLTag:p$,isIntegerKey:Rb,isKnownHtmlAttr:NZ,isKnownMathMLAttr:FZ,isKnownSvgAttr:kZ,isMap:af,isMathMLTag:g$,isModelListener:Eb,isObject:vn,isOn:Hu,isPlainObject:im,isPromise:Ib,isRegExp:u$,isRenderableAttrValue:$Z,isReservedProp:fl,isSSRSafeAttrName:MZ,isSVGTag:v$,isSet:Gu,isSpecialBooleanAttr:_$,isString:Rt,isSymbol:Di,isVoidTag:m$,looseEqual:_l,looseIndexOf:am,looseToNumber:lg,makeMap:Ur,normalizeClass:ot,normalizeProps:h$,normalizeStyle:Ir,objectToString:bI,parseStringStyle:xI,propsToAttrMap:LZ,remove:Ab,slotFlagsText:bZ,stringifyStyle:EZ,toDisplayString:ie,toHandlerKey:sf,toNumber:ug,toRawType:c$,toTypeString:Vf},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ti;class TI{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ti,!t&&Ti&&(this.index=(Ti.scopes||(Ti.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;t0)return;if(bv){let t=bv;for(bv=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;_v;){let t=_v;for(_v=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 E$(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function A$(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),RI(r),jZ(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function KT(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(I$(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function I$(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fg))return;e.globalVersion=fg;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!KT(e)){e.flags&=-3;return}const n=Fn,r=Fa;Fn=e,Fa=!0;try{E$(e);const i=e.fn(e._value);(t.version===0||li(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Fn=n,Fa=r,A$(e),e.flags&=-3}}function RI(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)RI(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jZ(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function XZ(e,t){e.effect instanceof cg&&(e=e.effect.fn);const n=new cg(e);t&&Qt(n,t);try{n.run()}catch(i){throw n.stop(),i}const r=n.run.bind(n);return r.effect=n,r}function YZ(e){e.effect.stop()}let Fa=!0;const R$=[];function Wu(){R$.push(Fa),Fa=!1}function ju(){const e=R$.pop();Fa=e===void 0?!0:e}function nM(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Fn;Fn=void 0;try{t()}finally{Fn=n}}}let fg=0;class KZ{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 Db{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Fn||!Fa||Fn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Fn)n=this.activeLink=new KZ(Fn,this),Fn.deps?(n.prevDep=Fn.depsTail,Fn.depsTail.nextDep=n,Fn.depsTail=n):Fn.deps=Fn.depsTail=n,P$(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=Fn.depsTail,n.nextDep=void 0,Fn.depsTail.nextDep=n,Fn.depsTail=n,Fn.deps===n&&(Fn.deps=r)}return n}trigger(t){this.version++,fg++,this.notify(t)}notify(t){AI();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{II()}}}function P$(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)P$(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const v1=new WeakMap,uf=Symbol(""),ZT=Symbol(""),dg=Symbol("");function ui(e,t,n){if(Fa&&Fn){let r=v1.get(e);r||v1.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Db),i.map=r,i.key=n),i.track()}}function tl(e,t,n,r,i,o){const a=v1.get(e);if(!a){fg++;return}const s=l=>{l&&l.trigger()};if(AI(),t==="clear")a.forEach(s);else{const l=Qe(e),u=l&&Rb(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===dg||!Di(d)&&d>=c)&&s(f)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(dg)),t){case"add":l?u&&s(a.get("length")):(s(a.get(uf)),af(e)&&s(a.get(ZT)));break;case"delete":l||(s(a.get(uf)),af(e)&&s(a.get(ZT)));break;case"set":af(e)&&s(a.get(uf));break}}II()}function ZZ(e,t){const n=v1.get(e);return n&&n.get(t)}function ld(e){const t=an(e);return t===e?t:(ui(t,"iterate",dg),Io(e)?t:t.map(ci))}function Mb(e){return ui(e=an(e),"iterate",dg),e}const qZ={__proto__:null,[Symbol.iterator](){return Tx(this,Symbol.iterator,ci)},concat(...e){return ld(this).concat(...e.map(t=>Qe(t)?ld(t):t))},entries(){return Tx(this,"entries",e=>(e[1]=ci(e[1]),e))},every(e,t){return Us(this,"every",e,t,void 0,arguments)},filter(e,t){return Us(this,"filter",e,t,n=>n.map(ci),arguments)},find(e,t){return Us(this,"find",e,t,ci,arguments)},findIndex(e,t){return Us(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Us(this,"findLast",e,t,ci,arguments)},findLastIndex(e,t){return Us(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Us(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ex(this,"includes",e)},indexOf(...e){return Ex(this,"indexOf",e)},join(e){return ld(this).join(e)},lastIndexOf(...e){return Ex(this,"lastIndexOf",e)},map(e,t){return Us(this,"map",e,t,void 0,arguments)},pop(){return vp(this,"pop")},push(...e){return vp(this,"push",e)},reduce(e,...t){return rM(this,"reduce",e,t)},reduceRight(e,...t){return rM(this,"reduceRight",e,t)},shift(){return vp(this,"shift")},some(e,t){return Us(this,"some",e,t,void 0,arguments)},splice(...e){return vp(this,"splice",e)},toReversed(){return ld(this).toReversed()},toSorted(e){return ld(this).toSorted(e)},toSpliced(...e){return ld(this).toSpliced(...e)},unshift(...e){return vp(this,"unshift",e)},values(){return Tx(this,"values",ci)}};function Tx(e,t,n){const r=Mb(e),i=r[t]();return r!==e&&!Io(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const JZ=Array.prototype;function Us(e,t,n,r,i,o){const a=Mb(e),s=a!==e&&!Io(e),l=a[t];if(l!==JZ[t]){const f=l.apply(e,o);return s?ci(f):f}let u=n;a!==e&&(s?u=function(f,d){return n.call(this,ci(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function rM(e,t,n,r){const i=Mb(e);let o=n;return i!==e&&(Io(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,ci(s),l,e)}),i[t](o,...r)}function Ex(e,t,n){const r=an(e);ui(r,"iterate",dg);const i=r[t](...n);return(i===-1||i===!1)&&kb(n[0])?(n[0]=an(n[0]),r[t](...n)):i}function vp(e,t,n=[]){Wu(),AI();const r=an(e)[t].apply(e,n);return II(),ju(),r}const QZ=Ur("__proto__,__v_isRef,__isVue"),O$=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Di));function eq(e){Di(e)||(e=String(e));const t=an(this);return ui(t,"has",e),t.hasOwnProperty(e)}class D${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?$$:F$:o?k$:N$).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Qe(t);if(!i){let l;if(a&&(l=qZ[n]))return l;if(n==="hasOwnProperty")return eq}const s=Reflect.get(t,n,at(t)?t:r);return(Di(n)?O$.has(n):QZ(n))||(i||ui(t,"get",n),o)?s:at(s)?a&&Rb(n)?s:s.value:vn(s)?i?sm(s):Va(s):s}}class M$ extends D${constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=Du(o);if(!Io(r)&&!Du(r)&&(o=an(o),r=an(r)),!Qe(t)&&at(o)&&!at(r))return l?!1:(o.value=r,!0)}const a=Qe(t)&&Rb(n)?Number(n)e,Ly=e=>Reflect.getPrototypeOf(e);function oq(e,t,n){return function(...r){const i=this.__v_raw,o=an(i),a=af(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?qT:t?JT:ci;return!t&&ui(o,"iterate",l?ZT:uf),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ny(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aq(e,t){const n={get(i){const o=this.__v_raw,a=an(o),s=an(i);e||(li(i,s)&&ui(a,"get",i),ui(a,"get",s));const{has:l}=Ly(a),u=t?qT:e?JT:ci;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&&ui(an(i),"iterate",uf),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=an(o),s=an(i);return e||(li(i,s)&&ui(a,"has",i),ui(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=an(s),u=t?qT:e?JT:ci;return!e&&ui(l,"iterate",uf),s.forEach((c,f)=>i.call(o,u(c),u(f),a))}};return Qt(n,e?{add:Ny("add"),set:Ny("set"),delete:Ny("delete"),clear:Ny("clear")}:{add(i){!t&&!Io(i)&&!Du(i)&&(i=an(i));const o=an(this);return Ly(o).has.call(o,i)||(o.add(i),tl(o,"add",i,i)),this},set(i,o){!t&&!Io(o)&&!Du(o)&&(o=an(o));const a=an(this),{has:s,get:l}=Ly(a);let u=s.call(a,i);u||(i=an(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?li(o,c)&&tl(a,"set",i,o):tl(a,"add",i,o),this},delete(i){const o=an(this),{has:a,get:s}=Ly(o);let l=a.call(o,i);l||(i=an(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&tl(o,"delete",i,void 0),u},clear(){const i=an(this),o=i.size!==0,a=i.clear();return o&&tl(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=oq(i,e,t)}),n}function Lb(e,t){const n=aq(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(cn(n,i)&&i in r?n:r,i,o)}const sq={get:Lb(!1,!1)},lq={get:Lb(!1,!0)},uq={get:Lb(!0,!1)},cq={get:Lb(!0,!0)},N$=new WeakMap,k$=new WeakMap,F$=new WeakMap,$$=new WeakMap;function fq(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dq(e){return e.__v_skip||!Object.isExtensible(e)?0:fq(c$(e))}function Va(e){return Du(e)?e:Nb(e,!1,tq,sq,N$)}function PI(e){return Nb(e,!1,rq,lq,k$)}function sm(e){return Nb(e,!0,nq,uq,F$)}function hq(e){return Nb(e,!0,iq,cq,$$)}function Nb(e,t,n,r,i){if(!vn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=dq(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Cu(e){return Du(e)?Cu(e.__v_raw):!!(e&&e.__v_isReactive)}function Du(e){return!!(e&&e.__v_isReadonly)}function Io(e){return!!(e&&e.__v_isShallow)}function kb(e){return e?!!e.__v_raw:!1}function an(e){const t=e&&e.__v_raw;return t?an(t):e}function B$(e){return!cn(e,"__v_skip")&&Object.isExtensible(e)&&SI(e,"__v_skip",!0),e}const ci=e=>vn(e)?Va(e):e,JT=e=>vn(e)?sm(e):e;function at(e){return e?e.__v_isRef===!0:!1}function ke(e){return V$(e,!1)}function Uf(e){return V$(e,!0)}function V$(e,t){return at(e)?e:new pq(e,t)}class pq{constructor(t,n){this.dep=new Db,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:an(t),this._value=n?t:ci(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Io(t)||Du(t);t=r?t:an(t),li(t,n)&&(this._rawValue=t,this._value=r?t:ci(t),this.dep.trigger())}}function QT(e){e.dep&&e.dep.trigger()}function N(e){return at(e)?e.value:e}function bs(e){return bt(e)?e():N(e)}const vq={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return at(i)&&!at(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function OI(e){return Cu(e)?e:new Proxy(e,vq)}class gq{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Db,{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 DI(e){return new gq(e)}function mq(e){const t=Qe(e)?new Array(e.length):{};for(const n in e)t[n]=H$(e,n);return t}class yq{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 ZZ(an(this._object),this._key)}}class _q{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 U$(e,t,n){return at(e)?e:bt(e)?new _q(e):vn(e)&&arguments.length>1?H$(e,t,n):ke(e)}function H$(e,t,n){const r=e[t];return at(r)?r:new yq(e,t,n)}class bq{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Db(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fg-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Fn!==this)return T$(this,!0),!0}get value(){const t=this.dep.track();return I$(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Sq(e,t,n=!1){let r,i;return bt(e)?r=e:(r=e.get,i=e.set),new bq(r,i,n)}const wq={GET:"get",HAS:"has",ITERATE:"iterate"},xq={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},ky={},g1=new WeakMap;let iu;function Cq(){return iu}function G$(e,t=!1,n=iu){if(n){let r=g1.get(n);r||g1.set(n,r=[]),r.push(e)}}function Tq(e,t,n=Jt){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=w=>i?w:Io(w)||i===!1||i===0?nl(w,1):nl(w);let c,f,d,h,v=!1,m=!1;if(at(e)?(f=()=>e.value,v=Io(e)):Cu(e)?(f=()=>u(e),v=!0):Qe(e)?(m=!0,v=e.some(w=>Cu(w)||Io(w)),f=()=>e.map(w=>{if(at(w))return w.value;if(Cu(w))return u(w);if(bt(w))return l?l(w,2):w()})):bt(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Wu();try{d()}finally{ju()}}const w=iu;iu=c;try{return l?l(e,3,[h]):e(h)}finally{iu=w}}:f=Br,t&&i){const w=f,C=i===!0?1/0:i;f=()=>nl(w(),C)}const _=Ob(),y=()=>{c.stop(),_&&_.active&&Ab(_.effects,c)};if(o&&t){const w=t;t=(...C)=>{w(...C),y()}}let b=m?new Array(e.length).fill(ky):ky;const S=w=>{if(!(!(c.flags&1)||!c.dirty&&!w))if(t){const C=c.run();if(i||v||(m?C.some((T,E)=>li(T,b[E])):li(C,b))){d&&d();const T=iu;iu=c;try{const E=[C,b===ky?void 0:m&&b[0]===ky?[]:b,h];l?l(t,3,E):t(...E),b=C}finally{iu=T}}}else c.run()};return s&&s(S),c=new cg(f),c.scheduler=a?()=>a(S,!1):S,h=w=>G$(w,!1,c),d=c.onStop=()=>{const w=g1.get(c);if(w){if(l)l(w,4);else for(const C of w)C();g1.delete(c)}},t?r?S(!0):b=c.run():a?a(S.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function nl(e,t=1/0,n){if(t<=0||!vn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,at(e))nl(e.value,t,n);else if(Qe(e))for(let r=0;r{nl(r,t,n)});else if(im(e)){for(const r in e)nl(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&nl(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const z$=[];function Eq(e){z$.push(e)}function Aq(){z$.pop()}function Iq(e,t){}const Rq={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"},Pq={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 kh(e,t,n,r){try{return r?e(...r):e()}catch(i){Hf(i,t,n)}}function ca(e,t,n,r){if(bt(e)){const i=kh(e,t,n,r);return i&&Ib(i)&&i.catch(o=>{Hf(o,t,n)}),i}if(Qe(e)){const i=[];for(let o=0;o>>1,i=Ai[r],o=pg(i);o=pg(n)?Ai.push(e):Ai.splice(Dq(t),0,e),e.flags|=1,j$()}}function j$(){m1||(m1=W$.then(X$))}function hg(e){Qe(e)?Xd.push(...e):ou&&e.id===-1?ou.splice(Pd+1,0,e):e.flags&1||(Xd.push(e),e.flags|=1),j$()}function iM(e,t,n=os+1){for(;npg(n)-pg(r));if(Xd.length=0,ou){ou.push(...t);return}for(ou=t,Pd=0;Pde.id==null?e.flags&2?-1:1/0:e.id;function X$(e){try{for(os=0;osOd.emit(i,...o)),Fy=[]):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=>{Y$(o,t)}),setTimeout(()=>{Od||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Fy=[])},3e3)):Fy=[]}let Rr=null,Fb=null;function vg(e){const t=Rr;return Rr=e,Fb=e&&e.type.__scopeId||null,t}function Mq(e){Fb=e}function Lq(){Fb=null}const Nq=e=>er;function er(e,t=Rr,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&sE(-1);const o=vg(t);let a;try{a=e(...i)}finally{vg(o),r._d&&sE(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function gt(e,t){if(Rr===null)return e;const n=fm(Rr),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Sv=e=>e&&(e.disabled||e.disabled===""),oM=e=>e&&(e.defer||e.defer===""),aM=e=>typeof SVGElement<"u"&&e instanceof SVGElement,sM=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,eE=(e,t)=>{const n=e&&e.to;return Rt(n)?t?t(n):null:n},q$={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:m,createComment:_}}=u,y=Sv(t.props);let{shapeFlag:b,children:S,dynamicChildren:w}=t;if(e==null){const C=t.el=m(""),T=t.anchor=m("");h(C,n,r),h(T,n,r);const E=(I,O)=>{b&16&&(i&&i.isCE&&(i.ce._teleportTarget=I),c(S,I,O,i,o,a,s,l))},R=()=>{const I=t.target=eE(t.props,v),O=J$(I,t,m,h);I&&(a!=="svg"&&aM(I)?a="svg":a!=="mathml"&&sM(I)&&(a="mathml"),y||(E(I,O),u_(t,!1)))};y&&(E(n,T),u_(t,!0)),oM(t.props)?Er(()=>{R(),t.el.__isMounted=!0},o):R()}else{if(oM(t.props)&&!e.el.__isMounted){Er(()=>{q$.process(e,t,n,r,i,o,a,s,l,u),delete e.el.__isMounted},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,R=Sv(e.props),I=R?n:T,O=R?C:E;if(a==="svg"||aM(T)?a="svg":(a==="mathml"||sM(T))&&(a="mathml"),w?(d(e.dynamicChildren,w,I,i,o,a,s),zI(e,t,!0)):l||f(e,t,I,O,i,o,a,s,!1),y)R?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$y(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const P=t.target=eE(t.props,v);P&&$y(t,P,null,u,0)}else R&&$y(t,T,E,u,1);u_(t,y)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(i(u),i(c)),o&&i(l),a&16){const h=o||!Sv(d);for(let v=0;v{e.isMounted=!0}),um(()=>{e.isUnmounting=!0}),e}const Wo=[Function,Array],NI={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wo,onEnter:Wo,onAfterEnter:Wo,onEnterCancelled:Wo,onBeforeLeave:Wo,onLeave:Wo,onAfterLeave:Wo,onLeaveCancelled:Wo,onBeforeAppear:Wo,onAppear:Wo,onAfterAppear:Wo,onAppearCancelled:Wo},Q$=e=>{const t=e.subTree;return t.component?Q$(t.component):t},$q={name:"BaseTransition",props:NI,setup(e,{slots:t}){const n=xr(),r=LI();return()=>{const i=t.default&&$b(t.default(),!0);if(!i||!i.length)return;const o=e4(i),a=an(e),{mode:s}=a;if(r.isLeaving)return Ax(o);const l=lM(o);if(!l)return Ax(o);let u=lh(l,a,r,n,f=>u=f);l.type!==Sr&&bl(l,u);let c=n.subTree&&lM(n.subTree);if(c&&c.type!==Sr&&!Ma(l,c)&&Q$(n).type!==Sr){let f=lh(c,a,r,n);if(bl(c,f),s==="out-in"&&l.type!==Sr)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Ax(o);s==="in-out"&&l.type!==Sr?f.delayLeave=(d,h,v)=>{const m=n4(r,c);m[String(c.key)]=c,d[au]=()=>{h(),d[au]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function e4(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Sr){t=n;break}}return t}const t4=$q;function n4(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 lh(e,t,n,r,i){const{appear:o,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:m,onBeforeAppear:_,onAppear:y,onAfterAppear:b,onAppearCancelled:S}=t,w=String(e.key),C=n4(n,e),T=(I,O)=>{I&&ca(I,r,9,O)},E=(I,O)=>{const P=O[1];T(I,O),Qe(I)?I.every(M=>M.length<=1)&&P():I.length<=1&&P()},R={mode:a,persisted:s,beforeEnter(I){let O=l;if(!n.isMounted)if(o)O=_||l;else return;I[au]&&I[au](!0);const P=C[w];P&&Ma(e,P)&&P.el[au]&&P.el[au](),T(O,[I])},enter(I){let O=u,P=c,M=f;if(!n.isMounted)if(o)O=y||u,P=b||c,M=S||f;else return;let F=!1;const $=I[By]=z=>{F||(F=!0,z?T(M,[I]):T(P,[I]),R.delayedLeave&&R.delayedLeave(),I[By]=void 0)};O?E(O,[I,$]):$()},leave(I,O){const P=String(e.key);if(I[By]&&I[By](!0),n.isUnmounting)return O();T(d,[I]);let M=!1;const F=I[au]=$=>{M||(M=!0,O(),$?T(m,[I]):T(v,[I]),I[au]=void 0,C[P]===e&&delete C[P])};C[P]=e,h?E(h,[I,F]):F()},clone(I){const O=lh(I,t,n,r,i);return i&&i(O),O}};return R}function Ax(e){if(lm(e))return e=Ss(e),e.children=null,e}function lM(e){if(!lm(e))return Z$(e.type)&&e.children?e4(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&bt(n.default))return n.default()}}function bl(e,t){e.shapeFlag&6&&e.component?(e.transition=t,bl(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 $b(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;on.value,set:o=>n.value=o})}return n}function gg(e,t,n,r,i=!1){if(Qe(e)){e.forEach((v,m)=>gg(v,t&&(Qe(t)?t[m]:t),n,r,i));return}if(Tu(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&gg(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?fm(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Jt?s.refs={}:s.refs,f=s.setupState,d=an(f),h=f===Jt?()=>!1:v=>cn(d,v);if(u!=null&&u!==l&&(Rt(u)?(c[u]=null,h(u)&&(f[u]=null)):at(u)&&(u.value=null)),bt(l))kh(l,s,12,[a,c]);else{const v=Rt(l),m=at(l);if(v||m){const _=()=>{if(e.f){const y=v?h(l)?f[l]:c[l]:l.value;i?Qe(y)&&Ab(y,o):Qe(y)?y.includes(o)||y.push(o):v?(c[l]=[o],h(l)&&(f[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else v?(c[l]=a,h(l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(_.id=-1,Er(_,n)):_()}}}let uM=!1;const ud=()=>{uM||(console.error("Hydration completed but contains mismatches."),uM=!0)},Uq=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Hq=e=>e.namespaceURI.includes("MathML"),Vy=e=>{if(e.nodeType===1){if(Uq(e))return"svg";if(Hq(e))return"mathml"}},Bd=e=>e.nodeType===8;function Gq(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:a,remove:s,insert:l,createComment:u}}=e,c=(S,w)=>{if(!w.hasChildNodes()){n(null,S,w),y1(),w._vnode=S;return}f(w.firstChild,S,null,null,null),y1(),w._vnode=S},f=(S,w,C,T,E,R=!1)=>{R=R||!!w.dynamicChildren;const I=Bd(S)&&S.data==="[",O=()=>m(S,w,C,T,E,I),{type:P,ref:M,shapeFlag:F,patchFlag:$}=w;let z=S.nodeType;w.el=S,$===-2&&(R=!1,w.dynamicChildren=null);let B=null;switch(P){case dl:z!==3?w.children===""?(l(w.el=i(""),a(S),S),B=S):B=O():(S.data!==w.children&&(ud(),S.data=w.children),B=o(S));break;case Sr:b(S)?(B=o(S),y(w.el=S.content.firstChild,S,C)):z!==8||I?B=O():B=o(S);break;case df:if(I&&(S=o(S),z=S.nodeType),z===1||z===3){B=S;const K=!w.children.length;for(let j=0;j{R=R||!!w.dynamicChildren;const{type:I,props:O,patchFlag:P,shapeFlag:M,dirs:F,transition:$}=w,z=I==="input"||I==="option";if(z||P!==-1){F&&ss(w,null,C,"created");let B=!1;if(b(S)){B=A4(null,$)&&C&&C.vnode.props&&C.vnode.props.appear;const j=S.content.firstChild;B&&$.beforeEnter(j),y(j,S,C),w.el=S=j}if(M&16&&!(O&&(O.innerHTML||O.textContent))){let j=h(S.firstChild,w,S,C,T,E,R);for(;j;){Uy(S,1)||ud();const le=j;j=j.nextSibling,s(le)}}else if(M&8){let j=w.children;j[0]===` `&&(S.tagName==="PRE"||S.tagName==="TEXTAREA")&&(j=j.slice(1)),S.textContent!==j&&(Uy(S,0)||ud(),S.textContent=w.children)}if(O){if(z||!R||P&48){const j=S.tagName.includes("-");for(const le in O)(z&&(le.endsWith("value")||le==="indeterminate")||Hu(le)&&!fl(le)||le[0]==="."||j)&&r(S,le,null,O[le],void 0,C)}else if(O.onClick)r(S,"onClick",null,O.onClick,void 0,C);else if(P&4&&Cu(O.style))for(const j in O.style)O.style[j]}let K;(K=O&&O.onVnodeBeforeMount)&&Wi(K,C,w),F&&ss(w,null,C,"beforeMount"),((K=O&&O.onVnodeMounted)||F||B)&&F4(()=>{K&&Wi(K,C,w),B&&$.enter(S),F&&ss(w,null,C,"mounted")},T)}return S.nextSibling},h=(S,w,C,T,E,R,I)=>{I=I||!!w.dynamicChildren;const O=w.children,P=O.length;for(let M=0;M{const{slotScopeIds:I}=w;I&&(E=E?E.concat(I):I);const O=a(S),P=h(o(S),w,O,C,T,E,R);return P&&Bd(P)&&P.data==="]"?o(w.anchor=P):(ud(),l(w.anchor=u("]"),O,P),P)},m=(S,w,C,T,E,R)=>{if(Uy(S.parentElement,1)||ud(),w.el=null,R){const P=_(S);for(;;){const M=o(S);if(M&&M!==P)s(M);else break}}const I=o(S),O=a(S);return s(S),n(null,w,O,I,C,T,Vy(O),E),C&&(C.vnode.el=w.el,Gb(C,w.el)),I},_=(S,w="[",C="]")=>{let T=0;for(;S;)if(S=o(S),S&&Bd(S)&&(S.data===w&&T++,S.data===C)){if(T===0)return o(S);T--}return S},y=(S,w,C)=>{const T=w.parentNode;T&&T.replaceChild(S,w);let E=C;for(;E;)E.vnode.el===w&&(E.vnode.el=E.subTree.el=S),E=E.parent},b=S=>S.nodeType===1&&S.tagName==="TEMPLATE";return[c,f]}const cM="data-allow-mismatch",zq={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Uy(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(cM);)e=e.parentElement;const n=e&&e.getAttribute(cM);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(zq[t])}}const Wq=om().requestIdleCallback||(e=>setTimeout(e,1)),jq=om().cancelIdleCallback||(e=>clearTimeout(e)),Xq=(e=1e4)=>t=>{const n=Wq(t,{timeout:e});return()=>jq(n)};function Yq(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:a}=window;return(t>0&&t0&&r0&&n0&&i(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(Yq(i))return t(),r.disconnect(),!1;r.observe(i)}}),()=>r.disconnect()},Zq=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},qq=(e=[])=>(t,n)=>{Rt(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 Jq(e,t){if(Bd(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Bd(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Tu=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Qq(e){bt(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 d=()=>(f++,u=null,h()),h=()=>{let v;return u||(v=u=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((_,y)=>{l(m,()=>_(d()),()=>y(m),f+1)});throw m}).then(m=>v!==u&&u?u:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),c=m,m)))};return it({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,m,_){const y=o?()=>{const b=o(_,S=>Jq(v,S));b&&(m.bum||(m.bum=[])).push(b)}:_;c?y():h().then(()=>!m.isUnmounted&&y())},get __asyncResolved(){return c},setup(){const v=Ar;if(kI(v),c)return()=>Ix(c,v);const m=S=>{u=null,Hf(S,v,13,!r)};if(s&&v.suspense||uh)return h().then(S=>()=>Ix(S,v)).catch(S=>(m(S),()=>r?se(r,{error:S}):null));const _=ke(!1),y=ke(),b=ke(!!i);return i&&setTimeout(()=>{b.value=!1},i),a!=null&&setTimeout(()=>{if(!_.value&&!y.value){const S=new Error(`Async component timed out after ${a}ms.`);m(S),y.value=S}},a),h().then(()=>{_.value=!0,v.parent&&lm(v.parent.vnode)&&v.parent.update()}).catch(S=>{m(S),y.value=S}),()=>{if(_.value&&c)return Ix(c,v);if(y.value&&r)return se(r,{error:y.value});if(n&&!b.value)return se(n)}}})}function Ix(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,a=se(e,r,i);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const lm=e=>e.type.__isKeepAlive,eJ={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=xr(),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,d=f("div");r.activate=(b,S,w,C,T)=>{const E=b.component;u(b,S,w,0,s),l(E.vnode,b,S,w,E,s,C,b.slotScopeIds,T),Er(()=>{E.isDeactivated=!1,E.a&&lf(E.a);const R=b.props&&b.props.onVnodeMounted;R&&Wi(R,E.parent,b)},s)},r.deactivate=b=>{const S=b.component;b1(S.m),b1(S.a),u(b,d,null,1,s),Er(()=>{S.da&&lf(S.da);const w=b.props&&b.props.onVnodeUnmounted;w&&Wi(w,S.parent,b),S.isDeactivated=!0},s)};function h(b){Rx(b),c(b,n,s,!0)}function v(b){i.forEach((S,w)=>{const C=dE(S.type);C&&!b(C)&&m(w)})}function m(b){const S=i.get(b);S&&(!a||!Ma(S,a))?h(S):a&&Rx(a),i.delete(b),o.delete(b)}Vt(()=>[e.include,e.exclude],([b,S])=>{b&&v(w=>tv(b,w)),S&&v(w=>!tv(S,w))},{flush:"post",deep:!0});let _=null;const y=()=>{_!=null&&(S1(n.subTree.type)?Er(()=>{i.set(_,Hy(n.subTree))},n.subTree.suspense):i.set(_,Hy(n.subTree)))};return fo(y),Vb(y),um(()=>{i.forEach(b=>{const{subTree:S,suspense:w}=n,C=Hy(S);if(b.type===C.type&&b.key===C.key){Rx(C);const T=C.component.da;T&&Er(T,w);return}h(b)})}),()=>{if(_=null,!t.default)return a=null;const b=t.default(),S=b[0];if(b.length>1)return a=null,b;if(!Sl(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return a=null,S;let w=Hy(S);if(w.type===Sr)return a=null,w;const C=w.type,T=dE(Tu(w)?w.type.__asyncResolved||{}:C),{include:E,exclude:R,max:I}=e;if(E&&(!T||!tv(E,T))||R&&T&&tv(R,T))return w.shapeFlag&=-257,a=w,S;const O=w.key==null?C:w.key,P=i.get(O);return w.el&&(w=Ss(w),S.shapeFlag&128&&(S.ssContent=w)),_=O,P?(w.el=P.el,w.component=P.component,w.transition&&bl(w,w.transition),w.shapeFlag|=512,o.delete(O),o.add(O)):(o.add(O),I&&o.size>parseInt(I,10)&&m(o.values().next().value)),w.shapeFlag|=256,a=w,S1(S.type)?S:w}}},tJ=eJ;function tv(e,t){return Qe(e)?e.some(n=>tv(n,t)):Rt(e)?e.split(",").includes(t):u$(e)?(e.lastIndex=0,e.test(t)):!1}function r4(e,t){o4(e,"a",t)}function i4(e,t){o4(e,"da",t)}function o4(e,t,n=Ar){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Bb(t,r,n),n){let i=n.parent;for(;i&&i.parent;)lm(i.parent.vnode)&&nJ(r,t,n,i),i=i.parent}}function nJ(e,t,n,r){const i=Bb(t,e,r,!0);Gf(()=>{Ab(r[t],i)},n)}function Rx(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Hy(e){return e.shapeFlag&128?e.ssContent:e}function Bb(e,t,n=Ar,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Wu();const s=Cf(n),l=ca(t,n,e,a);return s(),ju(),l});return r?i.unshift(o):i.push(o),o}}const El=e=>(t,n=Ar)=>{(!uh||e==="sp")&&Bb(e,(...r)=>t(...r),n)},a4=El("bm"),fo=El("m"),FI=El("bu"),Vb=El("u"),um=El("bum"),Gf=El("um"),s4=El("sp"),l4=El("rtg"),u4=El("rtc");function c4(e,t=Ar){Bb("ec",e,t)}const $I="components",rJ="directives";function iJ(e,t){return BI($I,e,!0,t)||e}const f4=Symbol.for("v-ndc");function $a(e){return Rt(e)?BI($I,e,!1)||e:e||f4}function oJ(e){return BI(rJ,e)}function BI(e,t,n=!0,r=!1){const i=Rr||Ar;if(i){const o=i.type;if(e===$I){const s=dE(o,!1);if(s&&(s===t||s===$n(t)||s===zu($n(t))))return o}const a=fM(i[e]||o[e],t)||fM(i.appContext[e],t);return!a&&r?o:a}}function fM(e,t){return e&&(e[t]||e[$n(t)]||e[zu($n(t))])}function ln(e,t,n,r){let i;const o=n&&n[r],a=Qe(e);if(a||Rt(e)){const s=a&&Cu(e);let l=!1;s&&(l=!Io(e),e=Mb(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(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{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function cf(e,t,n={},r,i){if(Rr.ce||Rr.parent&&Tu(Rr.parent)&&Rr.parent.ce)return t!=="default"&&(n.name=t),X(),Tt(Ye,null,[se("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),X();const a=o&&VI(o(n)),s=n.key||a&&a.key,l=Tt(Ye,{key:(s&&!Di(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 VI(e){return e.some(t=>Sl(t)?!(t.type===Sr||t.type===Ye&&!VI(t.children)):!0)?e:null}function sJ(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:sf(r)]=e[r];return n}const tE=e=>e?z4(e)?fm(e):tE(e.parent):null,wv=Qt(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=>tE(e.parent),$root:e=>tE(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>UI(e),$forceUpdate:e=>e.f||(e.f=()=>{MI(e.update)}),$nextTick:e=>e.n||(e.n=za.bind(e.proxy)),$watch:e=>FJ.bind(e)}),Px=(e,t)=>e!==Jt&&!e.__isScriptSetup&&cn(e,t),nE={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 h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Px(r,t))return a[t]=1,r[t];if(i!==Jt&&cn(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&cn(u,t))return a[t]=3,o[t];if(n!==Jt&&cn(n,t))return a[t]=4,n[t];rE&&(a[t]=0)}}const c=wv[t];let f,d;if(c)return t==="$attrs"&&ui(e.attrs,"get",""),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Jt&&cn(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,cn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Px(i,t)?(i[t]=n,!0):r!==Jt&&cn(r,t)?(r[t]=n,!0):cn(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}},a){let s;return!!n[a]||e!==Jt&&cn(e,a)||Px(t,a)||(s=o[0])&&cn(s,a)||cn(r,a)||cn(wv,a)||cn(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:cn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},lJ=Qt({},nE,{get(e,t){if(t!==Symbol.unscopables)return nE.get(e,t,e)},has(e,t){return t[0]!=="_"&&!wI(t)}});function uJ(){return null}function cJ(){return null}function fJ(e){}function dJ(e){}function hJ(){return null}function pJ(){}function vJ(e,t){return null}function gJ(){return d4().slots}function mJ(){return d4().attrs}function d4(){const e=xr();return e.setupContext||(e.setupContext=X4(e))}function mg(e){return Qe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function yJ(e,t){const n=mg(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?Qe(i)||bt(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 _J(e,t){return!e||!t?e||t:Qe(e)&&Qe(t)?e.concat(t):Qt({},mg(e),mg(t))}function bJ(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function SJ(e){const t=xr();let n=e();return uE(),Ib(n)&&(n=n.catch(r=>{throw Cf(t),r})),[n,()=>Cf(t)]}let rE=!0;function wJ(e){const t=UI(e),n=e.proxy,r=e.ctx;rE=!1,t.beforeCreate&&dM(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:m,deactivated:_,beforeDestroy:y,beforeUnmount:b,destroyed:S,unmounted:w,render:C,renderTracked:T,renderTriggered:E,errorCaptured:R,serverPrefetch:I,expose:O,inheritAttrs:P,components:M,directives:F,filters:$}=t;if(u&&xJ(u,r,null),a)for(const K in a){const j=a[K];bt(j)&&(r[K]=j.bind(n))}if(i){const K=i.call(n,n);vn(K)&&(e.data=Va(K))}if(rE=!0,o)for(const K in o){const j=o[K],le=bt(j)?j.bind(n,n):bt(j.get)?j.get.bind(n,n):Br,me=!bt(j)&&bt(j.set)?j.set.bind(n):Br,ge=Le({get:le,set:me});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>ge.value,set:De=>ge.value=De})}if(s)for(const K in s)h4(s[K],r,n,K);if(l){const K=bt(l)?l.call(n):l;Reflect.ownKeys(K).forEach(j=>{xv(j,K[j])})}c&&dM(c,e,"c");function B(K,j){Qe(j)?j.forEach(le=>K(le.bind(n))):j&&K(j.bind(n))}if(B(a4,f),B(fo,d),B(FI,h),B(Vb,v),B(r4,m),B(i4,_),B(c4,R),B(u4,T),B(l4,E),B(um,b),B(Gf,w),B(s4,I),Qe(O))if(O.length){const K=e.exposed||(e.exposed={});O.forEach(j=>{Object.defineProperty(K,j,{get:()=>n[j],set:le=>n[j]=le})})}else e.exposed||(e.exposed={});C&&e.render===Br&&(e.render=C),P!=null&&(e.inheritAttrs=P),M&&(e.components=M),F&&(e.directives=F),I&&kI(e)}function xJ(e,t,n=Br){Qe(e)&&(e=iE(e));for(const r in e){const i=e[r];let o;vn(i)?"default"in i?o=to(i.from||r,i.default,!0):o=to(i.from||r):o=to(i),at(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function dM(e,t,n){ca(Qe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h4(e,t,n,r){let i=r.includes(".")?D4(n,r):()=>n[r];if(Rt(e)){const o=t[e];bt(o)&&Vt(i,o)}else if(bt(e))Vt(i,e.bind(n));else if(vn(e))if(Qe(e))e.forEach(o=>h4(o,t,n,r));else{const o=bt(e.handler)?e.handler.bind(n):t[e.handler];bt(o)&&Vt(i,o,e)}}function UI(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=>_1(l,u,a,!0)),_1(l,t,a)),vn(t)&&o.set(t,l),l}function _1(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&_1(e,o,n,!0),i&&i.forEach(a=>_1(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=CJ[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const CJ={data:hM,props:pM,emits:pM,methods:nv,computed:nv,beforeCreate:wi,created:wi,beforeMount:wi,mounted:wi,beforeUpdate:wi,updated:wi,beforeDestroy:wi,beforeUnmount:wi,destroyed:wi,unmounted:wi,activated:wi,deactivated:wi,errorCaptured:wi,serverPrefetch:wi,components:nv,directives:nv,watch:EJ,provide:hM,inject:TJ};function hM(e,t){return t?e?function(){return Qt(bt(e)?e.call(this,this):e,bt(t)?t.call(this,this):t)}:t:e}function TJ(e,t){return nv(iE(e),iE(t))}function iE(e){if(Qe(e)){const t={};for(let n=0;n1)return n&&bt(t)?t.call(r&&r.proxy):t}}function HI(){return!!(Ar||Rr||ff)}const v4={},g4=()=>Object.create(v4),m4=e=>Object.getPrototypeOf(e)===v4;function RJ(e,t,n,r=!1){const i={},o=g4();e.propsDefaults=Object.create(null),y4(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:PI(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function PJ(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=an(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{l=!0;const[d,h]=_4(f,t,!0);Qt(a,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return vn(e)&&r.set(e,of),of;if(Qe(o))for(let c=0;ce[0]==="_"||e==="$stable",GI=e=>Qe(e)?e.map(Yi):[Yi(e)],DJ=(e,t,n)=>{if(t._n)return t;const r=er((...i)=>GI(t(...i)),n);return r._c=!1,r},S4=(e,t,n)=>{const r=e._ctx;for(const i in e){if(b4(i))continue;const o=e[i];if(bt(o))t[i]=DJ(i,o,r);else if(o!=null){const a=GI(o);t[i]=()=>a}}},w4=(e,t)=>{const n=GI(t);e.slots.default=()=>n},x4=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},MJ=(e,t,n)=>{const r=e.slots=g4();if(e.vnode.shapeFlag&32){const i=t._;i?(x4(r,t,n),n&&SI(r,"_",i,!0)):S4(t,r)}else t&&w4(e,t)},LJ=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=Jt;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:x4(i,t,n):(o=!t.$stable,S4(t,i)),a=t}else t&&(w4(e,t),a={default:1});if(o)for(const s in i)!b4(s)&&a[s]==null&&delete i[s]},Er=F4;function C4(e){return E4(e)}function T4(e){return E4(e,Gq)}function E4(e,t){const n=om();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=Br,insertStaticContent:v}=e,m=(H,G,ue,we=null,ve=null,U=null,W=void 0,q=null,de=!!G.dynamicChildren)=>{if(H===G)return;H&&!Ma(H,G)&&(we=fe(H),De(H,ve,U,!0),H=null),G.patchFlag===-2&&(de=!1,G.dynamicChildren=null);const{type:_e,ref:Pe,shapeFlag:Z}=G;switch(_e){case dl:_(H,G,ue,we);break;case Sr:y(H,G,ue,we);break;case df:H==null&&b(G,ue,we,W);break;case Ye:M(H,G,ue,we,ve,U,W,q,de);break;default:Z&1?C(H,G,ue,we,ve,U,W,q,de):Z&6?F(H,G,ue,we,ve,U,W,q,de):(Z&64||Z&128)&&_e.process(H,G,ue,we,ve,U,W,q,de,Ce)}Pe!=null&&ve&&gg(Pe,H&&H.ref,U,G||H,!G)},_=(H,G,ue,we)=>{if(H==null)r(G.el=s(G.children),ue,we);else{const ve=G.el=H.el;G.children!==H.children&&u(ve,G.children)}},y=(H,G,ue,we)=>{H==null?r(G.el=l(G.children||""),ue,we):G.el=H.el},b=(H,G,ue,we)=>{[H.el,H.anchor]=v(H.children,G,ue,we,H.el,H.anchor)},S=({el:H,anchor:G},ue,we)=>{let ve;for(;H&&H!==G;)ve=d(H),r(H,ue,we),H=ve;r(G,ue,we)},w=({el:H,anchor:G})=>{let ue;for(;H&&H!==G;)ue=d(H),i(H),H=ue;i(G)},C=(H,G,ue,we,ve,U,W,q,de)=>{G.type==="svg"?W="svg":G.type==="math"&&(W="mathml"),H==null?T(G,ue,we,ve,U,W,q,de):I(H,G,ve,U,W,q,de)},T=(H,G,ue,we,ve,U,W,q)=>{let de,_e;const{props:Pe,shapeFlag:Z,transition:he,dirs:Ve}=H;if(de=H.el=a(H.type,U,Pe&&Pe.is,Pe),Z&8?c(de,H.children):Z&16&&R(H.children,de,null,we,ve,Ox(H,U),W,q),Ve&&ss(H,null,we,"created"),E(de,H,H.scopeId,W,we),Pe){for(const pt in Pe)pt!=="value"&&!fl(pt)&&o(de,pt,null,Pe[pt],U,we);"value"in Pe&&o(de,"value",null,Pe.value,U),(_e=Pe.onVnodeBeforeMount)&&Wi(_e,we,H)}Ve&&ss(H,null,we,"beforeMount");const Ke=A4(ve,he);Ke&&he.beforeEnter(de),r(de,G,ue),((_e=Pe&&Pe.onVnodeMounted)||Ke||Ve)&&Er(()=>{_e&&Wi(_e,we,H),Ke&&he.enter(de),Ve&&ss(H,null,we,"mounted")},ve)},E=(H,G,ue,we,ve)=>{if(ue&&h(H,ue),we)for(let U=0;U{for(let _e=de;_e{const q=G.el=H.el;let{patchFlag:de,dynamicChildren:_e,dirs:Pe}=G;de|=H.patchFlag&16;const Z=H.props||Jt,he=G.props||Jt;let Ve;if(ue&&lc(ue,!1),(Ve=he.onVnodeBeforeUpdate)&&Wi(Ve,ue,G,H),Pe&&ss(G,H,ue,"beforeUpdate"),ue&&lc(ue,!0),(Z.innerHTML&&he.innerHTML==null||Z.textContent&&he.textContent==null)&&c(q,""),_e?O(H.dynamicChildren,_e,q,ue,we,Ox(G,ve),U):W||j(H,G,q,null,ue,we,Ox(G,ve),U,!1),de>0){if(de&16)P(q,Z,he,ue,ve);else if(de&2&&Z.class!==he.class&&o(q,"class",null,he.class,ve),de&4&&o(q,"style",Z.style,he.style,ve),de&8){const Ke=G.dynamicProps;for(let pt=0;pt{Ve&&Wi(Ve,ue,G,H),Pe&&ss(G,H,ue,"updated")},we)},O=(H,G,ue,we,ve,U,W)=>{for(let q=0;q{if(G!==ue){if(G!==Jt)for(const U in G)!fl(U)&&!(U in ue)&&o(H,U,G[U],null,ve,we);for(const U in ue){if(fl(U))continue;const W=ue[U],q=G[U];W!==q&&U!=="value"&&o(H,U,q,W,ve,we)}"value"in ue&&o(H,"value",G.value,ue.value,ve)}},M=(H,G,ue,we,ve,U,W,q,de)=>{const _e=G.el=H?H.el:s(""),Pe=G.anchor=H?H.anchor:s("");let{patchFlag:Z,dynamicChildren:he,slotScopeIds:Ve}=G;Ve&&(q=q?q.concat(Ve):Ve),H==null?(r(_e,ue,we),r(Pe,ue,we),R(G.children||[],ue,Pe,ve,U,W,q,de)):Z>0&&Z&64&&he&&H.dynamicChildren?(O(H.dynamicChildren,he,ue,ve,U,W,q),(G.key!=null||ve&&G===ve.subTree)&&zI(H,G,!0)):j(H,G,ue,Pe,ve,U,W,q,de)},F=(H,G,ue,we,ve,U,W,q,de)=>{G.slotScopeIds=q,H==null?G.shapeFlag&512?ve.ctx.activate(G,ue,we,W,de):$(G,ue,we,ve,U,W,de):z(H,G,de)},$=(H,G,ue,we,ve,U,W)=>{const q=H.component=G4(H,we,ve);if(lm(H)&&(q.ctx.renderer=Ce),W4(q,!1,W),q.asyncDep){if(ve&&ve.registerDep(q,B,W),!H.el){const de=q.subTree=se(Sr);y(null,de,G,ue)}}else B(q,H,G,ue,ve,U,W)},z=(H,G,ue)=>{const we=G.component=H.component;if(HJ(H,G,ue))if(we.asyncDep&&!we.asyncResolved){K(we,G,ue);return}else we.next=G,we.update();else G.el=H.el,we.vnode=G},B=(H,G,ue,we,ve,U,W)=>{const q=()=>{if(H.isMounted){let{next:Z,bu:he,u:Ve,parent:Ke,vnode:pt}=H;{const He=I4(H);if(He){Z&&(Z.el=pt.el,K(H,Z,W)),He.asyncDep.then(()=>{H.isUnmounted||q()});return}}let ee=Z,oe;lc(H,!1),Z?(Z.el=pt.el,K(H,Z,W)):Z=pt,he&&lf(he),(oe=Z.props&&Z.props.onVnodeBeforeUpdate)&&Wi(oe,Ke,Z,pt),lc(H,!0);const pe=c_(H),Te=H.subTree;H.subTree=pe,m(Te,pe,f(Te.el),fe(Te),H,ve,U),Z.el=pe.el,ee===null&&Gb(H,pe.el),Ve&&Er(Ve,ve),(oe=Z.props&&Z.props.onVnodeUpdated)&&Er(()=>Wi(oe,Ke,Z,pt),ve)}else{let Z;const{el:he,props:Ve}=G,{bm:Ke,m:pt,parent:ee,root:oe,type:pe}=H,Te=Tu(G);if(lc(H,!1),Ke&&lf(Ke),!Te&&(Z=Ve&&Ve.onVnodeBeforeMount)&&Wi(Z,ee,G),lc(H,!0),he&&Be){const He=()=>{H.subTree=c_(H),Be(he,H.subTree,H,ve,null)};Te&&pe.__asyncHydrate?pe.__asyncHydrate(he,H,He):He()}else{oe.ce&&oe.ce._injectChildStyle(pe);const He=H.subTree=c_(H);m(null,He,ue,we,H,ve,U),G.el=He.el}if(pt&&Er(pt,ve),!Te&&(Z=Ve&&Ve.onVnodeMounted)){const He=G;Er(()=>Wi(Z,ee,He),ve)}(G.shapeFlag&256||ee&&Tu(ee.vnode)&&ee.vnode.shapeFlag&256)&&H.a&&Er(H.a,ve),H.isMounted=!0,G=ue=we=null}};H.scope.on();const de=H.effect=new cg(q);H.scope.off();const _e=H.update=de.run.bind(de),Pe=H.job=de.runIfDirty.bind(de);Pe.i=H,Pe.id=H.uid,de.scheduler=()=>MI(Pe),lc(H,!0),_e()},K=(H,G,ue)=>{G.component=H;const we=H.vnode.props;H.vnode=G,H.next=null,PJ(H,G.props,we,ue),LJ(H,G.children,ue),Wu(),iM(H),ju()},j=(H,G,ue,we,ve,U,W,q,de=!1)=>{const _e=H&&H.children,Pe=H?H.shapeFlag:0,Z=G.children,{patchFlag:he,shapeFlag:Ve}=G;if(he>0){if(he&128){me(_e,Z,ue,we,ve,U,W,q,de);return}else if(he&256){le(_e,Z,ue,we,ve,U,W,q,de);return}}Ve&8?(Pe&16&&je(_e,ve,U),Z!==_e&&c(ue,Z)):Pe&16?Ve&16?me(_e,Z,ue,we,ve,U,W,q,de):je(_e,ve,U,!0):(Pe&8&&c(ue,""),Ve&16&&R(Z,ue,we,ve,U,W,q,de))},le=(H,G,ue,we,ve,U,W,q,de)=>{H=H||of,G=G||of;const _e=H.length,Pe=G.length,Z=Math.min(_e,Pe);let he;for(he=0;hePe?je(H,ve,U,!0,!1,Z):R(G,ue,we,ve,U,W,q,de,Z)},me=(H,G,ue,we,ve,U,W,q,de)=>{let _e=0;const Pe=G.length;let Z=H.length-1,he=Pe-1;for(;_e<=Z&&_e<=he;){const Ve=H[_e],Ke=G[_e]=de?su(G[_e]):Yi(G[_e]);if(Ma(Ve,Ke))m(Ve,Ke,ue,null,ve,U,W,q,de);else break;_e++}for(;_e<=Z&&_e<=he;){const Ve=H[Z],Ke=G[he]=de?su(G[he]):Yi(G[he]);if(Ma(Ve,Ke))m(Ve,Ke,ue,null,ve,U,W,q,de);else break;Z--,he--}if(_e>Z){if(_e<=he){const Ve=he+1,Ke=Vehe)for(;_e<=Z;)De(H[_e],ve,U,!0),_e++;else{const Ve=_e,Ke=_e,pt=new Map;for(_e=Ke;_e<=he;_e++){const $e=G[_e]=de?su(G[_e]):Yi(G[_e]);$e.key!=null&&pt.set($e.key,_e)}let ee,oe=0;const pe=he-Ke+1;let Te=!1,He=0;const re=new Array(pe);for(_e=0;_e=pe){De($e,ve,U,!0);continue}let et;if($e.key!=null)et=pt.get($e.key);else for(ee=Ke;ee<=he;ee++)if(re[ee-Ke]===0&&Ma($e,G[ee])){et=ee;break}et===void 0?De($e,ve,U,!0):(re[et-Ke]=_e+1,et>=He?He=et:Te=!0,m($e,G[et],ue,null,ve,U,W,q,de),oe++)}const Ae=Te?NJ(re):of;for(ee=Ae.length-1,_e=pe-1;_e>=0;_e--){const $e=Ke+_e,et=G[$e],Ge=$e+1{const{el:U,type:W,transition:q,children:de,shapeFlag:_e}=H;if(_e&6){ge(H.component.subTree,G,ue,we);return}if(_e&128){H.suspense.move(G,ue,we);return}if(_e&64){W.move(H,G,ue,Ce);return}if(W===Ye){r(U,G,ue);for(let Z=0;Zq.enter(U),ve);else{const{leave:Z,delayLeave:he,afterLeave:Ve}=q,Ke=()=>r(U,G,ue),pt=()=>{Z(U,()=>{Ke(),Ve&&Ve()})};he?he(U,Ke,pt):pt()}else r(U,G,ue)},De=(H,G,ue,we=!1,ve=!1)=>{const{type:U,props:W,ref:q,children:de,dynamicChildren:_e,shapeFlag:Pe,patchFlag:Z,dirs:he,cacheIndex:Ve}=H;if(Z===-2&&(ve=!1),q!=null&&gg(q,null,ue,H,!0),Ve!=null&&(G.renderCache[Ve]=void 0),Pe&256){G.ctx.deactivate(H);return}const Ke=Pe&1&&he,pt=!Tu(H);let ee;if(pt&&(ee=W&&W.onVnodeBeforeUnmount)&&Wi(ee,G,H),Pe&6)Me(H.component,ue,we);else{if(Pe&128){H.suspense.unmount(ue,we);return}Ke&&ss(H,null,G,"beforeUnmount"),Pe&64?H.type.remove(H,G,ue,Ce,we):_e&&!_e.hasOnce&&(U!==Ye||Z>0&&Z&64)?je(_e,G,ue,!1,!0):(U===Ye&&Z&384||!ve&&Pe&16)&&je(de,G,ue),we&&Fe(H)}(pt&&(ee=W&&W.onVnodeUnmounted)||Ke)&&Er(()=>{ee&&Wi(ee,G,H),Ke&&ss(H,null,G,"unmounted")},ue)},Fe=H=>{const{type:G,el:ue,anchor:we,transition:ve}=H;if(G===Ye){ze(ue,we);return}if(G===df){w(H);return}const U=()=>{i(ue),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(H.shapeFlag&1&&ve&&!ve.persisted){const{leave:W,delayLeave:q}=ve,de=()=>W(ue,U);q?q(H.el,U,de):de()}else U()},ze=(H,G)=>{let ue;for(;H!==G;)ue=d(H),i(H),H=ue;i(G)},Me=(H,G,ue)=>{const{bum:we,scope:ve,job:U,subTree:W,um:q,m:de,a:_e}=H;b1(de),b1(_e),we&&lf(we),ve.stop(),U&&(U.flags|=8,De(W,H,G,ue)),q&&Er(q,G),Er(()=>{H.isUnmounted=!0},G),G&&G.pendingBranch&&!G.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===G.pendingId&&(G.deps--,G.deps===0&&G.resolve())},je=(H,G,ue,we=!1,ve=!1,U=0)=>{for(let W=U;W{if(H.shapeFlag&6)return fe(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const G=d(H.anchor||H.el),ue=G&&G[K$];return ue?d(ue):G};let Ee=!1;const Se=(H,G,ue)=>{H==null?G._vnode&&De(G._vnode,null,null,!0):m(G._vnode||null,H,G,null,null,null,ue),G._vnode=H,Ee||(Ee=!0,iM(),y1(),Ee=!1)},Ce={p:m,um:De,m:ge,r:Fe,mt:$,mc:R,pc:j,pbc:O,n:fe,o:e};let Oe,Be;return t&&([Oe,Be]=t(Ce)),{render:Se,hydrate:Oe,createApp:IJ(Se,Oe)}}function Ox({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 lc({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function A4(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zI(e,t,n=!1){const r=e.children,i=t.children;if(Qe(r)&&Qe(i))for(let o=0;o>1,e[n[s]]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 I4(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:I4(t)}function b1(e){if(e)for(let t=0;tto(R4);function Ub(e,t){return cm(e,null,t)}function kJ(e,t){return cm(e,null,{flush:"post"})}function O4(e,t){return cm(e,null,{flush:"sync"})}function Vt(e,t,n){return cm(e,t,n)}function cm(e,t,n=Jt){const{immediate:r,deep:i,flush:o,once:a}=n,s=Qt({},n),l=t&&r||!t&&o!=="post";let u;if(uh){if(o==="sync"){const h=P4();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Br,h.resume=Br,h.pause=Br,h}}const c=Ar;s.call=(h,v,m)=>ca(h,c,v,m);let f=!1;o==="post"?s.scheduler=h=>{Er(h,c&&c.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():MI(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Tq(e,t,s);return uh&&(u?u.push(d):l&&d()),d}function FJ(e,t,n){const r=this.proxy,i=Rt(e)?e.includes(".")?D4(r,e):()=>r[e]:e.bind(r,r);let o;bt(t)?o=t:(o=t.handler,n=t);const a=Cf(this),s=cm(i,o.bind(r),n);return a(),s}function D4(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{let c,f=Jt,d;return O4(()=>{const h=e[i];li(c,h)&&(c=h,u())}),{get(){return l(),n.get?n.get(c):c},set(h){const v=n.set?n.set(h):h;if(!li(v,c)&&!(f!==Jt&&li(h,f)))return;const m=r.vnode.props;m&&(t in m||i in m||o in m)&&(`onUpdate:${t}`in m||`onUpdate:${i}`in m||`onUpdate:${o}`in m)||(c=h,u()),r.emit(`update:${t}`,v),li(h,v)&&li(h,f)&&!li(v,d)&&u(),f=h,d=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||Jt:s,done:!1}:{done:!0}}}},s}const L4=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$n(t)}Modifiers`]||e[`${fi(t)}Modifiers`];function $J(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Jt;let i=n;const o=t.startsWith("update:"),a=o&&L4(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Rt(c)?c.trim():c)),a.number&&(i=n.map(lg)));let s,l=r[s=sf(t)]||r[s=sf($n(t))];!l&&o&&(l=r[s=sf(fi(t))]),l&&ca(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,ca(u,e,6,i)}}function N4(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let a={},s=!1;if(!bt(e)){const l=u=>{const c=N4(u,t,!0);c&&(s=!0,Qt(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(vn(e)&&r.set(e,null),null):(Qe(o)?o.forEach(l=>a[l]=null):Qt(a,o),vn(e)&&r.set(e,a),a)}function Hb(e,t){return!e||!Hu(t)?!1:(t=t.slice(2).replace(/Once$/,""),cn(e,t[0].toLowerCase()+t.slice(1))||cn(e,fi(t))||cn(e,t))}function c_(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:d,setupState:h,ctx:v,inheritAttrs:m}=e,_=vg(e);let y,b;try{if(n.shapeFlag&4){const w=i||r,C=w;y=Yi(u.call(C,w,c,f,h,d,v)),b=s}else{const w=t;y=Yi(w.length>1?w(f,{attrs:s,slots:a,emit:l}):w(f,null)),b=t.props?s:VJ(s)}}catch(w){Cv.length=0,Hf(w,e,1),y=se(Sr)}let S=y;if(b&&m!==!1){const w=Object.keys(b),{shapeFlag:C}=S;w.length&&C&7&&(o&&w.some(Eb)&&(b=UJ(b,o)),S=Ss(S,b,!1,!0))}return n.dirs&&(S=Ss(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&bl(S,n.transition),y=S,vg(_),y}function BJ(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||Hu(n))&&((t||(t={}))[n]=e[n]);return t},UJ=(e,t)=>{const n={};for(const r in e)(!Eb(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function HJ(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?gM(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;let aE=0;const GJ={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,a,s,l,u){if(e==null)WJ(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}jJ(e,t,n,r,i,a,s,l,u)}},hydrate:XJ,normalize:YJ},zJ=GJ;function yg(e,t){const n=e.props&&e.props[t];bt(n)&&n()}function WJ(e,t,n,r,i,o,a,s,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=k4(e,i,r,t,f,n,o,a,s,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,a),d.deps>0?(yg(e,"onPending"),yg(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,a),Yd(d,e.ssFallback)):d.resolve(!1,!0)}function jJ(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 d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:m,isInFallback:_,isHydrating:y}=f;if(m)f.pendingBranch=d,Ma(d,m)?(l(m,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():_&&(y||(l(v,h,n,r,i,null,o,a,s),Yd(f,h)))):(f.pendingId=aE++,y?(f.isHydrating=!1,f.activeBranch=m):u(m,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),_?(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0?f.resolve():(l(v,h,n,r,i,null,o,a,s),Yd(f,h))):v&&Ma(d,v)?(l(v,d,n,r,i,f,o,a,s),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0&&f.resolve()));else if(v&&Ma(d,v))l(v,d,n,r,i,f,o,a,s),Yd(f,d);else if(yg(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=aE++,l(null,d,f.hiddenContainer,null,i,f,o,a,s),f.deps<=0)f.resolve();else{const{timeout:b,pendingId:S}=f;b>0?setTimeout(()=>{f.pendingId===S&&f.fallback(h)},b):b===0&&f.fallback(h)}}function k4(e,t,n,r,i,o,a,s,l,u,c=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:m,remove:_}}=u;let y;const b=KJ(e);b&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const S=e.props?ug(e.props.timeout):void 0,w=o,C={vnode:e,parent:t,parentComponent:n,namespace:a,container:r,hiddenContainer:i,deps:0,pendingId:aE++,timeout:typeof S=="number"?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(T=!1,E=!1){const{vnode:R,activeBranch:I,pendingBranch:O,pendingId:P,effects:M,parentComponent:F,container:$}=C;let z=!1;C.isHydrating?C.isHydrating=!1:T||(z=I&&O.transition&&O.transition.mode==="out-in",z&&(I.transition.afterLeave=()=>{P===C.pendingId&&(d(O,$,o===w?v(I):o,0),hg(M))}),I&&(m(I.el)===$&&(o=v(I)),h(I,F,C,!0)),z||d(O,$,o,0)),Yd(C,O),C.pendingBranch=null,C.isInFallback=!1;let B=C.parent,K=!1;for(;B;){if(B.pendingBranch){B.effects.push(...M),K=!0;break}B=B.parent}!K&&!z&&hg(M),C.effects=[],b&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!E&&t.resolve()),yg(R,"onResolve")},fallback(T){if(!C.pendingBranch)return;const{vnode:E,activeBranch:R,parentComponent:I,container:O,namespace:P}=C;yg(E,"onFallback");const M=v(R),F=()=>{C.isInFallback&&(f(null,T,O,M,I,null,P,s,l),Yd(C,T))},$=T.transition&&T.transition.mode==="out-in";$&&(R.transition.afterLeave=F),C.isInFallback=!0,h(R,I,null,!0),$||F()},move(T,E,R){C.activeBranch&&d(C.activeBranch,T,E,R),C.container=T},next(){return C.activeBranch&&v(C.activeBranch)},registerDep(T,E,R){const I=!!C.pendingBranch;I&&C.deps++;const O=T.vnode.el;T.asyncDep.catch(P=>{Hf(P,T,0)}).then(P=>{if(T.isUnmounted||C.isUnmounted||C.pendingId!==T.suspenseId)return;T.asyncResolved=!0;const{vnode:M}=T;cE(T,P,!1),O&&(M.el=O);const F=!O&&T.subTree.el;E(T,M,m(O||T.subTree.el),O?null:v(T.subTree),C,a,R),F&&_(F),Gb(T,M.el),I&&--C.deps===0&&C.resolve()})},unmount(T,E){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,T,E),C.pendingBranch&&h(C.pendingBranch,n,T,E)}};return C}function XJ(e,t,n,r,i,o,a,s,l){const u=t.suspense=k4(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 YJ(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=mM(r?n.default:n),e.ssFallback=r?mM(n.fallback):se(Sr)}function mM(e){let t;if(bt(e)){const n=xf&&e._c;n&&(e._d=!1,X()),e=e(),n&&(e._d=!0,t=pi,$4())}return Qe(e)&&(e=BJ(e)),e=Yi(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function F4(e,t){t&&t.pendingBranch?Qe(e)?t.effects.push(...e):t.effects.push(e):hg(e)}function Yd(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,Gb(r,i))}function KJ(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ye=Symbol.for("v-fgt"),dl=Symbol.for("v-txt"),Sr=Symbol.for("v-cmt"),df=Symbol.for("v-stc"),Cv=[];let pi=null;function X(e=!1){Cv.push(pi=e?null:[])}function $4(){Cv.pop(),pi=Cv[Cv.length-1]||null}let xf=1;function sE(e,t=!1){xf+=e,e<0&&pi&&t&&(pi.hasOnce=!0)}function B4(e){return e.dynamicChildren=xf>0?pi||of:null,$4(),xf>0&&pi&&pi.push(e),e}function te(e,t,n,r,i,o){return B4(L(e,t,n,r,i,o,!0))}function Tt(e,t,n,r,i){return B4(se(e,t,n,r,i,!0))}function Sl(e){return e?e.__v_isVNode===!0:!1}function Ma(e,t){return e.type===t.type&&e.key===t.key}function ZJ(e){}const V4=({key:e})=>e??null,f_=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Rt(e)||at(e)||bt(e)?{i:Rr,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===Ye?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&V4(t),ref:t&&f_(t),scopeId:Fb,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:Rr};return s?(WI(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Rt(n)?8:16),xf>0&&!a&&pi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&pi.push(l),l}const se=qJ;function qJ(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===f4)&&(e=Sr),Sl(e)){const s=Ss(e,t,!0);return n&&WI(s,n),xf>0&&!o&&pi&&(s.shapeFlag&6?pi[pi.indexOf(e)]=s:pi.push(s)),s.patchFlag=-2,s}if(oQ(e)&&(e=e.__vccOpts),t){t=U4(t);let{class:s,style:l}=t;s&&!Rt(s)&&(t.class=ot(s)),vn(l)&&(kb(l)&&!Qe(l)&&(l=Qt({},l)),t.style=Ir(l))}const a=Rt(e)?1:S1(e)?128:Z$(e)?64:vn(e)?4:bt(e)?2:0;return L(e,t,n,r,i,a,o,!0)}function U4(e){return e?kb(e)||m4(e)?Qt({},e):e:null}function Ss(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?H4(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&V4(u),ref:t&&t.ref?n&&o?Qe(o)?o.concat(f_(t)):[o,f_(t)]:f_(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!==Ye?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&&Ss(e.ssContent),ssFallback:e.ssFallback&&Ss(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&bl(c,l.clone(c)),c}function st(e=" ",t=0){return se(dl,null,e,t)}function JJ(e,t){const n=se(df,null,e);return n.staticCount=t,n}function yt(e="",t=!1){return t?(X(),Tt(Sr,null,e)):se(Sr,null,e)}function Yi(e){return e==null||typeof e=="boolean"?se(Sr):Qe(e)?se(Ye,null,e.slice()):Sl(e)?su(e):se(dl,null,String(e))}function su(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ss(e)}function WI(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Qe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),WI(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!m4(t)?t._ctx=Rr:i===3&&Rr&&(Rr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bt(t)?(t={default:t,_ctx:Rr},n=32):(t=String(t),r&64?(n=16,t=[st(t)]):n=8);e.children=t,e.shapeFlag|=n}function H4(...e){const t={};for(let n=0;nAr||Rr;let w1,lE;{const e=om(),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)}};w1=t("__VUE_INSTANCE_SETTERS__",n=>Ar=n),lE=t("__VUE_SSR_SETTERS__",n=>uh=n)}const Cf=e=>{const t=Ar;return w1(e),e.scope.on(),()=>{e.scope.off(),w1(t)}},uE=()=>{Ar&&Ar.scope.off(),w1(null)};function z4(e){return e.vnode.shapeFlag&4}let uh=!1;function W4(e,t=!1,n=!1){t&&lE(t);const{props:r,children:i}=e.vnode,o=z4(e);RJ(e,r,o,t),MJ(e,i,n);const a=o?tQ(e,t):void 0;return t&&lE(!1),a}function tQ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nE);const{setup:r}=n;if(r){Wu();const i=e.setupContext=r.length>1?X4(e):null,o=Cf(e),a=kh(r,e,0,[e.props,i]),s=Ib(a);if(ju(),o(),(s||e.sp)&&!Tu(e)&&kI(e),s){if(a.then(uE,uE),t)return a.then(l=>{cE(e,l,t)}).catch(l=>{Hf(l,e,0)});e.asyncDep=a}else cE(e,a,t)}else j4(e,t)}function cE(e,t,n){bt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:vn(t)&&(e.setupState=OI(t)),j4(e,n)}let x1,fE;function nQ(e){x1=e,fE=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,lJ))}}const rQ=()=>!x1;function j4(e,t,n){const r=e.type;if(!e.render){if(!t&&x1&&!r.render){const i=r.template||UI(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Qt(Qt({isCustomElement:o,delimiters:s},a),l);r.render=x1(i,u)}}e.render=r.render||Br,fE&&fE(e)}{const i=Cf(e);Wu();try{wJ(e)}finally{ju(),i()}}}const iQ={get(e,t){return ui(e,"get",""),e[t]}};function X4(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,iQ),slots:e.slots,emit:e.emit,expose:t}}function fm(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(OI(B$(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wv)return wv[n](e)},has(t,n){return n in t||n in wv}})):e.proxy}function dE(e,t=!0){return bt(e)?e.displayName||e.name:e.name||t&&e.__name}function oQ(e){return bt(e)&&"__vccOpts"in e}const Le=(e,t)=>Sq(e,t,uh);function Xi(e,t,n){const r=arguments.length;return r===2?vn(t)&&!Qe(t)?Sl(t)?se(e,null,[t]):se(e,t):se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Sl(n)&&(n=[n]),se(e,t,n))}function aQ(){}function sQ(e,t,n,r){const i=n[r];if(i&&Y4(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function Y4(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&pi&&pi.push(e),!0}const K4="3.5.13",lQ=Br,uQ=Pq,cQ=Od,fQ=Y$,dQ={createComponentInstance:G4,setupComponent:W4,renderComponentRoot:c_,setCurrentRenderingInstance:vg,isVNode:Sl,normalizeVNode:Yi,getComponentPublicInstance:fm,ensureValidVNode:VI,pushWarningContext:Eq,popWarningContext:Aq},hQ=dQ,pQ=null,vQ=null,gQ=null;/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let hE;const yM=typeof window<"u"&&window.trustedTypes;if(yM)try{hE=yM.createPolicy("vue",{createHTML:e=>e})}catch{}const Z4=hE?e=>hE.createHTML(e):e=>e,mQ="http://www.w3.org/2000/svg",yQ="http://www.w3.org/1998/Math/MathML",Zs=typeof document<"u"?document:null,_M=Zs&&Zs.createElement("template"),_Q={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"?Zs.createElementNS(mQ,e):t==="mathml"?Zs.createElementNS(yQ,e):n?Zs.createElement(e,{is:n}):Zs.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Zs.createTextNode(e),createComment:e=>Zs.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zs.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{_M.innerHTML=Z4(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=_M.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]}},Vl="transition",gp="animation",ch=Symbol("_vtc"),q4={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},J4=Qt({},NI,q4),bQ=e=>(e.displayName="Transition",e.props=J4,e),Q4=bQ((e,{slots:t})=>Xi(t4,eB(e),t)),uc=(e,t=[])=>{Qe(e)?e.forEach(n=>n(...t)):e&&e(...t)},bM=e=>e?Qe(e)?e.some(t=>t.length>1):e.length>1:!1;function eB(e){const t={};for(const M in e)M in q4||(t[M]=e[M]);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:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=SQ(i),m=v&&v[0],_=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:S,onLeave:w,onLeaveCancelled:C,onBeforeAppear:T=y,onAppear:E=b,onAppearCancelled:R=S}=t,I=(M,F,$,z)=>{M._enterCancelled=z,tu(M,F?c:s),tu(M,F?u:a),$&&$()},O=(M,F)=>{M._isLeaving=!1,tu(M,f),tu(M,h),tu(M,d),F&&F()},P=M=>(F,$)=>{const z=M?E:b,B=()=>I(F,M,$);uc(z,[F,B]),SM(()=>{tu(F,M?l:o),is(F,M?c:s),bM(z)||wM(F,r,m,B)})};return Qt(t,{onBeforeEnter(M){uc(y,[M]),is(M,o),is(M,a)},onBeforeAppear(M){uc(T,[M]),is(M,l),is(M,u)},onEnter:P(!1),onAppear:P(!0),onLeave(M,F){M._isLeaving=!0;const $=()=>O(M,F);is(M,f),M._enterCancelled?(is(M,d),pE()):(pE(),is(M,d)),SM(()=>{M._isLeaving&&(tu(M,f),is(M,h),bM(w)||wM(M,r,_,$))}),uc(w,[M,$])},onEnterCancelled(M){I(M,!1,void 0,!0),uc(S,[M])},onAppearCancelled(M){I(M,!0,void 0,!0),uc(R,[M])},onLeaveCancelled(M){O(M),uc(C,[M])}})}function SQ(e){if(e==null)return null;if(vn(e))return[Dx(e.enter),Dx(e.leave)];{const t=Dx(e);return[t,t]}}function Dx(e){return ug(e)}function is(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ch]||(e[ch]=new Set)).add(t)}function tu(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ch];n&&(n.delete(t),n.size||(e[ch]=void 0))}function SM(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let wQ=0;function wM(e,t,n,r){const i=e._endId=++wQ,o=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=tB(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[v]||"").split(", "),i=r(`${Vl}Delay`),o=r(`${Vl}Duration`),a=xM(i,o),s=r(`${gp}Delay`),l=r(`${gp}Duration`),u=xM(s,l);let c=null,f=0,d=0;t===Vl?a>0&&(c=Vl,f=a,d=o.length):t===gp?u>0&&(c=gp,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?Vl:gp:null,d=c?c===Vl?o.length:l.length:0);const h=c===Vl&&/\b(transform|all)(,|$)/.test(r(`${Vl}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function xM(e,t){for(;e.lengthCM(n)+CM(e[r])))}function CM(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function pE(){return document.body.offsetHeight}function xQ(e,t,n){const r=e[ch];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const C1=Symbol("_vod"),nB=Symbol("_vsh"),jI={beforeMount(e,{value:t},{transition:n}){e[C1]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mp(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),mp(e,!0),r.enter(e)):r.leave(e,()=>{mp(e,!1)}):mp(e,t))},beforeUnmount(e,{value:t}){mp(e,t)}};function mp(e,t){e.style.display=t?e[C1]:"none",e[nB]=!t}function CQ(){jI.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const rB=Symbol("");function TQ(e){const t=xr();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>T1(o,i))},r=()=>{const i=e(t.proxy);t.ce?T1(t.ce,i):vE(t.subTree,i),n(i)};FI(()=>{hg(r)}),fo(()=>{Vt(r,Br,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Gf(()=>i.disconnect())})}function vE(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{vE(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)T1(e.el,t);else if(e.type===Ye)e.children.forEach(n=>vE(n,t));else if(e.type===df){let{el:n,anchor:r}=e;for(;n&&(T1(n,t),n!==r);)n=n.nextSibling}}function T1(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t)n.setProperty(`--${i}`,t[i]),r+=`--${i}: ${t[i]};`;n[rB]=r}}const EQ=/(^|;)\s*display\s*:/;function AQ(e,t,n){const r=e.style,i=Rt(n);let o=!1;if(n&&!i){if(t)if(Rt(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&d_(r,s,"")}else for(const a in t)n[a]==null&&d_(r,a,"");for(const a in n)a==="display"&&(o=!0),d_(r,a,n[a])}else if(i){if(t!==n){const a=r[rB];a&&(n+=";"+a),r.cssText=n,o=EQ.test(n)}}else t&&e.removeAttribute("style");C1 in e&&(e[C1]=o?r.display:"",e[nB]&&(r.display="none"))}const TM=/\s*!important$/;function d_(e,t,n){if(Qe(n))n.forEach(r=>d_(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=IQ(e,t);TM.test(n)?e.setProperty(fi(r),n.replace(TM,""),"important"):e[r]=n}}const EM=["Webkit","Moz","ms"],Mx={};function IQ(e,t){const n=Mx[t];if(n)return n;let r=$n(t);if(r!=="filter"&&r in e)return Mx[t]=r;r=zu(r);for(let i=0;iLx||(DQ.then(()=>Lx=0),Lx=Date.now());function LQ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ca(NQ(r,n.value),t,5,[r])};return n.value=e,n.attached=MQ(),n}function NQ(e,t){if(Qe(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 DM=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,kQ=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?xQ(e,r,a):t==="style"?AQ(e,n,r):Hu(t)?Eb(t)||PQ(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):FQ(e,t,r,a))?(RM(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&IM(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Rt(r))?RM(e,$n(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),IM(e,t,r,a))};function FQ(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&DM(t)&&bt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return DM(t)&&Rt(n)?!1:t in e}const MM={};/*! #__NO_SIDE_EFFECTS__ */function iB(e,t,n){const r=it(e,t);im(r)&&Qt(r,t);class i extends zb{constructor(a){super(r,a,n)}}return i.def=r,i}/*! #__NO_SIDE_EFFECTS__ */const $Q=(e,t)=>iB(e,t,gB),BQ=typeof HTMLElement<"u"?HTMLElement:class{};class zb extends BQ{constructor(t,n={},r=A1){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!==A1?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof zb){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):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._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,za(()=>{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{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&&!Qe(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=ug(this._props[l])),(s||(s=Object.create(null)))[$n(l)]=!0)}this._numberProps=s,i&&this._resolveProps(r),this.shadowRoot&&this._applyStyles(a),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>t(this._def=r,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),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)cn(this,r)||Object.defineProperty(this,r,{get:()=>N(n[r])})}_resolveProps(t){const{props:n}=t,r=Qe(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($n))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):MM;const i=$n(t);n&&this._numberProps&&this._numberProps[i]&&(r=ug(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===MM?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(fi(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(fi(t),n+""):n||this.removeAttribute(fi(t)),o&&o.observe(this,{attributes:!0})}}_update(){vB(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=se(this._def,Qt(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,im(a[0])?Qt({detail:a},a[0]):{detail:a}))};r.emit=(o,...a)=>{i(o,a),fi(o)!==o&&i(fi(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(delete e.props.mode,e),GQ=HQ({name:"TransitionGroup",props:Qt({},J4,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=xr(),r=LI();let i,o;return Vb(()=>{if(!i.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!YQ(i[0].el,n.vnode.el,a))return;i.forEach(WQ),i.forEach(jQ);const s=i.filter(XQ);pE(),s.forEach(l=>{const u=l.el,c=u.style;is(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[E1]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[E1]=null,tu(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=an(e),s=eB(a);let l=a.tag||Ye;if(i=[],o)for(let u=0;u{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}=tB(r);return o.removeChild(r),a}const Mu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Qe(t)?n=>lf(t,n):t};function KQ(e){e.target.composing=!0}function NM(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const aa=Symbol("_assign"),sr={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[aa]=Mu(i);const o=r||i.props&&i.props.type==="number";rl(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=lg(s)),e[aa](s)}),n&&rl(e,"change",()=>{e.value=e.value.trim()}),t||(rl(e,"compositionstart",KQ),rl(e,"compositionend",NM),rl(e,"change",NM))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[aa]=Mu(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?lg(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))}},ar={deep:!0,created(e,t,n){e[aa]=Mu(n),rl(e,"change",()=>{const r=e._modelValue,i=fh(e),o=e.checked,a=e[aa];if(Qe(r)){const s=am(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(Gu(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(lB(e,o))})},mounted:kM,beforeUpdate(e,t,n){e[aa]=Mu(n),kM(e,t,n)}};function kM(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(Qe(t))i=am(t,r.props.value)>-1;else if(Gu(t))i=t.has(r.props.value);else{if(t===n)return;i=_l(t,lB(e,!0))}e.checked!==i&&(e.checked=i)}const XI={created(e,{value:t},n){e.checked=_l(t,n.props.value),e[aa]=Mu(n),rl(e,"change",()=>{e[aa](fh(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[aa]=Mu(r),t!==n&&(e.checked=_l(t,r.props.value))}},Vr={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Gu(t);rl(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?lg(fh(a)):fh(a));e[aa](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,za(()=>{e._assigning=!1})}),e[aa]=Mu(r)},mounted(e,{value:t}){FM(e,t)},beforeUpdate(e,t,n){e[aa]=Mu(n)},updated(e,{value:t}){e._assigning||FM(e,t)}};function FM(e,t){const n=e.multiple,r=Qe(t);if(!(n&&!r&&!Gu(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=am(t,s)>-1}else a.selected=t.has(s);else if(_l(fh(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function fh(e){return"_value"in e?e._value:e.value}function lB(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const uB={created(e,t,n){Gy(e,t,n,null,"created")},mounted(e,t,n){Gy(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Gy(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Gy(e,t,n,r,"updated")}};function cB(e,t){switch(e){case"SELECT":return Vr;case"TEXTAREA":return sr;default:switch(t){case"checkbox":return ar;case"radio":return XI;default:return sr}}}function Gy(e,t,n,r,i){const a=cB(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function ZQ(){sr.getSSRProps=({value:e})=>({value:e}),XI.getSSRProps=({value:e},t)=>{if(t.props&&_l(t.props.value,e))return{checked:!0}},ar.getSSRProps=({value:e},t)=>{if(Qe(e)){if(t.props&&am(e,t.props.value)>-1)return{checked:!0}}else if(Gu(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},uB.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=cB(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const qQ=["ctrl","shift","alt","meta"],JQ={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)=>qQ.some(n=>e[`${n}Key`]&&!t.includes(n))},ur=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=fi(i.key);if(t.some(a=>a===o||QQ[a]===o))return e(i)})},dB=Qt({patchProp:kQ},_Q);let Tv,$M=!1;function hB(){return Tv||(Tv=C4(dB))}function pB(){return Tv=$M?Tv:T4(dB),$M=!0,Tv}const vB=(...e)=>{hB().render(...e)},eee=(...e)=>{pB().hydrate(...e)},A1=(...e)=>{const t=hB().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=yB(r);if(!i)return;const o=t._component;!bt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,mB(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t},gB=(...e)=>{const t=pB().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=yB(r);if(i)return n(i,!0,mB(i))},t};function mB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yB(e){return Rt(e)?document.querySelector(e):e}let BM=!1;const tee=()=>{BM||(BM=!0,ZQ(),CQ())},nee=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:t4,BaseTransitionPropsValidators:NI,Comment:Sr,DeprecationTypes:gQ,EffectScope:TI,ErrorCodes:Rq,ErrorTypeStrings:uQ,Fragment:Ye,KeepAlive:tJ,ReactiveEffect:cg,Static:df,Suspense:zJ,Teleport:Fq,Text:dl,TrackOpTypes:wq,Transition:Q4,TransitionGroup:zQ,TriggerOpTypes:xq,VueElement:zb,assertNumber:Iq,callWithAsyncErrorHandling:ca,callWithErrorHandling:kh,camelize:$n,capitalize:zu,cloneVNode:Ss,compatUtils:vQ,computed:Le,createApp:A1,createBlock:Tt,createCommentVNode:yt,createElementBlock:te,createElementVNode:L,createHydrationRenderer:T4,createPropsRestProxy:bJ,createRenderer:C4,createSSRApp:gB,createSlots:aJ,createStaticVNode:JJ,createTextVNode:st,createVNode:se,customRef:DI,defineAsyncComponent:Qq,defineComponent:it,defineCustomElement:iB,defineEmits:cJ,defineExpose:fJ,defineModel:pJ,defineOptions:dJ,defineProps:uJ,defineSSRCustomElement:$Q,defineSlots:hJ,devtools:cQ,effect:XZ,effectScope:x$,getCurrentInstance:xr,getCurrentScope:Ob,getCurrentWatcher:Cq,getTransitionRawChildren:$b,guardReactiveProps:U4,h:Xi,handleError:Hf,hasInjectionContext:HI,hydrate:eee,hydrateOnIdle:Xq,hydrateOnInteraction:qq,hydrateOnMediaQuery:Zq,hydrateOnVisible:Kq,initCustomFormatter:aQ,initDirectivesForSSR:tee,inject:to,isMemoSame:Y4,isProxy:kb,isReactive:Cu,isReadonly:Du,isRef:at,isRuntimeOnly:rQ,isShallow:Io,isVNode:Sl,markRaw:B$,mergeDefaults:yJ,mergeModels:_J,mergeProps:H4,nextTick:za,normalizeClass:ot,normalizeProps:h$,normalizeStyle:Ir,onActivated:r4,onBeforeMount:a4,onBeforeUnmount:um,onBeforeUpdate:FI,onDeactivated:i4,onErrorCaptured:c4,onMounted:fo,onRenderTracked:u4,onRenderTriggered:l4,onScopeDispose:EI,onServerPrefetch:s4,onUnmounted:Gf,onUpdated:Vb,onWatcherCleanup:G$,openBlock:X,popScopeId:Lq,provide:xv,proxyRefs:OI,pushScopeId:Mq,queuePostFlushCb:hg,reactive:Va,readonly:sm,ref:ke,registerRuntimeCompiler:nQ,render:vB,renderList:ln,renderSlot:cf,resolveComponent:iJ,resolveDirective:oJ,resolveDynamicComponent:$a,resolveFilter:pQ,resolveTransitionHooks:lh,setBlockTracking:sE,setDevtoolsHook:fQ,setTransitionHooks:bl,shallowReactive:PI,shallowReadonly:hq,shallowRef:Uf,ssrContextKey:R4,ssrUtils:hQ,stop:YZ,toDisplayString:ie,toHandlerKey:sf,toHandlers:sJ,toRaw:an,toRef:U$,toRefs:mq,toValue:bs,transformVNodeArgs:ZJ,triggerRef:QT,unref:N,useAttrs:mJ,useCssModule:UQ,useCssVars:TQ,useHost:oB,useId:Bq,useModel:M4,useSSRContext:P4,useShadowRoot:VQ,useSlots:gJ,useTemplateRef:Vq,useTransitionState:LI,vModelCheckbox:ar,vModelDynamic:uB,vModelRadio:XI,vModelSelect:Vr,vModelText:sr,vShow:jI,version:K4,warn:lQ,watch:Vt,watchEffect:Ub,watchPostEffect:kJ,watchSyncEffect:O4,withAsyncContext:SJ,withCtx:er,withDefaults:vJ,withDirectives:gt,withKeys:fB,withMemo:sQ,withModifiers:ur,withScopeId:Nq},Symbol.toStringTag,{value:"Module"}));function ree(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 13.5V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m12-3V3.75m0 9.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 3.75V16.5m-6-9V3.75m0 3.75a1.5 1.5 0 0 1 0 3m0-3a1.5 1.5 0 0 0 0 3m0 9.75V10.5"})])}function Wb(e,t){return X(),te("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"},[L("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 iee(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function oee(e,t){return X(),te("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"},[L("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 _B(e,t){return X(),te("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"},[L("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 Lu(e,t){return X(),te("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"},[L("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 dm(e,t){return X(),te("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"},[L("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 aee(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function bB(e,t){return X(),te("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"},[L("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 hm(e,t){return X(),te("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"},[L("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 see(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function lee(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function uee(e,t){return X(),te("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"},[L("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"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function cee(e,t){return X(),te("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"},[L("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 VM(e,t){return X(),te("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"},[L("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 fee(e,t){return X(),te("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"},[L("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 dee(e,t){return X(),te("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"},[L("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 hee(e,t){return X(),te("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"},[L("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"}),L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function pee(e,t){return X(),te("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"},[L("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 SB(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function UM(e,t){return X(),te("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"},[L("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 HM(e,t){return X(),te("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"},[L("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 YI(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function vee(e,t){return X(),te("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"},[L("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 wB(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function gee(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),L("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 xB(e,t){return X(),te("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"},[L("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 mee(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function CB(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function KI(e,t){return X(),te("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"},[L("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 yee(e,t){return X(),te("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"},[L("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 _ee(e,t){return X(),te("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"},[L("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 bee(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function pm(e,t){return X(),te("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"},[L("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}function jb(e){return Ob()?(EI(e),!0):!1}const Nx=new WeakMap,See=(...e)=>{var t;const n=e[0],r=(t=xr())==null?void 0:t.proxy;if(r==null&&!HI())throw new Error("injectLocal must be called in setup");return r&&Nx.has(r)&&n in Nx.get(r)?Nx.get(r)[n]:to(...e)},TB=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const wee=e=>e!=null,xee=Object.prototype.toString,Cee=e=>xee.call(e)==="[object Object]",EB=()=>{};function Tee(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 AB=e=>e();function Eee(e=AB){const t=ke(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:sm(t),pause:n,resume:r,eventFilter:i}}function GM(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function IB(e){return xr()}function I1(e){return Array.isArray(e)?e:[e]}function Aee(...e){if(e.length!==1)return U$(...e);const t=e[0];return typeof t=="function"?sm(DI(()=>({get:t,set:EB}))):ke(t)}function Iee(e,t,n={}){const{eventFilter:r=AB,...i}=n;return Vt(e,Tee(r,t),i)}function Ree(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=Eee(r);return{stop:Iee(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function Pee(e,t){IB()&&um(e,t)}function RB(e,t=!0,n){IB()?fo(e,n):t?e():za(e)}const Tf=TB?window:void 0,PB=TB?window.document:void 0;function vu(e){var t;const n=bs(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Kd(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=Tf):[t,n,r,i]=e,!t)return EB;n=I1(n),r=I1(r);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Vt(()=>[vu(t),bs(i)],([c,f])=>{if(a(),!c)return;const d=Cee(f)?{...f}:f;o.push(...n.flatMap(h=>r.map(v=>s(c,h,v,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return jb(u),u}function Oee(){const e=ke(!1),t=xr();return t&&fo(()=>{e.value=!0},t),e}function ZI(e){const t=Oee();return Le(()=>(t.value,!!e()))}function Dee(e,t,n={}){const{window:r=Tf,...i}=n;let o;const a=ZI(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Le(()=>{const d=bs(e),h=I1(d).map(vu).filter(wee);return new Set(h)}),u=Vt(()=>l.value,d=>{s(),a.value&&d.size&&(o=new MutationObserver(t),d.forEach(h=>o.observe(h,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),f=()=>{u(),s()};return jb(f),{isSupported:a,stop:f,takeRecords:c}}const Mee=Symbol("vueuse-ssr-width");function Lee(){const e=HI()?See(Mee,null):null;return typeof e=="number"?e:void 0}function qI(e,t={}){const{window:n=Tf,ssrWidth:r=Lee()}=t,i=ZI(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=ke(typeof r=="number");let a;const s=ke(!1),l=f=>{s.value=f.matches},u=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",l):a.removeListener(l))},c=Ub(()=>{if(o.value){o.value=!i.value;const f=bs(e).split(",");s.value=f.some(d=>{const h=d.includes("not all"),v=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let _=!!(v||m);return v&&_&&(_=r>=GM(v[1])),m&&_&&(_=r<=GM(m[1])),h?!_:_});return}i.value&&(u(),a=n.matchMedia(bs(e)),"addEventListener"in a?a.addEventListener("change",l):a.addListener(l),s.value=a.matches)});return jb(()=>{c(),u(),a=void 0}),Le(()=>s.value)}const zy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wy="__vueuse_ssr_handlers__",Nee=kee();function kee(){return Wy in zy||(zy[Wy]=zy[Wy]||{}),zy[Wy]}function Fee(e,t){return Nee[e]||t}function $ee(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 Bee={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()}},zM="vueuse-storage";function It(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=Tf,eventFilter:d,onError:h=P=>{console.error(P)},initOnMounted:v}=r,m=(c?Uf:ke)(typeof t=="function"?t():t),_=Le(()=>bs(e));if(!n)try{n=Fee("getDefaultStorage",()=>{var P;return(P=Tf)==null?void 0:P.localStorage})()}catch(P){h(P)}if(!n)return m;const y=bs(t),b=$ee(y),S=(i=r.serializer)!=null?i:Bee[b],{pause:w,resume:C}=Ree(m,()=>E(m.value),{flush:o,deep:a,eventFilter:d});Vt(_,()=>I(),{flush:o}),f&&s&&RB(()=>{n instanceof Storage?Kd(f,"storage",I,{passive:!0}):Kd(f,zM,O),v&&I()}),v||I();function T(P,M){if(f){const F={key:_.value,oldValue:P,newValue:M,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(zM,{detail:F}))}}function E(P){try{const M=n.getItem(_.value);if(P==null)T(M,null),n.removeItem(_.value);else{const F=S.write(P);M!==F&&(n.setItem(_.value,F),T(M,F))}}catch(M){h(M)}}function R(P){const M=P?P.newValue:n.getItem(_.value);if(M==null)return l&&y!=null&&n.setItem(_.value,S.write(y)),y;if(!P&&u){const F=S.read(M);return typeof u=="function"?u(F,y):b==="object"&&!Array.isArray(F)?{...y,...F}:F}else return typeof M!="string"?M:S.read(M)}function I(P){if(!(P&&P.storageArea!==n)){if(P&&P.key==null){m.value=y;return}if(!(P&&P.key!==_.value)){w();try{(P==null?void 0:P.newValue)!==S.write(m.value)&&(m.value=R(P))}catch(M){h(M)}finally{P?za(C):C()}}}}function O(P){I(P.detail)}return m}function Vee(e={}){const{document:t=PB}=e;if(!t)return ke("visible");const n=ke(t.visibilityState);return Kd(t,"visibilitychange",()=>{n.value=t.visibilityState},{passive:!0}),n}function Uee(e,t,n={}){const{window:r=Tf,...i}=n;let o;const a=ZI(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Le(()=>{const f=bs(e);return Array.isArray(f)?f.map(d=>vu(d)):[vu(f)]}),u=Vt(l,f=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return jb(c),{isSupported:a,stop:c}}function Hee(e,t={width:0,height:0},n={}){const{window:r=Tf,box:i="content-box"}=n,o=Le(()=>{var f,d;return(d=(f=vu(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),a=ke(t.width),s=ke(t.height),{stop:l}=Uee(e,([f])=>{const d=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&o.value){const h=vu(e);if(h){const v=h.getBoundingClientRect();a.value=v.width,s.value=v.height}}else if(d){const h=I1(d);a.value=h.reduce((v,{inlineSize:m})=>v+m,0),s.value=h.reduce((v,{blockSize:m})=>v+m,0)}else a.value=f.contentRect.width,s.value=f.contentRect.height},n);RB(()=>{const f=vu(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Vt(()=>vu(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}}const yp=new Map;function Gee(e){const t=Ob();function n(s){var l;const u=yp.get(e)||new Set;u.add(s),yp.set(e,u);const c=()=>i(s);return(l=t==null?void 0:t.cleanups)==null||l.push(c),c}function r(s){function l(...u){i(l),s(...u)}return n(l)}function i(s){const l=yp.get(e);l&&(l.delete(s),l.size||o())}function o(){yp.delete(e)}function a(s,l){var u;(u=yp.get(e))==null||u.forEach(c=>c(s,l))}return{on:n,once:r,off:i,emit:a,reset:o}}function zee(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0}=t,s=Va({x:0,y:0}),l=Va({x:0,y:0}),u=Le(()=>s.x-l.x),c=Le(()=>s.y-l.y),{max:f,abs:d}=Math,h=Le(()=>f(d(u.value),d(c.value))>=n),v=ke(!1),m=Le(()=>h.value?d(u.value)>d(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),_=E=>[E.touches[0].clientX,E.touches[0].clientY],y=(E,R)=>{s.x=E,s.y=R},b=(E,R)=>{l.x=E,l.y=R},S={passive:a,capture:!a},w=E=>{v.value&&(i==null||i(E,m.value)),v.value=!1},C=[Kd(e,"touchstart",E=>{if(E.touches.length!==1)return;const[R,I]=_(E);y(R,I),b(R,I),o==null||o(E)},S),Kd(e,"touchmove",E=>{if(E.touches.length!==1)return;const[R,I]=_(E);b(R,I),S.capture&&!S.passive&&Math.abs(u.value)>Math.abs(c.value)&&E.preventDefault(),!v.value&&h.value&&(v.value=!0),v.value&&(r==null||r(E))},S),Kd(e,["touchend","touchcancel"],w,S)];return{isSwiping:v,direction:m,coordsStart:s,coordsEnd:l,lengthX:u,lengthY:c,stop:()=>C.forEach(E=>E()),isPassiveEventSupported:!0}}function Wee(e=null,t={}){var n,r,i;const{document:o=PB,restoreOnUnmount:a=f=>f}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=Aee((r=e??(o==null?void 0:o.title))!=null?r:null),u=e&&typeof e=="function";function c(f){if(!("titleTemplate"in t))return f;const d=t.titleTemplate||"%s";return typeof d=="function"?d(f):bs(d).replace(/%s/g,f)}return Vt(l,(f,d)=>{f!==d&&o&&(o.title=c(typeof f=="string"?f:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&Dee((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),Pee(()=>{if(a){const f=a(s,l.value||"");f!=null&&o&&(o.title=f)}}),l}/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const Dd=typeof document<"u";function OB(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function jee(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&OB(e.default)}const yn=Object.assign;function kx(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ua(i)?i.map(e):e(i)}return n}const Ev=()=>{},Ua=Array.isArray,DB=/#/g,Xee=/&/g,Yee=/\//g,Kee=/=/g,Zee=/\?/g,MB=/\+/g,qee=/%5B/g,Jee=/%5D/g,LB=/%5E/g,Qee=/%60/g,NB=/%7B/g,ete=/%7C/g,kB=/%7D/g,tte=/%20/g;function JI(e){return encodeURI(""+e).replace(ete,"|").replace(qee,"[").replace(Jee,"]")}function nte(e){return JI(e).replace(NB,"{").replace(kB,"}").replace(LB,"^")}function gE(e){return JI(e).replace(MB,"%2B").replace(tte,"+").replace(DB,"%23").replace(Xee,"%26").replace(Qee,"`").replace(NB,"{").replace(kB,"}").replace(LB,"^")}function rte(e){return gE(e).replace(Kee,"%3D")}function ite(e){return JI(e).replace(DB,"%23").replace(Zee,"%3F")}function ote(e){return e==null?"":ite(e).replace(Yee,"%2F")}function _g(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ate=/\/$/,ste=e=>e.replace(ate,"");function Fx(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return 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=fte(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:_g(a)}}function lte(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function WM(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ute(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&dh(t.matched[r],n.matched[i])&&FB(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function dh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function FB(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cte(e[n],t[n]))return!1;return!0}function cte(e,t){return Ua(e)?jM(e,t):Ua(t)?jM(t,e):e===t}function jM(e,t){return Ua(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function fte(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;a1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const Ul={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var bg;(function(e){e.pop="pop",e.push="push"})(bg||(bg={}));var Av;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Av||(Av={}));function dte(e){if(!e)if(Dd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ste(e)}const hte=/^[^#]+#/;function pte(e,t){return e.replace(hte,"#")+t}function vte(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 Xb=()=>({left:window.scrollX,top:window.scrollY});function gte(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=vte(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 XM(e,t){return(history.state?history.state.position-t:-1)+e}const mE=new Map;function mte(e,t){mE.set(e,t)}function yte(e){const t=mE.get(e);return mE.delete(e),t}let _te=()=>location.protocol+"//"+location.host;function $B(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),WM(l,"")}return WM(n,e)+r+i}function bte(e,t,n,r){let i=[],o=[],a=null;const s=({state:d})=>{const h=$B(e,location),v=n.value,m=t.value;let _=0;if(d){if(n.value=h,t.value=d,a&&a===v){a=null;return}_=m?d.position-m.position:0}else r(h);i.forEach(y=>{y(n.value,v,{delta:_,type:bg.pop,direction:_?_>0?Av.forward:Av.back:Av.unknown})})};function l(){a=n.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return o.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(yn({},d.state,{scroll:Xb()}),"")}function f(){for(const d of o)d();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 YM(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Xb():null}}function Ste(e){const{history:t,location:n}=window,r={value:$B(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("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:_te()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function a(l,u){const c=yn({},t.state,YM(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=yn({},i.value,t.state,{forward:l,scroll:Xb()});o(c.current,c,!0);const f=yn({},YM(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 wte(e){e=dte(e);const t=Ste(e),n=bte(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=yn({location:"",base:e,go:r,createHref:pte.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 xte(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),wte(e)}function Cte(e){return typeof e=="string"||e&&typeof e=="object"}function BB(e){return typeof e=="string"||typeof e=="symbol"}const VB=Symbol("");var KM;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(KM||(KM={}));function hh(e,t){return yn(new Error,{type:e,[VB]:!0},t)}function Hs(e,t){return e instanceof Error&&VB in e&&(t==null||!!(e.type&t))}const ZM="[^/]+?",Tte={sensitive:!1,strict:!1,start:!0,end:!0},Ete=/[.+*?^${}()[\]/\\]/g;function Ate(e,t){const n=yn({},Tte,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;ft.length?t.length===1&&t[0]===80?1:-1:0}function UB(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Rte={type:0,value:""},Pte=/[a-zA-Z0-9_]/;function Ote(e){if(!e)return[[]];if(e==="/")return[[Rte]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}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 d(){u+=l}for(;s{a(S)}:Ev}function a(f){if(BB(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,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 d=kte(f,n);n.splice(d,0,f),f.record.name&&!eL(f)&&r.set(f.record.name,f)}function u(f,d){let h,v={},m,_;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw hh(1,{location:f});_=h.record.name,v=yn(JM(d.params,h.keys.filter(S=>!S.optional).concat(h.parent?h.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),f.params&&JM(f.params,h.keys.map(S=>S.name))),m=h.stringify(v)}else if(f.path!=null)m=f.path,h=n.find(S=>S.re.test(m)),h&&(v=h.parse(m),_=h.record.name);else{if(h=d.name?r.get(d.name):n.find(S=>S.re.test(d.path)),!h)throw hh(1,{location:f,currentLocation:d});_=h.record.name,v=yn({},d.params,f.params),m=h.stringify(v)}const y=[];let b=h;for(;b;)y.unshift(b.record),b=b.parent;return{name:_,path:m,params:v,matched:y,meta:Nte(y)}}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 JM(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function QM(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Lte(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 Lte(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 eL(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Nte(e){return e.reduce((t,n)=>yn(t,n.meta),{})}function tL(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function kte(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;UB(e,t[o])<0?r=o:n=o+1}const i=Fte(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Fte(e){let t=e;for(;t=t.parent;)if(HB(t)&&UB(e,t)===0)return t}function HB({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function $te(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&gE(o)):[r&&gE(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Bte(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ua(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const Vte=Symbol(""),rL=Symbol(""),Yb=Symbol(""),QI=Symbol(""),yE=Symbol("");function _p(){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 lu(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=d=>{d===!1?l(hh(4,{from:n,to:t})):d instanceof Error?l(d):Cte(d)?l(hh(2,{from:t,to:d})):(a&&r.enterCallbacks[i]===a&&typeof d=="function"&&a.push(d),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(d=>l(d))})}function $x(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(OB(l)){const c=(l.__vccOpts||l)[t];c&&o.push(lu(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=jee(c)?c.default:c;a.mods[s]=c,a.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&lu(h,n,r,a,s,i)()}))}}return o}function iL(e){const t=to(Yb),n=to(QI),r=Le(()=>{const l=N(e.to);return t.resolve(l)}),i=Le(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(dh.bind(null,c));if(d>-1)return d;const h=oL(l[u-2]);return u>1&&oL(c)===h&&f[f.length-1].path!==h?f.findIndex(dh.bind(null,l[u-2])):d}),o=Le(()=>i.value>-1&&Wte(n.params,r.value.params)),a=Le(()=>i.value>-1&&i.value===n.matched.length-1&&FB(n.params,r.value.params));function s(l={}){if(zte(l)){const u=t[N(e.replace)?"replace":"push"](N(e.to)).catch(Ev);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function Ute(e){return e.length===1?e[0]:e}const Hte=it({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:iL,setup(e,{slots:t}){const n=Va(iL(e)),{options:r}=to(Yb),i=Le(()=>({[aL(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[aL(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Ute(t.default(n));return e.custom?o:Xi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),Gte=Hte;function zte(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 Wte(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(!Ua(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function oL(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const aL=(e,t,n)=>e??t??n,jte=it({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=to(yE),i=Le(()=>e.route||r.value),o=to(rL,0),a=Le(()=>{let u=N(o);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=Le(()=>i.value.matched[a.value]);xv(rL,Le(()=>a.value+1)),xv(Vte,s),xv(yE,i);const l=ke();return Vt(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!dh(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return sL(n.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,_=Xi(d,yn({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return sL(n.default,{Component:_,route:u})||_}}});function sL(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const e2=jte;function Xte(e){const t=Mte(e.routes,e),n=e.parseQuery||$te,r=e.stringifyQuery||nL,i=e.history,o=_p(),a=_p(),s=_p(),l=Uf(Ul);let u=Ul;Dd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=kx.bind(null,fe=>""+fe),f=kx.bind(null,ote),d=kx.bind(null,_g);function h(fe,Ee){let Se,Ce;return BB(fe)?(Se=t.getRecordMatcher(fe),Ce=Ee):Ce=fe,t.addRoute(Ce,Se)}function v(fe){const Ee=t.getRecordMatcher(fe);Ee&&t.removeRoute(Ee)}function m(){return t.getRoutes().map(fe=>fe.record)}function _(fe){return!!t.getRecordMatcher(fe)}function y(fe,Ee){if(Ee=yn({},Ee||l.value),typeof fe=="string"){const G=Fx(n,fe,Ee.path),ue=t.resolve({path:G.path},Ee),we=i.createHref(G.fullPath);return yn(G,ue,{params:d(ue.params),hash:_g(G.hash),redirectedFrom:void 0,href:we})}let Se;if(fe.path!=null)Se=yn({},fe,{path:Fx(n,fe.path,Ee.path).path});else{const G=yn({},fe.params);for(const ue in G)G[ue]==null&&delete G[ue];Se=yn({},fe,{params:f(G)}),Ee.params=f(Ee.params)}const Ce=t.resolve(Se,Ee),Oe=fe.hash||"";Ce.params=c(d(Ce.params));const Be=lte(r,yn({},fe,{hash:nte(Oe),path:Ce.path})),H=i.createHref(Be);return yn({fullPath:Be,hash:Oe,query:r===nL?Bte(fe.query):fe.query||{}},Ce,{redirectedFrom:void 0,href:H})}function b(fe){return typeof fe=="string"?Fx(n,fe,l.value.path):yn({},fe)}function S(fe,Ee){if(u!==fe)return hh(8,{from:Ee,to:fe})}function w(fe){return E(fe)}function C(fe){return w(yn(b(fe),{replace:!0}))}function T(fe){const Ee=fe.matched[fe.matched.length-1];if(Ee&&Ee.redirect){const{redirect:Se}=Ee;let Ce=typeof Se=="function"?Se(fe):Se;return typeof Ce=="string"&&(Ce=Ce.includes("?")||Ce.includes("#")?Ce=b(Ce):{path:Ce},Ce.params={}),yn({query:fe.query,hash:fe.hash,params:Ce.path!=null?{}:fe.params},Ce)}}function E(fe,Ee){const Se=u=y(fe),Ce=l.value,Oe=fe.state,Be=fe.force,H=fe.replace===!0,G=T(Se);if(G)return E(yn(b(G),{state:typeof G=="object"?yn({},Oe,G.state):Oe,force:Be,replace:H}),Ee||Se);const ue=Se;ue.redirectedFrom=Ee;let we;return!Be&&ute(r,Ce,Se)&&(we=hh(16,{to:ue,from:Ce}),ge(Ce,Ce,!0,!1)),(we?Promise.resolve(we):O(ue,Ce)).catch(ve=>Hs(ve)?Hs(ve,2)?ve:me(ve):j(ve,ue,Ce)).then(ve=>{if(ve){if(Hs(ve,2))return E(yn({replace:H},b(ve.to),{state:typeof ve.to=="object"?yn({},Oe,ve.to.state):Oe,force:Be}),Ee||ue)}else ve=M(ue,Ce,!0,H,Oe);return P(ue,Ce,ve),ve})}function R(fe,Ee){const Se=S(fe,Ee);return Se?Promise.reject(Se):Promise.resolve()}function I(fe){const Ee=ze.values().next().value;return Ee&&typeof Ee.runWithContext=="function"?Ee.runWithContext(fe):fe()}function O(fe,Ee){let Se;const[Ce,Oe,Be]=Yte(fe,Ee);Se=$x(Ce.reverse(),"beforeRouteLeave",fe,Ee);for(const G of Ce)G.leaveGuards.forEach(ue=>{Se.push(lu(ue,fe,Ee))});const H=R.bind(null,fe,Ee);return Se.push(H),je(Se).then(()=>{Se=[];for(const G of o.list())Se.push(lu(G,fe,Ee));return Se.push(H),je(Se)}).then(()=>{Se=$x(Oe,"beforeRouteUpdate",fe,Ee);for(const G of Oe)G.updateGuards.forEach(ue=>{Se.push(lu(ue,fe,Ee))});return Se.push(H),je(Se)}).then(()=>{Se=[];for(const G of Be)if(G.beforeEnter)if(Ua(G.beforeEnter))for(const ue of G.beforeEnter)Se.push(lu(ue,fe,Ee));else Se.push(lu(G.beforeEnter,fe,Ee));return Se.push(H),je(Se)}).then(()=>(fe.matched.forEach(G=>G.enterCallbacks={}),Se=$x(Be,"beforeRouteEnter",fe,Ee,I),Se.push(H),je(Se))).then(()=>{Se=[];for(const G of a.list())Se.push(lu(G,fe,Ee));return Se.push(H),je(Se)}).catch(G=>Hs(G,8)?G:Promise.reject(G))}function P(fe,Ee,Se){s.list().forEach(Ce=>I(()=>Ce(fe,Ee,Se)))}function M(fe,Ee,Se,Ce,Oe){const Be=S(fe,Ee);if(Be)return Be;const H=Ee===Ul,G=Dd?history.state:{};Se&&(Ce||H?i.replace(fe.fullPath,yn({scroll:H&&G&&G.scroll},Oe)):i.push(fe.fullPath,Oe)),l.value=fe,ge(fe,Ee,Se,H),me()}let F;function $(){F||(F=i.listen((fe,Ee,Se)=>{if(!Me.listening)return;const Ce=y(fe),Oe=T(Ce);if(Oe){E(yn(Oe,{replace:!0,force:!0}),Ce).catch(Ev);return}u=Ce;const Be=l.value;Dd&&mte(XM(Be.fullPath,Se.delta),Xb()),O(Ce,Be).catch(H=>Hs(H,12)?H:Hs(H,2)?(E(yn(b(H.to),{force:!0}),Ce).then(G=>{Hs(G,20)&&!Se.delta&&Se.type===bg.pop&&i.go(-1,!1)}).catch(Ev),Promise.reject()):(Se.delta&&i.go(-Se.delta,!1),j(H,Ce,Be))).then(H=>{H=H||M(Ce,Be,!1),H&&(Se.delta&&!Hs(H,8)?i.go(-Se.delta,!1):Se.type===bg.pop&&Hs(H,20)&&i.go(-1,!1)),P(Ce,Be,H)}).catch(Ev)}))}let z=_p(),B=_p(),K;function j(fe,Ee,Se){me(fe);const Ce=B.list();return Ce.length?Ce.forEach(Oe=>Oe(fe,Ee,Se)):console.error(fe),Promise.reject(fe)}function le(){return K&&l.value!==Ul?Promise.resolve():new Promise((fe,Ee)=>{z.add([fe,Ee])})}function me(fe){return K||(K=!fe,$(),z.list().forEach(([Ee,Se])=>fe?Se(fe):Ee()),z.reset()),fe}function ge(fe,Ee,Se,Ce){const{scrollBehavior:Oe}=e;if(!Dd||!Oe)return Promise.resolve();const Be=!Se&&yte(XM(fe.fullPath,0))||(Ce||!Se)&&history.state&&history.state.scroll||null;return za().then(()=>Oe(fe,Ee,Be)).then(H=>H&>e(H)).catch(H=>j(H,fe,Ee))}const De=fe=>i.go(fe);let Fe;const ze=new Set,Me={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:m,resolve:y,options:e,push:w,replace:C,go:De,back:()=>De(-1),forward:()=>De(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:B.add,isReady:le,install(fe){const Ee=this;fe.component("RouterLink",Gte),fe.component("RouterView",e2),fe.config.globalProperties.$router=Ee,Object.defineProperty(fe.config.globalProperties,"$route",{enumerable:!0,get:()=>N(l)}),Dd&&!Fe&&l.value===Ul&&(Fe=!0,w(i.location).catch(Oe=>{}));const Se={};for(const Oe in Ul)Object.defineProperty(Se,Oe,{get:()=>l.value[Oe],enumerable:!0});fe.provide(Yb,Ee),fe.provide(QI,PI(Se)),fe.provide(yE,l);const Ce=fe.unmount;ze.add(fe),fe.unmount=function(){ze.delete(fe),ze.size<1&&(u=Ul,F&&F(),F=null,l.value=Ul,Fe=!1,K=!1),Ce()}}};function je(fe){return fe.reduce((Ee,Se)=>Ee.then(()=>I(Se)),Promise.resolve())}return Me}function Yte(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;adh(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>dh(u,l))||i.push(l))}return[n,r,i]}function GB(){return to(Yb)}function t2(e){return to(QI)}const n2="http://ipv6.google.com/generate_204",Ji=0;var fs=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(fs||{}),fu=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(fu||{}),Je=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.SniffHost="sniffHost",e.Destination="destination",e))(Je||{}),Kb=(e=>(e.AUTO="auto",e.MANUAL="manual",e))(Kb||{}),du=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(du||{}),Sg=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(Sg||{}),ph=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(ph||{}),Ef=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(Ef||{}),ji=(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))(ji||{}),Wc=(e=>(e.ASC="asc",e.DESC="desc",e))(Wc||{}),el=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(el||{}),jc=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(jc||{}),un=(e=>(e.overview="overview",e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(un||{});const zB={overview:VM,proxies:pee,connections:bB,rules:yee,logs:fee,settings:uee,setup:VM};var wg=(e=>(e.SMALL="small",e.LARGE="large",e))(wg||{}),vm=(e=>(e.SMALL="small",e.LARGE="large",e))(vm||{}),gm=(e=>(e.NORMAL="normal",e.REVERSE="reverse",e))(gm||{}),xo=(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.LoadBalance="loadbalance",e))(xo||{});const Kte=qI("(min-width: 1280px)"),_E=qI("(max-width: 768px)"),WB="background-image",R1="local-image",jB=e=>{const t=new Map,r=new Promise((f,d)=>{const h=indexedDB.open(e,1);h.onupgradeneeded=()=>{const v=h.result;v.objectStoreNames.contains(e)||v.createObjectStore(e,{keyPath:"key"})},h.onsuccess=()=>{const _=h.result.transaction(e,"readonly").objectStore(e).openCursor();_.onsuccess=y=>{const b=y.target.result;b?(t.set(b.key,b.value.value),b.continue()):f(h.result)},_.onerror=()=>d(_.error)},h.onerror=()=>d(h.error)}),i=async(f,d)=>{const h=await r;return new Promise((v,m)=>{const y=h.transaction(e,f).objectStore(e),b=d(y);b.onsuccess=()=>v(b.result),b.onerror=()=>m(b.error)})};return{put:async(f,d)=>(t.set(f,d),i("readwrite",h=>h.put({key:f,value:d}))),get:async f=>(await r,t.get(f)),del:async f=>(t.delete(f),i("readwrite",d=>d.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()))}},r2=jB("base64"),Zte=e=>r2.put(WB,e),qte=()=>r2.get(WB),Jte=()=>r2.clear(),mm=jB("iconCache"),Qte=mm.put,ene=e=>mm.get(e),tne=()=>mm.clear(),nne=()=>mm.getAllKeys(),rne=e=>mm.del(e),Zd=It("config/theme","default"),gu=It("config/language",Object.values(fs).includes(navigator.language)?navigator.language:fs.EN_US),lL=It("config/is-sidebar-collapsed",!0),us=Le({get:()=>_E.value?!0:lL.value,set:e=>{lL.value=e}}),Iv=It("config/font",fu.MI_SANS),Da=It("config/custom-background-image",""),h_=It("config/dashboard-transparent",90),p_=It("config/auto-upgrade",!1),v_=It("config/auto-upgrade-core",!1),Md=It("config/split-overview-page",!1),bp=It("config/show-ip-and-connection-info",!0),g_=It("config/auto-ip-check",!0),m_=It("config/auto-connection-check",!0),y_=It("config/show-statistics-when-sidebar-collapsed",!0),__=It("config/show-global-proxy",!0),b_=It("config/collapse-group-map",{}),Rv=It("config/two-columns",!0),hl=It("config/speedtest-url","http://www.gstatic.com/generate_204"),qd=It("config/independent-latency-test",!1),Eu=It("config/speedtest-timeout",3e3),bE=It("config/proxy-sort-type",du.DEFAULT),S_=It("config/automatic-disconnection",!0),Pv=It("config/truncate-proxy-name",!0),Ov=It("config/proxy-preview-type",Sg.AUTO),SE=It("config/hide-unavailable-proxies",!1),mu=It("config/low-latency",400),il=It("config/medium-latency",800),hf=It("config/ipv6-test",!1),Dv=It("config/proxy-card-size",vm.LARGE),w_=It("config/show-hidden-group",!1),Mv=It("config/icon-size",14),x_=It("config/icon-margin-right",6),Xc=It("config/use-connecticon-card",window.innerWidth<640),Lv=It("config/proxy-chain-direction",gm.NORMAL),C_=It("config/connecticon-table-size",wg.SMALL),T_=It("config/table-width-mode",Kb.AUTO),Vd=It("config/connection-table-columns",[Je.Close,Je.Host,Je.Type,Je.Rule,Je.Chains,Je.DlSpeed,Je.UlSpeed,Je.Download,Je.Upload,Je.ConnectTime]),as=It("config/connection-card-lines",[[Je.Host,Je.ConnectTime],[Je.Chains,Je.DlSpeed,Je.Close]]),To=It("config/source-ip-label-map",{}),E_=It("config/log-retention-limit",1e3);/*! * shared v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const P1=typeof window<"u",Xu=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ine=(e,t,n)=>one({l:e,k:t,s:n}),one=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),mr=e=>typeof e=="number"&&isFinite(e),ane=e=>i2(e)==="[object Date]",vh=e=>i2(e)==="[object RegExp]",Zb=e=>Xt(e)&&Object.keys(e).length===0,Pr=Object.assign,sne=Object.create,An=(e=null)=>sne(e);let uL;const Yc=()=>uL||(uL=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:An());function cL(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const lne=Object.prototype.hasOwnProperty;function La(e,t){return lne.call(e,t)}const cr=Array.isArray,Hn=e=>typeof e=="function",nt=e=>typeof e=="string",fn=e=>typeof e=="boolean",pn=e=>e!==null&&typeof e=="object",une=e=>pn(e)&&Hn(e.then)&&Hn(e.catch),XB=Object.prototype.toString,i2=e=>XB.call(e),Xt=e=>i2(e)==="[object Object]",cne=e=>e==null?"":cr(e)||Xt(e)&&e.toString===XB?JSON.stringify(e,null,2):String(e);function o2(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function fne(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const jy=e=>!pn(e)||cr(e);function A_(e,t){if(jy(e)||jy(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__"&&(pn(r[o])&&!pn(i[o])&&(i[o]=Array.isArray(r[o])?[]:An()),jy(i[o])||jy(r[o])?i[o]=r[o]:n.push({src:r[o],des:i[o]}))})}}/*! * message-compiler v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function dne(e,t,n){return{line:e,column:t,offset:n}}function wE(e,t,n){return{start:e,end:t}}const xn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},hne=17;function qb(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 pne(e){throw e}const Gs=" ",vne="\r",Ci=` `,gne="\u2028",mne="\u2029";function yne(e){const t=e;let n=0,r=1,i=1,o=0;const a=E=>t[E]===vne&&t[E+1]===Ci,s=E=>t[E]===Ci,l=E=>t[E]===mne,u=E=>t[E]===gne,c=E=>a(E)||s(E)||l(E)||u(E),f=()=>n,d=()=>r,h=()=>i,v=()=>o,m=E=>a(E)||l(E)||u(E)?Ci:t[E],_=()=>m(n),y=()=>m(n+o);function b(){return o=0,c(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+o)&&o++,o++,t[n+o]}function w(){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:d,column:h,peekOffset:v,charAt:m,currentChar:_,currentPeek:y,next:b,peek:S,reset:w,resetPeek:C,skipToPeek:T}}const Hl=void 0,_ne=".",fL="'",bne="tokenizer";function Sne(e,t={}){const n=t.location!==!1,r=yne(e),i=()=>r.index(),o=()=>dne(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(U,W,q,...de){const _e=u();if(W.column+=q,W.offset+=q,c){const Pe=n?wE(_e.startLoc,W):null,Z=qb(U,Pe,{domain:bne,args:de});c(Z)}}function d(U,W,q){U.endLoc=o(),U.currentType=W;const de={type:W};return n&&(de.loc=wE(U.startLoc,U.endLoc)),q!=null&&(de.value=q),de}const h=U=>d(U,13);function v(U,W){return U.currentChar()===W?(U.next(),W):(f(xn.EXPECTED_TOKEN,o(),0,W),"")}function m(U){let W="";for(;U.currentPeek()===Gs||U.currentPeek()===Ci;)W+=U.currentPeek(),U.peek();return W}function _(U){const W=m(U);return U.skipToPeek(),W}function y(U){if(U===Hl)return!1;const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W===95}function b(U){if(U===Hl)return!1;const W=U.charCodeAt(0);return W>=48&&W<=57}function S(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const de=y(U.currentPeek());return U.resetPeek(),de}function w(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const de=U.currentPeek()==="-"?U.peek():U.currentPeek(),_e=b(de);return U.resetPeek(),_e}function C(U,W){const{currentType:q}=W;if(q!==2)return!1;m(U);const de=U.currentPeek()===fL;return U.resetPeek(),de}function T(U,W){const{currentType:q}=W;if(q!==7)return!1;m(U);const de=U.currentPeek()===".";return U.resetPeek(),de}function E(U,W){const{currentType:q}=W;if(q!==8)return!1;m(U);const de=y(U.currentPeek());return U.resetPeek(),de}function R(U,W){const{currentType:q}=W;if(!(q===7||q===11))return!1;m(U);const de=U.currentPeek()===":";return U.resetPeek(),de}function I(U,W){const{currentType:q}=W;if(q!==9)return!1;const de=()=>{const Pe=U.currentPeek();return Pe==="{"?y(U.peek()):Pe==="@"||Pe==="|"||Pe===":"||Pe==="."||Pe===Gs||!Pe?!1:Pe===Ci?(U.peek(),de()):P(U,!1)},_e=de();return U.resetPeek(),_e}function O(U){m(U);const W=U.currentPeek()==="|";return U.resetPeek(),W}function P(U,W=!0){const q=(_e=!1,Pe="")=>{const Z=U.currentPeek();return Z==="{"||Z==="@"||!Z?_e:Z==="|"?!(Pe===Gs||Pe===Ci):Z===Gs?(U.peek(),q(!0,Gs)):Z===Ci?(U.peek(),q(!0,Ci)):!0},de=q();return W&&U.resetPeek(),de}function M(U,W){const q=U.currentChar();return q===Hl?Hl:W(q)?(U.next(),q):null}function F(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36}function $(U){return M(U,F)}function z(U){const W=U.charCodeAt(0);return W>=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===95||W===36||W===45}function B(U){return M(U,z)}function K(U){const W=U.charCodeAt(0);return W>=48&&W<=57}function j(U){return M(U,K)}function le(U){const W=U.charCodeAt(0);return W>=48&&W<=57||W>=65&&W<=70||W>=97&&W<=102}function me(U){return M(U,le)}function ge(U){let W="",q="";for(;W=j(U);)q+=W;return q}function De(U){let W="";for(;;){const q=U.currentChar();if(q==="{"||q==="}"||q==="@"||q==="|"||!q)break;if(q===Gs||q===Ci)if(P(U))W+=q,U.next();else{if(O(U))break;W+=q,U.next()}else W+=q,U.next()}return W}function Fe(U){_(U);let W="",q="";for(;W=B(U);)q+=W;return U.currentChar()===Hl&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q}function ze(U){_(U);let W="";return U.currentChar()==="-"?(U.next(),W+=`-${ge(U)}`):W+=ge(U),U.currentChar()===Hl&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),W}function Me(U){return U!==fL&&U!==Ci}function je(U){_(U),v(U,"'");let W="",q="";for(;W=M(U,Me);)W==="\\"?q+=fe(U):q+=W;const de=U.currentChar();return de===Ci||de===Hl?(f(xn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),de===Ci&&(U.next(),v(U,"'")),q):(v(U,"'"),q)}function fe(U){const W=U.currentChar();switch(W){case"\\":case"'":return U.next(),`\\${W}`;case"u":return Ee(U,W,4);case"U":return Ee(U,W,6);default:return f(xn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,W),""}}function Ee(U,W,q){v(U,W);let de="";for(let _e=0;_e{const de=U.currentChar();return de==="{"||de==="@"||de==="|"||de==="("||de===")"||!de||de===Gs?q:(q+=de,U.next(),W(q))};return W("")}function H(U){_(U);const W=v(U,"|");return _(U),W}function G(U,W){let q=null;switch(U.currentChar()){case"{":return W.braceNest>=1&&f(xn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),U.next(),q=d(W,2,"{"),_(U),W.braceNest++,q;case"}":return W.braceNest>0&&W.currentType===2&&f(xn.EMPTY_PLACEHOLDER,o(),0),U.next(),q=d(W,3,"}"),W.braceNest--,W.braceNest>0&&_(U),W.inLinked&&W.braceNest===0&&(W.inLinked=!1),q;case"@":return W.braceNest>0&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q=ue(U,W)||h(W),W.braceNest=0,q;default:{let _e=!0,Pe=!0,Z=!0;if(O(U))return W.braceNest>0&&f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),q=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,q;if(W.braceNest>0&&(W.currentType===4||W.currentType===5||W.currentType===6))return f(xn.UNTERMINATED_CLOSING_BRACE,o(),0),W.braceNest=0,we(U,W);if(_e=S(U,W))return q=d(W,4,Fe(U)),_(U),q;if(Pe=w(U,W))return q=d(W,5,ze(U)),_(U),q;if(Z=C(U,W))return q=d(W,6,je(U)),_(U),q;if(!_e&&!Pe&&!Z)return q=d(W,12,Ce(U)),f(xn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,q.value),_(U),q;break}}return q}function ue(U,W){const{currentType:q}=W;let de=null;const _e=U.currentChar();switch((q===7||q===8||q===11||q===9)&&(_e===Ci||_e===Gs)&&f(xn.INVALID_LINKED_FORMAT,o(),0),_e){case"@":return U.next(),de=d(W,7,"@"),W.inLinked=!0,de;case".":return _(U),U.next(),d(W,8,".");case":":return _(U),U.next(),d(W,9,":");default:return O(U)?(de=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,de):T(U,W)||R(U,W)?(_(U),ue(U,W)):E(U,W)?(_(U),d(W,11,Oe(U))):I(U,W)?(_(U),_e==="{"?G(U,W)||de:d(W,10,Be(U))):(q===7&&f(xn.INVALID_LINKED_FORMAT,o(),0),W.braceNest=0,W.inLinked=!1,we(U,W))}}function we(U,W){let q={type:13};if(W.braceNest>0)return G(U,W)||h(W);if(W.inLinked)return ue(U,W)||h(W);switch(U.currentChar()){case"{":return G(U,W)||h(W);case"}":return f(xn.UNBALANCED_CLOSING_BRACE,o(),0),U.next(),d(W,3,"}");case"@":return ue(U,W)||h(W);default:{if(O(U))return q=d(W,1,H(U)),W.braceNest=0,W.inLinked=!1,q;if(P(U))return d(W,0,De(U));break}}return q}function ve(){const{currentType:U,offset:W,startLoc:q,endLoc:de}=l;return l.lastType=U,l.lastOffset=W,l.lastStartLoc=q,l.lastEndLoc=de,l.offset=i(),l.startLoc=o(),r.currentChar()===Hl?d(l,13):we(r,l)}return{nextToken:ve,currentOffset:i,currentPosition:o,context:u}}const wne="parser",xne=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Cne(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Tne(e={}){const t=e.location!==!1,{onError:n}=e;function r(y,b,S,w,...C){const T=y.currentPosition();if(T.offset+=w,T.column+=w,n){const E=t?wE(S,T):null,R=qb(b,E,{domain:wne,args:C});n(R)}}function i(y,b,S){const w={type:y};return t&&(w.start=b,w.end=b,w.loc={start:S,end:S}),w}function o(y,b,S,w){t&&(y.end=b,y.loc&&(y.loc.end=S))}function a(y,b){const S=y.context(),w=i(3,S.offset,S.startLoc);return w.value=b,o(w,y.currentOffset(),y.currentPosition()),w}function s(y,b){const S=y.context(),{lastOffset:w,lastStartLoc:C}=S,T=i(5,w,C);return T.index=parseInt(b,10),y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function l(y,b){const S=y.context(),{lastOffset:w,lastStartLoc:C}=S,T=i(4,w,C);return T.key=b,y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function u(y,b){const S=y.context(),{lastOffset:w,lastStartLoc:C}=S,T=i(9,w,C);return T.value=b.replace(xne,Cne),y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function c(y){const b=y.nextToken(),S=y.context(),{lastOffset:w,lastStartLoc:C}=S,T=i(8,w,C);return b.type!==11?(r(y,xn.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),T.value="",o(T,w,C),{nextConsumeToken:b,node:T}):(b.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Ja(b)),T.value=b.value||"",o(T,y.currentOffset(),y.currentPosition()),{node:T})}function f(y,b){const S=y.context(),w=i(7,S.offset,S.startLoc);return w.value=b,o(w,y.currentOffset(),y.currentPosition()),w}function d(y){const b=y.context(),S=i(6,b.offset,b.startLoc);let w=y.nextToken();if(w.type===8){const C=c(y);S.modifier=C.node,w=C.nextConsumeToken||y.nextToken()}switch(w.type!==9&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(w)),w=y.nextToken(),w.type===2&&(w=y.nextToken()),w.type){case 10:w.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(w)),S.key=f(y,w.value||"");break;case 4:w.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(w)),S.key=l(y,w.value||"");break;case 5:w.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(w)),S.key=s(y,w.value||"");break;case 6:w.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(w)),S.key=u(y,w.value||"");break;default:{r(y,xn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const C=y.context(),T=i(7,C.offset,C.startLoc);return T.value="",o(T,C.offset,C.startLoc),S.key=T,o(S,C.offset,C.startLoc),{nextConsumeToken:w,node:S}}}return o(S,y.currentOffset(),y.currentPosition()),{node:S}}function h(y){const b=y.context(),S=b.currentType===1?y.currentOffset():b.offset,w=b.currentType===1?b.endLoc:b.startLoc,C=i(2,S,w);C.items=[];let T=null;do{const I=T||y.nextToken();switch(T=null,I.type){case 0:I.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(I)),C.items.push(a(y,I.value||""));break;case 5:I.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(I)),C.items.push(s(y,I.value||""));break;case 4:I.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(I)),C.items.push(l(y,I.value||""));break;case 6:I.value==null&&r(y,xn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ja(I)),C.items.push(u(y,I.value||""));break;case 7:{const O=d(y);C.items.push(O.node),T=O.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const E=b.currentType===1?b.lastOffset:y.currentOffset(),R=b.currentType===1?b.lastEndLoc:y.currentPosition();return o(C,E,R),C}function v(y,b,S,w){const C=y.context();let T=w.items.length===0;const E=i(1,b,S);E.cases=[],E.cases.push(w);do{const R=h(y);T||(T=R.items.length===0),E.cases.push(R)}while(C.currentType!==13);return T&&r(y,xn.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),o(E,y.currentOffset(),y.currentPosition()),E}function m(y){const b=y.context(),{offset:S,startLoc:w}=b,C=h(y);return b.currentType===13?C:v(y,S,w,C)}function _(y){const b=Sne(y,Pr({},e)),S=b.context(),w=i(0,S.offset,S.startLoc);return t&&w.loc&&(w.loc.source=y),w.body=m(b),e.onCacheKey&&(w.cacheKey=e.onCacheKey(y)),S.currentType!==13&&r(b,xn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,y[S.offset]||""),o(w,b.currentOffset(),b.currentPosition()),w}return{parse:_}}function Ja(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 Ene(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function dL(e,t){for(let n=0;nhL(n)),e}function hL(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;ns;function u(_,y){s.code+=_}function c(_,y=!0){const b=y?i:"";u(o?b+" ".repeat(_):b)}function f(_=!0){const y=++s.indentLevel;_&&c(y)}function d(_=!0){const y=--s.indentLevel;_&&c(y)}function h(){c(s.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:h,helper:_=>`_${_}`,needIndent:()=>s.needIndent}}function Pne(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),gh(e,t.key),t.modifier?(e.push(", "),gh(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function One(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o{const n=nt(t.mode)?t.mode:"normal",r=nt(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,a=t.needIndent?t.needIndent:n!=="arrow",s=e.helpers||[],l=Rne(e,{mode:n,filename:r,sourceMap:i,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),s.length>0&&(l.push(`const { ${o2(s.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),gh(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function Nne(e,t={}){const n=Pr({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=Tne(n).parse(e);return r?(o&&Ine(s),i&&Ld(s),{ast:s,code:""}):(Ane(s,n),Lne(s,n))}/*! * core-base v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function kne(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yc().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Yc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Bx(e){return n=>Fne(n,e)}function Fne(e,t){const n=Bne(t);if(n==null)throw xg(0);if(s2(n)===1){const o=Une(n);return e.plural(o.reduce((a,s)=>[...a,pL(e,s)],[]))}else return pL(e,n)}const $ne=["b","body"];function Bne(e){return Yu(e,$ne)}const Vne=["c","cases"];function Une(e){return Yu(e,Vne,[])}function pL(e,t){const n=Gne(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Wne(t).reduce((i,o)=>[...i,xE(e,o)],[]);return e.normalize(r)}}const Hne=["s","static"];function Gne(e){return Yu(e,Hne)}const zne=["i","items"];function Wne(e){return Yu(e,zne,[])}function xE(e,t){const n=s2(t);switch(n){case 3:return Xy(t,n);case 9:return Xy(t,n);case 4:{const r=t;if(La(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(La(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw xg(n)}case 5:{const r=t;if(La(r,"i")&&mr(r.i))return e.interpolate(e.list(r.i));if(La(r,"index")&&mr(r.index))return e.interpolate(e.list(r.index));throw xg(n)}case 6:{const r=t,i=Kne(r),o=qne(r);return e.linked(xE(e,o),i?xE(e,i):void 0,e.type)}case 7:return Xy(t,n);case 8:return Xy(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const jne=["t","type"];function s2(e){return Yu(e,jne)}const Xne=["v","value"];function Xy(e,t){const n=Yu(e,Xne);if(n)return n;throw xg(t)}const Yne=["m","modifier"];function Kne(e){return Yu(e,Yne)}const Zne=["k","key"];function qne(e){const t=Yu(e,Zne);if(t)return t;throw xg(6)}function Yu(e,t,n){for(let r=0;re;let Yy=An();function mh(e){return pn(e)&&s2(e)===0&&(La(e,"b")||La(e,"body"))}function Qne(e,t={}){let n=!1;const r=t.onError||pne;return t.onError=i=>{n=!0,r(i)},{...Nne(e,t),detectError:n}}function ere(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&nt(e)){fn(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Jne)(e),i=Yy[r];if(i)return i;const{ast:o,detectError:a}=Qne(e,{...t,location:!1,jit:!0}),s=Bx(o);return a?s:Yy[r]=s}else{const n=e.cacheKey;if(n){const r=Yy[n];return r||(Yy[n]=Bx(e))}else return Bx(e)}}let Cg=null;function tre(e){Cg=e}function nre(e,t,n){Cg&&Cg.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const rre=ire("function:translate");function ire(e){return t=>Cg&&Cg.emit(e,t)}const al={INVALID_ARGUMENT:hne,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},ore=24;function sl(e){return qb(e,null,void 0)}function l2(e,t){return t.locale!=null?vL(t.locale):vL(e.locale)}let Vx;function vL(e){if(nt(e))return e;if(Hn(e)){if(e.resolvedOnce&&Vx!=null)return Vx;if(e.constructor.name==="Function"){const t=e();if(une(t))throw sl(al.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vx=t}else throw sl(al.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw sl(al.NOT_SUPPORT_LOCALE_TYPE)}function are(e,t,n){return[...new Set([n,...cr(t)?t:pn(t)?Object.keys(t):nt(t)?[t]:[n]])]}function YB(e,t,n){const r=nt(n)?n:Tg,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;cr(a);)a=gL(o,a,t);const s=cr(t)||!Xt(t)?t:t.default?t.default:null;a=nt(s)?[s]:s,cr(a)&&gL(o,a,!1),i.__localeChainCache.set(r,o)}return o}function gL(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),i++},d[3]=()=>{if(i>0)i--,r=4,d[0]();else{if(i=0,a===void 0||(a=hre(a),a===!1))return!1;d[1]()}};function h(){const v=e[n+1];if(r===5&&v==="'"||r===6&&v==='"')return n++,s="\\"+v,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&h())){if(l=dre(o),f=Ku[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const mL=new Map;function vre(e,t){return pn(e)?e[t]:null}function gre(e,t){if(!pn(e))return null;let n=mL.get(t);if(n||(n=pre(t),n&&mL.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function yre(){return{upper:(e,t)=>t==="text"&&nt(e)?e.toUpperCase():t==="vnode"&&pn(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&nt(e)?e.toLowerCase():t==="vnode"&&pn(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&nt(e)?_L(e):t==="vnode"&&pn(e)&&"__v_isVNode"in e?_L(e.children):e}}let KB;function _re(e){KB=e}let ZB;function bre(e){ZB=e}let qB;function Sre(e){qB=e}let JB=null;const wre=e=>{JB=e},xre=()=>JB;let QB=null;const bL=e=>{QB=e},Cre=()=>QB;let SL=0;function Tre(e={}){const t=Hn(e.onWarn)?e.onWarn:fne,n=nt(e.version)?e.version:mre,r=nt(e.locale)||Hn(e.locale)?e.locale:Tg,i=Hn(r)?Tg:r,o=cr(e.fallbackLocale)||Xt(e.fallbackLocale)||nt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=Xt(e.messages)?e.messages:Ux(i),s=Xt(e.datetimeFormats)?e.datetimeFormats:Ux(i),l=Xt(e.numberFormats)?e.numberFormats:Ux(i),u=Pr(An(),e.modifiers,yre()),c=e.pluralRules||An(),f=Hn(e.missing)?e.missing:null,d=fn(e.missingWarn)||vh(e.missingWarn)?e.missingWarn:!0,h=fn(e.fallbackWarn)||vh(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,m=!!e.unresolving,_=Hn(e.postTranslation)?e.postTranslation:null,y=Xt(e.processor)?e.processor:null,b=fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,w=Hn(e.messageCompiler)?e.messageCompiler:KB,C=Hn(e.messageResolver)?e.messageResolver:ZB||vre,T=Hn(e.localeFallbacker)?e.localeFallbacker:qB||are,E=pn(e.fallbackContext)?e.fallbackContext:void 0,R=e,I=pn(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,O=pn(R.__numberFormatters)?R.__numberFormatters:new Map,P=pn(R.__meta)?R.__meta:{};SL++;const M={version:n,cid:SL,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:v,unresolving:m,postTranslation:_,processor:y,warnHtmlMessage:b,escapeParameter:S,messageCompiler:w,messageResolver:C,localeFallbacker:T,fallbackContext:E,onWarn:t,__meta:P};return M.datetimeFormats=s,M.numberFormats=l,M.__datetimeFormatters=I,M.__numberFormatters=O,__INTLIFY_PROD_DEVTOOLS__&&nre(M,n,P),M}const Ux=e=>({[e]:An()});function u2(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return nt(s)?s:t}else return t}function Sp(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ere(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Are(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{eV.includes(l)?a[l]=n[l]:o[l]=n[l]}),nt(r)?o.locale=r:Xt(r)&&(a=r),Xt(i)&&(a=i),[o.key||"",s,o,a]}function xL(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function CL(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,f]=TE(...t),d=fn(c.missingWarn)?c.missingWarn:e.missingWarn;fn(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=l2(e,c),m=a(e,i,v);if(!nt(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let _={},y,b=null;const S="number format";for(let T=0;T{tV.includes(l)?a[l]=n[l]:o[l]=n[l]}),nt(r)?o.locale=r:Xt(r)&&(a=r),Xt(i)&&(a=i),[o.key||"",s,o,a]}function TL(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const Ire=e=>e,Rre=e=>"",Pre="text",Ore=e=>e.length===0?"":o2(e),Dre=cne;function EL(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Mre(e){const t=mr(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(mr(e.named.count)||mr(e.named.n))?mr(e.named.count)?e.named.count:mr(e.named.n)?e.named.n:t:t}function Lre(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Nre(e={}){const t=e.locale,n=Mre(e),r=pn(e.pluralRules)&&nt(t)&&Hn(e.pluralRules[t])?e.pluralRules[t]:EL,i=pn(e.pluralRules)&&nt(t)&&Hn(e.pluralRules[t])?EL:void 0,o=y=>y[r(n,y.length,i)],a=e.list||[],s=y=>a[y],l=e.named||An();mr(e.pluralIndex)&&Lre(n,l);const u=y=>l[y];function c(y,b){const S=Hn(e.messages)?e.messages(y,!!b):pn(e.messages)?e.messages[y]:!1;return S||(e.parent?e.parent.message(y):Rre)}const f=y=>e.modifiers?e.modifiers[y]:Ire,d=Xt(e.processor)&&Hn(e.processor.normalize)?e.processor.normalize:Ore,h=Xt(e.processor)&&Hn(e.processor.interpolate)?e.processor.interpolate:Dre,v=Xt(e.processor)&&nt(e.processor.type)?e.processor.type:Pre,_={list:s,named:u,plural:o,linked:(y,...b)=>{const[S,w]=b;let C="text",T="";b.length===1?pn(S)?(T=S.modifier||T,C=S.type||C):nt(S)&&(T=S||T):b.length===2&&(nt(S)&&(T=S||T),nt(w)&&(C=w||C));const E=c(y,!0)(_),R=C==="vnode"&&cr(E)&&T?E[0]:E;return T?f(T)(R,C):R},message:c,type:v,interpolate:h,normalize:d,values:Pr(An(),a,l)};return _}const AL=()=>"",ea=e=>Hn(e);function IL(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=EE(...t),c=fn(u.missingWarn)?u.missingWarn:e.missingWarn,f=fn(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=fn(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,v=nt(u.default)||fn(u.default)?fn(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,m=n||v!=null&&(nt(v)||Hn(v)),_=l2(e,u);d&&kre(u);let[y,b,S]=h?[l,_,s[_]||An()]:nV(e,l,_,a,f,c),w=y,C=l;if(!h&&!(nt(w)||mh(w)||ea(w))&&m&&(w=v,C=w),!h&&(!(nt(w)||mh(w)||ea(w))||!nt(b)))return i?Jb:l;let T=!1;const E=()=>{T=!0},R=ea(w)?w:rV(e,l,b,w,C,E);if(T)return w;const I=Bre(e,b,S,u),O=Nre(I),P=Fre(e,R,O),M=r?r(P,l):P;if(__INTLIFY_PROD_DEVTOOLS__){const F={timestamp:Date.now(),key:nt(l)?l:ea(w)?w.key:"",locale:b||(ea(w)?w.locale:""),format:nt(w)?w:ea(w)?w.source:"",message:M};F.meta=Pr({},e.__meta,xre()||{}),rre(F)}return M}function kre(e){cr(e.list)?e.list=e.list.map(t=>nt(t)?cL(t):t):pn(e.named)&&Object.keys(e.named).forEach(t=>{nt(e.named[t])&&(e.named[t]=cL(e.named[t]))})}function nV(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=An(),d,h=null;const v="translate";for(let m=0;mr;return u.locale=n,u.key=t,u}const l=a(r,$re(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function Fre(e,t,n){return t(n)}function EE(...e){const[t,n,r]=e,i=An();if(!nt(t)&&!mr(t)&&!ea(t)&&!mh(t))throw sl(al.INVALID_ARGUMENT);const o=mr(t)?String(t):(ea(t),t);return mr(n)?i.plural=n:nt(n)?i.default=n:Xt(n)&&!Zb(n)?i.named=n:cr(n)&&(i.list=n),mr(r)?i.plural=r:nt(r)?i.default=r:Xt(r)&&Pr(i,r),[o,i]}function $re(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>ine(t,n,a)}}function Bre(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:i,pluralRules:o,messages:(h,v)=>{let m=a(n,h);if(m==null&&(c||v)){const[,,_]=nV(c||e,h,t,s,l,u);m=a(_,h)}if(nt(m)||mh(m)){let _=!1;const b=rV(e,h,t,m,h,()=>{_=!0});return _?AL:b}else return ea(m)?m:AL}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),mr(r.plural)&&(d.pluralIndex=r.plural),d}kne();/*! * vue-i18n v10.0.5 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const Vre="10.0.5";function Ure(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Yc().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Yc().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Yc().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Yc().__INTLIFY_PROD_DEVTOOLS__=!1)}const Mi={UNEXPECTED_RETURN_TYPE:ore,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function ao(e,...t){return qb(e,null,void 0)}const AE=Xu("__translateVNode"),IE=Xu("__datetimeParts"),RE=Xu("__numberParts"),iV=Xu("__setPluralRules"),oV=Xu("__injectWithOption"),PE=Xu("__dispose");function Eg(e){if(!pn(e))return e;for(const t in e)if(La(e,t))if(!t.includes("."))pn(e[t])&&Eg(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||An(),A_(u,a[l])):A_(u,a)}else nt(s)&&A_(JSON.parse(s),a)}),i==null&&o)for(const s in a)La(a,s)&&Eg(a[s]);return a}function aV(e){return e.type}function sV(e,t,n){let r=pn(t.messages)?t.messages:An();"__i18nGlobal"in n&&(r=c2(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(pn(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(pn(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function RL(e){return se(dl,null,e,0)}const PL="__INTLIFY_META__",OL=()=>[],Hre=()=>!1;let DL=0;function ML(e){return(t,n,r,i)=>e(n,r,xr()||void 0,i)}const Gre=()=>{const e=xr();let t=null;return e&&(t=aV(e)[PL])?{[PL]:t}:null};function f2(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=P1?ke:Uf;let a=fn(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:nt(e.locale)?e.locale:Tg),l=o(t&&a?t.fallbackLocale.value:nt(e.fallbackLocale)||cr(e.fallbackLocale)||Xt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(c2(s.value,e)),c=o(Xt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=o(Xt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=t?t.missingWarn:fn(e.missingWarn)||vh(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:fn(e.fallbackWarn)||vh(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:fn(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,_=Hn(e.missing)?e.missing:null,y=Hn(e.missing)?ML(e.missing):null,b=Hn(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:fn(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const C=t?t.modifiers:Xt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,E;E=(()=>{r&&bL(null);const Z={version:Vre,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:T,missing:y===null?void 0:y,missingWarn:d,fallbackWarn:h,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=c.value,Z.numberFormats=f.value,Z.__datetimeFormatters=Xt(E)?E.__datetimeFormatters:void 0,Z.__numberFormatters=Xt(E)?E.__numberFormatters:void 0;const he=Tre(Z);return r&&bL(he),he})(),Sp(E,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,f.value]}const O=Le({get:()=>s.value,set:Z=>{s.value=Z,E.locale=s.value}}),P=Le({get:()=>l.value,set:Z=>{l.value=Z,E.fallbackLocale=l.value,Sp(E,s.value,Z)}}),M=Le(()=>u.value),F=Le(()=>c.value),$=Le(()=>f.value);function z(){return Hn(b)?b:null}function B(Z){b=Z,E.postTranslation=Z}function K(){return _}function j(Z){Z!==null&&(y=ML(Z)),_=Z,E.missing=y}const le=(Z,he,Ve,Ke,pt,ee)=>{I();let oe;try{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=t?Cre():void 0),oe=Z(E)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(E.fallbackContext=void 0)}if(Ve!=="translate exists"&&mr(oe)&&oe===Jb||Ve==="translate exists"&&!oe){const[pe,Te]=he();return t&&v?Ke(t):pt(pe)}else{if(ee(oe))return oe;throw ao(Mi.UNEXPECTED_RETURN_TYPE)}};function me(...Z){return le(he=>Reflect.apply(IL,null,[he,...Z]),()=>EE(...Z),"translate",he=>Reflect.apply(he.t,he,[...Z]),he=>he,he=>nt(he))}function ge(...Z){const[he,Ve,Ke]=Z;if(Ke&&!pn(Ke))throw ao(Mi.INVALID_ARGUMENT);return me(he,Ve,Pr({resolvedMessage:!0},Ke||{}))}function De(...Z){return le(he=>Reflect.apply(wL,null,[he,...Z]),()=>CE(...Z),"datetime format",he=>Reflect.apply(he.d,he,[...Z]),()=>yL,he=>nt(he))}function Fe(...Z){return le(he=>Reflect.apply(CL,null,[he,...Z]),()=>TE(...Z),"number format",he=>Reflect.apply(he.n,he,[...Z]),()=>yL,he=>nt(he))}function ze(Z){return Z.map(he=>nt(he)||mr(he)||fn(he)?RL(String(he)):he)}const je={normalize:ze,interpolate:Z=>Z,type:"vnode"};function fe(...Z){return le(he=>{let Ve;const Ke=he;try{Ke.processor=je,Ve=Reflect.apply(IL,null,[Ke,...Z])}finally{Ke.processor=null}return Ve},()=>EE(...Z),"translate",he=>he[AE](...Z),he=>[RL(he)],he=>cr(he))}function Ee(...Z){return le(he=>Reflect.apply(CL,null,[he,...Z]),()=>TE(...Z),"number format",he=>he[RE](...Z),OL,he=>nt(he)||cr(he))}function Se(...Z){return le(he=>Reflect.apply(wL,null,[he,...Z]),()=>CE(...Z),"datetime format",he=>he[IE](...Z),OL,he=>nt(he)||cr(he))}function Ce(Z){T=Z,E.pluralRules=T}function Oe(Z,he){return le(()=>{if(!Z)return!1;const Ve=nt(he)?he:s.value,Ke=G(Ve),pt=E.messageResolver(Ke,Z);return mh(pt)||ea(pt)||nt(pt)},()=>[Z],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[Z,he]),Hre,Ve=>fn(Ve))}function Be(Z){let he=null;const Ve=YB(E,l.value,s.value);for(let Ke=0;Ke{a&&(s.value=Z,E.locale=Z,Sp(E,s.value,l.value))}),Vt(t.fallbackLocale,Z=>{a&&(l.value=Z,E.fallbackLocale=Z,Sp(E,s.value,l.value))}));const Pe={id:DL,locale:O,fallbackLocale:P,get inheritLocale(){return a},set inheritLocale(Z){a=Z,Z&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Sp(E,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:M,get modifiers(){return C},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(Z){d=Z,E.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(Z){h=Z,E.fallbackWarn=h},get fallbackRoot(){return v},set fallbackRoot(Z){v=Z},get fallbackFormat(){return m},set fallbackFormat(Z){m=Z,E.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(Z){S=Z,E.warnHtmlMessage=Z},get escapeParameter(){return w},set escapeParameter(Z){w=Z,E.escapeParameter=Z},t:me,getLocaleMessage:G,setLocaleMessage:ue,mergeLocaleMessage:we,getPostTranslationHandler:z,setPostTranslationHandler:B,getMissingHandler:K,setMissingHandler:j,[iV]:Ce};return Pe.datetimeFormats=F,Pe.numberFormats=$,Pe.rt=ge,Pe.te=Oe,Pe.tm=H,Pe.d=De,Pe.n=Fe,Pe.getDateTimeFormat=ve,Pe.setDateTimeFormat=U,Pe.mergeDateTimeFormat=W,Pe.getNumberFormat=q,Pe.setNumberFormat=de,Pe.mergeNumberFormat=_e,Pe[oV]=n,Pe[AE]=fe,Pe[IE]=Se,Pe[RE]=Ee,Pe}function zre(e){const t=nt(e.locale)?e.locale:Tg,n=nt(e.fallbackLocale)||cr(e.fallbackLocale)||Xt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Hn(e.missing)?e.missing:void 0,i=fn(e.silentTranslationWarn)||vh(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=fn(e.silentFallbackWarn)||vh(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=fn(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Xt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Hn(e.postTranslation)?e.postTranslation:void 0,f=nt(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,h=fn(e.sync)?e.sync:!0;let v=e.messages;if(Xt(e.sharedMessages)){const C=e.sharedMessages;v=Object.keys(C).reduce((E,R)=>{const I=E[R]||(E[R]={});return Pr(I,C[R]),E},v||{})}const{__i18n:m,__root:_,__injectWithOption:y}=e,b=e.datetimeFormats,S=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:v,flatJson:w,datetimeFormats:b,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:h,__i18n:m,__root:_,__injectWithOption:y}}function OE(e={}){const t=f2(zre(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 fn(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=fn(i)?!i:i},get silentFallbackWarn(){return fn(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=fn(i)?!i:i},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(i){t.fallbackFormat=i},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(i){t.setPostTranslationHandler(i)},get sync(){return t.inheritLocale},set sync(i){t.inheritLocale=i},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(i){t.warnHtmlMessage=i!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(i){t.escapeParameter=i},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...i){return Reflect.apply(t.t,t,[...i])},rt(...i){return Reflect.apply(t.rt,t,[...i])},tc(...i){const[o,a,s]=i,l={plural:1};let u=null,c=null;if(!nt(o))throw ao(Mi.INVALID_ARGUMENT);const f=o;return nt(a)?l.locale=a:mr(a)?l.plural=a:cr(a)?u=a:Xt(a)&&(c=a),nt(s)?l.locale=s:cr(s)?u=s:Xt(s)&&(c=s),Reflect.apply(t.t,t,[f,u||c||{},l])},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 Wre(e,t,n){return{beforeCreate(){const r=xr();if(!r)throw ao(Mi.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=LL(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=OE(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=LL(e,i);else{this.$i18n=OE({__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&&sV(t,i,i),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...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=xr();if(!r)throw ao(Mi.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function LL(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[iV](t.pluralizationRules||e.pluralizationRules);const n=c2(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 d2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function jre({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ye?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},An())}function lV(){return Ye}const Xre=it({name:"i18n-t",props:Pr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>mr(e)||!isNaN(e)}},d2),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Do({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f!=="_"),a=An();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=nt(e.plural)?+e.plural:e.plural);const s=jre(t,o),l=i[AE](e.keypath,s,a),u=Pr(An(),r),c=nt(e.tag)||pn(e.tag)?e.tag:lV();return Xi(c,u,l)}}}),NL=Xre;function Yre(e){return cr(e)&&!nt(e[0])}function uV(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=An();e.locale&&(a.locale=e.locale),nt(e.format)?a.key=e.format:pn(e.format)&&(nt(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Pr(An(),d,{[h]:e.format[h]}):d,An()));const l=r(e.value,a,s);let u=[a.key];cr(l)?u=l.map((d,h)=>{const v=i[d.type],m=v?v({[d.type]:d.value,index:h,parts:l}):[d.value];return Yre(m)&&(m[0].key=`${d.type}-${h}`),m}):nt(l)&&(u=[l]);const c=Pr(An(),o),f=nt(e.tag)||pn(e.tag)?e.tag:lV();return Xi(f,c,u)}}const Kre=it({name:"i18n-n",props:Pr({value:{type:Number,required:!0},format:{type:[String,Object]}},d2),setup(e,t){const n=e.i18n||Do({useScope:e.scope,__useComponent:!0});return uV(e,t,tV,(...r)=>n[RE](...r))}}),kL=Kre,Zre=it({name:"i18n-d",props:Pr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},d2),setup(e,t){const n=e.i18n||Do({useScope:e.scope,__useComponent:!0});return uV(e,t,eV,(...r)=>n[IE](...r))}}),FL=Zre;function qre(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 Jre(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw ao(Mi.UNEXPECTED_ERROR);const u=qre(e,s.$),c=$L(l);return[Reflect.apply(u.t,u,[...BL(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);P1&&e.global===u&&(a.__i18nWatcher=Vt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{P1&&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=$L(s);a.textContent=Reflect.apply(l.t,l,[...BL(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function $L(e){if(nt(e))return{path:e};if(Xt(e)){if(!("path"in e))throw ao(Mi.REQUIRED_VALUE,"path");return e}else throw ao(Mi.INVALID_VALUE)}function BL(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return nt(n)&&(a.locale=n),mr(i)&&(a.plural=i),mr(o)&&(a.plural=o),[t,s,a]}function Qre(e,t,...n){const r=Xt(n[0])?n[0]:{};(fn(r.globalInstall)?r.globalInstall:!0)&&([NL.name,"I18nT"].forEach(o=>e.component(o,NL)),[kL.name,"I18nN"].forEach(o=>e.component(o,kL)),[FL.name,"I18nD"].forEach(o=>e.component(o,FL))),e.directive("t",Jre(t))}const eie=Xu("global-vue-i18n");function tie(e={},t){const n=__VUE_I18N_LEGACY_API__&&fn(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=fn(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=nie(e,n),s=Xu("");function l(d){return i.get(d)||null}function u(d,h){i.set(d,h)}function c(d){i.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(d,...h){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,f),Xt(h[0])){const _=h[0];f.__composerExtend=_.__composerExtend,f.__vueI18nExtend=_.__vueI18nExtend}let v=null;!n&&r&&(v=cie(d,f.global)),__VUE_I18N_FULL_INSTALL__&&Qre(d,f,...h),__VUE_I18N_LEGACY_API__&&n&&d.mixin(Wre(a,a.__composer,f));const m=d.unmount;d.unmount=()=>{v&&v(),f.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function Do(e={}){const t=xr();if(t==null)throw ao(Mi.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ao(Mi.NOT_INSTALLED);const n=rie(t),r=oie(n),i=aV(t),o=iie(e,i);if(o==="global")return sV(r,e,i),r;if(o==="parent"){let l=aie(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Pr({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=f2(l),a.__composerExtend&&(s[PE]=a.__composerExtend(s)),lie(a,t,s),a.__setInstance(t,s)}return s}function nie(e,t,n){const r=x$(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>OE(e)):r.run(()=>f2(e));if(i==null)throw ao(Mi.UNEXPECTED_ERROR);return[r,i]}function rie(e){const t=to(e.isCE?eie:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ao(e.isCE?Mi.NOT_INSTALLED_WITH_PROVIDE:Mi.UNEXPECTED_ERROR);return t}function iie(e,t){return Zb(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function oie(e){return e.mode==="composition"?e.global:e.global.__composer}function aie(e,t,n=!1){let r=null;const i=t.root;let o=sie(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[oV]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function sie(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lie(e,t,n){fo(()=>{},t),Gf(()=>{const r=n;e.__deleteInstance(t);const i=r[PE];i&&(i(),delete r[PE])},t)}const uie=["locale","fallbackLocale","availableLocales"],VL=["t","rt","d","n","tm","te"];function cie(e,t){const n=Object.create(null);return uie.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw ao(Mi.UNEXPECTED_ERROR);const a=at(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,VL.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw ao(Mi.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,VL.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}Ure();_re(ere);bre(gre);Sre(YB);if(__INTLIFY_PROD_DEVTOOLS__){const e=Yc();e.__INTLIFY__=!0,tre(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const fie={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",version:"Version",quickFilter:"Quick Filter",noContent:"No Content",flushFakeIP:"Flush Fake IP",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumnProxyGroup:"Two Column Proxy Group",type:"Type",process:"Process",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",customCardLines:"Custom Card Lines",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Update All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"Configs Order",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc",language:"Language",automaticDisconnection:"Automatic Disconnection",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",clearIconCache:"Clear Icon Cache",unavailableProxy:"Hide Unavailable",protocolTips:"You are trying to connect a http backend but the zashboard is served by https. This may cause connection error. Please allow the insecure content in your browser settings. The settings is on the left of the browser address bar.",global:"Global",direct:"Direct",quickFilterTip:"Quick filtering allows one-click exclusion of connections matching proxy chains, host, or destination IPs using regular expressions.",lowLatencyDesc:"Yellow threshold",mediumLatencyDesc:"Red threshold",fonts:"Fonts",unauthorizedTip:"Unauthorized, please login again.",restartCore:"Restart Core",autoUpgrade:"Auto Upgrade",secondaryPath:"Secondary Path",secondaryPathTip:'If present, start with a "/", otherwise leave it empty.',logRetentionLimit:"Log Retention Limit",DNSQuery:"DNS Query",currentBackendUnavailable:"Current backend is unavailable. Try to switch to another backend?",confirm:"Confirm",backendSwitchTo:"Automatic 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 Check IP When Start",autoConnectionCheckWhenStart:"Auto Check Connection When Start",chinaIP:"China IP",globalIP:"Global IP",networkInfo:"Network Info",autoSwitch:"Auto Switch",customBackgroundURL:"Custom Background URL",splitOverviewPage:"Split Overview Page",showHiddenGroup:"Show Hidden Group",showIPAndConnectionInfo:"Show IP and Connection Info",transparent:"Transparent",iconSize:"Icon Size",iconMarginRight:"Icon Margin Right",allowLan:"Allow Lan",proxyChainDirection:"Proxy Chain Direction",reverse:"Reverse",sniffHost:"Sniff Host",ipScreenshotTip:"Please make sure to hide the IP when taking screenshots.",showStatisticsWhenSidebarCollapsed:"Display Statistics When Sidebar Collapsed",totalConnections:"Total Connections",mostDownloadHost:"Most Download Host",mostUploadHost:"Most Upload Host",mostDownloadSourceIP:"Most Download Source IP",mostUploadSourceIP:"Most Upload Source IP",mostDownloadProxy:"Most Download Proxy",mostUploadProxy:"Most Upload Proxy",manual:"Manual",tableWidthMode:"Table Width Mode",testFinishedTip:"{number} Test Finished",updateFinishedTip:"{number} Update Finished",independentLatencyTest:"Independent Latency Test",independentLatencyTestTip:"Enabling Independent Latency Test will attempt to use the URLs specified in the configuration file instead of the zashboard's URL settings during the latency test. Latency will be displayed independently based on the URLs set in the policy groups."},die={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загружено",upload:"Отправлено",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость отдачи",memoryUsage:"Память",version:"Версия",quickFilter:"Быстрый фильтр",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",chains:"Цепочки",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",connectTime:"Время",sourcePort:"Исходный порт",destination:"Назначение",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Отдч",dlSpeed:"Загрузка",ulSpeed:"Отдача",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",customCardLines:"Пользовательские строчки карточки",close:"Закрыть",details:"Детали",showGlobalProxy:"Показать глобальный прокси-узел",theme:"Тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновление все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",clearIconCache:"Очистить кэш иконок",unavailableProxy:"Скрыть недоступное",protocolTips:"Вы пытаетесь подключиться к http-бэкенду, но панель управления обслуживается через https. Это может вызвать ошибку подключения. Пожалуйста, разрешите небезопасный контент в настройках браузера. Настройки находятся слева от адресной строки.",global:"Глобальный",direct:"Прямой",quickFilterTip:"Быстрая фильтрация позволяет одним щелчком исключать подключения, соответствующие цепочкам прокси, хосту или IP-адресам назначения с использованием регулярных выражений.",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",unauthorizedTip:"Не авторизован, пожалуйста, войдите снова.",restartCore:"Перезапустить ядро",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:"Информация о сети",autoSwitch:"Автоматическое",customBackgroundURL:"Пользовательский URL фона",splitOverviewPage:"Разделить страницу с обзором",showHiddenGroup:"Показать скрытые группы",showIPAndConnectionInfo:"Показать IP и информацию о соединениях",transparent:"Прозрачность",iconSize:"Размер иконки",iconMarginRight:"Отступ правой иконки",allowLan:"Разрешить локальную сеть",proxyChainDirection:"Направление цепочки прокси",reverse:"Обратное",sniffHost:"Захватывать хост",ipScreenshotTip:"Пожалуйста, убедитесь, что реальный IP скрыт при создании скриншотов.",showStatisticsWhenSidebarCollapsed:"Показать статистику при сворачивании панели",totalConnections:"Всего соединений",mostDownloadHost:"Ресурс с наибольшим скачиванием",mostUploadHost:"Ресурс с наибольшей отправкой данных",mostDownloadSourceIP:"IP-источник с наибольшим скачиванием",mostUploadSourceIP:"IP-источник с наибольшей отдачей",mostDownloadProxy:"Прокси с наибольшим скачиванием",mostUploadProxy:"Прокси с наибольшей отдачей",manual:"Ручной",tableWidthMode:"Режим ширины таблицы",testFinishedTip:"{number} Тест завершен",updateFinishedTip:"{number} Обновление завершено",independentLatencyTest:"Независимый тест задержки",independentLatencyTestTip:"Включение независимого тестирования задержки попытается использовать URL-адреса, указанные в конфигурационном файле, вместо настроек URL-адресов в панели управления во время теста задержки. Задержка будет отображаться отдельно на основе URL-адресов, установленных в группах политик."},hie={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",customCardLines:"自定义卡片行",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",clearIconCache:"清空图标缓存",unavailableProxy:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"字体",unauthorizedTip:"未授权,请重新登录",restartCore:"重启核心",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:"网络信息",autoSwitch:"自动切换",customBackgroundURL:"自定义背景 URL",splitOverviewPage:"分离概览页",showHiddenGroup:"显示隐藏分组",showIPAndConnectionInfo:"显示 IP 和连接信息",transparent:"透明度",iconSize:"图标尺寸",iconMarginRight:"图标间距",allowLan:"允许局域网",proxyChainDirection:"代理链方向",reverse:"反向",sniffHost:"嗅探主机",ipScreenshotTip:"截图时请确保隐藏IP",showStatisticsWhenSidebarCollapsed:"侧边栏折叠时显示统计",totalConnections:"总连接数",mostDownloadHost:"最多下载主机",mostUploadHost:"最多上传主机",mostDownloadSourceIP:"最多下载源IP",mostUploadSourceIP:"最多上传源IP",mostDownloadProxy:"最多下载节点",mostUploadProxy:"最多上传节点",manual:"手动",tableWidthMode:"表格宽度模式",testFinishedTip:"{number} 测试完成",updateFinishedTip:"{number} 更新完成",independentLatencyTest:"独立延迟测试",independentLatencyTestTip:"开启独立延迟测试会在测速中尽可能的使用配置文件中的url覆盖面板设置的url,并根据策略组设置的url独立的展示延迟。"},Qb=tie({locale:gu.value,messages:{[fs.EN_US]:fie,[fs.ZH_CN]:hie,[fs.RU_RU]:die}}),Hx=ke(!1),UL=ke(),HL=ke("alert-warning"),pie=Qb.global.t;let Gx=-1;const Fh=()=>({showNotification:({content:t,params:n={},type:r="alert-warning"})=>{clearTimeout(Gx),HL.value=r,Hx.value=!0,UL.value=pie(t,n),Gx=setTimeout(()=>{Hx.value=!1,Gx=-1},5e3)},tipType:HL,tipShowModel:Hx,tipContent:UL}),vie={key:0,class:"toast-sm toast toast-start toast-top z-50 max-w-64 text-sm"},gie={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},mie=it({__name:"App",setup(e){const t=ke(),{tipContent:n,tipShowModel:r,tipType:i}=Fh(),o={[fu.MI_SANS]:"font-MiSans",[fu.SARASA_UI]:"font-SarasaUI",[fu.PING_FANG]:"font-PingFang",[fu.FIRA_SANS]:"font-FiraSans",[fu.SYSTEM_UI]:"font-SystemUI"},a=Le(()=>o[Iv.value]),s=Oo().format("YYYY-MM-DD"),l=ke(""),u=async()=>{l.value=await qte()||""};Vt(()=>Da.value,()=>{Da.value.includes(R1)&&u()},{immediate:!0});const c=Le(()=>Da.value.includes(R1)?l.value:Da.value+`?v=${s}`),f=qI("(prefers-color-scheme: dark)"),d=()=>{const h=getComputedStyle(t.value).getPropertyValue("background-color").trim(),v=document.querySelector('meta[name="theme-color"]');v&&v.setAttribute("content",h)};return Vt(f,d),fo(()=>{Vt(Zd,()=>{document.body.setAttribute("data-theme",Zd.value),d()},{immediate:!0})}),(h,v)=>(X(),te("div",{ref_key:"app",ref:t,id:"app-content",class:ot(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${a.value} custom-background-${N(h_)} ${N(Da)&&"custom-background bg-cover bg-center"}`),style:Ir(`background-image: url('${c.value}');`)},[se(N(e2)),N(r)?(X(),te("div",vie,[L("div",{class:ot(["breaks-all alert flex whitespace-normal p-2",N(i)])},[L("a",gie,ie(N(n)),1),L("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:v[0]||(v[0]=m=>r.value=!1)},[se(N(bee),{class:"w-4 cursor-pointer"})])],2)])):yt("",!0)],6))}});var rv={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */var yie=rv.exports,GL;function _ie(){return GL||(GL=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,d=2,h=4,v=1,m=2,_=1,y=2,b=4,S=8,w=16,C=32,T=64,E=128,R=256,I=512,O=30,P="...",M=800,F=16,$=1,z=2,B=3,K=1/0,j=9007199254740991,le=17976931348623157e292,me=NaN,ge=4294967295,De=ge-1,Fe=ge>>>1,ze=[["ary",E],["bind",_],["bindKey",y],["curry",S],["curryRight",w],["flip",I],["partial",C],["partialRight",T],["rearg",R]],Me="[object Arguments]",je="[object Array]",fe="[object AsyncFunction]",Ee="[object Boolean]",Se="[object Date]",Ce="[object DOMException]",Oe="[object Error]",Be="[object Function]",H="[object GeneratorFunction]",G="[object Map]",ue="[object Number]",we="[object Null]",ve="[object Object]",U="[object Promise]",W="[object Proxy]",q="[object RegExp]",de="[object Set]",_e="[object String]",Pe="[object Symbol]",Z="[object Undefined]",he="[object WeakMap]",Ve="[object WeakSet]",Ke="[object ArrayBuffer]",pt="[object DataView]",ee="[object Float32Array]",oe="[object Float64Array]",pe="[object Int8Array]",Te="[object Int16Array]",He="[object Int32Array]",re="[object Uint8Array]",Ae="[object Uint8ClampedArray]",$e="[object Uint16Array]",et="[object Uint32Array]",Ge=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pt=/&(?:amp|lt|gt|quot|#39);/g,Dt=/[&<>"']/g,Ln=RegExp(Pt.source),ga=RegExp(Dt.source),Rn=/<%-([\s\S]+?)%>/g,yr=/<%([\s\S]+?)%>/g,Wf=/<%=([\s\S]+?)%>/g,Pl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xa=/^\w*$/,Bm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jf=/[\\^$.*+?()[\]{}|]/g,sw=RegExp(jf.source),Ni=/^\s+/,Xf=/\s/,Vm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Um=/\{\n\/\* \[wrapped with (.+)\] \*/,Zh=/,? & /,Hm=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ma=/[()=,{}\[\]\/\s]/,Gm=/\\(\\)?/g,zm=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qh=/\w*$/,Wm=/^[-+]0x[0-9a-f]+$/i,lw=/^0b[01]+$/i,vt=/^\[object .+?Constructor\]$/,ne=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sn=/($^)/,Lr=/['\n\r\u2028\u2029\\]/g,tr="\\ud800-\\udfff",qr="\\u0300-\\u036f",ko="\\ufe20-\\ufe2f",Ju="\\u20d0-\\u20ff",Nr=qr+ko+Ju,Jh="\\u2700-\\u27bf",Qh="a-z\\xdf-\\xf6\\xf8-\\xff",zz="\\xac\\xb1\\xd7\\xf7",Wz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jz="\\u2000-\\u206f",Xz=" \\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",TP="A-Z\\xc0-\\xd6\\xd8-\\xde",EP="\\ufe0e\\ufe0f",AP=zz+Wz+jz+Xz,uw="['’]",Yz="["+tr+"]",IP="["+AP+"]",jm="["+Nr+"]",RP="\\d+",Kz="["+Jh+"]",PP="["+Qh+"]",OP="[^"+tr+AP+RP+Jh+Qh+TP+"]",cw="\\ud83c[\\udffb-\\udfff]",Zz="(?:"+jm+"|"+cw+")",DP="[^"+tr+"]",fw="(?:\\ud83c[\\udde6-\\uddff]){2}",dw="[\\ud800-\\udbff][\\udc00-\\udfff]",Yf="["+TP+"]",MP="\\u200d",LP="(?:"+PP+"|"+OP+")",qz="(?:"+Yf+"|"+OP+")",NP="(?:"+uw+"(?:d|ll|m|re|s|t|ve))?",kP="(?:"+uw+"(?:D|LL|M|RE|S|T|VE))?",FP=Zz+"?",$P="["+EP+"]?",Jz="(?:"+MP+"(?:"+[DP,fw,dw].join("|")+")"+$P+FP+")*",Qz="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",e9="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",BP=$P+FP+Jz,t9="(?:"+[Kz,fw,dw].join("|")+")"+BP,n9="(?:"+[DP+jm+"?",jm,fw,dw,Yz].join("|")+")",r9=RegExp(uw,"g"),i9=RegExp(jm,"g"),hw=RegExp(cw+"(?="+cw+")|"+n9+BP,"g"),o9=RegExp([Yf+"?"+PP+"+"+NP+"(?="+[IP,Yf,"$"].join("|")+")",qz+"+"+kP+"(?="+[IP,Yf+LP,"$"].join("|")+")",Yf+"?"+LP+"+"+NP,Yf+"+"+kP,e9,Qz,RP,t9].join("|"),"g"),a9=RegExp("["+MP+tr+Nr+EP+"]"),s9=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,l9=["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"],u9=-1,Bn={};Bn[ee]=Bn[oe]=Bn[pe]=Bn[Te]=Bn[He]=Bn[re]=Bn[Ae]=Bn[$e]=Bn[et]=!0,Bn[Me]=Bn[je]=Bn[Ke]=Bn[Ee]=Bn[pt]=Bn[Se]=Bn[Oe]=Bn[Be]=Bn[G]=Bn[ue]=Bn[ve]=Bn[q]=Bn[de]=Bn[_e]=Bn[he]=!1;var Nn={};Nn[Me]=Nn[je]=Nn[Ke]=Nn[pt]=Nn[Ee]=Nn[Se]=Nn[ee]=Nn[oe]=Nn[pe]=Nn[Te]=Nn[He]=Nn[G]=Nn[ue]=Nn[ve]=Nn[q]=Nn[de]=Nn[_e]=Nn[Pe]=Nn[re]=Nn[Ae]=Nn[$e]=Nn[et]=!0,Nn[Oe]=Nn[Be]=Nn[he]=!1;var c9={À:"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"},f9={"&":"&","<":"<",">":">",'"':""","'":"'"},d9={"&":"&","<":"<",">":">",""":'"',"'":"'"},h9={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},p9=parseFloat,v9=parseInt,VP=typeof My=="object"&&My&&My.Object===Object&&My,g9=typeof self=="object"&&self&&self.Object===Object&&self,Hr=VP||g9||Function("return this")(),pw=t&&!t.nodeType&&t,Qu=pw&&!0&&e&&!e.nodeType&&e,UP=Qu&&Qu.exports===pw,vw=UP&&VP.process,Fo=function(){try{var ae=Qu&&Qu.require&&Qu.require("util").types;return ae||vw&&vw.binding&&vw.binding("util")}catch{}}(),HP=Fo&&Fo.isArrayBuffer,GP=Fo&&Fo.isDate,zP=Fo&&Fo.isMap,WP=Fo&&Fo.isRegExp,jP=Fo&&Fo.isSet,XP=Fo&&Fo.isTypedArray;function ho(ae,xe,ye){switch(ye.length){case 0:return ae.call(xe);case 1:return ae.call(xe,ye[0]);case 2:return ae.call(xe,ye[0],ye[1]);case 3:return ae.call(xe,ye[0],ye[1],ye[2])}return ae.apply(xe,ye)}function m9(ae,xe,ye,rt){for(var Lt=-1,dn=ae==null?0:ae.length;++Lt-1}function gw(ae,xe,ye){for(var rt=-1,Lt=ae==null?0:ae.length;++rt-1;);return ye}function tO(ae,xe){for(var ye=ae.length;ye--&&Kf(xe,ae[ye],0)>-1;);return ye}function E9(ae,xe){for(var ye=ae.length,rt=0;ye--;)ae[ye]===xe&&++rt;return rt}var A9=bw(c9),I9=bw(f9);function R9(ae){return"\\"+h9[ae]}function P9(ae,xe){return ae==null?n:ae[xe]}function Zf(ae){return a9.test(ae)}function O9(ae){return s9.test(ae)}function D9(ae){for(var xe,ye=[];!(xe=ae.next()).done;)ye.push(xe.value);return ye}function Cw(ae){var xe=-1,ye=Array(ae.size);return ae.forEach(function(rt,Lt){ye[++xe]=[Lt,rt]}),ye}function nO(ae,xe){return function(ye){return ae(xe(ye))}}function Ml(ae,xe){for(var ye=-1,rt=ae.length,Lt=0,dn=[];++ye-1}function _7(p,g){var x=this.__data__,A=cy(x,p);return A<0?(++this.size,x.push([p,g])):x[A][1]=g,this}Os.prototype.clear=v7,Os.prototype.delete=g7,Os.prototype.get=m7,Os.prototype.has=y7,Os.prototype.set=_7;function Ds(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g=g?p:g)),p}function Uo(p,g,x,A,D,V){var Y,J=g&f,ce=g&d,Ie=g&h;if(x&&(Y=D?x(p,A,D,V):x(p)),Y!==n)return Y;if(!Jn(p))return p;var Re=Ft(p);if(Re){if(Y=xW(p),!J)return ki(p,Y)}else{var Ne=Qr(p),qe=Ne==Be||Ne==H;if(Bl(p))return $O(p,J);if(Ne==ve||Ne==Me||qe&&!D){if(Y=ce||qe?{}:rD(p),!J)return ce?dW(p,N7(Y,p)):fW(p,pO(Y,p))}else{if(!Nn[Ne])return D?p:{};Y=CW(p,Ne,J)}}V||(V=new _a);var dt=V.get(p);if(dt)return dt;V.set(p,Y),DD(p)?p.forEach(function(wt){Y.add(Uo(wt,g,x,wt,p,V))}):PD(p)&&p.forEach(function(wt,Zt){Y.set(Zt,Uo(wt,g,x,Zt,p,V))});var St=Ie?ce?Zw:Kw:ce?$i:kr,Wt=Re?n:St(p);return $o(Wt||p,function(wt,Zt){Wt&&(Zt=wt,wt=p[Zt]),ap(Y,Zt,Uo(wt,g,x,Zt,p,V))}),Y}function k7(p){var g=kr(p);return function(x){return vO(x,p,g)}}function vO(p,g,x){var A=x.length;if(p==null)return!A;for(p=Pn(p);A--;){var D=x[A],V=g[D],Y=p[D];if(Y===n&&!(D in p)||!V(Y))return!1}return!0}function gO(p,g,x){if(typeof p!="function")throw new Bo(a);return hp(function(){p.apply(n,x)},g)}function sp(p,g,x,A){var D=-1,V=Xm,Y=!0,J=p.length,ce=[],Ie=g.length;if(!J)return ce;x&&(g=Wn(g,po(x))),A?(V=gw,Y=!1):g.length>=i&&(V=ep,Y=!1,g=new nc(g));e:for(;++DD?0:D+x),A=A===n||A>D?D:Ht(A),A<0&&(A+=D),A=x>A?0:LD(A);x0&&x(J)?g>1?Gr(J,g-1,x,A,D):Dl(D,J):A||(D[D.length]=J)}return D}var Ow=zO(),_O=zO(!0);function Ya(p,g){return p&&Ow(p,g,kr)}function Dw(p,g){return p&&_O(p,g,kr)}function dy(p,g){return Ol(g,function(x){return Fs(p[x])})}function ic(p,g){g=Fl(g,p);for(var x=0,A=g.length;p!=null&&xg}function B7(p,g){return p!=null&&wn.call(p,g)}function V7(p,g){return p!=null&&g in Pn(p)}function U7(p,g,x){return p>=Jr(g,x)&&p=120&&Re.length>=120)?new nc(Y&&Re):n}Re=p[0];var Ne=-1,qe=J[0];e:for(;++Ne-1;)J!==p&&ry.call(J,ce,1),ry.call(p,ce,1);return p}function PO(p,g){for(var x=p?g.length:0,A=x-1;x--;){var D=g[x];if(x==A||D!==V){var V=D;ks(D)?ry.call(p,D,1):Hw(p,D)}}return p}function Bw(p,g){return p+ay(cO()*(g-p+1))}function eW(p,g,x,A){for(var D=-1,V=Tr(oy((g-p)/(x||1)),0),Y=ye(V);V--;)Y[A?V:++D]=p,p+=x;return Y}function Vw(p,g){var x="";if(!p||g<1||g>j)return x;do g%2&&(x+=p),g=ay(g/2),g&&(p+=p);while(g);return x}function jt(p,g){return rx(aD(p,g,Bi),p+"")}function tW(p){return hO(sd(p))}function nW(p,g){var x=sd(p);return xy(x,rc(g,0,x.length))}function cp(p,g,x,A){if(!Jn(p))return p;g=Fl(g,p);for(var D=-1,V=g.length,Y=V-1,J=p;J!=null&&++DD?0:D+g),x=x>D?D:x,x<0&&(x+=D),D=g>x?0:x-g>>>0,g>>>=0;for(var V=ye(D);++A>>1,Y=p[V];Y!==null&&!go(Y)&&(x?Y<=g:Y=i){var Ie=g?null:gW(p);if(Ie)return Km(Ie);Y=!1,D=ep,ce=new nc}else ce=g?[]:J;e:for(;++A=A?p:Ho(p,g,x)}var FO=X9||function(p){return Hr.clearTimeout(p)};function $O(p,g){if(g)return p.slice();var x=p.length,A=oO?oO(x):new p.constructor(x);return p.copy(A),A}function jw(p){var g=new p.constructor(p.byteLength);return new ty(g).set(new ty(p)),g}function sW(p,g){var x=g?jw(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.byteLength)}function lW(p){var g=new p.constructor(p.source,qh.exec(p));return g.lastIndex=p.lastIndex,g}function uW(p){return op?Pn(op.call(p)):{}}function BO(p,g){var x=g?jw(p.buffer):p.buffer;return new p.constructor(x,p.byteOffset,p.length)}function VO(p,g){if(p!==g){var x=p!==n,A=p===null,D=p===p,V=go(p),Y=g!==n,J=g===null,ce=g===g,Ie=go(g);if(!J&&!Ie&&!V&&p>g||V&&Y&&ce&&!J&&!Ie||A&&Y&&ce||!x&&ce||!D)return 1;if(!A&&!V&&!Ie&&p=J)return ce;var Ie=x[A];return ce*(Ie=="desc"?-1:1)}}return p.index-g.index}function UO(p,g,x,A){for(var D=-1,V=p.length,Y=x.length,J=-1,ce=g.length,Ie=Tr(V-Y,0),Re=ye(ce+Ie),Ne=!A;++J1?x[D-1]:n,Y=D>2?x[2]:n;for(V=p.length>3&&typeof V=="function"?(D--,V):n,Y&&_i(x[0],x[1],Y)&&(V=D<3?n:V,D=1),g=Pn(g);++A-1?D[V?g[Y]:Y]:n}}function XO(p){return Ns(function(g){var x=g.length,A=x,D=Vo.prototype.thru;for(p&&g.reverse();A--;){var V=g[A];if(typeof V!="function")throw new Bo(a);if(D&&!Y&&Sy(V)=="wrapper")var Y=new Vo([],!0)}for(A=Y?A:x;++A1&&rn.reverse(),Re&&ceJ))return!1;var Ie=V.get(p),Re=V.get(g);if(Ie&&Re)return Ie==g&&Re==p;var Ne=-1,qe=!0,dt=x&m?new nc:n;for(V.set(p,g),V.set(g,p);++Ne1?"& ":"")+g[A],g=g.join(x>2?", ":" "),p.replace(Vm,`{ /* [wrapped with `+g+`] */ `)}function EW(p){return Ft(p)||sc(p)||!!(lO&&p&&p[lO])}function ks(p,g){var x=typeof p;return g=g??j,!!g&&(x=="number"||x!="symbol"&&Ue.test(p))&&p>-1&&p%1==0&&p0){if(++g>=M)return arguments[0]}else g=0;return p.apply(n,arguments)}}function xy(p,g){var x=-1,A=p.length,D=A-1;for(g=g===n?A:g;++x1?p[g-1]:n;return x=typeof x=="function"?(p.pop(),x):n,yD(p,x)});function _D(p){var g=k(p);return g.__chain__=!0,g}function Fj(p,g){return g(p),p}function Cy(p,g){return g(p)}var $j=Ns(function(p){var g=p.length,x=g?p[0]:0,A=this.__wrapped__,D=function(V){return Pw(V,p)};return g>1||this.__actions__.length||!(A instanceof en)||!ks(x)?this.thru(D):(A=A.slice(x,+x+(g?1:0)),A.__actions__.push({func:Cy,args:[D],thisArg:n}),new Vo(A,this.__chain__).thru(function(V){return g&&!V.length&&V.push(n),V}))});function Bj(){return _D(this)}function Vj(){return new Vo(this.value(),this.__chain__)}function Uj(){this.__values__===n&&(this.__values__=MD(this.value()));var p=this.__index__>=this.__values__.length,g=p?n:this.__values__[this.__index__++];return{done:p,value:g}}function Hj(){return this}function Gj(p){for(var g,x=this;x instanceof uy;){var A=dD(x);A.__index__=0,A.__values__=n,g?D.__wrapped__=A:g=A;var D=A;x=x.__wrapped__}return D.__wrapped__=p,g}function zj(){var p=this.__wrapped__;if(p instanceof en){var g=p;return this.__actions__.length&&(g=new en(this)),g=g.reverse(),g.__actions__.push({func:Cy,args:[ix],thisArg:n}),new Vo(g,this.__chain__)}return this.thru(ix)}function Wj(){return NO(this.__wrapped__,this.__actions__)}var jj=gy(function(p,g,x){wn.call(p,x)?++p[x]:Ms(p,x,1)});function Xj(p,g,x){var A=Ft(p)?YP:F7;return x&&_i(p,g,x)&&(g=n),A(p,_t(g,3))}function Yj(p,g){var x=Ft(p)?Ol:yO;return x(p,_t(g,3))}var Kj=jO(hD),Zj=jO(pD);function qj(p,g){return Gr(Ty(p,g),1)}function Jj(p,g){return Gr(Ty(p,g),K)}function Qj(p,g,x){return x=x===n?1:Ht(x),Gr(Ty(p,g),x)}function bD(p,g){var x=Ft(p)?$o:Nl;return x(p,_t(g,3))}function SD(p,g){var x=Ft(p)?y9:mO;return x(p,_t(g,3))}var eX=gy(function(p,g,x){wn.call(p,x)?p[x].push(g):Ms(p,x,[g])});function tX(p,g,x,A){p=Fi(p)?p:sd(p),x=x&&!A?Ht(x):0;var D=p.length;return x<0&&(x=Tr(D+x,0)),Py(p)?x<=D&&p.indexOf(g,x)>-1:!!D&&Kf(p,g,x)>-1}var nX=jt(function(p,g,x){var A=-1,D=typeof g=="function",V=Fi(p)?ye(p.length):[];return Nl(p,function(Y){V[++A]=D?ho(g,Y,x):lp(Y,g,x)}),V}),rX=gy(function(p,g,x){Ms(p,x,g)});function Ty(p,g){var x=Ft(p)?Wn:CO;return x(p,_t(g,3))}function iX(p,g,x,A){return p==null?[]:(Ft(g)||(g=g==null?[]:[g]),x=A?n:x,Ft(x)||(x=x==null?[]:[x]),IO(p,g,x))}var oX=gy(function(p,g,x){p[x?0:1].push(g)},function(){return[[],[]]});function aX(p,g,x){var A=Ft(p)?mw:JP,D=arguments.length<3;return A(p,_t(g,4),x,D,Nl)}function sX(p,g,x){var A=Ft(p)?_9:JP,D=arguments.length<3;return A(p,_t(g,4),x,D,mO)}function lX(p,g){var x=Ft(p)?Ol:yO;return x(p,Iy(_t(g,3)))}function uX(p){var g=Ft(p)?hO:tW;return g(p)}function cX(p,g,x){(x?_i(p,g,x):g===n)?g=1:g=Ht(g);var A=Ft(p)?D7:nW;return A(p,g)}function fX(p){var g=Ft(p)?M7:iW;return g(p)}function dX(p){if(p==null)return 0;if(Fi(p))return Py(p)?qf(p):p.length;var g=Qr(p);return g==G||g==de?p.size:kw(p).length}function hX(p,g,x){var A=Ft(p)?yw:oW;return x&&_i(p,g,x)&&(g=n),A(p,_t(g,3))}var pX=jt(function(p,g){if(p==null)return[];var x=g.length;return x>1&&_i(p,g[0],g[1])?g=[]:x>2&&_i(g[0],g[1],g[2])&&(g=[g[0]]),IO(p,Gr(g,1),[])}),Ey=Y9||function(){return Hr.Date.now()};function vX(p,g){if(typeof g!="function")throw new Bo(a);return p=Ht(p),function(){if(--p<1)return g.apply(this,arguments)}}function wD(p,g,x){return g=x?n:g,g=p&&g==null?p.length:g,Ls(p,E,n,n,n,n,g)}function xD(p,g){var x;if(typeof g!="function")throw new Bo(a);return p=Ht(p),function(){return--p>0&&(x=g.apply(this,arguments)),p<=1&&(g=n),x}}var ax=jt(function(p,g,x){var A=_;if(x.length){var D=Ml(x,od(ax));A|=C}return Ls(p,A,g,x,D)}),CD=jt(function(p,g,x){var A=_|y;if(x.length){var D=Ml(x,od(CD));A|=C}return Ls(g,A,p,x,D)});function TD(p,g,x){g=x?n:g;var A=Ls(p,S,n,n,n,n,n,g);return A.placeholder=TD.placeholder,A}function ED(p,g,x){g=x?n:g;var A=Ls(p,w,n,n,n,n,n,g);return A.placeholder=ED.placeholder,A}function AD(p,g,x){var A,D,V,Y,J,ce,Ie=0,Re=!1,Ne=!1,qe=!0;if(typeof p!="function")throw new Bo(a);g=zo(g)||0,Jn(x)&&(Re=!!x.leading,Ne="maxWait"in x,V=Ne?Tr(zo(x.maxWait)||0,g):V,qe="trailing"in x?!!x.trailing:qe);function dt(pr){var Sa=A,Bs=D;return A=D=n,Ie=pr,Y=p.apply(Bs,Sa),Y}function St(pr){return Ie=pr,J=hp(Zt,g),Re?dt(pr):Y}function Wt(pr){var Sa=pr-ce,Bs=pr-Ie,jD=g-Sa;return Ne?Jr(jD,V-Bs):jD}function wt(pr){var Sa=pr-ce,Bs=pr-Ie;return ce===n||Sa>=g||Sa<0||Ne&&Bs>=V}function Zt(){var pr=Ey();if(wt(pr))return rn(pr);J=hp(Zt,Wt(pr))}function rn(pr){return J=n,qe&&A?dt(pr):(A=D=n,Y)}function mo(){J!==n&&FO(J),Ie=0,A=ce=D=J=n}function bi(){return J===n?Y:rn(Ey())}function yo(){var pr=Ey(),Sa=wt(pr);if(A=arguments,D=this,ce=pr,Sa){if(J===n)return St(ce);if(Ne)return FO(J),J=hp(Zt,g),dt(ce)}return J===n&&(J=hp(Zt,g)),Y}return yo.cancel=mo,yo.flush=bi,yo}var gX=jt(function(p,g){return gO(p,1,g)}),mX=jt(function(p,g,x){return gO(p,zo(g)||0,x)});function yX(p){return Ls(p,I)}function Ay(p,g){if(typeof p!="function"||g!=null&&typeof g!="function")throw new Bo(a);var x=function(){var A=arguments,D=g?g.apply(this,A):A[0],V=x.cache;if(V.has(D))return V.get(D);var Y=p.apply(this,A);return x.cache=V.set(D,Y)||V,Y};return x.cache=new(Ay.Cache||Ds),x}Ay.Cache=Ds;function Iy(p){if(typeof p!="function")throw new Bo(a);return function(){var g=arguments;switch(g.length){case 0:return!p.call(this);case 1:return!p.call(this,g[0]);case 2:return!p.call(this,g[0],g[1]);case 3:return!p.call(this,g[0],g[1],g[2])}return!p.apply(this,g)}}function _X(p){return xD(2,p)}var bX=aW(function(p,g){g=g.length==1&&Ft(g[0])?Wn(g[0],po(_t())):Wn(Gr(g,1),po(_t()));var x=g.length;return jt(function(A){for(var D=-1,V=Jr(A.length,x);++D=g}),sc=SO(function(){return arguments}())?SO:function(p){return nr(p)&&wn.call(p,"callee")&&!sO.call(p,"callee")},Ft=ye.isArray,NX=HP?po(HP):G7;function Fi(p){return p!=null&&Ry(p.length)&&!Fs(p)}function hr(p){return nr(p)&&Fi(p)}function kX(p){return p===!0||p===!1||nr(p)&&yi(p)==Ee}var Bl=Z9||yx,FX=GP?po(GP):z7;function $X(p){return nr(p)&&p.nodeType===1&&!pp(p)}function BX(p){if(p==null)return!0;if(Fi(p)&&(Ft(p)||typeof p=="string"||typeof p.splice=="function"||Bl(p)||ad(p)||sc(p)))return!p.length;var g=Qr(p);if(g==G||g==de)return!p.size;if(dp(p))return!kw(p).length;for(var x in p)if(wn.call(p,x))return!1;return!0}function VX(p,g){return up(p,g)}function UX(p,g,x){x=typeof x=="function"?x:n;var A=x?x(p,g):n;return A===n?up(p,g,n,x):!!A}function lx(p){if(!nr(p))return!1;var g=yi(p);return g==Oe||g==Ce||typeof p.message=="string"&&typeof p.name=="string"&&!pp(p)}function HX(p){return typeof p=="number"&&uO(p)}function Fs(p){if(!Jn(p))return!1;var g=yi(p);return g==Be||g==H||g==fe||g==W}function RD(p){return typeof p=="number"&&p==Ht(p)}function Ry(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=j}function Jn(p){var g=typeof p;return p!=null&&(g=="object"||g=="function")}function nr(p){return p!=null&&typeof p=="object"}var PD=zP?po(zP):j7;function GX(p,g){return p===g||Nw(p,g,Jw(g))}function zX(p,g,x){return x=typeof x=="function"?x:n,Nw(p,g,Jw(g),x)}function WX(p){return OD(p)&&p!=+p}function jX(p){if(RW(p))throw new Lt(o);return wO(p)}function XX(p){return p===null}function YX(p){return p==null}function OD(p){return typeof p=="number"||nr(p)&&yi(p)==ue}function pp(p){if(!nr(p)||yi(p)!=ve)return!1;var g=ny(p);if(g===null)return!0;var x=wn.call(g,"constructor")&&g.constructor;return typeof x=="function"&&x instanceof x&&Jm.call(x)==z9}var ux=WP?po(WP):X7;function KX(p){return RD(p)&&p>=-9007199254740991&&p<=j}var DD=jP?po(jP):Y7;function Py(p){return typeof p=="string"||!Ft(p)&&nr(p)&&yi(p)==_e}function go(p){return typeof p=="symbol"||nr(p)&&yi(p)==Pe}var ad=XP?po(XP):K7;function ZX(p){return p===n}function qX(p){return nr(p)&&Qr(p)==he}function JX(p){return nr(p)&&yi(p)==Ve}var QX=by(Fw),eY=by(function(p,g){return p<=g});function MD(p){if(!p)return[];if(Fi(p))return Py(p)?ya(p):ki(p);if(tp&&p[tp])return D9(p[tp]());var g=Qr(p),x=g==G?Cw:g==de?Km:sd;return x(p)}function $s(p){if(!p)return p===0?p:0;if(p=zo(p),p===K||p===-1/0){var g=p<0?-1:1;return g*le}return p===p?p:0}function Ht(p){var g=$s(p),x=g%1;return g===g?x?g-x:g:0}function LD(p){return p?rc(Ht(p),0,ge):0}function zo(p){if(typeof p=="number")return p;if(go(p))return me;if(Jn(p)){var g=typeof p.valueOf=="function"?p.valueOf():p;p=Jn(g)?g+"":g}if(typeof p!="string")return p===0?p:+p;p=QP(p);var x=lw.test(p);return x||ne.test(p)?v9(p.slice(2),x?2:8):Wm.test(p)?me:+p}function ND(p){return Ka(p,$i(p))}function tY(p){return p?rc(Ht(p),-9007199254740991,j):p===0?p:0}function gn(p){return p==null?"":vo(p)}var nY=rd(function(p,g){if(dp(g)||Fi(g)){Ka(g,kr(g),p);return}for(var x in g)wn.call(g,x)&&ap(p,x,g[x])}),kD=rd(function(p,g){Ka(g,$i(g),p)}),Oy=rd(function(p,g,x,A){Ka(g,$i(g),p,A)}),rY=rd(function(p,g,x,A){Ka(g,kr(g),p,A)}),iY=Ns(Pw);function oY(p,g){var x=nd(p);return g==null?x:pO(x,g)}var aY=jt(function(p,g){p=Pn(p);var x=-1,A=g.length,D=A>2?g[2]:n;for(D&&_i(g[0],g[1],D)&&(A=1);++x1),V}),Ka(p,Zw(p),x),A&&(x=Uo(x,f|d|h,mW));for(var D=g.length;D--;)Hw(x,g[D]);return x});function CY(p,g){return $D(p,Iy(_t(g)))}var TY=Ns(function(p,g){return p==null?{}:J7(p,g)});function $D(p,g){if(p==null)return{};var x=Wn(Zw(p),function(A){return[A]});return g=_t(g),RO(p,x,function(A,D){return g(A,D[0])})}function EY(p,g,x){g=Fl(g,p);var A=-1,D=g.length;for(D||(D=1,p=n);++Ag){var A=p;p=g,g=A}if(x||p%1||g%1){var D=cO();return Jr(p+D*(g-p+p9("1e-"+((D+"").length-1))),g)}return Bw(p,g)}var FY=id(function(p,g,x){return g=g.toLowerCase(),p+(x?UD(g):g)});function UD(p){return dx(gn(p).toLowerCase())}function HD(p){return p=gn(p),p&&p.replace(ut,A9).replace(i9,"")}function $Y(p,g,x){p=gn(p),g=vo(g);var A=p.length;x=x===n?A:rc(Ht(x),0,A);var D=x;return x-=g.length,x>=0&&p.slice(x,D)==g}function BY(p){return p=gn(p),p&&ga.test(p)?p.replace(Dt,I9):p}function VY(p){return p=gn(p),p&&sw.test(p)?p.replace(jf,"\\$&"):p}var UY=id(function(p,g,x){return p+(x?"-":"")+g.toLowerCase()}),HY=id(function(p,g,x){return p+(x?" ":"")+g.toLowerCase()}),GY=WO("toLowerCase");function zY(p,g,x){p=gn(p),g=Ht(g);var A=g?qf(p):0;if(!g||A>=g)return p;var D=(g-A)/2;return _y(ay(D),x)+p+_y(oy(D),x)}function WY(p,g,x){p=gn(p),g=Ht(g);var A=g?qf(p):0;return g&&A>>0,x?(p=gn(p),p&&(typeof g=="string"||g!=null&&!ux(g))&&(g=vo(g),!g&&Zf(p))?$l(ya(p),0,x):p.split(g,x)):[]}var JY=id(function(p,g,x){return p+(x?" ":"")+dx(g)});function QY(p,g,x){return p=gn(p),x=x==null?0:rc(Ht(x),0,p.length),g=vo(g),p.slice(x,x+g.length)==g}function eK(p,g,x){var A=k.templateSettings;x&&_i(p,g,x)&&(g=n),p=gn(p),g=Oy({},g,A,JO);var D=Oy({},g.imports,A.imports,JO),V=kr(D),Y=xw(D,V),J,ce,Ie=0,Re=g.interpolate||Sn,Ne="__p += '",qe=Tw((g.escape||Sn).source+"|"+Re.source+"|"+(Re===Wf?zm:Sn).source+"|"+(g.evaluate||Sn).source+"|$","g"),dt="//# sourceURL="+(wn.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++u9+"]")+` `;p.replace(qe,function(wt,Zt,rn,mo,bi,yo){return rn||(rn=mo),Ne+=p.slice(Ie,yo).replace(Lr,R9),Zt&&(J=!0,Ne+=`' + __e(`+Zt+`) + '`),bi&&(ce=!0,Ne+=`'; `+bi+`; __p += '`),rn&&(Ne+=`' + ((__t = (`+rn+`)) == null ? '' : __t) + '`),Ie=yo+wt.length,wt}),Ne+=`'; `;var St=wn.call(g,"variable")&&g.variable;if(!St)Ne=`with (obj) { `+Ne+` } `;else if(ma.test(St))throw new Lt(s);Ne=(ce?Ne.replace(Ge,""):Ne).replace(We,"$1").replace(tt,"$1;"),Ne="function("+(St||"obj")+`) { `+(St?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(ce?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Ne+`return __p }`;var Wt=zD(function(){return dn(V,dt+"return "+Ne).apply(n,Y)});if(Wt.source=Ne,lx(Wt))throw Wt;return Wt}function tK(p){return gn(p).toLowerCase()}function nK(p){return gn(p).toUpperCase()}function rK(p,g,x){if(p=gn(p),p&&(x||g===n))return QP(p);if(!p||!(g=vo(g)))return p;var A=ya(p),D=ya(g),V=eO(A,D),Y=tO(A,D)+1;return $l(A,V,Y).join("")}function iK(p,g,x){if(p=gn(p),p&&(x||g===n))return p.slice(0,rO(p)+1);if(!p||!(g=vo(g)))return p;var A=ya(p),D=tO(A,ya(g))+1;return $l(A,0,D).join("")}function oK(p,g,x){if(p=gn(p),p&&(x||g===n))return p.replace(Ni,"");if(!p||!(g=vo(g)))return p;var A=ya(p),D=eO(A,ya(g));return $l(A,D).join("")}function aK(p,g){var x=O,A=P;if(Jn(g)){var D="separator"in g?g.separator:D;x="length"in g?Ht(g.length):x,A="omission"in g?vo(g.omission):A}p=gn(p);var V=p.length;if(Zf(p)){var Y=ya(p);V=Y.length}if(x>=V)return p;var J=x-qf(A);if(J<1)return A;var ce=Y?$l(Y,0,J).join(""):p.slice(0,J);if(D===n)return ce+A;if(Y&&(J+=ce.length-J),ux(D)){if(p.slice(J).search(D)){var Ie,Re=ce;for(D.global||(D=Tw(D.source,gn(qh.exec(D))+"g")),D.lastIndex=0;Ie=D.exec(Re);)var Ne=Ie.index;ce=ce.slice(0,Ne===n?J:Ne)}}else if(p.indexOf(vo(D),J)!=J){var qe=ce.lastIndexOf(D);qe>-1&&(ce=ce.slice(0,qe))}return ce+A}function sK(p){return p=gn(p),p&&Ln.test(p)?p.replace(Pt,k9):p}var lK=id(function(p,g,x){return p+(x?" ":"")+g.toUpperCase()}),dx=WO("toUpperCase");function GD(p,g,x){return p=gn(p),g=x?n:g,g===n?O9(p)?B9(p):w9(p):p.match(g)||[]}var zD=jt(function(p,g){try{return ho(p,n,g)}catch(x){return lx(x)?x:new Lt(x)}}),uK=Ns(function(p,g){return $o(g,function(x){x=Za(x),Ms(p,x,ax(p[x],p))}),p});function cK(p){var g=p==null?0:p.length,x=_t();return p=g?Wn(p,function(A){if(typeof A[1]!="function")throw new Bo(a);return[x(A[0]),A[1]]}):[],jt(function(A){for(var D=-1;++Dj)return[];var x=ge,A=Jr(p,ge);g=_t(g),p-=ge;for(var D=ww(A,g);++x0||g<0)?new en(x):(p<0?x=x.takeRight(-p):p&&(x=x.drop(p)),g!==n&&(g=Ht(g),x=g<0?x.dropRight(-g):x.take(g-p)),x)},en.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},en.prototype.toArray=function(){return this.take(ge)},Ya(en.prototype,function(p,g){var x=/^(?:filter|find|map|reject)|While$/.test(g),A=/^(?:head|last)$/.test(g),D=k[A?"take"+(g=="last"?"Right":""):g],V=A||/^find/.test(g);D&&(k.prototype[g]=function(){var Y=this.__wrapped__,J=A?[1]:arguments,ce=Y instanceof en,Ie=J[0],Re=ce||Ft(Y),Ne=function(Zt){var rn=D.apply(k,Dl([Zt],J));return A&&qe?rn[0]:rn};Re&&x&&typeof Ie=="function"&&Ie.length!=1&&(ce=Re=!1);var qe=this.__chain__,dt=!!this.__actions__.length,St=V&&!qe,Wt=ce&&!dt;if(!V&&Re){Y=Wt?Y:new en(this);var wt=p.apply(Y,J);return wt.__actions__.push({func:Cy,args:[Ne],thisArg:n}),new Vo(wt,qe)}return St&&Wt?p.apply(this,J):(wt=this.thru(Ne),St?A?wt.value()[0]:wt.value():wt)})}),$o(["pop","push","shift","sort","splice","unshift"],function(p){var g=Zm[p],x=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",A=/^(?:pop|shift)$/.test(p);k.prototype[p]=function(){var D=arguments;if(A&&!this.__chain__){var V=this.value();return g.apply(Ft(V)?V:[],D)}return this[x](function(Y){return g.apply(Ft(Y)?Y:[],D)})}}),Ya(en.prototype,function(p,g){var x=k[g];if(x){var A=x.name+"";wn.call(td,A)||(td[A]=[]),td[A].push({name:g,func:x})}}),td[my(n,y).name]=[{name:"wrapper",func:n}],en.prototype.clone=s7,en.prototype.reverse=l7,en.prototype.value=u7,k.prototype.at=$j,k.prototype.chain=Bj,k.prototype.commit=Vj,k.prototype.next=Uj,k.prototype.plant=Gj,k.prototype.reverse=zj,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=Wj,k.prototype.first=k.prototype.head,tp&&(k.prototype[tp]=Hj),k},Jf=V9();Qu?((Qu.exports=Jf)._=Jf,pw._=Jf):Hr._=Jf}).call(yie)}(rv,rv.exports)),rv.exports}var $r=_ie();const zr=[];for(let e=0;e<256;++e)zr.push((e+256).toString(16).slice(1));function bie(e,t=0){return(zr[e[t+0]]+zr[e[t+1]]+zr[e[t+2]]+zr[e[t+3]]+"-"+zr[e[t+4]]+zr[e[t+5]]+"-"+zr[e[t+6]]+zr[e[t+7]]+"-"+zr[e[t+8]]+zr[e[t+9]]+"-"+zr[e[t+10]]+zr[e[t+11]]+zr[e[t+12]]+zr[e[t+13]]+zr[e[t+14]]+zr[e[t+15]]).toLowerCase()}let zx;const Sie=new Uint8Array(16);function wie(){if(!zx){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");zx=crypto.getRandomValues.bind(crypto)}return zx(Sie)}const xie=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),zL={randomUUID:xie};function Cie(e,t,n){var i;if(zL.randomUUID&&!e)return zL.randomUUID();e=e||{};const r=e.random??((i=e.rng)==null?void 0:i.call(e))??wie();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,bie(r)}const oa=It("setup/api-list",[]),vi=It("setup/active-uuid",""),wl=Le(()=>oa.value.find(e=>e.uuid===vi.value)),Tie=e=>{const t=oa.value.find(r=>$r.isEqual($r.omit(r,"uuid"),e));if(t){vi.value=t.uuid;return}const n=Cie();oa.value.push({...e,uuid:n}),vi.value=n},cV=e=>{oa.value=oa.value.filter(t=>t.uuid!==e)};function fV(e,t){return function(){return e.apply(t,arguments)}}const{toString:Eie}=Object.prototype,{getPrototypeOf:h2}=Object,eS=(e=>t=>{const n=Eie.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wa=e=>(e=e.toLowerCase(),t=>eS(t)===e),tS=e=>t=>typeof t===e,{isArray:$h}=Array,Ag=tS("undefined");function Aie(e){return e!==null&&!Ag(e)&&e.constructor!==null&&!Ag(e.constructor)&&Ro(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dV=Wa("ArrayBuffer");function Iie(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dV(e.buffer),t}const Rie=tS("string"),Ro=tS("function"),hV=tS("number"),nS=e=>e!==null&&typeof e=="object",Pie=e=>e===!0||e===!1,I_=e=>{if(eS(e)!=="object")return!1;const t=h2(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Oie=Wa("Date"),Die=Wa("File"),Mie=Wa("Blob"),Lie=Wa("FileList"),Nie=e=>nS(e)&&Ro(e.pipe),kie=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ro(e.append)&&((t=eS(e))==="formdata"||t==="object"&&Ro(e.toString)&&e.toString()==="[object FormData]"))},Fie=Wa("URLSearchParams"),[$ie,Bie,Vie,Uie]=["ReadableStream","Request","Response","Headers"].map(Wa),Hie=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ym(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),$h(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Kc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vV=e=>!Ag(e)&&e!==Kc;function DE(){const{caseless:e}=vV(this)&&this||{},t={},n=(r,i)=>{const o=e&&pV(t,i)||i;I_(t[o])&&I_(r)?t[o]=DE(t[o],r):I_(r)?t[o]=DE({},r):$h(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(ym(t,(i,o)=>{n&&Ro(i)?e[o]=fV(i,n):e[o]=i},{allOwnKeys:r}),e),zie=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Wie=(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)},jie=(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&&h2(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Xie=(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},Yie=e=>{if(!e)return null;if($h(e))return e;let t=e.length;if(!hV(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Kie=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&h2(Uint8Array)),Zie=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},qie=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Jie=Wa("HTMLFormElement"),Qie=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),WL=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eoe=Wa("RegExp"),gV=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ym(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},toe=e=>{gV(e,(t,n)=>{if(Ro(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ro(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+"'")})}})},noe=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return $h(e)?r(e):r(String(e).split(t)),n},roe=()=>{},ioe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Wx="abcdefghijklmnopqrstuvwxyz",jL="0123456789",mV={DIGIT:jL,ALPHA:Wx,ALPHA_DIGIT:Wx+Wx.toUpperCase()+jL},ooe=(e=16,t=mV.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function aoe(e){return!!(e&&Ro(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const soe=e=>{const t=new Array(10),n=(r,i)=>{if(nS(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=$h(r)?[]:{};return ym(r,(a,s)=>{const l=n(a,i+1);!Ag(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},loe=Wa("AsyncFunction"),uoe=e=>e&&(nS(e)||Ro(e))&&Ro(e.then)&&Ro(e.catch),yV=((e,t)=>e?setImmediate:t?((n,r)=>(Kc.addEventListener("message",({source:i,data:o})=>{i===Kc&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Kc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ro(Kc.postMessage)),coe=typeof queueMicrotask<"u"?queueMicrotask.bind(Kc):typeof process<"u"&&process.nextTick||yV,be={isArray:$h,isArrayBuffer:dV,isBuffer:Aie,isFormData:kie,isArrayBufferView:Iie,isString:Rie,isNumber:hV,isBoolean:Pie,isObject:nS,isPlainObject:I_,isReadableStream:$ie,isRequest:Bie,isResponse:Vie,isHeaders:Uie,isUndefined:Ag,isDate:Oie,isFile:Die,isBlob:Mie,isRegExp:eoe,isFunction:Ro,isStream:Nie,isURLSearchParams:Fie,isTypedArray:Kie,isFileList:Lie,forEach:ym,merge:DE,extend:Gie,trim:Hie,stripBOM:zie,inherits:Wie,toFlatObject:jie,kindOf:eS,kindOfTest:Wa,endsWith:Xie,toArray:Yie,forEachEntry:Zie,matchAll:qie,isHTMLForm:Jie,hasOwnProperty:WL,hasOwnProp:WL,reduceDescriptors:gV,freezeMethods:toe,toObjectSet:noe,toCamelCase:Qie,noop:roe,toFiniteNumber:ioe,findKey:pV,global:Kc,isContextDefined:vV,ALPHABET:mV,generateString:ooe,isSpecCompliantForm:aoe,toJSONObject:soe,isAsyncFn:loe,isThenable:uoe,setImmediate:yV,asap:coe};function Bt(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)}be.inherits(Bt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:be.toJSONObject(this.config),code:this.code,status:this.status}}});const _V=Bt.prototype,bV={};["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=>{bV[e]={value:e}});Object.defineProperties(Bt,bV);Object.defineProperty(_V,"isAxiosError",{value:!0});Bt.from=(e,t,n,r,i,o)=>{const a=Object.create(_V);return be.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Bt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const foe=null;function ME(e){return be.isPlainObject(e)||be.isArray(e)}function SV(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function XL(e,t,n){return e?e.concat(t).map(function(i,o){return i=SV(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function doe(e){return be.isArray(e)&&!e.some(ME)}const hoe=be.toFlatObject(be,{},null,function(t){return/^is[A-Z]/.test(t)});function rS(e,t,n){if(!be.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,_){return!be.isUndefined(_[m])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(t);if(!be.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(be.isDate(v))return v.toISOString();if(!l&&be.isBlob(v))throw new Bt("Blob is not supported. Use a Buffer instead.");return be.isArrayBuffer(v)||be.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,_){let y=v;if(v&&!_&&typeof v=="object"){if(be.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&doe(v)||(be.isFileList(v)||be.endsWith(m,"[]"))&&(y=be.toArray(v)))return m=SV(m),y.forEach(function(S,w){!(be.isUndefined(S)||S===null)&&t.append(a===!0?XL([m],w,o):a===null?m:m+"[]",u(S))}),!1}return ME(v)?!0:(t.append(XL(_,m,o),u(v)),!1)}const f=[],d=Object.assign(hoe,{defaultVisitor:c,convertValue:u,isVisitable:ME});function h(v,m){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));f.push(v),be.forEach(v,function(y,b){(!(be.isUndefined(y)||y===null)&&i.call(t,y,be.isString(b)?b.trim():b,m,d))===!0&&h(y,m?m.concat(b):[b])}),f.pop()}}if(!be.isObject(e))throw new TypeError("data must be an object");return h(e),t}function YL(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function p2(e,t){this._pairs=[],e&&rS(e,this,t)}const wV=p2.prototype;wV.append=function(t,n){this._pairs.push([t,n])};wV.toString=function(t){const n=t?function(r){return t.call(this,r,YL)}:YL;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function poe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xV(e,t,n){if(!t)return e;const r=n&&n.encode||poe;be.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=be.isURLSearchParams(t)?t.toString():new p2(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class KL{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){be.forEach(this.handlers,function(r){r!==null&&t(r)})}}const CV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},voe=typeof URLSearchParams<"u"?URLSearchParams:p2,goe=typeof FormData<"u"?FormData:null,moe=typeof Blob<"u"?Blob:null,yoe={isBrowser:!0,classes:{URLSearchParams:voe,FormData:goe,Blob:moe},protocols:["http","https","file","blob","url","data"]},v2=typeof window<"u"&&typeof document<"u",LE=typeof navigator=="object"&&navigator||void 0,_oe=v2&&(!LE||["ReactNative","NativeScript","NS"].indexOf(LE.product)<0),boe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Soe=v2&&window.location.href||"http://localhost",woe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:v2,hasStandardBrowserEnv:_oe,hasStandardBrowserWebWorkerEnv:boe,navigator:LE,origin:Soe},Symbol.toStringTag,{value:"Module"})),di={...woe,...yoe};function xoe(e,t){return rS(e,new di.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return di.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Coe(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Toe(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&be.isArray(i)?i.length:a,l?(be.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!be.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=Toe(i[a])),!s)}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};return be.forEachEntry(e,(r,i)=>{t(Coe(r),i,n,0)}),n}return null}function Eoe(e,t,n){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const _m={transitional:CV,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(t);if(o&&be.isHTMLForm(t)&&(t=new FormData(t)),be.isFormData(t))return i?JSON.stringify(TV(t)):t;if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t))return t;if(be.isArrayBufferView(t))return t.buffer;if(be.isURLSearchParams(t))return 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 xoe(t,this.formSerializer).toString();if((s=be.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return rS(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),Eoe(t)):t}],transformResponse:[function(t){const n=this.transitional||_m.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t))return t;if(t&&be.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"?Bt.from(s,Bt.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:di.classes.FormData,Blob:di.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],e=>{_m.headers[e]={}});const Aoe=be.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ioe=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]&&Aoe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ZL=Symbol("internals");function wp(e){return e&&String(e).trim().toLowerCase()}function R_(e){return e===!1||e==null?e:be.isArray(e)?e.map(R_):String(e)}function Roe(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 Poe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jx(e,t,n,r,i){if(be.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!be.isString(t)){if(be.isString(r))return t.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(t)}}function Ooe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Doe(e,t){const n=be.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})})}class no{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=wp(l);if(!c)throw new Error("header name must be a non-empty string");const f=be.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=R_(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(be.isString(t)&&(t=t.trim())&&!Poe(t))a(Ioe(t),n);else if(be.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=wp(t),t){const r=be.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Roe(i);if(be.isFunction(n))return n.call(this,i,r);if(be.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wp(t),t){const r=be.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jx(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=wp(a),a){const s=be.findKey(r,a);s&&(!n||jx(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.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||jx(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=R_(i),delete n[o];return}const s=t?Ooe(o):String(o).trim();s!==o&&delete n[o],n[s]=R_(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&be.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(` `)}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[ZL]=this[ZL]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=wp(a);r[s]||(Doe(i,a),r[s]=!0)}return be.isArray(t)?t.forEach(o):o(t),this}}no.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(no.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});be.freezeMethods(no);function Xx(e,t){const n=this||_m,r=t||n,i=no.from(r.headers);let o=r.data;return be.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function EV(e){return!!(e&&e.__CANCEL__)}function Bh(e,t,n){Bt.call(this,e??"canceled",Bt.ERR_CANCELED,t,n),this.name="CanceledError"}be.inherits(Bh,Bt,{__CANCEL__:!0});function AV(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Bt("Request failed with status code "+n.status,[Bt.ERR_BAD_REQUEST,Bt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Moe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Loe(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,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,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 O1=(e,t,n=3)=>{let r=0;const i=Loe(50,250);return Noe(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)},qL=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},JL=e=>(...t)=>be.asap(()=>e(...t)),koe=di.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,di.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(di.origin),di.navigator&&/(msie|trident)/i.test(di.navigator.userAgent)):()=>!0,Foe=di.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];be.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),be.isString(r)&&a.push("path="+r),be.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 $oe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Boe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function IV(e,t){return e&&!$oe(t)?Boe(e,t):t}const QL=e=>e instanceof no?{...e}:e;function Af(e,t){t=t||{};const n={};function r(u,c,f,d){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:d},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f,d){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function o(u,c){if(!be.isUndefined(c))return r(void 0,c)}function a(u,c){if(be.isUndefined(c)){if(!be.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(QL(u),QL(c),f,!0)};return be.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const RV=e=>{const t=Af({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=no.from(a),t.url=xV(IV(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(n)){if(di.hasStandardBrowserEnv||di.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(di.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(t)),r||r!==!1&&koe(t.url))){const u=i&&o&&Foe.read(o);u&&a.set(i,u)}return t},Voe=typeof XMLHttpRequest<"u",Uoe=Voe&&function(e){return new Promise(function(n,r){const i=RV(e);let o=i.data;const a=no.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,h,v;function m(){h&&h(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let _=new XMLHttpRequest;_.open(i.method.toUpperCase(),i.url,!0),_.timeout=i.timeout;function y(){if(!_)return;const S=no.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:S,config:e,request:_};AV(function(E){n(E),m()},function(E){r(E),m()},C),_=null}"onloadend"in _?_.onloadend=y:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(y)},_.onabort=function(){_&&(r(new Bt("Request aborted",Bt.ECONNABORTED,e,_)),_=null)},_.onerror=function(){r(new Bt("Network Error",Bt.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||CV;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),r(new Bt(w,C.clarifyTimeoutError?Bt.ETIMEDOUT:Bt.ECONNABORTED,e,_)),_=null},o===void 0&&a.setContentType(null),"setRequestHeader"in _&&be.forEach(a.toJSON(),function(w,C){_.setRequestHeader(C,w)}),be.isUndefined(i.withCredentials)||(_.withCredentials=!!i.withCredentials),s&&s!=="json"&&(_.responseType=i.responseType),u&&([d,v]=O1(u,!0),_.addEventListener("progress",d)),l&&_.upload&&([f,h]=O1(l),_.upload.addEventListener("progress",f),_.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=S=>{_&&(r(!S||S.type?new Bh(null,e,_):S),_.abort(),_=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=Moe(i.url);if(b&&di.protocols.indexOf(b)===-1){r(new Bt("Unsupported protocol "+b+":",Bt.ERR_BAD_REQUEST,e));return}_.send(o||null)})},Hoe=(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 Bt?c:new Bh(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new Bt(`timeout ${t} of ms exceeded`,Bt.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=()=>be.asap(s),l}},Goe=function*(e,t){let n=e.byteLength;if(n{const i=zoe(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 d=o+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},iS=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",PV=iS&&typeof ReadableStream=="function",joe=iS&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),OV=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xoe=PV&&OV(()=>{let e=!1;const t=new Request(di.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tN=64*1024,NE=PV&&OV(()=>be.isReadableStream(new Response("").body)),D1={stream:NE&&(e=>e.body)};iS&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!D1[t]&&(D1[t]=be.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Bt(`Response type '${t}' is not supported`,Bt.ERR_NOT_SUPPORT,r)})})})(new Response);const Yoe=async e=>{if(e==null)return 0;if(be.isBlob(e))return e.size;if(be.isSpecCompliantForm(e))return(await new Request(di.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(be.isArrayBufferView(e)||be.isArrayBuffer(e))return e.byteLength;if(be.isURLSearchParams(e)&&(e=e+""),be.isString(e))return(await joe(e)).byteLength},Koe=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n??Yoe(t)},Zoe=iS&&(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:d}=RV(e);u=u?(u+"").toLowerCase():"text";let h=Hoe([i,o&&o.toAbortSignal()],a),v;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let _;try{if(l&&Xoe&&n!=="get"&&n!=="head"&&(_=await Koe(c,r))!==0){let C=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(be.isFormData(r)&&(T=C.headers.get("content-type"))&&c.setContentType(T),C.body){const[E,R]=qL(_,O1(JL(l)));r=eN(C.body,tN,E,R)}}be.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let b=await fetch(v);const S=NE&&(u==="stream"||u==="response");if(NE&&(s||S&&m)){const C={};["status","statusText","headers"].forEach(I=>{C[I]=b[I]});const T=be.toFiniteNumber(b.headers.get("content-length")),[E,R]=s&&qL(T,O1(JL(s),!0))||[];b=new Response(eN(b.body,tN,E,()=>{R&&R(),m&&m()}),C)}u=u||"text";let w=await D1[be.findKey(D1,u)||"text"](b,e);return!S&&m&&m(),await new Promise((C,T)=>{AV(C,T,{data:w,headers:no.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(y){throw m&&m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new Bt("Network Error",Bt.ERR_NETWORK,e,v),{cause:y.cause||y}):Bt.from(y,y&&y.code,e,v)}}),kE={http:foe,xhr:Uoe,fetch:Zoe};be.forEach(kE,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const nN=e=>`- ${e}`,qoe=e=>be.isFunction(e)||e===null||e===!1,DV={getAdapter:e=>{e=be.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`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(nN).join(` `):" "+nN(o[0]):"as no adapter specified";throw new Bt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:kE};function Yx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Bh(null,e)}function rN(e){return Yx(e),e.headers=no.from(e.headers),e.data=Xx.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),DV.getAdapter(e.adapter||_m.adapter)(e).then(function(r){return Yx(e),r.data=Xx.call(e,e.transformResponse,r),r.headers=no.from(r.headers),r},function(r){return EV(r)||(Yx(e),r&&r.response&&(r.response.data=Xx.call(e,e.transformResponse,r.response),r.response.headers=no.from(r.response.headers))),Promise.reject(r)})}const MV="1.7.9",oS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oS[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const iN={};oS.transitional=function(t,n,r){function i(o,a){return"[Axios v"+MV+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new Bt(i(a," has been removed"+(n?" in "+n:"")),Bt.ERR_DEPRECATED);return n&&!iN[a]&&(iN[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}};oS.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Joe(e,t,n){if(typeof e!="object")throw new Bt("options must be an object",Bt.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 Bt("option "+o+" must be "+l,Bt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Bt("Unknown option "+o,Bt.ERR_BAD_OPTION)}}const P_={assertOptions:Joe,validators:oS},Qa=P_.validators;class pf{constructor(t){this.defaults=t,this.interceptors={request:new KL,response:new KL}}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=Af(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&P_.assertOptions(r,{silentJSONParsing:Qa.transitional(Qa.boolean),forcedJSONParsing:Qa.transitional(Qa.boolean),clarifyTimeoutError:Qa.transitional(Qa.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:P_.assertOptions(i,{encode:Qa.function,serialize:Qa.function},!0)),P_.assertOptions(n,{baseUrl:Qa.spelling("baseURL"),withXsrfToken:Qa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&be.merge(o.common,o[n.method]);o&&be.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=no.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,f=0,d;if(!l){const v=[rN.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f{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 Bh(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 g2(function(i){t=i}),cancel:t}}}function Qoe(e){return function(n){return e.apply(null,n)}}function eae(e){return be.isObject(e)&&e.isAxiosError===!0}const FE={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(FE).forEach(([e,t])=>{FE[t]=e});function LV(e){const t=new pf(e),n=fV(pf.prototype.request,t);return be.extend(n,pf.prototype,t,{allOwnKeys:!0}),be.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return LV(Af(e,i))},n}const zt=LV(_m);zt.Axios=pf;zt.CanceledError=Bh;zt.CancelToken=g2;zt.isCancel=EV;zt.VERSION=MV;zt.toFormData=rS;zt.AxiosError=Bt;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=Qoe;zt.isAxiosError=eae;zt.mergeConfig=Af;zt.AxiosHeaders=no;zt.formToJSON=e=>TV(be.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=DV.getAdapter;zt.HttpStatusCode=FE;zt.default=zt;var O_={exports:{}},tae=O_.exports,oN;function nae(){return oN||(oN=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(tae,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(h){s.onopen(h)}),f.addEventListener("close",function(h){s.onclose(h)}),f.addEventListener("connecting",function(h){s.onconnecting(h)}),f.addEventListener("message",function(h){s.onmessage(h)}),f.addEventListener("error",function(h){s.onerror(h)}),this.addEventListener=f.addEventListener.bind(f),this.removeEventListener=f.removeEventListener.bind(f),this.dispatchEvent=f.dispatchEvent.bind(f);function d(h,v){var m=document.createEvent("CustomEvent");return m.initCustomEvent(h,!1,!1,v),m}this.open=function(h){if(l=new WebSocket(s.url,r||[]),h){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else f.dispatchEvent(d("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var v=l,m=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,v.close(),c=!1},s.timeoutInterval);l.onopen=function(_){clearTimeout(m),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var y=d("open");y.isReconnect=h,h=!1,f.dispatchEvent(y)},l.onclose=function(_){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,f.dispatchEvent(d("close"));else{s.readyState=WebSocket.CONNECTING;var y=d("connecting");y.code=_.code,y.reason=_.reason,y.wasClean=_.wasClean,f.dispatchEvent(y),!h&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),f.dispatchEvent(d("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(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,_.data);var y=d("message");y.data=_.data,f.dispatchEvent(y)},l.onerror=function(_){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,_),f.dispatchEvent(d("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(h){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,h),l.send(h);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(h,v){typeof h>"u"&&(h=1e3),u=!0,l&&l.close(h,v)},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})}(O_)),O_.exports}var rae=nae();const iae=rm(rae);zt.interceptors.request.use(e=>{var t;return e.baseURL=Nu(wl.value),e.headers.Authorization="Bearer "+((t=wl.value)==null?void 0:t.password),e});zt.interceptors.response.use(null,e=>(e.status===401&&vi.value?(cV(vi.value),vi.value=null,Ga.push({name:un.setup}),za(()=>{const{showNotification:t}=Fh();t({content:"unauthorizedTip"})})):e.status===404&&(vi.value=null,Ga.push({name:un.setup})),e));const yh=ke(),$E=ke(!1),oae=()=>zt.get("/version"),ws=Le(()=>{var e;return(e=yh.value)==null?void 0:e.includes("sing-box")}),NV=ke("1.57.0");Vt(wl,async e=>{if(e){const{data:t}=await oae();if(yh.value=t.version,ws.value)return;$E.value=await wae(),$E.value&&v_.value&&BV()}},{immediate:!0});const aae=()=>zt.get("/proxies"),sae=(e,t)=>zt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),aN=(e,t,n)=>zt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),sN=(e,t,n)=>zt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),lae=()=>zt.get("/providers/proxies"),kV=e=>zt.put(`/providers/proxies/${encodeURIComponent(e)}`),uae=e=>zt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),cae=()=>zt.get("/rules"),fae=()=>zt.get("/providers/rules"),FV=e=>zt.put(`/providers/rules/${encodeURIComponent(e)}`),aS=e=>zt.delete(`/connections/${e}`),dae=()=>zt.get("/configs"),hae=e=>zt.patch("/configs",e),lN=()=>zt.post("/cache/fakeip/flush"),pae=()=>zt.put("/configs?reload=true",{path:"",payload:""}),$V=()=>zt.post("/upgrade/ui"),BV=()=>zt.post("/upgrade"),vae=()=>zt.post("/restart"),gae=e=>zt.get("/dns/query",{params:e}),sS=(e,t)=>{const n=wl.value,r=new URL(`${Nu(n).replace("http","ws")}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([l,u])=>{r.searchParams.append(l,u)});const i=ke(),o=new iae(r.toString()),a=()=>{o.close()},s=({data:l})=>{i.value=JSON.parse(l)};return o.onmessage=e==="logs"?s:$r.debounce(s,100),{data:i,close:a}},mae=()=>sS("connections"),yae=(e={})=>sS("logs",e),_ae=()=>sS("memory"),bae=()=>sS("traffic"),uN=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${Nu(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},Sae=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${NV.value}`},cN=async(e,t)=>{const n=await fetch(`https://api.github.com/repos/MetaCubeX/mihomo${e}`),{assets:r}=await n.json();return!r.some(({name:o})=>o.includes(t))},wae=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(yh.value);if(!e){const r=await fetch("https://api.github.com/repos/MetaCubeX/mihomo/releases/latest"),{tag_name:i}=await r.json();return i&&!i.endsWith(yh.value)}const t=e[1],n=e[2];return t==="meta"?await cN("/releases/latest",n):t==="alpha"?await cN("/releases/tags/Prerelease-Alpha",n):!1},VV=async(e="")=>await(await fetch("https://api.ip.sb/geoip"+(e?`/${e}`:""))).json(),xae=async()=>await(await fetch("https://myip.ipip.net/json")).json(),bm=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)}),Cae=()=>bm("https://www.cloudflare.com/favicon.ico"),Tae=()=>bm("https://yt3.ggpht.com/favicon.ico"),Eae=()=>bm("https://github.githubassets.com/favicon.ico"),Aae=()=>bm("https://openai.com/favicon.ico"),Iae=()=>bm("https://apps.bdimg.com/favicon.ico"),ds=ke([]),Nv=ke([]),BE=ke(0),VE=ke(0);let Ky;const Rae=()=>{Ky==null||Ky(),ds.value=[],Nv.value=[],BE.value=0,VE.value=0;const e=mae(),t=Vt(e.data,n=>{var r;n&&(BE.value=n.downloadTotal,VE.value=n.uploadTotal,!N_.value&&(Nv.value=[...Nv.value,...$r.differenceWith(ds.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),ds.value=((r=n.connections)==null?void 0:r.map(i=>{const o=ds.value.find(a=>a.id===i.id);return(i.metadata.destinationPort==="443"||i.metadata.sniffHost)&&i.metadata.network==="udp"&&(i.metadata.network="quic"),o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});Ky=()=>{t(),e.close()}},kv=It("config/quick-filter-regex","direct|dns-out"),D_=It("config/quick-filter-enabled",!1),kc=ke(el.ACTIVE),Pae=Le(()=>L_.value===Wc.DESC),fN={[ji.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[ji.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[ji.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[ji.DOWNLOAD]:(e,t)=>e.download-t.download,[ji.DOWNLOAD_SPEED]:(e,t)=>e.downloadSpeed-t.downloadSpeed,[ji.UPLOAD]:(e,t)=>e.upload-t.upload,[ji.UPLOAD_SPEED]:(e,t)=>e.uploadSpeed-t.uploadSpeed,[ji.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[ji.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[ji.CONNECT_TIME]:(e,t)=>Oo(e.start).valueOf()-Oo(t.start).valueOf()},M_=It("config/connection-sort-type",ji.HOST),L_=It("config/connection-sort-direction",Wc.ASC),Fv=ke(""),qs=ke(null),N_=ke(!1),UV=Le(()=>kc.value===el.ACTIVE?ds.value:Nv.value),_h=Le(()=>{let e=null;return D_.value&&kv.value&&(e=new RegExp(kv.value,"i")),UV.value.filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||qs.value!==null&&t.metadata.sourceIP!==qs.value?!1:Fv.value?[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.sniffHost,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload].some(n=>n==null?void 0:n.includes(Fv.value)):!0).sort((t,n)=>{Pae.value&&([t,n]=[n,t]);const r=Xc.value?fN[M_.value](t,n):fN[ji.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Zc=60,vf=new Array(Zc).fill(0).map((e,t)=>({name:t,value:e})),HV=ke(0),iv=ke([...vf]),k_=ke([...vf]),GV=ke(0),zV=ke(0),ov=ke([...vf]),av=ke([...vf]);let Zy;const Oae=()=>{Zy==null||Zy(),ov.value=[...vf],av.value=[...vf],iv.value=[...vf];const{data:e,close:t}=_ae(),n=Vt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();HV.value=a.inuse,iv.value.push({value:a.inuse,name:s}),k_.value.push({value:ds.value.length,name:s}),iv.value=iv.value.slice(-1*Zc),k_.value=k_.value.slice(-1*Zc)}),{data:r,close:i}=bae(),o=Vt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();GV.value=a.down,zV.value=a.up,ov.value.push({value:a.down,name:s}),av.value.push({value:a.up,name:s}),ov.value=ov.value.slice(-1*Zc),av.value=av.value.slice(-1*Zc)});Zy=()=>{t(),i(),n(),o()}};class Dae{constructor(t){_x(this,"value");_x(this,"next");this.value=t}}var Jo,nf,rf;class Mae{constructor(){Dy(this,Jo);Dy(this,nf);Dy(this,rf);this.clear()}enqueue(t){const n=new Dae(t);qa(this,Jo)?(qa(this,nf).next=n,Vs(this,nf,n)):(Vs(this,Jo,n),Vs(this,nf,n)),bx(this,rf)._++}dequeue(){const t=qa(this,Jo);if(t)return Vs(this,Jo,qa(this,Jo).next),bx(this,rf)._--,t.value}peek(){if(qa(this,Jo))return qa(this,Jo).value}clear(){Vs(this,Jo,void 0),Vs(this,nf,void 0),Vs(this,rf,0)}get size(){return qa(this,rf)}*[Symbol.iterator](){let t=qa(this,Jo);for(;t;)yield t.value,t=t.next}}Jo=new WeakMap,nf=new WeakMap,rf=new WeakMap;function Lae(e){dN(e);const t=new Mae;let n=0;const r=()=>{n0&&(t.dequeue()(),n++)},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)),(async()=>(await Promise.resolve(),nnew 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){dN(l),e=l,queueMicrotask(()=>{for(;n0;)r()})}}}),s}function dN(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 Gc="GLOBAL",UE=ke([]),Or=ke({}),bh=It("config/ipv6-map",{}),Ig=ke([]),m2=e=>{if(!e)return hl.value;const t=Or.value[e];return qd.value&&t.testUrl||hl.value},lS=(e,t)=>{var r,i;if(qd.value&&!ws.value){const o=Or.value[e];return pN((i=(r=o==null?void 0:o.extra)==null?void 0:r[m2(t)])==null?void 0:i.history)}const n=Or.value[Rg(e)];return pN(n==null?void 0:n.history)},Nae=e=>bh.value[Rg(e)],Ha=async()=>{const{data:e}=await aae(),{data:t}=await lae(),n=e.proxies[Gc].all??[];Or.value=e.proxies,UE.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==Gc}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),Object.entries(e.proxies).map(([r,i])=>{hf.value&&Vae(i)&&(bh.value[r]=!0)}),Ig.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},hN=async(e,t)=>{await sae(e,t),Or.value[e].now=t,S_.value&&ds.value.filter(n=>n.chains.includes(e)).forEach(n=>aS(n.id)),Ha()},WV=async(e,t,n)=>{const r=Rg(e);if(hf.value)try{const{data:i}=await aN(r,n2,2e3);bh.value[r]=i.delay>Ji}catch{bh.value[r]=!1}await aN(qd.value?e:r,t,n)},kae=async(e,t=hl.value,n=Eu.value)=>{await WV(e,t,n),await Ha()},Fae=$r.debounce(Ha,800),jV=async(e,t=hl.value,n=Eu.value)=>{await WV(e,t,n),await Fae()},XV=Lae(5),$ae=async e=>{const t=Or.value[e],n=t.all??[],r=m2(e);if([xo.Selector,xo.LoadBalance].includes(t.type.toLowerCase())){let o=0;return await Promise.all(n.map(a=>XV(async()=>{await jV(a,r,Math.min(3e3,Eu.value)),o++,YV(o,n.length)})))}const i=Math.max(5e3,Eu.value);if(hf.value)try{const{data:o}=await sN(e,n2,i);n==null||n.forEach(a=>{bh.value[Rg(a)]=o[a]>Ji})}catch{n==null||n.forEach(o=>{bh.value[Rg(o)]=!1})}await sN(e,r,i),await Ha()},Bae=async()=>{const e=Object.keys(Or.value).filter(n=>!HE(n));let t=0;return await Promise.all(e.map(n=>XV(async()=>{await jV(n,hl.value,Math.min(3e3,Eu.value)),t++,YV(t,e.length)})))},pN=e=>{var t;return((t=$r.last(e))==null?void 0:t.delay)??Ji},Vae=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[n2])==null?void 0:r.history;return(((i=$r.last(t))==null?void 0:i.delay)??Ji)>Ji},Rg=e=>{let t=Or.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Or.value[t.now];if(!n)return t.name;t=n}return t.name},Uae=Le(()=>$r.compact(Object.values(Or.value).map(e=>e.icon)));Vt(Uae,async e=>{const t=await nne();$r.difference(t,e).forEach(n=>{rne(n)})});const{showNotification:Hae}=Fh(),YV=(e,t)=>{Hae({content:"testFinishedTip",params:{number:`${e}/${t}`},type:e===t?"alert-success":"alert-warning"})},Gae=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],zae=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],Wae=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],jae=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],vN=(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};function Xae(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);t={bits:!1,binary:!1,space:!0,...t};const n=t.bits?t.binary?jae:Wae:t.binary?zae:Gae,r=t.space?" ":"";if(t.signed&&e===0)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=vN(e,t.locale,a);return o+c+r+n[0]}const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1);e/=(t.binary?1024:1e3)**s,a||(e=e.toPrecision(3));const l=vN(Number(e),t.locale,a),u=n[s];return o+l+r+u}const Gn=(e,t)=>Xae(e,{binary:!1,...t}),uS=e=>Oo(e).locale(gu.value).fromNow(),HE=e=>{const t=Or.value[e];return t?[xo.Dns,xo.Compatible,xo.Direct,xo.Reject,xo.RejectDrop,xo.Pass,xo.Fallback,xo.URLTest,xo.LoadBalance,xo.Selector].includes(t.type.toLowerCase()):!1},KV=(e,t)=>{const n=new Map,r=i=>{if(HE(i))return-1;const o=n.get(i);return o===0?1/0:o};switch(e=[...e],e.forEach(i=>{n.set(i,lS(i,t))}),SE.value&&(e=e.filter(i=>HE(i)||n.get(i)>0)),bE.value){case du.DEFAULT:return e;case du.NAME_ASC:return e.sort((i,o)=>i.localeCompare(o));case du.NAME_DESC:return e.sort((i,o)=>o.localeCompare(i));case du.LATENCY_ASC:return e.sort((i,o)=>r(i)-r(o));case du.LATENCY_DESC:return e.sort((i,o)=>r(o)-r(i))}},M1=e=>{if(e===null)return"";if(e==="")return"Inner";const t=e.includes(":");for(const n in To.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return To.value[n]}else if(e===n||t&&e.endsWith(n))return To.value[n];return e},ZV=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",qV=e=>e.metadata.remoteDestination||e.metadata.destinationIP||e.metadata.host,JV=e=>`${e.metadata.type} | ${e.metadata.network}`,QV=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name
${e.seriesName} (${Oo(e.data.name).format("HH:mm:ss")}): ${Gn(e.data.value,{binary:r})}${n} `},gN=()=>{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)},L1=()=>{const e=document.createElement("input");e.type="file",e.accept=".json",e.onchange=async()=>{var r;const t=(r=e.files)==null?void 0:r[0];if(!t)return;const n=new FileReader;n.onload=async()=>{const i=JSON.parse(n.result);for(const o in i)localStorage.setItem(o,i[o]);location.reload()},n.readAsText(t)},e.click()},Nu=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,hu=e=>e===Ji?"":eObject.values(un).filter(e=>![un.setup,!Md.value&&un.overview].includes(e))),Yae={class:"modal-box relative overflow-hidden p-0"},Kae={method:"dialog"},Zae={class:"btn btn-circle btn-ghost btn-sm absolute right-0 top-0 outline-none"},qae={class:"max-h-[90vh] overflow-y-auto p-4 max-md:max-h-[70vh]"},y2=it({__name:"DialogWrapper",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=ke(),n=M4(e,"modelValue");return Vt(n,r=>{var i,o;r?(i=t.value)==null||i.showModal():(o=t.value)==null||o.close()}),(r,i)=>(X(),te("dialog",{ref_key:"modalRef",ref:t,class:"modal",onClose:i[0]||(i[0]=o=>n.value=!1),onTouchstart:i[1]||(i[1]=ur(()=>{},["stop"])),onTouchmove:i[2]||(i[2]=ur(()=>{},["stop"])),onTouchend:i[3]||(i[3]=ur(()=>{},["stop"]))},[L("div",Yae,[L("form",Kae,[L("button",Zae,[se(N(pm),{class:"h-4 w-4"})])]),L("div",qae,[cf(r.$slots,"default")])]),i[4]||(i[4]=L("form",{method:"dialog",class:"modal-backdrop"},[L("button",null,"close")],-1))],544))}});function cd(e,t,n){let r=n.initialDeps??[],i;return()=>{var o,a,s,l;let u;n.key&&((o=n.debug)!=null&&o.call(n))&&(u=Date.now());const c=e();if(!(c.length!==r.length||c.some((h,v)=>r[v]!==h)))return i;r=c;let d;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(d=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const h=Math.round((Date.now()-u)*100)/100,v=Math.round((Date.now()-d)*100)/100,m=v/16,_=(y,b)=>{for(y=String(y);y.lengthMath.abs(e-t)<1,Qae=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},ese=e=>e,tse=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},nse=(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(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const s=a[0];if(s!=null&&s.borderBoxSize){const l=s.borderBoxSize[0];if(l){i({width:l.inlineSize,height:l.blockSize});return}}i(n.getBoundingClientRect())});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},mN={passive:!0},rse=typeof window>"u"?!0:"onscrollend"in window,ise=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&rse?()=>{}:Qae(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:f}=e.options;i=c?n.scrollLeft*(f&&-1||1):n.scrollTop,o(),t(i,u)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,mN),n.addEventListener("scrollend",l,mN),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},ose=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},ase=(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 sse{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,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=>{this._measureElement(o.target,o)})}));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:ese,rangeExtractor:tse,onChange:()=>{},measureElement:ose,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=cd(()=>(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()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.enda.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=cd(()=>[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=cd(()=>[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;cthis.options.debug}),this.calculateRange=cd(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?lse({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=cd(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,i,o)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:i,count:o}),{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{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=cd(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;othis.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return Kx(r[eU(0,r.length-1,i=>Kx(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&n>=o+i&&(r="end"),r==="end"&&(n-=i);const a=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[a]:this.scrollElement[a]:0)-i;return Math.max(Math.min(l,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=i.start-this.options.scrollPaddingStart+(i.size-o)/2;switch(r){case"center":return[this.getOffsetForAlignment(s,r),r];case"end":return[this.getOffsetForAlignment(i.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(i.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),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}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(n,r);if(!o)return;const[a,s]=o;this._scrollToOffset(a,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=Kx(this.getOffsetForIndex(n,s));Jae(u,this.getScrollOffset())||this.scrollToIndex(n,{align:s,behavior:i})}else this.scrollToIndex(n,{align:s,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),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;return r.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(o=>o.end)),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 eU=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or)t=i-1;else return i}return e>0?e-1:0};function lse({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=eU(0,r,s=>e[s].start,n);let a=o;for(;aN(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Vt(()=>N(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;QT(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),QT(n)},{immediate:!0}),EI(r),n}function tU(e){return use(Le(()=>({observeElementRect:nse,observeElementOffset:ise,scrollToFn:ase,...N(e)})))}const cse=["data-index"],_2=it({__name:"VirtualScroller",props:{data:{default:()=>[]},size:{default:64}},setup(e){const t=ke(null),n=e,r=Le(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>n.size,overscan:36})),i=tU(r),o=Le(()=>i.value.getVirtualItems()),a=Le(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return X(),te("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto"},[L("div",{style:Ir({height:`${a.value}px`}),class:"relative w-full"},[L("div",{class:"absolute left-0 top-0 w-full",style:Ir({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(X(!0),te(Ye,null,ln(o.value,f=>(X(),te("div",{key:f.key.toString(),"data-index":f.index,ref_for:!0,ref:s},[cf(l.$slots,"default",{item:l.data[f.index],index:f.index})],8,cse))),128))],4)],4)],512)}}}),Zx=ke(null),yN=ke(!1),b2=()=>({infoConn:Zx,connectionDetailModalShow:yN,handlerInfo:async t=>{Zx.value=null,await za(),Zx.value=t,yN.value=!0}});/*! @license DOMPurify 3.2.3 | (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.3/LICENSE */const{entries:nU,setPrototypeOf:_N,isFrozen:fse,getPrototypeOf:dse,getOwnPropertyDescriptor:hse}=Object;let{freeze:Li,seal:fa,create:rU}=Object,{apply:GE,construct:zE}=typeof Reflect<"u"&&Reflect;Li||(Li=function(t){return t});fa||(fa=function(t){return t});GE||(GE=function(t,n,r){return t.apply(n,r)});zE||(zE=function(t,n){return new t(...n)});const qy=Mo(Array.prototype.forEach),bN=Mo(Array.prototype.pop),xp=Mo(Array.prototype.push),F_=Mo(String.prototype.toLowerCase),qx=Mo(String.prototype.toString),SN=Mo(String.prototype.match),Cp=Mo(String.prototype.replace),pse=Mo(String.prototype.indexOf),vse=Mo(String.prototype.trim),Ia=Mo(Object.prototype.hasOwnProperty),Si=Mo(RegExp.prototype.test),Tp=gse(TypeError);function Mo(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:F_;_N&&_N(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(fse(t)||(t[r]=o),i=o)}e[i]=!0}return e}function mse(e){for(let t=0;t/gm),wse=fa(/\$\{[\w\W]*}/gm),xse=fa(/^data-[\-\w.\u00B7-\uFFFF]+$/),Cse=fa(/^aria-[\-\w]+$/),iU=fa(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tse=fa(/^(?:\w+script|data):/i),Ese=fa(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oU=fa(/^html$/i),Ase=fa(/^[a-z][.\w]*(-[.\w]+)+$/i);var EN=Object.freeze({__proto__:null,ARIA_ATTR:Cse,ATTR_WHITESPACE:Ese,CUSTOM_ELEMENT:Ase,DATA_ATTR:xse,DOCTYPE_NAME:oU,ERB_EXPR:Sse,IS_ALLOWED_URI:iU,IS_SCRIPT_OR_DATA:Tse,MUSTACHE_EXPR:bse,TMPLIT_EXPR:wse});const Ap={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ise=function(){return typeof window>"u"?null:window},Rse=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}},AN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function aU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ise();const t=vt=>aU(vt);if(t.version="3.2.3",t.removed=[],!e||!e.document||e.document.nodeType!==Ap.document)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:d,trustedTypes:h}=e,v=l.prototype,m=Ep(v,"cloneNode"),_=Ep(v,"remove"),y=Ep(v,"nextSibling"),b=Ep(v,"childNodes"),S=Ep(v,"parentNode");if(typeof a=="function"){const vt=n.createElement("template");vt.content&&vt.content.ownerDocument&&(n=vt.content.ownerDocument)}let w,C="";const{implementation:T,createNodeIterator:E,createDocumentFragment:R,getElementsByTagName:I}=n,{importNode:O}=r;let P=AN();t.isSupported=typeof nU=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:F,TMPLIT_EXPR:$,DATA_ATTR:z,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:le}=EN;let{IS_ALLOWED_URI:me}=EN,ge=null;const De=qt({},[...wN,...Jx,...Qx,...eC,...xN]);let Fe=null;const ze=qt({},[...CN,...tC,...TN,...Jy]);let Me=Object.seal(rU(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}})),je=null,fe=null,Ee=!0,Se=!0,Ce=!1,Oe=!0,Be=!1,H=!0,G=!1,ue=!1,we=!1,ve=!1,U=!1,W=!1,q=!0,de=!1;const _e="user-content-";let Pe=!0,Z=!1,he={},Ve=null;const Ke=qt({},["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 pt=null;const ee=qt({},["audio","video","img","source","image","track"]);let oe=null;const pe=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Te="http://www.w3.org/1998/Math/MathML",He="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml";let Ae=re,$e=!1,et=null;const Ge=qt({},[Te,He,re],qx);let We=qt({},["mi","mo","mn","ms","mtext"]),tt=qt({},["annotation-xml"]);const Pt=qt({},["title","style","font","a","script"]);let Dt=null;const Ln=["application/xhtml+xml","text/html"],ga="text/html";let Rn=null,yr=null;const Wf=n.createElement("form"),Pl=function(ne){return ne instanceof RegExp||ne instanceof Function},Xa=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yr&&yr===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=Fc(ne),Dt=Ln.indexOf(ne.PARSER_MEDIA_TYPE)===-1?ga:ne.PARSER_MEDIA_TYPE,Rn=Dt==="application/xhtml+xml"?qx:F_,ge=Ia(ne,"ALLOWED_TAGS")?qt({},ne.ALLOWED_TAGS,Rn):De,Fe=Ia(ne,"ALLOWED_ATTR")?qt({},ne.ALLOWED_ATTR,Rn):ze,et=Ia(ne,"ALLOWED_NAMESPACES")?qt({},ne.ALLOWED_NAMESPACES,qx):Ge,oe=Ia(ne,"ADD_URI_SAFE_ATTR")?qt(Fc(pe),ne.ADD_URI_SAFE_ATTR,Rn):pe,pt=Ia(ne,"ADD_DATA_URI_TAGS")?qt(Fc(ee),ne.ADD_DATA_URI_TAGS,Rn):ee,Ve=Ia(ne,"FORBID_CONTENTS")?qt({},ne.FORBID_CONTENTS,Rn):Ke,je=Ia(ne,"FORBID_TAGS")?qt({},ne.FORBID_TAGS,Rn):{},fe=Ia(ne,"FORBID_ATTR")?qt({},ne.FORBID_ATTR,Rn):{},he=Ia(ne,"USE_PROFILES")?ne.USE_PROFILES:!1,Ee=ne.ALLOW_ARIA_ATTR!==!1,Se=ne.ALLOW_DATA_ATTR!==!1,Ce=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=ne.SAFE_FOR_TEMPLATES||!1,H=ne.SAFE_FOR_XML!==!1,G=ne.WHOLE_DOCUMENT||!1,ve=ne.RETURN_DOM||!1,U=ne.RETURN_DOM_FRAGMENT||!1,W=ne.RETURN_TRUSTED_TYPE||!1,we=ne.FORCE_BODY||!1,q=ne.SANITIZE_DOM!==!1,de=ne.SANITIZE_NAMED_PROPS||!1,Pe=ne.KEEP_CONTENT!==!1,Z=ne.IN_PLACE||!1,me=ne.ALLOWED_URI_REGEXP||iU,Ae=ne.NAMESPACE||re,We=ne.MATHML_TEXT_INTEGRATION_POINTS||We,tt=ne.HTML_INTEGRATION_POINTS||tt,Me=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&Pl(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&Pl(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Me.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(Se=!1),U&&(ve=!0),he&&(ge=qt({},xN),Fe=[],he.html===!0&&(qt(ge,wN),qt(Fe,CN)),he.svg===!0&&(qt(ge,Jx),qt(Fe,tC),qt(Fe,Jy)),he.svgFilters===!0&&(qt(ge,Qx),qt(Fe,tC),qt(Fe,Jy)),he.mathMl===!0&&(qt(ge,eC),qt(Fe,TN),qt(Fe,Jy))),ne.ADD_TAGS&&(ge===De&&(ge=Fc(ge)),qt(ge,ne.ADD_TAGS,Rn)),ne.ADD_ATTR&&(Fe===ze&&(Fe=Fc(Fe)),qt(Fe,ne.ADD_ATTR,Rn)),ne.ADD_URI_SAFE_ATTR&&qt(oe,ne.ADD_URI_SAFE_ATTR,Rn),ne.FORBID_CONTENTS&&(Ve===Ke&&(Ve=Fc(Ve)),qt(Ve,ne.FORBID_CONTENTS,Rn)),Pe&&(ge["#text"]=!0),G&&qt(ge,["html","head","body"]),ge.table&&(qt(ge,["tbody"]),delete je.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw Tp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Tp('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ne.TRUSTED_TYPES_POLICY,C=w.createHTML("")}else w===void 0&&(w=Rse(h,i)),w!==null&&typeof C=="string"&&(C=w.createHTML(""));Li&&Li(ne),yr=ne}},Bm=qt({},[...Jx,...Qx,...yse]),jf=qt({},[...eC,..._se]),sw=function(ne){let Ue=S(ne);(!Ue||!Ue.tagName)&&(Ue={namespaceURI:Ae,tagName:"template"});const ut=F_(ne.tagName),Sn=F_(Ue.tagName);return et[ne.namespaceURI]?ne.namespaceURI===He?Ue.namespaceURI===re?ut==="svg":Ue.namespaceURI===Te?ut==="svg"&&(Sn==="annotation-xml"||We[Sn]):!!Bm[ut]:ne.namespaceURI===Te?Ue.namespaceURI===re?ut==="math":Ue.namespaceURI===He?ut==="math"&&tt[Sn]:!!jf[ut]:ne.namespaceURI===re?Ue.namespaceURI===He&&!tt[Sn]||Ue.namespaceURI===Te&&!We[Sn]?!1:!jf[ut]&&(Pt[ut]||!Bm[ut]):!!(Dt==="application/xhtml+xml"&&et[ne.namespaceURI]):!1},Ni=function(ne){xp(t.removed,{element:ne});try{S(ne).removeChild(ne)}catch{_(ne)}},Xf=function(ne,Ue){try{xp(t.removed,{attribute:Ue.getAttributeNode(ne),from:Ue})}catch{xp(t.removed,{attribute:null,from:Ue})}if(Ue.removeAttribute(ne),ne==="is")if(ve||U)try{Ni(Ue)}catch{}else try{Ue.setAttribute(ne,"")}catch{}},Vm=function(ne){let Ue=null,ut=null;if(we)ne=""+ne;else{const tr=SN(ne,/^[\r\n\t ]+/);ut=tr&&tr[0]}Dt==="application/xhtml+xml"&&Ae===re&&(ne=''+ne+"");const Sn=w?w.createHTML(ne):ne;if(Ae===re)try{Ue=new d().parseFromString(Sn,Dt)}catch{}if(!Ue||!Ue.documentElement){Ue=T.createDocument(Ae,"template",null);try{Ue.documentElement.innerHTML=$e?C:Sn}catch{}}const Lr=Ue.body||Ue.documentElement;return ne&&ut&&Lr.insertBefore(n.createTextNode(ut),Lr.childNodes[0]||null),Ae===re?I.call(Ue,G?"html":"body")[0]:G?Ue.documentElement:Lr},Um=function(ne){return E.call(ne.ownerDocument||ne,ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Zh=function(ne){return ne instanceof f&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof c)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},Hm=function(ne){return typeof s=="function"&&ne instanceof s};function ma(vt,ne,Ue){qy(vt,ut=>{ut.call(t,ne,Ue,yr)})}const Gm=function(ne){let Ue=null;if(ma(P.beforeSanitizeElements,ne,null),Zh(ne))return Ni(ne),!0;const ut=Rn(ne.nodeName);if(ma(P.uponSanitizeElement,ne,{tagName:ut,allowedTags:ge}),ne.hasChildNodes()&&!Hm(ne.firstElementChild)&&Si(/<[/\w]/g,ne.innerHTML)&&Si(/<[/\w]/g,ne.textContent)||ne.nodeType===Ap.progressingInstruction||H&&ne.nodeType===Ap.comment&&Si(/<[/\w]/g,ne.data))return Ni(ne),!0;if(!ge[ut]||je[ut]){if(!je[ut]&&qh(ut)&&(Me.tagNameCheck instanceof RegExp&&Si(Me.tagNameCheck,ut)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(ut)))return!1;if(Pe&&!Ve[ut]){const Sn=S(ne)||ne.parentNode,Lr=b(ne)||ne.childNodes;if(Lr&&Sn){const tr=Lr.length;for(let qr=tr-1;qr>=0;--qr){const ko=m(Lr[qr],!0);ko.__removalCount=(ne.__removalCount||0)+1,Sn.insertBefore(ko,y(ne))}}}return Ni(ne),!0}return ne instanceof l&&!sw(ne)||(ut==="noscript"||ut==="noembed"||ut==="noframes")&&Si(/<\/no(script|embed|frames)/i,ne.innerHTML)?(Ni(ne),!0):(Be&&ne.nodeType===Ap.text&&(Ue=ne.textContent,qy([M,F,$],Sn=>{Ue=Cp(Ue,Sn," ")}),ne.textContent!==Ue&&(xp(t.removed,{element:ne.cloneNode()}),ne.textContent=Ue)),ma(P.afterSanitizeElements,ne,null),!1)},zm=function(ne,Ue,ut){if(q&&(Ue==="id"||Ue==="name")&&(ut in n||ut in Wf))return!1;if(!(Se&&!fe[Ue]&&Si(z,Ue))){if(!(Ee&&Si(B,Ue))){if(!Fe[Ue]||fe[Ue]){if(!(qh(ne)&&(Me.tagNameCheck instanceof RegExp&&Si(Me.tagNameCheck,ne)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(ne))&&(Me.attributeNameCheck instanceof RegExp&&Si(Me.attributeNameCheck,Ue)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(Ue))||Ue==="is"&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&Si(Me.tagNameCheck,ut)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(ut))))return!1}else if(!oe[Ue]){if(!Si(me,Cp(ut,j,""))){if(!((Ue==="src"||Ue==="xlink:href"||Ue==="href")&&ne!=="script"&&pse(ut,"data:")===0&&pt[ne])){if(!(Ce&&!Si(K,Cp(ut,j,"")))){if(ut)return!1}}}}}}return!0},qh=function(ne){return ne!=="annotation-xml"&&SN(ne,le)},Wm=function(ne){ma(P.beforeSanitizeAttributes,ne,null);const{attributes:Ue}=ne;if(!Ue||Zh(ne))return;const ut={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Fe,forceKeepAttr:void 0};let Sn=Ue.length;for(;Sn--;){const Lr=Ue[Sn],{name:tr,namespaceURI:qr,value:ko}=Lr,Ju=Rn(tr);let Nr=tr==="value"?ko:vse(ko);if(ut.attrName=Ju,ut.attrValue=Nr,ut.keepAttr=!0,ut.forceKeepAttr=void 0,ma(P.uponSanitizeAttribute,ne,ut),Nr=ut.attrValue,de&&(Ju==="id"||Ju==="name")&&(Xf(tr,ne),Nr=_e+Nr),H&&Si(/((--!?|])>)|<\/(style|title)/i,Nr)){Xf(tr,ne);continue}if(ut.forceKeepAttr||(Xf(tr,ne),!ut.keepAttr))continue;if(!Oe&&Si(/\/>/i,Nr)){Xf(tr,ne);continue}Be&&qy([M,F,$],Qh=>{Nr=Cp(Nr,Qh," ")});const Jh=Rn(ne.nodeName);if(zm(Jh,Ju,Nr)){if(w&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!qr)switch(h.getAttributeType(Jh,Ju)){case"TrustedHTML":{Nr=w.createHTML(Nr);break}case"TrustedScriptURL":{Nr=w.createScriptURL(Nr);break}}try{qr?ne.setAttributeNS(qr,tr,Nr):ne.setAttribute(tr,Nr),Zh(ne)?Ni(ne):bN(t.removed)}catch{}}}ma(P.afterSanitizeAttributes,ne,null)},lw=function vt(ne){let Ue=null;const ut=Um(ne);for(ma(P.beforeSanitizeShadowDOM,ne,null);Ue=ut.nextNode();)ma(P.uponSanitizeShadowNode,Ue,null),Gm(Ue),Wm(Ue),Ue.content instanceof o&&vt(Ue.content);ma(P.afterSanitizeShadowDOM,ne,null)};return t.sanitize=function(vt){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue=null,ut=null,Sn=null,Lr=null;if($e=!vt,$e&&(vt=""),typeof vt!="string"&&!Hm(vt))if(typeof vt.toString=="function"){if(vt=vt.toString(),typeof vt!="string")throw Tp("dirty is not a string, aborting")}else throw Tp("toString is not a function");if(!t.isSupported)return vt;if(ue||Xa(ne),t.removed=[],typeof vt=="string"&&(Z=!1),Z){if(vt.nodeName){const ko=Rn(vt.nodeName);if(!ge[ko]||je[ko])throw Tp("root node is forbidden and cannot be sanitized in-place")}}else if(vt instanceof s)Ue=Vm(""),ut=Ue.ownerDocument.importNode(vt,!0),ut.nodeType===Ap.element&&ut.nodeName==="BODY"||ut.nodeName==="HTML"?Ue=ut:Ue.appendChild(ut);else{if(!ve&&!Be&&!G&&vt.indexOf("<")===-1)return w&&W?w.createHTML(vt):vt;if(Ue=Vm(vt),!Ue)return ve?null:W?C:""}Ue&&we&&Ni(Ue.firstChild);const tr=Um(Z?vt:Ue);for(;Sn=tr.nextNode();)Gm(Sn),Wm(Sn),Sn.content instanceof o&&lw(Sn.content);if(Z)return vt;if(ve){if(U)for(Lr=R.call(Ue.ownerDocument);Ue.firstChild;)Lr.appendChild(Ue.firstChild);else Lr=Ue;return(Fe.shadowroot||Fe.shadowrootmode)&&(Lr=O.call(r,Lr,!0)),Lr}let qr=G?Ue.outerHTML:Ue.innerHTML;return G&&ge["!doctype"]&&Ue.ownerDocument&&Ue.ownerDocument.doctype&&Ue.ownerDocument.doctype.name&&Si(oU,Ue.ownerDocument.doctype.name)&&(qr=" `+qr),Be&&qy([M,F,$],ko=>{qr=Cp(qr,ko," ")}),w&&W?w.createHTML(qr):qr},t.setConfig=function(){let vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xa(vt),ue=!0},t.clearConfig=function(){yr=null,ue=!1},t.isValidAttribute=function(vt,ne,Ue){yr||Xa({});const ut=Rn(vt),Sn=Rn(ne);return zm(ut,Sn,Ue)},t.addHook=function(vt,ne){typeof ne=="function"&&xp(P[vt],ne)},t.removeHook=function(vt){return bN(P[vt])},t.removeHooks=function(vt){P[vt]=[]},t.removeAllHooks=function(){P=AN()},t}var Pse=aU();const Ose=["innerHTML"],Dse=["src"],IN="data:image/svg+xml,",sU=it({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Le(()=>({width:(t.size==="small"?Mv.value:Mv.value+4)+"px",marginRight:x_.value-4+"px"})),r=Le(()=>t.icon.startsWith(IN)),i=Le(()=>{if(r.value)return Pse.sanitize(t.icon.replace(IN,""))}),o=ke(),a=async(l,u)=>{const f=await(await fetch(u)).blob(),d=new FileReader;d.onload=async()=>{const h=d.result;await Qte(l,h),o.value=h},d.readAsDataURL(f)},s=async()=>{const l=t.icon;try{const u=await ene(l);u?o.value=u:(o.value=t.icon,await a(l,l))}catch{o.value=t.icon}};return fo(()=>{r.value?o.value=t.icon:s()}),(l,u)=>r.value?(X(),te("div",{key:0,class:ot(["inline-block",l.fill||"fill-primary"]),style:Ir(n.value),innerHTML:i.value},null,14,Ose)):(X(),te("img",{key:1,style:Ir(n.value),src:o.value},null,12,Dse))}}),Mse={class:"flex items-center gap-1 break-all"},If=it({__name:"ProxyName",props:{name:{},size:{default:"small"}},setup(e){const t=e,n=Le(()=>{var r;return(r=Or.value[t.name])==null?void 0:r.icon});return(r,i)=>(X(),te("div",Mse,[n.value?(X(),Tt(sU,{key:0,icon:n.value,size:r.size,class:ot(r.size==="large"&&"-mt-[2px]")},null,8,["icon","size","class"])):yt("",!0),L("span",{class:ot(r.size==="large"?"text-lg font-medium":"text-sm")},ie(r.name),3)]))}}),Lse=it({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=b2();return()=>{const n=e.conn,r=n.metadata,i={[Je.Host]:se("span",{class:"w-80 grow break-all text-primary/80"},[r.host||r.sniffHost||r.destinationIP,st(":"),r.destinationPort]),[Je.Destination]:se("span",{class:"w-80 grow break-all"},[qV(n)]),[Je.SourceIP]:se("span",{class:"w-80 grow break-all"},[M1(r.sourceIP)]),[Je.SourcePort]:se("span",{class:"w-80 grow break-all"},[r.sourcePort]),[Je.SniffHost]:se("span",{class:"w-80 grow break-all"},[r.sniffHost||"-"]),[Je.Type]:se("span",{class:"w-80 grow break-all"},[JV(n)]),[Je.Rule]:se("span",{class:"w-80 grow break-all"},[n.rule,n.rulePayload&&se(Ye,null,[st(": "),n.rulePayload])]),[Je.Process]:se("span",{class:"w-80 grow break-all"},[ZV(n)]),[Je.Chains]:se("span",{class:["flex w-80 grow items-center gap-1 break-all",Lv.value===gm.REVERSE&&"flex-row-reverse justify-end"]},[se(If,{name:$r.last(n.chains)},null),$r.last(n.chains)!==$r.first(n.chains)&&se(Ye,null,[se(Lu,{class:"h-4 w-4 shrink-0"},null),se(If,{name:$r.first(n.chains)},null)])]),[Je.Download]:se("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.download),se(iee,{class:"h-4 w-4 text-success"},null)]),[Je.Upload]:se("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.upload),se(aee,{class:"h-4 w-4 text-info"},null)]),[Je.DlSpeed]:se("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.downloadSpeed),st("/s"),se(Wb,{class:"h-4 w-4 text-success"},null)]),[Je.UlSpeed]:se("div",{class:"flex items-center gap-1 whitespace-nowrap"},[Gn(n.uploadSpeed),st("/s"),se(dm,{class:"h-4 w-4 text-info"},null)]),[Je.ConnectTime]:se("div",{class:"gap-1 whitespace-nowrap"},[uS(n.start)]),[Je.Details]:se("button",{class:"btn btn-circle btn-xs",onClick:()=>t(n)},[se(SB,{class:"h-4 w-4"},null)]),[Je.Close]:se("button",{class:"btn btn-circle btn-xs",onClick:o=>{o.stopPropagation(),aS(n.id)}},[se(pm,{class:"h-4 w-4"},null)])};return se("div",{class:"card cursor-pointer gap-1 p-1",onClick:()=>t(n)},[as.value.map(o=>se("div",{class:"flex items-center gap-1 text-sm"},[o.map(a=>i[a])]))])}}}),Nse={key:0,class:"card m-2 flex-row p-2 text-sm"},kse=it({__name:"ConnectionCardList",setup(e){const t=Le(()=>as.value.length*28+4);return(n,r)=>N(_h).length?(X(),Tt(_2,{key:1,data:N(_h),size:t.value},{default:er(({item:i})=>[se(N(Lse),{class:"mb-1",conn:i},null,8,["conn"])]),_:1},8,["data","size"])):(X(),te("div",Nse,ie(n.$t("noContent")),1))}});/** * 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 yu(e,t){return typeof e=="function"?e(t):e}function Lo(e,t){return n=>{t.setState(r=>({...r,[e]:yu(n,r[e])}))}}function _u(e){return e instanceof Function}function Fse(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function lU(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 xt(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,d=f/16,h=(v,m)=>{for(v=String(v);v.length{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[t]},key:!1,onChange:r}}function $se(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:xt(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Ct(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function Bse(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=d=>{let h=d;for(const m of l.split(".")){var v;h=(v=h)==null?void 0:v[m]}return h}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:xt(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},Ct(e.options,"debugColumns")),getLeafColumns:xt(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let v=f.columns.flatMap(m=>m.getLeafColumns());return d(v)}return[f]},Ct(e.options,"debugColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}const ei="debugHeaders";function RN(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 Vse={createTable:e=>{e.getHeaderGroups=xt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,i)=>{var o,a;const s=(o=r==null?void 0:r.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return Qy(t,[...s,...u,...l],e)},Ct(e.options,ei)),e.getCenterHeaderGroups=xt(()=>[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))),Qy(t,n,e,"center")),Ct(e.options,ei)),e.getLeftHeaderGroups=xt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return Qy(t,o,e,"left")},Ct(e.options,ei)),e.getRightHeaderGroups=xt(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var i;const o=(i=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return Qy(t,o,e,"right")},Ct(e.options,ei)),e.getFooterGroups=xt(()=>[e.getHeaderGroups()],t=>[...t].reverse(),Ct(e.options,ei)),e.getLeftFooterGroups=xt(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),Ct(e.options,ei)),e.getCenterFooterGroups=xt(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),Ct(e.options,ei)),e.getRightFooterGroups=xt(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),Ct(e.options,ei)),e.getFlatHeaders=xt(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ct(e.options,ei)),e.getLeftFlatHeaders=xt(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ct(e.options,ei)),e.getCenterFlatHeaders=xt(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ct(e.options,ei)),e.getRightFlatHeaders=xt(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),Ct(e.options,ei)),e.getCenterLeafHeaders=xt(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Ct(e.options,ei)),e.getLeftLeafHeaders=xt(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Ct(e.options,ei)),e.getRightLeafHeaders=xt(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),Ct(e.options,ei)),e.getLeafHeaders=xt(()=>[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()},Ct(e.options,ei))}};function Qy(e,t,n,r){var i,o;let a=0;const s=function(d,h){h===void 0&&(h=1),a=Math.max(a,h),d.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&s(v.columns,h+1)},0)};s(e);let l=[];const u=(d,h)=>{const v={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},m=[];d.forEach(_=>{const y=[...m].reverse()[0],b=_.column.depth===v.depth;let S,w=!1;if(b&&_.column.parent?S=_.column.parent:(S=_.column,w=!0),y&&(y==null?void 0:y.column)===S)y.subHeaders.push(_);else{const C=RN(n,S,{id:[r,h,S.id,_==null?void 0:_.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${m.filter(T=>T.column===S).length}`:void 0,depth:h,index:m.length});C.subHeaders.push(_),m.push(C)}v.headers.push(_),_.headerGroup=v}),l.push(v),h>0&&u(m,h-1)},c=t.map((d,h)=>RN(n,d,{depth:a,index:h}));u(c,a-1),l.reverse();const f=d=>d.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,_=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],f(v.subHeaders).forEach(S=>{let{colSpan:w,rowSpan:C}=S;m+=w,y.push(C)})):m=1;const b=Math.min(...y);return _=_+b,v.colSpan=m,v.rowSpan=_,{colSpan:m,rowSpan:_}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const uU=(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:()=>lU(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:xt(()=>[e.getAllLeafColumns()],l=>l.map(u=>$se(e,s,u,u.id)),Ct(e.options,"debugRows")),_getAllCellsByColumnId:xt(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),Ct(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},cU=(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))};cU.autoRemove=e=>Ba(e);const fU=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};fU.autoRemove=e=>Ba(e);const dU=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};dU.autoRemove=e=>Ba(e);const hU=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};hU.autoRemove=e=>Ba(e)||!(e!=null&&e.length);const pU=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});pU.autoRemove=e=>Ba(e)||!(e!=null&&e.length);const vU=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});vU.autoRemove=e=>Ba(e)||!(e!=null&&e.length);const gU=(e,t,n)=>e.getValue(t)===n;gU.autoRemove=e=>Ba(e);const mU=(e,t,n)=>e.getValue(t)==n;mU.autoRemove=e=>Ba(e);const S2=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};S2.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]};S2.autoRemove=e=>Ba(e)||Ba(e[0])&&Ba(e[1]);const Js={includesString:cU,includesStringSensitive:fU,equalsString:dU,arrIncludes:hU,arrIncludesAll:pU,arrIncludesSome:vU,equals:gU,weakEquals:mU,inNumberRange:S2};function Ba(e){return e==null||e===""}const Hse={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Lo("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Js.includesString:typeof r=="number"?Js.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Js.equals:Array.isArray(r)?Js.arrIncludes:Js.weakEquals},e.getFilterFn=()=>{var n,r;return _u(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:Js[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==null?void 0:r.find(c=>c.id===e.id),a=yu(n,o?o.value:void 0);if(PN(i,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=r==null?void 0: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=yu(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(PN(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 PN(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Gse=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),zse=(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},Wse=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},jse=(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{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},Yse=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!Fse(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},Kse=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),Zse=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,qse=(e,t)=>t.length,nC={sum:Gse,min:zse,max:Wse,extent:jse,mean:Xse,median:Yse,unique:Kse,uniqueCount:Zse,count:qse},Jse={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:Lo("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==null?void 0:n.getValue(e.id);if(typeof r=="number")return nC.sum;if(Object.prototype.toString.call(r)==="[object Date]")return nC.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return _u(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:nC[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 Qse(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 ele={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Lo("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=xt(n=>[$v(t,n)],n=>n.findIndex(r=>r.id===e.id),Ct(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=$v(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=$v(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=xt(()=>[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 Qse(o,n,r)},Ct(e.options,"debugTable"))}},rC=()=>({left:[],right:[]}),tle={getInitialState:e=>({columnPinning:rC(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Lo("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==null?void 0:i.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=i==null?void 0: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==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0: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=xt(()=>[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))},Ct(t.options,"debugRows")),e.getLeftVisibleCells=xt(()=>[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"})),Ct(t.options,"debugRows")),e.getRightVisibleCells=xt(()=>[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"})),Ct(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?rC():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:rC())},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=xt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Ct(e.options,"debugColumns")),e.getRightLeafColumns=xt(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),Ct(e.options,"debugColumns")),e.getCenterLeafColumns=xt(()=>[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))},Ct(e.options,"debugColumns"))}},e0={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},iC=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),nle={getDefaultColumnDef:()=>e0,getInitialState:e=>({columnSizing:{},columnSizingInfo:iC(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Lo("columnSizing",e),onColumnSizingInfoChange:Lo("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:e0.minSize,(r=o??e.columnDef.size)!=null?r:e0.size),(i=e.columnDef.maxSize)!=null?i:e0.maxSize)},e.getStart=xt(n=>[n,$v(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),Ct(t.options,"debugColumns")),e.getAfter=xt(n=>[n,$v(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),Ct(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==null?void 0:r.getCanResize();return o=>{if(!r||!i||(o.persist==null||o.persist(),oC(o)&&o.touches&&o.touches.length>1))return;const a=e.getSize(),s=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[r.id,r.getSize()]],l=oC(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(y,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var w,C;const T=t.options.columnResizeDirection==="rtl"?-1:1,E=(b-((w=S==null?void 0:S.startOffset)!=null?w:0))*T,R=Math.max(E/((C=S==null?void 0:S.startSize)!=null?C:0),-.999999);return S.columnSizingStart.forEach(I=>{let[O,P]=I;u[O]=Math.round(Math.max(P+P*R,0)*100)/100}),{...S,deltaOffset:E,deltaPercentage:R}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(S=>({...S,...u})))},f=y=>c("move",y),d=y=>{c("end",y),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,v={moveHandler:y=>f(y.clientX),upHandler:y=>{h==null||h.removeEventListener("mousemove",v.moveHandler),h==null||h.removeEventListener("mouseup",v.upHandler),d(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),f(y.touches[0].clientX),!1),upHandler:y=>{var b;h==null||h.removeEventListener("touchmove",m.moveHandler),h==null||h.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),d((b=y.touches[0])==null?void 0:b.clientX)}},_=rle()?{passive:!1}:!1;oC(o)?(h==null||h.addEventListener("touchmove",m.moveHandler,_),h==null||h.addEventListener("touchend",m.upHandler,_)):(h==null||h.addEventListener("mousemove",v.moveHandler,_),h==null||h.addEventListener("mouseup",v.upHandler,_)),t.setColumnSizingInfo(y=>({...y,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?iC():(n=e.initialState.columnSizingInfo)!=null?n:iC())},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 t0=null;function rle(){if(typeof t0=="boolean")return t0;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 t0=e,t0}function oC(e){return e.type==="touchstart"}const ile={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Lo("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=xt(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),Ct(t.options,"debugRows")),e.getVisibleCells=xt(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],Ct(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>xt(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),Ct(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 $v(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const ole={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()}}},ale={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Lo("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=()=>Js.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return _u(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Js[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},sle={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Lo("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!=null&&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()}}}},WE=0,jE=10,aC=()=>({pageIndex:WE,pageSize:jE}),lle={getInitialState:e=>({...e,pagination:{...aC(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Lo("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=>yu(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?aC():(i=e.initialState.pagination)!=null?i:aC())},e.setPageIndex=r=>{e.setPagination(i=>{let o=yu(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?WE:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:WE)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?jE:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:jE)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,yu(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=yu(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=xt(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},Ct(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:re.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}}},sC=()=>({top:[],bottom:[]}),ule={getInitialState:e=>({rowPinning:sC(),...e}),getDefaultOptions:e=>({onRowPinningChange:Lo("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,d;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(m=>!(s!=null&&s.has(m))),bottom:[...((d=l==null?void 0:l.bottom)!=null?d:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)]}}if(n==="top"){var h,v;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).filter(m=>!(s!=null&&s.has(m))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(m=>!(s!=null&&s.has(m)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(m=>!(s!=null&&s.has(m))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(m=>!(s!=null&&s.has(m)))}})},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==null?void 0:r.includes(s)),a=n.some(s=>i==null?void 0: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==null?void 0: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?sC():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:sC())},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=xt(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Ct(e.options,"debugRows")),e.getBottomRows=xt(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Ct(e.options,"debugRows")),e.getCenterRows=xt(()=>[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))},Ct(e.options,"debugRows"))}},cle={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Lo("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=>{XE(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?lC(e,n):{rows:[],flatRows:[],rowsById:{}},Ct(e.options,"debugTable")),e.getFilteredSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?lC(e,n):{rows:[],flatRows:[],rowsById:{}},Ct(e.options,"debugTable")),e.getGroupedSelectedRowModel=xt(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?lC(e,n):{rows:[],flatRows:[],rowsById:{}},Ct(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{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 XE(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return w2(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return YE(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return YE(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)}}}},XE=(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=>XE(e,s.id,n,r,i))};function lC(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=w2(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 w2(e,t){var n;return(n=t[e.id])!=null?n:!1}function YE(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()&&(w2(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=YE(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const KE=/([0-9]+)/gm,fle=(e,t,n)=>yU(ku(e.getValue(n)).toLowerCase(),ku(t.getValue(n)).toLowerCase()),dle=(e,t,n)=>yU(ku(e.getValue(n)),ku(t.getValue(n))),hle=(e,t,n)=>x2(ku(e.getValue(n)).toLowerCase(),ku(t.getValue(n)).toLowerCase()),ple=(e,t,n)=>x2(ku(e.getValue(n)),ku(t.getValue(n))),vle=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rx2(e.getValue(n),t.getValue(n));function x2(e,t){return e===t?0:e>t?1:-1}function ku(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function yU(e,t){const n=e.split(KE).filter(Boolean),r=t.split(KE).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 Ip={alphanumeric:fle,alphanumericCaseSensitive:dle,text:hle,textCaseSensitive:ple,datetime:vle,basic:gle},mle={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Lo("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==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Ip.datetime;if(typeof o=="string"&&(r=!0,o.split(KE).length>1))return Ip.alphanumeric}return r?Ip.text:Ip.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return _u(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:Ip[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const i=e.getNextSortingOrder(),o=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(h=>h.id===e.id),l=a==null?void 0:a.findIndex(h=>h.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 d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(h=>h.id===e.id?{...h,desc:f}:h):c==="remove"?u=a.filter(h=>h.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())}},yle=[Vse,ile,ele,tle,Use,Hse,ole,ale,mle,Jse,sle,lle,ule,cle,nle];function _le(e){var t,n;const r=[...yle,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((d,h)=>Object.assign(d,h.getDefaultOptions==null?void 0:h.getDefaultOptions(i)),{}),a=d=>i.options.mergeOptions?i.options.mergeOptions(o,d):{...o,...d};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(d=>{var h;l=(h=d.getInitialState==null?void 0:d.getInitialState(l))!=null?h:l});const u=[];let c=!1;const f={_features:r,options:{...o,...e},initialState:l,_queue:d=>{u.push(d),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{i.setState(i.initialState)},setOptions:d=>{const h=yu(d,i.options);i.options=a(h)},getState:()=>i.options.state,setState:d=>{i.options.onStateChange==null||i.options.onStateChange(d)},_getRowId:(d,h,v)=>{var m;return(m=i.options.getRowId==null?void 0:i.options.getRowId(d,h,v))!=null?m:`${v?[v.id,h].join("."):h}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(d,h)=>{let v=(h?i.getPrePaginationRowModel():i.getRowModel()).rowsById[d];if(!v&&(v=i.getCoreRowModel().rowsById[d],!v))throw new Error;return v},_getDefaultColumnDef:xt(()=>[i.options.defaultColumn],d=>{var h;return d=(h=d)!=null?h:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,_;return(m=(_=v.renderValue())==null||_.toString==null?void 0:_.toString())!=null?m:null},...i._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...d}},Ct(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:xt(()=>[i._getColumnDefs()],d=>{const h=function(v,m,_){return _===void 0&&(_=0),v.map(y=>{const b=Bse(i,y,_,m),S=y;return b.columns=S.columns?h(S.columns,b,_+1):[],b})};return h(d)},Ct(e,"debugColumns")),getAllFlatColumns:xt(()=>[i.getAllColumns()],d=>d.flatMap(h=>h.getFlatColumns()),Ct(e,"debugColumns")),_getAllFlatColumnsById:xt(()=>[i.getAllFlatColumns()],d=>d.reduce((h,v)=>(h[v.id]=v,h),{}),Ct(e,"debugColumns")),getAllLeafColumns:xt(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(d,h)=>{let v=d.flatMap(m=>m.getLeafColumns());return h(v)},Ct(e,"debugColumns")),getColumn:d=>i._getAllFlatColumnsById()[d]};Object.assign(i,f);for(let d=0;dxt(()=>[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;ue._autoResetPageIndex()))}function Sle(){return e=>xt(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:wle(n),Ct(e.options,"debugTable"))}function wle(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 xle(){return e=>xt(()=>[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(v=>(v.depth=u,i.push(v),o[v.id]=v,v.subRows&&(v.subRows=a(v.subRows,u+1,v.id)),v));const f=r[u],d=Cle(l,f);return Array.from(d.entries()).map((v,m)=>{let[_,y]=v,b=`${f}:${_}`;b=c?`${c}>${b}`:b;const S=a(y,u+1,b);S.forEach(T=>{T.parentId=b});const w=u?lU(y,T=>T.subRows):y,C=uU(e,b,w[0].original,m,u,void 0,c);return Object.assign(C,{groupingColumnId:f,groupingValue:_,subRows:S,leafRows:w,getValue:T=>{if(r.includes(T)){if(C._valuesCache.hasOwnProperty(T))return C._valuesCache[T];if(y[0]){var E;C._valuesCache[T]=(E=y[0].getValue(T))!=null?E:void 0}return C._valuesCache[T]}if(C._groupingValuesCache.hasOwnProperty(T))return C._groupingValuesCache[T];const R=e.getColumn(T),I=R==null?void 0:R.getAggregationFn();if(I)return C._groupingValuesCache[T]=I(T,w,y),C._groupingValuesCache[T]}}),S.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}},Ct(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function Cle(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 Tle(){return e=>xt(()=>[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 h=0;h{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}},Ct(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 n0(){return!0}const Ele=Symbol("merge-proxy"),Ale={get(e,t,n){return t===Ele?n:e.get(t)},has(e,t){return e.has(t)},set:n0,deleteProperty:n0,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:n0,deleteProperty:n0}},ownKeys(e){return e.keys()}};function uC(e){return"value"in e?e.value:e}function sv(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=uC(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in uC(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?Xi(e.render,e.props):e.render});function ON(e){return sv(e,{data:N(e.data)})}function Ile(e){const t=at(e.data),n=sv({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:sv(o,a)}},t?ON(e):e),r=_le(n);if(t){const o=Uf(e.data);Vt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=ke(r.initialState);return Ub(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return sv(o,t?ON(e):e,{state:sv(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 C2="-",Rle=e=>{const t=Ole(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(C2);return s[0]===""&&s.length!==1&&s.shift(),_U(s,t)||Ple(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},_U=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?_U(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(C2);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},DN=/^\[(.+)\]$/,Ple=e=>{if(DN.test(e)){const t=DN.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Ole=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Mle(Object.entries(e.classGroups),n).forEach(([o,a])=>{ZE(a,r,o,t)}),r},ZE=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:MN(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(Dle(i)){ZE(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{ZE(a,MN(t,o),n,r)})})},MN=(e,t)=>{let n=e;return t.split(C2).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Dle=e=>e.isThemeGetter,Mle=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,Lle=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)}}},bU="!",Nle=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let u=0,c=0,f;for(let _=0;_c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:a}):a},kle=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},Fle=e=>({cache:Lle(e.cacheSize),parseClassName:Nle(e),...Rle(e)}),$le=/\s+/,Ble=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split($le);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=n(u);let v=!!h,m=r(v?d.substring(0,h):d);if(!m){if(!v){s=u+(s.length>0?" "+s:s);continue}if(m=r(d),!m){s=u+(s.length>0?" "+s:s);continue}v=!1}const _=kle(c).join(":"),y=f?_+bU:_,b=y+m;if(o.includes(b))continue;o.push(b);const S=i(m,v);for(let w=0;w0?" "+s:s)}return s};function Vle(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rf(c),e());return n=Fle(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=Ble(l,n);return i(l,c),c}return function(){return o(Vle.apply(null,arguments))}}const Vn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},wU=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hle=/^\d+\/\d+$/,Gle=new Set(["px","full","screen"]),zle=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wle=/\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$/,jle=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xle=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yle=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zs=e=>Jd(e)||Gle.has(e)||Hle.test(e),Gl=e=>Vh(e,"length",nue),Jd=e=>!!e&&!Number.isNaN(Number(e)),fC=e=>Vh(e,"number",Jd),Rp=e=>!!e&&Number.isInteger(Number(e)),Kle=e=>e.endsWith("%")&&Jd(e.slice(0,-1)),Gt=e=>wU.test(e),zl=e=>zle.test(e),Zle=new Set(["length","size","percentage"]),qle=e=>Vh(e,Zle,xU),Jle=e=>Vh(e,"position",xU),Qle=new Set(["image","url"]),eue=e=>Vh(e,Qle,iue),tue=e=>Vh(e,"",rue),Pp=()=>!0,Vh=(e,t,n)=>{const r=wU.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},nue=e=>Wle.test(e)&&!jle.test(e),xU=()=>!1,rue=e=>Xle.test(e),iue=e=>Yle.test(e),oue=()=>{const e=Vn("colors"),t=Vn("spacing"),n=Vn("blur"),r=Vn("brightness"),i=Vn("borderColor"),o=Vn("borderRadius"),a=Vn("borderSpacing"),s=Vn("borderWidth"),l=Vn("contrast"),u=Vn("grayscale"),c=Vn("hueRotate"),f=Vn("invert"),d=Vn("gap"),h=Vn("gradientColorStops"),v=Vn("gradientColorStopPositions"),m=Vn("inset"),_=Vn("margin"),y=Vn("opacity"),b=Vn("padding"),S=Vn("saturate"),w=Vn("scale"),C=Vn("sepia"),T=Vn("skew"),E=Vn("space"),R=Vn("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",Gt,t],M=()=>[Gt,t],F=()=>["",zs,Gl],$=()=>["auto",Jd,Gt],z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],j=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",Gt],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[Jd,Gt];return{cacheSize:500,separator:":",theme:{colors:[Pp],spacing:[zs,Gl],blur:["none","",zl,Gt],brightness:ge(),borderColor:[e],borderRadius:["none","","full",zl,Gt],borderSpacing:M(),borderWidth:F(),contrast:ge(),grayscale:le(),hueRotate:ge(),invert:le(),gap:M(),gradientColorStops:[e],gradientColorStopPositions:[Kle,Gl],inset:P(),margin:P(),opacity:ge(),padding:M(),saturate:ge(),scale:ge(),sepia:le(),skew:ge(),space:M(),translate:M()},classGroups:{aspect:[{aspect:["auto","square","video",Gt]}],container:["container"],columns:[{columns:[zl]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...z(),Gt]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rp,Gt]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Gt]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",Rp,Gt]}],"grid-cols":[{"grid-cols":[Pp]}],"col-start-end":[{col:["auto",{span:["full",Rp,Gt]},Gt]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Pp]}],"row-start-end":[{row:["auto",{span:[Rp,Gt]},Gt]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Gt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Gt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...j()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...j(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...j(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Gt,t]}],"min-w":[{"min-w":[Gt,t,"min","max","fit"]}],"max-w":[{"max-w":[Gt,t,"none","full","min","max","fit","prose",{screen:[zl]},zl]}],h:[{h:[Gt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Gt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Gt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Gt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zl,Gl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fC]}],"font-family":[{font:[Pp]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Gt]}],"line-clamp":[{"line-clamp":["none",Jd,fC]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zs,Gt]}],"list-image":[{"list-image":["none",Gt]}],"list-style-type":[{list:["none","disc","decimal",Gt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zs,Gl]}],"underline-offset":[{"underline-offset":["auto",zs,Gt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Gt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Gt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...z(),Jle]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qle]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eue]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[zs,Gt]}],"outline-w":[{outline:[zs,Gl]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[zs,Gl]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zl,tue]}],"shadow-color":[{shadow:[Pp]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",zl,Gt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Gt]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",Gt]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",Gt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Rp,Gt]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Gt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Gt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[zs,Gl,fC]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},In=Ule(oue),aue={class:"sticky -top-2 z-10 bg-base-100"},sue=["colSpan","onClick"],lue={class:"flex items-center gap-1"},uue=["onClick"],cue=["onDblclick","onMousedown","onTouchstart"],fue=["onClick"],due=it({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=b2(),n=It("config/table-column-width",{[Je.Details]:50,[Je.Close]:50,[Je.Host]:320,[Je.Chains]:320,[Je.Rule]:200,[Je.Download]:80,[Je.DlSpeed]:80,[Je.Upload]:80,[Je.UlSpeed]:80,[Je.Type]:150,[Je.Process]:150,[Je.SourceIP]:150,[Je.SourcePort]:100,[Je.SniffHost]:200,[Je.Destination]:150,[Je.ConnectTime]:100}),r=Le(()=>T_.value===Kb.MANUAL),{t:i}=Do(),o=[{header:()=>i("details"),enableSorting:!1,id:Je.Details,cell:({row:S})=>Xi("button",{class:"btn btn-xs btn-circle",onClick:()=>{const w=S.original;t(w)}},[Xi(SB,{class:"h-4 w-4"})])},{header:()=>i("close"),enableSorting:!1,id:Je.Close,cell:({row:S})=>Xi("button",{class:"btn btn-xs btn-circle",onClick:w=>{const C=S.original;w.stopPropagation(),aS(C.id)}},[Xi(pm,{class:"h-4 w-4"})])},{header:()=>i("type"),id:Je.Type,accessorFn:S=>JV(S)},{header:()=>i("process"),id:Je.Process,accessorFn:S=>ZV(S)},{header:()=>i("host"),id:Je.Host,accessorFn:S=>`${S.metadata.host||S.metadata.sniffHost||S.metadata.destinationIP}:${S.metadata.destinationPort}`},{header:()=>i("sniffHost"),id:Je.SniffHost,accessorFn:S=>S.metadata.sniffHost||"-"},{header:()=>i("rule"),id:Je.Rule,accessorFn:S=>S.rulePayload?`${S.rule}: ${S.rulePayload}`:S.rule},{header:()=>i("chains"),id:Je.Chains,accessorFn:S=>S.chains.join(","),cell:({row:S})=>{const w=[],C=S.original.chains;return C.forEach((T,E)=>{w.unshift(Xi(If,{name:T,size:"small",class:"shrink-0"})),Ei("connectTime"),enableGrouping:!1,id:Je.ConnectTime,accessorFn:S=>uS(S.start),sortingFn:(S,w)=>Oo(w.original.start).valueOf()-Oo(S.original.start).valueOf()},{header:()=>i("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:Je.DlSpeed,accessorFn:S=>`${Gn(S.downloadSpeed)}/s`,sortingFn:(S,w)=>S.original.downloadSpeed-w.original.downloadSpeed},{header:()=>i("ulSpeed"),enableGrouping:!1,id:Je.UlSpeed,accessorFn:S=>`${Gn(S.uploadSpeed)}/s`,sortingFn:(S,w)=>S.original.uploadSpeed-w.original.uploadSpeed},{header:()=>i("dl"),enableGrouping:!1,id:Je.Download,accessorFn:S=>Gn(S.download),sortingFn:(S,w)=>S.original.download-w.original.download},{header:()=>i("ul"),enableGrouping:!1,id:Je.Upload,accessorFn:S=>Gn(S.upload),sortingFn:(S,w)=>S.original.upload-w.original.upload},{header:()=>i("sourceIP"),id:Je.SourceIP,accessorFn:S=>M1(S.metadata.sourceIP)},{header:()=>i("sourcePort"),id:Je.SourcePort,accessorFn:S=>S.metadata.sourcePort},{header:()=>i("destination"),id:Je.Destination,accessorFn:qV}],a=ke([]),s=ke({}),l=It("config/table-sorting",[]),u=Ile({get data(){return _h.value},columns:o,columnResizeMode:"onChange",columnResizeDirection:"ltr",state:{get columnOrder(){return Vd.value},get columnVisibility(){return{...Object.fromEntries(Object.values(Je).map(S=>[S,!1])),...Object.fromEntries(Vd.value.map(S=>[S,!0]))}},get grouping(){return a.value},get expanded(){return s.value},get sorting(){return l.value},get columnSizing(){return n.value}},onGroupingChange:S=>{_u(S)?a.value=S(a.value):a.value=S},onExpandedChange:S=>{_u(S)&&(s.value=S(s.value))},onSortingChange:S=>{_u(S)?l.value=S(l.value):l.value=S},onColumnSizingChange:S=>{_u(S)?n.value=S(n.value):n.value=S},getSortedRowModel:Tle(),getGroupedRowModel:xle(),getExpandedRowModel:Sle(),getCoreRowModel:ble()}),c=Le(()=>u.getRowModel().rows),f=ke(null),d=Le(()=>({count:c.value.length,getScrollElement:()=>f.value,estimateSize:()=>36,overscan:48})),h=tU(d),v=Le(()=>h.value.getVirtualItems()),m=Le(()=>h.value.getTotalSize()+24),_={[wg.SMALL]:"table-xs",[wg.LARGE]:"table-sm"},y=Le(()=>_[C_.value]),b=S=>{S.getIsGrouped()?S.getCanExpand()&&S.getToggleExpandedHandler()():t(S.original)};return(S,w)=>(X(),te("div",{ref_key:"parentRef",ref:f,class:"h-full overflow-y-auto p-2",onTouchstart:w[0]||(w[0]=ur(()=>{},["stop"])),onTouchmove:w[1]||(w[1]=ur(()=>{},["stop"])),onTouchend:w[2]||(w[2]=ur(()=>{},["stop"]))},[L("div",{style:Ir({height:`${m.value}px`})},[L("table",{class:ot(`table table-zebra ${y.value} rounded-none shadow-md`),style:Ir(r.value&&{tableLayout:"fixed",width:`${N(u).getCenterTotalSize()}px`})},[L("thead",aue,[(X(!0),te(Ye,null,ln(N(u).getHeaderGroups(),C=>(X(),te("tr",{key:C.id},[(X(!0),te(Ye,null,ln(C.headers,T=>(X(),te("th",{key:T.id,colSpan:T.colSpan,class:ot(["relative",T.column.getCanSort()?"cursor-pointer select-none":""]),style:Ir(r.value&&{width:`${T.getSize()}px`}),onClick:E=>{var R;return(R=T.column.getToggleSortingHandler())==null?void 0:R(E)}},[L("div",lue,[T.column.getCanGroup()?(X(),te("button",{key:0,class:"cursor-pointer",onClick:ur(()=>T.column.getToggleGroupingHandler()(),["stop"])},[T.column.getIsGrouped()?(X(),Tt(N(UM),{key:0,class:"h-4 w-4"})):(X(),Tt(N(HM),{key:1,class:"h-4 w-4"}))],8,uue)):yt("",!0),T.isPlaceholder?yt("",!0):(X(),Tt(N(cC),{key:1,render:T.column.columnDef.header,props:T.getContext()},null,8,["render","props"])),T.column.getIsSorted()==="asc"?(X(),Tt(N(dm),{key:2,class:"h-4 w-4"})):yt("",!0),T.column.getIsSorted()==="desc"?(X(),Tt(N(Wb),{key:3,class:"h-4 w-4"})):yt("",!0)]),r.value?(X(),te("div",{key:0,onDblclick:()=>T.column.resetSize(),onMousedown:E=>T.getResizeHandler()(E),onTouchstart:E=>T.getResizeHandler()(E),class:"resizer absolute right-0 top-0 h-full w-1 cursor-ew-resize bg-neutral"},null,40,cue)):yt("",!0)],14,sue))),128))]))),128))]),L("tbody",null,[(X(!0),te(Ye,null,ln(v.value,(C,T)=>(X(),te("tr",{key:C.key.toString(),style:Ir({height:`${C.size}px`,transform:`translateY(${C.start-T*C.size}px)`}),class:"cursor-pointer bg-base-100 hover:!bg-primary hover:text-primary-content",onClick:E=>b(c.value[C.index])},[(X(!0),te(Ye,null,ln(c.value[C.index].getVisibleCells(),E=>(X(),te("td",{key:E.id,class:ot([r.value?"truncate text-sm":N(In)("whitespace-nowrap text-sm",[N(Je).Download,N(Je).DlSpeed,N(Je).Upload,N(Je).UlSpeed].includes(E.column.id)&&"min-w-20",N(Je).Host===E.column.id&&"max-w-[32rem] truncate",N(Je).Chains===E.column.id&&"max-w-[36rem] truncate")])},[E.column.getIsGrouped()?(X(),te(Ye,{key:0},[c.value[C.index].getCanExpand()?(X(),te(Ye,{key:0},[c.value[C.index].getIsExpanded()?(X(),Tt(N(UM),{key:0,class:"-mt-1 mr-1 inline-block h-4 w-4"})):(X(),Tt(N(HM),{key:1,class:"-mt-1 mr-1 inline-block h-4 w-4"})),se(N(cC),{render:E.column.columnDef.cell,props:E.getContext()},null,8,["render","props"]),L("span",null," ("+ie(c.value[C.index].subRows.length)+") ",1)],64)):yt("",!0)],64)):(X(),Tt(N(cC),{key:1,render:E.getIsAggregated()?E.column.columnDef.aggregatedCell:E.column.columnDef.cell,props:E.getContext()},null,8,["render","props"]))],2))),128))],12,fue))),128))])],6)],4)],544))}});var N1={d:(e,t)=>{for(var n in t)N1.o(t,n)&&!N1.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},CU={};function qE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nmue});const mt=(LN={computed:()=>Le,createTextVNode:()=>st,createVNode:()=>se,defineComponent:()=>it,reactive:()=>Va,ref:()=>ke,watch:()=>Vt,watchEffect:()=>Ub},dC={},N1.d(dC,LN),dC),hue=(0,mt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,mt.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),pue=(0,mt.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,mt.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,mt.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,mt.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,mt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,mt.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),vue=(0,mt.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,mt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,mt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,mt.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 LN,dC;function JE(e){return JE=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},JE(e)}function EU(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function $c(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||{},o=i.key,a=i.index,s=i.type,l=s===void 0?"content":s,u=i.showComma,c=u!==void 0&&u,f=i.length,d=f===void 0?1:f,h=EU(e);if(h==="array"){var v=NN(e.map(function(y,b,S){return $c(y,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==S.length-1,length:d,type:l})}));return[$c("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(v,$c("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(h==="object"){var m=Object.keys(e),_=NN(m.map(function(y,b,S){return $c(e[y],/^[a-zA-Z_]\w*$/.test(y)?"".concat(t,".").concat(y):"".concat(t,'["').concat(y,'"]'),n+1,{key:y,showComma:b!==S.length-1,length:d,type:l})}));return[$c("{",t,n,{showComma:!1,key:o,index:a,length:m.length,type:"objectStart"})[0]].concat(_,$c("}",t,n,{showComma:c,length:m.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:d,type:l}]}function NN(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=k1(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,k1(r)):n.push(r)}return n}function QE(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(JE(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return QE(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=QE(e[i],t);return t.set(e,r),r}function kN(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 FN(e){for(var t=1;t=S||T.length>=w,I=(E=e.pathCollapsible)===null||E===void 0?void 0:E.call(e,T);return T.type!=="objectStart"&&T.type!=="arrayStart"||!R&&!I?C:_o(_o({},C),{},F1({},T.path,1))},{})},s=(0,mt.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,mt.computed)(function(){for(var S=null,w=[],C=o.value.length,T=0;TS.length?S.length-C:E;R<0&&(R=0);var I=R+C;s.translateY=R*e.itemHeight,s.visibleData=S.filter(function(O,P){return P>=R&&P(X(),te("div",_ue,[N(Xc)?(X(),Tt(kse,{key:0,class:"overflow-x-hidden p-2"})):(X(),Tt(due,{key:1})),se(y2,{modelValue:N(n),"onUpdate:modelValue":i[0]||(i[0]=o=>at(n)?n.value=o:null)},{default:er(()=>[se(N(yue),{data:N(t)},null,8,["data"])]),_:1},8,["modelValue"])]))}}),Sue={class:"relative w-full flex-1"},Sm=it({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=Le({get:()=>n.modelValue,set:a=>r("update:modelValue",a)}),o=()=>{i.value=""};return(a,s)=>(X(),te("div",Sue,[gt(L("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>i.value=l),type:"text",class:"input input-sm join-item input-bordered w-full"},null,512),[[sr,i.value]]),se(N(pm),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),wue={class:"tabs-boxed tabs tabs-sm"},xue=it({__name:"ConnectionTabs",setup(e){return(t,n)=>(X(),te("div",wue,[L("a",{role:"tab",class:ot(N(In)("tab",N(kc)===N(el).ACTIVE&&"tab-active")),onClick:n[0]||(n[0]=()=>kc.value=N(el).ACTIVE)},[st(ie(t.$t("activeConnections"))+" ",1),N(kc)===N(el).ACTIVE?(X(),te(Ye,{key:0},[st(" ("+ie(N(_h).length)+") ",1)],64)):yt("",!0)],2),L("a",{role:"tab",class:ot(N(In)("tab",N(kc)===N(el).CLOSED&&"tab-active")),onClick:n[1]||(n[1]=()=>kc.value=N(el).CLOSED)},[st(ie(t.$t("closedConnections"))+" ",1),N(kc)===N(el).CLOSED?(X(),te(Ye,{key:0},[st(" ("+ie(N(_h).length)+") ",1)],64)):yt("",!0)],2)]))}}),Cue=["value"],Tue=["value"],BN=it({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Le(()=>$r.uniq(UV.value.map(r=>r.metadata.sourceIP)).sort()),n=ke([]);return Vt(t,(r,i)=>{$r.isEqual(r,i)||(n.value=t.value.map(o=>({label:M1(o),value:o})))},{immediate:!0}),(r,i)=>r.horizontal?yt("",!0):gt((X(),te("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":i[0]||(i[0]=o=>at(qs)?qs.value=o:null)},[i[1]||(i[1]=L("option",{value:null},"all",-1)),n.value.every(o=>o.value!==N(qs))&&N(qs)!==null?(X(),te("option",{key:0,value:N(qs)},ie(N(M1)(N(qs))),9,Cue)):yt("",!0),(X(!0),te(Ye,null,ln(n.value,o=>(X(),te("option",{key:o.value,value:o.value},ie(o.label),9,Tue))),128))],512)),[[Vr,N(qs)]])}}),Eue={class:"flex flex-1 items-center gap-1"},Aue={class:"join flex-1"},Iue=["value"],Rue=["data-tip"],Pue={class:"flex flex-1 items-center gap-2"},Oue={class:"join flex-1"},Due=it({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{_h.value.forEach(n=>{aS(n.id)})};return(n,r)=>(X(),te("div",{class:ot(N(In)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap"))},[se(xue),N(Xc)?(X(),te("div",{key:0,class:ot(N(In)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("div",Eue,[st(ie(n.$t("sortBy"))+" ",1),L("div",Aue,[gt(L("select",{class:"join-item select select-bordered select-sm block flex-1","onUpdate:modelValue":r[0]||(r[0]=i=>at(M_)?M_.value=i:null)},[(X(!0),te(Ye,null,ln(Object.values(N(ji)),i=>(X(),te("option",{key:i,value:i},ie(n.$t(i)||i),9,Iue))),128))],512),[[Vr,N(M_)]]),L("button",{class:"btn join-item btn-sm",onClick:r[1]||(r[1]=i=>L_.value=N(L_)===N(Wc).ASC?N(Wc).DESC:N(Wc).ASC)},[N(L_)===N(Wc).ASC?(X(),Tt(N(dm),{key:0,class:"h-4 w-4"})):(X(),Tt(N(Wb),{key:1,class:"h-4 w-4"}))])])])],2)):yt("",!0),L("div",{class:ot(N(In)("relative flex w-full items-center gap-1",n.horizontal&&"md:w-auto"))},[st(ie(n.$t("quickFilter"))+" ",1),gt(L("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[2]||(r[2]=i=>at(D_)?D_.value=i:null)},null,512),[[ar,N(D_)]]),gt(L("input",{type:"text",class:ot(["input input-sm input-bordered w-0 flex-1",n.horizontal&&"md:w-48"]),"onUpdate:modelValue":r[3]||(r[3]=i=>at(kv)?kv.value=i:null)},null,2),[[sr,N(kv)]]),L("div",{class:ot(`tooltip ${n.horizontal?"tooltip-left md:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[se(N(KI),{class:"h-8 w-6 px-1 py-2"})],10,Rue)],2),n.horizontal?yt("",!0):(X(),Tt(BN,{key:1})),L("div",Pue,[L("div",Oue,[n.horizontal?(X(),Tt(BN,{key:0,class:"w-32 sm:w-40"})):yt("",!0),se(Sm,{modelValue:N(Fv),"onUpdate:modelValue":r[4]||(r[4]=i=>at(Fv)?Fv.value=i:null),class:"join-item min-w-32"},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:r[5]||(r[5]=i=>N_.value=!N(N_))},[(X(),Tt($a(N(N_)?N(xB):N(wB)),{class:"h-4 w-4"}))])]),L("button",{class:"btn btn-circle btn-sm",onClick:t},[se(N(pm),{class:"h-4 w-4"})])])],2))}}),cS=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},IU=cS(Due,[["__scopeId","data-v-e6c68f98"]]),$1=ke([]),Qd=ke(""),$_=ke(!1),B_=It("config/log-level",jc.Info);let r0,B1=[];const Mue=$r.throttle(()=>{$1.value=B1.concat($1.value).slice(0,E_.value),B1=[]},500),eA=[],Lue=()=>{eA.length=0;for(const e in To.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");eA.push([t,`${e} (${To.value[e]}) :`])}};Vt(To,()=>{Lue()},{immediate:!0});const tA=()=>{r0==null||r0(),$1.value=[],B1=[];let e=1;const t=yae({level:B_.value}),n=Vt(t.data,r=>{if(r){if($_.value){e++;return}for(const[i,o]of eA)r.payload=r.payload.replace(i,o);B1.unshift({...r,time:new Date().valueOf(),seq:e++}),Mue()}});r0=()=>{n(),t.close()}},Nue=["value"],RU=it({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(X(),te("div",null,[L("div",{class:ot(N(In)("join w-full p-2",t.horizontal&&"max-w-screen-sm"))},[gt(L("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>at(B_)?B_.value=r:null),onChange:n[1]||(n[1]=(...r)=>N(tA)&&N(tA)(...r))},[(X(!0),te(Ye,null,ln(Object.values(N(jc)),r=>(X(),te("option",{key:r,value:r},ie(r),9,Nue))),128))],544),[[Vr,N(B_)]]),se(Sm,{type:"text",modelValue:N(Qd),"onUpdate:modelValue":n[2]||(n[2]=r=>at(Qd)?Qd.value=r:null)},null,8,["modelValue"]),L("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>$_.value=!N($_))},[(X(),Tt($a(N($_)?N(xB):N(wB)),{class:"h-4 w-4"}))])],2)]))}}),nA=Gee("collapsedBus"),Xr=ke({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}}),T2=async()=>{Xr.value=(await dae()).data},V_=async e=>{await hae(e),T2()},PU=ke(Ef.PROXIES),OU=Le(()=>{var t;if(PU.value===Ef.PROVIDER)return Ig.value.map(n=>n.name);const e=w_.value?UE.value:UE.value.filter(n=>{var r;return((r=Or.value[n])==null?void 0:r.hidden)!==!0});return ws.value&&__.value&&Or.value[Gc]?[...e,Gc]:!ws.value&&((t=Xr.value)==null?void 0:t.mode.toLocaleUpperCase())===Gc&&Or.value[Gc]?[Gc]:e}),kue=Le(()=>Rv.value&&OU.value.length>1),Pg=()=>({proxiesTabShow:PU,renderGroups:OU,hasTwoColumns:kue}),DU=it({name:"ProxiesCtrl",props:{horizontal:{type:Boolean,default:!1}},setup(e){const{t}=Do(),{proxiesTabShow:n}=Pg(),r=ke(!1),i=ke(!1),o=ke(!1),a=async()=>{if(!r.value){r.value=!0;try{await Promise.all(Ig.value.map(v=>kV(v.name))),await Ha(),r.value=!1}catch{await Ha(),r.value=!1}}},s=Le(()=>Ig.value.length>0),l=Le(()=>{var v,m;return((v=Xr.value)==null?void 0:v["mode-list"])||((m=Xr.value)==null?void 0:m.modes)||["direct","rule","global"]}),u=v=>{const m=v.target.value;V_({mode:m})},c=async()=>{if(!i.value){i.value=!0;try{await Bae(),i.value=!1}catch{i.value=!1}}},{renderGroups:f}=Pg(),d=Le(()=>f.value.some(v=>b_.value[v])),h=()=>{nA.emit({open:!d.value})};return()=>{const v=se("div",{role:"tablist",class:"tabs-boxed tabs tabs-sm"},[Object.values(Ef).map(C=>se("a",{role:"tab",key:C,class:["tab",n.value===C&&"tab-active"],onClick:()=>n.value=C},[t(C)]))]),m=se(Ye,null,[n.value===Ef.PROVIDER&&se("button",{class:In("btn btn-sm"),onClick:a},[r.value?se("span",{class:"loading loading-dots loading-md"},null):t("updateAllProviders")])]),_=gt(se("select",{class:["select select-bordered select-sm min-w-24",e.horizontal?"inline-block max-md:flex-1":"w-0 flex-1"],"onUpdate:modelValue":C=>Xr.value.mode=C,onChange:u},[l.value.map(C=>se("option",{key:C,value:C},[t(C.toLowerCase())||C]))]),[[Vr,Xr.value.mode]]),y=gt(se("select",{class:["select select-bordered select-sm",e.horizontal&&!_E.value?"inline-block":"w-0 flex-1"],"onUpdate:modelValue":C=>bE.value=C},[Object.values(du).map(C=>se("option",{key:C,value:C},[t(C)]))]),[[Vr,bE.value]]),b=se("div",{class:"flex items-center gap-1 text-sm"},[se("span",{class:"shrink-0"},[t("unavailableProxy")]),gt(se("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":C=>SE.value=C},null),[[ar,SE.value]])]),S=se("button",{class:In("btn btn-circle btn-sm"),onClick:c},[i.value?se("span",{class:"loading loading-spinner loading-sm"},null):se(hm,{class:"h-4 w-4"},null)]),w=se("button",{class:In("btn btn-circle btn-sm"),onClick:h},[d.value?se(lee,{class:"h-4 w-4"},null):se(see,{class:"h-4 w-4"},null)]);if(e.horizontal){if(_E.value){const C=se(Ye,null,[se("button",{class:In("btn btn-circle btn-sm"),onClick:()=>o.value=!0},[se(_ee,{class:"h-4 w-4"},null)]),se(y2,{modelValue:o.value,"onUpdate:modelValue":T=>o.value=T},{default:()=>[se("div",{class:"flex flex-col gap-4 p-2"},[se("div",{class:"flex items-center gap-2 text-sm"},[t("sortBy"),y]),se("div",{class:"flex items-center gap-2 text-sm"},[b])])]})]);return se("div",{class:"flex flex-col gap-2 p-2"},[s.value&&se("div",{class:"flex gap-2"},[v,m]),se("div",{class:"flex w-full gap-2"},[_,C,w,S])])}return se("div",{class:"flex gap-2 p-2"},[s.value&&v,m,_,y,b,se("div",{class:"flex-1"},null),w,S])}return se("div",{class:"flex flex-col gap-2 p-2"},[m,s.value&&v,se("div",{class:"flex gap-2"},[_,w,S]),se("div",{class:"flex gap-2"},[y,b])])}}}),Bv=ke(ph.RULES),Og=ke([]),qc=ke([]),gf=ke(""),i0=Le(()=>gf.value===""?Og.value:Og.value.filter(e=>[e.type.toLowerCase(),e.payload.toLowerCase(),e.proxy.toLowerCase()].some(t=>t.includes(gf.value.toLowerCase())))),Fue=Le(()=>gf.value===""?qc.value:qc.value.filter(e=>[e.name.toLowerCase(),e.behavior.toLowerCase(),e.vehicleType.toLowerCase()].some(t=>t.includes(gf.value.toLowerCase())))),Dg=async()=>{const{data:e}=await cae(),{data:t}=await fae();Og.value=e.rules,qc.value=Object.values(t.providers)},$ue={role:"tablist",class:"tabs-boxed tabs tabs-sm"},Bue=["onClick"],Vue={key:0,class:"flex flex-col gap-2"},Uue={key:0,class:"loading loading-dots loading-md"},MU=it({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=ke(!1),{showNotification:n}=Fh(),r=async()=>{if(!t.value){t.value=!0;try{let i=0;await Promise.all(qc.value.map(o=>FV(o.name).then(()=>{i++,n({content:"updateFinishedTip",params:{number:`${i}/${qc.value.length}`},type:i===qc.value.length?"alert-success":"alert-warning"})}))),await Dg(),t.value=!1}catch{await Dg(),t.value=!1}}};return(i,o)=>(X(),te("div",{class:ot(N(In)("flex flex-col gap-2 p-2",`${i.horizontal&&"flex-row"}`))},[N(qc).length?(X(),te("div",{key:0,class:ot(N(In)("flex flex-col-reverse gap-2",i.horizontal&&"flex-row"))},[L("div",$ue,[(X(!0),te(Ye,null,ln(N(ph),a=>(X(),te("a",{role:"tab",class:ot(["tab",{"tab-active":N(Bv)===a}]),key:a,onClick:s=>Bv.value=a},ie(i.$t(a)),11,Bue))),128))]),N(Bv)===N(ph).PROVIDER?(X(),te("div",Vue,[L("button",{class:ot(N(In)("btn btn-sm")),onClick:r},[t.value?(X(),te("span",Uue)):(X(),te(Ye,{key:1},[st(ie(i.$t("updateAllProviders")),1)],64))],2)])):yt("",!0)],2)):yt("",!0),se(Sm,{class:"w-full max-w-96",modelValue:N(gf),"onUpdate:modelValue":o[0]||(o[0]=a=>at(gf)?gf.value=a:null)},null,8,["modelValue"])],2))}}),Hue=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,Gue="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",zue={class:"flex items-center gap-1"},Wue=["src"],E2=it({__name:"BackendVersion",setup(e){return(t,n)=>(X(),te("div",zue,[st(ie(t.$t("version"))+": ",1),L("img",{src:N(ws)?N(Gue):N(Hue),class:"h-4 w-4 rounded-sm"},null,8,Wue),st(" "+ie(N(yh)),1)]))}});var Un=(e=>(e.CONNECTIONS="connections",e.DOWNLOAD="download",e.DL_SPEED="dlSpeed",e.MEMORY_USAGE="memoryUsage",e.UPLOAD="upload",e.UL_SPEED="ulSpeed",e))(Un||{});const Bc=Le(()=>({connections:ds.value.length,memoryUsage:Gn(HV.value,{binary:!0}),download:Gn(BE.value),upload:Gn(VE.value),dlSpeed:Gn(GV.value)+"/s",ulSpeed:Gn(zV.value)+"/s"})),A2=it({__name:"StatisticsStats",props:{type:{}},setup(e){const t=e,n={overview:{list:"grid grid-cols-2 gap-2 rounded-lg bg-base-200/40 px-4 py-2 lg:grid-cols-6",item:"flex h-14 flex-col items-start justify-center gap-2 lg:h-24 lg:items-center",label:"text-sm lg:text-lg lg:font-bold",value:"text-xl"},settings:{list:"grid w-full grid-cols-3 gap-1 rounded-lg bg-base-200/40 p-3",item:"flex flex-col items-start",label:"text-sm text-base-content/70",value:"text-sm"},ctrl:{list:"grid w-full grid-cols-2 gap-1 rounded-lg",item:"flex gap-2 items-start",label:"text-sm",value:"text-sm"}},r={overview:[Un.CONNECTIONS,Un.MEMORY_USAGE,Un.DOWNLOAD,Un.DL_SPEED,Un.UPLOAD,Un.UL_SPEED],settings:[Un.CONNECTIONS,Un.DOWNLOAD,Un.DL_SPEED,Un.MEMORY_USAGE,Un.UPLOAD,Un.UL_SPEED],ctrl:[Un.CONNECTIONS,Un.MEMORY_USAGE,Un.DOWNLOAD,Un.DL_SPEED,Un.UPLOAD,Un.UL_SPEED]},i=Le(()=>n[t.type]),o=Le(()=>r[t.type]);return(a,s)=>(X(),te("div",{class:ot(i.value.list)},[(X(!0),te(Ye,null,ln(o.value,l=>(X(),te("div",{key:l,class:ot(i.value.item)},[L("div",{class:ot(i.value.label)},ie(a.$t(l)),3),L("div",{class:ot(i.value.value)},ie(N(Bc)[l]),3)],2))),128))],2))}}),jue={class:"join flex"},Xue=["value"],LU=it({__name:"BackendSwitch",setup(e){const t=Le(()=>oa.value.map(r=>({label:Nu(r),value:r.uuid}))),n=()=>{vi.value=null,Ga.push({name:un.setup})};return(r,i)=>(X(),te("div",jue,[gt(L("select",{class:"join-item select select-bordered select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>at(vi)?vi.value=o:null)},[(X(!0),te(Ye,null,ln(t.value,o=>(X(),te("option",{key:o.value,value:o.value},ie(o.label),9,Xue))),128))],512),[[Vr,N(vi)]]),L("button",{class:"btn join-item btn-sm",onClick:n},[se(N(CB),{class:"h-4 w-4"})])]))}}),Yue={class:"flex flex-col gap-2 p-2 text-sm"},Kue={class:"flex"},Zue=it({__name:"CommonCtrl",setup(e){return(t,n)=>(X(),te("div",Yue,[se(A2,{type:"ctrl"}),se(E2),L("div",Kue,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>us.value=!0)},[se(N(oee),{class:"h-5 w-5"})]),n[1]||(n[1]=L("div",{class:"flex-1"},null,-1)),se(LU)])]))}});var ro="top",da="bottom",ha="right",io="left",I2="auto",wm=[ro,da,ha,io],Sh="start",Mg="end",que="clippingParents",NU="viewport",Op="popper",Jue="reference",VN=wm.reduce(function(e,t){return e.concat([t+"-"+Sh,t+"-"+Mg])},[]),kU=[].concat(wm,[I2]).reduce(function(e,t){return e.concat([t,t+"-"+Sh,t+"-"+Mg])},[]),Que="beforeRead",ece="read",tce="afterRead",nce="beforeMain",rce="main",ice="afterMain",oce="beforeWrite",ace="write",sce="afterWrite",lce=[Que,ece,tce,nce,rce,ice,oce,ace,sce];function xs(e){return e?(e.nodeName||"").toLowerCase():null}function No(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rf(e){var t=No(e).Element;return e instanceof t||e instanceof Element}function sa(e){var t=No(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function R2(e){if(typeof ShadowRoot>"u")return!1;var t=No(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uce(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];!sa(o)||!xs(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 cce(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},{});!sa(i)||!xs(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const FU={name:"applyStyles",enabled:!0,phase:"write",fn:uce,effect:cce,requires:["computeStyles"]};function vs(e){return e.split("-")[0]}var mf=Math.max,V1=Math.min,wh=Math.round;function rA(){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 $U(){return!/^((?!chrome|android).)*safari/i.test(rA())}function xh(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&sa(e)&&(i=e.offsetWidth>0&&wh(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wh(r.height)/e.offsetHeight||1);var a=Rf(e)?No(e):window,s=a.visualViewport,l=!$U()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,c=(r.top+(l&&s?s.offsetTop:0))/o,f=r.width/i,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function P2(e){var t=xh(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 BU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&R2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xl(e){return No(e).getComputedStyle(e)}function fce(e){return["table","td","th"].indexOf(xs(e))>=0}function Zu(e){return((Rf(e)?e.ownerDocument:e.document)||window.document).documentElement}function fS(e){return xs(e)==="html"?e:e.assignedSlot||e.parentNode||(R2(e)?e.host:null)||Zu(e)}function UN(e){return!sa(e)||xl(e).position==="fixed"?null:e.offsetParent}function dce(e){var t=/firefox/i.test(rA()),n=/Trident/i.test(rA());if(n&&sa(e)){var r=xl(e);if(r.position==="fixed")return null}var i=fS(e);for(R2(i)&&(i=i.host);sa(i)&&["html","body"].indexOf(xs(i))<0;){var o=xl(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 xm(e){for(var t=No(e),n=UN(e);n&&fce(n)&&xl(n).position==="static";)n=UN(n);return n&&(xs(n)==="html"||xs(n)==="body"&&xl(n).position==="static")?t:n||dce(e)||t}function O2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vv(e,t,n){return mf(e,V1(t,n))}function hce(e,t,n){var r=Vv(e,t,n);return r>n?n:r}function VU(){return{top:0,right:0,bottom:0,left:0}}function UU(e){return Object.assign({},VU(),e)}function HU(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var pce=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,UU(typeof t!="number"?t:HU(t,wm))};function vce(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=vs(n.placement),l=O2(s),u=[io,ha].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=pce(i.padding,n),d=P2(o),h=l==="y"?ro:io,v=l==="y"?da:ha,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],_=a[l]-n.rects.reference[l],y=xm(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=m/2-_/2,w=f[h],C=b-d[c]-f[v],T=b/2-d[c]/2+S,E=Vv(w,T,C),R=l;n.modifiersData[r]=(t={},t[R]=E,t.centerOffset=E-T,t)}}function gce(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)||BU(t.elements.popper,i)&&(t.elements.arrow=i))}const mce={name:"arrow",enabled:!0,phase:"main",fn:vce,effect:gce,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ch(e){return e.split("-")[1]}var yce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _ce(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wh(n*i)/i||0,y:wh(r*i)/i||0}}function HN(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,d=a.x,h=d===void 0?0:d,v=a.y,m=v===void 0?0:v,_=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=_.x,m=_.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),S=io,w=ro,C=window;if(u){var T=xm(n),E="clientHeight",R="clientWidth";if(T===No(n)&&(T=Zu(n),xl(T).position!=="static"&&s==="absolute"&&(E="scrollHeight",R="scrollWidth")),T=T,i===ro||(i===io||i===ha)&&o===Mg){w=da;var I=f&&T===C&&C.visualViewport?C.visualViewport.height:T[E];m-=I-r.height,m*=l?1:-1}if(i===io||(i===ro||i===da)&&o===Mg){S=ha;var O=f&&T===C&&C.visualViewport?C.visualViewport.width:T[R];h-=O-r.width,h*=l?1:-1}}var P=Object.assign({position:s},u&&yce),M=c===!0?_ce({x:h,y:m},No(n)):{x:h,y:m};if(h=M.x,m=M.y,l){var F;return Object.assign({},P,(F={},F[w]=b?"0":"",F[S]=y?"0":"",F.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",F))}return Object.assign({},P,(t={},t[w]=b?m+"px":"",t[S]=y?h+"px":"",t.transform="",t))}function bce(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:vs(t.placement),variation:Ch(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,HN(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,HN(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 Sce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bce,data:{}};var o0={passive:!0};function wce(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=No(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,o0)}),s&&l.addEventListener("resize",n.update,o0),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,o0)}),s&&l.removeEventListener("resize",n.update,o0)}}const xce={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wce,data:{}};var Cce={left:"right",right:"left",bottom:"top",top:"bottom"};function U_(e){return e.replace(/left|right|bottom|top/g,function(t){return Cce[t]})}var Tce={start:"end",end:"start"};function GN(e){return e.replace(/start|end/g,function(t){return Tce[t]})}function D2(e){var t=No(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function M2(e){return xh(Zu(e)).left+D2(e).scrollLeft}function Ece(e,t){var n=No(e),r=Zu(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=$U();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+M2(e),y:l}}function Ace(e){var t,n=Zu(e),r=D2(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=mf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=mf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+M2(e),l=-r.scrollTop;return xl(i||n).direction==="rtl"&&(s+=mf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function L2(e){var t=xl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function GU(e){return["html","body","#document"].indexOf(xs(e))>=0?e.ownerDocument.body:sa(e)&&L2(e)?e:GU(fS(e))}function Uv(e,t){var n;t===void 0&&(t=[]);var r=GU(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=No(r),a=i?[o].concat(o.visualViewport||[],L2(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Uv(fS(a)))}function iA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ice(e,t){var n=xh(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 zN(e,t,n){return t===NU?iA(Ece(e,n)):Rf(t)?Ice(t,n):iA(Ace(Zu(e)))}function Rce(e){var t=Uv(fS(e)),n=["absolute","fixed"].indexOf(xl(e).position)>=0,r=n&&sa(e)?xm(e):e;return Rf(r)?t.filter(function(i){return Rf(i)&&BU(i,r)&&xs(i)!=="body"}):[]}function Pce(e,t,n,r){var i=t==="clippingParents"?Rce(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var c=zN(e,u,r);return l.top=mf(c.top,l.top),l.right=V1(c.right,l.right),l.bottom=V1(c.bottom,l.bottom),l.left=mf(c.left,l.left),l},zN(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 zU(e){var t=e.reference,n=e.element,r=e.placement,i=r?vs(r):null,o=r?Ch(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case ro:l={x:a,y:t.y-n.height};break;case da:l={x:a,y:t.y+t.height};break;case ha:l={x:t.x+t.width,y:s};break;case io:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?O2(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Sh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Mg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Lg(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?que:s,u=n.rootBoundary,c=u===void 0?NU:u,f=n.elementContext,d=f===void 0?Op:f,h=n.altBoundary,v=h===void 0?!1:h,m=n.padding,_=m===void 0?0:m,y=UU(typeof _!="number"?_:HU(_,wm)),b=d===Op?Jue:Op,S=e.rects.popper,w=e.elements[v?b:d],C=Pce(Rf(w)?w:w.contextElement||Zu(e.elements.popper),l,c,a),T=xh(e.elements.reference),E=zU({reference:T,element:S,strategy:"absolute",placement:i}),R=iA(Object.assign({},S,E)),I=d===Op?R:T,O={top:C.top-I.top+y.top,bottom:I.bottom-C.bottom+y.bottom,left:C.left-I.left+y.left,right:I.right-C.right+y.right},P=e.modifiersData.offset;if(d===Op&&P){var M=P[i];Object.keys(O).forEach(function(F){var $=[ha,da].indexOf(F)>=0?1:-1,z=[ro,da].indexOf(F)>=0?"y":"x";O[F]+=M[z]*$})}return O}function Oce(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?kU:l,c=Ch(r),f=c?s?VN:VN.filter(function(v){return Ch(v)===c}):wm,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,m){return v[m]=Lg(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[vs(m)],v},{});return Object.keys(h).sort(function(v,m){return h[v]-h[m]})}function Dce(e){if(vs(e)===I2)return[];var t=U_(e);return[GN(e),t,GN(t)]}function Mce(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,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,m=n.allowedAutoPlacements,_=t.options.placement,y=vs(_),b=y===_,S=l||(b||!v?[U_(_)]:Dce(_)),w=[_].concat(S).reduce(function(ze,Me){return ze.concat(vs(Me)===I2?Oce(t,{placement:Me,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:m}):Me)},[]),C=t.rects.reference,T=t.rects.popper,E=new Map,R=!0,I=w[0],O=0;O=0,z=$?"width":"height",B=Lg(t,{placement:P,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),K=$?F?ha:io:F?da:ro;C[z]>T[z]&&(K=U_(K));var j=U_(K),le=[];if(o&&le.push(B[M]<=0),s&&le.push(B[K]<=0,B[j]<=0),le.every(function(ze){return ze})){I=P,R=!1;break}E.set(P,le)}if(R)for(var me=v?3:1,ge=function(Me){var je=w.find(function(fe){var Ee=E.get(fe);if(Ee)return Ee.slice(0,Me).every(function(Se){return Se})});if(je)return I=je,"break"},De=me;De>0;De--){var Fe=ge(De);if(Fe==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const Lce={name:"flip",enabled:!0,phase:"main",fn:Mce,requiresIfExists:["offset"],data:{_skip:!1}};function WN(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 jN(e){return[ro,ha,da,io].some(function(t){return e[t]>=0})}function Nce(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Lg(t,{elementContext:"reference"}),s=Lg(t,{altBoundary:!0}),l=WN(a,r),u=WN(s,i,o),c=jN(l),f=jN(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 kce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Nce};function Fce(e,t,n){var r=vs(e),i=[io,ro].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,[io,ha].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function $ce(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=kU.reduce(function(c,f){return c[f]=Fce(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 Bce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$ce};function Vce(e){var t=e.state,n=e.name;t.modifiersData[n]=zU({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Uce={name:"popperOffsets",enabled:!0,phase:"read",fn:Vce,data:{}};function Hce(e){return e==="x"?"y":"x"}function Gce(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,d=n.tether,h=d===void 0?!0:d,v=n.tetherOffset,m=v===void 0?0:v,_=Lg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=vs(t.placement),b=Ch(t.placement),S=!b,w=O2(y),C=Hce(w),T=t.modifiersData.popperOffsets,E=t.rects.reference,R=t.rects.popper,I=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,O=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(T){if(o){var F,$=w==="y"?ro:io,z=w==="y"?da:ha,B=w==="y"?"height":"width",K=T[w],j=K+_[$],le=K-_[z],me=h?-R[B]/2:0,ge=b===Sh?E[B]:R[B],De=b===Sh?-R[B]:-E[B],Fe=t.elements.arrow,ze=h&&Fe?P2(Fe):{width:0,height:0},Me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:VU(),je=Me[$],fe=Me[z],Ee=Vv(0,E[B],ze[B]),Se=S?E[B]/2-me-Ee-je-O.mainAxis:ge-Ee-je-O.mainAxis,Ce=S?-E[B]/2+me+Ee+fe+O.mainAxis:De+Ee+fe+O.mainAxis,Oe=t.elements.arrow&&xm(t.elements.arrow),Be=Oe?w==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,H=(F=P==null?void 0:P[w])!=null?F:0,G=K+Se-H-Be,ue=K+Ce-H,we=Vv(h?V1(j,G):j,K,h?mf(le,ue):le);T[w]=we,M[w]=we-K}if(s){var ve,U=w==="x"?ro:io,W=w==="x"?da:ha,q=T[C],de=C==="y"?"height":"width",_e=q+_[U],Pe=q-_[W],Z=[ro,io].indexOf(y)!==-1,he=(ve=P==null?void 0:P[C])!=null?ve:0,Ve=Z?_e:q-E[de]-R[de]-he+O.altAxis,Ke=Z?q+E[de]+R[de]-he-O.altAxis:Pe,pt=h&&Z?hce(Ve,q,Ke):Vv(h?Ve:_e,q,h?Ke:Pe);T[C]=pt,M[C]=pt-q}t.modifiersData[r]=M}}const zce={name:"preventOverflow",enabled:!0,phase:"main",fn:Gce,requiresIfExists:["offset"]};function Wce(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jce(e){return e===No(e)||!sa(e)?D2(e):Wce(e)}function Xce(e){var t=e.getBoundingClientRect(),n=wh(t.width)/e.offsetWidth||1,r=wh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Yce(e,t,n){n===void 0&&(n=!1);var r=sa(t),i=sa(t)&&Xce(t),o=Zu(t),a=xh(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((xs(t)!=="body"||L2(o))&&(s=jce(t)),sa(t)?(l=xh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=M2(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Kce(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 Zce(e){var t=Kce(e);return lce.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function qce(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Jce(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 XN={placement:"bottom",modifiers:[],strategy:"absolute"};function YN(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function KU(e,t){return typeof e=="function"?e.apply(void 0,t):e}function KN(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function ife(e){return e.split(/\s+/).filter(Boolean)}function Nd(e){return[].concat(e)}function ZN(e,t){e.indexOf(t)===-1&&e.push(t)}function ofe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function afe(e){return e.split("-")[0]}function U1(e){return[].slice.call(e)}function qN(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Hv(){return document.createElement("div")}function dS(e){return["Element","Fragment"].some(function(t){return N2(e,t)})}function sfe(e){return N2(e,"NodeList")}function lfe(e){return N2(e,"MouseEvent")}function ufe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function cfe(e){return dS(e)?[e]:sfe(e)?U1(e):Array.isArray(e)?e:U1(document.querySelectorAll(e))}function pC(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function JN(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function ffe(e){var t,n=Nd(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function dfe(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=afe(a.placement),c=a.modifiersData.offset;if(!c)return!0;var f=u==="bottom"?c.top.y:0,d=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+f>l,_=r-o.bottom-d>l,y=o.left-n+h>l,b=n-o.right-v>l;return m||_||y||b})}function vC(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){e[r](i,n)})}function QN(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 ls={isTouch:!1},ek=0;function hfe(){ls.isTouch||(ls.isTouch=!0,window.performance&&document.addEventListener("mousemove",ZU))}function ZU(){var e=performance.now();e-ek<20&&(ls.isTouch=!1,document.removeEventListener("mousemove",ZU)),ek=e}function pfe(){var e=document.activeElement;if(ufe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function vfe(){document.addEventListener("touchstart",hfe,Vc),window.addEventListener("blur",pfe)}var gfe=typeof window<"u"&&typeof document<"u",mfe=gfe?!!window.msCrypto:!1,yfe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_fe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Na=Object.assign({appendTo:YU,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},yfe,_fe),bfe=Object.keys(Na),Sfe=function(t){var n=Object.keys(t);n.forEach(function(r){Na[r]=t[r]})};function qU(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=Na[o])!=null?s:a}return r},{});return Object.assign({},e,n)}function wfe(e,t){var n=t?Object.keys(qU(Object.assign({},Na,{plugins:t}))):bfe,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 tk(e,t){var n=Object.assign({},t,{content:KU(t.content,[e])},t.ignoreAttributes?{}:wfe(e,t.plugins));return n.aria=Object.assign({},Na.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 xfe=function(){return"innerHTML"};function oA(e,t){e[xfe()]=t}function nk(e){var t=Hv();return e===!0?t.className=jU:(t.className=XU,dS(e)?t.appendChild(e):oA(t,e)),t}function rk(e,t){dS(t.content)?(oA(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?oA(e,t.content):e.textContent=t.content)}function aA(e){var t=e.firstElementChild,n=U1(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(WU)}),arrow:n.find(function(r){return r.classList.contains(jU)||r.classList.contains(XU)}),backdrop:n.find(function(r){return r.classList.contains(rfe)})}}function JU(e){var t=Hv(),n=Hv();n.className=nfe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Hv();r.className=WU,r.setAttribute("data-state","hidden"),rk(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(o,a){var s=aA(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)&&rk(u,e.props),a.arrow?c?o.arrow!==a.arrow&&(l.removeChild(c),l.appendChild(nk(a.arrow))):l.appendChild(nk(a.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:i}}JU.$$tippy=!0;var Cfe=1,a0=[],gC=[];function Tfe(e,t){var n=tk(e,Object.assign({},Na,qU(qN(t)))),r,i,o,a=!1,s=!1,l=!1,u=!1,c,f,d,h=[],v=KN(G,n.interactiveDebounce),m,_=Cfe++,y=null,b=ofe(n.plugins),S={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},w={id:_,reference:e,popper:Hv(),popperInstance:y,props:n,state:S,plugins:b,clearDelayTimeouts:Ve,setProps:Ke,setContent:pt,show:ee,hide:oe,hideWithInteractivity:pe,enable:Z,disable:he,unmount:Te,destroy:He};if(!n.render)return w;var C=n.render(w),T=C.popper,E=C.onUpdate;T.setAttribute("data-tippy-root",""),T.id="tippy-"+w.id,w.popper=T,e._tippy=w,T._tippy=w;var R=b.map(function(re){return re.fn(w)}),I=e.hasAttribute("aria-expanded");return Oe(),me(),K(),j("onCreate",[w]),n.showOnCreate&&_e(),T.addEventListener("mouseenter",function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()}),T.addEventListener("mouseleave",function(){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&$().addEventListener("mousemove",v)}),w;function O(){var re=w.props.touch;return Array.isArray(re)?re:[re,0]}function P(){return O()[0]==="hold"}function M(){var re;return!!((re=w.props.render)!=null&&re.$$tippy)}function F(){return m||e}function $(){var re=F().parentNode;return re?ffe(re):document}function z(){return aA(T)}function B(re){return w.state.isMounted&&!w.state.isVisible||ls.isTouch||c&&c.type==="focus"?0:hC(w.props.delay,re?0:1,Na.delay)}function K(re){re===void 0&&(re=!1),T.style.pointerEvents=w.props.interactive&&!re?"":"none",T.style.zIndex=""+w.props.zIndex}function j(re,Ae,$e){if($e===void 0&&($e=!0),R.forEach(function(Ge){Ge[re]&&Ge[re].apply(Ge,Ae)}),$e){var et;(et=w.props)[re].apply(et,Ae)}}function le(){var re=w.props.aria;if(re.content){var Ae="aria-"+re.content,$e=T.id,et=Nd(w.props.triggerTarget||e);et.forEach(function(Ge){var We=Ge.getAttribute(Ae);if(w.state.isVisible)Ge.setAttribute(Ae,We?We+" "+$e:$e);else{var tt=We&&We.replace($e,"").trim();tt?Ge.setAttribute(Ae,tt):Ge.removeAttribute(Ae)}})}}function me(){if(!(I||!w.props.aria.expanded)){var re=Nd(w.props.triggerTarget||e);re.forEach(function(Ae){w.props.interactive?Ae.setAttribute("aria-expanded",w.state.isVisible&&Ae===F()?"true":"false"):Ae.removeAttribute("aria-expanded")})}}function ge(){$().removeEventListener("mousemove",v),a0=a0.filter(function(re){return re!==v})}function De(re){if(!(ls.isTouch&&(l||re.type==="mousedown"))){var Ae=re.composedPath&&re.composedPath()[0]||re.target;if(!(w.props.interactive&&QN(T,Ae))){if(Nd(w.props.triggerTarget||e).some(function($e){return QN($e,Ae)})){if(ls.isTouch||w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else j("onClickOutside",[w,re]);w.props.hideOnClick===!0&&(w.clearDelayTimeouts(),w.hide(),s=!0,setTimeout(function(){s=!1}),w.state.isMounted||je())}}}function Fe(){l=!0}function ze(){l=!1}function Me(){var re=$();re.addEventListener("mousedown",De,!0),re.addEventListener("touchend",De,Vc),re.addEventListener("touchstart",ze,Vc),re.addEventListener("touchmove",Fe,Vc)}function je(){var re=$();re.removeEventListener("mousedown",De,!0),re.removeEventListener("touchend",De,Vc),re.removeEventListener("touchstart",ze,Vc),re.removeEventListener("touchmove",Fe,Vc)}function fe(re,Ae){Se(re,function(){!w.state.isVisible&&T.parentNode&&T.parentNode.contains(T)&&Ae()})}function Ee(re,Ae){Se(re,Ae)}function Se(re,Ae){var $e=z().box;function et(Ge){Ge.target===$e&&(vC($e,"remove",et),Ae())}if(re===0)return Ae();vC($e,"remove",f),vC($e,"add",et),f=et}function Ce(re,Ae,$e){$e===void 0&&($e=!1);var et=Nd(w.props.triggerTarget||e);et.forEach(function(Ge){Ge.addEventListener(re,Ae,$e),h.push({node:Ge,eventType:re,handler:Ae,options:$e})})}function Oe(){P()&&(Ce("touchstart",H,{passive:!0}),Ce("touchend",ue,{passive:!0})),ife(w.props.trigger).forEach(function(re){if(re!=="manual")switch(Ce(re,H),re){case"mouseenter":Ce("mouseleave",ue);break;case"focus":Ce(mfe?"focusout":"blur",we);break;case"focusin":Ce("focusout",we);break}})}function Be(){h.forEach(function(re){var Ae=re.node,$e=re.eventType,et=re.handler,Ge=re.options;Ae.removeEventListener($e,et,Ge)}),h=[]}function H(re){var Ae,$e=!1;if(!(!w.state.isEnabled||ve(re)||s)){var et=((Ae=c)==null?void 0:Ae.type)==="focus";c=re,m=re.currentTarget,me(),!w.state.isVisible&&lfe(re)&&a0.forEach(function(Ge){return Ge(re)}),re.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||a)&&w.props.hideOnClick!==!1&&w.state.isVisible?$e=!0:_e(re),re.type==="click"&&(a=!$e),$e&&!et&&Pe(re)}}function G(re){var Ae=re.target,$e=F().contains(Ae)||T.contains(Ae);if(!(re.type==="mousemove"&&$e)){var et=de().concat(T).map(function(Ge){var We,tt=Ge._tippy,Pt=(We=tt.popperInstance)==null?void 0:We.state;return Pt?{popperRect:Ge.getBoundingClientRect(),popperState:Pt,props:n}:null}).filter(Boolean);dfe(et,re)&&(ge(),Pe(re))}}function ue(re){var Ae=ve(re)||w.props.trigger.indexOf("click")>=0&&a;if(!Ae){if(w.props.interactive){w.hideWithInteractivity(re);return}Pe(re)}}function we(re){w.props.trigger.indexOf("focusin")<0&&re.target!==F()||w.props.interactive&&re.relatedTarget&&T.contains(re.relatedTarget)||Pe(re)}function ve(re){return ls.isTouch?P()!==re.type.indexOf("touch")>=0:!1}function U(){W();var re=w.props,Ae=re.popperOptions,$e=re.placement,et=re.offset,Ge=re.getReferenceClientRect,We=re.moveTransition,tt=M()?aA(T).arrow:null,Pt=Ge?{getBoundingClientRect:Ge,contextElement:Ge.contextElement||F()}:e,Dt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Rn){var yr=Rn.state;if(M()){var Wf=z(),Pl=Wf.box;["placement","reference-hidden","escaped"].forEach(function(Xa){Xa==="placement"?Pl.setAttribute("data-placement",yr.placement):yr.attributes.popper["data-popper-"+Xa]?Pl.setAttribute("data-"+Xa,""):Pl.removeAttribute("data-"+Xa)}),yr.attributes.popper={}}}},Ln=[{name:"offset",options:{offset:et}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!We}},Dt];M()&&tt&&Ln.push({name:"arrow",options:{element:tt,padding:3}}),Ln.push.apply(Ln,(Ae==null?void 0:Ae.modifiers)||[]),w.popperInstance=tfe(Pt,T,Object.assign({},Ae,{placement:$e,onFirstUpdate:d,modifiers:Ln}))}function W(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function q(){var re=w.props.appendTo,Ae,$e=F();w.props.interactive&&re===YU||re==="parent"?Ae=$e.parentNode:Ae=KU(re,[$e]),Ae.contains(T)||Ae.appendChild(T),w.state.isMounted=!0,U()}function de(){return U1(T.querySelectorAll("[data-tippy-root]"))}function _e(re){w.clearDelayTimeouts(),re&&j("onTrigger",[w,re]),Me();var Ae=B(!0),$e=O(),et=$e[0],Ge=$e[1];ls.isTouch&&et==="hold"&&Ge&&(Ae=Ge),Ae?r=setTimeout(function(){w.show()},Ae):w.show()}function Pe(re){if(w.clearDelayTimeouts(),j("onUntrigger",[w,re]),!w.state.isVisible){je();return}if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(re.type)>=0&&a)){var Ae=B(!1);Ae?i=setTimeout(function(){w.state.isVisible&&w.hide()},Ae):o=requestAnimationFrame(function(){w.hide()})}}function Z(){w.state.isEnabled=!0}function he(){w.hide(),w.state.isEnabled=!1}function Ve(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function Ke(re){if(!w.state.isDestroyed){j("onBeforeUpdate",[w,re]),Be();var Ae=w.props,$e=tk(e,Object.assign({},Ae,qN(re),{ignoreAttributes:!0}));w.props=$e,Oe(),Ae.interactiveDebounce!==$e.interactiveDebounce&&(ge(),v=KN(G,$e.interactiveDebounce)),Ae.triggerTarget&&!$e.triggerTarget?Nd(Ae.triggerTarget).forEach(function(et){et.removeAttribute("aria-expanded")}):$e.triggerTarget&&e.removeAttribute("aria-expanded"),me(),K(),E&&E(Ae,$e),w.popperInstance&&(U(),de().forEach(function(et){requestAnimationFrame(et._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[w,re])}}function pt(re){w.setProps({content:re})}function ee(){var re=w.state.isVisible,Ae=w.state.isDestroyed,$e=!w.state.isEnabled,et=ls.isTouch&&!w.props.touch,Ge=hC(w.props.duration,0,Na.duration);if(!(re||Ae||$e||et)&&!F().hasAttribute("disabled")&&(j("onShow",[w],!1),w.props.onShow(w)!==!1)){if(w.state.isVisible=!0,M()&&(T.style.visibility="visible"),K(),Me(),w.state.isMounted||(T.style.transition="none"),M()){var We=z(),tt=We.box,Pt=We.content;pC([tt,Pt],0)}d=function(){var Ln;if(!(!w.state.isVisible||u)){if(u=!0,T.offsetHeight,T.style.transition=w.props.moveTransition,M()&&w.props.animation){var ga=z(),Rn=ga.box,yr=ga.content;pC([Rn,yr],Ge),JN([Rn,yr],"visible")}le(),me(),ZN(gC,w),(Ln=w.popperInstance)==null||Ln.forceUpdate(),j("onMount",[w]),w.props.animation&&M()&&Ee(Ge,function(){w.state.isShown=!0,j("onShown",[w])})}},q()}}function oe(){var re=!w.state.isVisible,Ae=w.state.isDestroyed,$e=!w.state.isEnabled,et=hC(w.props.duration,1,Na.duration);if(!(re||Ae||$e)&&(j("onHide",[w],!1),w.props.onHide(w)!==!1)){if(w.state.isVisible=!1,w.state.isShown=!1,u=!1,a=!1,M()&&(T.style.visibility="hidden"),ge(),je(),K(!0),M()){var Ge=z(),We=Ge.box,tt=Ge.content;w.props.animation&&(pC([We,tt],et),JN([We,tt],"hidden"))}le(),me(),w.props.animation?M()&&fe(et,w.unmount):w.unmount()}}function pe(re){$().addEventListener("mousemove",v),ZN(a0,v),v(re)}function Te(){w.state.isVisible&&w.hide(),w.state.isMounted&&(W(),de().forEach(function(re){re._tippy.unmount()}),T.parentNode&&T.parentNode.removeChild(T),gC=gC.filter(function(re){return re!==w}),w.state.isMounted=!1,j("onHidden",[w]))}function He(){w.state.isDestroyed||(w.clearDelayTimeouts(),w.unmount(),Be(),delete e._tippy,w.state.isDestroyed=!0,j("onDestroy",[w]))}}function Cm(e,t){t===void 0&&(t={});var n=Na.plugins.concat(t.plugins||[]);vfe();var r=Object.assign({},t,{plugins:n}),i=cfe(e),o=i.reduce(function(a,s){var l=s&&Tfe(s,r);return l&&a.push(l),a},[]);return dS(e)?o[0]:o}Cm.defaultProps=Na;Cm.setDefaultProps=Sfe;Cm.currentInput=ls;Object.assign({},FU,{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)}});Cm.setDefaultProps({render:JU});let mC,Ws=null;const Tm=()=>(mC||(mC=document.getElementById("app-content")),{showTip:(t,n,r={})=>{Ws==null||Ws.destroy(),Ws=Cm(t.target,{content:n,placement:"top",animation:"scale",appendTo:mC,allowHTML:!0,onHidden:()=>{Ws==null||Ws.destroy(),Ws=null},...r}),Ws.show()}});/*! ***************************************************************************** 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 sA=function(e,t){return sA=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])},sA(e,t)};function lt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var k2=12,Efe="sans-serif",Pf=k2+"px "+Efe,Afe=20,Ife=100,Rfe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Pfe(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l"u"&&typeof self<"u"?Mt.worker=!0:!Mt.hasGlobalWindow||"Deno"in window?(Mt.node=!0,Mt.svgSupported=!0):jfe(navigator.userAgent,Mt);function jfe(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),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var Xfe=".",cc="___EC__COMPONENT__CONTAINER___",aH="___EC__EXTENDED_CLASS___";function ps(e){var t={main:"",sub:""};if(e){var n=e.split(Xfe);t.main=n[0]||"",t.sub=n[1]||""}return t}function Yfe(e){Cl(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Kfe(e){return!!(e&&e[aH])}function U2(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return Zfe(r)?i=function(o){lt(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},kfe(i,this)),Ze(i.prototype,n),i[aH]=!0,i.extend=this.extend,i.superCall=Qfe,i.superApply=ede,i.superClass=r,i}}function Zfe(e){return Ut(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function sH(e,t){e.extend=t.extend}var qfe=Math.round(Math.random()*10);function Jfe(e){var t=["__\0is_clz",qfe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function Qfe(e,t){for(var n=[],r=2;r=0||o&&En(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var tde=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],nde=Fg(tde),rde=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return nde(this,t,n)},e}(),lH=function(){function e(t){this.value=t}return e}(),ide=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new lH(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}(),Am=function(){function e(t){this._list=new ide,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 lH(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}(),cA=new Am(50);function ode(e){if(typeof e=="string"){var t=cA.get(e);return t&&t.image}else return e}function uH(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=cA.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!mS(t)&&o.pending.push(a)):(t=Uh.loadImage(e,ak,ak),t.__zrImageSrc=e,cA.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function ak(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tv&&(v=S,m<_?On.set(Mp,-m,0):On.set(Mp,_,0)):Sv&&(v=w,y=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},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}fc.x=hc.x=n.x,fc.y=pc.y=n.y,dc.x=pc.x=n.x+n.width,dc.y=hc.y=n.y+n.height,fc.transform(r),pc.transform(r),dc.transform(r),hc.transform(r),t.x=l0(fc.x,dc.x,hc.x,pc.x),t.y=l0(fc.y,dc.y,hc.y,pc.y);var l=u0(fc.x,dc.x,hc.x,pc.x),u=u0(fc.y,dc.y,hc.y,pc.y);t.width=l-t.x,t.height=u-t.y},e}(),sk={};function Po(e,t){t=t||Pf;var n=sk[t];n||(n=sk[t]=new Am(500));var r=n.get(e);return r==null&&(r=Uh.measureText(e,t).width,n.put(e,r)),r}function lk(e,t,n,r){var i=Po(e,t),o=j2(t),a=lv(0,i,n),s=kd(0,o,r),l=new bn(a,s,i,o);return l}function W2(e,t,n,r){var i=((e||"")+"").split(` `),o=i.length;if(o===1)return lk(i[0],t,n,r);for(var a=new bn(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function cH(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+=Df(r[0],n.width),u+=Df(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 yC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lde(e,t,n,r,i,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(` `);o=fH(n,r,i,o);for(var s=!1,l={},u=0,c=a.length;u=a;l++)s-=a;var u=Po(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function dH(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var a=Po(t,i);if(a<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?ude(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=Po(t,i)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function ude(e,t,n,r){for(var i=0,o=0,a=e.length;ov&&u){var m=Math.floor(v/s);c=c||d.length>m,d=d.slice(0,m)}if(e&&o&&f!=null)for(var _=fH(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},b=0;bs&&_C(n,e.substring(s,u),t,a),_C(n,l[2],t,a,l[1]),s=yC.lastIndex}si){var F=n.lines.length;T>0?(S.tokens=S.tokens.slice(0,T),y(S,C,w),n.lines=n.lines.slice(0,b+1)):n.lines=n.lines.slice(0,b),n.isTruncated=n.isTruncated||n.lines.length0&&v+r.accumWidth>r.width&&(c=t.split(` `),u=!0),r.accumWidth=v}else{var m=hH(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(` `);for(var _=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var vde=Hh(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function gde(e){return pde(e)?!!vde[e]:!0}function hH(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;fn:i+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=h)):v?(o.push(l),a.push(u),l=d,u=h):(o.push(d),a.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}function Gh(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function mde(e){return[e[0],e[1]]}function ck(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function yde(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function _de(e){return Math.sqrt(bde(e))}function bde(e){return e[0]*e[0]+e[1]*e[1]}function bC(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Sde(e,t){var n=_de(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function dA(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var wde=dA;function xde(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var nh=xde;function la(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 Ud(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Hd(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var fk=H2,Cde=5e-5;function vc(e){return e>Cde||e<-5e-5}var gc=[],fd=[],SC=eh(),wC=Math.abs,X2=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 vc(this.rotation)||vc(this.x)||vc(this.y)||vc(this.scaleX-1)||vc(this.scaleY-1)||vc(this.skewX)||vc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(fk(r),this.invTransform=null);return}r=r||eh(),n?this.getLocalTransform(r):fk(r),t&&(n?th(r,t,r):ade(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(gc);var r=gc[0]<0?-1:1,i=gc[1]<0?-1:1,o=((gc[0]-r)*n+r)/gc[0]||0,a=((gc[1]-i)*n+i)/gc[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||eh(),z2(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||eh(),th(fd,t.invTransform,n),n=fd);var r=this.originX,i=this.originY;(r||i)&&(SC[4]=r,SC[5]=i,th(fd,n,SC),fd[4]-=r,fd[5]-=i,n=fd),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&&la(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&la(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&wC(t[0]-1)>1e-10&&wC(t[3]-1)>1e-10?Math.sqrt(wC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Tde(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,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var v=r+s,m=i+l;n[4]=-v*o-d*m*a,n[5]=-m*a-h*v*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=h*o,n[2]=d*a,u&&G2(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}(),$g=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Tde(e,t){for(var n=0;n<$g.length;n++){var r=$g[n];e[r]=t[r]}}var zv={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-zv.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?zv.bounceIn(e*2)*.5:zv.bounceOut(e*2-1)*.5+.5}},c0=Math.pow,Au=Math.sqrt,pH=1e-8,vH=1e-4,dk=Au(3),f0=1/3,cs=Gh(),ta=Gh(),rh=Gh();function bu(e){return e>-1e-8&&epH||e<-1e-8}function Kr(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 hk(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function G1(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,d=l*l-3*s*u,h=0;if(bu(c)&&bu(f))if(bu(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(bu(m)){var _=f/c,v=-s/a+_,y=-_/2;v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var b=Au(m),S=c*s+1.5*a*(-f+b),w=c*s+1.5*a*(-f-b);S<0?S=-c0(-S,f0):S=c0(S,f0),w<0?w=-c0(-w,f0):w=c0(w,f0);var v=(-s-(S+w))/(3*a);v>=0&&v<=1&&(o[h++]=v)}else{var C=(2*c*s-3*a*f)/(2*Au(c*c*c)),T=Math.acos(C)/3,E=Au(c),R=Math.cos(T),v=(-s-2*E*R)/(3*a),y=(-s+E*(R+dk*Math.sin(T)))/(3*a),I=(-s+E*(R-dk*Math.sin(T)))/(3*a);v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y),I>=0&&I<=1&&(o[h++]=I)}}return h}function mH(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(bu(a)){if(gH(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(bu(c))i[0]=-o/(2*a);else if(c>0){var f=Au(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function z1(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 Ede(e,t,n,r,i,o,a,s,l,u,c){var f,d=.005,h=1/0,v,m,_,y;cs[0]=l,cs[1]=u;for(var b=0;b<1;b+=.05)ta[0]=Kr(e,n,i,a,b),ta[1]=Kr(t,r,o,s,b),_=nh(cs,ta),_=0&&_=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(bu(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Au(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function yH(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function W1(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 Rde(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;cs[0]=a,cs[1]=s;for(var d=0;d<1;d+=.05){ta[0]=Ki(e,n,i,d),ta[1]=Ki(t,r,o,d);var h=nh(cs,ta);h=0&&h=1?1:G1(0,r,o,1,l,s)&&Kr(0,i,a,1,s[0])}}}var Dde=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||oo,this.ondestroy=t.ondestroy||oo,this.onrestart=t.onrestart||oo,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=Ut(t)?t:zv[t]||_H(t)},e}(),vk={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 Iu(e){return e=Math.round(e),e<0?0:e>255?255:e}function hA(e){return e<0?0:e>1?1:e}function xC(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Iu(parseFloat(t)/100*255):Iu(parseInt(t,10))}function Wv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?hA(parseFloat(t)/100):hA(parseFloat(t))}function CC(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 d0(e,t,n){return e+(t-e)*n}function Ko(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function pA(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bH=new Am(20),h0=null;function dd(e,t){h0&&pA(h0,t),h0=bH.put(e,h0||t.slice())}function pl(e,t){if(e){t=t||[];var n=bH.get(e);if(n)return pA(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in vk)return pA(t,vk[r]),dd(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)){Ko(t,0,0,0,1);return}return Ko(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),dd(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Ko(t,0,0,0,1);return}return Ko(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),dd(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?Ko(t,+u[0],+u[1],+u[2],1):Ko(t,0,0,0,1);c=Wv(u.pop());case"rgb":if(u.length>=3)return Ko(t,xC(u[0]),xC(u[1]),xC(u[2]),u.length===3?c:Wv(u[3])),dd(e,t),t;Ko(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ko(t,0,0,0,1);return}return u[3]=Wv(u[3]),gk(u,t),dd(e,t),t;case"hsl":if(u.length!==3){Ko(t,0,0,0,1);return}return gk(u,t),dd(e,t),t;default:return}}Ko(t,0,0,0,1)}}function gk(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Wv(e[1]),i=Wv(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Ko(t,Iu(CC(a,o,n+1/3)*255),Iu(CC(a,o,n)*255),Iu(CC(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function mk(e,t){var n=pl(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 yS(n,n.length===4?"rgba":"rgb")}}function Mde(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=pl(t[i]),s=pl(t[o]),l=r-i,u=yS([Iu(d0(a[0],s[0],l)),Iu(d0(a[1],s[1],l)),Iu(d0(a[2],s[2],l)),hA(d0(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function yS(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 j1(e,t){var n=pl(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var yk=new Am(100);function _k(e){if(ht(e)){var t=yk.get(e);return t||(t=mk(e,-.1),yk.put(e,t)),t}else if(pS(e)){var n=Ze({},e);return n.colorStops=Ot(e.colorStops,function(r){return{offset:r.offset,color:mk(r.color,-.1)}}),n}return e}function Lde(e){return e.type==="linear"}function Nde(e){return e.type==="radial"}(function(){return Mt.hasGlobalWindow&&Ut(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 vA=Array.prototype.slice;function Qs(e,t,n){return(t-e)*n+e}function TC(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=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=Sk,l=n;if(so(n)){var u=Bde(n);s=u,(u===1&&!qn(n[0])||u===2&&!qn(n[0][0]))&&(a=!0)}else if(qn(n)&&!H1(n))s=v0;else if(ht(n))if(!isNaN(+n))s=v0;else{var c=pl(n);c&&(l=c,s=uv)}else if(pS(n)){var f=Ze({},l);f.colorStops=Ot(n.colorStops,function(h){return{offset:h.offset,color:pl(h.color)}}),Lde(n)?s=gA:Nde(n)&&(s=mA),l=f}o===0?this.valType=s:(s!==this.valType||s===Sk)&&(a=!0),this.discrete=this.discrete||a;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Ut(r)?r:zv[r]||_H(r)),i.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(m,_){return m.time-_.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=g0(i),u=wk(i),c=0;c=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}v=a[c+1],h=a[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var _=v.percent-h.percent,y=_===0?1:d((n-h.percent)/_,1);v.easingFunc&&(y=v.easingFunc(y));var b=r?this._additiveValue:u?Lp:t[l];if((g0(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:v.rawValue;else if(g0(o))o===W_?TC(b,h[i],v[i],y):kde(b,h[i],v[i],y);else if(wk(o)){var S=h[i],w=v[i],C=o===gA;t[l]={type:C?"linear":"radial",x:Qs(S.x,w.x,y),y:Qs(S.y,w.y,y),colorStops:Ot(S.colorStops,function(E,R){var I=w.colorStops[R];return{offset:Qs(E.offset,I.offset,y),color:z_(TC([],E.color,I.color,y))}}),global:w.global},C?(t[l].x2=Qs(S.x2,w.x2,y),t[l].y2=Qs(S.y2,w.y2,y)):t[l].r=Qs(S.r,w.r,y)}else if(u)TC(b,h[i],v[i],y),r||(t[l]=z_(b));else{var T=Qs(h[i],v[i],y);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===v0?t[r]=t[r]+i:n===uv?(pl(t[r],Lp),p0(Lp,Lp,i,1),t[r]=z_(Lp)):n===W_?p0(t[r],t[r],i,1):n===SH&&bk(t[r],t[r],i,1)},e}(),Y2=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){B2("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,Zn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,G_(u),i),this._trackKeys.push(s)}l.addKeyframe(t,G_(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;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),Is=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=0:r.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,S=void 0;m&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),S=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),S=!0)),y=y||"#000",(y!==_.fill||b!==_.stroke||S!==_.autoStroke||a!==_.align||s!==_.verticalAlign)&&(l=!0,_.fill=y,_.stroke=b,_.autoStroke=S,_.align=a,_.verticalAlign=s,n.setDefaultTextStyle(_)),n.__dirty|=gs,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()?bA:_A},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&pl(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,yS(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||{},Ze(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=Zn(r),o=0;o0},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(EC,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===EC,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(En(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){B2("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,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.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&=-2),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;l0,v);var m=this._textContent,_=this._textGuide;m&&m.useStates(t,n,d),_&&_.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=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=En(i,t),a=En(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=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;a0&&n.during&&o[0].during(function(v,m){n.during(m)});for(var d=0;d0||i.force&&!a.length){var R=void 0,I=void 0,O=void 0;if(s){I={},d&&(R={});for(var w=0;w1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(m0[0]=MC(i)*n+e,m0[1]=DC(i)*r+t,y0[0]=MC(o)*n+e,y0[1]=DC(o)*r+t,u(s,m0,y0),c(l,m0,y0),i=i%mc,i<0&&(i=i+mc),o=o%mc,o<0&&(o=o+mc),i>o&&!a?o+=mc:ii&&(_0[0]=MC(h)*n+e,_0[1]=DC(h)*r+t,u(s,_0,s),c(l,_0,l))}var mn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},yc=[],_c=[],es=[],Wl=[],ts=[],ns=[],LC=Math.min,NC=Math.max,bc=Math.cos,Sc=Math.sin,js=Math.abs,wA=Math.PI,nu=wA*2,kC=typeof Float32Array<"u",Np=[];function FC(e){var t=Math.round(e/wA*1e8)/1e8;return t%2*wA}function Qde(e,t){var n=FC(e[0]);n<0&&(n+=nu);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=nu?i=n+nu:t&&n-i>=nu?i=n-nu:!t&&n>i?i=n+(nu-FC(n-i)):t&&n0&&(this._ux=js(r/X1/t)||0,this._uy=js(r/X1/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(mn.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=js(t-this._xi),i=js(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(mn.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(mn.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(mn.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(),Np[0]=i,Np[1]=o,Qde(Np,a),i=Np[0],o=Np[1];var s=o-i;return this.addData(mn.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=bc(o)*r+t,this._yi=Sc(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(mn.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mn.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){var n=t.length;!(this.data&&this.data.length===n)&&kC&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){es[0]=es[1]=ts[0]=ts[1]=Number.MAX_VALUE,Wl[0]=Wl[1]=ns[0]=ns[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||js(S)>i||d===n-1)&&(m=Math.sqrt(b*b+S*S),o=_,a=y);break}case mn.C:{var w=t[d++],C=t[d++],_=t[d++],y=t[d++],T=t[d++],E=t[d++];m=Ade(o,a,w,C,_,y,T,E,10),o=T,a=E;break}case mn.Q:{var w=t[d++],C=t[d++],_=t[d++],y=t[d++];m=Pde(o,a,w,C,_,y,10),o=_,a=y;break}case mn.A:var R=t[d++],I=t[d++],O=t[d++],P=t[d++],M=t[d++],F=t[d++],$=F+M;d+=1,v&&(s=bc(M)*O+R,l=Sc(M)*P+I),m=NC(O,P)*LC(nu,Math.abs(F)),o=bc($)*O+R,a=Sc($)*P+I;break;case mn.R:{s=o=t[d++],l=a=t[d++];var z=t[d++],B=t[d++];m=z*2+B*2;break}case mn.Z:{var b=s-o,S=l-a;m=Math.sqrt(b*b+S*S),o=s,a=l;break}}m>=0&&(u[f++]=m,c+=m)}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,d,h=n<1,v,m,_=0,y=0,b,S=0,w,C;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,b=n*m,!b)))e:for(var T=0;T0&&(t.lineTo(w,C),S=0),E){case mn.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case mn.L:{f=r[T++],d=r[T++];var I=js(f-u),O=js(d-c);if(I>i||O>o){if(h){var P=v[y++];if(_+P>b){var M=(b-_)/P;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}_+=P}t.lineTo(f,d),u=f,c=d,S=0}else{var F=I*I+O*O;F>S&&(w=f,C=d,S=F)}break}case mn.C:{var $=r[T++],z=r[T++],B=r[T++],K=r[T++],j=r[T++],le=r[T++];if(h){var P=v[y++];if(_+P>b){var M=(b-_)/P;z1(u,$,B,j,M,yc),z1(c,z,K,le,M,_c),t.bezierCurveTo(yc[1],_c[1],yc[2],_c[2],yc[3],_c[3]);break e}_+=P}t.bezierCurveTo($,z,B,K,j,le),u=j,c=le;break}case mn.Q:{var $=r[T++],z=r[T++],B=r[T++],K=r[T++];if(h){var P=v[y++];if(_+P>b){var M=(b-_)/P;W1(u,$,B,M,yc),W1(c,z,K,M,_c),t.quadraticCurveTo(yc[1],_c[1],yc[2],_c[2]);break e}_+=P}t.quadraticCurveTo($,z,B,K),u=B,c=K;break}case mn.A:var me=r[T++],ge=r[T++],De=r[T++],Fe=r[T++],ze=r[T++],Me=r[T++],je=r[T++],fe=!r[T++],Ee=De>Fe?De:Fe,Se=js(De-Fe)>.001,Ce=ze+Me,Oe=!1;if(h){var P=v[y++];_+P>b&&(Ce=ze+Me*(b-_)/P,Oe=!0),_+=P}if(Se&&t.ellipse?t.ellipse(me,ge,De,Fe,je,ze,Ce,fe):t.arc(me,ge,Ee,ze,Ce,fe),Oe)break e;R&&(s=bc(ze)*De+me,l=Sc(ze)*Fe+ge),u=bc(Ce)*De+me,c=Sc(Ce)*Fe+ge;break;case mn.R:s=u=r[T],l=c=r[T+1],f=r[T++],d=r[T++];var Be=r[T++],H=r[T++];if(h){var P=v[y++];if(_+P>b){var G=b-_;t.moveTo(f,d),t.lineTo(f+LC(G,Be),d),G-=Be,G>0&&t.lineTo(f+Be,d+LC(G,H)),G-=H,G>0&&t.lineTo(f+NC(Be-G,0),d+H),G-=Be,G>0&&t.lineTo(f,d+NC(H-G,0));break e}_+=P}t.rect(f,d,Be,H);break;case mn.Z:if(h){var P=v[y++];if(_+P>b){var M=(b-_)/P;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}_+=P}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.CMD=mn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function pd(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||ae+s&&o>n+s||ot+f&&c>r+f&&c>o+f&&c>s+f||ce+f&&u>n+f&&u>i+f&&u>a+f||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=kp);var d=Math.atan2(l,s);return d<0&&(d+=kp),d>=r&&d<=i||d+kp>=r&&d+kp<=i}function wc(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var jl=Mf.CMD,xc=Math.PI*2,rhe=1e-4;function ihe(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&ohe(),h=Kr(t,r,o,s,Qo[0]),d>1&&(v=Kr(t,r,o,s,Qo[1]))),d===2?_t&&s>r&&s>o||s=0&&u<=1){for(var c=0,f=Ki(t,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ei[0]=-l,Ei[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=xc-1e-4){r=0,i=xc;var c=o?1:-1;return a>=Ei[0]+e&&a<=Ei[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=xc,i+=xc);for(var d=0,h=0;h<2;h++){var v=Ei[h];if(v+e>a){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=xc+m),(m>=r&&m<=i||m+xc>=r&&m+xc<=i)&&(m>Math.PI/2&&m1&&(n||(s+=wc(l,u,c,f,r,i))),_&&(l=o[v],u=o[v+1],c=l,f=u),m){case jl.M:c=o[v++],f=o[v++],l=c,u=f;break;case jl.L:if(n){if(pd(l,u,o[v],o[v+1],t,r,i))return!0}else s+=wc(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case jl.C:if(n){if(ehe(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=ahe(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case jl.Q:if(n){if(the(l,u,o[v++],o[v++],o[v],o[v+1],t,r,i))return!0}else s+=she(l,u,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case jl.A:var y=o[v++],b=o[v++],S=o[v++],w=o[v++],C=o[v++],T=o[v++];v+=1;var E=!!(1-o[v++]);d=Math.cos(C)*S+y,h=Math.sin(C)*w+b,_?(c=d,f=h):s+=wc(l,u,d,h,r,i);var R=(r-y)*w/S+y;if(n){if(nhe(y,b,w,C,C+T,E,t,R,i))return!0}else s+=lhe(y,b,w,C,C+T,E,R,i);l=Math.cos(C+T)*S+y,u=Math.sin(C+T)*w+b;break;case jl.R:c=l=o[v++],f=u=o[v++];var I=o[v++],O=o[v++];if(d=c+I,h=f+O,n){if(pd(c,f,d,f,t,r,i)||pd(d,f,d,h,t,r,i)||pd(d,h,c,h,t,r,i)||pd(c,h,c,f,t,r,i))return!0}else s+=wc(d,f,d,h,r,i),s+=wc(c,h,c,f,r,i);break;case jl.Z:if(n){if(pd(l,u,c,f,t,r,i))return!0}else s+=wc(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!ihe(u,f)&&(s+=wc(l,u,c,f,r,i)||0),s!==0}function uhe(e,t,n){return CH(e,0,!1,t,n)}function che(e,t,n,r){return CH(e,t,!0,n,r)}var TH=Cn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},yf),fhe={style:Cn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bS.style)},$C=$g.concat(["invisible","culling","z","z2","zlevel","parent"]),Mn=function(e){lt(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<$C.length;++s)i[$C[s]]=this[$C[s]];i.__dirty|=gs}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Zn(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o.5?_A:r>.2?Ude:bA}else if(n)return bA}return _A},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(ht(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=j1(n,0)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&cv)&&(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)),che(s,l/u,n,r)))return!0}if(this.hasFill())return uhe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=cv,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:Ze(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&cv)},t.prototype.createStyle=function(n){return vS(TH,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ze({},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=Ze({},i.shape),Ze(u,r.shape)):(u=Ze({},o?this.shape:i.shape),Ze(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Ze({},this.shape);for(var c={},f=Zn(u),d=0;d0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return vS(dhe,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=W2(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Im);Y1.prototype.type="tspan";var hhe=Cn({x:0,y:0},yf),phe={style:Cn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bS.style)};function vhe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var qu=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return vS(hhe,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=vhe(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 phe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new bn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Im);qu.prototype.type="image";function ghe(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 Gd=Math.round;function EH(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&&(Gd(r*2)===Gd(i*2)&&(e.x1=e.x2=Jc(r,s,!0)),Gd(o*2)===Gd(a*2)&&(e.y1=e.y2=Jc(o,s,!0))),e}}function AH(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=Jc(r,s,!0),e.y=Jc(i,s,!0),e.width=Math.max(Jc(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Jc(i+a,s,!1)-e.y,a===0?0:1)),e}}function Jc(e,t,n){if(!t)return e;var r=Gd(e*2);return(r+Gd(t))%2===0?r/2:(r+(n?1:-1))/2}var mhe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),yhe={},Zr=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new mhe},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=AH(yhe,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?ghe(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Mn);Zr.prototype.type="rect";var Ik={fill:"#000"},Rk=2,_he={style:Cn({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},bS.style)},uo=function(e){lt(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Ik,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;n0,M=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),F=a.calculatedLineHeight,$=0;$=0&&($=T[F],$.align==="right");)this._placeToken($,n,R,y,M,"right",S),I-=$.width,M-=$.width,F--;for(P+=(o-(P-_)-(b-M)-I)/2;O<=F;)$=T[O],this._placeToken($,n,R,y,P+$.width/2,"center",S),P+=$.width,O++;y+=R}},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 d=!n.isLineHolder&&BC(u);d&&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 h=!!u.backgroundColor,v=n.textPadding;v&&(a=Nk(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var m=this._getOrCreateChild(Y1),_=m.createStyle();m.useStyle(_);var y=this._defaultStyle,b=!1,S=0,w=Lk("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=Mk("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(S=Rk,y.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;_.text=n.text,_.x=a,_.y=f,T&&(_.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,_.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=n.font||Pf,_.opacity=H_(u.opacity,r.opacity,1),Ok(_,u),C&&(_.lineWidth=H_(u.lineWidth,r.lineWidth,S),_.lineDash=nn(u.lineDash,r.lineDash),_.lineDashOffset=r.lineDashOffset||0,_.stroke=C),w&&(_.fill=w);var E=n.contentWidth,R=n.contentHeight;m.setBoundingRect(new bn(lv(_.x,E,_.textAlign),kd(_.y,R,_.textBaseline),E,R))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,v=this,m,_;if(d||n.lineHeight||u&&c){m=this._getOrCreateChild(Zr),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=h,m.dirtyShape()}if(d){var b=m.style;b.fill=l||null,b.fillOpacity=nn(n.fillOpacity,1)}else if(f){_=this._getOrCreateChild(qu),_.onload=function(){v.dirtyStyle()};var S=_.style;S.image=l.image,S.x=i,S.y=o,S.width=a,S.height=s}if(u&&c){var b=m.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=nn(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(m||_).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=H_(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return xhe(n)&&(r=[n.fontStyle,n.fontWeight,whe(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&hs(r)||n.textFont||n.font},t}(Im),bhe={left:!0,right:1,center:1},She={top:1,bottom:1,middle:1},Pk=["fontStyle","fontWeight","fontSize","fontFamily"];function whe(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?k2+"px":e+"px"}function Ok(e,t){for(var n=0;n0){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}function Ii(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return ht(e)?Ehe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function wr(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),IH),e=(+e).toFixed(t),n?e:+e}function ll(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 Ahe(e)}function Ahe(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 Ihe(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function Rhe(e,t){var n=Math.max(ll(e),ll(t)),r=e+t;return n>IH?r:wr(r,n)}function RH(e){var t=Math.PI*2;return(e%t+t)%t}function K1(e){return e>-1e-4&&e=10&&t++,t}function PH(e,t){var n=K2(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 Z1(e){var t=parseFloat(e);return t==e&&(t!==0||!ht(e)||e.indexOf("x")<=0)?t:NaN}function Dhe(e){return!isNaN(Z1(e))}function OH(){return Math.round(Math.random()*9)}function DH(e,t){return t===0?e:DH(t,e%t)}function $k(e,t){return e==null?t:t==null?e:e*t/DH(e,t)}function Zi(e){throw new Error(e)}function Bk(e,t,n){return(t-e)*n+e}var MH="series\0",Mhe="\0_ec_\0";function Oi(e){return e instanceof Array?e:e==null?[]:[e]}function Vk(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=0,o=!1;if(e instanceof Mn){var a=kH(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(vd(s)||vd(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Ze({},r),u=Ze({},u),u.fill=s):!vd(u.fill)&&vd(s)?(o=!0,r=Ze({},r),u=Ze({},u),u.fill=_k(s)):!vd(u.stroke)&&vd(l)&&(o||(r=Ze({},r),u=Ze({},u)),u.stroke=_k(l)),r.style=u}}if(r&&r.z2==null){o||(r=Ze({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Khe)}return r}function tpe(e,t,n){if(n&&n.z2==null){n=Ze({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Zhe)}return n}function npe(e,t,n){var r=En(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:Qhe(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Ze({},n),a=Ze({opacity:r?i:o.opacity*.1},a),n.style=a),n}function UC(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return epe(this,e,t,n);if(e==="blur")return npe(this,e,n);if(e==="select")return tpe(this,e,n)}return n}function rpe(e){e.stateProxy=UC;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=UC),n&&(n.stateProxy=UC)}function Xk(e,t){!GH(e,t)&&!e.__highByOuter&&Al(e,FH)}function Yk(e,t){!GH(e,t)&&!e.__highByOuter&&Al(e,$H)}function q1(e,t){e.__highByOuter|=1<<(t||0),Al(e,FH)}function J1(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Al(e,$H)}function ipe(e){Al(e,eR)}function VH(e){Al(e,BH)}function UH(e){Al(e,qhe)}function HH(e){Al(e,Jhe)}function GH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function zH(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=J2(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){BH(u)}),s&&n.push(o)),a.isBlured=!1}),Q(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;f0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function TA(e,t,n){WH(e,!0),Al(e,rpe),fpe(e,t,n)}function cpe(e){WH(e,!1)}function EA(e,t,n,r){r?cpe(e):TA(e,t,n)}function fpe(e,t,n){var r=Dn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Zk=["emphasis","blur","select"],dpe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function qk(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=HC(v),s*=HC(v));var m=(i===o?-1:1)*HC((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,_=m*a*h/s,y=m*-s*d/a,b=(e+n)/2+w0(f)*_-S0(f)*y,S=(t+r)/2+S0(f)*_+w0(f)*y,w=tF([1,0],[(d-_)/a,(h-y)/s]),C=[(d-_)/a,(h-y)/s],T=[(-1*d-_)/a,(-1*h-y)/s],E=tF(C,T);if(RA(C,T)<=-1&&(E=Fp),RA(C,T)>=1&&(E=0),E<0){var R=Math.round(E/Fp*1e6)/1e6;E=Fp*2+R%2*Fp}c.addData(u,b,S,a,s,w,E,f,o)}var ype=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,_pe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function bpe(e){var t=new Mf;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=Mf.CMD,l=e.match(ype);if(!l)return t;for(var u=0;u=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=En(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=En(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$*$+z*z&&(R=O,I=P),{cx:R,cy:I,x0:-c,y0:-f,x1:R*(i/C-1),y1:I*(i/C-1)}}function Ipe(e){var t;if(ct(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 Rpe(e,t){var n,r=fv(t.r,0),i=fv(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,d=!!t.clockwise,h=rF(u-l),v=h>GC&&h%GC;if(v>Ea&&(h=v),!(r>Ea))e.moveTo(c,f);else if(h>GC-Ea)e.moveTo(c+r*md(l),f+r*Cc(l)),e.arc(c,f,r,l,u,!d),i>Ea&&(e.moveTo(c+i*md(u),f+i*Cc(u)),e.arc(c,f,i,u,l,d));else{var m=void 0,_=void 0,y=void 0,b=void 0,S=void 0,w=void 0,C=void 0,T=void 0,E=void 0,R=void 0,I=void 0,O=void 0,P=void 0,M=void 0,F=void 0,$=void 0,z=r*md(l),B=r*Cc(l),K=i*md(u),j=i*Cc(u),le=h>Ea;if(le){var me=t.cornerRadius;me&&(n=Ipe(me),m=n[0],_=n[1],y=n[2],b=n[3]);var ge=rF(r-i)/2;if(S=rs(ge,y),w=rs(ge,b),C=rs(ge,m),T=rs(ge,_),I=E=fv(S,w),O=R=fv(C,T),(E>Ea||R>Ea)&&(P=r*md(u),M=r*Cc(u),F=i*md(l),$=i*Cc(l),hEa){var Se=rs(y,I),Ce=rs(b,I),Oe=x0(F,$,z,B,r,Se,d),Be=x0(P,M,K,j,r,Ce,d);e.moveTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),I0&&e.arc(c+Oe.cx,f+Oe.cy,Se,ti(Oe.y0,Oe.x0),ti(Oe.y1,Oe.x1),!d),e.arc(c,f,r,ti(Oe.cy+Oe.y1,Oe.cx+Oe.x1),ti(Be.cy+Be.y1,Be.cx+Be.x1),!d),Ce>0&&e.arc(c+Be.cx,f+Be.cy,Ce,ti(Be.y1,Be.x1),ti(Be.y0,Be.x0),!d))}else e.moveTo(c+z,f+B),e.arc(c,f,r,l,u,!d);if(!(i>Ea)||!le)e.lineTo(c+K,f+j);else if(O>Ea){var Se=rs(m,O),Ce=rs(_,O),Oe=x0(K,j,P,M,i,-Ce,d),Be=x0(z,B,F,$,i,-Se,d);e.lineTo(c+Oe.cx+Oe.x0,f+Oe.cy+Oe.y0),O0&&e.arc(c+Oe.cx,f+Oe.cy,Ce,ti(Oe.y0,Oe.x0),ti(Oe.y1,Oe.x1),!d),e.arc(c,f,i,ti(Oe.cy+Oe.y1,Oe.cx+Oe.x1),ti(Be.cy+Be.y1,Be.cx+Be.x1),d),Se>0&&e.arc(c+Be.cx,f+Be.cy,Se,ti(Be.y1,Be.x1),ti(Be.y0,Be.x0),!d))}else e.lineTo(c+K,f+j),e.arc(c,f,i,u,l,d)}e.closePath()}}}var Ppe=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}(),TS=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Ppe},t.prototype.buildPath=function(n,r){Rpe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Mn);TS.prototype.type="sector";var Ope=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),rR=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Ope},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}(Mn);rR.prototype.type="ring";function Dpe(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 d=0,h=e.length;d=2){if(r){var o=Dpe(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;sEc[1]){if(s=!1,o)return s;var c=Math.abs(Ec[0]-Tc[1]),f=Math.abs(Tc[0]-Ec[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function $u(e,t,n,r,i,o){lR("update",e,t,n,r,i,o)}function Om(e,t,n,r,i,o){lR("enter",e,t,n,r,i,o)}function Zv(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function aF(e){return!e.isGroup}function nve(e){return e.shape!=null}function t6(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){aF(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return nve(a)&&(s.shape=Ze({},a.shape)),s}var o=r(e);t.traverse(function(a){if(aF(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),$u(a,l,n,Dn(a).dataIndex)}}})}function rve(e,t){return Ot(e,function(n){var r=n[0];r=tb(r,t.x),r=nb(r,t.x+t.width);var i=n[1];return i=tb(i,t.y),i=nb(i,t.y+t.height),[r,i]})}function ive(e,t){var n=tb(e.x,t.x),r=nb(e.x+e.width,t.x+t.width),i=tb(e.y,t.y),o=nb(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 fR(e,t,n){var r=Ze({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),Cn(i,n),new qu(r)):uR(e.replace("path://",""),r,n,"center")}function ove(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var _=zC(h,v,c,f)/d;return!(_<0||_>1)}function zC(e,t,n,r){return e*r-n*t}function ave(e){return e<=1e-6&&e>=-1e-6}function AS(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=ht(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&&Q(Zn(l),function(c){Of(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Dn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Cn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function sF(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function dR(e,t){if(e)if(ct(e))for(var n=0;n1){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;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;sm&&(m=S)}h[0]=v,h[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};mF=(t={},t[co+"_"+vl]={pure:!0,appendData:o},t[co+"_"+zh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Rs]={pure:!0,appendData:o},t[Il]={pure:!0,appendData:function(a){var s=this._data;Q(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[va]={appendData:o},t[Ru]={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;si?-this._resultLT:0},e}(),PS="undefined",Lve=typeof Uint32Array===PS?Array:Uint32Array,Nve=typeof Uint16Array===PS?Array:Uint16Array,y6=typeof Int32Array===PS?Array:Int32Array,SF=typeof Float64Array===PS?Array:Float64Array,_6={float:SF,int:y6,ordinal:Array,number:Array,time:SF},KC;function yd(e){return e>65535?Lve:Nve}function _d(){return[1/0,-1/0]}function kve(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function wF(e,t,n,r,i){var o=_6[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u_[1]&&(_[1]=m)}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=Ot(a,function(b){return b.property}),c=0;cy[1]&&(y[1]=_)}}!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=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=v,l=h,u=0),h===l&&(a[u++]=c))}return a.length=u,a},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=f&&b<=d||isNaN(b))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var _=h[i[0]],S=h[i[1]],w=t[i[1]][0],C=t[i[1]][1],y=0;y=f&&b<=d||isNaN(b))&&(T>=w&&T<=C||isNaN(T))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var y=0;y=f&&b<=d||isNaN(b))&&(l[u++]=E)}else for(var y=0;yt[O][1])&&(R=!1)}R&&(l[u++]=n.getRawIndex(y))}return uy[1]&&(y[1]=_)}}}},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,d,h=new(yd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=u;for(var v=1;vc&&(c=f,d=w)}P>0&&Ps&&(m=s-c);for(var _=0;_v&&(v=b,h=c+_)}var S=this.getRawIndex(f),w=this.getRawIndex(h);fc-v&&(l=c-v,s.length=l);for(var m=0;mf[1]&&(f[1]=y),d[h++]=b}return o._count=h,o._indices=d,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();ol&&(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=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 Z_(n[o],this._dimensions[o])}KC={arrayRows:t,objectRows:function(n,r,i,o){return Z_(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Z_(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),Fve=Dr(),$ve={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},b6=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=x6(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return nn(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=h6(this.source),r=!C6(t),i="",o=[],a=0,s=0;a30}var Bp=Et,Xl=Ot,Bve=typeof Int32Array>"u"?Array:Int32Array,Vve="e\0\0",xF=-1,Uve=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Hve=["_approximateExtent"],CF,E0,Vp,Up,ZC,Hp,qC,Gve=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;S6(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=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===va;if(l&&!i.pure)for(var u=[],c=t;c0},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),ct(o)?o=o.slice():Bp(o)&&(o=Ze({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Bp(n)?Ze(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Bp(t)?Ze(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?Ze(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;Yhe(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Q(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:Xl(this.dimensions,this._getDimInfo,this),this.hostModel)),ZC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Ut(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(V2(arguments)))})},e.internalField=function(){CF=function(t){var n=t._invertedIndicesMap;Q(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new Bve(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function zve(e,t){vR(e)||(e=f6(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Kt(),o=[],a=jve(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&C6(a),l=r===e.dimensionsDefine,u=l?x6(e):w6(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=Kt(c),d=new y6(a),h=0;h0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function jve(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Q(t,function(o){var a;Et(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Xve(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 JC={},mR=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];Q(JC,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){Q(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){JC[t]=n},e.get=function(t){return JC[t]},e}(),Yve=function(){function e(t){this.coordSysDims=[],this.axisMap=Kt(),this.categoryAxisMap=Kt(),this.coordSysName=t}return e}();function Kve(e){var t=e.get("coordinateSystem"),n=new Yve(t),r=Zve[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Zve={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ka).models[0],o=e.getReferringComponents("yAxis",ka).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),bd(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),bd(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",ka).models[0];t.coordSysDims=["single"],n.set("single",i),bd(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",ka).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),bd(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),bd(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();Q(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),bd(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function bd(e){return e.get("type")==="category"}function qve(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;Jve(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(Q(o,function(b,S){ht(b)&&(o[S]=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,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;Q(o,function(b){b.coordDim===h&&m++});var _={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(_.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(_),a.appendCalculationDimension(y)):(o.push(_),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function Jve(e){return!S6(e.schema)}function Ug(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Qve(e,t){return Ug(e,t)?e.getCalculationInfo("stackResultDimension"):t}function ege(e,t){var n=e.get("coordinateSystem"),r=mR.get(n),i;return t&&t.coordSysDims&&(i=Ot(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Ove(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function tge(e,t,n){var r,i;return n&&Q(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 nge(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===va;var a=Kve(t),s=ege(t,a),l=n.useEncodeDefaulter,u=Ut(l)?l:l?Fr(bve,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=zve(i,c),d=tge(f.dimensions,n.createInvertedIndices,a),h=o?null:r.getSharedDataStore(f),v=qve(t,{schema:f,store:h}),m=new Gve(f,t);m.setCalculationInfo(v);var _=d!=null&&rge(i)?function(y,b,S,w){return w===d?S:this.defaultDimValueGetter(y,b,S,w)}:null;return m.hasItemOption=!1,m.initData(o?i:h,null,_),m}function rge(e){if(e.sourceFormat===va){var t=ige(e.data||[]);return!ct(Rm(t))}}function ige(e){for(var t=0;t=0&&s.push(l)}),s}}function lge(e,t){return _n(_n({},e,!0),t,!0)}var uge=Math.log(2);function MA(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<>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 n}function dge(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,d=c.left,h=c.top;a.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?TF(s,a):TF(a,s))}function T6(e){return e.nodeName.toUpperCase()==="CANVAS"}var hge=/([&<>"'])/g,pge={"&":"&","<":"<",">":">",'"':""","'":"'"};function qi(e){return e==null?"":(e+"").replace(hge,function(t,n){return pge[n]})}const vge={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:". "}}}},gge={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 rb="ZH",yR="EN",ih=yR,q_={},_R={},E6=Mt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ih).toUpperCase();return e.indexOf(rb)>-1?rb:ih}():ih;function A6(e,t){e=e.toUpperCase(),_R[e]=new fr(t),q_[e]=t}function mge(e){if(ht(e)){var t=q_[e.toUpperCase()]||{};return e===rb||e===yR?sn(t):_n(sn(t),sn(q_[ih]),!1)}else return _n(sn(e),sn(q_[ih]),!1)}function yge(e){return _R[e]}function _ge(){return _R[ih]}A6(yR,vge);A6(rb,gge);var bR=1e3,SR=bR*60,qv=SR*60,ia=qv*24,AF=ia*365,dv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},A0="{yyyy}-{MM}-{dd}",IF={year:"{yyyy}",month:"{yyyy}-{MM}",day:A0,hour:A0+" "+dv.hour,minute:A0+" "+dv.minute,second:A0+" "+dv.second,millisecond:dv.none},eT=["year","month","day","hour","minute","second","millisecond"],I6=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Yl(e,t){return e+="","0000".substr(0,t-e.length)+e}function oh(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 bge(e){return e===oh(e)}function Sge(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function DS(e,t,n,r){var i=Tl(e),o=i[wR(n)](),a=i[ah(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[MS(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Hg(n)](),f=(c-1)%12+1,d=i[LS(n)](),h=i[NS(n)](),v=i[kS(n)](),m=c>=12?"pm":"am",_=m.toUpperCase(),y=r instanceof fr?r:yge(r||E6)||_ge(),b=y.getModel("time"),S=b.get("month"),w=b.get("monthAbbr"),C=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Yl(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[a-1]).replace(/{MMM}/g,w[a-1]).replace(/{MM}/g,Yl(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Yl(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,C[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Yl(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Yl(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Yl(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Yl(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Yl(v,3)).replace(/{S}/g,v+"")}function wge(e,t,n,r,i){var o=null;if(ht(n))o=n;else if(Ut(n))o=n(e.value,t,{level:e.level});else{var a=Ze({},dv);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ct(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return DS(new Date(e.value),o,i,r)}function R6(e,t){var n=Tl(e),r=n[ah(t)]()+1,i=n[MS(t)](),o=n[Hg(t)](),a=n[LS(t)](),s=n[NS(t)](),l=n[kS(t)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,h=d&&i===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function RF(e,t,n){var r=qn(e)?Tl(e):e;switch(t=t||R6(e,n),t){case"year":return r[wR(n)]();case"half-year":return r[ah(n)]()>=6?1:0;case"quarter":return Math.floor((r[ah(n)]()+1)/4);case"month":return r[ah(n)]();case"day":return r[MS(n)]();case"half-day":return r[Hg(n)]()/24;case"hour":return r[Hg(n)]();case"minute":return r[LS(n)]();case"second":return r[NS(n)]();case"millisecond":return r[kS(n)]()}}function wR(e){return e?"getUTCFullYear":"getFullYear"}function ah(e){return e?"getUTCMonth":"getMonth"}function MS(e){return e?"getUTCDate":"getDate"}function Hg(e){return e?"getUTCHours":"getHours"}function LS(e){return e?"getUTCMinutes":"getMinutes"}function NS(e){return e?"getUTCSeconds":"getSeconds"}function kS(e){return e?"getUTCMilliseconds":"getMilliseconds"}function xge(e){return e?"setUTCFullYear":"setFullYear"}function P6(e){return e?"setUTCMonth":"setMonth"}function O6(e){return e?"setUTCDate":"setDate"}function D6(e){return e?"setUTCHours":"setHours"}function M6(e){return e?"setUTCMinutes":"setMinutes"}function L6(e){return e?"setUTCSeconds":"setSeconds"}function N6(e){return e?"setUTCMilliseconds":"setMilliseconds"}function k6(e){if(!Dhe(e))return ht(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function F6(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 FS=nH;function NA(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&hs(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?Tl(e):e;if(isNaN(+l)){if(s)return"-"}else return DS(l,r,n)}if(t==="ordinal")return lA(e)?i(e):qn(e)&&o(e)?e+"":"-";var u=Z1(e);return o(u)?k6(u):lA(e)?i(e):typeof e=="boolean"?e+"":"-"}var PF=["a","b","c","d","e","f","g"],tT=function(e,t){return"{"+e+(t??"")+"}"};function $6(e,t,n){ct(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';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 Nf(e,t){return t=t||"transparent",ht(e)?e:Et(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var J_=Q,Tge=["left","right","top","bottom","width","height"],I0=[["width","left","right"],["height","top","bottom"]];function xR(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),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>r||l.newline?(o=0,h=m,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(d?-d.y+c.y:0);v=a+_,v>i||l.newline?(o+=s+n,a=0,v=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+n:a=v+n)})}var Jv=xR;Fr(xR,"vertical");Fr(xR,"horizontal");function ib(e,t,n){n=FS(n||0);var r=t.width,i=t.height,o=Ii(e.left,r),a=Ii(e.top,i),s=Ii(e.right,r),l=Ii(e.bottom,i),u=Ii(e.width,r),c=Ii(e.height,i),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-d),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-d;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-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var v=new bn(o+n[3],a+n[0],u,c);return v.margin=n,v}function Gg(e){var t=e.layoutMode||e.constructor.layoutMode;return Et(t)?t:t?{type:t}:null}function Ah(e,t,n){var r=n&&n.ignoreSize;!ct(r)&&(r=[r,r]);var i=a(I0[0],0),o=a(I0[1],1);u(I0[0],e,i),u(I0[1],e,o);function a(c,f){var d={},h=0,v={},m=0,_=2;if(J_(c,function(S){v[S]=e[S]}),J_(c,function(S){s(t,S)&&(d[S]=v[S]=t[S]),l(d,S)&&h++,l(v,S)&&m++}),r[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===_||!h)return v;if(h>=_)return d;for(var y=0;y=0;l--)s=_n(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return Pm(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},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);sH(Tn,fr);gS(Tn);age(Tn);sge(Tn,Ige);function Ige(e){var t=[];return Q(Tn.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Ot(t,function(n){return ps(n).main}),e!=="dataset"&&En(t,"dataset")<=0&&t.unshift("dataset"),t}var OF=Dr();Dr();var CR=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=Oi(this.get("color",!0)),o=this.get("colorLayer",!0);return Pge(this,OF,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Oge(this,OF)},e}();function Rge(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function Pge(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:Rge(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 Oge(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Dge=/\{@(.+?)\}/g,Mge=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,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.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&&ct(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Ut(o))return l.status=n,l.dimensionIndex=i,o(l);if(ht(o)){var c=$6(o,l);return c.replace(Dge,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var m=Eh(s,t,v);if(a&&ct(a.interpolatedValue)){var _=s.getDimensionIndex(v);_>=0&&(m=a.interpolatedValue[_])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,n){return Eh(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function DF(e){var t,n;return Et(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Qv(e){return new Lge(e)}var Lge=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 d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h1&&r>0?s:a}};return o;function a(){return t=e?null:l9e10&&(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(R0(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=lo(s)?Ru:va,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=nn(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=nn(f.sourceHeader,d.sourceHeader),m=nn(f.dimensions,d.dimensions),_=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;i=_?[OA(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var y=t;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var S=y.get("source",!0);i=[OA(S,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&&LF(o)}var a,s=[],l=[];return Q(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&LF(f),s.push(c),l.push(u._getVersionSign())}),r?a=Hge(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[xve(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return Q(e.blocks,function(i){var o=G6(i);o>=t&&(t=o+ +(r&&(!o||kA(i)&&!i.noHeader)))}),t}return 0}function Yge(e,t,n,r){var i=t.noHeader,o=Zge(G6(t)),a=[],s=t.blocks||[];Cl(!s||ct(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Of(u,l)){var c=new Mve(u[l],null);s.sort(function(m,_){return c.evaluate(m.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}Q(s,function(m,_){var y=t.valueFormatter,b=H6(m)(y?Ze(Ze({},e),{valueFormatter:y}):e,m,_>0?o.html:0,r);b!=null&&a.push(b)});var f=e.renderMode==="richText"?a.join(o.richText):FA(r,a.join(""),i?n:o.html);if(i)return f;var d=NA(t.header,"ordinal",e.useUTC),h=U6(r,e.renderMode).nameStyle,v=V6(r);return e.renderMode==="richText"?z6(e,d,h)+o.richText+f:FA(r,'
'+qi(d)+"
"+f,n)}function Kge(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(w){return w=ct(w)?w:[w],Ot(w,function(C,T){return NA(C,ct(h)?h[T]:h,u)})};if(!(o&&a)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":NA(l,"ordinal",u),h=t.valueType,v=a?[]:c(t.value,t.dataIndex),m=!s||!o,_=!s&&o,y=U6(r,i),b=y.nameStyle,S=y.valueStyle;return i==="richText"?(s?"":f)+(o?"":z6(e,d,b))+(a?"":Qge(e,v,m,_,S)):FA(r,(s?"":f)+(o?"":qge(d,!s,b))+(a?"":Jge(v,m,_,S)),n)}}function NF(e,t,n,r,i,o){if(e){var a=H6(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Zge(e){return{html:jge[e],richText:Xge[e]}}function FA(e,t,n){var r='
',i="margin: "+n+"px 0 0",o=V6(e);return'
'+t+r+"
"}function qge(e,t,n){var r=t?"margin-left:2px":"";return''+qi(e)+""}function Jge(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ct(e)?e:[e],''+Ot(e,function(a){return qi(a)}).join("  ")+""}function z6(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Qge(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(ct(t)?t.join(" "):t,o)}function eme(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Nf(r)}function W6(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var nT=function(){function e(){this.richTextStyles={},this._nextStyleNameId=OH()}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=Cge({color:n,type:t,renderMode:r,markerId:i});return ht(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ct(n)?Q(n,function(o){return Ze(r,o)}):Ze(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function tme(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=ct(s),u=eme(t,n),c,f,d,h;if(a>1||l&&!a){var v=nme(s,t,n,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(a){var m=i.getDimensionInfo(o[0]);h=c=Eh(i,n,o[0]),f=m.type}else h=c=l?s[0]:s;var _=Z2(t),y=_&&t.name||"",b=i.getName(n),S=r?y:b;return zg("section",{header:y,noHeader:r||!_,sortParam:h,blocks:[zg("nameValue",{markerType:"item",markerColor:u,name:S,noName:!hs(S),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function nme(e,t,n,r,i){var o=t.getData(),a=Hh(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?Q(r,function(f){c(Eh(o,n,f),f)}):Q(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(a?u.push(zg("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Kl=Dr();function P0(e,t){return e.getName(t)||e.getId(t)}var rme="__universalTransitionEnabled",Bu=function(e){lt(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=Qv({count:ome,reset:ame}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=Kl(this).sourceManager=new zge(this);o.prepareSource();var a=this.getInitialData(n,i);FF(a,this),this.dataTask.context.data=a,Kl(this).dataBeforeProcessed=a,kF(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Gg(this),o=i?$S(n):{},a=this.subType;Tn.hasClass(a)&&(a+="Series"),_n(n,r.getTheme().get(this.subType)),_n(n,this.getDefaultOption()),Vk(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&Ah(n,o,i)},t.prototype.mergeOption=function(n,r){n=_n(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Gg(this);i&&Ah(this.option,n,i);var o=Kl(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);FF(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Kl(this).dataBeforeProcessed=a,kF(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!lo(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=CR.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=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[P0(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[rme])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;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Tn.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}(Tn);As(Bu,Mge);As(Bu,CR);sH(Bu,Tn);function kF(e){var t=e.name;Z2(e)||(e.name=ime(e)||t)}function ime(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Q(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function ome(e){return e.model.getRawData().count()}function ame(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),sme}function sme(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function FF(e,t){Q(Hfe(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Fr(lme,t))})}function lme(e,t){var n=$A(e);return n&&n.setOutputEnd((t||this).count()),t}function $A(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 ume=Mn.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()}}),cme=Mn.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()}}),fme=Mn.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),d=Math.cos(u),h=a*.6,v=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*h,l+s+d*h,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),dme=Mn.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()}}),hme={line:Fu,rect:Zr,roundRect:Zr,square:Zr,circle:CS,diamond:cme,pin:fme,arrow:dme,triangle:ume},pme={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}},BA={};Q(hme,function(e,t){BA[t]=new e});var vme=Mn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=cH(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=BA[r];i||(r="rect",i=BA[r]),pme[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function gme(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Ih(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=JH(e.slice(8),new bn(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=uR(e.slice(7),{},new bn(t,n,r,i),a?"center":"cover"):l=new vme({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=gme,o&&l.setColor(o),l}function mme(e){return ct(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function j6(e,t){if(e!=null)return ct(e)||(e=[e,e]),[Ii(e[0],t[0])||0,Ii(nn(e[1],e[0]),t[1])||0]}var yme=function(e){lt(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 nge(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new mi,i=Ih("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=Ih(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="#fff",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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Bu);function X6(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Eh(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var ER=function(e){lt(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){this.removeAll();var s=Ih(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=bme,this._symbolType=n,this.add(s)},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(){q1(this.childAt(0))},t.prototype.downplay=function(){J1(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=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):$u(d,h,s,r),jpe(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Om(d,h,s,r)}}c&&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,d,h,v,m,_,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,_=o.hoverScale,y=o.cursorStyle,v=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),h=S.get("blurScope"),v=S.get("disabled"),m=pR(b),_=S.getShallow("scale"),y=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=j6(n.getItemVisual(r,"symbolOffset"),i);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var T=n.getItemVisual(r,"style"),E=T.fill;if(s instanceof qu){var R=s.style;s.useStyle(Ze({image:R.image,x:R.x,y:R.y,width:R.width,height:R.height},T))}else s.__isEmptyBrush?s.useStyle(Ze({},T)):s.useStyle(T),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),O=this._z2;I!=null?O==null&&(this._z2=s.z2,s.z2+=I):O!=null&&(s.z2=O,this._z2=null);var P=a&&a.useNameLabel;hR(s,m,{labelFetcher:l,labelDataIndex:r,defaultText:M,inheritColor:E,defaultOpacity:T.opacity});function M(z){return P?n.getName(z):X6(n,z)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var F=s.ensureState("emphasis");F.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var $=_==null||_===!0?Math.max(1.1,3/this._sizeY):isFinite(_)&&_>0?+_:1;F.scaleX=this._sizeX*$,F.scaleY=this._sizeY*$,this.setSymbolScale(1),EA(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Dn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&eb(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();eb(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return mme(n.getItemVisual(r,"symbolSize"))},t}(mi);function bme(e,t){this.parent.drift(e,t)}function rT(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 $F(e){return e!=null&&!Et(e)&&(e={isIgnore:e}),e||{}}function BF(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:pR(t),cursorStyle:t.get("cursor")}}var Sme=function(){function e(t){this.group=new mi,this._SymbolCtor=t||ER}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=$F(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=BF(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};o||r.removeAll(),t.diff(o).add(function(f){var d=c(f);if(rT(t,d,f,n)){var h=new a(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!rT(t,v,f,n)){r.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",_=h&&h.getSymbolType&&h.getSymbolType();if(!h||_&&_!==m)r.remove(h),h=new a(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):$u(h,y,i)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},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=BF(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=$F(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o0?n=r[0]:r[1]<0&&(n=r[1]),n}function K6(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 Z6=typeof Float32Array<"u",xme=Z6?Float32Array:Array;function zd(e){return ct(e)?Z6?new Float32Array(e):e:new xme(e)}function Cme(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 Tme(e,t,n,r,i,o,a,s){for(var l=Cme(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],_=Y6(i,t,a),y=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S=i||m<0)break;if(bf(y,b)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](y,b),f=y,d=b;else{var S=y-u,w=b-c;if(S*S+w*w<.5){m+=o;continue}if(a>0){for(var C=m+o,T=t[C*2],E=t[C*2+1];T===y&&E===b&&_=r||bf(T,E))h=y,v=b;else{O=T-u,P=E-c;var $=y-u,z=T-y,B=b-c,K=E-b,j=void 0,le=void 0;if(s==="x"){j=Math.abs($),le=Math.abs(z);var me=O>0?1:-1;h=y-me*j*a,v=b,M=y+me*le*a,F=b}else if(s==="y"){j=Math.abs(B),le=Math.abs(K);var ge=P>0?1:-1;h=y,v=b-ge*j*a,M=y,F=b+ge*le*a}else j=Math.sqrt($*$+B*B),le=Math.sqrt(z*z+K*K),I=le/(le+j),h=y-O*a*(1-I),v=b-P*a*(1-I),M=y+O*a*I,F=b+P*a*I,M=Zl(M,ql(T,y)),F=Zl(F,ql(E,b)),M=ql(M,Zl(T,y)),F=ql(F,Zl(E,b)),O=M-y,P=F-b,h=y-O*j/le,v=b-P*j/le,h=Zl(h,ql(u,y)),v=Zl(v,ql(c,b)),h=ql(h,Zl(u,y)),v=ql(v,Zl(c,b)),O=y-h,P=b-v,M=y+O*le/j,F=b+P*le/j}e.bezierCurveTo(f,d,h,v,y,b),f=M,d=F}else e.lineTo(y,b)}u=y,c=b,m+=o}return _}var q6=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Eme=function(e){lt(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:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new q6},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&bf(i[a*2-2],i[a*2-1]);a--);for(;o=0){var w=u?(v-l)*S+l:(h-s)*S+s;return u?[n,w]:[w,n]}s=h,l=v;break;case a.C:h=o[f++],v=o[f++],m=o[f++],_=o[f++],y=o[f++],b=o[f++];var C=u?G1(s,h,m,y,n,c):G1(l,v,_,b,n,c);if(C>0)for(var T=0;T=0){var w=u?Kr(l,v,_,b,E):Kr(s,h,m,y,E);return u?[n,w]:[w,n]}}s=y,l=b;break}}},t}(Mn),Ame=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(q6),Ime=function(e){lt(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 Ame},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&&bf(i[s*2-2],i[s*2-1]);s--);for(;at){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 $me(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=Ot(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Fme(u,i==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,m=d[0].coord-v,_=d[h-1].coord+v,y=_-m;if(y<.001)return"transparent";Q(d,function(S){S.offset=(S.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new sR(0,0,0,0,d,!0);return b[i]=m,b[i+"2"]=_,b}}}function Bme(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&Vme(o,t))){var a=t.mapDimension(o.dim),s={};return Q(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Vme(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;ar)return!1;return!0}function Ume(e,t){return isNaN(e)||isNaN(t)}function Hme(e){for(var t=e.length/2;t>0&&Ume(e[t*2-2],e[t*2-1]);t--);return t-1}function jF(e,t){return[e[t*2],e[t*2+1]]}function Gme(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function e8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var le=v.getState("emphasis").style;le.lineWidth=+v.style.lineWidth+1}Dn(v).seriesIndex=n.seriesIndex,EA(v,B,K,j);var me=WF(n.get("smooth")),ge=n.get("smoothMonotone");if(v.setShape({smooth:me,smoothMonotone:ge,connectNulls:E}),m){var De=s.getCalculationInfo("stackedOnSeries"),Fe=0;m.useStyle(Cn(u.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),De&&(Fe=WF(De.get("smooth"))),m.setShape({smooth:me,stackedOnSmooth:Fe,smoothMonotone:ge,connectNulls:E}),qk(m,n,"areaStyle"),Dn(m).seriesIndex=n.seriesIndex,EA(m,B,K,j)}var ze=this._changePolyState;s.eachItemGraphicEl(function(Me){Me&&(Me.onHoverStateChange=ze)}),this._polyline.onHoverStateChange=ze,this._data=s,this._coordSys=o,this._stackedOnPoints=C,this._points=c,this._step=O,this._valueOrigin=S,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){Dn(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=Lf(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 d=n.get("zlevel")||0,h=n.get("z")||0;u=new ER(a,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ys.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Lf(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 ys.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;jk(this._polyline,n),r&&jk(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Eme({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 Ime({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");Ut(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Ut(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var m=h;if(m){var _=[h.x,h.y],y=void 0,b=void 0,S=void 0;if(i)if(a){var w=i,C=r.pointToCoord(_);o?(y=w.startAngle,b=w.endAngle,S=-C[1]/180*Math.PI):(y=w.r0,b=w.r,S=C[0])}else{var T=i;o?(y=T.x,b=T.x+T.width,S=h.x):(y=T.y+T.height,b=T.y,S=h.y)}var E=b===y?0:(S-y)/(b-y);l&&(E=1-E);var R=Ut(f)?f(v):c*E+d,I=m.getSymbolPath(),O=I.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:R}),O&&O.animateFrom({style:{opacity:0}},{duration:300,delay:R}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(e8(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=Hme(l);c>=0&&(hR(s,pR(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?_me(a,h):X6(a,f)},enableTextSetter:!0},zme(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"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,_=l.getBaseAxis(),y=_.isHorizontal(),b=_.inverse,S=r.shape,w=b?y?S.x:S.y+S.height:y?S.x+S.width:S.y,C=(y?m:0)*(b?-1:1),T=(y?0:-m)*(b?-1:1),E=y?"x":"y",R=Gme(f,w,E),I=R.range,O=I[1]-I[0],P=void 0;if(O>=1){if(O>1&&!h){var M=jF(f,I[0]);u.attr({x:M[0]+C,y:M[1]+T}),a&&(P=d.getRawValue(I[0]))}else{var M=c.getPointOn(w,E);M&&u.attr({x:M[0]+C,y:M[1]+T});var F=d.getRawValue(I[0]),$=d.getRawValue(I[1]);a&&(P=Xhe(i,v,F,$,R.t))}o.lastFrameIndex=I[0]}else{var z=n===1||o.lastFrameIndex>0?I[0]:0,M=jF(f,z);a&&(P=d.getRawValue(z)),u.attr({x:M[0]+C,y:M[1]+T})}if(a){var B=r6(u);typeof B.setLabelText=="function"&&B.setLabelText(P)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Tme(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,_=d.stackedOnNext;if(a&&(v=Jl(d.stackedOnCurrent,d.current,i,a,l),h=Jl(d.current,null,i,a,l),_=Jl(d.stackedOnNext,d.next,i,a,l),m=Jl(d.next,null,i,a,l)),zF(h,m)>3e3||c&&zF(v,_)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:_}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:m}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),$u(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),$u(c,{shape:{stackedOnPoints:_}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=d.status,w=0;wt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){o==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):o==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var v=void 0;ht(o)?v=Xme[o]:Ut(o)&&(v=o),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,Yme))}}}}}function Zme(e){e.registerChartView(Wme),e.registerSeriesModel(yme),e.registerLayout(jme("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,Kme("line"))}var qme="__ec_stack_";function Jme(e){return e.get("stack")||qme+e.seriesIndex}function t8(e){return e.dim+e.index}function Qme(e,t){var n=[];return t.eachSeriesByType(e,function(r){iye(r)&&n.push(r)}),n}function eye(e){var t={};Q(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),m=0,_=v.count();m<_;++m){var y=v.get(h,m);t[d]?t[d].push(y):t[d]=[y]}});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;a0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function tye(e){var t=eye(e),n=[];return Q(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(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(a[1]-a[0])/h.count()}var v=Ii(r.get("barWidth"),s),m=Ii(r.get("barMaxWidth"),s),_=Ii(r.get("barMinWidth")||(oye(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:_,barGap:y,barCategoryGap:b,axisKey:t8(o),stackId:Jme(r)})}),nye(n)}function nye(e){var t={};Q(e,function(r,i){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",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 d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return Q(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Zn(o).length;s=Math.max(35-l*4,15)+"%"}var u=Ii(s,a),c=Ii(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),Q(o,function(y){var b=y.maxWidth,S=y.minWidth;if(y.width){var w=y.width;b&&(w=Math.min(w,b)),S&&(w=Math.max(w,S)),y.width=w,f-=w+c*w,d--}else{var w=h;b&&bw&&(w=S),w!==h&&(y.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;Q(o,function(y,b){y.width||(y.width=h),m=y,v+=y.width*(1+c)}),m&&(v-=m.width*c);var _=-v/2;Q(o,function(y,b){n[i][b]=n[i][b]||{bandWidth:a,offset:_,width:y.width},_+=y.width*(1+c)})}),n}function rye(e,t,n){if(e&&t){var r=e[t8(t)];return r}}function iye(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function oye(e){return e.pipelineContext&&e.pipelineContext.large}var ob="\0__throttleOriginMethod",XF="\0__throttleRate",YF="\0__throttleType";function n8(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 d=function(){for(var h=[],v=0;v=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(h){c=h},d}function r8(e,t,n,r){var i=e[t];if(i){var o=i[ob]||i,a=i[YF],s=i[XF];if(s!==n||a!==r){if(n==null)return e[t]=o;i=e[t]=n8(o,n,r==="debounce"),i[ob]=o,i[YF]=r,i[XF]=n}return i}}function UA(e,t){var n=e[t];n&&n[ob]&&(n.clear&&n.clear(),e[t]=n[ob])}function Sd(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=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&HA(e,a,t,n)}else{HA(e,t,t,n);var o=dye(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&cye.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function dye(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 hye(e,t,n,r){e.addEventListener(t,n,r)}function pye(e,t,n,r){e.removeEventListener(t,n,r)}var i8=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},vye=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;a1&&r&&r.length>1){var o=ZF(r)/ZF(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=gye(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},o8="silent";function mye(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:yye}}function yye(){i8(this.event)}var _ye=function(e){lt(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}(Is),Gp=function(){function e(t,n){this.x=t,this.y=n}return e}(),bye=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],sT=new bn(0,0,0,0),a8=function(e){lt(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new Gp(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new _ye,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new uye(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Q(bye,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=s8(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 Gp(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 Gp(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=mye(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 Gp(n,r);if(qF(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new bn(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(sT.copy(d.getBoundingRect()),d.transform&&sT.applyTransform(d.transform),sT.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,_=0;_4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Sye(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.parent}return i?o8:!0}return!1}function qF(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=Sye(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==o8)){t.target=a;break}}}function s8(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var l8=32,zp=7;function wye(e){for(var t=0;e>=l8;)t|=e&1,e>>=1;return e+t}function JF(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function xye(e,t,n){for(n--;t>>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 lT(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function uT(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Cye(e,t){var n=zp,r,i,o=0,a=[];r=[],i=[];function s(h,v){r[o]=h,i[o]=v,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&i[h-1]=zp||E>=zp);if(R)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),v===1){for(y=0;y<_;y++)e[w+y]=e[S+y];e[w+_]=a[b]}else{if(v===0)throw new Error;for(y=0;y=0;y--)e[T+y]=e[C+y];e[w]=a[S];return}for(var E=n;;){var R=0,I=0,O=!1;do if(t(a[S],e[b])<0){if(e[w--]=e[b--],R++,I=0,--v===0){O=!0;break}}else if(e[w--]=a[S--],I++,R=0,--_===1){O=!0;break}while((R|I)=0;y--)e[T+y]=e[C+y];if(v===0){O=!0;break}}if(e[w--]=a[S--],--_===1){O=!0;break}if(I=_-lT(e[b],a,0,_,_-1,t),I!==0){for(w-=I,S-=I,_-=I,T=w+1,C=S+1,y=0;y=zp||I>=zp);if(O)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),_===1){for(w-=v,b-=v,T=w+1,C=b+1,y=v-1;y>=0;y--)e[T+y]=e[C+y];e[w]=a[S]}else{if(_===0)throw new Error;for(C=w-(_-1),y=0;y<_;y++)e[C+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Q_(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(is&&(l=s),QF(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 e3=!1;function cT(){e3||(e3=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function t3(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Tye=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=t3}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(cT(),c.z=0),isNaN(c.z2)&&(cT(),c.z2=0),isNaN(c.zlevel)&&(cT(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,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=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}(),ab;ab=Mt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Wd(){return new Date().getTime()}var Eye=function(e){lt(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=Wd()-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&&(ab(r),!n._paused&&n.update())}ab(r)},t.prototype.start=function(){this._running||(this._time=Wd(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Wd(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Wd()-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 Y2(n,r.loop);return this.addAnimator(i),i},t}(Is),Aye=300,fT=Mt.domSupported,dT=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=Ot(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),n3={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},r3=!1;function GA(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Iye(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 hT(e){e&&(e.zrByTouch=!0)}function Rye(e,t){return Zo(e.dom,new Pye(e,t),!0)}function u8(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 Pye=function(){function e(t,n){this.stopPropagation=oo,this.stopImmediatePropagation=oo,this.preventDefault=oo,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Ra={mousedown:function(e){e=Zo(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Zo(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=Zo(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Zo(this.dom,e);var t=e.toElement||e.relatedTarget;u8(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){r3=!0,e=Zo(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){r3||(e=Zo(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Zo(this.dom,e),hT(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ra.mousemove.call(this,e),Ra.mousedown.call(this,e)},touchmove:function(e){e=Zo(this.dom,e),hT(e),this.handler.processGesture(e,"change"),Ra.mousemove.call(this,e)},touchend:function(e){e=Zo(this.dom,e),hT(e),this.handler.processGesture(e,"end"),Ra.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(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=0;l--)o[l]&&!Bg(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[s3],n},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=t:n==="max"?e<=t:e===t}function Zye(e,t){return e.join(",")===t.join(",")}var wa=Q,Wg=Et,f3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function vT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=f3.length;n=0;_--){var y=e[_];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var b=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=Rhe(d,b),m=b;break}}}return r[0]=d,r[1]=m,r})})}var Ts=function(){function e(){this.group=new mi,this.uid=OS("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}();U2(Ts);gS(Ts);var g3=Dr(),m3={itemStyle:Fg(o6,!0),lineStyle:Fg(i6,!0)},a0e={lineStyle:"stroke",itemStyle:"fill"};function v8(e,t){var n=e.visualStyleMapper||m3[t];return n||(console.warn("Unknown style type '"+t+"'."),m3.itemStyle)}function g8(e,t){var n=e.visualDrawType||a0e[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var s0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=v8(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=g8(e,r),u=a[l],c=Ut(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Ut(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Ut(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),_=Ze({},a);_[l]=c(m),h.setItemVisual(v,"style",_)}}}},Xp=new fr,l0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=v8(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){Xp.option=l[r];var u=i(Xp),c=a.ensureUniqueItemVisual(s,"style");Ze(c,u),Xp.option.decal&&(a.setItemVisual(s,"decal",Xp.option.decal),Xp.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},u0e={performRawSeries:!0,overallReset:function(e){var t=Kt();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)),g3(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=g3(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=g8(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 d=o.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(h,a,v)}})}})}},D0=Math.PI;function c0e(e,t){t=t||{},Cn(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new mi,r=new Zr({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 Zr({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 ES({shape:{startAngle:-D0/2,endAngle:-D0/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:D0*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:D0*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 m8=function(){function e(t,n,r,i){this._stageTaskMap=Kt(),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=Kt();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;Q(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Cl(!(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;Q(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(_){s(i,_)&&(_.dirty(),h=!0)}),h&&d.dirty(),a.updatePayload(d,r);var m=a.getPerformArgs(d,i.block);v.each(function(_){_.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(_,y){s(i,_)&&_.dirty();var b=a.getPerformArgs(_,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(_.context.model),a.updatePayload(_,r),_.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=Kt(),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 d=f.uid,h=s.set(d,a&&a.get(d)||Qv({plan:v0e,reset:g0e,count:y0e}));h.context={model:f,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||Qv({reset:f0e});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Kt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Cl(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,i).each(v):(f=!1,Q(r.getSeries(),v));function v(m){var _=m.uid,y=l.set(_,s&&s.get(_)||(d=!0,Qv({reset:d0e,onDirty:p0e})));y.context={model:m,overallProgress:f},y.agent=a,y.__block=f,o._pipe(m,y)}d&&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 Ut(t)&&(t={overallReset:t,seriesType:_0e(t)}),t.uid=OS("stageHandler"),n&&(t.visualType=n),t},e}();function f0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function d0e(e){return e.overallProgress&&h0e}function h0e(){this.agent.dirty(),this.getDownstream().dirty()}function p0e(){this.agent&&this.agent.dirty()}function v0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function g0e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Oi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ot(t,function(n,r){return y8(r)}):m0e}var m0e=y8(0);function y8(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.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,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),WA=["symbol","symbolSize","symbolRotate","symbolOffset"],S3=WA.concat(["symbolKeepAspect"]),w0e={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=0&&Qc(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function jA(e,t,n){for(var r=t.type==="radial"?P0e(e,t,n):R0e(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:qn(e)?[e]:ct(e)?e:null}function w8(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&D0e(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=Ot(n,function(o){return o/i}),r/=i)}return[n,r]}var M0e=new Mf(!0);function lb(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function w3(e){return typeof e=="string"&&e!=="none"}function ub(e){var t=e.fill;return t!=null&&t!=="none"}function x3(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 C3(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 XA(e,t,n){var r=uH(t.image,t.__image,n);if(mS(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)*Gfe),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function L0e(e,t,n,r){var i,o=lb(n),a=ub(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||M0e,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=a&&!!d.colorStops,m=o&&!!h.colorStops,_=a&&!!d.image,y=o&&!!h.image,b=void 0,S=void 0,w=void 0,C=void 0,T=void 0;(v||m)&&(T=t.getBoundingRect()),v&&(b=f?jA(e,d,T):t.__canvasFillGradient,t.__canvasFillGradient=b),m&&(S=f?jA(e,h,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),_&&(w=f||!t.__canvasFillPattern?XA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),y&&(C=f||!t.__canvasStrokePattern?XA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=b:_&&(w?e.fillStyle=w:a=!1),m?e.strokeStyle=S:y&&(C?e.strokeStyle=C:o=!1)}var E=t.getGlobalScale();c.setScale(E[0],E[1],t.segmentIgnoreThreshold);var R,I;e.setLineDash&&n.lineDash&&(i=w8(t),R=i[0],I=i[1]);var O=!0;(u||f&cv)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),O=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),O&&c.rebuildPath(e,l?s:1),R&&(e.setLineDash(R),e.lineDashOffset=I),r||(n.strokeFirst?(o&&C3(e,n),a&&x3(e,n)):(a&&x3(e,n),o&&C3(e,n))),R&&e.setLineDash([])}function N0e(e,t,n){var r=t.__image=uH(n.image,t.__image,t,t.onload);if(!(!r||!mS(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,d=s-c;e.drawImage(r,u,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function k0e(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||Pf,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=w8(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(lb(n)&&e.strokeText(i,n.x,n.y),ub(n)&&e.fillText(i,n.x,n.y)):(ub(n)&&e.fillText(i,n.x,n.y),lb(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var T3=["shadowBlur","shadowOffsetX","shadowOffsetY"],E3=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function x8(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Qi(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?yf.opacity:a}(r||t.blend!==n.blend)&&(o||(Qi(e,i),o=!0),e.globalCompositeOperation=t.blend||yf.blend);for(var s=0;s0&&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[ni]){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[ni]=!0,!this._model||r){var l=new jye(this._api),u=this._theme,c=this._model=new IR;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},ZA);var f={seriesTransition:s,optionChanged:!0};if(i)this[Ui]={silent:o,updateParams:f},this[ni]=!1,this.getZr().wakeUp();else{try{Cd(this),Ql.update.call(this,null,f)}catch(d){throw this[Ui]=null,this[ni]=!1,d}this._ssr||this._zr.flush(),this[Ui]=null,this[ni]=!1,Yp.call(this,o),Kp.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Mt.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(){if(Mt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Q(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;Q(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 Q(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(U3[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();Q(tg,function(S,w){if(S.group===i){var C=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(sn(n)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),f=a(T.bottom,f),d.push({dom:C,left:T.left,top:T.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,_=Uh.createCanvas(),y=o3(_,{renderer:r?"svg":"canvas"});if(y.resize({width:v,height:m}),r){var b="";return Q(d,function(S){var w=S.left-l,C=S.top-u;b+=''+S.dom+""}),y.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new Zr({shape:{x:0,y:0,width:v,height:m},style:{fill:n.connectedBackgroundColor}})),Q(d,function(S){var w=new qu({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});y.add(w)}),y.refreshImmediately(),_.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return ST(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return ST(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=VC(i,n);return Q(a,function(s,l){l.indexOf("Models")>=0&&Q(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=VC(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?C0e(s,l,r):T0e(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;Q(s_e,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&pv(s,function(v){var m=Dn(v);if(m&&m.dataIndex!=null){var _=m.dataModel||a.getSeriesByIndex(m.seriesIndex);return l=_&&_.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=Ze({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),Q(eg,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),Q(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),aye(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&NH(this.getDom(),OR,"");var r=this,i=r._api,o=r._model;Q(r._componentsViews,function(a){a.dispose(o,i)}),Q(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 tg[r.id]},t.prototype.resize=function(n){if(!this[ni]){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[Ui]&&(o==null&&(o=this[Ui].silent),i=!0,this[Ui]=null),this[ni]=!0;try{i&&Cd(this),Ql.update.call(this,{type:"resize",animation:Ze({duration:0},n&&n.animation)})}catch(a){throw this[ni]=!1,a}this[ni]=!1,Yp.call(this,o),Kp.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(),!!qA[n]){var i=qA[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=Ze({},n);return r.type=eg[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Et(r)||(r={silent:!!r}),!!cb[n.type]&&this._model){if(this[ni]){this._pendingActions.push(n);return}var i=r.silent;xT.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Mt.browser.weChat&&this._throttledZrFlush(),Yp.call(this,i),Kp.call(this,i)}},t.prototype.updateLabelLayout=function(){Pa.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(){Cd=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),bT(f,!0),bT(f,!1),d.plan()},bT=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,_=d?f._componentsMap:f._chartsMap,y=f._zr,b=f._api,S=0;Sd.get("hoverLayerThreshold")&&!Mt.node&&!Mt.worker&&d.eachSeries(function(_){if(!_.preventUsingHoverLayer){var y=f._chartsMap[_.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),_=f.getTextGuideLine(),y=f.isGroup;if(y)for(var b=f.childrenRef(),S=0;S0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Zv(y))return;if(y instanceof Mn&&ppe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(v){y.stateTransition=_;var S=y.getTextContent(),w=y.getTextGuideLine();S&&(S.stateTransition=_),w&&(w.stateTransition=_)}y.__dirty&&i(y)}})}B3=function(f){return new(function(d){lt(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){q1(v,m),jo(f)},h.prototype.leaveEmphasis=function(v,m){J1(v,m),jo(f)},h.prototype.enterBlur=function(v){ipe(v),jo(f)},h.prototype.leaveBlur=function(v){VH(v),jo(f)},h.prototype.enterSelect=function(v){UH(v),jo(f)},h.prototype.leaveSelect=function(v){HH(v),jo(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(d8))(f)},$8=function(f){function d(h,v){for(var m=0;m=0)){H3.push(n);var o=m8.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function z8(e,t){qA[e]=t}function v_e(e,t,n){var r=j0e("registerMap");r&&r(e,t,n)}var g_e=Uge;zf(RR,s0e);zf(BS,l0e);zf(BS,u0e);zf(RR,w0e);zf(BS,x0e);zf(D8,z0e);H8(p8);G8(K0e,i0e);z8("default",c0e);Wh({type:_f,event:_f,update:_f},oo);Wh({type:X_,event:X_,update:X_},oo);Wh({type:Xv,event:Xv,update:Xv},oo);Wh({type:Y_,event:Y_,update:Y_},oo);Wh({type:Yv,event:Yv,update:Yv},oo);U8("light",b0e);U8("dark",S8);var G3=[],m_e={registerPreprocessor:H8,registerProcessor:G8,registerPostInit:f_e,registerPostUpdate:d_e,registerUpdateLifecycle:DR,registerAction:Wh,registerCoordinateSystem:h_e,registerLayout:p_e,registerVisual:zf,registerTransform:g_e,registerLoading:z8,registerMap:v_e,registerImpl:W0e,PRIORITY:i_e,ComponentModel:Tn,ComponentView:Ts,SeriesModel:Bu,ChartView:ys,registerComponentModel:function(e){Tn.registerClass(e)},registerComponentView:function(e){Ts.registerClass(e)},registerSeriesModel:function(e){Bu.registerClass(e)},registerChartView:function(e){ys.registerClass(e)},registerSubTypeDefaulter:function(e,t){Tn.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Fye(e,t)}};function Vu(e){if(ct(e)){Q(e,function(t){Vu(t)});return}En(G3,e)>=0||(G3.push(e),Ut(e)&&(e={install:e}),e.install(m_e))}var y_e=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Tn),__e=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),JA=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ka).models[0]},t.type="cartesian2dAxis",t}(Tn);As(JA,__e);var W8={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},b_e=_n({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},W8),LR=_n({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},W8),S_e=_n({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},LR),w_e=Cn({logBase:10},LR);const x_e={category:b_e,value:LR,time:S_e,log:w_e};var C_e=0,QA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++C_e}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Ot(r,T_e);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(!ht(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,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)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Kt(this.categories))},e}();function T_e(e){return Et(e)&&e.value!=null?e.value:e+""}var E_e={value:1,category:1,time:1,log:1};function z3(e,t,n,r){Q(E_e,function(i,o){var a=_n(_n({},x_e[o],!0),r,!0),s=function(l){lt(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Gg(this),h=d?$S(c):{},v=f.getTheme();_n(c,v.get(o+"Axis")),_n(c,this.getDefaultOption()),c.type=W3(c),d&&Ah(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=QA.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",W3)}function W3(e){return e.type||(e.data?"category":"value")}var Ps=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},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}();gS(Ps);function eI(e){return e.type==="interval"||e.type==="log"}function A_e(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=PH(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=j8(a),l=i.niceTickExtent=[wr(Math.ceil(e[0]/a)*a,s),wr(Math.floor(e[1]/a)*a,s)];return I_e(l,e),i}function TT(e){var t=Math.pow(10,K2(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,wr(n*t)}function j8(e){return ll(e)+2}function j3(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function I_e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),j3(e,0,t),j3(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function VS(e,t){return e>=t[0]&&e<=t[1]}function US(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function HS(e,t){return e*(t[1]-t[0])+t[0]}var NR=function(e){lt(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new QA({})),ct(i)&&(i=new QA({categories:Ot(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:ht(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),VS(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),US(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(HS(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=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ps);Ps.registerClass(NR);var Pc=wr,jh=function(e){lt(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},t.prototype.contain=function(n){return VS(n,this._extent)},t.prototype.normalize=function(n){return US(n,this._extent)},t.prototype.scale=function(n){return HS(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=j8(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:Pc(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&h>>1;e[i][1]i&&(this._approxInterval=i);var s=$0.length,l=Math.min(R_e($0,this._approxInterval,0,s),s-1);this._interval=$0[l][1],this._minLevelUnit=$0[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return qn(n)?n:+Tl(n)},t.prototype.contain=function(n){return VS(this.parse(n),this._extent)},t.prototype.normalize=function(n){return US(this.parse(n),this._extent)},t.prototype.scale=function(n){return HS(n,this._extent)},t.type="time",t}(jh),$0=[["second",bR],["minute",SR],["hour",qv],["quarter-day",qv*6],["half-day",qv*12],["day",ia*1.2],["half-week",ia*3.5],["week",ia*7],["month",ia*31],["quarter",ia*95],["half-year",AF/2],["year",AF]];function P_e(e,t,n,r){var i=Tl(t),o=Tl(n),a=function(v){return RF(i,v,r)===RF(o,v,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")},h=function(){return d()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function O_e(e,t){return e/=ia,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function D_e(e){var t=30*ia;return e/=t,e>6?6:e>3?3:e>2?2:1}function M_e(e){return e/=qv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function X3(e,t){return e/=t?SR:bR,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function L_e(e){return PH(e)}function N_e(e,t,n){var r=new Date(e);switch(oh(t)){case"year":case"month":r[P6(n)](0);case"day":r[O6(n)](1);case"hour":r[D6(n)](0);case"minute":r[M6(n)](0);case"second":r[L6(n)](0),r[N6(n)](0)}return r.getTime()}function k_e(e,t,n,r){var i=1e4,o=I6,a=0;function s(O,P,M,F,$,z,B){for(var K=new Date(P),j=P,le=K[F]();j1&&z===0&&M.unshift({value:M[0].value-j})}}for(var z=0;z=r[0]&&b<=r[1]&&f++)}var S=(r[1]-r[0])/t;if(f>S*1.5&&d>S/1.5||(u.push(_),f>S||e===o[h]))break}c=[]}}}for(var w=Yr(Ot(u,function(O){return Yr(O,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(O){return O.length>0}),C=[],T=w.length-1,h=0;h0;)o*=10;var s=[wr(B_e(r[0]/o)*o),wr($_e(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){ng.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=xa(n)/xa(this.base),VS(n,this._extent)},t.prototype.normalize=function(n){return n=xa(n)/xa(this.base),US(n,this._extent)},t.prototype.scale=function(n){return n=HS(n,this._extent),B0(this.base,n)},t.type="log",t}(Ps),Y8=kR.prototype;Y8.getMinorTicks=ng.getMinorTicks;Y8.getLabel=ng.getLabel;function V0(e,t){return F_e(e,ll(t))}Ps.registerClass(kR);var V_e=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,n){this[H_e[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=U_e[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),U_e={min:"_determinedMin",max:"_determinedMax"},H_e={min:"_dataMin",max:"_dataMax"};function G_e(e,t,n){var r=e.rawExtentInfo;return r||(r=new V_e(e,t,n),e.rawExtentInfo=r,r)}function U0(e,t){return t==null?null:H1(t)?NaN:e.parse(t)}function K8(e,t){var n=e.type,r=G_e(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=Qme("bar",a),l=!1;if(Q(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=tye(s),c=z_e(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function z_e(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=rye(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;Q(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;Q(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function K3(e,t){var n=t,r=K8(e,n),i=r.extent,o=n.get("splitNumber");e instanceof kR&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l=a==="interval"||a==="time";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 W_e(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new NR({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new X8({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Ps.getClass(t)||jh)}}function j_e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Xh(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(i,o){return e.scale.getFormattedLabel(i,o,r)}}(t):ht(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):Ut(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(FR(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function FR(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function X_e(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof NR?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=Xh(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function J_e(e){var t=e.getLabelModel().get("customValues");if(t){var n=Xh(e),r=e.scale.getExtent(),i=q8(e,t),o=Yr(i,function(a){return a>=r[0]&&a<=r[1]});return{labels:Ot(o,function(a){var s={value:a};return{formattedLabel:n(s),rawLabel:e.scale.getLabel(s),tickValue:a}})}}return e.type==="category"?e1e(e):n1e(e)}function Q_e(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=q8(e,n);return{ticks:Yr(i,function(o){return o>=r[0]&&o<=r[1]})}}return e.type==="category"?t1e(e,t):{ticks:Ot(e.scale.getTicks(),function(o){return o.value})}}function e1e(e){var t=e.getLabelModel(),n=J8(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function J8(e,t){var n=Q8(e,"labels"),r=$R(t),i=eG(n,r);if(i)return i;var o,a;return Ut(r)?o=rG(e,r):(a=r==="auto"?r1e(e):r,o=nG(e,a)),tG(n,r,{labels:o,labelCategoryInterval:a})}function t1e(e,t){var n=Q8(e,"ticks"),r=$R(t),i=eG(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),Ut(r))o=rG(e,r,!0);else if(r==="auto"){var s=J8(e,e.getLabelModel());a=s.labelCategoryInterval,o=Ot(s.labels,function(l){return l.tickValue})}else a=r,o=nG(e,a,!0);return tG(n,r,{ticks:o,tickCategoryInterval:a})}function n1e(e){var t=e.scale.getTicks(),n=Xh(e);return{labels:Ot(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Q8(e,t){return Yg(e)[t]||(Yg(e)[t]=[])}function eG(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,_=W2(n({value:l}),t.font,"center","top");v=_.width*1.3,m=_.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var y=d/c,b=h/f;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(y,b))),w=Yg(e.model),C=e.getExtent(),T=w.lastAutoInterval,E=w.lastTickCount;return T!=null&&E!=null&&Math.abs(T-S)<=1&&Math.abs(E-a)<=1&&T>S&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?S=T:(w.lastTickCount=a,w.lastAutoInterval=S,w.axisExtent0=C[0],w.axisExtent1=C[1]),S}function o1e(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 nG(e,t,n){var r=Xh(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=Z8(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(_){var y={value:_};s.push(n?_:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:_})}return s}function rG(e,t,n){var r=e.scale,i=Xh(e),o=[];return Q(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})}),o}var q3=[0,1],a1e=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(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return Ihe(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(t),this.onBand&&i.type==="ordinal"&&(r=r.slice(),J3(r,i.count())),Fk(t,q3,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),J3(r,i.count()));var o=Fk(t,r,q3,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=Q_e(this,n),i=r.ticks,o=Ot(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return s1e(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=Ot(r,function(o){return Ot(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return J_e(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,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(){return i1e(this)},e}();function J3(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function s1e(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],a=t[1]={coord:o[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;Q(t,function(h){h.coord-=u/2});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},t.push(a)}var f=o[0]>o[1];d(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&d(a.coord,o[1])&&t.push({coord:o[1]});function d(h,v){return h=wr(h),v=wr(v),f?h>v:hr[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}(a1e);function nI(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=_[s],o.labelOffset=a?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),kg(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function Q3(e){return e.get("coordinateSystem")==="cartesian2d"}function e5(e){var t={xAxisModel:null,yAxisModel:null};return Q(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,ka).models[0];t[r]=o}),t}var ET=Math.log;function u1e(e,t,n){var r=jh.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=K8(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=ET(e.base);u=[ET(u[0])/d,ET(u[1])/d]}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 v=r.getInterval.call(e),m=u[0],_=u[1];if(c&&f)v=(_-m)/a;else if(c)for(_=u[0]+v*a;_u[0]&&isFinite(m)&&isFinite(u[0]);)v=TT(v),m=u[1]-v*a;else{var y=e.getTicks().length-1;y>a&&(v=TT(v));var b=v*a;_=Math.ceil(u[1]/v)*v,m=wr(_-b),m<0&&u[0]>=0?(m=0,_=wr(b)):_>0&&u[1]<=0&&(_=0,m=-wr(b))}var S=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+v*S,_+v*w),r.setInterval.call(e,v),(S||w)&&r.setNiceExtent.call(e,m+v,_-v)}var c1e=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=tI,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=Zn(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=a[d],v=h.model,m=h.scale;eI(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(K3(m,v),eI(m)&&(s=h))}c.length&&(s||(s=c.pop(),K3(s.scale,s.model)),Q(c,function(_){u1e(_.scale,_.model,s.scale)}))}}i(r.x),i(r.y);var o={};Q(r.x,function(a){t5(r,"y",a,o)}),Q(r.y,function(a){t5(r,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var i=t.getBoxLayoutParams(),o=!r&&t.get("containLabel"),a=ib(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(Q(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=X_e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),Q(this._coordsList,function(u){u.calcAffineTransform()});function l(){Q(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),f1e(u,c?a.x:a.y)})}},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;i0?"top":"bottom",o="center"):K1(i-Su)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i0?"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}(),r5={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(la(s,s,a),la(l,l,a));var c=Ze({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Fu({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Vg(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);ht(d)&&(d=[d,d]),(ht(h)||qn(h))&&(h=[h,h]);var v=j6(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],_=h[1];Q([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(d[b]!=="none"&&d[b]!=null){var S=Ih(d[b],-m/2,-_/2,m,_,c.stroke,!0),w=y.r+y.offset,C=u?l:s;S.attr({rotation:y.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=p1e(n,r,t,e),o=g1e(n,r,t,e);if(h1e(t,o,i),v1e(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=sye(Ot(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));lye(a)}},axisName:function(e,t,n,r){var i=kg(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,o5(o)?e.labelOffset+a*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Su/180);var v;o5(o)?d=Pu.innerTextLayout(e.rotation,h??e.rotation,a):(d=d1e(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),_=t.get("nameTruncate",!0)||{},y=_.ellipsis,b=kg(e.nameTruncateMaxWidth,_.maxWidth,v),S=new uo({x:f[0],y:f[1],rotation:d.rotation,silent:Pu.isLabelSilent(t),style:Th(s,{text:i,font:m,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(AS({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var w=Pu.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Dn(S).eventData=w}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function d1e(e,t,n,r){var i=RH(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return K1(i-Su/2)?(a=l?"bottom":"top",o="center"):K1(i-Su*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",iSu/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function h1e(e,t,n){if(!Z8(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(Xo(o),Xo(u)):i5(o,a)&&(r?(Xo(a),Xo(c)):(Xo(o),Xo(u))),i===!1?(Xo(s),Xo(f)):i5(l,s)&&(i?(Xo(l),Xo(d)):(Xo(s),Xo(f)))}}function Xo(e){e&&(e.ignore=!0)}function i5(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=H2([]);return G2(i,i,-e.rotation),n.applyTransform(th([],i,e.getLocalTransform())),r.applyTransform(th([],i,t.getLocalTransform())),n.intersect(r)}}function o5(e){return e==="middle"||e==="center"}function iG(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function w1e(e){var t=BR(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=rI(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]),as)return!0;if(a){var l=BR(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=zc(t).pointerEl=new sve[o.type](l5(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=zc(t).labelEl=new uo(l5(n.label));t.add(o),c5(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=zc(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=zc(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),c5(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=fR(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){i8(u.event)},onmousedown:RT(this._onHandleDragMove,this,0,0),drift:RT(this._onHandleDragMove,this),ondragend:RT(this._onHandleDragEnd,this)}),r.add(i)),f5(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ct(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,r8(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){u5(this._axisPointerModel,!n&&this._moveAnimation,this._handle,PT(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(PT(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(PT(i)),zc(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),UA(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 u5(e,t,n,r){lG(zc(n).lastProp,r)||(zc(n).lastProp=r,t?$u(n,r,e):(n.stopAnimation(),n.attr(r)))}function lG(e,t){if(Et(e)&&Et(t)){var n=!0;return Q(t,function(r,i){n=n&&lG(e[i],r)}),!!n}else return e===t}function c5(e,t){e[t.get(["label","show"])?"show":"hide"]()}function PT(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function f5(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 M1e(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 L1e(e,t,n,r,i){var o=n.get("value"),a=uG(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=FS(s.get("padding")||0),u=s.getFont(),c=W2(a,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=i.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),N1e(f,d,h,r);var _=s.get("backgroundColor");(!_||_==="auto")&&(_=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Th(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:_}),z2:10}}function N1e(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 uG(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:FR(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Q(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),ht(a)?o=a.replace("{value}",o):Ut(a)&&(o=a(s))}return o}function cG(e,t,n){var r=eh();return G2(r,r,n.rotation),fA(r,r,n.position),cR([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function k1e(e,t,n,r,i,o){var a=Pu.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),L1e(t,r,i,o,{position:cG(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function F1e(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function $1e(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var B1e=function(e){lt(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=d5(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=M1e(o),h=V1e[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=nI(l.model,i);k1e(r,n,v,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=nI(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=cG(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=d5(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 d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(D1e);function d5(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var V1e={line:function(e,t,n){var r=F1e([t,n[0]],[t,n[1]],h5(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:$1e([t-r/2,n[0]],[r,i],h5(e))}}};function h5(e){return e.dim==="x"?0:1}var U1e=function(e){lt(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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Tn),ul=Dr(),H1e=Q;function fG(e,t,n){if(!Mt.node){var r=t.getZr();ul(r).records||(ul(r).records={}),G1e(r,t);var i=ul(r).records[e]||(ul(r).records[e]={});i.handler=n}}function G1e(e,t){if(ul(e).initialized)return;ul(e).initialized=!0,n("click",Fr(p5,"click")),n("mousemove",Fr(p5,"mousemove")),n("globalout",W1e);function n(r,i){e.on(r,function(o){var a=j1e(t);H1e(ul(e).records,function(s){s&&i(s,o,a.dispatchAction)}),z1e(a.pendings,t)})}}function z1e(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 W1e(e,t,n){e.handler("leave",null,n)}function p5(e,t,n,r){t.handler(e,n,r)}function j1e(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 oI(e,t){if(!Mt.node){var n=t.getZr(),r=(ul(n).records||{})[e];r&&(ul(n).records[e]=null)}}var X1e=function(e){lt(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";fG("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){oI("axisPointer",r)},t.prototype.dispose=function(n,r){oI("axisPointer",r)},t.type="axisPointer",t}(Ts);function dG(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Lf(o,e);if(a==null||a<0||ct(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,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(m)||[]}else n=l.dataToPoint(o.getValues(Ot(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var _=s.getBoundingRect().clone();_.applyTransform(s.transform),n=[_.x+_.width/2,_.y+_.height/2]}return{point:n,el:s}}var v5=Dr();function Y1e(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Kn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){n1(i)&&(i=dG({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=n1(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||n1(i),d={},h={},v={list:[],map:{}},m={showPointer:Fr(Z1e,h),showTooltip:Fr(q1e,v)};Q(s.coordSysMap,function(y,b){var S=l||y.containPoint(i);Q(s.coordSysAxesInfo[b],function(w,C){var T=w.axis,E=tbe(u,w);if(!f&&S&&(!u||E)){var R=E&&E.value;R==null&&!l&&(R=T.pointToData(i)),R!=null&&g5(w,R,m,!1,d)}})});var _={};return Q(c,function(y,b){var S=y.linkGroup;S&&!h[b]&&Q(S.axesInfo,function(w,C){var T=h[C];if(w!==y&&T){var E=T.value;S.mapper&&(E=y.axis.scale.parse(S.mapper(E,m5(w),m5(y)))),_[y.key]=E}})}),Q(_,function(y,b){g5(c[b],y,m,!0,d)}),J1e(h,c,d),Q1e(v,i,e,a),ebe(c,a,n),d}}function g5(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=K1e(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Ze(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function K1e(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Q(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,m=Math.abs(v);m<=a&&((m=0&&s<0)&&(a=m,s=v,i=f,o.length=0),Q(d,function(_){o.push({seriesIndex:l.seriesIndex,dataIndexInside:_,dataIndex:l.getData().getRawIndex(_)})}))}}),{payloadBatch:o,snapToValue:i}}function Z1e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function q1e(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=Kg(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 J1e(e,t,n){var r=n.axesInfo=[];Q(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 Q1e(e,t,n,r){if(n1(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 ebe(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=v5(r)[i]||{},a=v5(r)[i]={};Q(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&Q(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;a[h]=d})});var s=[],l=[];Q(o,function(u,c){!a[c]&&l.push(u)}),Q(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 tbe(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 m5(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 n1(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function hG(e){oG.registerAxisPointerClass("CartesianAxisPointer",B1e),e.registerComponentModel(U1e),e.registerComponentView(X1e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ct(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=m1e(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Y1e)}function nbe(e){Vu(O1e),Vu(hG)}function rbe(e,t){var n=FS(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Zr({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}),e}var ibe=function(e){lt(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,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Tn);function pG(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function vG(e){if(Mt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-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,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+h+"px";var v=t+" solid "+i+"px;",m=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'
'}function fbe(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=Mt.transformSupported?","+VR+r:",left"+r+",top"+r),sbe+":"+i}function y5(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Mt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Mt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+VR+":"+a+";":[["top",0],["left",0],[gG,a]]}function dbe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=nn(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),Q(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function hbe(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=W6(e,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(fbe(i,n)),o&&r.push("background-color:"+o),Q(["width","color","radius"],function(h){var v="border-"+h,m=F6(v),_=e.get(m);_!=null&&r.push(v+":"+_+(h==="color"?"":"px"))}),r.push(dbe(c)),f!=null&&r.push("padding:"+FS(f).join("px ")+"px"),r.join(";")+";"}function _5(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&cge(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 pbe=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,Mt.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&&(ht(o)?document.querySelector(o):Ng(o)?o:Ut(o)&&o(t.getDom()));_5(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();Zo(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=abe(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.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=lbe+hbe(t,!this._firstShow,this._longHide)+y5(o[0],o[1],!0)+("border-color:"+Nf(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(ht(o)&&r.get("trigger")==="item"&&!pG(r)&&(s=cbe(r,i,o)),ht(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ct(t)||(t=[t]);for(var l=0;l=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||Mt.node||!i.getDom())){var a=w5(o,i);this._ticket="";var s=o.dataByCoordSys,l=Sbe(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=gbe;c.x=o.x,c.y=o.y,c.update(),Dn(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=dG(o,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:o.position,positionDefault:"bottom"},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(w5(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=Zp([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=Dn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;pv(i,function(c){if(Dn(c).dataIndex!=null)return l=c,!0;if(Dn(c).tooltipConfig!=null)return u=c,!0},!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=Kn(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=Zp([r.tooltipOption],o),l=this._renderMode,u=[],c=zg("section",{blocks:[],noHeader:!0}),f=[],d=new nT;Q(n,function(b){Q(b.dataByAxis,function(S){var w=i.getComponent(S.axisDim+"Axis",S.axisIndex),C=S.value;if(!(!w||C==null)){var T=uG(C,w.axis,i,S.seriesDataIndices,S.valueLabelOpt),E=zg("section",{header:T,noHeader:!hs(T),sortBlocks:!0,blocks:[]});c.blocks.push(E),Q(S.seriesDataIndices,function(R){var I=i.getSeriesByIndex(R.seriesIndex),O=R.dataIndexInside,P=I.getDataParams(O);if(!(P.dataIndex<0)){P.axisDim=S.axisDim,P.axisIndex=S.axisIndex,P.axisType=S.axisType,P.axisId=S.axisId,P.axisValue=FR(w.axis,{value:C}),P.axisValueLabel=T,P.marker=d.makeTooltipMarker("item",Nf(P.color),l);var M=DF(I.formatTooltip(O,!0,null)),F=M.frag;if(F){var $=Zp([I],o).get("valueFormatter");E.blocks.push($?Ze({valueFormatter:$},F):F)}M.text&&f.push(M.text),u.push(P)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),m=NF(c,d,l,v,i.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var _=l==="richText"?` `:"
",y=f.join(_);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Dn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),h=this._renderMode,v=n.positionDefault,m=Zp([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),_=m.get("trigger");if(!(_!=null&&_!=="item")){var y=u.getDataParams(c,f),b=new nT;y.marker=b.makeTooltipMarker("item",Nf(y.color),h);var S=DF(u.formatTooltip(c,!1,f)),w=m.get("order"),C=m.get("valueFormatter"),T=S.frag,E=T?NF(C?Ze({valueFormatter:C},T):T,b,h,w,o.get("useUTC"),m.get("textStyle")):S.text,R="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,E,y,R,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Dn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ht(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=sn(l),l.content=qi(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,v=Zp(f,this._tooltipModel,h?{position:h}:null),m=v.get("content"),_=Math.random()+"",y=new nT;this._showOrMove(v,function(){var b=sn(v.get("formatterParams")||{});this._showTooltipContent(v,m,b,_,n.offsetX,n.offsetY,n.position,r,y)}),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 d=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),m=v.color;if(d)if(ht(d)){var _=n.ecModel.get("useUTC"),y=ct(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,b&&(h=DS(y.axisValue,h,_)),h=$6(h,i,!0)}else if(Ut(d)){var S=Kn(function(w,C){w===this._ticket&&(f.setContent(C,c,n,m,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,h=d(i,o,S)}else h=d;f.setContent(h,c,n,m,l),f.show(n,m),this._updatePosition(n,l,a,s,f,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ct(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ct(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(),d=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ut(r)&&(r=r([i,o],s,a.el,v,{viewSize:[u,c],contentSize:f.slice()})),ct(r))i=Ii(r[0],u),o=Ii(r[1],c);else if(Et(r)){var m=r;m.width=f[0],m.height=f[1];var _=ib(m,{width:u,height:c});i=_.x,o=_.y,d=null,h=null}else if(ht(r)&&l){var y=bbe(r,v,f,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=ybe(i,o,a,u,c,d?null:20,h?null:20);i=y[0],o=y[1]}if(d&&(i-=x5(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=x5(h)?f[1]/2:h==="bottom"?f[1]:0),pG(n)){var y=_be(i,o,a,u,c);i=y[0],o=y[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&&Q(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&Q(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],_=v.seriesDataIndices||[];a=a&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===_.length,a&&Q(m,function(y,b){var S=_[b];a=a&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),o&&Q(d.seriesDataIndices,function(y){var b=y.seriesIndex,S=r[b],w=o[b];S&&w&&w.data!==S.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){Mt.node||!r.getDom()||(UA(this,"_updatePosition"),this._tooltipContent.dispose(),oI("itemTooltip",r))},t.type="tooltip",t}(Ts);function Zp(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)),ht(a)&&(a={formatter:a}),a&&(i=new fr(a,i,r)))}return i}function w5(e,t){return e.dispatchAction||Kn(t.dispatchAction,t)}function ybe(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 _be(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 bbe(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 x5(e){return e==="center"||e==="middle"}function Sbe(e,t,n){var r=q2(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=Pm(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=Dn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function wbe(e){Vu(hG),e.registerComponentModel(ibe),e.registerComponentView(mbe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},oo),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},oo)}var xbe=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"])}},aI=function(e){lt(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"]),ct(r)&&Q(r,function(o,a){ht(o)&&(o={type:o}),r[a]=_n(o,xbe(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=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Tn),Td=Fr,sI=Q,H0=mi,yG=function(e){lt(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 H0),this.group.add(this._selectorGroup=new H0),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=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=n.get("padding"),h=ib(c,f,d),v=this.layoutInner(n,a,h,o,l,u),m=ib(Cn({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rbe(v,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=Kt(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),sI(r.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===` `)){var _=new H0;_.newline=!0,u.add(_);return}var y=i.getSeriesByName(m)[0];if(!c.get(m))if(y){var b=y.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),C=b.getVisual("style"),T=this._createItem(y,m,v,h,r,n,S,C,w,f,o);T.on("click",Td(C5,m,null,o,d)).on("mouseover",Td(lI,y.name,null,o,d)).on("mouseout",Td(uI,y.name,null,o,d)),i.ssr&&T.eachChild(function(E){var R=Dn(E);R.seriesIndex=y.seriesIndex,R.dataIndex=v,R.ssrType="legend"}),c.set(m,!0)}else i.eachRawSeries(function(E){if(!c.get(m)&&E.legendVisualProvider){var R=E.legendVisualProvider;if(!R.containName(m))return;var I=R.indexOfName(m),O=R.getItemVisual(I,"style"),P=R.getItemVisual(I,"legendIcon"),M=pl(O.fill);M&&M[3]===0&&(M[3]=.2,O=Ze(Ze({},O),{fill:yS(M,"rgba")}));var F=this._createItem(E,m,v,h,r,n,{},O,P,f,o);F.on("click",Td(C5,null,m,o,d)).on("mouseover",Td(lI,null,m,o,d)).on("mouseout",Td(uI,null,m,o,d)),i.ssr&&F.eachChild(function($){var z=Dn($);z.seriesIndex=E.seriesIndex,z.dataIndex=v,z.ssrType="legend"}),c.set(m,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();sI(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 d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);hR(f,{normal:d,emphasis:h},{defaultText:u.title}),TA(f)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var h=n.visualDrawType,v=a.get("itemWidth"),m=a.get("itemHeight"),_=a.isSelected(r),y=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var w=Cbe(c,o,l,u,h,_,d),C=new H0,T=o.getModel("textStyle");if(Ut(n.getLegendIcon)&&(!S||S==="inherit"))C.add(n.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var E=S==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;C.add(Tbe({itemWidth:v,itemHeight:m,icon:c,iconRotate:E,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var R=s==="left"?v+5:-5,I=s,O=a.get("formatter"),P=r;ht(O)&&O?P=O.replace("{name}",r??""):Ut(O)&&(P=O(r));var M=_?T.getTextColor():o.get("inactiveColor");C.add(new uo({style:Th(T,{text:P,x:R,y:m/2,fill:M,align:I,verticalAlign:"middle"},{inheritColor:M})}));var F=new Zr({shape:C.getBoundingRect(),style:{fill:"transparent"}}),$=o.getModel("tooltip");return $.get("show")&&AS({el:F,componentModel:a,itemName:r,itemTooltipOption:$.option}),C.add(F),C.eachChild(function(z){z.silent=!0}),F.silent=!f,this.getContentGroup().add(C),TA(C),C.__legendDataIndex=i,C},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Jv(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){Jv("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),m=n.getOrient().index,_=m===0?"width":"height",y=m===0?"height":"width",b=m===0?"y":"x";s==="end"?h[m]+=c[_]+v:f[m]+=d[_]+v,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[_]=c[_]+v+d[_],S[y]=Math.max(c[y],d[y]),S[b]=Math.min(0,d[b]+h[1-m]),S}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}(Ts);function Cbe(e,t,n,r,i,o,a){function s(_,y){_.lineWidth==="auto"&&(_.lineWidth=y.lineWidth>0?2:0),sI(_,function(b,S){_[S]==="inherit"&&(_[S]=y[S])})}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:YA(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 d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!o){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tbe(e){var t=e.icon||"roundRect",n=Ih(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="#fff",n.style.lineWidth=2),n}function C5(e,t,n,r){uI(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),lI(e,t,n,r)}function _G(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],_=[-h.x,-h.y];r||(_[o]=c[u]);var y=[0,0],b=[-v.x,-v.y],S=nn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(m){var w=n.get("pageButtonPosition",!0);w==="end"?b[o]+=i[a]-v[a]:y[o]+=v[a]+S}b[1-o]+=h[s]/2-v[s]/2,c.setPosition(_),f.setPosition(y),d.setPosition(b);var C={x:0,y:0};if(C[a]=m?i[a]:h[a],C[s]=Math.max(h[s],v[s]),C[l]=Math.min(0,v[l]+b[1-o]),f.__rectSize=i[a],m){var T={x:0,y:0};T[a]=Math.max(i[a]-v[a]-S,0),T[s]=C[s],f.setClipPath(new Zr({shape:T})),f.__rectSize=T[a]}else d.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(n);return E.pageIndex!=null&&$u(c,{x:E.contentPosition[0],y:E.contentPosition[1]},m?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;Q(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"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",ht(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=OT[a],l=DT[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=w(f);v.contentPosition[a]=-m.s;for(var _=u+1,y=m,b=m,S=null;_<=d;++_)S=w(c[_]),(!S&&b.e>y.s+o||S&&!C(S,y.s))&&(b.i>y.i?y=b:y=S,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),b=S;for(var _=u-1,y=m,b=m,S=null;_>=-1;--_)S=w(c[_]),(!S||!C(b,S.s))&&y.i=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}(yG);function Pbe(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 Obe(e){Vu(bG),e.registerComponentModel(Ibe),e.registerComponentView(Rbe),Pbe(e)}function Dbe(e){Vu(bG),Vu(Obe)}function I5(e,t,n){var r=Uh.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 MT=function(e){lt(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||X1,typeof n=="string"?a=I5(n,r,i):Et(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(oH(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=I5("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 bn(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new bn(0,0,0,0);S.copy(b),a.push(S)}else{for(var w=!1,C=1/0,T=0,E=0;E=s)}}for(var f=this.__startIndex;f15)break}}$.prevElClipPaths&&y.restore()};if(b)if(b.length===0)R=_.__endIndex;else for(var O=h.dpr,P=0;P0&&t>i[0]){for(l=0;lt);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;i0?G0:0),this._needsManuallyCompositing),c.__builtin__||B2("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&gs&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Q(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?_n(r[t],n,!0):r[t]=n;for(var i=0;i{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,f=a.fontFamily,d=s.color,h=s.backgroundColor,v=s.borderBottomColor,m=s.borderTopColor;Vt(()=>Zd.value,()=>{const w=getComputedStyle(n.value),C=getComputedStyle(r.value);l=w.color,u=w.backgroundColor,c=w.borderColor,d=C.color,h=C.backgroundColor,v=C.borderBottomColor,m=C.borderTopColor}),Vt(()=>Iv.value,()=>{f=getComputedStyle(n.value).fontFamily});const _=Le(()=>({legend:{bottom:0,data:t.data.map(w=>w.name),textStyle:{color:l,fontFamily:f}},grid:{left:60,top:15,right:10,bottom:25},tooltip:{show:!0,trigger:"axis",backgroundColor:u,borderColor:u,confine:!0,padding:[0,5],textStyle:{color:l,fontFamily:f},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:w=>Math.max(w.max,t.min),axisLine:{show:!1},splitLine:{show:!0,lineStyle:{type:"dashed",color:c}},axisLabel:{align:"left",padding:[0,0,0,-45],formatter:t.labelFormatter,color:l,fontFamily:f}},series:t.data.map((w,C)=>{const T=C===t.data.length-1?d:h,E=C===t.data.length-1?v:m;return{name:w.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:w.data,areaStyle:{color:new sR(0,0,0,1,[{offset:0,color:T},{offset:1,color:E}])},type:"line",color:T,smooth:!0}})})),y=u_e(o.value);y.setOption(_.value),Vt(_,()=>{i.value||y==null||y.setOption(_.value)});const{width:b}=Hee(o),S=$r.debounce(()=>{y.resize()},100);Vt(()=>b.value,()=>{S()})}),(a,s)=>(X(),te("div",$be,[L("div",{ref_key:"chart",ref:o,class:"h-full w-full",onTouchstart:s[0]||(s[0]=ur(()=>{},["stop"])),onTouchmove:s[1]||(s[1]=ur(()=>{},["stop"])),onTouchend:s[2]||(s[2]=ur(()=>{},["stop"]))},null,544),L("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),L("span",{class:"hidden border-b-primary/30 border-t-info/30 bg-info/60 text-primary/60",ref_key:"themeColorRef",ref:r},null,512),L("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[3]||(s[3]=l=>i.value=!i.value)},[(X(),Tt($a(i.value?N(gee):N(vee)),{class:"h-4 w-4"}))])]))}}),HR=it({__name:"ConnectionsCharts",setup(e){const{t}=Do(),n=Le(()=>[{name:t("connections"),data:k_.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name
${a.seriesName} (${Oo(a.data.name).format("HH:mm:ss")}): ${a.data.value} `}).join(` `);return(o,a)=>(X(),Tt(UR,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),GR=it({__name:"MemoryCharts",setup(e){const{t}=Do(),n=Le(()=>[{name:t("memoryUsage"),data:iv.value}]),r=o=>`${Gn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>QV(o[0],{binary:!0,suffix:""});return(o,a)=>(X(),Tt(UR,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),zR=it({__name:"SpeedCharts",setup(e){const t=ke(),{t:n}=Do(),r=Le(()=>[{name:n("ulSpeed"),data:av.value},{name:n("dlSpeed"),data:ov.value}]),i=a=>`${Gn(a,{maximumFractionDigits:1,binary:!1})}/s`,o=a=>a.map(s=>QV(s,{binary:!1,suffix:"/s"})).join("");return(a,s)=>(X(),Tt(UR,{ref_key:"chartRef",ref:t,data:r.value,"label-formatter":i,"tool-tip-formatter":o,min:60*1e3},null,8,["data"]))}}),Bbe={class:"card carousel carousel-vertical h-28 shrink-0 overflow-x-hidden text-sm hover:scrollbar-thin"},Vbe=it({__name:"OverviewCarousel",setup(e){return(t,n)=>(X(),te("div",Bbe,[se(zR,{class:"carousel-item box-border"}),se(GR,{class:"carousel-item box-border"}),se(HR,{class:"carousel-item box-border"})]))}}),Ube={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},Hbe={class:"flex flex-col items-center justify-center"},Gbe={class:"flex flex-col items-center justify-center"},zbe={class:"flex flex-col items-center justify-center"},Wbe={class:"flex flex-col items-center justify-center"},jbe={class:"flex flex-col items-center justify-center"},Xbe=it({__name:"VerticalInfos",setup(e){return(t,n)=>(X(),te("div",Ube,[L("div",Hbe,[se(N(bB),{class:"h-4 w-4"}),st(" "+ie(N(Bc)[N(Un).CONNECTIONS]),1)]),L("div",Gbe,[se(N(Wb),{class:"h-4 w-4"}),st(" "+ie(N(Bc)[N(Un).DOWNLOAD])+" ",1),L("span",null,ie(N(Bc)[N(Un).DL_SPEED]),1)]),L("div",zbe,[se(N(dm),{class:"h-4 w-4"}),st(" "+ie(N(Bc)[N(Un).UPLOAD])+" ",1),L("span",null,ie(N(Bc)[N(Un).UL_SPEED]),1)]),L("div",Wbe,[se(N(cee),{class:"h-4 w-4"}),st(" "+ie(N(Bc)[N(Un).MEMORY_USAGE]),1)]),L("div",jbe,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>us.value=!1)},[se(N(Lu),{class:"h-5 w-5"})])])]))}}),Ybe={class:"drawer-side z-30 bg-base-200 max-md:hidden"},Kbe={class:"menu flex-1"},Zbe=["onMouseenter"],qbe=["onClick"],Jbe={key:1,class:"flex w-full items-center justify-center"},Qbe={class:"card"},eSe=it({__name:"SideBar",setup(e){const{showTip:t}=Tm(),{t:n}=Do(),r=(s,l)=>{us.value&&t(s,n(l),{placement:"right"})},i={[un.connections]:IU,[un.logs]:RU,[un.proxies]:DU,[un.rules]:MU},o=Le(()=>a.name?i[a.name]:null),a=t2();return(s,l)=>(X(),te("div",Ybe,[l[1]||(l[1]=L("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),L("div",{class:ot(N(In)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden p-2 text-base-content !transition-all duration-500",N(us)?"w-18 px-0":"w-[21rem]"))},[L("ul",Kbe,[(X(!0),te(Ye,null,ln(N(Eo),u=>(X(),te("li",{key:u,onMouseenter:c=>r(c,u)},[L("a",{class:ot(u===N(a).name?"active":"inactive"),onClick:()=>N(Ga).push({name:u})},[(X(),Tt($a(N(zB)[u]),{class:"h-5 w-5"})),N(us)?yt("",!0):(X(),te(Ye,{key:0},[st(ie(s.$t(u)),1)],64))],10,qbe)],40,Zbe))),128))]),N(us)?(X(),te(Ye,{key:0},[N(y_)?(X(),Tt(Xbe,{key:0})):(X(),te("div",Jbe,[L("button",{class:"btn btn-circle btn-sm bg-base-300",onClick:l[0]||(l[0]=u=>us.value=!1)},[se(N(Lu),{class:"h-5 w-5"})])]))],64)):(X(),te(Ye,{key:1},[N(a).name!==N(un).overview?(X(),Tt(Vbe,{key:0})):yt("",!0),L("div",Qbe,[o.value?(X(),Tt($a(o.value),{key:0})):yt("",!0),se(Zue)])],64))],2)]))}}),LT=ke(!1),SG=()=>({isUIUpdateAvailable:LT,checkUIUpdate:async()=>{LT.value=await Sae(),LT.value&&p_.value&&$V()}}),cl=ke(!1),tSe=()=>{const e=t2(),t=GB(),n=ke(),{direction:r}=zee(n,{threshold:50}),i=()=>{const a=e.name;return a===un.setup?un.proxies:Eo.value[(Eo.value.indexOf(a)+1)%Eo.value.length]},o=()=>{const a=e.name;return a===un.setup?un.proxies:Eo.value[(Eo.value.indexOf(a)-1+Eo.value.length)%Eo.value.length]};return Vt(r,()=>{var a,s;cl.value||(s=(a=window.getSelection())==null?void 0:a.toString())!=null&&s.length||(r.value==="right"?t.push({name:o()}):r.value==="left"&&t.push({name:i()}))}),{swiperRef:n}},nSe={class:"w-128 drawer md:drawer-open"},rSe={key:0,class:"w-full bg-base-100"},iSe={class:"relative h-0 flex-1"},oSe={class:"absolute flex h-full w-full flex-col overflow-y-auto"},aSe=["onClick"],sSe={class:"text-xs"},lSe={class:"text-lg font-bold"},uSe={class:"flex justify-end gap-2"},cSe=it({__name:"HomePage",setup(e){const t=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,n={[un.connections]:IU,[un.logs]:RU,[un.proxies]:DU,[un.rules]:MU},r=GB(),i=t2(),o=Le(()=>n[i.name]),{proxiesTabShow:a}=Pg(),{swiperRef:s}=tSe();Vt(vi,()=>{vi.value&&(Bv.value=ph.RULES,a.value=Ef.PROXIES,T2(),Ha(),Dg(),Rae(),tA(),Oae())},{immediate:!0});const l=ke(!1),{showNotification:u}=Fh(),c=async()=>{const h=oa.value.filter(m=>m.uuid!==vi.value);l.value=!1;const v=(await Promise.all(h.map(async m=>await uN(m)?m:null))).filter(m=>m!==null);v.length>0&&(vi.value=v[0].uuid,u({content:"backendSwitchTo",params:{backend:Nu(v[0])}}))},f=Vee();Vt(f,async()=>{if(!(!wl.value||oa.value.length<2||f.value!=="visible"))try{await uN(wl.value)||(l.value=!0)}catch{l.value=!0}},{immediate:!0});const{checkUIUpdate:d}=SG();return d(),(h,v)=>(X(),te("div",nSe,[v[2]||(v[2]=L("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),se(eSe),L("div",{class:"drawer-content flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto",ref_key:"swiperRef",ref:s},[o.value&&N(us)?(X(),te("div",rSe,[(X(),Tt($a(o.value),{horizontal:!0}))])):yt("",!0),L("div",iSe,[L("div",oSe,[se(N(e2),null,{default:er(({Component:m,route:_})=>[se(Q4,{name:_.meta.transition||"fade"},{default:er(()=>[(X(),Tt($a(m)))]),_:2},1032,["name"])]),_:1})])]),L("div",{class:ot(["shrink-0 md:hidden",N(t)?"max-md:h-[5.5rem]":"max-md:h-14"])},null,2),L("div",{class:ot(`btm-nav z-30 bg-base-200 md:hidden ${N(t)?"h-[5.5rem] pb-8":"h-14"}`)},[(X(!0),te(Ye,null,ln(N(Eo),m=>(X(),te("button",{key:m,onClick:_=>N(r).push({name:m}),class:ot(m===N(i).name?"active bg-inherit":"")},[(X(),Tt($a(N(zB)[m]),{class:"h-5 w-5"})),L("span",sSe,ie(h.$t(m)),1)],10,aSe))),128))],2)],512),se(y2,{modelValue:l.value,"onUpdate:modelValue":v[1]||(v[1]=m=>l.value=m)},{default:er(()=>[L("h3",lSe,ie(h.$t("currentBackendUnavailable")),1),L("div",uSe,[L("button",{class:"btn btn-sm",onClick:v[0]||(v[0]=m=>l.value=!1)},ie(h.$t("cancel")),1),L("button",{class:"btn btn-primary btn-sm",onClick:c},ie(h.$t("confirm")),1)])]),_:1},8,["modelValue"])]))}}),fSe={class:"size-full overflow-x-hidden"},dSe={key:0,class:"card m-2 flex-row p-2 text-sm"},hSe={class:"card mb-1 block p-2 text-sm"},pSe={class:"mx-2 text-primary"},vSe={class:"ml-2"},gSe=it({__name:"LogsPage",setup(e){const t={[jc.Error]:"text-error",[jc.Warning]:"text-warning",[jc.Info]:"text-info",[jc.Debug]:"text-accent"},n=Le(()=>$1.value.filter(r=>Qd.value?r.payload.includes(Qd.value)||r.type.includes(Qd.value):!0));return(r,i)=>(X(),te("div",fSe,[n.value.length?yt("",!0):(X(),te("div",dSe,ie(r.$t("noContent")),1)),se(_2,{data:n.value,size:64,class:"p-2"},{default:er(({item:o})=>[L("div",hSe,[L("span",null,ie(o.seq),1),L("span",pSe,ie(N(Oo)(o.time).locale(N(gu)).format("HH:mm:ss")),1),L("span",{class:ot(t[o.type])},ie(o.type),3),L("span",vSe,ie(o.payload),1)])]),_:1},8,["data"])]))}}),mSe={class:"card card-compact w-full"},ySe={class:"card-title px-4 pt-4"},_Se={class:"card-body gap-4"},bSe={class:"grid grid-cols-1 gap-2 xl:grid-cols-3"},SSe=it({__name:"ChartsCard",setup(e){return(t,n)=>(X(),te("div",mSe,[L("div",ySe,ie(t.$t("overview")),1),L("div",_Se,[se(A2,{type:"overview"}),L("div",bSe,[se(zR,{class:"xl:h-64"}),se(GR,{class:"xl:h-64"}),se(HR,{class:"xl:h-64"})])])]))}}),wSe={class:"card card-compact w-full"},xSe={class:"card-title px-4 pt-4"},CSe={class:"font-normal text-base-content/80"},TSe={class:"card-body gap-4"},ESe={class:"grid grid-cols-1 gap-2 rounded-lg bg-base-200/40 px-4 py-2 lg:grid-cols-3"},ASe={class:"flex h-14 flex-col items-start justify-center gap-1"},ISe={class:"text-sm"},RSe={class:"text-base"},PSe={class:"flex h-14 flex-col items-start justify-center gap-1"},OSe={class:"text-sm"},DSe={class:"text-base"},MSe={class:"flex h-14 flex-col items-start justify-center gap-1"},LSe={class:"text-sm"},NSe={class:"text-base"},kSe={class:"flex h-14 flex-col items-start justify-center gap-1"},FSe={class:"text-sm"},$Se={class:"text-base"},BSe={class:"flex h-14 flex-col items-start justify-center gap-1"},VSe={class:"text-sm"},USe={class:"text-base"},HSe={class:"flex h-14 flex-col items-start justify-center gap-1"},GSe={class:"text-sm"},zSe={class:"text-base"},WSe=it({__name:"ConnectionHistory",setup(e){const t=Le(()=>ds.value.concat(Nv.value)),n=Le(()=>{const u={},c={},f={},d=m=>{var b;const y=((b=m.metadata.host||m.metadata.sniffHost)==null?void 0:b.split(".").slice(-2).join("."))||m.metadata.destinationIP;y in u?(u[y].download+=m.download,u[y].upload+=m.upload):u[y]={key:y,download:m.download,upload:m.upload}},h=m=>{const _=m.chains[0];_ in c?(c[_].download+=m.download,c[_].upload+=m.upload):c[_]={key:_,download:m.download,upload:m.upload}},v=m=>{const _=m.metadata.sourceIP;_ in f?(f[_].download+=m.download,f[_].upload+=m.upload):f[_]={key:_,download:m.download,upload:m.upload}};return t.value.forEach(m=>{d(m),h(m),v(m)}),{hostMap:u,proxyMap:c,sourceIPMap:f}}),r=Le(()=>{var c;const u=(c=Object.entries(n.value.hostMap).sort((f,d)=>d[1].download-f[1].download))==null?void 0:c[0];return u?{host:u[0],download:Gn(u[1].download)}:{host:"",download:0}}),i=Le(()=>{var c;const u=(c=Object.entries(n.value.hostMap).sort((f,d)=>d[1].upload-f[1].upload))==null?void 0:c[0];return u?{host:u[0],upload:Gn(u[1].upload)}:{host:"",upload:0}}),o=Le(()=>{var c;const u=(c=Object.entries(n.value.sourceIPMap).sort((f,d)=>d[1].download-f[1].download))==null?void 0:c[0];return u?{sourceIP:u[0],download:Gn(u[1].download)}:{sourceIP:"",download:0}}),a=Le(()=>{var c;const u=(c=Object.entries(n.value.sourceIPMap).sort((f,d)=>d[1].upload-f[1].upload))==null?void 0:c[0];return u?{sourceIP:u[0],upload:Gn(u[1].upload)}:{sourceIP:"",upload:0}}),s=Le(()=>{var c;const u=(c=Object.entries(n.value.proxyMap).sort((f,d)=>d[1].download-f[1].download))==null?void 0:c[0];return u?{proxy:u[0],download:Gn(u[1].download)}:{proxy:"",download:0}}),l=Le(()=>{var c;const u=(c=Object.entries(n.value.proxyMap).sort((f,d)=>d[1].upload-f[1].upload))==null?void 0:c[0];return u?{proxy:u[0],upload:Gn(u[1].upload)}:{proxy:"",upload:0}});return(u,c)=>(X(),te("div",wSe,[L("div",xSe,[st(ie(u.$t("totalConnections"))+" ",1),L("span",CSe," ("+ie(t.value.length)+") ",1)]),L("div",TSe,[L("div",ESe,[L("div",ASe,[L("div",ISe,ie(u.$t("mostDownloadHost")),1),L("div",RSe,ie(r.value.host)+" = "+ie(r.value.download),1)]),L("div",PSe,[L("div",OSe,ie(u.$t("mostDownloadSourceIP")),1),L("div",DSe,ie(o.value.sourceIP)+" = "+ie(o.value.download),1)]),L("div",MSe,[L("div",LSe,ie(u.$t("mostDownloadProxy")),1),L("div",NSe,ie(s.value.proxy)+" = "+ie(s.value.download),1)]),L("div",kSe,[L("div",FSe,ie(u.$t("mostUploadHost")),1),L("div",$Se,ie(i.value.host)+" = "+ie(i.value.upload),1)]),L("div",BSe,[L("div",VSe,ie(u.$t("mostUploadSourceIP")),1),L("div",USe,ie(a.value.sourceIP)+" = "+ie(a.value.upload),1)]),L("div",HSe,[L("div",GSe,ie(u.$t("mostUploadProxy")),1),L("div",zSe,ie(l.value.proxy)+" = "+ie(l.value.upload),1)])])])]))}}),Dc=ke({ip:[],ipWithPrivacy:[]}),Mc=ke({ip:[],ipWithPrivacy:[]}),z0=ke(""),W0=ke(""),j0=ke(""),X0=ke(""),Y0=ke(""),jSe={class:"relative h-28 rounded-lg bg-base-200/40 p-2 text-sm"},XSe={class:"flex flex-col"},wG=it({__name:"ConnectionStatus",setup(e){const t=async()=>{Iae().then(n=>{z0.value=n.toFixed(0)}),Cae().then(n=>{Y0.value=n.toFixed(0)}),Aae().then(n=>{W0.value=n.toFixed(0)}),Eae().then(n=>{j0.value=n.toFixed(0)}),Tae().then(n=>{X0.value=n.toFixed(0)})};return fo(()=>{m_.value&&[z0,Y0,W0,j0,X0].some(n=>n.value==="")&&t()}),(n,r)=>(X(),te("div",jSe,[L("div",XSe,[L("div",null,[r[0]||(r[0]=L("span",{class:"inline-block w-28"},"Baidu ",-1)),r[1]||(r[1]=st(" : ")),L("span",{class:ot(N(hu)(Number(N(z0))))},ie(N(z0))+"ms ",3)]),L("div",null,[r[2]||(r[2]=L("span",{class:"inline-block w-28"},"Cloudflare ",-1)),r[3]||(r[3]=st(" : ")),L("span",{class:ot(N(hu)(Number(N(Y0))))},ie(N(Y0))+"ms ",3)]),L("div",null,[r[4]||(r[4]=L("span",{class:"inline-block w-28"},"OpenAI CDN",-1)),r[5]||(r[5]=st(" : ")),L("span",{class:ot(N(hu)(Number(N(W0))))},ie(N(W0))+"ms ",3)]),L("div",null,[r[6]||(r[6]=L("span",{class:"inline-block w-28"},"Github ",-1)),r[7]||(r[7]=st(" : ")),L("span",{class:ot(N(hu)(Number(N(j0))))},ie(N(j0))+"ms ",3)]),L("div",null,[r[8]||(r[8]=L("span",{class:"inline-block w-28"},"YouTube ",-1)),r[9]||(r[9]=st(" : ")),L("span",{class:ot(N(hu)(Number(N(X0))))},ie(N(X0))+"ms ",3)])]),L("button",{class:"btn btn-circle btn-sm absolute bottom-2 right-2",onClick:t},[se(N(hm),{class:"h-4 w-4"})])]))}}),YSe={class:"relative flex h-28 flex-col gap-1 rounded-lg bg-base-200/40 p-2"},KSe={class:"tooltip tooltip-bottom text-left text-sm","data-tip":"ipip.net"},ZSe={key:0,class:"text-xs"},qSe={class:"tooltip tooltip-bottom text-left text-sm","data-tip":"api.ip.sb"},JSe={key:0,class:"text-xs"},QSe={class:"absolute bottom-2 right-2 flex items-center gap-2"},xG=it({__name:"IPCheck",setup(e){const{t}=Do(),n=ke(!1),{showTip:r}=Tm(),i=a=>{r(a,t("ipScreenshotTip"))},o=()=>{VV().then(a=>{Dc.value={ipWithPrivacy:[`${a.country} ${a.asn_organization}`,a.ip],ip:[`${a.country} ${a.asn_organization}`,"***.***.***.***"]}}),xae().then(a=>{Mc.value={ipWithPrivacy:[a.data.location.join(" "),a.data.ip],ip:[`${a.data.location[0]} ** ** **`,"***.***.***.***"]}})};return fo(()=>{g_.value&&[Dc,Mc].some(a=>a.value.ip.length===0)&&o()}),(a,s)=>(X(),te("div",YSe,[L("div",KSe,[st(ie(a.$t("chinaIP"))+" : "+ie(n.value?N(Mc).ipWithPrivacy[0]:N(Mc).ip[0])+" ",1),N(Mc).ip[1]?(X(),te("span",ZSe," ("+ie(n.value?N(Mc).ipWithPrivacy[1]:N(Mc).ip[1])+") ",1)):yt("",!0)]),L("div",qSe,[st(ie(a.$t("globalIP"))+" : "+ie(n.value?N(Dc).ipWithPrivacy[0]:N(Dc).ip[0])+" ",1),N(Dc).ip[1]?(X(),te("span",JSe," ("+ie(n.value?N(Dc).ipWithPrivacy[1]:N(Dc).ip[1])+") ",1)):yt("",!0)]),L("div",QSe,[L("button",{class:"btn btn-circle btn-sm flex items-center justify-center",onClick:s[0]||(s[0]=l=>n.value=!n.value),onMouseenter:i},[n.value?(X(),Tt(N(hee),{key:0,class:"h-4 w-4"})):(X(),Tt(N(dee),{key:1,class:"h-4 w-4"}))],32),L("button",{class:"btn btn-circle btn-sm",onClick:o},[se(N(hm),{class:"h-4 w-4"})])])]))}}),ewe={class:"card card-compact w-full"},twe={class:"card-title px-4 pt-4"},nwe={class:"card-body gap-4"},rwe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},iwe=it({__name:"NetworkCard",setup(e){return(t,n)=>(X(),te("div",ewe,[L("div",twe,ie(t.$t("networkInfo")),1),L("div",nwe,[L("div",rwe,[se(xG),se(wG)])])]))}}),owe={class:"flex h-full flex-col gap-2 overflow-y-auto overflow-x-hidden p-2"},awe={class:"card items-center justify-center gap-2 p-2 sm:flex-row"},swe=it({__name:"OverviewPage",setup(e){return(t,n)=>(X(),te("div",owe,[se(SSe),se(iwe),se(WSe),n[0]||(n[0]=L("div",{class:"flex-1"},null,-1)),L("div",awe,[st(ie(N(Nu)(N(wl)))+" ",1),se(E2)])]))}}),CG=it({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Le({get(){return b_.value[t.name]},set(l){l?(i.value=!1,r.value=!0,za(()=>{b_.value[t.name]=!0})):b_.value[t.name]=!1}}),r=ke(n.value),i=ke(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)},s=({open:l})=>{n.value=l};return nA.on(s),Gf(()=>{nA.off(s)}),(l,u)=>(X(),te("div",{class:ot(`collapse collapse-arrow ${n.value?"collapse-open":"collapse-close"}`)},[L("div",{class:"collapse-title cursor-pointer select-none pr-4",onClick:u[0]||(u[0]=c=>n.value=!n.value)},[cf(l.$slots,"title"),i.value?cf(l.$slots,"preview",{key:0}):yt("",!0)]),L("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionstart:o,onTransitionend:a},[r.value?cf(l.$slots,"content",{key:0}):yt("",!0)],32)],2))}});var db=function(){return db=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var d=3,h=0,v=0,m=s.length;vwindow.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}();const uwe={key:0,class:"loading loading-dots loading-xs text-base-content/80"},TG=it({__name:"LatencyTag",props:{name:{},loading:{type:Boolean},groupName:{}},setup(e){const t=e,n=ke(),r=Le(()=>lS(t.name??"",t.groupName));let i=null;fo(()=>{Vt(r,(a,s)=>{i?i==null||i.update(a):za(()=>{i=new lwe(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Gf(()=>{i=null});const o=Le(()=>hu(r.value));return(a,s)=>(X(),te("div",{class:ot(N(In)("flex h-5 w-10 items-center justify-center rounded-xl bg-base-100 text-xs md:hover:bg-base-200",o.value))},[a.loading?(X(),te("span",uwe)):r.value===N(Ji)||!r.value?(X(),Tt(N(hm),{key:1,class:"h-3 w-3 text-base-content"})):yt("",!0),gt(L("div",{ref_key:"latencyRef",ref:n},ie(r.value),513),[[jI,r.value!==N(Ji)&&!a.loading]])],2))}}),cwe={class:"flex w-full flex-1 items-center gap-1"},fwe={class:"flex h-4 w-full items-center justify-between"},dwe=it({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean},groupName:{}},setup(e){const t=e,{showTip:n}=Tm(),r=c=>{const f=c.target,{scrollWidth:d,clientWidth:h}=f;d>h&&n(c,f.innerText)},i=Le(()=>Or.value[t.name]),o=ke(!1),a=c=>(c=c.toLowerCase(),c=c.replace("shadowsocks","ss"),c=c.replace("hysteria","hy"),c=c.replace("wireguard","wg"),c),s=Le(()=>Dv.value===vm.SMALL),l=Le(()=>{const c=a(i.value.type),f=hf.value&&Nae(i.value.name)?"IPv6":"",d=i.value.xudp?"xudp":i.value.udp?"udp":"";return[c,d,f].filter(Boolean).join(s.value?"/":" / ")}),u=async()=>{if(!o.value){o.value=!0;try{await kae(t.name,m2(t.groupName)),o.value=!1}catch{o.value=!1}}};return(c,f)=>(X(),te("div",{ref:"cardRef",class:ot(N(In)("flex cursor-pointer flex-col items-start gap-[2px] rounded-md bg-base-200",c.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",s.value?"p-1":"p-2")),onContextmenu:ur(u,["stop","prevent"])},[L("div",cwe,[i.value.icon?(X(),Tt(sU,{key:0,class:"shrink-0",size:"small",icon:i.value.icon,fill:c.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):yt("",!0),L("span",{class:ot(N(In)("text-sm",N(Pv)&&"truncate")),onMouseenter:r},ie(i.value.name),35)]),L("div",fwe,[L("span",{class:ot(`whitespace-nowrap text-xs tracking-tight ${c.active?"text-primary-content":"text-base-content/60"}`)},ie(l.value),3),se(TG,{class:ot([s.value&&"!h-4 !w-8"]),name:i.value.name,loading:o.value,"group-name":c.groupName,onClick:ur(u,["stop"])},null,8,["class","name","loading","group-name"])])],34))}}),EG=cS(dwe,[["__scopeId","data-v-2bc227c0"]]),hwe=it({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=Pg();return(n,r)=>(X(),te("div",{class:ot(N(In)("grid grid-cols-2 gap-2 overflow-y-auto overflow-x-hidden",N(Pv)&&"max-h-96",N(Dv)===N(vm).LARGE?N(us)?N(t)?"sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5":"sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8 3xl:grid-cols-10":N(t)?"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4":"sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 3xl:grid-cols-8":N(us)?N(t)?"sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-4 2xl:grid-cols-5 3xl:grid-cols-6":"sm:grid-cols-4 md:grid-cols-5 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10 3xl:grid-cols-12":N(t)?"sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5":"sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 3xl:grid-cols-10"))},[cf(n.$slots,"default",{},void 0,!0)],2))}}),AG=cS(hwe,[["__scopeId","data-v-e3469916"]]),pwe={key:0,class:"flex flex-wrap gap-1 pt-2"},vwe=["onMouseenter","onClick"],gwe={key:0,class:"h-2 w-2 rounded-full bg-white"},mwe={key:1,class:"flex items-center gap-2 py-2"},ywe={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},_we=it({__name:"ProxyPreview",props:{nodes:{},now:{},groupName:{}},setup(e){const t=e,{showTip:n}=Tm(),r=(f,d)=>{const h=document.createElement("div"),v=document.createElement("div");if(v.textContent=d.name,h.append(v),d.latency!==Ji){const m=document.createElement("div");m.textContent=`${d.latency}ms`,m.classList.add(hu(d.latency)),h.append(m)}h.classList.add("flex","items-center","gap-2"),n(f,h)},i=Le(()=>Ov.value===Sg.DOTS||Ov.value===Sg.AUTO&&t.nodes.length<20),o=Le(()=>t.nodes.map(f=>({latency:lS(f,t.groupName),name:f}))),a=f=>f===Ji?"bg-gray-500":fo.value.filter(f=>f.latencyJi).length),l=Le(()=>o.value.filter(f=>f.latency>=mu.value&&f.latencyo.value.filter(f=>f.latency>=il.value).length),c=Le(()=>o.value.filter(f=>f.latency===Ji).length);return(f,d)=>i.value?(X(),te("div",pwe,[(X(!0),te(Ye,null,ln(o.value,h=>(X(),te("div",{key:h.name,class:ot(["flex h-4 w-4 items-center justify-center rounded-full transition hover:scale-110",a(h.latency)]),ref_for:!0,ref:"dotsRef",onMouseenter:v=>r(v,h),onClick:ur(v=>f.$emit("nodeclick",h.name),["stop"])},[f.now===h.name?(X(),te("div",gwe)):yt("",!0)],42,vwe))),128))])):(X(),te("div",mwe,[L("div",ywe,[L("div",{class:ot(a(N(mu)-1)),style:Ir({width:`${s.value*100/f.nodes.length}%`})},null,6),L("div",{class:ot(a(N(il)-1)),style:Ir({width:`${l.value*100/f.nodes.length}%`})},null,6),L("div",{class:ot(a(N(il)+1)),style:Ir({width:`${u.value*100/f.nodes.length}%`})},null,6),L("div",{class:ot(a(N(Ji))),style:Ir({width:`${c.value*100/f.nodes.length}%`})},null,6)])]))}}),IG=cS(_we,[["__scopeId","data-v-a4c81688"]]),bwe={class:"flex flex-1 items-center gap-1"},Swe={class:"flex-1 text-xs text-base-content/60"},wwe={class:"flex flex-1 items-center gap-1"},xwe={class:"min-w-12 shrink-0 text-right text-xs"},Cwe=it({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Le(()=>Or.value[t.name]),r=Le(()=>KV(n.value.all??[],t.name)),i=ke(!1),o=async()=>{if(!i.value){i.value=!0;try{await $ae(t.name),i.value=!1}catch{i.value=!1}}},a=Le(()=>ds.value.filter(l=>l.chains.includes(t.name)).reduce((l,u)=>l+u.downloadSpeed,0));return(s,l)=>(X(),Tt(CG,{name:n.value.name},{title:er(()=>{var u;return[L("div",{class:"flex items-center gap-2 pr-5",onContextmenu:ur(o,["prevent","stop"])},[L("div",bwe,[se(If,{name:n.value.name,size:"large"},null,8,["name"]),L("span",Swe,": "+ie(n.value.type)+" ("+ie((u=r.value)==null?void 0:u.length)+")",1)]),se(TG,{class:ot(N(In)("z-10 bg-base-200/40 hover:shadow")),loading:i.value,name:n.value.now,"group-name":n.value.name,onClick:ur(o,["stop"])},null,8,["class","loading","name","group-name"])],32),L("div",{class:"mt-[2px] flex items-center gap-2 text-base-content/80",onContextmenu:ur(o,["prevent","stop"])},[L("div",wwe,[n.value.now?(X(),te(Ye,{key:0},[se(N(Lu),{class:"h-4 w-4 shrink-0"}),se(If,{name:n.value.now},null,8,["name"])],64)):yt("",!0)]),L("div",xwe,ie(N(Gn)(a.value))+"/s ",1)],32)]}),preview:er(()=>[se(IG,{nodes:r.value,now:n.value.now,groupName:n.value.name,onNodeclick:l[0]||(l[0]=u=>N(hN)(n.value.name,u))},null,8,["nodes","now","groupName"])]),content:er(()=>[se(AG,null,{default:er(()=>[(X(!0),te(Ye,null,ln(r.value,u=>(X(),Tt(EG,{key:u,name:u,"group-name":n.value.name,active:u===n.value.now,onClick:c=>N(hN)(n.value.name,u)},null,8,["name","group-name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),Twe={class:"flex items-center gap-2"},Ewe={class:"text-lg font-medium sm:text-xl"},Awe={class:"text-sm"},Iwe={class:"flex gap-2"},Rwe={key:0,class:"loading loading-spinner loading-xs"},Pwe=["value"],Owe={class:"flex flex-col text-base-content/80 sm:flex-row sm:gap-4"},Dwe={class:"text-sm"},Mwe={class:"text-sm"},Lwe={class:"text-sm"},Nwe=it({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=c=>{const{Download:f=0,Upload:d=0,Total:h=0,Expire:v=0}=c;if(f===0&&d===0&&h===0&&v===0)return null;const m=Gn(h,{binary:!0}),_=Gn(f+d,{binary:!0}),y=$r.toFinite(((f+d)/h*100).toFixed(2));return{total:m,used:_,percentage:y,expirePrefix:()=>{const{t:w}=Do();return w("expire")},expireStr:()=>{const{t:w}=Do();return v===0?w("noExpire"):Oo(v*1e3).format("YYYY-MM-DD")}}},r=Le(()=>Ig.value.find(c=>c.name===t.name)),i=Le(()=>KV(r.value.proxies.map(c=>c.name))),o=Le(()=>r.value.subscriptionInfo?n(r.value.subscriptionInfo):null),a=ke(!1),s=ke(!1),l=async()=>{if(!s.value){s.value=!0;try{await uae(t.name),await Ha(),s.value=!1}catch{s.value=!1}}},u=async()=>{if(!a.value){a.value=!0;try{await kV(t.name),await Ha(),a.value=!1}catch{a.value=!1}}};return(c,f)=>(X(),Tt(CG,{name:r.value.name},{title:er(()=>[L("div",Twe,[L("div",Ewe,[st(ie(r.value.name)+" ",1),L("span",Awe," ("+ie(i.value.length)+") ",1)]),f[0]||(f[0]=L("div",{class:"flex-1"},null,-1)),L("div",Iwe,[L("button",{class:ot(N(In)("btn btn-circle btn-sm z-30")),onClick:ur(l,["stop"])},[s.value?(X(),te("span",Rwe)):(X(),Tt(N(hm),{key:1,class:"h-4 w-4"}))],2),L("button",{class:ot(N(In)("btn btn-circle btn-sm z-30",a.value?"animate-spin":"")),onClick:ur(u,["stop"])},[se(N(_B),{class:"h-4 w-4"})],2)])]),o.value?(X(),te("progress",{key:0,class:"progress text-slate-500",value:o.value.percentage,max:"100"},null,8,Pwe)):yt("",!0),L("div",Owe,[o.value?(X(),te(Ye,{key:0},[L("div",Dwe,ie(o.value.used)+" / "+ie(o.value.total)+" ( "+ie(o.value.percentage)+"% ) ",1),L("div",Mwe,ie(o.value.expirePrefix())+": "+ie(o.value.expireStr()),1)],64)):yt("",!0),L("div",Lwe,ie(c.$t("updated"))+" "+ie(N(uS)(r.value.updatedAt)),1)])]),preview:er(()=>[se(IG,{nodes:i.value},null,8,["nodes"])]),content:er(()=>[se(AG,null,{default:er(()=>[(X(!0),te(Ye,null,ln(i.value,d=>(X(),Tt(EG,{key:d,name:d},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),kwe={class:"overflow-x-hidden p-2"},Fwe={key:0,class:"grid grid-cols-2 gap-1"},$we={key:1,class:"grid grid-cols-1 gap-1"},Bwe=it({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=Pg(),r=Le(()=>t.value===Ef.PROVIDER?Nwe:Cwe),i=(o,a)=>o.filter((s,l)=>l%2===a);return Ha(),(o,a)=>(X(),te("div",kwe,[N(Kte)&&N(Rv)&&N(n).length>1?(X(),te("div",Fwe,[(X(),te(Ye,null,ln([0,1],s=>L("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(X(!0),te(Ye,null,ln(i(N(n),s),l=>(X(),Tt($a(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(X(),te("div",$we,[(X(!0),te(Ye,null,ln(N(n),s=>(X(),Tt($a(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),Vwe={class:"mr-2 inline-block min-w-4 text-center"},Uwe={class:"mr-2 text-base-content/60"},Hwe={key:0,class:"mr-2 text-primary"},Gwe={key:1,class:"badge badge-sm bg-base-200"},zwe={class:"flex items-center gap-1"},P5=it({__name:"RuleCard",props:{rule:{},index:{}},setup(e){const t=e,n=Le(()=>Or.value[t.rule.proxy]),r=Le(()=>lS(t.rule.proxy,t.rule.proxy)),i=Le(()=>hu(Number(r.value)));return(o,a)=>{var s;return X(),te("div",{class:ot(N(In)("card gap-1 p-2 text-sm",!o.rule.payload&&"gap-0"))},[L("div",null,[L("span",Vwe,ie(o.index)+".",1),L("span",Uwe,ie(o.rule.type)+":",1),o.rule.payload?(X(),te("span",Hwe,ie(o.rule.payload),1)):yt("",!0),typeof o.rule.size=="number"&&o.rule.size!==-1?(X(),te("span",Gwe,ie(o.rule.size),1)):yt("",!0)]),L("div",zwe,[se(If,{name:o.rule.proxy},null,8,["name"]),(s=n.value)!=null&&s.now?(X(),te(Ye,{key:0},[se(N(Lu),{class:"h-4 w-4"}),se(If,{name:n.value.now},null,8,["name"])],64)):yt("",!0),r.value!==N(Ji)?(X(),te("span",{key:1,class:ot([i.value,"ml-1"])},ie(r.value)+"ms",3)):yt("",!0)])],2)}}}),Wwe={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},jwe={class:"flex flex-1 flex-col sm:flex-row"},Xwe={class:"flex flex-1 items-center gap-2"},Ywe={class:"badge badge-sm bg-base-200"},Kwe={class:"flex gap-3 text-base-content/80"},Zwe=it({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=ke(!1),n=e,r=async()=>{t.value||(t.value=!0,await FV(n.ruleProvider.name),Dg(),t.value=!1)};return(i,o)=>(X(),te("div",Wwe,[L("div",jwe,[L("div",Xwe,[L("span",null,ie(i.index)+".",1),L("span",null,ie(i.ruleProvider.name),1),L("span",Ywe,ie(i.ruleProvider.ruleCount),1)]),L("div",Kwe,[L("span",null,ie(i.ruleProvider.behavior),1),L("span",null,ie(i.ruleProvider.vehicleType),1),L("span",null,ie(i.$t("updated"))+" "+ie(N(uS)(i.ruleProvider.updatedAt)),1)])]),L("button",{class:ot(N(In)("btn btn-circle btn-sm",t.value?"animate-spin":"")),onClick:r},[se(N(_B),{class:"h-4 w-4"})],2)]))}}),qwe=it({__name:"RulesPage",setup(e){return(t,n)=>(X(),te("div",{class:ot(["flex flex-col gap-1 overflow-x-hidden",N(i0).length<200&&"p-2"])},[N(Bv)===N(ph).PROVIDER?(X(!0),te(Ye,{key:0},ln(N(Fue),(r,i)=>(X(),Tt(Zwe,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128)):N(i0).length<200?(X(!0),te(Ye,{key:1},ln(N(i0),r=>(X(),Tt(P5,{key:r.payload,rule:r,index:N(Og).indexOf(r)+1},null,8,["rule","index"]))),128)):(X(),Tt(_2,{key:2,data:N(i0),size:64,class:"p-2"},{default:er(({item:r})=>[(X(),Tt(P5,{class:"mb-1",key:r.payload,rule:r,index:N(Og).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))],2))}}),Jwe={class:"join w-96 max-sm:w-full"},Qwe={class:"flex max-h-96 flex-col gap-1 overflow-y-auto"},exe={key:0,class:"flex gap-1"},txe=it({__name:"DnsQuery",setup(e){const t=Va({name:"www.google.com",type:"A"}),n=ke(null),r=ke([]),i=async()=>{var a;const{data:o}=await gae(t);r.value=o.Answer,(a=r.value)!=null&&a.length?n.value=await VV(r.value[0].data):n.value=null};return(o,a)=>{var s,l,u,c;return X(),te(Ye,null,[L("div",Jwe,[se(Sm,{modelValue:t.name,"onUpdate:modelValue":a[0]||(a[0]=f=>t.name=f),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),gt(L("select",{"onUpdate:modelValue":a[1]||(a[1]=f=>t.type=f),class:"join-item select select-bordered select-sm"},a[2]||(a[2]=[L("option",{value:"A"},"A",-1),L("option",{value:"AAAA"},"AAAA",-1),L("option",{value:"MX"},"MX",-1)]),512),[[Vr,t.type]]),L("button",{class:"btn join-item btn-sm",onClick:i},ie(o.$t("DNSQuery")),1)]),L("div",Qwe,[(X(!0),te(Ye,null,ln(r.value,f=>(X(),te("div",{class:"flex gap-1",key:f.data},[L("div",null,ie(f.name),1),a[3]||(a[3]=st(" : ")),L("div",null,ie(f.data),1)]))),128))]),n.value?(X(),te("div",exe,ie((s=n.value)==null?void 0:s.ip)+": AS"+ie((l=n.value)==null?void 0:l.asn)+" "+ie((u=n.value)==null?void 0:u.asn_organization)+" "+ie((c=n.value)==null?void 0:c.country),1)):yt("",!0)],64)}}}),nxe={class:"card card-compact"},rxe={class:"card-title px-4 pt-4"},ixe={class:"card-body gap-4"},oxe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},axe={class:"shrink-0"},sxe=["onUpdate:modelValue","onChange"],lxe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},uxe={key:0,class:"flex items-center gap-2"},cxe={class:"flex items-center gap-2"},fxe={class:"flex items-center gap-2"},dxe={key:1,class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},hxe={class:"indicator w-full"},pxe={key:0,class:"indicator-item flex"},vxe=it({__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=()=>{T2(),Dg(),Ha()},r=ke(!1),i=async()=>{if(!r.value){r.value=!0;try{await vae(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=ke(!1),a=async()=>{if(!o.value){o.value=!0;try{await BV(),n(),o.value=!1}catch{o.value=!1}}},s=ke(!1),l=async()=>{if(!s.value){s.value=!0;try{await pae(),n(),s.value=!1}catch{s.value=!1}}},u=async()=>{var f;await V_({tun:{enable:(f=Xr.value)==null?void 0:f.tun.enable}})},c=async()=>{var f;await V_({"allow-lan":(f=Xr.value)==null?void 0:f["allow-lan"]})};return(f,d)=>{var h;return X(),te("div",nxe,[L("div",rxe,ie(f.$t("backend")),1),L("div",ixe,[se(LU),se(E2),!N(ws)&&N(Xr)?(X(),te(Ye,{key:0},[d[4]||(d[4]=L("div",{class:"divider"},null,-1)),L("div",oxe,[(X(),te(Ye,null,ln(t,v=>L("div",{class:"flex items-center gap-2",key:v.key},[L("span",axe,ie(f.$t(v.label))+": ",1),gt(L("input",{class:"input input-sm input-bordered w-20 sm:w-24",type:"number","onUpdate:modelValue":m=>N(Xr)[v.key]=m,onChange:m=>N(V_)({[v.key]:Number(N(Xr)[v.key])})},null,40,sxe),[[sr,N(Xr)[v.key]]])])),64))]),L("div",lxe,[(h=N(Xr))!=null&&h.tun?(X(),te("div",uxe,[st(ie(f.$t("tunMode"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[0]||(d[0]=v=>N(Xr).tun.enable=v),onChange:u},null,544),[[ar,N(Xr).tun.enable]])])):yt("",!0),L("div",cxe,[st(ie(f.$t("allowLan"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=v=>N(Xr)["allow-lan"]=v),onChange:c},null,544),[[ar,N(Xr)["allow-lan"]]])]),L("div",fxe,[st(ie(f.$t("autoUpgrade"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":d[2]||(d[2]=v=>at(v_)?v_.value=v:null)},null,512),[[ar,N(v_)]])])])],64)):yt("",!0),N(yh)?(X(),te("div",dxe,[N(ws)?yt("",!0):(X(),te(Ye,{key:0},[L("div",hxe,[N($E)?(X(),te("span",pxe,d[5]||(d[5]=[L("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),L("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):yt("",!0),L("button",{class:ot(N(In)("btn btn-primary btn-sm flex-1",o.value?"animate-pulse":"")),onClick:a},ie(f.$t("upgradeCore")),3)]),L("button",{class:ot(N(In)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},ie(f.$t("restartCore")),3),L("button",{class:ot(N(In)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},ie(f.$t("reloadConfigs")),3)],64)),L("button",{class:"btn btn-sm",onClick:d[3]||(d[3]=(...v)=>N(lN)&&N(lN)(...v))},ie(f.$t("flushFakeIP")),1)])):yt("",!0),d[6]||(d[6]=L("div",{class:"divider"},null,-1)),se(txe)])])}}});var r1={exports:{}},NT={exports:{}},kT={};/** * @vue/compiler-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Rh=Symbol(""),sh=Symbol(""),GS=Symbol(""),Zg=Symbol(""),WR=Symbol(""),Uu=Symbol(""),jR=Symbol(""),XR=Symbol(""),zS=Symbol(""),WS=Symbol(""),Yh=Symbol(""),jS=Symbol(""),YR=Symbol(""),XS=Symbol(""),YS=Symbol(""),KS=Symbol(""),ZS=Symbol(""),qS=Symbol(""),JS=Symbol(""),KR=Symbol(""),ZR=Symbol(""),Dm=Symbol(""),qg=Symbol(""),QS=Symbol(""),ew=Symbol(""),Ph=Symbol(""),Kh=Symbol(""),tw=Symbol(""),hb=Symbol(""),RG=Symbol(""),pb=Symbol(""),Jg=Symbol(""),PG=Symbol(""),OG=Symbol(""),nw=Symbol(""),DG=Symbol(""),MG=Symbol(""),rw=Symbol(""),qR=Symbol(""),kf={[Rh]:"Fragment",[sh]:"Teleport",[GS]:"Suspense",[Zg]:"KeepAlive",[WR]:"BaseTransition",[Uu]:"openBlock",[jR]:"createBlock",[XR]:"createElementBlock",[zS]:"createVNode",[WS]:"createElementVNode",[Yh]:"createCommentVNode",[jS]:"createTextVNode",[YR]:"createStaticVNode",[XS]:"resolveComponent",[YS]:"resolveDynamicComponent",[KS]:"resolveDirective",[ZS]:"resolveFilter",[qS]:"withDirectives",[JS]:"renderList",[KR]:"renderSlot",[ZR]:"createSlots",[Dm]:"toDisplayString",[qg]:"mergeProps",[QS]:"normalizeClass",[ew]:"normalizeStyle",[Ph]:"normalizeProps",[Kh]:"guardReactiveProps",[tw]:"toHandlers",[hb]:"camelize",[RG]:"capitalize",[pb]:"toHandlerKey",[Jg]:"setBlockTracking",[PG]:"pushScopeId",[OG]:"popScopeId",[nw]:"withCtx",[DG]:"unref",[MG]:"isRef",[rw]:"withMemo",[qR]:"isMemoSame"};function LG(e){Object.getOwnPropertySymbols(e).forEach(t=>{kf[t]=e[t]})}const gxe={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},mxe={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"},yxe={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},_xe={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"},Mr={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function NG(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Mr}}function Oh(e,t,n,r,i,o,a,s=!1,l=!1,u=!1,c=Mr){return e&&(s?(e.helper(Uu),e.helper(Bf(e.inSSR,u))):e.helper($f(e.inSSR,u)),a&&e.helper(qS)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:a,isBlock:s,disableTracking:l,isComponent:u,loc:c}}function Ou(e,t=Mr){return{type:17,loc:t,elements:e}}function Ao(e,t=Mr){return{type:15,loc:t,properties:e}}function dr(e,t){return{type:16,loc:Mr,key:Rt(e)?kt(e,!0):e,value:t}}function kt(e,t=!1,n=Mr,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function bxe(e,t){return{type:5,loc:t,content:Rt(e)?kt(e,!1,t):e}}function ua(e,t=Mr){return{type:8,loc:t,children:e}}function br(e,t=[],n=Mr){return{type:14,loc:n,callee:e,arguments:t}}function Ff(e,t=void 0,n=!1,r=!1,i=Mr){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function vb(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Mr}}function kG(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Mr}}function FG(e){return{type:21,body:e,loc:Mr}}function Sxe(e){return{type:22,elements:e,loc:Mr}}function wxe(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Mr}}function xxe(e,t){return{type:24,left:e,right:t,loc:Mr}}function Cxe(e){return{type:25,expressions:e,loc:Mr}}function Txe(e){return{type:26,returns:e,loc:Mr}}function $f(e,t){return e||t?zS:WS}function Bf(e,t){return e||t?jR:XR}function iw(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n($f(r,e.isComponent)),t(Uu),t(Bf(r,e.isComponent)))}const O5=new Uint8Array([123,123]),D5=new Uint8Array([125,125]);function M5(e){return e>=97&&e<=122||e>=65&&e<=90}function Co(e){return e===32||e===10||e===9||e===12||e===13}function eu(e){return e===47||e===62||Co(e)}function gb(e){const t=new Uint8Array(e.length);for(let n=0;n=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?eu(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||Co(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart=t||(this.state===28?this.currentSequence===ri.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 Axe={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"},Ixe={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