small-package/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-CP5L6Jr1.js

178 lines
1.2 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()<B.date())return-$(B,z);var K=12*(B.year()-z.year())+(B.month()-z.month()),j=z.clone().add(K,f),le=B-j<0,me=z.clone().add(K+(le?-1:1),f);return+(-(K+(B-j)/(le?j-me:me-j))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:a,ms:o,Q:d}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},C="en",T={};T[C]=b;var E="$isDayjsObject",R=function($){return $ instanceof M||!(!$||!$[E])},I=function $(z,B,K){var j;if(!z)return C;if(typeof z=="string"){var le=z.toLowerCase();T[le]&&(j=le),B&&(T[le]=B,j=le);var me=z.split("-");if(!j&&me.length>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)<this.startOf(K)},z.isBefore=function(B,K){return this.endOf(K)<O(B)},z.$g=function(B,K,j){return P.u(B)?this[K]:this.set(j,B)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(B,K){var j=this,le=!!P.u(K)||K,me=P.p(B),ge=function(Se,Ce){var Oe=P.w(j.$u?Date.UTC(j.$y,Ce,Se):new Date(j.$y,Ce,Se),j);return le?Oe:Oe.endOf(u)},De=function(Se,Ce){return P.w(j.toDate()[Se].apply(j.toDate("s"),(le?[0,0,0,0]:[23,59,59,999]).slice(Ce)),j)},Fe=this.$W,ze=this.$M,Me=this.$D,je="set"+(this.$u?"UTC":"");switch(me){case h:return le?ge(1,0):ge(31,11);case f:return le?ge(1,ze):ge(0,ze+1);case c:var fe=this.$locale().weekStart||0,Ee=(Fe<fe?Fe+7:Fe)-fe;return ge(le?Me-Ee:Me+(6-Ee),ze);case u:case v:return De(je+"Hours",0);case l:return De(je+"Minutes",1);case s:return De(je+"Seconds",2);case a:return De(je+"Milliseconds",3);default:return this.clone()}},z.endOf=function(B){return this.startOf(B,!1)},z.$set=function(B,K){var j,le=P.p(B),me="set"+(this.$u?"UTC":""),ge=(j={},j[u]=me+"Date",j[v]=me+"Date",j[f]=me+"Month",j[h]=me+"FullYear",j[l]=me+"Hours",j[s]=me+"Minutes",j[a]=me+"Seconds",j[o]=me+"Milliseconds",j)[le],De=le===u?this.$D+(K-this.$W):K;if(le===f||le===h){var Fe=this.clone().set(v,1);Fe.$d[ge](De),Fe.init(),this.$d=Fe.set(v,Math.min(this.$D,Fe.daysInMonth())).$d}else ge&&this.$d[ge](De);return this.init(),this},z.set=function(B,K){return this.clone().$set(B,K)},z.get=function(B){return this[P.p(B)]()},z.add=function(B,K){var j,le=this;B=Number(B);var me=P.p(K),ge=function(ze){var Me=O(le);return P.w(Me.date(Me.date()+Math.round(ze*B)),le)};if(me===f)return this.set(f,this.$M+B);if(me===h)return this.set(h,this.$y+B);if(me===u)return ge(1);if(me===c)return ge(7);var De=(j={},j[s]=r,j[l]=i,j[a]=n,j)[me]||1,Fe=this.$d.getTime()+B*De;return P.w(Fe,this)},z.subtract=function(B,K){return this.add(-1*B,K)},z.format=function(B){var K=this,j=this.$locale();if(!this.isValid())return j.invalidDate||m;var le=B||"YYYY-MM-DDTHH:mm:ssZ",me=P.z(this),ge=this.$H,De=this.$m,Fe=this.$M,ze=j.weekdays,Me=j.months,je=j.meridiem,fe=function(Ce,Oe,Be,H){return Ce&&(Ce[Oe]||Ce(K,le))||Be[Oe].slice(0,H)},Ee=function(Ce){return P.s(ge%12||12,Ce,"0")},Se=je||function(Ce,Oe,Be){var H=Ce<12?"AM":"PM";return Be?H.toLowerCase():H};return le.replace(y,function(Ce,Oe){return Oe||function(Be){switch(Be){case"YY":return String(K.$y).slice(-2);case"YYYY":return P.s(K.$y,4,"0");case"M":return Fe+1;case"MM":return P.s(Fe+1,2,"0");case"MMM":return fe(j.monthsShort,Fe,Me,3);case"MMMM":return fe(Me,Fe);case"D":return K.$D;case"DD":return P.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return fe(j.weekdaysMin,K.$W,ze,2);case"ddd":return fe(j.weekdaysShort,K.$W,ze,3);case"dddd":return ze[K.$W];case"H":return String(ge);case"HH":return P.s(ge,2,"0");case"h":return Ee(1);case"hh":return Ee(2);case"a":return Se(ge,De,!0);case"A":return Se(ge,De,!1);case"m":return String(De);case"mm":return P.s(De,2,"0");case"s":return String(K.$s);case"ss":return P.s(K.$s,2,"0");case"SSS":return P.s(K.$ms,3,"0");case"Z":return me}return null}(Ce)||me.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(B,K,j){var le,me=this,ge=P.p(K),De=O(B),Fe=(De.utcOffset()-this.utcOffset())*r,ze=this-De,Me=function(){return P.m(me,De)};switch(ge){case h:le=Me()/12;break;case f:le=Me();break;case d:le=Me()/3;break;case c:le=(ze-Fe)/6048e5;break;case u:le=(ze-Fe)/864e5;break;case l:le=ze/i;break;case s:le=ze/r;break;case a:le=ze/n;break;default:le=ze}return j?le:P.a(le)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return T[this.$L]},z.locale=function(B,K){if(!B)return this.$L;var j=this.clone(),le=I(B,K,!0);return le&&(j.$L=le),j},z.clone=function(){return P.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},$}(),F=M.prototype;return O.prototype=F,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function($){F[$[1]]=function(z){return this.$g(z,$[0],$[1])}}),O.extend=function($,z){return $.$i||($(z,M,O),$.$i=!0),O},O.locale=I,O.isDayjs=R,O.unix=function($){return O(1e3*$)},O.en=T[C],O.Ls=T,O.p={},O})}(i_)),i_.exports}var qK=_I();const Oo=rm(qK);var o_={exports:{}},JK=o_.exports,ZD;function QK(){return ZD||(ZD=1,function(e,t){(function(n,r){e.exports=r(_I())})(JK,function(n){function r(v){return v&&typeof v=="object"&&"default"in v?v:{default:v}}var i=r(n),o="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),s="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),l="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),u=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function c(v,m,_){var y,b;return _==="m"?m?"минута":"минуту":v+" "+(y=+v,b={mm:m?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",MM:"месяц_месяцаесяцев",yy:"год_годает"}[_].split("_"),y%10==1&&y%100!=11?b[0]:y%10>=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;w<S;w+=1){var C=b[w];C.d&&(v=d?i(u).diff(f,C.d,!0):f.diff(u,C.d,!0));var T=(n.rounding||Math.round)(Math.abs(v));if(_=v>0,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<e.length;n++)e[n](...t)},SI=(e,t,n,r=!1)=>{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<r.length;s++)if(o+=r[s].length+(i[s]&&i[s].length||0),o>=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<e.length;n++){const r=e[n],i=Rt(r)?xI(r):Ir(r);if(i)for(const o in i)t[o]=i[o]}return t}else if(Rt(e)||vn(e))return e}const xZ=/;(?![^(]*\))/g,CZ=/:([^]+)/,TZ=/\/\*[^]*?\*\//g;function xI(e){const t={};return e.replace(TZ,"").split(xZ).forEach(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<e.length;n++){const r=ot(e[n]);r&&(t+=r+" ")}else if(vn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function h$(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Rt(t)&&(e.class=ot(t)),n&&(e.style=Ir(n)),e}const AZ="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",IZ="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",RZ="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",PZ="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",p$=Ur(AZ),v$=Ur(IZ),g$=Ur(RZ),m$=Ur(PZ),y$="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_$=Ur(y$),OZ=Ur(y$+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function CI(e){return!!e||e===""}const DZ=/[>/="'\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<t.length;o++){switch(t.charCodeAt(o)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}a!==o&&(r+=t.slice(a,o)),a=o+1,r+=i}return a!==o?r+t.slice(a,o):r}const UZ=/^-?>|<!--|-->|--!>|<!-$/g;function HZ(e){return e.replace(UZ,"")}const b$=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/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<e.length;r++)n=_l(e[r],t[r]);return n}function _l(e,t){if(e===t)return!0;let n=YT(e),r=YT(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Di(e),r=Di(t),n||r)return e===t;if(n=Qe(e),r=Qe(t),n||r)return n&&r?zZ(e,t):!1;if(n=vn(e),r=vn(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const s=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(s&&!l||!s&&l||!_l(e[a],t[a]))return!1}}return String(e)===String(t)}function am(e,t){return e.findIndex(n=>_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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ti;try{return Ti=this,t()}finally{Ti=n}}}on(){Ti=this}off(){Ti=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function x$(e){return new TI(e)}function Ob(){return Ti}function EI(e,t=!1){Ti&&Ti.cleanups.push(e)}let Fn;const Cx=new WeakSet;class cg{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ti&&Ti.active&&Ti.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Cx.has(this)&&(Cx.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||T$(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nM(this),E$(this);const t=Fn,n=Fa;Fn=this,Fa=!0;try{return this.fn()}finally{A$(this),Fn=t,Fa=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)RI(t);this.deps=this.depsTail=void 0,nM(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Cx.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){KT(this)&&this.run()}get dirty(){return KT(this)}}let C$=0,_v,bv;function T$(e,t=!1){if(e.flags|=8,t){e.next=bv,bv=e;return}e.next=_v,_v=e}function AI(){C$++}function II(){if(--C$>0)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)<t.length:cn(t,n),s=Reflect.set(t,n,r,at(t)?t:i);return t===an(i)&&(a?li(r,o)&&tl(t,"set",n,r):tl(t,"add",n,r)),s}deleteProperty(t,n){const r=cn(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&tl(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Di(n)||!O$.has(n))&&ui(t,"has",n),r}ownKeys(t){return ui(t,"iterate",Qe(t)?"length":uf),Reflect.ownKeys(t)}}class L$ extends D${constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const tq=new M$,nq=new L$,rq=new M$(!0),iq=new L$(!0),qT=e=>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<e.length;r++)nl(e[r],t,n);else if(Gu(e)||af(e))e.forEach(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<e.length;o++)i.push(ca(e[o],t,n,r));return i}}function Hf(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Jt;if(t){let s=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}s=s.parent}if(o){Wu(),kh(o,null,10,[e,l,u]),ju();return}}Oq(e,n,i,r,a)}function Oq(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Ai=[];let os=-1;const Xd=[];let ou=null,Pd=0;const W$=Promise.resolve();let m1=null;function za(e){const t=m1||W$;return e?t.then(this?e.bind(this):e):t}function Dq(e){let t=os+1,n=Ai.length;for(;t<n;){const r=t+n>>>1,i=Ai[r],o=pg(i);o<e||o===e&&i.flags&2?t=r+1:n=r}return t}function MI(e){if(!(e.flags&1)){const t=pg(e),n=Ai[Ai.length-1];!n||!(e.flags&2)&&t>=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(;n<Ai.length;n++){const r=Ai[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ai.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function y1(e){if(Xd.length){const t=[...new Set(Xd)].sort((n,r)=>pg(n)-pg(r));if(Xd.length=0,ou){ou.push(...t);return}for(ou=t,Pd=0;Pd<ou.length;Pd++){const n=ou[Pd];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ou=null,Pd=0}}const pg=e=>e.id==null?e.flags&2?-1:1/0:e.id;function X$(e){try{for(os=0;os<Ai.length;os++){const t=Ai[os];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),kh(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;os<Ai.length;os++){const t=Ai[os];t&&(t.flags&=-2)}os=-1,Ai.length=0,y1(),m1=null,(Ai.length||Xd.length)&&X$()}}let Od,Fy=[];function Y$(e,t){var n,r;Od=e,Od?(Od.enabled=!0,Fy.forEach(({event:i,args:o})=>Od.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;i<t.length;i++){let[o,a,s,l=Jt]=t[i];o&&(bt(o)&&(o={mounted:o,updated:o}),o.deep&&nl(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:s,modifiers:l}))}return e}function ss(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const s=i[a];o&&(s.oldValue=o[a].value);let l=s.dir[r];l&&(Wu(),ca(l,n,8,[e.el,s,e,t]),ju())}}const K$=Symbol("_vte"),Z$=e=>e.__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<s.length;v++){const m=s[v];r(m,t,n,h,!!m.dynamicChildren)}}},move:$y,hydrate:kq};function $y(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(a,t,n),(!f||Sv(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,n,2);f&&r(s,t,n)}function kq(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:u,createText:c}},f){const d=t.target=eE(t.props,l);if(d){const h=Sv(t.props),v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(a(e),t,s(e),n,r,i,o),t.targetStart=v,t.targetAnchor=v&&a(v);else{t.anchor=a(e);let m=v;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")t.targetStart=m;else if(m.data==="teleport anchor"){t.targetAnchor=m,d._lpa=t.targetAnchor&&a(t.targetAnchor);break}}m=a(m)}t.targetAnchor||J$(d,t,c,u),f(v&&a(v),t,d,n,r,i,o)}u_(t,h)}return t.anchor&&a(t.anchor)}const Fq=q$;function u_(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function J$(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[K$]=o,e&&(r(i,e),r(o,e)),o}const au=Symbol("_leaveCb"),By=Symbol("_enterCb");function LI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fo(()=>{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;o<e.length;o++){let a=e[o];const s=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===Ye?(a.patchFlag&128&&i++,r=r.concat($b(a.children,t,s))):(t||a.type!==Sr)&&r.push(s!=null?Ss(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function it(e,t){return bt(e)?Qt({name:e.name},t,{setup:e}):e}function Bq(){const e=xr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function kI(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vq(e){const t=xr(),n=Uf(null);if(t){const i=t.refs===Jt?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.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<w.staticCount;j++)K&&(w.children+=B.nodeType===1?B.outerHTML:B.data),j===w.staticCount-1&&(w.anchor=B),B=o(B);return I?o(B):B}else O();break;case Ye:I?B=v(S,w,C,T,E,R):B=O();break;default:if(F&1)(z!==1||w.type.toLowerCase()!==S.tagName.toLowerCase())&&!b(S)?B=O():B=d(S,w,C,T,E,R);else if(F&6){w.slotScopeIds=E;const K=a(S);if(I?B=_(S):Bd(S)&&S.data==="teleport start"?B=_(S,S.data,"teleport end"):B=o(S),t(w,K,null,C,T,Vy(K),R),Tu(w)&&!w.type.__asyncResolved){let j;I?(j=se(Ye),j.anchor=B?B.previousSibling:K.lastChild):j=S.nodeType===3?st(""):se("div"),j.el=S,w.component.subTree=j}}else F&64?z!==8?B=O():B=w.type.hydrate(S,w,C,T,E,R,e,h):F&128&&(B=w.type.hydrate(S,w,C,T,Vy(a(S)),E,R,e,f))}return M!=null&&gg(M,null,T,w),B},d=(S,w,C,T,E,R)=>{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<P;M++){const F=I?O[M]:O[M]=Yi(O[M]),$=F.type===dl;S?($&&!I&&M+1<P&&Yi(O[M+1]).type===dl&&(l(i(S.data.slice(F.children.length)),C,o(S)),S.data=F.children),S=f(S,F,T,E,R,I)):$&&!F.children?l(F.el=i(""),C):(Uy(C,1)||ud(),n(null,F,C,null,T,E,Vy(C),R))}return S},v=(S,w,C,T,E,R)=>{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&&t<o||r>0&&r<o)&&(n>0&&n<a||i>0&&i<a)}const Kq=e=>(t,n)=>{const r=new IntersectionObserver(i=>{for(const o of i)if(o.isIntersecting){r.disconnect(),t();break}},e);return n(i=>{if(i instanceof Element){if(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;u<c;u++)i[u]=t(l?ci(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(vn(e))if(e[Symbol.iterator])i=Array.from(e,(s,l)=>t(s,l,void 0,o&&o[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const c=s[l];i[l]=t(e[c],c,l,o&&o[l])}}else i=[];return n&&(n[r]=i),i}function aJ(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Qe(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function 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;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wi(e,t){return e?[...new Set([].concat(e,t))]:t}function nv(e,t){return e?Qt(Object.create(null),e,t):t}function pM(e,t){return e?Qe(e)&&Qe(t)?[...new Set([...e,...t])]:Qt(Object.create(null),mg(e),mg(t??{})):t}function EJ(e,t){if(!e)return t;if(!t)return e;const n=Qt(Object.create(null),e);for(const r in t)n[r]=wi(e[r],t[r]);return n}function p4(){return{app:null,config:{isNativeTag:$d,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let AJ=0;function IJ(e,t){return function(r,i=null){bt(r)||(r=Qt({},r)),i!=null&&!vn(i)&&(i=null);const o=p4(),a=new WeakSet,s=[];let l=!1;const u=o.app={_uid:AJ++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:K4,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&bt(c.install)?(a.add(c),c.install(u,...f)):bt(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||se(r,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,fm(h.component)}},onUnmount(c){s.push(c)},unmount(){l&&(ca(s,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=ff;ff=u;try{return c()}finally{ff=f}}};return u}}let ff=null;function xv(e,t){if(Ar){let n=Ar.provides;const r=Ar.parent&&Ar.parent.provides;r===n&&(n=Ar.provides=Object.create(r)),n[e]=t}}function to(e,t,n=!1){const r=Ar||Rr;if(r||ff){const i=ff?ff._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&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<c.length;f++){let d=c[f];if(Hb(e.emitsOptions,d))continue;const h=t[d];if(l)if(cn(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const v=$n(d);i[v]=oE(l,s,v,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{y4(e,t,i,o)&&(u=!0);let c;for(const f in s)(!t||!cn(t,f)&&((c=fi(f))===f||!cn(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(i[f]=oE(l,s,f,void 0,e,!0)):delete i[f]);if(o!==s)for(const f in o)(!t||!cn(t,f))&&(delete o[f],u=!0)}u&&tl(e.attrs,"set","")}function y4(e,t,n,r){const[i,o]=e.propsOptions;let a=!1,s;if(t)for(let l in t){if(fl(l))continue;const u=t[l];let c;i&&cn(i,c=$n(l))?!o||!o.includes(c)?n[c]=u:(s||(s={}))[c]=u:Hb(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=an(n),u=s||Jt;for(let c=0;c<o.length;c++){const f=o[c];n[f]=oE(i,l,f,u[f],e,!cn(u,f))}}return a}function oE(e,t,n,r,i,o){const a=e[n];if(a!=null){const s=cn(a,"default");if(s&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&bt(l)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=Cf(i);r=u[n]=l.call(null,t),c()}}else r=l;i.ce&&i.ce._setProp(n,r)}a[0]&&(o&&!s?r=!1:a[1]&&(r===""||r===fi(n))&&(r=!0))}return r}const OJ=new WeakMap;function _4(e,t,n=!1){const r=n?OJ:t.propsCache,i=r.get(e);if(i)return i;const o=e.props,a={},s=[];let l=!1;if(!bt(e)){const c=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;c<o.length;c++){const f=$n(o[c]);vM(f)&&(a[f]=Jt)}else if(o)for(const c in o){const f=$n(c);if(vM(f)){const d=o[c],h=a[f]=Qe(d)||bt(d)?{type:d}:Qt({},d),v=h.type;let m=!1,_=!0;if(Qe(v))for(let y=0;y<v.length;++y){const b=v[y],S=bt(b)&&b.name;if(S==="Boolean"){m=!0;break}else S==="String"&&(_=!1)}else m=bt(v)&&v.name==="Boolean";h[0]=m,h[1]=_,(m||cn(h,"default"))&&s.push(f)}}const u=[a,s];return vn(e)&&r.set(e,u),u}function vM(e){return e[0]!=="$"&&!fl(e)}const b4=e=>e[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<we.length;U++)h(H,we[U]);if(ve){let U=ve.subTree;if(G===U||S1(U.type)&&(U.ssContent===G||U.ssFallback===G)){const W=ve.vnode;E(H,W,W.scopeId,W.slotScopeIds,ve.parent)}}},R=(H,G,ue,we,ve,U,W,q,de=0)=>{for(let _e=de;_e<H.length;_e++){const Pe=H[_e]=q?su(H[_e]):Yi(H[_e]);m(null,Pe,G,ue,we,ve,U,W,q)}},I=(H,G,ue,we,ve,U,W)=>{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<Ke.length;pt++){const ee=Ke[pt],oe=Z[ee],pe=he[ee];(pe!==oe||ee==="value")&&o(q,ee,oe,pe,ve,ue)}}de&1&&H.children!==G.children&&c(q,G.children)}else!W&&_e==null&&P(q,Z,he,ue,ve);((Ve=he.onVnodeUpdated)||Pe)&&Er(()=>{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<G.length;q++){const de=H[q],_e=G[q],Pe=de.el&&(de.type===Ye||!Ma(de,_e)||de.shapeFlag&70)?f(de.el):ue;m(de,_e,Pe,null,we,ve,U,W,!0)}},P=(H,G,ue,we,ve)=>{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;he<Z;he++){const Ve=G[he]=de?su(G[he]):Yi(G[he]);m(H[he],Ve,ue,null,ve,U,W,q,de)}_e>Pe?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=Ve<Pe?G[Ve].el:we;for(;_e<=he;)m(null,G[_e]=de?su(G[_e]):Yi(G[_e]),ue,Ke,ve,U,W,q,de),_e++}}else if(_e>he)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;_e++)re[_e]=0;for(_e=Ve;_e<=Z;_e++){const $e=H[_e];if(oe>=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<Pe?G[$e+1].el:we;re[_e]===0?m(null,et,ue,Ge,ve,U,W,q,de):Te&&(ee<0||_e!==Ae[ee]?ge(et,ue,Ge,2):ee--)}}},ge=(H,G,ue,we,ve=null)=>{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;Z<de.length;Z++)ge(de[Z],G,ue,we);r(H.anchor,G,ue);return}if(W===df){S(H,G,ue);return}if(we!==2&&_e&1&&q)if(we===0)q.beforeEnter(U),r(U,G,ue),Er(()=>q.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<H.length;W++)De(H[W],G,ue,we,ve)},fe=H=>{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<r.length;o++){const a=r[o];let s=i[o];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[o]=su(i[o]),s.el=a.el),!n&&s.patchFlag!==-2&&zI(a,s)),s.type===dl&&(s.el=a.el)}}function NJ(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,a=n.length-1;o<a;)s=o+a>>1,e[n[s]]<u?o=s+1:a=s;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function 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;t<e.length;t++)e[t].flags|=8}const R4=Symbol.for("v-scx"),P4=()=>to(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<n.length&&r;i++)r=r[n[i]];return r}}function M4(e,t,n=Jt){const r=xr(),i=$n(t),o=fi(t),a=L4(e,i),s=DI((l,u)=>{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<e.length;r++){const i=e[r];if(Sl(i)){if(i.type!==Sr||i.children==="v-if"){if(n)return;n=i}}else return}return n}const VJ=e=>{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;f<c.length;f++){const d=c[f];if(a[d]!==r[d]&&!Hb(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===a?!1:r?a?gM(r,a,u):!0:!!a;return!1}function gM(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Hb(n,o))return!0}return!1}function Gb({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const S1=e=>e.__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;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ot([t.class,r.class]));else if(i==="style")t.style=Ir([t.style,r.style]);else if(Hu(i)){const o=t[i],a=r[i];a&&o!==a&&!(Qe(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=r[i])}return t}function Wi(e,t,n,r=null){ca(e,t,7,[n,r])}const QJ=p4();let eQ=0;function G4(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||QJ,o={uid:eQ++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new TI(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_4(r,i),emitsOptions:N4(r,i),emit:null,emitted:null,propsDefaults:Jt,inheritAttrs:r.inheritAttrs,ctx:Jt,data:Jt,props:Jt,attrs:Jt,slots:Jt,refs:Jt,setupState:Jt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=$J.bind(null,o),e.ce&&e.ce(o),o}let Ar=null;const xr=()=>Ar||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;r<n.length;r++)if(li(n[r],t[r]))return!1;return xf>0&&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"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`: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<l&&f()},s+1),e.addEventListener(u,d)}function tB(e,t){const n=window.getComputedStyle(e),r=v=>(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.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>CM(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;i<EM.length;i++){const o=EM[i]+r;if(o in e)return Mx[t]=o}return t}const AM="http://www.w3.org/1999/xlink";function IM(e,t,n,r,i,o=_$(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(AM,t.slice(6,t.length)):e.setAttributeNS(AM,t,n):n==null||o&&!CI(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Di(n)?String(n):n)}function RM(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Z4(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const s=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(s!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const s=typeof e[t];s==="boolean"?n=CI(n):n==null&&s==="string"?(n="",a=!0):s==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(i||t)}function rl(e,t,n,r){e.addEventListener(t,n,r)}function RQ(e,t,n,r){e.removeEventListener(t,n,r)}const PM=Symbol("_vei");function PQ(e,t,n,r,i=null){const o=e[PM]||(e[PM]={}),a=o[t];if(r&&a)a.value=r;else{const[s,l]=OQ(t);if(r){const u=o[t]=LQ(r,i);rl(e,s,u,l)}else a&&(RQ(e,s,a,l),o[t]=void 0)}}const OM=/(?:Once|Passive|Capture)$/;function OQ(e){let t;if(OM.test(e)){t={};let r;for(;r=e.match(OM);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):fi(e.slice(2)),t]}let Lx=0;const DQ=Promise.resolve(),MQ=()=>Lx||(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<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:a}=r;let s;if(o&&!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<t.length;r++){const i=t[r],o=i.getAttribute("name")||"default",a=this._slots[o],s=i.parentNode;if(a)for(const l of a){if(n&&l.nodeType===1){const u=n+"-s",c=document.createTreeWalker(l,1);l.setAttribute(u,"");let f;for(;f=c.nextNode();)f.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function oB(e){const t=xr(),n=t&&t.ce;return n||null}function VQ(){const e=oB();return e&&e.shadowRoot}function UQ(e="$style"){{const t=xr();if(!t)return Jt;const n=t.type.__cssModules;if(!n)return Jt;const r=n[e];return r||Jt}}const aB=new WeakMap,sB=new WeakMap,E1=Symbol("_moveCb"),LM=Symbol("_enterCb"),HQ=e=>(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<o.length;u++){const c=o[u];c.el&&c.el instanceof Element&&(i.push(c),bl(c,lh(c,s,r,n)),aB.set(c,c.el.getBoundingClientRect()))}o=t.default?$b(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&bl(c,lh(c,s,r,n))}return se(l,null,o)}}}),zQ=GQ;function WQ(e){const t=e.el;t[E1]&&t[E1](),t[LM]&&t[LM]()}function jQ(e){sB.set(e,e.el.getBoundingClientRect())}function XQ(e){const t=aB.get(e),n=sB.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function YQ(e,t,n){const r=e.cloneNode(),i=e[ch];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=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;i<o;i++){const a=e.options[i],s=fh(a);if(n)if(r){const l=typeof s;l==="string"||l==="number"?a.selected=t.some(u=>String(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<t.length;a++){const s=JQ[t[a]];if(s&&s(i,t))return}return e(i,...o)})},QQ={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fB=(e,t)=>{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<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=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;a<r.length;a++)if(s=r[a],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const 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;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(Ete,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:m,optional:_,regexp:y}=d;o.push({name:v,repeatable:m,optional:_});const b=y||ZM;if(b!==ZM){h+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+w.message)}}let S=m?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(S=_&&u.length<2?`(?:/${S})`:"/"+S),_&&(S+="?"),i+=S,h+=20,_&&(h+=-8),m&&(h+=-20),b===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(u){const c=u.match(a),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=o[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:m,optional:_}=h,y=v in u?u[v]:"";if(Ua(y)&&!m)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Ua(y)?y.join("/"):y;if(!b)if(_)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=b}}return c||"/"}return{re:a,score:r,keys:o,parse:s,stringify:l}}function Ite(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function UB(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=Ite(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(qM(r))return 1;if(qM(i))return-1}return i.length-r.length}function qM(e){const t=e[e.length-1];return e.length>0&&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<e.length;){if(l=e[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:Pte.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),i}function Dte(e,t,n){const r=Ate(Ote(e.path),n),i=yn(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Mte(e,t){const n=[],r=new Map;t=tL({strict:!1,end:!0,sensitive:!1},t);function i(f){return r.get(f)}function o(f,d,h){const v=!h,m=QM(f);m.aliasOf=h&&h.record;const _=tL(t,f),y=[m];if("alias"in f){const w=typeof f.alias=="string"?[f.alias]:f.alias;for(const C of w)y.push(QM(yn({},m,{components:h?h.record.components:m.components,path:C,aliasOf:h?h.record:m})))}let b,S;for(const w of y){const{path:C}=w;if(d&&C[0]!=="/"){const T=d.record.path,E=T[T.length-1]==="/"?"":"/";w.path=d.record.path+(C&&E+C)}if(b=Dte(w,d,_),h?h.alias.push(b):(S=S||b,S!==b&&S.alias.push(b),v&&f.name&&!eL(b)&&a(f.name)),HB(b)&&l(b),m.children){const T=m.children;for(let E=0;E<T.length;E++)o(T[E],b,h&&h.children[E])}h=h||b}return 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;i<r.length;++i){const o=r[i].replace(MB," "),a=o.indexOf("="),s=_g(a<0?o:o.slice(0,a)),l=a<0?null:_g(o.slice(a+1));if(s in t){let u=t[s];Ua(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function nL(e){let t="";for(let n in e){const r=e[n];if(n=rte(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ua(r)?r.map(o=>o&&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&&gte(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;a<o;a++){const s=t.matched[a];s&&(e.matched.find(u=>dh(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,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}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<q;_e++){const Pe=me(U);if(!Pe){f(xn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${W}${de}${U.currentChar()}`);break}de+=Pe}return`\\${W}${de}`}function Se(U){return U!=="{"&&U!=="}"&&U!==Gs&&U!==Ci}function Ce(U){_(U);let W="",q="";for(;W=M(U,Se);)q+=W;return q}function Oe(U){let W="",q="";for(;W=$(U);)q+=W;return q}function Be(U){const W=q=>{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):"<22>"}}}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;n<e.length;n++)a2(e[n],t)}function a2(e,t){switch(e.type){case 1:dL(e.cases,t),t.helper("plural");break;case 2:dL(e.items,t);break;case 6:{a2(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Ane(e,t={}){const n=Ene(e);n.helper("normalize"),e.body&&a2(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Ine(e){const t=e.body;return t.type===2?hL(t):t.cases.forEach(n=>hL(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;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=o2(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Ld(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ld(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Ld(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Ld(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ld(t.key),t.k=t.key,delete t.key,t.modifier&&(Ld(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Rne(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:o}=t,a=t.location!==!1,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:o,indentLevel:0};a&&e.loc&&(s.source=e.loc.source);const l=()=>s;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;o<i&&(gh(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function Dne(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o<i&&(gh(e,t.cases[o]),o!==i-1);o++)e.push(", ");e.deindent(r()),e.push("])")}}function Mne(e,t){t.body?gh(e,t.body):e.push("null")}function gh(e,t){const{helper:n}=e;switch(t.type){case 0:Mne(e,t);break;case 1:Dne(e,t);break;case 2:One(e,t);break;case 6:Pne(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Lne=(e,t={})=>{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;r<t.length;r++){const i=t[r];if(La(e,i)&&e[i]!=null)return e[i]}return n}function xg(e){return new Error(`unhandled node type: ${e}`)}const Jne=e=>e;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<t.length&&fn(r);i++){const o=t[i];nt(o)&&(r=sre(e,t[i],n))}return r}function sre(e,t,n){let r;const i=t.split("-");do{const o=i.join("-");r=lre(e,o,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function lre(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(cr(n)||Xt(n))&&n[i]&&(r=n[i])}return r}const Ku=[];Ku[0]={w:[0],i:[3,0],"[":[4],o:[7]};Ku[1]={w:[1],".":[2],"[":[4],o:[7]};Ku[2]={w:[2],i:[3,0],0:[3,0]};Ku[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Ku[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Ku[5]={"'":[4,0],o:8,l:[5,0]};Ku[6]={'"':[4,0],o:8,l:[6,0]};const ure=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function cre(e){return ure.test(e)}function fre(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function dre(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function hre(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:cre(t)?fre(t):"*"+t}function pre(e){const t=[];let n=-1,r=0,i=0,o,a,s,l,u,c,f;const d=[];d[0]=()=>{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<r;){const a=i[n[o]];if(a===void 0||Hn(i))return null;i=a,o++}return i}const mre="10.0.5",Jb=-1,Tg="en-US",yL="",_L=e=>`${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<t.length;r++)if(Ere(e,t[r]))return!0;return!1}function wL(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=CE(...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.DateTimeFormat(v,f).format(u);let _={},y,b=null;const S="datetime format";for(let T=0;T<m.length&&(y=m[T],_=n[y]||{},b=_[l],!Xt(b));T++)u2(e,l,y,d,S);if(!Xt(b)||!nt(y))return r?Jb:l;let w=`${y}__${l}`;Zb(f)||(w=`${w}__${JSON.stringify(f)}`);let C=s.get(w);return C||(C=new Intl.DateTimeFormat(y,Pr({},b,f)),s.set(w,C)),h?C.formatToParts(u):C.format(u)}const eV=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function CE(...e){const[t,n,r,i]=e,o=An();let a=An(),s;if(nt(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw sl(al.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw sl(al.INVALID_ISO_DATE_ARGUMENT)}}else if(ane(t)){if(isNaN(t.getTime()))throw sl(al.INVALID_DATE_ARGUMENT);s=t}else if(mr(t))s=t;else throw sl(al.INVALID_ARGUMENT);return nt(n)?o.key=n:Xt(n)&&Object.keys(n).forEach(l=>{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<m.length&&(y=m[T],_=n[y]||{},b=_[l],!Xt(b));T++)u2(e,l,y,d,S);if(!Xt(b)||!nt(y))return r?Jb:l;let w=`${y}__${l}`;Zb(f)||(w=`${w}__${JSON.stringify(f)}`);let C=s.get(w);return C||(C=new Intl.NumberFormat(y,Pr({},b,f)),s.set(w,C)),h?C.formatToParts(u):C.format(u)}const tV=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function TE(...e){const[t,n,r,i]=e,o=An();let a=An();if(!mr(t))throw sl(al.INVALID_ARGUMENT);const s=t;return nt(n)?o.key=n:Xt(n)&&Object.keys(n).forEach(l=>{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;m<c.length&&(d=c[m],f=a[d]||An(),(h=l(f,t))===null&&(h=f[t]),!(nt(h)||mh(h)||ea(h)));m++)if(!Are(d,c)){const _=u2(e,t,d,o,v);_!==t&&(h=_)}return[h,d,f]}function rV(e,t,n,r,i,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(ea(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(a==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=a(r,$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<r;a++){if(n[a]in i||(i[n[a]]=An()),!pn(i[n[a]])){o=!0;break}i=i[n[a]]}o||(i[n[r]]=e[t],delete e[t]),pn(i[n[r]])&&Eg(i[n[r]])}return e}function c2(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:o}=t,a=Xt(n)?n:cr(r)?An():{[e]:An()};if(cr(r)&&r.forEach(s=>{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<Ve.length;Ke++){const pt=u.value[Ve[Ke]]||{},ee=E.messageResolver(pt,Z);if(ee!=null){he=ee;break}}return he}function H(Z){const he=Be(Z);return he??(t?t.tm(Z)||{}:{})}function G(Z){return u.value[Z]||{}}function ue(Z,he){if(i){const Ve={[Z]:he};for(const Ke in Ve)La(Ve,Ke)&&Eg(Ve[Ke]);he=Ve[Z]}u.value[Z]=he,E.messages=u.value}function we(Z,he){u.value[Z]=u.value[Z]||{};const Ve={[Z]:he};if(i)for(const Ke in Ve)La(Ve,Ke)&&Eg(Ve[Ke]);he=Ve[Z],A_(he,u.value[Z]),E.messages=u.value}function ve(Z){return c.value[Z]||{}}function U(Z,he){c.value[Z]=he,E.datetimeFormats=c.value,xL(E,Z,he)}function W(Z,he){c.value[Z]=Pr(c.value[Z]||{},he),E.datetimeFormats=c.value,xL(E,Z,he)}function q(Z){return f.value[Z]||{}}function de(Z,he){f.value[Z]=he,E.numberFormats=f.value,TL(E,Z,he)}function _e(Z,he){f.value[Z]=Pr(f.value[Z]||{},he),E.numberFormats=f.value,TL(E,Z,he)}DL++,t&&P1&&(Vt(t.locale,Z=>{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 <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var 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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},d9={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},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<dn;){var Cr=ae[Lt];xe(rt,Cr,ye(Cr),ae)}return rt}function $o(ae,xe){for(var ye=-1,rt=ae==null?0:ae.length;++ye<rt&&xe(ae[ye],ye,ae)!==!1;);return ae}function y9(ae,xe){for(var ye=ae==null?0:ae.length;ye--&&xe(ae[ye],ye,ae)!==!1;);return ae}function YP(ae,xe){for(var ye=-1,rt=ae==null?0:ae.length;++ye<rt;)if(!xe(ae[ye],ye,ae))return!1;return!0}function Ol(ae,xe){for(var ye=-1,rt=ae==null?0:ae.length,Lt=0,dn=[];++ye<rt;){var Cr=ae[ye];xe(Cr,ye,ae)&&(dn[Lt++]=Cr)}return dn}function Xm(ae,xe){var ye=ae==null?0:ae.length;return!!ye&&Kf(ae,xe,0)>-1}function gw(ae,xe,ye){for(var rt=-1,Lt=ae==null?0:ae.length;++rt<Lt;)if(ye(xe,ae[rt]))return!0;return!1}function Wn(ae,xe){for(var ye=-1,rt=ae==null?0:ae.length,Lt=Array(rt);++ye<rt;)Lt[ye]=xe(ae[ye],ye,ae);return Lt}function Dl(ae,xe){for(var ye=-1,rt=xe.length,Lt=ae.length;++ye<rt;)ae[Lt+ye]=xe[ye];return ae}function mw(ae,xe,ye,rt){var Lt=-1,dn=ae==null?0:ae.length;for(rt&&dn&&(ye=ae[++Lt]);++Lt<dn;)ye=xe(ye,ae[Lt],Lt,ae);return ye}function _9(ae,xe,ye,rt){var Lt=ae==null?0:ae.length;for(rt&&Lt&&(ye=ae[--Lt]);Lt--;)ye=xe(ye,ae[Lt],Lt,ae);return ye}function yw(ae,xe){for(var ye=-1,rt=ae==null?0:ae.length;++ye<rt;)if(xe(ae[ye],ye,ae))return!0;return!1}var b9=_w("length");function S9(ae){return ae.split("")}function w9(ae){return ae.match(Hm)||[]}function KP(ae,xe,ye){var rt;return ye(ae,function(Lt,dn,Cr){if(xe(Lt,dn,Cr))return rt=dn,!1}),rt}function Ym(ae,xe,ye,rt){for(var Lt=ae.length,dn=ye+(rt?1:-1);rt?dn--:++dn<Lt;)if(xe(ae[dn],dn,ae))return dn;return-1}function Kf(ae,xe,ye){return xe===xe?L9(ae,xe,ye):Ym(ae,ZP,ye)}function x9(ae,xe,ye,rt){for(var Lt=ye-1,dn=ae.length;++Lt<dn;)if(rt(ae[Lt],xe))return Lt;return-1}function ZP(ae){return ae!==ae}function qP(ae,xe){var ye=ae==null?0:ae.length;return ye?Sw(ae,xe)/ye:me}function _w(ae){return function(xe){return xe==null?n:xe[ae]}}function bw(ae){return function(xe){return ae==null?n:ae[xe]}}function JP(ae,xe,ye,rt,Lt){return Lt(ae,function(dn,Cr,Pn){ye=rt?(rt=!1,dn):xe(ye,dn,Cr,Pn)}),ye}function C9(ae,xe){var ye=ae.length;for(ae.sort(xe);ye--;)ae[ye]=ae[ye].value;return ae}function Sw(ae,xe){for(var ye,rt=-1,Lt=ae.length;++rt<Lt;){var dn=xe(ae[rt]);dn!==n&&(ye=ye===n?dn:ye+dn)}return ye}function ww(ae,xe){for(var ye=-1,rt=Array(ae);++ye<ae;)rt[ye]=xe(ye);return rt}function T9(ae,xe){return Wn(xe,function(ye){return[ye,ae[ye]]})}function QP(ae){return ae&&ae.slice(0,rO(ae)+1).replace(Ni,"")}function po(ae){return function(xe){return ae(xe)}}function xw(ae,xe){return Wn(xe,function(ye){return ae[ye]})}function ep(ae,xe){return ae.has(xe)}function eO(ae,xe){for(var ye=-1,rt=ae.length;++ye<rt&&Kf(xe,ae[ye],0)>-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<rt;){var Cr=ae[ye];(Cr===xe||Cr===c)&&(ae[ye]=c,dn[Lt++]=ye)}return dn}function Km(ae){var xe=-1,ye=Array(ae.size);return ae.forEach(function(rt){ye[++xe]=rt}),ye}function M9(ae){var xe=-1,ye=Array(ae.size);return ae.forEach(function(rt){ye[++xe]=[rt,rt]}),ye}function L9(ae,xe,ye){for(var rt=ye-1,Lt=ae.length;++rt<Lt;)if(ae[rt]===xe)return rt;return-1}function N9(ae,xe,ye){for(var rt=ye+1;rt--;)if(ae[rt]===xe)return rt;return rt}function qf(ae){return Zf(ae)?F9(ae):b9(ae)}function ya(ae){return Zf(ae)?$9(ae):S9(ae)}function rO(ae){for(var xe=ae.length;xe--&&Xf.test(ae.charAt(xe)););return xe}var k9=bw(d9);function F9(ae){for(var xe=hw.lastIndex=0;hw.test(ae);)++xe;return xe}function $9(ae){return ae.match(hw)||[]}function B9(ae){return ae.match(o9)||[]}var V9=function ae(xe){xe=xe==null?Hr:Jf.defaults(Hr.Object(),xe,Jf.pick(Hr,l9));var ye=xe.Array,rt=xe.Date,Lt=xe.Error,dn=xe.Function,Cr=xe.Math,Pn=xe.Object,Tw=xe.RegExp,U9=xe.String,Bo=xe.TypeError,Zm=ye.prototype,H9=dn.prototype,Qf=Pn.prototype,qm=xe["__core-js_shared__"],Jm=H9.toString,wn=Qf.hasOwnProperty,G9=0,iO=function(){var p=/[^.]+$/.exec(qm&&qm.keys&&qm.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}(),Qm=Qf.toString,z9=Jm.call(Pn),W9=Hr._,j9=Tw("^"+Jm.call(wn).replace(jf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ey=UP?xe.Buffer:n,Ll=xe.Symbol,ty=xe.Uint8Array,oO=ey?ey.allocUnsafe:n,ny=nO(Pn.getPrototypeOf,Pn),aO=Pn.create,sO=Qf.propertyIsEnumerable,ry=Zm.splice,lO=Ll?Ll.isConcatSpreadable:n,tp=Ll?Ll.iterator:n,ec=Ll?Ll.toStringTag:n,iy=function(){try{var p=oc(Pn,"defineProperty");return p({},"",{}),p}catch{}}(),X9=xe.clearTimeout!==Hr.clearTimeout&&xe.clearTimeout,Y9=rt&&rt.now!==Hr.Date.now&&rt.now,K9=xe.setTimeout!==Hr.setTimeout&&xe.setTimeout,oy=Cr.ceil,ay=Cr.floor,Ew=Pn.getOwnPropertySymbols,Z9=ey?ey.isBuffer:n,uO=xe.isFinite,q9=Zm.join,J9=nO(Pn.keys,Pn),Tr=Cr.max,Jr=Cr.min,Q9=rt.now,e7=xe.parseInt,cO=Cr.random,t7=Zm.reverse,Aw=oc(xe,"DataView"),np=oc(xe,"Map"),Iw=oc(xe,"Promise"),ed=oc(xe,"Set"),rp=oc(xe,"WeakMap"),ip=oc(Pn,"create"),sy=rp&&new rp,td={},n7=ac(Aw),r7=ac(np),i7=ac(Iw),o7=ac(ed),a7=ac(rp),ly=Ll?Ll.prototype:n,op=ly?ly.valueOf:n,fO=ly?ly.toString:n;function k(p){if(nr(p)&&!Ft(p)&&!(p instanceof en)){if(p instanceof Vo)return p;if(wn.call(p,"__wrapped__"))return dD(p)}return new Vo(p)}var nd=function(){function p(){}return function(g){if(!Jn(g))return{};if(aO)return aO(g);p.prototype=g;var x=new p;return p.prototype=n,x}}();function uy(){}function Vo(p,g){this.__wrapped__=p,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}k.templateSettings={escape:Rn,evaluate:yr,interpolate:Wf,variable:"",imports:{_:k}},k.prototype=uy.prototype,k.prototype.constructor=k,Vo.prototype=nd(uy.prototype),Vo.prototype.constructor=Vo;function en(p){this.__wrapped__=p,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ge,this.__views__=[]}function s7(){var p=new en(this.__wrapped__);return p.__actions__=ki(this.__actions__),p.__dir__=this.__dir__,p.__filtered__=this.__filtered__,p.__iteratees__=ki(this.__iteratees__),p.__takeCount__=this.__takeCount__,p.__views__=ki(this.__views__),p}function l7(){if(this.__filtered__){var p=new en(this);p.__dir__=-1,p.__filtered__=!0}else p=this.clone(),p.__dir__*=-1;return p}function u7(){var p=this.__wrapped__.value(),g=this.__dir__,x=Ft(p),A=g<0,D=x?p.length:0,V=SW(0,D,this.__views__),Y=V.start,J=V.end,ce=J-Y,Ie=A?J:Y-1,Re=this.__iteratees__,Ne=Re.length,qe=0,dt=Jr(ce,this.__takeCount__);if(!x||!A&&D==ce&&dt==ce)return NO(p,this.__actions__);var St=[];e:for(;ce--&&qe<dt;){Ie+=g;for(var Wt=-1,wt=p[Ie];++Wt<Ne;){var Zt=Re[Wt],rn=Zt.iteratee,mo=Zt.type,bi=rn(wt);if(mo==z)wt=bi;else if(!bi){if(mo==$)continue e;break e}}St[qe++]=wt}return St}en.prototype=nd(uy.prototype),en.prototype.constructor=en;function tc(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var A=p[g];this.set(A[0],A[1])}}function c7(){this.__data__=ip?ip(null):{},this.size=0}function f7(p){var g=this.has(p)&&delete this.__data__[p];return this.size-=g?1:0,g}function d7(p){var g=this.__data__;if(ip){var x=g[p];return x===l?n:x}return wn.call(g,p)?g[p]:n}function h7(p){var g=this.__data__;return ip?g[p]!==n:wn.call(g,p)}function p7(p,g){var x=this.__data__;return this.size+=this.has(p)?0:1,x[p]=ip&&g===n?l:g,this}tc.prototype.clear=c7,tc.prototype.delete=f7,tc.prototype.get=d7,tc.prototype.has=h7,tc.prototype.set=p7;function Os(p){var g=-1,x=p==null?0:p.length;for(this.clear();++g<x;){var A=p[g];this.set(A[0],A[1])}}function v7(){this.__data__=[],this.size=0}function g7(p){var g=this.__data__,x=cy(g,p);if(x<0)return!1;var A=g.length-1;return x==A?g.pop():ry.call(g,x,1),--this.size,!0}function m7(p){var g=this.__data__,x=cy(g,p);return x<0?n:g[x][1]}function y7(p){return cy(this.__data__,p)>-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<x;){var A=p[g];this.set(A[0],A[1])}}function b7(){this.size=0,this.__data__={hash:new tc,map:new(np||Os),string:new tc}}function S7(p){var g=wy(this,p).delete(p);return this.size-=g?1:0,g}function w7(p){return wy(this,p).get(p)}function x7(p){return wy(this,p).has(p)}function C7(p,g){var x=wy(this,p),A=x.size;return x.set(p,g),this.size+=x.size==A?0:1,this}Ds.prototype.clear=b7,Ds.prototype.delete=S7,Ds.prototype.get=w7,Ds.prototype.has=x7,Ds.prototype.set=C7;function nc(p){var g=-1,x=p==null?0:p.length;for(this.__data__=new Ds;++g<x;)this.add(p[g])}function T7(p){return this.__data__.set(p,l),this}function E7(p){return this.__data__.has(p)}nc.prototype.add=nc.prototype.push=T7,nc.prototype.has=E7;function _a(p){var g=this.__data__=new Os(p);this.size=g.size}function A7(){this.__data__=new Os,this.size=0}function I7(p){var g=this.__data__,x=g.delete(p);return this.size=g.size,x}function R7(p){return this.__data__.get(p)}function P7(p){return this.__data__.has(p)}function O7(p,g){var x=this.__data__;if(x instanceof Os){var A=x.__data__;if(!np||A.length<i-1)return A.push([p,g]),this.size=++x.size,this;x=this.__data__=new Ds(A)}return x.set(p,g),this.size=x.size,this}_a.prototype.clear=A7,_a.prototype.delete=I7,_a.prototype.get=R7,_a.prototype.has=P7,_a.prototype.set=O7;function dO(p,g){var x=Ft(p),A=!x&&sc(p),D=!x&&!A&&Bl(p),V=!x&&!A&&!D&&ad(p),Y=x||A||D||V,J=Y?ww(p.length,U9):[],ce=J.length;for(var Ie in p)(g||wn.call(p,Ie))&&!(Y&&(Ie=="length"||D&&(Ie=="offset"||Ie=="parent")||V&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||ks(Ie,ce)))&&J.push(Ie);return J}function hO(p){var g=p.length;return g?p[Bw(0,g-1)]:n}function D7(p,g){return xy(ki(p),rc(g,0,p.length))}function M7(p){return xy(ki(p))}function Rw(p,g,x){(x!==n&&!ba(p[g],x)||x===n&&!(g in p))&&Ms(p,g,x)}function ap(p,g,x){var A=p[g];(!(wn.call(p,g)&&ba(A,x))||x===n&&!(g in p))&&Ms(p,g,x)}function cy(p,g){for(var x=p.length;x--;)if(ba(p[x][0],g))return x;return-1}function L7(p,g,x,A){return Nl(p,function(D,V,Y){g(A,D,x(D),Y)}),A}function pO(p,g){return p&&Ka(g,kr(g),p)}function N7(p,g){return p&&Ka(g,$i(g),p)}function Ms(p,g,x){g=="__proto__"&&iy?iy(p,g,{configurable:!0,enumerable:!0,value:x,writable:!0}):p[g]=x}function Pw(p,g){for(var x=-1,A=g.length,D=ye(A),V=p==null;++x<A;)D[x]=V?n:cx(p,g[x]);return D}function rc(p,g,x){return p===p&&(x!==n&&(p=p<=x?p:x),g!==n&&(p=p>=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(;++D<J;){var Re=p[D],Ne=x==null?Re:x(Re);if(Re=A||Re!==0?Re:0,Y&&Ne===Ne){for(var qe=Ie;qe--;)if(g[qe]===Ne)continue e;ce.push(Re)}else V(g,Ne,A)||ce.push(Re)}return ce}var Nl=GO(Ya),mO=GO(Dw,!0);function F7(p,g){var x=!0;return Nl(p,function(A,D,V){return x=!!g(A,D,V),x}),x}function fy(p,g,x){for(var A=-1,D=p.length;++A<D;){var V=p[A],Y=g(V);if(Y!=null&&(J===n?Y===Y&&!go(Y):x(Y,J)))var J=Y,ce=V}return ce}function $7(p,g,x,A){var D=p.length;for(x=Ht(x),x<0&&(x=-x>D?0:D+x),A=A===n||A>D?D:Ht(A),A<0&&(A+=D),A=x>A?0:LD(A);x<A;)p[x++]=g;return p}function yO(p,g){var x=[];return Nl(p,function(A,D,V){g(A,D,V)&&x.push(A)}),x}function Gr(p,g,x,A,D){var V=-1,Y=p.length;for(x||(x=EW),D||(D=[]);++V<Y;){var J=p[V];g>0&&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&&x<A;)p=p[Za(g[x++])];return x&&x==A?p:n}function bO(p,g,x){var A=g(p);return Ft(p)?A:Dl(A,x(p))}function yi(p){return p==null?p===n?Z:we:ec&&ec in Pn(p)?bW(p):MW(p)}function Mw(p,g){return p>g}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<Tr(g,x)}function Lw(p,g,x){for(var A=x?gw:Xm,D=p[0].length,V=p.length,Y=V,J=ye(V),ce=1/0,Ie=[];Y--;){var Re=p[Y];Y&&g&&(Re=Wn(Re,po(g))),ce=Jr(Re.length,ce),J[Y]=!x&&(g||D>=120&&Re.length>=120)?new nc(Y&&Re):n}Re=p[0];var Ne=-1,qe=J[0];e:for(;++Ne<D&&Ie.length<ce;){var dt=Re[Ne],St=g?g(dt):dt;if(dt=x||dt!==0?dt:0,!(qe?ep(qe,St):A(Ie,St,x))){for(Y=V;--Y;){var Wt=J[Y];if(!(Wt?ep(Wt,St):A(p[Y],St,x)))continue e}qe&&qe.push(St),Ie.push(dt)}}return Ie}function H7(p,g,x,A){return Ya(p,function(D,V,Y){g(A,x(D),V,Y)}),A}function lp(p,g,x){g=Fl(g,p),p=sD(p,g);var A=p==null?p:p[Za(Go(g))];return A==null?n:ho(A,p,x)}function SO(p){return nr(p)&&yi(p)==Me}function G7(p){return nr(p)&&yi(p)==Ke}function z7(p){return nr(p)&&yi(p)==Se}function up(p,g,x,A,D){return p===g?!0:p==null||g==null||!nr(p)&&!nr(g)?p!==p&&g!==g:W7(p,g,x,A,up,D)}function W7(p,g,x,A,D,V){var Y=Ft(p),J=Ft(g),ce=Y?je:Qr(p),Ie=J?je:Qr(g);ce=ce==Me?ve:ce,Ie=Ie==Me?ve:Ie;var Re=ce==ve,Ne=Ie==ve,qe=ce==Ie;if(qe&&Bl(p)){if(!Bl(g))return!1;Y=!0,Re=!1}if(qe&&!Re)return V||(V=new _a),Y||ad(p)?eD(p,g,x,A,D,V):yW(p,g,ce,x,A,D,V);if(!(x&v)){var dt=Re&&wn.call(p,"__wrapped__"),St=Ne&&wn.call(g,"__wrapped__");if(dt||St){var Wt=dt?p.value():p,wt=St?g.value():g;return V||(V=new _a),D(Wt,wt,x,A,V)}}return qe?(V||(V=new _a),_W(p,g,x,A,D,V)):!1}function j7(p){return nr(p)&&Qr(p)==G}function Nw(p,g,x,A){var D=x.length,V=D,Y=!A;if(p==null)return!V;for(p=Pn(p);D--;){var J=x[D];if(Y&&J[2]?J[1]!==p[J[0]]:!(J[0]in p))return!1}for(;++D<V;){J=x[D];var ce=J[0],Ie=p[ce],Re=J[1];if(Y&&J[2]){if(Ie===n&&!(ce in p))return!1}else{var Ne=new _a;if(A)var qe=A(Ie,Re,ce,p,g,Ne);if(!(qe===n?up(Re,Ie,v|m,A,Ne):qe))return!1}}return!0}function wO(p){if(!Jn(p)||IW(p))return!1;var g=Fs(p)?j9:vt;return g.test(ac(p))}function X7(p){return nr(p)&&yi(p)==q}function Y7(p){return nr(p)&&Qr(p)==de}function K7(p){return nr(p)&&Ry(p.length)&&!!Bn[yi(p)]}function xO(p){return typeof p=="function"?p:p==null?Bi:typeof p=="object"?Ft(p)?EO(p[0],p[1]):TO(p):WD(p)}function kw(p){if(!dp(p))return J9(p);var g=[];for(var x in Pn(p))wn.call(p,x)&&x!="constructor"&&g.push(x);return g}function Z7(p){if(!Jn(p))return DW(p);var g=dp(p),x=[];for(var A in p)A=="constructor"&&(g||!wn.call(p,A))||x.push(A);return x}function Fw(p,g){return p<g}function CO(p,g){var x=-1,A=Fi(p)?ye(p.length):[];return Nl(p,function(D,V,Y){A[++x]=g(D,V,Y)}),A}function TO(p){var g=Jw(p);return g.length==1&&g[0][2]?oD(g[0][0],g[0][1]):function(x){return x===p||Nw(x,p,g)}}function EO(p,g){return ex(p)&&iD(g)?oD(Za(p),g):function(x){var A=cx(x,p);return A===n&&A===g?fx(x,p):up(g,A,v|m)}}function hy(p,g,x,A,D){p!==g&&Ow(g,function(V,Y){if(D||(D=new _a),Jn(V))q7(p,g,Y,x,hy,A,D);else{var J=A?A(nx(p,Y),V,Y+"",p,g,D):n;J===n&&(J=V),Rw(p,Y,J)}},$i)}function q7(p,g,x,A,D,V,Y){var J=nx(p,x),ce=nx(g,x),Ie=Y.get(ce);if(Ie){Rw(p,x,Ie);return}var Re=V?V(J,ce,x+"",p,g,Y):n,Ne=Re===n;if(Ne){var qe=Ft(ce),dt=!qe&&Bl(ce),St=!qe&&!dt&&ad(ce);Re=ce,qe||dt||St?Ft(J)?Re=J:hr(J)?Re=ki(J):dt?(Ne=!1,Re=$O(ce,!0)):St?(Ne=!1,Re=BO(ce,!0)):Re=[]:pp(ce)||sc(ce)?(Re=J,sc(J)?Re=ND(J):(!Jn(J)||Fs(J))&&(Re=rD(ce))):Ne=!1}Ne&&(Y.set(ce,Re),D(Re,ce,A,V,Y),Y.delete(ce)),Rw(p,x,Re)}function AO(p,g){var x=p.length;if(x)return g+=g<0?x:0,ks(g,x)?p[g]:n}function IO(p,g,x){g.length?g=Wn(g,function(V){return Ft(V)?function(Y){return ic(Y,V.length===1?V[0]:V)}:V}):g=[Bi];var A=-1;g=Wn(g,po(_t()));var D=CO(p,function(V,Y,J){var ce=Wn(g,function(Ie){return Ie(V)});return{criteria:ce,index:++A,value:V}});return C9(D,function(V,Y){return cW(V,Y,x)})}function J7(p,g){return RO(p,g,function(x,A){return fx(p,A)})}function RO(p,g,x){for(var A=-1,D=g.length,V={};++A<D;){var Y=g[A],J=ic(p,Y);x(J,Y)&&cp(V,Fl(Y,p),J)}return V}function Q7(p){return function(g){return ic(g,p)}}function $w(p,g,x,A){var D=A?x9:Kf,V=-1,Y=g.length,J=p;for(p===g&&(g=ki(g)),x&&(J=Wn(p,po(x)));++V<Y;)for(var ce=0,Ie=g[V],Re=x?x(Ie):Ie;(ce=D(J,Re,ce,A))>-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&&++D<V;){var ce=Za(g[D]),Ie=x;if(ce==="__proto__"||ce==="constructor"||ce==="prototype")return p;if(D!=Y){var Re=J[ce];Ie=A?A(Re,ce,J):n,Ie===n&&(Ie=Jn(Re)?Re:ks(g[D+1])?[]:{})}ap(J,ce,Ie),J=J[ce]}return p}var OO=sy?function(p,g){return sy.set(p,g),p}:Bi,rW=iy?function(p,g){return iy(p,"toString",{configurable:!0,enumerable:!1,value:hx(g),writable:!0})}:Bi;function iW(p){return xy(sd(p))}function Ho(p,g,x){var A=-1,D=p.length;g<0&&(g=-g>D?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<D;)V[A]=p[A+g];return V}function oW(p,g){var x;return Nl(p,function(A,D,V){return x=g(A,D,V),!x}),!!x}function py(p,g,x){var A=0,D=p==null?A:p.length;if(typeof g=="number"&&g===g&&D<=Fe){for(;A<D;){var V=A+D>>>1,Y=p[V];Y!==null&&!go(Y)&&(x?Y<=g:Y<g)?A=V+1:D=V}return D}return Uw(p,g,Bi,x)}function Uw(p,g,x,A){var D=0,V=p==null?0:p.length;if(V===0)return 0;g=x(g);for(var Y=g!==g,J=g===null,ce=go(g),Ie=g===n;D<V;){var Re=ay((D+V)/2),Ne=x(p[Re]),qe=Ne!==n,dt=Ne===null,St=Ne===Ne,Wt=go(Ne);if(Y)var wt=A||St;else Ie?wt=St&&(A||qe):J?wt=St&&qe&&(A||!dt):ce?wt=St&&qe&&!dt&&(A||!Wt):dt||Wt?wt=!1:wt=A?Ne<=g:Ne<g;wt?D=Re+1:V=Re}return Jr(V,De)}function DO(p,g){for(var x=-1,A=p.length,D=0,V=[];++x<A;){var Y=p[x],J=g?g(Y):Y;if(!x||!ba(J,ce)){var ce=J;V[D++]=Y===0?0:Y}}return V}function MO(p){return typeof p=="number"?p:go(p)?me:+p}function vo(p){if(typeof p=="string")return p;if(Ft(p))return Wn(p,vo)+"";if(go(p))return fO?fO.call(p):"";var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}function kl(p,g,x){var A=-1,D=Xm,V=p.length,Y=!0,J=[],ce=J;if(x)Y=!1,D=gw;else if(V>=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<V;){var Re=p[A],Ne=g?g(Re):Re;if(Re=x||Re!==0?Re:0,Y&&Ne===Ne){for(var qe=ce.length;qe--;)if(ce[qe]===Ne)continue e;g&&ce.push(Ne),J.push(Re)}else D(ce,Ne,x)||(ce!==J&&ce.push(Ne),J.push(Re))}return J}function Hw(p,g){return g=Fl(g,p),p=sD(p,g),p==null||delete p[Za(Go(g))]}function LO(p,g,x,A){return cp(p,g,x(ic(p,g)),A)}function vy(p,g,x,A){for(var D=p.length,V=A?D:-1;(A?V--:++V<D)&&g(p[V],V,p););return x?Ho(p,A?0:V,A?V+1:D):Ho(p,A?V+1:0,A?D:V)}function NO(p,g){var x=p;return x instanceof en&&(x=x.value()),mw(g,function(A,D){return D.func.apply(D.thisArg,Dl([A],D.args))},x)}function Gw(p,g,x){var A=p.length;if(A<2)return A?kl(p[0]):[];for(var D=-1,V=ye(A);++D<A;)for(var Y=p[D],J=-1;++J<A;)J!=D&&(V[D]=sp(V[D]||Y,p[J],g,x));return kl(Gr(V,1),g,x)}function kO(p,g,x){for(var A=-1,D=p.length,V=g.length,Y={};++A<D;){var J=A<V?g[A]:n;x(Y,p[A],J)}return Y}function zw(p){return hr(p)?p:[]}function Ww(p){return typeof p=="function"?p:Bi}function Fl(p,g){return Ft(p)?p:ex(p,g)?[p]:fD(gn(p))}var aW=jt;function $l(p,g,x){var A=p.length;return x=x===n?A:x,!g&&x>=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<g||Ie&&x&&D&&!A&&!V||J&&x&&D||!Y&&D||!ce)return-1}return 0}function cW(p,g,x){for(var A=-1,D=p.criteria,V=g.criteria,Y=D.length,J=x.length;++A<Y;){var ce=VO(D[A],V[A]);if(ce){if(A>=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;++J<ce;)Re[J]=g[J];for(;++D<Y;)(Ne||D<V)&&(Re[x[D]]=p[D]);for(;Ie--;)Re[J++]=p[D++];return Re}function HO(p,g,x,A){for(var D=-1,V=p.length,Y=-1,J=x.length,ce=-1,Ie=g.length,Re=Tr(V-J,0),Ne=ye(Re+Ie),qe=!A;++D<Re;)Ne[D]=p[D];for(var dt=D;++ce<Ie;)Ne[dt+ce]=g[ce];for(;++Y<J;)(qe||D<V)&&(Ne[dt+x[Y]]=p[D++]);return Ne}function ki(p,g){var x=-1,A=p.length;for(g||(g=ye(A));++x<A;)g[x]=p[x];return g}function Ka(p,g,x,A){var D=!x;x||(x={});for(var V=-1,Y=g.length;++V<Y;){var J=g[V],ce=A?A(x[J],p[J],J,x,p):n;ce===n&&(ce=p[J]),D?Ms(x,J,ce):ap(x,J,ce)}return x}function fW(p,g){return Ka(p,Qw(p),g)}function dW(p,g){return Ka(p,tD(p),g)}function gy(p,g){return function(x,A){var D=Ft(x)?m9:L7,V=g?g():{};return D(x,p,_t(A,2),V)}}function rd(p){return jt(function(g,x){var A=-1,D=x.length,V=D>1?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<D;){var J=x[A];J&&p(g,J,A,V)}return g})}function GO(p,g){return function(x,A){if(x==null)return x;if(!Fi(x))return p(x,A);for(var D=x.length,V=g?D:-1,Y=Pn(x);(g?V--:++V<D)&&A(Y[V],V,Y)!==!1;);return x}}function zO(p){return function(g,x,A){for(var D=-1,V=Pn(g),Y=A(g),J=Y.length;J--;){var ce=Y[p?J:++D];if(x(V[ce],ce,V)===!1)break}return g}}function hW(p,g,x){var A=g&_,D=fp(p);function V(){var Y=this&&this!==Hr&&this instanceof V?D:p;return Y.apply(A?x:this,arguments)}return V}function WO(p){return function(g){g=gn(g);var x=Zf(g)?ya(g):n,A=x?x[0]:g.charAt(0),D=x?$l(x,1).join(""):g.slice(1);return A[p]()+D}}function id(p){return function(g){return mw(GD(HD(g).replace(r9,"")),p,"")}}function fp(p){return function(){var g=arguments;switch(g.length){case 0:return new p;case 1:return new p(g[0]);case 2:return new p(g[0],g[1]);case 3:return new p(g[0],g[1],g[2]);case 4:return new p(g[0],g[1],g[2],g[3]);case 5:return new p(g[0],g[1],g[2],g[3],g[4]);case 6:return new p(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new p(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var x=nd(p.prototype),A=p.apply(x,g);return Jn(A)?A:x}}function pW(p,g,x){var A=fp(p);function D(){for(var V=arguments.length,Y=ye(V),J=V,ce=od(D);J--;)Y[J]=arguments[J];var Ie=V<3&&Y[0]!==ce&&Y[V-1]!==ce?[]:Ml(Y,ce);if(V-=Ie.length,V<x)return ZO(p,g,my,D.placeholder,n,Y,Ie,n,n,x-V);var Re=this&&this!==Hr&&this instanceof D?A:p;return ho(Re,this,Y)}return D}function jO(p){return function(g,x,A){var D=Pn(g);if(!Fi(g)){var V=_t(x,3);g=kr(g),x=function(J){return V(D[J],J,D)}}var Y=p(g,x,A);return Y>-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;++A<x;){V=g[A];var J=Sy(V),ce=J=="wrapper"?qw(V):n;ce&&tx(ce[0])&&ce[1]==(E|S|C|R)&&!ce[4].length&&ce[9]==1?Y=Y[Sy(ce[0])].apply(Y,ce[3]):Y=V.length==1&&tx(V)?Y[J]():Y.thru(V)}return function(){var Ie=arguments,Re=Ie[0];if(Y&&Ie.length==1&&Ft(Re))return Y.plant(Re).value();for(var Ne=0,qe=x?g[Ne].apply(this,Ie):Re;++Ne<x;)qe=g[Ne].call(this,qe);return qe}})}function my(p,g,x,A,D,V,Y,J,ce,Ie){var Re=g&E,Ne=g&_,qe=g&y,dt=g&(S|w),St=g&I,Wt=qe?n:fp(p);function wt(){for(var Zt=arguments.length,rn=ye(Zt),mo=Zt;mo--;)rn[mo]=arguments[mo];if(dt)var bi=od(wt),yo=E9(rn,bi);if(A&&(rn=UO(rn,A,D,dt)),V&&(rn=HO(rn,V,Y,dt)),Zt-=yo,dt&&Zt<Ie){var pr=Ml(rn,bi);return ZO(p,g,my,wt.placeholder,x,rn,pr,J,ce,Ie-Zt)}var Sa=Ne?x:this,Bs=qe?Sa[p]:p;return Zt=rn.length,J?rn=LW(rn,J):St&&Zt>1&&rn.reverse(),Re&&ce<Zt&&(rn.length=ce),this&&this!==Hr&&this instanceof wt&&(Bs=Wt||fp(Bs)),Bs.apply(Sa,rn)}return wt}function YO(p,g){return function(x,A){return H7(x,p,g(A),{})}}function yy(p,g){return function(x,A){var D;if(x===n&&A===n)return g;if(x!==n&&(D=x),A!==n){if(D===n)return A;typeof x=="string"||typeof A=="string"?(x=vo(x),A=vo(A)):(x=MO(x),A=MO(A)),D=p(x,A)}return D}}function Xw(p){return Ns(function(g){return g=Wn(g,po(_t())),jt(function(x){var A=this;return p(g,function(D){return ho(D,A,x)})})})}function _y(p,g){g=g===n?" ":vo(g);var x=g.length;if(x<2)return x?Vw(g,p):g;var A=Vw(g,oy(p/qf(g)));return Zf(g)?$l(ya(A),0,p).join(""):A.slice(0,p)}function vW(p,g,x,A){var D=g&_,V=fp(p);function Y(){for(var J=-1,ce=arguments.length,Ie=-1,Re=A.length,Ne=ye(Re+ce),qe=this&&this!==Hr&&this instanceof Y?V:p;++Ie<Re;)Ne[Ie]=A[Ie];for(;ce--;)Ne[Ie++]=arguments[++J];return ho(qe,D?x:this,Ne)}return Y}function KO(p){return function(g,x,A){return A&&typeof A!="number"&&_i(g,x,A)&&(x=A=n),g=$s(g),x===n?(x=g,g=0):x=$s(x),A=A===n?g<x?1:-1:$s(A),eW(g,x,A,p)}}function by(p){return function(g,x){return typeof g=="string"&&typeof x=="string"||(g=zo(g),x=zo(x)),p(g,x)}}function ZO(p,g,x,A,D,V,Y,J,ce,Ie){var Re=g&S,Ne=Re?Y:n,qe=Re?n:Y,dt=Re?V:n,St=Re?n:V;g|=Re?C:T,g&=~(Re?T:C),g&b||(g&=-4);var Wt=[p,g,D,dt,Ne,St,qe,J,ce,Ie],wt=x.apply(n,Wt);return tx(p)&&lD(wt,Wt),wt.placeholder=A,uD(wt,p,g)}function Yw(p){var g=Cr[p];return function(x,A){if(x=zo(x),A=A==null?0:Jr(Ht(A),292),A&&uO(x)){var D=(gn(x)+"e").split("e"),V=g(D[0]+"e"+(+D[1]+A));return D=(gn(V)+"e").split("e"),+(D[0]+"e"+(+D[1]-A))}return g(x)}}var gW=ed&&1/Km(new ed([,-0]))[1]==K?function(p){return new ed(p)}:gx;function qO(p){return function(g){var x=Qr(g);return x==G?Cw(g):x==de?M9(g):T9(g,p(g))}}function Ls(p,g,x,A,D,V,Y,J){var ce=g&y;if(!ce&&typeof p!="function")throw new Bo(a);var Ie=A?A.length:0;if(Ie||(g&=-97,A=D=n),Y=Y===n?Y:Tr(Ht(Y),0),J=J===n?J:Ht(J),Ie-=D?D.length:0,g&T){var Re=A,Ne=D;A=D=n}var qe=ce?n:qw(p),dt=[p,g,x,A,D,Re,Ne,V,Y,J];if(qe&&OW(dt,qe),p=dt[0],g=dt[1],x=dt[2],A=dt[3],D=dt[4],J=dt[9]=dt[9]===n?ce?0:p.length:Tr(dt[9]-Ie,0),!J&&g&(S|w)&&(g&=-25),!g||g==_)var St=hW(p,g,x);else g==S||g==w?St=pW(p,g,J):(g==C||g==(_|C))&&!D.length?St=vW(p,g,x,A):St=my.apply(n,dt);var Wt=qe?OO:lD;return uD(Wt(St,dt),p,g)}function JO(p,g,x,A){return p===n||ba(p,Qf[x])&&!wn.call(A,x)?g:p}function QO(p,g,x,A,D,V){return Jn(p)&&Jn(g)&&(V.set(g,p),hy(p,g,n,QO,V),V.delete(g)),p}function mW(p){return pp(p)?n:p}function eD(p,g,x,A,D,V){var Y=x&v,J=p.length,ce=g.length;if(J!=ce&&!(Y&&ce>J))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);++Ne<J;){var St=p[Ne],Wt=g[Ne];if(A)var wt=Y?A(Wt,St,Ne,g,p,V):A(St,Wt,Ne,p,g,V);if(wt!==n){if(wt)continue;qe=!1;break}if(dt){if(!yw(g,function(Zt,rn){if(!ep(dt,rn)&&(St===Zt||D(St,Zt,x,A,V)))return dt.push(rn)})){qe=!1;break}}else if(!(St===Wt||D(St,Wt,x,A,V))){qe=!1;break}}return V.delete(p),V.delete(g),qe}function yW(p,g,x,A,D,V,Y){switch(x){case pt:if(p.byteLength!=g.byteLength||p.byteOffset!=g.byteOffset)return!1;p=p.buffer,g=g.buffer;case Ke:return!(p.byteLength!=g.byteLength||!V(new ty(p),new ty(g)));case Ee:case Se:case ue:return ba(+p,+g);case Oe:return p.name==g.name&&p.message==g.message;case q:case _e:return p==g+"";case G:var J=Cw;case de:var ce=A&v;if(J||(J=Km),p.size!=g.size&&!ce)return!1;var Ie=Y.get(p);if(Ie)return Ie==g;A|=m,Y.set(p,g);var Re=eD(J(p),J(g),A,D,V,Y);return Y.delete(p),Re;case Pe:if(op)return op.call(p)==op.call(g)}return!1}function _W(p,g,x,A,D,V){var Y=x&v,J=Kw(p),ce=J.length,Ie=Kw(g),Re=Ie.length;if(ce!=Re&&!Y)return!1;for(var Ne=ce;Ne--;){var qe=J[Ne];if(!(Y?qe in g:wn.call(g,qe)))return!1}var dt=V.get(p),St=V.get(g);if(dt&&St)return dt==g&&St==p;var Wt=!0;V.set(p,g),V.set(g,p);for(var wt=Y;++Ne<ce;){qe=J[Ne];var Zt=p[qe],rn=g[qe];if(A)var mo=Y?A(rn,Zt,qe,g,p,V):A(Zt,rn,qe,p,g,V);if(!(mo===n?Zt===rn||D(Zt,rn,x,A,V):mo)){Wt=!1;break}wt||(wt=qe=="constructor")}if(Wt&&!wt){var bi=p.constructor,yo=g.constructor;bi!=yo&&"constructor"in p&&"constructor"in g&&!(typeof bi=="function"&&bi instanceof bi&&typeof yo=="function"&&yo instanceof yo)&&(Wt=!1)}return V.delete(p),V.delete(g),Wt}function Ns(p){return rx(aD(p,n,vD),p+"")}function Kw(p){return bO(p,kr,Qw)}function Zw(p){return bO(p,$i,tD)}var qw=sy?function(p){return sy.get(p)}:gx;function Sy(p){for(var g=p.name+"",x=td[g],A=wn.call(td,g)?x.length:0;A--;){var D=x[A],V=D.func;if(V==null||V==p)return D.name}return g}function od(p){var g=wn.call(k,"placeholder")?k:p;return g.placeholder}function _t(){var p=k.iteratee||px;return p=p===px?xO:p,arguments.length?p(arguments[0],arguments[1]):p}function wy(p,g){var x=p.__data__;return AW(g)?x[typeof g=="string"?"string":"hash"]:x.map}function Jw(p){for(var g=kr(p),x=g.length;x--;){var A=g[x],D=p[A];g[x]=[A,D,iD(D)]}return g}function oc(p,g){var x=P9(p,g);return wO(x)?x:n}function bW(p){var g=wn.call(p,ec),x=p[ec];try{p[ec]=n;var A=!0}catch{}var D=Qm.call(p);return A&&(g?p[ec]=x:delete p[ec]),D}var Qw=Ew?function(p){return p==null?[]:(p=Pn(p),Ol(Ew(p),function(g){return sO.call(p,g)}))}:mx,tD=Ew?function(p){for(var g=[];p;)Dl(g,Qw(p)),p=ny(p);return g}:mx,Qr=yi;(Aw&&Qr(new Aw(new ArrayBuffer(1)))!=pt||np&&Qr(new np)!=G||Iw&&Qr(Iw.resolve())!=U||ed&&Qr(new ed)!=de||rp&&Qr(new rp)!=he)&&(Qr=function(p){var g=yi(p),x=g==ve?p.constructor:n,A=x?ac(x):"";if(A)switch(A){case n7:return pt;case r7:return G;case i7:return U;case o7:return de;case a7:return he}return g});function SW(p,g,x){for(var A=-1,D=x.length;++A<D;){var V=x[A],Y=V.size;switch(V.type){case"drop":p+=Y;break;case"dropRight":g-=Y;break;case"take":g=Jr(g,p+Y);break;case"takeRight":p=Tr(p,g-Y);break}}return{start:p,end:g}}function wW(p){var g=p.match(Um);return g?g[1].split(Zh):[]}function nD(p,g,x){g=Fl(g,p);for(var A=-1,D=g.length,V=!1;++A<D;){var Y=Za(g[A]);if(!(V=p!=null&&x(p,Y)))break;p=p[Y]}return V||++A!=D?V:(D=p==null?0:p.length,!!D&&Ry(D)&&ks(Y,D)&&(Ft(p)||sc(p)))}function xW(p){var g=p.length,x=new p.constructor(g);return g&&typeof p[0]=="string"&&wn.call(p,"index")&&(x.index=p.index,x.input=p.input),x}function rD(p){return typeof p.constructor=="function"&&!dp(p)?nd(ny(p)):{}}function CW(p,g,x){var A=p.constructor;switch(g){case Ke:return jw(p);case Ee:case Se:return new A(+p);case pt:return sW(p,x);case ee:case oe:case pe:case Te:case He:case re:case Ae:case $e:case et:return BO(p,x);case G:return new A;case ue:case _e:return new A(p);case q:return lW(p);case de:return new A;case Pe:return uW(p)}}function TW(p,g){var x=g.length;if(!x)return p;var A=x-1;return g[A]=(x>1?"& ":"")+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&&p<g}function _i(p,g,x){if(!Jn(x))return!1;var A=typeof g;return(A=="number"?Fi(x)&&ks(g,x.length):A=="string"&&g in x)?ba(x[g],p):!1}function ex(p,g){if(Ft(p))return!1;var x=typeof p;return x=="number"||x=="symbol"||x=="boolean"||p==null||go(p)?!0:Xa.test(p)||!Pl.test(p)||g!=null&&p in Pn(g)}function AW(p){var g=typeof p;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?p!=="__proto__":p===null}function tx(p){var g=Sy(p),x=k[g];if(typeof x!="function"||!(g in en.prototype))return!1;if(p===x)return!0;var A=qw(x);return!!A&&p===A[0]}function IW(p){return!!iO&&iO in p}var RW=qm?Fs:yx;function dp(p){var g=p&&p.constructor,x=typeof g=="function"&&g.prototype||Qf;return p===x}function iD(p){return p===p&&!Jn(p)}function oD(p,g){return function(x){return x==null?!1:x[p]===g&&(g!==n||p in Pn(x))}}function PW(p){var g=Ay(p,function(A){return x.size===u&&x.clear(),A}),x=g.cache;return g}function OW(p,g){var x=p[1],A=g[1],D=x|A,V=D<(_|y|E),Y=A==E&&x==S||A==E&&x==R&&p[7].length<=g[8]||A==(E|R)&&g[7].length<=g[8]&&x==S;if(!(V||Y))return p;A&_&&(p[2]=g[2],D|=x&_?0:b);var J=g[3];if(J){var ce=p[3];p[3]=ce?UO(ce,J,g[4]):J,p[4]=ce?Ml(p[3],c):g[4]}return J=g[5],J&&(ce=p[5],p[5]=ce?HO(ce,J,g[6]):J,p[6]=ce?Ml(p[5],c):g[6]),J=g[7],J&&(p[7]=J),A&E&&(p[8]=p[8]==null?g[8]:Jr(p[8],g[8])),p[9]==null&&(p[9]=g[9]),p[0]=g[0],p[1]=D,p}function DW(p){var g=[];if(p!=null)for(var x in Pn(p))g.push(x);return g}function MW(p){return Qm.call(p)}function aD(p,g,x){return g=Tr(g===n?p.length-1:g,0),function(){for(var A=arguments,D=-1,V=Tr(A.length-g,0),Y=ye(V);++D<V;)Y[D]=A[g+D];D=-1;for(var J=ye(g+1);++D<g;)J[D]=A[D];return J[g]=x(Y),ho(p,this,J)}}function sD(p,g){return g.length<2?p:ic(p,Ho(g,0,-1))}function LW(p,g){for(var x=p.length,A=Jr(g.length,x),D=ki(p);A--;){var V=g[A];p[A]=ks(V,x)?D[V]:n}return p}function nx(p,g){if(!(g==="constructor"&&typeof p[g]=="function")&&g!="__proto__")return p[g]}var lD=cD(OO),hp=K9||function(p,g){return Hr.setTimeout(p,g)},rx=cD(rW);function uD(p,g,x){var A=g+"";return rx(p,TW(A,NW(wW(A),x)))}function cD(p){var g=0,x=0;return function(){var A=Q9(),D=F-(A-x);if(x=A,D>0){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;++x<g;){var V=Bw(x,D),Y=p[V];p[V]=p[x],p[x]=Y}return p.length=g,p}var fD=PW(function(p){var g=[];return p.charCodeAt(0)===46&&g.push(""),p.replace(Bm,function(x,A,D,V){g.push(D?V.replace(Gm,"$1"):A||x)}),g});function Za(p){if(typeof p=="string"||go(p))return p;var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}function ac(p){if(p!=null){try{return Jm.call(p)}catch{}try{return p+""}catch{}}return""}function NW(p,g){return $o(ze,function(x){var A="_."+x[0];g&x[1]&&!Xm(p,A)&&p.push(A)}),p.sort()}function dD(p){if(p instanceof en)return p.clone();var g=new Vo(p.__wrapped__,p.__chain__);return g.__actions__=ki(p.__actions__),g.__index__=p.__index__,g.__values__=p.__values__,g}function kW(p,g,x){(x?_i(p,g,x):g===n)?g=1:g=Tr(Ht(g),0);var A=p==null?0:p.length;if(!A||g<1)return[];for(var D=0,V=0,Y=ye(oy(A/g));D<A;)Y[V++]=Ho(p,D,D+=g);return Y}function FW(p){for(var g=-1,x=p==null?0:p.length,A=0,D=[];++g<x;){var V=p[g];V&&(D[A++]=V)}return D}function $W(){var p=arguments.length;if(!p)return[];for(var g=ye(p-1),x=arguments[0],A=p;A--;)g[A-1]=arguments[A];return Dl(Ft(x)?ki(x):[x],Gr(g,1))}var BW=jt(function(p,g){return hr(p)?sp(p,Gr(g,1,hr,!0)):[]}),VW=jt(function(p,g){var x=Go(g);return hr(x)&&(x=n),hr(p)?sp(p,Gr(g,1,hr,!0),_t(x,2)):[]}),UW=jt(function(p,g){var x=Go(g);return hr(x)&&(x=n),hr(p)?sp(p,Gr(g,1,hr,!0),n,x):[]});function HW(p,g,x){var A=p==null?0:p.length;return A?(g=x||g===n?1:Ht(g),Ho(p,g<0?0:g,A)):[]}function GW(p,g,x){var A=p==null?0:p.length;return A?(g=x||g===n?1:Ht(g),g=A-g,Ho(p,0,g<0?0:g)):[]}function zW(p,g){return p&&p.length?vy(p,_t(g,3),!0,!0):[]}function WW(p,g){return p&&p.length?vy(p,_t(g,3),!0):[]}function jW(p,g,x,A){var D=p==null?0:p.length;return D?(x&&typeof x!="number"&&_i(p,g,x)&&(x=0,A=D),$7(p,g,x,A)):[]}function hD(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var D=x==null?0:Ht(x);return D<0&&(D=Tr(A+D,0)),Ym(p,_t(g,3),D)}function pD(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var D=A-1;return x!==n&&(D=Ht(x),D=x<0?Tr(A+D,0):Jr(D,A-1)),Ym(p,_t(g,3),D,!0)}function vD(p){var g=p==null?0:p.length;return g?Gr(p,1):[]}function XW(p){var g=p==null?0:p.length;return g?Gr(p,K):[]}function YW(p,g){var x=p==null?0:p.length;return x?(g=g===n?1:Ht(g),Gr(p,g)):[]}function KW(p){for(var g=-1,x=p==null?0:p.length,A={};++g<x;){var D=p[g];A[D[0]]=D[1]}return A}function gD(p){return p&&p.length?p[0]:n}function ZW(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var D=x==null?0:Ht(x);return D<0&&(D=Tr(A+D,0)),Kf(p,g,D)}function qW(p){var g=p==null?0:p.length;return g?Ho(p,0,-1):[]}var JW=jt(function(p){var g=Wn(p,zw);return g.length&&g[0]===p[0]?Lw(g):[]}),QW=jt(function(p){var g=Go(p),x=Wn(p,zw);return g===Go(x)?g=n:x.pop(),x.length&&x[0]===p[0]?Lw(x,_t(g,2)):[]}),ej=jt(function(p){var g=Go(p),x=Wn(p,zw);return g=typeof g=="function"?g:n,g&&x.pop(),x.length&&x[0]===p[0]?Lw(x,n,g):[]});function tj(p,g){return p==null?"":q9.call(p,g)}function Go(p){var g=p==null?0:p.length;return g?p[g-1]:n}function nj(p,g,x){var A=p==null?0:p.length;if(!A)return-1;var D=A;return x!==n&&(D=Ht(x),D=D<0?Tr(A+D,0):Jr(D,A-1)),g===g?N9(p,g,D):Ym(p,ZP,D,!0)}function rj(p,g){return p&&p.length?AO(p,Ht(g)):n}var ij=jt(mD);function mD(p,g){return p&&p.length&&g&&g.length?$w(p,g):p}function oj(p,g,x){return p&&p.length&&g&&g.length?$w(p,g,_t(x,2)):p}function aj(p,g,x){return p&&p.length&&g&&g.length?$w(p,g,n,x):p}var sj=Ns(function(p,g){var x=p==null?0:p.length,A=Pw(p,g);return PO(p,Wn(g,function(D){return ks(D,x)?+D:D}).sort(VO)),A});function lj(p,g){var x=[];if(!(p&&p.length))return x;var A=-1,D=[],V=p.length;for(g=_t(g,3);++A<V;){var Y=p[A];g(Y,A,p)&&(x.push(Y),D.push(A))}return PO(p,D),x}function ix(p){return p==null?p:t7.call(p)}function uj(p,g,x){var A=p==null?0:p.length;return A?(x&&typeof x!="number"&&_i(p,g,x)?(g=0,x=A):(g=g==null?0:Ht(g),x=x===n?A:Ht(x)),Ho(p,g,x)):[]}function cj(p,g){return py(p,g)}function fj(p,g,x){return Uw(p,g,_t(x,2))}function dj(p,g){var x=p==null?0:p.length;if(x){var A=py(p,g);if(A<x&&ba(p[A],g))return A}return-1}function hj(p,g){return py(p,g,!0)}function pj(p,g,x){return Uw(p,g,_t(x,2),!0)}function vj(p,g){var x=p==null?0:p.length;if(x){var A=py(p,g,!0)-1;if(ba(p[A],g))return A}return-1}function gj(p){return p&&p.length?DO(p):[]}function mj(p,g){return p&&p.length?DO(p,_t(g,2)):[]}function yj(p){var g=p==null?0:p.length;return g?Ho(p,1,g):[]}function _j(p,g,x){return p&&p.length?(g=x||g===n?1:Ht(g),Ho(p,0,g<0?0:g)):[]}function bj(p,g,x){var A=p==null?0:p.length;return A?(g=x||g===n?1:Ht(g),g=A-g,Ho(p,g<0?0:g,A)):[]}function Sj(p,g){return p&&p.length?vy(p,_t(g,3),!1,!0):[]}function wj(p,g){return p&&p.length?vy(p,_t(g,3)):[]}var xj=jt(function(p){return kl(Gr(p,1,hr,!0))}),Cj=jt(function(p){var g=Go(p);return hr(g)&&(g=n),kl(Gr(p,1,hr,!0),_t(g,2))}),Tj=jt(function(p){var g=Go(p);return g=typeof g=="function"?g:n,kl(Gr(p,1,hr,!0),n,g)});function Ej(p){return p&&p.length?kl(p):[]}function Aj(p,g){return p&&p.length?kl(p,_t(g,2)):[]}function Ij(p,g){return g=typeof g=="function"?g:n,p&&p.length?kl(p,n,g):[]}function ox(p){if(!(p&&p.length))return[];var g=0;return p=Ol(p,function(x){if(hr(x))return g=Tr(x.length,g),!0}),ww(g,function(x){return Wn(p,_w(x))})}function yD(p,g){if(!(p&&p.length))return[];var x=ox(p);return g==null?x:Wn(x,function(A){return ho(g,n,A)})}var Rj=jt(function(p,g){return hr(p)?sp(p,g):[]}),Pj=jt(function(p){return Gw(Ol(p,hr))}),Oj=jt(function(p){var g=Go(p);return hr(g)&&(g=n),Gw(Ol(p,hr),_t(g,2))}),Dj=jt(function(p){var g=Go(p);return g=typeof g=="function"?g:n,Gw(Ol(p,hr),n,g)}),Mj=jt(ox);function Lj(p,g){return kO(p||[],g||[],ap)}function Nj(p,g){return kO(p||[],g||[],cp)}var kj=jt(function(p){var g=p.length,x=g>1?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<V;)A[D]=g[D].call(this,A[D]);return ho(p,this,A)})}),sx=jt(function(p,g){var x=Ml(g,od(sx));return Ls(p,C,n,g,x)}),ID=jt(function(p,g){var x=Ml(g,od(ID));return Ls(p,T,n,g,x)}),SX=Ns(function(p,g){return Ls(p,R,n,n,n,g)});function wX(p,g){if(typeof p!="function")throw new Bo(a);return g=g===n?g:Ht(g),jt(p,g)}function xX(p,g){if(typeof p!="function")throw new Bo(a);return g=g==null?0:Tr(Ht(g),0),jt(function(x){var A=x[g],D=$l(x,0,g);return A&&Dl(D,A),ho(p,this,D)})}function CX(p,g,x){var A=!0,D=!0;if(typeof p!="function")throw new Bo(a);return Jn(x)&&(A="leading"in x?!!x.leading:A,D="trailing"in x?!!x.trailing:D),AD(p,g,{leading:A,maxWait:g,trailing:D})}function TX(p){return wD(p,1)}function EX(p,g){return sx(Ww(g),p)}function AX(){if(!arguments.length)return[];var p=arguments[0];return Ft(p)?p:[p]}function IX(p){return Uo(p,h)}function RX(p,g){return g=typeof g=="function"?g:n,Uo(p,h,g)}function PX(p){return Uo(p,f|h)}function OX(p,g){return g=typeof g=="function"?g:n,Uo(p,f|h,g)}function DX(p,g){return g==null||vO(p,g,kr(g))}function ba(p,g){return p===g||p!==p&&g!==g}var MX=by(Mw),LX=by(function(p,g){return p>=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);++x<A;)for(var V=g[x],Y=$i(V),J=-1,ce=Y.length;++J<ce;){var Ie=Y[J],Re=p[Ie];(Re===n||ba(Re,Qf[Ie])&&!wn.call(p,Ie))&&(p[Ie]=V[Ie])}return p}),sY=jt(function(p){return p.push(n,QO),ho(FD,n,p)});function lY(p,g){return KP(p,_t(g,3),Ya)}function uY(p,g){return KP(p,_t(g,3),Dw)}function cY(p,g){return p==null?p:Ow(p,_t(g,3),$i)}function fY(p,g){return p==null?p:_O(p,_t(g,3),$i)}function dY(p,g){return p&&Ya(p,_t(g,3))}function hY(p,g){return p&&Dw(p,_t(g,3))}function pY(p){return p==null?[]:dy(p,kr(p))}function vY(p){return p==null?[]:dy(p,$i(p))}function cx(p,g,x){var A=p==null?n:ic(p,g);return A===n?x:A}function gY(p,g){return p!=null&&nD(p,g,B7)}function fx(p,g){return p!=null&&nD(p,g,V7)}var mY=YO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=Qm.call(g)),p[g]=x},hx(Bi)),yY=YO(function(p,g,x){g!=null&&typeof g.toString!="function"&&(g=Qm.call(g)),wn.call(p,g)?p[g].push(x):p[g]=[x]},_t),_Y=jt(lp);function kr(p){return Fi(p)?dO(p):kw(p)}function $i(p){return Fi(p)?dO(p,!0):Z7(p)}function bY(p,g){var x={};return g=_t(g,3),Ya(p,function(A,D,V){Ms(x,g(A,D,V),A)}),x}function SY(p,g){var x={};return g=_t(g,3),Ya(p,function(A,D,V){Ms(x,D,g(A,D,V))}),x}var wY=rd(function(p,g,x){hy(p,g,x)}),FD=rd(function(p,g,x,A){hy(p,g,x,A)}),xY=Ns(function(p,g){var x={};if(p==null)return x;var A=!1;g=Wn(g,function(V){return V=Fl(V,p),A||(A=V.length>1),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);++A<D;){var V=p==null?n:p[Za(g[A])];V===n&&(A=D,V=x),p=Fs(V)?V.call(p):V}return p}function AY(p,g,x){return p==null?p:cp(p,g,x)}function IY(p,g,x,A){return A=typeof A=="function"?A:n,p==null?p:cp(p,g,x,A)}var BD=qO(kr),VD=qO($i);function RY(p,g,x){var A=Ft(p),D=A||Bl(p)||ad(p);if(g=_t(g,4),x==null){var V=p&&p.constructor;D?x=A?new V:[]:Jn(p)?x=Fs(V)?nd(ny(p)):{}:x={}}return(D?$o:Ya)(p,function(Y,J,ce){return g(x,Y,J,ce)}),x}function PY(p,g){return p==null?!0:Hw(p,g)}function OY(p,g,x){return p==null?p:LO(p,g,Ww(x))}function DY(p,g,x,A){return A=typeof A=="function"?A:n,p==null?p:LO(p,g,Ww(x),A)}function sd(p){return p==null?[]:xw(p,kr(p))}function MY(p){return p==null?[]:xw(p,$i(p))}function LY(p,g,x){return x===n&&(x=g,g=n),x!==n&&(x=zo(x),x=x===x?x:0),g!==n&&(g=zo(g),g=g===g?g:0),rc(zo(p),g,x)}function NY(p,g,x){return g=$s(g),x===n?(x=g,g=0):x=$s(x),p=zo(p),U7(p,g,x)}function kY(p,g,x){if(x&&typeof x!="boolean"&&_i(p,g,x)&&(g=x=n),x===n&&(typeof g=="boolean"?(x=g,g=n):typeof p=="boolean"&&(x=p,p=n)),p===n&&g===n?(p=0,g=1):(p=$s(p),g===n?(g=p,p=0):g=$s(g)),p>g){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<g?p+_y(g-A,x):p}function jY(p,g,x){p=gn(p),g=Ht(g);var A=g?qf(p):0;return g&&A<g?_y(g-A,x)+p:p}function XY(p,g,x){return x||g==null?g=0:g&&(g=+g),e7(gn(p).replace(Ni,""),g||0)}function YY(p,g,x){return(x?_i(p,g,x):g===n)?g=1:g=Ht(g),Vw(gn(p),g)}function KY(){var p=arguments,g=gn(p[0]);return p.length<3?g:g.replace(p[1],p[2])}var ZY=id(function(p,g,x){return p+(x?"_":"")+g.toLowerCase()});function qY(p,g,x){return x&&typeof x!="number"&&_i(p,g,x)&&(g=x=n),x=x===n?ge:x>>>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;++D<g;){var V=p[D];if(ho(V[0],this,A))return ho(V[1],this,A)}})}function fK(p){return k7(Uo(p,f))}function hx(p){return function(){return p}}function dK(p,g){return p==null||p!==p?g:p}var hK=XO(),pK=XO(!0);function Bi(p){return p}function px(p){return xO(typeof p=="function"?p:Uo(p,f))}function vK(p){return TO(Uo(p,f))}function gK(p,g){return EO(p,Uo(g,f))}var mK=jt(function(p,g){return function(x){return lp(x,p,g)}}),yK=jt(function(p,g){return function(x){return lp(p,x,g)}});function vx(p,g,x){var A=kr(g),D=dy(g,A);x==null&&!(Jn(g)&&(D.length||!A.length))&&(x=g,g=p,p=this,D=dy(g,kr(g)));var V=!(Jn(x)&&"chain"in x)||!!x.chain,Y=Fs(p);return $o(D,function(J){var ce=g[J];p[J]=ce,Y&&(p.prototype[J]=function(){var Ie=this.__chain__;if(V||Ie){var Re=p(this.__wrapped__),Ne=Re.__actions__=ki(this.__actions__);return Ne.push({func:ce,args:arguments,thisArg:p}),Re.__chain__=Ie,Re}return ce.apply(p,Dl([this.value()],arguments))})}),p}function _K(){return Hr._===this&&(Hr._=W9),this}function gx(){}function bK(p){return p=Ht(p),jt(function(g){return AO(g,p)})}var SK=Xw(Wn),wK=Xw(YP),xK=Xw(yw);function WD(p){return ex(p)?_w(Za(p)):Q7(p)}function CK(p){return function(g){return p==null?n:ic(p,g)}}var TK=KO(),EK=KO(!0);function mx(){return[]}function yx(){return!1}function AK(){return{}}function IK(){return""}function RK(){return!0}function PK(p,g){if(p=Ht(p),p<1||p>j)return[];var x=ge,A=Jr(p,ge);g=_t(g),p-=ge;for(var D=ww(A,g);++x<p;)g(x);return D}function OK(p){return Ft(p)?Wn(p,Za):go(p)?[p]:ki(fD(gn(p)))}function DK(p){var g=++G9;return gn(p)+g}var MK=yy(function(p,g){return p+g},0),LK=Yw("ceil"),NK=yy(function(p,g){return p/g},1),kK=Yw("floor");function FK(p){return p&&p.length?fy(p,Bi,Mw):n}function $K(p,g){return p&&p.length?fy(p,_t(g,2),Mw):n}function BK(p){return qP(p,Bi)}function VK(p,g){return qP(p,_t(g,2))}function UK(p){return p&&p.length?fy(p,Bi,Fw):n}function HK(p,g){return p&&p.length?fy(p,_t(g,2),Fw):n}var GK=yy(function(p,g){return p*g},1),zK=Yw("round"),WK=yy(function(p,g){return p-g},0);function jK(p){return p&&p.length?Sw(p,Bi):0}function XK(p,g){return p&&p.length?Sw(p,_t(g,2)):0}return k.after=vX,k.ary=wD,k.assign=nY,k.assignIn=kD,k.assignInWith=Oy,k.assignWith=rY,k.at=iY,k.before=xD,k.bind=ax,k.bindAll=uK,k.bindKey=CD,k.castArray=AX,k.chain=_D,k.chunk=kW,k.compact=FW,k.concat=$W,k.cond=cK,k.conforms=fK,k.constant=hx,k.countBy=jj,k.create=oY,k.curry=TD,k.curryRight=ED,k.debounce=AD,k.defaults=aY,k.defaultsDeep=sY,k.defer=gX,k.delay=mX,k.difference=BW,k.differenceBy=VW,k.differenceWith=UW,k.drop=HW,k.dropRight=GW,k.dropRightWhile=zW,k.dropWhile=WW,k.fill=jW,k.filter=Yj,k.flatMap=qj,k.flatMapDeep=Jj,k.flatMapDepth=Qj,k.flatten=vD,k.flattenDeep=XW,k.flattenDepth=YW,k.flip=yX,k.flow=hK,k.flowRight=pK,k.fromPairs=KW,k.functions=pY,k.functionsIn=vY,k.groupBy=eX,k.initial=qW,k.intersection=JW,k.intersectionBy=QW,k.intersectionWith=ej,k.invert=mY,k.invertBy=yY,k.invokeMap=nX,k.iteratee=px,k.keyBy=rX,k.keys=kr,k.keysIn=$i,k.map=Ty,k.mapKeys=bY,k.mapValues=SY,k.matches=vK,k.matchesProperty=gK,k.memoize=Ay,k.merge=wY,k.mergeWith=FD,k.method=mK,k.methodOf=yK,k.mixin=vx,k.negate=Iy,k.nthArg=bK,k.omit=xY,k.omitBy=CY,k.once=_X,k.orderBy=iX,k.over=SK,k.overArgs=bX,k.overEvery=wK,k.overSome=xK,k.partial=sx,k.partialRight=ID,k.partition=oX,k.pick=TY,k.pickBy=$D,k.property=WD,k.propertyOf=CK,k.pull=ij,k.pullAll=mD,k.pullAllBy=oj,k.pullAllWith=aj,k.pullAt=sj,k.range=TK,k.rangeRight=EK,k.rearg=SX,k.reject=lX,k.remove=lj,k.rest=wX,k.reverse=ix,k.sampleSize=cX,k.set=AY,k.setWith=IY,k.shuffle=fX,k.slice=uj,k.sortBy=pX,k.sortedUniq=gj,k.sortedUniqBy=mj,k.split=qY,k.spread=xX,k.tail=yj,k.take=_j,k.takeRight=bj,k.takeRightWhile=Sj,k.takeWhile=wj,k.tap=Fj,k.throttle=CX,k.thru=Cy,k.toArray=MD,k.toPairs=BD,k.toPairsIn=VD,k.toPath=OK,k.toPlainObject=ND,k.transform=RY,k.unary=TX,k.union=xj,k.unionBy=Cj,k.unionWith=Tj,k.uniq=Ej,k.uniqBy=Aj,k.uniqWith=Ij,k.unset=PY,k.unzip=ox,k.unzipWith=yD,k.update=OY,k.updateWith=DY,k.values=sd,k.valuesIn=MY,k.without=Rj,k.words=GD,k.wrap=EX,k.xor=Pj,k.xorBy=Oj,k.xorWith=Dj,k.zip=Mj,k.zipObject=Lj,k.zipObjectDeep=Nj,k.zipWith=kj,k.entries=BD,k.entriesIn=VD,k.extend=kD,k.extendWith=Oy,vx(k,k),k.add=MK,k.attempt=zD,k.camelCase=FY,k.capitalize=UD,k.ceil=LK,k.clamp=LY,k.clone=IX,k.cloneDeep=PX,k.cloneDeepWith=OX,k.cloneWith=RX,k.conformsTo=DX,k.deburr=HD,k.defaultTo=dK,k.divide=NK,k.endsWith=$Y,k.eq=ba,k.escape=BY,k.escapeRegExp=VY,k.every=Xj,k.find=Kj,k.findIndex=hD,k.findKey=lY,k.findLast=Zj,k.findLastIndex=pD,k.findLastKey=uY,k.floor=kK,k.forEach=bD,k.forEachRight=SD,k.forIn=cY,k.forInRight=fY,k.forOwn=dY,k.forOwnRight=hY,k.get=cx,k.gt=MX,k.gte=LX,k.has=gY,k.hasIn=fx,k.head=gD,k.identity=Bi,k.includes=tX,k.indexOf=ZW,k.inRange=NY,k.invoke=_Y,k.isArguments=sc,k.isArray=Ft,k.isArrayBuffer=NX,k.isArrayLike=Fi,k.isArrayLikeObject=hr,k.isBoolean=kX,k.isBuffer=Bl,k.isDate=FX,k.isElement=$X,k.isEmpty=BX,k.isEqual=VX,k.isEqualWith=UX,k.isError=lx,k.isFinite=HX,k.isFunction=Fs,k.isInteger=RD,k.isLength=Ry,k.isMap=PD,k.isMatch=GX,k.isMatchWith=zX,k.isNaN=WX,k.isNative=jX,k.isNil=YX,k.isNull=XX,k.isNumber=OD,k.isObject=Jn,k.isObjectLike=nr,k.isPlainObject=pp,k.isRegExp=ux,k.isSafeInteger=KX,k.isSet=DD,k.isString=Py,k.isSymbol=go,k.isTypedArray=ad,k.isUndefined=ZX,k.isWeakMap=qX,k.isWeakSet=JX,k.join=tj,k.kebabCase=UY,k.last=Go,k.lastIndexOf=nj,k.lowerCase=HY,k.lowerFirst=GY,k.lt=QX,k.lte=eY,k.max=FK,k.maxBy=$K,k.mean=BK,k.meanBy=VK,k.min=UK,k.minBy=HK,k.stubArray=mx,k.stubFalse=yx,k.stubObject=AK,k.stubString=IK,k.stubTrue=RK,k.multiply=GK,k.nth=rj,k.noConflict=_K,k.noop=gx,k.now=Ey,k.pad=zY,k.padEnd=WY,k.padStart=jY,k.parseInt=XY,k.random=kY,k.reduce=aX,k.reduceRight=sX,k.repeat=YY,k.replace=KY,k.result=EY,k.round=zK,k.runInContext=ae,k.sample=uX,k.size=dX,k.snakeCase=ZY,k.some=hX,k.sortedIndex=cj,k.sortedIndexBy=fj,k.sortedIndexOf=dj,k.sortedLastIndex=hj,k.sortedLastIndexBy=pj,k.sortedLastIndexOf=vj,k.startCase=JY,k.startsWith=QY,k.subtract=WK,k.sum=jK,k.sumBy=XK,k.template=eK,k.times=PK,k.toFinite=$s,k.toInteger=Ht,k.toLength=LD,k.toLower=tK,k.toNumber=zo,k.toSafeInteger=tY,k.toString=gn,k.toUpper=nK,k.trim=rK,k.trimEnd=iK,k.trimStart=oK,k.truncate=aK,k.unescape=sK,k.uniqueId=DK,k.upperCase=lK,k.upperFirst=dx,k.each=bD,k.eachRight=SD,k.first=gD,vx(k,function(){var p={};return Ya(k,function(g,x){wn.call(k.prototype,x)||(p[x]=g)}),p}(),{chain:!1}),k.VERSION=r,$o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(p){k[p].placeholder=k}),$o(["drop","take"],function(p,g){en.prototype[p]=function(x){x=x===n?1:Tr(Ht(x),0);var A=this.__filtered__&&!g?new en(this):this.clone();return A.__filtered__?A.__takeCount__=Jr(x,A.__takeCount__):A.__views__.push({size:Jr(x,ge),type:p+(A.__dir__<0?"Right":"")}),A},en.prototype[p+"Right"]=function(x){return this.reverse()[p](x).reverse()}}),$o(["filter","map","takeWhile"],function(p,g){var x=g+1,A=x==$||x==B;en.prototype[p]=function(D){var V=this.clone();return V.__iteratees__.push({iteratee:_t(D,3),type:x}),V.__filtered__=V.__filtered__||A,V}}),$o(["head","last"],function(p,g){var x="take"+(g?"Right":"");en.prototype[p]=function(){return this[x](1).value()[0]}}),$o(["initial","tail"],function(p,g){var x="drop"+(g?"":"Right");en.prototype[p]=function(){return this.__filtered__?new en(this):this[x](1)}}),en.prototype.compact=function(){return this.filter(Bi)},en.prototype.find=function(p){return this.filter(p).head()},en.prototype.findLast=function(p){return this.reverse().find(p)},en.prototype.invokeMap=jt(function(p,g){return typeof p=="function"?new en(this):this.map(function(x){return lp(x,p,g)})}),en.prototype.reject=function(p){return this.filter(Iy(_t(p)))},en.prototype.slice=function(p,g){p=Ht(p);var x=this;return x.__filtered__&&(p>0||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;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function pV(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const 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<i;r++)arguments[r]&&ym(arguments[r],n);return t}const Gie=(e,t,n,{allOwnKeys: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<i;r++)o=n[r],t[o]=e[o];return t}function TV(e){function t(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&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<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function Noe(e,t){let n=0,r=1e3/t,i,o;const a=(u,c=Date.now())=>{n=c,i=null,o&&(clearTimeout(o),o=null),e.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<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},zoe=async function*(e,t){for await(const n of Woe(e))yield*Goe(n,t)},Woe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},eN=(e,t,n,r)=>{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<t;o++){n=e[o];let a;if(r=n,!qoe(n)&&(r=kE[(a=String(n)).toLowerCase()],r===void 0))throw new Bt(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+o]=r}if(!r){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
`+o.map(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<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const v=s[f++],m=s[f++];try{h=v(h)}catch(_){m.call(this,_);break}}try{c=rN.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Af(this.defaults,t);const n=IV(t.baseURL,t.url);return xV(n,t.params,t.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(t){pf.prototype[t]=function(n,r){return this.request(Af(r||{},{method:t,url:n,data:(r||{}).data}))}});be.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Af(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}pf.prototype[t]=n(),pf.prototype[t+"Form"]=n(!0)});class g2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new 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=()=>{n<e&&t.size>0&&(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(),n<e&&r()))()},s=(l,...u)=>new Promise(c=>{a(l,c,u)});return Object.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.size},clearQueue:{value(){t.clear()}},concurrency:{get:()=>e,set(l){dN(l),e=l,queueMicrotask(()=>{for(;n<e&&t.size>0;)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<Zc+1?"":`
<div class="flex items-center my-2 gap-1">
<div class="w-4 h-4 rounded-full" style="background-color: ${e.color}"></div>
${e.seriesName}
(${Oo(e.data.name).format("HH:mm:ss")}): ${Gn(e.data.value,{binary:r})}${n}
</div>`},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?"":e<mu.value?"text-green-500":e<il.value?"text-yellow-500":"text-red-500",Eo=Le(()=>Object.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.length<b;)y=" "+y;return y};console.info(`%c⏱ ${_(v,5)} /${_(h,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,i),i}}function Kx(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Jae=(e,t)=>Math.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()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.end<l.end&&i.set(s.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((a,s)=>a.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=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;c<n;c++){const f=o(c),d=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=d?d.end+this.options.gap:r+i,v=s.get(f),m=typeof v=="number"?v:this.options.estimateSize(c),_=h+m,y=d?d.lane:c%this.options.lanes;u[c]={index:c,start:h,size:m,end:_,key:f,lane:y}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.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<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=cd(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;o<a;o++){const s=n[o],l=r[s];i.push(l)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return 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(o<r)e=i+1;else if(o>r)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(;a<r&&e[a].end<n+t;)a++;return{startIndex:o,endIndex:a}}function use(e){const t=new sse(N(e)),n=Uf(t),r=t._didMount();return Vt(()=>N(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;i<n;i++)r[i-1]=arguments[i];return GE(e,t,r)}}function gse(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zE(e,n)}}function qt(e,t){let n=arguments.length>2&&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<e.length;t++)Ia(e,t)||(e[t]=null);return e}function Fc(e){const t=rU(null);for(const[n,r]of nU(e))Ia(e,n)&&(Array.isArray(r)?t[n]=mse(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Fc(r):t[n]=r);return t}function Ep(e,t){for(;e!==null;){const r=hse(e,t);if(r){if(r.get)return Mo(r.get);if(typeof r.value=="function")return Mo(r.value)}e=dse(e)}function n(){return null}return n}const wN=Li(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Jx=Li(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Qx=Li(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yse=Li(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),eC=Li(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),_se=Li(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xN=Li(["#text"]),CN=Li(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),tC=Li(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),TN=Li(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Jy=Li(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bse=fa(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Sse=fa(/<%[\w\W]*|[\w\W]*%>/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="<remove></remove>"+ne;else{const tr=SN(ne,/^[\r\n\t ]+/);ut=tr&&tr[0]}Dt==="application/xhtml+xml"&&Ae===re&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");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="<!DOCTYPE "+Ue.ownerDocument.doctype.name+`>
`+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<m;)v=" "+v;return v};console.info(`%c⏱ ${h(f,5)} /${h(c,5)} ms`,`
font-size: .6rem;
font-weight: bold;
color: hsl(${Math.max(0,Math.min(120-120*d,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function Ct(e,t,n,r){return{debug:()=>{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._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(s,e)}return s},Use={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},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===void 0&&o>=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<a&&(i=a)))}),[r,i]},Xse=(e,t)=>{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},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:r<i-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},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<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return 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:r<i?-1:0},gle=(e,t,n)=>x2(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;d<i._features.length;d++){const h=i._features[d];h==null||h.createTable==null||h.createTable(i)}return i}function ble(){return e=>xt(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=uU(e,e._getRowId(i[u],u,a),i[u],u,o,void 0,a==null?void 0:a.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,o+1,c))}}return s};return n.rows=r(t),n},Ct(e.options,"debugTable","getRowModel",()=>e._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<o.length;h+=1){var d;const v=o[h],m=a[v.id],_=m.sortUndefined,y=(d=v==null?void 0:v.desc)!=null?d:!1;let b=0;if(_){const S=c.getValue(v.id),w=f.getValue(v.id),C=S===void 0,T=w===void 0;if(C||T){if(_==="first")return C?-1:1;if(_==="last")return C?1:-1;b=C&&T?0:C?_:-_}}if(b===0&&(b=m.sortingFn(c,f,v.id)),b!==0)return y&&(b*=-1),m.invertSorting&&(b*=-1),b}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},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<e;n++)t[n]=arguments[n];return new Proxy({get(r){for(let i=t.length-1;i>=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<t.length;i++)r.push(...Object.keys(uC(t[i])));return[...Array.from(new Set(r))]}},Ale)}const cC=it({props:["render","props"],setup:e=>()=>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;_<s.length;_++){let y=s[_];if(u===0){if(y===i&&(r||s.slice(_,_+o)===t)){l.push(s.slice(c,_)),c=_+o;continue}if(y==="/"){f=_;continue}}y==="["?u++:y==="]"&&u--}const d=l.length===0?s:s.substring(c),h=d.startsWith(bU),v=h?d.substring(1):d,m=f&&f>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;w<S.length;++w){const C=S[w];o.push(y+C)}s=u+(s.length>0?" "+s:s)}return s};function Vle(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=SU(t))&&(r&&(r+=" "),r+=n);return r}const SU=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=SU(e[r]))&&(n&&(n+=" "),n+=t);return n};function Ule(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((c,f)=>f(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"})),E<C.length-1&&w.unshift(Xi(Lu,{class:"h-4 w-4 shrink-0"}))}),Xi("div",{class:`inline-flex items-center ${Lv.value===gm.REVERSE&&"flex-row-reverse justify-end"} gap-1`},w)}},{header:()=>i("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);n<t;n++)r[n]=e[n];return r}function TU(e,t){if(e){if(typeof e=="string")return qE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qE(e,t):void 0}}function k1(e){return function(t){if(Array.isArray(t))return qE(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||TU(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}N1.d(CU,{Z:()=>mue});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<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){F1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var AU={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const gue=(0,mt.defineComponent)({name:"TreeNode",props:FN(FN({},AU),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(e,t){var n=t.emit,r=(0,mt.computed)(function(){return EU(e.node.content)}),i=(0,mt.computed)(function(){return"vjs-value vjs-value-".concat(r.value)}),o=(0,mt.computed)(function(){return e.showDoubleQuotes?'"'.concat(e.node.key,'"'):e.node.key}),a=(0,mt.computed)(function(){return e.selectableType==="multiple"}),s=(0,mt.computed)(function(){return e.selectableType==="single"}),l=(0,mt.computed)(function(){return e.nodeSelectable(e.node)&&(a.value||s.value)}),u=(0,mt.reactive)({editing:!1}),c=function(b){var S,w,C=(w=(S=b.target)===null||S===void 0?void 0:S.value)==="null"?null:w==="undefined"?void 0:w==="true"||w!=="false"&&(w[0]+w[w.length-1]==='""'||w[0]+w[w.length-1]==="''"?w.slice(1,-1):typeof Number(w)=="number"&&!isNaN(Number(w))||w==="NaN"?Number(w):w);n("valueChange",C,e.node.path)},f=(0,mt.computed)(function(){var b,S=(b=e.node)===null||b===void 0?void 0:b.content;return S===null?S="null":S===void 0&&(S="undefined"),r.value==="string"?'"'.concat(S,'"'):S+""}),d=function(){var b=e.renderNodeValue;return b?b({node:e.node,defaultValue:f.value}):f.value},h=function(){n("bracketsClick",!e.collapsed,e.node)},v=function(){n("iconClick",!e.collapsed,e.node)},m=function(){n("selectedChange",e.node)},_=function(){n("nodeClick",e.node),l.value&&e.selectOnClickNode&&n("selectedChange",e.node)},y=function(b){if(e.editable&&!u.editing){u.editing=!0;var S=function w(C){var T;C.target!==b.target&&((T=C.target)===null||T===void 0?void 0:T.parentElement)!==b.target&&(u.editing=!1,document.removeEventListener("click",w))};document.removeEventListener("click",S),document.addEventListener("click",S)}};return function(){var b,S=e.node;return(0,mt.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":e.showSelectController,"has-carets":e.showIcon,"is-highlight":e.highlightSelectedNode&&e.checked,dark:e.theme==="dark"},onClick:_,style:e.style},[e.showLineNumber&&(0,mt.createVNode)("span",{class:"vjs-node-index"},[S.id+1]),e.showSelectController&&l.value&&S.type!=="objectEnd"&&S.type!=="arrayEnd"&&(0,mt.createVNode)(pue,{isMultiple:a.value,checked:e.checked,onChange:m},null),(0,mt.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(S.level)).map(function(w,C){return(0,mt.createVNode)("div",{key:C,class:{"vjs-indent-unit":!0,"has-line":e.showLine}},null)}),e.showIcon&&(0,mt.createVNode)(vue,{nodeType:S.type,onClick:v},null)]),S.key&&(0,mt.createVNode)("span",{class:"vjs-key"},[(b=e.renderNodeKey,b?b({node:e.node,defaultKey:o.value||""}):o.value),(0,mt.createVNode)("span",{class:"vjs-colon"},[":".concat(e.showKeyValueSpace?" ":"")])]),(0,mt.createVNode)("span",null,[S.type!=="content"&&S.content?(0,mt.createVNode)(hue,{data:S.content.toString(),onClick:h},null):(0,mt.createVNode)("span",{class:i.value,onClick:!e.editable||e.editableTrigger&&e.editableTrigger!=="click"?void 0:y,onDblclick:e.editable&&e.editableTrigger==="dblclick"?y:void 0},[e.editable&&u.editing?(0,mt.createVNode)("input",{value:f.value,onChange:c,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):d()]),S.showComma&&(0,mt.createVNode)("span",null,[","]),e.showLength&&e.collapsed&&(0,mt.createVNode)("span",{class:"vjs-comment"},[(0,mt.createTextVNode)(" // "),S.length,(0,mt.createTextVNode)(" items ")])])])}}});function $N(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 _o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$N(Object(n),!0).forEach(function(r){F1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const mue=(0,mt.defineComponent)({name:"Tree",props:_o(_o({},AU),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(e,t){var n=t.emit,r=t.slots,i=(0,mt.ref)(),o=(0,mt.computed)(function(){return $c(e.data,e.rootPath)}),a=function(S,w){return o.value.reduce(function(C,T){var E,R=T.level>=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;T<C;T++){var E=_o(_o({},o.value[T]),{},{id:T}),R=s.hiddenPaths[E.path];if(S&&S.path===E.path){var I=S.type==="objectStart",O=_o(_o(_o({},E),S),{},{showComma:E.showComma,content:I?"{...}":"[...]",type:I?"objectCollapsed":"arrayCollapsed"});S=null,w.push(O)}else{if(R&&!S){S=E;continue}if(S)continue;w.push(E)}}return w}),u=(0,mt.computed)(function(){var S=e.selectedValue;return S&&e.selectableType==="multiple"&&Array.isArray(S)?S:[S]}),c=(0,mt.computed)(function(){return!e.selectableType||e.selectOnClickNode||e.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),f=function(){var S=l.value;if(e.virtual){var w,C=e.height/e.itemHeight,T=((w=i.value)===null||w===void 0?void 0:w.scrollTop)||0,E=Math.floor(T/e.itemHeight),R=E<0?0:E+C>S.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<I})}else s.visibleData=S},d=function(){f()},h=function(S){var w,C,T=S.path,E=e.selectableType;if(E==="multiple"){var R=u.value.findIndex(function(M){return M===T}),I=k1(u.value);R!==-1?I.splice(R,1):I.push(T),n("update:selectedValue",I),n("selectedChange",I,k1(u.value))}else if(E==="single"&&u.value[0]!==T){var O=(w=u.value,C=1,function(M){if(Array.isArray(M))return M}(w)||function(M,F){var $=M==null?null:typeof Symbol<"u"&&M[Symbol.iterator]||M["@@iterator"];if($!=null){var z,B,K=[],j=!0,le=!1;try{for($=$.call(M);!(j=(z=$.next()).done)&&(K.push(z.value),!F||K.length!==F);j=!0);}catch(me){le=!0,B=me}finally{try{j||$.return==null||$.return()}finally{if(le)throw B}}return K}}(w,C)||TU(w,C)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],P=T;n("update:selectedValue",P),n("selectedChange",P,O)}},v=function(S){n("nodeClick",S)},m=function(S,w){if(S)s.hiddenPaths=_o(_o({},s.hiddenPaths),{},F1({},w,1));else{var C=_o({},s.hiddenPaths);delete C[w],s.hiddenPaths=C}},_=function(S,w){e.collapsedOnClickBrackets&&m(S,w.path),n("bracketsClick",S,w)},y=function(S,w){m(S,w.path),n("iconClick",S,w)},b=function(S,w){var C=QE(e.data),T=e.rootPath;new Function("data","val","data".concat(w.slice(T.length),"=val"))(C,S),n("update:data",C)};return(0,mt.watchEffect)(function(){c.value&&function(S){throw new Error("[VueJSONPretty] ".concat(S))}(c.value)}),(0,mt.watchEffect)(function(){l.value&&f()}),(0,mt.watch)(function(){return e.deep},function(S){S&&(s.hiddenPaths=a(S,e.collapsedNodeLength))}),(0,mt.watch)(function(){return e.collapsedNodeLength},function(S){S&&(s.hiddenPaths=a(e.deep,S))}),function(){var S,w,C=(S=e.renderNodeKey)!==null&&S!==void 0?S:r.renderNodeKey,T=(w=e.renderNodeValue)!==null&&w!==void 0?w:r.renderNodeValue,E=s.visibleData&&s.visibleData.map(function(R){return(0,mt.createVNode)(gue,{key:R.id,node:R,collapsed:!!s.hiddenPaths[R.path],theme:e.theme,showDoubleQuotes:e.showDoubleQuotes,showLength:e.showLength,checked:u.value.includes(R.path),selectableType:e.selectableType,showLine:e.showLine,showLineNumber:e.showLineNumber,showSelectController:e.showSelectController,selectOnClickNode:e.selectOnClickNode,nodeSelectable:e.nodeSelectable,highlightSelectedNode:e.highlightSelectedNode,editable:e.editable,editableTrigger:e.editableTrigger,showIcon:e.showIcon,showKeyValueSpace:e.showKeyValueSpace,renderNodeKey:C,renderNodeValue:T,onNodeClick:v,onBracketsClick:_,onIconClick:y,onSelectedChange:h,onValueChange:b,style:e.itemHeight&&e.itemHeight!==20?{lineHeight:"".concat(e.itemHeight,"px")}:{}},null)});return(0,mt.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":e.virtual,dark:e.theme==="dark"},onScroll:e.virtual?d:void 0,style:e.showLineNumber?_o({paddingLeft:"".concat(12*Number(o.value.length.toString().length),"px")},e.style):e.style},[e.virtual?(0,mt.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(e.height,"px")}},[(0,mt.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(l.value.length*e.itemHeight,"px")}},[(0,mt.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[E])])]):E])}}});var yue=CU.Z;const _ue={class:"size-full overflow-x-hidden"},bue=it({__name:"ConnectionsPage",setup(e){const{infoConn:t,connectionDetailModalShow:n}=b2();return(r,i)=>(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<w.length;O++){var P=w[O],M=vs(P),F=Ch(P)===Sh,$=[ro,da].indexOf(M)>=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<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Qce(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?XN:i;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},XN,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(y){var b=typeof y=="function"?y(c.options):y;m(),c.options=Object.assign({},o,c.options,b),c.scrollParents={reference:Rf(s)?Uv(s):s.contextElement?Uv(s.contextElement):[],popper:Uv(l)};var S=Zce(Jce([].concat(r,c.options.modifiers)));return c.orderedModifiers=S.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var y=c.elements,b=y.reference,S=y.popper;if(YN(b,S)){c.rects={reference:Yce(b,xm(S),c.options.strategy==="fixed"),popper:P2(S)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(O){return c.modifiersData[O.name]=Object.assign({},O.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var C=c.orderedModifiers[w],T=C.fn,E=C.options,R=E===void 0?{}:E,I=C.name;typeof T=="function"&&(c=T({state:c,options:R,name:I,instance:h})||c)}}}},update:qce(function(){return new Promise(function(_){h.forceUpdate(),_(c)})}),destroy:function(){m(),d=!0}};if(!YN(s,l))return h;h.setOptions(u).then(function(_){!d&&u.onFirstUpdate&&u.onFirstUpdate(_)});function v(){c.orderedModifiers.forEach(function(_){var y=_.name,b=_.options,S=b===void 0?{}:b,w=_.effect;if(typeof w=="function"){var C=w({state:c,name:y,instance:h,options:S}),T=function(){};f.push(C||T)}})}function m(){f.forEach(function(_){return _()}),f=[]}return h}}var efe=[xce,Uce,Sce,FU,Bce,Lce,zce,mce,kce],tfe=Qce({defaultModifiers:efe}),nfe="tippy-box",WU="tippy-content",rfe="tippy-backdrop",jU="tippy-arrow",XU="tippy-svg-arrow",Vc={passive:!0,capture:!0},YU=function(){return document.body};function hC(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function N2(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-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<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-Afe)/Ife;t[r]=i}return t}var Ofe=Pfe(Rfe),Uh={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var i=Uh.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Pf),e.measureText(n);n=n||"",r=r||Pf;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||k2,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Ofe[n[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},QU=Hh(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),eH=Hh(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Em=Object.prototype.toString,hS=Array.prototype,Dfe=hS.forEach,Mfe=hS.filter,F2=hS.slice,Lfe=hS.map,ik=(function(){}).constructor,s0=ik?ik.prototype:null,$2="__proto__",Nfe=2311;function tH(){return Nfe++}function B2(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function sn(e){if(e==null||typeof e!="object")return e;var t=e,n=Em.call(e);if(n==="[object Array]"){if(!Gv(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=sn(e[r])}}else if(eH[n]){if(!Gv(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!QU[n]&&!Gv(e)&&!Ng(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==$2&&(t[a]=sn(e[a]))}return t}function _n(e,t,n){if(!Et(t)||!Et(e))return n?sn(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==$2){var i=e[r],o=t[r];Et(o)&&Et(i)&&!ct(o)&&!ct(i)&&!Ng(o)&&!Ng(i)&&!ok(o)&&!ok(i)&&!Gv(o)&&!Gv(i)?_n(i,o,n):(n||!(r in e))&&(e[r]=sn(t[r]))}return e}function Ze(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==$2&&(e[n]=t[n]);return e}function Cn(e,t,n){for(var r=Zn(t),i=0,o=r.length;i<o;i++){var a=r[i];e[a]==null&&(e[a]=t[a])}return e}function En(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function kfe(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function As(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else Cn(e,t)}function so(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function Q(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Dfe)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Ot(e,t,n){if(!e)return[];if(!t)return V2(e);if(e.map&&e.map===Lfe)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function Hh(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function Yr(e,t,n){if(!e)return[];if(!t)return V2(e);if(e.filter&&e.filter===Mfe)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Zn(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Ffe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(F2.call(arguments)))}}var Kn=s0&&Ut(s0.bind)?s0.call.bind(s0.bind):Ffe;function Fr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(F2.call(arguments)))}}function ct(e){return Array.isArray?Array.isArray(e):Em.call(e)==="[object Array]"}function Ut(e){return typeof e=="function"}function ht(e){return typeof e=="string"}function lA(e){return Em.call(e)==="[object String]"}function qn(e){return typeof e=="number"}function Et(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function ok(e){return!!QU[Em.call(e)]}function lo(e){return!!eH[Em.call(e)]}function Ng(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function pS(e){return e.colorStops!=null}function $fe(e){return e.image!=null}function H1(e){return e!==e}function kg(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function nn(e,t){return e??t}function H_(e,t,n){return e??t??n}function V2(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return F2.apply(e,t)}function nH(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Cl(e,t){if(!e)throw new Error(t)}function hs(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rH="__ec_primitive__";function uA(e){e[rH]=!0}function Gv(e){return e[rH]}var Bfe=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Zn(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),iH=typeof Map=="function";function Vfe(){return iH?new Map:new Bfe}var Ufe=function(){function e(t){var n=ct(t);this.data=Vfe();var r=this;t instanceof e?t.each(i):t&&Q(t,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,i){t.call(n,r,i)})},e.prototype.keys=function(){var t=this.data.keys();return iH?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Kt(e){return new Ufe(e)}function Hfe(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function vS(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Ze(n,t),n}function oH(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Of(e,t){return e.hasOwnProperty(t)}function oo(){}var Gfe=180/Math.PI,zfe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Wfe=function(){function e(){this.browser=new zfe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),Mt=new Wfe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Mt.wxa=!0,Mt.touchEventsSupported=!0):typeof document>"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<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function ede(e,t,n){return this.superClass.prototype[t].apply(e,n)}function gS(e){var t={};e.registerClass=function(r){var i=r.type||r.prototype.type;if(i){Yfe(i),r.prototype.type=i;var o=ps(i);if(!o.sub)t[o.main]=r;else if(o.sub!==cc){var a=n(o);a[o.sub]=r}}return r},e.getClass=function(r,i,o){var a=t[r];if(a&&a[cc]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return a},e.getClassesByMainType=function(r){var i=ps(r),o=[],a=t[i.main];return a&&a[cc]?Q(a,function(s,l){l!==cc&&o.push(s)}):o.push(a),o},e.hasClass=function(r){var i=ps(r);return!!t[i.main]},e.getAllClassMainTypes=function(){var r=[];return Q(t,function(i,o){r.push(o)}),r},e.hasSubTypes=function(r){var i=ps(r),o=t[i.main];return o&&o[cc]};function n(r){var i=t[r.main];return(!i||!i[cc])&&(i=t[r.main]={},i[cc]=!0),i}}function Fg(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&En(i,l)>=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;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function mS(e){return e&&e.width&&e.height}function eh(){return[1,0,0,1,0,0]}function H2(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ade(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function th(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function fA(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function G2(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(a-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(a-r[0])+r[1],e}function sde(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function z2(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var On=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,i){t.x=n.x+r.x*i,t.y=n.y+r.y*i},e.lerp=function(t,n,r,i){var o=1-i;t.x=o*n.x+i*r.x,t.y=o*n.y+i*r.y},e}(),l0=Math.min,u0=Math.max,fc=new On,dc=new On,hc=new On,pc=new On,Dp=new On,Mp=new On,bn=function(){function e(t,n,r,i){r<0&&(t=t+r,r=-r),i<0&&(n=n+i,i=-i),this.x=t,this.y=n,this.width=r,this.height=i}return e.prototype.union=function(t){var n=l0(t.x,this.x),r=l0(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=u0(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=u0(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,i=t.height/n.height,o=eh();return fA(o,o,[-n.x,-n.y]),sde(o,o,[r,i]),fA(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<l||u<i||s<c||f<a);if(n){var h=1/0,v=0,m=Math.abs(o-l),_=Math.abs(u-i),y=Math.abs(s-c),b=Math.abs(f-a),S=Math.min(m,_),w=Math.min(y,b);o<l||u<i?S>v&&(v=S,m<_?On.set(Mp,-m,0):On.set(Mp,_,0)):S<h&&(h=S,m<_?On.set(Dp,m,0):On.set(Dp,-_,0)),s<c||f<a?w>v&&(v=w,y<b?On.set(Mp,0,-y):On.set(Mp,0,b)):S<h&&(h=S,y<b?On.set(Dp,0,y):On.set(Dp,0,-b))}return n&&On.copy(n,d?Dp:Mp),d},e.prototype.contain=function(t,n){var r=this;return t>=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<i.length;s++){var l=lk(i[s],t,n,r);s===0?a.copy(l):a.union(l)}return a}function lv(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function kd(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function j2(e){return Po("国",e)}function Df(e,t){return typeof e=="string"?e.lastIndexOf("%")>=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<c;u++)dH(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
`),e.isTruncated=s}function fH(e,t,n,r){r=r||{};var i=Ze({},r);i.font=t,n=nn(n,"..."),i.maxIterations=nn(r.maxIterations,2);var o=i.minChar=nn(r.minChar,0);i.cnCharWidth=Po("国",t);var a=i.ascCharWidth=Po("a",t);i.placeholder=nn(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=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;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function cde(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,i=t.font,o=n==="truncate",a=j2(i),s=nn(t.lineHeight,a),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=!1,f=t.width,d;f!=null&&(n==="break"||n==="breakAll")?d=e?hH(e,t.font,f,n==="breakAll",0).lines:[]:d=e?e.split(`
`):[];var h=d.length*s,v=nn(t.height,h);if(h>v&&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;b<d.length;b++)dH(y,d[b],_),d[b]=y.textLine,c=c||y.isTruncated;for(var S=v,w=0,b=0;b<d.length;b++)w=Math.max(Po(d[b],i),w);f==null&&(f=w);var C=w;return r&&(S+=r[0]+r[2],C+=r[1]+r[3],f+=r[1]+r[3]),l&&(C=f),{lines:d,height:v,outerWidth:C,outerHeight:S,lineHeight:s,calculatedLineHeight:a,contentWidth:w,contentHeight:h,width:f,isTruncated:c}}var fde=function(){function e(){}return e}(),uk=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),dde=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function hde(e,t){var n=new dde;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=yC.lastIndex=0,l;(l=yC.exec(e))!=null;){var u=l.index;u>s&&_C(n,e.substring(s,u),t,a),_C(n,l[2],t,a,l[1]),s=yC.lastIndex}s<e.length&&_C(n,e.substring(s,e.length),t,a);var c=[],f=0,d=0,h=t.padding,v=o==="truncate",m=t.lineOverflow==="truncate",_={};function y(me,ge,De){me.width=ge,me.lineHeight=De,f+=De,d=Math.max(d,ge)}e:for(var b=0;b<n.lines.length;b++){for(var S=n.lines[b],w=0,C=0,T=0;T<S.tokens.length;T++){var E=S.tokens[T],R=E.styleName&&t.rich[E.styleName]||{},I=E.textPadding=R.padding,O=I?I[1]+I[3]:0,P=E.font=R.font||t.font;E.contentHeight=j2(P);var M=nn(R.height,E.contentHeight);if(E.innerHeight=M,I&&(M+=I[0]+I[2]),E.height=M,E.lineHeight=H_(R.lineHeight,t.lineHeight,M),E.align=R&&R.align||t.align,E.verticalAlign=R&&R.verticalAlign||"middle",m&&i!=null&&f+E.lineHeight>i){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.length<F;break e}var $=R.width,z=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")E.percentWidth=$,c.push(E),E.contentWidth=Po(E.text,P);else{if(z){var B=R.backgroundColor,K=B&&B.image;K&&(K=ode(K),mS(K)&&(E.width=Math.max(E.width,K.width*M/K.height)))}var j=v&&r!=null?r-C:null;j!=null&&j<E.width?!z||j<O?(E.text="",E.width=E.contentWidth=0):(lde(_,E.text,j-O,P,t.ellipsis,{minChar:t.truncateMinChar}),E.text=_.text,n.isTruncated=n.isTruncated||_.isTruncated,E.width=E.contentWidth=Po(E.text,P)):E.contentWidth=Po(E.text,P)}E.width+=O,C+=E.width,R&&(w=Math.max(w,E.lineHeight))}y(S,C,w)}n.outerWidth=n.width=nn(r,d),n.outerHeight=n.height=nn(i,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var b=0;b<c.length;b++){var E=c[b],le=E.percentWidth;E.width=parseInt(le,10)/100*n.width}return n}function _C(e,t,n,r,i){var o=t==="",a=i&&n.rich[i]||{},s=e.lines,l=a.font||n.font,u=!1,c,f;if(r){var d=a.padding,h=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var v=Df(a.width,r.width)+h;s.length>0&&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;_<c.length;_++){var y=c[_],b=new fde;if(b.styleName=i,b.text=y,b.isLineHolder=!y&&!o,typeof a.width=="number"?b.width=a.width:b.width=f?f[_]:Po(y,l),!_&&!u){var S=(s[s.length-1]||(s[0]=new uk)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=b:(y||!w||o)&&S.push(b)}else s.push(new uk([b]))}}function pde(e){var t=e.charCodeAt(0);return t>=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;f<e.length;f++){var d=e.charAt(f);if(d===`
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var h=Po(d,t),v=r?!1:!gde(d);if(o.length?c+h>n: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&&e<pH}function gH(e){return e>pH||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),_<h&&(f=b,h=_);h=1/0;for(var S=0;S<32&&!(d<vH);S++)v=f-d,m=f+d,ta[0]=Kr(e,n,i,a,v),ta[1]=Kr(t,r,o,s,v),_=nh(ta,cs),v>=0&&_<h?(f=v,h=_):(rh[0]=Kr(e,n,i,a,m),rh[1]=Kr(t,r,o,s,m),y=nh(rh,cs),m<=1&&y<h?(f=m,h=y):d*=.5);return Au(h)}function Ade(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,m=Kr(e,n,i,a,v),_=Kr(t,r,o,s,v),y=m-u,b=_-c;f+=Math.sqrt(y*y+b*b),u=m,c=_}return f}function Ki(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function pk(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Ide(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(bu(o)){if(gH(a)){var u=-s/a;u>=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<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<vH);v++){var m=u-c,_=u+c;ta[0]=Ki(e,n,i,m),ta[1]=Ki(t,r,o,m);var h=nh(ta,cs);if(m>=0&&h<f)u=m,f=h;else{rh[0]=Ki(e,n,i,_),rh[1]=Ki(t,r,o,_);var y=nh(rh,cs);_<=1&&y<f?(u=_,f=y):c*=.5}}return Au(f)}function Pde(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,h=Ki(e,n,i,d),v=Ki(t,r,o,d),m=h-s,_=v-l;u+=Math.sqrt(m*m+_*_),s=h,l=v}return u}var Ode=/cubic-bezier\(([0-9,\.e ]+)\)/;function _H(e){var t=e&&Ode.exec(e);if(t){var n=t[1].split(","),r=+hs(n[0]),i=+hs(n[1]),o=+hs(n[2]),a=+hs(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=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;o<i;o++)e[o]=Qs(t[o],n[o],r);return e}function kde(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Qs(t[a][s],n[a][s],r)}return e}function p0(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function bk(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Fde(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function $de(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(n===1?i[l]:vA.call(i[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function G_(e){if(so(e)){var t=e.length;if(so(e[0])){for(var n=[],r=0;r<t;r++)n.push(vA.call(e[r]));return n}return vA.call(e)}return e}function z_(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Bde(e){return so(e&&e[0])?2:1}var v0=0,W_=1,SH=2,uv=3,gA=4,mA=5,Sk=6;function wk(e){return e===gA||e===mA}function g0(e){return e===W_||e===SH}var Lp=[0,0,0,0],Vde=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=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<o;c++){var f=r[c],d=f.value,h=a.value;f.percent=f.time/t,s||(l&&c!==o-1?$de(d,h,i):u&&Fde(d.colorStops,h.colorStops))}if(!s&&i!==mA&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var v=r[0].value,c=0;c<o;c++)i===v0?r[c].additiveValue=r[c].value-v:i===uv?r[c].additiveValue=p0([],r[c].value,v,-1):g0(i)&&(r[c].additiveValue=i===W_?p0([],r[c].value,v,-1):bk([],r[c].value,v,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,i=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===uv,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);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;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new Vde(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===uv&&u&&(u=z_(u))}else u=this._target[s];if(u==null)continue;t>0&&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;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new Dde({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var m=!1,_=0;_<v.length;_++)if(v[_]._clip){m=!0;break}m||(n._additiveAnimators=null)}for(var _=0;_<r.length;_++)r[_].step(n._target,h);var y=n._onframeCbs;if(y)for(var _=0;_<y.length;_++)y[_](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Ot(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!r[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var i=0;i<n.length;i++){var o=n[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=G_(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Zn(t);for(var r=0;r<n.length;r++){var i=n[r],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),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<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var i=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==n&&i.push(r[t][o]);r[t]=i}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=n.length,s=n[a-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),wH=1;Mt.hasGlobalWindow&&(wH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var X1=wH,yA=.4,_A="#333",bA="#ccc",Ude="#eee",gs=1,j_=2,cv=4,EC="__zr_normal__",AC=$g.concat(["ignore"]),Hde=Hh($g,function(e,t){return e[t]=!0,e},{ignore:!1}),hd={},Gde=new bn(0,0,0,0),_S=function(){function e(t){this.id=tH(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,i=r.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var u=!1;if(o.copyTransform(n),r.position!=null){var c=Gde;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(hd,r,c):cH(hd,r,c),o.x=hd.x,o.y=hd.y,a=hd.align,s=hd.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Df(f[0],c.width),h=Df(f[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+h+(i?0:c.y)}}r.rotation!=null&&(o.rotation=r.rotation);var v=r.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var m=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=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;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var i=this.animators[r],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==EC)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,AC)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var i=0;i<r.length;i++){var o=r[i];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(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;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[a-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,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<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=En(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=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<t.length;i++){var o=t[i];Ze(n,o),o.textConfig&&(r=r||{},Ze(r,o.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=Ze({},i?this.textConfig:r.textConfig),Ze(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<AC.length;c++){var f=AC[c],d=o&&Hde[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new X2,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ze(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=gs;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var i=t?this[t]:this,o=new Y2(i,n,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var r=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=En(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,r){IC(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){IC(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,i){for(var o=IC(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=gs;function n(r,i,o,a){Object.defineProperty(t,r,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(c){l[a]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();As(_S,Is);As(_S,X2);function IC(e,t,n,r,i){n=n||{};var o=[];xH(e,"",e,t,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},f=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(v,m){n.during(m)});for(var d=0;d<o.length;d++){var h=o[d];h.done(c),h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function RC(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function zde(e){return so(e[0])}function Wde(e,t,n){if(so(t[n]))if(so(e[n])||(e[n]=[]),lo(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),RC(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(zde(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?RC(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else RC(o,i,a);o.length=i.length}else e[n]=t[n]}function jde(e,t){return e===t||so(e)&&so(t)&&Xde(e,t)}function Xde(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function xH(e,t,n,r,i,o,a,s){for(var l=Zn(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Et(o),v=e.animators,m=[],_=0;_<l.length;_++){var y=l[_],b=r[y];if(b!=null&&n[y]!=null&&(h||o[y]))if(Et(b)&&!so(b)&&!pS(b)){if(t){s||(n[y]=b,e.updateDuringAnimation(t));continue}xH(e,y,n[y],b,i,o&&o[y],a,s)}else m.push(y);else s||(n[y]=b,e.updateDuringAnimation(t),m.push(y))}var S=m.length;if(!f&&S)for(var w=0;w<v.length;w++){var C=v[w];if(C.targetName===t){var T=C.stopTracks(m);if(T){var E=En(v,C);v.splice(E,1)}}}if(i.force||(m=Yr(m,function(P){return!jde(r[P],n[P])}),S=m.length),S>0||i.force&&!a.length){var R=void 0,I=void 0,O=void 0;if(s){I={},d&&(R={});for(var w=0;w<S;w++){var y=m[w];I[y]=n[y],d?R[y]=r[y]:n[y]=r[y]}}else if(d){O={};for(var w=0;w<S;w++){var y=m[w];O[y]=G_(n[y]),Wde(n,r,y)}}var C=new Y2(n,!1,!1,f?Yr(v,function(M){return M.targetName===t}):null);C.targetName=t,i.scope&&(C.scope=i.scope),d&&R&&C.whenWithKeys(0,R,m),O&&C.whenWithKeys(0,O,m),C.whenWithKeys(u??500,s?I:r,m).delay(c||0),e.addAnimator(C,t),a.push(C)}}var SA="__zr_style_"+Math.round(Math.random()*10),yf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};yf[SA]=!0;var xk=["z","z2","invisible"],Yde=["invisible"],Im=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Zn(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Kde(this,n,r)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new bn(0,0,0,0)),r?bn.applyTransform(n,i,r):n.copy(i),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new bn(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Ze(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=j_,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&j_)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(n){return vS(yf,n)},t.prototype.useStyle=function(n){n[SA]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[SA]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,xk)},t.prototype._applyStateObj=function(n,r,i,o,a,s){e.prototype._applyStateObj.call(this,n,r,i,o,a,s);var l=!(r&&o),u;if(r&&r.style?a?o?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Zn(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Zn(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?Yde:xk,d=0;d<m.length;d++){var h=m[d];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(r.style=i),r},t.prototype._mergeStyle=function(n,r){return Ze(n,r),n},t.prototype.getAnimationStyleProps=function(){return bS},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=gs|j_}(),t}(_S),PC=new bn(0,0,0,0),OC=new bn(0,0,0,0);function Kde(e,t,n){return PC.copy(e.getBoundingRect()),e.transform&&PC.applyTransform(e.transform),OC.width=t,OC.height=n,!PC.intersect(OC)}var na=Math.min,ra=Math.max,DC=Math.sin,MC=Math.cos,mc=Math.PI*2,m0=Gh(),y0=Gh(),_0=Gh();function Ck(e,t,n,r,i,o){i[0]=na(e,n),i[1]=na(t,r),o[0]=ra(e,n),o[1]=ra(t,r)}var Tk=[],Ek=[];function Zde(e,t,n,r,i,o,a,s,l,u){var c=mH,f=Kr,d=c(e,n,i,a,Tk);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,n,i,a,Tk[h]);l[0]=na(v,l[0]),u[0]=ra(v,u[0])}d=c(t,r,o,s,Ek);for(var h=0;h<d;h++){var m=f(t,r,o,s,Ek[h]);l[1]=na(m,l[1]),u[1]=ra(m,u[1])}l[0]=na(e,l[0]),u[0]=ra(e,u[0]),l[0]=na(a,l[0]),u[0]=ra(a,u[0]),l[1]=na(t,l[1]),u[1]=ra(t,u[1]),l[1]=na(s,l[1]),u[1]=ra(s,u[1])}function qde(e,t,n,r,i,o,a,s){var l=yH,u=Ki,c=ra(na(l(e,n,i),1),0),f=ra(na(l(t,r,o),1),0),d=u(e,n,i,c),h=u(t,r,o,f);a[0]=na(e,i,d),a[1]=na(t,o,h),s[0]=ra(e,i,d),s[1]=ra(t,o,h)}function Jde(e,t,n,r,i,o,a,s,l){var u=Ud,c=Hd,f=Math.abs(i-o);if(f%mc<1e-4&&f>1e-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:i<o&&a&&(i+=mc),a){var d=o;o=i,i=d}for(var h=0;h<o;h+=Math.PI/2)h>i&&(_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&&n<i&&(i=n-(nu-FC(i-n))),e[0]=n,e[1]=i}var Mf=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=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;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,i=this._len,o=0;o<n;o++)r+=t[o].len();kC&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,n,r,i,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,kC&&this._len>11&&(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;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],r=t[a+1],i=n,o=r),s){case mn.M:n=i=t[a++],r=o=t[a++],ts[0]=i,ts[1]=o,ns[0]=i,ns[1]=o;break;case mn.L:Ck(n,r,t[a],t[a+1],ts,ns),n=t[a++],r=t[a++];break;case mn.C:Zde(n,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],ts,ns),n=t[a++],r=t[a++];break;case mn.Q:qde(n,r,t[a++],t[a++],t[a],t[a+1],ts,ns),n=t[a++],r=t[a++];break;case mn.A:var u=t[a++],c=t[a++],f=t[a++],d=t[a++],h=t[a++],v=t[a++]+h;a+=1;var m=!t[a++];l&&(i=bc(h)*f+u,o=Sc(h)*d+c),Jde(u,c,f,d,h,v,m,ts,ns),n=bc(v)*f+u,r=Sc(v)*d+c;break;case mn.R:i=n=t[a++],o=r=t[a++];var _=t[a++],y=t[a++];Ck(i,o,i+_,o+y,ts,ns);break;case mn.Z:n=i,r=o;break}Ud(es,es,ts),Hd(Wl,Wl,ns)}return a===0&&(es[0]=es[1]=Wl[0]=Wl[1]=0),new bn(es[0],es[1],Wl[0]-es[0],Wl[1]-es[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=t[d++],v=d===1;v&&(o=t[d],a=t[d+1],s=o,l=a);var m=-1;switch(h){case mn.M:o=s=t[d++],a=l=t[d++];break;case mn.L:{var _=t[d++],y=t[d++],b=_-o,S=y-a;(js(b)>r||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;T<a;){var E=r[T++],R=T===1;switch(R&&(u=r[T],c=r[T+1],s=u,l=c),E!==mn.L&&S>0&&(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||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function ehe(e,t,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>i+f&&u>a+f||u<e-f&&u<n-f&&u<i-f&&u<a-f)return!1;var d=Ede(e,t,n,r,i,o,a,s,u,c);return d<=f/2}function the(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)return!1;var c=Rde(e,t,n,r,i,o,s,l);return c<=u/2}var Ak=Math.PI*2;function b0(e){return e%=Ak,e<0&&(e+=Ak),e}var kp=Math.PI*2;function nhe(e,t,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%kp<1e-4)return!0;if(o){var f=r;r=b0(i),i=b0(f)}else r=b0(r),i=b0(i);r>i&&(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||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var jl=Mf.CMD,xc=Math.PI*2,rhe=1e-4;function ihe(e,t){return Math.abs(e-t)<rhe}var Ei=[-1,-1,-1],Qo=[-1,-1];function ohe(){var e=Qo[0];Qo[0]=Qo[1],Qo[1]=e}function ahe(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c=G1(t,r,o,s,u,Ei);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var _=Ei[m],y=_===0||_===1?.5:1,b=Kr(e,n,i,a,_);b<l||(d<0&&(d=mH(t,r,o,s,Qo),Qo[1]<Qo[0]&&d>1&&ohe(),h=Kr(t,r,o,s,Qo[0]),d>1&&(v=Kr(t,r,o,s,Qo[1]))),d===2?_<Qo[0]?f+=h<t?y:-y:_<Qo[1]?f+=v<h?y:-y:f+=s<v?y:-y:_<Qo[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function she(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=Ide(t,r,o,s,Ei);if(l===0)return 0;var u=yH(t,r,o);if(u>=0&&u<=1){for(var c=0,f=Ki(t,r,o,u),d=0;d<l;d++){var h=Ei[d]===0||Ei[d]===1?.5:1,v=Ki(e,n,i,Ei[d]);v<a||(Ei[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}else{var h=Ei[0]===0||Ei[0]===1?.5:1,v=Ki(e,n,i,Ei[0]);return v<a?0:o<t?h:-h}}function lhe(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);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&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function CH(e,t,n,r,i){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<a;){var m=o[v++],_=v===1;switch(m===jl.M&&v>1&&(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<r.length;o++){var a=r[o],s=n[a];a==="style"?this.style?Ze(this.style,s):this.useStyle(s):a==="shape"?Ze(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(ht(n)){var r=j1(n,0);return r>.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)<yA;if(o===a)return r}},t.prototype.buildPath=function(n,r,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new Mf(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&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;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),i,o=0;o<n.length;o++){var a=n[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(r.shape=i),r},t.prototype.getAnimationStyleProps=function(){return fhe},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(o){lt(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return sn(n.style)},a.prototype.getDefaultShape=function(){return sn(n.shape)},a}(t);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=gs|j_|cv}(),t}(Im),dhe=Cn({strokeFirst:!0,font:Pf,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},TH),Y1=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.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;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Che(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new bn(0,0,0,0),r=this._children,i=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||Ik},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return Ze(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,r){for(var i=Zn(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},Ze(n[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return _he},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Pf,i=n.padding,o=kk(n),a=cde(o,n),s=BC(n),l=!!n.backgroundColor,u=a.outerHeight,c=a.outerWidth,f=a.contentWidth,d=a.lines,h=a.lineHeight,v=this._defaultStyle;this.isTruncated=!!a.isTruncated;var m=n.x||0,_=n.y||0,y=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",S=m,w=kd(_,a.contentHeight,b);if(s||i){var C=lv(m,c,y),T=kd(_,u,b);s&&this._renderBackground(n,n,C,T,c,u)}w+=h/2,i&&(S=Nk(m,y,i),b==="top"?w+=i[0]:b==="bottom"&&(w-=i[2]));for(var E=0,R=!1,I=Lk("fill"in n?n.fill:(R=!0,v.fill)),O=Mk("stroke"in n?n.stroke:!l&&(!v.autoStroke||R)?(E=Rk,v.stroke):null),P=n.textShadowBlur>0,M=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),F=a.calculatedLineHeight,$=0;$<d.length;$++){var z=this._getOrCreateChild(Y1),B=z.createStyle();z.useStyle(B),B.text=d[$],B.x=S,B.y=w,B.textAlign=y,B.textBaseline="middle",B.opacity=n.opacity,B.strokeFirst=!0,P&&(B.shadowBlur=n.textShadowBlur||0,B.shadowColor=n.textShadowColor||"transparent",B.shadowOffsetX=n.textShadowOffsetX||0,B.shadowOffsetY=n.textShadowOffsetY||0),B.stroke=O,B.fill=I,O&&(B.lineWidth=n.lineWidth||E,B.lineDash=n.lineDash,B.lineDashOffset=n.lineDashOffset||0),B.font=r,Ok(B,n),w+=h,M&&z.setBoundingRect(new bn(lv(B.x,f,B.textAlign),kd(B.y,F,B.textBaseline),f,F))}},t.prototype._updateRichTexts=function(){var n=this.style,r=kk(n),i=hde(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign;this.isTruncated=!!i.isTruncated;var v=lv(u,a,d),m=kd(c,s,h),_=v,y=m;l&&(_+=l[3],y+=l[0]);var b=_+o;BC(n)&&this._renderBackground(n,n,v,m,a,s);for(var S=!!n.backgroundColor,w=0;w<i.lines.length;w++){for(var C=i.lines[w],T=C.tokens,E=T.length,R=C.lineHeight,I=C.width,O=0,P=_,M=b,F=E-1,$=void 0;O<E&&($=T[O],!$.align||$.align==="left");)this._placeToken($,n,R,y,P,"left",S),I-=$.width,P+=$.width,O++;for(;F>=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;n<Pk.length;n++){var r=Pk[n],i=t[r];i!=null&&(e[r]=i)}}function xhe(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Che(e){return Dk(e),Q(e.rich,Dk),e}function Dk(e){if(e){e.font=uo.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||bhe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||She[n]?n:"top";var r=e.padding;r&&(e.padding=nH(e.padding))}}function Mk(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Lk(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Nk(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function kk(e){var t=e.text;return t!=null&&(t+=""),t}function BC(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var The=1e-4,IH=20;function Ehe(e){return e.replace(/^\s+|\s+$/g,"")}function Fk(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}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<The}var Phe=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Tl(e){if(e instanceof Date)return e;if(ht(e)){var t=Phe.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Ohe(e){return Math.pow(10,K2(e))}function K2(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function 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<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Uk=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Rm(e){return Et(e)&&!ct(e)&&!(e instanceof Date)?e.value:e}function Lhe(e){return Et(e)&&!(e instanceof Array)}function Nhe(e,t,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=Kt();Q(t,function(l,u){if(!Et(l)){t[u]=null;return}});var s=khe(e,a,n);return(r||i)&&Fhe(s,e,a,t),r&&$he(s,t),r||i?Bhe(s,t,i):o&&Vhe(s,t),Uhe(s),s}function khe(e,t,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),r.push({existing:n==="replaceMerge"||Bg(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Fhe(e,t,n,r){Q(r,function(i,o){if(!(!i||i.id==null)){var a=jv(i.id),s=n.get(a);if(s!=null){var l=e[s];Cl(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}})}function $he(e,t){Q(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||n.id==null)&&!Bg(n)&&!Bg(o)&&LH("name",o,n)){e[i].newOption=n,t[r]=null;return}}})}function Bhe(e,t,n){Q(t,function(r){if(r){for(var i,o=0;(i=e[o])&&(i.newOption||Bg(i.existing)||i.existing&&r.id!=null&&!LH("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function Vhe(e,t){Q(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function Uhe(e){var t=Kt();Q(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),Q(e,function(n){var r=n.newOption;Cl(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),Q(e,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(Et(o)){if(a.name=o.name!=null?jv(o.name):i?i.name:MH+r,i)a.id=jv(i.id);else if(o.id!=null)a.id=jv(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function LH(e,t,n){var r=ms(t[e],null),i=ms(n[e],null);return r!=null&&i!=null&&r===i}function jv(e){return ms(e,"")}function ms(e,t){return e==null?t:ht(e)?e:qn(e)||lA(e)?e+"":t}function Z2(e){var t=e.name;return!!(t&&t.indexOf(MH))}function Bg(e){return e&&e.id!=null&&jv(e.id).indexOf(Mhe)===0}function Hhe(e,t,n){Q(e,function(r){var i=r.newOption;Et(i)&&(r.keyInfo.mainType=t,r.keyInfo.subType=Ghe(t,i,r.existing,n))})}function Ghe(e,t,n,r){var i=t.type?t.type:n?n.subType:r.determineSubType(e,t);return i}function Lf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ct(t.dataIndex)?Ot(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ct(t.name)?Ot(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function Dr(){var e="__ec_inner_"+zhe++;return function(t){return t[e]||(t[e]={})}}var zhe=OH();function VC(e,t,n){var r=q2(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(u,c){var f=Pm(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function q2(e,t){var n;if(ht(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Kt(),o={},a=!1;return Q(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&En(t.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var ka={useDefault:!0,enableAll:!1,enableNone:!1};function Pm(e,t,n,r){r=r||ka;var i=n.index,o=n.id,a=n.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(Cl(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Cl(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function NH(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Whe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function jhe(e){return e==="auto"?Mt.domSupported?"html":"richText":e||"html"}function Xhe(e,t,n,r,i){var o=t==null||t==="auto";if(r==null)return r;if(qn(r)){var a=Bk(n||0,r,i);return wr(a,o?Math.max(ll(n||0),ll(r)):t)}else{if(ht(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],a=Bk(h,v,i);s[f]=wr(a,o?Math.max(ll(h),ll(v)):t)}}return s}}var Dn=Dr(),Yhe=function(e,t,n,r){if(r){var i=Dn(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Dn(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},Hk=1,Gk={},kH=Dr(),J2=Dr(),Q2=0,SS=1,wS=2,Cs=["emphasis","blur","select"],zk=["normal","emphasis","blur","select"],Khe=10,Zhe=9,_f="highlight",X_="downplay",Xv="select",Y_="unselect",Yv="toggleSelect";function vd(e){return e!=null&&e!=="none"}function xS(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function FH(e){xS(e,"emphasis",wS)}function $H(e){e.hoverState===wS&&xS(e,"normal",Q2)}function eR(e){xS(e,"blur",SS)}function BH(e){e.hoverState===SS&&xS(e,"normal",Q2)}function qhe(e){e.selected=!0}function Jhe(e){e.selected=!1}function Wk(e,t,n){t(e,n)}function Al(e,t,n){Wk(e,t,n),e.isGroup&&e.traverse(function(r){Wk(r,t,n)})}function jk(e,t){switch(t){case"emphasis":e.hoverState=wS;break;case"normal":e.hoverState=Q2;break;case"blur":e.hoverState=SS;break;case"select":e.selected=!0}}function Qhe(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??r[s]}for(var a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function epe(e,t,n,r){var i=n&&En(n,"select")>=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;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&VH(d)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(_){_.__highByOuter&&c&&t==="self"||eR(_)}),so(t))o(u.getData(),t);else if(Et(t))for(var v=Zn(t),m=0;m<v.length;m++)o(u.getData(v[m]),t[v[m]]);l.push(u),J2(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function CA(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){J2(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){eR(o)})}}}function ope(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Lf(i,t);o=(ct(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Dn(a);xA(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&xA(r,c,f,n)}}}function tR(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Dn(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function ape(e,t,n){var r=Dn(e),i=tR(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&CA(r.componentMainType,r.componentIndex,n),Q(o,function(s){return Xk(s,t)})):(xA(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&CA(r.componentMainType,r.componentIndex,n),Xk(e,t))}function spe(e,t,n){zH(n);var r=Dn(e),i=tR(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Q(i,function(o){return Yk(o,t)}):Yk(e,t)}function lpe(e,t,n){if(IA(t)){var r=t.dataType,i=e.getData(r),o=Lf(i,t);ct(o)||(o=[o]),e[t.type===Yv?"toggleSelect":t.type===Xv?"select":"unselect"](o,r)}}function Kk(e){var t=e.getAllData();Q(t,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?UH(o):HH(o)})})}function upe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();Q(r,function(i){i.data;var o=i.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function 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;i<Zk.length;i++){var o=Zk[i],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[dpe[n]]()}}function WH(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function AA(e){return!!(e&&e.__highDownDispatcher)}function hpe(e){var t=Gk[e];return t==null&&Hk<=32&&(t=Gk[e]=Hk++),t}function IA(e){var t=e.type;return t===Xv||t===Y_||t===Yv}function Jk(e){var t=e.type;return t===_f||t===X_}function ppe(e){var t=kH(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var gd=Mf.CMD,vpe=[[],[],[]],Qk=Math.sqrt,gpe=Math.atan2;function mpe(e,t){if(t){var n=e.data,r=e.len(),i,o,a,s,l,u,c=gd.M,f=gd.C,d=gd.L,h=gd.R,v=gd.A,m=gd.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case v:var _=t[4],y=t[5],b=Qk(t[0]*t[0]+t[1]*t[1]),S=Qk(t[2]*t[2]+t[3]*t[3]),w=gpe(-t[1]/S,t[0]/b);n[a]*=b,n[a++]+=_,n[a]*=S,n[a++]+=y,n[a++]*=b,n[a++]*=S,n[a++]+=w,n[a++]+=w,a+=2,s=a;break;case h:u[0]=n[a++],u[1]=n[a++],la(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],la(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var C=vpe[l];C[0]=n[a++],C[1]=n[a++],la(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var HC=Math.sqrt,S0=Math.sin,w0=Math.cos,Fp=Math.PI;function eF(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function RA(e,t){return(e[0]*t[0]+e[1]*t[1])/(eF(e)*eF(t))}function tF(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(RA(e,t))}function nF(e,t,n,r,i,o,a,s,l,u,c){var f=l*(Fp/180),d=w0(f)*(e-n)/2+S0(f)*(t-r)/2,h=-1*S0(f)*(e-n)/2+w0(f)*(t-r)/2,v=d*d/(a*a)+h*h/(s*s);v>1&&(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<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(_pe)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var _=0;_<v;){var y=void 0,b=void 0,S=void 0,w=void 0,C=void 0,T=void 0,E=void 0,R=n,I=r,O=void 0,P=void 0;switch(f){case"l":n+=h[_++],r+=h[_++],d=s.L,t.addData(d,n,r);break;case"L":n=h[_++],r=h[_++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[_++],r+=h[_++],d=s.M,t.addData(d,n,r),i=n,o=r,f="l";break;case"M":n=h[_++],r=h[_++],d=s.M,t.addData(d,n,r),i=n,o=r,f="L";break;case"h":n+=h[_++],d=s.L,t.addData(d,n,r);break;case"H":n=h[_++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[_++],d=s.L,t.addData(d,n,r);break;case"V":r=h[_++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[_++],h[_++],h[_++],h[_++],h[_++],h[_++]),n=h[_-2],r=h[_-1];break;case"c":d=s.C,t.addData(d,h[_++]+n,h[_++]+r,h[_++]+n,h[_++]+r,h[_++]+n,h[_++]+r),n+=h[_-2],r+=h[_-1];break;case"S":y=n,b=r,O=t.len(),P=t.data,a===s.C&&(y+=n-P[O-4],b+=r-P[O-3]),d=s.C,R=h[_++],I=h[_++],n=h[_++],r=h[_++],t.addData(d,y,b,R,I,n,r);break;case"s":y=n,b=r,O=t.len(),P=t.data,a===s.C&&(y+=n-P[O-4],b+=r-P[O-3]),d=s.C,R=n+h[_++],I=r+h[_++],n+=h[_++],r+=h[_++],t.addData(d,y,b,R,I,n,r);break;case"Q":R=h[_++],I=h[_++],n=h[_++],r=h[_++],d=s.Q,t.addData(d,R,I,n,r);break;case"q":R=h[_++]+n,I=h[_++]+r,n+=h[_++],r+=h[_++],d=s.Q,t.addData(d,R,I,n,r);break;case"T":y=n,b=r,O=t.len(),P=t.data,a===s.Q&&(y+=n-P[O-4],b+=r-P[O-3]),n=h[_++],r=h[_++],d=s.Q,t.addData(d,y,b,n,r);break;case"t":y=n,b=r,O=t.len(),P=t.data,a===s.Q&&(y+=n-P[O-4],b+=r-P[O-3]),n+=h[_++],r+=h[_++],d=s.Q,t.addData(d,y,b,n,r);break;case"A":S=h[_++],w=h[_++],C=h[_++],T=h[_++],E=h[_++],R=n,I=r,n=h[_++],r=h[_++],d=s.A,nF(R,I,n,r,T,E,S,w,C,d,t);break;case"a":S=h[_++],w=h[_++],C=h[_++],T=h[_++],E=h[_++],R=n,I=r,n+=h[_++],r+=h[_++],d=s.A,nF(R,I,n,r,T,E,S,w,C,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=i,r=o),a=d}return t.toStatic(),t}var jH=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(Mn);function XH(e){return e.setData!=null}function YH(e,t){var n=bpe(e),r=Ze({},t);return r.buildPath=function(i){if(XH(i)){i.setData(n.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;n.rebuildPath(o,1)}},r.applyTransform=function(i){mpe(n,i),this.dirtyShape()},r}function Spe(e,t){return new jH(YH(e,t))}function wpe(e,t){var n=YH(e,t),r=function(i){lt(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o}(jH);return r}function xpe(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new Mn(t);return a.createPathProxy(),a.buildPath=function(s){if(XH(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var mi=function(e){lt(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var i=this._children,o=i.indexOf(r);o>=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=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<n.length;i++){var o=n[i];r&&o.removeSelfFromZr(r),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];n.call(r,a,o)}return this},t.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=n.call(r,o);o.isGroup&&!a&&o.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new bn(0,0,0,0),i=n||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(bn.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},t}(_S);mi.prototype.type="group";var Cpe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),CS=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Cpe},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(Mn);CS.prototype.type="circle";var Tpe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),nR=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Tpe},t.prototype.buildPath=function(n,r){var i=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},t}(Mn);nR.prototype.type="ellipse";var KH=Math.PI,GC=KH*2,Cc=Math.sin,md=Math.cos,Epe=Math.acos,ti=Math.atan2,rF=Math.abs,Kv=Math.sqrt,fv=Math.max,rs=Math.min,Ea=1e-4;function Ape(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<Ea))return d=(c*(t-o)-f*(e-i))/d,[e+d*l,t+d*u]}function x0(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Kv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=n+c,m=r+f,_=(d+v)/2,y=(h+m)/2,b=v-d,S=m-h,w=b*b+S*S,C=i-o,T=d*m-v*h,E=(S<0?-1:1)*Kv(fv(0,C*C*w-T*T)),R=(T*S-b*E)/w,I=(-T*b-S*E)/w,O=(T*S+b*E)/w,P=(-T*b+S*E)/w,M=R-_,F=I-y,$=O-_,z=P-y;return M*M+F*F>$*$+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),h<KH)){var De=Ape(z,B,F,$,P,M,K,j);if(De){var Fe=z-De[0],ze=B-De[1],Me=P-De[0],je=M-De[1],fe=1/Cc(Epe((Fe*Me+ze*je)/(Kv(Fe*Fe+ze*ze)*Kv(Me*Me+je*je)))/2),Ee=Kv(De[0]*De[0]+De[1]*De[1]);I=rs(E,(r-Ee)/(fe+1)),O=rs(R,(i-Ee)/(fe-1))}}}if(!le)e.moveTo(c+z,f+B);else if(I>Ea){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),I<E&&Se===Ce?e.arc(c+Oe.cx,f+Oe.cy,I,ti(Oe.y0,Oe.x0),ti(Be.y0,Be.x0),!d):(Se>0&&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),O<R&&Se===Ce?e.arc(c+Oe.cx,f+Oe.cy,O,ti(Oe.y0,Oe.x0),ti(Be.y0,Be.x0),!d):(Ce>0&&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<h;d++)Ud(c,c,e[d]),Hd(f,f,e[d]);Ud(c,c,r[0]),Hd(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(n)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(mde(e[d]));continue}else l=e[d-1],u=e[d+1];yde(o,u,l),bC(o,o,t);var m=dA(v,l),_=dA(v,u),y=m+_;y!==0&&(m/=y,_/=y),bC(a,o,-m),bC(s,o,_);var b=ck([],v,a),S=ck([],v,s);r&&(Hd(b,b,c),Ud(b,b,f),Hd(S,S,c),Ud(S,S,f)),i.push(b),i.push(S)}return n&&i.push(i.shift()),i}function ZH(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=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;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Mpe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),iR=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Mpe},t.prototype.buildPath=function(n,r){ZH(n,r,!0)},t}(Mn);iR.prototype.type="polygon";var Lpe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),oR=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lpe},t.prototype.buildPath=function(n,r){ZH(n,r,!1)},t}(Mn);oR.prototype.type="polyline";var Npe={},kpe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Fu=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kpe},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=EH(Npe,r,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=r.x1,o=r.y1,a=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,o),u<1&&(a=i*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(Mn);Fu.prototype.type="line";var Vi=[],Fpe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function iF(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?hk:Kr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?hk:Kr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?pk:Ki)(e.x1,e.cpx1,e.x2,t),(n?pk:Ki)(e.y1,e.cpy1,e.y2,t)]}var aR=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fpe},t.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(i,o),c==null||f==null?(d<1&&(W1(i,l,a,d,Vi),l=Vi[1],a=Vi[2],W1(o,u,s,d,Vi),u=Vi[1],s=Vi[2]),n.quadraticCurveTo(l,u,a,s)):(d<1&&(z1(i,l,c,a,d,Vi),l=Vi[1],c=Vi[2],a=Vi[3],z1(o,u,f,s,d,Vi),u=Vi[1],f=Vi[2],s=Vi[3]),n.bezierCurveTo(l,u,c,f,a,s)))},t.prototype.pointAt=function(n){return iF(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=iF(this.shape,n,!0);return Sde(r,r)},t}(Mn);aR.prototype.type="bezier-curve";var $pe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),ES=function(e){lt(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $pe},t.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*a+i,f*a+o),n.arc(i,o,a,s,l,!u)},t}(Mn);ES.prototype.type="arc";var Bpe=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),i=0;i<n.length;i++)r=r||n[i].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),i=0;i<n.length;i++)n[i].path||n[i].createPathProxy(),n[i].path.setScale(r[0],r[1],n[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Mn.prototype.getBoundingRect.call(this)},t}(Mn),qH=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}(),sR=function(e){lt(t,e);function t(n,r,i,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(qH),Vpe=function(e){lt(t,e);function t(n,r,i,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t}(qH),Tc=[0,0],Ec=[0,0],C0=new On,T0=new On,Q1=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new On;for(var r=0;r<2;r++)this._axes[r]=new On;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),n)for(var u=0;u<4;u++)r[u].transform(n);On.sub(i[0],r[1],r[0]),On.sub(i[1],r[3],r[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,i=!n;return C0.set(1/0,1/0),T0.set(0,0),!this._intersectCheckOneSide(this,t,C0,T0,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,C0,T0,i,-1)&&(r=!1,i)||i||On.copy(n,r?C0:T0),r},e.prototype._intersectCheckOneSide=function(t,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Tc),this._getProjMinMaxOnAxis(l,n._corners,Ec),Tc[1]<Ec[0]||Tc[0]>Ec[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()&&(c<f?On.scale(i,u,-c*a):On.scale(i,u,f*a))}else if(r){var c=Math.abs(Ec[0]-Tc[1]),f=Math.abs(Tc[0]-Ec[1]);Math.min(c,f)<r.len()&&(c<f?On.scale(r,u,c*a):On.scale(r,u,-f*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var i=this._axes[t],o=this._origin,a=n[0].dot(i)+o[t],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},e}(),Upe=[],Hpe=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new bn(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(Upe)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,r))return!0}return!1},t}(Im),Gpe=Dr();function zpe(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=nn(r.duration,200),c=nn(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),Ut(f)&&(f=f(n,i)),Ut(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function lR(e,t,n,r,i,o,a){var s=!1,l;Ut(i)?(a=o,o=i,i=null):Et(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=zpe(e,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:o,force:!!o||!!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;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function eb(e,t,n,r,i,o){Zv(e)||lR("leave",e,t,n,r,i,o)}function oF(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),eb(e,{style:{opacity:0}},t,n,r)}function Wpe(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||oF(i,t,n,r)}):oF(e,t,n,r)}function jpe(e){Gpe(e).oldStyle=e.style}var tb=Math.max,nb=Math.min,PA={};function Xpe(e){return Mn.extend(e)}var Ype=wpe;function Kpe(e,t){return Ype(e,t)}function ja(e,t){PA[e]=t}function Zpe(e){if(PA.hasOwnProperty(e))return PA[e]}function uR(e,t,n,r){var i=Spe(e,t);return n&&(r==="center"&&(n=QH(n,i.getBoundingRect())),e6(i,n)),i}function JH(e,t,n){var r=new qu({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(QH(t,o))}}});return r}function QH(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var qpe=xpe;function e6(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function Vg(e,t){return EH(e,e,{lineWidth:t}),e}function Jpe(e){return AH(e.shape,e.shape,e.style),e}var Qpe=Jc;function eve(e,t){for(var n=H2([]);e&&e!==t;)th(n,e.getLocalTransform(),n),e=e.parent;return n}function cR(e,t,n){return t&&!so(t)&&(t=X2.getLocalTransform(t)),n&&(t=z2([],t)),la([],e,t)}function tve(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-r:e==="right"?r:0,e==="top"?-i:e==="bottom"?i:0];return o=cR(o,t,n),Math.abs(o[0])>Math.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];o<i.length;o++){var s=i[o];if(n6(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function n6(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=zC(c,f,l,u);if(ave(d))return!1;var h=e-i,v=t-o,m=zC(h,v,l,u)/d;if(m<0||m>1)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;n<e.length;n++)sF(e[n],t);else sF(e,t)}ja("circle",CS);ja("ellipse",nR);ja("sector",TS);ja("ring",rR);ja("polygon",iR);ja("polyline",oR);ja("rect",Zr);ja("line",Fu);ja("bezierCurve",aR);ja("arc",ES);const sve=Object.freeze(Object.defineProperty({__proto__:null,Arc:ES,BezierCurve:aR,BoundingRect:bn,Circle:CS,CompoundPath:Bpe,Ellipse:nR,Group:mi,Image:qu,IncrementalDisplayable:Hpe,Line:Fu,LinearGradient:sR,OrientedBoundingRect:Q1,Path:Mn,Point:On,Polygon:iR,Polyline:oR,RadialGradient:Vpe,Rect:Zr,Ring:rR,Sector:TS,Text:uo,applyTransform:cR,clipPointsByRect:rve,clipRectByRect:ive,createIcon:fR,extendPath:Kpe,extendShape:Xpe,getShapeClass:Zpe,getTransform:eve,groupTransition:t6,initProps:Om,isElementRemoved:Zv,lineLineIntersect:n6,linePolygonIntersect:ove,makeImage:JH,makePath:uR,mergePath:qpe,registerShape:ja,removeElement:eb,removeElementWithFadeOut:Wpe,resizePath:e6,setTooltipConfig:AS,subPixelOptimize:Qpe,subPixelOptimizeLine:Vg,subPixelOptimizeRect:Jpe,transformDirection:tve,traverseElements:dR,updateProps:$u},Symbol.toStringTag,{value:"Module"}));var IS={};function lve(e,t){for(var n=0;n<Cs.length;n++){var r=Cs[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function lF(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=Ut(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var l={normal:s},u=0;u<Cs.length;u++){var c=Cs[u],f=t[c];l[c]=nn(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function hR(e,t,n,r){n=n||IS;for(var i=e instanceof uo,o=!1,a=0;a<zk.length;a++){var s=t[zk[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new uo,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=lF(n,t),c=t.normal,f=!!c.getShallow("show"),d=Th(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||e.setTextConfig(uF(c,n,!1));for(var a=0;a<Cs.length;a++){var h=Cs[a],s=t[h];if(s){var v=l.ensureState(h),m=!!nn(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Th(s,r&&r[h],n,!0,!i),v.style.text=u[h],!i){var _=e.ensureState(h);_.textConfig=uF(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(r6(l).setLabelText=function(y){var b=lF(n,t,y);lve(l,b)})}else l&&(l.ignore=!0);e.dirty()}function pR(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Cs.length;r++){var i=Cs[r];n[i]=e.getModel([i,t])}return n}function Th(e,t,n,r,i){var o={};return uve(o,e,n,r,i),t&&Ze(o,t),o}function uF(e,t,n){t=t||{};var r={},i,o=e.getShallow("rotate"),a=nn(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function uve(e,t,n,r,i){n=n||IS;var o=t.ecModel,a=o&&o.option.textStyle,s=cve(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);hF(l[u]={},c,a,n,r,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),hF(e,t,a,n,r,i,!0,!1)}function cve(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||IS).rich;if(n){t=t||{};for(var r=Zn(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}var cF=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fF=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],dF=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function hF(e,t,n,r,i,o,a,s){n=!i&&n||IS;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=nn(t.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),o||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=nn(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=nn(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=nn(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(e.opacity=f),!i&&!o&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var m=0;m<cF.length;m++){var _=cF[m],y=nn(t.getShallow(_),n[_]);y!=null&&(e[_]=y)}for(var m=0;m<fF.length;m++){var _=fF[m],y=t.getShallow(_);y!=null&&(e[_]=y)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!a||!r.disableBox){for(var m=0;m<dF.length;m++){var _=dF[m],y=t.getShallow(_);y!=null&&(e[_]=y)}var S=t.getShallow("borderType");S!=null&&(e.borderDash=S),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function fve(e,t){var n=t&&t.getModel("textStyle");return hs([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var r6=Dr(),dve=["textStyle","color"],WC=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],jC=new uo,hve=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(dve):null)},e.prototype.getFont=function(){return fve({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<WC.length;r++)n[WC[r]]=this.getShallow(WC[r]);return jC.useStyle(n),jC.update(),jC.getBoundingRect()},e}(),i6=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],pve=Fg(i6),vve=function(){function e(){}return e.prototype.getLineStyle=function(t){return pve(this,t)},e}(),o6=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gve=Fg(o6),mve=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return gve(this,t,n)},e}(),fr=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){_n(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,i=r==null?r:r[t];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(sn(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Mt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var i=0;i<t.length&&!(t[i]&&(r=r&&typeof r=="object"?r[t[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();U2(fr);Jfe(fr);As(fr,vve);As(fr,mve);As(fr,rde);As(fr,hve);function $p(e){return e==null?0:e.length||1}function pF(e){return e}var yve=function(){function e(t,n,r,i,o,a){this._old=t,this._new=n,this._oldKeyGetter=r||pF,this._newKeyGetter=i||pF,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},i=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=r[s],u=$p(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=r[l],c=i[l],f=$p(u),d=$p(c);if(f>1&&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;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var i=t[r],o=n[i],a=$p(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[i]=null}},e.prototype._initIndexMap=function(t,n,r,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=$p(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e}(),a6=Kt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),va="original",co="arrayRows",Rs="objectRows",Il="keyedColumns",Ru="typedArray",s6="unknown",vl="column",zh="row",So={Must:1,Might:2,Not:3},l6=Dr();function _ve(e){l6(e).datasetMap=Kt()}function bve(e,t,n){var r={},i=u6(t);if(!i||!e)return r;var o=[],a=[],s=t.ecModel,l=l6(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),Q(e,function(m,_){var y=Et(m)?m:e[_]={name:m};y.type==="ordinal"&&c==null&&(c=_,f=v(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});Q(e,function(m,_){var y=m.name,b=v(m);if(c==null){var S=d.valueWayDim;h(r[y],S,b),h(a,S,b),d.valueWayDim+=b}else if(c===_)h(r[y],0,b),h(o,0,b);else{var S=d.categoryWayDim;h(r[y],S,b),h(a,S,b),d.categoryWayDim+=b}});function h(m,_,y){for(var b=0;b<y;b++)m.push(_+b)}function v(m){var _=m.dimsDef;return _?_.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function u6(e){var t=e.get("data",!0);if(!t)return Pm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ka).models[0]}function Sve(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Pm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ka).models}function c6(e,t){return wve(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function wve(e,t,n,r,i,o){var a,s=5;if(lo(e))return So.Not;var l,u;if(r){var c=r[o];Et(c)?(l=c.name,u=c.type):ht(c)&&(l=c)}if(u!=null)return u==="ordinal"?So.Must:So.Not;if(t===co){var f=e;if(n===zh){for(var d=f[o],h=0;h<(d||[]).length&&h<s;h++)if((a=w(d[i+h]))!=null)return a}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(a=w(v[o]))!=null)return a}}else if(t===Rs){var m=e;if(!l)return So.Not;for(var h=0;h<m.length&&h<s;h++){var _=m[h];if(_&&(a=w(_[l]))!=null)return a}}else if(t===Il){var y=e;if(!l)return So.Not;var d=y[l];if(!d||lo(d))return So.Not;for(var h=0;h<d.length&&h<s;h++)if((a=w(d[h]))!=null)return a}else if(t===va)for(var b=e,h=0;h<b.length&&h<s;h++){var _=b[h],S=Rm(_);if(!ct(S))return So.Not;if((a=w(S[o]))!=null)return a}function w(C){var T=ht(C);if(C!=null&&Number.isFinite(Number(C))&&C!=="")return T?So.Might:So.Not;if(T&&C!=="-")return So.Must}return So.Not}var RS=function(){function e(t){this.data=t.data||(t.sourceFormat===Il?{}:[]),this.sourceFormat=t.sourceFormat||s6,this.seriesLayoutBy=t.seriesLayoutBy||vl,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&c6(this,r)===So.Must&&(i.type="ordinal")}}return e}();function vR(e){return e instanceof RS}function OA(e,t,n){n=n||d6(e);var r=t.seriesLayoutBy,i=Cve(e,n,r,t.sourceHeader,t.dimensions),o=new RS({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:sn(t)});return o}function f6(e){return new RS({data:e,sourceFormat:lo(e)?Ru:va})}function xve(e){return new RS({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:sn(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function d6(e){var t=s6;if(lo(e))t=Ru;else if(ct(e)){e.length===0&&(t=co);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(ct(i)||lo(i)){t=co;break}else if(Et(i)){t=Rs;break}}}}else if(Et(e)){for(var o in e)if(Of(e,o)&&so(e[o])){t=Il;break}}return t}function Cve(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:vF(i),startIndex:a,dimensionsDetectedCount:o};if(t===co){var s=e;r==="auto"||r==null?gF(function(u){u!=null&&u!=="-"&&(ht(u)?a==null&&(a=1):a=0)},n,s,10):a=qn(r)?r:r?1:0,!i&&a===1&&(i=[],gF(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===zh?s.length:s[0]?s[0].length:null}else if(t===Rs)i||(i=Tve(e));else if(t===Il)i||(i=[],Q(e,function(u,c){i.push(c)}));else if(t===va){var l=Rm(e[0]);o=ct(l)&&l.length||1}return{startIndex:a,dimensionsDefine:vF(i),dimensionsDetectedCount:o}}function Tve(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Zn(n)}function vF(e){if(e){var t=Kt();return Ot(e,function(n,r){n=Et(n)?n:{name:n};var i={name:n.name,displayName:n.displayName,type:n.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function gF(e,t,n,r){if(t===zh)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)e(o[i],i)}function h6(e){var t=e.sourceFormat;return t===Rs||t===Il}var Ac,Ic,Rc,mF,yF,p6=function(){function e(t,n){var r=vR(t)?t:f6(t);this._source=r;var i=this._data=r.data;r.sourceFormat===Ru&&(this._offset=0,this._dimSize=n,this._data=i),yF(this,i,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;yF=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=mF[gR(u,c)];if(Ze(a,h),u===Ru)a.getItem=n,a.count=i,a.fillStorage=r;else{var v=v6(u,c);a.getItem=Kn(v,null,s,f,d);var m=g6(u,c);a.count=Kn(m,null,s,f,d)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],_=s-a,y=l[d],b=0;b<_;b++){var S=c[b*f+d];y[a+b]=S,S<v&&(v=S),S>m&&(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;s<a.length;s++)this._data.push(a[s])}}(),e}(),_F=function(e,t,n,r){return e[r]},Eve=(Ac={},Ac[co+"_"+vl]=function(e,t,n,r){return e[r+t]},Ac[co+"_"+zh]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Ac[Rs]=_F,Ac[Il]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name,l=e[s];o[a]=l?l[r]:null}return o},Ac[va]=_F,Ac);function v6(e,t){var n=Eve[gR(e,t)];return n}var bF=function(e,t,n){return e.length},Ave=(Ic={},Ic[co+"_"+vl]=function(e,t,n){return Math.max(0,e.length-t)},Ic[co+"_"+zh]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Ic[Rs]=bF,Ic[Il]=function(e,t,n){var r=n[0].name,i=e[r];return i?i.length:0},Ic[va]=bF,Ic);function g6(e,t){var n=Ave[gR(e,t)];return n}var XC=function(e,t,n){return e[t]},Ive=(Rc={},Rc[co]=XC,Rc[Rs]=function(e,t,n){return e[n]},Rc[Il]=XC,Rc[va]=function(e,t,n){var r=Rm(e);return r instanceof Array?r[t]:r},Rc[Ru]=XC,Rc);function m6(e){var t=Ive[e];return t}function gR(e,t){return e===co?e+"_"+t:e}function Eh(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return m6(o)(r,a,s)}else{var l=r;return o===va&&(l=Rm(r)),l}}}}var Rve=function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Pve(e,t){var n={},r=n.encode={},i=Kt(),o=[],a=[],s={};Q(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var m=h.coordDimIndex;YC(r,v)[m]=d,h.isExtraCoord||(i.set(v,1),Dve(h.type)&&(o[0]=d),YC(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(d)}a6.each(function(_,y){var b=YC(r,y),S=h.otherDims[y];S!=null&&S!==!1&&(b[S]=h.name)})});var l=[],u={};i.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Ot(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Rve(s,t),n}function YC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Ove(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Dve(e){return!(e==="ordinal"||e==="time")}var K_=function(){function e(t){this.otherDims={},t!=null&&Ze(this,t)}return e}();function Z_(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!qn(e)&&e!=null&&e!=="-"&&(e=+Tl(e)),e==null||e===""?NaN:Number(e))}Kt({number:function(e){return parseFloat(e)},time:function(e){return+Tl(e)},trim:function(e){return ht(e)?hs(e):e}});var Mve=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=qn(t)?t:Z1(t),i=qn(n)?n:Z1(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=ht(t),l=ht(n);s&&(r=l?t:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-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<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var DA=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Kt()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=KC[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[],h6(i),this._dimensions=Ot(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(t);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(t,o),this._chunks[o]=new _6[n||"float"](this._rawCount),this._rawExtent[o]=_d(),o},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[t]=_d());for(var l=o[t],u=a;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=n,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=i[u];wF(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<o;v++){var c=i[v],m=KC.arrayRows.call(this,t[h]||f,c.property,h,v);r[v][d]=m;var _=a[v];m<_[0]&&(_[0]=m),m>_[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;c<s;c++){var f=a[c];l[c]||(l[c]=_d()),wF(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(t,n,o,l);else for(var d=[],h=t;h<n;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var m=o[v],_=this._dimValueGetter(d,u[v],h,v);m[h]=_;var y=l[v];_<y[0]&&(y[0]=_),_>y[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<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],i=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(r+=a)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(o){isNaN(o)||n.push(o)});var r=n.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<t)i=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.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<f;c++){var d=this.getRawIndex(c),h=n-o[d],v=Math.abs(h);v<=r&&((v<s||v===s&&h>=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<i;o++)t[o]=n[o]}else t=new r(n.buffer,0,i)}else{var r=yd(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=yd(r._rawCount),a=new o(i),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<i;d++){var h=void 0,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var m=f[c][v];h=n(m,d)}else{for(var _=0;_<l;_++)s[_]=f[t[_]][v];s[_]=d,h=n.apply(null,s)}h&&(a[u++]=v)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var i=Zn(t),o=i.length;if(!o)return this;var a=n.count(),s=yd(n._rawCount),l=new s(a),u=0,c=i[0],f=t[c][0],d=t[c][1],h=n._chunks,v=!1;if(!n._indices){var m=0;if(o===1){for(var _=h[i[0]],y=0;y<r;y++){var b=_[y];(b>=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<r;y++){var b=_[y],T=S[y];(b>=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<a;y++){var E=n.getRawIndex(y),b=h[i[0]][E];(b>=f&&b<=d||isNaN(b))&&(l[u++]=E)}else for(var y=0;y<a;y++){for(var R=!0,E=n.getRawIndex(y),I=0;I<o;I++){var O=i[I],b=h[O][E];(b<t[O][0]||b>t[O][1])&&(R=!1)}R&&(l[u++]=n.getRawIndex(y))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var i=t._chunks,o=[],a=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=_d();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<a;h++)l[h]=i[n[h]][d];l[a]=f;var v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var m=n[c],_=v[c],y=u[m],b=i[m];b&&(b[d]=_),_<y[0]&&(y[0]=_),_>y[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;v<a-1;v+=l){for(var m=Math.min(v+l,a-1),_=Math.min(v+l*2,a),y=(_+m)/2,b=0,S=m;S<_;S++){var w=this.getRawIndex(S),C=o[w];isNaN(C)||(b+=C)}b/=_-m;var T=v,E=Math.min(v+l,a),R=v-1,I=o[u];c=-1,d=T;for(var O=-1,P=0,S=T;S<E;S++){var w=this.getRawIndex(S),C=o[w];if(isNaN(C)){P++,O<0&&(O=w);continue}f=Math.abs((R-y)*(C-I)-(R-S)*(b-I)),f>c&&(c=f,d=w)}P>0&&P<E-T&&(h[s++]=Math.min(O,d),d=Math.max(O,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(a-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.minmaxDownSample=function(t,n){for(var r=this.clone([t],!0),i=r._chunks,o=Math.floor(1/n),a=i[t],s=this.count(),l=new(yd(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var f=c,d=a[this.getRawIndex(f)],h=c,v=a[this.getRawIndex(h)],m=o;c+o>s&&(m=s-c);for(var _=0;_<m;_++){var y=this.getRawIndex(c+_),b=a[y];b<d&&(d=b,f=c+_),b>v&&(v=b,h=c+_)}var S=this.getRawIndex(f),w=this.getRawIndex(h);f<h?(l[u++]=S,l[u++]=w):(l[u++]=w,l[u++]=S)}return r._count=u,r._indices=l,r._updateGetRawIdx(),r},e.prototype.downSample=function(t,n,r,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[t],c=this.count(),f=o._rawExtent[t]=_d(),d=new(yd(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var _=this.getRawIndex(v+m);s[m]=u[_]}var y=r(s),b=this.getRawIndex(Math.min(v+i(s,y)||0,c-1));u[b]=y,y<f[0]&&(f[0]=y),y>f[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();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:n(o);break;case 1:n(i[t[0]][s],o);break;case 2:n(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=_d();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o<i.length;o++)r.push(i[o][n]);return r},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,o=t&&Hh(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?kve(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=sn(this._extent),t._rawExtent=sn(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,o){return 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;a<t;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=$ve[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:o,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(i=o.name),r++;else{var a=this.getSourceDimension(n);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function S6(e){return e instanceof b6}function w6(e){for(var t=Kt(),n=0;n<(e||[]).length;n++){var r=e[n],i=Et(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function x6(e){var t=Fve(e);return t.dimNameMap||(t.dimNameMap=w6(e.dimensionsDefine))}function C6(e){return e>30}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<r.length;c++){var f=r[c],d=ht(f)?new K_({name:f}):f instanceof K_?f:new K_(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};a.push(h),o[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=Kt();Q(a,function(_){m.set(o[_].storeDimIndex,_)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var i=this._schema.getSourceDimension(n);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(qn(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var i=r.encode[t];return i?i[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var i=this,o;if(t instanceof DA&&(o=t),!o){var a=this.dimensions,s=vR(t)||so(t)?new p6(t,a.length):t;o=new DA;var l=Xl(a,function(u){return{type:i._dimInfos[u].type,property:u}});o.initData(s,l,r)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=Pve(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n&&n.length),i=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=n[l],a&&qC(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Ru&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===va;if(l&&!i.pure)for(var u=[],c=t;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Lhe(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=ms(d,null));var h=f.id;a[c]==null&&h!=null&&(a[c]=ms(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)qC(this,c);CF(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){Bp(t)?Ze(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Vp(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),i=this._store.getOrdinalMeta(t);return i?i.categories[r]:r},e.prototype.getId=function(t){return E0(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.get(i.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,i=this._dimInfos[t];if(i)return r.getByRawIndex(i.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,i=this._store;return ct(t)?i.getValues(Xl(t,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var r=t&&this._invertedIndicesMap[t],i=r&&r[n];return i==null||isNaN(i)?xF:i},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){Ut(t)&&(r=n,n=t,t=[]);var i=r||this,o=Xl(Up(t),this._getStoreDimIndex,this);this._store.each(o,i?Kn(n,i):n)},e.prototype.filterSelf=function(t,n,r){Ut(t)&&(r=n,n=t,t=[]);var i=r||this,o=Xl(Up(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Kn(n,i):n),this},e.prototype.selectRange=function(t){var n=this,r={},i=Zn(t);return Q(i,function(o){var a=n._getStoreDimIndex(o);r[a]=t[o]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){Ut(t)&&(r=n,n=t,t=[]),r=r||this;var i=[];return this.each(t,function(){i.push(n&&n.apply(this,arguments))},r),i},e.prototype.map=function(t,n,r,i){var o=r||i||this,a=Xl(Up(t),this._getStoreDimIndex,this),s=Hp(this);return s._store=this._store.map(a,o?Kn(n,o):n),s},e.prototype.modify=function(t,n,r,i){var o=r||i||this,a=Xl(Up(t),this._getStoreDimIndex,this);this._store.modify(a,o?Kn(n,o):n)},e.prototype.downSample=function(t,n,r,i){var o=Hp(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,r,i),o},e.prototype.minmaxDownSample=function(t,n){var r=Hp(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),r},e.prototype.lttbDownSample=function(t,n){var r=Hp(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new fr(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new yve(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return E0(t,r)},function(r){return E0(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},Bp(t)?Ze(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],i=r&&r[n];return i??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),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;l<r.length;l++)r[l]=xF;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},Vp=function(t,n,r){return ms(t._getCategory(n,r),null)},E0=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=Vp(t,t._idDimIdx,n)),r==null&&(r=Vve+n),r},Up=function(t){return ct(t)||(t=t!=null?[t]:[]),t},Hp=function(t){var n=new e(t._schema?t._schema:Xl(t.dimensions,t._getDimInfo,t),t.hostModel);return ZC(n,t),n},ZC=function(t,n){Q(Uve.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,Q(Hve,function(r){t[r]=sn(n[r])}),t._calculationInfo=Ze({},n._calculationInfo)},qC=function(t,n){var r=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=Vp(t,o,n)),l==null&&a!=null&&(i[n]=l=Vp(t,a,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function 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;h<d.length;h++)d[h]=-1;function v(I){var O=d[I];if(O<0){var P=r[I],M=Et(P)?P:{name:P},F=new K_,$=M.name;$!=null&&u.get($)!=null&&(F.name=F.displayName=$),M.type!=null&&(F.type=M.type),M.displayName!=null&&(F.displayName=M.displayName);var z=o.length;return d[I]=z,F.storeDimIndex=I,o.push(F),F}return o[O]}if(!s)for(var h=0;h<a;h++)v(h);f.each(function(I,O){var P=Oi(I).slice();if(P.length===1&&!ht(P[0])&&P[0]<0){f.set(O,!1);return}var M=f.set(O,[]);Q(P,function(F,$){var z=ht(F)?u.get(F):F;z!=null&&z<a&&(M[$]=z,_(v(z),O,$))})});var m=0;Q(n,function(I){var O,P,M,F;if(ht(I))O=I,F={};else{F=I,O=F.name;var $=F.ordinalMeta;F.ordinalMeta=null,F=Ze({},F),F.ordinalMeta=$,P=F.dimsDef,M=F.otherDims,F.name=F.coordDim=F.coordDimIndex=F.dimsDef=F.otherDims=null}var z=f.get(O);if(z!==!1){if(z=Oi(z),!z.length)for(var B=0;B<(P&&P.length||1);B++){for(;m<a&&v(m).coordDim!=null;)m++;m<a&&z.push(m++)}Q(z,function(K,j){var le=v(K);if(l&&F.type!=null&&(le.type=F.type),_(Cn(le,F),O,j),le.name==null&&P){var me=P[j];!Et(me)&&(me={name:me}),le.name=le.displayName=me.name,le.defaultTooltip=me.defaultTooltip}M&&Cn(le.otherDims,M)})}});function _(I,O,P){a6.get(O)!=null?I.otherDims[O]=P:(I.coordDim=O,I.coordDimIndex=P,i.set(O,!0))}var y=t.generateCoord,b=t.generateCoordCount,S=b!=null;b=y?b||1:0;var w=y||"value";function C(I){I.name==null&&(I.name=I.coordDim)}if(s)Q(o,function(I){C(I)}),o.sort(function(I,O){return I.storeDimIndex-O.storeDimIndex});else for(var T=0;T<a;T++){var E=v(T),R=E.coordDim;R==null&&(E.coordDim=Xve(w,i,S),E.coordDimIndex=0,(!y||b<=0)&&(E.isExtraCoord=!0),b--),C(E),E.type==null&&(c6(e,T)===So.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return Wve(o),new b6({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Wve(e){for(var t=Kt(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function 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<e.length&&e[t]==null;)t++;return e[t]}var oge=Math.round(Math.random()*10);function OS(e){return[e||"",oge++].join("_")}function age(e){var t={};e.registerSubTypeDefaulter=function(n,r){var i=ps(n);t[i.main]=r},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=ps(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}function sge(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,d={};for(Q(o,function(b){d[b]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),Q(v.successor,m?y:_)}Q(d,function(){var b="";throw new Error(b)});function _(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function y(b){d[b]=!0,_(b)}};function n(o){var a={},s=[];return Q(o,function(l){var u=r(a,l),c=u.originalDeps=t(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),Q(f,function(d){En(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(a,d);En(h.successor,d)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return Q(o,function(l){En(a,l)>=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<<s)-1&~i)/uge);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[n][d]*MA(e,t-1,c,u,i|v,o),h++)}return o[a]=f,f}function TF(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=MA(n,8,0,0,0,r);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*MA(n,7,a===0?1:0,1<<a,1<<s,r)/i*t[a];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var EF="___zrEVENTSAVED",QC=[];function cge(e,t,n,r,i){return LA(QC,t,r,i,!0)&&LA(e,n,QC[0],QC[1])}function LA(e,t,n,r,i){if(t.getBoundingClientRect&&Mt.domSupported&&!T6(t)){var o=t[EF]||(t[EF]={}),a=fge(t,o),s=dge(a,o,i);if(s)return s(e,n,r),!0}return!1}function fge(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return 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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};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<eT.length;++s)a[eT[s]]="{primary|"+a[eT[s]]+"}";var l=n?n.inherit===!1?n:Cn(n,a):a,u=R6(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=I6.indexOf(u),s=c-1;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<i.length;o++){var a=PF[o];e=e.replace(tT(a),tT(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(tT(PF[l],s),n?qi(u):u)}return e}function Cge(e,t){var n=ht(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+qi(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qi(r)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function 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<c.length;y++){var b=c[y];if(!s(d,b)&&s(e,b)){d[b]=e[b];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){J_(c,function(h){f[h]=d[h]})}}function $S(e){return Ege({},e)}function Ege(e,t){return t&&e&&J_(Tge,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Age=Dr(),Tn=function(e){lt(t,e);function t(n,r,i){var o=e.call(this,n,r,i)||this;return o.uid=OS("ec_cpt_model"),o}return t.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Gg(this),o=i?$S(n):{},a=r.getTheme();_n(n,a.get(this.mainType)),_n(n,this.getDefaultOption()),i&&Ah(n,o,i)},t.prototype.mergeOption=function(n,r){_n(this.option,n,!0);var i=Gg(this);i&&Ah(this.option,n,i)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!Kfe(n))return n.defaultOption;var r=Age(this);if(!r.defaultOption){for(var i=[],o=n;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=_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;r<n;r++)if(e[r].length>t)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||h<v)){var m=this._progress;if(ct(m))for(var _=0;_<m.length;_++)this._doProgress(m[_],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,i,o){MF.reset(n,r,i,o),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:MF.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ct(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),MF=function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*n+Math.ceil(t/i),u=t>=e?null:l<r?l:t;return t++,u}}(),Nge=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return Z_(t,n)},e}();function kge(e,t){var n=new Nge,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==vl&&Zi(a);var s=[],l={},u=e.dimensionsDefine;if(u)Q(u,function(m,_){var y=m.name,b={index:_,name:y,displayName:m.displayName};if(s.push(b),y!=null){var S="";Of(l,y)&&Zi(S),l[y]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=v6(i,vl);t.__isBuiltIn&&(n.getRawDataItem=function(m){return f(r,o,s,m)},n.getRawData=Kn(Fge,null,e)),n.cloneRawData=Kn($ge,null,e);var d=g6(i,vl);n.count=Kn(d,null,r,o,s);var h=m6(i);n.retrieveValue=function(m,_){var y=f(r,o,s,m);return v(y,_)};var v=n.retrieveValueFromItem=function(m,_){if(m!=null){var y=s[_];if(y)return h(m,_,y.name)}};return n.getDimensionInfo=Kn(Bge,null,s,l),n.cloneAllDimensionInfo=Kn(Vge,null,s),n}function Fge(e){var t=e.sourceFormat;if(!TR(t)){var n="";Zi(n)}return e.data}function $ge(e){var t=e.sourceFormat,n=e.data;if(!TR(t)){var r="";Zi(r)}if(t===co){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(t===Rs){for(var i=[],o=0,a=n.length;o<a;o++)i.push(Ze({},n[o]));return i}}function Bge(e,t,n){if(n!=null){if(qn(n)||!isNaN(n)&&!Of(t,n))return e[n];if(Of(t,n))return t[n]}}function Vge(e){return sn(e)}var B6=Kt();function Uge(e){e=sn(e);var t=e.type,n="";t||Zi(n);var r=t.split(":");r.length!==2&&Zi(n);var i=!1;r[0]==="echarts"&&(t=r[1],i=!0),e.__isBuiltIn=i,B6.set(t,e)}function Hge(e,t,n){var r=Oi(e),i=r.length,o="";i||Zi(o);for(var a=0,s=i;a<s;a++){var l=r[a];t=Gge(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Gge(e,t,n,r){var i="";t.length||Zi(i),Et(e)||Zi(i);var o=e.type,a=B6.get(o);a||Zi(i);var s=Ot(t,function(u){return kge(u,a)}),l=Oi(a.transform({upstream:s[0],upstreamList:s,config:sn(e.config)}));return Ot(l,function(u,c){var f="";Et(u)||Zi(f),u.data||Zi(f);var d=d6(u.data);TR(d)||Zi(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var m=v.startIndex;m&&(u.data=v.data.slice(0,m).concat(u.data)),h={seriesLayoutBy:vl,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:vl,sourceHeader:0,dimensions:u.dimensions};return OA(u.data,h,null)})}function TR(e){return e===co||e===Rs}var zge=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(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;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];R0(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new DA,s.initData(new p6(n,t.length),t)),a[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(R0(t)){var n=u6(t);return n?[n.getSourceManager()]:[]}else return Ot(Sve(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,i;if(R0(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},e}();function R0(e){return e.mainType==="series"}function LF(e){throw new Error(e)}var Wge="line-height:1";function V6(e){var t=e.lineHeight;return t==null?Wge:"line-height:"+qi(t+"")+"px"}function U6(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+qi(r+"")+"px;color:"+qi(n)+";font-weight:"+qi(i+""),valueStyle:"font-size:"+qi(a+"")+"px;color:"+qi(o)+";font-weight:"+qi(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var jge=[0,10,20,30],Xge=["",`
`,`
`,`
`];function zg(e,t){return t.type=e,t}function kA(e){return e.type==="section"}function H6(e){return kA(e)?Yge:Kge}function G6(e){if(kA(e)){var t=0,n=e.blocks.length,r=n>1||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,'<div style="'+h+";"+v+';">'+qi(d)+"</div>"+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='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",o=V6(e);return'<div style="'+i+";"+o+';">'+t+r+"</div>"}function qge(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+qi(e)+"</span>"}function Jge(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ct(e)?e:[e],'<span style="'+o+";"+r+'">'+Ot(e,function(a){return qi(a)}).join("&nbsp;&nbsp;")+"</span>"}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;i<n.length;i++)n[i]&&n[i].label&&Vk(n[i],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=$A(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return Kl(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=$A(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}Kl(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Kt(n)},t.prototype.getSourceManager=function(){return Kl(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Kl(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,i){return tme({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Mt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=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<n.length;s++){var l=n[s],u=P0(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var i=[],o=0;o<n.length;o++)i[0]=n[o],this.isSelected(n[o],r)?this.unselect(i,r):this.select(i,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Zn(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[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;c<l;c++){var f=r[c],d=P0(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=P0(n,h);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var o=n.getRawDataItem(i);o&&o.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return 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<n.length;a++)o.push(Eh(e,t,n[a]));return o.join(" ")}}function _me(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!ct(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}var 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;o<t.end;o++){var a=n.getItemLayout(o);if(rT(n,a,o,r)){var s=new this._SymbolCtor(n,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){dR(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},e}();function Y6(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=wme(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=Ot(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return Ug(t,f[0])&&(d=!0,f[0]=h),Ug(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function wme(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:qn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function 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<l.length;S++){var w=l[S],C=!0,T=void 0,E=void 0;switch(w.cmd){case"=":T=w.idx*2,E=w.idx1*2;var R=y[T],I=y[T+1],O=b[E],P=b[E+1];(isNaN(R)||isNaN(I))&&(R=O,I=P),u.push(R,I),c.push(O,P),f.push(n[T],n[T+1]),d.push(r[E],r[E+1]),m.push(t.getRawIndex(w.idx1));break;case"+":var M=w.idx,F=_.dataDimsForPoint,$=i.dataToPoint([t.get(F[0],M),t.get(F[1],M)]);E=M*2,u.push($[0],$[1]),c.push(b[E],b[E+1]);var z=K6(_,i,t,M);f.push(z[0],z[1]),d.push(r[E],r[E+1]),m.push(t.getRawIndex(M));break;case"-":C=!1}C&&(h.push(w),v.push(v.length))}v.sort(function(Me,je){return m[Me]-m[je]});for(var B=u.length,K=zd(B),j=zd(B),le=zd(B),me=zd(B),ge=[],S=0;S<v.length;S++){var De=v[S],Fe=S*2,ze=De*2;K[Fe]=u[ze],K[Fe+1]=u[ze+1],j[Fe]=c[ze],j[Fe+1]=c[ze+1],le[Fe]=f[ze],le[Fe+1]=f[ze+1],me[Fe]=d[ze],me[Fe+1]=d[ze+1],ge[S]=h[De]}return{current:K,next:j,stackedOnCurrent:le,stackedOnNext:me,status:ge}}var Zl=Math.min,ql=Math.max;function bf(e,t){return isNaN(e)||isNaN(t)}function VA(e,t,n,r,i,o,a,s,l){for(var u,c,f,d,h,v,m=n,_=0;_<r;_++){var y=t[m*2],b=t[m*2+1];if(m>=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;)_++,C+=o,m+=o,T=t[C*2],E=t[C*2+1],y=t[m*2],b=t[m*2+1],S=y-u,w=b-c;var R=_+1;if(l)for(;bf(T,E)&&R<r;)R++,C+=o,T=t[C*2],E=t[C*2+1];var I=.5,O=0,P=0,M=void 0,F=void 0;if(R>=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<a&&bf(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=VA(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Mf.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],h=void 0,v=void 0,m=void 0,_=void 0,y=void 0,b=void 0,S=void 0;switch(d){case a.M:s=o[f++],l=o[f++];break;case a.L:if(h=o[f++],v=o[f++],S=u?(n-s)/(h-s):(n-l)/(v-l),S<=1&&S>=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<C;T++){var E=c[T];if(E<=1&&E>=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(;a<s&&bf(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=VA(n,i,a,s,s,1,r.smooth,l,r.connectNulls);VA(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},t}(Mn);function J6(){var e=Dr();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==a||o!==s)&&"reset"}}var Q6=Dr(),Rme=J6(),ys=function(){function e(){this.group=new mi,this.uid=OS("viewChart"),this.renderTask=Qv({plan:Pme,reset:Ome}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,i){},e.prototype.highlight=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&UF(o,i,"emphasis")},e.prototype.downplay=function(t,n,r,i){var o=t.getData(i&&i.dataType);o&&UF(o,i,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateLayout=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.updateVisual=function(t,n,r,i){this.render(t,n,r,i)},e.prototype.eachRendered=function(t){dR(this.group,t)},e.markUpdateMethod=function(t,n){Q6(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function VF(e,t,n){e&&AA(e)&&(t==="emphasis"?q1:J1)(e,n)}function UF(e,t,n){var r=Lf(e,t),i=t&&t.highlightKey!=null?hpe(t.highlightKey):null;r!=null?Q(Oi(r),function(o){VF(e.getItemGraphicEl(o),n,i)}):e.eachItemGraphicEl(function(o){VF(o,n,i)})}U2(ys);gS(ys);function Pme(e){return Rme(e.model)}function Ome(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&Q6(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,r,i),Dme[l]}var Dme={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Mme(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var f=new Zr({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=Ut(i)?function(_){i(_,f)}:null;Om(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,m)}return f}function Lme(e,t,n){var r=e.getArea(),i=wr(r.r0,1),o=wr(r.r,1),a=new TS({shape:{cx:wr(e.cx,1),cy:wr(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,Om(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function Nme(e,t){return e.type===t}function HF(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function GF(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function zF(e,t){var n=GF(e),r=n[0],i=n[1],o=GF(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function WF(e){return qn(e)?e:e?.5:0}function kme(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=zd(r*2),o=0;o<r;o++){var a=K6(n,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Jl(e,t,n,r,i){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],d=[];if(i){for(l=0;l<e.length;l+=2){var h=t||e;!isNaN(h[l])&&!isNaN(h[l+1])&&d.push(e[l],e[l+1])}e=d}for(l=0;l<e.length-2;l+=2)switch(f[0]=e[l+2],f[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),r){case"end":u[a]=f[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var v=(c[a]+f[a])/2,m=[];u[a]=m[a]=v,u[1-a]=c[1-a],m[1-a]=f[1-a],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[a]=c[a],u[1-a]=f[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function Fme(e,t){var n=[],r=e.length,i,o;function a(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=Mde(v,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function $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;a<i;a+=o)if(ER.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>r)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<r;u++)if(a=e[u*2+i],!(isNaN(a)||isNaN(e[u*2+1-i]))){if(u===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function e8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Cs.length;t++)if(e.get([Cs[t],"endLabel","show"]))return!0;return!1}function iT(e,t,n,r){if(Nme(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=e8(r)?function(h,v){e._endLabelOnDuring(h,v,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Mme(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return Lme(t,n,r)}function zme(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var Wme=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new mi,r=new Sme;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n,this._changePolyState=Kn(this._changePolyState,this)},t.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],f=o.type==="polar",d=this._coordSys,h=this._symbolDraw,v=this._polyline,m=this._polygon,_=this._lineGroup,y=!r.ssr&&n.get("animation"),b=!u.isEmpty(),S=u.get("origin"),w=Y6(o,s,S),C=b&&kme(o,s,w),T=n.get("showSymbol"),E=n.get("connectNulls"),R=T&&!f&&Bme(n,s,o),I=this._data;I&&I.eachItemGraphicEl(function(Me,je){Me.__temp&&(a.remove(Me),I.setItemGraphicEl(je,null))}),T||h.remove(),a.add(_);var O=f?!1:n.get("step"),P;o&&o.getArea&&n.get("clip",!0)&&(P=o.getArea(),P.width!=null?(P.x-=.1,P.y-=.1,P.width+=.2,P.height+=.2):P.r0&&(P.r0-=.5,P.r+=.5)),this._clipShapeForSymbol=P;var M=$me(s,o,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(v&&d.type===o.type&&O===this._step))T&&h.updateData(s,{isIgnore:R,clipShape:P,disableAnimation:!0,getSymbolPoint:function(Me){return[c[Me*2],c[Me*2+1]]}}),y&&this._initSymbolLabelAnimation(s,o,P),O&&(C&&(C=Jl(C,c,o,O,E)),c=Jl(c,null,o,O,E)),v=this._newPolyline(c),b?m=this._newPolygon(c,C):m&&(_.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,Nf(M)),_.setClipPath(iT(this,o,!0,n));else{b&&!m?m=this._newPolygon(c,C):m&&!b&&(_.remove(m),m=this._polygon=null),f||this._initOrUpdateEndLabel(n,o,Nf(M));var F=_.getClipPath();if(F){var $=iT(this,o,!1,n);Om(F,{shape:$.shape},n)}else _.setClipPath(iT(this,o,!0,n));T&&h.updateData(s,{isIgnore:R,clipShape:P,disableAnimation:!0,getSymbolPoint:function(Me){return[c[Me*2],c[Me*2+1]]}}),(!HF(this._stackedOnPoints,C)||!HF(this._points,c))&&(y?this._doUpdateAnimation(s,C,o,i,O,S,E):(O&&(C&&(C=Jl(C,c,o,O,E)),c=Jl(c,null,o,O,E)),v.setShape({points:c}),m&&m.setShape({points:c,stackedOnPoints:C})))}var z=n.getModel("emphasis"),B=z.get("focus"),K=z.get("blurScope"),j=z.get("disabled");if(v.useStyle(Cn(l.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),qk(v,n,"lineStyle"),v.style.lineWidth>0&&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;w<S.length;w++){var C=S[w].cmd;if(C==="="){var T=n.getItemGraphicEl(S[w].idx1);T&&b.push({el:T,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var E=u.shape.__points,R=0;R<b.length;R++){var I=b[R].el,O=b[R].ptIdx*2;I.x=E[O],I.y=E[O+1],I.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ys);function jme(e,t){return{seriesType:e,plan:J6(),reset:function(n){var r=n.getData(),i=n.coordinateSystem;if(n.pipelineContext,!!i){var o=Ot(i.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),a=o.length,s=r.getCalculationInfo("stackResultDimension");Ug(r,o[0])&&(o[0]=s),Ug(r,o[1])&&(o[1]=s);var l=r.getStore(),u=r.getDimensionIndex(o[0]),c=r.getDimensionIndex(o[1]);return a&&{progress:function(f,d){for(var h=f.end-f.start,v=zd(h*a),m=[],_=[],y=f.start,b=0;y<f.end;y++){var S=void 0;if(a===1){var w=l.get(u,y);S=i.dataToPoint(w,null,_)}else m[0]=l.get(u,y),m[1]=l.get(c,y),S=i.dataToPoint(m,null,_);v[b++]=S[0],v[b++]=S[1]}d.setLayout("points",v)}}}}}}var Xme={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Yme=function(e){return Math.round(e.length/2)};function Kme(e){return{seriesType:e,reset:function(t,n,r){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),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;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function 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&&b<w&&(w=Math.min(b,f)),S&&S>w&&(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<arguments.length;v++)h[v]=arguments[v];r=new Date().getTime(),l=this,u=h;var m=c||t,_=c||n;c=null,s=r-(_?i:o)-m,clearTimeout(a),_?a=setTimeout(f,m):s>=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<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),d=Lf(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:ct(d)?f.getName(d[0]):f.getName(d),selected:ht(l)?l:Ze({},l)})}})}function aye(e,t,n){e.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Sd("map","selectchanged",t,i,r),Sd("pie","selectchanged",t,i,r)):r.fromAction==="select"?(Sd("map","selected",t,i,r),Sd("pie","selected",t,i,r)):r.fromAction==="unselect"&&(Sd("map","unselected",t,i,r),Sd("pie","unselected",t,i,r))})}function sye(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Q1(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function lye(e){var t=[];e.sort(function(m,_){return _.priority-m.priority});var n=new bn(0,0,0,0);function r(m){if(!m.ignore){var _=m.ensureState("emphasis");_.ignore==null&&(_.ignore=!1)}m.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(n.intersect(v.rect)){if(a&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new Q1(v.localRect,v.transform)),f||(f=new Q1(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var wd=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),uye=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new wd(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,i=t.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,t),this.handler.dispatchToElement(new wd(n,t),"drag",t.event);var s=this.handler.findHover(r,i,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new wd(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new wd(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new wd(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new wd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),cye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,oT=[],fye=Mt.browser.firefox&&+Mt.browser.version.split(".")[0]<39;function HA(e,t,n,r){return n=n||{},r?KF(e,t,n):fye&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):KF(e,t,n),n}function KF(e,t,n){if(Mt.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(T6(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(LA(oT,e,r,i)){n.zrX=oT[0],n.zrY=oT[1];return}}n.zrX=n.zrY=0}function AR(e){return e||window.event}function Zo(e,t,n){if(t=AR(t),t.zrX!=null)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&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;a<s;a++){var l=i[a],u=HA(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in aT)if(aT.hasOwnProperty(n)){var r=aT[n](this._track,t);if(r)return r}},e}();function ZF(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function gye(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var aT={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=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;_<u;_+=h)for(var y=0;y<m;y+=v){var b=n+_*Math.cos(y),S=r+_*Math.sin(y);if(qF(s,a,b,S,i),a.target)return a}}return a},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new vye);var i=this._gestureMgr;r==="start"&&i.clear();var o=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),o){var a=o.type;n.gestureEvent=a;var s=new Gp;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(Is);Q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){a8.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=s8(this,n,r),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||wde(this._downPoint,[t.zrX,t.zrY])>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<n&&r(e[i],e[i-1])<0;)i++;xye(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function xye(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function QF(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o=e[r],a=t,s=r,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function 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;l<s&&o(e,t[n+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function 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;l<s&&o(e,t[n+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function 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]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;o>1;){var h=o-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=r[h],m=i[h],_=r[h+1],y=i[h+1];i[h]=m+y,h===o-3&&(r[h+1]=r[h+2],i[h+1]=i[h+2]),o--;var b=uT(e[_],e,v,m,0,t);v+=b,m-=b,m!==0&&(y=lT(e[v+m-1],e,_,y,y-1,t),y!==0&&(m<=y?f(v,m,_,y):d(v,m,_,y)))}function f(h,v,m,_){var y=0;for(y=0;y<v;y++)a[y]=e[h+y];var b=0,S=m,w=h;if(e[w++]=e[S++],--_===0){for(y=0;y<v;y++)e[w+y]=a[b+y];return}if(v===1){for(y=0;y<_;y++)e[w+y]=e[S+y];e[w+_]=a[b];return}for(var C=n,T,E,R;;){T=0,E=0,R=!1;do if(t(e[S],a[b])<0){if(e[w++]=e[S++],E++,T=0,--_===0){R=!0;break}}else if(e[w++]=a[b++],T++,E=0,--v===1){R=!0;break}while((T|E)<C);if(R)break;do{if(T=uT(e[S],a,b,v,0,t),T!==0){for(y=0;y<T;y++)e[w+y]=a[b+y];if(w+=T,b+=T,v-=T,v<=1){R=!0;break}}if(e[w++]=e[S++],--_===0){R=!0;break}if(E=lT(a[b],e,S,_,0,t),E!==0){for(y=0;y<E;y++)e[w+y]=e[S+y];if(w+=E,S+=E,_-=E,_===0){R=!0;break}}if(e[w++]=a[b++],--v===1){R=!0;break}C--}while(T>=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<v;y++)e[w+y]=a[b+y]}}function d(h,v,m,_){var y=0;for(y=0;y<_;y++)a[y]=e[m+y];var b=h+v-1,S=_-1,w=m+_-1,C=0,T=0;if(e[w--]=e[b--],--v===0){for(C=w-(_-1),y=0;y<_;y++)e[C+y]=a[y];return}if(_===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];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)<E);if(O)break;do{if(R=v-uT(a[S],e,h,v,v-1,t),R!==0){for(w-=R,b-=R,v-=R,T=w+1,C=b+1,y=R-1;y>=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<I;y++)e[T+y]=a[C+y];if(_<=1){O=!0;break}}if(e[w--]=e[b--],--v===0){O=!0;break}E--}while(R>=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(i<l8){o=JF(e,n,r,t),QF(e,n,r,n+o,t);return}var a=Cye(e,t),s=wye(i);do{if(o=JF(e,n,r,t),o<s){var l=i;l>s&&(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;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,t);r.length=this._displayListLen,Q_(r,t3)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=gs),this._updateAndAddDisplayable(u,n,r)}t.__dirty=0}else{var c=t;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(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<r;n++)this.delRoot(t[n]);return}var i=En(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),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.__lastTouchMoment<Aye&&Ra.click.call(this,e)},pointerdown:function(e){Ra.mousedown.call(this,e)},pointermove:function(e){GA(e)||Ra.mousemove.call(this,e)},pointerup:function(e){Ra.mouseup.call(this,e)},pointerout:function(e){GA(e)||Ra.mouseout.call(this,e)}};Q(["click","dblclick","contextmenu"],function(e){Ra[e]=function(t){t=Zo(this.dom,t),this.trigger(e,t)}});var zA={pointermove:function(e){GA(e)||zA.mousemove.call(this,e)},pointerup:function(e){zA.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Oye(e,t){var n=t.domHandlers;Mt.pointerEventsSupported?Q(dT.pointer,function(r){e1(t,r,function(i){n[r].call(e,i)})}):(Mt.touchEventsSupported&&Q(dT.touch,function(r){e1(t,r,function(i){n[r].call(e,i),Iye(t)})}),Q(dT.mouse,function(r){e1(t,r,function(i){i=AR(i),t.touching||n[r].call(e,i)})}))}function Dye(e,t){Mt.pointerEventsSupported?Q(n3.pointer,n):Mt.touchEventsSupported||Q(n3.mouse,n);function n(r){function i(o){o=AR(o),u8(e,o.target)||(o=Rye(e,o),t.domHandlers[r].call(e,o))}e1(t,r,i,{capture:!0})}}function e1(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,hye(e.domTarget,t,n,r)}function pT(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&pye(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var i3=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),Mye=function(e){lt(t,e);function t(n,r){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new i3(n,Ra),fT&&(i._globalHandlerScope=new i3(document,zA)),Oye(i,i._localHandlerScope),i}return t.prototype.dispose=function(){pT(this._localHandlerScope),fT&&pT(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,fT&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?Dye(this,r):pT(r)}},t}(Is);/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var t1={},c8={};function Lye(e){delete c8[e]}function Nye(e){if(!e)return!1;if(typeof e=="string")return j1(e,1)<yA;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=j1(t[i].color,1);return n/=r,n<yA}return!1}var kye=function(){function e(t,n,r){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var o=new Tye,a=r.renderer||"canvas";t1[a]||(a=Zn(t1)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new t1[a](n,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Mt.node&&!Mt.worker&&!l?new Mye(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Mt.touchEventsSupported:!!c,d=44,h;f&&(h=nn(r.pointerSize,d)),this.handler=new a8(o,s,u,s.root,h),this.animation=new Eye({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Nye(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=Wd();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=Wd();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof mi&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Lye(this.id))},e}();function o3(e,t){var n=new kye(tH(),e,t);return c8[n.id]=n,n}function Fye(e,t){t1[e]=t}var f8="";typeof navigator<"u"&&(f8=navigator.platform||"");var xd="rgba(0, 0, 0, 0.2)";const $ye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:f8.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Bye=Kt();function Vye(e,t,n){var r=Bye.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var O0,Wp,a3,s3="\0_ec_inner",Uye=1,IR=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new fr(o),this._locale=new fr(a),this._optionManager=s},t.prototype.setOption=function(n,r,i){var o=c3(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,r){return this._resetOption(n,c3(r))},t.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?a3(this,a):(this.restoreData(),this._mergeOption(a,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&Q(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Kt(),u=r&&r.replaceMergeMainTypeMap;_ve(this),Q(n,function(f,d){f!=null&&(Tn.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?sn(f):_n(i[d],f,!0))}),u&&u.each(function(f,d){Tn.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Tn.topologicalTravel(s,Tn.getAllClassMainTypes(),c,this);function c(f){var d=Vye(this,f,Oi(n[f])),h=o.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=Nhe(h,d,v);Hhe(m,f,Tn),i[f]=null,o.set(f,null),a.set(f,0);var _=[],y=[],b=0,S;Q(m,function(w,C){var T=w.existing,E=w.newOption;if(!E)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var R=f==="series",I=Tn.getClass(f,w.keyInfo.subType,!R);if(!I)return;if(f==="tooltip"){if(S)return;S=!0}if(T&&T.constructor===I)T.name=w.keyInfo.name,T.mergeOption(E,this),T.optionUpdated(E,!1);else{var O=Ze({componentIndex:C},w.keyInfo);T=new I(E,this,this,O),Ze(T,O),w.brandNew&&(T.__requireNewView=!0),T.init(E,this,this),T.optionUpdated(null,!0)}}T?(_.push(T.option),y.push(T),b++):(_.push(void 0),y.push(void 0))},this),i[f]=_,o.set(f,y),a.set(f,b),f==="series"&&O0(this)}this._seriesIndices||O0(this)},t.prototype.getOption=function(){var n=sn(this.option);return Q(n,function(r,i){if(Tn.hasClass(i)){for(var o=Oi(r),a=o.length,s=!1,l=a-1;l>=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<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,o=n.id,a=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],Q(Oi(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=l3("id",o,s):a!=null?l=l3("name",a,s):l=Yr(s,function(u){return!!u}),u3(l,n)},t.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Yr(this._componentsMap.get(i),function(u){return!!u});return l(u3(a,n));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?Yr(u,n.filter):u}},t.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(Ut(n)){var a=r,s=n;o.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(a,d,v,v.componentIndex)}})}else for(var l=ht(n)?o.get(n):Et(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=ms(n,null);return Yr(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return Yr(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return Yr(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){Wp(this),Q(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},t.prototype.eachRawSeries=function(n,r){Q(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,i){Wp(this),Q(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,r,i){return Q(this.getSeriesByType(n),r,i)},t.prototype.isSeriesFiltered=function(n){return Wp(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){Wp(this);var i=[];Q(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(r,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=Kt(i)},t.prototype.restoreData=function(n){O0(this);var r=this._componentsMap,i=[];r.each(function(o,a){Tn.hasClass(a)&&i.push(a)}),Tn.topologicalTravel(i,Tn.getAllClassMainTypes(),function(o){Q(r.get(o),function(a){a&&(o!=="series"||!Hye(a,n))&&a.restoreData()})})},t.internalField=function(){O0=function(n){var r=n._seriesIndices=[];Q(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Kt(r)},Wp=function(n){},a3=function(n,r){n.option={},n.option[s3]=Uye,n._componentsMap=Kt({series:[]}),n._componentsCount=Kt();var i=r.aria;Et(i)&&i.enabled==null&&(i.enabled=!0),Gye(r,n._theme.option),_n(r,$ye,!1),n._mergeOption(r,null)}}(),t}(fr);function Hye(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Gye(e,t){var n=e.color&&!e.colorLayer;Q(t,function(r,i){i==="colorLayer"&&n||Tn.hasClass(i)||(typeof r=="object"?e[i]=e[i]?_n(e[i],r,!1):sn(r):e[i]==null&&(e[i]=r))})}function l3(e,t,n){if(ct(t)){var r=Kt();return Q(t,function(o){if(o!=null){var a=ms(o,null);a!=null&&r.set(o,!0)}}),Yr(n,function(o){return o&&r.get(o[e])})}else{var i=ms(t,null);return Yr(n,function(o){return o&&i!=null&&o[e]===i})}}function u3(e,t){return t.hasOwnProperty("subType")?Yr(e,function(n){return n&&n.subType===t.subType}):e}function c3(e){var t=Kt();return e&&Q(Oi(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}As(IR,CR);var zye=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],d8=function(){function e(t){Q(zye,function(n){this[n]=Kn(t[n],t)},this)}return e}(),Wye=/^(min|max)?(.+)$/,jye=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(Q(Oi(t.series),function(a){a&&a.data&&lo(a.data)&&uA(a.data)}),Q(Oi(t.dataset),function(a){a&&a.source&&lo(a.source)&&uA(a.source)})),t=sn(t);var i=this._optionBackup,o=Xye(t,n,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],sn(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var i=t.getComponent("timeline");i&&(n=sn(r[i.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,u=i.length;l<u;l++)Yye(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!Zye(a,this._currentMediaIndices)&&(s=Ot(a,function(c){return sn(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},e}();function Xye(e,t,n){var r=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&ct(u)&&Q(u,function(h){h&&h.option&&(h.query?r.push(h):i||(i=h))}),d(o),Q(l,function(h){return d(h)}),Q(r,function(h){return d(h.option)});function d(h){Q(t,function(v){v(h,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function Yye(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Q(e,function(o,a){var s=a.match(Wye);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Kye(r[u],o,l)||(i=!1)}}),i}function Kye(e,t,n){return n==="min"?e>=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<r;n++){var i=f3[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?_n(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?_n(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function si(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Cn(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function hv(e){si(e,"itemStyle"),si(e,"lineStyle"),si(e,"areaStyle"),si(e,"label"),si(e,"labelLine"),si(e,"upperLabel"),si(e,"edgeLabel")}function gr(e,t){var n=Wg(e)&&e[t],r=Wg(n)&&n.textStyle;if(r)for(var i=0,o=Uk.length;i<o;i++){var a=Uk[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function qo(e){e&&(hv(e),gr(e,"label"),e.emphasis&&gr(e.emphasis,"label"))}function qye(e){if(Wg(e)){vT(e),hv(e),gr(e,"label"),gr(e,"upperLabel"),gr(e,"edgeLabel"),e.emphasis&&(gr(e.emphasis,"label"),gr(e.emphasis,"upperLabel"),gr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(vT(t),qo(t));var n=e.markLine;n&&(vT(n),qo(n));var r=e.markArea;r&&qo(r);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!lo(o))for(var a=0;a<o.length;a++)qo(o[a]);Q(e.categories,function(u){hv(u)})}if(i&&!lo(i))for(var a=0;a<i.length;a++)qo(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)qo(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)ct(l[a])?(qo(l[a][0]),qo(l[a][1])):qo(l[a]);e.type==="gauge"?(gr(e,"axisLabel"),gr(e,"title"),gr(e,"detail")):e.type==="treemap"?(si(e.breadcrumb,"itemStyle"),Q(e.levels,function(u){hv(u)})):e.type==="tree"&&hv(e.leaves)}}function Xs(e){return ct(e)?e:e?[e]:[]}function d3(e){return(ct(e)?e[0]:e)||{}}function Jye(e,t){wa(Xs(e.series),function(r){Wg(r)&&qye(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),wa(n,function(r){wa(Xs(e[r]),function(i){i&&(gr(i,"axisLabel"),gr(i.axisPointer,"label"))})}),wa(Xs(e.parallel),function(r){var i=r&&r.parallelAxisDefault;gr(i,"axisLabel"),gr(i&&i.axisPointer,"label")}),wa(Xs(e.calendar),function(r){si(r,"itemStyle"),gr(r,"dayLabel"),gr(r,"monthLabel"),gr(r,"yearLabel")}),wa(Xs(e.radar),function(r){gr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),wa(Xs(e.geo),function(r){Wg(r)&&(qo(r),wa(Xs(r.regions),function(i){qo(i)}))}),wa(Xs(e.timeline),function(r){qo(r),si(r,"label"),si(r,"itemStyle"),si(r,"controlStyle",!0);var i=r.data;ct(i)&&Q(i,function(o){Et(o)&&(si(o,"label"),si(o,"itemStyle"))})}),wa(Xs(e.toolbox),function(r){si(r,"iconStyle"),wa(r.feature,function(i){si(i,"iconStyle")})}),gr(d3(e.axisPointer),"label"),gr(d3(e.tooltip).axisPointer,"label")}function Qye(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function e0e(e,t,n,r){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=n)}function h3(e){e&&Q(t0e,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var t0e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n0e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],gT=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function jp(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<gT.length;n++){var r=gT[n][1],i=gT[n][0];t[r]!=null&&(t[i]=t[r])}}function p3(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function v3(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function r0e(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function h8(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&h8(e[n].children,t)}function p8(e,t){Jye(e,t),e.series=Oi(e.series),Q(e.series,function(n){if(Et(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),p3(n.label);var i=n.data;if(i&&!lo(i))for(var o=0;o<i.length;o++)p3(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=Qye(n,"pointer.color");a!=null&&e0e(n,"itemStyle.color",a)}else if(r==="bar"){jp(n),jp(n.backgroundStyle),jp(n.emphasis);var i=n.data;if(i&&!lo(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(jp(i[o]),jp(i[o]&&i[o].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),v3(n),h8(n.data,v3)}else r==="graph"||r==="sankey"?r0e(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Cn(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),h3(n)}}),e.dataRange&&(e.visualMap=e.dataRange),Q(n0e,function(n){var r=e[n];r&&(ct(r)||(r=[r]),Q(r,function(i){h3(i)}))})}function i0e(e){var t=Kt();e.eachSeries(function(n){var r=n.get("stack");if(r){var i=t.get(r)||t.set(r,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(o0e)}function o0e(e){Q(e,function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var d=a.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=a.getRawIndex(f):h=a.get(t.stackedByDimension,f);for(var m=NaN,_=n-1;_>=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;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function y0e(e){return e.data.count()}function _0e(e){sb=null;try{e(jg,_8)}catch{}return sb}var jg={},_8={},sb;b8(jg,IR);b8(_8,d8);jg.eachSeriesByType=jg.eachRawSeriesByType=function(e){sb=e};jg.eachComponent=function(e){e.mainType==="series"&&e.subType&&(sb=e.subType)};function b8(e,t){for(var n in t.prototype)e[n]=oo}var y3=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const b0e={color:y3,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],y3]};var oi="#B9B8CE",_3="#100C2A",M0=function(){return{axisLine:{lineStyle:{color:oi}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},b3=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],S8={darkMode:!0,color:b3,backgroundColor:_3,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:oi},pageTextStyle:{color:oi}},textStyle:{color:oi},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:oi}},dataZoom:{borderColor:"#71708A",textStyle:{color:oi},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:oi}},timeline:{lineStyle:{color:oi},label:{color:oi},controlStyle:{color:oi,borderColor:oi}},calendar:{itemStyle:{color:_3},dayLabel:{color:oi},monthLabel:{color:oi},yearLabel:{color:oi}},timeAxis:M0(),logAxis:M0(),valueAxis:M0(),categoryAxis:M0(),line:{symbol:"circle"},graph:{color:b3},gauge:{title:{color:oi},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:oi},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};S8.categoryAxis.splitLine.show=!1;var S0e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},i={};if(ht(t)){var o=ps(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};Q(t,function(l,u){for(var c=!1,f=0;f<a.length;f++){var d=a[f],h=u.lastIndexOf(d);if(h>0&&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<WA.length;a++){var s=WA[a],l=e.get(s);Ut(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Ze({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Zn(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var _=u[m];f.setItemVisual(d,_,i[_](h,v))}}return{dataEach:o?c:null}}},x0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<S3.length;s++){var l=S3[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function C0e(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function T0e(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function pv(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var E0e=Math.round(Math.random()*9),A0e=typeof Object.defineProperty=="function",I0e=function(){function e(){this._id="__ec_inner_"+E0e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return A0e?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();function Qc(e){return isFinite(e)}function R0e(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=Qc(r)?r:0,i=Qc(i)?i:1,o=Qc(o)?o:0,a=Qc(a)?a:0;var s=e.createLinearGradient(r,o,i,a);return s}function P0e(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=Qc(a)?a:.5,s=Qc(s)?s:.5,l=l>=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;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function O0e(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function L0(e){return parseInt(e,10)}function N0(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||L0(s[r])||L0(e.style[r]))-(L0(s[o])||0)-(L0(s[a])||0)|0}function D0e(e,t){return!e||e==="solid"||!(t>0)?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;s<T3.length;s++){var l=T3[s];(r||t[l]!==n[l])&&(o||(Qi(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(Qi(e,i),o=!0),e.shadowColor=t.shadowColor||yf.shadowColor),o}function A3(e,t,n,r,i){var o=Xg(t,i.inHover),a=r?null:n&&Xg(n,i.inHover)||{};if(o===a)return!1;var s=x8(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Qi(e,i),s=!0),w3(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Qi(e,i),s=!0),w3(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Qi(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Qi(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<E3.length;c++){var f=E3[c],d=f[0];(r||o[d]!==a[d])&&(s||(Qi(e,i),s=!0),e[d]=o[d]||f[1])}return s}function F0e(e,t,n,r,i){return x8(e,Xg(t,i.inHover),n&&Xg(n,i.inHover),r,i)}function C8(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function $0e(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),C8(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}function B0e(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var I3=1,R3=2,P3=3,O3=4;function V0e(e){var t=ub(e),n=lb(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Qi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Xg(e,t){return t&&e.__hoverStyle||e.style}function T8(e,t){ef(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ef(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||O0e(o,a))&&(a&&a.length&&(Qi(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Qi(e,n),e.save(),$0e(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Mn&&t.autoBatch&&V0e(t.style);s||B0e(i,u.transform)?(Qi(e,n),C8(e,t)):c||Qi(e,n);var f=Xg(t,n.inHover);t instanceof Mn?(n.lastDrawType!==I3&&(l=!0,n.lastDrawType=I3),A3(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),L0e(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Y1?(n.lastDrawType!==P3&&(l=!0,n.lastDrawType=P3),A3(e,t,u,l,n),k0e(e,t,f)):t instanceof qu?(n.lastDrawType!==R3&&(l=!0,n.lastDrawType=R3),F0e(e,t,u,l,n),N0e(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==O3&&(l=!0,n.lastDrawType=O3),U0e(e,t,n)),c&&r&&Qi(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function U0e(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ef(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ef(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var mT=new I0e,D3=new Am(100),M3=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function YA(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type==="svg";e.dirty&&mT.delete(e);var o=mT.get(e);if(o)return o;var a=Cn(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,mT.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<M3.length;++d){var h=a[M3[d]];if(h!=null&&!ct(h)&&!ht(h)&&!qn(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var m=D3.get(v);m&&(i?u.svgElement=m:u.image=m)}var _=A8(a.dashArrayX),y=H0e(a.dashArrayY),b=E8(a.symbol),S=G0e(_),w=I8(y),C=!i&&Uh.createCanvas(),T=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=I(),R;C&&(C.width=E.width*n,C.height=E.height*n,R=C.getContext("2d")),O(),f&&D3.put(v,C||T),u.image=C,u.svgElement=T,u.svgWidth=E.width,u.svgHeight=E.height;function I(){for(var P=1,M=0,F=S.length;M<F;++M)P=$k(P,S[M]);for(var $=1,M=0,F=b.length;M<F;++M)$=$k($,b[M].length);P*=$;var z=w*S.length*b.length;return{width:Math.max(1,Math.min(P,a.maxTileWidth)),height:Math.max(1,Math.min(z,a.maxTileHeight))}}function O(){R&&(R.clearRect(0,0,C.width,C.height),a.backgroundColor&&(R.fillStyle=a.backgroundColor,R.fillRect(0,0,C.width,C.height)));for(var P=0,M=0;M<y.length;++M)P+=y[M];if(P<=0)return;for(var F=-w,$=0,z=0,B=0;F<E.height;){if($%2===0){for(var K=z/2%b.length,j=0,le=0,me=0;j<E.width*2;){for(var ge=0,M=0;M<_[B].length;++M)ge+=_[B][M];if(ge<=0)break;if(le%2===0){var De=(1-a.symbolSize)*.5,Fe=j+_[B][le]*De,ze=F+y[$]*De,Me=_[B][le]*a.symbolSize,je=y[$]*a.symbolSize,fe=me/2%b[K].length;Ee(Fe,ze,Me,je,b[K][fe])}j+=_[B][le],++me,++le,le===_[B].length&&(le=0)}++B,B===_.length&&(B=0)}F+=y[$],++z,++$,$===y.length&&($=0)}function Ee(Se,Ce,Oe,Be,H){var G=i?1:n,ue=Ih(H,Se*G,Ce*G,Oe*G,Be*G,a.color,a.symbolKeepAspect);if(i){var we=r.painter.renderOneToVNode(ue);we&&T.children.push(we)}else T8(R,ue)}}}}function E8(e){if(!e||e.length===0)return[["rect"]];if(ht(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!ht(e[n])){t=!1;break}if(t)return E8([e]);for(var r=[],n=0;n<e.length;++n)ht(e[n])?r.push([e[n]]):r.push(e[n]);return r}function A8(e){if(!e||e.length===0)return[[0,0]];if(qn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!qn(e[r])){n=!1;break}if(n)return A8([e]);for(var i=[],r=0;r<e.length;++r)if(qn(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=Ot(e[r],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function H0e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(qn(e)){var t=Math.ceil(e);return[t,t]}var n=Ot(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function G0e(e){return Ot(e,function(t){return I8(t)})}function I8(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function z0e(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=YA(s,t)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=YA(i,t)}}})}var Pa=new Is,R8={};function W0e(e,t){R8[e]=t}function j0e(e){return R8[e]}var X0e=1,Y0e=800,K0e=900,Z0e=1e3,q0e=2e3,J0e=5e3,P8=1e3,Q0e=1100,RR=2e3,O8=3e3,e_e=4e3,BS=4500,t_e=4600,n_e=5e3,r_e=6e3,D8=7e3,i_e={PROCESSOR:{FILTER:Z0e,SERIES_FILTER:Y0e,STATISTIC:J0e},VISUAL:{LAYOUT:P8,PROGRESSIVE_LAYOUT:Q0e,GLOBAL:RR,CHART:O8,POST_CHART_LAYOUT:t_e,COMPONENT:e_e,BRUSH:n_e,CHART_ITEM:BS,ARIA:r_e,DECAL:D8}},ni="__flagInMainProcess",Ui="__pendingUpdate",yT="__needsUpdateStatus",L3=/^[a-zA-Z0-9_]+$/,_T="__connectUpdateStatus",N3=0,o_e=1,a_e=2;function M8(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return N8(this,e,t)}}function L8(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return N8(this,e,t)}}function N8(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Is.prototype[t].apply(e,n)}var k8=function(e){lt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Is),F8=k8.prototype;F8.on=L8("on");F8.off=L8("off");var Cd,bT,k0,Ql,ST,wT,xT,Yp,Kp,k3,F3,CT,$3,F0,B3,$8,jo,V3,B8=function(e){lt(t,e);function t(n,r,i){var o=e.call(this,new S0e)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},ht(r)&&(r=V8[r]),o._dom=n;var a="canvas",s="auto",l=!1;i.ssr;var u=o._zr=o3(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:nn(i.useDirtyRect,l),useCoarsePointer:nn(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=n8(Kn(u.flush,u),17),r=sn(r),r&&p8(r,!0),o._theme=r,o._locale=mge(i.locale||E6),o._coordSysMgr=new mR;var c=o._api=B3(o);function f(d,h){return d.__prio-h.__prio}return Q_(fb,f),Q_(KA,f),o._scheduler=new m8(o,c,KA,fb),o._messageCenter=new k8,o._initEvents(),o.resize=Kn(o.resize,o),u.animation.on("frame",o._onframe,o),k3(u,o),F3(u,o),uA(o),o}return t.prototype._onframe=function(){if(!this._disposed){V3(this);var n=this._scheduler;if(this[Ui]){var r=this[Ui].silent;this[ni]=!0;try{Cd(this),Ql.update.call(this,null,this[Ui].updateParams)}catch(l){throw this[ni]=!1,this[Ui]=null,l}this._zr.flush(),this[ni]=!1,this[Ui]=null,Yp.call(this,r),Kp.call(this,r)}else if(n.unfinished){var i=X0e,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),wT(this,o),n.performVisualTasks(o),F0(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[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+='<g transform="translate('+w+","+C+')">'+S.dom+"</g>"}),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;S<m.length;S++)m[S].__alive=!1;d?h.eachComponent(function(T,E){T!=="series"&&w(E)}):h.eachSeries(w);function w(T){var E=T.__requireNewView;T.__requireNewView=!1;var R="_ec_"+T.id+"_"+T.type,I=!E&&_[R];if(!I){var O=ps(T.type),P=d?Ts.getClass(O.main,O.sub):ys.getClass(O.sub);I=new P,I.init(h,b),_[R]=I,m.push(I),y.add(I.group)}T.__viewId=I.__id=R,I.__alive=!0,I.__model=T,I.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!d&&v.prepareView(I,T,h,b)}for(var S=0;S<m.length;){var C=m[S];C.__alive?S++:(!d&&C.renderTask.dispose(),y.remove(C.group),C.dispose(h,b),m.splice(S,1),_[C.__id]===C&&delete _[C.__id],C.__id=C.group.__ecComponentInfo=null)}},k0=function(f,d,h,v,m){var _=f._model;if(_.setUpdatePayload(h),!v){Q([].concat(f._componentsViews).concat(f._chartsViews),C);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var b={mainType:v,query:y};m&&(b.subType=m);var S=h.excludeSeriesId,w;S!=null&&(w=Kt(),Q(Oi(S),function(T){var E=ms(T,null);E!=null&&w.set(E,!0)})),_&&_.eachComponent(b,function(T){var E=w&&w.get(T.id)!=null;if(!E)if(Jk(h))if(T instanceof Bu)h.type===_f&&!h.notBlur&&!T.get(["emphasis","disabled"])&&ope(T,h,f._api);else{var R=tR(T.mainType,T.componentIndex,h.name,f._api),I=R.focusSelf,O=R.dispatchers;h.type===_f&&I&&!h.notBlur&&CA(T.mainType,T.componentIndex,f._api),O&&Q(O,function(P){h.type===_f?q1(P):J1(P)})}else IA(h)&&T instanceof Bu&&(lpe(T,h,f._api),Kk(T),jo(f))},f),_&&_.eachComponent(b,function(T){var E=w&&w.get(T.id)!=null;E||C(f[v==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},f);function C(T){T&&T.__alive&&T[d]&&T[d](T.__model,_,f._api,h)}},Ql={prepareAndUpdate:function(f){Cd(this),Ql.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,m=this._zr,_=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),_.create(h,v),y.performDataProcessorTasks(h,f),wT(this,h),_.update(h,v),n(h),y.performVisualTasks(h,f),CT(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",S=h.get("darkMode");m.setBackgroundColor(b),S!=null&&S!=="auto"&&m.setDarkMode(S),Pa.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,b){if(y!=="series"){var S=d.getViewOfComponentModel(b);if(S&&S.__alive)if(S.updateTransform){var w=S.updateTransform(b,h,v,f);w&&w.update&&m.push(S)}else m.push(S)}});var _=Kt();h.eachSeries(function(y){var b=d._chartsMap[y.__viewId];if(b.updateTransform){var S=b.updateTransform(y,h,v,f);S&&S.update&&_.set(y.uid,1)}else _.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:_}),F0(this,h,v,f,{},_),Pa.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),ys.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),CT(this,d,this._api,f,{}),Pa.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),ys.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var _=d.getViewOfComponentModel(m);_&&_.__alive&&_.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),Pa.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ql.update.call(this,f)}},ST=function(f,d,h,v){if(f._disposed){f.id;return}for(var m=f._model,_=f._coordSysMgr.getCoordinateSystems(),y,b=VC(m,h),S=0;S<_.length;S++){var w=_[S];if(w[d]&&(y=w[d](m,b,v))!=null)return y}},wT=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},xT=function(f,d){var h=this,v=this.getModel(),m=f.type,_=f.escapeConnect,y=cb[m],b=y.actionInfo,S=(b.update||"update").split(":"),w=S.pop(),C=S[0]!=null&&ps(S[0]);this[ni]=!0;var T=[f],E=!1;f.batch&&(E=!0,T=Ot(f.batch,function($){return $=Cn(Ze({},$),f),$.batch=null,$}));var R=[],I,O=IA(f),P=Jk(f);if(P&&zH(this._api),Q(T,function($){if(I=y.action($,h._model,h._api),I=I||Ze({},$),I.type=b.event||I.type,R.push(I),P){var z=q2(f),B=z.queryOptionMap,K=z.mainTypeSpecified,j=K?B.keys()[0]:"series";k0(h,w,$,j),jo(h)}else O?(k0(h,w,$,"series"),jo(h)):C&&k0(h,w,$,C.main,C.sub)}),w!=="none"&&!P&&!O&&!C)try{this[Ui]?(Cd(this),Ql.update.call(this,f),this[Ui]=null):Ql[w].call(this,f)}catch($){throw this[ni]=!1,$}if(E?I={type:b.event||m,escapeConnect:_,batch:R}:I=R[0],this[ni]=!1,!d){var M=this._messageCenter;if(M.trigger(I.type,I),O){var F={type:"selectchanged",escapeConnect:_,selected:upe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(F.type,F)}}},Yp=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();xT.call(this,h,f)}},Kp=function(f){!f&&this.trigger("updated")},k3=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Ui]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},F3=function(f,d){f.on("mouseover",function(h){var v=h.target,m=pv(v,AA);m&&(ape(m,h,d._api),jo(d))}).on("mouseout",function(h){var v=h.target,m=pv(v,AA);m&&(spe(m,h,d._api),jo(d))}).on("click",function(h){var v=h.target,m=pv(v,function(b){return Dn(b).dataIndex!=null},!0);if(m){var _=m.selected?"unselect":"select",y=Dn(m);d._api.dispatchAction({type:_,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],v=!1;if(f.eachComponent(function(b,S){var w=S.get("zlevel")||0,C=S.get("z")||0,T=S.getZLevelKey();v=v||!!T,(b==="series"?h:d).push({zlevel:w,z:C,idx:S.componentIndex,type:b,key:T})}),v){var m=d.concat(h),_,y;Q_(m,function(b,S){return b.zlevel===S.zlevel?b.z-S.z:b.zlevel-S.zlevel}),Q(m,function(b){var S=f.getComponent(b.type,b.idx),w=b.zlevel,C=b.key;_!=null&&(w=Math.max(_,w)),C?(w===_&&C!==y&&w++,y=C):y&&(w===_&&w++,y=""),_=w,S.setZLevel(w)})}}CT=function(f,d,h,v,m){r(d),$3(f,d,h,v,m),Q(f._chartsViews,function(_){_.__alive=!1}),F0(f,d,h,v,m),Q(f._chartsViews,function(_){_.__alive||_.remove(d,h)})},$3=function(f,d,h,v,m,_){Q(_||f._componentsViews,function(y){var b=y.__model;u(b,y),y.render(b,d,h,v),s(b,y),c(b,y)})},F0=function(f,d,h,v,m,_){var y=f._scheduler;m=Ze(m||{},{updatedSeries:d.getSeries()}),Pa.trigger("series:beforeupdate",d,h,m);var b=!1;d.eachSeries(function(S){var w=f._chartsMap[S.__viewId];w.__alive=!0;var C=w.renderTask;y.updatePayload(C,v),u(S,w),_&&_.get(S.uid)&&C.dirty(),C.perform(y.getPerformArgs(C))&&(b=!0),w.group.silent=!!S.get("silent"),a(S,w),Kk(S)}),y.unfinished=b||y.unfinished,Pa.trigger("series:layoutlabels",d,h,m),Pa.trigger("series:transition",d,h,m),d.eachSeries(function(S){var w=f._chartsMap[S.__viewId];s(S,w),c(S,w)}),o(f,d),Pa.trigger("series:afterupdate",d,h,m)},jo=function(f){f[yT]=!0,f.getZr().wakeUp()},V3=function(f){f[yT]&&(f.getZr().storage.traverse(function(d){Zv(d)||i(d)}),f[yT]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===wS&&f.states.emphasis?d.push("emphasis"):f.hoverState===SS&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,v=h.storage,m=0;v.traverse(function(_){_.isGroup||m++}),m>d.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;S<b.length;S++)v=Math.max(l(b[S],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),_){var w=f.textGuideLineConfig;_.z=d,_.zlevel=h,isFinite(v)&&(_.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Zv(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),m=h.get("duration"),_=m>0?{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<h.length;m++){var _=h[m];_[_T]=v}}Q(eg,function(h,v){f._messageCenter.on(v,function(m){if(U3[f.group]&&f[_T]!==N3){if(m&&m.escapeConnect)return;var _=f.makeActionFromEvent(m),y=[];Q(tg,function(b){b!==f&&b.group===f.group&&y.push(b)}),d(y,N3),Q(y,function(b){b[_T]!==o_e&&b.dispatchAction(_)}),d(y,a_e)}})})}}(),t}(Is),PR=B8.prototype;PR.on=M8("on");PR.off=M8("off");PR.one=function(e,t,n){var r=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(e,i)}this.on.call(this,e,i,n)};var s_e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var cb={},eg={},KA=[],ZA=[],fb=[],V8={},qA={},tg={},U3={},l_e=+new Date-0,OR="_echarts_instance_";function u_e(e,t,n){{var r=c_e(e);if(r)return r}var i=new B8(e,t,n);return i.id="ec_"+l_e++,tg[i.id]=i,NH(e,OR,i.id),$8(i),Pa.trigger("afterinit",i),i}function c_e(e){return tg[Whe(e,OR)]}function U8(e,t){V8[e]=t}function H8(e){En(ZA,e)<0&&ZA.push(e)}function G8(e,t){MR(KA,e,t,q0e)}function f_e(e){DR("afterinit",e)}function d_e(e){DR("afterupdate",e)}function DR(e,t){Pa.on(e,t)}function Wh(e,t,n){Ut(t)&&(n=t,t="");var r=Et(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!eg[t]&&(Cl(L3.test(r)&&L3.test(t)),cb[r]||(cb[r]={action:n,actionInfo:e}),eg[t]=r)}function h_e(e,t){mR.register(e,t)}function p_e(e,t){MR(fb,e,t,P8,"layout")}function zf(e,t){MR(fb,e,t,O8,"visual")}var H3=[];function MR(e,t,n,r,i){if((Ut(t)||Et(t))&&(n=t,t=r),!(En(H3,n)>=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[0]&&(n[0]=t[0]),t[1]>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&&a<n&&(a=i.interval=n),r!=null&&a>r&&(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<l;++a){var u=r[a];i[a]=u,o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;i.push(c),o[c]=a}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(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[0]&&(r[0]=n[0]),n[1]>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]<o[0]&&(n?s.push({value:Pc(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Pc(u+r,a),u!==s[s.length-1].value);)if(s.length>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;a<r.length;a++){for(var s=r[a],l=r[a-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=Pc(l.value+(u+1)*d);h>o[0]&&h<o[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=ll(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=Pc(n.value,i,!0);return k6(o)},t.prototype.calcNiceTicks=function(n,r,i){n=n||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=A_e(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var i=Math.abs(r[0]);n.fixMax||(r[1]+=i/2),r[0]-=i/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var a=this._interval;n.fixMin||(r[0]=Pc(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=Pc(Math.ceil(r[1]/a)*a))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(Ps);Ps.registerClass(jh);var R_e=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},X8=function(e){lt(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return DS(n.value,IF[Sge(oh(this._minLevelUnit))]||IF.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return wge(n,r,i,a,o)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var o=this.getSetting("useUTC"),a=k_e(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=ia,r[1]+=ia),r[1]===-1/0&&r[0]===1/0){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-ia}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,i){n=n||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>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]();j<M&&j<=r[1];)B.push({value:j}),le+=O,K[$](le),j=K.getTime();B.push({value:j,notAdd:!0})}function l(O,P,M){var F=[],$=!P.length;if(!P_e(oh(O),r[0],r[1],n)){$&&(P=[{value:N_e(new Date(r[0]),O,n)},{value:r[1]}]);for(var z=0;z<P.length-1;z++){var B=P[z].value,K=P[z+1].value;if(B!==K){var j=void 0,le=void 0,me=void 0,ge=!1;switch(O){case"year":j=Math.max(1,Math.round(t/ia/365)),le=wR(n),me=xge(n);break;case"half-year":case"quarter":case"month":j=D_e(t),le=ah(n),me=P6(n);break;case"week":case"half-week":case"day":j=O_e(t),le=MS(n),me=O6(n),ge=!0;break;case"half-day":case"quarter-day":case"hour":j=M_e(t),le=Hg(n),me=D6(n);break;case"minute":j=X3(t,!0),le=LS(n),me=M6(n);break;case"second":j=X3(t,!1),le=NS(n),me=L6(n);break;case"millisecond":j=L_e(t),le=kS(n),me=N6(n);break}s(j,B,K,le,me,ge,F),O==="year"&&M.length>1&&z===0&&M.unshift({value:M[0].value-j})}}for(var z=0;z<F.length;z++)M.push(F[z]);return F}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&a++<i;++h){var v=oh(o[h]);if(bge(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?oh(o[h+1]):null;if(v!==m){if(c.length){d=f,c.sort(function(O,P){return O.value-P.value});for(var _=[],y=0;y<c.length;++y){var b=c[y].value;(y===0||c[y-1].value!==b)&&(_.push(c[y]),b>=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;h<w.length;++h)for(var E=w[h],R=0;R<E.length;++R)C.push({value:E[R].value,level:T-h});C.sort(function(O,P){return O.value-P.value});for(var I=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&I.push(C[h]);return I}Ps.registerClass(X8);var Y3=Ps.prototype,ng=jh.prototype,F_e=wr,$_e=Math.floor,B_e=Math.ceil,B0=Math.pow,xa=Math.log,kR=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new jh,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=ng.getTicks.call(this,n);return Ot(a,function(s){var l=s.value,u=wr(B0(this.base,l));return u=l===i[0]&&this._fixMin?V0(u,o[0]):u,u=l===i[1]&&this._fixMax?V0(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var i=xa(this.base);n=xa(Math.max(0,n))/i,r=xa(Math.max(0,r))/i,ng.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=Y3.getExtent.call(this);r[0]=B0(n,r[0]),r[1]=B0(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=V0(r[0],o[0])),this._fixMax&&(r[1]=V0(r[1],o[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=xa(n[0])/xa(r),n[1]=xa(n[1])/xa(r),Y3.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=Ohe(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)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]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;Ut(a)?this._modelMinNum=U0(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=U0(t,a));var s=this._modelMaxRaw=n.get("max",!0);if(Ut(s)?this._modelMaxNum=U0(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=U0(t,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=ct(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Df(u[0],1),Df(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:n-o[0]*a),l==null&&(l=t?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=H1(s)||H1(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,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;c<i;c+=u){var f=r?r[c]:{value:o[0]+c},d=s(f,c),h=a.getTextRect(d),v=Y_e(h,a.get("rotate")||0);l?l.union(v):l=v}return l}}function Y_e(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new bn(e.x,e.y,o,a);return s}function $R(e){var t=e.get("interval");return t??"auto"}function Z8(e){return e.type==="category"&&$R(e.getLabelModel())===0}function K_e(e,t){var n={};return Q(e.mapDimensionsAll(t),function(r){n[Qve(e,r)]=!0}),Zn(n)}var Z_e=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Ot(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Yr(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}(),tI=["x","y"];function Z3(e){return e.type==="interval"||e.type==="time"}var q_e=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=tI,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Z3(n)||!Z3(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,h=a[1]-o[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=z2([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),i=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&i.contain(i.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new bn(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,r,i){i=i||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return la(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,r)),i[1]=l.toGlobalCoord(l.dataToCoord(a,r)),i},t.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(n[0]),u=o.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return la(i,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(n[0]),r),i[1]=a.coordToData(a.toLocalCoord(n[1]),r),i},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-n,a=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-o+n,l=Math.max(i[0],i[1])-a+n;return new bn(o,a,s,l)},t}(Z_e),Yg=Dr();function q8(e,t){var n=Ot(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function 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;n<e.length;n++)if(e[n].key===t)return e[n].value}function tG(e,t,n){return e.push({key:t,value:n}),n}function r1e(e){var t=Yg(e).autoInterval;return t??(Yg(e).autoInterval=e.calculateCategoryInterval())}function i1e(e){var t=o1e(e),n=Xh(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(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:h<v}}var l1e=function(e){lt(t,e);function t(n,r,i,o,a){var s=e.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(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[1]&&isFinite(_)&&isFinite(u[1]);)v=TT(v),_=u[0]+v*a;else if(f)for(m=u[1]-v*a;m>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;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===n)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",ka).models[0],i=t.yAxisModel||n&&n.getReferringComponents("yAxis",ka).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,En(a,s)<0&&(s=null);else if(r&&i)s=this.getCartesian(r.componentIndex,i.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,Q(s.x,function(c,f){Q(s.y,function(d,h){var v="x"+f+"y"+h,m=new q_e(v);m.master=i,m.model=t,i._coordsMap[v]=m,i._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(AT(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var v=new l1e(c,W_e(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){Q(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(Q3(i)){var o=e5(i),a=o.xAxisModel,s=o.yAxisModel;if(!AT(a,n)||!AT(s,n))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(i,o){Q(K_e(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return Q(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);En(n,o)<0&&n.push(o),En(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),t.eachSeries(function(i){if(Q3(i)){var o=e5(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},e.dimensions=tI,e}();function AT(e,t){return e.getCoordSysModel()===t}function t5(e,t,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)n5(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&n5(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function n5(e){return e&&e.type!=="category"&&e.type!=="time"&&j_e(e)}function f1e(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return r-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return r-i+t}}var Su=Math.PI,Pu=function(){function e(t,n){this.group=new mi,this.opt=n,this.axisModel=t,Cn(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new mi({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!r5[t]},e.prototype.add=function(t){r5[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var i=RH(n-t),o,a;return K1(i)?(a=r>0?"top":"bottom",o="center"):K1(i-Su)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<Su?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),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",i<Su*1.5&&i>Su/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<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(la(a,a,t),la(s,s,t));var c=new Fu({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Vg(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}function p1e(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=iG(u,t.transform,l,Cn(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function v1e(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Cn(s.getLineStyle(),Cn(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=iG(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function g1e(e,t,n,r){var i=n.axis,o=kg(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(kg(r.labelRotate,a.get("rotate"))||0)*Su/180,c=Pu.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Pu.isLabelSilent(n),v=n.get("triggerEvent");return Q(l,function(m,_){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,b=m.formattedLabel,S=m.rawLabel,w=a;if(f&&f[y]){var C=f[y];Et(C)&&C.textStyle&&(w=new fr(C.textStyle,a,n.ecModel))}var T=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(y),R=w.getShallow("align",!0)||c.textAlign,I=nn(w.getShallow("alignMinLabel",!0),R),O=nn(w.getShallow("alignMaxLabel",!0),R),P=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,M=nn(w.getShallow("verticalAlignMinLabel",!0),P),F=nn(w.getShallow("verticalAlignMaxLabel",!0),P),$=new uo({x:E,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Th(w,{text:b,align:_===0?I:_===l.length-1?O:R,verticalAlign:_===0?M:_===l.length-1?F:P,fill:Ut(T)?T(i.type==="category"?S:i.type==="value"?y+"":y,_):T})});if($.anid="label_"+y,AS({el:$,componentModel:n,itemName:b,formatterParamsExtra:{isTruncated:function(){return $.isTruncated},value:S,tickIndex:_}}),v){var z=Pu.makeAxisEventDataBase(n);z.targetType="axisLabel",z.value=S,z.tickIndex=_,i.type==="category"&&(z.dataIndex=y),Dn($).eventData=z}t.add($),$.updateTransform(),d.push($),e.add($),$.decomposeTransform()}),d}}function m1e(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return y1e(n,e,t),n.seriesInvolved&&b1e(n,e),n}function y1e(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Q(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Kg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(Q(s.getAxes(),Fr(m,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&Q(v.baseAxes,Fr(m,h?"cross":!0,d)),h&&Q(v.otherAxes,Fr(m,"cross",!1))}function m(_,y,b){var S=b.model.getModel("axisPointer",i),w=S.get("show");if(!(!w||w==="auto"&&!_&&!rI(S))){y==null&&(y=S.get("triggerTooltip")),S=_?_1e(b,f,i,t,_,y):S;var C=S.get("snap"),T=S.get("triggerEmphasis"),E=Kg(b.model),R=y||C||b.type==="category",I=e.axesInfo[E]={key:E,axis:b,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:T,involveSeries:R,snap:C,useHandle:rI(S),seriesModels:[],linkGroup:null};u[E]=I,e.seriesInvolved=e.seriesInvolved||R;var O=S1e(o,b);if(O!=null){var P=a[O]||(a[O]={axesInfo:{}});P.axesInfo[E]=I,P.mapper=o[O].mapper,I.linkGroup=P}}}})}function _1e(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Q(s,function(d){l[d]=sn(a.get(d))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=a.get("crossStyle");f&&Cn(u,f.textStyle)}}return e.model.getModel("axisPointer",new fr(l,n,r))}function b1e(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||Q(e.coordSysAxesInfo[Kg(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function S1e(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(IT(o[r+"AxisId"],n.id)||IT(o[r+"AxisIndex"],n.componentIndex)||IT(o[r+"AxisName"],n.name))return i}}function IT(e,t){return e==="all"||ct(e)&&En(e,t)>=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]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function BR(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Kg(e)]}function x1e(e){var t=BR(e);return t&&t.axisPointerModel}function rI(e){return!!e.get(["handle","show"])}function Kg(e){return e.type+"||"+e.id}var a5={},oG=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,o){this.axisPointerClass&&w1e(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},t.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},t.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=x1e(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){a5[n]=r},t.getAxisPointerClass=function(n){return n&&a5[n]},t.type="axis",t}(Ts),iI=Dr();function C1e(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=iI(e).splitAreaColors,d=Kt(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var _=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=ct(s)?s:[s];for(var v=1;v<u.length;v++){var b=i.toGlobalCoord(u[v].coord),S=void 0,w=void 0,C=void 0,T=void 0;i.isHorizontal()?(S=_,w=l.y,C=b-S,T=l.height,_=S+C):(S=l.x,w=_,C=l.width,T=b-w,_=w+T);var E=u[v-1].tickValue;E!=null&&d.set(E,h),t.add(new Zr({anid:E!=null?"area_"+E:null,shape:{x:S,y:w,width:C,height:T},style:Cn({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}iI(e).splitAreaColors=d}}}function T1e(e){iI(e).splitAreaColors=null}var E1e=["axisLine","axisTickLabel","axisName"],A1e=["splitArea","splitLine","minorSplitLine"],aG=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new mi,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=nI(s,n),u=new Pu(n,Ze({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(eI(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));Q(E1e,u.add,u),this._axisGroup.add(u.getGroup()),Q(A1e,function(f){n.get([f,"show"])&&I1e[f](this,this._axisGroup,n,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||t6(a,this._axisGroup,n),e.prototype.render.call(this,n,r,i,o)}},t.prototype.remove=function(){T1e(this)},t.type="cartesianAxis",t}(oG),I1e={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color"),l=o.get("showMinLine")!==!1,u=o.get("showMaxLine")!==!1;s=ct(s)?s:[s];for(var c=r.coordinateSystem.getRect(),f=i.isHorizontal(),d=0,h=i.getTicksCoords({tickModel:o}),v=[],m=[],_=a.getLineStyle(),y=0;y<h.length;y++){var b=i.toGlobalCoord(h[y].coord);if(!(y===0&&!l||y===h.length-1&&!u)){var S=h[y].tickValue;f?(v[0]=b,v[1]=c.y,m[0]=b,m[1]=c.y+c.height):(v[0]=c.x,v[1]=b,m[0]=c.x+c.width,m[1]=b);var w=d++%s.length,C=new Fu({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:m[0],y2:m[1]},style:Cn({stroke:s[w]},_),silent:!0});Vg(C.shape,_.lineWidth),t.add(C)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=a.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var m=i.toGlobalCoord(u[h][v].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var _=new Fu({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Vg(_.shape,d.lineWidth),t.add(_)}},splitArea:function(e,t,n,r){C1e(e,t,n,r)}},sG=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="xAxis",t}(aG),R1e=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=sG.type,n}return t.type="yAxis",t}(aG),P1e=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Zr({shape:n.coordinateSystem.getRect(),style:Cn({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ts),s5={offset:0};function O1e(e){e.registerComponentView(P1e),e.registerComponentModel(y_e),e.registerCoordinateSystem("cartesian2d",c1e),z3(e,"x",JA,s5),z3(e,"y",JA,s5),e.registerComponentView(sG),e.registerComponentView(R1e),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var zc=Dr(),l5=sn,RT=Kn,D1e=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new mi,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Fr(u5,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}f5(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),i=t.axis,o=i.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=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<a||v>=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<r;n++)if(e[n]in t)return e[n]}}var gG=vG(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),obe=vG(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function mG(e,t){if(!e)return t;t=F6(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function abe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var sbe=mG(obe,"transition"),VR=mG(gG,"transform"),lbe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Mt.transform3dSupported?"will-change:transform;":"");function ube(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function cbe(e,t,n){if(!ht(n)||n==="inside")return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=Nf(t);var o=ube(n),a=Math.max(Math.round(i)*1.5,6),s="",l=VR+":",u;En(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,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'<div style="'+m.join("")+'"></div>'}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<t.length;l++)Ng(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var r=this._styleCoord;if(_5(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=y5(r[0],r[1]);Q(o,function(a){i[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Mt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Kn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),vbe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),S5(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,i,o){var a=this;Et(t)&&Zi(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new uo({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:W6(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),Q(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),Q(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=b5(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var i=this._styleCoord;S5(i,this._zr,t,n),t=i[0],n=i[1];var o=r.style,a=ru(o.borderWidth||0),s=b5(o);r.x=t+a+s.left,r.y=n+a+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Kn(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function ru(e){return Math.max(0,e)}function b5(e){var t=ru(e.shadowBlur||0),n=ru(e.shadowOffsetX||0),r=ru(e.shadowOffsetY||0);return{left:ru(t-n),right:ru(t+n),top:ru(t-r),bottom:ru(t+r)}}function S5(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gbe=new Zr({shape:{x:-1,y:-1,width:2,height:2}}),mbe=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.init=function(n,r){if(!(Mt.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=jhe(i.get("renderMode"));this._tooltipContent=o==="richText"?new vbe(r):new pbe(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(n,r,i){if(!(Mt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?r8(this,"_updatePosition",50,"fixRate"):UA(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");fG("itemTooltip",this._api,Kn(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||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"?`
`:"<br/>",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<n.length;i++){var o=n[i].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&Z2(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Kt(),s=Ot(o,function(l){return(ht(l)||qn(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new fr(l,this,this.ecModel))},this);this._data=Yr(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;Q(o,function(a){r[a.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;Q(n,function(i){r[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;Q(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&En(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function lI(e,t,n,r){_G(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function uI(e,t,n,r){_G(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}function Ebe(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function qp(e,t,n){var r=e==="allSelect"||e==="inverseSelect",i={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){r?s[e]():s[e](t.name),T5(s,i),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){Q(i,function(l,u){s[l?"select":"unSelect"](u)}),T5(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function T5(e,t){var n=t||{};return Q(e.getData(),function(r){var i=r.get("name");if(!(i===`
`||i==="")){var o=e.isSelected(i);Of(n,i)?n[i]=n[i]&&o:n[i]=o}}),n}function Abe(e){e.registerAction("legendToggleSelect","legendselectchanged",Fr(qp,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Fr(qp,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Fr(qp,"inverseSelect")),e.registerAction("legendSelect","legendselected",Fr(qp,"select")),e.registerAction("legendUnSelect","legendunselected",Fr(qp,"unSelect"))}function bG(e){e.registerComponentModel(aI),e.registerComponentView(yG),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,Ebe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),Abe(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.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,i){var o=$S(n);e.prototype.init.call(this,n,r,i),E5(this,n,o)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),E5(this,this.option,n)},t.type="legend.scroll",t.defaultOption=lge(aI.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(aI);function E5(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,Ah(t,n,{type:"box",ignoreSize:!!i})}var A5=mi,OT=["width","height"],DT=["x","y"],Rbe=function(e){lt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new A5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new A5)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this;e.prototype.renderInner.call(this,n,r,i,o,a,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=ct(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new uo({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(m,_){var y=m+"DataIndex",b=fR(r.get("pageIcons",!0)[r.getOrient().name][_],{onclick:Kn(u._pageGo,u,y,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=m,c.add(b)}},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=OT[u],f=DT[u],d=OT[1-u],h=DT[1-u];a&&Jv("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),m=l.getBoundingRect(),_=[-m.x,-m.y],y=sn(i);a&&(y[c]=i[c]-m[c]-v);var b=this._layoutContentAndController(n,o,y,u,c,d,h,f);if(a){if(s==="end")_[u]+=b[c]+v;else{var S=m[c]+v;_[u]-=S,b[f]-=S}b[c]+=m[c]+v,_[1-u]+=b[h]+b[d]/2-m[d]/2,b[d]=Math.max(b[d],m[d]),b[h]=Math.min(b[h],m[h]+_[1-u]),l.x=_[0],l.y=_[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Jv(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),Jv("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[a]>i[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<b.i&&(b=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=S;return v;function w(T){if(T){var E=T.getBoundingRect(),R=E[l]+T[l];return{s:R,e:R+E[s],i:T.__legendDataIndex}}}function C(T,E){return T.e>=E&&T.s<=E+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(r=s)}),r??o},t.type="legend.scroll",t}(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<a.length;++E){var R=a[E];if(R.intersect(b)){var I=new bn(0,0,0,0);I.copy(R),I.union(b),a[E]=I,w=!0;break}else if(l){u.copy(b),u.union(R);var O=b.width*b.height,P=R.width*R.height,M=u.width*u.height,F=M-O-P;F<C&&(C=F,T=E)}}if(l&&(a[T].union(b),w=!0),!w){var S=new bn(0,0,0,0);S.copy(b),a.push(S)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(i,o,!0,!0),v=d.__isRendered&&(d.__dirty&gs||!h)?d.getPrevPaintRect():null;v&&c(v);var m=h&&(d.__dirty&gs||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d&&d.shouldBePainted(i,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var _;do{_=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var y=f+1;y<a.length;)a[f].intersect(a[y])?(_=!0,a[f].union(a[y]),a.splice(y,1)):y++;f++}}while(_);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=r+"px"),o.width=n*i,o.height=r*i,s&&(s.width=n*i,s.height=r*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var h=this.domBack;function v(m,_,y,b){if(a.clearRect(m,_,y,b),r&&r!=="transparent"){var S=void 0;if(pS(r)){var w=r.global||r.__width===y&&r.__height===b;S=w&&r.__canvasGradient||jA(a,r,{x:0,y:0,width:y,height:b}),r.__canvasGradient=S,r.__width=y,r.__height=b}else $fe(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,S=XA(a,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=S||r,a.fillRect(m,_,y,b),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(h,m,_,y,b),a.restore())}!i||u?v(0,0,s,l):i.length&&Q(i,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Is),R5=1e5,Oc=314159,G0=.01,Mbe=.001;function Lbe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Nbe(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var kbe=function(){function e(t,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Ze({},r||{}),this.dpr=r.devicePixelRatio||X1,this._singleCanvas=o,this.root=t;var a=t.style;a&&(oH(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=t,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new MT(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Oc]=h,h.zlevel=Oc,s.push(Oc),this._domRoot=t}else{this._width=N0(t,0,r),this._height=N0(t,1,r);var u=this._domRoot=Nbe(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<n;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(R5)),o||(o=r.ctx,o.save()),ef(o,s,i,a===n-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(R5)},e.prototype.paintOne=function(t,n){T8(t,n)},e.prototype._paintList=function(t,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;ab(function(){l._paintList(t,n,r,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Oc).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,d=function(m){var _=o[m],y=_.ctx,b=a&&_.createRepaintRects(t,n,h._width,h._height),S=r?_.__startIndex:_.__drawIndex,w=!r&&_.incremental&&Date.now,C=w&&Date.now(),T=_.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(_.__startIndex===_.__endIndex)_.clear(!1,T,b);else if(S===_.__startIndex){var E=t[S];(!E.incremental||!E.notClear||r)&&_.clear(!1,T,b)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=_.__startIndex);var R,I=function(F){var $={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(R=S;R<_.__endIndex;R++){var z=t[R];if(z.__inHover&&(f=!0),i._doPaintEl(z,_,a,F,$,R===_.__endIndex-1),w){var B=Date.now()-C;if(B>15)break}}$.prevElClipPaths&&y.restore()};if(b)if(b.length===0)R=_.__endIndex;else for(var O=h.dpr,P=0;P<b.length;++P){var M=b[P];y.save(),y.beginPath(),y.rect(M.x*O,M.y*O,M.width*O,M.height*O),y.clip(),I(M),y.restore()}else y.save(),I(),y.restore();_.__drawIndex=R,_.__drawIndex<_.__endIndex&&(c=!1)},h=this,v=0;v<o.length;v++)d(v);return Mt.wxa&&Q(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,i,o,a){var s=n.ctx;if(r){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ef(s,t,o,a),t.setPrevPaintRect(l))}else ef(s,t,o,a)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Oc);var r=this._layers[t];return r||(r=new MT("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?_n(r,this._layerConfig[t],!0):this._layerConfig[t-G0]&&_n(r,this._layerConfig[t-G0],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&Lbe(n)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];t.call(n,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&t.call(n,a,o)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||t.call(n,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var i=t[r];if(i.zlevel!==t[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+Mbe,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?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<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+G0){var a=this._layers[o];_n(a,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,i=n[t];i&&(i.dom.parentNode.removeChild(i.dom),delete n[t],r.splice(En(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),n!=null&&(i.height=n),t=N0(o,0,i),n=N0(o,1,i),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(Oc).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Oc].dom;var n=new MT("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=n.dom.width,o=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,i,o):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];ef(r,c,a,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function Fbe(e){e.registerPainter("canvas",kbe)}const $be={class:"relative h-28 w-full overflow-hidden"},UR=it({__name:"BasicCharts",props:{data:{},labelFormatter:{type:Function},toolTipFormatter:{type:Function},min:{}},setup(e){Vu([Zme,nbe,Dbe,wbe,Fbe]);const t=e,n=ke(),r=ke(),i=ke(!1),o=ke();return fo(()=>{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<Zc+1))return`
<div class="flex items-center my-2 gap-1">
<div class="w-4 h-4 rounded-full" style="background-color: ${a.color}"></div>
${a.seriesName}
(${Oo(a.data.name).format("HH:mm:ss")}): ${a.data.value}
</div>`}).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;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},db.apply(this,arguments)},lwe=function(){function e(t,n,r){var i=this;this.endVal=n,this.options=r,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(o){i.startTime||(i.startTime=o);var a=o-i.startTime;i.remaining=i.duration-a,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(a,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(a,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(a/i.duration);var s=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a<i.duration?i.rAF=requestAnimationFrame(i.count):i.finalEndVal!==null?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(o){var a,s,l,u,c=o<0?"-":"";a=Math.abs(o).toFixed(i.options.decimalPlaces);var f=(a+="").split(".");if(s=f[0],l=f.length>1?i.options.decimal+f[1]:"",i.options.useGrouping){u="";for(var d=3,h=0,v=0,m=s.length;v<m;++v)i.options.useIndianSeparators&&v===4&&(d=2,h=1),v!==0&&h%d==0&&(u=i.options.separator+u),h++,u=s[m-v-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(_){return i.options.numerals[+_]}),l=l.replace(/[0-9]/g,function(_){return i.options.numerals[+_]})),c+i.options.prefix+s+l+i.options.suffix},this.easeOutExpo=function(o,a,s,l){return s*(1-Math.pow(2,-10*o/l))*1024/1023+a},this.options=db(db({},this.defaults),r),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof t=="string"?document.getElementById(t):t,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return i.handleScroll(i)}),window.onscroll=function(){window.onScrollFns.forEach(function(o){return o()})},this.handleScroll(this)))}return e.prototype.handleScroll=function(t){if(t&&window&&!t.once){var n=window.innerHeight+window.scrollY,r=t.el.getBoundingClientRect(),i=r.top+window.pageYOffset,o=r.top+r.height+window.pageYOffset;o<n&&o>window.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>o||i>n)&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n;if(this.el){var r=this.formattingFn(t);!((n=this.options.plugin)===null||n===void 0)&&n.render?this.options.plugin.render(this.el,r):this.el.tagName==="INPUT"?this.el.value=r:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=r:this.el.innerHTML=r}},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();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":f<mu.value?"bg-low-latency":f<il.value?"bg-medium-latency":"bg-high-latency",s=Le(()=>o.value.filter(f=>f.latency<mu.value&&f.latency>Ji).length),l=Le(()=>o.value.filter(f=>f.latency>=mu.value&&f.latency<il.value).length),u=Le(()=>o.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<e.length;n++)t[n]=e.charCodeAt(n);return t}const ri={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class Exe{constructor(t,n){this.stack=t,this.cbs=n,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=O5,this.delimiterClose=D5,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=O5,this.delimiterClose=D5}getPos(t){let n=1,r=t+1;for(let i=this.newlines.length-1;i>=0;i--){const o=this.newlines[i];if(t>o){n=i+2,r=t-o;break}}return{column:r,line:n,offset:t}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(t){t===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t))}stateInterpolationOpen(t){if(t===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const n=this.index+1-this.delimiterOpen.length;n>this.sectionStart&&this.cbs.ontext(this.sectionStart,n),this.state=3,this.sectionStart=n}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(t)):(this.state=1,this.stateText(t))}stateInterpolation(t){t===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(t))}stateInterpolationClose(t){t===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(t))}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?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<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.sectionStart=n+2,this.stateInClosingTagName(t),this.inRCDATA=!1;return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===ri.TitleEnd||this.currentSequence===ri.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&t===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(t)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===60)}stateCDATASequence(t){t===ri.Cdata[this.sequenceIndex]?++this.sequenceIndex===ri.Cdata.length&&(this.state=28,this.currentSequence=ri.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);if(n===10&&this.newlines.push(this.index),n===t)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ri.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(t,n){this.enterRCDATA(t,n),this.state=31}enterRCDATA(t,n){this.inRCDATA=!0,this.currentSequence=t,this.sequenceIndex=n}stateBeforeTagName(t){t===33?(this.state=22,this.sectionStart=this.index+1):t===63?(this.state=24,this.sectionStart=this.index+1):M5(t)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:t===116?this.state=30:this.state=t===115?29:6):t===47?this.state=8:(this.state=1,this.stateText(t))}stateInTagName(t){eu(t)&&this.handleTagName(t)}stateInSFCRootTagName(t){if(eu(t)){const n=this.buffer.slice(this.sectionStart,this.index);n!=="template"&&this.enterRCDATA(gb("</"+n),0),this.handleTagName(t)}}handleTagName(t){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)}stateBeforeClosingTagName(t){Co(t)||(t===62?(this.state=1,this.sectionStart=this.index+1):(this.state=M5(t)?9:27,this.sectionStart=this.index))}stateInClosingTagName(t){(t===62||Co(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){t===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(t){t===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):t===47?this.state=7:t===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Co(t)||this.handleAttrStart(t)}handleAttrStart(t){t===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):t===46||t===58||t===64||t===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Co(t)||(this.state=11,this.stateBeforeAttrName(t))}stateInAttrName(t){(t===61||eu(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(t))}stateInDirName(t){t===61||eu(t)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):t===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(t){t===61||eu(t)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===91?this.state=15:t===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(t){t===93?this.state=14:(t===61||eu(t))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(t))}stateInDirModifier(t){t===61||eu(t)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(t)):t===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(t){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(t)}stateAfterAttrName(t){t===61?this.state=18:t===47||t===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(t)):Co(t)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(t))}stateBeforeAttrValue(t){t===34?(this.state=19,this.sectionStart=this.index+1):t===39?(this.state=20,this.sectionStart=this.index+1):Co(t)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(t))}handleInAttrValue(t,n){(t===n||this.fastForwardTo(n))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(t){this.handleInAttrValue(t,34)}stateInAttrValueSingleQuotes(t){this.handleInAttrValue(t,39)}stateInAttrValueNoQuotes(t){Co(t)||t===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(t)):(t===39||t===60||t===61||t===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(t){t===91?(this.state=26,this.sequenceIndex=0):this.state=t===45?25:23}stateInDeclaration(t){(t===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(t){t===45?(this.state=28,this.currentSequence=ri.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(t){(t===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){t===ri.ScriptEnd[3]?this.startSpecial(ri.ScriptEnd,4):t===ri.StyleEnd[3]?this.startSpecial(ri.StyleEnd,4):(this.state=6,this.stateInTagName(t))}stateBeforeSpecialT(t){t===ri.TitleEnd[3]?this.startSpecial(ri.TitleEnd,4):t===ri.TextareaEnd[3]?this.startSpecial(ri.TextareaEnd,4):(this.state=6,this.stateInTagName(t))}startEntity(){}stateInEntity(){}parse(t){for(this.buffer=t;this.index<this.buffer.length;){const n=this.buffer.charCodeAt(this.index);switch(n===10&&this.newlines.push(this.index),this.state){case 1:{this.stateText(n);break}case 2:{this.stateInterpolationOpen(n);break}case 3:{this.stateInterpolation(n);break}case 4:{this.stateInterpolationClose(n);break}case 31:{this.stateSpecialStartSequence(n);break}case 32:{this.stateInRCDATA(n);break}case 26:{this.stateCDATASequence(n);break}case 19:{this.stateInAttrValueDoubleQuotes(n);break}case 12:{this.stateInAttrName(n);break}case 13:{this.stateInDirName(n);break}case 14:{this.stateInDirArg(n);break}case 15:{this.stateInDynamicDirArg(n);break}case 16:{this.stateInDirModifier(n);break}case 28:{this.stateInCommentLike(n);break}case 27:{this.stateInSpecialComment(n);break}case 11:{this.stateBeforeAttrName(n);break}case 6:{this.stateInTagName(n);break}case 34:{this.stateInSFCRootTagName(n);break}case 9:{this.stateInClosingTagName(n);break}case 5:{this.stateBeforeTagName(n);break}case 17:{this.stateAfterAttrName(n);break}case 20:{this.stateInAttrValueSingleQuotes(n);break}case 18:{this.stateBeforeAttrValue(n);break}case 8:{this.stateBeforeClosingTagName(n);break}case 10:{this.stateAfterClosingTagName(n);break}case 29:{this.stateBeforeSpecialS(n);break}case 30:{this.stateBeforeSpecialT(n);break}case 21:{this.stateInAttrValueNoQuotes(n);break}case 7:{this.stateInSelfClosingTag(n);break}case 23:{this.stateInDeclaration(n);break}case 22:{this.stateBeforeDeclaration(n);break}case 25:{this.stateBeforeComment(n);break}case 24:{this.stateInProcessingInstruction(n);break}case 33:{this.stateInEntity();break}}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length;this.sectionStart>=t||(this.state===28?this.currentSequence===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 <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function cI(e,{compatConfig:t}){const n=t&&t[e];return e==="MODE"?n||3:n}function Sf(e,t){const n=cI("MODE",t),r=cI(e,t);return n===3?r===!0:r!==!1}function Dh(e,t,n,...r){return Sf(e,t)}function Rxe(e,t,n,...r){if(cI(e,t)==="suppress-warning")return;const{message:o,link:a}=Ixe[e],s=`(deprecation ${e}) ${typeof o=="function"?o(...r):o}${a?`
Details: ${a}`:""}`,l=new SyntaxError(s);l.code=e,n&&(l.loc=n),t.onWarn(l)}function JR(e){throw e}function $G(e){}function zn(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,o=new SyntaxError(String(i));return o.code=e,o.loc=t,o}const Pxe={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVALID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},Oxe={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '<!--' in comment.",17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:`v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function Dxe(e,t,n=!1,r=[],i=Object.create(null)){}function Mxe(e,t,n){return!1}function Lxe(e,t){if(e&&(e.type==="ObjectProperty"||e.type==="ArrayPattern")){let n=t.length;for(;n--;){const r=t[n];if(r.type==="AssignmentExpression")return!0;if(r.type!=="ObjectProperty"&&!r.type.endsWith("Pattern"))break}}return!1}function Nxe(e){let t=e.length;for(;t--;){const n=e[t];if(n.type==="NewExpression")return!0;if(n.type!=="MemberExpression")break}return!1}function kxe(e,t){for(const n of e.params)for(const r of ol(n))t(r)}function Fxe(e,t){for(const n of e.body)if(n.type==="VariableDeclaration"){if(n.declare)continue;for(const r of n.declarations)for(const i of ol(r.id))t(i)}else if(n.type==="FunctionDeclaration"||n.type==="ClassDeclaration"){if(n.declare||!n.id)continue;t(n.id)}else $xe(n)&&Bxe(n,!0,t)}function $xe(e){return e.type==="ForOfStatement"||e.type==="ForInStatement"||e.type==="ForStatement"}function Bxe(e,t,n){const r=e.type==="ForStatement"?e.init:e.left;if(r&&r.type==="VariableDeclaration"&&(r.kind==="var"&&t))for(const i of r.declarations)for(const o of ol(i.id))n(o)}function ol(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;n.type==="MemberExpression";)n=n.object;t.push(n);break;case"ObjectPattern":for(const r of e.properties)r.type==="RestElement"?ol(r.argument,t):ol(r.value,t);break;case"ArrayPattern":e.elements.forEach(r=>{r&&ol(r,t)});break;case"RestElement":ol(e.argument,t);break;case"AssignmentPattern":ol(e.left,t);break}return t}const Vxe=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),BG=e=>e&&(e.type==="ObjectProperty"||e.type==="ObjectMethod")&&!e.computed,Uxe=(e,t)=>BG(t)&&t.key===e,VG=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];function UG(e){return VG.includes(e.type)?UG(e.expression):e}const Pi=e=>e.type===4&&e.isStatic;function QR(e){switch(e){case"Teleport":case"teleport":return sh;case"Suspense":case"suspense":return GS;case"KeepAlive":case"keep-alive":return Zg;case"BaseTransition":case"base-transition":return WR}}const Hxe=/^\d|[^\$\w\xA0-\uFFFF]/,Mm=e=>!Hxe.test(e),Gxe=/[A-Za-z_$\xA0-\uFFFF]/,zxe=/[\.\?\w$\xA0-\uFFFF]/,Wxe=/\s+[.[]\s*|\s*[.[]\s+/g,HG=e=>e.type===4?e.content:e.loc.source,GG=e=>{const t=HG(e).trim().replace(Wxe,s=>s.trim());let n=0,r=[],i=0,o=0,a=null;for(let s=0;s<t.length;s++){const l=t.charAt(s);switch(n){case 0:if(l==="[")r.push(n),n=1,i++;else if(l==="(")r.push(n),n=2,o++;else if(!(s===0?Gxe:zxe).test(l))return!1;break;case 1:l==="'"||l==='"'||l==="`"?(r.push(n),n=3,a=l):l==="["?i++:l==="]"&&(--i||(n=r.pop()));break;case 2:if(l==="'"||l==='"'||l==="`")r.push(n),n=3,a=l;else if(l==="(")o++;else if(l===")"){if(s===t.length-1)return!1;--o||(n=r.pop())}break;case 3:l===a&&(n=r.pop(),a=null);break}}return!i&&!o},jxe=Br,eP=GG,Xxe=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,zG=e=>Xxe.test(HG(e)),Yxe=Br,WG=zG;function Kxe(e,t,n=t.length){return jG({offset:e.offset,line:e.line,column:e.column},t,n)}function jG(e,t,n=t.length){let r=0,i=-1;for(let o=0;o<n;o++)t.charCodeAt(o)===10&&(r++,i=o);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function Zxe(e,t){if(!e)throw new Error(t||"unexpected compiler condition")}function Ri(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&(n||i.exp)&&(Rt(t)?i.name===t:t.test(i.name)))return i}}function Lm(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const o=e.props[i];if(o.type===6){if(n)continue;if(o.name===t&&(o.value||r))return o}else if(o.name==="bind"&&(o.exp||r)&&wu(o.arg,t))return o}}function wu(e,t){return!!(e&&Pi(e)&&e.content===t)}function XG(e){return e.props.some(t=>t.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function i1(e){return e.type===5||e.type===2}function tP(e){return e.type===7&&e.name==="slot"}function Mh(e){return e.type===1&&e.tagType===3}function Qg(e){return e.type===1&&e.tagType===2}const qxe=new Set([Ph,Kh]);function YG(e,t=[]){if(e&&!Rt(e)&&e.type===14){const n=e.callee;if(!Rt(n)&&qxe.has(n))return YG(e.arguments[0],t.concat(e))}return[e,t]}function em(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],o=[],a;if(i&&!Rt(i)&&i.type===14){const s=YG(i);i=s[0],o=s[1],a=o[o.length-1]}if(i==null||Rt(i))r=Ao([t]);else if(i.type===14){const s=i.arguments[0];!Rt(s)&&s.type===15?L5(t,s)||s.properties.unshift(t):i.callee===tw?r=br(n.helper(qg),[Ao([t]),i]):i.arguments.unshift(Ao([t])),!r&&(r=i)}else i.type===15?(L5(t,i)||i.properties.unshift(t),r=i):(r=br(n.helper(qg),[Ao([t]),i]),a&&a.callee===Kh&&(a=o[o.length-2]));e.type===13?a?a.arguments[0]=r:e.props=r:a?a.arguments[0]=r:e.arguments[2]=r}function L5(e,t){let n=!1;if(e.key.type===4){const r=e.key.content;n=t.properties.some(i=>i.key.type===4&&i.key.content===r)}return n}function Lh(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,r)=>n==="-"?"_":e.charCodeAt(r).toString())}`}function Aa(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){const r=e.props[n];if(r.type===7&&(Aa(r.arg,t)||Aa(r.exp,t)))return!0}return e.children.some(n=>Aa(n,t));case 11:return Aa(e.source,t)?!0:e.children.some(n=>Aa(n,t));case 9:return e.branches.some(n=>Aa(n,t));case 10:return Aa(e.condition,t)?!0:e.children.some(n=>Aa(n,t));case 4:return!e.isStatic&&Mm(e.content)&&!!t[e.content];case 8:return e.children.some(n=>vn(n)&&Aa(n,t));case 5:case 12:return Aa(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function KG(e){return e.type===14&&e.callee===rw?e.arguments[1].returns:e}const ZG=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,qG={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:$d,isPreTag:$d,isIgnoreNewlineTag:$d,isCustomElement:$d,onError:JR,onWarn:$G,comments:!1,prefixIdentifiers:!1};let hn=qG,tm=null,gl="",ai=null,on=null,zi="",Ks=-1,Uc=-1,nP=0,uu=!1,fI=null;const Xn=[],lr=new Exe(Xn,{onerr:Ys,ontext(e,t){K0(jr(e,t),e,t)},ontextentity(e,t,n){K0(e,t,n)},oninterpolation(e,t){if(uu)return K0(jr(e,t),e,t);let n=e+lr.delimiterOpen.length,r=t-lr.delimiterClose.length;for(;Co(gl.charCodeAt(n));)n++;for(;Co(gl.charCodeAt(r-1));)r--;let i=jr(n,r);i.includes("&")&&(i=hn.decodeEntities(i,!1)),dI({type:5,content:a1(i,!1,vr(n,r)),loc:vr(e,t)})},onopentagname(e,t){const n=jr(e,t);ai={type:1,tag:n,ns:hn.getNamespace(n,Xn[0],hn.ns),tagType:0,props:[],children:[],loc:vr(e-1,t),codegenNode:void 0}},onopentagend(e){k5(e)},onclosetag(e,t){const n=jr(e,t);if(!hn.isVoidTag(n)){let r=!1;for(let i=0;i<Xn.length;i++)if(Xn[i].tag.toLowerCase()===n.toLowerCase()){r=!0,i>0&&Ys(24,Xn[0].loc.start.offset);for(let a=0;a<=i;a++){const s=Xn.shift();o1(s,t,a<i)}break}r||Ys(23,JG(e,60))}},onselfclosingtag(e){const t=ai.tag;ai.isSelfClosing=!0,k5(e),Xn[0]&&Xn[0].tag===t&&o1(Xn.shift(),e)},onattribname(e,t){on={type:6,name:jr(e,t),nameLoc:vr(e,t),value:void 0,loc:vr(e)}},ondirname(e,t){const n=jr(e,t),r=n==="."||n===":"?"bind":n==="@"?"on":n==="#"?"slot":n.slice(2);if(!uu&&r===""&&Ys(26,e),uu||r==="")on={type:6,name:n,nameLoc:vr(e,t),value:void 0,loc:vr(e)};else if(on={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n==="."?[kt("prop")]:[],loc:vr(e)},r==="pre"){uu=lr.inVPre=!0,fI=ai;const i=ai.props;for(let o=0;o<i.length;o++)i[o].type===7&&(i[o]=lCe(i[o]))}},ondirarg(e,t){if(e===t)return;const n=jr(e,t);if(uu)on.name+=n,tf(on.nameLoc,t);else{const r=n[0]!=="[";on.arg=a1(r?n:n.slice(1,-1),r,vr(e,t),r?3:0)}},ondirmodifier(e,t){const n=jr(e,t);if(uu)on.name+="."+n,tf(on.nameLoc,t);else if(on.name==="slot"){const r=on.arg;r&&(r.content+="."+n,tf(r.loc,t))}else{const r=kt(n,!0,vr(e,t));on.modifiers.push(r)}},onattribdata(e,t){zi+=jr(e,t),Ks<0&&(Ks=e),Uc=t},onattribentity(e,t,n){zi+=e,Ks<0&&(Ks=t),Uc=n},onattribnameend(e){const t=on.loc.start.offset,n=jr(t,e);on.type===7&&(on.rawName=n),ai.props.some(r=>(r.type===7?r.rawName:r.name)===n)&&Ys(2,t)},onattribend(e,t){if(ai&&on){if(tf(on.loc,t),e!==0)if(zi.includes("&")&&(zi=hn.decodeEntities(zi,!0)),on.type===6)on.name==="class"&&(zi=ez(zi).trim()),e===1&&!zi&&Ys(13,t),on.value={type:2,content:zi,loc:e===1?vr(Ks,Uc):vr(Ks-1,Uc+1)},lr.inSFCRoot&&ai.tag==="template"&&on.name==="lang"&&zi&&zi!=="html"&&lr.enterRCDATA(gb("</template"),0);else{let n=0;on.exp=a1(zi,!1,vr(Ks,Uc),0,n),on.name==="for"&&(on.forParseResult=Qxe(on.exp));let r=-1;on.name==="bind"&&(r=on.modifiers.findIndex(i=>i.content==="sync"))>-1&&Dh("COMPILER_V_BIND_SYNC",hn,on.loc,on.rawName)&&(on.name="model",on.modifiers.splice(r,1))}(on.type!==7||on.name!=="pre")&&ai.props.push(on)}zi="",Ks=Uc=-1},oncomment(e,t){hn.comments&&dI({type:3,content:jr(e,t),loc:vr(e-4,t+3)})},onend(){const e=gl.length;for(let t=0;t<Xn.length;t++)o1(Xn[t],e-1),Ys(24,Xn[t].loc.start.offset)},oncdata(e,t){Xn[0].ns!==0?K0(jr(e,t),e,t):Ys(1,e-9)},onprocessinginstruction(e){(Xn[0]?Xn[0].ns:hn.ns)===0&&Ys(21,e-1)}}),N5=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Jxe=/^\(|\)$/g;function Qxe(e){const t=e.loc,n=e.content,r=n.match(ZG);if(!r)return;const[,i,o]=r,a=(f,d,h=!1)=>{const v=t.start.offset+d,m=v+f.length;return a1(f,!1,vr(v,m),0,h?1:0)},s={source:a(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(Jxe,"").trim();const u=i.indexOf(l),c=l.match(N5);if(c){l=l.replace(N5,"").trim();const f=c[1].trim();let d;if(f&&(d=n.indexOf(f,u+l.length),s.key=a(f,d,!0)),c[2]){const h=c[2].trim();h&&(s.index=a(h,n.indexOf(h,s.key?d+f.length:u+l.length),!0))}}return l&&(s.value=a(l,u,!0)),s}function jr(e,t){return gl.slice(e,t)}function k5(e){lr.inSFCRoot&&(ai.innerLoc=vr(e+1,e+1)),dI(ai);const{tag:t,ns:n}=ai;n===0&&hn.isPreTag(t)&&nP++,hn.isVoidTag(t)?o1(ai,e):(Xn.unshift(ai),(n===1||n===2)&&(lr.inXML=!0)),ai=null}function K0(e,t,n){{const o=Xn[0]&&Xn[0].tag;o!=="script"&&o!=="style"&&e.includes("&")&&(e=hn.decodeEntities(e,!1))}const r=Xn[0]||tm,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,tf(i.loc,n)):r.children.push({type:2,content:e,loc:vr(t,n)})}function o1(e,t,n=!1){n?tf(e.loc,JG(t,60)):tf(e.loc,eCe(t,62)+1),lr.inSFCRoot&&(e.children.length?e.innerLoc.end=Qt({},e.children[e.children.length-1].loc.end):e.innerLoc.end=Qt({},e.innerLoc.start),e.innerLoc.source=jr(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:o}=e;if(uu||(r==="slot"?e.tagType=2:F5(e)?e.tagType=3:nCe(e)&&(e.tagType=1)),lr.inRCDATA||(e.children=QG(o)),i===0&&hn.isIgnoreNewlineTag(r)){const a=o[0];a&&a.type===2&&(a.content=a.content.replace(/^\r?\n/,""))}i===0&&hn.isPreTag(r)&&nP--,fI===e&&(uu=lr.inVPre=!1,fI=null),lr.inXML&&(Xn[0]?Xn[0].ns:hn.ns)===0&&(lr.inXML=!1);{const a=e.props;if(!lr.inSFCRoot&&Sf("COMPILER_NATIVE_TEMPLATE",hn)&&e.tag==="template"&&!F5(e)){const l=Xn[0]||tm,u=l.children.indexOf(e);l.children.splice(u,1,...e.children)}const s=a.find(l=>l.type===6&&l.name==="inline-template");s&&Dh("COMPILER_INLINE_TEMPLATE",hn,s.loc)&&e.children.length&&(s.value={type:2,content:jr(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:s.loc})}}function eCe(e,t){let n=e;for(;gl.charCodeAt(n)!==t&&n<gl.length-1;)n++;return n}function JG(e,t){let n=e;for(;gl.charCodeAt(n)!==t&&n>=0;)n--;return n}const tCe=new Set(["if","else","else-if","for","slot"]);function F5({tag:e,props:t}){if(e==="template"){for(let n=0;n<t.length;n++)if(t[n].type===7&&tCe.has(t[n].name))return!0}return!1}function nCe({tag:e,props:t}){if(hn.isCustomElement(e))return!1;if(e==="component"||rCe(e.charCodeAt(0))||QR(e)||hn.isBuiltInComponent&&hn.isBuiltInComponent(e)||hn.isNativeTag&&!hn.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const r=t[n];if(r.type===6){if(r.name==="is"&&r.value){if(r.value.content.startsWith("vue:"))return!0;if(Dh("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}}else if(r.name==="bind"&&wu(r.arg,"is")&&Dh("COMPILER_IS_ON_ELEMENT",hn,r.loc))return!0}return!1}function rCe(e){return e>64&&e<91}const iCe=/\r\n/g;function QG(e,t){const n=hn.whitespace!=="preserve";let r=!1;for(let i=0;i<e.length;i++){const o=e[i];if(o.type===2)if(nP)o.content=o.content.replace(iCe,`
`);else if(oCe(o.content)){const a=e[i-1]&&e[i-1].type,s=e[i+1]&&e[i+1].type;!a||!s||n&&(a===3&&(s===3||s===1)||a===1&&(s===3||s===1&&aCe(o.content)))?(r=!0,e[i]=null):o.content=" "}else n&&(o.content=ez(o.content))}return r?e.filter(Boolean):e}function oCe(e){for(let t=0;t<e.length;t++)if(!Co(e.charCodeAt(t)))return!1;return!0}function aCe(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function ez(e){let t="",n=!1;for(let r=0;r<e.length;r++)Co(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function dI(e){(Xn[0]||tm).children.push(e)}function vr(e,t){return{start:lr.getPos(e),end:t==null?t:lr.getPos(t),source:t==null?t:jr(e,t)}}function sCe(e){return vr(e.start.offset,e.end.offset)}function tf(e,t){e.end=lr.getPos(t),e.source=jr(e.start.offset,t)}function lCe(e){const t={type:6,name:e.rawName,nameLoc:vr(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function a1(e,t=!1,n,r=0,i=0){return kt(e,t,n,r)}function Ys(e,t,n){hn.onError(zn(e,vr(t,t)))}function uCe(){lr.reset(),ai=null,on=null,zi="",Ks=-1,Uc=-1,Xn.length=0}function rP(e,t){if(uCe(),gl=e,hn=Qt({},qG),t){let i;for(i in t)t[i]!=null&&(hn[i]=t[i])}lr.mode=hn.parseMode==="html"?1:hn.parseMode==="sfc"?2:0,lr.inXML=hn.ns===1||hn.ns===2;const n=t&&t.delimiters;n&&(lr.delimiterOpen=gb(n[0]),lr.delimiterClose=gb(n[1]));const r=tm=NG([],e);return lr.parse(gl),r.loc=vr(0,e.length),r.children=QG(r.children),tm=null,r}function cCe(e,t){s1(e,void 0,t,tz(e,e.children[0]))}function tz(e,t){const{children:n}=e;return n.length===1&&t.type===1&&!Qg(t)}function s1(e,t,n,r=!1,i=!1){const{children:o}=e,a=[];for(let c=0;c<o.length;c++){const f=o[c];if(f.type===1&&f.tagType===0){const d=r?0:eo(f,n);if(d>0){if(d>=2){f.codegenNode.patchFlag=-1,a.push(f);continue}}else{const h=f.codegenNode;if(h.type===13){const v=h.patchFlag;if((v===void 0||v===512||v===1)&&rz(f,n)>=2){const m=iz(f);m&&(h.props=n.hoist(m))}h.dynamicProps&&(h.dynamicProps=n.hoist(h.dynamicProps))}}}else if(f.type===12&&(r?0:eo(f,n))>=2){a.push(f);continue}if(f.type===1){const d=f.tagType===1;d&&n.scopes.vSlot++,s1(f,e,n,!1,i),d&&n.scopes.vSlot--}else if(f.type===11)s1(f,e,n,f.children.length===1,!0);else if(f.type===9)for(let d=0;d<f.branches.length;d++)s1(f.branches[d],e,n,f.branches[d].children.length===1,i)}let s=!1;if(a.length===o.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&Qe(e.codegenNode.children))e.codegenNode.children=l(Ou(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!Qe(e.codegenNode.children)&&e.codegenNode.children.type===15){const c=u(e.codegenNode,"default");c&&(c.returns=l(Ou(c.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!Qe(t.codegenNode.children)&&t.codegenNode.children.type===15){const c=Ri(e,"slot",!0),f=c&&c.arg&&u(t.codegenNode,c.arg);f&&(f.returns=l(Ou(f.returns)),s=!0)}}if(!s)for(const c of a)c.codegenNode=n.cache(c.codegenNode);function l(c){const f=n.cache(c);return i&&n.hmr&&(f.needArraySpread=!0),f}function u(c,f){if(c.children&&!Qe(c.children)&&c.children.type===15){const d=c.children.properties.find(h=>h.key===f||h.key.content===f);return d&&d.value}}a.length&&n.transformHoist&&n.transformHoist(o,n,e)}function eo(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;const r=n.get(e);if(r!==void 0)return r;const i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!=="svg"&&e.tag!=="foreignObject"&&e.tag!=="math")return 0;if(i.patchFlag===void 0){let a=3;const s=rz(e,t);if(s===0)return n.set(e,0),0;s<a&&(a=s);for(let l=0;l<e.children.length;l++){const u=eo(e.children[l],t);if(u===0)return n.set(e,0),0;u<a&&(a=u)}if(a>1)for(let l=0;l<e.props.length;l++){const u=e.props[l];if(u.type===7&&u.name==="bind"&&u.exp){const c=eo(u.exp,t);if(c===0)return n.set(e,0),0;c<a&&(a=c)}}if(i.isBlock){for(let l=0;l<e.props.length;l++)if(e.props[l].type===7)return n.set(e,0),0;t.removeHelper(Uu),t.removeHelper(Bf(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper($f(t.inSSR,i.isComponent))}return n.set(e,a),a}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return eo(e.content,t);case 4:return e.constType;case 8:let o=3;for(let a=0;a<e.children.length;a++){const s=e.children[a];if(Rt(s)||Di(s))continue;const l=eo(s,t);if(l===0)return 0;l<o&&(o=l)}return o;case 20:return 2;default:return 0}}const fCe=new Set([QS,ew,Ph,Kh]);function nz(e,t){if(e.type===14&&!Rt(e.callee)&&fCe.has(e.callee)){const n=e.arguments[0];if(n.type===4)return eo(n,t);if(n.type===14)return nz(n,t)}return 0}function rz(e,t){let n=3;const r=iz(e);if(r&&r.type===15){const{properties:i}=r;for(let o=0;o<i.length;o++){const{key:a,value:s}=i[o],l=eo(a,t);if(l===0)return l;l<n&&(n=l);let u;if(s.type===4?u=eo(s,t):s.type===14?u=nz(s,t):u=0,u===0)return u;u<n&&(n=u)}}return n}function iz(e){const t=e.codegenNode;if(t.type===13)return t.props}function oz(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:o=!1,nodeTransforms:a=[],directiveTransforms:s={},transformHoist:l=null,isBuiltInComponent:u=Br,isCustomElement:c=Br,expressionPlugins:f=[],scopeId:d=null,slotted:h=!0,ssr:v=!1,inSSR:m=!1,ssrCssVars:_="",bindingMetadata:y=Jt,inline:b=!1,isTS:S=!1,onError:w=JR,onWarn:C=$G,compatConfig:T}){const E=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),R={filename:t,selfName:E&&zu($n(E[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:o,nodeTransforms:a,directiveTransforms:s,transformHoist:l,isBuiltInComponent:u,isCustomElement:c,expressionPlugins:f,scopeId:d,slotted:h,ssr:v,inSSR:m,ssrCssVars:_,bindingMetadata:y,inline:b,isTS:S,onError:w,onWarn:C,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(I){const O=R.helpers.get(I)||0;return R.helpers.set(I,O+1),I},removeHelper(I){const O=R.helpers.get(I);if(O){const P=O-1;P?R.helpers.set(I,P):R.helpers.delete(I)}},helperString(I){return`_${kf[R.helper(I)]}`},replaceNode(I){R.parent.children[R.childIndex]=R.currentNode=I},removeNode(I){const O=R.parent.children,P=I?O.indexOf(I):R.currentNode?R.childIndex:-1;!I||I===R.currentNode?(R.currentNode=null,R.onNodeRemoved()):R.childIndex>P&&(R.childIndex--,R.onNodeRemoved()),R.parent.children.splice(P,1)},onNodeRemoved:Br,addIdentifiers(I){},removeIdentifiers(I){},hoist(I){Rt(I)&&(I=kt(I)),R.hoists.push(I);const O=kt(`_hoisted_${R.hoists.length}`,!1,I.loc,2);return O.hoisted=I,O},cache(I,O=!1,P=!1){const M=kG(R.cached.length,I,O,P);return R.cached.push(M),M}};return R.filters=new Set,R}function az(e,t){const n=oz(e,t);Nm(e,n),t.hoistStatic&&cCe(e,n),t.ssr||dCe(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function dCe(e,t){const{helper:n}=t,{children:r}=e;if(r.length===1){const i=r[0];if(tz(e,i)&&i.codegenNode){const o=i.codegenNode;o.type===13&&iw(o,t),e.codegenNode=o}else e.codegenNode=i}else if(r.length>1){let i=64;e.codegenNode=Oh(t,n(Rh),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}function hCe(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];Rt(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,Nm(i,t))}}function Nm(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let o=0;o<n.length;o++){const a=n[o](e,t);if(a&&(Qe(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Yh);break;case 5:t.ssr||t.helper(Dm);break;case 9:for(let o=0;o<e.branches.length;o++)Nm(e.branches[o],t);break;case 10:case 11:case 1:case 0:hCe(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function iP(e,t){const n=Rt(e)?r=>r===e:r=>e.test(r);return(r,i)=>{if(r.type===1){const{props:o}=r;if(r.tagType===3&&o.some(tP))return;const a=[];for(let s=0;s<o.length;s++){const l=o[s];if(l.type===7&&n(l.name)){o.splice(s,1),s--;const u=t(r,l,i);u&&a.push(u)}}return a}}}const ow="/*@__PURE__*/",sz=e=>`${kf[e]}: _${kf[e]}`;function pCe(e,{mode:t="function",prefixIdentifiers:n=t==="module",sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:a=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:u="vue/server-renderer",ssr:c=!1,isTS:f=!1,inSSR:d=!1}){const h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:a,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:u,ssr:c,isTS:f,inSSR:d,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(m){return`_${kf[m]}`},push(m,_=-2,y){h.code+=m},indent(){v(++h.indentLevel)},deindent(m=!1){m?--h.indentLevel:v(--h.indentLevel)},newline(){v(h.indentLevel)}};function v(m){h.push(`
`+" ".repeat(m),0)}return h}function lz(e,t={}){const n=pCe(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:a,deindent:s,newline:l,scopeId:u,ssr:c}=n,f=Array.from(e.helpers),d=f.length>0,h=!o&&r!=="module";vCe(e,n);const m=c?"ssrRender":"render",y=(c?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ");if(i(`function ${m}(${y}) {`),a(),h&&(i("with (_ctx) {"),a(),d&&(i(`const { ${f.map(sz).join(", ")} } = _Vue
`,-1),l())),e.components.length&&(FT(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(FT(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),FT(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let b=0;b<e.temps;b++)i(`${b>0?", ":""}_temp${b}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
`,0),l()),c||i("return "),e.codegenNode?gi(e.codegenNode,n):i("null"),h&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function vCe(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:a,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,u=s,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${u}
`,-1),e.hoists.length)){const f=[zS,WS,Yh,jS,YR].filter(d=>c.includes(d)).map(sz).join(", ");i(`const { ${f} } = _Vue
`,-1)}gCe(e.hoists,t),o(),i("return ")}function FT(e,t,{helper:n,push:r,newline:i,isTS:o}){const a=n(t==="filter"?ZS:t==="component"?XS:KS);for(let s=0;s<e.length;s++){let l=e[s];const u=l.endsWith("__self");u&&(l=l.slice(0,-6)),r(`const ${Lh(l,t)} = ${a}(${JSON.stringify(l)}${u?", true":""})${o?"!":""}`),s<e.length-1&&i()}}function gCe(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const o=e[i];o&&(n(`const _hoisted_${i+1} = `),gi(o,t),r())}t.pure=!1}function oP(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),km(e,t,n),n&&t.deindent(),t.push("]")}function km(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let a=0;a<e.length;a++){const s=e[a];Rt(s)?i(s,-3):Qe(s)?oP(s,t):gi(s,t),a<e.length-1&&(n?(r&&i(","),o()):r&&i(", "))}}function gi(e,t){if(Rt(e)){t.push(e,-3);return}if(Di(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:gi(e.codegenNode,t);break;case 2:mCe(e,t);break;case 4:uz(e,t);break;case 5:yCe(e,t);break;case 12:gi(e.codegenNode,t);break;case 8:cz(e,t);break;case 3:bCe(e,t);break;case 13:SCe(e,t);break;case 14:xCe(e,t);break;case 15:CCe(e,t);break;case 17:TCe(e,t);break;case 18:ECe(e,t);break;case 19:ACe(e,t);break;case 20:ICe(e,t);break;case 21:km(e.body,t,!0,!1);break}}function mCe(e,t){t.push(JSON.stringify(e.content),-3,e)}function uz(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function yCe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(ow),n(`${r(Dm)}(`),gi(e.content,t),n(")")}function cz(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];Rt(r)?t.push(r,-3):gi(r,t)}}function _Ce(e,t){const{push:n}=t;if(e.type===8)n("["),cz(e,t),n("]");else if(e.isStatic){const r=Mm(e.content)?e.content:JSON.stringify(e.content);n(r,-2,e)}else n(`[${e.content}]`,-3,e)}function bCe(e,t){const{push:n,helper:r,pure:i}=t;i&&n(ow),n(`${r(Yh)}(${JSON.stringify(e.content)})`,-3,e)}function SCe(e,t){const{push:n,helper:r,pure:i}=t,{tag:o,props:a,children:s,patchFlag:l,dynamicProps:u,directives:c,isBlock:f,disableTracking:d,isComponent:h}=e;let v;l&&(v=String(l)),c&&n(r(qS)+"("),f&&n(`(${r(Uu)}(${d?"true":""}), `),i&&n(ow);const m=f?Bf(t.inSSR,h):$f(t.inSSR,h);n(r(m)+"(",-2,e),km(wCe([o,a,s,v,u]),t),n(")"),f&&n(")"),c&&(n(", "),gi(c,t),n(")"))}function wCe(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(n=>n||"null")}function xCe(e,t){const{push:n,helper:r,pure:i}=t,o=Rt(e.callee)?e.callee:r(e.callee);i&&n(ow),n(o+"(",-2,e),km(e.arguments,t),n(")")}function CCe(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:a}=e;if(!a.length){n("{}",-2,e);return}const s=a.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<a.length;l++){const{key:u,value:c}=a[l];_Ce(u,t),n(": "),gi(c,t),l<a.length-1&&(n(","),o())}s&&i(),n(s?"}":" }")}function TCe(e,t){oP(e.elements,t)}function ECe(e,t){const{push:n,indent:r,deindent:i}=t,{params:o,returns:a,body:s,newline:l,isSlot:u}=e;u&&n(`_${kf[nw]}(`),n("(",-2,e),Qe(o)?km(o,t):o&&gi(o,t),n(") => "),(l||s)&&(n("{"),r()),a?(l&&n("return "),Qe(a)?oP(a,t):gi(a,t)):s&&gi(s,t),(l||s)&&(i(),n("}")),u&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function ACe(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:a,indent:s,deindent:l,newline:u}=t;if(n.type===4){const f=!Mm(n.content);f&&a("("),uz(n,t),f&&a(")")}else a("("),gi(n,t),a(")");o&&s(),t.indentLevel++,o||a(" "),a("? "),gi(r,t),t.indentLevel--,o&&u(),o||a(" "),a(": ");const c=i.type===19;c||t.indentLevel++,gi(i,t),c||t.indentLevel--,o&&l(!0)}function ICe(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:a}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(Jg)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("(")),n(`_cache[${e.index}] = `),gi(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),a(),n(`${r(Jg)}(1),`),a(),n(`_cache[${e.index}]`),o()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const RCe=(e,t)=>{if(e.type===5)e.content=l1(e.content,t);else if(e.type===1){const n=Ri(e,"memo");for(let r=0;r<e.props.length;r++){const i=e.props[r];if(i.type===7&&i.name!=="for"){const o=i.exp,a=i.arg;o&&o.type===4&&!(i.name==="on"&&a)&&!(n&&a&&a.type===4&&a.content==="key")&&(i.exp=l1(o,t,i.name==="slot")),a&&a.type===4&&!a.isStatic&&(i.arg=l1(a,t))}}}};function l1(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function fz(e){return Rt(e)?e:e.type===4?e.content:e.children.map(fz).join("")}const PCe=iP(/^(if|else|else-if)$/,(e,t,n)=>dz(e,t,n,(r,i,o)=>{const a=n.parent.children;let s=a.indexOf(r),l=0;for(;s-->=0;){const u=a[s];u&&u.type===9&&(l+=u.branches.length)}return()=>{if(o)r.codegenNode=B5(i,l,n);else{const u=OCe(r.codegenNode);u.alternate=B5(i,l+r.branches.length-1,n)}}}));function dz(e,t,n,r){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(zn(28,t.loc)),t.exp=kt("true",!1,i)}if(t.name==="if"){const i=$5(e,t),o={type:9,loc:sCe(e.loc),branches:[i]};if(n.replaceNode(o),r)return r(o,i,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-->=-1;){const a=i[o];if(a&&a.type===3){n.removeNode(a);continue}if(a&&a.type===2&&!a.content.trim().length){n.removeNode(a);continue}if(a&&a.type===9){t.name==="else-if"&&a.branches[a.branches.length-1].condition===void 0&&n.onError(zn(30,e.loc)),n.removeNode();const s=$5(e,t);a.branches.push(s);const l=r&&r(a,s,!1);Nm(s,n),l&&l(),n.currentNode=null}else n.onError(zn(30,e.loc));break}}}function $5(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!Ri(e,"for")?e.children:[e],userKey:Lm(e,"key"),isTemplateIf:n}}function B5(e,t,n){return e.condition?vb(e.condition,V5(e,t,n),br(n.helper(Yh),['""',"true"])):V5(e,t,n)}function V5(e,t,n){const{helper:r}=n,i=dr("key",kt(`${t}`,!1,Mr,2)),{children:o}=e,a=o[0];if(o.length!==1||a.type!==1)if(o.length===1&&a.type===11){const l=a.codegenNode;return em(l,i,n),l}else return Oh(n,r(Rh),Ao([i]),o,64,void 0,void 0,!0,!1,!1,e.loc);else{const l=a.codegenNode,u=KG(l);return u.type===13&&iw(u,n),em(u,i,n),l}}function OCe(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const hz=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:a}=e;if(a&&a.type===4&&!a.content.trim()&&(a=void 0),!a){if(o.type!==4||!o.isStatic)return n.onError(zn(52,o.loc)),{props:[dr(o,kt("",!0,i))]};pz(e),a=e.exp}return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.some(s=>s.content==="camel")&&(o.type===4?o.isStatic?o.content=$n(o.content):o.content=`${n.helperString(hb)}(${o.content})`:(o.children.unshift(`${n.helperString(hb)}(`),o.children.push(")"))),n.inSSR||(r.some(s=>s.content==="prop")&&U5(o,"."),r.some(s=>s.content==="attr")&&U5(o,"^")),{props:[dr(o,a)]}},pz=(e,t)=>{const n=e.arg,r=$n(n.content);e.exp=kt(r,!1,n.loc)},U5=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},DCe=iP("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return vz(e,t,n,o=>{const a=br(r(JS),[o.source]),s=Mh(e),l=Ri(e,"memo"),u=Lm(e,"key",!1,!0);u&&u.type===7&&!u.exp&&pz(u);let f=u&&(u.type===6?u.value?kt(u.value.content,!0):void 0:u.exp);const d=u&&f?dr("key",f):null,h=o.source.type===4&&o.source.constType>0,v=h?64:u?128:256;return o.codegenNode=Oh(n,r(Rh),void 0,a,v,void 0,void 0,!0,!h,!1,e.loc),()=>{let m;const{children:_}=o,y=_.length!==1||_[0].type!==1,b=Qg(e)?e:s&&e.children.length===1&&Qg(e.children[0])?e.children[0]:null;if(b?(m=b.codegenNode,s&&d&&em(m,d,n)):y?m=Oh(n,r(Rh),d?Ao([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(m=_[0].codegenNode,s&&d&&em(m,d,n),m.isBlock!==!h&&(m.isBlock?(i(Uu),i(Bf(n.inSSR,m.isComponent))):i($f(n.inSSR,m.isComponent))),m.isBlock=!h,m.isBlock?(r(Uu),r(Bf(n.inSSR,m.isComponent))):r($f(n.inSSR,m.isComponent))),l){const S=Ff(mb(o.parseResult,[kt("_cached")]));S.body=FG([ua(["const _memo = (",l.exp,")"]),ua(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${n.helperString(qR)}(_cached, _memo)) return _cached`]),ua(["const _item = ",m]),kt("_item.memo = _memo"),kt("return _item")]),a.arguments.push(S,kt("_cache"),kt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Ff(mb(o.parseResult),m,!0))}})});function vz(e,t,n,r){if(!t.exp){n.onError(zn(31,t.loc));return}const i=t.forParseResult;if(!i){n.onError(zn(32,t.loc));return}aP(i);const{addIdentifiers:o,removeIdentifiers:a,scopes:s}=n,{source:l,value:u,key:c,index:f}=i,d={type:11,loc:t.loc,source:l,valueAlias:u,keyAlias:c,objectIndexAlias:f,parseResult:i,children:Mh(e)?e.children:[e]};n.replaceNode(d),s.vFor++;const h=r&&r(d);return()=>{s.vFor--,h&&h()}}function aP(e,t){e.finalized||(e.finalized=!0)}function mb({value:e,key:t,index:n},r=[]){return MCe([e,t,n,...r])}function MCe(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,r)=>n||kt("_".repeat(r+1),!1))}const H5=kt("undefined",!1),gz=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=Ri(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},LCe=(e,t)=>{let n;if(Mh(e)&&e.props.some(tP)&&(n=Ri(e,"for"))){const r=n.forParseResult;if(r){aP(r);const{value:i,key:o,index:a}=r,{addIdentifiers:s,removeIdentifiers:l}=t;return i&&s(i),o&&s(o),a&&s(a),()=>{i&&l(i),o&&l(o),a&&l(a)}}}},NCe=(e,t,n,r)=>Ff(e,n,!1,!0,n.length?n[0].loc:r);function mz(e,t,n=NCe){t.helper(nw);const{children:r,loc:i}=e,o=[],a=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Ri(e,"slot",!0);if(l){const{arg:_,exp:y}=l;_&&!Pi(_)&&(s=!0),o.push(dr(_||kt("default",!0),n(y,void 0,r,i)))}let u=!1,c=!1;const f=[],d=new Set;let h=0;for(let _=0;_<r.length;_++){const y=r[_];let b;if(!Mh(y)||!(b=Ri(y,"slot",!0))){y.type!==3&&f.push(y);continue}if(l){t.onError(zn(37,b.loc));break}u=!0;const{children:S,loc:w}=y,{arg:C=kt("default",!0),exp:T,loc:E}=b;let R;Pi(C)?R=C?C.content:"default":s=!0;const I=Ri(y,"for"),O=n(T,I,S,w);let P,M;if(P=Ri(y,"if"))s=!0,a.push(vb(P.exp,Z0(C,O,h++),H5));else if(M=Ri(y,/^else(-if)?$/,!0)){let F=_,$;for(;F--&&($=r[F],$.type===3););if($&&Mh($)&&Ri($,/^(else-)?if$/)){let z=a[a.length-1];for(;z.alternate.type===19;)z=z.alternate;z.alternate=M.exp?vb(M.exp,Z0(C,O,h++),H5):Z0(C,O,h++)}else t.onError(zn(30,M.loc))}else if(I){s=!0;const F=I.forParseResult;F?(aP(F),a.push(br(t.helper(JS),[F.source,Ff(mb(F),Z0(C,O),!0)]))):t.onError(zn(32,I.loc))}else{if(R){if(d.has(R)){t.onError(zn(38,E));continue}d.add(R),R==="default"&&(c=!0)}o.push(dr(C,O))}}if(!l){const _=(y,b)=>{const S=n(y,void 0,b,i);return t.compatConfig&&(S.isNonScopedSlot=!0),dr("default",S)};u?f.length&&f.some(y=>yz(y))&&(c?t.onError(zn(39,f[0].loc)):o.push(_(void 0,f))):o.push(_(void 0,r))}const v=s?2:u1(e.children)?3:1;let m=Ao(o.concat(dr("_",kt(v+"",!1))),i);return a.length&&(m=br(t.helper(ZR),[m,Ou(a)])),{slots:m,hasDynamicSlots:s}}function Z0(e,t,n){const r=[dr("name",e),dr("fn",t)];return n!=null&&r.push(dr("key",kt(String(n),!0))),Ao(r)}function u1(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(n.tagType===2||u1(n.children))return!0;break;case 9:if(u1(n.branches))return!0;break;case 10:case 11:if(u1(n.children))return!0;break}}return!1}function yz(e){return e.type!==2&&e.type!==12?!0:e.type===2?!!e.content.trim():yz(e.content)}const _z=new WeakMap,bz=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:r,props:i}=e,o=e.tagType===1;let a=o?Sz(e,t):`"${r}"`;const s=vn(a)&&a.callee===YS;let l,u,c=0,f,d,h,v=s||a===sh||a===GS||!o&&(r==="svg"||r==="foreignObject"||r==="math");if(i.length>0){const m=sP(e,t,void 0,o,s);l=m.props,c=m.patchFlag,d=m.dynamicPropNames;const _=m.directives;h=_&&_.length?Ou(_.map(y=>wz(y,t))):void 0,m.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(a===Zg&&(v=!0,c|=1024),o&&a!==sh&&a!==Zg){const{slots:_,hasDynamicSlots:y}=mz(e,t);u=_,y&&(c|=1024)}else if(e.children.length===1&&a!==sh){const _=e.children[0],y=_.type,b=y===5||y===8;b&&eo(_,t)===0&&(c|=1),b||y===2?u=_:u=e.children}else u=e.children;d&&d.length&&(f=FCe(d)),e.codegenNode=Oh(t,a,l,u,c===0?void 0:c,f,h,!!v,!1,o,e.loc)};function Sz(e,t,n=!1){let{tag:r}=e;const i=hI(r),o=Lm(e,"is",!1,!0);if(o)if(i||Sf("COMPILER_IS_ON_ELEMENT",t)){let s;if(o.type===6?s=o.value&&kt(o.value.content,!0):(s=o.exp,s||(s=kt("is",!1,o.arg.loc))),s)return br(t.helper(YS),[s])}else o.type===6&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const a=QR(r)||t.isBuiltInComponent(r);return a?(n||t.helper(a),a):(t.helper(XS),t.components.add(r),Lh(r,"component"))}function sP(e,t,n=e.props,r,i,o=!1){const{tag:a,loc:s,children:l}=e;let u=[];const c=[],f=[],d=l.length>0;let h=!1,v=0,m=!1,_=!1,y=!1,b=!1,S=!1,w=!1;const C=[],T=O=>{u.length&&(c.push(Ao(G5(u),s)),u=[]),O&&c.push(O)},E=()=>{t.scopes.vFor>0&&u.push(dr(kt("ref_for",!0),kt("true")))},R=({key:O,value:P})=>{if(Pi(O)){const M=O.content,F=Hu(M);if(F&&(!r||i)&&M.toLowerCase()!=="onclick"&&M!=="onUpdate:modelValue"&&!fl(M)&&(b=!0),F&&fl(M)&&(w=!0),F&&P.type===14&&(P=P.arguments[0]),P.type===20||(P.type===4||P.type===8)&&eo(P,t)>0)return;M==="ref"?m=!0:M==="class"?_=!0:M==="style"?y=!0:M!=="key"&&!C.includes(M)&&C.push(M),r&&(M==="class"||M==="style")&&!C.includes(M)&&C.push(M)}else S=!0};for(let O=0;O<n.length;O++){const P=n[O];if(P.type===6){const{loc:M,name:F,nameLoc:$,value:z}=P;let B=!0;if(F==="ref"&&(m=!0,E()),F==="is"&&(hI(a)||z&&z.content.startsWith("vue:")||Sf("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(dr(kt(F,!0,$),kt(z?z.content:"",B,z?z.loc:M)))}else{const{name:M,arg:F,exp:$,loc:z,modifiers:B}=P,K=M==="bind",j=M==="on";if(M==="slot"){r||t.onError(zn(40,z));continue}if(M==="once"||M==="memo"||M==="is"||K&&wu(F,"is")&&(hI(a)||Sf("COMPILER_IS_ON_ELEMENT",t))||j&&o)continue;if((K&&wu(F,"key")||j&&d&&wu(F,"vue:before-update"))&&(h=!0),K&&wu(F,"ref")&&E(),!F&&(K||j)){if(S=!0,$)if(K){if(E(),T(),Sf("COMPILER_V_BIND_OBJECT_ORDER",t)){c.unshift($);continue}c.push($)}else T({type:14,loc:z,callee:t.helper(tw),arguments:r?[$]:[$,"true"]});else t.onError(zn(K?34:35,z));continue}K&&B.some(me=>me.content==="prop")&&(v|=32);const le=t.directiveTransforms[M];if(le){const{props:me,needRuntime:ge}=le(P,e,t);!o&&me.forEach(R),j&&F&&!Pi(F)?T(Ao(me,s)):u.push(...me),ge&&(f.push(P),Di(ge)&&_z.set(P,ge))}else f$(M)||(f.push(P),d&&(h=!0))}}let I;if(c.length?(T(),c.length>1?I=br(t.helper(qg),c,s):I=c[0]):u.length&&(I=Ao(G5(u),s)),S?v|=16:(_&&!r&&(v|=2),y&&!r&&(v|=4),C.length&&(v|=8),b&&(v|=32)),!h&&(v===0||v===32)&&(m||w||f.length>0)&&(v|=512),!t.inSSR&&I)switch(I.type){case 15:let O=-1,P=-1,M=!1;for(let z=0;z<I.properties.length;z++){const B=I.properties[z].key;Pi(B)?B.content==="class"?O=z:B.content==="style"&&(P=z):B.isHandlerKey||(M=!0)}const F=I.properties[O],$=I.properties[P];M?I=br(t.helper(Ph),[I]):(F&&!Pi(F.value)&&(F.value=br(t.helper(QS),[F.value])),$&&(y||$.value.type===4&&$.value.content.trim()[0]==="["||$.value.type===17)&&($.value=br(t.helper(ew),[$.value])));break;case 14:break;default:I=br(t.helper(Ph),[br(t.helper(Kh),[I])]);break}return{props:I,directives:f,patchFlag:v,dynamicPropNames:C,shouldUseBlock:h}}function G5(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}const o=i.key.content,a=t.get(o);a?(o==="style"||o==="class"||Hu(o))&&kCe(a,i):(t.set(o,i),n.push(i))}return n}function kCe(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=Ou([e.value,t.value],e.loc)}function wz(e,t){const n=[],r=_z.get(e);r?n.push(t.helperString(r)):(t.helper(KS),t.directives.add(e.name),n.push(Lh(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const o=kt("true",!1,i);n.push(Ao(e.modifiers.map(a=>dr(a,o)),i))}return Ou(n,e.loc)}function FCe(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function hI(e){return e==="component"||e==="Component"}const $Ce=(e,t)=>{if(Qg(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=xz(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;o&&(a[2]=o,s=3),n.length&&(a[3]=Ff([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),a.splice(s),e.codegenNode=br(t.helper(KR),a,r)}};function xz(e,t){let n='"default"',r;const i=[];for(let o=0;o<e.props.length;o++){const a=e.props[o];if(a.type===6)a.value&&(a.name==="name"?n=JSON.stringify(a.value.content):(a.name=$n(a.name),i.push(a)));else if(a.name==="bind"&&wu(a.arg,"name")){if(a.exp)n=a.exp;else if(a.arg&&a.arg.type===4){const s=$n(a.arg.content);n=a.exp=kt(s,!1,a.arg.loc)}}else a.name==="bind"&&a.arg&&Pi(a.arg)&&(a.arg.content=$n(a.arg.content)),i.push(a)}if(i.length>0){const{props:o,directives:a}=sP(e,t,i,!1,!1);r=o,a.length&&t.onError(zn(36,a[0].loc))}return{slotName:n,slotProps:r}}const lP=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:a}=e;!e.exp&&!o.length&&n.onError(zn(35,i));let s;if(a.type===4)if(a.isStatic){let f=a.content;f.startsWith("vue:")&&(f=`vnode-${f.slice(4)}`);const d=t.tagType!==0||f.startsWith("vnode")||!/[A-Z]/.test(f)?sf($n(f)):`on:${f}`;s=kt(d,!0,a.loc)}else s=ua([`${n.helperString(pb)}(`,a,")"]);else s=a,s.children.unshift(`${n.helperString(pb)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const f=eP(l),d=!(f||WG(l)),h=l.content.includes(";");(d||u&&f)&&(l=ua([`${d?"$event":"(...args)"} => ${h?"{":"("}`,l,h?"}":")"]))}let c={props:[dr(s,l||kt("() => {}",!1,i))]};return r&&(c=r(c)),u&&(c.props[0].value=n.cache(c.props[0].value)),c.props.forEach(f=>f.key.isHandlerKey=!0),c},BCe=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let r,i=!1;for(let o=0;o<n.length;o++){const a=n[o];if(i1(a)){i=!0;for(let s=o+1;s<n.length;s++){const l=n[s];if(i1(l))r||(r=n[o]=ua([a],a.loc)),r.children.push(" + ",l),n.splice(s,1),s--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(o=>o.type===7&&!t.directiveTransforms[o.name])&&e.tag!=="template")))for(let o=0;o<n.length;o++){const a=n[o];if(i1(a)||a.type===8){const s=[];(a.type!==2||a.content!==" ")&&s.push(a),!t.ssr&&eo(a,t)===0&&s.push("1"),n[o]={type:12,content:a,loc:a.loc,codegenNode:br(t.helper(jS),s)}}}}},z5=new WeakSet,VCe=(e,t)=>{if(e.type===1&&Ri(e,"once",!0))return z5.has(e)||t.inVOnce||t.inSSR?void 0:(z5.add(e),t.inVOnce=!0,t.helper(Jg),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0,!0))})},uP=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(zn(41,e.loc)),q0();const o=r.loc.source.trim(),a=r.type===4?r.content:o,s=n.bindingMetadata[o];if(s==="props"||s==="props-aliased")return n.onError(zn(44,r.loc)),q0();if(!a.trim()||!eP(r))return n.onError(zn(42,r.loc)),q0();const l=i||kt("modelValue",!0),u=i?Pi(i)?`onUpdate:${$n(i.content)}`:ua(['"onUpdate:" + ',i]):"onUpdate:modelValue";let c;const f=n.isTS?"($event: any)":"$event";c=ua([`${f} => ((`,r,") = $event)"]);const d=[dr(l,e.exp),dr(u,c)];if(e.modifiers.length&&t.tagType===1){const h=e.modifiers.map(m=>m.content).map(m=>(Mm(m)?m:JSON.stringify(m))+": true").join(", "),v=i?Pi(i)?`${i.content}Modifiers`:ua([i,' + "Modifiers"']):"modelModifiers";d.push(dr(v,kt(`{ ${h} }`,!1,e.loc,2)))}return q0(d)};function q0(e=[]){return{props:e}}const UCe=/[\w).+\-_$\]]/,HCe=(e,t)=>{Sf("COMPILER_FILTERS",t)&&(e.type===5?yb(e.content,t):e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&yb(n.exp,t)}))};function yb(e,t){if(e.type===4)W5(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];typeof r=="object"&&(r.type===4?W5(r,t):r.type===8?yb(e,t):r.type===5&&yb(r.content,t))}}function W5(e,t){const n=e.content;let r=!1,i=!1,o=!1,a=!1,s=0,l=0,u=0,c=0,f,d,h,v,m=[];for(h=0;h<n.length;h++)if(d=f,f=n.charCodeAt(h),r)f===39&&d!==92&&(r=!1);else if(i)f===34&&d!==92&&(i=!1);else if(o)f===96&&d!==92&&(o=!1);else if(a)f===47&&d!==92&&(a=!1);else if(f===124&&n.charCodeAt(h+1)!==124&&n.charCodeAt(h-1)!==124&&!s&&!l&&!u)v===void 0?(c=h+1,v=n.slice(0,h).trim()):_();else{switch(f){case 34:i=!0;break;case 39:r=!0;break;case 96:o=!0;break;case 40:u++;break;case 41:u--;break;case 91:l++;break;case 93:l--;break;case 123:s++;break;case 125:s--;break}if(f===47){let y=h-1,b;for(;y>=0&&(b=n.charAt(y),b===" ");y--);(!b||!UCe.test(b))&&(a=!0)}}v===void 0?v=n.slice(0,h).trim():c!==0&&_();function _(){m.push(n.slice(c,h).trim()),c=h+1}if(m.length){for(h=0;h<m.length;h++)v=GCe(v,m[h],t);e.content=v,e.ast=void 0}}function GCe(e,t,n){n.helper(ZS);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${Lh(t,"filter")}(${e})`;{const i=t.slice(0,r),o=t.slice(r+1);return n.filters.add(i),`${Lh(i,"filter")}(${e}${o!==")"?","+o:o}`}}const j5=new WeakSet,zCe=(e,t)=>{if(e.type===1){const n=Ri(e,"memo");return!n||j5.has(e)?void 0:(j5.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&iw(r,t),e.codegenNode=br(t.helper(rw),[n.exp,Ff(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))})}};function Cz(e){return[[VCe,PCe,zCe,DCe,HCe,$Ce,bz,gz,BCe],{on:lP,bind:hz,model:uP}]}function Tz(e,t={}){const n=t.onError||JR,r=t.mode==="module";t.prefixIdentifiers===!0?n(zn(47)):r&&n(zn(48));const i=!1;t.cacheHandlers&&n(zn(49)),t.scopeId&&!r&&n(zn(50));const o=Qt({},t,{prefixIdentifiers:i}),a=Rt(e)?rP(e,o):e,[s,l]=Cz();return az(a,Qt({},o,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:Qt({},l,t.directiveTransforms||{})})),lz(a,o)}const WCe={DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},Ez=()=>({props:[]});/**
* @vue/compiler-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const cP=Symbol(""),fP=Symbol(""),dP=Symbol(""),hP=Symbol(""),_b=Symbol(""),pP=Symbol(""),vP=Symbol(""),gP=Symbol(""),mP=Symbol(""),yP=Symbol("");LG({[cP]:"vModelRadio",[fP]:"vModelCheckbox",[dP]:"vModelText",[hP]:"vModelSelect",[_b]:"vModelDynamic",[pP]:"withModifiers",[vP]:"withKeys",[gP]:"vShow",[mP]:"Transition",[yP]:"TransitionGroup"});let Ed;function jCe(e,t=!1){return Ed||(Ed=document.createElement("div")),t?(Ed.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,Ed.children[0].getAttribute("foo")):(Ed.innerHTML=e,Ed.textContent)}const _P={parseMode:"html",isVoidTag:m$,isNativeTag:e=>p$(e)||v$(e)||g$(e),isPreTag:e=>e==="pre",isIgnoreNewlineTag:e=>e==="pre"||e==="textarea",decodeEntities:jCe,isBuiltInComponent:e=>{if(e==="Transition"||e==="transition")return mP;if(e==="TransitionGroup"||e==="transition-group")return yP},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(r=0);else t&&r===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(r=0);if(r===0){if(e==="svg")return 1;if(e==="math")return 2}return r}},Az=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:kt("style",!0,t.loc),exp:XCe(t.value.content,t.loc),modifiers:[],loc:t.loc})})},XCe=(e,t)=>{const n=xI(e);return kt(JSON.stringify(n),!1,t,3)};function ml(e,t){return zn(e,t)}const YCe={X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},KCe={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},ZCe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(ml(53,i)),t.children.length&&(n.onError(ml(54,i)),t.children.length=0),{props:[dr(kt("innerHTML",!0,i),r||kt("",!0))]}},qCe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(ml(55,i)),t.children.length&&(n.onError(ml(56,i)),t.children.length=0),{props:[dr(kt("textContent",!0),r?eo(r,n)>0?r:br(n.helperString(Dm),[r],i):kt("",!0))]}},JCe=(e,t,n)=>{const r=uP(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(ml(58,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if(i==="input"||i==="textarea"||i==="select"||o){let a=dP,s=!1;if(i==="input"||o){const l=Lm(t,"type");if(l){if(l.type===7)a=_b;else if(l.value)switch(l.value.content){case"radio":a=cP;break;case"checkbox":a=fP;break;case"file":s=!0,n.onError(ml(59,e.loc));break}}else XG(t)&&(a=_b)}else i==="select"&&(a=hP);s||(r.needRuntime=n.helper(a))}else n.onError(ml(57,e.loc));return r.props=r.props.filter(a=>!(a.key.type===4&&a.key.content==="modelValue")),r},QCe=Ur("passive,once,capture"),eTe=Ur("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),tTe=Ur("left,right"),Iz=Ur("onkeyup,onkeydown,onkeypress"),nTe=(e,t,n,r)=>{const i=[],o=[],a=[];for(let s=0;s<t.length;s++){const l=t[s].content;l==="native"&&Dh("COMPILER_V_ON_NATIVE",n)||QCe(l)?a.push(l):tTe(l)?Pi(e)?Iz(e.content.toLowerCase())?i.push(l):o.push(l):(i.push(l),o.push(l)):eTe(l)?o.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:o,eventOptionModifiers:a}},X5=(e,t)=>Pi(e)&&e.content.toLowerCase()==="onclick"?kt(t,!0):e.type!==4?ua(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,rTe=(e,t,n)=>lP(e,t,n,r=>{const{modifiers:i}=e;if(!i.length)return r;let{key:o,value:a}=r.props[0];const{keyModifiers:s,nonKeyModifiers:l,eventOptionModifiers:u}=nTe(o,i,n,e.loc);if(l.includes("right")&&(o=X5(o,"onContextmenu")),l.includes("middle")&&(o=X5(o,"onMouseup")),l.length&&(a=br(n.helper(pP),[a,JSON.stringify(l)])),s.length&&(!Pi(o)||Iz(o.content.toLowerCase()))&&(a=br(n.helper(vP),[a,JSON.stringify(s)])),u.length){const c=u.map(zu).join("");o=Pi(o)?kt(`${o.content}${c}`,!0):ua(["(",o,`) + "${c}"`])}return{props:[dr(o,a)]}}),iTe=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(ml(61,i)),{props:[],needRuntime:n.helper(gP)}},oTe=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&t.removeNode()},Rz=[Az],Pz={cloak:Ez,html:ZCe,text:qCe,model:JCe,on:rTe,show:iTe};function aTe(e,t={}){return Tz(e,Qt({},_P,t,{nodeTransforms:[oTe,...Rz,...t.nodeTransforms||[]],directiveTransforms:Qt({},Pz,t.directiveTransforms||{}),transformHoist:null}))}function sTe(e,t={}){return rP(e,Qt({},_P,t))}const lTe=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:WR,BindingTypes:WCe,CAMELIZE:hb,CAPITALIZE:RG,CREATE_BLOCK:jR,CREATE_COMMENT:Yh,CREATE_ELEMENT_BLOCK:XR,CREATE_ELEMENT_VNODE:WS,CREATE_SLOTS:ZR,CREATE_STATIC:YR,CREATE_TEXT:jS,CREATE_VNODE:zS,CompilerDeprecationTypes:Axe,ConstantTypes:_xe,DOMDirectiveTransforms:Pz,DOMErrorCodes:YCe,DOMErrorMessages:KCe,DOMNodeTransforms:Rz,ElementTypes:yxe,ErrorCodes:Pxe,FRAGMENT:Rh,GUARD_REACTIVE_PROPS:Kh,IS_MEMO_SAME:qR,IS_REF:MG,KEEP_ALIVE:Zg,MERGE_PROPS:qg,NORMALIZE_CLASS:QS,NORMALIZE_PROPS:Ph,NORMALIZE_STYLE:ew,Namespaces:gxe,NodeTypes:mxe,OPEN_BLOCK:Uu,POP_SCOPE_ID:OG,PUSH_SCOPE_ID:PG,RENDER_LIST:JS,RENDER_SLOT:KR,RESOLVE_COMPONENT:XS,RESOLVE_DIRECTIVE:KS,RESOLVE_DYNAMIC_COMPONENT:YS,RESOLVE_FILTER:ZS,SET_BLOCK_TRACKING:Jg,SUSPENSE:GS,TELEPORT:sh,TO_DISPLAY_STRING:Dm,TO_HANDLERS:tw,TO_HANDLER_KEY:pb,TRANSITION:mP,TRANSITION_GROUP:yP,TS_NODE_TYPES:VG,UNREF:DG,V_MODEL_CHECKBOX:fP,V_MODEL_DYNAMIC:_b,V_MODEL_RADIO:cP,V_MODEL_SELECT:hP,V_MODEL_TEXT:dP,V_ON_WITH_KEYS:vP,V_ON_WITH_MODIFIERS:pP,V_SHOW:gP,WITH_CTX:nw,WITH_DIRECTIVES:qS,WITH_MEMO:rw,advancePositionWithClone:Kxe,advancePositionWithMutation:jG,assert:Zxe,baseCompile:Tz,baseParse:rP,buildDirectiveArgs:wz,buildProps:sP,buildSlots:mz,checkCompatEnabled:Dh,compile:aTe,convertToBlock:iw,createArrayExpression:Ou,createAssignmentExpression:xxe,createBlockStatement:FG,createCacheExpression:kG,createCallExpression:br,createCompilerError:zn,createCompoundExpression:ua,createConditionalExpression:vb,createDOMCompilerError:ml,createForLoopParams:mb,createFunctionExpression:Ff,createIfStatement:wxe,createInterpolation:bxe,createObjectExpression:Ao,createObjectProperty:dr,createReturnStatement:Txe,createRoot:NG,createSequenceExpression:Cxe,createSimpleExpression:kt,createStructuralDirectiveTransform:iP,createTemplateLiteral:Sxe,createTransformContext:oz,createVNodeCall:Oh,errorMessages:Oxe,extractIdentifiers:ol,findDir:Ri,findProp:Lm,forAliasRE:ZG,generate:lz,generateCodeFrame:d$,getBaseTransformPreset:Cz,getConstantType:eo,getMemoedVNodeCall:KG,getVNodeBlockHelper:Bf,getVNodeHelper:$f,hasDynamicKeyVBind:XG,hasScopeRef:Aa,helperNameMap:kf,injectProp:em,isCoreComponent:QR,isFnExpression:WG,isFnExpressionBrowser:zG,isFnExpressionNode:Yxe,isFunctionType:Vxe,isInDestructureAssignment:Lxe,isInNewExpression:Nxe,isMemberExpression:eP,isMemberExpressionBrowser:GG,isMemberExpressionNode:jxe,isReferencedIdentifier:Mxe,isSimpleIdentifier:Mm,isSlotOutlet:Qg,isStaticArgOf:wu,isStaticExp:Pi,isStaticProperty:BG,isStaticPropertyKey:Uxe,isTemplateNode:Mh,isText:i1,isVSlot:tP,locStub:Mr,noopDirectiveTransform:Ez,parse:sTe,parserOptions:_P,processExpression:l1,processFor:vz,processIf:dz,processSlotOutlet:xz,registerRuntimeHelpers:LG,resolveComponentType:Sz,stringifyExpression:fz,toValidAssetId:Lh,trackSlotScopes:gz,trackVForSlotScopes:LCe,transform:az,transformBind:hz,transformElement:bz,transformExpression:RCe,transformModel:uP,transformOn:lP,transformStyle:Az,traverseNode:Nm,unwrapTSNode:UG,walkBlockDeclarations:Fxe,walkFunctionParams:kxe,walkIdentifiers:Dxe,warnDeprecation:Rxe},Symbol.toStringTag,{value:"Module"})),uTe=Tb(lTe),cTe=Tb(nee),fTe=Tb(WZ);/**
* vue v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/var Y5;function dTe(){return Y5||(Y5=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=uTe,n=cTe,r=fTe;function i(l){var u=Object.create(null);if(l)for(var c in l)u[c]=l[c];return u.default=l,Object.freeze(u)}var o=i(n);const a=Object.create(null);function s(l,u){if(!r.isString(l))if(l.nodeType)l=l.innerHTML;else return r.NOOP;const c=r.genCacheKey(l,u),f=a[c];if(f)return f;if(l[0]==="#"){const m=document.querySelector(l);l=m?m.innerHTML:""}const d=r.extend({hoistStatic:!0,onError:void 0,onWarn:r.NOOP},u);!d.isCustomElement&&typeof customElements<"u"&&(d.isCustomElement=m=>!!customElements.get(m));const{code:h}=t.compile(l,d),v=new Function("Vue",h)(o);return v._rc=!0,a[c]=v}n.registerRuntimeCompiler(s),e.compile=s,Object.keys(n).forEach(function(l){l!=="default"&&!Object.prototype.hasOwnProperty.call(e,l)&&(e[l]=n[l])})}(kT)),kT}var K5;function hTe(){return K5||(K5=1,NT.exports=dTe()),NT.exports}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Z5(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 Es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z5(Object(n),!0).forEach(function(r){pTe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c1(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c1=function(t){return typeof t}:c1=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c1(e)}function pTe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pa(){return pa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pa.apply(this,arguments)}function vTe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function gTe(e,t){if(e==null)return{};var n=vTe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mTe(e){return yTe(e)||_Te(e)||bTe(e)||STe()}function yTe(e){if(Array.isArray(e))return pI(e)}function _Te(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bTe(e,t){if(e){if(typeof e=="string")return pI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pI(e,t)}}function pI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function STe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wTe="1.14.0";function yl(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Rl=yl(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Fm=yl(/Edge/i),q5=yl(/firefox/i),rg=yl(/safari/i)&&!yl(/chrome/i)&&!yl(/android/i),Oz=yl(/iP(ad|od|hone)/i),xTe=yl(/chrome/i)&&yl(/android/i),Dz={capture:!1,passive:!1};function tn(e,t,n){e.addEventListener(t,n,!Rl&&Dz)}function Yt(e,t,n){e.removeEventListener(t,n,!Rl&&Dz)}function bb(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function CTe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Oa(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&bb(e,t):bb(e,t))||r&&e===n)return e;if(e===n)break}while(e=CTe(e))}return null}var J5=/\s+/g;function Qn(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(J5," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(J5," ")}}function ft(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function wf(e,t){var n="";if(typeof e=="string")n=e;else do{var r=ft(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Mz(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function _s(){var e=document.scrollingElement;return e||document.documentElement}function Yn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,a,s,l,u,c,f;if(e!==window&&e.parentNode&&e!==_s()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,u=o.right,c=o.height,f=o.width):(a=0,s=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Rl))do if(i&&i.getBoundingClientRect&&(ft(i,"transform")!=="none"||n&&ft(i,"position")!=="static")){var d=i.getBoundingClientRect();a-=d.top+parseInt(ft(i,"border-top-width")),s-=d.left+parseInt(ft(i,"border-left-width")),l=a+o.height,u=s+o.width;break}while(i=i.parentNode);if(r&&e!==window){var h=wf(i||e),v=h&&h.a,m=h&&h.d;h&&(a/=m,s/=v,f/=v,c/=m,l=a+c,u=s+f)}return{top:a,left:s,bottom:l,right:u,width:f,height:c}}}function Q5(e,t,n){for(var r=xu(e,!0),i=Yn(e)[t];r;){var o=Yn(r)[n],a=void 0;if(a=i>=o,!a)return r;if(r===_s())break;r=xu(r,!1)}return!1}function Nh(e,t,n,r){for(var i=0,o=0,a=e.children;o<a.length;){if(a[o].style.display!=="none"&&a[o]!==At.ghost&&(r||a[o]!==At.dragged)&&Oa(a[o],n.draggable,e,!1)){if(i===t)return a[o];i++}o++}return null}function bP(e,t){for(var n=e.lastElementChild;n&&(n===At.ghost||ft(n,"display")==="none"||t&&!bb(n,t));)n=n.previousElementSibling;return n||null}function or(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==At.clone&&(!t||bb(e,t))&&n++;return n}function e$(e){var t=0,n=0,r=_s();if(e)do{var i=wf(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function TTe(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function xu(e,t){if(!e||!e.getBoundingClientRect)return _s();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=ft(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return _s();if(r||t)return n;r=!0}}while(n=n.parentNode);return _s()}function ETe(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function $T(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var ig;function Lz(e,t){return function(){if(!ig){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),ig=setTimeout(function(){ig=void 0},t)}}}function ATe(){clearTimeout(ig),ig=void 0}function Nz(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function SP(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function t$(e,t){ft(e,"position","absolute"),ft(e,"top",t.top),ft(e,"left",t.left),ft(e,"width",t.width),ft(e,"height",t.height)}function BT(e){ft(e,"position",""),ft(e,"top",""),ft(e,"left",""),ft(e,"width",""),ft(e,"height","")}var hi="Sortable"+new Date().getTime();function ITe(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(ft(i,"display")==="none"||i===At.ghost)){e.push({target:i,rect:Yn(i)});var o=Es({},e[e.length-1].rect);if(i.thisAnimationDuration){var a=wf(i,!0);a&&(o.top-=a.f,o.left-=a.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(TTe(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,a=0;e.forEach(function(s){var l=0,u=s.target,c=u.fromRect,f=Yn(u),d=u.prevFromRect,h=u.prevToRect,v=s.rect,m=wf(u,!0);m&&(f.top-=m.f,f.left-=m.e),u.toRect=f,u.thisAnimationDuration&&$T(d,f)&&!$T(c,f)&&(v.top-f.top)/(v.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=PTe(v,d,h,i.options)),$T(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=i.options.animation),i.animate(u,v,f,l)),l&&(o=!0,a=Math.max(a,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},a):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,a){if(a){ft(r,"transition",""),ft(r,"transform","");var s=wf(this.el),l=s&&s.a,u=s&&s.d,c=(i.left-o.left)/(l||1),f=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!f,ft(r,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=RTe(r),ft(r,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),ft(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){ft(r,"transition",""),ft(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},a)}}}}function RTe(e){return e.offsetWidth}function PTe(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Ad=[],VT={initializeByDefault:!0},$m={mount:function(t){for(var n in VT)VT.hasOwnProperty(n)&&!(n in t)&&(t[n]=VT[n]);Ad.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Ad.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";Ad.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][o]&&n[a.pluginName][o](Es({sortable:n},r)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](Es({sortable:n},r)))})},initializePlugins:function(t,n,r,i){Ad.forEach(function(s){var l=s.pluginName;if(!(!t.options[l]&&!s.initializeByDefault)){var u=new s(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,pa(r,u.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);typeof a<"u"&&(t.options[o]=a)}},getEventProperties:function(t,n){var r={};return Ad.forEach(function(i){typeof i.eventProperties=="function"&&pa(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return Ad.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function vv(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,a=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,f=e.newDraggableIndex,d=e.originalEvent,h=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[hi],!!t){var m,_=t.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Rl&&!Fm?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=a||n,m.from=s||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=d,m.pullMode=h?h.lastPutMode:void 0;var b=Es(Es({},v),$m.getEventProperties(r,t));for(var S in b)m[S]=b[S];n&&n.dispatchEvent(m),_[y]&&_[y].call(t,m)}}var OTe=["evt"],Hi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=gTe(r,OTe);$m.pluginEvent.bind(At)(t,n,Es({dragEl:Xe,parentEl:rr,ghostEl:$t,rootEl:jn,nextEl:Hc,lastDownEl:f1,cloneEl:ir,cloneHidden:pu,dragStarted:gv,putSortable:Wr,activeSortable:At.active,originalEvent:i,oldIndex:jd,oldDraggableIndex:og,newIndex:wo,newDraggableIndex:cu,hideGhostForTarget:Bz,unhideGhostForTarget:Vz,cloneNowHidden:function(){pu=!0},cloneNowShown:function(){pu=!1},dispatchSortableEvent:function(s){xi({sortable:n,name:s,originalEvent:i})}},o))};function xi(e){vv(Es({putSortable:Wr,cloneEl:ir,targetEl:Xe,rootEl:jn,oldIndex:jd,oldDraggableIndex:og,newIndex:wo,newDraggableIndex:cu},e))}var Xe,rr,$t,jn,Hc,f1,ir,pu,jd,wo,og,cu,J0,Wr,Fd=!1,Sb=!1,wb=[],Lc,Ca,UT,HT,n$,r$,gv,Id,ag,sg=!1,Q0=!1,d1,ii,GT=[],vI=!1,xb=[],aw=typeof document<"u",e_=Oz,i$=Fm||Rl?"cssFloat":"float",DTe=aw&&!xTe&&!Oz&&"draggable"in document.createElement("div"),kz=function(){if(aw){if(Rl)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Fz=function(t,n){var r=ft(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Nh(t,0,n),a=Nh(t,1,n),s=o&&ft(o),l=a&&ft(a),u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Yn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Yn(a).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&s.float&&s.float!=="none"){var f=s.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return o&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||u>=i&&r[i$]==="none"||a&&r[i$]==="none"&&u+c>i)?"vertical":"horizontal"},MTe=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,a=r?t.width:t.height,s=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===s||o===l||i+a/2===s+u/2},LTe=function(t,n){var r;return wb.some(function(i){var o=i[hi].options.emptyInsertThreshold;if(!(!o||bP(i))){var a=Yn(i),s=t>=a.left-o&&t<=a.right+o,l=n>=a.top-o&&n<=a.bottom+o;if(s&&l)return r=i}}),r},$z=function(t){function n(o,a){return function(s,l,u,c){var f=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(o==null&&(a||f))return!0;if(o==null||o===!1)return!1;if(a&&o==="clone")return o;if(typeof o=="function")return n(o(s,l,u,c),a)(s,l,u,c);var d=(a?s:l).options.group.name;return o===!0||typeof o=="string"&&o===d||o.join&&o.indexOf(d)>-1}}var r={},i=t.group;(!i||c1(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},Bz=function(){!kz&&$t&&ft($t,"display","none")},Vz=function(){!kz&&$t&&ft($t,"display","")};aw&&document.addEventListener("click",function(e){if(Sb)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Sb=!1,!1},!0);var Nc=function(t){if(Xe){t=t.touches?t.touches[0]:t;var n=LTe(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[hi]._onDragOver(r)}}},NTe=function(t){Xe&&Xe.parentNode[hi]._isOutsideThisEl(t.target)};function At(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=pa({},t),e[hi]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Fz(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,s){a.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:At.supportPointer!==!1&&"PointerEvent"in window&&!rg,emptyInsertThreshold:5};$m.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);$z(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:DTe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?tn(e,"pointerdown",this._onTapStart):(tn(e,"mousedown",this._onTapStart),tn(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(tn(e,"dragover",this),tn(e,"dragenter",this)),wb.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),pa(this,ITe())}At.prototype={constructor:At,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Id=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Xe):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,a=t.type,s=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(s||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(GTe(r),!Xe&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&rg&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Oa(l,i.draggable,r,!1),!(l&&l.animated)&&f1!==l)){if(jd=or(l),og=or(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){xi({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Hi("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Oa(u,f.trim(),r,!1),f)return xi({sortable:n,rootEl:f,name:"filter",targetEl:l,fromEl:r,toEl:r}),Hi("filter",n,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Oa(u,i.handle,r,!1)||this._prepareDragStart(t,s,l)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,a=i.options,s=o.ownerDocument,l;if(r&&!Xe&&r.parentNode===o){var u=Yn(r);if(jn=o,Xe=r,rr=Xe.parentNode,Hc=Xe.nextSibling,f1=r,J0=a.group,At.dragged=Xe,Lc={target:Xe,clientX:(n||t).clientX,clientY:(n||t).clientY},n$=Lc.clientX-u.left,r$=Lc.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Xe.style["will-change"]="all",l=function(){if(Hi("delayEnded",i,{evt:t}),At.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!q5&&i.nativeDraggable&&(Xe.draggable=!0),i._triggerDragStart(t,n),xi({sortable:i,name:"choose",originalEvent:t}),Qn(Xe,a.chosenClass,!0)},a.ignore.split(",").forEach(function(c){Mz(Xe,c.trim(),zT)}),tn(s,"dragover",Nc),tn(s,"mousemove",Nc),tn(s,"touchmove",Nc),tn(s,"mouseup",i._onDrop),tn(s,"touchend",i._onDrop),tn(s,"touchcancel",i._onDrop),q5&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Xe.draggable=!0),Hi("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Fm||Rl))){if(At.eventCanceled){this._onDrop();return}tn(s,"mouseup",i._disableDelayedDrag),tn(s,"touchend",i._disableDelayedDrag),tn(s,"touchcancel",i._disableDelayedDrag),tn(s,"mousemove",i._delayedDragTouchMoveHandler),tn(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&tn(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Xe&&zT(Xe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Yt(t,"mouseup",this._disableDelayedDrag),Yt(t,"touchend",this._disableDelayedDrag),Yt(t,"touchcancel",this._disableDelayedDrag),Yt(t,"mousemove",this._delayedDragTouchMoveHandler),Yt(t,"touchmove",this._delayedDragTouchMoveHandler),Yt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?tn(document,"pointermove",this._onTouchMove):n?tn(document,"touchmove",this._onTouchMove):tn(document,"mousemove",this._onTouchMove):(tn(Xe,"dragend",this),tn(jn,"dragstart",this._onDragStart));try{document.selection?h1(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Fd=!1,jn&&Xe){Hi("dragStarted",this,{evt:n}),this.nativeDraggable&&tn(document,"dragover",NTe);var r=this.options;!t&&Qn(Xe,r.dragClass,!1),Qn(Xe,r.ghostClass,!0),At.active=this,t&&this._appendGhost(),xi({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ca){this._lastX=Ca.clientX,this._lastY=Ca.clientY,Bz();for(var t=document.elementFromPoint(Ca.clientX,Ca.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ca.clientX,Ca.clientY),t!==n);)n=t;if(Xe.parentNode[hi]._isOutsideThisEl(t),n)do{if(n[hi]){var r=void 0;if(r=n[hi]._onDragOver({clientX:Ca.clientX,clientY:Ca.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Vz()}},_onTouchMove:function(t){if(Lc){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,a=$t&&wf($t,!0),s=$t&&a&&a.a,l=$t&&a&&a.d,u=e_&&ii&&e$(ii),c=(o.clientX-Lc.clientX+i.x)/(s||1)+(u?u[0]-GT[0]:0)/(s||1),f=(o.clientY-Lc.clientY+i.y)/(l||1)+(u?u[1]-GT[1]:0)/(l||1);if(!At.active&&!Fd){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if($t){a?(a.e+=c-(UT||0),a.f+=f-(HT||0)):a={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");ft($t,"webkitTransform",d),ft($t,"mozTransform",d),ft($t,"msTransform",d),ft($t,"transform",d),UT=c,HT=f,Ca=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!$t){var t=this.options.fallbackOnBody?document.body:jn,n=Yn(Xe,!0,e_,!0,t),r=this.options;if(e_){for(ii=t;ft(ii,"position")==="static"&&ft(ii,"transform")==="none"&&ii!==document;)ii=ii.parentNode;ii!==document.body&&ii!==document.documentElement?(ii===document&&(ii=_s()),n.top+=ii.scrollTop,n.left+=ii.scrollLeft):ii=_s(),GT=e$(ii)}$t=Xe.cloneNode(!0),Qn($t,r.ghostClass,!1),Qn($t,r.fallbackClass,!0),Qn($t,r.dragClass,!0),ft($t,"transition",""),ft($t,"transform",""),ft($t,"box-sizing","border-box"),ft($t,"margin",0),ft($t,"top",n.top),ft($t,"left",n.left),ft($t,"width",n.width),ft($t,"height",n.height),ft($t,"opacity","0.8"),ft($t,"position",e_?"absolute":"fixed"),ft($t,"zIndex","100000"),ft($t,"pointerEvents","none"),At.ghost=$t,t.appendChild($t),ft($t,"transform-origin",n$/parseInt($t.style.width)*100+"% "+r$/parseInt($t.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,o=r.options;if(Hi("dragStart",this,{evt:t}),At.eventCanceled){this._onDrop();return}Hi("setupClone",this),At.eventCanceled||(ir=SP(Xe),ir.draggable=!1,ir.style["will-change"]="",this._hideClone(),Qn(ir,this.options.chosenClass,!1),At.clone=ir),r.cloneId=h1(function(){Hi("clone",r),!At.eventCanceled&&(r.options.removeCloneOnHide||jn.insertBefore(ir,Xe),r._hideClone(),xi({sortable:r,name:"clone"}))}),!n&&Qn(Xe,o.dragClass,!0),n?(Sb=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Yt(document,"mouseup",r._onDrop),Yt(document,"touchend",r._onDrop),Yt(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Xe)),tn(document,"drop",r),ft(Xe,"transform","translateZ(0)")),Fd=!0,r._dragStartId=h1(r._dragStarted.bind(r,n,t)),tn(document,"selectstart",r),gv=!0,rg&&ft(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,o,a,s=this.options,l=s.group,u=At.active,c=J0===l,f=s.sort,d=Wr||u,h,v=this,m=!1;if(vI)return;function _(j,le){Hi(j,v,Es({evt:t,isOwner:c,axis:h?"vertical":"horizontal",revert:a,dragRect:i,targetRect:o,canSort:f,fromSortable:d,target:r,completed:b,onMove:function(ge,De){return t_(jn,n,Xe,i,ge,Yn(ge),t,De)},changed:S},le))}function y(){_("dragOverAnimationCapture"),v.captureAnimationState(),v!==d&&d.captureAnimationState()}function b(j){return _("dragOverCompleted",{insertion:j}),j&&(c?u._hideClone():u._showClone(v),v!==d&&(Qn(Xe,Wr?Wr.options.ghostClass:u.options.ghostClass,!1),Qn(Xe,s.ghostClass,!0)),Wr!==v&&v!==At.active?Wr=v:v===At.active&&Wr&&(Wr=null),d===v&&(v._ignoreWhileAnimating=r),v.animateAll(function(){_("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(r===Xe&&!Xe.animated||r===n&&!r.animated)&&(Id=null),!s.dragoverBubble&&!t.rootEl&&r!==document&&(Xe.parentNode[hi]._isOutsideThisEl(t.target),!j&&Nc(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function S(){wo=or(Xe),cu=or(Xe,s.draggable),xi({sortable:v,name:"change",toEl:n,newIndex:wo,newDraggableIndex:cu,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Oa(r,s.draggable,n,!0),_("dragOver"),At.eventCanceled)return m;if(Xe.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||v._ignoreWhileAnimating===r)return b(!1);if(Sb=!1,u&&!s.disabled&&(c?f||(a=rr!==jn):Wr===this||(this.lastPutMode=J0.checkPull(this,u,Xe,t))&&l.checkPut(this,u,Xe,t))){if(h=this._getDirection(t,r)==="vertical",i=Yn(Xe),_("dragOverValid"),At.eventCanceled)return m;if(a)return rr=jn,y(),this._hideClone(),_("revert"),At.eventCanceled||(Hc?jn.insertBefore(Xe,Hc):jn.appendChild(Xe)),b(!0);var w=bP(n,s.draggable);if(!w||BTe(t,h,this)&&!w.animated){if(w===Xe)return b(!1);if(w&&n===t.target&&(r=w),r&&(o=Yn(r)),t_(jn,n,Xe,i,r,o,t,!!r)!==!1)return y(),n.appendChild(Xe),rr=n,S(),b(!0)}else if(w&&$Te(t,h,this)){var C=Nh(n,0,s,!0);if(C===Xe)return b(!1);if(r=C,o=Yn(r),t_(jn,n,Xe,i,r,o,t,!1)!==!1)return y(),n.insertBefore(Xe,C),rr=n,S(),b(!0)}else if(r.parentNode===n){o=Yn(r);var T=0,E,R=Xe.parentNode!==n,I=!MTe(Xe.animated&&Xe.toRect||i,r.animated&&r.toRect||o,h),O=h?"top":"left",P=Q5(r,"top","top")||Q5(Xe,"top","top"),M=P?P.scrollTop:void 0;Id!==r&&(E=o[O],sg=!1,Q0=!I&&s.invertSwap||R),T=VTe(t,r,o,h,I?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Q0,Id===r);var F;if(T!==0){var $=or(Xe);do $-=T,F=rr.children[$];while(F&&(ft(F,"display")==="none"||F===$t))}if(T===0||F===r)return b(!1);Id=r,ag=T;var z=r.nextElementSibling,B=!1;B=T===1;var K=t_(jn,n,Xe,i,r,o,t,B);if(K!==!1)return(K===1||K===-1)&&(B=K===1),vI=!0,setTimeout(FTe,30),y(),B&&!z?n.appendChild(Xe):r.parentNode.insertBefore(Xe,B?z:r),P&&Nz(P,0,M-P.scrollTop),rr=Xe.parentNode,E!==void 0&&!Q0&&(d1=Math.abs(E-Yn(r)[O])),S(),b(!0)}if(n.contains(Xe))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Yt(document,"mousemove",this._onTouchMove),Yt(document,"touchmove",this._onTouchMove),Yt(document,"pointermove",this._onTouchMove),Yt(document,"dragover",Nc),Yt(document,"mousemove",Nc),Yt(document,"touchmove",Nc)},_offUpEvents:function(){var t=this.el.ownerDocument;Yt(t,"mouseup",this._onDrop),Yt(t,"touchend",this._onDrop),Yt(t,"pointerup",this._onDrop),Yt(t,"touchcancel",this._onDrop),Yt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(wo=or(Xe),cu=or(Xe,r.draggable),Hi("drop",this,{evt:t}),rr=Xe&&Xe.parentNode,wo=or(Xe),cu=or(Xe,r.draggable),At.eventCanceled){this._nulling();return}Fd=!1,Q0=!1,sg=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gI(this.cloneId),gI(this._dragStartId),this.nativeDraggable&&(Yt(document,"drop",this),Yt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),rg&&ft(document.body,"user-select",""),ft(Xe,"transform",""),t&&(gv&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),$t&&$t.parentNode&&$t.parentNode.removeChild($t),(jn===rr||Wr&&Wr.lastPutMode!=="clone")&&ir&&ir.parentNode&&ir.parentNode.removeChild(ir),Xe&&(this.nativeDraggable&&Yt(Xe,"dragend",this),zT(Xe),Xe.style["will-change"]="",gv&&!Fd&&Qn(Xe,Wr?Wr.options.ghostClass:this.options.ghostClass,!1),Qn(Xe,this.options.chosenClass,!1),xi({sortable:this,name:"unchoose",toEl:rr,newIndex:null,newDraggableIndex:null,originalEvent:t}),jn!==rr?(wo>=0&&(xi({rootEl:rr,name:"add",toEl:rr,fromEl:jn,originalEvent:t}),xi({sortable:this,name:"remove",toEl:rr,originalEvent:t}),xi({rootEl:rr,name:"sort",toEl:rr,fromEl:jn,originalEvent:t}),xi({sortable:this,name:"sort",toEl:rr,originalEvent:t})),Wr&&Wr.save()):wo!==jd&&wo>=0&&(xi({sortable:this,name:"update",toEl:rr,originalEvent:t}),xi({sortable:this,name:"sort",toEl:rr,originalEvent:t})),At.active&&((wo==null||wo===-1)&&(wo=jd,cu=og),xi({sortable:this,name:"end",toEl:rr,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Hi("nulling",this),jn=Xe=rr=$t=Hc=ir=f1=pu=Lc=Ca=gv=wo=cu=jd=og=Id=ag=Wr=J0=At.dragged=At.ghost=At.clone=At.active=null,xb.forEach(function(t){t.checked=!0}),xb.length=UT=HT=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Xe&&(this._onDragOver(t),kTe(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)n=r[i],Oa(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||HTe(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,a){var s=i.children[a];Oa(s,this.options.draggable,i,!1)&&(r[o]=s)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Oa(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=$m.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&$z(r)},destroy:function(){Hi("destroy",this);var t=this.el;t[hi]=null,Yt(t,"mousedown",this._onTapStart),Yt(t,"touchstart",this._onTapStart),Yt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Yt(t,"dragover",this),Yt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),wb.splice(wb.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!pu){if(Hi("hideClone",this),At.eventCanceled)return;ft(ir,"display","none"),this.options.removeCloneOnHide&&ir.parentNode&&ir.parentNode.removeChild(ir),pu=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(pu){if(Hi("showClone",this),At.eventCanceled)return;Xe.parentNode==jn&&!this.options.group.revertClone?jn.insertBefore(ir,Xe):Hc?jn.insertBefore(ir,Hc):jn.appendChild(ir),this.options.group.revertClone&&this.animate(Xe,ir),ft(ir,"display",""),pu=!1}}};function kTe(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function t_(e,t,n,r,i,o,a,s){var l,u=e[hi],c=u.options.onMove,f;return window.CustomEvent&&!Rl&&!Fm?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||Yn(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),c&&(f=c.call(u,l,a)),f}function zT(e){e.draggable=!1}function FTe(){vI=!1}function $Te(e,t,n){var r=Yn(Nh(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function BTe(e,t,n){var r=Yn(bP(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function VTe(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,f=r?n.bottom:n.right,d=!1;if(!a){if(s&&d1<u*i){if(!sg&&(ag===1?l>c+u*o/2:l<f-u*o/2)&&(sg=!0),sg)d=!0;else if(ag===1?l<c+d1:l>f-d1)return-ag}else if(l>c+u*(1-i)/2&&l<f-u*(1-i)/2)return UTe(t)}return d=d||a,d&&(l<c+u*o/2||l>f-u*o/2)?l>c+u/2?1:-1:0}function UTe(e){return or(Xe)<or(e)?1:-1}function HTe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function GTe(e){xb.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&xb.push(r)}}function h1(e){return setTimeout(e,0)}function gI(e){return clearTimeout(e)}aw&&tn(document,"touchmove",function(e){(At.active||Fd)&&e.cancelable&&e.preventDefault()});At.utils={on:tn,off:Yt,css:ft,find:Mz,is:function(t,n){return!!Oa(t,n,t,!1)},extend:ETe,throttle:Lz,closest:Oa,toggleClass:Qn,clone:SP,index:or,nextTick:h1,cancelNextTick:gI,detectDirection:Fz,getChild:Nh};At.get=function(e){return e[hi]};At.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(At.utils=Es(Es({},At.utils),r.utils)),$m.mount(r)})};At.create=function(e,t){return new At(e,t)};At.version=wTe;var _r=[],mv,mI,yI=!1,WT,jT,Cb,yv;function zTe(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?tn(document,"dragover",this._handleAutoScroll):this.options.supportPointer?tn(document,"pointermove",this._handleFallbackAutoScroll):r.touches?tn(document,"touchmove",this._handleFallbackAutoScroll):tn(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Yt(document,"dragover",this._handleAutoScroll):(Yt(document,"pointermove",this._handleFallbackAutoScroll),Yt(document,"touchmove",this._handleFallbackAutoScroll),Yt(document,"mousemove",this._handleFallbackAutoScroll)),o$(),p1(),ATe()},nulling:function(){Cb=mI=mv=yI=yv=WT=jT=null,_r.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=document.elementFromPoint(o,a);if(Cb=n,r||this.options.forceAutoScrollFallback||Fm||Rl||rg){XT(n,this.options,s,r);var l=xu(s,!0);yI&&(!yv||o!==WT||a!==jT)&&(yv&&o$(),yv=setInterval(function(){var u=xu(document.elementFromPoint(o,a),!0);u!==l&&(l=u,p1()),XT(n,i.options,u,r)},10),WT=o,jT=a)}else{if(!this.options.bubbleScroll||xu(s,!0)===_s()){p1();return}XT(n,this.options,xu(s,!1),!1)}}},pa(e,{pluginName:"scroll",initializeByDefault:!0})}function p1(){_r.forEach(function(e){clearInterval(e.pid)}),_r=[]}function o$(){clearInterval(yv)}var XT=Lz(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,s=t.scrollSpeed,l=_s(),u=!1,c;mI!==n&&(mI=n,p1(),mv=t.scroll,c=t.scrollFn,mv===!0&&(mv=xu(n,!0)));var f=0,d=mv;do{var h=d,v=Yn(h),m=v.top,_=v.bottom,y=v.left,b=v.right,S=v.width,w=v.height,C=void 0,T=void 0,E=h.scrollWidth,R=h.scrollHeight,I=ft(h),O=h.scrollLeft,P=h.scrollTop;h===l?(C=S<E&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),T=w<R&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(C=S<E&&(I.overflowX==="auto"||I.overflowX==="scroll"),T=w<R&&(I.overflowY==="auto"||I.overflowY==="scroll"));var M=C&&(Math.abs(b-i)<=a&&O+S<E)-(Math.abs(y-i)<=a&&!!O),F=T&&(Math.abs(_-o)<=a&&P+w<R)-(Math.abs(m-o)<=a&&!!P);if(!_r[f])for(var $=0;$<=f;$++)_r[$]||(_r[$]={});(_r[f].vx!=M||_r[f].vy!=F||_r[f].el!==h)&&(_r[f].el=h,_r[f].vx=M,_r[f].vy=F,clearInterval(_r[f].pid),(M!=0||F!=0)&&(u=!0,_r[f].pid=setInterval((function(){r&&this.layer===0&&At.active._onTouchMove(Cb);var z=_r[this.layer].vy?_r[this.layer].vy*s:0,B=_r[this.layer].vx?_r[this.layer].vx*s:0;typeof c=="function"&&c.call(At.dragged.parentNode[hi],B,z,e,Cb,_r[this.layer].el)!=="continue"||Nz(_r[this.layer].el,B,z)}).bind({layer:f}),24))),f++}while(t.bubbleScroll&&d!==l&&(d=xu(d,!1)));yI=u}},30),Uz=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,s=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||o;s();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(a("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function wP(){}wP.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Nh(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Uz};pa(wP,{pluginName:"revertOnSpill"});function xP(){}xP.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Uz};pa(xP,{pluginName:"removeOnSpill"});var Yo;function WTe(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;Yo=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,a=n.activeSortable,s=n.changed,l=n.cancel;if(a.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var f=Yo;o(i)!==!1?(Qn(i,c.swapClass,!0),Yo=i):Yo=null,f&&f!==Yo&&Qn(f,c.swapClass,!1)}s(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,a=i||this.sortable,s=this.options;Yo&&Qn(Yo,s.swapClass,!1),Yo&&(s.swap||i&&i.options.swap)&&o!==Yo&&(a.captureAnimationState(),a!==r&&r.captureAnimationState(),jTe(o,Yo),a.animateAll(),a!==r&&r.animateAll())},nulling:function(){Yo=null}},pa(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Yo}}})}function jTe(e,t){var n=e.parentNode,r=t.parentNode,i,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=or(e),o=or(t),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[o]))}var Nt=[],bo=[],Jp,Ta,Qp=!1,Gi=!1,Rd=!1,kn,ev,n_;function XTe(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?tn(document,"pointerup",this._deselectMultiDrag):(tn(document,"mouseup",this._deselectMultiDrag),tn(document,"touchend",this._deselectMultiDrag)),tn(document,"keydown",this._checkKeyDown),tn(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var a="";Nt.length&&Ta===t?Nt.forEach(function(s,l){a+=(l?", ":"")+s.textContent}):a=o.textContent,i.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;kn=r},delayEnded:function(){this.isMultiDrag=~Nt.indexOf(kn)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<Nt.length;o++)bo.push(SP(Nt[o])),bo[o].sortableIndex=Nt[o].sortableIndex,bo[o].draggable=!1,bo[o].style["will-change"]="",Qn(bo[o],this.options.selectedClass,!1),Nt[o]===kn&&Qn(bo[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,a=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Nt.length&&Ta===r&&(a$(!0,i),o("clone"),a()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(a$(!1,i),bo.forEach(function(a){ft(a,"display","")}),r(),n_=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(bo.forEach(function(a){ft(a,"display","none"),r.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),i(),n_=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Ta&&Ta.multiDrag._deselectMultiDrag(),Nt.forEach(function(r){r.sortableIndex=or(r)}),Nt=Nt.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),Rd=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){Nt.forEach(function(a){a!==kn&&ft(a,"position","absolute")});var o=Yn(kn,!1,!0,!0);Nt.forEach(function(a){a!==kn&&t$(a,o)}),Gi=!0,Qp=!0}i.animateAll(function(){Gi=!1,Qp=!1,r.options.animation&&Nt.forEach(function(a){BT(a)}),r.options.sort&&r_()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;Gi&&~Nt.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,a=n.dragRect;Nt.length>1&&(Nt.forEach(function(s){o.addAnimationState({target:s,rect:Gi?Yn(s):a}),BT(s),s.fromRect=a,r.removeAnimationState(s)}),Gi=!1,YTe(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,a=n.activeSortable,s=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&a._hideClone(),Qp=!1,u.animation&&Nt.length>1&&(Gi||!i&&!a.options.sort&&!l)){var c=Yn(kn,!1,!0,!0);Nt.forEach(function(d){d!==kn&&(t$(d,c),s.appendChild(d))}),Gi=!0}if(!i)if(Gi||r_(),Nt.length>1){var f=n_;a._showClone(r),a.options.animation&&!n_&&f&&bo.forEach(function(d){a.addAnimationState({target:d,rect:ev}),d.fromRect=ev,d.thisAnimationDuration=null})}else a._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(Nt.forEach(function(s){s.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){ev=pa({},r);var a=wf(kn,!0);ev.top-=a.f,ev.left-=a.e}},dragOverAnimationComplete:function(){Gi&&(Gi=!1,r_())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,a=n.sortable,s=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var f=this.options,d=o.children;if(!Rd)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Qn(kn,f.selectedClass,!~Nt.indexOf(kn)),~Nt.indexOf(kn))Nt.splice(Nt.indexOf(kn),1),Jp=null,vv({sortable:a,rootEl:i,name:"deselect",targetEl:kn,originalEvt:r});else{if(Nt.push(kn),vv({sortable:a,rootEl:i,name:"select",targetEl:kn,originalEvt:r}),r.shiftKey&&Jp&&a.el.contains(Jp)){var h=or(Jp),v=or(kn);if(~h&&~v&&h!==v){var m,_;for(v>h?(_=h,m=v):(_=v,m=h+1);_<m;_++)~Nt.indexOf(d[_])||(Qn(d[_],f.selectedClass,!0),Nt.push(d[_]),vv({sortable:a,rootEl:i,name:"select",targetEl:d[_],originalEvt:r}))}}else Jp=kn;Ta=c}if(Rd&&this.isMultiDrag){if(Gi=!1,(o[hi].options.sort||o!==i)&&Nt.length>1){var y=Yn(kn),b=or(kn,":not(."+this.options.selectedClass+")");if(!Qp&&f.animation&&(kn.thisAnimationDuration=null),c.captureAnimationState(),!Qp&&(f.animation&&(kn.fromRect=y,Nt.forEach(function(w){if(w.thisAnimationDuration=null,w!==kn){var C=Gi?Yn(w):y;w.fromRect=C,c.addAnimationState({target:w,rect:C})}})),r_(),Nt.forEach(function(w){d[b]?o.insertBefore(w,d[b]):o.appendChild(w),b++}),l===or(kn))){var S=!1;Nt.forEach(function(w){if(w.sortableIndex!==or(w)){S=!0;return}}),S&&s("update")}Nt.forEach(function(w){BT(w)}),c.animateAll()}Ta=c}(i===o||u&&u.lastPutMode!=="clone")&&bo.forEach(function(w){w.parentNode&&w.parentNode.removeChild(w)})}},nullingGlobal:function(){this.isMultiDrag=Rd=!1,bo.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Yt(document,"pointerup",this._deselectMultiDrag),Yt(document,"mouseup",this._deselectMultiDrag),Yt(document,"touchend",this._deselectMultiDrag),Yt(document,"keydown",this._checkKeyDown),Yt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Rd<"u"&&Rd)&&Ta===this.sortable&&!(n&&Oa(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Nt.length;){var r=Nt[0];Qn(r,this.options.selectedClass,!1),Nt.shift(),vv({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},pa(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[hi];!r||!r.options.multiDrag||~Nt.indexOf(n)||(Ta&&Ta!==r&&(Ta.multiDrag._deselectMultiDrag(),Ta=r),Qn(n,r.options.selectedClass,!0),Nt.push(n))},deselect:function(n){var r=n.parentNode[hi],i=Nt.indexOf(n);!r||!r.options.multiDrag||!~i||(Qn(n,r.options.selectedClass,!1),Nt.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return Nt.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var a;Gi&&o!==kn?a=-1:Gi?a=or(o,":not(."+n.options.selectedClass+")"):a=or(o),i.push({multiDragElement:o,index:a})}),{items:mTe(Nt),clones:[].concat(bo),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function YTe(e,t){Nt.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function a$(e,t){bo.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function r_(){Nt.forEach(function(e){e!==kn&&e.parentNode&&e.parentNode.removeChild(e)})}At.mount(new zTe);At.mount(xP,wP);const KTe=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:XTe,Sortable:At,Swap:WTe,default:At},Symbol.toStringTag,{value:"Module"})),ZTe=Tb(KTe);var qTe=r1.exports,s$;function JTe(){return s$||(s$=1,function(e,t){(function(r,i){e.exports=i(hTe(),ZTe)})(typeof self<"u"?self:qTe,function(n,r){return function(i){var o={};function a(s){if(o[s])return o[s].exports;var l=o[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,a),l.l=!0,l.exports}return a.m=i,a.c=o,a.d=function(s,l,u){a.o(s,l)||Object.defineProperty(s,l,{enumerable:!0,get:u})},a.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},a.t=function(s,l){if(l&1&&(s=a(s)),l&8||l&4&&typeof s=="object"&&s&&s.__esModule)return s;var u=Object.create(null);if(a.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:s}),l&2&&typeof s!="string")for(var c in s)a.d(u,c,(function(f){return s[f]}).bind(null,c));return u},a.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(l,"a",l),l},a.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},a.p="",a(a.s="fb15")}({"00ee":function(i,o,a){var s=a("b622"),l=s("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,a){var s=a("1c0b");i.exports=function(l,u,c){if(s(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,a){var s=a("fc6a"),l=a("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(d){try{return l(d)}catch{return c.slice()}};i.exports.f=function(h){return c&&u.call(h)=="[object Window]"?f(h):l(s(h))}},"06cf":function(i,o,a){var s=a("83ab"),l=a("d1e7"),u=a("5c6c"),c=a("fc6a"),f=a("c04e"),d=a("5135"),h=a("0cfb"),v=Object.getOwnPropertyDescriptor;o.f=s?v:function(_,y){if(_=c(_),y=f(y,!0),h)try{return v(_,y)}catch{}if(d(_,y))return u(!l.f.call(_,y),_[y])}},"0cfb":function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("cc12");i.exports=!s&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,a){var s=a("23e7"),l=a("d58f").left,u=a("a640"),c=a("ae40"),f=u("reduce"),d=c("reduce",{1:0});s({target:"Array",proto:!0,forced:!f||!d},{reduce:function(v){return l(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,a){var s=a("c6b6"),l=a("9263");i.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(s(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("17c2"),c=a("9112");for(var f in l){var d=s[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,o,a){var s=a("b727").forEach,l=a("a640"),u=a("ae40"),c=l("forEach"),f=u("forEach");i.exports=!c||!f?function(h){return s(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,a){var s=a("d066");i.exports=s("document","documentElement")},"1c0b":function(i,o){i.exports=function(a){if(typeof a!="function")throw TypeError(String(a)+" is not a function");return a}},"1c7e":function(i,o,a){var s=a("b622"),l=s("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}i.exports=function(d,h){if(!h&&!u)return!1;var v=!1;try{var m={};m[l]=function(){return{next:function(){return{done:v=!0}}}},d(m)}catch{}return v}},"1d80":function(i,o){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},"1dde":function(i,o,a){var s=a("d039"),l=a("b622"),u=a("2d00"),c=l("species");i.exports=function(f){return u>=51||!s(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},"23cb":function(i,o,a){var s=a("a691"),l=Math.max,u=Math.min;i.exports=function(c,f){var d=s(c);return d<0?l(d+f,0):u(d,f)}},"23e7":function(i,o,a){var s=a("da84"),l=a("06cf").f,u=a("9112"),c=a("6eeb"),f=a("ce4e"),d=a("e893"),h=a("94ca");i.exports=function(v,m){var _=v.target,y=v.global,b=v.stat,S,w,C,T,E,R;if(y?w=s:b?w=s[_]||f(_,{}):w=(s[_]||{}).prototype,w)for(C in m){if(E=m[C],v.noTargetGet?(R=l(w,C),T=R&&R.value):T=w[C],S=h(y?C:_+(b?".":"#")+C,v.forced),!S&&T!==void 0){if(typeof E==typeof T)continue;d(E,T)}(v.sham||T&&T.sham)&&u(E,"sham",!0),c(w,C,E,v)}}},"241c":function(i,o,a){var s=a("ca84"),l=a("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(f){return s(f,u)}},"25f0":function(i,o,a){var s=a("6eeb"),l=a("825a"),u=a("d039"),c=a("ad6d"),f="toString",d=RegExp.prototype,h=d[f],v=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),m=h.name!=f;(v||m)&&s(RegExp.prototype,f,function(){var y=l(this),b=String(y.source),S=y.flags,w=String(S===void 0&&y instanceof RegExp&&!("flags"in d)?c.call(y):S);return"/"+b+"/"+w},{unsafe:!0})},"2ca0":function(i,o,a){var s=a("23e7"),l=a("06cf").f,u=a("50c4"),c=a("5a34"),f=a("1d80"),d=a("ab13"),h=a("c430"),v="".startsWith,m=Math.min,_=d("startsWith"),y=!h&&!_&&!!function(){var b=l(String.prototype,"startsWith");return b&&!b.writable}();s({target:"String",proto:!0,forced:!y&&!_},{startsWith:function(S){var w=String(f(this));c(S);var C=u(m(arguments.length>1?arguments[1]:void 0,w.length)),T=String(S);return v?v.call(w,T,C):w.slice(C,C+T.length)===T}})},"2d00":function(i,o,a){var s=a("da84"),l=a("342f"),u=s.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),i.exports=h&&+h},"342f":function(i,o,a){var s=a("d066");i.exports=s("navigator","userAgent")||""},"35a1":function(i,o,a){var s=a("f5df"),l=a("3f8c"),u=a("b622"),c=u("iterator");i.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[s(f)]}},"37e8":function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("825a"),c=a("df75");i.exports=s?Object.defineProperties:function(d,h){u(d);for(var v=c(h),m=v.length,_=0,y;m>_;)l.f(d,y=v[_++],h[y]);return d}},"3bbe":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,a){var s=a("6547").charAt,l=a("69f3"),u=a("7dd0"),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var v=d(this),m=v.string,_=v.index,y;return _>=m.length?{value:void 0,done:!0}:(y=s(m,_),v.index+=y.length,{value:y,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,a){var s=a("23e7"),l=a("17c2");s({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,a){var s=a("da84");i.exports=s},"44ad":function(i,o,a){var s=a("d039"),l=a("c6b6"),u="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,a){var s=a("b622"),l=a("7c73"),u=a("9bf2"),c=s("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),i.exports=function(d){f[c][d]=!0}},"44e7":function(i,o,a){var s=a("861d"),l=a("c6b6"),u=a("b622"),c=u("match");i.exports=function(f){var d;return s(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},4930:function(i,o,a){var s=a("d039");i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},"4d64":function(i,o,a){var s=a("fc6a"),l=a("50c4"),u=a("23cb"),c=function(f){return function(d,h,v){var m=s(d),_=l(m.length),y=u(v,_),b;if(f&&h!=h){for(;_>y;)if(b=m[y++],b!=b)return!0}else for(;_>y;y++)if((f||y in m)&&m[y]===h)return f||y||0;return!f&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,a){var s=a("23e7"),l=a("b727").filter,u=a("1dde"),c=a("ae40"),f=u("filter"),d=c("filter");s({target:"Array",proto:!0,forced:!f||!d},{filter:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,a){var s=a("0366"),l=a("7b0b"),u=a("9bdd"),c=a("e95a"),f=a("50c4"),d=a("8418"),h=a("35a1");i.exports=function(m){var _=l(m),y=typeof this=="function"?this:Array,b=arguments.length,S=b>1?arguments[1]:void 0,w=S!==void 0,C=h(_),T=0,E,R,I,O,P,M;if(w&&(S=s(S,b>2?arguments[2]:void 0,2)),C!=null&&!(y==Array&&c(C)))for(O=C.call(_),P=O.next,R=new y;!(I=P.call(O)).done;T++)M=w?u(O,S,[I.value,T],!0):I.value,d(R,T,M);else for(E=f(_.length),R=new y(E);E>T;T++)M=w?S(_[T],T):_[T],d(R,T,M);return R.length=T,R}},"4fad":function(i,o,a){var s=a("23e7"),l=a("6f53").entries;s({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,a){var s=a("a691"),l=Math.min;i.exports=function(u){return u>0?l(s(u),9007199254740991):0}},5135:function(i,o){var a={}.hasOwnProperty;i.exports=function(s,l){return a.call(s,l)}},5319:function(i,o,a){var s=a("d784"),l=a("825a"),u=a("7b0b"),c=a("50c4"),f=a("a691"),d=a("1d80"),h=a("8aa5"),v=a("14c3"),m=Math.max,_=Math.min,y=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,w=function(C){return C===void 0?C:String(C)};s("replace",2,function(C,T,E,R){var I=R.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,O=R.REPLACE_KEEPS_$0,P=I?"$":"$0";return[function($,z){var B=d(this),K=$==null?void 0:$[C];return K!==void 0?K.call($,B,z):T.call(String(B),$,z)},function(F,$){if(!I&&O||typeof $=="string"&&$.indexOf(P)===-1){var z=E(T,F,this,$);if(z.done)return z.value}var B=l(F),K=String(this),j=typeof $=="function";j||($=String($));var le=B.global;if(le){var me=B.unicode;B.lastIndex=0}for(var ge=[];;){var De=v(B,K);if(De===null||(ge.push(De),!le))break;var Fe=String(De[0]);Fe===""&&(B.lastIndex=h(K,c(B.lastIndex),me))}for(var ze="",Me=0,je=0;je<ge.length;je++){De=ge[je];for(var fe=String(De[0]),Ee=m(_(f(De.index),K.length),0),Se=[],Ce=1;Ce<De.length;Ce++)Se.push(w(De[Ce]));var Oe=De.groups;if(j){var Be=[fe].concat(Se,Ee,K);Oe!==void 0&&Be.push(Oe);var H=String($.apply(void 0,Be))}else H=M(fe,K,Ee,Se,Oe,$);Ee>=Me&&(ze+=K.slice(Me,Ee)+H,Me=Ee+fe.length)}return ze+K.slice(Me)}];function M(F,$,z,B,K,j){var le=z+F.length,me=B.length,ge=S;return K!==void 0&&(K=u(K),ge=b),T.call(j,ge,function(De,Fe){var ze;switch(Fe.charAt(0)){case"$":return"$";case"&":return F;case"`":return $.slice(0,z);case"'":return $.slice(le);case"<":ze=K[Fe.slice(1,-1)];break;default:var Me=+Fe;if(Me===0)return De;if(Me>me){var je=y(Me/10);return je===0?De:je<=me?B[je-1]===void 0?Fe.charAt(1):B[je-1]+Fe.charAt(1):De}ze=B[Me-1]}return ze===void 0?"":ze})}})},5692:function(i,o,a){var s=a("c430"),l=a("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:s?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,a){var s=a("d066"),l=a("241c"),u=a("7418"),c=a("825a");i.exports=s("Reflect","ownKeys")||function(d){var h=l.f(c(d)),v=u.f;return v?h.concat(v(d)):h}},"5a34":function(i,o,a){var s=a("44e7");i.exports=function(l){if(s(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(a,s){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:s}}},"5db7":function(i,o,a){var s=a("23e7"),l=a("a2bf"),u=a("7b0b"),c=a("50c4"),f=a("1c0b"),d=a("65f0");s({target:"Array",proto:!0},{flatMap:function(v){var m=u(this),_=c(m.length),y;return f(v),y=d(m,0),y.length=l(y,m,m,_,0,1,v,arguments.length>1?arguments[1]:void 0),y}})},6547:function(i,o,a){var s=a("a691"),l=a("1d80"),u=function(c){return function(f,d){var h=String(l(f)),v=s(d),m=h.length,_,y;return v<0||v>=m?c?"":void 0:(_=h.charCodeAt(v),_<55296||_>56319||v+1===m||(y=h.charCodeAt(v+1))<56320||y>57343?c?h.charAt(v):_:c?h.slice(v,v+2):(_-55296<<10)+(y-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,a){var s=a("861d"),l=a("e8b5"),u=a("b622"),c=u("species");i.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:s(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},"69f3":function(i,o,a){var s=a("7f9a"),l=a("da84"),u=a("861d"),c=a("9112"),f=a("5135"),d=a("f772"),h=a("d012"),v=l.WeakMap,m,_,y,b=function(I){return y(I)?_(I):m(I,{})},S=function(I){return function(O){var P;if(!u(O)||(P=_(O)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return P}};if(s){var w=new v,C=w.get,T=w.has,E=w.set;m=function(I,O){return E.call(w,I,O),O},_=function(I){return C.call(w,I)||{}},y=function(I){return T.call(w,I)}}else{var R=d("state");h[R]=!0,m=function(I,O){return c(I,R,O),O},_=function(I){return f(I,R)?I[R]:{}},y=function(I){return f(I,R)}}i.exports={set:m,get:_,has:y,enforce:b,getterFor:S}},"6eeb":function(i,o,a){var s=a("da84"),l=a("9112"),u=a("5135"),c=a("ce4e"),f=a("8925"),d=a("69f3"),h=d.get,v=d.enforce,m=String(String).split("String");(i.exports=function(_,y,b,S){var w=S?!!S.unsafe:!1,C=S?!!S.enumerable:!1,T=S?!!S.noTargetGet:!1;if(typeof b=="function"&&(typeof y=="string"&&!u(b,"name")&&l(b,"name",y),v(b).source=m.join(typeof y=="string"?y:"")),_===s){C?_[y]=b:c(y,b);return}else w?!T&&_[y]&&(C=!0):delete _[y];C?_[y]=b:l(_,y,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},"6f53":function(i,o,a){var s=a("83ab"),l=a("df75"),u=a("fc6a"),c=a("d1e7").f,f=function(d){return function(h){for(var v=u(h),m=l(v),_=m.length,y=0,b=[],S;_>y;)S=m[y++],(!s||c.call(v,S))&&b.push(d?[S,v[S]]:v[S]);return b}};i.exports={entries:f(!0),values:f(!1)}},"73d9":function(i,o,a){var s=a("44d2");s("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,a){var s=a("428f"),l=a("5135"),u=a("e538"),c=a("9bf2").f;i.exports=function(f){var d=s.Symbol||(s.Symbol={});l(d,f)||c(d,f,{value:u.f(f)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,a){var s=a("1d80");i.exports=function(l){return Object(s(l))}},"7c73":function(i,o,a){var s=a("825a"),l=a("37e8"),u=a("7839"),c=a("d012"),f=a("1be4"),d=a("cc12"),h=a("f772"),v=">",m="<",_="prototype",y="script",b=h("IE_PROTO"),S=function(){},w=function(I){return m+y+v+I+m+"/"+y+v},C=function(I){I.write(w("")),I.close();var O=I.parentWindow.Object;return I=null,O},T=function(){var I=d("iframe"),O="java"+y+":",P;return I.style.display="none",f.appendChild(I),I.src=String(O),P=I.contentWindow.document,P.open(),P.write(w("document.F=Object")),P.close(),P.F},E,R=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch{}R=E?C(E):T();for(var I=u.length;I--;)delete R[_][u[I]];return R()};c[b]=!0,i.exports=Object.create||function(O,P){var M;return O!==null?(S[_]=s(O),M=new S,S[_]=null,M[b]=O):M=R(),P===void 0?M:l(M,P)}},"7dd0":function(i,o,a){var s=a("23e7"),l=a("9ed3"),u=a("e163"),c=a("d2bb"),f=a("d44e"),d=a("9112"),h=a("6eeb"),v=a("b622"),m=a("c430"),_=a("3f8c"),y=a("ae93"),b=y.IteratorPrototype,S=y.BUGGY_SAFARI_ITERATORS,w=v("iterator"),C="keys",T="values",E="entries",R=function(){return this};i.exports=function(I,O,P,M,F,$,z){l(P,O,M);var B=function(je){if(je===F&&ge)return ge;if(!S&&je in le)return le[je];switch(je){case C:return function(){return new P(this,je)};case T:return function(){return new P(this,je)};case E:return function(){return new P(this,je)}}return function(){return new P(this)}},K=O+" Iterator",j=!1,le=I.prototype,me=le[w]||le["@@iterator"]||F&&le[F],ge=!S&&me||B(F),De=O=="Array"&&le.entries||me,Fe,ze,Me;if(De&&(Fe=u(De.call(new I)),b!==Object.prototype&&Fe.next&&(!m&&u(Fe)!==b&&(c?c(Fe,b):typeof Fe[w]!="function"&&d(Fe,w,R)),f(Fe,K,!0,!0),m&&(_[K]=R))),F==T&&me&&me.name!==T&&(j=!0,ge=function(){return me.call(this)}),(!m||z)&&le[w]!==ge&&d(le,w,ge),_[O]=ge,F)if(ze={values:B(T),keys:$?ge:B(C),entries:B(E)},z)for(Me in ze)(S||j||!(Me in le))&&h(le,Me,ze[Me]);else s({target:O,proto:!0,forced:S||j},ze);return ze}},"7f9a":function(i,o,a){var s=a("da84"),l=a("8925"),u=s.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,a){var s=a("861d");i.exports=function(l){if(!s(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,a){var s=a("d039");i.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,a){var s=a("c04e"),l=a("9bf2"),u=a("5c6c");i.exports=function(c,f,d){var h=s(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},"861d":function(i,o){i.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},8875:function(i,o,a){var s,l,u;(function(c,f){l=[],s=f,u=typeof s=="function"?s.apply(o,l):s,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var f=Object.getOwnPropertyDescriptor(document,"currentScript");if(!f&&"currentScript"in document&&document.currentScript||f&&f.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(E){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,v=d.exec(E.stack)||h.exec(E.stack),m=v&&v[1]||!1,_=v&&v[2]||!1,y=document.location.href.replace(document.location.hash,""),b,S,w,C=document.getElementsByTagName("script");m===y&&(b=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(_-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),w=b.replace(S,"$1").trim());for(var T=0;T<C.length;T++)if(C[T].readyState==="interactive"||C[T].src===m||m===y&&C[T].innerHTML&&C[T].innerHTML.trim()===w)return C[T];return null}}return c})},8925:function(i,o,a){var s=a("c6cd"),l=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(u){return l.call(u)}),i.exports=s.inspectSource},"8aa5":function(i,o,a){var s=a("6547").charAt;i.exports=function(l,u,c){return u+(c?s(l,u).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var a=0,s=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++a+s).toString(36)}},9112:function(i,o,a){var s=a("83ab"),l=a("9bf2"),u=a("5c6c");i.exports=s?function(c,f,d){return l.f(c,f,u(1,d))}:function(c,f,d){return c[f]=d,c}},9263:function(i,o,a){var s=a("ad6d"),l=a("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,d=function(){var _=/a/,y=/b*/g;return u.call(_,"a"),u.call(y,"a"),_.lastIndex!==0||y.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,m=d||v||h;m&&(f=function(y){var b=this,S,w,C,T,E=h&&b.sticky,R=s.call(b),I=b.source,O=0,P=y;return E&&(R=R.replace("y",""),R.indexOf("g")===-1&&(R+="g"),P=String(y).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&y[b.lastIndex-1]!==`
`)&&(I="(?: "+I+")",P=" "+P,O++),w=new RegExp("^(?:"+I+")",R)),v&&(w=new RegExp("^"+I+"$(?!\\s)",R)),d&&(S=b.lastIndex),C=u.call(E?w:b,P),E?C?(C.input=C.input.slice(O),C[0]=C[0].slice(O),C.index=b.lastIndex,b.lastIndex+=C[0].length):b.lastIndex=0:d&&C&&(b.lastIndex=b.global?C.index+C[0].length:S),v&&C&&C.length>1&&c.call(C[0],w,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(C[T]=void 0)}),C}),i.exports=f},"94ca":function(i,o,a){var s=a("d039"),l=/#|\.prototype\./,u=function(v,m){var _=f[c(v)];return _==h?!0:_==d?!1:typeof m=="function"?s(m):!!m},c=u.normalize=function(v){return String(v).replace(l,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u},"99af":function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("e8b5"),c=a("861d"),f=a("7b0b"),d=a("50c4"),h=a("8418"),v=a("65f0"),m=a("1dde"),_=a("b622"),y=a("2d00"),b=_("isConcatSpreadable"),S=9007199254740991,w="Maximum allowed index exceeded",C=y>=51||!l(function(){var I=[];return I[b]=!1,I.concat()[0]!==I}),T=m("concat"),E=function(I){if(!c(I))return!1;var O=I[b];return O!==void 0?!!O:u(I)},R=!C||!T;s({target:"Array",proto:!0,forced:R},{concat:function(O){var P=f(this),M=v(P,0),F=0,$,z,B,K,j;for($=-1,B=arguments.length;$<B;$++)if(j=$===-1?P:arguments[$],E(j)){if(K=d(j.length),F+K>S)throw TypeError(w);for(z=0;z<K;z++,F++)z in j&&h(M,F,j[z])}else{if(F>=S)throw TypeError(w);h(M,F++,j)}return M.length=F,M}})},"9bdd":function(i,o,a){var s=a("825a");i.exports=function(l,u,c,f){try{return f?u(s(c)[0],c[1]):u(c)}catch(h){var d=l.return;throw d!==void 0&&s(d.call(l)),h}}},"9bf2":function(i,o,a){var s=a("83ab"),l=a("0cfb"),u=a("825a"),c=a("c04e"),f=Object.defineProperty;o.f=s?f:function(h,v,m){if(u(h),v=c(v,!0),u(m),l)try{return f(h,v,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[v]=m.value),h}},"9ed3":function(i,o,a){var s=a("ae93").IteratorPrototype,l=a("7c73"),u=a("5c6c"),c=a("d44e"),f=a("3f8c"),d=function(){return this};i.exports=function(h,v,m){var _=v+" Iterator";return h.prototype=l(s,{next:u(1,m)}),c(h,_,!1,!0),f[_]=d,h}},"9f7f":function(i,o,a){var s=a("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=s(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=s(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,a){var s=a("e8b5"),l=a("50c4"),u=a("0366"),c=function(f,d,h,v,m,_,y,b){for(var S=m,w=0,C=y?u(y,b,3):!1,T;w<v;){if(w in h){if(T=C?C(h[w],w,d):h[w],_>0&&s(T))S=c(f,d,T,l(T.length),S,_-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[S]=T}S++}w++}return S};i.exports=c},a352:function(i,o){i.exports=r},a434:function(i,o,a){var s=a("23e7"),l=a("23cb"),u=a("a691"),c=a("50c4"),f=a("7b0b"),d=a("65f0"),h=a("8418"),v=a("1dde"),m=a("ae40"),_=v("splice"),y=m("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,S=Math.min,w=9007199254740991,C="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!_||!y},{splice:function(E,R){var I=f(this),O=c(I.length),P=l(E,O),M=arguments.length,F,$,z,B,K,j;if(M===0?F=$=0:M===1?(F=0,$=O-P):(F=M-2,$=S(b(u(R),0),O-P)),O+F-$>w)throw TypeError(C);for(z=d(I,$),B=0;B<$;B++)K=P+B,K in I&&h(z,B,I[K]);if(z.length=$,F<$){for(B=P;B<O-$;B++)K=B+$,j=B+F,K in I?I[j]=I[K]:delete I[j];for(B=O;B>O-$+F;B--)delete I[B-1]}else if(F>$)for(B=O-$;B>P;B--)K=B+$-1,j=B+F-1,K in I?I[j]=I[K]:delete I[j];for(B=0;B<F;B++)I[B+P]=arguments[B+2];return I.length=O-$+F,z}})},a4d3:function(i,o,a){var s=a("23e7"),l=a("da84"),u=a("d066"),c=a("c430"),f=a("83ab"),d=a("4930"),h=a("fdbf"),v=a("d039"),m=a("5135"),_=a("e8b5"),y=a("861d"),b=a("825a"),S=a("7b0b"),w=a("fc6a"),C=a("c04e"),T=a("5c6c"),E=a("7c73"),R=a("df75"),I=a("241c"),O=a("057f"),P=a("7418"),M=a("06cf"),F=a("9bf2"),$=a("d1e7"),z=a("9112"),B=a("6eeb"),K=a("5692"),j=a("f772"),le=a("d012"),me=a("90e3"),ge=a("b622"),De=a("e538"),Fe=a("746f"),ze=a("d44e"),Me=a("69f3"),je=a("b727").forEach,fe=j("hidden"),Ee="Symbol",Se="prototype",Ce=ge("toPrimitive"),Oe=Me.set,Be=Me.getterFor(Ee),H=Object[Se],G=l.Symbol,ue=u("JSON","stringify"),we=M.f,ve=F.f,U=O.f,W=$.f,q=K("symbols"),de=K("op-symbols"),_e=K("string-to-symbol-registry"),Pe=K("symbol-to-string-registry"),Z=K("wks"),he=l.QObject,Ve=!he||!he[Se]||!he[Se].findChild,Ke=f&&v(function(){return E(ve({},"a",{get:function(){return ve(this,"a",{value:7}).a}})).a!=7})?function(Ge,We,tt){var Pt=we(H,We);Pt&&delete H[We],ve(Ge,We,tt),Pt&&Ge!==H&&ve(H,We,Pt)}:ve,pt=function(Ge,We){var tt=q[Ge]=E(G[Se]);return Oe(tt,{type:Ee,tag:Ge,description:We}),f||(tt.description=We),tt},ee=h?function(Ge){return typeof Ge=="symbol"}:function(Ge){return Object(Ge)instanceof G},oe=function(We,tt,Pt){We===H&&oe(de,tt,Pt),b(We);var Dt=C(tt,!0);return b(Pt),m(q,Dt)?(Pt.enumerable?(m(We,fe)&&We[fe][Dt]&&(We[fe][Dt]=!1),Pt=E(Pt,{enumerable:T(0,!1)})):(m(We,fe)||ve(We,fe,T(1,{})),We[fe][Dt]=!0),Ke(We,Dt,Pt)):ve(We,Dt,Pt)},pe=function(We,tt){b(We);var Pt=w(tt),Dt=R(Pt).concat($e(Pt));return je(Dt,function(Ln){(!f||He.call(Pt,Ln))&&oe(We,Ln,Pt[Ln])}),We},Te=function(We,tt){return tt===void 0?E(We):pe(E(We),tt)},He=function(We){var tt=C(We,!0),Pt=W.call(this,tt);return this===H&&m(q,tt)&&!m(de,tt)?!1:Pt||!m(this,tt)||!m(q,tt)||m(this,fe)&&this[fe][tt]?Pt:!0},re=function(We,tt){var Pt=w(We),Dt=C(tt,!0);if(!(Pt===H&&m(q,Dt)&&!m(de,Dt))){var Ln=we(Pt,Dt);return Ln&&m(q,Dt)&&!(m(Pt,fe)&&Pt[fe][Dt])&&(Ln.enumerable=!0),Ln}},Ae=function(We){var tt=U(w(We)),Pt=[];return je(tt,function(Dt){!m(q,Dt)&&!m(le,Dt)&&Pt.push(Dt)}),Pt},$e=function(We){var tt=We===H,Pt=U(tt?de:w(We)),Dt=[];return je(Pt,function(Ln){m(q,Ln)&&(!tt||m(H,Ln))&&Dt.push(q[Ln])}),Dt};if(d||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var We=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),tt=me(We),Pt=function(Dt){this===H&&Pt.call(de,Dt),m(this,fe)&&m(this[fe],tt)&&(this[fe][tt]=!1),Ke(this,tt,T(1,Dt))};return f&&Ve&&Ke(H,tt,{configurable:!0,set:Pt}),pt(tt,We)},B(G[Se],"toString",function(){return Be(this).tag}),B(G,"withoutSetter",function(Ge){return pt(me(Ge),Ge)}),$.f=He,F.f=oe,M.f=re,I.f=O.f=Ae,P.f=$e,De.f=function(Ge){return pt(ge(Ge),Ge)},f&&(ve(G[Se],"description",{configurable:!0,get:function(){return Be(this).description}}),c||B(H,"propertyIsEnumerable",He,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:G}),je(R(Z),function(Ge){Fe(Ge)}),s({target:Ee,stat:!0,forced:!d},{for:function(Ge){var We=String(Ge);if(m(_e,We))return _e[We];var tt=G(We);return _e[We]=tt,Pe[tt]=We,tt},keyFor:function(We){if(!ee(We))throw TypeError(We+" is not a symbol");if(m(Pe,We))return Pe[We]},useSetter:function(){Ve=!0},useSimple:function(){Ve=!1}}),s({target:"Object",stat:!0,forced:!d,sham:!f},{create:Te,defineProperty:oe,defineProperties:pe,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Ae,getOwnPropertySymbols:$e}),s({target:"Object",stat:!0,forced:v(function(){P.f(1)})},{getOwnPropertySymbols:function(We){return P.f(S(We))}}),ue){var et=!d||v(function(){var Ge=G();return ue([Ge])!="[null]"||ue({a:Ge})!="{}"||ue(Object(Ge))!="{}"});s({target:"JSON",stat:!0,forced:et},{stringify:function(We,tt,Pt){for(var Dt=[We],Ln=1,ga;arguments.length>Ln;)Dt.push(arguments[Ln++]);if(ga=tt,!(!y(tt)&&We===void 0||ee(We)))return _(tt)||(tt=function(Rn,yr){if(typeof ga=="function"&&(yr=ga.call(this,Rn,yr)),!ee(yr))return yr}),Dt[1]=tt,ue.apply(null,Dt)}})}G[Se][Ce]||z(G[Se],Ce,G[Se].valueOf),ze(G,Ee),le[fe]=!0},a630:function(i,o,a){var s=a("23e7"),l=a("4df4"),u=a("1c7e"),c=!u(function(f){Array.from(f)});s({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,o,a){var s=a("d039");i.exports=function(l,u){var c=[][l];return!!c&&s(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,o){var a=Math.ceil,s=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?s:a)(l)}},ab13:function(i,o,a){var s=a("b622"),l=s("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,o,a){var s=a("23e7"),l=a("9263");s({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,a){var s=a("825a");i.exports=function(){var l=s(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,o,a){var s=a("83ab"),l=a("d039"),u=a("5135"),c=Object.defineProperty,f={},d=function(h){throw h};i.exports=function(h,v){if(u(f,h))return f[h];v||(v={});var m=[][h],_=u(v,"ACCESSORS")?v.ACCESSORS:!1,y=u(v,0)?v[0]:d,b=u(v,1)?v[1]:void 0;return f[h]=!!m&&!l(function(){if(_&&!s)return!0;var S={length:-1};_?c(S,1,{enumerable:!0,get:d}):S[1]=1,m.call(S,y,b)})}},ae93:function(i,o,a){var s=a("e163"),l=a("9112"),u=a("5135"),c=a("b622"),f=a("c430"),d=c("iterator"),h=!1,v=function(){return this},m,_,y;[].keys&&(y=[].keys(),"next"in y?(_=s(s(y)),_!==Object.prototype&&(m=_)):h=!0),m==null&&(m={}),!f&&!u(m,d)&&l(m,d,v),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:h}},b041:function(i,o,a){var s=a("00ee"),l=a("f5df");i.exports=s?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,a){var s=a("83ab"),l=a("9bf2").f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,d="name";s&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},b622:function(i,o,a){var s=a("da84"),l=a("5692"),u=a("5135"),c=a("90e3"),f=a("4930"),d=a("fdbf"),h=l("wks"),v=s.Symbol,m=d?v:v&&v.withoutSetter||c;i.exports=function(_){return u(h,_)||(f&&u(v,_)?h[_]=v[_]:h[_]=m("Symbol."+_)),h[_]}},b64b:function(i,o,a){var s=a("23e7"),l=a("7b0b"),u=a("df75"),c=a("d039"),f=c(function(){u(1)});s({target:"Object",stat:!0,forced:f},{keys:function(h){return u(l(h))}})},b727:function(i,o,a){var s=a("0366"),l=a("44ad"),u=a("7b0b"),c=a("50c4"),f=a("65f0"),d=[].push,h=function(v){var m=v==1,_=v==2,y=v==3,b=v==4,S=v==6,w=v==5||S;return function(C,T,E,R){for(var I=u(C),O=l(I),P=s(T,E,3),M=c(O.length),F=0,$=R||f,z=m?$(C,M):_?$(C,0):void 0,B,K;M>F;F++)if((w||F in O)&&(B=O[F],K=P(B,F,I),v)){if(m)z[F]=K;else if(K)switch(v){case 3:return!0;case 5:return B;case 6:return F;case 2:d.call(z,B)}else if(b)return!1}return S?-1:y||b?b:z}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(i,o,a){var s=a("861d");i.exports=function(l,u){if(!s(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!s(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!s(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var a={}.toString;i.exports=function(s){return a.call(s).slice(8,-1)}},c6cd:function(i,o,a){var s=a("da84"),l=a("ce4e"),u="__core-js_shared__",c=s[u]||l(u,{});i.exports=c},c740:function(i,o,a){var s=a("23e7"),l=a("b727").findIndex,u=a("44d2"),c=a("ae40"),f="findIndex",d=!0,h=c(f);f in[]&&Array(1)[f](function(){d=!1}),s({target:"Array",proto:!0,forced:d||!h},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(f)},c8ba:function(i,o){var a;a=function(){return this}();try{a=a||new Function("return this")()}catch{typeof window=="object"&&(a=window)}i.exports=a},c975:function(i,o,a){var s=a("23e7"),l=a("4d64").indexOf,u=a("a640"),c=a("ae40"),f=[].indexOf,d=!!f&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),v=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:d||!h||!v},{indexOf:function(_){return d?f.apply(this,arguments)||0:l(this,_,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,a){var s=a("5135"),l=a("fc6a"),u=a("4d64").indexOf,c=a("d012");i.exports=function(f,d){var h=l(f),v=0,m=[],_;for(_ in h)!s(c,_)&&s(h,_)&&m.push(_);for(;d.length>v;)s(h,_=d[v++])&&(~u(m,_)||m.push(_));return m}},caad:function(i,o,a){var s=a("23e7"),l=a("4d64").includes,u=a("44d2"),c=a("ae40"),f=c("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!f},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,o,a){var s=a("da84"),l=a("861d"),u=s.document,c=l(u)&&l(u.createElement);i.exports=function(f){return c?u.createElement(f):{}}},ce4e:function(i,o,a){var s=a("da84"),l=a("9112");i.exports=function(u,c){try{l(s,u,c)}catch{s[u]=c}return c}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(a){try{return!!a()}catch{return!0}}},d066:function(i,o,a){var s=a("428f"),l=a("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,f){return arguments.length<2?u(s[c])||u(l[c]):s[c]&&s[c][f]||l[c]&&l[c][f]}},d1e7:function(i,o,a){var s={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!s.call({1:2},1);o.f=u?function(f){var d=l(this,f);return!!d&&d.enumerable}:s},d28b:function(i,o,a){var s=a("746f");s("iterator")},d2bb:function(i,o,a){var s=a("825a"),l=a("3bbe");i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(h,v){return s(h),l(v),u?f.call(h,v):h.__proto__=v,h}}():void 0)},d3b7:function(i,o,a){var s=a("00ee"),l=a("6eeb"),u=a("b041");s||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,o,a){var s=a("9bf2").f,l=a("5135"),u=a("b622"),c=u("toStringTag");i.exports=function(f,d,h){f&&!l(f=h?f:f.prototype,c)&&s(f,c,{configurable:!0,value:d})}},d58f:function(i,o,a){var s=a("1c0b"),l=a("7b0b"),u=a("44ad"),c=a("50c4"),f=function(d){return function(h,v,m,_){s(v);var y=l(h),b=u(y),S=c(y.length),w=d?S-1:0,C=d?-1:1;if(m<2)for(;;){if(w in b){_=b[w],w+=C;break}if(w+=C,d?w<0:S<=w)throw TypeError("Reduce of empty array with no initial value")}for(;d?w>=0:S>w;w+=C)w in b&&(_=v(_,b[w],w,y));return _}};i.exports={left:f(!1),right:f(!0)}},d784:function(i,o,a){a("ac1f");var s=a("6eeb"),l=a("d039"),u=a("b622"),c=a("9263"),f=a("9112"),d=u("species"),h=!l(function(){var b=/./;return b.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(b,"$<a>")!=="7"}),v=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),_=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),y=!l(function(){var b=/(?:)/,S=b.exec;b.exec=function(){return S.apply(this,arguments)};var w="ab".split(b);return w.length!==2||w[0]!=="a"||w[1]!=="b"});i.exports=function(b,S,w,C){var T=u(b),E=!l(function(){var F={};return F[T]=function(){return 7},""[b](F)!=7}),R=E&&!l(function(){var F=!1,$=/a/;return b==="split"&&($={},$.constructor={},$.constructor[d]=function(){return $},$.flags="",$[T]=/./[T]),$.exec=function(){return F=!0,null},$[T](""),!F});if(!E||!R||b==="replace"&&!(h&&v&&!_)||b==="split"&&!y){var I=/./[T],O=w(T,""[b],function(F,$,z,B,K){return $.exec===c?E&&!K?{done:!0,value:I.call($,z,B)}:{done:!0,value:F.call(z,$,B)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:_}),P=O[0],M=O[1];s(String.prototype,b,P),s(RegExp.prototype,T,S==2?function(F,$){return M.call(F,this,$)}:function(F){return M.call(F,this)})}C&&f(RegExp.prototype[T],"sham",!0)}},d81d:function(i,o,a){var s=a("23e7"),l=a("b727").map,u=a("1dde"),c=a("ae40"),f=u("map"),d=c("map");s({target:"Array",proto:!0,forced:!f||!d},{map:function(v){return l(this,v,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,a){(function(s){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof s=="object"&&s)||Function("return this")()}).call(this,a("c8ba"))},dbb4:function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("56ef"),c=a("fc6a"),f=a("06cf"),d=a("8418");s({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(v){for(var m=c(v),_=f.f,y=u(m),b={},S=0,w,C;y.length>S;)C=_(m,w=y[S++]),C!==void 0&&d(b,w,C);return b}})},dbf1:function(i,o,a){(function(s){a.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:s.console}var u=l()}).call(this,a("c8ba"))},ddb0:function(i,o,a){var s=a("da84"),l=a("fdbc"),u=a("e260"),c=a("9112"),f=a("b622"),d=f("iterator"),h=f("toStringTag"),v=u.values;for(var m in l){var _=s[m],y=_&&_.prototype;if(y){if(y[d]!==v)try{c(y,d,v)}catch{y[d]=v}if(y[h]||c(y,h,m),l[m]){for(var b in u)if(y[b]!==u[b])try{c(y,b,u[b])}catch{y[b]=u[b]}}}}},df75:function(i,o,a){var s=a("ca84"),l=a("7839");i.exports=Object.keys||function(c){return s(c,l)}},e01a:function(i,o,a){var s=a("23e7"),l=a("83ab"),u=a("da84"),c=a("5135"),f=a("861d"),d=a("9bf2").f,h=a("e893"),v=u.Symbol;if(l&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var m={},_=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),E=this instanceof _?new v(T):T===void 0?v():v(T);return T===""&&(m[E]=!0),E};h(_,v);var y=_.prototype=v.prototype;y.constructor=_;var b=y.toString,S=String(v("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;d(y,"description",{configurable:!0,get:function(){var T=f(this)?this.valueOf():this,E=b.call(T);if(c(m,T))return"";var R=S?E.slice(7,-1):E.replace(w,"$1");return R===""?void 0:R}}),s({global:!0,forced:!0},{Symbol:_})}},e163:function(i,o,a){var s=a("5135"),l=a("7b0b"),u=a("f772"),c=a("e177"),f=u("IE_PROTO"),d=Object.prototype;i.exports=c?Object.getPrototypeOf:function(h){return h=l(h),s(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},e177:function(i,o,a){var s=a("d039");i.exports=!s(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,a){var s=a("fc6a"),l=a("44d2"),u=a("3f8c"),c=a("69f3"),f=a("7dd0"),d="Array Iterator",h=c.set,v=c.getterFor(d);i.exports=f(Array,"Array",function(m,_){h(this,{type:d,target:s(m),index:0,kind:_})},function(){var m=v(this),_=m.target,y=m.kind,b=m.index++;return!_||b>=_.length?(m.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:b,done:!1}:y=="values"?{value:_[b],done:!1}:{value:[b,_[b]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,a){var s=a("23e7"),l=a("d039"),u=a("fc6a"),c=a("06cf").f,f=a("83ab"),d=l(function(){c(1)}),h=!f||d;s({target:"Object",stat:!0,forced:h,sham:!f},{getOwnPropertyDescriptor:function(m,_){return c(u(m),_)}})},e538:function(i,o,a){var s=a("b622");o.f=s},e893:function(i,o,a){var s=a("5135"),l=a("56ef"),u=a("06cf"),c=a("9bf2");i.exports=function(f,d){for(var h=l(d),v=c.f,m=u.f,_=0;_<h.length;_++){var y=h[_];s(f,y)||v(f,y,m(d,y))}}},e8b5:function(i,o,a){var s=a("c6b6");i.exports=Array.isArray||function(u){return s(u)=="Array"}},e95a:function(i,o,a){var s=a("b622"),l=a("3f8c"),u=s("iterator"),c=Array.prototype;i.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}},f5df:function(i,o,a){var s=a("00ee"),l=a("c6b6"),u=a("b622"),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(h,v){try{return h[v]}catch{}};i.exports=s?l:function(h){var v,m,_;return h===void 0?"Undefined":h===null?"Null":typeof(m=d(v=Object(h),c))=="string"?m:f?l(v):(_=l(v))=="Object"&&typeof v.callee=="function"?"Arguments":_}},f772:function(i,o,a){var s=a("5692"),l=a("90e3"),u=s("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}},fb15:function(i,o,a){if(a.r(o),typeof window<"u"){var s=window.document.currentScript;{var l=a("8875");s=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(a.p=u[1])}a("99af"),a("4de4"),a("4160"),a("c975"),a("d81d"),a("a434"),a("159b"),a("a4d3"),a("e439"),a("dbb4"),a("b64b");function c(ee,oe,pe){return oe in ee?Object.defineProperty(ee,oe,{value:pe,enumerable:!0,configurable:!0,writable:!0}):ee[oe]=pe,ee}function f(ee,oe){var pe=Object.keys(ee);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(ee);oe&&(Te=Te.filter(function(He){return Object.getOwnPropertyDescriptor(ee,He).enumerable})),pe.push.apply(pe,Te)}return pe}function d(ee){for(var oe=1;oe<arguments.length;oe++){var pe=arguments[oe]!=null?arguments[oe]:{};oe%2?f(Object(pe),!0).forEach(function(Te){c(ee,Te,pe[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ee,Object.getOwnPropertyDescriptors(pe)):f(Object(pe)).forEach(function(Te){Object.defineProperty(ee,Te,Object.getOwnPropertyDescriptor(pe,Te))})}return ee}function h(ee){if(Array.isArray(ee))return ee}a("e01a"),a("d28b"),a("e260"),a("d3b7"),a("3ca3"),a("ddb0");function v(ee,oe){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ee)))){var pe=[],Te=!0,He=!1,re=void 0;try{for(var Ae=ee[Symbol.iterator](),$e;!(Te=($e=Ae.next()).done)&&(pe.push($e.value),!(oe&&pe.length===oe));Te=!0);}catch(et){He=!0,re=et}finally{try{!Te&&Ae.return!=null&&Ae.return()}finally{if(He)throw re}}return pe}}a("a630"),a("fb6a"),a("b0c0"),a("25f0");function m(ee,oe){(oe==null||oe>ee.length)&&(oe=ee.length);for(var pe=0,Te=new Array(oe);pe<oe;pe++)Te[pe]=ee[pe];return Te}function _(ee,oe){if(ee){if(typeof ee=="string")return m(ee,oe);var pe=Object.prototype.toString.call(ee).slice(8,-1);if(pe==="Object"&&ee.constructor&&(pe=ee.constructor.name),pe==="Map"||pe==="Set")return Array.from(ee);if(pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe))return m(ee,oe)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(ee,oe){return h(ee)||v(ee,oe)||_(ee,oe)||y()}function S(ee){if(Array.isArray(ee))return m(ee)}function w(ee){if(typeof Symbol<"u"&&Symbol.iterator in Object(ee))return Array.from(ee)}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(ee){return S(ee)||w(ee)||_(ee)||C()}var E=a("a352"),R=a.n(E);function I(ee){ee.parentElement!==null&&ee.parentElement.removeChild(ee)}function O(ee,oe,pe){var Te=pe===0?ee.children[0]:ee.children[pe-1].nextSibling;ee.insertBefore(oe,Te)}var P=a("dbf1");a("13d5"),a("4fad"),a("ac1f"),a("5319");function M(ee){var oe=Object.create(null);return function(Te){var He=oe[Te];return He||(oe[Te]=ee(Te))}}var F=/-(\w)/g,$=M(function(ee){return ee.replace(F,function(oe,pe){return pe.toUpperCase()})});a("5db7"),a("73d9");var z=["Start","Add","Remove","Update","End"],B=["Choose","Unchoose","Sort","Filter","Clone"],K=["Move"],j=[K,z,B].flatMap(function(ee){return ee}).map(function(ee){return"on".concat(ee)}),le={manage:K,manageAndEmit:z,emit:B};function me(ee){return j.indexOf(ee)!==-1}a("caad"),a("2ca0");var ge=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function De(ee){return ge.includes(ee)}function Fe(ee){return["transition-group","TransitionGroup"].includes(ee)}function ze(ee){return["id","class","role","style"].includes(ee)||ee.startsWith("data-")||ee.startsWith("aria-")||ee.startsWith("on")}function Me(ee){return ee.reduce(function(oe,pe){var Te=b(pe,2),He=Te[0],re=Te[1];return oe[He]=re,oe},{})}function je(ee){var oe=ee.$attrs,pe=ee.componentData,Te=pe===void 0?{}:pe,He=Me(Object.entries(oe).filter(function(re){var Ae=b(re,2),$e=Ae[0];return Ae[1],ze($e)}));return d(d({},He),Te)}function fe(ee){var oe=ee.$attrs,pe=ee.callBackBuilder,Te=Me(Ee(oe));Object.entries(pe).forEach(function(re){var Ae=b(re,2),$e=Ae[0],et=Ae[1];le[$e].forEach(function(Ge){Te["on".concat(Ge)]=et(Ge)})});var He="[data-draggable]".concat(Te.draggable||"");return d(d({},Te),{},{draggable:He})}function Ee(ee){return Object.entries(ee).filter(function(oe){var pe=b(oe,2),Te=pe[0];return pe[1],!ze(Te)}).map(function(oe){var pe=b(oe,2),Te=pe[0],He=pe[1];return[$(Te),He]}).filter(function(oe){var pe=b(oe,2),Te=pe[0];return pe[1],!me(Te)})}a("c740");function Se(ee,oe){if(!(ee instanceof oe))throw new TypeError("Cannot call a class as a function")}function Ce(ee,oe){for(var pe=0;pe<oe.length;pe++){var Te=oe[pe];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(ee,Te.key,Te)}}function Oe(ee,oe,pe){return Ce(ee.prototype,oe),ee}var Be=function(oe){var pe=oe.el;return pe},H=function(oe,pe){return oe.__draggable_context=pe},G=function(oe){return oe.__draggable_context},ue=function(){function ee(oe){var pe=oe.nodes,Te=pe.header,He=pe.default,re=pe.footer,Ae=oe.root,$e=oe.realList;Se(this,ee),this.defaultNodes=He,this.children=[].concat(T(Te),T(He),T(re)),this.externalComponent=Ae.externalComponent,this.rootTransition=Ae.transition,this.tag=Ae.tag,this.realList=$e}return Oe(ee,[{key:"render",value:function(pe,Te){var He=this.tag,re=this.children,Ae=this._isRootComponent,$e=Ae?{default:function(){return re}}:re;return pe(He,Te,$e)}},{key:"updated",value:function(){var pe=this.defaultNodes,Te=this.realList;pe.forEach(function(He,re){H(Be(He),{element:Te[re],index:re})})}},{key:"getUnderlyingVm",value:function(pe){return G(pe)}},{key:"getVmIndexFromDomIndex",value:function(pe,Te){var He=this.defaultNodes,re=He.length,Ae=Te.children,$e=Ae.item(pe);if($e===null)return re;var et=G($e);if(et)return et.index;if(re===0)return 0;var Ge=Be(He[0]),We=T(Ae).findIndex(function(tt){return tt===Ge});return pe<We?0:re}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),ee}(),we=a("8bbf");function ve(ee,oe){var pe=ee[oe];return pe?pe():[]}function U(ee){var oe=ee.$slots,pe=ee.realList,Te=ee.getKey,He=pe||[],re=["header","footer"].map(function(tt){return ve(oe,tt)}),Ae=b(re,2),$e=Ae[0],et=Ae[1],Ge=oe.item;if(!Ge)throw new Error("draggable element must have an item slot");var We=He.flatMap(function(tt,Pt){return Ge({element:tt,index:Pt}).map(function(Dt){return Dt.key=Te(tt),Dt.props=d(d({},Dt.props||{}),{},{"data-draggable":!0}),Dt})});if(We.length!==He.length)throw new Error("Item slot must have only one child");return{header:$e,footer:et,default:We}}function W(ee){var oe=Fe(ee),pe=!De(ee)&&!oe;return{transition:oe,externalComponent:pe,tag:pe?Object(we.resolveComponent)(ee):oe?we.TransitionGroup:ee}}function q(ee){var oe=ee.$slots,pe=ee.tag,Te=ee.realList,He=ee.getKey,re=U({$slots:oe,realList:Te,getKey:He}),Ae=W(pe);return new ue({nodes:re,root:Ae,realList:Te})}function de(ee,oe){var pe=this;Object(we.nextTick)(function(){return pe.$emit(ee.toLowerCase(),oe)})}function _e(ee){var oe=this;return function(pe,Te){if(oe.realList!==null)return oe["onDrag".concat(ee)](pe,Te)}}function Pe(ee){var oe=this,pe=_e.call(this,ee);return function(Te,He){pe.call(oe,Te,He),de.call(oe,ee,Te)}}var Z=null,he={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(oe){return oe}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Ve=["update:modelValue","change"].concat(T([].concat(T(le.manageAndEmit),T(le.emit)).map(function(ee){return ee.toLowerCase()}))),Ke=Object(we.defineComponent)({name:"draggable",inheritAttrs:!1,props:he,emits:Ve,data:function(){return{error:!1}},render:function(){try{this.error=!1;var oe=this.$slots,pe=this.$attrs,Te=this.tag,He=this.componentData,re=this.realList,Ae=this.getKey,$e=q({$slots:oe,tag:Te,realList:re,getKey:Ae});this.componentStructure=$e;var et=je({$attrs:pe,componentData:He});return $e.render(we.h,et)}catch(Ge){return this.error=!0,Object(we.h)("pre",{style:{color:"red"}},Ge.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&P.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var oe=this;if(!this.error){var pe=this.$attrs,Te=this.$el,He=this.componentStructure;He.updated();var re=fe({$attrs:pe,callBackBuilder:{manageAndEmit:function(et){return Pe.call(oe,et)},emit:function(et){return de.bind(oe,et)},manage:function(et){return _e.call(oe,et)}}}),Ae=Te.nodeType===1?Te:Te.parentElement;this._sortable=new R.a(Ae,re),this.targetDomElement=Ae,Ae.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var oe=this.list;return oe||this.modelValue},getKey:function(){var oe=this.itemKey;return typeof oe=="function"?oe:function(pe){return pe[oe]}}},watch:{$attrs:{handler:function(oe){var pe=this._sortable;pe&&Ee(oe).forEach(function(Te){var He=b(Te,2),re=He[0],Ae=He[1];pe.option(re,Ae)})},deep:!0}},methods:{getUnderlyingVm:function(oe){return this.componentStructure.getUnderlyingVm(oe)||null},getUnderlyingPotencialDraggableComponent:function(oe){return oe.__draggable_component__},emitChanges:function(oe){var pe=this;Object(we.nextTick)(function(){return pe.$emit("change",oe)})},alterList:function(oe){if(this.list){oe(this.list);return}var pe=T(this.modelValue);oe(pe),this.$emit("update:modelValue",pe)},spliceList:function(){var oe=arguments,pe=function(He){return He.splice.apply(He,T(oe))};this.alterList(pe)},updatePosition:function(oe,pe){var Te=function(re){return re.splice(pe,0,re.splice(oe,1)[0])};this.alterList(Te)},getRelatedContextFromMoveEvent:function(oe){var pe=oe.to,Te=oe.related,He=this.getUnderlyingPotencialDraggableComponent(pe);if(!He)return{component:He};var re=He.realList,Ae={list:re,component:He};if(pe!==Te&&re){var $e=He.getUnderlyingVm(Te)||{};return d(d({},$e),Ae)}return Ae},getVmIndexFromDomIndex:function(oe){return this.componentStructure.getVmIndexFromDomIndex(oe,this.targetDomElement)},onDragStart:function(oe){this.context=this.getUnderlyingVm(oe.item),oe.item._underlying_vm_=this.clone(this.context.element),Z=oe.item},onDragAdd:function(oe){var pe=oe.item._underlying_vm_;if(pe!==void 0){I(oe.item);var Te=this.getVmIndexFromDomIndex(oe.newIndex);this.spliceList(Te,0,pe);var He={element:pe,newIndex:Te};this.emitChanges({added:He})}},onDragRemove:function(oe){if(O(this.$el,oe.item,oe.oldIndex),oe.pullMode==="clone"){I(oe.clone);return}var pe=this.context,Te=pe.index,He=pe.element;this.spliceList(Te,1);var re={element:He,oldIndex:Te};this.emitChanges({removed:re})},onDragUpdate:function(oe){I(oe.item),O(oe.from,oe.item,oe.oldIndex);var pe=this.context.index,Te=this.getVmIndexFromDomIndex(oe.newIndex);this.updatePosition(pe,Te);var He={element:this.context.element,oldIndex:pe,newIndex:Te};this.emitChanges({moved:He})},computeFutureIndex:function(oe,pe){if(!oe.element)return 0;var Te=T(pe.to.children).filter(function($e){return $e.style.display!=="none"}),He=Te.indexOf(pe.related),re=oe.component.getVmIndexFromDomIndex(He),Ae=Te.indexOf(Z)!==-1;return Ae||!pe.willInsertAfter?re:re+1},onDragMove:function(oe,pe){var Te=this.move,He=this.realList;if(!Te||!He)return!0;var re=this.getRelatedContextFromMoveEvent(oe),Ae=this.computeFutureIndex(re,oe),$e=d(d({},this.context),{},{futureIndex:Ae}),et=d(d({},oe),{},{relatedContext:re,draggedContext:$e});return Te(et,pe)},onDragEnd:function(){Z=null}}}),pt=Ke;o.default=pt},fb6a:function(i,o,a){var s=a("23e7"),l=a("861d"),u=a("e8b5"),c=a("23cb"),f=a("50c4"),d=a("fc6a"),h=a("8418"),v=a("b622"),m=a("1dde"),_=a("ae40"),y=m("slice"),b=_("slice",{ACCESSORS:!0,0:0,1:2}),S=v("species"),w=[].slice,C=Math.max;s({target:"Array",proto:!0,forced:!y||!b},{slice:function(E,R){var I=d(this),O=f(I.length),P=c(E,O),M=c(R===void 0?O:R,O),F,$,z;if(u(I)&&(F=I.constructor,typeof F=="function"&&(F===Array||u(F.prototype))?F=void 0:l(F)&&(F=F[S],F===null&&(F=void 0)),F===Array||F===void 0))return w.call(I,P,M);for($=new(F===void 0?Array:F)(C(M-P,0)),z=0;P<M;P++,z++)P in I&&h($,z,I[P]);return $.length=z,$}})},fc6a:function(i,o,a){var s=a("44ad"),l=a("1d80");i.exports=function(u){return s(l(u))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,a){var s=a("4930");i.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})}(r1)),r1.exports}var QTe=JTe();const nm=rm(QTe),eEe={class:"relative flex flex-col rounded"},tEe=["onClick"],nEe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},rEe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},iEe=it({__name:"ConnectionCardSettings",setup(e){const t=ke([]),n=()=>{t.value=Object.values(Je).filter(o=>!as.value.flat().includes(o))};n();const r=()=>{as.value=[...as.value,t.value[0]?[t.value[0]]:[]],n()},i=o=>{as.value.splice(o,1),n()};return(o,a)=>(X(),te(Ye,null,[L("div",null,ie(o.$t("customCardLines"))+":",1),L("div",eEe,[L("button",{class:"btn btn-circle btn-neutral btn-sm absolute right-2 top-2",onClick:r},[se(N(mee),{class:"h-4 w-4"})]),(X(!0),te(Ye,null,ln(N(as),(s,l)=>(X(),te("div",{key:l,class:ot(`flex items-center gap-2 p-2 ${l%2===0?"bg-base-200":"bg-base-300"}`)},[N(as).length>1?(X(),te("button",{key:0,class:"btn btn-circle btn-xs",onClick:u=>i(l)},[se(N(YI),{class:"h-4 w-4"})],8,tEe)):yt("",!0),se(N(nm),{class:"flex flex-1 flex-wrap items-center gap-2",modelValue:N(as)[l],"onUpdate:modelValue":u=>N(as)[l]=u,animation:150,group:"list",ghostClass:"ghost",onStart:a[0]||(a[0]=u=>cl.value=!0),onEnd:a[1]||(a[1]=u=>cl.value=!1),"item-key":u=>u},{item:er(({element:u})=>[L("div",nEe,ie(o.$t(u)),1)]),_:2},1032,["modelValue","onUpdate:modelValue","item-key"])],2))),128)),se(N(nm),{class:"flex flex-1 flex-wrap gap-2 p-2",modelValue:t.value,"onUpdate:modelValue":a[2]||(a[2]=s=>t.value=s),animation:150,group:"list",ghostClass:"ghost",onStart:a[3]||(a[3]=s=>cl.value=!0),onEnd:a[4]||(a[4]=s=>cl.value=!1),"item-key":s=>s},{item:er(({element:s})=>[L("div",rEe,ie(o.$t(s)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),oEe={class:"flex flex-col gap-2 p-1"},aEe=["onUpdate:modelValue"],sEe=["onClick"],lEe={class:"flex w-full items-center gap-1"},uEe=it({__name:"SourceIPLabels",setup(e){const t=Le(()=>Object.keys(To.value)),n=Va({ip:"",label:""}),r=()=>{To.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(To.value,o),To.value={...To.value}};return(o,a)=>(X(),te(Ye,null,[L("div",null,ie(o.$t("sourceIPLabels"))+":",1),L("div",oEe,[(X(!0),te(Ye,null,ln(t.value,s=>(X(),te("div",{key:s,class:"flex items-center gap-2"},[st(ie(s)+" ",1),se(N(Lu),{class:"h-4 w-4"}),gt(L("input",{type:"text",class:"input input-sm input-bordered w-24","onUpdate:modelValue":l=>N(To)[s]=l},null,8,aEe),[[sr,N(To)[s]]]),L("button",{class:"btn btn-circle btn-sm",onClick:()=>i(s)},[se(N(YI),{class:"h-4 w-4"})],8,sEe)]))),128)),L("div",lEe,[a[2]||(a[2]=L("span",{class:"shrink-0"},"IP :",-1)),gt(L("input",{type:"text",class:"input input-sm input-bordered w-36 flex-1 sm:max-w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[sr,n.ip]]),se(N(Lu),{class:"h-4 w-4 shrink-0"}),gt(L("input",{type:"text",class:"input input-sm input-bordered w-24 sm:w-32","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[sr,n.label]]),L("button",{class:"btn btn-circle btn-sm",onClick:r},[se(N(CB),{class:"h-4 w-4"})])])])],64))}}),cEe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},fEe={class:"flex items-center gap-2"},dEe=["value"],hEe={class:"flex items-center gap-2"},pEe=["value"],vEe={class:"flex rounded lg:flex-col"},gEe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},mEe={class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},yEe=it({__name:"TableSettings",setup(e){const t=ke(Object.values(Je).filter(n=>!Vd.value.includes(n)));return(n,r)=>(X(),te(Ye,null,[L("div",cEe,[L("div",fEe,[L("div",null,ie(n.$t("tableWidthMode"))+":",1),gt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[0]||(r[0]=i=>at(T_)?T_.value=i:null)},[(X(!0),te(Ye,null,ln(Object.values(N(Kb)),i=>(X(),te("option",{key:i,value:i},ie(n.$t(i)),9,dEe))),128))],512),[[Vr,N(T_)]])]),L("div",hEe,[L("div",null,ie(n.$t("tableSize"))+":",1),gt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[1]||(r[1]=i=>at(C_)?C_.value=i:null)},[(X(!0),te(Ye,null,ln(Object.values(N(wg)),i=>(X(),te("option",{key:i,value:i},ie(n.$t(i)),9,pEe))),128))],512),[[Vr,N(C_)]])])]),L("div",null,ie(n.$t("customTableColumns"))+":",1),L("div",vEe,[se(N(nm),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:N(Vd),"onUpdate:modelValue":r[2]||(r[2]=i=>at(Vd)?Vd.value=i:null),group:"list",animation:150,"item-key":i=>i,onStart:r[3]||(r[3]=i=>cl.value=!0),onEnd:r[4]||(r[4]=i=>cl.value=!1)},{item:er(({element:i})=>[L("div",gEe,ie(n.$t(i)),1)]),_:1},8,["modelValue","item-key"]),se(N(nm),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[5]||(r[5]=i=>t.value=i),group:"list",animation:150,"item-key":i=>i,onStart:r[6]||(r[6]=i=>cl.value=!0),onEnd:r[7]||(r[7]=i=>cl.value=!1)},{item:er(({element:i})=>[L("div",mEe,ie(n.$t(i)),1)]),_:1},8,["modelValue","item-key"])])],64))}}),_Ee={class:"card card-compact"},bEe={class:"card-title px-4 pt-4"},SEe={class:"card-body"},wEe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},xEe={class:"flex items-center gap-2"},CEe={class:"flex items-center gap-2"},TEe=["value"],EEe=it({__name:"ConnectionsSettings",setup(e){return(t,n)=>(X(),te("div",_Ee,[L("div",bEe,ie(t.$t("connections")),1),L("div",SEe,[L("div",wEe,[L("div",xEe,[st(ie(t.$t("connectionStyle"))+": "+ie(t.$t("table"))+" ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>at(Xc)?Xc.value=r:null)},null,512),[[ar,N(Xc)]]),st(" "+ie(t.$t("card")),1)]),L("div",CEe,[st(ie(t.$t("proxyChainDirection"))+": ",1),gt(L("select",{class:"select select-bordered select-sm w-24","onUpdate:modelValue":n[1]||(n[1]=r=>at(Lv)?Lv.value=r:null)},[(X(!0),te(Ye,null,ln(Object.values(N(gm)),r=>(X(),te("option",{key:r,value:r},ie(t.$t(r)),9,TEe))),128))],512),[[Vr,N(Lv)]])])]),N(Xc)?(X(),Tt(iEe,{key:0})):(X(),Tt(yEe,{key:1})),n[2]||(n[2]=L("div",{class:"divider"},null,-1)),se(uEe)])]))}}),AEe={class:"card card-compact"},IEe={class:"card-title px-4 pt-4"},REe={class:"card-body"},PEe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},OEe={class:"flex items-center gap-2"},DEe={class:"flex items-center gap-2"},MEe={class:"flex w-full items-center gap-2"},LEe={class:"flex w-full items-center gap-2"},NEe={class:"flex w-full items-center gap-2"},kEe={class:"flex items-center gap-2"},FEe={class:"flex items-center gap-2"},$Ee={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},BEe={class:"flex items-center gap-2 max-sm:hidden"},VEe={class:"flex items-center gap-2"},UEe=["value"],HEe={class:"flex items-center gap-2"},GEe={class:"flex items-center gap-2"},zEe=["value"],WEe={class:"flex items-center gap-2"},jEe={class:"flex items-center gap-2"},XEe={class:"flex items-center gap-2"},YEe={key:1,class:"flex items-center gap-2"},KEe=it({__name:"ProxiesSettings",setup(e){const{showTip:t}=Tm(),{t:n}=Do(),r=o=>t(o,n("independentLatencyTestTip")),i=Le(()=>Object.values(Or.value).some(o=>!!o.icon));return(o,a)=>(X(),te("div",AEe,[L("div",IEe,ie(o.$t("proxies")),1),L("div",REe,[L("div",PEe,[L("div",OEe,[st(ie(o.$t("automaticDisconnection"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[0]||(a[0]=s=>at(S_)?S_.value=s:null)},null,512),[[ar,N(S_)]])]),L("div",DEe,[st(ie(o.$t("ipv6Test"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[1]||(a[1]=s=>at(hf)?hf.value=s:null)},null,512),[[ar,N(hf)]])]),L("div",MEe,[L("span",null,ie(o.$t("speedtestUrl"))+": ",1),gt(L("input",{type:"text",class:"input input-sm input-bordered w-36 flex-1 sm:max-w-80","onUpdate:modelValue":a[2]||(a[2]=s=>at(hl)?hl.value=s:null)},null,512),[[sr,N(hl)]])]),L("div",LEe,[L("span",null,ie(o.$t("independentLatencyTest"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[3]||(a[3]=s=>at(qd)?qd.value=s:null)},null,512),[[ar,N(qd)]]),se(N(KI),{class:"h-4 w-4",onMouseenter:r})]),L("div",NEe,[L("span",null,ie(o.$t("speedtestTimeout"))+": ",1),gt(L("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[4]||(a[4]=s=>at(Eu)?Eu.value=s:null)},null,512),[[sr,N(Eu)]]),a[15]||(a[15]=st(" ms "))]),L("div",kEe,[L("span",null,ie(o.$t("lowLatencyDesc"))+": ",1),gt(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[5]||(a[5]=s=>at(mu)?mu.value=s:null)},null,512),[[sr,N(mu)]]),a[16]||(a[16]=st(" ms "))]),L("div",FEe,[L("span",null,ie(o.$t("mediumLatencyDesc"))+": ",1),gt(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[6]||(a[6]=s=>at(il)?il.value=s:null)},null,512),[[sr,N(il)]]),a[17]||(a[17]=st(" ms "))])]),a[18]||(a[18]=L("div",{class:"divider"},null,-1)),L("div",$Ee,[L("div",BEe,[st(ie(o.$t("twoColumnProxyGroup"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[7]||(a[7]=s=>at(Rv)?Rv.value=s:null)},null,512),[[ar,N(Rv)]])]),L("div",VEe,[st(ie(o.$t("proxyPreviewType"))+": ",1),gt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":a[8]||(a[8]=s=>at(Ov)?Ov.value=s:null)},[(X(!0),te(Ye,null,ln(Object.values(N(Sg)),s=>(X(),te("option",{key:s,value:s},ie(o.$t(s)),9,UEe))),128))],512),[[Vr,N(Ov)]])]),L("div",HEe,[st(ie(o.$t("truncateProxyName"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[9]||(a[9]=s=>at(Pv)?Pv.value=s:null)},null,512),[[ar,N(Pv)]])]),L("div",GEe,[st(ie(o.$t("proxyCardSize"))+": ",1),gt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":a[10]||(a[10]=s=>at(Dv)?Dv.value=s:null)},[(X(!0),te(Ye,null,ln(Object.values(N(vm)),s=>(X(),te("option",{key:s,value:s},ie(o.$t(s)),9,zEe))),128))],512),[[Vr,N(Dv)]])]),i.value?(X(),te(Ye,{key:0},[L("div",WEe,[st(ie(o.$t("iconSize"))+": ",1),gt(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[11]||(a[11]=s=>at(Mv)?Mv.value=s:null)},null,512),[[sr,N(Mv)]])]),L("div",jEe,[st(ie(o.$t("iconMarginRight"))+": ",1),gt(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[12]||(a[12]=s=>at(x_)?x_.value=s:null)},null,512),[[sr,N(x_)]])])],64)):yt("",!0),L("div",XEe,[st(ie(o.$t("showHiddenGroup"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[13]||(a[13]=s=>at(w_)?w_.value=s:null)},null,512),[[ar,N(w_)]])]),N(ws)?(X(),te("div",YEe,[st(ie(o.$t("showGlobalProxy"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[14]||(a[14]=s=>at(__)?__.value=s:null)},null,512),[[ar,N(__)]])])):yt("",!0)])])]))}}),ZEe={class:"flex items-center gap-2"},qEe=["value"],Hz=it({__name:"LanguageSelect",setup(e){const t={[fs.EN_US]:"English",[fs.ZH_CN]:"简体中文",[fs.RU_RU]:"Русский"};return(n,r)=>(X(),te("div",ZEe,[st(ie(n.$t("language"))+": ",1),gt(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>at(gu)?gu.value=i:null),onChange:r[1]||(r[1]=()=>N(Qb).global.locale=N(gu))},[(X(!0),te(Ye,null,ln(Object.values(N(fs)),i=>(X(),te("option",{key:i,value:i},ie(t[i]||i),9,qEe))),128))],544),[[Vr,N(gu)]])]))}}),JEe={class:"card card-compact"},QEe={class:"card-title px-4 pt-4 text-primary"},eAe={class:"indicator"},tAe={key:0,class:"indicator-item flex"},nAe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},rAe={class:"card-body gap-4"},iAe={class:"grid grid-cols-1 gap-2 xl:grid-cols-2"},oAe={class:"flex flex-col gap-2"},aAe={class:"flex items-center gap-2"},sAe=["value"],lAe={class:"flex items-center gap-2"},uAe=["value"],cAe={class:"flex flex-col gap-2"},fAe={class:"flex flex-col gap-2 sm:flex-row sm:items-center"},dAe={class:"shrink-0"},hAe={class:"join"},pAe={key:0,class:"flex items-center gap-2"},vAe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},gAe=it({__name:"ZashboardSettings",setup(e){const t=ke(),n=()=>{var c;(c=t.value)==null||c.click()},r=()=>{Da.value.includes(R1)||Jte()},i=c=>{var h;const f=(h=c.target.files)==null?void 0:h[0];if(!f)return;const d=new FileReader;d.onload=()=>{Da.value=R1+"-"+Date.now(),Zte(d.result)},d.readAsDataURL(f)},{isUIUpdateAvailable:o}=SG(),a=ke(!1),s=async()=>{if(!a.value){a.value=!0;try{await $V(),a.value=!1,window.location.reload()}catch{a.value=!1}}},l=async()=>{tne()},u=["default","light","dark","cupcake","bumblebee","emerald","corporate","synthwave","retro","cyberpunk","valentine","halloween","garden","forest","aqua","lofi","pastel","fantasy","wireframe","black","luxury","dracula","cmyk","autumn","business","acid","lemonade","night","coffee","winter","dim","nord","sunset"];return(c,f)=>(X(),te("div",JEe,[L("div",QEe,[L("div",eAe,[N(o)?(X(),te("span",tAe,f[10]||(f[10]=[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("a",nAe,"zashboard v"+ie(N(NV)),1)])]),L("div",rAe,[L("div",iAe,[L("div",oAe,[L("div",aAe,[st(ie(c.$t("theme"))+": ",1),gt(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":f[0]||(f[0]=d=>at(Zd)?Zd.value=d:null)},[(X(),te(Ye,null,ln(u,d=>L("option",{key:d,value:d},ie(d==="default"?c.$t("autoSwitch"):d),9,sAe)),64))],512),[[Vr,N(Zd)]])]),se(Hz),L("div",lAe,[st(ie(c.$t("fonts"))+": ",1),gt(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":f[1]||(f[1]=d=>at(Iv)?Iv.value=d:null)},[(X(!0),te(Ye,null,ln(Object.values(N(fu)),d=>(X(),te("option",{key:d,value:d},ie(d),9,uAe))),128))],512),[[Vr,N(Iv)]])])]),L("div",cAe,[L("div",fAe,[L("span",dAe,ie(c.$t("customBackgroundURL"))+": ",1),L("div",hAe,[se(Sm,{class:"join-item",modelValue:N(Da),"onUpdate:modelValue":[f[2]||(f[2]=d=>at(Da)?Da.value=d:null),r]},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:n},[se(N(dm),{class:"h-4 w-4"})])]),L("input",{ref_key:"inputFileRef",ref:t,type:"file",accept:"image/*",class:"hidden",onChange:i},null,544)]),N(Da)?(X(),te("div",{key:0,class:"flex items-center gap-2",onTouchstart:f[4]||(f[4]=ur(()=>{},["stop"])),onTouchmove:f[5]||(f[5]=ur(()=>{},["stop"])),onTouchend:f[6]||(f[6]=ur(()=>{},["stop"]))},[st(ie(c.$t("transparent"))+": ",1),gt(L("input",{type:"range",min:"0",max:"100","onUpdate:modelValue":f[3]||(f[3]=d=>at(h_)?h_.value=d:null),class:"range max-w-64"},null,512),[[sr,N(h_)]])],32)):yt("",!0)])]),N(ws)?yt("",!0):(X(),te("div",pAe,[st(ie(c.$t("autoUpgrade"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":f[7]||(f[7]=d=>at(p_)?p_.value=d:null)},null,512),[[ar,N(p_)]])])),L("div",vAe,[N(ws)?yt("",!0):(X(),te(Ye,{key:0},[L("button",{class:ot(N(In)("btn btn-primary btn-sm",a.value?"animate-pulse":"")),onClick:s},ie(c.$t("upgradeUI")),3),L("button",{class:"btn btn-sm",onClick:l},ie(c.$t("clearIconCache")),1)],64)),L("button",{class:"btn btn-sm",onClick:f[8]||(f[8]=(...d)=>N(gN)&&N(gN)(...d))},ie(c.$t("exportSettings")),1),L("button",{class:"btn btn-sm",onClick:f[9]||(f[9]=(...d)=>N(L1)&&N(L1)(...d))},ie(c.$t("importSettings")),1)])])]))}}),mAe={class:"grid grid-cols-1 gap-2 overflow-x-hidden p-2"},yAe={key:0,class:"card card-compact"},_Ae={class:"card-title px-4 pt-4"},bAe={class:"card card-compact"},SAe={class:"card-title px-4 pt-4"},wAe={class:"card-body grid grid-cols-1 gap-2 lg:grid-cols-2"},xAe={class:"flex items-center gap-2"},CAe={key:0,class:"flex items-center gap-2"},TAe={class:"flex items-center gap-2"},EAe={class:"flex items-center gap-2"},AAe={class:"flex items-center gap-2 max-md:hidden"},IAe={class:"card card-compact"},RAe={class:"card-title px-4 pt-4"},PAe={class:"card-body"},OAe={class:"flex items-center gap-2"},DAe=it({__name:"SettingsPage",setup(e){return(t,n)=>(X(),te("div",mAe,[se(gAe),N(Md)?yt("",!0):(X(),te("div",yAe,[L("div",_Ae,ie(t.$t("overview")),1),L("div",{class:ot(`card-body grid grid-cols-1 gap-2 lg:grid-cols-2 ${N(bp)&&"xl:grid-cols-3"}`)},[se(A2,{type:"settings"}),N(bp)?(X(),te(Ye,{key:0},[se(xG),se(wG)],64)):yt("",!0),se(zR),se(GR),se(HR)],2)])),se(vxe),se(KEe),se(EEe),L("div",bAe,[L("div",SAe,ie(t.$t("overview")),1),L("div",wAe,[L("div",xAe,[st(ie(t.$t("splitOverviewPage"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>at(Md)?Md.value=r:null)},null,512),[[ar,N(Md)]])]),N(Md)?yt("",!0):(X(),te("div",CAe,[st(ie(t.$t("showIPAndConnectionInfo"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>at(bp)?bp.value=r:null)},null,512),[[ar,N(bp)]])])),L("div",TAe,[st(ie(t.$t("autoIPCheckWhenStart"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[2]||(n[2]=r=>at(g_)?g_.value=r:null)},null,512),[[ar,N(g_)]])]),L("div",EAe,[st(ie(t.$t("autoConnectionCheckWhenStart"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[3]||(n[3]=r=>at(m_)?m_.value=r:null)},null,512),[[ar,N(m_)]])]),L("div",AAe,[st(ie(t.$t("showStatisticsWhenSidebarCollapsed"))+": ",1),gt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[4]||(n[4]=r=>at(y_)?y_.value=r:null)},null,512),[[ar,N(y_)]])])])]),L("div",IAe,[L("div",RAe,ie(t.$t("logs")),1),L("div",PAe,[L("div",OAe,[st(ie(t.$t("logRetentionLimit"))+": ",1),gt(L("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":n[5]||(n[5]=r=>at(E_)?E_.value=r:null)},null,512),[[sr,N(E_)]])])])])]))}}),MAe={class:"absolute right-4 top-4"},LAe={class:"absolute bottom-4 right-4"},NAe={class:"card w-96 max-w-[90%] gap-2 px-6 py-2 sm:gap-4"},kAe={class:"text-2xl font-semibold"},FAe={class:"form-control"},$Ae={class:"label"},BAe={class:"label-text"},VAe={class:"form-control"},UAe={class:"label"},HAe={class:"label-text"},GAe={class:"form-control"},zAe={class:"label"},WAe={class:"label-text"},jAe={class:"form-control"},XAe={class:"label flex items-center justify-start gap-1"},YAe={class:"label-text"},KAe=["data-tip"],ZAe={class:"form-control"},qAe={class:"label"},JAe={class:"label-text"},QAe={class:"btn btn-sm cursor-grab"},eIe=["onClick"],tIe=["onClick"],nIe=it({__name:"SetupPage",setup(e){var a,s;const t=Va({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{showNotification:n}=Fh(),r=l=>{vi.value=l,Ga.push({name:un.proxies})},i=async(l,u=!1)=>{const{protocol:c,host:f,port:d,password:h}=l;if(!c||!f||!d){alert("Please fill in all the fields.");return}window.location.protocol==="https:"&&c==="http"&&!["::1","0.0.0.0","127.0.0.1","localhost"].includes(f)&&!u&&n({content:"protocolTips"});try{const v=await fetch(`${Nu(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${h}`}});if(v.status!==200){u||alert(v.statusText);return}const{version:m,message:_}=await v.json();if(!m){u||alert(_);return}Tie(l),Ga.push({name:un.proxies})}catch(v){u||alert(v)}},o=new URLSearchParams(window.location.search||((s=(a=location.hash.match(/\?.*$/))==null?void 0:a[0])==null?void 0:s.replace("?","")));return o.has("hostname")?i({protocol:o.get("http")?"http":o.get("https")?"https":window.location.protocol.replace(":",""),secondaryPath:o.get("secondaryPath")||"",host:o.get("hostname"),port:Number(o.get("port")),password:o.get("secret")}):oa.value.length===0&&i(t,!0),(l,u)=>(X(),te("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:u[8]||(u[8]=fB(c=>i(t),["enter"]))},[L("div",MAe,[L("button",{class:"btn btn-sm",onClick:u[0]||(u[0]=(...c)=>N(L1)&&N(L1)(...c))},ie(l.$t("importSettings")),1)]),L("div",LAe,[se(Hz)]),L("div",NAe,[L("h1",kAe,ie(l.$t("setup")),1),L("div",FAe,[L("label",$Ae,[L("span",BAe,ie(l.$t("protocol")),1)]),gt(L("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":u[1]||(u[1]=c=>t.protocol=c)},u[9]||(u[9]=[L("option",{value:"http"},"HTTP",-1),L("option",{value:"https"},"HTTPS",-1)]),512),[[Vr,t.protocol]])]),L("div",VAe,[L("label",UAe,[L("span",HAe,ie(l.$t("host")),1)]),gt(L("input",{type:"text",class:"input input-sm input-bordered w-full",name:"username",autocomplete:"username","onUpdate:modelValue":u[2]||(u[2]=c=>t.host=c)},null,512),[[sr,t.host]])]),L("div",GAe,[L("label",zAe,[L("span",WAe,ie(l.$t("port")),1)]),gt(L("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[3]||(u[3]=c=>t.port=c)},null,512),[[sr,t.port]])]),L("div",jAe,[L("label",XAe,[L("span",YAe,ie(l.$t("secondaryPath")),1),L("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[se(N(KI),{class:"h-4 w-4"})],8,KAe)]),gt(L("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.secondaryPath=c)},null,512),[[sr,t.secondaryPath]])]),L("div",ZAe,[L("label",qAe,[L("span",JAe,ie(l.$t("password")),1)]),gt(L("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[5]||(u[5]=c=>t.password=c)},null,512),[[sr,t.password]])]),L("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>i(t))},ie(l.$t("submit")),1),se(N(nm),{class:"flex flex-1 flex-col gap-2",modelValue:N(oa),"onUpdate:modelValue":u[7]||(u[7]=c=>at(oa)?oa.value=c:null),group:"list",animation:150,"item-key":"uuid"},{item:er(({element:c})=>[(X(),te("div",{key:c.uuid,class:"flex items-center gap-2"},[L("button",QAe,[se(N(ree),{class:"h-4 w-4"})]),L("button",{class:"btn btn-sm flex-1",onClick:f=>r(c.uuid)},ie(N(Nu)(c)),9,eIe),L("button",{class:"btn btn-circle btn-sm",onClick:()=>N(cV)(c.uuid)},[se(N(YI),{class:"h-4 w-4"})],8,tIe)]))]),_:1},8,["modelValue"])])],32))}}),rIe=[{path:"proxies",name:un.proxies,component:Bwe},{path:"overview",name:un.overview,component:swe},{path:"connections",name:un.connections,component:bue},{path:"logs",name:un.logs,component:gSe},{path:"rules",name:un.rules,component:qwe},{path:"settings",name:un.settings,component:DAe}],Ga=Xte({history:xte("./"),routes:[{path:"/",redirect:un.proxies,component:cSe,children:rIe},{path:"/setup",name:un.setup,component:nIe},{path:"/:catchAll(.*)",redirect:un.proxies}]}),l$=Wee("zashboard"),Gz=e=>{typeof e=="string"&&wl.value?l$.value=`zashboard | ${Qb.global.t(e)}`:l$.value="zashboard"};Ga.beforeEach((e,t)=>{const n=Eo.value.findIndex(i=>i===e.name),r=Eo.value.findIndex(i=>i===t.name);n===0&&r===Eo.value.length-1?e.meta.transition="slide-left":n===Eo.value.length-1&&r===0?e.meta.transition="slide-right":n!==r&&(e.meta.transition=n<r?"slide-right":"slide-left"),!wl.value&&e.name!==un.setup&&Ga.push({name:un.setup})});Ga.afterEach(e=>{Gz(e.name)});Vt(gu,()=>{Gz(Ga.currentRoute.value.name)});{const e=t=>{const n=document.createElement("link");n.rel="stylesheet",n.href=t,n.media="print",n.onload=()=>{n.media="all"},document.head.appendChild(n)};e("https://unpkg.com/subsetted-fonts@latest/MiSans-VF/MiSans-VF.css"),e("https://unpkg.com/subsetted-fonts@latest/SarasaUiSC-Regular/SarasaUiSC-Regular.css"),e("https://unpkg.com/subsetted-fonts@latest/PingFangSC-Regular/PingFangSC-Regular.css"),e("https://unpkg.com/@fontsource/fira-sans")}const CP=A1(mie);Oo.extend(oZ);Oo.extend(uZ);Oo.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}});CP.use(Ga);CP.use(Qb);CP.mount("#app");