From 8ebf78759c4026ee55aa38a47b3b4408d550eb70 Mon Sep 17 00:00:00 2001 From: kenzok8 Date: Sun, 29 Dec 2024 16:23:13 +0800 Subject: [PATCH] update 2024-12-29 16:23:13 --- luci-app-nekobox/Makefile | 2 +- .../htdocs/nekobox/assets/img/Latest.svg | 8 +- .../htdocs/nekobox/assets/img/curent.svg | 8 +- luci-app-nekobox/htdocs/nekobox/settings.php | 39 ++++- .../root/etc/neko/tmp/nekobox_version | 2 +- .../ui/zashboard/assets/index-BBqZAzxq.js | 151 ++++++++++++++++++ .../ui/zashboard/assets/index-DTQ-SwsF.js | 151 ------------------ ...{index-Wi3TY4zB.css => index-Doht7gsQ.css} | 2 +- .../root/etc/neko/ui/zashboard/index.html | 4 +- .../root/etc/neko/ui/zashboard/sw.js | 2 +- .../root/etc/neko/ui/zashboard/version.txt | 2 +- .../passwall/node_list/link_share_man.htm | 43 +++-- .../root/usr/share/passwall/subscribe.lua | 2 +- 13 files changed, 228 insertions(+), 188 deletions(-) create mode 100644 luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BBqZAzxq.js delete mode 100644 luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-DTQ-SwsF.js rename luci-app-nekobox/root/etc/neko/ui/zashboard/assets/{index-Wi3TY4zB.css => index-Doht7gsQ.css} (61%) diff --git a/luci-app-nekobox/Makefile b/luci-app-nekobox/Makefile index d6e7ce0d9..65422064b 100644 --- a/luci-app-nekobox/Makefile +++ b/luci-app-nekobox/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_MAINTAINER:=Thaolga PKG_NAME:=luci-app-nekobox -PKG_VERSION:=1.6.1 +PKG_VERSION:=1.6.2 PKG_RELEASE:=cn PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) diff --git a/luci-app-nekobox/htdocs/nekobox/assets/img/Latest.svg b/luci-app-nekobox/htdocs/nekobox/assets/img/Latest.svg index 859655e57..ee7b76a8f 100644 --- a/luci-app-nekobox/htdocs/nekobox/assets/img/Latest.svg +++ b/luci-app-nekobox/htdocs/nekobox/assets/img/Latest.svg @@ -1,5 +1,5 @@ - - Latest Version: v1.6.1 + + Latest Version: v1.6.2 @@ -15,7 +15,7 @@ Latest Version - - v1.6.1 + + v1.6.2 diff --git a/luci-app-nekobox/htdocs/nekobox/assets/img/curent.svg b/luci-app-nekobox/htdocs/nekobox/assets/img/curent.svg index d55c5d0e6..834d5f3b7 100644 --- a/luci-app-nekobox/htdocs/nekobox/assets/img/curent.svg +++ b/luci-app-nekobox/htdocs/nekobox/assets/img/curent.svg @@ -1,5 +1,5 @@ - - Current Version: v1.6.1 + + Current Version: v1.6.2 @@ -15,7 +15,7 @@ Current Version - - v1.6.1 + + v1.6.2 \ No newline at end of file diff --git a/luci-app-nekobox/htdocs/nekobox/settings.php b/luci-app-nekobox/htdocs/nekobox/settings.php index c7a9a8712..d159792c3 100644 --- a/luci-app-nekobox/htdocs/nekobox/settings.php +++ b/luci-app-nekobox/htdocs/nekobox/settings.php @@ -40,6 +40,9 @@ function getSingboxVersion() { } return ['version' => $version, 'type' => 'Singbox 预览版']; } else { + if (strpos($version, 'v') !== false) { + return ['version' => $version, 'type' => 'Singbox 编译版']; + } return ['version' => $version, 'type' => 'Singbox 正式版']; } } @@ -141,6 +144,7 @@ $singBoxVersion = $singBoxVersionInfo['version']; $singBoxType = $singBoxVersionInfo['type']; $puernyaVersion = ($singBoxType === 'Puernya 预览版') ? $singBoxVersion : '未安装'; $singboxPreviewVersion = ($singBoxType === 'Singbox 预览版') ? $singBoxVersion : '未安装'; +$singboxCompileVersion = ($singBoxType === 'Singbox 编译版') ? $singBoxVersion : '未安装'; $mihomoVersionInfo = getMihomoVersion(); $mihomoVersion = $mihomoVersionInfo['version']; $mihomoType = $mihomoVersionInfo['type']; @@ -948,22 +952,47 @@ function checkVersion(outputId, updateFiles, currentVersions) { } document.getElementById('checkSingboxButton').addEventListener('click', function () { - const singBoxVersion = ""; + const singBoxVersion = ""; const singBoxType = ""; const puernyaVersion = ""; const singboxPreviewVersion = ""; + const singboxCompileVersion = ""; + + let finalPreviewVersion = '未安装'; + let finalCompileVersion = '未安装'; + let finalOfficialVersion = '未安装'; + let finalPuernyaVersion = '未安装'; + + if (puernyaVersion === '1.10.0-alpha.29-067c81a7') { + finalPuernyaVersion = puernyaVersion; + } + + if (singBoxVersion && /^v/.test(singBoxVersion) && /alpha|beta/.test(singBoxVersion)) { + finalCompileVersion = singBoxVersion; + } + + if (singBoxVersion && /alpha|beta/.test(singBoxVersion) && puernyaVersion !== '1.10.0-alpha.29-067c81a7' && !/^v/.test(singBoxVersion)) { + finalPreviewVersion = singBoxVersion; + } + + if (singBoxVersion && !/[a-zA-Z]/.test(singBoxVersion)) { + finalOfficialVersion = singBoxVersion; + } + const currentVersions = { - 'Singbox [ 正式版 ]': singBoxType === 'Singbox 正式版' ? singBoxVersion : '未安装', - 'Singbox [ 预览版 ]': singboxPreviewVersion, - 'Singbox [ 编译版 ]': singboxPreviewVersion, - 'Puernya [ 预览版 ]': puernyaVersion + 'Singbox [ 正式版 ]': finalOfficialVersion, + 'Singbox [ 预览版 ]': finalPreviewVersion, + 'Singbox [ 编译版 ]': finalCompileVersion, + 'Puernya [ 预览版 ]': finalPuernyaVersion }; + const updateFiles = [ { name: 'Singbox [ 正式版 ]', url: 'update_singbox_stable.php' }, { name: 'Singbox [ 预览版 ]', url: 'update_singbox_preview.php' }, { name: 'Singbox [ 编译版 ]', url: 'update_singbox_core.php' }, { name: 'Puernya [ 预览版 ]', url: 'puernya.php' } ]; + checkVersion('NewSingbox', updateFiles, currentVersions); }); diff --git a/luci-app-nekobox/root/etc/neko/tmp/nekobox_version b/luci-app-nekobox/root/etc/neko/tmp/nekobox_version index 0cad989e9..5895ff3c5 100644 --- a/luci-app-nekobox/root/etc/neko/tmp/nekobox_version +++ b/luci-app-nekobox/root/etc/neko/tmp/nekobox_version @@ -1 +1 @@ -V1.6.1-cn +V1.6.2-cn diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BBqZAzxq.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BBqZAzxq.js new file mode 100644 index 000000000..bc5849367 --- /dev/null +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-BBqZAzxq.js @@ -0,0 +1,151 @@ +(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 fv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yg={exports:{}},v8=yg.exports,AA;function qS(){return AA||(AA=1,function(e,t){(function(n,r){e.exports=r()})(v8,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",h="month",p="quarter",d="year",g="date",_="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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(W){var X=["th","st","nd","rd"],j=W%100;return"["+W+(X[(j-20)%10]||X[j]||X[0])+"]"}},S=function(W,X,j){var oe=String(W);return!oe||oe.length>=X?W:""+Array(X+1-oe.length).join(j)+W},x={s:S,z:function(W){var X=-W.utcOffset(),j=Math.abs(X),oe=Math.floor(j/60),Q=j%60;return(X<=0?"+":"-")+S(oe,2,"0")+":"+S(Q,2,"0")},m:function W(X,j){if(X.date()1)return W(_e[0])}else{var be=X.name;T[be]=X,Q=be}return!oe&&Q&&(E=Q),Q||!oe&&E},k=function(W,X){if(P(W))return W.clone();var j=typeof X=="object"?X:{};return j.date=W,j.args=arguments,new H(j)},N=x;N.l=L,N.i=P,N.w=function(W,X){return k(W,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var H=function(){function W(j){this.$L=L(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[M]=!0}var X=W.prototype;return X.parse=function(j){this.$d=function(oe){var Q=oe.date,fe=oe.utc;if(Q===null)return new Date(NaN);if(N.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var _e=Q.match(m);if(_e){var be=_e[2]-1||0,Ne=(_e[7]||"0").substring(0,3);return fe?new Date(Date.UTC(_e[1],be,_e[3]||1,_e[4]||0,_e[5]||0,_e[6]||0,Ne)):new Date(_e[1],be,_e[3]||1,_e[4]||0,_e[5]||0,_e[6]||0,Ne)}}return new Date(Q)}(j),this.init()},X.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},X.$utils=function(){return N},X.isValid=function(){return this.$d.toString()!==_},X.isSame=function(j,oe){var Q=k(j);return this.startOf(oe)<=Q&&Q<=this.endOf(oe)},X.isAfter=function(j,oe){return k(j)=2&&y%10<=4&&(y%100<10||y%100>=20)?b[1]:b[2])}var h=function(g,_){return u.test(_)?o[g.month()]:a[g.month()]};h.s=a,h.f=o;var p=function(g,_){return u.test(_)?s[g.month()]:l[g.month()]};p.s=l,p.f=s;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:h,monthsShort:p,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(g){return g},meridiem:function(g){return g<4?"ночи":g<12?"утра":g<17?"дня":"вечера"}};return i.default.locale(d,null,!0),d})}(_g)),_g.exports}y8();var wg={exports:{}},_8=wg.exports,RA;function w8(){return RA||(RA=1,function(e,t){(function(n,r){e.exports=r(qS())})(_8,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})}(wg)),wg.exports}w8();var bg={exports:{}},b8=bg.exports,PA;function S8(){return PA||(PA=1,function(e,t){(function(n,r){e.exports=r()})(b8,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,h,p){return o.fromToBase(u,c,h,p)}i.en.relativeTime=a,o.fromToBase=function(u,c,h,p,d){for(var g,_,m,y=h.$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,x=0;x0,T<=E.r||!E.r){T<=1&&x>0&&(E=b[x-1]);var M=y[E.l];d&&(T=d(""+T)),_=typeof M=="string"?M.replace("%d",T):M(T,c,E.l,m);break}}if(c)return _;var P=m?y.future:y.past;return typeof P=="function"?P(_):P.replace("%s",_)},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)}}})}(bg)),bg.exports}var x8=S8();const C8=d0(x8);/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function XS(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fn={},Cc=[],Zo=()=>{},T8=()=>!1,p0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),KS=e=>e.startsWith("onUpdate:"),rr=Object.assign,ZS=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},E8=Object.prototype.hasOwnProperty,Kt=(e,t)=>E8.call(e,t),nt=Array.isArray,Tc=e=>Kd(e)==="[object Map]",of=e=>Kd(e)==="[object Set]",DA=e=>Kd(e)==="[object Date]",pt=e=>typeof e=="function",Hn=e=>typeof e=="string",To=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",KI=e=>(dn(e)||pt(e))&&pt(e.then)&&pt(e.catch),ZI=Object.prototype.toString,Kd=e=>ZI.call(e),A8=e=>Kd(e).slice(8,-1),JI=e=>Kd(e)==="[object Object]",JS=e=>Hn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ih=XS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),v0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},M8=/-(\w)/g,eo=v0(e=>e.replace(M8,(t,n)=>n?n.toUpperCase():"")),R8=/\B([A-Z])/g,nl=v0(e=>e.replace(R8,"-$1").toLowerCase()),g0=v0(e=>e.charAt(0).toUpperCase()+e.slice(1)),k_=v0(e=>e?`on${g0(e)}`:""),Us=(e,t)=>!Object.is(e,t),Sg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},hm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let IA;const m0=()=>IA||(IA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yo(e){if(nt(e)){const t={};for(let n=0;n{if(n){const r=n.split(D8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function je(e){let t="";if(Hn(e))t=e;else if(nt(e))for(let n=0;nZd(n,t))}const tL=e=>!!(e&&e.__v_isRef===!0),se=e=>Hn(e)?e:e==null?"":nt(e)||dn(e)&&(e.toString===ZI||!pt(e.toString))?tL(e)?se(e.value):JSON.stringify(e,nL,2):String(e),nL=(e,t)=>tL(t)?nL(e,t.value):Tc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[N_(r,o)+" =>"]=i,n),{})}:of(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>N_(n))}:To(t)?N_(t):dn(t)&&!nt(t)&&!JI(t)?String(t):t,N_=(e,t="")=>{var n;return To(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ir;class rL{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Oh){let t=Oh;for(Oh=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lh;){let t=Lh;for(Lh=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 uL(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cL(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),nx(r),$8(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Xw(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fL(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fL(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gd))return;e.globalVersion=gd;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Xw(e)){e.flags&=-3;return}const n=gn,r=xo;gn=e,xo=!0;try{uL(e);const i=e.fn(e._value);(t.version===0||Us(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{gn=n,xo=r,cL(e),e.flags&=-3}}function nx(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)nx(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $8(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xo=!0;const hL=[];function rl(){hL.push(xo),xo=!1}function il(){const e=hL.pop();xo=e===void 0?!0:e}function LA(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gn;gn=void 0;try{t()}finally{gn=n}}}let gd=0;class B8{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 y0{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(!gn||!xo||gn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gn)n=this.activeLink=new B8(gn,this),gn.deps?(n.prevDep=gn.depsTail,gn.depsTail.nextDep=n,gn.depsTail=n):gn.deps=gn.depsTail=n,dL(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=gn.depsTail,n.nextDep=void 0,gn.depsTail.nextDep=n,gn.depsTail=n,gn.deps===n&&(gn.deps=r)}return n}trigger(t){this.version++,gd++,this.notify(t)}notify(t){ex();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{tx()}}}function dL(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)dL(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const dm=new WeakMap,su=Symbol(""),Kw=Symbol(""),md=Symbol("");function _r(e,t,n){if(xo&&gn){let r=dm.get(e);r||dm.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new y0),i.map=r,i.key=n),i.track()}}function Oa(e,t,n,r,i,o){const a=dm.get(e);if(!a){gd++;return}const s=l=>{l&&l.trigger()};if(ex(),t==="clear")a.forEach(s);else{const l=nt(e),u=l&&JS(n);if(l&&n==="length"){const c=Number(r);a.forEach((h,p)=>{(p==="length"||p===md||!To(p)&&p>=c)&&s(h)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(md)),t){case"add":l?u&&s(a.get("length")):(s(a.get(su)),Tc(e)&&s(a.get(Kw)));break;case"delete":l||(s(a.get(su)),Tc(e)&&s(a.get(Kw)));break;case"set":Tc(e)&&s(a.get(su));break}}tx()}function V8(e,t){const n=dm.get(e);return n&&n.get(t)}function ju(e){const t=Wt(e);return t===e?t:(_r(t,"iterate",md),Zi(e)?t:t.map(wr))}function _0(e){return _r(e=Wt(e),"iterate",md),e}const H8={__proto__:null,[Symbol.iterator](){return $_(this,Symbol.iterator,wr)},concat(...e){return ju(this).concat(...e.map(t=>nt(t)?ju(t):t))},entries(){return $_(this,"entries",e=>(e[1]=wr(e[1]),e))},every(e,t){return xa(this,"every",e,t,void 0,arguments)},filter(e,t){return xa(this,"filter",e,t,n=>n.map(wr),arguments)},find(e,t){return xa(this,"find",e,t,wr,arguments)},findIndex(e,t){return xa(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xa(this,"findLast",e,t,wr,arguments)},findLastIndex(e,t){return xa(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xa(this,"forEach",e,t,void 0,arguments)},includes(...e){return B_(this,"includes",e)},indexOf(...e){return B_(this,"indexOf",e)},join(e){return ju(this).join(e)},lastIndexOf(...e){return B_(this,"lastIndexOf",e)},map(e,t){return xa(this,"map",e,t,void 0,arguments)},pop(){return kf(this,"pop")},push(...e){return kf(this,"push",e)},reduce(e,...t){return OA(this,"reduce",e,t)},reduceRight(e,...t){return OA(this,"reduceRight",e,t)},shift(){return kf(this,"shift")},some(e,t){return xa(this,"some",e,t,void 0,arguments)},splice(...e){return kf(this,"splice",e)},toReversed(){return ju(this).toReversed()},toSorted(e){return ju(this).toSorted(e)},toSpliced(...e){return ju(this).toSpliced(...e)},unshift(...e){return kf(this,"unshift",e)},values(){return $_(this,"values",wr)}};function $_(e,t,n){const r=_0(e),i=r[t]();return r!==e&&!Zi(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const U8=Array.prototype;function xa(e,t,n,r,i,o){const a=_0(e),s=a!==e&&!Zi(e),l=a[t];if(l!==U8[t]){const h=l.apply(e,o);return s?wr(h):h}let u=n;a!==e&&(s?u=function(h,p){return n.call(this,wr(h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function OA(e,t,n,r){const i=_0(e);let o=n;return i!==e&&(Zi(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,wr(s),l,e)}),i[t](o,...r)}function B_(e,t,n){const r=Wt(e);_r(r,"iterate",md);const i=r[t](...n);return(i===-1||i===!1)&&ox(n[0])?(n[0]=Wt(n[0]),r[t](...n)):i}function kf(e,t,n=[]){rl(),ex();const r=Wt(e)[t].apply(e,n);return tx(),il(),r}const z8=XS("__proto__,__v_isRef,__isVue"),pL=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(To));function G8(e){To(e)||(e=String(e));const t=Wt(this);return _r(t,"has",e),t.hasOwnProperty(e)}class vL{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?eG:_L:o?yL:mL).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=nt(t);if(!i){let l;if(a&&(l=H8[n]))return l;if(n==="hasOwnProperty")return G8}const s=Reflect.get(t,n,et(t)?t:r);return(To(n)?pL.has(n):z8(n))||(i||_r(t,"get",n),o)?s:et(s)?a&&JS(n)?s:s.value:dn(s)?i?w0(s):Eo(s):s}}class gL extends vL{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=mu(o);if(!Zi(r)&&!mu(r)&&(o=Wt(o),r=Wt(r)),!nt(t)&&et(o)&&!et(r))return l?!1:(o.value=r,!0)}const a=nt(t)&&JS(n)?Number(n)e,hv=e=>Reflect.getPrototypeOf(e);function X8(e,t,n){return function(...r){const i=this.__v_raw,o=Wt(i),a=Tc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?Zw:t?Jw:wr;return!t&&_r(o,"iterate",l?Kw:su),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:s?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function dv(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function K8(e,t){const n={get(i){const o=this.__v_raw,a=Wt(o),s=Wt(i);e||(Us(i,s)&&_r(a,"get",i),_r(a,"get",s));const{has:l}=hv(a),u=t?Zw:e?Jw:wr;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&&_r(Wt(i),"iterate",su),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=Wt(o),s=Wt(i);return e||(Us(i,s)&&_r(a,"has",i),_r(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=Wt(s),u=t?Zw:e?Jw:wr;return!e&&_r(l,"iterate",su),s.forEach((c,h)=>i.call(o,u(c),u(h),a))}};return rr(n,e?{add:dv("add"),set:dv("set"),delete:dv("delete"),clear:dv("clear")}:{add(i){!t&&!Zi(i)&&!mu(i)&&(i=Wt(i));const o=Wt(this);return hv(o).has.call(o,i)||(o.add(i),Oa(o,"add",i,i)),this},set(i,o){!t&&!Zi(o)&&!mu(o)&&(o=Wt(o));const a=Wt(this),{has:s,get:l}=hv(a);let u=s.call(a,i);u||(i=Wt(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?Us(o,c)&&Oa(a,"set",i,o):Oa(a,"add",i,o),this},delete(i){const o=Wt(this),{has:a,get:s}=hv(o);let l=a.call(o,i);l||(i=Wt(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&Oa(o,"delete",i,void 0),u},clear(){const i=Wt(this),o=i.size!==0,a=i.clear();return o&&Oa(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=X8(i,e,t)}),n}function rx(e,t){const n=K8(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Kt(n,i)&&i in r?n:r,i,o)}const Z8={get:rx(!1,!1)},J8={get:rx(!1,!0)},Q8={get:rx(!0,!1)};const mL=new WeakMap,yL=new WeakMap,_L=new WeakMap,eG=new WeakMap;function tG(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nG(e){return e.__v_skip||!Object.isExtensible(e)?0:tG(A8(e))}function Eo(e){return mu(e)?e:ix(e,!1,Y8,Z8,mL)}function wL(e){return ix(e,!1,q8,J8,yL)}function w0(e){return ix(e,!0,j8,Q8,_L)}function ix(e,t,n,r,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=nG(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Ec(e){return mu(e)?Ec(e.__v_raw):!!(e&&e.__v_isReactive)}function mu(e){return!!(e&&e.__v_isReadonly)}function Zi(e){return!!(e&&e.__v_isShallow)}function ox(e){return e?!!e.__v_raw:!1}function Wt(e){const t=e&&e.__v_raw;return t?Wt(t):e}function rG(e){return!Kt(e,"__v_skip")&&Object.isExtensible(e)&&QI(e,"__v_skip",!0),e}const wr=e=>dn(e)?Eo(e):e,Jw=e=>dn(e)?w0(e):e;function et(e){return e?e.__v_isRef===!0:!1}function Ae(e){return bL(e,!1)}function Jd(e){return bL(e,!0)}function bL(e,t){return et(e)?e:new iG(e,t)}class iG{constructor(t,n){this.dep=new y0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Wt(t),this._value=n?t:wr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Zi(t)||mu(t);t=r?t:Wt(t),Us(t,n)&&(this._rawValue=t,this._value=r?t:wr(t),this.dep.trigger())}}function kA(e){e.dep&&e.dep.trigger()}function F(e){return et(e)?e.value:e}const oG={get:(e,t,n)=>t==="__v_raw"?e:F(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return et(i)&&!et(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function SL(e){return Ec(e)?e:new Proxy(e,oG)}class aG{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new y0,{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 sG(e){return new aG(e)}function lG(e){const t=nt(e)?new Array(e.length):{};for(const n in e)t[n]=xL(e,n);return t}class uG{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 V8(Wt(this._object),this._key)}}class cG{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 fG(e,t,n){return et(e)?e:pt(e)?new cG(e):dn(e)&&arguments.length>1?xL(e,t,n):Ae(e)}function xL(e,t,n){const r=e[t];return et(r)?r:new uG(e,t,n)}class hG{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new y0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return lL(this,!0),!0}get value(){const t=this.dep.track();return fL(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dG(e,t,n=!1){let r,i;return pt(e)?r=e:(r=e.get,i=e.set),new hG(r,i,n)}const pv={},pm=new WeakMap;let Wl;function pG(e,t=!1,n=Wl){if(n){let r=pm.get(n);r||pm.set(n,r=[]),r.push(e)}}function vG(e,t,n=fn){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=x=>i?x:Zi(x)||i===!1||i===0?ka(x,1):ka(x);let c,h,p,d,g=!1,_=!1;if(et(e)?(h=()=>e.value,g=Zi(e)):Ec(e)?(h=()=>u(e),g=!0):nt(e)?(_=!0,g=e.some(x=>Ec(x)||Zi(x)),h=()=>e.map(x=>{if(et(x))return x.value;if(Ec(x))return u(x);if(pt(x))return l?l(x,2):x()})):pt(e)?t?h=l?()=>l(e,2):e:h=()=>{if(p){rl();try{p()}finally{il()}}const x=Wl;Wl=c;try{return l?l(e,3,[d]):e(d)}finally{Wl=x}}:h=Zo,t&&i){const x=h,E=i===!0?1/0:i;h=()=>ka(x(),E)}const m=iL(),y=()=>{c.stop(),m&&m.active&&ZS(m.effects,c)};if(o&&t){const x=t;t=(...E)=>{x(...E),y()}}let b=_?new Array(e.length).fill(pv):pv;const S=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const E=c.run();if(i||g||(_?E.some((T,M)=>Us(T,b[M])):Us(E,b))){p&&p();const T=Wl;Wl=c;try{const M=[E,b===pv?void 0:_&&b[0]===pv?[]:b,d];l?l(t,3,M):t(...M),b=E}finally{Wl=T}}}else c.run()};return s&&s(S),c=new aL(h),c.scheduler=a?()=>a(S,!1):S,d=x=>pG(x,!1,c),p=c.onStop=()=>{const x=pm.get(c);if(x){if(l)l(x,4);else for(const E of x)E();pm.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 ka(e,t=1/0,n){if(t<=0||!dn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,et(e))ka(e.value,t,n);else if(nt(e))for(let r=0;r{ka(r,t,n)});else if(JI(e)){for(const r in e)ka(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ka(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Qd(e,t,n,r){try{return r?e(...r):e()}catch(i){b0(i,t,n)}}function na(e,t,n,r){if(pt(e)){const i=Qd(e,t,n,r);return i&&KI(i)&&i.catch(o=>{b0(o,t,n)}),i}if(nt(e)){const i=[];for(let o=0;o>>1,i=Or[r],o=yd(i);o=yd(n)?Or.push(e):Or.splice(mG(t),0,e),e.flags|=1,TL()}}function TL(){vm||(vm=CL.then(AL))}function yG(e){nt(e)?Ac.push(...e):Ms&&e.id===-1?Ms.splice(fc+1,0,e):e.flags&1||(Ac.push(e),e.flags|=1),TL()}function NA(e,t,n=Go+1){for(;nyd(n)-yd(r));if(Ac.length=0,Ms){Ms.push(...t);return}for(Ms=t,fc=0;fce.id==null?e.flags&2?-1:1/0:e.id;function AL(e){try{for(Go=0;Go{r._d&&WA(-1);const o=gm(t);let a;try{a=e(...i)}finally{gm(o),r._d&&WA(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Tt(e,t){if(nr===null)return e;const n=C0(nr),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function sx(e,t){e.shapeFlag&6&&e.component?(e.transition=t,sx(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Ze(e,t){return pt(e)?rr({name:e.name},t,{setup:e}):e}function RL(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mm(e,t,n,r,i=!1){if(nt(e)){e.forEach((g,_)=>mm(g,t&&(nt(t)?t[_]:t),n,r,i));return}if(Mc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&mm(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?C0(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===fn?s.refs={}:s.refs,h=s.setupState,p=Wt(h),d=h===fn?()=>!1:g=>Kt(p,g);if(u!=null&&u!==l&&(Hn(u)?(c[u]=null,d(u)&&(h[u]=null)):et(u)&&(u.value=null)),pt(l))Qd(l,s,12,[a,c]);else{const g=Hn(l),_=et(l);if(g||_){const m=()=>{if(e.f){const y=g?d(l)?h[l]:c[l]:l.value;i?nt(y)&&ZS(y,o):nt(y)?y.includes(o)||y.push(o):g?(c[l]=[o],d(l)&&(h[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else g?(c[l]=a,d(l)&&(h[l]=a)):_&&(l.value=a,e.k&&(c[e.k]=a))};a?(m.id=-1,gi(m,n)):m()}}}m0().requestIdleCallback;m0().cancelIdleCallback;const Mc=e=>!!e.type.__asyncLoader,PL=e=>e.type.__isKeepAlive;function bG(e,t){DL(e,"a",t)}function SG(e,t){DL(e,"da",t)}function DL(e,t,n=ur){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(S0(t,r,n),n){let i=n.parent;for(;i&&i.parent;)PL(i.parent.vnode)&&xG(r,t,n,i),i=i.parent}}function xG(e,t,n,r){const i=S0(t,e,r,!0);ep(()=>{ZS(r[t],i)},n)}function S0(e,t,n=ur,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{rl();const s=np(n),l=na(t,n,e,a);return s(),il(),l});return r?i.unshift(o):i.push(o),o}}const Ja=e=>(t,n=ur)=>{(!bd||e==="sp")&&S0(e,(...r)=>t(...r),n)},CG=Ja("bm"),ua=Ja("m"),TG=Ja("bu"),EG=Ja("u"),IL=Ja("bum"),ep=Ja("um"),AG=Ja("sp"),MG=Ja("rtg"),RG=Ja("rtc");function PG(e,t=ur){S0("ec",e,t)}const DG="components",LL=Symbol.for("v-ndc");function Ya(e){return Hn(e)?IG(DG,e,!1)||e:e||LL}function IG(e,t,n=!0,r=!1){const i=nr||ur;if(i){const o=i.type;{const s=y6(o,!1);if(s&&(s===t||s===eo(t)||s===g0(eo(t))))return o}const a=FA(i[e]||o[e],t)||FA(i.appContext[e],t);return!a&&r?o:a}}function FA(e,t){return e&&(e[t]||e[eo(t)]||e[g0(eo(t))])}function Ft(e,t,n,r){let i;const o=n,a=nt(e);if(a||Hn(e)){const s=a&&Ec(e);let l=!1;s&&(l=!Zi(e),e=_0(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;lwd(t)?!(t.type===qs||t.type===Ge&&!OL(t.children)):!0)?e:null}const Qw=e=>e?QL(e)?C0(e):Qw(e.parent):null,Nh=rr(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=>Qw(e.parent),$root:e=>Qw(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>lx(e),$forceUpdate:e=>e.f||(e.f=()=>{ax(e.update)}),$nextTick:e=>e.n||(e.n=Do.bind(e.proxy)),$watch:e=>QG.bind(e)}),V_=(e,t)=>e!==fn&&!e.__isScriptSetup&&Kt(e,t),LG={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(V_(r,t))return a[t]=1,r[t];if(i!==fn&&Kt(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Kt(u,t))return a[t]=3,o[t];if(n!==fn&&Kt(n,t))return a[t]=4,n[t];eb&&(a[t]=0)}}const c=Nh[t];let h,p;if(c)return t==="$attrs"&&_r(e.attrs,"get",""),c(e);if((h=s.__cssModules)&&(h=h[t]))return h;if(n!==fn&&Kt(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Kt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return V_(i,t)?(i[t]=n,!0):r!==fn&&Kt(r,t)?(r[t]=n,!0):Kt(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!==fn&&Kt(e,a)||V_(t,a)||(s=o[0])&&Kt(s,a)||Kt(r,a)||Kt(Nh,a)||Kt(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Kt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $A(e){return nt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let eb=!0;function OG(e){const t=lx(e),n=e.proxy,r=e.ctx;eb=!1,t.beforeCreate&&BA(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:h,mounted:p,beforeUpdate:d,updated:g,activated:_,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:S,unmounted:x,render:E,renderTracked:T,renderTriggered:M,errorCaptured:P,serverPrefetch:L,expose:k,inheritAttrs:N,components:H,directives:te,filters:W}=t;if(u&&kG(u,r,null),a)for(const oe in a){const Q=a[oe];pt(Q)&&(r[oe]=Q.bind(n))}if(i){const oe=i.call(n,n);dn(oe)&&(e.data=Eo(oe))}if(eb=!0,o)for(const oe in o){const Q=o[oe],fe=pt(Q)?Q.bind(n,n):pt(Q.get)?Q.get.bind(n,n):Zo,_e=!pt(Q)&&pt(Q.set)?Q.set.bind(n):Zo,be=Ie({get:fe,set:_e});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>be.value,set:Ne=>be.value=Ne})}if(s)for(const oe in s)kL(s[oe],r,n,oe);if(l){const oe=pt(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(Q=>{xg(Q,oe[Q])})}c&&BA(c,e,"c");function j(oe,Q){nt(Q)?Q.forEach(fe=>oe(fe.bind(n))):Q&&oe(Q.bind(n))}if(j(CG,h),j(ua,p),j(TG,d),j(EG,g),j(bG,_),j(SG,m),j(PG,P),j(RG,T),j(MG,M),j(IL,b),j(ep,x),j(AG,L),nt(k))if(k.length){const oe=e.exposed||(e.exposed={});k.forEach(Q=>{Object.defineProperty(oe,Q,{get:()=>n[Q],set:fe=>n[Q]=fe})})}else e.exposed||(e.exposed={});E&&e.render===Zo&&(e.render=E),N!=null&&(e.inheritAttrs=N),H&&(e.components=H),te&&(e.directives=te),L&&RL(e)}function kG(e,t,n=Zo){nt(e)&&(e=tb(e));for(const r in e){const i=e[r];let o;dn(i)?"default"in i?o=Ji(i.from||r,i.default,!0):o=Ji(i.from||r):o=Ji(i),et(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function BA(e,t,n){na(nt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kL(e,t,n,r){let i=r.includes(".")?qL(n,r):()=>n[r];if(Hn(e)){const o=t[e];pt(o)&&Lt(i,o)}else if(pt(e))Lt(i,e.bind(n));else if(dn(e))if(nt(e))e.forEach(o=>kL(o,t,n,r));else{const o=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(o)&&Lt(i,o,e)}}function lx(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=>ym(l,u,a,!0)),ym(l,t,a)),dn(t)&&o.set(t,l),l}function ym(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&ym(e,o,n,!0),i&&i.forEach(a=>ym(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=NG[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const NG={data:VA,props:HA,emits:HA,methods:vh,computed:vh,beforeCreate:Mr,created:Mr,beforeMount:Mr,mounted:Mr,beforeUpdate:Mr,updated:Mr,beforeDestroy:Mr,beforeUnmount:Mr,destroyed:Mr,unmounted:Mr,activated:Mr,deactivated:Mr,errorCaptured:Mr,serverPrefetch:Mr,components:vh,directives:vh,watch:$G,provide:VA,inject:FG};function VA(e,t){return t?e?function(){return rr(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function FG(e,t){return vh(tb(e),tb(t))}function tb(e){if(nt(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(r&&r.proxy):t}}const FL={},$L=()=>Object.create(FL),BL=e=>Object.getPrototypeOf(e)===FL;function HG(e,t,n,r=!1){const i={},o=$L();e.propsDefaults=Object.create(null),VL(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:wL(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function UG(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Wt(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[p,d]=HL(h,t,!0);rr(a,p),d&&s.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return dn(e)&&r.set(e,Cc),Cc;if(nt(o))for(let c=0;ce[0]==="_"||e==="$stable",ux=e=>nt(e)?e.map(Wo):[Wo(e)],GG=(e,t,n)=>{if(t._n)return t;const r=Qr((...i)=>ux(t(...i)),n);return r._c=!1,r},zL=(e,t,n)=>{const r=e._ctx;for(const i in e){if(UL(i))continue;const o=e[i];if(pt(o))t[i]=GG(i,o,r);else if(o!=null){const a=ux(o);t[i]=()=>a}}},GL=(e,t)=>{const n=ux(t);e.slots.default=()=>n},WL=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},WG=(e,t,n)=>{const r=e.slots=$L();if(e.vnode.shapeFlag&32){const i=t._;i?(WL(r,t,n),n&&QI(r,"_",i,!0)):zL(t,r)}else t&&GL(e,t)},YG=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=fn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:WL(i,t,n):(o=!t.$stable,zL(t,i)),a=t}else t&&(GL(e,t),a={default:1});if(o)for(const s in i)!UL(s)&&a[s]==null&&delete i[s]},gi=a6;function jG(e){return qG(e)}function qG(e,t){const n=m0();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:d=Zo,insertStaticContent:g}=e,_=($,B,ne,me=null,ce=null,O=null,V=void 0,Z=null,ae=!!B.dynamicChildren)=>{if($===B)return;$&&!Nf($,B)&&(me=ue($),Ne($,ce,O,!0),$=null),B.patchFlag===-2&&(ae=!1,B.dynamicChildren=null);const{type:pe,ref:Ce,shapeFlag:Y}=B;switch(pe){case tp:m($,B,ne,me);break;case qs:y($,B,ne,me);break;case z_:$==null&&b(B,ne,me,V);break;case Ge:H($,B,ne,me,ce,O,V,Z,ae);break;default:Y&1?E($,B,ne,me,ce,O,V,Z,ae):Y&6?te($,B,ne,me,ce,O,V,Z,ae):(Y&64||Y&128)&&pe.process($,B,ne,me,ce,O,V,Z,ae,xe)}Ce!=null&&ce&&mm(Ce,$&&$.ref,O,B||$,!B)},m=($,B,ne,me)=>{if($==null)r(B.el=s(B.children),ne,me);else{const ce=B.el=$.el;B.children!==$.children&&u(ce,B.children)}},y=($,B,ne,me)=>{$==null?r(B.el=l(B.children||""),ne,me):B.el=$.el},b=($,B,ne,me)=>{[$.el,$.anchor]=g($.children,B,ne,me,$.el,$.anchor)},S=({el:$,anchor:B},ne,me)=>{let ce;for(;$&&$!==B;)ce=p($),r($,ne,me),$=ce;r(B,ne,me)},x=({el:$,anchor:B})=>{let ne;for(;$&&$!==B;)ne=p($),i($),$=ne;i(B)},E=($,B,ne,me,ce,O,V,Z,ae)=>{B.type==="svg"?V="svg":B.type==="math"&&(V="mathml"),$==null?T(B,ne,me,ce,O,V,Z,ae):L($,B,ce,O,V,Z,ae)},T=($,B,ne,me,ce,O,V,Z)=>{let ae,pe;const{props:Ce,shapeFlag:Y,transition:ie,dirs:Re}=$;if(ae=$.el=a($.type,O,Ce&&Ce.is,Ce),Y&8?c(ae,$.children):Y&16&&P($.children,ae,null,me,ce,H_($,O),V,Z),Re&&_l($,null,me,"created"),M(ae,$,$.scopeId,V,me),Ce){for(const ft in Ce)ft!=="value"&&!Ih(ft)&&o(ae,ft,null,Ce[ft],O,me);"value"in Ce&&o(ae,"value",null,Ce.value,O),(pe=Ce.onVnodeBeforeMount)&&Fo(pe,me,$)}Re&&_l($,null,me,"beforeMount");const Be=XG(ce,ie);Be&&ie.beforeEnter(ae),r(ae,B,ne),((pe=Ce&&Ce.onVnodeMounted)||Be||Re)&&gi(()=>{pe&&Fo(pe,me,$),Be&&ie.enter(ae),Re&&_l($,null,me,"mounted")},ce)},M=($,B,ne,me,ce)=>{if(ne&&d($,ne),me)for(let O=0;O{for(let pe=ae;pe<$.length;pe++){const Ce=$[pe]=Z?Rs($[pe]):Wo($[pe]);_(null,Ce,B,ne,me,ce,O,V,Z)}},L=($,B,ne,me,ce,O,V)=>{const Z=B.el=$.el;let{patchFlag:ae,dynamicChildren:pe,dirs:Ce}=B;ae|=$.patchFlag&16;const Y=$.props||fn,ie=B.props||fn;let Re;if(ne&&wl(ne,!1),(Re=ie.onVnodeBeforeUpdate)&&Fo(Re,ne,B,$),Ce&&_l(B,$,ne,"beforeUpdate"),ne&&wl(ne,!0),(Y.innerHTML&&ie.innerHTML==null||Y.textContent&&ie.textContent==null)&&c(Z,""),pe?k($.dynamicChildren,pe,Z,ne,me,H_(B,ce),O):V||Q($,B,Z,null,ne,me,H_(B,ce),O,!1),ae>0){if(ae&16)N(Z,Y,ie,ne,ce);else if(ae&2&&Y.class!==ie.class&&o(Z,"class",null,ie.class,ce),ae&4&&o(Z,"style",Y.style,ie.style,ce),ae&8){const Be=B.dynamicProps;for(let ft=0;ft{Re&&Fo(Re,ne,B,$),Ce&&_l(B,$,ne,"updated")},me)},k=($,B,ne,me,ce,O,V)=>{for(let Z=0;Z{if(B!==ne){if(B!==fn)for(const O in B)!Ih(O)&&!(O in ne)&&o($,O,B[O],null,ce,me);for(const O in ne){if(Ih(O))continue;const V=ne[O],Z=B[O];V!==Z&&O!=="value"&&o($,O,Z,V,ce,me)}"value"in ne&&o($,"value",B.value,ne.value,ce)}},H=($,B,ne,me,ce,O,V,Z,ae)=>{const pe=B.el=$?$.el:s(""),Ce=B.anchor=$?$.anchor:s("");let{patchFlag:Y,dynamicChildren:ie,slotScopeIds:Re}=B;Re&&(Z=Z?Z.concat(Re):Re),$==null?(r(pe,ne,me),r(Ce,ne,me),P(B.children||[],ne,Ce,ce,O,V,Z,ae)):Y>0&&Y&64&&ie&&$.dynamicChildren?(k($.dynamicChildren,ie,ne,ce,O,V,Z),(B.key!=null||ce&&B===ce.subTree)&&YL($,B,!0)):Q($,B,ne,Ce,ce,O,V,Z,ae)},te=($,B,ne,me,ce,O,V,Z,ae)=>{B.slotScopeIds=Z,$==null?B.shapeFlag&512?ce.ctx.activate(B,ne,me,V,ae):W(B,ne,me,ce,O,V,ae):X($,B,ae)},W=($,B,ne,me,ce,O,V)=>{const Z=$.component=d6($,me,ce);if(PL($)&&(Z.ctx.renderer=xe),p6(Z,!1,V),Z.asyncDep){if(ce&&ce.registerDep(Z,j,V),!$.el){const ae=Z.subTree=ye(qs);y(null,ae,B,ne)}}else j(Z,$,B,ne,ce,O,V)},X=($,B,ne)=>{const me=B.component=$.component;if(i6($,B,ne))if(me.asyncDep&&!me.asyncResolved){oe(me,B,ne);return}else me.next=B,me.update();else B.el=$.el,me.vnode=B},j=($,B,ne,me,ce,O,V)=>{const Z=()=>{if($.isMounted){let{next:Y,bu:ie,u:Re,parent:Be,vnode:ft}=$;{const Rn=jL($);if(Rn){Y&&(Y.el=ft.el,oe($,Y,V)),Rn.asyncDep.then(()=>{$.isUnmounted||Z()});return}}let wt=Y,on;wl($,!1),Y?(Y.el=ft.el,oe($,Y,V)):Y=ft,ie&&Sg(ie),(on=Y.props&&Y.props.onVnodeBeforeUpdate)&&Fo(on,Be,Y,ft),wl($,!0);const yn=U_($),kn=$.subTree;$.subTree=yn,_(kn,yn,h(kn.el),ue(kn),$,ce,O),Y.el=yn.el,wt===null&&o6($,yn.el),Re&&gi(Re,ce),(on=Y.props&&Y.props.onVnodeUpdated)&&gi(()=>Fo(on,Be,Y,ft),ce)}else{let Y;const{el:ie,props:Re}=B,{bm:Be,m:ft,parent:wt,root:on,type:yn}=$,kn=Mc(B);if(wl($,!1),Be&&Sg(Be),!kn&&(Y=Re&&Re.onVnodeBeforeMount)&&Fo(Y,wt,B),wl($,!0),ie&&De){const Rn=()=>{$.subTree=U_($),De(ie,$.subTree,$,ce,null)};kn&&yn.__asyncHydrate?yn.__asyncHydrate(ie,$,Rn):Rn()}else{on.ce&&on.ce._injectChildStyle(yn);const Rn=$.subTree=U_($);_(null,Rn,ne,me,$,ce,O),B.el=Rn.el}if(ft&&gi(ft,ce),!kn&&(Y=Re&&Re.onVnodeMounted)){const Rn=B;gi(()=>Fo(Y,wt,Rn),ce)}(B.shapeFlag&256||wt&&Mc(wt.vnode)&&wt.vnode.shapeFlag&256)&&$.a&&gi($.a,ce),$.isMounted=!0,B=ne=me=null}};$.scope.on();const ae=$.effect=new aL(Z);$.scope.off();const pe=$.update=ae.run.bind(ae),Ce=$.job=ae.runIfDirty.bind(ae);Ce.i=$,Ce.id=$.uid,ae.scheduler=()=>ax(Ce),wl($,!0),pe()},oe=($,B,ne)=>{B.component=$;const me=$.vnode.props;$.vnode=B,$.next=null,UG($,B.props,me,ne),YG($,B.children,ne),rl(),NA($),il()},Q=($,B,ne,me,ce,O,V,Z,ae=!1)=>{const pe=$&&$.children,Ce=$?$.shapeFlag:0,Y=B.children,{patchFlag:ie,shapeFlag:Re}=B;if(ie>0){if(ie&128){_e(pe,Y,ne,me,ce,O,V,Z,ae);return}else if(ie&256){fe(pe,Y,ne,me,ce,O,V,Z,ae);return}}Re&8?(Ce&16&&Ye(pe,ce,O),Y!==pe&&c(ne,Y)):Ce&16?Re&16?_e(pe,Y,ne,me,ce,O,V,Z,ae):Ye(pe,ce,O,!0):(Ce&8&&c(ne,""),Re&16&&P(Y,ne,me,ce,O,V,Z,ae))},fe=($,B,ne,me,ce,O,V,Z,ae)=>{$=$||Cc,B=B||Cc;const pe=$.length,Ce=B.length,Y=Math.min(pe,Ce);let ie;for(ie=0;ieCe?Ye($,ce,O,!0,!1,Y):P(B,ne,me,ce,O,V,Z,ae,Y)},_e=($,B,ne,me,ce,O,V,Z,ae)=>{let pe=0;const Ce=B.length;let Y=$.length-1,ie=Ce-1;for(;pe<=Y&&pe<=ie;){const Re=$[pe],Be=B[pe]=ae?Rs(B[pe]):Wo(B[pe]);if(Nf(Re,Be))_(Re,Be,ne,null,ce,O,V,Z,ae);else break;pe++}for(;pe<=Y&&pe<=ie;){const Re=$[Y],Be=B[ie]=ae?Rs(B[ie]):Wo(B[ie]);if(Nf(Re,Be))_(Re,Be,ne,null,ce,O,V,Z,ae);else break;Y--,ie--}if(pe>Y){if(pe<=ie){const Re=ie+1,Be=Reie)for(;pe<=Y;)Ne($[pe],ce,O,!0),pe++;else{const Re=pe,Be=pe,ft=new Map;for(pe=Be;pe<=ie;pe++){const Nn=B[pe]=ae?Rs(B[pe]):Wo(B[pe]);Nn.key!=null&&ft.set(Nn.key,pe)}let wt,on=0;const yn=ie-Be+1;let kn=!1,Rn=0;const Yn=new Array(yn);for(pe=0;pe=yn){Ne(Nn,ce,O,!0);continue}let Zn;if(Nn.key!=null)Zn=ft.get(Nn.key);else for(wt=Be;wt<=ie;wt++)if(Yn[wt-Be]===0&&Nf(Nn,B[wt])){Zn=wt;break}Zn===void 0?Ne(Nn,ce,O,!0):(Yn[Zn-Be]=pe+1,Zn>=Rn?Rn=Zn:kn=!0,_(Nn,B[Zn],ne,null,ce,O,V,Z,ae),on++)}const si=kn?KG(Yn):Cc;for(wt=si.length-1,pe=yn-1;pe>=0;pe--){const Nn=Be+pe,Zn=B[Nn],Mu=Nn+1{const{el:O,type:V,transition:Z,children:ae,shapeFlag:pe}=$;if(pe&6){be($.component.subTree,B,ne,me);return}if(pe&128){$.suspense.move(B,ne,me);return}if(pe&64){V.move($,B,ne,xe);return}if(V===Ge){r(O,B,ne);for(let Y=0;YZ.enter(O),ce);else{const{leave:Y,delayLeave:ie,afterLeave:Re}=Z,Be=()=>r(O,B,ne),ft=()=>{Y(O,()=>{Be(),Re&&Re()})};ie?ie(O,Be,ft):ft()}else r(O,B,ne)},Ne=($,B,ne,me=!1,ce=!1)=>{const{type:O,props:V,ref:Z,children:ae,dynamicChildren:pe,shapeFlag:Ce,patchFlag:Y,dirs:ie,cacheIndex:Re}=$;if(Y===-2&&(ce=!1),Z!=null&&mm(Z,null,ne,$,!0),Re!=null&&(B.renderCache[Re]=void 0),Ce&256){B.ctx.deactivate($);return}const Be=Ce&1&&ie,ft=!Mc($);let wt;if(ft&&(wt=V&&V.onVnodeBeforeUnmount)&&Fo(wt,B,$),Ce&6)He($.component,ne,me);else{if(Ce&128){$.suspense.unmount(ne,me);return}Be&&_l($,null,B,"beforeUnmount"),Ce&64?$.type.remove($,B,ne,xe,me):pe&&!pe.hasOnce&&(O!==Ge||Y>0&&Y&64)?Ye(pe,B,ne,!1,!0):(O===Ge&&Y&384||!ce&&Ce&16)&&Ye(ae,B,ne),me&&ke($)}(ft&&(wt=V&&V.onVnodeUnmounted)||Be)&&gi(()=>{wt&&Fo(wt,B,$),Be&&_l($,null,B,"unmounted")},ne)},ke=$=>{const{type:B,el:ne,anchor:me,transition:ce}=$;if(B===Ge){qe(ne,me);return}if(B===z_){x($);return}const O=()=>{i(ne),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if($.shapeFlag&1&&ce&&!ce.persisted){const{leave:V,delayLeave:Z}=ce,ae=()=>V(ne,O);Z?Z($.el,O,ae):ae()}else O()},qe=($,B)=>{let ne;for(;$!==B;)ne=p($),i($),$=ne;i(B)},He=($,B,ne)=>{const{bum:me,scope:ce,job:O,subTree:V,um:Z,m:ae,a:pe}=$;zA(ae),zA(pe),me&&Sg(me),ce.stop(),O&&(O.flags|=8,Ne(V,$,B,ne)),Z&&gi(Z,B),gi(()=>{$.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Ye=($,B,ne,me=!1,ce=!1,O=0)=>{for(let V=O;V<$.length;V++)Ne($[V],B,ne,me,ce)},ue=$=>{if($.shapeFlag&6)return ue($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const B=p($.anchor||$.el),ne=B&&B[_G];return ne?p(ne):B};let Te=!1;const we=($,B,ne)=>{$==null?B._vnode&&Ne(B._vnode,null,null,!0):_(B._vnode||null,$,B,null,null,null,ne),B._vnode=$,Te||(Te=!0,NA(),EL(),Te=!1)},xe={p:_,um:Ne,m:be,r:ke,mt:W,mc:P,pc:Q,pbc:k,n:ue,o:e};let Ee,De;return{render:we,hydrate:Ee,createApp:VG(we,Ee)}}function H_({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 wl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function XG(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function YL(e,t,n=!1){const r=e.children,i=t.children;if(nt(r)&&nt(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function jL(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:jL(t)}function zA(e){if(e)for(let t=0;tJi(ZG);function cx(e,t){return fx(e,null,t)}function Lt(e,t,n){return fx(e,t,n)}function fx(e,t,n=fn){const{immediate:r,deep:i,flush:o,once:a}=n,s=rr({},n),l=t&&r||!t&&o!=="post";let u;if(bd){if(o==="sync"){const d=JG();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Zo,d.resume=Zo,d.pause=Zo,d}}const c=ur;s.call=(d,g,_)=>na(d,c,g,_);let h=!1;o==="post"?s.scheduler=d=>{gi(d,c&&c.suspense)}:o!=="sync"&&(h=!0,s.scheduler=(d,g)=>{g?d():ax(d)}),s.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=vG(e,t,s);return bd&&(u?u.push(p):l&&p()),p}function QG(e,t,n){const r=this.proxy,i=Hn(e)?e.includes(".")?qL(r,e):()=>r[e]:e.bind(r,r);let o;pt(t)?o=t:(o=t.handler,n=t);const a=np(this),s=fx(i,o.bind(r),n);return a(),s}function qL(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${eo(t)}Modifiers`]||e[`${nl(t)}Modifiers`];function t6(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fn;let i=n;const o=t.startsWith("update:"),a=o&&e6(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Hn(c)?c.trim():c)),a.number&&(i=n.map(hm)));let s,l=r[s=k_(t)]||r[s=k_(eo(t))];!l&&o&&(l=r[s=k_(nl(t))]),l&&na(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,na(u,e,6,i)}}function XL(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(!pt(e)){const l=u=>{const c=XL(u,t,!0);c&&(s=!0,rr(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(dn(e)&&r.set(e,null),null):(nt(o)?o.forEach(l=>a[l]=null):rr(a,o),dn(e)&&r.set(e,a),a)}function x0(e,t){return!e||!p0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Kt(e,t[0].toLowerCase()+t.slice(1))||Kt(e,nl(t))||Kt(e,t))}function U_(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:h,data:p,setupState:d,ctx:g,inheritAttrs:_}=e,m=gm(e);let y,b;try{if(n.shapeFlag&4){const x=i||r,E=x;y=Wo(u.call(E,x,c,h,d,p,g)),b=s}else{const x=t;y=Wo(x.length>1?x(h,{attrs:s,slots:a,emit:l}):x(h,null)),b=t.props?s:n6(s)}}catch(x){Fh.length=0,b0(x,e,1),y=ye(qs)}let S=y;if(b&&_!==!1){const x=Object.keys(b),{shapeFlag:E}=S;x.length&&E&7&&(o&&x.some(KS)&&(b=r6(b,o)),S=zc(S,b,!1,!0))}return n.dirs&&(S=zc(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&sx(S,n.transition),y=S,gm(m),y}const n6=e=>{let t;for(const n in e)(n==="class"||n==="style"||p0(n))&&((t||(t={}))[n]=e[n]);return t},r6=(e,t)=>{const n={};for(const r in e)(!KS(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function i6(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?GA(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let h=0;he.__isSuspense;function a6(e,t){t&&t.pendingBranch?nt(e)?t.effects.push(...e):t.effects.push(e):yG(e)}const Ge=Symbol.for("v-fgt"),tp=Symbol.for("v-txt"),qs=Symbol.for("v-cmt"),z_=Symbol.for("v-stc"),Fh=[];let Ci=null;function q(e=!1){Fh.push(Ci=e?null:[])}function s6(){Fh.pop(),Ci=Fh[Fh.length-1]||null}let _d=1;function WA(e,t=!1){_d+=e,e<0&&Ci&&t&&(Ci.hasOnce=!0)}function ZL(e){return e.dynamicChildren=_d>0?Ci||Cc:null,s6(),_d>0&&Ci&&Ci.push(e),e}function re(e,t,n,r,i,o){return ZL(D(e,t,n,r,i,o,!0))}function Et(e,t,n,r,i){return ZL(ye(e,t,n,r,i,!0))}function wd(e){return e?e.__v_isVNode===!0:!1}function Nf(e,t){return e.type===t.type&&e.key===t.key}const JL=({key:e})=>e??null,Cg=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Hn(e)||et(e)||pt(e)?{i:nr,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,o=e===Ge?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&JL(t),ref:t&&Cg(t),scopeId:ML,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:nr};return s?(hx(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Hn(n)?8:16),_d>0&&!a&&Ci&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ci.push(l),l}const ye=l6;function l6(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===LL)&&(e=qs),wd(e)){const s=zc(e,t,!0);return n&&hx(s,n),_d>0&&!o&&Ci&&(s.shapeFlag&6?Ci[Ci.indexOf(e)]=s:Ci.push(s)),s.patchFlag=-2,s}if(_6(e)&&(e=e.__vccOpts),t){t=u6(t);let{class:s,style:l}=t;s&&!Hn(s)&&(t.class=je(s)),dn(l)&&(ox(l)&&!nt(l)&&(l=rr({},l)),t.style=yo(l))}const a=Hn(e)?1:KL(e)?128:wG(e)?64:dn(e)?4:pt(e)?2:0;return D(e,t,n,r,i,a,o,!0)}function u6(e){return e?ox(e)||BL(e)?rr({},e):e:null}function zc(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?c6(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&JL(u),ref:t&&t.ref?n&&o?nt(o)?o.concat(Cg(t)):[o,Cg(t)]:Cg(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!==Ge?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&&zc(e.ssContent),ssFallback:e.ssFallback&&zc(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&sx(c,l.clone(c)),c}function Qe(e=" ",t=0){return ye(tp,null,e,t)}function yt(e="",t=!1){return t?(q(),Et(qs,null,e)):ye(qs,null,e)}function Wo(e){return e==null||typeof e=="boolean"?ye(qs):nt(e)?ye(Ge,null,e.slice()):wd(e)?Rs(e):ye(tp,null,String(e))}function Rs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zc(e)}function hx(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(nt(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),hx(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!BL(t)?t._ctx=nr:i===3&&nr&&(nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:nr},n=32):(t=String(t),r&64?(n=16,t=[Qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function c6(...e){const t={};for(let n=0;nur||nr;let _m,rb;{const e=m0(),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)}};_m=t("__VUE_INSTANCE_SETTERS__",n=>ur=n),rb=t("__VUE_SSR_SETTERS__",n=>bd=n)}const np=e=>{const t=ur;return _m(e),e.scope.on(),()=>{e.scope.off(),_m(t)}},YA=()=>{ur&&ur.scope.off(),_m(null)};function QL(e){return e.vnode.shapeFlag&4}let bd=!1;function p6(e,t=!1,n=!1){t&&rb(t);const{props:r,children:i}=e.vnode,o=QL(e);HG(e,r,o,t),WG(e,i,n);const a=o?v6(e,t):void 0;return t&&rb(!1),a}function v6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,LG);const{setup:r}=n;if(r){rl();const i=e.setupContext=r.length>1?m6(e):null,o=np(e),a=Qd(r,e,0,[e.props,i]),s=KI(a);if(il(),o(),(s||e.sp)&&!Mc(e)&&RL(e),s){if(a.then(YA,YA),t)return a.then(l=>{jA(e,l,t)}).catch(l=>{b0(l,e,0)});e.asyncDep=a}else jA(e,a,t)}else eO(e,t)}function jA(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dn(t)&&(e.setupState=SL(t)),eO(e,n)}let qA;function eO(e,t,n){const r=e.type;if(!e.render){if(!t&&qA&&!r.render){const i=r.template||lx(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=rr(rr({isCustomElement:o,delimiters:s},a),l);r.render=qA(i,u)}}e.render=r.render||Zo}{const i=np(e);rl();try{OG(e)}finally{il(),i()}}}const g6={get(e,t){return _r(e,"get",""),e[t]}};function m6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,g6),slots:e.slots,emit:e.emit,expose:t}}function C0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(SL(rG(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Nh)return Nh[n](e)},has(t,n){return n in t||n in Nh}})):e.proxy}function y6(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function _6(e){return pt(e)&&"__vccOpts"in e}const Ie=(e,t)=>dG(e,t,bd);function jo(e,t,n){const r=arguments.length;return r===2?dn(t)&&!nt(t)?wd(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wd(n)&&(n=[n]),ye(e,t,n))}const w6="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ib;const XA=typeof window<"u"&&window.trustedTypes;if(XA)try{ib=XA.createPolicy("vue",{createHTML:e=>e})}catch{}const tO=ib?e=>ib.createHTML(e):e=>e,b6="http://www.w3.org/2000/svg",S6="http://www.w3.org/1998/Math/MathML",Ra=typeof document<"u"?document:null,KA=Ra&&Ra.createElement("template"),x6={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"?Ra.createElementNS(b6,e):t==="mathml"?Ra.createElementNS(S6,e):n?Ra.createElement(e,{is:n}):Ra.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ra.createTextNode(e),createComment:e=>Ra.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ra.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{KA.innerHTML=tO(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=KA.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]}},C6=Symbol("_vtc");function T6(e,t,n){const r=e[C6];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const wm=Symbol("_vod"),nO=Symbol("_vsh"),E6={beforeMount(e,{value:t},{transition:n}){e[wm]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ff(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),Ff(e,!0),r.enter(e)):r.leave(e,()=>{Ff(e,!1)}):Ff(e,t))},beforeUnmount(e,{value:t}){Ff(e,t)}};function Ff(e,t){e.style.display=t?e[wm]:"none",e[nO]=!t}const A6=Symbol(""),M6=/(^|;)\s*display\s*:/;function R6(e,t,n){const r=e.style,i=Hn(n);let o=!1;if(n&&!i){if(t)if(Hn(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&Tg(r,s,"")}else for(const a in t)n[a]==null&&Tg(r,a,"");for(const a in n)a==="display"&&(o=!0),Tg(r,a,n[a])}else if(i){if(t!==n){const a=r[A6];a&&(n+=";"+a),r.cssText=n,o=M6.test(n)}}else t&&e.removeAttribute("style");wm in e&&(e[wm]=o?r.display:"",e[nO]&&(r.display="none"))}const ZA=/\s*!important$/;function Tg(e,t,n){if(nt(n))n.forEach(r=>Tg(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=P6(e,t);ZA.test(n)?e.setProperty(nl(r),n.replace(ZA,""),"important"):e[r]=n}}const JA=["Webkit","Moz","ms"],G_={};function P6(e,t){const n=G_[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return G_[t]=r;r=g0(r);for(let i=0;iW_||(O6.then(()=>W_=0),W_=Date.now());function N6(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;na(F6(r,n.value),t,5,[r])};return n.value=e,n.attached=k6(),n}function F6(e,t){if(nt(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 i2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$6=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?T6(e,r,a):t==="style"?R6(e,n,r):p0(t)?KS(t)||I6(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):B6(e,t,r,a))?(t2(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&e2(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Hn(r))?t2(e,eo(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),e2(e,t,r,a))};function B6(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&i2(t)&&pt(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 i2(t)&&Hn(n)?!1:t in e}const Gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return nt(t)?n=>Sg(t,n):t};function V6(e){e.target.composing=!0}function o2(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ua=Symbol("_assign"),Fr={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ua]=Gc(i);const o=r||i.props&&i.props.type==="number";Is(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=hm(s)),e[Ua](s)}),n&&Is(e,"change",()=>{e.value=e.value.trim()}),t||(Is(e,"compositionstart",V6),Is(e,"compositionend",o2),Is(e,"change",o2))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[Ua]=Gc(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?hm(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))}},mo={deep:!0,created(e,t,n){e[Ua]=Gc(n),Is(e,"change",()=>{const r=e._modelValue,i=Sd(e),o=e.checked,a=e[Ua];if(nt(r)){const s=QS(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(of(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(rO(e,o))})},mounted:a2,beforeUpdate(e,t,n){e[Ua]=Gc(n),a2(e,t,n)}};function a2(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(nt(t))i=QS(t,r.props.value)>-1;else if(of(t))i=t.has(r.props.value);else{if(t===n)return;i=Zd(t,rO(e,!0))}e.checked!==i&&(e.checked=i)}const Ai={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=of(t);Is(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?hm(Sd(a)):Sd(a));e[Ua](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Do(()=>{e._assigning=!1})}),e[Ua]=Gc(r)},mounted(e,{value:t}){s2(e,t)},beforeUpdate(e,t,n){e[Ua]=Gc(n)},updated(e,{value:t}){e._assigning||s2(e,t)}};function s2(e,t){const n=e.multiple,r=nt(t);if(!(n&&!r&&!of(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=QS(t,s)>-1}else a.selected=t.has(s);else if(Zd(Sd(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Sd(e){return"_value"in e?e._value:e.value}function rO(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const H6=["ctrl","shift","alt","meta"],U6={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)=>H6.some(n=>e[`${n}Key`]&&!t.includes(n))},xd=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=nl(i.key);if(t.some(a=>a===o||z6[a]===o))return e(i)})},W6=rr({patchProp:$6},x6);let l2;function Y6(){return l2||(l2=jG(W6))}const j6=(...e)=>{const t=Y6().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=X6(r);if(!i)return;const o=t._component;!pt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,q6(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function q6(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function X6(e){return Hn(e)?document.querySelector(e):e}function iO(e,t){return q(),re("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"},[D("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 K6(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function Z6(e,t){return q(),re("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"},[D("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 oO(e,t){return q(),re("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"},[D("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 J6(e,t){return q(),re("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"},[D("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 aO(e,t){return q(),re("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"},[D("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 u2(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function sO(e,t){return q(),re("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"},[D("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 Q6(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function dx(e,t){return q(),re("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"},[D("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 eW(e,t){return q(),re("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"},[D("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"}),D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})])}function tW(e,t){return q(),re("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"},[D("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 nW(e,t){return q(),re("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"},[D("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 rW(e,t){return q(),re("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"},[D("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 lO(e,t){return q(),re("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"},[D("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 c2(e,t){return q(),re("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"},[D("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 f2(e,t){return q(),re("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"},[D("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 uO(e,t){return q(),re("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"},[D("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 iW(e,t){return q(),re("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"},[D("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 cO(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25v13.5m-7.5-13.5v13.5"})])}function oW(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}),D("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 fO(e,t){return q(),re("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"},[D("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 hO(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})])}function dO(e,t){return q(),re("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"},[D("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 aW(e,t){return q(),re("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"},[D("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 sW(e,t){return q(),re("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"},[D("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 T0(e,t){return q(),re("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"},[D("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}/*! + * vue-router v4.5.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const hc=typeof document<"u";function pO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function lW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&pO(e.default)}const Xt=Object.assign;function Y_(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ao(i)?i.map(e):e(i)}return n}const $h=()=>{},Ao=Array.isArray,vO=/#/g,uW=/&/g,cW=/\//g,fW=/=/g,hW=/\?/g,gO=/\+/g,dW=/%5B/g,pW=/%5D/g,mO=/%5E/g,vW=/%60/g,yO=/%7B/g,gW=/%7C/g,_O=/%7D/g,mW=/%20/g;function px(e){return encodeURI(""+e).replace(gW,"|").replace(dW,"[").replace(pW,"]")}function yW(e){return px(e).replace(yO,"{").replace(_O,"}").replace(mO,"^")}function ob(e){return px(e).replace(gO,"%2B").replace(mW,"+").replace(vO,"%23").replace(uW,"%26").replace(vW,"`").replace(yO,"{").replace(_O,"}").replace(mO,"^")}function _W(e){return ob(e).replace(fW,"%3D")}function wW(e){return px(e).replace(vO,"%23").replace(hW,"%3F")}function bW(e){return e==null?"":wW(e).replace(cW,"%2F")}function Cd(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const SW=/\/$/,xW=e=>e.replace(SW,"");function j_(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=AW(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:Cd(a)}}function CW(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function h2(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function TW(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Wc(t.matched[r],n.matched[i])&&wO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!EW(e[n],t[n]))return!1;return!0}function EW(e,t){return Ao(e)?d2(e,t):Ao(t)?d2(t,e):e===t}function d2(e,t){return Ao(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function AW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const ds={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Td;(function(e){e.pop="pop",e.push="push"})(Td||(Td={}));var Bh;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Bh||(Bh={}));function MW(e){if(!e)if(hc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xW(e)}const RW=/^[^#]+#/;function PW(e,t){return e.replace(RW,"#")+t}function DW(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 E0=()=>({left:window.scrollX,top:window.scrollY});function IW(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=DW(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 p2(e,t){return(history.state?history.state.position-t:-1)+e}const ab=new Map;function LW(e,t){ab.set(e,t)}function OW(e){const t=ab.get(e);return ab.delete(e),t}let kW=()=>location.protocol+"//"+location.host;function bO(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),h2(l,"")}return h2(n,e)+r+i}function NW(e,t,n,r){let i=[],o=[],a=null;const s=({state:p})=>{const d=bO(e,location),g=n.value,_=t.value;let m=0;if(p){if(n.value=d,t.value=p,a&&a===g){a=null;return}m=_?p.position-_.position:0}else r(d);i.forEach(y=>{y(n.value,g,{delta:m,type:Td.pop,direction:m?m>0?Bh.forward:Bh.back:Bh.unknown})})};function l(){a=n.value}function u(p){i.push(p);const d=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return o.push(d),d}function c(){const{history:p}=window;p.state&&p.replaceState(Xt({},p.state,{scroll:E0()}),"")}function h(){for(const p of o)p();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:h}}function v2(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?E0():null}}function FW(e){const{history:t,location:n}=window,r={value:bO(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 h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:kW()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),i.value=u}catch(d){console.error(d),n[c?"replace":"assign"](p)}}function a(l,u){const c=Xt({},t.state,v2(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=Xt({},i.value,t.state,{forward:l,scroll:E0()});o(c.current,c,!0);const h=Xt({},v2(r.value,l,null),{position:c.position+1},u);o(l,h,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function $W(e){e=MW(e);const t=FW(e),n=NW(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=Xt({location:"",base:e,go:r,createHref:PW.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 BW(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$W(e)}function VW(e){return typeof e=="string"||e&&typeof e=="object"}function SO(e){return typeof e=="string"||typeof e=="symbol"}const xO=Symbol("");var g2;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(g2||(g2={}));function Yc(e,t){return Xt(new Error,{type:e,[xO]:!0},t)}function Ca(e,t){return e instanceof Error&&xO in e&&(t==null||!!(e.type&t))}const m2="[^/]+?",HW={sensitive:!1,strict:!1,start:!0,end:!0},UW=/[.+*?^${}()[\]/\\]/g;function zW(e,t){const n=Xt({},HW,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 h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function CO(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const WW={type:0,value:""},YW=/[a-zA-Z0-9_]/;function jW(e){if(!e)return[[]];if(e==="/")return[[WW]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function h(){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 p(){u+=l}for(;s{a(S)}:$h}function a(h){if(SO(h)){const p=r.get(h);p&&(r.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&r.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function s(){return n}function l(h){const p=JW(h,n);n.splice(p,0,h),h.record.name&&!b2(h)&&r.set(h.record.name,h)}function u(h,p){let d,g={},_,m;if("name"in h&&h.name){if(d=r.get(h.name),!d)throw Yc(1,{location:h});m=d.record.name,g=Xt(_2(p.params,d.keys.filter(S=>!S.optional).concat(d.parent?d.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),h.params&&_2(h.params,d.keys.map(S=>S.name))),_=d.stringify(g)}else if(h.path!=null)_=h.path,d=n.find(S=>S.re.test(_)),d&&(g=d.parse(_),m=d.record.name);else{if(d=p.name?r.get(p.name):n.find(S=>S.re.test(p.path)),!d)throw Yc(1,{location:h,currentLocation:p});m=d.record.name,g=Xt({},p.params,h.params),_=d.stringify(g)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:_,params:g,matched:y,meta:ZW(y)}}e.forEach(h=>o(h));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function _2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function w2(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:KW(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 KW(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 b2(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ZW(e){return e.reduce((t,n)=>Xt(t,n.meta),{})}function S2(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function JW(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;CO(e,t[o])<0?r=o:n=o+1}const i=QW(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function QW(e){let t=e;for(;t=t.parent;)if(TO(t)&&CO(e,t)===0)return t}function TO({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function e9(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&ob(o)):[r&&ob(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function t9(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ao(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const n9=Symbol(""),C2=Symbol(""),A0=Symbol(""),vx=Symbol(""),sb=Symbol("");function $f(){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 Ps(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=p=>{p===!1?l(Yc(4,{from:n,to:t})):p instanceof Error?l(p):VW(p)?l(Yc(2,{from:t,to:p})):(a&&r.enterCallbacks[i]===a&&typeof p=="function"&&a.push(p),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let h=Promise.resolve(c);e.length<3&&(h=h.then(u)),h.catch(p=>l(p))})}function q_(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(pO(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Ps(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 h=lW(c)?c.default:c;a.mods[s]=c,a.components[s]=h;const d=(h.__vccOpts||h)[t];return d&&Ps(d,n,r,a,s,i)()}))}}return o}function T2(e){const t=Ji(A0),n=Ji(vx),r=Ie(()=>{const l=F(e.to);return t.resolve(l)}),i=Ie(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],h=n.matched;if(!c||!h.length)return-1;const p=h.findIndex(Wc.bind(null,c));if(p>-1)return p;const d=E2(l[u-2]);return u>1&&E2(c)===d&&h[h.length-1].path!==d?h.findIndex(Wc.bind(null,l[u-2])):p}),o=Ie(()=>i.value>-1&&s9(n.params,r.value.params)),a=Ie(()=>i.value>-1&&i.value===n.matched.length-1&&wO(n.params,r.value.params));function s(l={}){if(a9(l)){const u=t[F(e.replace)?"replace":"push"](F(e.to)).catch($h);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Ie(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function r9(e){return e.length===1?e[0]:e}const i9=Ze({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:T2,setup(e,{slots:t}){const n=Eo(T2(e)),{options:r}=Ji(A0),i=Ie(()=>({[A2(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[A2(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&r9(t.default(n));return e.custom?o:jo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),o9=i9;function a9(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 s9(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(!Ao(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function E2(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const A2=(e,t,n)=>e??t??n,l9=Ze({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ji(sb),i=Ie(()=>e.route||r.value),o=Ji(C2,0),a=Ie(()=>{let u=F(o);const{matched:c}=i.value;let h;for(;(h=c[u])&&!h.components;)u++;return u}),s=Ie(()=>i.value.matched[a.value]);xg(C2,Ie(()=>a.value+1)),xg(n9,s),xg(sb,i);const l=Ae();return Lt(()=>[l.value,s.value,e.name],([u,c,h],[p,d,g])=>{c&&(c.instances[h]=u,d&&d!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Wc(c,d)||!p)&&(c.enterCallbacks[h]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,h=s.value,p=h&&h.components[c];if(!p)return M2(n.default,{Component:p,route:u});const d=h.props[c],g=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=jo(p,Xt({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[c]=null)},ref:l}));return M2(n.default,{Component:m,route:u})||m}}});function M2(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gx=l9;function u9(e){const t=XW(e.routes,e),n=e.parseQuery||e9,r=e.stringifyQuery||x2,i=e.history,o=$f(),a=$f(),s=$f(),l=Jd(ds);let u=ds;hc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Y_.bind(null,ue=>""+ue),h=Y_.bind(null,bW),p=Y_.bind(null,Cd);function d(ue,Te){let we,xe;return SO(ue)?(we=t.getRecordMatcher(ue),xe=Te):xe=ue,t.addRoute(xe,we)}function g(ue){const Te=t.getRecordMatcher(ue);Te&&t.removeRoute(Te)}function _(){return t.getRoutes().map(ue=>ue.record)}function m(ue){return!!t.getRecordMatcher(ue)}function y(ue,Te){if(Te=Xt({},Te||l.value),typeof ue=="string"){const B=j_(n,ue,Te.path),ne=t.resolve({path:B.path},Te),me=i.createHref(B.fullPath);return Xt(B,ne,{params:p(ne.params),hash:Cd(B.hash),redirectedFrom:void 0,href:me})}let we;if(ue.path!=null)we=Xt({},ue,{path:j_(n,ue.path,Te.path).path});else{const B=Xt({},ue.params);for(const ne in B)B[ne]==null&&delete B[ne];we=Xt({},ue,{params:h(B)}),Te.params=h(Te.params)}const xe=t.resolve(we,Te),Ee=ue.hash||"";xe.params=c(p(xe.params));const De=CW(r,Xt({},ue,{hash:yW(Ee),path:xe.path})),$=i.createHref(De);return Xt({fullPath:De,hash:Ee,query:r===x2?t9(ue.query):ue.query||{}},xe,{redirectedFrom:void 0,href:$})}function b(ue){return typeof ue=="string"?j_(n,ue,l.value.path):Xt({},ue)}function S(ue,Te){if(u!==ue)return Yc(8,{from:Te,to:ue})}function x(ue){return M(ue)}function E(ue){return x(Xt(b(ue),{replace:!0}))}function T(ue){const Te=ue.matched[ue.matched.length-1];if(Te&&Te.redirect){const{redirect:we}=Te;let xe=typeof we=="function"?we(ue):we;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=b(xe):{path:xe},xe.params={}),Xt({query:ue.query,hash:ue.hash,params:xe.path!=null?{}:ue.params},xe)}}function M(ue,Te){const we=u=y(ue),xe=l.value,Ee=ue.state,De=ue.force,$=ue.replace===!0,B=T(we);if(B)return M(Xt(b(B),{state:typeof B=="object"?Xt({},Ee,B.state):Ee,force:De,replace:$}),Te||we);const ne=we;ne.redirectedFrom=Te;let me;return!De&&TW(r,xe,we)&&(me=Yc(16,{to:ne,from:xe}),be(xe,xe,!0,!1)),(me?Promise.resolve(me):k(ne,xe)).catch(ce=>Ca(ce)?Ca(ce,2)?ce:_e(ce):Q(ce,ne,xe)).then(ce=>{if(ce){if(Ca(ce,2))return M(Xt({replace:$},b(ce.to),{state:typeof ce.to=="object"?Xt({},Ee,ce.to.state):Ee,force:De}),Te||ne)}else ce=H(ne,xe,!0,$,Ee);return N(ne,xe,ce),ce})}function P(ue,Te){const we=S(ue,Te);return we?Promise.reject(we):Promise.resolve()}function L(ue){const Te=qe.values().next().value;return Te&&typeof Te.runWithContext=="function"?Te.runWithContext(ue):ue()}function k(ue,Te){let we;const[xe,Ee,De]=c9(ue,Te);we=q_(xe.reverse(),"beforeRouteLeave",ue,Te);for(const B of xe)B.leaveGuards.forEach(ne=>{we.push(Ps(ne,ue,Te))});const $=P.bind(null,ue,Te);return we.push($),Ye(we).then(()=>{we=[];for(const B of o.list())we.push(Ps(B,ue,Te));return we.push($),Ye(we)}).then(()=>{we=q_(Ee,"beforeRouteUpdate",ue,Te);for(const B of Ee)B.updateGuards.forEach(ne=>{we.push(Ps(ne,ue,Te))});return we.push($),Ye(we)}).then(()=>{we=[];for(const B of De)if(B.beforeEnter)if(Ao(B.beforeEnter))for(const ne of B.beforeEnter)we.push(Ps(ne,ue,Te));else we.push(Ps(B.beforeEnter,ue,Te));return we.push($),Ye(we)}).then(()=>(ue.matched.forEach(B=>B.enterCallbacks={}),we=q_(De,"beforeRouteEnter",ue,Te,L),we.push($),Ye(we))).then(()=>{we=[];for(const B of a.list())we.push(Ps(B,ue,Te));return we.push($),Ye(we)}).catch(B=>Ca(B,8)?B:Promise.reject(B))}function N(ue,Te,we){s.list().forEach(xe=>L(()=>xe(ue,Te,we)))}function H(ue,Te,we,xe,Ee){const De=S(ue,Te);if(De)return De;const $=Te===ds,B=hc?history.state:{};we&&(xe||$?i.replace(ue.fullPath,Xt({scroll:$&&B&&B.scroll},Ee)):i.push(ue.fullPath,Ee)),l.value=ue,be(ue,Te,we,$),_e()}let te;function W(){te||(te=i.listen((ue,Te,we)=>{if(!He.listening)return;const xe=y(ue),Ee=T(xe);if(Ee){M(Xt(Ee,{replace:!0,force:!0}),xe).catch($h);return}u=xe;const De=l.value;hc&&LW(p2(De.fullPath,we.delta),E0()),k(xe,De).catch($=>Ca($,12)?$:Ca($,2)?(M(Xt(b($.to),{force:!0}),xe).then(B=>{Ca(B,20)&&!we.delta&&we.type===Td.pop&&i.go(-1,!1)}).catch($h),Promise.reject()):(we.delta&&i.go(-we.delta,!1),Q($,xe,De))).then($=>{$=$||H(xe,De,!1),$&&(we.delta&&!Ca($,8)?i.go(-we.delta,!1):we.type===Td.pop&&Ca($,20)&&i.go(-1,!1)),N(xe,De,$)}).catch($h)}))}let X=$f(),j=$f(),oe;function Q(ue,Te,we){_e(ue);const xe=j.list();return xe.length?xe.forEach(Ee=>Ee(ue,Te,we)):console.error(ue),Promise.reject(ue)}function fe(){return oe&&l.value!==ds?Promise.resolve():new Promise((ue,Te)=>{X.add([ue,Te])})}function _e(ue){return oe||(oe=!ue,W(),X.list().forEach(([Te,we])=>ue?we(ue):Te()),X.reset()),ue}function be(ue,Te,we,xe){const{scrollBehavior:Ee}=e;if(!hc||!Ee)return Promise.resolve();const De=!we&&OW(p2(ue.fullPath,0))||(xe||!we)&&history.state&&history.state.scroll||null;return Do().then(()=>Ee(ue,Te,De)).then($=>$&&IW($)).catch($=>Q($,ue,Te))}const Ne=ue=>i.go(ue);let ke;const qe=new Set,He={currentRoute:l,listening:!0,addRoute:d,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:_,resolve:y,options:e,push:x,replace:E,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:j.add,isReady:fe,install(ue){const Te=this;ue.component("RouterLink",o9),ue.component("RouterView",gx),ue.config.globalProperties.$router=Te,Object.defineProperty(ue.config.globalProperties,"$route",{enumerable:!0,get:()=>F(l)}),hc&&!ke&&l.value===ds&&(ke=!0,x(i.location).catch(Ee=>{}));const we={};for(const Ee in ds)Object.defineProperty(we,Ee,{get:()=>l.value[Ee],enumerable:!0});ue.provide(A0,Te),ue.provide(vx,wL(we)),ue.provide(sb,l);const xe=ue.unmount;qe.add(ue),ue.unmount=function(){qe.delete(ue),qe.size<1&&(u=ds,te&&te(),te=null,l.value=ds,ke=!1,oe=!1),xe()}}};function Ye(ue){return ue.reduce((Te,we)=>Te.then(()=>L(we)),Promise.resolve())}return He}function c9(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aWc(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Wc(u,l))||i.push(l))}return[n,r,i]}function f9(){return Ji(A0)}function EO(e){return Ji(vx)}/*! + * shared v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const bm=typeof window<"u",ol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),h9=(e,t,n)=>d9({l:e,k:t,s:n}),d9=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Vn=e=>typeof e=="number"&&isFinite(e),p9=e=>mx(e)==="[object Date]",jc=e=>mx(e)==="[object RegExp]",M0=e=>Mt(e)&&Object.keys(e).length===0,Xn=Object.assign,v9=Object.create,ln=(e=null)=>v9(e);let R2;const Ql=()=>R2||(R2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ln());function P2(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const g9=Object.prototype.hasOwnProperty;function _o(e,t){return g9.call(e,t)}const Ln=Array.isArray,bn=e=>typeof e=="function",Fe=e=>typeof e=="string",Ut=e=>typeof e=="boolean",Yt=e=>e!==null&&typeof e=="object",m9=e=>Yt(e)&&bn(e.then)&&bn(e.catch),AO=Object.prototype.toString,mx=e=>AO.call(e),Mt=e=>mx(e)==="[object Object]",y9=e=>e==null?"":Ln(e)||Mt(e)&&e.toString===AO?JSON.stringify(e,null,2):String(e);function yx(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function _9(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const vv=e=>!Yt(e)||Ln(e);function Eg(e,t){if(vv(e)||vv(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__"&&(Yt(r[o])&&!Yt(i[o])&&(i[o]=Array.isArray(r[o])?[]:ln()),vv(i[o])||vv(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 w9(e,t,n){return{line:e,column:t,offset:n}}function lb(e,t,n){return{start:e,end:t}}const tn={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},b9=17;function R0(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 S9(e){throw e}const Ta=" ",x9="\r",Dr=` +`,C9="\u2028",T9="\u2029";function E9(e){const t=e;let n=0,r=1,i=1,o=0;const a=M=>t[M]===x9&&t[M+1]===Dr,s=M=>t[M]===Dr,l=M=>t[M]===T9,u=M=>t[M]===C9,c=M=>a(M)||s(M)||l(M)||u(M),h=()=>n,p=()=>r,d=()=>i,g=()=>o,_=M=>a(M)||l(M)||u(M)?Dr:t[M],m=()=>_(n),y=()=>_(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 x(){n=0,r=1,i=1,o=0}function E(M=0){o=M}function T(){const M=n+o;for(;M!==n;)b();o=0}return{index:h,line:p,column:d,peekOffset:g,charAt:_,currentChar:m,currentPeek:y,next:b,peek:S,reset:x,resetPeek:E,skipToPeek:T}}const ps=void 0,A9=".",D2="'",M9="tokenizer";function R9(e,t={}){const n=t.location!==!1,r=E9(e),i=()=>r.index(),o=()=>w9(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 h(O,V,Z,...ae){const pe=u();if(V.column+=Z,V.offset+=Z,c){const Ce=n?lb(pe.startLoc,V):null,Y=R0(O,Ce,{domain:M9,args:ae});c(Y)}}function p(O,V,Z){O.endLoc=o(),O.currentType=V;const ae={type:V};return n&&(ae.loc=lb(O.startLoc,O.endLoc)),Z!=null&&(ae.value=Z),ae}const d=O=>p(O,13);function g(O,V){return O.currentChar()===V?(O.next(),V):(h(tn.EXPECTED_TOKEN,o(),0,V),"")}function _(O){let V="";for(;O.currentPeek()===Ta||O.currentPeek()===Dr;)V+=O.currentPeek(),O.peek();return V}function m(O){const V=_(O);return O.skipToPeek(),V}function y(O){if(O===ps)return!1;const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function b(O){if(O===ps)return!1;const V=O.charCodeAt(0);return V>=48&&V<=57}function S(O,V){const{currentType:Z}=V;if(Z!==2)return!1;_(O);const ae=y(O.currentPeek());return O.resetPeek(),ae}function x(O,V){const{currentType:Z}=V;if(Z!==2)return!1;_(O);const ae=O.currentPeek()==="-"?O.peek():O.currentPeek(),pe=b(ae);return O.resetPeek(),pe}function E(O,V){const{currentType:Z}=V;if(Z!==2)return!1;_(O);const ae=O.currentPeek()===D2;return O.resetPeek(),ae}function T(O,V){const{currentType:Z}=V;if(Z!==7)return!1;_(O);const ae=O.currentPeek()===".";return O.resetPeek(),ae}function M(O,V){const{currentType:Z}=V;if(Z!==8)return!1;_(O);const ae=y(O.currentPeek());return O.resetPeek(),ae}function P(O,V){const{currentType:Z}=V;if(!(Z===7||Z===11))return!1;_(O);const ae=O.currentPeek()===":";return O.resetPeek(),ae}function L(O,V){const{currentType:Z}=V;if(Z!==9)return!1;const ae=()=>{const Ce=O.currentPeek();return Ce==="{"?y(O.peek()):Ce==="@"||Ce==="|"||Ce===":"||Ce==="."||Ce===Ta||!Ce?!1:Ce===Dr?(O.peek(),ae()):N(O,!1)},pe=ae();return O.resetPeek(),pe}function k(O){_(O);const V=O.currentPeek()==="|";return O.resetPeek(),V}function N(O,V=!0){const Z=(pe=!1,Ce="")=>{const Y=O.currentPeek();return Y==="{"||Y==="@"||!Y?pe:Y==="|"?!(Ce===Ta||Ce===Dr):Y===Ta?(O.peek(),Z(!0,Ta)):Y===Dr?(O.peek(),Z(!0,Dr)):!0},ae=Z();return V&&O.resetPeek(),ae}function H(O,V){const Z=O.currentChar();return Z===ps?ps:V(Z)?(O.next(),Z):null}function te(O){const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function W(O){return H(O,te)}function X(O){const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function j(O){return H(O,X)}function oe(O){const V=O.charCodeAt(0);return V>=48&&V<=57}function Q(O){return H(O,oe)}function fe(O){const V=O.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function _e(O){return H(O,fe)}function be(O){let V="",Z="";for(;V=Q(O);)Z+=V;return Z}function Ne(O){let V="";for(;;){const Z=O.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z===Ta||Z===Dr)if(N(O))V+=Z,O.next();else{if(k(O))break;V+=Z,O.next()}else V+=Z,O.next()}return V}function ke(O){m(O);let V="",Z="";for(;V=j(O);)Z+=V;return O.currentChar()===ps&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z}function qe(O){m(O);let V="";return O.currentChar()==="-"?(O.next(),V+=`-${be(O)}`):V+=be(O),O.currentChar()===ps&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V}function He(O){return O!==D2&&O!==Dr}function Ye(O){m(O),g(O,"'");let V="",Z="";for(;V=H(O,He);)V==="\\"?Z+=ue(O):Z+=V;const ae=O.currentChar();return ae===Dr||ae===ps?(h(tn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),ae===Dr&&(O.next(),g(O,"'")),Z):(g(O,"'"),Z)}function ue(O){const V=O.currentChar();switch(V){case"\\":case"'":return O.next(),`\\${V}`;case"u":return Te(O,V,4);case"U":return Te(O,V,6);default:return h(tn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,V),""}}function Te(O,V,Z){g(O,V);let ae="";for(let pe=0;pe{const ae=O.currentChar();return ae==="{"||ae==="@"||ae==="|"||ae==="("||ae===")"||!ae||ae===Ta?Z:(Z+=ae,O.next(),V(Z))};return V("")}function $(O){m(O);const V=g(O,"|");return m(O),V}function B(O,V){let Z=null;switch(O.currentChar()){case"{":return V.braceNest>=1&&h(tn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),O.next(),Z=p(V,2,"{"),m(O),V.braceNest++,Z;case"}":return V.braceNest>0&&V.currentType===2&&h(tn.EMPTY_PLACEHOLDER,o(),0),O.next(),Z=p(V,3,"}"),V.braceNest--,V.braceNest>0&&m(O),V.inLinked&&V.braceNest===0&&(V.inLinked=!1),Z;case"@":return V.braceNest>0&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=ne(O,V)||d(V),V.braceNest=0,Z;default:{let pe=!0,Ce=!0,Y=!0;if(k(O))return V.braceNest>0&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=p(V,1,$(O)),V.braceNest=0,V.inLinked=!1,Z;if(V.braceNest>0&&(V.currentType===4||V.currentType===5||V.currentType===6))return h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V.braceNest=0,me(O,V);if(pe=S(O,V))return Z=p(V,4,ke(O)),m(O),Z;if(Ce=x(O,V))return Z=p(V,5,qe(O)),m(O),Z;if(Y=E(O,V))return Z=p(V,6,Ye(O)),m(O),Z;if(!pe&&!Ce&&!Y)return Z=p(V,12,xe(O)),h(tn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,Z.value),m(O),Z;break}}return Z}function ne(O,V){const{currentType:Z}=V;let ae=null;const pe=O.currentChar();switch((Z===7||Z===8||Z===11||Z===9)&&(pe===Dr||pe===Ta)&&h(tn.INVALID_LINKED_FORMAT,o(),0),pe){case"@":return O.next(),ae=p(V,7,"@"),V.inLinked=!0,ae;case".":return m(O),O.next(),p(V,8,".");case":":return m(O),O.next(),p(V,9,":");default:return k(O)?(ae=p(V,1,$(O)),V.braceNest=0,V.inLinked=!1,ae):T(O,V)||P(O,V)?(m(O),ne(O,V)):M(O,V)?(m(O),p(V,11,Ee(O))):L(O,V)?(m(O),pe==="{"?B(O,V)||ae:p(V,10,De(O))):(Z===7&&h(tn.INVALID_LINKED_FORMAT,o(),0),V.braceNest=0,V.inLinked=!1,me(O,V))}}function me(O,V){let Z={type:13};if(V.braceNest>0)return B(O,V)||d(V);if(V.inLinked)return ne(O,V)||d(V);switch(O.currentChar()){case"{":return B(O,V)||d(V);case"}":return h(tn.UNBALANCED_CLOSING_BRACE,o(),0),O.next(),p(V,3,"}");case"@":return ne(O,V)||d(V);default:{if(k(O))return Z=p(V,1,$(O)),V.braceNest=0,V.inLinked=!1,Z;if(N(O))return p(V,0,Ne(O));break}}return Z}function ce(){const{currentType:O,offset:V,startLoc:Z,endLoc:ae}=l;return l.lastType=O,l.lastOffset=V,l.lastStartLoc=Z,l.lastEndLoc=ae,l.offset=i(),l.startLoc=o(),r.currentChar()===ps?p(l,13):me(r,l)}return{nextToken:ce,currentOffset:i,currentPosition:o,context:u}}const P9="parser",D9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function I9(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function L9(e={}){const t=e.location!==!1,{onError:n}=e;function r(y,b,S,x,...E){const T=y.currentPosition();if(T.offset+=x,T.column+=x,n){const M=t?lb(S,T):null,P=R0(b,M,{domain:P9,args:E});n(P)}}function i(y,b,S){const x={type:y};return t&&(x.start=b,x.end=b,x.loc={start:S,end:S}),x}function o(y,b,S,x){t&&(y.end=b,y.loc&&(y.loc.end=S))}function a(y,b){const S=y.context(),x=i(3,S.offset,S.startLoc);return x.value=b,o(x,y.currentOffset(),y.currentPosition()),x}function s(y,b){const S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(5,x,E);return T.index=parseInt(b,10),y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function l(y,b){const S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(4,x,E);return T.key=b,y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function u(y,b){const S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(9,x,E);return T.value=b.replace(D9,I9),y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function c(y){const b=y.nextToken(),S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(8,x,E);return b.type!==11?(r(y,tn.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),T.value="",o(T,x,E),{nextConsumeToken:b,node:T}):(b.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,$o(b)),T.value=b.value||"",o(T,y.currentOffset(),y.currentPosition()),{node:T})}function h(y,b){const S=y.context(),x=i(7,S.offset,S.startLoc);return x.value=b,o(x,y.currentOffset(),y.currentPosition()),x}function p(y){const b=y.context(),S=i(6,b.offset,b.startLoc);let x=y.nextToken();if(x.type===8){const E=c(y);S.modifier=E.node,x=E.nextConsumeToken||y.nextToken()}switch(x.type!==9&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),x=y.nextToken(),x.type===2&&(x=y.nextToken()),x.type){case 10:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=h(y,x.value||"");break;case 4:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=l(y,x.value||"");break;case 5:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=s(y,x.value||"");break;case 6:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=u(y,x.value||"");break;default:{r(y,tn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const E=y.context(),T=i(7,E.offset,E.startLoc);return T.value="",o(T,E.offset,E.startLoc),S.key=T,o(S,E.offset,E.startLoc),{nextConsumeToken:x,node:S}}}return o(S,y.currentOffset(),y.currentPosition()),{node:S}}function d(y){const b=y.context(),S=b.currentType===1?y.currentOffset():b.offset,x=b.currentType===1?b.endLoc:b.startLoc,E=i(2,S,x);E.items=[];let T=null;do{const L=T||y.nextToken();switch(T=null,L.type){case 0:L.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(L)),E.items.push(a(y,L.value||""));break;case 5:L.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(L)),E.items.push(s(y,L.value||""));break;case 4:L.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(L)),E.items.push(l(y,L.value||""));break;case 6:L.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(L)),E.items.push(u(y,L.value||""));break;case 7:{const k=p(y);E.items.push(k.node),T=k.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const M=b.currentType===1?b.lastOffset:y.currentOffset(),P=b.currentType===1?b.lastEndLoc:y.currentPosition();return o(E,M,P),E}function g(y,b,S,x){const E=y.context();let T=x.items.length===0;const M=i(1,b,S);M.cases=[],M.cases.push(x);do{const P=d(y);T||(T=P.items.length===0),M.cases.push(P)}while(E.currentType!==13);return T&&r(y,tn.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),o(M,y.currentOffset(),y.currentPosition()),M}function _(y){const b=y.context(),{offset:S,startLoc:x}=b,E=d(y);return b.currentType===13?E:g(y,S,x,E)}function m(y){const b=R9(y,Xn({},e)),S=b.context(),x=i(0,S.offset,S.startLoc);return t&&x.loc&&(x.loc.source=y),x.body=_(b),e.onCacheKey&&(x.cacheKey=e.onCacheKey(y)),S.currentType!==13&&r(b,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,y[S.offset]||""),o(x,b.currentOffset(),b.currentPosition()),x}return{parse:m}}function $o(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 O9(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function I2(e,t){for(let n=0;nL2(n)),e}function L2(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ns;function u(m,y){s.code+=m}function c(m,y=!0){const b=y?i:"";u(o?b+" ".repeat(m):b)}function h(m=!0){const y=++s.indentLevel;m&&c(y)}function p(m=!0){const y=--s.indentLevel;m&&c(y)}function d(){c(s.indentLevel)}return{context:l,push:u,indent:h,deindent:p,newline:d,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function $9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),qc(e,t.key),t.modifier?(e.push(", "),qc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function B9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o{const n=Fe(t.mode)?t.mode:"normal",r=Fe(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=F9(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 { ${yx(s.map(h=>`${h}: _${h}`),", ")} } = ctx`),l.newline()),l.push("return "),qc(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 z9(e,t={}){const n=Xn({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=L9(n).parse(e);return r?(o&&N9(s),i&&dc(s),{ast:s,code:""}):(k9(s,n),U9(s,n))}/*! + * core-base v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */function G9(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ql().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ql().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function X_(e){return n=>W9(n,e)}function W9(e,t){const n=j9(t);if(n==null)throw Ed(0);if(bx(n)===1){const o=X9(n);return e.plural(o.reduce((a,s)=>[...a,O2(e,s)],[]))}else return O2(e,n)}const Y9=["b","body"];function j9(e){return al(e,Y9)}const q9=["c","cases"];function X9(e){return al(e,q9,[])}function O2(e,t){const n=Z9(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Q9(t).reduce((i,o)=>[...i,ub(e,o)],[]);return e.normalize(r)}}const K9=["s","static"];function Z9(e){return al(e,K9)}const J9=["i","items"];function Q9(e){return al(e,J9,[])}function ub(e,t){const n=bx(t);switch(n){case 3:return gv(t,n);case 9:return gv(t,n);case 4:{const r=t;if(_o(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(_o(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ed(n)}case 5:{const r=t;if(_o(r,"i")&&Vn(r.i))return e.interpolate(e.list(r.i));if(_o(r,"index")&&Vn(r.index))return e.interpolate(e.list(r.index));throw Ed(n)}case 6:{const r=t,i=r7(r),o=o7(r);return e.linked(ub(e,o),i?ub(e,i):void 0,e.type)}case 7:return gv(t,n);case 8:return gv(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const e7=["t","type"];function bx(e){return al(e,e7)}const t7=["v","value"];function gv(e,t){const n=al(e,t7);if(n)return n;throw Ed(t)}const n7=["m","modifier"];function r7(e){return al(e,n7)}const i7=["k","key"];function o7(e){const t=al(e,i7);if(t)return t;throw Ed(6)}function al(e,t,n){for(let r=0;re;let mv=ln();function Xc(e){return Yt(e)&&bx(e)===0&&(_o(e,"b")||_o(e,"body"))}function s7(e,t={}){let n=!1;const r=t.onError||S9;return t.onError=i=>{n=!0,r(i)},{...z9(e,t),detectError:n}}function l7(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Fe(e)){Ut(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||a7)(e),i=mv[r];if(i)return i;const{ast:o,detectError:a}=s7(e,{...t,location:!1,jit:!0}),s=X_(o);return a?s:mv[r]=s}else{const n=e.cacheKey;if(n){const r=mv[n];return r||(mv[n]=X_(e))}else return X_(e)}}let Ad=null;function u7(e){Ad=e}function c7(e,t,n){Ad&&Ad.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const f7=h7("function:translate");function h7(e){return t=>Ad&&Ad.emit(e,t)}const Fa={INVALID_ARGUMENT:b9,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},d7=24;function $a(e){return R0(e,null,void 0)}function Sx(e,t){return t.locale!=null?k2(t.locale):k2(e.locale)}let K_;function k2(e){if(Fe(e))return e;if(bn(e)){if(e.resolvedOnce&&K_!=null)return K_;if(e.constructor.name==="Function"){const t=e();if(m9(t))throw $a(Fa.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return K_=t}else throw $a(Fa.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw $a(Fa.NOT_SUPPORT_LOCALE_TYPE)}function p7(e,t,n){return[...new Set([n,...Ln(t)?t:Yt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function MO(e,t,n){const r=Fe(n)?n:Md,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ln(a);)a=N2(o,a,t);const s=Ln(t)||!Mt(t)?t:t.default?t.default:null;a=Fe(s)?[s]:s,Ln(a)&&N2(o,a,!1),i.__localeChainCache.set(r,o)}return o}function N2(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,r=4,p[0]();else{if(i=0,a===void 0||(a=b7(a),a===!1))return!1;p[1]()}};function d(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,s="\\"+g,p[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&d())){if(l=w7(o),h=sl[r],u=h[l]||h.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=p[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const F2=new Map;function x7(e,t){return Yt(e)?e[t]:null}function C7(e,t){if(!Yt(e))return null;let n=F2.get(t);if(n||(n=S7(t),n&&F2.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function E7(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&Yt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&Yt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?B2(e):t==="vnode"&&Yt(e)&&"__v_isVNode"in e?B2(e.children):e}}let RO;function A7(e){RO=e}let PO;function M7(e){PO=e}let DO;function R7(e){DO=e}let IO=null;const P7=e=>{IO=e},D7=()=>IO;let LO=null;const V2=e=>{LO=e},I7=()=>LO;let H2=0;function L7(e={}){const t=bn(e.onWarn)?e.onWarn:_9,n=Fe(e.version)?e.version:T7,r=Fe(e.locale)||bn(e.locale)?e.locale:Md,i=bn(r)?Md:r,o=Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=Mt(e.messages)?e.messages:Z_(i),s=Mt(e.datetimeFormats)?e.datetimeFormats:Z_(i),l=Mt(e.numberFormats)?e.numberFormats:Z_(i),u=Xn(ln(),e.modifiers,E7()),c=e.pluralRules||ln(),h=bn(e.missing)?e.missing:null,p=Ut(e.missingWarn)||jc(e.missingWarn)?e.missingWarn:!0,d=Ut(e.fallbackWarn)||jc(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,_=!!e.unresolving,m=bn(e.postTranslation)?e.postTranslation:null,y=Mt(e.processor)?e.processor:null,b=Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,x=bn(e.messageCompiler)?e.messageCompiler:RO,E=bn(e.messageResolver)?e.messageResolver:PO||x7,T=bn(e.localeFallbacker)?e.localeFallbacker:DO||p7,M=Yt(e.fallbackContext)?e.fallbackContext:void 0,P=e,L=Yt(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,k=Yt(P.__numberFormatters)?P.__numberFormatters:new Map,N=Yt(P.__meta)?P.__meta:{};H2++;const H={version:n,cid:H2,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:h,missingWarn:p,fallbackWarn:d,fallbackFormat:g,unresolving:_,postTranslation:m,processor:y,warnHtmlMessage:b,escapeParameter:S,messageCompiler:x,messageResolver:E,localeFallbacker:T,fallbackContext:M,onWarn:t,__meta:N};return H.datetimeFormats=s,H.numberFormats=l,H.__datetimeFormatters=L,H.__numberFormatters=k,__INTLIFY_PROD_DEVTOOLS__&&c7(H,n,N),H}const Z_=e=>({[e]:ln()});function xx(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return Fe(s)?s:t}else return t}function Bf(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function O7(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function k7(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{OO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:Mt(r)&&(a=r),Mt(i)&&(a=i),[o.key||"",s,o,a]}function z2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function G2(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,h]=fb(...t),p=Ut(c.missingWarn)?c.missingWarn:e.missingWarn;Ut(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,g=Sx(e,c),_=a(e,i,g);if(!Fe(l)||l==="")return new Intl.NumberFormat(g,h).format(u);let m={},y,b=null;const S="number format";for(let T=0;T<_.length&&(y=_[T],m=n[y]||{},b=m[l],!Mt(b));T++)xx(e,l,y,p,S);if(!Mt(b)||!Fe(y))return r?P0:l;let x=`${y}__${l}`;M0(h)||(x=`${x}__${JSON.stringify(h)}`);let E=s.get(x);return E||(E=new Intl.NumberFormat(y,Xn({},b,h)),s.set(x,E)),d?E.formatToParts(u):E.format(u)}const kO=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function fb(...e){const[t,n,r,i]=e,o=ln();let a=ln();if(!Vn(t))throw $a(Fa.INVALID_ARGUMENT);const s=t;return Fe(n)?o.key=n:Mt(n)&&Object.keys(n).forEach(l=>{kO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:Mt(r)&&(a=r),Mt(i)&&(a=i),[o.key||"",s,o,a]}function W2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const N7=e=>e,F7=e=>"",$7="text",B7=e=>e.length===0?"":yx(e),V7=y9;function Y2(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function H7(e){const t=Vn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Vn(e.named.count)||Vn(e.named.n))?Vn(e.named.count)?e.named.count:Vn(e.named.n)?e.named.n:t:t}function U7(e,t){t.count||(t.count=e),t.n||(t.n=e)}function z7(e={}){const t=e.locale,n=H7(e),r=Yt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?e.pluralRules[t]:Y2,i=Yt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?Y2:void 0,o=y=>y[r(n,y.length,i)],a=e.list||[],s=y=>a[y],l=e.named||ln();Vn(e.pluralIndex)&&U7(n,l);const u=y=>l[y];function c(y,b){const S=bn(e.messages)?e.messages(y,!!b):Yt(e.messages)?e.messages[y]:!1;return S||(e.parent?e.parent.message(y):F7)}const h=y=>e.modifiers?e.modifiers[y]:N7,p=Mt(e.processor)&&bn(e.processor.normalize)?e.processor.normalize:B7,d=Mt(e.processor)&&bn(e.processor.interpolate)?e.processor.interpolate:V7,g=Mt(e.processor)&&Fe(e.processor.type)?e.processor.type:$7,m={list:s,named:u,plural:o,linked:(y,...b)=>{const[S,x]=b;let E="text",T="";b.length===1?Yt(S)?(T=S.modifier||T,E=S.type||E):Fe(S)&&(T=S||T):b.length===2&&(Fe(S)&&(T=S||T),Fe(x)&&(E=x||E));const M=c(y,!0)(m),P=E==="vnode"&&Ln(M)&&T?M[0]:M;return T?h(T)(P,E):P},message:c,type:g,interpolate:d,normalize:p,values:Xn(ln(),a,l)};return m}const j2=()=>"",Yi=e=>bn(e);function q2(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=hb(...t),c=Ut(u.missingWarn)?u.missingWarn:e.missingWarn,h=Ut(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=Ut(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,g=Fe(u.default)||Ut(u.default)?Ut(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,_=n||g!=null&&(Fe(g)||bn(g)),m=Sx(e,u);p&&G7(u);let[y,b,S]=d?[l,m,s[m]||ln()]:NO(e,l,m,a,h,c),x=y,E=l;if(!d&&!(Fe(x)||Xc(x)||Yi(x))&&_&&(x=g,E=x),!d&&(!(Fe(x)||Xc(x)||Yi(x))||!Fe(b)))return i?P0:l;let T=!1;const M=()=>{T=!0},P=Yi(x)?x:FO(e,l,b,x,E,M);if(T)return x;const L=j7(e,b,S,u),k=z7(L),N=W7(e,P,k),H=r?r(N,l):N;if(__INTLIFY_PROD_DEVTOOLS__){const te={timestamp:Date.now(),key:Fe(l)?l:Yi(x)?x.key:"",locale:b||(Yi(x)?x.locale:""),format:Fe(x)?x:Yi(x)?x.source:"",message:H};te.meta=Xn({},e.__meta,D7()||{}),f7(te)}return H}function G7(e){Ln(e.list)?e.list=e.list.map(t=>Fe(t)?P2(t):t):Yt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=P2(e.named[t]))})}function NO(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let h=ln(),p,d=null;const g="translate";for(let _=0;_r;return u.locale=n,u.key=t,u}const l=a(r,Y7(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function W7(e,t,n){return t(n)}function hb(...e){const[t,n,r]=e,i=ln();if(!Fe(t)&&!Vn(t)&&!Yi(t)&&!Xc(t))throw $a(Fa.INVALID_ARGUMENT);const o=Vn(t)?String(t):(Yi(t),t);return Vn(n)?i.plural=n:Fe(n)?i.default=n:Mt(n)&&!M0(n)?i.named=n:Ln(n)&&(i.list=n),Vn(r)?i.plural=r:Fe(r)?i.default=r:Mt(r)&&Xn(i,r),[o,i]}function Y7(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>h9(t,n,a)}}function j7(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,p={locale:t,modifiers:i,pluralRules:o,messages:(d,g)=>{let _=a(n,d);if(_==null&&(c||g)){const[,,m]=NO(c||e,d,t,s,l,u);_=a(m,d)}if(Fe(_)||Xc(_)){let m=!1;const b=FO(e,d,t,_,d,()=>{m=!0});return m?j2:b}else return Yi(_)?_:j2}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Vn(r.plural)&&(p.pluralIndex=r.plural),p}G9();/*! + * vue-i18n v10.0.5 + * (c) 2024 kazuya kawaguchi + * Released under the MIT License. + */const q7="10.0.5";function X7(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ql().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ql().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ql().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ql().__INTLIFY_PROD_DEVTOOLS__=!1)}const Br={UNEXPECTED_RETURN_TYPE:d7,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 ni(e,...t){return R0(e,null,void 0)}const db=ol("__translateVNode"),pb=ol("__datetimeParts"),vb=ol("__numberParts"),$O=ol("__setPluralRules"),BO=ol("__injectWithOption"),gb=ol("__dispose");function Rd(e){if(!Yt(e))return e;for(const t in e)if(_o(e,t))if(!t.includes("."))Yt(e[t])&&Rd(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||ln(),Eg(u,a[l])):Eg(u,a)}else Fe(s)&&Eg(JSON.parse(s),a)}),i==null&&o)for(const s in a)_o(a,s)&&Rd(a[s]);return a}function VO(e){return e.type}function HO(e,t,n){let r=Yt(t.messages)?t.messages:ln();"__i18nGlobal"in n&&(r=Cx(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Yt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Yt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function X2(e){return ye(tp,null,e,0)}const K2="__INTLIFY_META__",Z2=()=>[],K7=()=>!1;let J2=0;function Q2(e){return(t,n,r,i)=>e(n,r,ra()||void 0,i)}const Z7=()=>{const e=ra();let t=null;return e&&(t=VO(e)[K2])?{[K2]:t}:null};function Tx(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=bm?Ae:Jd;let a=Ut(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:Fe(e.locale)?e.locale:Md),l=o(t&&a?t.fallbackLocale.value:Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(Cx(s.value,e)),c=o(Mt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),h=o(Mt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=t?t.missingWarn:Ut(e.missingWarn)||jc(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Ut(e.fallbackWarn)||jc(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Ut(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,m=bn(e.missing)?e.missing:null,y=bn(e.missing)?Q2(e.missing):null,b=bn(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const E=t?t.modifiers:Mt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,M;M=(()=>{r&&V2(null);const Y={version:q7,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:E,pluralRules:T,missing:y===null?void 0:y,missingWarn:p,fallbackWarn:d,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Y.datetimeFormats=c.value,Y.numberFormats=h.value,Y.__datetimeFormatters=Mt(M)?M.__datetimeFormatters:void 0,Y.__numberFormatters=Mt(M)?M.__numberFormatters:void 0;const ie=L7(Y);return r&&V2(ie),ie})(),Bf(M,s.value,l.value);function L(){return[s.value,l.value,u.value,c.value,h.value]}const k=Ie({get:()=>s.value,set:Y=>{s.value=Y,M.locale=s.value}}),N=Ie({get:()=>l.value,set:Y=>{l.value=Y,M.fallbackLocale=l.value,Bf(M,s.value,Y)}}),H=Ie(()=>u.value),te=Ie(()=>c.value),W=Ie(()=>h.value);function X(){return bn(b)?b:null}function j(Y){b=Y,M.postTranslation=Y}function oe(){return m}function Q(Y){Y!==null&&(y=Q2(Y)),m=Y,M.missing=y}const fe=(Y,ie,Re,Be,ft,wt)=>{L();let on;try{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=t?I7():void 0),on=Y(M)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Re!=="translate exists"&&Vn(on)&&on===P0||Re==="translate exists"&&!on){const[yn,kn]=ie();return t&&g?Be(t):ft(yn)}else{if(wt(on))return on;throw ni(Br.UNEXPECTED_RETURN_TYPE)}};function _e(...Y){return fe(ie=>Reflect.apply(q2,null,[ie,...Y]),()=>hb(...Y),"translate",ie=>Reflect.apply(ie.t,ie,[...Y]),ie=>ie,ie=>Fe(ie))}function be(...Y){const[ie,Re,Be]=Y;if(Be&&!Yt(Be))throw ni(Br.INVALID_ARGUMENT);return _e(ie,Re,Xn({resolvedMessage:!0},Be||{}))}function Ne(...Y){return fe(ie=>Reflect.apply(U2,null,[ie,...Y]),()=>cb(...Y),"datetime format",ie=>Reflect.apply(ie.d,ie,[...Y]),()=>$2,ie=>Fe(ie))}function ke(...Y){return fe(ie=>Reflect.apply(G2,null,[ie,...Y]),()=>fb(...Y),"number format",ie=>Reflect.apply(ie.n,ie,[...Y]),()=>$2,ie=>Fe(ie))}function qe(Y){return Y.map(ie=>Fe(ie)||Vn(ie)||Ut(ie)?X2(String(ie)):ie)}const Ye={normalize:qe,interpolate:Y=>Y,type:"vnode"};function ue(...Y){return fe(ie=>{let Re;const Be=ie;try{Be.processor=Ye,Re=Reflect.apply(q2,null,[Be,...Y])}finally{Be.processor=null}return Re},()=>hb(...Y),"translate",ie=>ie[db](...Y),ie=>[X2(ie)],ie=>Ln(ie))}function Te(...Y){return fe(ie=>Reflect.apply(G2,null,[ie,...Y]),()=>fb(...Y),"number format",ie=>ie[vb](...Y),Z2,ie=>Fe(ie)||Ln(ie))}function we(...Y){return fe(ie=>Reflect.apply(U2,null,[ie,...Y]),()=>cb(...Y),"datetime format",ie=>ie[pb](...Y),Z2,ie=>Fe(ie)||Ln(ie))}function xe(Y){T=Y,M.pluralRules=T}function Ee(Y,ie){return fe(()=>{if(!Y)return!1;const Re=Fe(ie)?ie:s.value,Be=B(Re),ft=M.messageResolver(Be,Y);return Xc(ft)||Yi(ft)||Fe(ft)},()=>[Y],"translate exists",Re=>Reflect.apply(Re.te,Re,[Y,ie]),K7,Re=>Ut(Re))}function De(Y){let ie=null;const Re=MO(M,l.value,s.value);for(let Be=0;Be{a&&(s.value=Y,M.locale=Y,Bf(M,s.value,l.value))}),Lt(t.fallbackLocale,Y=>{a&&(l.value=Y,M.fallbackLocale=Y,Bf(M,s.value,l.value))}));const Ce={id:J2,locale:k,fallbackLocale:N,get inheritLocale(){return a},set inheritLocale(Y){a=Y,Y&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Bf(M,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:H,get modifiers(){return E},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(Y){p=Y,M.missingWarn=p},get fallbackWarn(){return d},set fallbackWarn(Y){d=Y,M.fallbackWarn=d},get fallbackRoot(){return g},set fallbackRoot(Y){g=Y},get fallbackFormat(){return _},set fallbackFormat(Y){_=Y,M.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(Y){S=Y,M.warnHtmlMessage=Y},get escapeParameter(){return x},set escapeParameter(Y){x=Y,M.escapeParameter=Y},t:_e,getLocaleMessage:B,setLocaleMessage:ne,mergeLocaleMessage:me,getPostTranslationHandler:X,setPostTranslationHandler:j,getMissingHandler:oe,setMissingHandler:Q,[$O]:xe};return Ce.datetimeFormats=te,Ce.numberFormats=W,Ce.rt=be,Ce.te=Ee,Ce.tm=$,Ce.d=Ne,Ce.n=ke,Ce.getDateTimeFormat=ce,Ce.setDateTimeFormat=O,Ce.mergeDateTimeFormat=V,Ce.getNumberFormat=Z,Ce.setNumberFormat=ae,Ce.mergeNumberFormat=pe,Ce[BO]=n,Ce[db]=ue,Ce[pb]=we,Ce[vb]=Te,Ce}function J7(e){const t=Fe(e.locale)?e.locale:Md,n=Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=bn(e.missing)?e.missing:void 0,i=Ut(e.silentTranslationWarn)||jc(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Ut(e.silentFallbackWarn)||jc(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Ut(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Mt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=bn(e.postTranslation)?e.postTranslation:void 0,h=Fe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,d=Ut(e.sync)?e.sync:!0;let g=e.messages;if(Mt(e.sharedMessages)){const E=e.sharedMessages;g=Object.keys(E).reduce((M,P)=>{const L=M[P]||(M[P]={});return Xn(L,E[P]),M},g||{})}const{__i18n:_,__root:m,__injectWithOption:y}=e,b=e.datetimeFormats,S=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:x,datetimeFormats:b,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:d,__i18n:_,__root:m,__injectWithOption:y}}function mb(e={}){const t=Tx(J7(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 Ut(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Ut(i)?!i:i},get silentFallbackWarn(){return Ut(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Ut(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(!Fe(o))throw ni(Br.INVALID_ARGUMENT);const h=o;return Fe(a)?l.locale=a:Vn(a)?l.plural=a:Ln(a)?u=a:Mt(a)&&(c=a),Fe(s)?l.locale=s:Ln(s)?u=s:Mt(s)&&(c=s),Reflect.apply(t.t,t,[h,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 Q7(e,t,n){return{beforeCreate(){const r=ra();if(!r)throw ni(Br.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=eM(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=mb(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=eM(e,i);else{this.$i18n=mb({__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&&HO(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=ra();if(!r)throw ni(Br.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 eM(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[$O](t.pluralizationRules||e.pluralizationRules);const n=Cx(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 Ex={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function eY({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ge?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},ln())}function UO(){return Ge}const tY=Ze({name:"i18n-t",props:Xn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Vn(e)||!isNaN(e)}},Ex),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||ia({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(h=>h!=="_"),a=ln();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Fe(e.plural)?+e.plural:e.plural);const s=eY(t,o),l=i[db](e.keypath,s,a),u=Xn(ln(),r),c=Fe(e.tag)||Yt(e.tag)?e.tag:UO();return jo(c,u,l)}}}),tM=tY;function nY(e){return Ln(e)&&!Fe(e[0])}function zO(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=ln();e.locale&&(a.locale=e.locale),Fe(e.format)?a.key=e.format:Yt(e.format)&&(Fe(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((p,d)=>n.includes(d)?Xn(ln(),p,{[d]:e.format[d]}):p,ln()));const l=r(e.value,a,s);let u=[a.key];Ln(l)?u=l.map((p,d)=>{const g=i[p.type],_=g?g({[p.type]:p.value,index:d,parts:l}):[p.value];return nY(_)&&(_[0].key=`${p.type}-${d}`),_}):Fe(l)&&(u=[l]);const c=Xn(ln(),o),h=Fe(e.tag)||Yt(e.tag)?e.tag:UO();return jo(h,c,u)}}const rY=Ze({name:"i18n-n",props:Xn({value:{type:Number,required:!0},format:{type:[String,Object]}},Ex),setup(e,t){const n=e.i18n||ia({useScope:e.scope,__useComponent:!0});return zO(e,t,kO,(...r)=>n[vb](...r))}}),nM=rY,iY=Ze({name:"i18n-d",props:Xn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ex),setup(e,t){const n=e.i18n||ia({useScope:e.scope,__useComponent:!0});return zO(e,t,OO,(...r)=>n[pb](...r))}}),rM=iY;function oY(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 aY(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw ni(Br.UNEXPECTED_ERROR);const u=oY(e,s.$),c=iM(l);return[Reflect.apply(u.t,u,[...oM(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);bm&&e.global===u&&(a.__i18nWatcher=Lt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{bm&&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=iM(s);a.textContent=Reflect.apply(l.t,l,[...oM(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function iM(e){if(Fe(e))return{path:e};if(Mt(e)){if(!("path"in e))throw ni(Br.REQUIRED_VALUE,"path");return e}else throw ni(Br.INVALID_VALUE)}function oM(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return Fe(n)&&(a.locale=n),Vn(i)&&(a.plural=i),Vn(o)&&(a.plural=o),[t,s,a]}function sY(e,t,...n){const r=Mt(n[0])?n[0]:{};(Ut(r.globalInstall)?r.globalInstall:!0)&&([tM.name,"I18nT"].forEach(o=>e.component(o,tM)),[nM.name,"I18nN"].forEach(o=>e.component(o,nM)),[rM.name,"I18nD"].forEach(o=>e.component(o,rM))),e.directive("t",aY(t))}const lY=ol("global-vue-i18n");function uY(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ut(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ut(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=cY(e,n),s=ol("");function l(p){return i.get(p)||null}function u(p,d){i.set(p,d)}function c(p){i.delete(p)}const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(p,...d){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,h),Mt(d[0])){const m=d[0];h.__composerExtend=m.__composerExtend,h.__vueI18nExtend=m.__vueI18nExtend}let g=null;!n&&r&&(g=yY(p,h.global)),__VUE_I18N_FULL_INSTALL__&&sY(p,h,...d),__VUE_I18N_LEGACY_API__&&n&&p.mixin(Q7(a,a.__composer,h));const _=p.unmount;p.unmount=()=>{g&&g(),h.dispose(),_()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return h}function ia(e={}){const t=ra();if(t==null)throw ni(Br.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ni(Br.NOT_INSTALLED);const n=fY(t),r=dY(n),i=VO(t),o=hY(e,i);if(o==="global")return HO(r,e,i),r;if(o==="parent"){let l=pY(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Xn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=Tx(l),a.__composerExtend&&(s[gb]=a.__composerExtend(s)),gY(a,t,s),a.__setInstance(t,s)}return s}function cY(e,t,n){const r=F8(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>mb(e)):r.run(()=>Tx(e));if(i==null)throw ni(Br.UNEXPECTED_ERROR);return[r,i]}function fY(e){const t=Ji(e.isCE?lY:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ni(e.isCE?Br.NOT_INSTALLED_WITH_PROVIDE:Br.UNEXPECTED_ERROR);return t}function hY(e,t){return M0(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function dY(e){return e.mode==="composition"?e.global:e.global.__composer}function pY(e,t,n=!1){let r=null;const i=t.root;let o=vY(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[BO]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function vY(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function gY(e,t,n){ua(()=>{},t),ep(()=>{const r=n;e.__deleteInstance(t);const i=r[gb];i&&(i(),delete r[gb])},t)}const mY=["locale","fallbackLocale","availableLocales"],aM=["t","rt","d","n","tm","te"];function yY(e,t){const n=Object.create(null);return mY.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw ni(Br.UNEXPECTED_ERROR);const a=et(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,aM.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw ni(Br.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,aM.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}X7();A7(l7);M7(C7);R7(MO);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ql();e.__INTLIFY__=!0,u7(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const J_=Ae(!1),sM=Ae(),D0=()=>{const{t:e}=ia();return{showTip:(n,r={})=>{J_.value=!0,sM.value=e(n,r),setTimeout(()=>{J_.value=!1},1e4)},tipShowModel:J_,tipContent:sM}},Ax="https://ipv6.google.com/generate_204",qo=0;var wo=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(wo||{}),Ls=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(Ls||{}),Bt=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.Destination="destination",e))(Bt||{}),Os=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Os||{}),Pd=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(Pd||{}),Kc=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(Kc||{}),yu=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(yu||{}),Xr=(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))(Xr||{}),La=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(La||{}),eu=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(eu||{}),Vt=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(Vt||{});const GO={proxies:rW,connections:sO,rules:aW,logs:nW,settings:eW};var Dd=(e=>(e.SMALL="small",e.LARGE="large",e))(Dd||{}),rp=(e=>(e.SMALL="small",e.LARGE="large",e))(rp||{});function I0(e){return iL()?(oL(e),!0):!1}function Eu(e){return typeof e=="function"?e():F(e)}const WO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _Y=e=>e!=null,wY=Object.prototype.toString,bY=e=>wY.call(e)==="[object Object]",Sm=()=>{};function SY(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 YO=e=>e();function xY(e=YO){const t=Ae(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:w0(t),pause:n,resume:r,eventFilter:i}}function jO(e){return ra()}function CY(...e){if(e.length!==1)return fG(...e);const t=e[0];return typeof t=="function"?w0(sG(()=>({get:t,set:Sm}))):Ae(t)}function TY(e,t,n={}){const{eventFilter:r=YO,...i}=n;return Lt(e,SY(r,t),i)}function EY(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=xY(r);return{stop:TY(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function AY(e,t){jO()&&IL(e,t)}function Mx(e,t=!0,n){jO()?ua(e,n):t?e():Do(e)}const ja=WO?window:void 0,qO=WO?window.document:void 0;function Ns(e){var t;const n=Eu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function lu(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ja):[t,n,r,i]=e,!t)return Sm;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,h,p,d)=>(c.addEventListener(h,p,d),()=>c.removeEventListener(h,p,d)),l=Lt(()=>[Ns(t),Eu(i)],([c,h])=>{if(a(),!c)return;const p=bY(h)?{...h}:h;o.push(...n.flatMap(d=>r.map(g=>s(c,d,g,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return I0(u),u}function MY(){const e=Ae(!1),t=ra();return t&&ua(()=>{e.value=!0},t),e}function Rx(e){const t=MY();return Ie(()=>(t.value,!!e()))}function RY(e,t,n={}){const{window:r=ja,...i}=n;let o;const a=Rx(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ie(()=>{const p=Eu(e),d=(Array.isArray(p)?p:[p]).map(Ns).filter(_Y);return new Set(d)}),u=Lt(()=>l.value,p=>{s(),a.value&&p.size&&(o=new MutationObserver(t),p.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),h=()=>{u(),s()};return I0(h),{isSupported:a,stop:h,takeRecords:c}}function PY(e,t={}){const{window:n=ja}=t,r=Rx(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=Ae(!1),a=u=>{o.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=cx(()=>{r.value&&(s(),i=n.matchMedia(Eu(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return I0(()=>{l(),s(),i=void 0}),o}const yv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_v="__vueuse_ssr_handlers__",DY=IY();function IY(){return _v in yv||(yv[_v]=yv[_v]||{}),yv[_v]}function LY(e,t){return DY[e]||t}function OY(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 kY={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()}},lM="vueuse-storage";function Ht(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:h=ja,eventFilter:p,onError:d=k=>{console.error(k)},initOnMounted:g}=r,_=(c?Jd:Ae)(typeof t=="function"?t():t);if(!n)try{n=LY("getDefaultStorage",()=>{var k;return(k=ja)==null?void 0:k.localStorage})()}catch(k){d(k)}if(!n)return _;const m=Eu(t),y=OY(m),b=(i=r.serializer)!=null?i:kY[y],{pause:S,resume:x}=EY(_,()=>T(_.value),{flush:o,deep:a,eventFilter:p});h&&s&&Mx(()=>{n instanceof Storage?lu(h,"storage",P):lu(h,lM,L),g&&P()}),g||P();function E(k,N){if(h){const H={key:e,oldValue:k,newValue:N,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(lM,{detail:H}))}}function T(k){try{const N=n.getItem(e);if(k==null)E(N,null),n.removeItem(e);else{const H=b.write(k);N!==H&&(n.setItem(e,H),E(N,H))}}catch(N){d(N)}}function M(k){const N=k?k.newValue:n.getItem(e);if(N==null)return l&&m!=null&&n.setItem(e,b.write(m)),m;if(!k&&u){const H=b.read(N);return typeof u=="function"?u(H,m):y==="object"&&!Array.isArray(H)?{...m,...H}:H}else return typeof N!="string"?N:b.read(N)}function P(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){_.value=m;return}if(!(k&&k.key!==e)){S();try{(k==null?void 0:k.newValue)!==b.write(_.value)&&(_.value=M(k))}catch(N){d(N)}finally{k?Do(x):x()}}}}function L(k){P(k.detail)}return _}function NY(e={}){const{document:t=qO}=e;if(!t)return Ae("visible");const n=Ae(t.visibilityState);return lu(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function FY(e,t,n={}){const{window:r=ja,...i}=n;let o;const a=Rx(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ie(()=>{const h=Eu(e);return Array.isArray(h)?h.map(p=>Ns(p)):[Ns(h)]}),u=Lt(l,h=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const p of h)p&&o.observe(p,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return I0(c),{isSupported:a,stop:c}}function $Y(e,t={width:0,height:0},n={}){const{window:r=ja,box:i="content-box"}=n,o=Ie(()=>{var h,p;return(p=(h=Ns(e))==null?void 0:h.namespaceURI)==null?void 0:p.includes("svg")}),a=Ae(t.width),s=Ae(t.height),{stop:l}=FY(e,([h])=>{const p=i==="border-box"?h.borderBoxSize:i==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(r&&o.value){const d=Ns(e);if(d){const g=d.getBoundingClientRect();a.value=g.width,s.value=g.height}}else if(p){const d=Array.isArray(p)?p:[p];a.value=d.reduce((g,{inlineSize:_})=>g+_,0),s.value=d.reduce((g,{blockSize:_})=>g+_,0)}else a.value=h.contentRect.width,s.value=h.contentRect.height},n);Mx(()=>{const h=Ns(e);h&&(a.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const u=Lt(()=>Ns(e),h=>{a.value=h?t.width:0,s.value=h?t.height:0});function c(){l(),u()}return{width:a,height:s,stop:c}}function BY(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=ja}=t,l=Eo({x:0,y:0}),u=Eo({x:0,y:0}),c=Ie(()=>l.x-u.x),h=Ie(()=>l.y-u.y),{max:p,abs:d}=Math,g=Ie(()=>p(d(c.value),d(h.value))>=n),_=Ae(!1),m=Ie(()=>g.value?d(c.value)>d(h.value)?c.value>0?"left":"right":h.value>0?"up":"down":"none"),y=L=>[L.touches[0].clientX,L.touches[0].clientY],b=(L,k)=>{l.x=L,l.y=k},S=(L,k)=>{u.x=L,u.y=k};let x;const E=VY(s==null?void 0:s.document);a?x=E?{passive:!0}:{capture:!1}:x=E?{passive:!1,capture:!0}:{capture:!0};const T=L=>{_.value&&(i==null||i(L,m.value)),_.value=!1},M=[lu(e,"touchstart",L=>{if(L.touches.length!==1)return;const[k,N]=y(L);b(k,N),S(k,N),o==null||o(L)},x),lu(e,"touchmove",L=>{if(L.touches.length!==1)return;const[k,N]=y(L);S(k,N),x.capture&&!x.passive&&Math.abs(c.value)>Math.abs(h.value)&&L.preventDefault(),!_.value&&g.value&&(_.value=!0),_.value&&(r==null||r(L))},x),lu(e,["touchend","touchcancel"],T,x)];return{isPassiveEventSupported:E,isSwiping:_,direction:m,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:h,stop:()=>M.forEach(L=>L())}}function VY(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",Sm,n),e.removeEventListener("x",Sm),t}function HY(e=null,t={}){var n,r,i;const{document:o=qO,restoreOnUnmount:a=h=>h}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=CY((r=e??(o==null?void 0:o.title))!=null?r:null),u=e&&typeof e=="function";function c(h){if(!("titleTemplate"in t))return h;const p=t.titleTemplate||"%s";return typeof p=="function"?p(h):Eu(p).replace(/%s/g,h)}return Lt(l,(h,p)=>{h!==p&&o&&(o.title=c(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&RY((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),AY(()=>{if(a){const h=a(s,l.value||"");h!=null&&o&&(o.title=h)}}),l}function UY(e={}){const{window:t=ja,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=Ae(n),l=Ae(r),u=()=>{t&&(a==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),Mx(u),lu("resize",u,{passive:!0}),i){const c=PY("(orientation: portrait)");Lt(c,()=>u())}return{width:s,height:l}}const Pc=Ht("config/theme","default"),Ba=Ht("config/language",Object.values(wo).includes(navigator.language)?navigator.language:wo.EN_US),zs=Ht("config/is-sidebar-collapsed",!0),Vh=Ht("config/font",Ls.MI_SANS),Ag=Ht("config/auto-upgrade",!1),Mg=Ht("config/show-global-proxy",!0),Q_=Ht("config/collapse-group-map",{}),Hh=Ht("config/two-columns",!0),Uh=Ht("config/speedtest-url","http://www.gstatic.com/generate_204"),zh=Ht("config/speedtest-timeout",5e3),Rg=Ht("config/proxy-sort-type",Os.DEFAULT),Pg=Ht("config/automatic-disconnection",!0),Gh=Ht("config/truncate-proxy-name",!0),Wh=Ht("config/proxy-preview-type",Pd.AUTO),Dg=Ht("config/hide-unavailable-proxies",!1),Fs=Ht("config/low-latency",300),Na=Ht("config/medium-latency",800),uu=Ht("config/ipv6-test",!1),Yh=Ht("config/proxy-card-size",rp.LARGE),tu=Ht("config/use-connecticon-card",!1),Ig=Ht("config/connecticon-table-size",Dd.SMALL),Kl=Ht("config/connection-table-columns",[Bt.Close,Bt.Host,Bt.Type,Bt.Rule,Bt.Chains,Bt.DlSpeed,Bt.UlSpeed,Bt.Download,Bt.Upload,Bt.ConnectTime]),Lg=Ht("config/compact-connection-card",!0),_i=Ht("config/source-ip-label-map",{}),Og=Ht("config/log-retention-limit",1e3),zY=["data-theme"],GY={key:0,class:"toast-sm toast toast-start toast-top z-50 max-w-64 whitespace-normal text-sm"},WY={class:"breaks-all alert alert-warning flex w-72 whitespace-normal p-2"},YY={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},jY=Ze({__name:"App",setup(e){const t=Ae(),n=()=>{const s=getComputedStyle(t.value).getPropertyValue("background-color").trim(),l=document.querySelector('meta[name="theme-color"]');l&&l.setAttribute("content",s)},{tipContent:r,tipShowModel:i}=D0();ua(()=>{n(),Lt(Pc,()=>{Do(n)})});const o={[Ls.MI_SANS]:"font-MiSans",[Ls.SARASA_UI]:"font-SarasaUI",[Ls.PING_FANG]:"font-PingFang",[Ls.FIRA_SANS]:"font-FiraSans",[Ls.SYSTEM_UI]:"font-SystemUI"},a=Ie(()=>o[Vh.value]);return(s,l)=>(q(),re("div",{ref_key:"app",ref:t,class:je(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${a.value}`),"data-theme":F(Pc)},[ye(F(gx)),F(i)?(q(),re("div",GY,[D("div",WY,[D("a",YY,se(s.$t(F(r))),1),D("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:l[0]||(l[0]=u=>i.value=!1)},[ye(F(sW),{class:"w-4 cursor-pointer"})])])])):yt("",!0)],10,zY))}}),qY={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",compactCard:"Compact Card",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumnProxyGroup:"Two Column Proxy Group",type:"Type",process:"Process",sniffHost:"Sniff Host",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",dashboard:"Dashboard",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Upgrade All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"By Configs",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc",language:"Language",automaticDisconnection:"Automatic Disconnection",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",hideUnavailable:"Hide Unavail",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",statistics:"Statistics",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",ipCheck:"IP Check",ipForMainlandChina:"IP for Mainland China",ipForGlobal:"IP for Global"},XY={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загрузить",upload:"Выгрузить",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость выгрузки",memoryUsage:"Память",version:"Версия",quickFilter:"Быстрый фильтр",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",compactCard:"Компактная карточка",chains:"Цепочки",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",sniffHost:"Определение хоста",connectTime:"Время",sourcePort:"Исходный порт",destination:"Назначение",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Выгр",dlSpeed:"Загрузка",ulSpeed:"Выгрузка",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",close:"Закрыть",details:"Детали",showGlobalProxy:"Показать глобальный прокси-узел",dashboard:"Панель управления",theme:"Тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновить все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",hideUnavailable:"Скрыть недоступные",protocolTips:"Вы пытаетесь подключиться к http-бэкенду, но панель управления обслуживается через https. Это может вызвать ошибку подключения. Пожалуйста, разрешите небезопасный контент в настройках браузера. Настройки находятся слева от адресной строки.",global:"Глобальный",direct:"Прямой",quickFilterTip:"Быстрая фильтрация позволяет одним щелчком исключать подключения, соответствующие цепочкам прокси, хосту или IP-адресам назначения с использованием регулярных выражений.",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",statistics:"Статистика",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:"Большой",ipCheck:"Проверка IP",ipForMainlandChina:"IP для Китаи",ipForGlobal:"IP для мира"},KY={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",compactCard:"紧凑卡片",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",sniffHost:"嗅探主机",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",dashboard:"面板",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",hideUnavailable:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"字体",statistics:"统计",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:"大",ipCheck:"IP 检查",ipForMainlandChina:"中国大陆 IP",ipForGlobal:"全球 IP"},Px=uY({locale:Ba.value,messages:{[wo.EN_US]:qY,[wo.ZH_CN]:KY,[wo.RU_RU]:XY}});var gh={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */var ZY=gh.exports,uM;function JY(){return uM||(uM=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__",h=1,p=2,d=4,g=1,_=2,m=1,y=2,b=4,S=8,x=16,E=32,T=64,M=128,P=256,L=512,k=30,N="...",H=800,te=16,W=1,X=2,j=3,oe=1/0,Q=9007199254740991,fe=17976931348623157e292,_e=NaN,be=4294967295,Ne=be-1,ke=be>>>1,qe=[["ary",M],["bind",m],["bindKey",y],["curry",S],["curryRight",x],["flip",L],["partial",E],["partialRight",T],["rearg",P]],He="[object Arguments]",Ye="[object Array]",ue="[object AsyncFunction]",Te="[object Boolean]",we="[object Date]",xe="[object DOMException]",Ee="[object Error]",De="[object Function]",$="[object GeneratorFunction]",B="[object Map]",ne="[object Number]",me="[object Null]",ce="[object Object]",O="[object Promise]",V="[object Proxy]",Z="[object RegExp]",ae="[object Set]",pe="[object String]",Ce="[object Symbol]",Y="[object Undefined]",ie="[object WeakMap]",Re="[object WeakSet]",Be="[object ArrayBuffer]",ft="[object DataView]",wt="[object Float32Array]",on="[object Float64Array]",yn="[object Int8Array]",kn="[object Int16Array]",Rn="[object Int32Array]",Yn="[object Uint8Array]",si="[object Uint8ClampedArray]",Nn="[object Uint16Array]",Zn="[object Uint32Array]",Mu=/\b__p \+= '';/g,Ru=/\b(__p \+=) '' \+/g,Pu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,pp=/&(?:amp|lt|gt|quot|#39);/g,ns=/[&<>"']/g,by=RegExp(pp.source),Sy=RegExp(ns.source),Un=/<%-([\s\S]+?)%>/g,rs=/<%([\s\S]+?)%>/g,vp=/<%=([\s\S]+?)%>/g,gp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gf=/^\w*$/,mp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Du=/[\\^$.*+?()[\]{}|]/g,xy=RegExp(Du.source),Hr=/^\s+/,Iu=/\s/,yp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,_p=/\{\n\/\* \[wrapped with (.+)\] \*/,wp=/,? & /,bp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ro=/[()=,{}\[\]\/\s]/,Sp=/\\(\\)?/g,xp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mf=/\w*$/,Cp=/^[-+]0x[0-9a-f]+$/i,Cy=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,K=/^0o[0-7]+$/i,Me=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,Jn=/['\n\r\u2028\u2029\\]/g,Pn="\\ud800-\\udfff",fr="\\u0300-\\u036f",Pi="\\ufe20-\\ufe2f",ul="\\u20d0-\\u20ff",Qn=fr+Pi+ul,yf="\\u2700-\\u27bf",_f="a-z\\xdf-\\xf6\\xf8-\\xff",f$="\\xac\\xb1\\xd7\\xf7",h$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",d$="\\u2000-\\u206f",p$=" \\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",oT="A-Z\\xc0-\\xd6\\xd8-\\xde",aT="\\ufe0e\\ufe0f",sT=f$+h$+d$+p$,Ty="['’]",v$="["+Pn+"]",lT="["+sT+"]",Tp="["+Qn+"]",uT="\\d+",g$="["+yf+"]",cT="["+_f+"]",fT="[^"+Pn+sT+uT+yf+_f+oT+"]",Ey="\\ud83c[\\udffb-\\udfff]",m$="(?:"+Tp+"|"+Ey+")",hT="[^"+Pn+"]",Ay="(?:\\ud83c[\\udde6-\\uddff]){2}",My="[\\ud800-\\udbff][\\udc00-\\udfff]",Lu="["+oT+"]",dT="\\u200d",pT="(?:"+cT+"|"+fT+")",y$="(?:"+Lu+"|"+fT+")",vT="(?:"+Ty+"(?:d|ll|m|re|s|t|ve))?",gT="(?:"+Ty+"(?:D|LL|M|RE|S|T|VE))?",mT=m$+"?",yT="["+aT+"]?",_$="(?:"+dT+"(?:"+[hT,Ay,My].join("|")+")"+yT+mT+")*",w$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",b$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",_T=yT+mT+_$,S$="(?:"+[g$,Ay,My].join("|")+")"+_T,x$="(?:"+[hT+Tp+"?",Tp,Ay,My,v$].join("|")+")",C$=RegExp(Ty,"g"),T$=RegExp(Tp,"g"),Ry=RegExp(Ey+"(?="+Ey+")|"+x$+_T,"g"),E$=RegExp([Lu+"?"+cT+"+"+vT+"(?="+[lT,Lu,"$"].join("|")+")",y$+"+"+gT+"(?="+[lT,Lu+pT,"$"].join("|")+")",Lu+"?"+pT+"+"+vT,Lu+"+"+gT,b$,w$,uT,S$].join("|"),"g"),A$=RegExp("["+dT+Pn+Qn+aT+"]"),M$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,R$=["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"],P$=-1,_n={};_n[wt]=_n[on]=_n[yn]=_n[kn]=_n[Rn]=_n[Yn]=_n[si]=_n[Nn]=_n[Zn]=!0,_n[He]=_n[Ye]=_n[Be]=_n[Te]=_n[ft]=_n[we]=_n[Ee]=_n[De]=_n[B]=_n[ne]=_n[ce]=_n[Z]=_n[ae]=_n[pe]=_n[ie]=!1;var vn={};vn[He]=vn[Ye]=vn[Be]=vn[ft]=vn[Te]=vn[we]=vn[wt]=vn[on]=vn[yn]=vn[kn]=vn[Rn]=vn[B]=vn[ne]=vn[ce]=vn[Z]=vn[ae]=vn[pe]=vn[Ce]=vn[Yn]=vn[si]=vn[Nn]=vn[Zn]=!0,vn[Ee]=vn[De]=vn[ie]=!1;var D$={À:"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"},I$={"&":"&","<":"<",">":">",'"':""","'":"'"},L$={"&":"&","<":"<",">":">",""":'"',"'":"'"},O$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},k$=parseFloat,N$=parseInt,wT=typeof fv=="object"&&fv&&fv.Object===Object&&fv,F$=typeof self=="object"&&self&&self.Object===Object&&self,ir=wT||F$||Function("return this")(),Py=t&&!t.nodeType&&t,cl=Py&&!0&&e&&!e.nodeType&&e,bT=cl&&cl.exports===Py,Dy=bT&&wT.process,Di=function(){try{var J=cl&&cl.require&&cl.require("util").types;return J||Dy&&Dy.binding&&Dy.binding("util")}catch{}}(),ST=Di&&Di.isArrayBuffer,xT=Di&&Di.isDate,CT=Di&&Di.isMap,TT=Di&&Di.isRegExp,ET=Di&&Di.isSet,AT=Di&&Di.isTypedArray;function li(J,de,le){switch(le.length){case 0:return J.call(de);case 1:return J.call(de,le[0]);case 2:return J.call(de,le[0],le[1]);case 3:return J.call(de,le[0],le[1],le[2])}return J.apply(de,le)}function $$(J,de,le,$e){for(var ht=-1,zt=J==null?0:J.length;++ht-1}function Iy(J,de,le){for(var $e=-1,ht=J==null?0:J.length;++$e-1;);return le}function kT(J,de){for(var le=J.length;le--&&Ou(de,J[le],0)>-1;);return le}function j$(J,de){for(var le=J.length,$e=0;le--;)J[le]===de&&++$e;return $e}var q$=Ny(D$),X$=Ny(I$);function K$(J){return"\\"+O$[J]}function Z$(J,de){return J==null?n:J[de]}function ku(J){return A$.test(J)}function J$(J){return M$.test(J)}function Q$(J){for(var de,le=[];!(de=J.next()).done;)le.push(de.value);return le}function Vy(J){var de=-1,le=Array(J.size);return J.forEach(function($e,ht){le[++de]=[ht,$e]}),le}function NT(J,de){return function(le){return J(de(le))}}function as(J,de){for(var le=-1,$e=J.length,ht=0,zt=[];++le<$e;){var jn=J[le];(jn===de||jn===c)&&(J[le]=c,zt[ht++]=le)}return zt}function Mp(J){var de=-1,le=Array(J.size);return J.forEach(function($e){le[++de]=$e}),le}function eB(J){var de=-1,le=Array(J.size);return J.forEach(function($e){le[++de]=[$e,$e]}),le}function tB(J,de,le){for(var $e=le-1,ht=J.length;++$e-1}function VB(f,v){var w=this.__data__,C=zp(w,f);return C<0?(++this.size,w.push([f,v])):w[C][1]=v,this}pa.prototype.clear=NB,pa.prototype.delete=FB,pa.prototype.get=$B,pa.prototype.has=BB,pa.prototype.set=VB;function va(f){var v=-1,w=f==null?0:f.length;for(this.clear();++v=v?f:v)),f}function ki(f,v,w,C,A,I){var U,z=v&h,ee=v&p,ve=v&d;if(w&&(U=A?w(f,C,A,I):w(f)),U!==n)return U;if(!En(f))return f;var ge=gt(f);if(ge){if(U=G4(f),!z)return Ur(f,U)}else{var Se=dr(f),Oe=Se==De||Se==$;if(hs(f))return yE(f,z);if(Se==ce||Se==He||Oe&&!A){if(U=ee||Oe?{}:FE(f),!z)return ee?L4(f,n4(U,f)):I4(f,qT(U,f))}else{if(!vn[Se])return A?f:{};U=W4(f,Se,z)}}I||(I=new oo);var We=I.get(f);if(We)return We;I.set(f,U),hA(f)?f.forEach(function(it){U.add(ki(it,v,w,it,f,I))}):cA(f)&&f.forEach(function(it,Pt){U.set(Pt,ki(it,v,w,Pt,f,I))});var rt=ve?ee?h_:f_:ee?Gr:er,Ct=ge?n:rt(f);return Ii(Ct||f,function(it,Pt){Ct&&(Pt=it,it=f[Pt]),Ef(U,Pt,ki(it,v,w,Pt,f,I))}),U}function r4(f){var v=er(f);return function(w){return XT(w,f,v)}}function XT(f,v,w){var C=w.length;if(f==null)return!C;for(f=un(f);C--;){var A=w[C],I=v[A],U=f[A];if(U===n&&!(A in f)||!I(U))return!1}return!0}function KT(f,v,w){if(typeof f!="function")throw new Li(a);return Lf(function(){f.apply(n,w)},v)}function Af(f,v,w,C){var A=-1,I=Ep,U=!0,z=f.length,ee=[],ve=v.length;if(!z)return ee;w&&(v=Sn(v,ui(w))),C?(I=Iy,U=!1):v.length>=i&&(I=wf,U=!1,v=new dl(v));e:for(;++AA?0:A+w),C=C===n||C>A?A:bt(C),C<0&&(C+=A),C=w>C?0:pA(C);w0&&w(z)?v>1?or(z,v-1,w,C,A):os(A,z):C||(A[A.length]=z)}return A}var jy=CE(),QT=CE(!0);function Oo(f,v){return f&&jy(f,v,er)}function qy(f,v){return f&&QT(f,v,er)}function Wp(f,v){return is(v,function(w){return wa(f[w])})}function vl(f,v){v=cs(v,f);for(var w=0,C=v.length;f!=null&&wv}function a4(f,v){return f!=null&&en.call(f,v)}function s4(f,v){return f!=null&&v in un(f)}function l4(f,v,w){return f>=hr(v,w)&&f=120&&ge.length>=120)?new dl(U&&ge):n}ge=f[0];var Se=-1,Oe=z[0];e:for(;++Se-1;)z!==f&&Np.call(z,ee,1),Np.call(f,ee,1);return f}function cE(f,v){for(var w=f?v.length:0,C=w-1;w--;){var A=v[w];if(w==C||A!==I){var I=A;_a(A)?Np.call(f,A,1):i_(f,A)}}return f}function t_(f,v){return f+Bp(GT()*(v-f+1))}function b4(f,v,w,C){for(var A=-1,I=qn($p((v-f)/(w||1)),0),U=le(I);I--;)U[C?I:++A]=f,f+=w;return U}function n_(f,v){var w="";if(!f||v<1||v>Q)return w;do v%2&&(w+=f),v=Bp(v/2),v&&(f+=f);while(v);return w}function At(f,v){return __(VE(f,v,Wr),f+"")}function S4(f){return jT(Yu(f))}function x4(f,v){var w=Yu(f);return nv(w,pl(v,0,w.length))}function Pf(f,v,w,C){if(!En(f))return f;v=cs(v,f);for(var A=-1,I=v.length,U=I-1,z=f;z!=null&&++AA?0:A+v),w=w>A?A:w,w<0&&(w+=A),A=v>w?0:w-v>>>0,v>>>=0;for(var I=le(A);++C>>1,U=f[I];U!==null&&!fi(U)&&(w?U<=v:U=i){var ve=v?null:F4(f);if(ve)return Mp(ve);U=!1,A=wf,ee=new dl}else ee=v?[]:z;e:for(;++C=C?f:Ni(f,v,w)}var mE=pB||function(f){return ir.clearTimeout(f)};function yE(f,v){if(v)return f.slice();var w=f.length,C=BT?BT(w):new f.constructor(w);return f.copy(C),C}function l_(f){var v=new f.constructor(f.byteLength);return new Op(v).set(new Op(f)),v}function M4(f,v){var w=v?l_(f.buffer):f.buffer;return new f.constructor(w,f.byteOffset,f.byteLength)}function R4(f){var v=new f.constructor(f.source,mf.exec(f));return v.lastIndex=f.lastIndex,v}function P4(f){return Tf?un(Tf.call(f)):{}}function _E(f,v){var w=v?l_(f.buffer):f.buffer;return new f.constructor(w,f.byteOffset,f.length)}function wE(f,v){if(f!==v){var w=f!==n,C=f===null,A=f===f,I=fi(f),U=v!==n,z=v===null,ee=v===v,ve=fi(v);if(!z&&!ve&&!I&&f>v||I&&U&&ee&&!z&&!ve||C&&U&&ee||!w&&ee||!A)return 1;if(!C&&!I&&!ve&&f=z)return ee;var ve=w[C];return ee*(ve=="desc"?-1:1)}}return f.index-v.index}function bE(f,v,w,C){for(var A=-1,I=f.length,U=w.length,z=-1,ee=v.length,ve=qn(I-U,0),ge=le(ee+ve),Se=!C;++z1?w[A-1]:n,U=A>2?w[2]:n;for(I=f.length>3&&typeof I=="function"?(A--,I):n,U&&Tr(w[0],w[1],U)&&(I=A<3?n:I,A=1),v=un(v);++C-1?A[I?v[U]:U]:n}}function AE(f){return ya(function(v){var w=v.length,C=w,A=Oi.prototype.thru;for(f&&v.reverse();C--;){var I=v[C];if(typeof I!="function")throw new Li(a);if(A&&!U&&ev(I)=="wrapper")var U=new Oi([],!0)}for(C=U?C:w;++C1&&Ot.reverse(),ge&&eez))return!1;var ve=I.get(f),ge=I.get(v);if(ve&&ge)return ve==v&&ge==f;var Se=-1,Oe=!0,We=w&_?new dl:n;for(I.set(f,v),I.set(v,f);++Se1?"& ":"")+v[C],v=v.join(w>2?", ":" "),f.replace(yp,`{ +/* [wrapped with `+v+`] */ +`)}function j4(f){return gt(f)||yl(f)||!!(UT&&f&&f[UT])}function _a(f,v){var w=typeof f;return v=v??Q,!!v&&(w=="number"||w!="symbol"&&Me.test(f))&&f>-1&&f%1==0&&f0){if(++v>=H)return arguments[0]}else v=0;return f.apply(n,arguments)}}function nv(f,v){var w=-1,C=f.length,A=C-1;for(v=v===n?C:v;++w1?f[v-1]:n;return w=typeof w=="function"?(f.pop(),w):n,JE(f,w)});function QE(f){var v=R(f);return v.__chain__=!0,v}function iH(f,v){return v(f),f}function rv(f,v){return v(f)}var oH=ya(function(f){var v=f.length,w=v?f[0]:0,C=this.__wrapped__,A=function(I){return Yy(I,f)};return v>1||this.__actions__.length||!(C instanceof It)||!_a(w)?this.thru(A):(C=C.slice(w,+w+(v?1:0)),C.__actions__.push({func:rv,args:[A],thisArg:n}),new Oi(C,this.__chain__).thru(function(I){return v&&!I.length&&I.push(n),I}))});function aH(){return QE(this)}function sH(){return new Oi(this.value(),this.__chain__)}function lH(){this.__values__===n&&(this.__values__=dA(this.value()));var f=this.__index__>=this.__values__.length,v=f?n:this.__values__[this.__index__++];return{done:f,value:v}}function uH(){return this}function cH(f){for(var v,w=this;w instanceof Up;){var C=YE(w);C.__index__=0,C.__values__=n,v?A.__wrapped__=C:v=C;var A=C;w=w.__wrapped__}return A.__wrapped__=f,v}function fH(){var f=this.__wrapped__;if(f instanceof It){var v=f;return this.__actions__.length&&(v=new It(this)),v=v.reverse(),v.__actions__.push({func:rv,args:[w_],thisArg:n}),new Oi(v,this.__chain__)}return this.thru(w_)}function hH(){return vE(this.__wrapped__,this.__actions__)}var dH=Xp(function(f,v,w){en.call(f,w)?++f[w]:ga(f,w,1)});function pH(f,v,w){var C=gt(f)?MT:i4;return w&&Tr(f,v,w)&&(v=n),C(f,tt(v,3))}function vH(f,v){var w=gt(f)?is:JT;return w(f,tt(v,3))}var gH=EE(jE),mH=EE(qE);function yH(f,v){return or(iv(f,v),1)}function _H(f,v){return or(iv(f,v),oe)}function wH(f,v,w){return w=w===n?1:bt(w),or(iv(f,v),w)}function eA(f,v){var w=gt(f)?Ii:ls;return w(f,tt(v,3))}function tA(f,v){var w=gt(f)?B$:ZT;return w(f,tt(v,3))}var bH=Xp(function(f,v,w){en.call(f,w)?f[w].push(v):ga(f,w,[v])});function SH(f,v,w,C){f=zr(f)?f:Yu(f),w=w&&!C?bt(w):0;var A=f.length;return w<0&&(w=qn(A+w,0)),uv(f)?w<=A&&f.indexOf(v,w)>-1:!!A&&Ou(f,v,w)>-1}var xH=At(function(f,v,w){var C=-1,A=typeof v=="function",I=zr(f)?le(f.length):[];return ls(f,function(U){I[++C]=A?li(v,U,w):Mf(U,v,w)}),I}),CH=Xp(function(f,v,w){ga(f,w,v)});function iv(f,v){var w=gt(f)?Sn:iE;return w(f,tt(v,3))}function TH(f,v,w,C){return f==null?[]:(gt(v)||(v=v==null?[]:[v]),w=C?n:w,gt(w)||(w=w==null?[]:[w]),lE(f,v,w))}var EH=Xp(function(f,v,w){f[w?0:1].push(v)},function(){return[[],[]]});function AH(f,v,w){var C=gt(f)?Ly:IT,A=arguments.length<3;return C(f,tt(v,4),w,A,ls)}function MH(f,v,w){var C=gt(f)?V$:IT,A=arguments.length<3;return C(f,tt(v,4),w,A,ZT)}function RH(f,v){var w=gt(f)?is:JT;return w(f,sv(tt(v,3)))}function PH(f){var v=gt(f)?jT:S4;return v(f)}function DH(f,v,w){(w?Tr(f,v,w):v===n)?v=1:v=bt(v);var C=gt(f)?QB:x4;return C(f,v)}function IH(f){var v=gt(f)?e4:T4;return v(f)}function LH(f){if(f==null)return 0;if(zr(f))return uv(f)?Nu(f):f.length;var v=dr(f);return v==B||v==ae?f.size:Jy(f).length}function OH(f,v,w){var C=gt(f)?Oy:E4;return w&&Tr(f,v,w)&&(v=n),C(f,tt(v,3))}var kH=At(function(f,v){if(f==null)return[];var w=v.length;return w>1&&Tr(f,v[0],v[1])?v=[]:w>2&&Tr(v[0],v[1],v[2])&&(v=[v[0]]),lE(f,or(v,1),[])}),ov=vB||function(){return ir.Date.now()};function NH(f,v){if(typeof v!="function")throw new Li(a);return f=bt(f),function(){if(--f<1)return v.apply(this,arguments)}}function nA(f,v,w){return v=w?n:v,v=f&&v==null?f.length:v,ma(f,M,n,n,n,n,v)}function rA(f,v){var w;if(typeof v!="function")throw new Li(a);return f=bt(f),function(){return--f>0&&(w=v.apply(this,arguments)),f<=1&&(v=n),w}}var S_=At(function(f,v,w){var C=m;if(w.length){var A=as(w,Gu(S_));C|=E}return ma(f,C,v,w,A)}),iA=At(function(f,v,w){var C=m|y;if(w.length){var A=as(w,Gu(iA));C|=E}return ma(v,C,f,w,A)});function oA(f,v,w){v=w?n:v;var C=ma(f,S,n,n,n,n,n,v);return C.placeholder=oA.placeholder,C}function aA(f,v,w){v=w?n:v;var C=ma(f,x,n,n,n,n,n,v);return C.placeholder=aA.placeholder,C}function sA(f,v,w){var C,A,I,U,z,ee,ve=0,ge=!1,Se=!1,Oe=!0;if(typeof f!="function")throw new Li(a);v=$i(v)||0,En(w)&&(ge=!!w.leading,Se="maxWait"in w,I=Se?qn($i(w.maxWait)||0,v):I,Oe="trailing"in w?!!w.trailing:Oe);function We($n){var so=C,Sa=A;return C=A=n,ve=$n,U=f.apply(Sa,so),U}function rt($n){return ve=$n,z=Lf(Pt,v),ge?We($n):U}function Ct($n){var so=$n-ee,Sa=$n-ve,EA=v-so;return Se?hr(EA,I-Sa):EA}function it($n){var so=$n-ee,Sa=$n-ve;return ee===n||so>=v||so<0||Se&&Sa>=I}function Pt(){var $n=ov();if(it($n))return Ot($n);z=Lf(Pt,Ct($n))}function Ot($n){return z=n,Oe&&C?We($n):(C=A=n,U)}function hi(){z!==n&&mE(z),ve=0,C=ee=A=z=n}function Er(){return z===n?U:Ot(ov())}function di(){var $n=ov(),so=it($n);if(C=arguments,A=this,ee=$n,so){if(z===n)return rt(ee);if(Se)return mE(z),z=Lf(Pt,v),We(ee)}return z===n&&(z=Lf(Pt,v)),U}return di.cancel=hi,di.flush=Er,di}var FH=At(function(f,v){return KT(f,1,v)}),$H=At(function(f,v,w){return KT(f,$i(v)||0,w)});function BH(f){return ma(f,L)}function av(f,v){if(typeof f!="function"||v!=null&&typeof v!="function")throw new Li(a);var w=function(){var C=arguments,A=v?v.apply(this,C):C[0],I=w.cache;if(I.has(A))return I.get(A);var U=f.apply(this,C);return w.cache=I.set(A,U)||I,U};return w.cache=new(av.Cache||va),w}av.Cache=va;function sv(f){if(typeof f!="function")throw new Li(a);return function(){var v=arguments;switch(v.length){case 0:return!f.call(this);case 1:return!f.call(this,v[0]);case 2:return!f.call(this,v[0],v[1]);case 3:return!f.call(this,v[0],v[1],v[2])}return!f.apply(this,v)}}function VH(f){return rA(2,f)}var HH=A4(function(f,v){v=v.length==1&>(v[0])?Sn(v[0],ui(tt())):Sn(or(v,1),ui(tt()));var w=v.length;return At(function(C){for(var A=-1,I=hr(C.length,w);++A=v}),yl=tE(function(){return arguments}())?tE:function(f){return Dn(f)&&en.call(f,"callee")&&!HT.call(f,"callee")},gt=le.isArray,nU=ST?ui(ST):c4;function zr(f){return f!=null&&lv(f.length)&&!wa(f)}function Fn(f){return Dn(f)&&zr(f)}function rU(f){return f===!0||f===!1||Dn(f)&&Cr(f)==Te}var hs=mB||O_,iU=xT?ui(xT):f4;function oU(f){return Dn(f)&&f.nodeType===1&&!Of(f)}function aU(f){if(f==null)return!0;if(zr(f)&&(gt(f)||typeof f=="string"||typeof f.splice=="function"||hs(f)||Wu(f)||yl(f)))return!f.length;var v=dr(f);if(v==B||v==ae)return!f.size;if(If(f))return!Jy(f).length;for(var w in f)if(en.call(f,w))return!1;return!0}function sU(f,v){return Rf(f,v)}function lU(f,v,w){w=typeof w=="function"?w:n;var C=w?w(f,v):n;return C===n?Rf(f,v,n,w):!!C}function C_(f){if(!Dn(f))return!1;var v=Cr(f);return v==Ee||v==xe||typeof f.message=="string"&&typeof f.name=="string"&&!Of(f)}function uU(f){return typeof f=="number"&&zT(f)}function wa(f){if(!En(f))return!1;var v=Cr(f);return v==De||v==$||v==ue||v==V}function uA(f){return typeof f=="number"&&f==bt(f)}function lv(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=Q}function En(f){var v=typeof f;return f!=null&&(v=="object"||v=="function")}function Dn(f){return f!=null&&typeof f=="object"}var cA=CT?ui(CT):d4;function cU(f,v){return f===v||Zy(f,v,p_(v))}function fU(f,v,w){return w=typeof w=="function"?w:n,Zy(f,v,p_(v),w)}function hU(f){return fA(f)&&f!=+f}function dU(f){if(K4(f))throw new ht(o);return nE(f)}function pU(f){return f===null}function vU(f){return f==null}function fA(f){return typeof f=="number"||Dn(f)&&Cr(f)==ne}function Of(f){if(!Dn(f)||Cr(f)!=ce)return!1;var v=kp(f);if(v===null)return!0;var w=en.call(v,"constructor")&&v.constructor;return typeof w=="function"&&w instanceof w&&Dp.call(w)==fB}var T_=TT?ui(TT):p4;function gU(f){return uA(f)&&f>=-Q&&f<=Q}var hA=ET?ui(ET):v4;function uv(f){return typeof f=="string"||!gt(f)&&Dn(f)&&Cr(f)==pe}function fi(f){return typeof f=="symbol"||Dn(f)&&Cr(f)==Ce}var Wu=AT?ui(AT):g4;function mU(f){return f===n}function yU(f){return Dn(f)&&dr(f)==ie}function _U(f){return Dn(f)&&Cr(f)==Re}var wU=Qp(Qy),bU=Qp(function(f,v){return f<=v});function dA(f){if(!f)return[];if(zr(f))return uv(f)?io(f):Ur(f);if(bf&&f[bf])return Q$(f[bf]());var v=dr(f),w=v==B?Vy:v==ae?Mp:Yu;return w(f)}function ba(f){if(!f)return f===0?f:0;if(f=$i(f),f===oe||f===-oe){var v=f<0?-1:1;return v*fe}return f===f?f:0}function bt(f){var v=ba(f),w=v%1;return v===v?w?v-w:v:0}function pA(f){return f?pl(bt(f),0,be):0}function $i(f){if(typeof f=="number")return f;if(fi(f))return _e;if(En(f)){var v=typeof f.valueOf=="function"?f.valueOf():f;f=En(v)?v+"":v}if(typeof f!="string")return f===0?f:+f;f=LT(f);var w=Cy.test(f);return w||K.test(f)?N$(f.slice(2),w?2:8):Cp.test(f)?_e:+f}function vA(f){return ko(f,Gr(f))}function SU(f){return f?pl(bt(f),-Q,Q):f===0?f:0}function jt(f){return f==null?"":ci(f)}var xU=Uu(function(f,v){if(If(v)||zr(v)){ko(v,er(v),f);return}for(var w in v)en.call(v,w)&&Ef(f,w,v[w])}),gA=Uu(function(f,v){ko(v,Gr(v),f)}),cv=Uu(function(f,v,w,C){ko(v,Gr(v),f,C)}),CU=Uu(function(f,v,w,C){ko(v,er(v),f,C)}),TU=ya(Yy);function EU(f,v){var w=Hu(f);return v==null?w:qT(w,v)}var AU=At(function(f,v){f=un(f);var w=-1,C=v.length,A=C>2?v[2]:n;for(A&&Tr(v[0],v[1],A)&&(C=1);++w1),I}),ko(f,h_(f),w),C&&(w=ki(w,h|p|d,$4));for(var A=v.length;A--;)i_(w,v[A]);return w});function WU(f,v){return yA(f,sv(tt(v)))}var YU=ya(function(f,v){return f==null?{}:_4(f,v)});function yA(f,v){if(f==null)return{};var w=Sn(h_(f),function(C){return[C]});return v=tt(v),uE(f,w,function(C,A){return v(C,A[0])})}function jU(f,v,w){v=cs(v,f);var C=-1,A=v.length;for(A||(A=1,f=n);++Cv){var C=f;f=v,v=C}if(w||f%1||v%1){var A=GT();return hr(f+A*(v-f+k$("1e-"+((A+"").length-1))),v)}return t_(f,v)}var iz=zu(function(f,v,w){return v=v.toLowerCase(),f+(w?bA(v):v)});function bA(f){return M_(jt(f).toLowerCase())}function SA(f){return f=jt(f),f&&f.replace(Ue,q$).replace(T$,"")}function oz(f,v,w){f=jt(f),v=ci(v);var C=f.length;w=w===n?C:pl(bt(w),0,C);var A=w;return w-=v.length,w>=0&&f.slice(w,A)==v}function az(f){return f=jt(f),f&&Sy.test(f)?f.replace(ns,X$):f}function sz(f){return f=jt(f),f&&xy.test(f)?f.replace(Du,"\\$&"):f}var lz=zu(function(f,v,w){return f+(w?"-":"")+v.toLowerCase()}),uz=zu(function(f,v,w){return f+(w?" ":"")+v.toLowerCase()}),cz=TE("toLowerCase");function fz(f,v,w){f=jt(f),v=bt(v);var C=v?Nu(f):0;if(!v||C>=v)return f;var A=(v-C)/2;return Jp(Bp(A),w)+f+Jp($p(A),w)}function hz(f,v,w){f=jt(f),v=bt(v);var C=v?Nu(f):0;return v&&C>>0,w?(f=jt(f),f&&(typeof v=="string"||v!=null&&!T_(v))&&(v=ci(v),!v&&ku(f))?fs(io(f),0,w):f.split(v,w)):[]}var _z=zu(function(f,v,w){return f+(w?" ":"")+M_(v)});function wz(f,v,w){return f=jt(f),w=w==null?0:pl(bt(w),0,f.length),v=ci(v),f.slice(w,w+v.length)==v}function bz(f,v,w){var C=R.templateSettings;w&&Tr(f,v,w)&&(v=n),f=jt(f),v=cv({},v,C,IE);var A=cv({},v.imports,C.imports,IE),I=er(A),U=By(A,I),z,ee,ve=0,ge=v.interpolate||Qt,Se="__p += '",Oe=Hy((v.escape||Qt).source+"|"+ge.source+"|"+(ge===vp?xp:Qt).source+"|"+(v.evaluate||Qt).source+"|$","g"),We="//# sourceURL="+(en.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++P$+"]")+` +`;f.replace(Oe,function(it,Pt,Ot,hi,Er,di){return Ot||(Ot=hi),Se+=f.slice(ve,di).replace(Jn,K$),Pt&&(z=!0,Se+=`' + +__e(`+Pt+`) + +'`),Er&&(ee=!0,Se+=`'; +`+Er+`; +__p += '`),Ot&&(Se+=`' + +((__t = (`+Ot+`)) == null ? '' : __t) + +'`),ve=di+it.length,it}),Se+=`'; +`;var rt=en.call(v,"variable")&&v.variable;if(!rt)Se=`with (obj) { +`+Se+` +} +`;else if(ro.test(rt))throw new ht(s);Se=(ee?Se.replace(Mu,""):Se).replace(Ru,"$1").replace(Pu,"$1;"),Se="function("+(rt||"obj")+`) { +`+(rt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(z?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Se+`return __p +}`;var Ct=CA(function(){return zt(I,We+"return "+Se).apply(n,U)});if(Ct.source=Se,C_(Ct))throw Ct;return Ct}function Sz(f){return jt(f).toLowerCase()}function xz(f){return jt(f).toUpperCase()}function Cz(f,v,w){if(f=jt(f),f&&(w||v===n))return LT(f);if(!f||!(v=ci(v)))return f;var C=io(f),A=io(v),I=OT(C,A),U=kT(C,A)+1;return fs(C,I,U).join("")}function Tz(f,v,w){if(f=jt(f),f&&(w||v===n))return f.slice(0,FT(f)+1);if(!f||!(v=ci(v)))return f;var C=io(f),A=kT(C,io(v))+1;return fs(C,0,A).join("")}function Ez(f,v,w){if(f=jt(f),f&&(w||v===n))return f.replace(Hr,"");if(!f||!(v=ci(v)))return f;var C=io(f),A=OT(C,io(v));return fs(C,A).join("")}function Az(f,v){var w=k,C=N;if(En(v)){var A="separator"in v?v.separator:A;w="length"in v?bt(v.length):w,C="omission"in v?ci(v.omission):C}f=jt(f);var I=f.length;if(ku(f)){var U=io(f);I=U.length}if(w>=I)return f;var z=w-Nu(C);if(z<1)return C;var ee=U?fs(U,0,z).join(""):f.slice(0,z);if(A===n)return ee+C;if(U&&(z+=ee.length-z),T_(A)){if(f.slice(z).search(A)){var ve,ge=ee;for(A.global||(A=Hy(A.source,jt(mf.exec(A))+"g")),A.lastIndex=0;ve=A.exec(ge);)var Se=ve.index;ee=ee.slice(0,Se===n?z:Se)}}else if(f.indexOf(ci(A),z)!=z){var Oe=ee.lastIndexOf(A);Oe>-1&&(ee=ee.slice(0,Oe))}return ee+C}function Mz(f){return f=jt(f),f&&by.test(f)?f.replace(pp,rB):f}var Rz=zu(function(f,v,w){return f+(w?" ":"")+v.toUpperCase()}),M_=TE("toUpperCase");function xA(f,v,w){return f=jt(f),v=w?n:v,v===n?J$(f)?aB(f):z$(f):f.match(v)||[]}var CA=At(function(f,v){try{return li(f,n,v)}catch(w){return C_(w)?w:new ht(w)}}),Pz=ya(function(f,v){return Ii(v,function(w){w=No(w),ga(f,w,S_(f[w],f))}),f});function Dz(f){var v=f==null?0:f.length,w=tt();return f=v?Sn(f,function(C){if(typeof C[1]!="function")throw new Li(a);return[w(C[0]),C[1]]}):[],At(function(C){for(var A=-1;++AQ)return[];var w=be,C=hr(f,be);v=tt(v),f-=be;for(var A=$y(C,v);++w0||v<0)?new It(w):(f<0?w=w.takeRight(-f):f&&(w=w.drop(f)),v!==n&&(v=bt(v),w=v<0?w.dropRight(-v):w.take(v-f)),w)},It.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},It.prototype.toArray=function(){return this.take(be)},Oo(It.prototype,function(f,v){var w=/^(?:filter|find|map|reject)|While$/.test(v),C=/^(?:head|last)$/.test(v),A=R[C?"take"+(v=="last"?"Right":""):v],I=C||/^find/.test(v);A&&(R.prototype[v]=function(){var U=this.__wrapped__,z=C?[1]:arguments,ee=U instanceof It,ve=z[0],ge=ee||gt(U),Se=function(Pt){var Ot=A.apply(R,os([Pt],z));return C&&Oe?Ot[0]:Ot};ge&&w&&typeof ve=="function"&&ve.length!=1&&(ee=ge=!1);var Oe=this.__chain__,We=!!this.__actions__.length,rt=I&&!Oe,Ct=ee&&!We;if(!I&&ge){U=Ct?U:new It(this);var it=f.apply(U,z);return it.__actions__.push({func:rv,args:[Se],thisArg:n}),new Oi(it,Oe)}return rt&&Ct?f.apply(this,z):(it=this.thru(Se),rt?C?it.value()[0]:it.value():it)})}),Ii(["pop","push","shift","sort","splice","unshift"],function(f){var v=Rp[f],w=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",C=/^(?:pop|shift)$/.test(f);R.prototype[f]=function(){var A=arguments;if(C&&!this.__chain__){var I=this.value();return v.apply(gt(I)?I:[],A)}return this[w](function(U){return v.apply(gt(U)?U:[],A)})}}),Oo(It.prototype,function(f,v){var w=R[v];if(w){var C=w.name+"";en.call(Vu,C)||(Vu[C]=[]),Vu[C].push({name:v,func:w})}}),Vu[Kp(n,y).name]=[{name:"wrapper",func:n}],It.prototype.clone=MB,It.prototype.reverse=RB,It.prototype.value=PB,R.prototype.at=oH,R.prototype.chain=aH,R.prototype.commit=sH,R.prototype.next=lH,R.prototype.plant=cH,R.prototype.reverse=fH,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=hH,R.prototype.first=R.prototype.head,bf&&(R.prototype[bf]=uH),R},Fu=sB();cl?((cl.exports=Fu)._=Fu,Py._=Fu):ir._=Fu}).call(ZY)}(gh,gh.exports)),gh.exports}var Mo=JY();const QY=d0(Mo),ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function ej(e,t=0){return(ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]).toLowerCase()}let e1;const tj=new Uint8Array(16);function nj(){if(!e1){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");e1=crypto.getRandomValues.bind(crypto)}return e1(tj)}const rj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),cM={randomUUID:rj};function ij(e,t,n){if(cM.randomUUID&&!t&&!e)return cM.randomUUID();e=e||{};const r=e.random||(e.rng||nj)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ej(r)}const oa=Ht("setup/api-list",[]),Sr=Ht("setup/active-uuid",""),Xs=Ie(()=>oa.value.find(e=>e.uuid===Sr.value)),oj=e=>{const t=oa.value.find(r=>Mo.isEqual(Mo.omit(r,"uuid"),e));if(t){Sr.value=t.uuid;return}const n=ij();oa.value.push({...e,uuid:n}),Sr.value=n},XO=e=>{oa.value=oa.value.filter(t=>t.uuid!==e)},Zl="GLOBAL",yb=Ae([]),Ro=Ae({}),Dx=Ae({}),Zc=Ht("config/ipv6-map",{}),Dc=Ae([]),L0=e=>Dx.value[cu(e)],aj=e=>Zc.value[cu(e)],Ks=async()=>{const{data:e}=await Jq(),{data:t}=await eX(),n=e.proxies[Zl].all??[];Ro.value=e.proxies,yb.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==Zl&&!(r!=null&&r.hidden)}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),Dx.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>(uu.value&&fj(i)&&(Zc.value[r]=!0),[r,cj(i)]))),Dc.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},sj=async(e,t)=>{await Qq(e,t),Ro.value[e].now=t,Pg.value&&bo.value.filter(n=>n.chains.includes(e)).forEach(n=>H0(n.id)),Ks()},lj=async e=>{if(uu.value)try{const{data:n}=await MM(e,Ax,4e3);Zc.value[cu(e)]=n.delay>qo}catch{Zc.value[cu(e)]=!1}const{data:t}=await MM(e,Uh.value,zh.value);Dx.value[cu(e)]=t.delay},uj=async e=>{var t,n;if(uu.value)try{const{data:r}=await RM(e,Ax,4e3);(t=Ro.value[e].all)==null||t.forEach(i=>{Zc.value[cu(i)]=r[i]>qo})}catch{(n=Ro.value[e].all)==null||n.forEach(r=>{Zc.value[cu(r)]=!1})}await RM(e,Uh.value,zh.value),await Ks()},cj=e=>{var t;return((t=Mo.last(e.history))==null?void 0:t.delay)??0},fj=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[Ax])==null?void 0:r.history;return(((i=Mo.last(t))==null?void 0:i.delay)??0)>qo},cu=e=>{let t=Ro.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Ro.value[t.now];if(!n)return t.name;t=n}return t.name},nu=60,fu=new Array(nu).fill(0).map((e,t)=>({name:t,value:e})),Ix=Ae(0),mh=Ae([...fu]),kg=Ae([...fu]),Lx=Ae(0),Ox=Ae(0),yh=Ae([...fu]),_h=Ae([...fu]);let wv;const hj=()=>{wv==null||wv(),yh.value=[...fu],_h.value=[...fu],mh.value=[...fu];const{data:e,close:t}=hX(),n=Lt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();Ix.value=a.inuse,mh.value.push({value:a.inuse,name:s}),kg.value.push({value:bo.value.length,name:s}),mh.value=mh.value.slice(-1*nu),kg.value=kg.value.slice(-1*nu)}),{data:r,close:i}=dX(),o=Lt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();Lx.value=a.down,Ox.value=a.up,yh.value.push({value:a.down,name:s}),_h.value.push({value:a.up,name:s}),yh.value=yh.value.slice(-1*nu),_h.value=_h.value.slice(-1*nu)});wv=()=>{t(),i(),n(),o()}},dj=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],pj=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],vj=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],gj=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],fM=(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 mj(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?gj:vj:t.binary?pj:dj,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=fM(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=fM(Number(e),t.locale,a),u=n[s];return o+l+r+u}const mn=(e,t)=>mj(e,{binary:!1,...t}),KO=UY(),ZO=Ie(()=>KO.width.value>1280);Ie(()=>KO.width.value<640);const O0=e=>ta(e).locale(Ba.value).fromNow(),JO=e=>{const t=Ro.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},bv=e=>{if(JO(e))return-1;const t=L0(e);return t===0?1/0:t},QO=e=>{switch(e=[...e],Dg.value&&(e=e.filter(t=>JO(t)||L0(t)>0)),Rg.value){case Os.DEFAULT:return e;case Os.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case Os.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case Os.LATENCY_ASC:return e.sort((t,n)=>bv(t)-bv(n));case Os.LATENCY_DESC:return e.sort((t,n)=>bv(n)-bv(t))}},xm=e=>{const t=e.includes(":");for(const n in _i.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return _i.value[n]}else if(e===n||t&&e.endsWith(n))return _i.value[n];return e},ek=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",tk=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name +
+ ${e.seriesName} + (${ta(e.data.name).format("HH:mm:ss")}): ${mn(e.data.value,{binary:r})}${n} + `},hM=()=>{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)},Cm=()=>{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()},_u=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`,wh=e=>e===qo?"":et=>{const n=yj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Io=e=>(e=e.toLowerCase(),t=>k0(t)===e),N0=e=>t=>typeof t===e,{isArray:af}=Array,Id=N0("undefined");function _j(e){return e!==null&&!Id(e)&&e.constructor!==null&&!Id(e.constructor)&&Ti(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rk=Io("ArrayBuffer");function wj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rk(e.buffer),t}const bj=N0("string"),Ti=N0("function"),ik=N0("number"),F0=e=>e!==null&&typeof e=="object",Sj=e=>e===!0||e===!1,Ng=e=>{if(k0(e)!=="object")return!1;const t=kx(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},xj=Io("Date"),Cj=Io("File"),Tj=Io("Blob"),Ej=Io("FileList"),Aj=e=>F0(e)&&Ti(e.pipe),Mj=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ti(e.append)&&((t=k0(e))==="formdata"||t==="object"&&Ti(e.toString)&&e.toString()==="[object FormData]"))},Rj=Io("URLSearchParams"),[Pj,Dj,Ij,Lj]=["ReadableStream","Request","Response","Headers"].map(Io),Oj=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ip(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),af(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ru=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ak=e=>!Id(e)&&e!==ru;function _b(){const{caseless:e}=ak(this)&&this||{},t={},n=(r,i)=>{const o=e&&ok(t,i)||i;Ng(t[o])&&Ng(r)?t[o]=_b(t[o],r):Ng(r)?t[o]=_b({},r):af(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(ip(t,(i,o)=>{n&&Ti(i)?e[o]=nk(i,n):e[o]=i},{allOwnKeys:r}),e),Nj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Fj=(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)},$j=(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&&kx(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Bj=(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},Vj=e=>{if(!e)return null;if(af(e))return e;let t=e.length;if(!ik(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Hj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kx(Uint8Array)),Uj=(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])}},zj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Gj=Io("HTMLFormElement"),Wj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),dM=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yj=Io("RegExp"),sk=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ip(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},jj=e=>{sk(e,(t,n)=>{if(Ti(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ti(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+"'")})}})},qj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return af(e)?r(e):r(String(e).split(t)),n},Xj=()=>{},Kj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,t1="abcdefghijklmnopqrstuvwxyz",pM="0123456789",lk={DIGIT:pM,ALPHA:t1,ALPHA_DIGIT:t1+t1.toUpperCase()+pM},Zj=(e=16,t=lk.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Jj(e){return!!(e&&Ti(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Qj=e=>{const t=new Array(10),n=(r,i)=>{if(F0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=af(r)?[]:{};return ip(r,(a,s)=>{const l=n(a,i+1);!Id(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},eq=Io("AsyncFunction"),tq=e=>e&&(F0(e)||Ti(e))&&Ti(e.then)&&Ti(e.catch),uk=((e,t)=>e?setImmediate:t?((n,r)=>(ru.addEventListener("message",({source:i,data:o})=>{i===ru&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ru.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ti(ru.postMessage)),nq=typeof queueMicrotask<"u"?queueMicrotask.bind(ru):typeof process<"u"&&process.nextTick||uk,he={isArray:af,isArrayBuffer:rk,isBuffer:_j,isFormData:Mj,isArrayBufferView:wj,isString:bj,isNumber:ik,isBoolean:Sj,isObject:F0,isPlainObject:Ng,isReadableStream:Pj,isRequest:Dj,isResponse:Ij,isHeaders:Lj,isUndefined:Id,isDate:xj,isFile:Cj,isBlob:Tj,isRegExp:Yj,isFunction:Ti,isStream:Aj,isURLSearchParams:Rj,isTypedArray:Hj,isFileList:Ej,forEach:ip,merge:_b,extend:kj,trim:Oj,stripBOM:Nj,inherits:Fj,toFlatObject:$j,kindOf:k0,kindOfTest:Io,endsWith:Bj,toArray:Vj,forEachEntry:Uj,matchAll:zj,isHTMLForm:Gj,hasOwnProperty:dM,hasOwnProp:dM,reduceDescriptors:sk,freezeMethods:jj,toObjectSet:qj,toCamelCase:Wj,noop:Xj,toFiniteNumber:Kj,findKey:ok,global:ru,isContextDefined:ak,ALPHABET:lk,generateString:Zj,isSpecCompliantForm:Jj,toJSONObject:Qj,isAsyncFn:eq,isThenable:tq,setImmediate:uk,asap:nq};function mt(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)}he.inherits(mt,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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const ck=mt.prototype,fk={};["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=>{fk[e]={value:e}});Object.defineProperties(mt,fk);Object.defineProperty(ck,"isAxiosError",{value:!0});mt.from=(e,t,n,r,i,o)=>{const a=Object.create(ck);return he.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),mt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const rq=null;function wb(e){return he.isPlainObject(e)||he.isArray(e)}function hk(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function vM(e,t,n){return e?e.concat(t).map(function(i,o){return i=hk(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function iq(e){return he.isArray(e)&&!e.some(wb)}const oq=he.toFlatObject(he,{},null,function(t){return/^is[A-Z]/.test(t)});function $0(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,m){return!he.isUndefined(m[_])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(he.isDate(g))return g.toISOString();if(!l&&he.isBlob(g))throw new mt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(g)||he.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,_,m){let y=g;if(g&&!m&&typeof g=="object"){if(he.endsWith(_,"{}"))_=r?_:_.slice(0,-2),g=JSON.stringify(g);else if(he.isArray(g)&&iq(g)||(he.isFileList(g)||he.endsWith(_,"[]"))&&(y=he.toArray(g)))return _=hk(_),y.forEach(function(S,x){!(he.isUndefined(S)||S===null)&&t.append(a===!0?vM([_],x,o):a===null?_:_+"[]",u(S))}),!1}return wb(g)?!0:(t.append(vM(m,_,o),u(g)),!1)}const h=[],p=Object.assign(oq,{defaultVisitor:c,convertValue:u,isVisitable:wb});function d(g,_){if(!he.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(g),he.forEach(g,function(y,b){(!(he.isUndefined(y)||y===null)&&i.call(t,y,he.isString(b)?b.trim():b,_,p))===!0&&d(y,_?_.concat(b):[b])}),h.pop()}}if(!he.isObject(e))throw new TypeError("data must be an object");return d(e),t}function gM(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Nx(e,t){this._pairs=[],e&&$0(e,this,t)}const dk=Nx.prototype;dk.append=function(t,n){this._pairs.push([t,n])};dk.toString=function(t){const n=t?function(r){return t.call(this,r,gM)}:gM;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function aq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pk(e,t,n){if(!t)return e;const r=n&&n.encode||aq;he.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=he.isURLSearchParams(t)?t.toString():new Nx(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class mM{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){he.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},sq=typeof URLSearchParams<"u"?URLSearchParams:Nx,lq=typeof FormData<"u"?FormData:null,uq=typeof Blob<"u"?Blob:null,cq={isBrowser:!0,classes:{URLSearchParams:sq,FormData:lq,Blob:uq},protocols:["http","https","file","blob","url","data"]},Fx=typeof window<"u"&&typeof document<"u",bb=typeof navigator=="object"&&navigator||void 0,fq=Fx&&(!bb||["ReactNative","NativeScript","NS"].indexOf(bb.product)<0),hq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dq=Fx&&window.location.href||"http://localhost",pq=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fx,hasStandardBrowserEnv:fq,hasStandardBrowserWebWorkerEnv:hq,navigator:bb,origin:dq},Symbol.toStringTag,{value:"Module"})),br={...pq,...cq};function vq(e,t){return $0(e,new br.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return br.isNode&&he.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function gq(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mq(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&he.isArray(i)?i.length:a,l?(he.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!he.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&he.isArray(i[a])&&(i[a]=mq(i[a])),!s)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(r,i)=>{t(gq(r),i,n,0)}),n}return null}function yq(e,t,n){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const op={transitional:vk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=he.isObject(t);if(o&&he.isHTMLForm(t)&&(t=new FormData(t)),he.isFormData(t))return i?JSON.stringify(gk(t)):t;if(he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t)||he.isReadableStream(t))return t;if(he.isArrayBufferView(t))return t.buffer;if(he.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 vq(t,this.formSerializer).toString();if((s=he.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return $0(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),yq(t)):t}],transformResponse:[function(t){const n=this.transitional||op.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(t)||he.isReadableStream(t))return t;if(t&&he.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"?mt.from(s,mt.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:br.classes.FormData,Blob:br.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{op.headers[e]={}});const _q=he.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"]),wq=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]&&_q[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yM=Symbol("internals");function Vf(e){return e&&String(e).trim().toLowerCase()}function Fg(e){return e===!1||e==null?e:he.isArray(e)?e.map(Fg):String(e)}function bq(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 Sq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function n1(e,t,n,r,i){if(he.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!he.isString(t)){if(he.isString(r))return t.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(t)}}function xq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Cq(e,t){const n=he.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 ei{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Vf(l);if(!c)throw new Error("header name must be a non-empty string");const h=he.findKey(i,c);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||l]=Fg(s))}const a=(s,l)=>he.forEach(s,(u,c)=>o(u,c,l));if(he.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(he.isString(t)&&(t=t.trim())&&!Sq(t))a(wq(t),n);else if(he.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=Vf(t),t){const r=he.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return bq(i);if(he.isFunction(n))return n.call(this,i,r);if(he.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vf(t),t){const r=he.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||n1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Vf(a),a){const s=he.findKey(r,a);s&&(!n||n1(r,r[s],s,n))&&(delete r[s],i=!0)}}return he.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||n1(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return he.forEach(this,(i,o)=>{const a=he.findKey(r,o);if(a){n[a]=Fg(i),delete n[o];return}const s=t?xq(o):String(o).trim();s!==o&&delete n[o],n[s]=Fg(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return he.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&he.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[yM]=this[yM]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Vf(a);r[s]||(Cq(i,a),r[s]=!0)}return he.isArray(t)?t.forEach(o):o(t),this}}ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(ei.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});he.freezeMethods(ei);function r1(e,t){const n=this||op,r=t||n,i=ei.from(r.headers);let o=r.data;return he.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function mk(e){return!!(e&&e.__CANCEL__)}function sf(e,t,n){mt.call(this,e??"canceled",mt.ERR_CANCELED,t,n),this.name="CanceledError"}he.inherits(sf,mt,{__CANCEL__:!0});function yk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new mt("Request failed with status code "+n.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tq(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Eq(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 h=o,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),h=c-n;h>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-h)))},()=>i&&a(i)]}const Tm=(e,t,n=3)=>{let r=0;const i=Eq(50,250);return Aq(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const h={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(h)},n)},_M=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wM=e=>(...t)=>he.asap(()=>e(...t)),Mq=br.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,br.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,Rq=br.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),he.isString(r)&&a.push("path="+r),he.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 Pq(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dq(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _k(e,t){return e&&!Pq(t)?Dq(e,t):t}const bM=e=>e instanceof ei?{...e}:e;function wu(e,t){t=t||{};const n={};function r(u,c,h,p){return he.isPlainObject(u)&&he.isPlainObject(c)?he.merge.call({caseless:p},u,c):he.isPlainObject(c)?he.merge({},c):he.isArray(c)?c.slice():c}function i(u,c,h,p){if(he.isUndefined(c)){if(!he.isUndefined(u))return r(void 0,u,h,p)}else return r(u,c,h,p)}function o(u,c){if(!he.isUndefined(c))return r(void 0,c)}function a(u,c){if(he.isUndefined(c)){if(!he.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,h){if(h in t)return r(u,c);if(h 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,h)=>i(bM(u),bM(c),h,!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(c){const h=l[c]||i,p=h(e[c],t[c],c);he.isUndefined(p)&&h!==s||(n[c]=p)}),n}const wk=e=>{const t=wu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=ei.from(a),t.url=pk(_k(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(he.isFormData(n)){if(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(br.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||r!==!1&&Mq(t.url))){const u=i&&o&&Rq.read(o);u&&a.set(i,u)}return t},Iq=typeof XMLHttpRequest<"u",Lq=Iq&&function(e){return new Promise(function(n,r){const i=wk(e);let o=i.data;const a=ei.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,h,p,d,g;function _(){d&&d(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const S=ei.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};yk(function(M){n(M),_()},function(M){r(M),_()},E),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new mt("Request aborted",mt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new mt("Network Error",mt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||vk;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new mt(x,E.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,e,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&he.forEach(a.toJSON(),function(x,E){m.setRequestHeader(E,x)}),he.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([p,g]=Tm(u,!0),m.addEventListener("progress",p)),l&&m.upload&&([h,d]=Tm(l),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=S=>{m&&(r(!S||S.type?new sf(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=Tq(i.url);if(b&&br.protocols.indexOf(b)===-1){r(new mt("Unsupported protocol "+b+":",mt.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Oq=(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 mt?c:new sf(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new mt(`timeout ${t} of ms exceeded`,mt.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=()=>he.asap(s),l}},kq=function*(e,t){let n=e.byteLength;if(n{const i=Nq(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 h=c.byteLength;if(n){let p=o+=h;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},B0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bk=B0&&typeof ReadableStream=="function",$q=B0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Bq=bk&&Sk(()=>{let e=!1;const t=new Request(br.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),xM=64*1024,Sb=bk&&Sk(()=>he.isReadableStream(new Response("").body)),Em={stream:Sb&&(e=>e.body)};B0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Em[t]&&(Em[t]=he.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new mt(`Response type '${t}' is not supported`,mt.ERR_NOT_SUPPORT,r)})})})(new Response);const Vq=async e=>{if(e==null)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e))return(await new Request(br.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(he.isArrayBufferView(e)||he.isArrayBuffer(e))return e.byteLength;if(he.isURLSearchParams(e)&&(e=e+""),he.isString(e))return(await $q(e)).byteLength},Hq=async(e,t)=>{const n=he.toFiniteNumber(e.getContentLength());return n??Vq(t)},Uq=B0&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:h="same-origin",fetchOptions:p}=wk(e);u=u?(u+"").toLowerCase():"text";let d=Oq([i,o&&o.toAbortSignal()],a),g;const _=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&Bq&&n!=="get"&&n!=="head"&&(m=await Hq(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(he.isFormData(r)&&(T=E.headers.get("content-type"))&&c.setContentType(T),E.body){const[M,P]=_M(m,Tm(wM(l)));r=SM(E.body,xM,M,P)}}he.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;g=new Request(t,{...p,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?h:void 0});let b=await fetch(g);const S=Sb&&(u==="stream"||u==="response");if(Sb&&(s||S&&_)){const E={};["status","statusText","headers"].forEach(L=>{E[L]=b[L]});const T=he.toFiniteNumber(b.headers.get("content-length")),[M,P]=s&&_M(T,Tm(wM(s),!0))||[];b=new Response(SM(b.body,xM,M,()=>{P&&P(),_&&_()}),E)}u=u||"text";let x=await Em[he.findKey(Em,u)||"text"](b,e);return!S&&_&&_(),await new Promise((E,T)=>{yk(E,T,{data:x,headers:ei.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(y){throw _&&_(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new mt("Network Error",mt.ERR_NETWORK,e,g),{cause:y.cause||y}):mt.from(y,y&&y.code,e,g)}}),xb={http:rq,xhr:Lq,fetch:Uq};he.forEach(xb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const CM=e=>`- ${e}`,zq=e=>he.isFunction(e)||e===null||e===!1,xk={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : +`+o.map(CM).join(` +`):" "+CM(o[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:xb};function i1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sf(null,e)}function TM(e){return i1(e),e.headers=ei.from(e.headers),e.data=r1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xk.getAdapter(e.adapter||op.adapter)(e).then(function(r){return i1(e),r.data=r1.call(e,e.transformResponse,r),r.headers=ei.from(r.headers),r},function(r){return mk(r)||(i1(e),r&&r.response&&(r.response.data=r1.call(e,e.transformResponse,r.response),r.response.headers=ei.from(r.response.headers))),Promise.reject(r)})}const Ck="1.7.8",V0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{V0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const EM={};V0.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Ck+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new mt(i(a," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!EM[a]&&(EM[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}};V0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Gq(e,t,n){if(typeof e!="object")throw new mt("options must be an object",mt.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 mt("option "+o+" must be "+l,mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mt("Unknown option "+o,mt.ERR_BAD_OPTION)}}const $g={assertOptions:Gq,validators:V0},Bo=$g.validators;class hu{constructor(t){this.defaults=t,this.interceptors={request:new mM,response:new mM}}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=wu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&$g.assertOptions(r,{silentJSONParsing:Bo.transitional(Bo.boolean),forcedJSONParsing:Bo.transitional(Bo.boolean),clarifyTimeoutError:Bo.transitional(Bo.boolean)},!1),i!=null&&(he.isFunction(i)?n.paramsSerializer={serialize:i}:$g.assertOptions(i,{encode:Bo.function,serialize:Bo.function},!0)),$g.assertOptions(n,{baseUrl:Bo.spelling("baseURL"),withXsrfToken:Bo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&he.merge(o.common,o[n.method]);o&&he.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ei.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let c,h=0,p;if(!l){const g=[TM.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),p=g.length,c=Promise.resolve(n);h{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 sf(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 $x(function(i){t=i}),cancel:t}}}function Wq(e){return function(n){return e.apply(null,n)}}function Yq(e){return he.isObject(e)&&e.isAxiosError===!0}const Cb={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(Cb).forEach(([e,t])=>{Cb[t]=e});function Tk(e){const t=new hu(e),n=nk(hu.prototype.request,t);return he.extend(n,hu.prototype,t,{allOwnKeys:!0}),he.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Tk(wu(e,i))},n}const xt=Tk(op);xt.Axios=hu;xt.CanceledError=sf;xt.CancelToken=$x;xt.isCancel=mk;xt.VERSION=Ck;xt.toFormData=$0;xt.AxiosError=mt;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=Wq;xt.isAxiosError=Yq;xt.mergeConfig=wu;xt.AxiosHeaders=ei;xt.formToJSON=e=>gk(he.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=xk.getAdapter;xt.HttpStatusCode=Cb;xt.default=xt;var Bg={exports:{}},jq=Bg.exports,AM;function qq(){return AM||(AM=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(jq,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,h=document.createElement("div");h.addEventListener("open",function(d){s.onopen(d)}),h.addEventListener("close",function(d){s.onclose(d)}),h.addEventListener("connecting",function(d){s.onconnecting(d)}),h.addEventListener("message",function(d){s.onmessage(d)}),h.addEventListener("error",function(d){s.onerror(d)}),this.addEventListener=h.addEventListener.bind(h),this.removeEventListener=h.removeEventListener.bind(h),this.dispatchEvent=h.dispatchEvent.bind(h);function p(d,g){var _=document.createEvent("CustomEvent");return _.initCustomEvent(d,!1,!1,g),_}this.open=function(d){if(l=new WebSocket(s.url,r||[]),d){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else h.dispatchEvent(p("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var g=l,_=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,g.close(),c=!1},s.timeoutInterval);l.onopen=function(m){clearTimeout(_),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var y=p("open");y.isReconnect=d,d=!1,h.dispatchEvent(y)},l.onclose=function(m){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,h.dispatchEvent(p("close"));else{s.readyState=WebSocket.CONNECTING;var y=p("connecting");y.code=m.code,y.reason=m.reason,y.wasClean=m.wasClean,h.dispatchEvent(y),!d&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),h.dispatchEvent(p("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(m){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,m.data);var y=p("message");y.data=m.data,h.dispatchEvent(y)},l.onerror=function(m){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,m),h.dispatchEvent(p("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(d){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,d),l.send(d);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(d,g){typeof d>"u"&&(d=1e3),u=!0,l&&l.close(d,g)},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})}(Bg)),Bg.exports}var Xq=qq();const Kq=d0(Xq);xt.interceptors.request.use(e=>{var t;return e.baseURL=_u(Xs.value),e.headers.Authorization="Bearer "+((t=Xs.value)==null?void 0:t.password),e});xt.interceptors.response.use(null,e=>(e.status===401&&Sr.value?(XO(Sr.value),Sr.value=null,Po.push({name:Vt.setup}),Do(()=>{const{showTip:t}=D0();t("unauthorizedTip")})):e.status===404&&(Sr.value=null,Po.push({name:Vt.setup})),e));const Ld=Ae(),Ek=Ae(!1),Zq=()=>xt.get("/version"),qa=Ie(()=>{var e;return(e=Ld.value)==null?void 0:e.includes("sing-box")}),Ak=Ae("1.36.0");Lt(Xs,async e=>{if(e){const{data:t}=await Zq();if(Ld.value=t.version,qa.value)return;Ek.value=await vX()}},{immediate:!0});const Jq=()=>xt.get("/proxies"),Qq=(e,t)=>xt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),MM=(e,t,n)=>xt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),RM=(e,t,n)=>xt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),eX=()=>xt.get("/providers/proxies"),Mk=e=>xt.put(`/providers/proxies/${encodeURIComponent(e)}`),tX=e=>xt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),nX=()=>xt.get("/rules"),rX=()=>xt.get("/providers/rules"),Rk=e=>xt.put(`/providers/rules/${encodeURIComponent(e)}`),H0=e=>xt.delete(`/connections/${e}`),iX=()=>xt.get("/configs"),oX=e=>xt.patch("/configs",e),PM=()=>xt.post("/cache/fakeip/flush"),aX=()=>xt.put("/configs?reload=true",{path:"",payload:""}),Pk=()=>xt.post("/upgrade/ui"),sX=()=>xt.post("/upgrade"),lX=()=>xt.post("/restart"),uX=e=>xt.get("/dns/query",{params:e}),U0=(e,t)=>{const n=Xs.value,r=new URL(`${_u(n).replace("http","ws")}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([s,l])=>{r.searchParams.append(s,l)});const i=Ae(),o=new Kq(r.toString()),a=()=>{o.close()};return o.onmessage=({data:s})=>{i.value=JSON.parse(s)},{data:i,close:a}},cX=()=>U0("connections"),fX=(e={})=>U0("logs",e),hX=()=>U0("memory"),dX=()=>U0("traffic"),DM=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${_u(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},pX=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${Ak.value}`},IM=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))},vX=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(Ld.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(Ld.value)}const t=e[1],n=e[2];return t==="meta"?await IM("/releases/latest",n):t==="alpha"?await IM("/releases/tags/Prerelease-Alpha",n):!1},gX=()=>fetch("https://api-v3.speedtest.cn/ip"),mX=()=>fetch("https://api.ip.sb/geoip"),z0=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)}),yX=()=>z0("https://yt3.ggpht.com/favicon.ico"),_X=()=>z0("https://github.githubassets.com/favicon.ico"),wX=()=>z0("https://s1.music.126.net/style/favicon.ico"),bX=()=>z0("https://apps.bdimg.com/favicon.ico"),bo=Ae([]),Vg=Ae([]),Am=Ae(0),Mm=Ae(0);let Sv;const SX=()=>{Sv==null||Sv(),bo.value=[],Vg.value=[],Am.value=0,Mm.value=0;const e=cX(),t=Lt(e.data,n=>{var r;n&&(Am.value=n.downloadTotal,Mm.value=n.uploadTotal,!zg.value&&(Vg.value=[...Vg.value,...Mo.differenceWith(bo.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),bo.value=((r=n.connections)==null?void 0:r.map(i=>{const o=bo.value.find(a=>a.id===i.id);return o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});Sv=()=>{t(),e.close()}},jh=Ht("config/quick-filter-regex","direct|dns-out"),Hg=Ht("config/quick-filter-enabled",!1),Yl=Ae(La.ACTIVE),LM={[Xr.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[Xr.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[Xr.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[Xr.DOWNLOAD]:(e,t)=>t.download-e.download,[Xr.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[Xr.UPLOAD]:(e,t)=>t.upload-e.upload,[Xr.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[Xr.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[Xr.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[Xr.CONNECT_TIME]:(e,t)=>ta(t.start).valueOf()-ta(e.start).valueOf()},Ug=Ht("config/connection-sort-type",Xr.HOST),qh=Ae(""),zg=Ae(!1),Ic=Ie(()=>{let e=null;return Hg.value&&jh.value&&(e=new RegExp(jh.value,"i")),(Yl.value===La.ACTIVE?bo.value:Vg.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Pa.value&&t.metadata.sourceIP!==Pa.value?!1:qh.value?[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload].some(n=>n==null?void 0:n.includes(qh.value)):!0).sort((t,n)=>{const r=tu.value?LM[Ug.value](t,n):LM[Xr.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Pa=Ae(""),xX=Ie(()=>QY.uniq(bo.value.map(e=>e.metadata.sourceIP)).sort());function qu(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((d,g)=>r[g]!==d)))return i;r=c;let p;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(p=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const d=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-p)*100)/100,_=g/16,m=(y,b)=>{for(y=String(y);y.lengthMath.abs(e-t)<1,TX=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},EX=e=>e,AX=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},MX=(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)}},OM={passive:!0},RX=typeof window>"u"?!0:"onscrollend"in window,PX=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&RX?()=>{}:TX(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:h}=e.options;i=c?n.scrollLeft*(h&&-1||1):n.scrollTop,o(),t(i,u)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,OM),n.addEventListener("scrollend",l,OM),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},DX=(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"])},IX=(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 LX{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:EX,rangeExtractor:AX,onChange:()=>{},measureElement:DX,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=qu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.enda.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=qu(()=>[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=qu(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},s)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;cthis.options.debug}),this.calculateRange=qu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?OX({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=qu(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,i,o)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const a=o.key,s=this.elementsCache.get(a);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=qu(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;othis.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return o1(r[Dk(0,r.length-1,i=>o1(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&(n<=o?r="start":n>=o+i?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-i:r==="center"&&(n=n-i/2);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=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,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]=o1(this.getOffsetForIndex(n,s));CX(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 Dk=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or)t=i-1;else return i}return e>0?e-1:0};function OX({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=Dk(0,r,s=>e[s].start,n);let a=o;for(;aF(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Lt(()=>F(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;kA(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),kA(n)},{immediate:!0}),oL(r),n}function Ik(e){return kX(Ie(()=>({observeElementRect:MX,observeElementOffset:PX,scrollToFn:IX,...F(e)})))}const NX=["data-index"],Bx=Ze({__name:"VirtualScroller",props:{data:{}},setup(e){const t=Ae(null),n=e,r=Ie(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>55,overscan:24})),i=Ik(r),o=Ie(()=>i.value.getVirtualItems()),a=Ie(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return q(),re("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto overscroll-y-none p-2"},[D("div",{style:yo({height:`${a.value}px`}),class:"relative w-full max-sm:min-h-[calc(100%+1px)]"},[D("div",{class:"absolute left-0 top-0 w-full",style:yo({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(q(!0),re(Ge,null,Ft(o.value,h=>(q(),re("div",{key:h.key.toString(),"data-index":h.index,ref_for:!0,ref:s},[kh(l.$slots,"default",{item:l.data[h.index],index:h.index})],8,NX))),128))],4)],4)],512)}}}),kM=Ae(),NM=Ae(),Vx=()=>({infoConn:kM,modalRef:NM,handlerInfo:t=>{var n;kM.value=t,(n=NM.value)==null||n.showModal()}}),Hx="-",FX=e=>{const t=BX(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(Hx);return s[0]===""&&s.length!==1&&s.shift(),Lk(s,t)||$X(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},Lk=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Lk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Hx);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},FM=/^\[(.+)\]$/,$X=e=>{if(FM.test(e)){const t=FM.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},BX=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return HX(Object.entries(e.classGroups),n).forEach(([o,a])=>{Tb(a,r,o,t)}),r},Tb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:$M(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(VX(i)){Tb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{Tb(a,$M(t,o),n,r)})})},$M=(e,t)=>{let n=e;return t.split(Hx).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},VX=e=>e.isThemeGetter,HX=(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,UX=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)}}},Ok="!",zX=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,h;for(let m=0;mc?h-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:_}};return n?s=>n({className:s,parseClassName:a}):a},GX=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},WX=e=>({cache:UX(e.cacheSize),parseClassName:zX(e),...FX(e)}),YX=/\s+/,jX=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(YX);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:d}=n(u);let g=!!d,_=r(g?p.substring(0,d):p);if(!_){if(!g){s=u+(s.length>0?" "+s:s);continue}if(_=r(p),!_){s=u+(s.length>0?" "+s:s);continue}g=!1}const m=GX(c).join(":"),y=h?m+Ok:m,b=y+_;if(o.includes(b))continue;o.push(b);const S=i(_,g);for(let x=0;x0?" "+s:s)}return s};function qX(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rh(c),e());return n=WX(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=jX(l,n);return i(l,c),c}return function(){return o(qX.apply(null,arguments))}}const wn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Nk=/^\[(?:([a-z-]+):)?(.+)\]$/i,KX=/^\d+\/\d+$/,ZX=new Set(["px","full","screen"]),JX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QX=/\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$/,eK=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,tK=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nK=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ea=e=>Lc(e)||ZX.has(e)||KX.test(e),vs=e=>lf(e,"length",cK),Lc=e=>!!e&&!Number.isNaN(Number(e)),a1=e=>lf(e,"number",Lc),Hf=e=>!!e&&Number.isInteger(Number(e)),rK=e=>e.endsWith("%")&&Lc(e.slice(0,-1)),St=e=>Nk.test(e),gs=e=>JX.test(e),iK=new Set(["length","size","percentage"]),oK=e=>lf(e,iK,Fk),aK=e=>lf(e,"position",Fk),sK=new Set(["image","url"]),lK=e=>lf(e,sK,hK),uK=e=>lf(e,"",fK),Uf=()=>!0,lf=(e,t,n)=>{const r=Nk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},cK=e=>QX.test(e)&&!eK.test(e),Fk=()=>!1,fK=e=>tK.test(e),hK=e=>nK.test(e),dK=()=>{const e=wn("colors"),t=wn("spacing"),n=wn("blur"),r=wn("brightness"),i=wn("borderColor"),o=wn("borderRadius"),a=wn("borderSpacing"),s=wn("borderWidth"),l=wn("contrast"),u=wn("grayscale"),c=wn("hueRotate"),h=wn("invert"),p=wn("gap"),d=wn("gradientColorStops"),g=wn("gradientColorStopPositions"),_=wn("inset"),m=wn("margin"),y=wn("opacity"),b=wn("padding"),S=wn("saturate"),x=wn("scale"),E=wn("sepia"),T=wn("skew"),M=wn("space"),P=wn("translate"),L=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",St,t],H=()=>[St,t],te=()=>["",Ea,vs],W=()=>["auto",Lc,St],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",St],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Lc,St];return{cacheSize:500,separator:":",theme:{colors:[Uf],spacing:[Ea,vs],blur:["none","",gs,St],brightness:be(),borderColor:[e],borderRadius:["none","","full",gs,St],borderSpacing:H(),borderWidth:te(),contrast:be(),grayscale:fe(),hueRotate:be(),invert:fe(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[rK,vs],inset:N(),margin:N(),opacity:be(),padding:H(),saturate:be(),scale:be(),sepia:fe(),skew:be(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",St]}],container:["container"],columns:[{columns:[gs]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"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:[...X(),St]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hf,St]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",St]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",Hf,St]}],"grid-cols":[{"grid-cols":[Uf]}],"col-start-end":[{col:["auto",{span:["full",Hf,St]},St]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Uf]}],"row-start-end":[{row:["auto",{span:[Hf,St]},St]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",St]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",St]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",St,t]}],"min-w":[{"min-w":[St,t,"min","max","fit"]}],"max-w":[{"max-w":[St,t,"none","full","min","max","fit","prose",{screen:[gs]},gs]}],h:[{h:[St,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[St,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[St,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[St,t,"auto","min","max","fit"]}],"font-size":[{text:["base",gs,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",a1]}],"font-family":[{font:[Uf]}],"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",St]}],"line-clamp":[{"line-clamp":["none",Lc,a1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ea,St]}],"list-image":[{"list-image":["none",St]}],"list-style-type":[{list:["none","disc","decimal",St]}],"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:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ea,vs]}],"underline-offset":[{"underline-offset":["auto",Ea,St]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",St]}],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",St]}],"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:[...X(),aK]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",oK]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lK]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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:[...j(),"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:j()}],"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:["",...j()]}],"outline-offset":[{"outline-offset":[Ea,St]}],"outline-w":[{outline:[Ea,vs]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ea,vs]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",gs,uK]}],"shadow-color":[{shadow:[Uf]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",gs,St]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"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":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",St]}],duration:[{duration:be()}],ease:[{ease:["linear","in","out","in-out",St]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",St]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Hf,St]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"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",St]}],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",St]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",St]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ea,vs,a1]}],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"]}}},nn=XX(dK),pK=Ze({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=Vx();return()=>{const n=ye("span",{class:"flex-1"},null),r=ye("span",{class:"w-80 grow break-all text-sm tracking-tight text-primary/80 sm:text-base"},[e.conn.metadata.host||e.conn.metadata.destinationIP,ye("span",{class:"hidden sm:inline"},[Qe(":"),e.conn.metadata.destinationPort])]),i=ye("div",{class:"badge flex px-1 text-sm text-base-content"},[ye(K6,{class:"h-4 w-3"},null),ye("div",{class:"hidden w-16 text-right sm:inline"},[mn(e.conn.download),Qe(" |")," "]),ye("div",{class:"w-20 text-right"},[mn(e.conn.downloadSpeed),Qe("/s")])]),o=ye("div",{class:"badge hidden px-1 text-sm text-base-content 2xl:flex"},[ye(u2,{class:"h-4 w-3"},null),ye("div",{class:"w-16 text-right"},[mn(e.conn.upload),Qe(" | ")]),ye("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),Qe("/s")])]),a=ye("div",{class:"badge hidden px-1 text-sm text-base-content lg:flex"},[ye(u2,{class:"h-4 w-3"},null),ye("div",{class:"w-16 text-right"},[mn(e.conn.upload),Qe(" | ")]),ye("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),Qe("/s")])]),s=ye("div",{class:"flex w-12 gap-1"},[ye("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[ye(lO,{class:"h-4 w-4"},null)]),ye("button",{class:"btn btn-circle btn-xs",onClick:()=>H0(e.conn.id)},[ye(T0,{class:"h-4 w-4"},null)])]),l=e.conn.chains,u=Mo.first(l),c=Mo.last(l),h=ye("span",{class:"inline w-56 truncate text-sm"},[ye("span",{class:"hidden sm:inline"},[[...l].reverse().join("->")]),ye("span",{class:"inline sm:hidden"},[l.length>1?[c,u].join(" =>> "):u])]),p=ye("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),d=ye("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[ek(e.conn)]),g=ye("span",{class:nn("inline whitespace-nowrap text-right text-sm tracking-tight",Ba.value===wo.ZH_CN?"w-20":"w-32")},[O0(e.conn.start)]),_=ye("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,Qe(" | "),e.conn.metadata.network]),m=ye("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,Qe(" | "),e.conn.metadata.network]),y=e.conn.metadata.destinationIP||"remote-resolve",b=xm(e.conn.metadata.sourceIP),S=ye("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[ye("span",null,[b,Qe(":"),e.conn.metadata.sourcePort]),ye("span",null,[Qe("->")]),ye("span",null,[y,Qe(":"),e.conn.metadata.destinationPort])]),x=ye("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[ye("span",null,[b]),ye("span",null,[Qe("->")]),ye("span",null,[y])]);return ZO.value&&Lg.value?ye("div",{class:"card flex-row items-center justify-between gap-1 px-2 py-1"},[r,h,x,m,i,o,g,s]):ye("div",{class:"card gap-[1px] px-2 py-[1px]"},[ye("div",{class:"flex flex-row items-center gap-1 px-1"},[r,n,d,S,i,a]),ye("div",{class:"flex flex-row items-center gap-1 px-1"},[h,p,n,_,g,s])])}}}),vK={key:0,class:"card m-2 flex-row p-2 text-sm"},gK=Ze({__name:"ConnectionCardList",setup(e){return(t,n)=>F(Ic).length?(q(),Et(Bx,{key:1,data:F(Ic)},{default:Qr(({item:r})=>[ye(F(pK),{class:"mb-1",conn:r},null,8,["conn"])]),_:1},8,["data"])):(q(),re("div",vK,se(t.$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 $s(e,t){return typeof e=="function"?e(t):e}function Mi(e,t){return n=>{t.setState(r=>({...r,[e]:$s(n,r[e])}))}}function du(e){return e instanceof Function}function mK(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function $k(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 ot(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,h)=>r[h]!==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,h=Math.round((Date.now()-u)*100)/100,p=h/16,d=(g,_)=>{for(g=String(g);g.length<_;)g=" "+g;return g};console.info(`%c⏱ ${d(h,5)} /${d(c,5)} ms`,` + font-size: .6rem; + font-weight: bold; + color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function at(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 yK(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:ot(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),at(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function _K(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=p=>{let d=p;for(const _ of l.split(".")){var g;d=(g=d)==null?void 0:g[_]}return d}:c=p=>p[s.accessorKey]),!u)throw new Error;let h={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:ot(()=>[!0],()=>{var p;return[h,...(p=h.columns)==null?void 0:p.flatMap(d=>d.getFlatColumns())]},at(e.options,"debugColumns")),getLeafColumns:ot(()=>[e._getOrderColumnsFn()],p=>{var d;if((d=h.columns)!=null&&d.length){let g=h.columns.flatMap(_=>_.getLeafColumns());return p(g)}return[h]},at(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(h,e);return h}const pr="debugHeaders";function BM(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 wK={createTable:e=>{e.getHeaderGroups=ot(()=>[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(h=>n.find(p=>p.id===h)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(h=>n.find(p=>p.id===h)).filter(Boolean))!=null?a:[],u=n.filter(h=>!(r!=null&&r.includes(h.id))&&!(i!=null&&i.includes(h.id)));return xv(t,[...s,...u,...l],e)},at(e.options,pr)),e.getCenterHeaderGroups=ot(()=>[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))),xv(t,n,e,"center")),at(e.options,pr)),e.getLeftHeaderGroups=ot(()=>[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 xv(t,o,e,"left")},at(e.options,pr)),e.getRightHeaderGroups=ot(()=>[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 xv(t,o,e,"right")},at(e.options,pr)),e.getFooterGroups=ot(()=>[e.getHeaderGroups()],t=>[...t].reverse(),at(e.options,pr)),e.getLeftFooterGroups=ot(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),at(e.options,pr)),e.getCenterFooterGroups=ot(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),at(e.options,pr)),e.getRightFooterGroups=ot(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),at(e.options,pr)),e.getFlatHeaders=ot(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),at(e.options,pr)),e.getLeftFlatHeaders=ot(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),at(e.options,pr)),e.getCenterFlatHeaders=ot(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),at(e.options,pr)),e.getRightFlatHeaders=ot(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),at(e.options,pr)),e.getCenterLeafHeaders=ot(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),at(e.options,pr)),e.getLeftLeafHeaders=ot(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),at(e.options,pr)),e.getRightLeafHeaders=ot(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),at(e.options,pr)),e.getLeafHeaders=ot(()=>[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()},at(e.options,pr))}};function xv(e,t,n,r){var i,o;let a=0;const s=function(p,d){d===void 0&&(d=1),a=Math.max(a,d),p.filter(g=>g.getIsVisible()).forEach(g=>{var _;(_=g.columns)!=null&&_.length&&s(g.columns,d+1)},0)};s(e);let l=[];const u=(p,d)=>{const g={depth:d,id:[r,`${d}`].filter(Boolean).join("_"),headers:[]},_=[];p.forEach(m=>{const y=[..._].reverse()[0],b=m.column.depth===g.depth;let S,x=!1;if(b&&m.column.parent?S=m.column.parent:(S=m.column,x=!0),y&&(y==null?void 0:y.column)===S)y.subHeaders.push(m);else{const E=BM(n,S,{id:[r,d,S.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${_.filter(T=>T.column===S).length}`:void 0,depth:d,index:_.length});E.subHeaders.push(m),_.push(E)}g.headers.push(m),m.headerGroup=g}),l.push(g),d>0&&u(_,d-1)},c=t.map((p,d)=>BM(n,p,{depth:a,index:d}));u(c,a-1),l.reverse();const h=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let _=0,m=0,y=[0];g.subHeaders&&g.subHeaders.length?(y=[],h(g.subHeaders).forEach(S=>{let{colSpan:x,rowSpan:E}=S;_+=x,y.push(E)})):_=1;const b=Math.min(...y);return m=m+b,g.colSpan=_,g.rowSpan=m,{colSpan:_,rowSpan:m}});return h((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const Bk=(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:()=>$k(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:ot(()=>[e.getAllLeafColumns()],l=>l.map(u=>yK(e,s,u,u.id)),at(e.options,"debugRows")),_getAllCellsByColumnId:ot(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),at(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Vk=(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))};Vk.autoRemove=e=>Co(e);const Hk=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Hk.autoRemove=e=>Co(e);const Uk=(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())};Uk.autoRemove=e=>Co(e);const zk=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};zk.autoRemove=e=>Co(e)||!(e!=null&&e.length);const Gk=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});Gk.autoRemove=e=>Co(e)||!(e!=null&&e.length);const Wk=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});Wk.autoRemove=e=>Co(e)||!(e!=null&&e.length);const Yk=(e,t,n)=>e.getValue(t)===n;Yk.autoRemove=e=>Co(e);const jk=(e,t,n)=>e.getValue(t)==n;jk.autoRemove=e=>Co(e);const Ux=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Ux.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]};Ux.autoRemove=e=>Co(e)||Co(e[0])&&Co(e[1]);const Da={includesString:Vk,includesStringSensitive:Hk,equalsString:Uk,arrIncludes:zk,arrIncludesAll:Gk,arrIncludesSome:Wk,equals:Yk,weakEquals:jk,inNumberRange:Ux};function Co(e){return e==null||e===""}const SK={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Mi("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"?Da.includesString:typeof r=="number"?Da.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Da.equals:Array.isArray(r)?Da.arrIncludes:Da.weakEquals},e.getFilterFn=()=>{var n,r;return du(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:Da[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=$s(n,o?o.value:void 0);if(VM(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=$s(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(VM(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 VM(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const xK=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),CK=(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},TK=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},EK=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},MK=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!mK(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},RK=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),PK=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,DK=(e,t)=>t.length,s1={sum:xK,min:CK,max:TK,extent:EK,mean:AK,median:MK,unique:RK,uniqueCount:PK,count:DK},IK={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:Mi("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 s1.sum;if(Object.prototype.toString.call(r)==="[object Date]")return s1.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return du(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:s1[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 LK(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 OK={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Mi("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ot(n=>[Xh(t,n)],n=>n.findIndex(r=>r.id===e.id),at(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=Xh(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=Xh(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=ot(()=>[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 LK(o,n,r)},at(e.options,"debugTable"))}},l1=()=>({left:[],right:[]}),kK={getInitialState:e=>({columnPinning:l1(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Mi("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(h=>!(r!=null&&r.includes(h))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(h=>!(r!=null&&r.includes(h))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(h=>!(r!=null&&r.includes(h))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(h=>!(r!=null&&r.includes(h)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(h=>!(r!=null&&r.includes(h))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(h=>!(r!=null&&r.includes(h)))}})},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=ot(()=>[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))},at(t.options,"debugRows")),e.getLeftVisibleCells=ot(()=>[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"})),at(t.options,"debugRows")),e.getRightVisibleCells=ot(()=>[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"})),at(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?l1():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:l1())},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=ot(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),at(e.options,"debugColumns")),e.getRightLeafColumns=ot(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),at(e.options,"debugColumns")),e.getCenterLeafColumns=ot(()=>[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))},at(e.options,"debugColumns"))}},Cv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},u1=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),NK={getDefaultColumnDef:()=>Cv,getInitialState:e=>({columnSizing:{},columnSizingInfo:u1(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Mi("columnSizing",e),onColumnSizingInfoChange:Mi("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:Cv.minSize,(r=o??e.columnDef.size)!=null?r:Cv.size),(i=e.columnDef.maxSize)!=null?i:Cv.maxSize)},e.getStart=ot(n=>[n,Xh(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),at(t.options,"debugColumns")),e.getAfter=ot(n=>[n,Xh(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),at(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(),c1(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=c1(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(y,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var x,E;const T=t.options.columnResizeDirection==="rtl"?-1:1,M=(b-((x=S==null?void 0:S.startOffset)!=null?x:0))*T,P=Math.max(M/((E=S==null?void 0:S.startSize)!=null?E:0),-.999999);return S.columnSizingStart.forEach(L=>{let[k,N]=L;u[k]=Math.round(Math.max(N+N*P,0)*100)/100}),{...S,deltaOffset:M,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(S=>({...S,...u})))},h=y=>c("move",y),p=y=>{c("end",y),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=n||typeof document<"u"?document:null,g={moveHandler:y=>h(y.clientX),upHandler:y=>{d==null||d.removeEventListener("mousemove",g.moveHandler),d==null||d.removeEventListener("mouseup",g.upHandler),p(y.clientX)}},_={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),h(y.touches[0].clientX),!1),upHandler:y=>{var b;d==null||d.removeEventListener("touchmove",_.moveHandler),d==null||d.removeEventListener("touchend",_.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),p((b=y.touches[0])==null?void 0:b.clientX)}},m=FK()?{passive:!1}:!1;c1(o)?(d==null||d.addEventListener("touchmove",_.moveHandler,m),d==null||d.addEventListener("touchend",_.upHandler,m)):(d==null||d.addEventListener("mousemove",g.moveHandler,m),d==null||d.addEventListener("mouseup",g.upHandler,m)),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?u1():(n=e.initialState.columnSizingInfo)!=null?n:u1())},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 Tv=null;function FK(){if(typeof Tv=="boolean")return Tv;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 Tv=e,Tv}function c1(e){return e.type==="touchstart"}const $K={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Mi("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=ot(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),at(t.options,"debugRows")),e.getVisibleCells=ot(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],at(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>ot(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),at(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 Xh(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const BK={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()}}},VK={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Mi("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=()=>Da.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return du(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Da[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},HK={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Mi("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()}}}},Eb=0,Ab=10,f1=()=>({pageIndex:Eb,pageSize:Ab}),UK={getInitialState:e=>({...e,pagination:{...f1(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Mi("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=>$s(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?f1():(i=e.initialState.pagination)!=null?i:f1())},e.setPageIndex=r=>{e.setPagination(i=>{let o=$s(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?Eb:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:Eb)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?Ab:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:Ab)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,$s(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=$s(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=ot(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},at(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},h1=()=>({top:[],bottom:[]}),zK={getInitialState:e=>({rowPinning:h1(),...e}),getDefaultOptions:e=>({onRowPinningChange:Mi("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 h,p;return{top:((h=l==null?void 0:l.top)!=null?h:[]).filter(_=>!(s!=null&&s.has(_))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(_=>!(s!=null&&s.has(_))),...Array.from(s)]}}if(n==="top"){var d,g;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(_=>!(s!=null&&s.has(_))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(_=>!(s!=null&&s.has(_)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(_=>!(s!=null&&s.has(_))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(_=>!(s!=null&&s.has(_)))}})},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?h1():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:h1())},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=ot(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),at(e.options,"debugRows")),e.getBottomRows=ot(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),at(e.options,"debugRows")),e.getCenterRows=ot(()=>[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))},at(e.options,"debugRows"))}},GK={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Mi("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=>{Mb(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ot(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?d1(e,n):{rows:[],flatRows:[],rowsById:{}},at(e.options,"debugTable")),e.getFilteredSelectedRowModel=ot(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?d1(e,n):{rows:[],flatRows:[],rowsById:{}},at(e.options,"debugTable")),e.getGroupedSelectedRowModel=ot(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?d1(e,n):{rows:[],flatRows:[],rowsById:{}},at(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return Mb(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return zx(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Rb(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Rb(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)}}}},Mb=(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=>Mb(e,s.id,n,r,i))};function d1(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=zx(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 zx(e,t){var n;return(n=t[e.id])!=null?n:!1}function Rb(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()&&(zx(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=Rb(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const Pb=/([0-9]+)/gm,WK=(e,t,n)=>qk(Zs(e.getValue(n)).toLowerCase(),Zs(t.getValue(n)).toLowerCase()),YK=(e,t,n)=>qk(Zs(e.getValue(n)),Zs(t.getValue(n))),jK=(e,t,n)=>Gx(Zs(e.getValue(n)).toLowerCase(),Zs(t.getValue(n)).toLowerCase()),qK=(e,t,n)=>Gx(Zs(e.getValue(n)),Zs(t.getValue(n))),XK=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rGx(e.getValue(n),t.getValue(n));function Gx(e,t){return e===t?0:e>t?1:-1}function Zs(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function qk(e,t){const n=e.split(Pb).filter(Boolean),r=t.split(Pb).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 zf={alphanumeric:WK,alphanumericCaseSensitive:YK,text:jK,textCaseSensitive:qK,datetime:XK,basic:KK},ZK={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Mi("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 zf.datetime;if(typeof o=="string"&&(r=!0,o.split(Pb).length>1))return zf.alphanumeric}return r?zf.text:zf.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 du(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:zf[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(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.id===e.id);let u=[],c,h=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 p;u=[...a,{id:e.id,desc:h}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:h}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:h}];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())}},JK=[wK,$K,OK,kK,bK,SK,BK,VK,ZK,IK,HK,UK,zK,GK,NK];function QK(e){var t,n;const r=[...JK,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((p,d)=>Object.assign(p,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),a=p=>i.options.mergeOptions?i.options.mergeOptions(o,p):{...o,...p};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(p=>{var d;l=(d=p.getInitialState==null?void 0:p.getInitialState(l))!=null?d:l});const u=[];let c=!1;const h={_features:r,options:{...o,...e},initialState:l,_queue:p=>{u.push(p),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:p=>{const d=$s(p,i.options);i.options=a(d)},getState:()=>i.options.state,setState:p=>{i.options.onStateChange==null||i.options.onStateChange(p)},_getRowId:(p,d,g)=>{var _;return(_=i.options.getRowId==null?void 0:i.options.getRowId(p,d,g))!=null?_:`${g?[g.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(p,d)=>{let g=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[p];if(!g&&(g=i.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:ot(()=>[i.options.defaultColumn],p=>{var d;return p=(d=p)!=null?d:{},{header:g=>{const _=g.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:g=>{var _,m;return(_=(m=g.renderValue())==null||m.toString==null?void 0:m.toString())!=null?_:null},...i._features.reduce((g,_)=>Object.assign(g,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...p}},at(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:ot(()=>[i._getColumnDefs()],p=>{const d=function(g,_,m){return m===void 0&&(m=0),g.map(y=>{const b=_K(i,y,m,_),S=y;return b.columns=S.columns?d(S.columns,b,m+1):[],b})};return d(p)},at(e,"debugColumns")),getAllFlatColumns:ot(()=>[i.getAllColumns()],p=>p.flatMap(d=>d.getFlatColumns()),at(e,"debugColumns")),_getAllFlatColumnsById:ot(()=>[i.getAllFlatColumns()],p=>p.reduce((d,g)=>(d[g.id]=g,d),{}),at(e,"debugColumns")),getAllLeafColumns:ot(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(p,d)=>{let g=p.flatMap(_=>_.getLeafColumns());return d(g)},at(e,"debugColumns")),getColumn:p=>i._getAllFlatColumnsById()[p]};Object.assign(i,h);for(let p=0;pot(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function tZ(){return e=>ot(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:nZ(n),at(e.options,"debugTable"))}function nZ(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 rZ(){return e=>ot(()=>[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(g=>(g.depth=u,i.push(g),o[g.id]=g,g.subRows&&(g.subRows=a(g.subRows,u+1,g.id)),g));const h=r[u],p=iZ(l,h);return Array.from(p.entries()).map((g,_)=>{let[m,y]=g,b=`${h}:${m}`;b=c?`${c}>${b}`:b;const S=a(y,u+1,b);S.forEach(T=>{T.parentId=b});const x=u?$k(y,T=>T.subRows):y,E=Bk(e,b,x[0].original,_,u,void 0,c);return Object.assign(E,{groupingColumnId:h,groupingValue:m,subRows:S,leafRows:x,getValue:T=>{if(r.includes(T)){if(E._valuesCache.hasOwnProperty(T))return E._valuesCache[T];if(y[0]){var M;E._valuesCache[T]=(M=y[0].getValue(T))!=null?M:void 0}return E._valuesCache[T]}if(E._groupingValuesCache.hasOwnProperty(T))return E._groupingValuesCache[T];const P=e.getColumn(T),L=P==null?void 0:P.getAggregationFn();if(L)return E._groupingValuesCache[T]=L(T,x,y),E._groupingValuesCache[T]}}),S.forEach(T=>{i.push(T),o[T.id]=T}),E})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},at(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function iZ(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 oZ(){return e=>ot(()=>[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,h)=>{for(let d=0;d{var h;i.push(c),(h=c.subRows)!=null&&h.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},at(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 Ev(){return!0}const aZ=Symbol("merge-proxy"),sZ={get(e,t,n){return t===aZ?n:e.get(t)},has(e,t){return e.has(t)},set:Ev,deleteProperty:Ev,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ev,deleteProperty:Ev}},ownKeys(e){return e.keys()}};function p1(e){return"value"in e?e.value:e}function bh(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=p1(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in p1(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?jo(e.render,e.props):e.render});function HM(e){return bh(e,{data:F(e.data)})}function lZ(e){const t=et(e.data),n=bh({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:bh(o,a)}},t?HM(e):e),r=QK(n);if(t){const o=Jd(e.data);Lt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Ae(r.initialState);return cx(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return bh(o,t?HM(e):e,{state:bh(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 uZ=["colSpan","onClick"],cZ={class:"flex items-center gap-1"},fZ=["onClick"],hZ=["onClick"],dZ=Ze({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=Vx(),{t:n}=ia(),r=[{header:()=>n("details"),enableSorting:!1,id:Bt.Details,cell:({row:m})=>jo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=m.original;t(y)}},[jo(lO,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:Bt.Close,cell:({row:m})=>jo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=m.original;H0(y.id)}},[jo(T0,{class:"h-4 w-4"})])},{header:()=>n("type"),id:Bt.Type,accessorFn:m=>`${m.metadata.type} | ${m.metadata.network}`},{header:()=>n("process"),id:Bt.Process,accessorFn:m=>ek(m)},{header:()=>n("host"),id:Bt.Host,accessorFn:m=>`${m.metadata.host?m.metadata.host:m.metadata.destinationIP}:${m.metadata.destinationPort}`},{header:()=>n("rule"),id:Bt.Rule,accessorFn:m=>m.rulePayload?`${m.rule} -> ${m.rulePayload}`:m.rule},{header:()=>n("chains"),id:Bt.Chains,accessorFn:m=>m.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:Bt.ConnectTime,accessorFn:m=>O0(m.start),sortingFn:(m,y)=>ta(y.original.start).valueOf()-ta(m.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:Bt.DlSpeed,accessorFn:m=>`${mn(m.downloadSpeed)}/s`,sortingFn:(m,y)=>m.original.downloadSpeed-y.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:Bt.UlSpeed,accessorFn:m=>`${mn(m.uploadSpeed)}/s`,sortingFn:(m,y)=>m.original.uploadSpeed-y.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:Bt.Download,accessorFn:m=>mn(m.download),sortingFn:(m,y)=>m.original.download-y.original.download},{header:()=>n("ul"),enableGrouping:!1,id:Bt.Upload,accessorFn:m=>mn(m.upload),sortingFn:(m,y)=>m.original.upload-y.original.upload},{header:()=>n("sourceIP"),id:Bt.SourceIP,accessorFn:m=>xm(m.metadata.sourceIP)},{header:()=>n("sourcePort"),id:Bt.SourcePort,accessorFn:m=>m.metadata.sourcePort},{header:()=>n("destination"),id:Bt.Destination,accessorFn:m=>m.metadata.destinationIP||m.metadata.host}],i=Ae([]),o=Ae({}),a=Ht("config/table-sorting",[]),s=lZ({get data(){return Ic.value},columns:r,state:{get columnOrder(){return Kl.value},get columnVisibility(){return{...Object.fromEntries(Object.values(Bt).map(m=>[m,!1])),...Object.fromEntries(Kl.value.map(m=>[m,!0]))}},get grouping(){return i.value},get expanded(){return o.value},get sorting(){return a.value}},onGroupingChange:m=>{du(m)?i.value=m(i.value):i.value=m},onExpandedChange:m=>{du(m)&&(o.value=m(o.value))},onSortingChange:m=>{du(m)?a.value=m(a.value):a.value=m},getSortedRowModel:oZ(),getGroupedRowModel:rZ(),getExpandedRowModel:tZ(),getCoreRowModel:eZ()}),l=Ie(()=>s.getRowModel().rows),u=Ae(null),c=Ie(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),h=Ik(c),p=Ie(()=>h.value.getVirtualItems()),d=Ie(()=>h.value.getTotalSize()+24),g={[Dd.SMALL]:"table-xs",[Dd.LARGE]:"table-sm"},_=Ie(()=>g[Ig.value]);return(m,y)=>(q(),re("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto p-2"},[D("div",{style:yo({height:`${d.value}px`})},[D("table",{class:je(`table table-zebra ${_.value} rounded-none shadow-md`)},[D("thead",null,[(q(!0),re(Ge,null,Ft(F(s).getHeaderGroups(),b=>(q(),re("tr",{key:b.id},[(q(!0),re(Ge,null,Ft(b.headers,S=>(q(),re("th",{key:S.id,colSpan:S.colSpan,class:je(S.column.getCanSort()?"cursor-pointer select-none":""),onClick:x=>{var E;return(E=S.column.getToggleSortingHandler())==null?void 0:E(x)}},[D("div",cZ,[S.column.getCanGroup()?(q(),re("button",{key:0,class:"cursor-pointer",onClick:xd(()=>S.column.getToggleGroupingHandler()(),["stop"])},[S.column.getIsGrouped()?(q(),Et(F(c2),{key:0,class:"h-4 w-4"})):(q(),Et(F(f2),{key:1,class:"h-4 w-4"}))],8,fZ)):yt("",!0),S.isPlaceholder?yt("",!0):(q(),Et(F(v1),{key:1,render:S.column.columnDef.header,props:S.getContext()},null,8,["render","props"])),S.column.getIsSorted()==="asc"?(q(),Et(F(aO),{key:2,class:"h-4 w-4"})):yt("",!0),S.column.getIsSorted()==="desc"?(q(),Et(F(iO),{key:3,class:"h-4 w-4"})):yt("",!0)])],10,uZ))),128))]))),128))]),D("tbody",null,[(q(!0),re(Ge,null,Ft(p.value,(b,S)=>(q(),re("tr",{key:b.key.toString(),style:yo({height:`${b.size}px`,transform:`translateY(${b.start-S*b.size}px)`}),class:"hover:!bg-primary hover:text-primary-content"},[(q(!0),re(Ge,null,Ft(l.value[b.index].getVisibleCells(),x=>(q(),re("td",{key:x.id,class:je(F(nn)("whitespace-nowrap text-sm",[F(Bt).Download,F(Bt).DlSpeed,F(Bt).Upload,F(Bt).UlSpeed].includes(x.column.id)&&"min-w-20",[F(Bt).Host].includes(x.column.id)&&"max-w-[32rem] truncate"))},[x.column.getIsGrouped()?(q(),re(Ge,{key:0},[l.value[b.index].getCanExpand()?(q(),re(Ge,{key:0},[D("button",{onClick:()=>l.value[b.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[b.index].getIsExpanded()?(q(),Et(F(c2),{key:0,class:"h-4 w-4"})):(q(),Et(F(f2),{key:1,class:"h-4 w-4"}))],8,hZ),ye(F(v1),{render:x.column.columnDef.cell,props:x.getContext()},null,8,["render","props"]),D("span",null," ("+se(l.value[b.index].subRows.length)+") ",1)],64)):yt("",!0)],64)):(q(),Et(F(v1),{key:1,render:x.getIsAggregated()?x.column.columnDef.aggregatedCell:x.column.columnDef.cell,props:x.getContext()},null,8,["render","props"]))],2))),128))],4))),128))])],2)],4)],512))}});var Rm={d:(e,t)=>{for(var n in t)Rm.o(t,n)&&!Rm.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Xk={};function Db(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nyZ});const Je=(UM={computed:()=>Ie,createTextVNode:()=>Qe,createVNode:()=>ye,defineComponent:()=>Ze,reactive:()=>Eo,ref:()=>Ae,watch:()=>Lt,watchEffect:()=>cx},g1={},Rm.d(g1,UM),g1),pZ=(0,Je.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Je.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),vZ=(0,Je.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,Je.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Je.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,Je.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Je.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Je.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),gZ=(0,Je.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,Je.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Je.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Je.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 UM,g1;function Ib(e){return Ib=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},Ib(e)}function Zk(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function jl(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,h=i.length,p=h===void 0?1:h,d=Zk(e);if(d==="array"){var g=zM(e.map(function(y,b,S){return jl(y,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==S.length-1,length:p,type:l})}));return[jl("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(g,jl("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var _=Object.keys(e),m=zM(_.map(function(y,b,S){return jl(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:p,type:l})}));return[jl("{",t,n,{showComma:!1,key:o,index:a,length:_.length,type:"objectStart"})[0]].concat(m,jl("}",t,n,{showComma:c,length:_.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:p,type:l}]}function zM(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Pm(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,Pm(r)):n.push(r)}return n}function Lb(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(Ib(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return Lb(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=Lb(e[i],t);return t.set(e,r),r}function GM(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 WM(e){for(var t=1;t=S||T.length>=x,L=(M=e.pathCollapsible)===null||M===void 0?void 0:M.call(e,T);return T.type!=="objectStart"&&T.type!=="arrayStart"||!P&&!L?E:pi(pi({},E),{},Dm({},T.path,1))},{})},s=(0,Je.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,Je.computed)(function(){for(var S=null,x=[],E=o.value.length,T=0;TS.length?S.length-E:M;P<0&&(P=0);var L=P+E;s.translateY=P*e.itemHeight,s.visibleData=S.filter(function(k,N){return N>=P&&N(q(),re("div",wZ,[F(tu)?(q(),Et(gK,{key:0})):(q(),Et(dZ,{key:1})),D("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[D("div",bZ,[ye(F(_Z),{data:F(t)},null,8,["data"])]),i[0]||(i[0]=D("form",{method:"dialog",class:"modal-backdrop"},[D("button",null,"close")],-1))],512)]))}}),xZ={class:"relative w-full flex-1"},Wx=Ze({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Ae(e.modelValue),i=t;Lt(r,a=>{i("update:modelValue",a)});const o=()=>{r.value=""};return(a,s)=>(q(),re("div",xZ,[Tt(D("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),type:"text",class:"input input-sm join-item input-bordered w-full"},null,512),[[Fr,r.value]]),ye(F(T0),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),CZ=["value"],TZ=["value"],jM=Ze({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Ie(()=>xX.value.map(n=>({label:xm(n),value:n})));return(n,r)=>n.horizontal?yt("",!0):Tt((q(),re("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=i=>et(Pa)?Pa.value=i:null)},[r[1]||(r[1]=D("option",{value:""},"all",-1)),t.value.every(i=>i.value!==F(Pa))&&F(Pa)!==""?(q(),re("option",{key:0,value:F(Pa)},se(F(xm)(F(Pa))),9,CZ)):yt("",!0),(q(!0),re(Ge,null,Ft(t.value,i=>(q(),re("option",{key:i.value,value:i.value},se(i.label),9,TZ))),128))],512)),[[Ai,F(Pa)]])}}),EZ={class:"tabs-boxed tabs tabs-sm"},AZ={class:"shrink-0"},MZ=["value"],RZ={class:"shrink-0"},PZ=["data-tip"],DZ={class:"join flex-1"},IZ=Ze({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{Ic.value.forEach(n=>{H0(n.id)})};return(n,r)=>(q(),re("div",{class:je(F(nn)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap pb-0"))},[D("div",EZ,[D("a",{role:"tab",class:je(F(nn)("tab",F(Yl)===F(La).ACTIVE&&"tab-active")),onClick:r[0]||(r[0]=()=>Yl.value=F(La).ACTIVE)},[Qe(se(n.$t("activeConnections"))+" ",1),F(Yl)===F(La).ACTIVE?(q(),re(Ge,{key:0},[Qe(" ("+se(F(Ic).length)+") ",1)],64)):yt("",!0)],2),D("a",{role:"tab",class:je(F(nn)("tab",F(Yl)===F(La).CLOSED&&"tab-active")),onClick:r[1]||(r[1]=()=>Yl.value=F(La).CLOSED)},[Qe(se(n.$t("closedConnections"))+" ",1),F(Yl)===F(La).CLOSED?(q(),re(Ge,{key:0},[Qe(" ("+se(F(Ic).length)+") ",1)],64)):yt("",!0)],2)]),F(tu)?(q(),re("div",{key:0,class:je(F(nn)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[D("span",AZ,se(n.$t("sortBy"))+":",1),Tt(D("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":r[2]||(r[2]=i=>et(Ug)?Ug.value=i:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Xr)),i=>(q(),re("option",{key:i,value:i},se(n.$t(i)||i),9,MZ))),128))],512),[[Ai,F(Ug)]])],2)):yt("",!0),D("div",{class:je(F(nn)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[D("span",RZ,se(n.$t("quickFilter"))+": ",1),Tt(D("input",{type:"text",class:je(["input input-sm join-item input-bordered w-0 flex-1",n.horizontal&&"md:w-48"]),"onUpdate:modelValue":r[3]||(r[3]=i=>et(jh)?jh.value=i:null)},null,2),[[Fr,F(jh)]]),Tt(D("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[4]||(r[4]=i=>et(Hg)?Hg.value=i:null)},null,512),[[mo,F(Hg)]]),D("div",{class:je(`tooltip ${n.horizontal?"tooltip-left md:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ye(F(dO),{class:"h-4 w-4"})],10,PZ)],2),n.horizontal?yt("",!0):(q(),Et(jM,{key:1})),D("div",DZ,[n.horizontal?(q(),Et(jM,{key:0})):yt("",!0),ye(Wx,{modelValue:F(qh),"onUpdate:modelValue":r[5]||(r[5]=i=>et(qh)?qh.value=i:null),class:"join-item min-w-36"},null,8,["modelValue"]),D("button",{class:"btn join-item btn-sm",onClick:r[6]||(r[6]=i=>zg.value=!F(zg))},[(q(),Et(Ya(F(zg)?F(fO):F(cO)),{class:"h-4 w-4"}))]),D("button",{class:"btn join-item btn-sm",onClick:t},[ye(F(T0),{class:"h-4 w-4"})])])],2))}}),Yx=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Qk=Yx(IZ,[["__scopeId","data-v-ed6a81e8"]]),Im=Ae([]),Oc=Ae(""),Gg=Ae(!1),Wg=Ht("config/log-level",eu.Info);let Av,Lm=[];const LZ=Mo.throttle(()=>{Im.value=Lm.concat(Im.value).slice(0,Og.value),Lm=[]},500),Ob=[],OZ=()=>{Ob.length=0;for(const e in _i.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");Ob.push([t,`${e} (${_i.value[e]}) :`])}};Lt(_i,()=>{OZ()},{immediate:!0});const kb=()=>{Av==null||Av(),Im.value=[],Lm=[];let e=1;const t=fX({level:Wg.value}),n=Lt(t.data,r=>{if(r){if(Gg.value){e++;return}for(const[i,o]of Ob)r.payload=r.payload.replace(i,o);Lm.unshift({...r,time:new Date().valueOf(),seq:e++}),LZ()}});Av=()=>{n(),t.close()}},kZ=["value"],eN=Ze({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(q(),re("div",{class:je(F(nn)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[Tt(D("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>et(Wg)?Wg.value=r:null),onChange:n[1]||(n[1]=(...r)=>F(kb)&&F(kb)(...r))},[(q(!0),re(Ge,null,Ft(Object.values(F(eu)),r=>(q(),re("option",{key:r,value:r},se(r),9,kZ))),128))],544),[[Ai,F(Wg)]]),ye(Wx,{type:"text",modelValue:F(Oc),"onUpdate:modelValue":n[2]||(n[2]=r=>et(Oc)?Oc.value=r:null)},null,8,["modelValue"]),D("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>Gg.value=!F(Gg))},[(q(),Et(Ya(F(Gg)?F(fO):F(cO)),{class:"h-4 w-4"}))])],2))}}),wi=Ae({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}}),jx=async()=>{wi.value=(await iX()).data},Nb=async e=>{await oX(e),jx()},tN=Ae(yu.PROXIES),nN=Ie(()=>{var e;return tN.value===yu.PROVIDER?Dc.value.map(t=>t.name):qa.value&&Mg.value&&Ro.value[Zl]?[...yb.value,Zl]:!qa.value&&((e=wi.value)==null?void 0:e.mode.toLocaleUpperCase())===Zl&&Ro.value[Zl]?[Zl]:yb.value}),NZ=Ie(()=>Hh.value&&nN.value.length>1),G0=()=>({proxiesTabShow:tN,renderGroups:nN,hasTwoColumns:NZ}),FZ={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},$Z=["onClick"],BZ={key:1,class:"flex flex-col gap-2"},VZ=["value"],HZ=["value"],UZ=["value"],zZ={class:"shrink-0"},rN=Ze({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=G0(),n=Ae(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(Dc.value.map(a=>Mk(a.name))),await Ks(),n.value=!1}catch{await Ks(),n.value=!1}}},i=Ie(()=>{var a,s;return((a=wi.value)==null?void 0:a["mode-list"])||((s=wi.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;Nb({mode:s})};return(a,s)=>F(wi)?(q(),re("div",{key:0,class:je(F(nn)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap pb-0"))},[F(Dc).length?(q(),re("div",{key:0,class:je(F(nn)("flex flex-col-reverse gap-2",a.horizontal&&"flex-row"))},[F(Dc).length?(q(),re("div",FZ,[(q(!0),re(Ge,null,Ft(F(yu),l=>(q(),re("a",{role:"tab",class:je(["tab",{"tab-active":F(t)===l}]),key:l,onClick:u=>t.value=l},se(a.$t(l)),11,$Z))),128))])):yt("",!0),F(t)===F(yu).PROVIDER?(q(),re("div",BZ,[D("button",{class:je(F(nn)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},se(a.$t("updateAllProviders")),3)])):yt("",!0)],2)):yt("",!0),s[2]||(s[2]=D("div",{class:"w-full sm:hidden"},null,-1)),D("div",{class:je(F(nn)("flex w-full items-center gap-2",a.horizontal&&"w-24"))},[D("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:F(wi).mode,onChange:o},[(q(!0),re(Ge,null,Ft(i.value,l=>(q(),re("option",{key:l,value:l},se(a.$t(l.toLowerCase())||l),9,HZ))),128))],40,VZ)],2),D("div",{class:je(F(nn)("flex w-full items-center gap-2",a.horizontal&&"w-72 max-sm:flex-1"))},[Tt(D("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[0]||(s[0]=l=>et(Rg)?Rg.value=l:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Os)),l=>(q(),re("option",{key:l,value:l},se(a.$t(l)),9,UZ))),128))],512),[[Ai,F(Rg)]]),D("span",zZ,se(a.$t("hideUnavailable"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>et(Dg)?Dg.value=l:null)},null,512),[[mo,F(Dg)]])],2)],2)):yt("",!0)}}),Kh=Ae(Kc.RULES),Fb=Ae([]),Om=Ae([]),Od=async()=>{const{data:e}=await nX(),{data:t}=await rX();Fb.value=e.rules,Om.value=Object.values(t.providers)},GZ={role:"tablist",class:"tabs-boxed tabs tabs-sm"},WZ=["onClick"],YZ={key:0,class:"flex flex-col gap-2"},iN=Ze({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Ae(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Om.value.map(r=>Rk(r.name))),await Od(),t.value=!1}catch{await Od(),t.value=!1}}};return(r,i)=>F(Om).length?(q(),re("div",{key:0,class:je(F(nn)("flex flex-col-reverse gap-2 p-2",r.horizontal&&"flex-row pb-0"))},[D("div",GZ,[(q(!0),re(Ge,null,Ft(F(Kc),o=>(q(),re("a",{role:"tab",class:je(["tab",{"tab-active":F(Kh)===o}]),key:o,onClick:a=>Kh.value=o},se(r.$t(o)),11,WZ))),128))]),F(Kh)===F(Kc).PROVIDER?(q(),re("div",YZ,[D("button",{class:je(F(nn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},se(r.$t("updateAllProviders")),3)])):yt("",!0)],2)):yt("",!0)}}),jZ=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,qZ="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",XZ={class:"flex items-center gap-1"},KZ=["src"],oN=Ze({__name:"BackendVersion",setup(e){return(t,n)=>(q(),re("div",XZ,[Qe(se(t.$t("version"))+": ",1),D("img",{src:F(qa)?F(qZ):F(jZ),class:"h-4 w-4 rounded-sm"},null,8,KZ),Qe(" "+se(F(Ld)),1)]))}}),ZZ={class:"join flex"},JZ=["value"],aN=Ze({__name:"BackendSwitch",setup(e){const t=Ie(()=>oa.value.map(r=>({label:_u(r),value:r.uuid}))),n=()=>{Sr.value=null,Po.push({name:Vt.setup})};return(r,i)=>(q(),re("div",ZZ,[Tt(D("select",{class:"join-item select select-bordered select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>et(Sr)?Sr.value=o:null)},[(q(!0),re(Ge,null,Ft(t.value,o=>(q(),re("option",{key:o.value,value:o.value},se(o.label),9,JZ))),128))],512),[[Ai,F(Sr)]]),D("button",{class:"btn join-item btn-sm",onClick:n},[ye(F(hO),{class:"h-4 w-4"})])]))}}),QZ={class:"grid w-full grid-cols-2 gap-1 rounded-lg"},sN=Ze({__name:"StatisticsInfo",setup(e){return(t,n)=>(q(),re("div",QZ,[D("div",null,se(t.$t("connections"))+": "+se(F(bo).length),1),D("div",null,se(t.$t("memoryUsage"))+": "+se(F(mn)(F(Ix),{binary:!0})),1),D("div",null,se(t.$t("download"))+": "+se(F(mn)(F(Am))),1),D("div",null,se(t.$t("dlSpeed"))+": "+se(F(mn)(F(Lx)))+"/s",1),D("div",null,se(t.$t("upload"))+": "+se(F(mn)(F(Mm))),1),D("div",null,se(t.$t("ulSpeed"))+": "+se(F(mn)(F(Ox)))+"/s",1)]))}}),eJ={class:"flex flex-col gap-2 p-2 text-sm"},tJ={class:"flex"},nJ=Ze({__name:"CommonCtrl",setup(e){return(t,n)=>(q(),re("div",eJ,[ye(sN),ye(oN),D("div",tJ,[D("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>zs.value=!0)},[ye(F(Z6),{class:"h-5 w-5"})]),n[1]||(n[1]=D("div",{class:"flex-1"},null,-1)),ye(aN)])]))}});/*! ***************************************************************************** +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 $b=function(e,t){return $b=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])},$b(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$b(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qx=12,rJ="sans-serif",bu=qx+"px "+rJ,iJ=20,oJ=100,aJ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sJ(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l"u"&&typeof self<"u"?vt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(vt.node=!0,vt.svgSupported=!0):xJ(navigator.userAgent,vt);function xJ(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 CJ=".",bl="___EC__COMPONENT__CONTAINER___",vN="___EC__EXTENDED_CLASS___";function Ko(e){var t={main:"",sub:""};if(e){var n=e.split(CJ);t.main=n[0]||"",t.sub=n[1]||""}return t}function TJ(e){Xa(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function EJ(e){return!!(e&&e[vN])}function Qx(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return AJ(r)?i=function(o){Ve(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},dJ(i,this)),Le(i.prototype,n),i[vN]=!0,i.extend=this.extend,i.superCall=PJ,i.superApply=DJ,i.superClass=r,i}}function AJ(e){return _t(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function gN(e,t){e.extend=t.extend}var MJ=Math.round(Math.random()*10);function RJ(e){var t=["__\0is_clz",MJ++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function PJ(e,t){for(var n=[],r=2;r=0||o&&sn(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var IJ=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],LJ=Fd(IJ),OJ=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return LJ(this,t,n)},e}(),mN=function(){function e(t){this.value=t}return e}(),kJ=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new mN(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}(),sp=function(){function e(t){this._list=new kJ,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 mN(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}(),Hb=new sp(50);function NJ(e){if(typeof e=="string"){var t=Hb.get(e);return t&&t.image}else return e}function yN(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=Hb.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!X0(t)&&o.pending.push(a)):(t=uf.loadImage(e,KM,KM),t.__zrImageSrc=e,Hb.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function KM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tg&&(g=S,_g&&(g=x,y=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sl.x=Cl.x=n.x,Sl.y=Tl.y=n.y,xl.x=Tl.x=n.x+n.width,xl.y=Cl.y=n.y+n.height,Sl.transform(r),Tl.transform(r),xl.transform(r),Cl.transform(r),t.x=Rv(Sl.x,xl.x,Cl.x,Tl.x),t.y=Rv(Sl.y,xl.y,Cl.y,Tl.y);var l=Pv(Sl.x,xl.x,Cl.x,Tl.x),u=Pv(Sl.y,xl.y,Cl.y,Tl.y);t.width=l-t.x,t.height=u-t.y},e}(),ZM={};function Ei(e,t){t=t||bu;var n=ZM[t];n||(n=ZM[t]=new sp(500));var r=n.get(e);return r==null&&(r=uf.measureText(e,t).width,n.put(e,r)),r}function JM(e,t,n,r){var i=Ei(e,t),o=iC(t),a=Sh(0,i,n),s=pc(0,o,r),l=new Jt(a,s,i,o);return l}function rC(e,t,n,r){var i=((e||"")+"").split(` +`),o=i.length;if(o===1)return JM(i[0],t,n,r);for(var a=new Jt(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function _N(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",h="top";if(r instanceof Array)l+=Su(r[0],n.width),u+=Su(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="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,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var m1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function BJ(e,t,n,r,i){if(!t)return"";var o=(e+"").split(` +`);i=wN(t,n,r,i);for(var a=0,s=o.length;a=a;l++)s-=a;var u=Ei(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 bN(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Ei(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?VJ(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Ei(e,r)}return e===""&&(e=t.placeholder),e}function VJ(e,t,n,r){for(var i=0,o=0,a=e.length;od&&u){var g=Math.floor(d/s);h=h.slice(0,g)}if(e&&o&&c!=null)for(var _=wN(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&y1(n,e.substring(s,u),t,a),y1(n,l[2],t,a,l[1]),s=m1.lastIndex}si){E>0?(b.tokens=b.tokens.slice(0,E),m(b,x,S),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var H=M.width,te=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")T.percentWidth=H,c.push(T),T.contentWidth=Ei(T.text,k);else{if(te){var W=M.backgroundColor,X=W&&W.image;X&&(X=NJ(X),X0(X)&&(T.width=Math.max(T.width,X.width*N/X.height)))}var j=g&&r!=null?r-x:null;j!=null&&j0&&g+r.accumWidth>r.width&&(c=t.split(` +`),u=!0),r.accumWidth=g}else{var _=SN(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=_.accumWidth+d,h=_.linesWidths,c=_.lines}}else c=t.split(` +`);for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var YJ=cf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function jJ(e){return WJ(e)?!!YJ[e]:!0}function SN(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+d>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):g?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d));continue}c+=d,g?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}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 ff(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function qJ(e){return[e[0],e[1]]}function eR(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function XJ(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function KJ(e){return Math.sqrt(ZJ(e))}function ZJ(e){return e[0]*e[0]+e[1]*e[1]}function _1(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function JJ(e,t){var n=KJ(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function zb(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var QJ=zb;function eQ(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Fc=eQ;function Qi(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 mc(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function yc(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var tR=eC,nR=5e-5;function El(e){return e>nR||e<-nR}var Al=[],Xu=[],w1=kc(),b1=Math.abs,oC=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 El(this.rotation)||El(this.x)||El(this.y)||El(this.scaleX-1)||El(this.scaleY-1)||El(this.skewX)||El(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(tR(r),this.invTransform=null);return}r=r||kc(),n?this.getLocalTransform(r):tR(r),t&&(n?Nc(r,t,r):FJ(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Al);var r=Al[0]<0?-1:1,i=Al[1]<0?-1:1,o=((Al[0]-r)*n+r)/Al[0]||0,a=((Al[1]-i)*n+i)/Al[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||kc(),nC(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||kc(),Nc(Xu,t.invTransform,n),n=Xu);var r=this.originX,i=this.originY;(r||i)&&(w1[4]=r,w1[5]=i,Nc(Xu,n,w1),Xu[4]-=r,Xu[5]-=i,n=Xu),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&&Qi(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Qi(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&b1(t[0]-1)>1e-10&&b1(t[3]-1)>1e-10?Math.sqrt(b1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){tQ(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,h=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var g=r+s,_=i+l;n[4]=-g*o-p*_*a,n[5]=-_*a-d*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=d*o,n[2]=p*a,u&&tC(n,n,u),n[4]+=r+c,n[5]+=i+h,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}(),$d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function tQ(e,t){for(var n=0;n<$d.length;n++){var r=$d[n];e[r]=t[r]}}var Jh={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-Jh.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?Jh.bounceIn(e*2)*.5:Jh.bounceOut(e*2-1)*.5+.5}},Dv=Math.pow,Gs=Math.sqrt,Nm=1e-8,xN=1e-4,rR=Gs(3),Iv=1/3,Yo=ff(),ji=ff(),$c=ff();function Bs(e){return e>-Nm&&eNm||e<-Nm}function lr(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 iR(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Fm(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,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Bs(c)&&Bs(h))if(Bs(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[d++]=g)}else{var _=h*h-4*c*p;if(Bs(_)){var m=h/c,g=-s/a+m,y=-m/2;g>=0&&g<=1&&(o[d++]=g),y>=0&&y<=1&&(o[d++]=y)}else if(_>0){var b=Gs(_),S=c*s+1.5*a*(-h+b),x=c*s+1.5*a*(-h-b);S<0?S=-Dv(-S,Iv):S=Dv(S,Iv),x<0?x=-Dv(-x,Iv):x=Dv(x,Iv);var g=(-s-(S+x))/(3*a);g>=0&&g<=1&&(o[d++]=g)}else{var E=(2*c*s-3*a*h)/(2*Gs(c*c*c)),T=Math.acos(E)/3,M=Gs(c),P=Math.cos(T),g=(-s-2*M*P)/(3*a),y=(-s+M*(P+rR*Math.sin(T)))/(3*a),L=(-s+M*(P-rR*Math.sin(T)))/(3*a);g>=0&&g<=1&&(o[d++]=g),y>=0&&y<=1&&(o[d++]=y),L>=0&&L<=1&&(o[d++]=L)}}return d}function TN(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(Bs(a)){if(CN(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Bs(c))i[0]=-o/(2*a);else if(c>0){var h=Gs(c),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function $m(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,h=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function nQ(e,t,n,r,i,o,a,s,l,u,c){var h,p=.005,d=1/0,g,_,m,y;Yo[0]=l,Yo[1]=u;for(var b=0;b<1;b+=.05)ji[0]=lr(e,n,i,a,b),ji[1]=lr(t,r,o,s,b),m=Fc(Yo,ji),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Bs(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Gs(c),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function EN(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Bm(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 oQ(e,t,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Yo[0]=a,Yo[1]=s;for(var p=0;p<1;p+=.05){ji[0]=Kr(e,n,i,p),ji[1]=Kr(t,r,o,p);var d=Fc(Yo,ji);d=0&&d=1?1:Fm(0,r,o,1,l,s)&&lr(0,i,a,1,s[0])}}}var lQ=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||ti,this.ondestroy=t.ondestroy||ti,this.onrestart=t.onrestart||ti,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=_t(t)?t:Jh[t]||AN(t)},e}(),aR={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 Ws(e){return e=Math.round(e),e<0?0:e>255?255:e}function Gb(e){return e<0?0:e>1?1:e}function S1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ws(parseFloat(t)/100*255):Ws(parseInt(t,10))}function Qh(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Gb(parseFloat(t)/100):Gb(parseFloat(t))}function x1(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 Lv(e,t,n){return e+(t-e)*n}function Hi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Wb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var MN=new sp(20),Ov=null;function Ku(e,t){Ov&&Wb(Ov,t),Ov=MN.put(e,Ov||t.slice())}function za(e,t){if(e){t=t||[];var n=MN.get(e);if(n)return Wb(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in aR)return Wb(t,aR[r]),Ku(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)){Hi(t,0,0,0,1);return}return Hi(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),Ku(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Hi(t,0,0,0,1);return}return Hi(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Ku(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?Hi(t,+u[0],+u[1],+u[2],1):Hi(t,0,0,0,1);c=Qh(u.pop());case"rgb":if(u.length>=3)return Hi(t,S1(u[0]),S1(u[1]),S1(u[2]),u.length===3?c:Qh(u[3])),Ku(e,t),t;Hi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Hi(t,0,0,0,1);return}return u[3]=Qh(u[3]),sR(u,t),Ku(e,t),t;case"hsl":if(u.length!==3){Hi(t,0,0,0,1);return}return sR(u,t),Ku(e,t),t;default:return}}Hi(t,0,0,0,1)}}function sR(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Qh(e[1]),i=Qh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Hi(t,Ws(x1(a,o,n+1/3)*255),Ws(x1(a,o,n)*255),Ws(x1(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function lR(e,t){var n=za(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 K0(n,n.length===4?"rgba":"rgb")}}function uQ(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=za(t[i]),s=za(t[o]),l=r-i,u=K0([Ws(Lv(a[0],s[0],l)),Ws(Lv(a[1],s[1],l)),Ws(Lv(a[2],s[2],l)),Gb(Lv(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function K0(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 Vm(e,t){var n=za(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var uR=new sp(100);function cR(e){if(Xe(e)){var t=uR.get(e);return t||(t=lR(e,-.1),uR.put(e,t)),t}else if(Y0(e)){var n=Le({},e);return n.colorStops=ct(e.colorStops,function(r){return{offset:r.offset,color:lR(r.color,-.1)}}),n}return e}function cQ(e){return e.type==="linear"}function fQ(e){return e.type==="radial"}(function(){return vt.hasGlobalWindow&&_t(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 Yb=Array.prototype.slice;function Ia(e,t,n){return(t-e)*n+e}function C1(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=hR,l=n;if(ri(n)){var u=vQ(n);s=u,(u===1&&!Tn(n[0])||u===2&&!Tn(n[0][0]))&&(a=!0)}else if(Tn(n)&&!km(n))s=Nv;else if(Xe(n))if(!isNaN(+n))s=Nv;else{var c=za(n);c&&(l=c,s=xh)}else if(Y0(n)){var h=Le({},l);h.colorStops=ct(n.colorStops,function(d){return{offset:d.offset,color:za(d.color)}}),cQ(n)?s=jb:fQ(n)&&(s=qb),l=h}o===0?this.valType=s:(s!==this.valType||s===hR)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=_t(r)?r:Jh[r]||AN(r)),i.push(p),p},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(_,m){return _.time-m.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Fv(i),u=dR(i),c=0;c=0&&!(a[c].percent<=n);c--);c=p(c,s-2)}else{for(c=h;cn);c++);c=p(c-1,s-2)}g=a[c+1],d=a[c]}if(d&&g){this._lastFr=c,this._lastFrP=n;var m=g.percent-d.percent,y=m===0?1:p((n-d.percent)/m,1);g.easingFunc&&(y=g.easingFunc(y));var b=r?this._additiveValue:u?Yf:t[l];if((Fv(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:g.rawValue;else if(Fv(o))o===Xg?C1(b,d[i],g[i],y):hQ(b,d[i],g[i],y);else if(dR(o)){var S=d[i],x=g[i],E=o===jb;t[l]={type:E?"linear":"radial",x:Ia(S.x,x.x,y),y:Ia(S.y,x.y,y),colorStops:ct(S.colorStops,function(M,P){var L=x.colorStops[P];return{offset:Ia(M.offset,L.offset,y),color:qg(C1([],M.color,L.color,y))}}),global:x.global},E?(t[l].x2=Ia(S.x2,x.x2,y),t[l].y2=Ia(S.y2,x.y2,y)):t[l].r=Ia(S.r,x.r,y)}else if(u)C1(b,d[i],g[i],y),r||(t[l]=qg(b));else{var T=Ia(d[i],g[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===Nv?t[r]=t[r]+i:n===xh?(za(t[r],Yf),kv(Yf,Yf,i,1),t[r]=qg(Yf)):n===Xg?kv(t[r],t[r],i,1):n===RN&&fR(t[r],t[r],i,1)},e}(),aC=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){Zx("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,Cn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,jg(u),i),this._trackKeys.push(s)}l.addKeyframe(t,jg(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),fa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,S=void 0;_&&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!==m.fill||b!==m.stroke||S!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=S,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=Si,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()?Zb:Kb},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&za(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,K0(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||{},Le(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(st(t))for(var r=t,i=Cn(r),o=0;o0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(T1,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===T1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(sn(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){Zx("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 h=this._textContent,p=this._textGuide;return h&&h.useState(t,n,r,c),p&&p.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&=~Si),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l0,g);var _=this._textContent,m=this._textGuide;_&&_.useStates(t,n,p),m&&m.useStates(t,n,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Si)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=sn(i,t),a=sn(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a0&&n.during&&o[0].during(function(g,_){n.during(_)});for(var p=0;p0||i.force&&!a.length){var P=void 0,L=void 0,k=void 0;if(s){L={},p&&(P={});for(var x=0;x1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if($v[0]=I1(i)*n+e,$v[1]=D1(i)*r+t,Bv[0]=I1(o)*n+e,Bv[1]=D1(o)*r+t,u(s,$v,Bv),c(l,$v,Bv),i=i%Ml,i<0&&(i=i+Ml),o=o%Ml,o<0&&(o=o+Ml),i>o&&!a?o+=Ml:ii&&(Vv[0]=I1(d)*n+e,Vv[1]=D1(d)*r+t,u(s,Vv,s),c(l,Vv,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Rl=[],Pl=[],Vo=[],ms=[],Ho=[],Uo=[],L1=Math.min,O1=Math.max,Dl=Math.cos,Il=Math.sin,Aa=Math.abs,Qb=Math.PI,Es=Qb*2,k1=typeof Float32Array<"u",jf=[];function N1(e){var t=Math.round(e/Qb*1e8)/1e8;return t%2*Qb}function RQ(e,t){var n=N1(e[0]);n<0&&(n+=Es);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Es?i=n+Es:t&&n-i>=Es?i=n-Es:!t&&n>i?i=n+(Es-N1(n-i)):t&&n0&&(this._ux=Aa(r/Hm/t)||0,this._uy=Aa(r/Hm/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(qt.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=Aa(t-this._xi),i=Aa(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(qt.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(qt.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(qt.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(),jf[0]=i,jf[1]=o,RQ(jf,a),i=jf[0],o=jf[1];var s=o-i;return this.addData(qt.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=Dl(o)*r+t,this._yi=Il(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(qt.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.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)&&k1&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Vo[0]=Vo[1]=Ho[0]=Ho[1]=Number.MAX_VALUE,ms[0]=ms[1]=Uo[0]=Uo[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||Aa(S)>i||p===n-1)&&(_=Math.sqrt(b*b+S*S),o=m,a=y);break}case qt.C:{var x=t[p++],E=t[p++],m=t[p++],y=t[p++],T=t[p++],M=t[p++];_=rQ(o,a,x,E,m,y,T,M,10),o=T,a=M;break}case qt.Q:{var x=t[p++],E=t[p++],m=t[p++],y=t[p++];_=aQ(o,a,x,E,m,y,10),o=m,a=y;break}case qt.A:var P=t[p++],L=t[p++],k=t[p++],N=t[p++],H=t[p++],te=t[p++],W=te+H;p+=1,g&&(s=Dl(H)*k+P,l=Il(H)*N+L),_=O1(k,N)*L1(Es,Math.abs(te)),o=Dl(W)*k+P,a=Il(W)*N+L;break;case qt.R:{s=o=t[p++],l=a=t[p++];var X=t[p++],j=t[p++];_=X*2+j*2;break}case qt.Z:{var b=s-o,S=l-a;_=Math.sqrt(b*b+S*S),o=s,a=l;break}}_>=0&&(u[h++]=_,c+=_)}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,h,p,d=n<1,g,_,m=0,y=0,b,S=0,x,E;if(!(d&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,_=this._pathLen,b=n*_,!b)))e:for(var T=0;T0&&(t.lineTo(x,E),S=0),M){case qt.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case qt.L:{h=r[T++],p=r[T++];var L=Aa(h-u),k=Aa(p-c);if(L>i||k>o){if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;t.lineTo(u*(1-H)+h*H,c*(1-H)+p*H);break e}m+=N}t.lineTo(h,p),u=h,c=p,S=0}else{var te=L*L+k*k;te>S&&(x=h,E=p,S=te)}break}case qt.C:{var W=r[T++],X=r[T++],j=r[T++],oe=r[T++],Q=r[T++],fe=r[T++];if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;$m(u,W,j,Q,H,Rl),$m(c,X,oe,fe,H,Pl),t.bezierCurveTo(Rl[1],Pl[1],Rl[2],Pl[2],Rl[3],Pl[3]);break e}m+=N}t.bezierCurveTo(W,X,j,oe,Q,fe),u=Q,c=fe;break}case qt.Q:{var W=r[T++],X=r[T++],j=r[T++],oe=r[T++];if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;Bm(u,W,j,H,Rl),Bm(c,X,oe,H,Pl),t.quadraticCurveTo(Rl[1],Pl[1],Rl[2],Pl[2]);break e}m+=N}t.quadraticCurveTo(W,X,j,oe),u=j,c=oe;break}case qt.A:var _e=r[T++],be=r[T++],Ne=r[T++],ke=r[T++],qe=r[T++],He=r[T++],Ye=r[T++],ue=!r[T++],Te=Ne>ke?Ne:ke,we=Aa(Ne-ke)>.001,xe=qe+He,Ee=!1;if(d){var N=g[y++];m+N>b&&(xe=qe+He*(b-m)/N,Ee=!0),m+=N}if(we&&t.ellipse?t.ellipse(_e,be,Ne,ke,Ye,qe,xe,ue):t.arc(_e,be,Te,qe,xe,ue),Ee)break e;P&&(s=Dl(qe)*Ne+_e,l=Il(qe)*ke+be),u=Dl(xe)*Ne+_e,c=Il(xe)*ke+be;break;case qt.R:s=u=r[T],l=c=r[T+1],h=r[T++],p=r[T++];var De=r[T++],$=r[T++];if(d){var N=g[y++];if(m+N>b){var B=b-m;t.moveTo(h,p),t.lineTo(h+L1(B,De),p),B-=De,B>0&&t.lineTo(h+De,p+L1(B,$)),B-=$,B>0&&t.lineTo(h+O1(De-B,0),p+$),B-=De,B>0&&t.lineTo(h,p+O1($-B,0));break e}m+=N}t.rect(h,p,De,$);break;case qt.Z:if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;t.lineTo(u*(1-H)+s*H,c*(1-H)+l*H);break e}m+=N}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=qt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ju(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+h&&c>r+h&&c>o+h&&c>s+h||ce+h&&u>n+h&&u>i+h&&u>a+h||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=qf);var p=Math.atan2(l,s);return p<0&&(p+=qf),p>=r&&p<=i||p+qf>=r&&p+qf<=i}function Ll(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var ys=xu.CMD,Ol=Math.PI*2,LQ=1e-4;function OQ(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&kQ(),d=lr(t,r,o,s,Wi[0]),p>1&&(g=lr(t,r,o,s,Wi[1]))),p===2?mt&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=Kr(t,r,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Lr[0]=-l,Lr[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ol-1e-4){r=0,i=Ol;var c=o?1:-1;return a>=Lr[0]+e&&a<=Lr[1]+e?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Ol,i+=Ol);for(var p=0,d=0;d<2;d++){var g=Lr[d];if(g+e>a){var _=Math.atan2(s,g),c=o?1:-1;_<0&&(_=Ol+_),(_>=r&&_<=i||_+Ol>=r&&_+Ol<=i)&&(_>Math.PI/2&&_1&&(n||(s+=Ll(l,u,c,h,r,i))),m&&(l=o[g],u=o[g+1],c=l,h=u),_){case ys.M:c=o[g++],h=o[g++],l=c,u=h;break;case ys.L:if(n){if(Ju(l,u,o[g],o[g+1],t,r,i))return!0}else s+=Ll(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ys.C:if(n){if(PQ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=NQ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ys.Q:if(n){if(DQ(l,u,o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=FQ(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ys.A:var y=o[g++],b=o[g++],S=o[g++],x=o[g++],E=o[g++],T=o[g++];g+=1;var M=!!(1-o[g++]);p=Math.cos(E)*S+y,d=Math.sin(E)*x+b,m?(c=p,h=d):s+=Ll(l,u,p,d,r,i);var P=(r-y)*x/S+y;if(n){if(IQ(y,b,x,E,E+T,M,t,P,i))return!0}else s+=$Q(y,b,x,E,E+T,M,P,i);l=Math.cos(E+T)*S+y,u=Math.sin(E+T)*x+b;break;case ys.R:c=l=o[g++],h=u=o[g++];var L=o[g++],k=o[g++];if(p=c+L,d=h+k,n){if(Ju(c,h,p,h,t,r,i)||Ju(p,h,p,d,t,r,i)||Ju(p,d,c,d,t,r,i)||Ju(c,d,c,h,t,r,i))return!0}else s+=Ll(p,h,p,d,r,i),s+=Ll(c,d,c,h,r,i);break;case ys.Z:if(n){if(Ju(l,u,c,h,t,r,i))return!0}else s+=Ll(l,u,c,h,r,i);l=c,u=h;break}}return!n&&!OQ(u,h)&&(s+=Ll(l,u,c,h,r,i)||0),s!==0}function BQ(e,t,n){return IN(e,0,!1,t,n)}function VQ(e,t,n,r){return IN(e,t,!0,n,r)}var LN=rn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pu),HQ={style:rn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},J0.style)},F1=$d.concat(["invisible","culling","z","z2","zlevel","parent"]),pn=function(e){Ve(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.5?Kb:r>.2?mQ:Zb}else if(n)return Zb}return Kb},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Xe(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Vm(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&vc)&&(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)),VQ(s,l/u,n,r)))return!0}if(this.hasFill())return BQ(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vc,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:Le(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vc)},t.prototype.createStyle=function(n){return j0(LN,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Le({},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=Le({},i.shape),Le(u,r.shape)):(u=Le({},o?this.shape:i.shape),Le(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Le({},this.shape);for(var c={},h=Cn(u),p=0;p0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return j0(UQ,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=rC(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}(lp);Um.prototype.type="tspan";var zQ=rn({x:0,y:0},pu),GQ={style:rn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},J0.style)};function WQ(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ll=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return j0(zQ,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=WQ(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 GQ},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Jt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(lp);ll.prototype.type="image";function YQ(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 h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+c>i&&(h=u+c,u*=i/h,c*=i/h),l+u>o&&(h=l+u,l*=o/h,u*=o/h),s+c>o&&(h=s+c,s*=o/h,c*=o/h),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 _c=Math.round;function ON(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&&(_c(r*2)===_c(i*2)&&(e.x1=e.x2=iu(r,s,!0)),_c(o*2)===_c(a*2)&&(e.y1=e.y2=iu(o,s,!0))),e}}function kN(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=iu(r,s,!0),e.y=iu(i,s,!0),e.width=Math.max(iu(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(iu(i+a,s,!1)-e.y,a===0?0:1)),e}}function iu(e,t,n){if(!t)return e;var r=_c(e*2);return(r+_c(t))%2===0?r/2:(r+(n?1:-1))/2}var jQ=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),qQ={},cr=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new jQ},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=kN(qQ,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?YQ(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pn);cr.prototype.type="rect";var _R={fill:"#000"},wR=2,XQ={style:rn({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},J0.style)},oi=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=_R,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,H=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),te=a.calculatedLineHeight,W=0;W=0&&(W=T[te],W.align==="right");)this._placeToken(W,n,P,y,H,"right",S),L-=W.width,H-=W.width,te--;for(N+=(o-(N-m)-(b-H)-L)/2;k<=te;)W=T[k],this._placeToken(W,n,P,y,N+W.width/2,"center",S),N+=W.width,k++;y+=P}},t.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,h=o+i/2;c==="top"?h=o+n.height/2:c==="bottom"&&(h=o+i-n.height/2);var p=!n.isLineHolder&&$1(u);p&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,h-n.height/2,n.width,n.height);var d=!!u.backgroundColor,g=n.textPadding;g&&(a=ER(a,s,g),h-=n.height/2-g[0]-n.innerHeight/2);var _=this._getOrCreateChild(Um),m=_.createStyle();_.useStyle(m);var y=this._defaultStyle,b=!1,S=0,x=TR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),E=CR("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!y.autoStroke||b)?(S=wR,y.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;m.text=n.text,m.x=a,m.y=h,T&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=n.font||bu,m.opacity=Yg(u.opacity,r.opacity,1),SR(m,u),E&&(m.lineWidth=Yg(u.lineWidth,r.lineWidth,S),m.lineDash=kt(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=E),x&&(m.fill=x);var M=n.contentWidth,P=n.contentHeight;_.setBoundingRect(new Jt(Sh(m.x,M,m.textAlign),pc(m.y,P,m.textBaseline),M,P))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,h=l&&l.image,p=l&&!h,d=n.borderRadius,g=this,_,m;if(p||n.lineHeight||u&&c){_=this._getOrCreateChild(cr),_.useStyle(_.createStyle()),_.style.fill=null;var y=_.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=d,_.dirtyShape()}if(p){var b=_.style;b.fill=l||null,b.fillOpacity=kt(n.fillOpacity,1)}else if(h){m=this._getOrCreateChild(ll),m.onload=function(){g.dirtyStyle()};var S=m.style;S.image=l.image,S.x=i,S.y=o,S.width=a,S.height=s}if(u&&c){var b=_.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=kt(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(_||m).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=Yg(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return QQ(n)&&(r=[n.fontStyle,n.fontWeight,JQ(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Xo(r)||n.textFont||n.font},t}(lp),KQ={left:!0,right:1,center:1},ZQ={top:1,bottom:1,middle:1},bR=["fontStyle","fontWeight","fontSize","fontFamily"];function JQ(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?qx+"px":e+"px"}function SR(e,t){for(var n=0;n0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function Nr(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 Xe(e)?tee(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Wn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),NN),e=(+e).toFixed(t),n?e:+e}function Va(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 nee(e)}function nee(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 ree(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 iee(e,t){var n=Math.max(Va(e),Va(t)),r=e+t;return n>NN?r:Wn(r,n)}function FN(e){var t=Math.PI*2;return(e%t+t)%t}function zm(e){return e>-MR&&e=10&&t++,t}function $N(e,t){var n=sC(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 Gm(e){var t=parseFloat(e);return t==e&&(t!==0||!Xe(e)||e.indexOf("x")<=0)?t:NaN}function see(e){return!isNaN(Gm(e))}function BN(){return Math.round(Math.random()*9)}function VN(e,t){return t===0?e:VN(t,e%t)}function PR(e,t){return e==null?t:t==null?e:e*t/VN(e,t)}function Zr(e){throw new Error(e)}function DR(e,t,n){return(t-e)*n+e}var HN="series\0",lee="\0_ec_\0";function $r(e){return e instanceof Array?e:e==null?[]:[e]}function IR(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0,o=!1;if(e instanceof pn){var a=GN(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Qu(s)||Qu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Le({},r),u=Le({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(o=!0,r=Le({},r),u=Le({},u),u.fill=cR(s)):!Qu(u.stroke)&&Qu(l)&&(o||(r=Le({},r),u=Le({},u)),u.stroke=cR(l)),r.style=u}}if(r&&r.z2==null){o||(r=Le({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Cee)}return r}function Pee(e,t,n){if(n&&n.z2==null){n=Le({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Tee)}return n}function Dee(e,t,n){var r=sn(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:Mee(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Le({},n),a=Le({opacity:r?i:o.opacity*.1},a),n.style=a),n}function V1(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Ree(this,e,t,n);if(e==="blur")return Dee(this,e,n);if(e==="select")return Pee(this,e,n)}return n}function Iee(e){e.stateProxy=V1;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=V1),n&&(n.stateProxy=V1)}function BR(e,t){!ZN(e,t)&&!e.__highByOuter&&Qa(e,WN)}function VR(e,t){!ZN(e,t)&&!e.__highByOuter&&Qa(e,YN)}function Wm(e,t){e.__highByOuter|=1<<(t||0),Qa(e,WN)}function Ym(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Qa(e,YN)}function Lee(e){Qa(e,hC)}function qN(e){Qa(e,jN)}function XN(e){Qa(e,Eee)}function KN(e){Qa(e,Aee)}function ZN(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function JN(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=cC(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){jN(u)}),s&&n.push(o)),a.isBlured=!1}),G(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function eS(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var h=0;h0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function nS(e,t,n){QN(e,!0),Qa(e,Iee),Vee(e,t,n)}function Bee(e){QN(e,!1)}function rS(e,t,n,r){r?Bee(e):nS(e,t,n)}function Vee(e,t,n){var r=hn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var UR=["emphasis","blur","select"],Hee={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function zR(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=H1(g),s*=H1(g));var _=(i===o?-1:1)*H1((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,m=_*a*d/s,y=_*-s*p/a,b=(e+n)/2+zv(h)*m-Uv(h)*y,S=(t+r)/2+Uv(h)*m+zv(h)*y,x=jR([1,0],[(p-m)/a,(d-y)/s]),E=[(p-m)/a,(d-y)/s],T=[(-1*p-m)/a,(-1*d-y)/s],M=jR(E,T);if(aS(E,T)<=-1&&(M=Xf),aS(E,T)>=1&&(M=0),M<0){var P=Math.round(M/Xf*1e6)/1e6;M=Xf*2+P%2*Xf}c.addData(u,b,S,a,s,x,M,h,o)}var jee=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qee=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xee(e){var t=new xu;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=xu.CMD,l=e.match(jee);if(!l)return t;for(var u=0;u=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=sn(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=sn(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;iW*W+X*X&&(P=k,L=N),{cx:P,cy:L,x0:-c,y0:-h,x1:P*(i/E-1),y1:L*(i/E-1)}}function rte(e){var t;if(ze(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 ite(e,t){var n,r=Th(t.r,0),i=Th(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,h=t.cy,p=!!t.clockwise,d=XR(u-l),g=d>U1&&d%U1;if(g>fo&&(d=g),!(r>fo))e.moveTo(c,h);else if(d>U1-fo)e.moveTo(c+r*tc(l),h+r*kl(l)),e.arc(c,h,r,l,u,!p),i>fo&&(e.moveTo(c+i*tc(u),h+i*kl(u)),e.arc(c,h,i,u,l,p));else{var _=void 0,m=void 0,y=void 0,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0,M=void 0,P=void 0,L=void 0,k=void 0,N=void 0,H=void 0,te=void 0,W=void 0,X=r*tc(l),j=r*kl(l),oe=i*tc(u),Q=i*kl(u),fe=d>fo;if(fe){var _e=t.cornerRadius;_e&&(n=rte(_e),_=n[0],m=n[1],y=n[2],b=n[3]);var be=XR(r-i)/2;if(S=zo(be,y),x=zo(be,b),E=zo(be,_),T=zo(be,m),L=M=Th(S,x),k=P=Th(E,T),(M>fo||P>fo)&&(N=r*tc(u),H=r*kl(u),te=i*tc(l),W=i*kl(l),dfo){var we=zo(y,L),xe=zo(b,L),Ee=Gv(te,W,X,j,r,we,p),De=Gv(N,H,oe,Q,r,xe,p);e.moveTo(c+Ee.cx+Ee.x0,h+Ee.cy+Ee.y0),L0&&e.arc(c+Ee.cx,h+Ee.cy,we,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,h,r,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(De.cy+De.y1,De.cx+De.x1),!p),xe>0&&e.arc(c+De.cx,h+De.cy,xe,vr(De.y1,De.x1),vr(De.y0,De.x0),!p))}else e.moveTo(c+X,h+j),e.arc(c,h,r,l,u,!p);if(!(i>fo)||!fe)e.lineTo(c+oe,h+Q);else if(k>fo){var we=zo(_,k),xe=zo(m,k),Ee=Gv(oe,Q,N,H,i,-xe,p),De=Gv(X,j,te,W,i,-we,p);e.lineTo(c+Ee.cx+Ee.x0,h+Ee.cy+Ee.y0),k0&&e.arc(c+Ee.cx,h+Ee.cy,xe,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,h,i,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(De.cy+De.y1,De.cx+De.x1),p),we>0&&e.arc(c+De.cx,h+De.cy,we,vr(De.y1,De.x1),vr(De.y0,De.x0),!p))}else e.lineTo(c+oe,h+Q),e.arc(c,h,i,u,l,p)}e.closePath()}}}var ote=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}(),ry=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ote},t.prototype.buildPath=function(n,r){ite(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pn);ry.prototype.type="sector";var ate=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),vC=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ate},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}(pn);vC.prototype.type="ring";function ste(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,h;if(r){c=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,d=e.length;p=2){if(r){var o=ste(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,h=i.length;sFl[1]){if(s=!1,o)return s;var c=Math.abs(Fl[0]-Nl[1]),h=Math.abs(Nl[0]-Fl[1]);Math.min(c,h)>i.len()&&(c0){var h=c.duration,p=c.delay,d=c.easing,g={duration:h,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Qs(e,t,n,r,i,o){wC("update",e,t,n,r,i,o)}function fp(e,t,n,r,i,o){wC("enter",e,t,n,r,i,o)}function id(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function JR(e){return!e.isGroup}function Dte(e){return e.shape!=null}function uF(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){JR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return Dte(a)&&(s.shape=Le({},a.shape)),s}var o=r(e);t.traverse(function(a){if(JR(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Qs(a,l,n,hn(a).dataIndex)}}})}function Ite(e,t){return ct(e,function(n){var r=n[0];r=Xm(r,t.x),r=Km(r,t.x+t.width);var i=n[1];return i=Xm(i,t.y),i=Km(i,t.y+t.height),[r,i]})}function Lte(e,t){var n=Xm(e.x,t.x),r=Km(e.x+e.width,t.x+t.width),i=Xm(e.y,t.y),o=Km(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 xC(e,t,n){var r=Le({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),rn(i,n),new ll(r)):bC(e.replace("path://",""),r,n,"center")}function Ote(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var m=z1(d,g,c,h)/p;return!(m<0||m>1)}function z1(e,t,n,r){return e*r-n*t}function kte(e){return e<=1e-6&&e>=-1e-6}function CC(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Xe(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&&G(Cn(l),function(c){Jc(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=hn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:rn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function QR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function TC(e,t){if(e)if(ze(e))for(var n=0;n1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&p===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d1)for(var s=0;s_&&(_=S)}d[0]=g,d[1]=_}},i=function(){return this._data?this._data.length/this._dimSize:0};uP=(t={},t[ai+"_"+Ga]={pure:!0,appendData:o},t[ai+"_"+hf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ha]={pure:!0,appendData:o},t[es]={pure:!0,appendData:function(a){var s=this._data;G(a,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[no]={appendData:o},t[Ys]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;si?-this._resultLT:0},e}(),sy="undefined",une=typeof Uint32Array===sy?Array:Uint32Array,cne=typeof Uint16Array===sy?Array:Uint16Array,EF=typeof Int32Array===sy?Array:Int32Array,dP=typeof Float64Array===sy?Array:Float64Array,AF={float:dP,int:EF,ordinal:Array,number:Array,time:dP},q1;function Zf(e){return e>65535?une:cne}function nc(){return[1/0,-1/0]}function fne(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function pP(e,t,n,r,i){var o=AF[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;um[1]&&(m[1]=_)}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=ct(a,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c=0&&l<0)&&(s=g,l=d,u=0),d===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=h&&b<=p||isNaN(b))&&(l[u++]=_),_++}g=!0}else if(o===2){for(var m=d[i[0]],S=d[i[1]],x=t[i[1]][0],E=t[i[1]][1],y=0;y=h&&b<=p||isNaN(b))&&(T>=x&&T<=E||isNaN(T))&&(l[u++]=_),_++}g=!0}}if(!g)if(o===1)for(var y=0;y=h&&b<=p||isNaN(b))&&(l[u++]=M)}else for(var y=0;yt[k][1])&&(P=!1)}P&&(l[u++]=n.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},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,h,p,d=new(Zf(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var g=1;gc&&(c=h,p=x)}N>0&&Nc-g&&(l=c-g,s.length=l);for(var _=0;_h[1]&&(h[1]=y),p[d++]=b}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();ol&&(l=h)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,o){return Qg(n[o],this._dimensions[o])}q1={arrayRows:t,objectRows:function(n,r,i,o){return Qg(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Qg(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),hne=Kn(),dne={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},MF=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=DF(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return kt(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=bF(this.source),r=!IF(t),i="",o=[],a=0,s=0;a30}var Jf=st,_s=ct,pne=typeof Int32Array>"u"?Array:Int32Array,vne="e\0\0",vP=-1,gne=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mne=["_approximateExtent"],gP,jv,Qf,eh,X1,qv,K1,yne=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;RF(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===no;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),ze(o)?o=o.slice():Jf(o)&&(o=Le({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Jf(n)?Le(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Jf(t)?Le(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?Le(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;xee(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){G(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:_s(this.dimensions,this._getDimInfo,this),this.hostModel)),X1(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];_t(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Jx(arguments)))})},e.internalField=function(){gP=function(t){var n=t._invertedIndicesMap;G(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new pne(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function _ne(e,t){MC(e)||(e=_F(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Rt(),o=[],a=bne(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&IF(a),l=r===e.dimensionsDefine,u=l?DF(e):PF(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=Rt(c),p=new EF(a),d=0;d0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function bne(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return G(t,function(o){var a;st(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Sne(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 Z1={},PC=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];G(Z1,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){G(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){Z1[t]=n},e.get=function(t){return Z1[t]},e}(),xne=function(){function e(t){this.coordSysDims=[],this.axisMap=Rt(),this.categoryAxisMap=Rt(),this.coordSysName=t}return e}();function Cne(e){var t=e.get("coordinateSystem"),n=new xne(t),r=Tne[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Tne={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",So).models[0],o=e.getReferringComponents("yAxis",So).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),rc(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),rc(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",So).models[0];t.coordSysDims=["single"],n.set("single",i),rc(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",So).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),rc(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),rc(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();G(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),rc(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function rc(e){return e.get("type")==="category"}function Ene(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;Ane(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,h,p;if(G(o,function(b,S){Xe(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){h="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,_=0;G(o,function(b){b.coordDim===d&&_++});var m={name:h,coordDim:d,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:p,coordDim:p,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(p,g),y.storeDimIndex=s.ensureCalculationDimension(h,g)),a.appendCalculationDimension(m),a.appendCalculationDimension(y)):(o.push(m),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:h}}function Ane(e){return!RF(e.schema)}function Hd(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Mne(e,t){return Hd(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Rne(e,t){var n=e.get("coordinateSystem"),r=PC.get(n),i;return t&&t.coordSysDims&&(i=ct(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=ane(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Pne(e,t,n){var r,i;return n&&G(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 Dne(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===no;var a=Cne(t),s=Rne(t,a),l=n.useEncodeDefaulter,u=_t(l)?l:l?tr(Xte,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=_ne(i,c),p=Pne(h.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(h),g=Ene(t,{schema:h,store:d}),_=new yne(h,t);_.setCalculationInfo(g);var m=p!=null&&Ine(i)?function(y,b,S,x){return x===p?S:this.defaultDimValueGetter(y,b,S,x)}:null;return _.hasItemOption=!1,_.initData(o?i:d,null,m),_}function Ine(e){if(e.sourceFormat===no){var t=Lne(e.data||[]);return!ze(up(t))}}function Lne(e){for(var t=0;t=0&&s.push(l)}),s}}function Fne(e,t){return Zt(Zt({},e,!0),t,!0)}var $ne=Math.log(2);function cS(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function Hne(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(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?mP(s,a):mP(a,s))}function LF(e){return e.nodeName.toUpperCase()==="CANVAS"}var Une=/([&<>"'])/g,zne={"&":"&","<":"<",">":">",'"':""","'":"'"};function bi(e){return e==null?"":(e+"").replace(Une,function(t,n){return zne[n]})}const Gne={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:". "}}}},Wne={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 Zm="ZH",DC="EN",Bc=DC,em={},IC={},OF=vt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bc).toUpperCase();return e.indexOf(Zm)>-1?Zm:Bc}():Bc;function kF(e,t){e=e.toUpperCase(),IC[e]=new On(t),em[e]=t}function Yne(e){if(Xe(e)){var t=em[e.toUpperCase()]||{};return e===Zm||e===DC?Nt(t):Zt(Nt(t),Nt(em[Bc]),!1)}else return Zt(Nt(e),Nt(em[Bc]),!1)}function jne(e){return IC[e]}function qne(){return IC[Bc]}kF(DC,Gne);kF(Zm,Wne);var LC=1e3,OC=LC*60,od=OC*60,Ki=od*24,_P=Ki*365,Eh={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}"},Xv="{yyyy}-{MM}-{dd}",wP={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xv,hour:Xv+" "+Eh.hour,minute:Xv+" "+Eh.minute,second:Xv+" "+Eh.second,millisecond:Eh.none},Q1=["year","month","day","hour","minute","second","millisecond"],NF=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ws(e,t){return e+="","0000".substr(0,t-e.length)+e}function Vc(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 Xne(e){return e===Vc(e)}function Kne(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function uy(e,t,n,r){var i=Ka(e),o=i[kC(n)](),a=i[Hc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[cy(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ud(n)](),h=(c-1)%12+1,p=i[fy(n)](),d=i[hy(n)](),g=i[dy(n)](),_=c>=12?"pm":"am",m=_.toUpperCase(),y=r instanceof On?r:jne(r||OF)||qne(),b=y.getModel("time"),S=b.get("month"),x=b.get("monthAbbr"),E=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,_+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,ws(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,ws(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,ws(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ws(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ws(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ws(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,ws(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,ws(g,3)).replace(/{S}/g,g+"")}function Zne(e,t,n,r,i){var o=null;if(Xe(n))o=n;else if(_t(n))o=n(e.value,t,{level:e.level});else{var a=Le({},Eh);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ze(o)){var h=e.level==null?0:e.level>=0?e.level:o.length+e.level;h=Math.min(h,o.length-1),o=o[h]}}return uy(new Date(e.value),o,i,r)}function FF(e,t){var n=Ka(e),r=n[Hc(t)]()+1,i=n[cy(t)](),o=n[Ud(t)](),a=n[fy(t)](),s=n[hy(t)](),l=n[dy(t)](),u=l===0,c=u&&s===0,h=c&&a===0,p=h&&o===0,d=p&&i===1,g=d&&r===1;return g?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function bP(e,t,n){var r=Tn(e)?Ka(e):e;switch(t=t||FF(e,n),t){case"year":return r[kC(n)]();case"half-year":return r[Hc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Hc(n)]()+1)/4);case"month":return r[Hc(n)]();case"day":return r[cy(n)]();case"half-day":return r[Ud(n)]()/24;case"hour":return r[Ud(n)]();case"minute":return r[fy(n)]();case"second":return r[hy(n)]();case"millisecond":return r[dy(n)]()}}function kC(e){return e?"getUTCFullYear":"getFullYear"}function Hc(e){return e?"getUTCMonth":"getMonth"}function cy(e){return e?"getUTCDate":"getDate"}function Ud(e){return e?"getUTCHours":"getHours"}function fy(e){return e?"getUTCMinutes":"getMinutes"}function hy(e){return e?"getUTCSeconds":"getSeconds"}function dy(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Jne(e){return e?"setUTCFullYear":"setFullYear"}function $F(e){return e?"setUTCMonth":"setMonth"}function BF(e){return e?"setUTCDate":"setDate"}function VF(e){return e?"setUTCHours":"setHours"}function HF(e){return e?"setUTCMinutes":"setMinutes"}function UF(e){return e?"setUTCSeconds":"setSeconds"}function zF(e){return e?"setUTCMilliseconds":"setMilliseconds"}function GF(e){if(!see(e))return Xe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function WF(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 py=fN;function hS(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Xo(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?Ka(e):e;if(isNaN(+l)){if(s)return"-"}else return uy(l,r,n)}if(t==="ordinal")return Bb(e)?i(e):Tn(e)&&o(e)?e+"":"-";var u=Gm(e);return o(u)?GF(u):Bb(e)?i(e):typeof e=="boolean"?e+"":"-"}var SP=["a","b","c","d","e","f","g"],ew=function(e,t){return"{"+e+(t??"")+"}"};function YF(e,t,n){ze(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Tu(e,t){return t=t||"transparent",Xe(e)?e:st(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var tm=G,ere=["left","right","top","bottom","width","height"],Kv=[["width","left","right"],["height","top","bottom"]];function NC(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(),h=t.childAt(u+1),p=h&&h.getBoundingRect(),d,g;if(e==="horizontal"){var _=c.width+(p?-p.x+c.x:0);d=o+_,d>r||l.newline?(o=0,d=_,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(p?-p.y+c.y:0);g=a+m,g>i||l.newline?(o+=s+n,a=0,g=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=d+n:a=g+n)})}var ad=NC;tr(NC,"vertical");tr(NC,"horizontal");function Jm(e,t,n){n=py(n||0);var r=t.width,i=t.height,o=Nr(e.left,r),a=Nr(e.top,i),s=Nr(e.right,r),l=Nr(e.bottom,i),u=Nr(e.width,r),c=Nr(e.height,i),h=n[2]+n[0],p=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-h-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-h),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var g=new Jt(o+n[3],a+n[0],u,c);return g.margin=n,g}function zd(e){var t=e.layoutMode||e.constructor.layoutMode;return st(t)?t:t?{type:t}:null}function tf(e,t,n){var r=n&&n.ignoreSize;!ze(r)&&(r=[r,r]);var i=a(Kv[0],0),o=a(Kv[1],1);u(Kv[0],e,i),u(Kv[1],e,o);function a(c,h){var p={},d=0,g={},_=0,m=2;if(tm(c,function(S){g[S]=e[S]}),tm(c,function(S){s(t,S)&&(p[S]=g[S]=t[S]),l(p,S)&&d++,l(g,S)&&_++}),r[h])return l(t,c[1])?g[c[2]]=null:l(t,c[2])&&(g[c[1]]=null),g;if(_===m||!d)return g;if(d>=m)return p;for(var y=0;y=0;l--)s=Zt(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return cp(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}(On);gN(an,On);q0(an);kne(an);Nne(an,rre);function rre(e){var t=[];return G(an.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=ct(t,function(n){return Ko(n).main}),e!=="dataset"&&sn(t,"dataset")<=0&&t.unshift("dataset"),t}var xP=Kn();Kn();var FC=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=$r(this.get("color",!0)),o=this.get("colorLayer",!0);return ore(this,xP,i,o,t,n,r)},e.prototype.clearColorPalette=function(){are(this,xP)},e}();function ire(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function ore(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:ire(r,a);if(c=c||n,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function are(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var sre=/\{@(.+?)\}/g,lre=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,h=this.mainType,p=h==="series",d=r.userOutput&&r.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ze(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(_t(o))return l.status=n,l.dimensionIndex=i,o(l);if(Xe(o)){var c=YF(o,l);return c.replace(sre,function(h,p){var d=p.length,g=p;g.charAt(0)==="["&&g.charAt(d-1)==="]"&&(g=+g.slice(1,d-1));var _=ef(s,t,g);if(a&&ze(a.interpolatedValue)){var m=s.getDimensionIndex(g);m>=0&&(_=a.interpolatedValue[m])}return _!=null?_+"":""})}},e.prototype.getRawValue=function(t,n){return ef(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function CP(e){var t,n;return st(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function sd(e){return new ure(e)}var ure=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 h;(this._dirty||o==="reset")&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(h||d1&&r>0?s:a}};return o;function a(){return t=e?null:l9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Zv(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=ii(s)?Ys:no,o=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=kt(h.seriesLayoutBy,p.seriesLayoutBy)||null,g=kt(h.sourceHeader,p.sourceHeader),_=kt(h.dimensions,p.dimensions),m=d!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||_;i=m?[lS(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:_},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=[lS(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&&EP(o)}var a,s=[],l=[];return G(t,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&EP(h),s.push(c),l.push(u._getVersionSign())}),r?a=mre(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[Jte(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return G(e.blocks,function(i){var o=ZF(i);o>=t&&(t=o+ +(r&&(!o||dS(i)&&!i.noHeader)))}),t}return 0}function Sre(e,t,n,r){var i=t.noHeader,o=Cre(ZF(t)),a=[],s=t.blocks||[];Xa(!s||ze(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Jc(u,l)){var c=new lne(u[l],null);s.sort(function(g,_){return c.evaluate(g.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}G(s,function(g,_){var m=t.valueFormatter,y=KF(g)(m?Le(Le({},e),{valueFormatter:m}):e,g,_>0?o.html:0,r);y!=null&&a.push(y)});var h=e.renderMode==="richText"?a.join(o.richText):pS(a.join(""),i?n:o.html);if(i)return h;var p=hS(t.header,"ordinal",e.useUTC),d=XF(r,e.renderMode).nameStyle;return e.renderMode==="richText"?JF(e,p,d)+o.richText+h:pS('
'+bi(p)+"
"+h,n)}function xre(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(x){return x=ze(x)?x:[x],ct(x,function(E,T){return hS(E,ze(d)?d[T]:d,u)})};if(!(o&&a)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":hS(l,"ordinal",u),d=t.valueType,g=a?[]:c(t.value,t.dataIndex),_=!s||!o,m=!s&&o,y=XF(r,i),b=y.nameStyle,S=y.valueStyle;return i==="richText"?(s?"":h)+(o?"":JF(e,p,b))+(a?"":Are(e,g,_,m,S)):pS((s?"":h)+(o?"":Tre(p,!s,b))+(a?"":Ere(g,_,m,S)),n)}}function AP(e,t,n,r,i,o){if(e){var a=KF(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Cre(e){return{html:wre[e],richText:bre[e]}}function pS(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Tre(e,t,n){var r=t?"margin-left:2px":"";return''+bi(e)+""}function Ere(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ze(e)?e:[e],''+ct(e,function(a){return bi(a)}).join("  ")+""}function JF(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Are(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(ze(t)?t.join(" "):t,o)}function Mre(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Tu(r)}function QF(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var tw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=BN()}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=Qne({color:n,type:t,renderMode:r,markerId:i});return Xe(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ze(n)?G(n,function(o){return Le(r,o)}):Le(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function Rre(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=ze(s),u=Mre(t,n),c,h,p,d;if(a>1||l&&!a){var g=Pre(s,t,n,o,u);c=g.inlineValues,h=g.inlineValueTypes,p=g.blocks,d=g.inlineValues[0]}else if(a){var _=i.getDimensionInfo(o[0]);d=c=ef(i,n,o[0]),h=_.type}else d=c=l?s[0]:s;var m=lC(t),y=m&&t.name||"",b=i.getName(n),S=r?y:b;return Gd("section",{header:y,noHeader:r||!m,sortParam:d,blocks:[Gd("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Xo(S),value:c,valueType:h,dataIndex:n})].concat(p||[])})}function Pre(e,t,n,r,i){var o=t.getData(),a=cf(e,function(h,p,d){var g=o.getDimensionInfo(d);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?G(r,function(h){c(ef(o,n,h),h)}):G(e,c);function c(h,p){var d=o.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(Gd("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var bs=Kn();function Jv(e,t){return e.getName(t)||e.getId(t)}var Dre="__universalTransitionEnabled",el=function(e){Ve(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=sd({count:Lre,reset:Ore}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=bs(this).sourceManager=new _re(this);o.prepareSource();var a=this.getInitialData(n,i);RP(a,this),this.dataTask.context.data=a,bs(this).dataBeforeProcessed=a,MP(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=zd(this),o=i?vy(n):{},a=this.subType;an.hasClass(a)&&(a+="Series"),Zt(n,r.getTheme().get(this.subType)),Zt(n,this.getDefaultOption()),IR(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&tf(n,o,i)},t.prototype.mergeOption=function(n,r){n=Zt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=zd(this);i&&tf(this.option,n,i);var o=bs(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);RP(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,bs(this).dataBeforeProcessed=a,MP(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!ii(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=FC.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[Jv(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Dre])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"){st(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return an.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}(an);ca(el,lre);ca(el,FC);gN(el,an);function MP(e){var t=e.name;lC(e)||(e.name=Ire(e)||t)}function Ire(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return G(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function Lre(e){return e.model.getRawData().count()}function Ore(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),kre}function kre(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function RP(e,t){G(_J(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,tr(Nre,t))})}function Nre(e,t){var n=vS(e);return n&&n.setOutputEnd((t||this).count()),t}function vS(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 Fre=pn.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()}}),$re=pn.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()}}),Bre=pn.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,h=Math.sin(u),p=Math.cos(u),d=a*.6,g=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-h*d,l+s+p*d,n,r-g,n,r),e.bezierCurveTo(n,r-g,n-c+h*d,l+s+p*d,n-c,l+s),e.closePath()}}),Vre=pn.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()}}),Hre={line:Js,rect:cr,roundRect:cr,square:cr,circle:ny,diamond:$re,pin:Bre,arrow:Vre,triangle:Fre},Ure={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}},gS={};G(Hre,function(e,t){gS[t]=new e});var zre=pn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=_N(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=gS[r];i||(r="rect",i=gS[r]),Ure[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Gre(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 nf(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=aF(e.slice(8),new Jt(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=bC(e.slice(7),{},new Jt(t,n,r,i),a?"center":"cover"):l=new zre({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=Gre,o&&l.setColor(o),l}function Wre(e){return ze(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function e5(e,t){if(e!=null)return ze(e)||(e=[e,e]),[Nr(e[0],t[0])||0,Nr(kt(e[1],e[0]),t[1])||0]}var Yre=function(e){Ve(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 Dne(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new xr,i=nf("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=nf(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}(el);function t5(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=ef(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var BC=function(e){Ve(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=nf(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=qre,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(){Wm(this.childAt(0))},t.prototype.downplay=function(){Ym(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 h=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Qs(p,d,s,r),bte(p)}if(this._updateCommon(n,r,l,i,o),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,fp(p,d,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,h,p,d,g,_,m,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,h=o.selectItemStyle,p=o.focus,d=o.blurScope,_=o.labelStatesModels,m=o.hoverScale,y=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),h=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),p=S.get("focus"),d=S.get("blurScope"),g=S.get("disabled"),_=AC(b),m=S.getShallow("scale"),y=b.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var E=e5(n.getItemVisual(r,"symbolOffset"),i);E&&(s.x=E[0],s.y=E[1]),y&&s.attr("cursor",y);var T=n.getItemVisual(r,"style"),M=T.fill;if(s instanceof ll){var P=s.style;s.useStyle(Le({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},T))}else s.__isEmptyBrush?s.useStyle(Le({},T)):s.useStyle(T),s.style.decal=null,s.setColor(M,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var L=n.getItemVisual(r,"liftZ"),k=this._z2;L!=null?k==null&&(this._z2=s.z2,s.z2+=L):k!=null&&(s.z2=k,this._z2=null);var N=a&&a.useNameLabel;EC(s,_,{labelFetcher:l,labelDataIndex:r,defaultText:H,inheritColor:M,defaultOpacity:T.opacity});function H(X){return N?n.getName(X):t5(n,X)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var te=s.ensureState("emphasis");te.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var W=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;te.scaleX=this._sizeX*W,te.scaleY=this._sizeY*W,this.setSymbolScale(1),rS(this,p,d,g)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=hn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&qm(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();qm(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Wre(n.getItemVisual(r,"symbolSize"))},t}(xr);function qre(e,t){this.parent.drift(e,t)}function nw(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 PP(e){return e!=null&&!st(e)&&(e={isIgnore:e}),e||{}}function DP(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:AC(t),cursorStyle:t.get("cursor")}}var Xre=function(){function e(t){this.group=new xr,this._SymbolCtor=t||BC}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=PP(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=DP(t),u={disableAnimation:s},c=n.getSymbolPoint||function(h){return t.getItemLayout(h)};o||r.removeAll(),t.diff(o).add(function(h){var p=c(h);if(nw(t,p,h,n)){var d=new a(t,h,l,u);d.setPosition(p),t.setItemGraphicEl(h,d),r.add(d)}}).update(function(h,p){var d=o.getItemGraphicEl(p),g=c(h);if(!nw(t,g,h,n)){r.remove(d);return}var _=t.getItemVisual(h,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==_)r.remove(d),d=new a(t,h,l,u),d.setPosition(g);else{d.updateData(t,h,l,u);var y={x:g[0],y:g[1]};s?d.attr(y):Qs(d,y,i)}r.add(d),t.setItemGraphicEl(h,d)}).remove(function(h){var p=o.getItemGraphicEl(h);p&&p.fadeOut(function(){r.remove(p)},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=DP(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=PP(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o0?n=r[0]:r[1]<0&&(n=r[1]),n}function r5(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 i5=typeof Float32Array<"u",Zre=i5?Float32Array:Array;function wc(e){return ze(e)?i5?new Float32Array(e):e:new Zre(e)}function Jre(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 Qre(e,t,n,r,i,o,a,s){for(var l=Jre(e,t),u=[],c=[],h=[],p=[],d=[],g=[],_=[],m=n5(i,t,a),y=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S=i||_<0)break;if(gu(y,b)){if(l){_+=o;continue}break}if(_===n)e[o>0?"moveTo":"lineTo"](y,b),h=y,p=b;else{var S=y-u,x=b-c;if(S*S+x*x<.5){_+=o;continue}if(a>0){for(var E=_+o,T=t[E*2],M=t[E*2+1];T===y&&M===b&&m=r||gu(T,M))d=y,g=b;else{k=T-u,N=M-c;var W=y-u,X=T-y,j=b-c,oe=M-b,Q=void 0,fe=void 0;if(s==="x"){Q=Math.abs(W),fe=Math.abs(X);var _e=k>0?1:-1;d=y-_e*Q*a,g=b,H=y+_e*fe*a,te=b}else if(s==="y"){Q=Math.abs(j),fe=Math.abs(oe);var be=N>0?1:-1;d=y,g=b-be*Q*a,H=y,te=b+be*fe*a}else Q=Math.sqrt(W*W+j*j),fe=Math.sqrt(X*X+oe*oe),L=fe/(fe+Q),d=y-k*a*(1-L),g=b-N*a*(1-L),H=y+k*a*L,te=b+N*a*L,H=Ss(H,xs(T,y)),te=Ss(te,xs(M,b)),H=xs(H,Ss(T,y)),te=xs(te,Ss(M,b)),k=H-y,N=te-b,d=y-k*Q/fe,g=b-N*Q/fe,d=Ss(d,xs(u,y)),g=Ss(g,xs(c,b)),d=xs(d,Ss(u,y)),g=xs(g,Ss(c,b)),k=y-d,N=b-g,H=y+k*fe/Q,te=b+N*fe/Q}e.bezierCurveTo(h,p,d,g,y,b),h=H,p=te}else e.lineTo(y,b)}u=y,c=b,_+=o}return m}var o5=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),eie=function(e){Ve(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 o5},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&gu(i[a*2-2],i[a*2-1]);a--);for(;o=0){var x=u?(g-l)*S+l:(d-s)*S+s;return u?[n,x]:[x,n]}s=d,l=g;break;case a.C:d=o[h++],g=o[h++],_=o[h++],m=o[h++],y=o[h++],b=o[h++];var E=u?Fm(s,d,_,y,n,c):Fm(l,g,m,b,n,c);if(E>0)for(var T=0;T=0){var x=u?lr(l,g,m,b,M):lr(s,d,_,y,M);return u?[n,x]:[x,n]}}s=y,l=b;break}}},t}(pn),tie=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(o5),nie=function(e){Ve(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 tie},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&&gu(i[s*2-2],i[s*2-1]);s--);for(;at){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function hie(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=ct(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=fie(u,i==="x"?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,_=p[0].coord-g,m=p[d-1].coord+g,y=m-_;if(y<.001)return"transparent";G(p,function(S){S.offset=(S.coord-_)/y}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var b=new _C(0,0,0,0,p,!0);return b[i]=_,b[i+"2"]=m,b}}}function die(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&pie(o,t))){var a=t.mapDimension(o.dim),s={};return G(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function pie(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function vie(e,t){return isNaN(e)||isNaN(t)}function gie(e){for(var t=e.length/2;t>0&&vie(e[t*2-2],e[t*2-1]);t--);return t-1}function $P(e,t){return[e[t*2],e[t*2+1]]}function mie(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function l5(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var _e=_.getState("emphasis").style;_e.lineWidth=+_.style.lineWidth+1}hn(_).seriesIndex=n.seriesIndex,rS(_,oe,Q,fe);var be=FP(n.get("smooth")),Ne=n.get("smoothMonotone");if(_.setShape({smooth:be,smoothMonotone:Ne,connectNulls:P}),m){var ke=l.getCalculationInfo("stackedOnSeries"),qe=0;m.useStyle(rn(c.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ke&&(qe=FP(ke.get("smooth"))),m.setShape({smooth:be,stackedOnSmooth:qe,smoothMonotone:Ne,connectNulls:P}),zR(m,n,"areaStyle"),hn(m).seriesIndex=n.seriesIndex,rS(m,oe,Q,fe)}var He=function(Ye){o._changePolyState(Ye)};l.eachItemGraphicEl(function(Ye){Ye&&(Ye.onHoverStateChange=He)}),this._polyline.onHoverStateChange=He,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=N,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,_),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){hn(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=Cu(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],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var p=n.get("zlevel")||0,d=n.get("z")||0;u=new BC(a,s),u.x=c,u.y=h,u.setZ(p,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qo.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Cu(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 Qo.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;$R(this._polyline,n),r&&$R(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new eie({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 nie({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");_t(c)&&(c=c(null));var h=u.get("animationDelay")||0,p=_t(h)?h(null):h;n.eachItemGraphicEl(function(d,g){var _=d;if(_){var m=[d.x,d.y],y=void 0,b=void 0,S=void 0;if(i)if(a){var x=i,E=r.pointToCoord(m);o?(y=x.startAngle,b=x.endAngle,S=-E[1]/180*Math.PI):(y=x.r0,b=x.r,S=E[0])}else{var T=i;o?(y=T.x,b=T.x+T.width,S=d.x):(y=T.y+T.height,b=T.y,S=d.y)}var M=b===y?0:(S-y)/(b-y);l&&(M=1-M);var P=_t(h)?h(g):c*M+p,L=_.getSymbolPath(),k=L.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),k&&k.animateFrom({style:{opacity:0}},{duration:300,delay:P}),L.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(l5(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 oi({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=gie(l);c>=0&&(EC(s,AC(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(h,p,d){return d!=null?jre(a,d):t5(a,h)},enableTextSetter:!0},yie(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 h=i.getLayout("points"),p=i.hostModel,d=p.get("connectNulls"),g=s.get("precision"),_=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,S=r.shape,x=b?y?S.x:S.y+S.height:y?S.x+S.width:S.y,E=(y?_:0)*(b?-1:1),T=(y?0:-_)*(b?-1:1),M=y?"x":"y",P=mie(h,x,M),L=P.range,k=L[1]-L[0],N=void 0;if(k>=1){if(k>1&&!d){var H=$P(h,L[0]);u.attr({x:H[0]+E,y:H[1]+T}),a&&(N=p.getRawValue(L[0]))}else{var H=c.getPointOn(x,M);H&&u.attr({x:H[0]+E,y:H[1]+T});var te=p.getRawValue(L[0]),W=p.getRawValue(L[1]);a&&(N=See(i,g,te,W,P.t))}o.lastFrameIndex=L[0]}else{var X=n===1||o.lastFrameIndex>0?L[0]:0,H=$P(h,X);a&&(N=p.getRawValue(X)),u.attr({x:H[0]+E,y:H[1]+T})}if(a){var j=fF(u);typeof j.setLabelText=="function"&&j.setLabelText(N)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,h=n.hostModel,p=Qre(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=p.current,g=p.stackedOnCurrent,_=p.next,m=p.stackedOnNext;if(a&&(d=Cs(p.current,i,a,l),g=Cs(p.stackedOnCurrent,i,a,l),_=Cs(p.next,i,a,l),m=Cs(p.stackedOnNext,i,a,l)),NP(d,_)>3e3||c&&NP(g,m)>3e3){u.stopAnimation(),u.setShape({points:_}),c&&(c.stopAnimation(),c.setShape({points:_,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=d;var y={shape:{points:_}};p.current!==d&&(y.shape.__points=p.next),u.stopAnimation(),Qs(u,y,h),c&&(c.setShape({points:d,stackedOnPoints:g}),c.stopAnimation(),Qs(c,{shape:{stackedOnPoints:m}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=p.status,x=0;xt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Sie=function(e){return Math.round(e.length/2)};function xie(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(),h=r.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var g=void 0;Xe(o)?g=bie[o]:_t(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,g,Sie))}}}}}function Cie(e){e.registerChartView(_ie),e.registerSeriesModel(Yre),e.registerLayout(wie("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,xie("line"))}var Tie="__ec_stack_";function u5(e){return e.get("stack")||Tie+e.seriesIndex}function c5(e){return e.dim+e.index}function Eie(e,t){var n=[];return t.eachSeriesByType(e,function(r){Die(r)&&n.push(r)}),n}function Aie(e){var t={};G(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),p=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),g=h.getStore(),_=0,m=g.count();_0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function Mie(e){var t=Aie(e),n=[];return G(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]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?c/p*u:c}else{var d=r.getData();s=Math.abs(a[1]-a[0])/d.count()}var g=Nr(r.get("barWidth"),s),_=Nr(r.get("barMaxWidth"),s),m=Nr(r.get("barMinWidth")||(Iie(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:_,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:c5(o),stackId:u5(r)})}),Rie(n)}function Rie(e){var t={};G(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 h=r.barMaxWidth;h&&(l[u].maxWidth=h);var p=r.barMinWidth;p&&(l[u].minWidth=p);var d=r.barGap;d!=null&&(s.gap=d);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return G(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Cn(o).length;s=Math.max(35-l*4,15)+"%"}var u=Nr(s,a),c=Nr(r.gap,1),h=r.remainedWidth,p=r.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),G(o,function(y){var b=y.maxWidth,S=y.minWidth;if(y.width){var x=y.width;b&&(x=Math.min(x,b)),S&&(x=Math.max(x,S)),y.width=x,h-=x+c*x,p--}else{var x=d;b&&bx&&(x=S),x!==d&&(y.width=x,h-=x+c*x,p--)}}),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var g=0,_;G(o,function(y,b){y.width||(y.width=d),_=y,g+=y.width*(1+c)}),_&&(g-=_.width*c);var m=-g/2;G(o,function(y,b){n[i][b]=n[i][b]||{bandWidth:a,offset:m,width:y.width},m+=y.width*(1+c)})}),n}function Pie(e,t,n){if(e&&t){var r=e[c5(t)];return r!=null&&n!=null?r[u5(n)]:r}}function Die(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Iie(e){return e.pipelineContext&&e.pipelineContext.large}var Qm="\0__throttleOriginMethod",BP="\0__throttleRate",VP="\0__throttleType";function f5(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function h(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var p=function(){for(var d=[],g=0;g=0?h():a=setTimeout(h,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){c=d},p}function h5(e,t,n,r){var i=e[t];if(i){var o=i[Qm]||i,a=i[VP],s=i[BP];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=f5(o,n,r==="debounce"),i[Qm]=o,i[VP]=r,i[BP]=n}return i}}function yS(e,t){var n=e[t];n&&n[Qm]&&(n.clear&&n.clear(),e[t]=n[Qm])}function ic(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&_S(e,a,t,n)}else{_S(e,t,t,n);var o=Bie(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Fie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Bie(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 Vie(e,t,n,r){e.addEventListener(t,n,r)}function Hie(e,t,n,r){e.removeEventListener(t,n,r)}var d5=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Uie=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a1&&r&&r.length>1){var o=UP(r)/UP(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=zie(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},p5="silent";function Gie(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:Wie}}function Wie(){d5(this.event)}var Yie=function(e){Ve(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}(fa),th=function(){function e(t,n){this.x=t,this.y=n}return e}(),jie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],aw=new Jt(0,0,0,0),v5=function(e){Ve(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new th(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new Yie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Nie(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(G(jie,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=g5(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 th(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 th(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=Gie(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 th(n,r);if(zP(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Jt(n-u,r-u,l,l),h=o.length-1;h>=0;h--){var p=o[h];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(aw.copy(p.getBoundingRect()),p.transform&&aw.applyTransform(p.transform),aw.intersect(c)&&s.push(p))}if(s.length)for(var d=4,g=Math.PI/12,_=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function qie(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?p5:!0}return!1}function zP(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=qie(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==p5)){t.target=a;break}}}function g5(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var m5=32,nh=7;function Xie(e){for(var t=0;e>=m5;)t|=e&1,e>>=1;return e+t}function GP(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Kie(e,t,n){for(n--;t>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function sw(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function lw(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function Zie(e,t){var n=nh,r,i,o=0,a=[];r=[],i=[];function s(d,g){r[o]=d,i[o]=g,o+=1}function l(){for(;o>1;){var d=o-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;o>1;){var d=o-2;d>0&&i[d-1]=nh||M>=nh);if(P)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),g===1){for(y=0;y=0;y--)e[T+y]=e[E+y];e[x]=a[S];return}for(var M=n;;){var P=0,L=0,k=!1;do if(t(a[S],e[b])<0){if(e[x--]=e[b--],P++,L=0,--g===0){k=!0;break}}else if(e[x--]=a[S--],L++,P=0,--m===1){k=!0;break}while((P|L)=0;y--)e[T+y]=e[E+y];if(g===0){k=!0;break}}if(e[x--]=a[S--],--m===1){k=!0;break}if(L=m-sw(e[b],a,0,m,m-1,t),L!==0){for(x-=L,S-=L,m-=L,T=x+1,E=S+1,y=0;y=nh||L>=nh);if(k)break;M<0&&(M=0),M+=2}if(n=M,n<1&&(n=1),m===1){for(x-=g,b-=g,T=x+1,E=b+1,y=g-1;y>=0;y--)e[T+y]=e[E+y];e[x]=a[S]}else{if(m===0)throw new Error;for(E=x-(m-1),y=0;ys&&(l=s),WP(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 YP=!1;function uw(){YP||(YP=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jP(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Jie=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jP}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(uw(),c.z=0),isNaN(c.z2)&&(uw(),c.z2=0),isNaN(c.zlevel)&&(uw(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),e0;e0=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function bc(){return new Date().getTime()}var Qie=function(e){Ve(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=bc()-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&&(e0(r),!n._paused&&n.update())}e0(r)},t.prototype.start=function(){this._running||(this._time=bc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=bc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=bc()-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 aC(n,r.loop);return this.addAnimator(i),i},t}(fa),eoe=300,cw=vt.domSupported,fw=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=ct(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),qP={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},XP=!1;function wS(e){var t=e.pointerType;return t==="pen"||t==="touch"}function toe(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 hw(e){e&&(e.zrByTouch=!0)}function noe(e,t){return Ui(e.dom,new roe(e,t),!0)}function y5(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 roe=function(){function e(t,n){this.stopPropagation=ti,this.stopImmediatePropagation=ti,this.preventDefault=ti,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),ho={mousedown:function(e){e=Ui(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ui(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=Ui(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ui(this.dom,e);var t=e.toElement||e.relatedTarget;y5(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){XP=!0,e=Ui(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){XP||(e=Ui(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ui(this.dom,e),hw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ho.mousemove.call(this,e),ho.mousedown.call(this,e)},touchmove:function(e){e=Ui(this.dom,e),hw(e),this.handler.processGesture(e,"change"),ho.mousemove.call(this,e)},touchend:function(e){e=Ui(this.dom,e),hw(e),this.handler.processGesture(e,"end"),ho.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n=0;l--)o[l]&&!Bd(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[QP],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a=t:n==="max"?e<=t:e===t}function xoe(e,t){return e.join(",")===t.join(",")}var lo=G,Wd=st,rD=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=rD.length;n=0;m--){var y=e[m];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,d)),g>=0){var b=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&p>=0&&b>0||l==="samesign"&&p<=0&&b<0){p=iee(p,b),_=b;break}}}return r[0]=p,r[1]=_,r})})}var sa=function(){function e(){this.group=new xr,this.uid=ly("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}();Qx(sa);q0(sa);var lD=Kn(),uD={itemStyle:Fd(dF,!0),lineStyle:Fd(hF,!0)},Loe={lineStyle:"stroke",itemStyle:"fill"};function C5(e,t){var n=e.visualStyleMapper||uD[t];return n||(console.warn("Unknown style type '"+t+"'."),uD.itemStyle)}function T5(e,t){var n=e.visualDrawType||Loe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ooe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=C5(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=T5(e,r),u=a[l],c=_t(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||_t(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||_t(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var _=e.getDataParams(g),m=Le({},a);m[l]=c(_),d.setItemVisual(g,"style",m)}}}},oh=new On,koe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=C5(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){oh.option=l[r];var u=i(oh),c=a.ensureUniqueItemVisual(s,"style");Le(c,u),oh.option.decal&&(a.setItemVisual(s,"decal",oh.option.decal),oh.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Noe={performRawSeries:!0,overallReset:function(e){var t=Rt();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)),lD(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=lD(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=T5(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],h=o.getItemVisual(c,"colorFromPalette");if(h){var p=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",g=r.count();p[l]=n.getColorFromPalette(d,a,g)}})}})}},eg=Math.PI;function Foe(e,t){t=t||{},rn(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 xr,r=new cr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new oi({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 cr({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 iy({shape:{startAngle:-eg/2,endAngle:-eg/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:eg*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:eg*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 E5=function(){function e(t,n,r,i){this._stageTaskMap=Rt(),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=Rt();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;G(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";Xa(!(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;G(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var d,g=p.agentStubMap;g.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,r);var _=a.getPerformArgs(p,i.block);g.each(function(m){m.perform(_)}),p.perform(_)&&(o=!0)}else h&&h.each(function(m,y){s(i,m)&&m.dirty();var b=a.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(m.context.model),a.updatePayload(m,r),m.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=Rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(h){var p=h.uid,d=s.set(p,a&&a.get(p)||sd({plan:Uoe,reset:zoe,count:Woe}));d.context={model:h,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(h,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||sd({reset:$oe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Rt(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1,d="";Xa(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(h=!1,G(r.getSeries(),g));function g(_){var m=_.uid,y=l.set(m,s&&s.get(m)||(p=!0,sd({reset:Boe,onDirty:Hoe})));y.context={model:_,overallProgress:h},y.agent=a,y.__block=h,o._pipe(_,y)}p&&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 _t(t)&&(t={overallReset:t,seriesType:Yoe(t)}),t.uid=ly("stageHandler"),n&&(t.visualType=n),t},e}();function $oe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Boe(e){return e.overallProgress&&Voe}function Voe(){this.agent.dirty(),this.getDownstream().dirty()}function Hoe(){this.agent&&this.agent.dirty()}function Uoe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function zoe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=$r(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ct(t,function(n,r){return A5(r)}):Goe}var Goe=A5(0);function A5(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&d===u.length-p.length){var g=u.slice(0,d);g!=="data"&&(n.mainType=g,n[p.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(h,p,d,g){return h[d]==null||p[g||d]===h[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),SS=["symbol","symbolSize","symbolRotate","symbolOffset"],dD=SS.concat(["symbolKeepAspect"]),Xoe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a=0&&ou(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function xS(e,t,n){for(var r=t.type==="radial"?rae(e,t,n):nae(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tn(e)?[e]:ze(e)?e:null}function D5(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&oae(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=ct(n,function(o){return o/i}),r/=i)}return[n,r]}var aae=new xu(!0);function n0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function pD(e){return typeof e=="string"&&e!=="none"}function r0(e){var t=e.fill;return t!=null&&t!=="none"}function vD(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 gD(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 CS(e,t,n){var r=yN(t.image,t.__image,n);if(X0(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)*wJ),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function sae(e,t,n,r){var i,o=n0(n),a=r0(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||aae,h=t.__dirty;if(!r){var p=n.fill,d=n.stroke,g=a&&!!p.colorStops,_=o&&!!d.colorStops,m=a&&!!p.image,y=o&&!!d.image,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0;(g||_)&&(T=t.getBoundingRect()),g&&(b=h?xS(e,p,T):t.__canvasFillGradient,t.__canvasFillGradient=b),_&&(S=h?xS(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),m&&(x=h||!t.__canvasFillPattern?CS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(E=h||!t.__canvasStrokePattern?CS(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=b:m&&(x?e.fillStyle=x:a=!1),_?e.strokeStyle=S:y&&(E?e.strokeStyle=E:o=!1)}var M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold);var P,L;e.setLineDash&&n.lineDash&&(i=D5(t),P=i[0],L=i[1]);var k=!0;(u||h&vc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),k=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,l?s:1),P&&(e.setLineDash(P),e.lineDashOffset=L),r||(n.strokeFirst?(o&&gD(e,n),a&&vD(e,n)):(a&&vD(e,n),o&&gD(e,n))),P&&e.setLineDash([])}function lae(e,t,n){var r=t.__image=yN(n.image,t.__image,t,t.onload);if(!(!r||!X0(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,h=a-u,p=s-c;e.drawImage(r,u,c,h,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function uae(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||bu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=D5(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(n0(n)&&e.strokeText(i,n.x,n.y),r0(n)&&e.fillText(i,n.x,n.y)):(r0(n)&&e.fillText(i,n.x,n.y),n0(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var mD=["shadowBlur","shadowOffsetX","shadowOffsetY"],yD=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function I5(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Jr(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?pu.opacity:a}(r||t.blend!==n.blend)&&(o||(Jr(e,i),o=!0),e.globalCompositeOperation=t.blend||pu.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[gr]){if(this._disposed){this.id;return}var o,a,s;if(st(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[gr]=!0,!this._model||r){var l=new _oe(this._api),u=this._theme,c=this._model=new HC;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},AS);var h={seriesTransition:s,optionChanged:!0};if(i)this[jr]={silent:o,updateParams:h},this[gr]=!1,this.getZr().wakeUp();else{try{sc(this),Ts.update.call(this,null,h)}catch(p){throw this[jr]=null,this[gr]=!1,p}this._ssr||this._zr.flush(),this[jr]=null,this[gr]=!1,ah.call(this,o),sh.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||vt.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(vt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return G(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;G(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 G(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(LD[i]){var l=s,u=s,c=-s,h=-s,p=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();G(ud,function(S,x){if(S.group===i){var E=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Nt(n)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),h=a(T.bottom,h),p.push({dom:E,left:T.left,top:T.top})}}),l*=d,u*=d,c*=d,h*=d;var g=c-l,_=h-u,m=uf.createCanvas(),y=ZP(m,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:_}),r){var b="";return G(p,function(S){var x=S.left-l,E=S.top-u;b+=''+S.dom+""}),y.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new cr({shape:{x:0,y:0,width:g,height:_},style:{fill:n.connectedBackgroundColor}})),G(p,function(S){var x=new ll({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});y.add(x)}),y.refreshImmediately(),m.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return ww(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return ww(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=B1(i,n);return G(a,function(s,l){l.indexOf("Models")>=0&&G(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(o=o||h.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=B1(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?Zoe(s,l,r):Joe(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;G(Oae,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Mh(s,function(g){var _=hn(g);if(_&&_.dataIndex!=null){var m=_.dataModel||a.getSeriesByIndex(_.seriesIndex);return l=m&&m.getDataParams(_.dataIndex,_.dataType,s)||{},!0}else if(_.eventData)return l=Le({},_.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var p=c&&h!=null&&a.getComponent(c,h),d=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),G(ld,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),G(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),Lie(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&&zN(this.getDom(),GC,"");var r=this,i=r._api,o=r._model;G(r._componentsViews,function(a){a.dispose(o,i)}),G(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 ud[r.id]},t.prototype.resize=function(n){if(!this[gr]){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[jr]&&(o==null&&(o=this[jr].silent),i=!0,this[jr]=null),this[gr]=!0;try{i&&sc(this),Ts.update.call(this,{type:"resize",animation:Le({duration:0},n&&n.animation)})}catch(a){throw this[gr]=!1,a}this[gr]=!1,ah.call(this,o),sh.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(st(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!MS[n]){var i=MS[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=Le({},n);return r.type=ld[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(st(r)||(r={silent:!!r}),!!i0[n.type]&&this._model){if(this[gr]){this._pendingActions.push(n);return}var i=r.silent;Sw.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&vt.browser.weChat&&this._throttledZrFlush(),ah.call(this,i),sh.call(this,i)}},t.prototype.updateLabelLayout=function(){po.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(){sc=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),_w(h,!0),_w(h,!1),p.plan()},_w=function(h,p){for(var d=h._model,g=h._scheduler,_=p?h._componentsViews:h._chartsViews,m=p?h._componentsMap:h._chartsMap,y=h._zr,b=h._api,S=0;S<_.length;S++)_[S].__alive=!1;p?d.eachComponent(function(T,M){T!=="series"&&x(M)}):d.eachSeries(x);function x(T){var M=T.__requireNewView;T.__requireNewView=!1;var P="_ec_"+T.id+"_"+T.type,L=!M&&m[P];if(!L){var k=Ko(T.type),N=p?sa.getClass(k.main,k.sub):Qo.getClass(k.sub);L=new N,L.init(d,b),m[P]=L,_.push(L),y.add(L.group)}T.__viewId=L.__id=P,L.__alive=!0,L.__model=T,L.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&g.prepareView(L,T,d,b)}for(var S=0;S<_.length;){var E=_[S];E.__alive?S++:(!p&&E.renderTask.dispose(),y.remove(E.group),E.dispose(d,b),_.splice(S,1),m[E.__id]===E&&delete m[E.__id],E.__id=E.group.__ecComponentInfo=null)}},ig=function(h,p,d,g,_){var m=h._model;if(m.setUpdatePayload(d),!g){G([].concat(h._componentsViews).concat(h._chartsViews),E);return}var y={};y[g+"Id"]=d[g+"Id"],y[g+"Index"]=d[g+"Index"],y[g+"Name"]=d[g+"Name"];var b={mainType:g,query:y};_&&(b.subType=_);var S=d.excludeSeriesId,x;S!=null&&(x=Rt(),G($r(S),function(T){var M=Jo(T,null);M!=null&&x.set(M,!0)})),m&&m.eachComponent(b,function(T){var M=x&&x.get(T.id)!=null;if(!M)if(GR(d))if(T instanceof el)d.type===vu&&!d.notBlur&&!T.get(["emphasis","disabled"])&&Oee(T,d,h._api);else{var P=dC(T.mainType,T.componentIndex,d.name,h._api),L=P.focusSelf,k=P.dispatchers;d.type===vu&&L&&!d.notBlur&&tS(T.mainType,T.componentIndex,h._api),k&&G(k,function(N){d.type===vu?Wm(N):Ym(N)})}else oS(d)&&T instanceof el&&(Fee(T,d,h._api),HR(T),Bi(h))},h),m&&m.eachComponent(b,function(T){var M=x&&x.get(T.id)!=null;M||E(h[g==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},h);function E(T){T&&T.__alive&&T[p]&&T[p](T.__model,m,h._api,d)}},Ts={prepareAndUpdate:function(h){sc(this),Ts.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var d=this._model,g=this._api,_=this._zr,m=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(h),y.restoreData(d,h),y.performSeriesTasks(d),m.create(d,g),y.performDataProcessorTasks(d,h),bw(this,d),m.update(d,g),n(d),y.performVisualTasks(d,h),xw(this,d,g,h,p);var b=d.get("backgroundColor")||"transparent",S=d.get("darkMode");_.setBackgroundColor(b),S!=null&&S!=="auto"&&_.setDarkMode(S),po.trigger("afterupdate",d,g)}},updateTransform:function(h){var p=this,d=this._model,g=this._api;if(d){d.setUpdatePayload(h);var _=[];d.eachComponent(function(y,b){if(y!=="series"){var S=p.getViewOfComponentModel(b);if(S&&S.__alive)if(S.updateTransform){var x=S.updateTransform(b,d,g,h);x&&x.update&&_.push(S)}else _.push(S)}});var m=Rt();d.eachSeries(function(y){var b=p._chartsMap[y.__viewId];if(b.updateTransform){var S=b.updateTransform(y,d,g,h);S&&S.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),n(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0,dirtyMap:m}),og(this,d,g,h,{},m),po.trigger("afterupdate",d,g)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),Qo.markUpdateMethod(h,"updateView"),n(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),xw(this,p,this._api,h,{}),po.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,d=this._model;d&&(d.setUpdatePayload(h),d.eachSeries(function(g){g.getData().clearAllVisual()}),Qo.markUpdateMethod(h,"updateVisual"),n(d),this._scheduler.performVisualTasks(d,h,{visualType:"visual",setDirty:!0}),d.eachComponent(function(g,_){if(g!=="series"){var m=p.getViewOfComponentModel(_);m&&m.__alive&&m.updateVisual(_,d,p._api,h)}}),d.eachSeries(function(g){var _=p._chartsMap[g.__viewId];_.updateVisual(g,d,p._api,h)}),po.trigger("afterupdate",d,this._api))},updateLayout:function(h){Ts.update.call(this,h)}},ww=function(h,p,d,g){if(h._disposed){h.id;return}for(var _=h._model,m=h._coordSysMgr.getCoordinateSystems(),y,b=B1(_,d),S=0;Sp.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&p.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=h._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(h,p){var d=h.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function s(h,p){if(!h.preventAutoZ){var d=h.get("z")||0,g=h.get("zlevel")||0;p.eachRendered(function(_){return l(_,d,g,-1/0),!0})}}function l(h,p,d,g){var _=h.getTextContent(),m=h.getTextGuideLine(),y=h.isGroup;if(y)for(var b=h.childrenRef(),S=0;S0?{duration:_,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(id(y))return;if(y instanceof pn&&zee(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(g){y.stateTransition=m;var S=y.getTextContent(),x=y.getTextGuideLine();S&&(S.stateTransition=m),x&&(x.stateTransition=m)}y.__dirty&&i(y)}})}DD=function(h){return new(function(p){Ve(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var _=g.__ecComponentInfo;if(_!=null)return h._model.getComponent(_.mainType,_.index);g=g.parent}},d.prototype.enterEmphasis=function(g,_){Wm(g,_),Bi(h)},d.prototype.leaveEmphasis=function(g,_){Ym(g,_),Bi(h)},d.prototype.enterBlur=function(g){Lee(g),Bi(h)},d.prototype.leaveBlur=function(g){qN(g),Bi(h)},d.prototype.enterSelect=function(g){XN(g),Bi(h)},d.prototype.leaveSelect=function(g){KN(g),Bi(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},d}(b5))(h)},j5=function(h){function p(d,g){for(var _=0;_=0)){OD.push(n);var o=E5.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Q5(e,t){MS[e]=t}function Uae(e,t,n){var r=_ae("registerMap");r&&r(e,t,n)}var zae=gre;Au(UC,Ooe);Au(gy,koe);Au(gy,Noe);Au(UC,Xoe);Au(gy,Koe);Au(H5,mae);Z5(x5);J5(Sae,Doe);Q5("default",Foe);df({type:vu,event:vu,update:vu},ti);df({type:Kg,event:Kg,update:Kg},ti);df({type:td,event:td,update:td},ti);df({type:Zg,event:Zg,update:Zg},ti);df({type:nd,event:nd,update:nd},ti);K5("light",joe);K5("dark",P5);var kD=[],Gae={registerPreprocessor:Z5,registerProcessor:J5,registerPostInit:$ae,registerPostUpdate:Bae,registerUpdateLifecycle:WC,registerAction:df,registerCoordinateSystem:Vae,registerLayout:Hae,registerVisual:Au,registerTransform:zae,registerLoading:Q5,registerMap:Uae,registerImpl:yae,PRIORITY:Dae,ComponentModel:an,ComponentView:sa,SeriesModel:el,ChartView:Qo,registerComponentModel:function(e){an.registerClass(e)},registerComponentView:function(e){sa.registerClass(e)},registerSeriesModel:function(e){el.registerClass(e)},registerChartView:function(e){Qo.registerClass(e)},registerSubTypeDefaulter:function(e,t){an.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){coe(e,t)}};function tl(e){if(ze(e)){G(e,function(t){tl(t)});return}sn(kD,e)>=0||(kD.push(e),_t(e)&&(e={install:e}),e.install(Gae))}var Wae=function(e){Ve(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}(an),Yae=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),RS=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",So).models[0]},t.type="cartesian2dAxis",t}(an);ca(RS,Yae);var e3={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},jae=Zt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},e3),jC=Zt({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}}},e3),qae=Zt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jC),Xae=rn({logBase:10},jC);const Kae={category:jae,value:jC,time:qae,log:Xae};var Zae=0,PS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Zae}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&ct(r,Jae);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(!Xe(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=Rt(this.categories))},e}();function Jae(e){return st(e)&&e.value!=null?e.value:e+""}var Qae={value:1,category:1,time:1,log:1};function ND(e,t,n,r){G(Qae,function(i,o){var a=Zt(Zt({},Kae[o],!0),r,!0),s=function(l){Ve(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,h){var p=zd(this),d=p?vy(c):{},g=h.getTheme();Zt(c,g.get(o+"Axis")),Zt(c,this.getDefaultOption()),c.type=FD(c),p&&tf(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=PS.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.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",FD)}function FD(e){return e.type||(e.data?"category":"value")}var da=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();q0(da);function DS(e){return e.type==="interval"||e.type==="log"}function ese(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=$N(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=t3(a),l=i.niceTickExtent=[Wn(Math.ceil(e[0]/a)*a,s),Wn(Math.floor(e[1]/a)*a,s)];return tse(l,e),i}function Cw(e){var t=Math.pow(10,sC(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Wn(n*t)}function t3(e){return Va(e)+2}function $D(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function tse(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),$D(e,0,t),$D(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function my(e,t){return e>=t[0]&&e<=t[1]}function yy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function _y(e,t){return e*(t[1]-t[0])+t[0]}var qC=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new PS({})),ze(i)&&(i=new PS({categories:ct(i,function(o){return st(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:Xe(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),my(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),yy(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(_y(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(da);da.registerClass(qC);var Hl=Wn,pf=function(e){Ve(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 my(n,this._extent)},t.prototype.normalize=function(n){return yy(n,this._extent)},t.prototype.scale=function(n){return _y(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=t3(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:Hl(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&d>>1;e[i][1]i&&(this._approxInterval=i);var s=ag.length,l=Math.min(nse(ag,this._approxInterval,0,s),s-1);this._interval=ag[l][1],this._minLevelUnit=ag[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Tn(n)?n:+Ka(n)},t.prototype.contain=function(n){return my(this.parse(n),this._extent)},t.prototype.normalize=function(n){return yy(this.parse(n),this._extent)},t.prototype.scale=function(n){return _y(n,this._extent)},t.type="time",t}(pf),ag=[["second",LC],["minute",OC],["hour",od],["quarter-day",od*6],["half-day",od*12],["day",Ki*1.2],["half-week",Ki*3.5],["week",Ki*7],["month",Ki*31],["quarter",Ki*95],["half-year",_P/2],["year",_P]];function rse(e,t,n,r){var i=Ka(t),o=Ka(n),a=function(g){return bP(i,g,r)===bP(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}function ise(e,t){return e/=Ki,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ose(e){var t=30*Ki;return e/=t,e>6?6:e>3?3:e>2?2:1}function ase(e){return e/=od,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function BD(e,t){return e/=t?OC:LC,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function sse(e){return $N(e)}function lse(e,t,n){var r=new Date(e);switch(Vc(t)){case"year":case"month":r[$F(n)](0);case"day":r[BF(n)](1);case"hour":r[VF(n)](0);case"minute":r[HF(n)](0);case"second":r[UF(n)](0),r[zF(n)](0)}return r.getTime()}function use(e,t,n,r){var i=1e4,o=NF,a=0;function s(k,N,H,te,W,X,j){for(var oe=new Date(N),Q=N,fe=oe[te]();Q1&&X===0&&H.unshift({value:H[0].value-Q})}}for(var X=0;X=r[0]&&b<=r[1]&&h++)}var S=(r[1]-r[0])/t;if(h>S*1.5&&p>S/1.5||(u.push(m),h>S||e===o[d]))break}c=[]}}}for(var x=kr(ct(u,function(k){return kr(k,function(N){return N.value>=r[0]&&N.value<=r[1]&&!N.notAdd})}),function(k){return k.length>0}),E=[],T=x.length-1,d=0;d0;)o*=10;var s=[Wn(hse(r[0]/o)*o),Wn(fse(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){cd.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=uo(n)/uo(this.base),my(n,this._extent)},t.prototype.normalize=function(n){return n=uo(n)/uo(this.base),yy(n,this._extent)},t.prototype.scale=function(n){return n=_y(n,this._extent),sg(this.base,n)},t.type="log",t}(da),r3=XC.prototype;r3.getMinorTicks=cd.getMinorTicks;r3.getLabel=cd.getLabel;function lg(e,t){return cse(e,Va(t))}da.registerClass(XC);var dse=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(t,n){this[vse[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=pse[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),pse={min:"_determinedMin",max:"_determinedMax"},vse={min:"_dataMin",max:"_dataMax"};function gse(e,t,n){var r=e.rawExtentInfo;return r||(r=new dse(e,t,n),e.rawExtentInfo=r,r)}function ug(e,t){return t==null?null:km(t)?NaN:e.parse(t)}function i3(e,t){var n=e.type,r=gse(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=Eie("bar",a),l=!1;if(G(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Mie(s),c=mse(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function mse(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Pie(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;G(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;G(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/o,p=c/h-c;return t+=p*(l/u),e-=p*(s/u),{min:e,max:t}}function HD(e,t){var n=t,r=i3(e,n),i=r.extent,o=n.get("splitNumber");e instanceof XC&&(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 yse(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new qC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new n3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(da.getClass(t)||pf)}}function _se(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function vf(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):Xe(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):_t(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(KC(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function KC(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function wse(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof qC?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=vf(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Tse(e){var t=e.getLabelModel().get("customValues");if(t){var n=vf(e);return{labels:a3(e,t).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:r}})}}return e.type==="category"?Ase(e):Rse(e)}function Ese(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:a3(e,n)}:e.type==="category"?Mse(e,t):{ticks:ct(e.scale.getTicks(),function(r){return r.value})}}function Ase(e){var t=e.getLabelModel(),n=s3(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function s3(e,t){var n=l3(e,"labels"),r=ZC(t),i=u3(n,r);if(i)return i;var o,a;return _t(r)?o=h3(e,r):(a=r==="auto"?Pse(e):r,o=f3(e,a)),c3(n,r,{labels:o,labelCategoryInterval:a})}function Mse(e,t){var n=l3(e,"ticks"),r=ZC(t),i=u3(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),_t(r))o=h3(e,r,!0);else if(r==="auto"){var s=s3(e,e.getLabelModel());a=s.labelCategoryInterval,o=ct(s.labels,function(l){return l.tickValue})}else a=r,o=f3(e,a,!0);return c3(n,r,{ticks:o,tickCategoryInterval:a})}function Rse(e){var t=e.scale.getTicks(),n=vf(e);return{labels:ct(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function l3(e,t){return qd(e)[t]||(qd(e)[t]=[])}function u3(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),p=0,d=0;l<=o[1];l+=s){var g=0,_=0,m=rC(n({value:l}),t.font,"center","top");g=m.width*1.3,_=m.height*1.3,p=Math.max(p,g,7),d=Math.max(d,_,7)}var y=p/c,b=d/h;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(y,b))),x=qd(e.model),E=e.getExtent(),T=x.lastAutoInterval,M=x.lastTickCount;return T!=null&&M!=null&&Math.abs(T-S)<=1&&Math.abs(M-a)<=1&&T>S&&x.axisExtent0===E[0]&&x.axisExtent1===E[1]?S=T:(x.lastTickCount=a,x.lastAutoInterval=S,x.axisExtent0=E[0],x.axisExtent1=E[1]),S}function Ise(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 f3(e,t,n){var r=vf(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 h=o3(e),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==o[0]&&_(o[0]);for(var g=u;g<=o[1];g+=l)_(g);d&&g-l!==o[1]&&_(o[1]);function _(m){var y={value:m};s.push(n?m:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function h3(e,t,n){var r=e.scale,i=vf(e),o=[];return G(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 zD=[0,1],Lse=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 ree(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(),GD(r,i.count())),RR(t,zD,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),GD(r,i.count()));var o=RR(t,r,zD,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=Ese(this,n),i=r.ticks,o=ct(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Ose(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=ct(r,function(o){return ct(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Tse(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 Dse(this)},e}();function GD(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Ose(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]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;G(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s},t.push(a)}var h=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(d,g){return d=Wn(d),g=Wn(g),h?d>g:dr[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}(Lse);function LS(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(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,g=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var _=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(_,g[1]),g[0])}o.position=[u==="y"?g[p[l]]:h[0],u==="x"?g[p[l]]:h[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Nd(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 WD(e){return e.get("coordinateSystem")==="cartesian2d"}function YD(e){var t={xAxisModel:null,yAxisModel:null};return G(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,So).models[0];t[r]=o}),t}var Tw=Math.log;function Nse(e,t,n){var r=pf.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=i3(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if(e.type==="log"){var p=Tw(e.base);u=[Tw(u[0])/p,Tw(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(e);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var g=r.getInterval.call(e),_=u[0],m=u[1];if(c&&h)g=(m-_)/a;else if(c)for(m=u[0]+g*a;mu[0]&&isFinite(_)&&isFinite(u[0]);)g=Cw(g),_=u[1]-g*a;else{var y=e.getTicks().length-1;y>a&&(g=Cw(g));var b=g*a;m=Math.ceil(u[1]/g)*g,_=Wn(m-b),_<0&&u[0]>=0?(_=0,m=Wn(b)):m>0&&u[1]<=0&&(m=0,_=-Wn(b))}var S=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,_+g*S,m+g*x),r.setInterval.call(e,g),(S||x)&&r.setNiceExtent.call(e,_+g,m-g)}var Fse=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IS,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=Cn(a),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var p=+l[h],d=a[p],g=d.model,_=d.scale;DS(_)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):(HD(_,g),DS(_)&&(s=d))}c.length&&(s||(s=c.pop(),HD(s.scale,s.model)),G(c,function(m){Nse(m.scale,m.model,s.scale)}))}}i(r.x),i(r.y);var o={};G(r.x,function(a){jD(r,"y",a,o)}),G(r.y,function(a){jD(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=Jm(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(G(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=wse(u);if(c){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[h]-=c[h]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),G(this._coordsList,function(u){u.calcAffineTransform()});function l(){G(s,function(u){var c=u.isHorizontal(),h=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),$se(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]}st(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):zm(i-Vs)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),XD={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&&(Qi(s,s,a),Qi(l,l,a));var c=Le({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Js({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Vd(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);Xe(p)&&(p=[p,p]),(Xe(d)||Tn(d))&&(d=[d,d]);var g=e5(t.get(["axisLine","symbolOffset"])||0,d),_=d[0],m=d[1];G([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(p[b]!=="none"&&p[b]!=null){var S=nf(p[b],-_/2,-m/2,_,m,c.stroke,!0),x=y.r+y.offset,E=u?l:s;S.attr({rotation:y.rotate,x:E[0]+x*Math.cos(e.rotation),y:E[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=Hse(n,r,t,e),o=zse(n,r,t,e);if(Vse(t,o,i),Use(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Oie(ct(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));kie(a)}},axisName:function(e,t,n,r){var i=Nd(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,h=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,ZD(o)?e.labelOffset+a*l:0],p,d=t.get("nameRotate");d!=null&&(d=d*Vs/180);var g;ZD(o)?p=js.innerTextLayout(e.rotation,d??e.rotation,a):(p=Bse(e.rotation,o,d||0,u),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var _=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,b=Nd(e.nameTruncateMaxWidth,m.maxWidth,g),S=new oi({x:h[0],y:h[1],rotation:p.rotation,silent:js.isLabelSilent(t),style:Qc(s,{text:i,font:_,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(CC({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var x=js.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,hn(S).eventData=x}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function Bse(e,t,n,r){var i=FN(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return zm(i-Vs/2)?(a=l?"bottom":"top",o="center"):zm(i-Vs*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",iVs/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function Vse(e,t,n){if(!o3(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],h=n[n.length-1],p=n[n.length-2];r===!1?(Vi(o),Vi(u)):KD(o,a)&&(r?(Vi(a),Vi(c)):(Vi(o),Vi(u))),i===!1?(Vi(s),Vi(h)):KD(l,s)&&(i?(Vi(l),Vi(p)):(Vi(s),Vi(h)))}}function Vi(e){e&&(e.ignore=!0)}function KD(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=eC([]);return tC(i,i,-e.rotation),n.applyTransform(Nc([],i,e.getLocalTransform())),r.applyTransform(Nc([],i,t.getLocalTransform())),n.intersect(r)}}function ZD(e){return e==="middle"||e==="center"}function d3(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function Xse(e){var t=JC(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=OS(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),as)return!0;if(a){var l=JC(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=Jl(t).pointerEl=new Nte[o.type](eI(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Jl(t).labelEl=new oi(eI(n.label));t.add(o),nI(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Jl(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=Jl(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),nI(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=xC(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){d5(u.event)},onmousedown:Mw(this._onHandleDragMove,this,0,0),drift:Mw(this._onHandleDragMove,this),ondragend:Mw(this._onHandleDragEnd,this)}),r.add(i)),rI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ze(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,h5(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){tI(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Rw(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(Rw(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(Rw(i)),Jl(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),yS(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 tI(e,t,n,r){m3(Jl(n).lastProp,r)||(Jl(n).lastProp=r,t?Qs(n,r,e):(n.stopAnimation(),n.attr(r)))}function m3(e,t){if(st(e)&&st(t)){var n=!0;return G(t,function(r,i){n=n&&m3(e[i],r)}),!!n}else return e===t}function nI(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Rw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function rI(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 ale(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 sle(e,t,n,r,i){var o=n.get("value"),a=y3(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=py(s.get("padding")||0),u=s.getFont(),c=rC(a,u),h=i.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],g=i.align;g==="right"&&(h[0]-=p),g==="center"&&(h[0]-=p/2);var _=i.verticalAlign;_==="bottom"&&(h[1]-=d),_==="middle"&&(h[1]-=d/2),lle(h,p,d,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Qc(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function lle(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 y3(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:KC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),Xe(a)?o=a.replace("{value}",o):_t(a)&&(o=a(s))}return o}function _3(e,t,n){var r=kc();return tC(r,r,n.rotation),Ub(r,r,n.position),SC([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function ule(e,t,n,r,i,o){var a=js.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),sle(t,r,i,o,{position:_3(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function cle(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function fle(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var hle=function(e){Ve(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=iI(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var p=ale(o),d=dle[u](s,h,c);d.style=p,n.graphicKey=d.type,n.pointer=d}var g=LS(l.model,i);ule(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=LS(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=_3(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=iI(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[n.x,n.y];h[c]+=r[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:n.rotation,cursorPoint:d,tooltipOption:g[c]}},t}(ole);function iI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var dle={line:function(e,t,n){var r=cle([t,n[0]],[t,n[1]],oI(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:fle([t-r/2,n[0]],[r,i],oI(e))}}};function oI(e){return e.dim==="x"?0:1}var ple=function(e){Ve(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}(an),Ha=Kn(),vle=G;function w3(e,t,n){if(!vt.node){var r=t.getZr();Ha(r).records||(Ha(r).records={}),gle(r,t);var i=Ha(r).records[e]||(Ha(r).records[e]={});i.handler=n}}function gle(e,t){if(Ha(e).initialized)return;Ha(e).initialized=!0,n("click",tr(aI,"click")),n("mousemove",tr(aI,"mousemove")),n("globalout",yle);function n(r,i){e.on(r,function(o){var a=_le(t);vle(Ha(e).records,function(s){s&&i(s,o,a.dispatchAction)}),mle(a.pendings,t)})}}function mle(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 yle(e,t,n){e.handler("leave",null,n)}function aI(e,t,n,r){t.handler(e,n,r)}function _le(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 NS(e,t){if(!vt.node){var n=t.getZr(),r=(Ha(n).records||{})[e];r&&(Ha(n).records[e]=null)}}var wle=function(e){Ve(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";w3("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){NS("axisPointer",r)},t.prototype.dispose=function(n,r){NS("axisPointer",r)},t.type="axisPointer",t}(sa);function b3(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Cu(o,e);if(a==null||a<0||ze(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),h=c.dim,p=u.dim,d=h==="x"||h==="radius"?1:0,g=o.mapDimension(p),_=[];_[d]=o.get(g,a),_[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(_)||[]}else n=l.dataToPoint(o.getValues(ct(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:s}}var sI=Kn();function ble(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Mn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){om(i)&&(i=b3({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=om(i),u=o.axesInfo,c=s.axesInfo,h=r==="leave"||om(i),p={},d={},g={list:[],map:{}},_={showPointer:tr(xle,d),showTooltip:tr(Cle,g)};G(s.coordSysMap,function(y,b){var S=l||y.containPoint(i);G(s.coordSysAxesInfo[b],function(x,E){var T=x.axis,M=Mle(u,x);if(!h&&S&&(!u||M)){var P=M&&M.value;P==null&&!l&&(P=T.pointToData(i)),P!=null&&lI(x,P,_,!1,p)}})});var m={};return G(c,function(y,b){var S=y.linkGroup;S&&!d[b]&&G(S.axesInfo,function(x,E){var T=d[E];if(x!==y&&T){var M=T.value;S.mapper&&(M=y.axis.scale.parse(S.mapper(M,uI(x),uI(y)))),m[y.key]=M}})}),G(m,function(y,b){lI(c[b],y,_,!0,p)}),Tle(d,c,p),Ele(g,i,e,a),Ale(c,a,n),p}}function lI(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=Sle(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Le(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function Sle(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),h,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);p=d.dataIndices,h=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!p.length)return;h=l.getData().get(c[0],p[0])}if(!(h==null||!isFinite(h))){var g=e-h,_=Math.abs(g);_<=a&&((_=0&&s<0)&&(a=_,s=g,i=h,o.length=0),G(p,function(m){o.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:o,snapToValue:i}}function xle(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Cle(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=Xd(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 Tle(e,t,n){var r=n.axesInfo=[];G(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 Ele(e,t,n,r){if(om(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 Ale(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=sI(r)[i]||{},a=sI(r)[i]={};G(e,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&G(h.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];G(o,function(u,c){!a[c]&&l.push(u)}),G(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 Mle(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 uI(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 om(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function S3(e){p3.registerAxisPointerClass("CartesianAxisPointer",hle),e.registerComponentModel(ple),e.registerComponentView(wle),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ze(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Gse(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ble)}function Rle(e){tl(ile),tl(S3)}function Ple(e,t){var n=py(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new cr({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 Dle=function(e){Ve(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}(an);function x3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function C3(e){if(vt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+i,p=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-h)/2)*100)/100;s+=";"+o+":-"+d+"px";var g=t+" solid "+i+"px;",_=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'
'}function $le(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+=vt.transformSupported?","+QC+r:",left"+r+",top"+r),Ole+":"+i}function cI(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=vt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+QC+":"+a+";":[["top",0],["left",0],[T3,a]]}function Ble(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),G(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Vle(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"),h=QF(e,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push($le(i,n)),o&&r.push("background-color:"+o),G(["width","color","radius"],function(d){var g="border-"+d,_=WF(g),m=e.get(_);m!=null&&r.push(g+":"+m+(d==="color"?"":"px"))}),r.push(Ble(c)),h!=null&&r.push("padding:"+py(h).join("px ")+"px"),r.join(";")+";"}function fI(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Bne(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 Hle=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,vt.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&&(Xe(o)?document.querySelector(o):kd(o)?o:_t(o)&&o(t.getDom()));fI(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();Ui(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=Lle(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=kle+Vle(t,!this._firstShow,this._longHide)+cI(o[0],o[1],!0)+("border-color:"+Tu(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(Xe(o)&&r.get("trigger")==="item"&&!x3(r)&&(s=Fle(r,i,o)),Xe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ze(t)||(t=[t]);for(var l=0;l=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||vt.node||!i.getDom())){var a=pI(o,i);this._ticket="";var s=o.dataByCoordSys,l=qle(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=zle;c.x=o.x,c.y=o.y,c.update(),hn(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 h=b3(o,r),p=h.point[0],d=h.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:h.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(pI(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(),h=lh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.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=hn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Mh(i,function(c){if(hn(c).dataIndex!=null)return l=c,!0;if(hn(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=Mn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=lh([r.tooltipOption],o),l=this._renderMode,u=[],c=Gd("section",{blocks:[],noHeader:!0}),h=[],p=new tw;G(n,function(b){G(b.dataByAxis,function(S){var x=i.getComponent(S.axisDim+"Axis",S.axisIndex),E=S.value;if(!(!x||E==null)){var T=y3(E,x.axis,i,S.seriesDataIndices,S.valueLabelOpt),M=Gd("section",{header:T,noHeader:!Xo(T),sortBlocks:!0,blocks:[]});c.blocks.push(M),G(S.seriesDataIndices,function(P){var L=i.getSeriesByIndex(P.seriesIndex),k=P.dataIndexInside,N=L.getDataParams(k);if(!(N.dataIndex<0)){N.axisDim=S.axisDim,N.axisIndex=S.axisIndex,N.axisType=S.axisType,N.axisId=S.axisId,N.axisValue=KC(x.axis,{value:E}),N.axisValueLabel=T,N.marker=p.makeTooltipMarker("item",Tu(N.color),l);var H=CP(L.formatTooltip(k,!0,null)),te=H.frag;if(te){var W=lh([L],o).get("valueFormatter");M.blocks.push(W?Le({valueFormatter:W},te):te)}H.text&&h.push(H.text),u.push(N)}})}})}),c.blocks.reverse(),h.reverse();var d=r.position,g=s.get("order"),_=AP(c,p,l,g,i.get("useUTC"),s.get("textStyle"));_&&h.unshift(_);var m=l==="richText"?` + +`:"
",y=h.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=hn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,p=u.getData(h),d=this._renderMode,g=n.positionDefault,_=lh([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),m=_.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,h),b=new tw;y.marker=b.makeTooltipMarker("item",Tu(y.color),d);var S=CP(u.formatTooltip(c,!1,h)),x=_.get("order"),E=_.get("valueFormatter"),T=S.frag,M=T?AP(E?Le({valueFormatter:E},T):T,b,d,x,o.get("useUTC"),_.get("textStyle")):S.text,P="item_"+u.name+"_"+c;this._showOrMove(_,function(){this._showTooltipContent(_,M,y,P,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=hn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Xe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Nt(l),l.content=bi(l.content));var h=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&h.push(p),h.push({formatter:l.content});var d=n.positionDefault,g=lh(h,this._tooltipModel,d?{position:d}:null),_=g.get("content"),m=Math.random()+"",y=new tw;this._showOrMove(g,function(){var b=Nt(g.get("formatterParams")||{});this._showTooltipContent(g,_,b,m,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 h=this._tooltipContent;h.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var d=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),_=g.color;if(p)if(Xe(p)){var m=n.ecModel.get("useUTC"),y=ze(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=p,b&&(d=uy(y.axisValue,d,m)),d=YF(d,i,!0)}else if(_t(p)){var S=Mn(function(x,E){x===this._ticket&&(h.setContent(E,c,n,_,l),this._updatePosition(n,l,a,s,h,i,u))},this);this._ticket=o,d=p(i,o,S)}else d=p;h.setContent(d,c,n,_,l),h.show(n,_),this._updatePosition(n,l,a,s,h,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ze(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ze(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 h=a.getSize(),p=n.get("align"),d=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),_t(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:h.slice()})),ze(r))i=Nr(r[0],u),o=Nr(r[1],c);else if(st(r)){var _=r;_.width=h[0],_.height=h[1];var m=Jm(_,{width:u,height:c});i=m.x,o=m.y,p=null,d=null}else if(Xe(r)&&l){var y=jle(r,g,h,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=Wle(i,o,a,u,c,p?null:20,d?null:20);i=y[0],o=y[1]}if(p&&(i-=vI(p)?h[0]/2:p==="right"?h[0]:0),d&&(o-=vI(d)?h[1]/2:d==="bottom"?h[1]:0),x3(n)){var y=Yle(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&&G(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&G(u,function(p,d){var g=h[d]||{},_=p.seriesDataIndices||[],m=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&_.length===m.length,a&&G(_,function(y,b){var S=m[b];a=a&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),o&&G(p.seriesDataIndices,function(y){var b=y.seriesIndex,S=r[b],x=o[b];S&&x&&x.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){vt.node||!r.getDom()||(yS(this,"_updatePosition"),this._tooltipContent.dispose(),NS("itemTooltip",r))},t.type="tooltip",t}(sa);function lh(e,t,n){var r=t.ecModel,i;n?(i=new On(n,r,r),i=new On(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof On&&(a=a.get("tooltip",!0)),Xe(a)&&(a={formatter:a}),a&&(i=new On(a,i,r)))}return i}function pI(e,t){return e.dispatchAction||Mn(t.dispatchAction,t)}function Wle(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 Yle(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 jle(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 vI(e){return e==="center"||e==="middle"}function qle(e,t,n){var r=uC(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=cp(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=hn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function Xle(e){tl(S3),e.registerComponentModel(Dle),e.registerComponentView(Gle),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ti),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ti)}var Kle=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"])}},FS=function(e){Ve(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"]),ze(r)&&G(r,function(o,a){Xe(o)&&(o={type:o}),r[a]=Zt(o,Kle(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(an),lc=tr,$S=G,cg=xr,A3=function(e){Ve(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 cg),this.group.add(this._selectorGroup=new cg),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(),h={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),d=Jm(c,h,p),g=this.layoutInner(n,a,d,o,l,u),_=Jm(rn({width:g.width,height:g.height},c),h,p);this.group.x=_.x-g.x,this.group.y=_.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ple(g,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=Rt(),h=r.get("selectedMode"),p=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),$S(r.getData(),function(d,g){var _=d.get("name");if(!this.newlineDisabled&&(_===""||_===` +`)){var m=new cg;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(_)[0];if(!c.get(_))if(y){var b=y.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),E=b.getVisual("style"),T=this._createItem(y,_,g,d,r,n,S,E,x,h,o);T.on("click",lc(gI,_,null,o,p)).on("mouseover",lc(BS,y.name,null,o,p)).on("mouseout",lc(VS,y.name,null,o,p)),i.ssr&&T.eachChild(function(M){var P=hn(M);P.seriesIndex=y.seriesIndex,P.dataIndex=g,P.ssrType="legend"}),c.set(_,!0)}else i.eachRawSeries(function(M){if(!c.get(_)&&M.legendVisualProvider){var P=M.legendVisualProvider;if(!P.containName(_))return;var L=P.indexOfName(_),k=P.getItemVisual(L,"style"),N=P.getItemVisual(L,"legendIcon"),H=za(k.fill);H&&H[3]===0&&(H[3]=.2,k=Le(Le({},k),{fill:K0(H,"rgba")}));var te=this._createItem(M,_,g,d,r,n,{},k,N,h,o);te.on("click",lc(gI,null,_,o,p)).on("mouseover",lc(BS,null,_,o,p)).on("mouseout",lc(VS,null,_,o,p)),i.ssr&&te.eachChild(function(W){var X=hn(W);X.seriesIndex=M.seriesIndex,X.dataIndex=g,X.ssrType="legend"}),c.set(_,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();$S(n,function(u){var c=u.type,h=new oi({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var p=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);EC(h,{normal:p,emphasis:d},{defaultText:u.title}),nS(h)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,h,p){var d=n.visualDrawType,g=a.get("itemWidth"),_=a.get("itemHeight"),m=a.isSelected(r),y=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var x=Zle(c,o,l,u,d,m,p),E=new cg,T=o.getModel("textStyle");if(_t(n.getLegendIcon)&&(!S||S==="inherit"))E.add(n.getLegendIcon({itemWidth:g,itemHeight:_,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}));else{var M=S==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;E.add(Jle({itemWidth:g,itemHeight:_,icon:c,iconRotate:M,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}))}var P=s==="left"?g+5:-5,L=s,k=a.get("formatter"),N=r;Xe(k)&&k?N=k.replace("{name}",r??""):_t(k)&&(N=k(r));var H=m?T.getTextColor():o.get("inactiveColor");E.add(new oi({style:Qc(T,{text:N,x:P,y:_/2,fill:H,align:L,verticalAlign:"middle"},{inheritColor:H})}));var te=new cr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),W=o.getModel("tooltip");return W.get("show")&&CC({el:te,componentModel:a,itemName:r,itemTooltipOption:W.option}),E.add(te),E.eachChild(function(X){X.silent=!0}),te.silent=!h,this.getContentGroup().add(E),nS(E),E.__legendDataIndex=i,E},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ad(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){ad("horizontal",u,n.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),_=n.getOrient().index,m=_===0?"width":"height",y=_===0?"height":"width",b=_===0?"y":"x";s==="end"?d[_]+=c[m]+g:h[_]+=p[m]+g,d[1-_]+=c[y]/2-p[y]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var S={x:0,y:0};return S[m]=c[m]+g+p[m],S[y]=Math.max(c[y],p[y]),S[b]=Math.min(0,p[b]+d[1-_]),S}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(sa);function Zle(e,t,n,r,i,o,a){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),$S(m,function(b,S){m[S]==="inherit"&&(m[S]=y[S])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:TS(h,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 p=t.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),_=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&_?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Jle(e){var t=e.icon||"roundRect",n=nf(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 gI(e,t,n,r){VS(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),BS(e,t,n,r)}function M3(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],m=[-d.x,-d.y];r||(m[o]=c[u]);var y=[0,0],b=[-g.x,-g.y],S=kt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(_){var x=n.get("pageButtonPosition",!0);x==="end"?b[o]+=i[a]-g[a]:y[o]+=g[a]+S}b[1-o]+=d[s]/2-g[s]/2,c.setPosition(m),h.setPosition(y),p.setPosition(b);var E={x:0,y:0};if(E[a]=_?i[a]:d[a],E[s]=Math.max(d[s],g[s]),E[l]=Math.min(0,g[l]+b[1-o]),h.__rectSize=i[a],_){var T={x:0,y:0};T[a]=Math.max(i[a]-g[a]-S,0),T[s]=E[s],h.setClipPath(new cr({shape:T})),h.__rectSize=T[a]}else p.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(n);return M.pageIndex!=null&&Qs(c,{x:M.contentPosition[0],y:M.contentPosition[1]},_?n:null),this._updatePageInfoView(n,M),E},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;G(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=r[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=p?"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",Xe(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=Pw[a],l=Dw[a],u=this._findTargetItemIndex(r),c=i.children(),h=c[u],p=c.length,d=p?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var _=x(h);g.contentPosition[a]=-_.s;for(var m=u+1,y=_,b=_,S=null;m<=p;++m)S=x(c[m]),(!S&&b.e>y.s+o||S&&!E(S,y.s))&&(b.i>y.i?y=b:y=S,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),b=S;for(var m=u-1,y=_,b=_,S=null;m>=-1;--m)S=x(c[m]),(!S||!E(b,S.s))&&y.i=M&&T.s<=M+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}(A3);function rue(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 iue(e){tl(R3),e.registerComponentModel(tue),e.registerComponentView(nue),rue(e)}function oue(e){tl(R3),tl(iue)}function _I(e,t,n){var r=uf.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 Iw=function(e){Ve(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||Hm,typeof n=="string"?a=_I(n,r,i):st(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(pN(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=_I("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 Jt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new Jt(0,0,0,0);S.copy(b),a.push(S)}else{for(var x=!1,E=1/0,T=0,M=0;M=s)}}for(var h=this.__startIndex;h15)break}}W.prevElClipPaths&&y.restore()};if(b)if(b.length===0)P=m.__endIndex;else for(var k=d.dpr,N=0;N0&&t>i[0]){for(l=0;lt);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?fg:0),this._needsManuallyCompositing),c.__builtin__||Zx("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&Si&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__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,G(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Zt(r[t],n,!0):r[t]=n;for(var i=0;i{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,h=a.fontFamily,p=s.color,d=s.backgroundColor,g=s.borderBottomColor,_=s.borderTopColor;Lt(()=>Pc.value,()=>{const x=getComputedStyle(n.value),E=getComputedStyle(r.value);l=x.color,u=x.backgroundColor,c=x.borderColor,p=E.color,d=E.backgroundColor,g=E.borderBottomColor,_=E.borderTopColor}),Lt(()=>Vh.value,()=>{h=getComputedStyle(n.value).fontFamily});const m=Ie(()=>({legend:{bottom:0,data:t.data.map(x=>x.name),textStyle:{color:l,fontFamily:h}},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:h},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:x=>Math.max(x.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:h}},series:t.data.map((x,E)=>{const T=E===t.data.length-1?p:d,M=E===t.data.length-1?g:_;return{name:x.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:x.data,areaStyle:{color:new _C(0,0,0,1,[{offset:0,color:T},{offset:1,color:M}])},type:"line",color:T,smooth:!0}})})),y=Nae(o.value);y.setOption(m.value),Lt(m,()=>{i.value||y==null||y.setOption(m.value)});const{width:b}=$Y(o),S=Mo.debounce(()=>{y.resize()},100);Lt(()=>b.value,()=>{S()})}),(a,s)=>(q(),re("div",fue,[D("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),D("span",{class:"hidden border-base-content/10 bg-base-100/70 text-base-content",ref_key:"baseColorRef",ref:n},null,512),D("span",{class:"hidden border-b-primary/30 border-t-info/30 bg-info/60 text-primary/60",ref_key:"themeColorRef",ref:r},null,512),D("button",{class:"btn btn-ghost btn-xs absolute bottom-0 right-1",onClick:s[0]||(s[0]=l=>i.value=!i.value)},[(q(),Et(Ya(i.value?F(oW):F(iW)),{class:"h-4 w-4"}))])]))}}),P3=Ze({__name:"SpeedCharts",setup(e){const{t}=ia(),n=Ie(()=>[{name:t("ulSpeed"),data:_h.value},{name:t("dlSpeed"),data:yh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!1})}/s`,i=o=>o.map(a=>tk(a,{binary:!1,suffix:"/s"})).join("");return(o,a)=>(q(),Et(eT,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:60*1e3},null,8,["data"]))}}),hue={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},due={class:"flex flex-col items-center justify-center"},pue={class:"flex flex-col items-center justify-center"},vue={class:"flex flex-col items-center justify-center"},gue={class:"flex flex-col items-center justify-center"},mue={class:"flex flex-col items-center justify-center"},yue=Ze({__name:"VerticalInfos",setup(e){return(t,n)=>(q(),re("div",hue,[D("div",due,[ye(F(sO),{class:"h-4 w-4"}),Qe(" "+se(F(bo).length),1)]),D("div",pue,[ye(F(iO),{class:"h-4 w-4"}),Qe(" "+se(F(mn)(F(Am)))+" ",1),D("span",null,se(F(mn)(F(Lx)))+"/s ",1)]),D("div",vue,[ye(F(aO),{class:"h-4 w-4"}),Qe(" "+se(F(mn)(F(Mm)))+" ",1),D("span",null,se(F(mn)(F(Ox)))+"/s ",1)]),D("div",gue,[ye(F(tW),{class:"h-4 w-4"}),Qe(" "+se(F(mn)(F(Ix),{binary:!0})),1)]),D("div",mue,[D("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>zs.value=!1)},[ye(F(J6),{class:"h-5 w-5"})])])]))}}),_ue={class:"drawer-side z-30"},wue={class:"menu flex-1 pb-0"},bue=["onClick"],Sue={key:0,class:"card"},xue={class:"card"},Cue=Ze({__name:"SideBar",setup(e){const t={[Vt.connections]:Qk,[Vt.logs]:eN,[Vt.proxies]:rN,[Vt.rules]:iN},n=Ie(()=>r.name?t[r.name]:null),r=EO(),i=Object.values(Vt).filter(o=>o!==Vt.setup);return(o,a)=>(q(),re("div",_ue,[a[0]||(a[0]=D("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),D("div",{class:je(F(nn)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",F(zs)?"w-18 px-0":"w-[21rem]"))},[D("ul",wue,[(q(!0),re(Ge,null,Ft(F(i),s=>(q(),re("li",{key:s},[D("a",{class:je(s===F(r).name?"active":"inactive"),onClick:()=>F(Po).push({name:s})},[(q(),Et(Ya(F(GO)[s]),{class:"h-5 w-5"})),F(zs)?yt("",!0):(q(),re(Ge,{key:0},[Qe(se(o.$t(s)),1)],64))],10,bue)]))),128))]),F(zs)?(q(),Et(yue,{key:0})):(q(),re(Ge,{key:1},[F(r).name!==F(Vt).settings?(q(),re("div",Sue,[ye(P3)])):yt("",!0),D("div",xue,[n.value?(q(),Et(Ya(n.value),{key:0})):yt("",!0),ye(nJ)])],64))],2)]))}}),Lw=Ae(!1),D3=()=>({isUIUpdateAvailable:Lw,checkUIUpdate:async()=>{Lw.value=await pX(),Lw.value&&Ag.value&&Pk()}}),Tue={class:"w-128 drawer md:drawer-open"},Eue={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},Aue={class:"relative h-0 flex-1"},Mue={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},Rue={class:"menu menu-horizontal flex flex-1"},Pue=["href"],Due={for:"sidebar"},Iue={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content"},Lue={class:"modal-box"},Oue={class:"text-lg font-bold"},kue={class:"flex justify-end gap-2"},Nue=Ze({__name:"HomePage",setup(e){const t=Ae(null),n=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[Vt.connections]:Qk,[Vt.logs]:eN,[Vt.proxies]:rN,[Vt.rules]:iN},i=f9(),o=EO(),a=Object.values(Vt).filter(b=>b!==Vt.setup),s=Ie(()=>r[o.name]),l=Ae(),{direction:u}=BY(l,{threshold:15}),c=()=>{const b=o.name;return b===Vt.setup?Vt.proxies:a[(a.indexOf(b)+1)%a.length]},h=()=>{const b=o.name;return b===Vt.setup?Vt.proxies:a[(a.indexOf(b)-1+a.length)%a.length]};Lt(u,()=>{u.value==="right"?i.push({name:h()}):u.value==="left"&&i.push({name:c()})});const{proxiesTabShow:p}=G0(),{checkUIUpdate:d}=D3();Lt(Sr,()=>{Sr.value&&(Kh.value=Kc.RULES,p.value=yu.PROXIES,jx(),Ks(),Od(),SX(),kb(),hj(),d())},{immediate:!0});const g=()=>{var b;(b=t.value)==null||b.close()},{showTip:_}=D0(),m=async()=>{const b=oa.value.filter(x=>x.uuid!==Sr.value);g();const S=(await Promise.all(b.map(async x=>await DM(x)?x:null))).filter(x=>x!==null);S.length>0&&(Sr.value=S[0].uuid,_("backendSwitchTo",{backend:_u(S[0])}))},y=NY();return Lt(y,async()=>{var b,S;if(!(!Xs.value||oa.value.length===0||y.value!=="visible"))try{await DM(Xs.value)||(b=t.value)==null||b.showModal()}catch{(S=t.value)==null||S.showModal()}},{immediate:!0}),(b,S)=>(q(),re("div",Tue,[S[0]||(S[0]=D("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ye(Cue),D("div",Eue,[s.value&&F(zs)?(q(),Et(Ya(s.value),{key:0,horizontal:!0})):yt("",!0),D("div",Aue,[ye(F(gx),{class:"absolute h-full w-full"})]),D("div",{class:je(`${F(n)?"pb-24":"pb-12"} md:hidden`)},null,2),D("div",{ref_key:"navBarRef",ref:l,class:je(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${F(n)?"h-24 pb-12":"h-12"}`)},[D("div",Mue,[D("ul",Rue,[(q(!0),re(Ge,null,Ft(F(a),x=>(q(),re("li",{key:x,class:"flex-1"},[D("a",{class:je(["flex items-center justify-center",x===F(o).name?"active":"inactive"]),href:`#${x}`},[(q(),Et(Ya(F(GO)[x]),{class:"h-5 w-5"}))],10,Pue)]))),128))]),D("label",Due,[D("div",Iue,[ye(F(Q6),{class:"h-4 w-4"})])])])],2)]),D("dialog",{id:"autoSwitchBackend",ref_key:"modalRef",ref:t,class:"modal"},[D("div",Lue,[D("h3",Oue,se(b.$t("currentBackendUnavailable")),1),D("div",kue,[D("button",{class:"btn btn-sm",onClick:g},se(b.$t("cancel")),1),D("button",{class:"btn btn-primary btn-sm",onClick:m},se(b.$t("confirm")),1)])])],512)]))}}),Fue={class:"flex flex-col"},$ue={key:0,class:"card m-2 flex-row p-2 text-sm"},Bue={class:"card mb-1 block p-2 text-sm"},Vue={class:"mx-2 text-primary"},Hue={class:"ml-2"},Uue=Ze({__name:"LogsPage",setup(e){const t={[eu.Error]:"text-error",[eu.Warning]:"text-warning",[eu.Info]:"text-info",[eu.Debug]:"text-accent"},n=Ie(()=>Im.value.filter(r=>Oc.value?r.payload.includes(Oc.value)||r.type.includes(Oc.value):!0));return(r,i)=>(q(),re("div",Fue,[n.value.length?yt("",!0):(q(),re("div",$ue,se(r.$t("noContent")),1)),ye(Bx,{data:n.value},{default:Qr(({item:o})=>[D("div",Bue,[D("span",null,se(o.seq),1),D("span",Vue,se(F(ta)(o.time).locale(F(Ba)).format("HH:mm:ss")),1),D("span",{class:je(t[o.type])},se(o.type),3),D("span",Hue,se(o.payload),1)])]),_:1},8,["data"])]))}}),I3=Ze({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Ie({get(){return Q_.value[t.name]},set(s){s?(i.value=!1,r.value=!0,Do(()=>{Q_.value[t.name]=!0})):Q_.value[t.name]=!1}}),r=Ae(n.value),i=Ae(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)};return(s,l)=>(q(),re("div",{class:je(`collapse collapse-arrow ${n.value?"collapse-open":"collapse-close"}`)},[D("div",{class:"collapse-title cursor-pointer select-none pr-4",onClick:l[0]||(l[0]=u=>n.value=!n.value)},[kh(s.$slots,"title"),i.value?kh(s.$slots,"preview",{key:0}):yt("",!0)]),D("div",{class:"collapse-content flex flex-col gap-2 max-sm:px-2",onTransitionstart:o,onTransitionend:a},[r.value?kh(s.$slots,"content",{key:0}):yt("",!0)],32)],2))}});var a0=function(){return a0=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a1?i.options.decimal+h[1]:"",i.options.useGrouping){u="";for(var p=3,d=0,g=0,_=s.length;g<_;++g)i.options.useIndianSeparators&&g===4&&(p=2,d=1),g!==0&&d%p==0&&(u=i.options.separator+u),d++,u=s[_-g-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(m){return i.options.numerals[+m]}),l=l.replace(/[0-9]/g,function(m){return i.options.numerals[+m]})),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=a0(a0({},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;owindow.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 L3=Ze({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Ae(),r=Ie(()=>L0(t.name));let i=null;ua(()=>{Lt(r,(a,s)=>{i?i==null||i.update(a):Do(()=>{i=new zue(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),ep(()=>{i=null});const o=Ie(()=>wh(r.value));return(a,s)=>(q(),re("div",{class:je(F(nn)("flex h-5 w-10 items-center justify-center rounded-xl bg-base-100 text-xs hover:bg-base-200",o.value))},[r.value===F(qo)?(q(),Et(F(dx),{key:0,class:"h-3 w-3 text-base-content"})):yt("",!0),Tt(D("div",{ref_key:"latencyRef",ref:n},se(r.value),513),[[E6,r.value!==F(qo)]])],2))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:O3,setPrototypeOf:bI,isFrozen:Gue,getPrototypeOf:Wue,getOwnPropertyDescriptor:Yue}=Object;let{freeze:Vr,seal:to,create:k3}=Object,{apply:HS,construct:US}=typeof Reflect<"u"&&Reflect;Vr||(Vr=function(t){return t});to||(to=function(t){return t});HS||(HS=function(t,n,r){return t.apply(n,r)});US||(US=function(t,n){return new t(...n)});const hg=Ri(Array.prototype.forEach),SI=Ri(Array.prototype.pop),ch=Ri(Array.prototype.push),am=Ri(String.prototype.toLowerCase),Ow=Ri(String.prototype.toString),xI=Ri(String.prototype.match),fh=Ri(String.prototype.replace),jue=Ri(String.prototype.indexOf),que=Ri(String.prototype.trim),vo=Ri(Object.prototype.hasOwnProperty),Ar=Ri(RegExp.prototype.test),hh=Xue(TypeError);function Ri(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:am;bI&&bI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Gue(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Kue(e){for(let t=0;t/gm),tce=to(/\${[\w\W]*}/gm),nce=to(/^data-[\-\w.\u00B7-\uFFFF]/),rce=to(/^aria-[\-\w]+$/),N3=to(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ice=to(/^(?:\w+script|data):/i),oce=to(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),F3=to(/^html$/i),ace=to(/^[a-z][.\w]*(-[.\w]+)+$/i);var MI=Object.freeze({__proto__:null,ARIA_ATTR:rce,ATTR_WHITESPACE:oce,CUSTOM_ELEMENT:ace,DATA_ATTR:nce,DOCTYPE_NAME:F3,ERB_EXPR:ece,IS_ALLOWED_URI:N3,IS_SCRIPT_OR_DATA:ice,MUSTACHE_EXPR:Que,TMPLIT_EXPR:tce});const ph={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},sce=function(){return typeof window>"u"?null:window},lce=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}},RI=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function $3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sce();const t=Ke=>$3(Ke);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==ph.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:h,DOMParser:p,trustedTypes:d}=e,g=l.prototype,_=dh(g,"cloneNode"),m=dh(g,"remove"),y=dh(g,"nextSibling"),b=dh(g,"childNodes"),S=dh(g,"parentNode");if(typeof a=="function"){const Ke=n.createElement("template");Ke.content&&Ke.content.ownerDocument&&(n=Ke.content.ownerDocument)}let x,E="";const{implementation:T,createNodeIterator:M,createDocumentFragment:P,getElementsByTagName:L}=n,{importNode:k}=r;let N=RI();t.isSupported=typeof O3=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:te,TMPLIT_EXPR:W,DATA_ATTR:X,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:fe}=MI;let{IS_ALLOWED_URI:_e}=MI,be=null;const Ne=Dt({},[...CI,...kw,...Nw,...Fw,...TI]);let ke=null;const qe=Dt({},[...EI,...$w,...AI,...dg]);let He=Object.seal(k3(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}})),Ye=null,ue=null,Te=!0,we=!0,xe=!1,Ee=!0,De=!1,$=!0,B=!1,ne=!1,me=!1,ce=!1,O=!1,V=!1,Z=!0,ae=!1;const pe="user-content-";let Ce=!0,Y=!1,ie={},Re=null;const Be=Dt({},["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 ft=null;const wt=Dt({},["audio","video","img","source","image","track"]);let on=null;const yn=Dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml";let si=Yn,Nn=!1,Zn=null;const Mu=Dt({},[kn,Rn,Yn],Ow);let Ru=Dt({},["mi","mo","mn","ms","mtext"]),Pu=Dt({},["annotation-xml"]);const pp=Dt({},["title","style","font","a","script"]);let ns=null;const by=["application/xhtml+xml","text/html"],Sy="text/html";let Un=null,rs=null;const vp=n.createElement("form"),gp=function(K){return K instanceof RegExp||K instanceof Function},gf=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(rs&&rs===K)){if((!K||typeof K!="object")&&(K={}),K=ql(K),ns=by.indexOf(K.PARSER_MEDIA_TYPE)===-1?Sy:K.PARSER_MEDIA_TYPE,Un=ns==="application/xhtml+xml"?Ow:am,be=vo(K,"ALLOWED_TAGS")?Dt({},K.ALLOWED_TAGS,Un):Ne,ke=vo(K,"ALLOWED_ATTR")?Dt({},K.ALLOWED_ATTR,Un):qe,Zn=vo(K,"ALLOWED_NAMESPACES")?Dt({},K.ALLOWED_NAMESPACES,Ow):Mu,on=vo(K,"ADD_URI_SAFE_ATTR")?Dt(ql(yn),K.ADD_URI_SAFE_ATTR,Un):yn,ft=vo(K,"ADD_DATA_URI_TAGS")?Dt(ql(wt),K.ADD_DATA_URI_TAGS,Un):wt,Re=vo(K,"FORBID_CONTENTS")?Dt({},K.FORBID_CONTENTS,Un):Be,Ye=vo(K,"FORBID_TAGS")?Dt({},K.FORBID_TAGS,Un):{},ue=vo(K,"FORBID_ATTR")?Dt({},K.FORBID_ATTR,Un):{},ie=vo(K,"USE_PROFILES")?K.USE_PROFILES:!1,Te=K.ALLOW_ARIA_ATTR!==!1,we=K.ALLOW_DATA_ATTR!==!1,xe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,De=K.SAFE_FOR_TEMPLATES||!1,$=K.SAFE_FOR_XML!==!1,B=K.WHOLE_DOCUMENT||!1,ce=K.RETURN_DOM||!1,O=K.RETURN_DOM_FRAGMENT||!1,V=K.RETURN_TRUSTED_TYPE||!1,me=K.FORCE_BODY||!1,Z=K.SANITIZE_DOM!==!1,ae=K.SANITIZE_NAMED_PROPS||!1,Ce=K.KEEP_CONTENT!==!1,Y=K.IN_PLACE||!1,_e=K.ALLOWED_URI_REGEXP||N3,si=K.NAMESPACE||Yn,Ru=K.MATHML_TEXT_INTEGRATION_POINTS||Ru,Pu=K.HTML_INTEGRATION_POINTS||Pu,He=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&gp(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&gp(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(we=!1),O&&(ce=!0),ie&&(be=Dt({},TI),ke=[],ie.html===!0&&(Dt(be,CI),Dt(ke,EI)),ie.svg===!0&&(Dt(be,kw),Dt(ke,$w),Dt(ke,dg)),ie.svgFilters===!0&&(Dt(be,Nw),Dt(ke,$w),Dt(ke,dg)),ie.mathMl===!0&&(Dt(be,Fw),Dt(ke,AI),Dt(ke,dg))),K.ADD_TAGS&&(be===Ne&&(be=ql(be)),Dt(be,K.ADD_TAGS,Un)),K.ADD_ATTR&&(ke===qe&&(ke=ql(ke)),Dt(ke,K.ADD_ATTR,Un)),K.ADD_URI_SAFE_ATTR&&Dt(on,K.ADD_URI_SAFE_ATTR,Un),K.FORBID_CONTENTS&&(Re===Be&&(Re=ql(Re)),Dt(Re,K.FORBID_CONTENTS,Un)),Ce&&(be["#text"]=!0),B&&Dt(be,["html","head","body"]),be.table&&(Dt(be,["tbody"]),delete Ye.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw hh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw hh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=K.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else x===void 0&&(x=lce(d,i)),x!==null&&typeof E=="string"&&(E=x.createHTML(""));Vr&&Vr(K),rs=K}},mp=Dt({},[...kw,...Nw,...Zue]),Du=Dt({},[...Fw,...Jue]),xy=function(K){let Me=S(K);(!Me||!Me.tagName)&&(Me={namespaceURI:si,tagName:"template"});const Ue=am(K.tagName),Qt=am(Me.tagName);return Zn[K.namespaceURI]?K.namespaceURI===Rn?Me.namespaceURI===Yn?Ue==="svg":Me.namespaceURI===kn?Ue==="svg"&&(Qt==="annotation-xml"||Ru[Qt]):!!mp[Ue]:K.namespaceURI===kn?Me.namespaceURI===Yn?Ue==="math":Me.namespaceURI===Rn?Ue==="math"&&Pu[Qt]:!!Du[Ue]:K.namespaceURI===Yn?Me.namespaceURI===Rn&&!Pu[Qt]||Me.namespaceURI===kn&&!Ru[Qt]?!1:!Du[Ue]&&(pp[Ue]||!mp[Ue]):!!(ns==="application/xhtml+xml"&&Zn[K.namespaceURI]):!1},Hr=function(K){ch(t.removed,{element:K});try{S(K).removeChild(K)}catch{m(K)}},Iu=function(K,Me){try{ch(t.removed,{attribute:Me.getAttributeNode(K),from:Me})}catch{ch(t.removed,{attribute:null,from:Me})}if(Me.removeAttribute(K),K==="is")if(ce||O)try{Hr(Me)}catch{}else try{Me.setAttribute(K,"")}catch{}},yp=function(K){let Me=null,Ue=null;if(me)K=""+K;else{const Pn=xI(K,/^[\r\n\t ]+/);Ue=Pn&&Pn[0]}ns==="application/xhtml+xml"&&si===Yn&&(K=''+K+"");const Qt=x?x.createHTML(K):K;if(si===Yn)try{Me=new p().parseFromString(Qt,ns)}catch{}if(!Me||!Me.documentElement){Me=T.createDocument(si,"template",null);try{Me.documentElement.innerHTML=Nn?E:Qt}catch{}}const Jn=Me.body||Me.documentElement;return K&&Ue&&Jn.insertBefore(n.createTextNode(Ue),Jn.childNodes[0]||null),si===Yn?L.call(Me,B?"html":"body")[0]:B?Me.documentElement:Jn},_p=function(K){return M.call(K.ownerDocument||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},wp=function(K){return K instanceof h&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},bp=function(K){return typeof s=="function"&&K instanceof s};function ro(Ke,K,Me){hg(Ke,Ue=>{Ue.call(t,K,Me,rs)})}const Sp=function(K){let Me=null;if(ro(N.beforeSanitizeElements,K,null),wp(K))return Hr(K),!0;const Ue=Un(K.nodeName);if(ro(N.uponSanitizeElement,K,{tagName:Ue,allowedTags:be}),K.hasChildNodes()&&!bp(K.firstElementChild)&&Ar(/<[/\w]/g,K.innerHTML)&&Ar(/<[/\w]/g,K.textContent)||K.nodeType===ph.progressingInstruction||$&&K.nodeType===ph.comment&&Ar(/<[/\w]/g,K.data))return Hr(K),!0;if(!be[Ue]||Ye[Ue]){if(!Ye[Ue]&&mf(Ue)&&(He.tagNameCheck instanceof RegExp&&Ar(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue)))return!1;if(Ce&&!Re[Ue]){const Qt=S(K)||K.parentNode,Jn=b(K)||K.childNodes;if(Jn&&Qt){const Pn=Jn.length;for(let fr=Pn-1;fr>=0;--fr){const Pi=_(Jn[fr],!0);Pi.__removalCount=(K.__removalCount||0)+1,Qt.insertBefore(Pi,y(K))}}}return Hr(K),!0}return K instanceof l&&!xy(K)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&Ar(/<\/no(script|embed|frames)/i,K.innerHTML)?(Hr(K),!0):(De&&K.nodeType===ph.text&&(Me=K.textContent,hg([H,te,W],Qt=>{Me=fh(Me,Qt," ")}),K.textContent!==Me&&(ch(t.removed,{element:K.cloneNode()}),K.textContent=Me)),ro(N.afterSanitizeElements,K,null),!1)},xp=function(K,Me,Ue){if(Z&&(Me==="id"||Me==="name")&&(Ue in n||Ue in vp))return!1;if(!(we&&!ue[Me]&&Ar(X,Me))){if(!(Te&&Ar(j,Me))){if(!ke[Me]||ue[Me]){if(!(mf(K)&&(He.tagNameCheck instanceof RegExp&&Ar(He.tagNameCheck,K)||He.tagNameCheck instanceof Function&&He.tagNameCheck(K))&&(He.attributeNameCheck instanceof RegExp&&Ar(He.attributeNameCheck,Me)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(Me))||Me==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&Ar(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue))))return!1}else if(!on[Me]){if(!Ar(_e,fh(Ue,Q,""))){if(!((Me==="src"||Me==="xlink:href"||Me==="href")&&K!=="script"&&jue(Ue,"data:")===0&&ft[K])){if(!(xe&&!Ar(oe,fh(Ue,Q,"")))){if(Ue)return!1}}}}}}return!0},mf=function(K){return K!=="annotation-xml"&&xI(K,fe)},Cp=function(K){ro(N.beforeSanitizeAttributes,K,null);const{attributes:Me}=K;if(!Me)return;const Ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Qt=Me.length;for(;Qt--;){const Jn=Me[Qt],{name:Pn,namespaceURI:fr,value:Pi}=Jn,ul=Un(Pn);let Qn=Pn==="value"?Pi:que(Pi);if(Ue.attrName=ul,Ue.attrValue=Qn,Ue.keepAttr=!0,Ue.forceKeepAttr=void 0,ro(N.uponSanitizeAttribute,K,Ue),Qn=Ue.attrValue,ae&&(ul==="id"||ul==="name")&&(Iu(Pn,K),Qn=pe+Qn),$&&Ar(/((--!?|])>)|<\/(style|title)/i,Qn)){Iu(Pn,K);continue}if(Ue.forceKeepAttr||(Iu(Pn,K),!Ue.keepAttr))continue;if(!Ee&&Ar(/\/>/i,Qn)){Iu(Pn,K);continue}De&&hg([H,te,W],_f=>{Qn=fh(Qn,_f," ")});const yf=Un(K.nodeName);if(xp(yf,ul,Qn)){if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!fr)switch(d.getAttributeType(yf,ul)){case"TrustedHTML":{Qn=x.createHTML(Qn);break}case"TrustedScriptURL":{Qn=x.createScriptURL(Qn);break}}try{fr?K.setAttributeNS(fr,Pn,Qn):K.setAttribute(Pn,Qn),wp(K)?Hr(K):SI(t.removed)}catch{}}}ro(N.afterSanitizeAttributes,K,null)},Cy=function Ke(K){let Me=null;const Ue=_p(K);for(ro(N.beforeSanitizeShadowDOM,K,null);Me=Ue.nextNode();)ro(N.uponSanitizeShadowNode,Me,null),!Sp(Me)&&(Me.content instanceof o&&Ke(Me.content),Cp(Me));ro(N.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(Ke){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=null,Ue=null,Qt=null,Jn=null;if(Nn=!Ke,Nn&&(Ke=""),typeof Ke!="string"&&!bp(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw hh("dirty is not a string, aborting")}else throw hh("toString is not a function");if(!t.isSupported)return Ke;if(ne||gf(K),t.removed=[],typeof Ke=="string"&&(Y=!1),Y){if(Ke.nodeName){const Pi=Un(Ke.nodeName);if(!be[Pi]||Ye[Pi])throw hh("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof s)Me=yp(""),Ue=Me.ownerDocument.importNode(Ke,!0),Ue.nodeType===ph.element&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?Me=Ue:Me.appendChild(Ue);else{if(!ce&&!De&&!B&&Ke.indexOf("<")===-1)return x&&V?x.createHTML(Ke):Ke;if(Me=yp(Ke),!Me)return ce?null:V?E:""}Me&&me&&Hr(Me.firstChild);const Pn=_p(Y?Ke:Me);for(;Qt=Pn.nextNode();)Sp(Qt)||(Qt.content instanceof o&&Cy(Qt.content),Cp(Qt));if(Y)return Ke;if(ce){if(O)for(Jn=P.call(Me.ownerDocument);Me.firstChild;)Jn.appendChild(Me.firstChild);else Jn=Me;return(ke.shadowroot||ke.shadowrootmode)&&(Jn=k.call(r,Jn,!0)),Jn}let fr=B?Me.outerHTML:Me.innerHTML;return B&&be["!doctype"]&&Me.ownerDocument&&Me.ownerDocument.doctype&&Me.ownerDocument.doctype.name&&Ar(F3,Me.ownerDocument.doctype.name)&&(fr=" +`+fr),De&&hg([H,te,W],Pi=>{fr=fh(fr,Pi," ")}),x&&V?x.createHTML(fr):fr},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gf(Ke),ne=!0},t.clearConfig=function(){rs=null,ne=!1},t.isValidAttribute=function(Ke,K,Me){rs||gf({});const Ue=Un(Ke),Qt=Un(K);return xp(Ue,Qt,Me)},t.addHook=function(Ke,K){typeof K=="function"&&ch(N[Ke],K)},t.removeHook=function(Ke){return SI(N[Ke])},t.removeHooks=function(Ke){N[Ke]=[]},t.removeAllHooks=function(){N=RI()},t}var uce=$3();const cce=["innerHTML"],fce=["src"],PI="data:image/svg+xml,",B3=Ze({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Ie(()=>t.size==="small"?"w-4":"w-5"),r=Ie(()=>t.icon.startsWith(PI)),i=Ie(()=>{if(r.value)return uce.sanitize(t.icon.replace(PI,""))});return(o,a)=>r.value?(q(),re("div",{key:0,class:je(["inline-block",o.fill||"fill-primary",n.value]),innerHTML:i.value},null,10,cce)):(q(),re("img",{key:1,class:je(n.value),src:o.icon},null,10,fce))}}),hce=["data-tip"],dce={class:"flex w-full flex-1 items-center gap-1"},pce={class:"flex h-4 w-full items-center justify-between"},vce=Ze({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,n=Ae(null),r=Ae(!1),i=()=>{if(n.value){const{scrollWidth:h,clientWidth:p}=n.value;r.value=h>p}},o=Ie(()=>Ro.value[t.name]),a=Ae(!1),s=h=>(h=h.toLowerCase(),h=h.replace("shadowsocks","ss"),h=h.replace("hysteria","hy"),h=h.replace("wireguard","wg"),h),l=Ie(()=>Yh.value===rp.SMALL),u=Ie(()=>{const h=s(o.value.type),p=uu.value&&aj(o.value.name)?"IPv6":"",d=o.value.udp?"udp":"";return[h,d,p].filter(Boolean).join(l.value?"/":" / ")}),c=async()=>{if(!a.value){a.value=!0;try{await lj(t.name),a.value=!1}catch{a.value=!1}}};return(h,p)=>(q(),re("div",{ref:"cardRef",class:je(F(nn)("flex cursor-pointer flex-col items-start gap-[2px] rounded-md bg-base-200",h.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",r.value&&"tooltip tooltip-bottom",l.value?"p-1":"p-2")),"data-tip":o.value.name,onMouseenter:i},[D("div",dce,[o.value.icon?(q(),Et(B3,{key:0,class:"shrink-0",size:"small",icon:o.value.icon,fill:h.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):yt("",!0),D("span",{class:je(F(nn)("text-sm",F(Gh)&&"truncate")),ref_key:"nameRef",ref:n},se(o.value.name),3)]),D("div",pce,[D("span",{class:je(`whitespace-nowrap text-xs tracking-tight ${h.active?"text-primary-content":"text-slate-500"}`)},se(u.value),3),ye(L3,{class:je([a.value?"animate-pulse cursor-wait":"",l.value&&"!h-4 !w-8"]),name:o.value.name,onClick:xd(c,["stop"])},null,8,["class","name"])])],42,hce))}}),V3=Yx(vce,[["__scopeId","data-v-f63636b0"]]),gce=Ze({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=G0();return(n,r)=>(q(),re("div",{class:je(F(nn)("grid grid-cols-2 gap-2",F(Gh)&&"max-h-96 overflow-y-auto",F(Yh)===F(rp).LARGE?F(zs)?F(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":F(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 3xl:grid-cols-8":F(zs)?F(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":F(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-5 2xl:grid-cols-8 3xl:grid-cols-10"))},[kh(n.$slots,"default",{},void 0,!0)],2))}}),H3=Yx(gce,[["__scopeId","data-v-f39f6eaa"]]),mce={key:0,class:"flex flex-wrap gap-1 pt-2"},yce={key:0,class:"h-2 w-2 rounded-full bg-white"},_ce={key:1,class:"flex items-center gap-2 py-2"},wce={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},U3=Ze({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,n=Ie(()=>Wh.value===Pd.DOTS||Wh.value===Pd.AUTO&&t.nodes.length<20),r=Ie(()=>t.nodes.map(u=>({latency:L0(u),name:u}))),i=u=>u===qo?"bg-gray-500":ur.value.filter(u=>u.latencyqo).length),a=Ie(()=>r.value.filter(u=>u.latency>=Fs.value&&u.latencyr.value.filter(u=>u.latency>=Na.value).length),l=Ie(()=>r.value.filter(u=>u.latency===qo).length);return(u,c)=>n.value?(q(),re("div",mce,[(q(!0),re(Ge,null,Ft(r.value,h=>(q(),re("div",{key:h.name,class:je(["flex h-4 w-4 items-center justify-center rounded-full",i(h.latency)])},[u.now===h.name?(q(),re("div",yce)):yt("",!0)],2))),128))])):(q(),re("div",_ce,[D("div",wce,[D("div",{class:je(i(F(Fs)-1)),style:yo({width:`${o.value*100/u.nodes.length}%`})},null,6),D("div",{class:je(i(F(Na)-1)),style:yo({width:`${a.value*100/u.nodes.length}%`})},null,6),D("div",{class:je(i(F(Na)+1)),style:yo({width:`${s.value*100/u.nodes.length}%`})},null,6),D("div",{class:je(i(F(qo))),style:yo({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),bce={class:"flex items-center gap-2 pr-5"},Sce={class:"flex flex-1 items-center gap-1"},xce={class:"text-lg font-medium"},Cce={key:1,class:"text-sm"},Tce={class:"flex items-center gap-2 text-xs text-slate-500"},Ece={class:"flex-1"},Ace={class:"shrink-0"},Mce=Ze({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Ie(()=>Ro.value[t.name]),r=Ie(()=>QO(n.value.all??[])),i=Ae(!1),o=async()=>{if(!i.value){i.value=!0;try{await uj(t.name),i.value=!1}catch{i.value=!1}}},a=Ie(()=>bo.value.filter(l=>l.chains.includes(t.name)).reduce((l,u)=>l+u.downloadSpeed,0));return(s,l)=>(q(),Et(I3,{name:n.value.name},{title:Qr(()=>{var u;return[D("div",bce,[D("div",Sce,[n.value.icon?(q(),Et(B3,{key:0,icon:n.value.icon},null,8,["icon"])):yt("",!0),D("span",xce,se(n.value.name),1),n.value.now?(q(),re("span",Cce," -> "+se(n.value.now),1)):yt("",!0)]),ye(L3,{class:je(F(nn)("z-10 bg-base-200/40 hover:shadow",i.value?"animate-pulse cursor-wait bg-base-300":"")),name:n.value.now,onClick:xd(o,["stop"])},null,8,["class","name"])]),D("div",Tce,[D("div",Ece,se(n.value.type)+" ("+se((u=n.value.all)==null?void 0:u.length)+")",1),D("div",Ace,se(F(mn)(a.value))+"/s",1)])]}),preview:Qr(()=>[ye(U3,{nodes:r.value,now:n.value.now},null,8,["nodes","now"])]),content:Qr(()=>[ye(H3,null,{default:Qr(()=>[(q(!0),re(Ge,null,Ft(r.value,u=>(q(),Et(V3,{key:u,name:u,active:u===n.value.now,onClick:c=>F(sj)(n.value.name,u)},null,8,["name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),Rce={class:"flex items-center gap-2"},Pce={class:"text-lg font-medium sm:text-xl"},Dce={class:"text-sm"},Ice={class:"flex gap-2"},Lce=["value"],Oce={class:"flex flex-col sm:flex-row sm:gap-4"},kce={class:"text-sm text-slate-500"},Nce={class:"text-sm text-slate-500"},Fce={class:"text-sm text-slate-500"},$ce=Ze({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=c=>{const{Download:h=0,Upload:p=0,Total:d=0,Expire:g=0}=c,_=mn(d,{binary:!0}),m=mn(h+p,{binary:!0}),y=Mo.toFinite(((h+p)/d*100).toFixed(2));return{total:_,used:m,percentage:y,expirePrefix:()=>{const{t:x}=ia();return x("expire")},expireStr:()=>{const{t:x}=ia();return g===0?x("noExpire"):ta(g*1e3).format("YYYY-MM-DD")}}},r=Ie(()=>Dc.value.find(c=>c.name===t.name)),i=Ie(()=>QO(r.value.proxies.map(c=>c.name))),o=Ie(()=>r.value.subscriptionInfo?n(r.value.subscriptionInfo):null),a=Ae(!1),s=Ae(!1),l=async()=>{if(!s.value){s.value=!0;try{await tX(t.name),await Ks(),s.value=!1}catch{s.value=!1}}},u=async()=>{if(!a.value){a.value=!0;try{await Mk(t.name),await Ks(),a.value=!1}catch{a.value=!1}}};return(c,h)=>(q(),Et(I3,{name:r.value.name},{title:Qr(()=>[D("div",Rce,[D("div",Pce,[Qe(se(r.value.name)+" ",1),D("span",Dce," ("+se(r.value.proxies.length)+") ",1)]),h[0]||(h[0]=D("div",{class:"flex-1"},null,-1)),D("div",Ice,[D("button",{class:je(F(nn)("btn btn-circle btn-sm z-30",s.value?"animate-pulse":"")),onClick:xd(l,["stop"])},[ye(F(dx),{class:"h-4 w-4"})],2),D("button",{class:je(F(nn)("btn btn-circle btn-sm z-30",a.value?"animate-spin":"")),onClick:xd(u,["stop"])},[ye(F(oO),{class:"h-4 w-4"})],2)])]),o.value?(q(),re("progress",{key:0,class:"progress",value:o.value.percentage,max:"100"},null,8,Lce)):yt("",!0),D("div",Oce,[o.value?(q(),re(Ge,{key:0},[D("div",kce,se(o.value.used)+" / "+se(o.value.total)+" ( "+se(o.value.percentage)+"% ) ",1),D("div",Nce,se(o.value.expirePrefix())+": "+se(o.value.expireStr()),1)],64)):yt("",!0),D("div",Fce,se(c.$t("updated"))+" "+se(F(O0)(r.value.updatedAt)),1)])]),preview:Qr(()=>[ye(U3,{nodes:i.value},null,8,["nodes"])]),content:Qr(()=>[ye(H3,null,{default:Qr(()=>[(q(!0),re(Ge,null,Ft(i.value,p=>(q(),Et(V3,{key:p,name:p},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),Bce={class:"overflow-y-auto p-2"},Vce={key:0,class:"grid grid-cols-2 gap-1"},Hce={key:1,class:"grid grid-cols-1 gap-1"},Uce=Ze({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=G0(),r=Ie(()=>t.value===yu.PROVIDER?$ce:Mce),i=(o,a)=>o.filter((s,l)=>l%2===a);return(o,a)=>(q(),re("div",Bce,[F(ZO)&&F(Hh)&&F(n).length>1?(q(),re("div",Vce,[(q(),re(Ge,null,Ft([0,1],s=>D("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(q(!0),re(Ge,null,Ft(i(F(n),s),l=>(q(),Et(Ya(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(q(),re("div",Hce,[(q(!0),re(Ge,null,Ft(F(n),s=>(q(),Et(Ya(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),zce={class:"mr-2 inline-block min-w-4 text-center"},Gce={key:0},Wce={class:"flex gap-2"},Yce={class:"text-primary"},jce=Ze({__name:"RuleCard",props:{rule:{},index:{}},setup(e){return(t,n)=>(q(),re("div",{class:je(F(nn)("card mb-1 gap-1 p-2 text-sm",!t.rule.payload&&"flex-row gap-0"))},[D("div",null,[D("span",zce,se(t.index)+".",1),t.rule.payload?(q(),re("span",Gce,se(t.rule.payload),1)):yt("",!0)]),D("div",Wce,[D("span",{class:je(t.rule.payload&&"text-slate-500")},se(t.rule.type),3),n[0]||(n[0]=D("span",null,"->",-1)),D("span",Yce,se(t.rule.proxy),1)])],2))}}),qce={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},Xce={class:"flex flex-1 flex-col sm:flex-row"},Kce={class:"flex flex-1 items-center gap-2"},Zce={class:"flex gap-3 text-slate-500"},Jce=Ze({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=Ae(!1),n=e,r=async()=>{t.value||(t.value=!0,await Rk(n.ruleProvider.name),Od(),t.value=!1)};return(i,o)=>(q(),re("div",qce,[D("div",Xce,[D("div",Kce,[D("span",null,se(i.index)+".",1),D("span",null,se(i.ruleProvider.name)+" ("+se(i.ruleProvider.ruleCount)+") ",1)]),D("div",Zce,[D("span",null,se(i.ruleProvider.behavior),1),D("span",null,se(i.ruleProvider.vehicleType),1),D("span",null,se(i.$t("updated"))+" "+se(F(O0)(i.ruleProvider.updatedAt)),1)])]),D("button",{class:je(F(nn)("btn btn-circle btn-sm",t.value?"animate-spin":"")),onClick:r},[ye(F(oO),{class:"h-4 w-4"})],2)]))}}),Qce={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},efe=Ze({__name:"RulesPage",setup(e){return(t,n)=>F(Kh)===F(Kc).PROVIDER?(q(),re("div",Qce,[(q(!0),re(Ge,null,Ft(F(Om),(r,i)=>(q(),Et(Jce,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128))])):(q(),Et(Bx,{key:1,data:F(Fb)},{default:Qr(({item:r})=>[(q(),Et(jce,{key:r.payload,rule:r,index:F(Fb).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))}}),tfe={class:"join w-96 max-sm:w-full"},nfe={class:"max-h-96 overflow-y-auto"},rfe=Ze({__name:"DnsQuery",setup(e){const t=Eo({name:"www.google.com",type:"A"}),n=Ae([]),r=async()=>{const{data:i}=await uX(t);n.value=i.Answer};return(i,o)=>(q(),re(Ge,null,[D("div",tfe,[ye(Wx,{modelValue:t.name,"onUpdate:modelValue":o[0]||(o[0]=a=>t.name=a),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),Tt(D("select",{"onUpdate:modelValue":o[1]||(o[1]=a=>t.type=a),class:"join-item select select-bordered select-sm"},o[2]||(o[2]=[D("option",{value:"A"},"A",-1),D("option",{value:"AAAA"},"AAAA",-1),D("option",{value:"MX"},"MX",-1)]),512),[[Ai,t.type]]),D("button",{class:"btn join-item btn-sm",onClick:r},se(i.$t("DNSQuery")),1)]),D("div",nfe,[(q(!0),re(Ge,null,Ft(n.value,a=>(q(),re("div",{class:"flex gap-1",key:a.data},[D("div",null,se(a.name),1),o[3]||(o[3]=Qe(" : ")),D("div",null,se(a.data),1)]))),128))])],64))}}),ife={class:"card card-compact"},ofe={class:"card-title px-4 pt-4"},afe={class:"card-body gap-4"},sfe={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},lfe={key:0,class:"flex items-center gap-2"},ufe={class:"shrink-0"},cfe=["onUpdate:modelValue","onChange"],ffe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},hfe={class:"indicator w-full"},dfe={key:0,class:"indicator-item flex"},pfe=Ze({__name:"BackendSettings",setup(e){const t=[{label:"mixedPort",key:"mixed-port"},{label:"httpPort",key:"port"},{label:"socksPort",key:"socks-port"},{label:"redirPort",key:"redir-port"},{label:"tproxyPort",key:"tproxy-port"}],n=()=>{jx(),Od(),Ks()},r=Ae(!1),i=async()=>{if(!r.value){r.value=!0;try{await lX(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=Ae(!1),a=async()=>{if(!o.value){o.value=!0;try{await sX(),n(),o.value=!1}catch{o.value=!1}}},s=Ae(!1),l=async()=>{if(!s.value){s.value=!0;try{await aX(),n(),s.value=!1}catch{s.value=!1}}},u=async()=>{var c;await Nb({tun:{enable:(c=wi.value)==null?void 0:c.tun.enable}})};return(c,h)=>{var p;return q(),re("div",ife,[D("div",ofe,se(c.$t("backend")),1),D("div",afe,[ye(aN),ye(oN),F(qa)?yt("",!0):(q(),re(Ge,{key:0},[h[2]||(h[2]=D("div",{class:"divider"},null,-1)),D("div",sfe,[(p=F(wi))!=null&&p.tun?(q(),re("div",lfe,[Qe(se(c.$t("tunMode"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":h[0]||(h[0]=d=>F(wi).tun.enable=d),onChange:u},null,544),[[mo,F(wi).tun.enable]])])):yt("",!0),(q(),re(Ge,null,Ft(t,d=>D("div",{class:"flex items-center gap-2",key:d.key},[D("span",ufe,se(c.$t(d.label))+": ",1),Tt(D("input",{class:"input input-sm input-bordered w-20",type:"number","onUpdate:modelValue":g=>F(wi)[d.key]=g,onChange:g=>F(Nb)({[d.key]:Number(F(wi)[d.key])})},null,40,cfe),[[Fr,F(wi)[d.key]]])])),64))])],64)),D("div",ffe,[F(qa)?yt("",!0):(q(),re(Ge,{key:0},[D("div",hfe,[F(Ek)?(q(),re("span",dfe,h[3]||(h[3]=[D("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),D("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):yt("",!0),D("button",{class:je(F(nn)("btn btn-primary btn-sm flex-1",o.value?"animate-pulse":"")),onClick:a},se(c.$t("upgradeCore")),3)]),D("button",{class:je(F(nn)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},se(c.$t("restartCore")),3),D("button",{class:je(F(nn)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},se(c.$t("reloadConfigs")),3)],64)),D("button",{class:"btn btn-sm",onClick:h[1]||(h[1]=(...d)=>F(PM)&&F(PM)(...d))},se(c.$t("flushFakeIP")),1)]),h[4]||(h[4]=D("div",{class:"divider"},null,-1)),ye(rfe)])])}}}),vfe={class:"flex items-center gap-2"},gfe=["value"],z3=Ze({__name:"LanguageSelect",setup(e){const t={[wo.EN_US]:"English",[wo.ZH_CN]:"简体中文",[wo.RU_RU]:"Русский"};return(n,r)=>(q(),re("div",vfe,[Qe(se(n.$t("language"))+": ",1),Tt(D("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>et(Ba)?Ba.value=i:null),onChange:r[1]||(r[1]=()=>F(Px).global.locale=F(Ba))},[(q(!0),re(Ge,null,Ft(Object.values(F(wo)),i=>(q(),re("option",{key:i,value:i},se(t[i]||i),9,gfe))),128))],544),[[Ai,F(Ba)]])]))}}),mfe={class:"card card-compact"},yfe={class:"card-title px-4 pt-4"},_fe={class:"card-body"},wfe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},bfe={class:"flex items-center gap-2"},Sfe={class:"flex items-center gap-2"},xfe={class:"flex w-full items-center gap-2"},Cfe={class:"shrink-0"},Tfe={class:"flex w-full items-center gap-2"},Efe={class:"shrink-0"},Afe={class:"flex items-center gap-2"},Mfe={class:"shrink-0"},Rfe={class:"flex items-center gap-2"},Pfe={class:"shrink-0"},Dfe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Ife={class:"flex items-center gap-2 max-sm:hidden"},Lfe={class:"flex items-center gap-2"},Ofe=["value"],kfe={class:"flex items-center gap-2"},Nfe={class:"flex items-center gap-2"},Ffe=["value"],$fe={key:0,class:"flex items-center gap-2"},Bfe=Ze({__name:"ProxiesSettings",setup(e){return(t,n)=>(q(),re("div",mfe,[D("div",yfe,se(t.$t("proxies")),1),D("div",_fe,[D("div",wfe,[D("div",bfe,[Qe(se(t.$t("automaticDisconnection"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>et(Pg)?Pg.value=r:null)},null,512),[[mo,F(Pg)]])]),D("div",Sfe,[Qe(se(t.$t("ipv6Test"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>et(uu)?uu.value=r:null)},null,512),[[mo,F(uu)]])]),D("div",xfe,[D("span",Cfe,se(t.$t("speedtestUrl"))+": ",1),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-60 flex-1 sm:max-w-80","onUpdate:modelValue":n[2]||(n[2]=r=>et(Uh)?Uh.value=r:null)},null,512),[[Fr,F(Uh)]])]),D("div",Tfe,[D("span",Efe,se(t.$t("speedtestTimeout"))+": ",1),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":n[3]||(n[3]=r=>et(zh)?zh.value=r:null)},null,512),[[Fr,F(zh)]]),n[11]||(n[11]=Qe(" ms "))]),D("div",Afe,[D("span",Mfe,se(t.$t("lowLatencyDesc"))+": ",1),Tt(D("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":n[4]||(n[4]=r=>et(Fs)?Fs.value=r:null)},null,512),[[Fr,F(Fs)]]),n[12]||(n[12]=Qe(" ms "))]),D("div",Rfe,[D("span",Pfe,se(t.$t("mediumLatencyDesc"))+": ",1),Tt(D("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":n[5]||(n[5]=r=>et(Na)?Na.value=r:null)},null,512),[[Fr,F(Na)]]),n[13]||(n[13]=Qe(" ms "))])]),n[14]||(n[14]=D("div",{class:"divider"},null,-1)),D("div",Dfe,[D("div",Ife,[Qe(se(t.$t("twoColumnProxyGroup"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=r=>et(Hh)?Hh.value=r:null)},null,512),[[mo,F(Hh)]])]),D("div",Lfe,[Qe(se(t.$t("proxyPreviewType"))+": ",1),Tt(D("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":n[7]||(n[7]=r=>et(Wh)?Wh.value=r:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Pd)),r=>(q(),re("option",{key:r,value:r},se(t.$t(r)),9,Ofe))),128))],512),[[Ai,F(Wh)]])]),D("div",kfe,[Qe(se(t.$t("truncateProxyName"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=r=>et(Gh)?Gh.value=r:null)},null,512),[[mo,F(Gh)]])]),D("div",Nfe,[Qe(se(t.$t("proxyCardSize"))+": ",1),Tt(D("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":n[9]||(n[9]=r=>et(Yh)?Yh.value=r:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(rp)),r=>(q(),re("option",{key:r,value:r},se(t.$t(r)),9,Ffe))),128))],512),[[Ai,F(Yh)]])]),F(qa)?(q(),re("div",$fe,[Qe(se(t.$t("showGlobalProxy"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[10]||(n[10]=r=>et(Mg)?Mg.value=r:null)},null,512),[[mo,F(Mg)]])])):yt("",!0)])])]))}}),Vfe={class:"flex flex-col gap-2 p-2"},Hfe=["onUpdate:modelValue"],Ufe=["onClick"],zfe={class:"flex w-full items-center gap-2"},Gfe=Ze({__name:"SourceIPLabels",setup(e){const t=Ie(()=>Object.keys(_i.value)),n=Eo({ip:"",label:""}),r=()=>{_i.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(_i.value,o),_i.value={..._i.value}};return(o,a)=>(q(),re(Ge,null,[D("div",null,se(o.$t("sourceIPLabels"))+":",1),D("div",Vfe,[(q(!0),re(Ge,null,Ft(t.value,s=>(q(),re("div",{key:s,class:"flex items-center gap-2"},[Qe(se(s)+" -> ",1),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-24","onUpdate:modelValue":l=>F(_i)[s]=l},null,8,Hfe),[[Fr,F(_i)[s]]]),D("button",{class:"btn btn-circle btn-sm",onClick:()=>i(s)},[ye(F(uO),{class:"h-4 w-4"})],8,Ufe)]))),128)),D("div",zfe,[a[2]||(a[2]=Qe(" IP: ")),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[Fr,n.ip]]),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[Fr,n.label]]),D("button",{class:"btn btn-circle btn-sm",onClick:r},[ye(F(hO),{class:"h-4 w-4"})])])])],64))}});var Wfe=Object.defineProperty,s0=Object.getOwnPropertySymbols,G3=Object.prototype.hasOwnProperty,W3=Object.prototype.propertyIsEnumerable,DI=(e,t,n)=>t in e?Wfe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sc=(e,t)=>{for(var n in t||(t={}))G3.call(t,n)&&DI(e,n,t[n]);if(s0)for(var n of s0(t))W3.call(t,n)&&DI(e,n,t[n]);return e},Y3=(e,t)=>{var n={};for(var r in e)G3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&s0)for(var r of s0(e))t.indexOf(r)<0&&W3.call(e,r)&&(n[r]=e[r]);return n};const j3="[vue-draggable-plus]: ";function Yfe(e){console.warn(j3+e)}function jfe(e){console.error(j3+e)}function II(e,t,n){return n>=0&&nn?n.toUpperCase():"")}function Xfe(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[qfe(n)]=e[n]),t),{})}function LI(e,t){return Array.isArray(e)&&e.splice(t,1),e}function OI(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function Kfe(e){return typeof e>"u"}function Zfe(e){return typeof e=="string"}function kI(e,t,n){const r=e.children[n];e.insertBefore(t,r)}function Bw(e){e.parentNode&&e.parentNode.removeChild(e)}function Jfe(e,t=document){var n;let r=null;return typeof(t==null?void 0:t.querySelector)=="function"?r=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):r=document.querySelector(e),r||Yfe(`Element not found: ${e}`),r}function Qfe(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function ehe(e,t){const n=Sc({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Qfe(e[r],t[r]):n[r]=t[r]}),n}function the(e){return e instanceof HTMLElement}function NI(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function nhe(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const rhe=Object.assign;/**! + * Sortable 1.15.2 + * @author RubaXa + * @author owenm + * @license MIT + */function FI(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 la(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function ahe(e,t){if(e==null)return{};var n=ohe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var she="1.15.2";function Wa(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ts=Wa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),hp=Wa(/Edge/i),$I=Wa(/firefox/i),fd=Wa(/safari/i)&&!Wa(/chrome/i)&&!Wa(/android/i),q3=Wa(/iP(ad|od|hone)/i),X3=Wa(/chrome/i)&&Wa(/android/i),K3={capture:!1,passive:!1};function Gt(e,t,n){e.addEventListener(t,n,!ts&&K3)}function $t(e,t,n){e.removeEventListener(t,n,!ts&&K3)}function l0(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 lhe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function go(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&l0(e,t):l0(e,t))||r&&e===n)return e;if(e===n)break}while(e=lhe(e))}return null}var BI=/\s+/g;function vi(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(BI," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(BI," ")}}function lt(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 Uc(e,t){var n="";if(typeof e=="string")n=e;else do{var r=lt(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 Z3(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o,!a)return r;if(r===ea())break;r=Hs(r,!1)}return!1}function rf(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=ahe(n,ghe);dp.pluginEvent.bind(ut)(e,t,la({dragEl:Pe,parentEl:In,ghostEl:dt,rootEl:xn,nextEl:Xl,lastDownEl:lm,cloneEl:An,cloneHidden:ks,dragStarted:Rh,putSortable:sr,activeSortable:ut.active,originalEvent:r,oldIndex:xc,oldDraggableIndex:dd,newIndex:yi,newDraggableIndex:Ds,hideGhostForTarget:o$,unhideGhostForTarget:a$,cloneNowHidden:function(){ks=!0},cloneNowShown:function(){ks=!1},dispatchSortableEvent:function(o){Pr({sortable:t,name:o,originalEvent:r})}},i))};function Pr(e){vhe(la({putSortable:sr,cloneEl:An,targetEl:Pe,rootEl:xn,oldIndex:xc,oldDraggableIndex:dd,newIndex:yi,newDraggableIndex:Ds},e))}var Pe,In,dt,xn,Xl,lm,An,ks,xc,yi,dd,Ds,pg,sr,gc=!1,u0=!1,c0=[],zl,co,Uw,zw,UI,zI,Rh,cc,pd,vd=!1,vg=!1,um,mr,Gw=[],zS=!1,f0=[],wy=typeof document<"u",gg=q3,GI=hp||ts?"cssFloat":"float",mhe=wy&&!X3&&!q3&&"draggable"in document.createElement("div"),n$=function(){if(wy){if(ts)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),r$=function(e,t){var n=lt(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=rf(e,0,t),o=rf(e,1,t),a=i&<(i),s=o&<(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gn(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=r&&n[GI]==="none"||o&&n[GI]==="none"&&l+u>r)?"vertical":"horizontal"},yhe=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},_he=function(e,t){var n;return c0.some(function(r){var i=r[xi].options.emptyInsertThreshold;if(!(!i||tT(r))){var o=Gn(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(a&&s)return n=r}}),n},i$=function(e){function t(i,o){return function(a,s,l,u){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(a,s,l,u),o)(a,s,l,u);var h=(o?a:s).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var n={},r=e.group;(!r||sm(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},o$=function(){!n$&&dt&<(dt,"display","none")},a$=function(){!n$&&dt&<(dt,"display","")};wy&&!X3&&document.addEventListener("click",function(e){if(u0)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),u0=!1,!1},!0);var Gl=function(e){if(Pe){e=e.touches?e.touches[0]:e;var t=_he(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[xi]._onDragOver(n)}}},whe=function(e){Pe&&Pe.parentNode[xi]._isOutsideThisEl(e.target)};function ut(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=Za({},t),e[xi]=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 r$(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(o,a){o.setData("Text",a.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:ut.supportPointer!==!1&&"PointerEvent"in window&&!fd,emptyInsertThreshold:5};dp.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);i$(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:mhe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Gt(e,"pointerdown",this._onTapStart):(Gt(e,"mousedown",this._onTapStart),Gt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Gt(e,"dragover",this),Gt(e,"dragenter",this)),c0.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Za(this,hhe())}ut.prototype={constructor:ut,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(cc=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,Pe):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(Mhe(n),!Pe&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&fd&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=go(s,r.draggable,n,!1),!(s&&s.animated)&&lm!==s)){if(xc=Gi(s),dd=Gi(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Pr({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),qr("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=go(l,c.trim(),n,!1),c)return Pr({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),qr("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!go(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,o=r.options,a=i.ownerDocument,s;if(n&&!Pe&&n.parentNode===i){var l=Gn(n);if(xn=i,Pe=n,In=Pe.parentNode,Xl=Pe.nextSibling,lm=n,pg=o.group,ut.dragged=Pe,zl={target:Pe,clientX:(t||e).clientX,clientY:(t||e).clientY},UI=zl.clientX-l.left,zI=zl.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Pe.style["will-change"]="all",s=function(){if(qr("delayEnded",r,{evt:e}),ut.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!$I&&r.nativeDraggable&&(Pe.draggable=!0),r._triggerDragStart(e,t),Pr({sortable:r,name:"choose",originalEvent:e}),vi(Pe,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){Z3(Pe,u.trim(),Ww)}),Gt(a,"dragover",Gl),Gt(a,"mousemove",Gl),Gt(a,"touchmove",Gl),Gt(a,"mouseup",r._onDrop),Gt(a,"touchend",r._onDrop),Gt(a,"touchcancel",r._onDrop),$I&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Pe.draggable=!0),qr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(hp||ts))){if(ut.eventCanceled){this._onDrop();return}Gt(a,"mouseup",r._disableDelayedDrag),Gt(a,"touchend",r._disableDelayedDrag),Gt(a,"touchcancel",r._disableDelayedDrag),Gt(a,"mousemove",r._delayedDragTouchMoveHandler),Gt(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&Gt(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Pe&&Ww(Pe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;$t(e,"mouseup",this._disableDelayedDrag),$t(e,"touchend",this._disableDelayedDrag),$t(e,"touchcancel",this._disableDelayedDrag),$t(e,"mousemove",this._delayedDragTouchMoveHandler),$t(e,"touchmove",this._delayedDragTouchMoveHandler),$t(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Gt(document,"pointermove",this._onTouchMove):t?Gt(document,"touchmove",this._onTouchMove):Gt(document,"mousemove",this._onTouchMove):(Gt(Pe,"dragend",this),Gt(xn,"dragstart",this._onDragStart));try{document.selection?cm(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(gc=!1,xn&&Pe){qr("dragStarted",this,{evt:t}),this.nativeDraggable&&Gt(document,"dragover",whe);var n=this.options;!e&&vi(Pe,n.dragClass,!1),vi(Pe,n.ghostClass,!0),ut.active=this,e&&this._appendGhost(),Pr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(co){this._lastX=co.clientX,this._lastY=co.clientY,o$();for(var e=document.elementFromPoint(co.clientX,co.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(co.clientX,co.clientY),e!==t);)t=e;if(Pe.parentNode[xi]._isOutsideThisEl(e),t)do{if(t[xi]){var n=void 0;if(n=t[xi]._onDragOver({clientX:co.clientX,clientY:co.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);a$()}},_onTouchMove:function(e){if(zl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=dt&&Uc(dt,!0),a=dt&&o&&o.a,s=dt&&o&&o.d,l=gg&&mr&&HI(mr),u=(i.clientX-zl.clientX+r.x)/(a||1)+(l?l[0]-Gw[0]:0)/(a||1),c=(i.clientY-zl.clientY+r.y)/(s||1)+(l?l[1]-Gw[1]:0)/(s||1);if(!ut.active&&!gc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Pr({rootEl:In,name:"add",toEl:In,fromEl:xn,originalEvent:e}),Pr({sortable:this,name:"remove",toEl:In,originalEvent:e}),Pr({rootEl:In,name:"sort",toEl:In,fromEl:xn,originalEvent:e}),Pr({sortable:this,name:"sort",toEl:In,originalEvent:e})),sr&&sr.save()):yi!==xc&&yi>=0&&(Pr({sortable:this,name:"update",toEl:In,originalEvent:e}),Pr({sortable:this,name:"sort",toEl:In,originalEvent:e})),ut.active&&((yi==null||yi===-1)&&(yi=xc,Ds=dd),Pr({sortable:this,name:"end",toEl:In,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){qr("nulling",this),xn=Pe=In=dt=Xl=An=lm=ks=zl=co=Rh=yi=Ds=xc=dd=cc=pd=sr=pg=ut.dragged=ut.ghost=ut.clone=ut.active=null,f0.forEach(function(e){e.checked=!0}),f0.length=Uw=zw=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Pe&&(this._onDragOver(e),bhe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,o=this.options;ri.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function The(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,h=r?n.bottom:n.right,p=!1;if(!a){if(s&&umc+u*o/2:lh-um)return-pd}else if(l>c+u*(1-i)/2&&lh-u*o/2)?l>c+u/2?1:-1:0}function Ehe(e){return Gi(Pe){if(X&&(i==null?void 0:i.length)!==H.childNodes.length)return N.insertBefore(X,j.nextSibling),!0;const Q=H.childNodes[oe];X=H==null?void 0:H.replaceChild(j,Q)})}}catch(X){te=X}finally{i=null}Do(()=>{if(YI(),te)throw te})}const y={onUpdate:_,onStart:p,onAdd:d,onRemove:g,onEnd:m};function b(P){const L=F(o);return P||(P=Zfe(L)?Jfe(L,r==null?void 0:r.$el):L),P&&!the(P)&&(P=P.$el),P||jfe("Root element not found"),P}function S(){var P;const L=(P=F(s))!=null?P:{},k=Y3(L,["immediate","clone"]);return NI(k,(N,H)=>{nhe(N)&&(k[N]=(te,...W)=>{const X=Lhe();return rhe(te,X),H(te,...W)})}),ehe(a===null?{}:y,k)}const x=P=>{P=b(P),l&&E.destroy(),l=new ut(P,S())};Lt(()=>s,()=>{l&&NI(S(),(P,L)=>{l==null||l.option(P,L)})},{deep:!0});const E={option:(P,L)=>l==null?void 0:l.option(P,L),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...P)=>l==null?void 0:l.closest(...P)},T=()=>E==null?void 0:E.option("disabled",!0),M=()=>E==null?void 0:E.option("disabled",!1);return Ihe(()=>{u&&x()}),Dhe(E.destroy),Sc({start:x,pause:T,resume:M},E)}const jS=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],khe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...jS.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],qI=Ze({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:khe,emits:["update:modelValue",...jS],setup(e,{slots:t,emit:n,expose:r,attrs:i}){const o=jS.reduce((c,h)=>{const p=`on${h.replace(/^\S/,d=>d.toUpperCase())}`;return c[p]=(...d)=>n(h,...d),c},{}),a=Ie(()=>{const c=lG(e),h=Y3(c,["modelValue"]),p=Object.entries(h).reduce((d,[g,_])=>{const m=F(_);return m!==void 0&&(d[g]=m),d},{});return Sc(Sc({},o),Xfe(Sc(Sc({},i),p)))}),s=Ie({get:()=>e.modelValue,set:c=>n("update:modelValue",c)}),l=Ae(),u=Eo(Ohe(e.target||l,s,a));return r(u),()=>{var c;return jo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),Nhe={class:"flex items-center gap-2"},Fhe=["value"],$he={class:"flex rounded lg:flex-col"},Bhe=Ze({__name:"TableSettings",setup(e){const t=Ae(Object.values(Bt).filter(n=>!Kl.value.includes(n)));return(n,r)=>(q(),re(Ge,null,[D("div",Nhe,[D("div",null,se(n.$t("tableSize"))+":",1),Tt(D("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[0]||(r[0]=i=>et(Ig)?Ig.value=i:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Dd)),i=>(q(),re("option",{key:i,value:i},se(n.$t(i)),9,Fhe))),128))],512),[[Ai,F(Ig)]])]),D("div",null,se(n.$t("customTableColumns"))+":",1),D("div",$he,[ye(F(qI),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:F(Kl),"onUpdate:modelValue":r[1]||(r[1]=i=>et(Kl)?Kl.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:Qr(()=>[(q(!0),re(Ge,null,Ft(F(Kl),i=>(q(),re("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},se(n.$t(i)),1))),128))]),_:1},8,["modelValue"]),ye(F(qI),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[2]||(r[2]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:Qr(()=>[(q(!0),re(Ge,null,Ft(t.value,i=>(q(),re("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},se(n.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),Vhe=Ze({__name:"ConnectionsCharts",setup(e){const{t}=ia(),n=Ie(()=>[{name:t("connections"),data:kg.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name +
+ ${a.seriesName} + (${ta(a.data.name).format("HH:mm:ss")}): ${a.data.value} + `}).join(` +`);return(o,a)=>(q(),Et(eT,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),Hhe={class:"relative rounded-lg bg-base-200/40 p-4 text-sm"},Uhe={class:"flex flex-col gap-2"},zhe=Ze({__name:"ConnectionStatus",setup(e){const t=Ae(""),n=Ae(""),r=Ae(""),i=Ae(""),o=async()=>{bX().then(a=>{t.value=a.toFixed(0)}),wX().then(a=>{n.value=a.toFixed(0)}),_X().then(a=>{r.value=a.toFixed(0)}),yX().then(a=>{i.value=a.toFixed(0)})};return ua(()=>{o()}),(a,s)=>(q(),re("div",Hhe,[D("div",Uhe,[D("div",null,[s[0]||(s[0]=D("span",{class:"inline-block w-28"},"Baidu ",-1)),s[1]||(s[1]=Qe(" : ")),D("span",{class:je(F(wh)(Number(t.value)))},se(t.value)+"ms ",3)]),D("div",null,[s[2]||(s[2]=D("span",{class:"inline-block w-28"},"NeteaseMusic ",-1)),s[3]||(s[3]=Qe(" : ")),D("span",{class:je(F(wh)(Number(n.value)))},se(n.value)+"ms ",3)]),D("div",null,[s[4]||(s[4]=D("span",{class:"inline-block w-28"},"Github ",-1)),s[5]||(s[5]=Qe(" : ")),D("span",{class:je(F(wh)(Number(r.value)))},se(r.value)+"ms ",3)]),D("div",null,[s[6]||(s[6]=D("span",{class:"inline-block w-28"},"YouTube ",-1)),s[7]||(s[7]=Qe(" : ")),D("span",{class:je(F(wh)(Number(i.value)))},se(i.value)+"ms ",3)])]),D("div",null,[D("button",{class:"btn btn-circle btn-sm absolute right-2 top-2",onClick:o},[ye(F(dx),{class:"h-4 w-4"})])])]))}}),Ghe={class:"flex flex-col gap-2 rounded-lg bg-base-200/40 p-4"},Whe=Ze({__name:"IPCheck",setup(e){const t=Ae(),n=Ae();return ua(()=>{gX().then(r=>r.json()).then(r=>{t.value=`${r.data.ip} | ${r.data.operator} (${r.data.country})`}),mX().then(r=>r.json()).then(r=>{console.log(r),n.value=`${r.ip} | ${r.asn_organization} (${r.country})`})}),(r,i)=>(q(),re("div",Ghe,[D("div",null,se(r.$t("ipCheck")),1),D("div",null,se(r.$t("ipForMainlandChina"))+": "+se(t.value),1),D("div",null,se(r.$t("ipForGlobal"))+": "+se(n.value),1)]))}}),Yhe=Ze({__name:"MemoryCharts",setup(e){const{t}=ia(),n=Ie(()=>[{name:t("memoryUsage"),data:mh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>tk(o[0],{binary:!0,suffix:""});return(o,a)=>(q(),Et(eT,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),jhe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},qhe={class:"card card-compact"},Xhe={class:"card-title px-4 pt-4 text-primary"},Khe={class:"indicator"},Zhe={key:0,class:"indicator-item flex"},Jhe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},Qhe={class:"card-body gap-4"},ede={class:"flex items-center gap-2"},tde=["value"],nde={class:"flex items-center gap-2"},rde=["value"],ide={key:0,class:"flex items-center gap-2"},ode={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},ade={class:"card card-compact"},sde={class:"card-title px-4 pt-4"},lde={class:"card-body gap-4"},ude={class:"grid grid-cols-1 gap-2 lg:grid-cols-2 2xl:grid-cols-3"},cde={class:"card card-compact"},fde={class:"card-title px-4 pt-4"},hde={class:"card-body"},dde={class:"flex items-center gap-2"},pde={key:0,class:"flex items-center gap-2 max-sm:hidden"},vde={class:"card card-compact"},gde={class:"card-title px-4 pt-4"},mde={class:"card-body"},yde={class:"flex items-center gap-2"},_de=Ze({__name:"SettingsPage",setup(e){const{isUIUpdateAvailable:t}=D3(),n=Ae(!1),r=async()=>{if(!n.value){n.value=!0;try{await Pk(),n.value=!1,window.location.reload()}catch{n.value=!1}}},i=["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(o,a)=>(q(),re("div",jhe,[D("div",qhe,[D("div",Xhe,[D("div",Khe,[F(t)?(q(),re("span",Zhe,a[8]||(a[8]=[D("span",{class:"badge badge-xs absolute animate-ping bg-secondary"},null,-1),D("span",{class:"badge badge-xs bg-secondary"},null,-1)]))):yt("",!0),D("a",Jhe,"zashboard v"+se(F(Ak)),1)])]),D("div",Qhe,[D("div",ede,[Qe(se(o.$t("theme"))+": ",1),Tt(D("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":a[0]||(a[0]=s=>et(Pc)?Pc.value=s:null)},[(q(),re(Ge,null,Ft(i,s=>D("option",{key:s,value:s},se(s),9,tde)),64))],512),[[Ai,F(Pc)]])]),ye(z3),D("div",nde,[Qe(se(o.$t("fonts"))+": ",1),Tt(D("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":a[1]||(a[1]=s=>et(Vh)?Vh.value=s:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Ls)),s=>(q(),re("option",{key:s,value:s},se(s),9,rde))),128))],512),[[Ai,F(Vh)]])]),F(qa)?yt("",!0):(q(),re("div",ide,[Qe(se(o.$t("autoUpgrade"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[2]||(a[2]=s=>et(Ag)?Ag.value=s:null)},null,512),[[mo,F(Ag)]])])),D("div",ode,[F(qa)?yt("",!0):(q(),re(Ge,{key:0},[D("button",{class:je(F(nn)("btn btn-primary btn-sm",n.value?"animate-pulse":"")),onClick:r},se(o.$t("upgradeUI")),3),a[9]||(a[9]=D("div",{class:"sm:hidden"},null,-1))],64)),D("button",{class:"btn btn-sm",onClick:a[3]||(a[3]=(...s)=>F(hM)&&F(hM)(...s))},se(o.$t("exportSettings")),1),D("button",{class:"btn btn-sm",onClick:a[4]||(a[4]=(...s)=>F(Cm)&&F(Cm)(...s))},se(o.$t("importSettings")),1)])])]),D("div",ade,[D("div",sde,se(o.$t("overview")),1),D("div",lde,[D("div",ude,[ye(sN,{class:"bg-base-200/40 p-4"}),ye(Whe),ye(zhe),ye(P3),ye(Yhe),ye(Vhe)])])]),ye(pfe),ye(Bfe),D("div",cde,[D("div",fde,se(o.$t("connections")),1),D("div",hde,[D("div",dde,[Qe(se(o.$t("connectionStyle"))+": "+se(o.$t("table"))+" ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[5]||(a[5]=s=>et(tu)?tu.value=s:null)},null,512),[[mo,F(tu)]]),Qe(" "+se(o.$t("card")),1)]),F(tu)?(q(),re("div",pde,[Qe(se(o.$t("compactCard"))+": ",1),Tt(D("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[6]||(a[6]=s=>et(Lg)?Lg.value=s:null)},null,512),[[mo,F(Lg)]])])):(q(),Et(Bhe,{key:1})),a[10]||(a[10]=D("div",{class:"divider"},null,-1)),ye(Gfe)])]),D("div",vde,[D("div",gde,se(o.$t("logs")),1),D("div",mde,[D("div",yde,[Qe(se(o.$t("logRetentionLimit"))+": ",1),Tt(D("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":a[7]||(a[7]=s=>et(Og)?Og.value=s:null)},null,512),[[Fr,F(Og)]])])])])]))}}),wde={class:"absolute right-4 top-4"},bde={class:"absolute bottom-4 right-4"},Sde={class:"card w-64 gap-2 px-6 py-2 sm:gap-4"},xde={class:"text-2xl font-semibold"},Cde={class:"form-control"},Tde={class:"label"},Ede={class:"label-text"},Ade={class:"form-control"},Mde={class:"label"},Rde={class:"label-text"},Pde={class:"form-control"},Dde={class:"label"},Ide={class:"label-text"},Lde={class:"form-control"},Ode={class:"label flex items-center justify-start gap-1"},kde={class:"label-text"},Nde=["data-tip"],Fde={class:"form-control"},$de={class:"label"},Bde={class:"label-text"},Vde={class:"flex flex-col gap-2"},Hde=["onClick"],Ude=["onClick"],zde=Ze({__name:"SetupPage",setup(e){var a,s;const t=Eo({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{showTip:n}=D0(),r=l=>{Sr.value=l,Po.push({name:Vt.proxies})},i=async(l,u=!1)=>{const{protocol:c,host:h,port:p,password:d}=l;if(!c||!h||!p){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(h)&&!u&&n("protocolTips");try{const g=await fetch(`${_u(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(g.status!==200){u||alert(g.statusText);return}const{version:_,message:m}=await g.json();if(!_){u||alert(m);return}oj(l),Po.push({name:Vt.proxies})}catch(g){u||alert(g)}},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)=>(q(),re("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:u[7]||(u[7]=G6(c=>i(t),["enter"]))},[D("div",wde,[D("button",{class:"btn btn-sm",onClick:u[0]||(u[0]=(...c)=>F(Cm)&&F(Cm)(...c))},se(l.$t("importSettings")),1)]),D("div",bde,[ye(z3)]),D("div",Sde,[D("h1",xde,se(l.$t("setup")),1),D("div",Cde,[D("label",Tde,[D("span",Ede,se(l.$t("protocol")),1)]),Tt(D("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":u[1]||(u[1]=c=>t.protocol=c)},u[8]||(u[8]=[D("option",{value:"http"},"HTTP",-1),D("option",{value:"https"},"HTTPS",-1)]),512),[[Ai,t.protocol]])]),D("div",Ade,[D("label",Mde,[D("span",Rde,se(l.$t("host")),1)]),Tt(D("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),[[Fr,t.host]])]),D("div",Pde,[D("label",Dde,[D("span",Ide,se(l.$t("port")),1)]),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[3]||(u[3]=c=>t.port=c)},null,512),[[Fr,t.port]])]),D("div",Lde,[D("label",Ode,[D("span",kde,se(l.$t("secondaryPath")),1),D("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[ye(F(dO),{class:"h-4 w-4"})],8,Nde)]),Tt(D("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.secondaryPath=c)},null,512),[[Fr,t.secondaryPath]])]),D("div",Fde,[D("label",$de,[D("span",Bde,se(l.$t("password")),1)]),Tt(D("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[5]||(u[5]=c=>t.password=c)},null,512),[[Fr,t.password]])]),D("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>i(t))},se(l.$t("submit")),1),D("div",Vde,[(q(!0),re(Ge,null,Ft(F(oa),c=>(q(),re("div",{key:c.uuid,class:"flex items-center gap-2"},[D("button",{class:"btn btn-sm flex-1",onClick:h=>r(c.uuid)},se(F(_u)(c)),9,Hde),D("button",{class:"btn btn-circle btn-sm",onClick:()=>F(XO)(c.uuid)},[ye(F(uO),{class:"h-4 w-4"})],8,Ude)]))),128))])])],32))}}),Po=u9({history:BW("./"),routes:[{path:"/",redirect:Vt.proxies,component:Nue,children:[{path:"proxies",name:Vt.proxies,component:Uce},{path:"connections",name:Vt.connections,component:SZ},{path:"logs",name:Vt.logs,component:Uue},{path:"rules",name:Vt.rules,component:efe},{path:"settings",name:Vt.settings,component:_de}]},{path:"/setup",name:Vt.setup,component:zde},{path:"/:catchAll(.*)",redirect:Vt.proxies}]}),XI=HY("zashboard"),c$=e=>{typeof e=="string"&&Xs.value?XI.value=`zashboard | ${Px.global.t(e)}`:XI.value="zashboard"};Po.beforeEach(e=>{!Xs.value&&e.name!==Vt.setup&&Po.push({name:Vt.setup})});Po.afterEach(e=>{c$(e.name)});Lt(Ba,()=>{c$(Po.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 iT=j6(jY);ta.extend(C8);iT.use(Po);iT.use(Px);iT.mount("#app"); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-DTQ-SwsF.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-DTQ-SwsF.js deleted file mode 100644 index 27affd33a..000000000 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-DTQ-SwsF.js +++ /dev/null @@ -1,151 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))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 cv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mg={exports:{}},d8=mg.exports,CA;function YS(){return CA||(CA=1,function(e,t){(function(n,r){e.exports=r()})(d8,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",u="day",c="week",h="month",p="quarter",d="year",g="date",_="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,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(W){var X=["th","st","nd","rd"],j=W%100;return"["+W+(X[(j-20)%10]||X[j]||X[0])+"]"}},S=function(W,X,j){var oe=String(W);return!oe||oe.length>=X?W:""+Array(X+1-oe.length).join(j)+W},x={s:S,z:function(W){var X=-W.utcOffset(),j=Math.abs(X),oe=Math.floor(j/60),Q=j%60;return(X<=0?"+":"-")+S(oe,2,"0")+":"+S(Q,2,"0")},m:function W(X,j){if(X.date()1)return W(_e[0])}else{var be=X.name;T[be]=X,Q=be}return!oe&&Q&&(E=Q),Q||!oe&&E},k=function(W,X){if(D(W))return W.clone();var j=typeof X=="object"?X:{};return j.date=W,j.args=arguments,new H(j)},N=x;N.l=I,N.i=D,N.w=function(W,X){return k(W,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var H=function(){function W(j){this.$L=I(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[M]=!0}var X=W.prototype;return X.parse=function(j){this.$d=function(oe){var Q=oe.date,fe=oe.utc;if(Q===null)return new Date(NaN);if(N.u(Q))return new Date;if(Q instanceof Date)return new Date(Q);if(typeof Q=="string"&&!/Z$/i.test(Q)){var _e=Q.match(m);if(_e){var be=_e[2]-1||0,Ne=(_e[7]||"0").substring(0,3);return fe?new Date(Date.UTC(_e[1],be,_e[3]||1,_e[4]||0,_e[5]||0,_e[6]||0,Ne)):new Date(_e[1],be,_e[3]||1,_e[4]||0,_e[5]||0,_e[6]||0,Ne)}}return new Date(Q)}(j),this.init()},X.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},X.$utils=function(){return N},X.isValid=function(){return this.$d.toString()!==_},X.isSame=function(j,oe){var Q=k(j);return this.startOf(oe)<=Q&&Q<=this.endOf(oe)},X.isAfter=function(j,oe){return k(j)=2&&y%10<=4&&(y%100<10||y%100>=20)?b[1]:b[2])}var h=function(g,_){return u.test(_)?o[g.month()]:a[g.month()]};h.s=a,h.f=o;var p=function(g,_){return u.test(_)?s[g.month()]:l[g.month()]};p.s=l,p.f=s;var d={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:h,monthsShort:p,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(g){return g},meridiem:function(g){return g<4?"ночи":g<12?"утра":g<17?"дня":"вечера"}};return i.default.locale(d,null,!0),d})}(yg)),yg.exports}g8();var _g={exports:{}},m8=_g.exports,EA;function y8(){return EA||(EA=1,function(e,t){(function(n,r){e.exports=r(YS())})(m8,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})}(_g)),_g.exports}y8();var wg={exports:{}},_8=wg.exports,AA;function w8(){return AA||(AA=1,function(e,t){(function(n,r){e.exports=r()})(_8,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,h,p){return o.fromToBase(u,c,h,p)}i.en.relativeTime=a,o.fromToBase=function(u,c,h,p,d){for(var g,_,m,y=h.$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,x=0;x0,T<=E.r||!E.r){T<=1&&x>0&&(E=b[x-1]);var M=y[E.l];d&&(T=d(""+T)),_=typeof M=="string"?M.replace("%d",T):M(T,c,E.l,m);break}}if(c)return _;var D=m?y.future:y.past;return typeof D=="function"?D(_):D.replace("%s",_)},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)}}})}(wg)),wg.exports}var b8=w8();const S8=h0(b8);/** -* @vue/shared v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function jS(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fn={},Cc=[],Zo=()=>{},x8=()=>!1,d0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qS=e=>e.startsWith("onUpdate:"),rr=Object.assign,XS=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},C8=Object.prototype.hasOwnProperty,Kt=(e,t)=>C8.call(e,t),tt=Array.isArray,Tc=e=>Xd(e)==="[object Map]",of=e=>Xd(e)==="[object Set]",MA=e=>Xd(e)==="[object Date]",pt=e=>typeof e=="function",Hn=e=>typeof e=="string",To=e=>typeof e=="symbol",dn=e=>e!==null&&typeof e=="object",jI=e=>(dn(e)||pt(e))&&pt(e.then)&&pt(e.catch),qI=Object.prototype.toString,Xd=e=>qI.call(e),T8=e=>Xd(e).slice(8,-1),XI=e=>Xd(e)==="[object Object]",KS=e=>Hn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ph=jS(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),p0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},E8=/-(\w)/g,eo=p0(e=>e.replace(E8,(t,n)=>n?n.toUpperCase():"")),A8=/\B([A-Z])/g,tl=p0(e=>e.replace(A8,"-$1").toLowerCase()),v0=p0(e=>e.charAt(0).toUpperCase()+e.slice(1)),L_=p0(e=>e?`on${v0(e)}`:""),Hs=(e,t)=>!Object.is(e,t),bg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},fm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let RA;const g0=()=>RA||(RA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yo(e){if(tt(e)){const t={};for(let n=0;n{if(n){const r=n.split(R8);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ke(e){let t="";if(Hn(e))t=e;else if(tt(e))for(let n=0;nKd(n,t))}const JI=e=>!!(e&&e.__v_isRef===!0),ue=e=>Hn(e)?e:e==null?"":tt(e)||dn(e)&&(e.toString===qI||!pt(e.toString))?JI(e)?ue(e.value):JSON.stringify(e,QI,2):String(e),QI=(e,t)=>JI(t)?QI(e,t.value):Tc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],o)=>(n[O_(r,o)+" =>"]=i,n),{})}:of(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>O_(n))}:To(t)?O_(t):dn(t)&&!tt(t)&&!XI(t)?String(t):t,O_=(e,t="")=>{var n;return To(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let Ir;class eL{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(Lh){let t=Lh;for(Lh=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ih;){let t=Ih;for(Ih=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 aL(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function sL(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),ex(r),N8(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function jw(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(lL(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function lL(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vd))return;e.globalVersion=vd;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!jw(e)){e.flags&=-3;return}const n=gn,r=xo;gn=e,xo=!0;try{aL(e);const i=e.fn(e._value);(t.version===0||Hs(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{gn=n,xo=r,sL(e),e.flags&=-3}}function ex(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)ex(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function N8(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let xo=!0;const uL=[];function nl(){uL.push(xo),xo=!1}function rl(){const e=uL.pop();xo=e===void 0?!0:e}function DA(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gn;gn=void 0;try{t()}finally{gn=n}}}let vd=0;class F8{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 m0{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(!gn||!xo||gn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gn)n=this.activeLink=new F8(gn,this),gn.deps?(n.prevDep=gn.depsTail,gn.depsTail.nextDep=n,gn.depsTail=n):gn.deps=gn.depsTail=n,cL(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=gn.depsTail,n.nextDep=void 0,gn.depsTail.nextDep=n,gn.depsTail=n,gn.deps===n&&(gn.deps=r)}return n}trigger(t){this.version++,vd++,this.notify(t)}notify(t){JS();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{QS()}}}function cL(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)cL(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const hm=new WeakMap,su=Symbol(""),qw=Symbol(""),gd=Symbol("");function _r(e,t,n){if(xo&&gn){let r=hm.get(e);r||hm.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new m0),i.map=r,i.key=n),i.track()}}function La(e,t,n,r,i,o){const a=hm.get(e);if(!a){vd++;return}const s=l=>{l&&l.trigger()};if(JS(),t==="clear")a.forEach(s);else{const l=tt(e),u=l&&KS(n);if(l&&n==="length"){const c=Number(r);a.forEach((h,p)=>{(p==="length"||p===gd||!To(p)&&p>=c)&&s(h)})}else switch((n!==void 0||a.has(void 0))&&s(a.get(n)),u&&s(a.get(gd)),t){case"add":l?u&&s(a.get("length")):(s(a.get(su)),Tc(e)&&s(a.get(qw)));break;case"delete":l||(s(a.get(su)),Tc(e)&&s(a.get(qw)));break;case"set":Tc(e)&&s(a.get(su));break}}QS()}function $8(e,t){const n=hm.get(e);return n&&n.get(t)}function ju(e){const t=Wt(e);return t===e?t:(_r(t,"iterate",gd),Zi(e)?t:t.map(wr))}function y0(e){return _r(e=Wt(e),"iterate",gd),e}const B8={__proto__:null,[Symbol.iterator](){return N_(this,Symbol.iterator,wr)},concat(...e){return ju(this).concat(...e.map(t=>tt(t)?ju(t):t))},entries(){return N_(this,"entries",e=>(e[1]=wr(e[1]),e))},every(e,t){return Sa(this,"every",e,t,void 0,arguments)},filter(e,t){return Sa(this,"filter",e,t,n=>n.map(wr),arguments)},find(e,t){return Sa(this,"find",e,t,wr,arguments)},findIndex(e,t){return Sa(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Sa(this,"findLast",e,t,wr,arguments)},findLastIndex(e,t){return Sa(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Sa(this,"forEach",e,t,void 0,arguments)},includes(...e){return F_(this,"includes",e)},indexOf(...e){return F_(this,"indexOf",e)},join(e){return ju(this).join(e)},lastIndexOf(...e){return F_(this,"lastIndexOf",e)},map(e,t){return Sa(this,"map",e,t,void 0,arguments)},pop(){return kf(this,"pop")},push(...e){return kf(this,"push",e)},reduce(e,...t){return PA(this,"reduce",e,t)},reduceRight(e,...t){return PA(this,"reduceRight",e,t)},shift(){return kf(this,"shift")},some(e,t){return Sa(this,"some",e,t,void 0,arguments)},splice(...e){return kf(this,"splice",e)},toReversed(){return ju(this).toReversed()},toSorted(e){return ju(this).toSorted(e)},toSpliced(...e){return ju(this).toSpliced(...e)},unshift(...e){return kf(this,"unshift",e)},values(){return N_(this,"values",wr)}};function N_(e,t,n){const r=y0(e),i=r[t]();return r!==e&&!Zi(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=n(o.value)),o}),i}const V8=Array.prototype;function Sa(e,t,n,r,i,o){const a=y0(e),s=a!==e&&!Zi(e),l=a[t];if(l!==V8[t]){const h=l.apply(e,o);return s?wr(h):h}let u=n;a!==e&&(s?u=function(h,p){return n.call(this,wr(h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const c=l.call(a,u,r);return s&&i?i(c):c}function PA(e,t,n,r){const i=y0(e);let o=n;return i!==e&&(Zi(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,wr(s),l,e)}),i[t](o,...r)}function F_(e,t,n){const r=Wt(e);_r(r,"iterate",gd);const i=r[t](...n);return(i===-1||i===!1)&&rx(n[0])?(n[0]=Wt(n[0]),r[t](...n)):i}function kf(e,t,n=[]){nl(),JS();const r=Wt(e)[t].apply(e,n);return QS(),rl(),r}const H8=jS("__proto__,__v_isRef,__isVue"),fL=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(To));function U8(e){To(e)||(e=String(e));const t=Wt(this);return _r(t,"has",e),t.hasOwnProperty(e)}class hL{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?J8:gL:o?vL:pL).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=tt(t);if(!i){let l;if(a&&(l=B8[n]))return l;if(n==="hasOwnProperty")return U8}const s=Reflect.get(t,n,Je(t)?t:r);return(To(n)?fL.has(n):H8(n))||(i||_r(t,"get",n),o)?s:Je(s)?a&&KS(n)?s:s.value:dn(s)?i?_0(s):Eo(s):s}}class dL extends hL{constructor(t=!1){super(!1,t)}set(t,n,r,i){let o=t[n];if(!this._isShallow){const l=mu(o);if(!Zi(r)&&!mu(r)&&(o=Wt(o),r=Wt(r)),!tt(t)&&Je(o)&&!Je(r))return l?!1:(o.value=r,!0)}const a=tt(t)&&KS(n)?Number(n)e,fv=e=>Reflect.getPrototypeOf(e);function j8(e,t,n){return function(...r){const i=this.__v_raw,o=Wt(i),a=Tc(o),s=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=i[e](...r),c=n?Xw:t?Kw:wr;return!t&&_r(o,"iterate",l?qw:su),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:s?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function hv(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function q8(e,t){const n={get(i){const o=this.__v_raw,a=Wt(o),s=Wt(i);e||(Hs(i,s)&&_r(a,"get",i),_r(a,"get",s));const{has:l}=fv(a),u=t?Xw:e?Kw:wr;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&&_r(Wt(i),"iterate",su),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,a=Wt(o),s=Wt(i);return e||(Hs(i,s)&&_r(a,"has",i),_r(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=Wt(s),u=t?Xw:e?Kw:wr;return!e&&_r(l,"iterate",su),s.forEach((c,h)=>i.call(o,u(c),u(h),a))}};return rr(n,e?{add:hv("add"),set:hv("set"),delete:hv("delete"),clear:hv("clear")}:{add(i){!t&&!Zi(i)&&!mu(i)&&(i=Wt(i));const o=Wt(this);return fv(o).has.call(o,i)||(o.add(i),La(o,"add",i,i)),this},set(i,o){!t&&!Zi(o)&&!mu(o)&&(o=Wt(o));const a=Wt(this),{has:s,get:l}=fv(a);let u=s.call(a,i);u||(i=Wt(i),u=s.call(a,i));const c=l.call(a,i);return a.set(i,o),u?Hs(o,c)&&La(a,"set",i,o):La(a,"add",i,o),this},delete(i){const o=Wt(this),{has:a,get:s}=fv(o);let l=a.call(o,i);l||(i=Wt(i),l=a.call(o,i)),s&&s.call(o,i);const u=o.delete(i);return l&&La(o,"delete",i,void 0),u},clear(){const i=Wt(this),o=i.size!==0,a=i.clear();return o&&La(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=j8(i,e,t)}),n}function tx(e,t){const n=q8(e,t);return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Kt(n,i)&&i in r?n:r,i,o)}const X8={get:tx(!1,!1)},K8={get:tx(!1,!0)},Z8={get:tx(!0,!1)};const pL=new WeakMap,vL=new WeakMap,gL=new WeakMap,J8=new WeakMap;function Q8(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function eG(e){return e.__v_skip||!Object.isExtensible(e)?0:Q8(T8(e))}function Eo(e){return mu(e)?e:nx(e,!1,G8,X8,pL)}function mL(e){return nx(e,!1,Y8,K8,vL)}function _0(e){return nx(e,!0,W8,Z8,gL)}function nx(e,t,n,r,i){if(!dn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const a=eG(e);if(a===0)return e;const s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Ec(e){return mu(e)?Ec(e.__v_raw):!!(e&&e.__v_isReactive)}function mu(e){return!!(e&&e.__v_isReadonly)}function Zi(e){return!!(e&&e.__v_isShallow)}function rx(e){return e?!!e.__v_raw:!1}function Wt(e){const t=e&&e.__v_raw;return t?Wt(t):e}function tG(e){return!Kt(e,"__v_skip")&&Object.isExtensible(e)&&KI(e,"__v_skip",!0),e}const wr=e=>dn(e)?Eo(e):e,Kw=e=>dn(e)?_0(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function Me(e){return yL(e,!1)}function Zd(e){return yL(e,!0)}function yL(e,t){return Je(e)?e:new nG(e,t)}class nG{constructor(t,n){this.dep=new m0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Wt(t),this._value=n?t:wr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Zi(t)||mu(t);t=r?t:Wt(t),Hs(t,n)&&(this._rawValue=t,this._value=r?t:wr(t),this.dep.trigger())}}function IA(e){e.dep&&e.dep.trigger()}function F(e){return Je(e)?e.value:e}const rG={get:(e,t,n)=>t==="__v_raw"?e:F(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Je(i)&&!Je(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function _L(e){return Ec(e)?e:new Proxy(e,rG)}class iG{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new m0,{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 oG(e){return new iG(e)}function aG(e){const t=tt(e)?new Array(e.length):{};for(const n in e)t[n]=wL(e,n);return t}class sG{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 $8(Wt(this._object),this._key)}}class lG{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 uG(e,t,n){return Je(e)?e:pt(e)?new lG(e):dn(e)&&arguments.length>1?wL(e,t,n):Me(e)}function wL(e,t,n){const r=e[t];return Je(r)?r:new sG(e,t,n)}class cG{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new m0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return oL(this,!0),!0}get value(){const t=this.dep.track();return lL(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fG(e,t,n=!1){let r,i;return pt(e)?r=e:(r=e.get,i=e.set),new cG(r,i,n)}const dv={},dm=new WeakMap;let Wl;function hG(e,t=!1,n=Wl){if(n){let r=dm.get(n);r||dm.set(n,r=[]),r.push(e)}}function dG(e,t,n=fn){const{immediate:r,deep:i,once:o,scheduler:a,augmentJob:s,call:l}=n,u=x=>i?x:Zi(x)||i===!1||i===0?Oa(x,1):Oa(x);let c,h,p,d,g=!1,_=!1;if(Je(e)?(h=()=>e.value,g=Zi(e)):Ec(e)?(h=()=>u(e),g=!0):tt(e)?(_=!0,g=e.some(x=>Ec(x)||Zi(x)),h=()=>e.map(x=>{if(Je(x))return x.value;if(Ec(x))return u(x);if(pt(x))return l?l(x,2):x()})):pt(e)?t?h=l?()=>l(e,2):e:h=()=>{if(p){nl();try{p()}finally{rl()}}const x=Wl;Wl=c;try{return l?l(e,3,[d]):e(d)}finally{Wl=x}}:h=Zo,t&&i){const x=h,E=i===!0?1/0:i;h=()=>Oa(x(),E)}const m=tL(),y=()=>{c.stop(),m&&m.active&&XS(m.effects,c)};if(o&&t){const x=t;t=(...E)=>{x(...E),y()}}let b=_?new Array(e.length).fill(dv):dv;const S=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const E=c.run();if(i||g||(_?E.some((T,M)=>Hs(T,b[M])):Hs(E,b))){p&&p();const T=Wl;Wl=c;try{const M=[E,b===dv?void 0:_&&b[0]===dv?[]:b,d];l?l(t,3,M):t(...M),b=E}finally{Wl=T}}}else c.run()};return s&&s(S),c=new rL(h),c.scheduler=a?()=>a(S,!1):S,d=x=>hG(x,!1,c),p=c.onStop=()=>{const x=dm.get(c);if(x){if(l)l(x,4);else for(const E of x)E();dm.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 Oa(e,t=1/0,n){if(t<=0||!dn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Je(e))Oa(e.value,t,n);else if(tt(e))for(let r=0;r{Oa(r,t,n)});else if(XI(e)){for(const r in e)Oa(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Oa(e[r],t,n)}return e}/** -* @vue/runtime-core v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function Jd(e,t,n,r){try{return r?e(...r):e()}catch(i){w0(i,t,n)}}function na(e,t,n,r){if(pt(e)){const i=Jd(e,t,n,r);return i&&jI(i)&&i.catch(o=>{w0(o,t,n)}),i}if(tt(e)){const i=[];for(let o=0;o>>1,i=Or[r],o=md(i);o=md(n)?Or.push(e):Or.splice(vG(t),0,e),e.flags|=1,SL()}}function SL(){pm||(pm=bL.then(CL))}function gG(e){tt(e)?Ac.push(...e):As&&e.id===-1?As.splice(fc+1,0,e):e.flags&1||(Ac.push(e),e.flags|=1),SL()}function LA(e,t,n=Go+1){for(;nmd(n)-md(r));if(Ac.length=0,As){As.push(...t);return}for(As=t,fc=0;fce.id==null?e.flags&2?-1:1/0:e.id;function CL(e){try{for(Go=0;Go{r._d&&UA(-1);const o=vm(t);let a;try{a=e(...i)}finally{vm(o),r._d&&UA(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Tt(e,t){if(nr===null)return e;const n=x0(nr),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function ox(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ox(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function Qe(e,t){return pt(e)?rr({name:e.name},t,{setup:e}):e}function EL(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function gm(e,t,n,r,i=!1){if(tt(e)){e.forEach((g,_)=>gm(g,t&&(tt(t)?t[_]:t),n,r,i));return}if(Mc(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&gm(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?x0(r.component):r.el,a=i?null:o,{i:s,r:l}=e,u=t&&t.r,c=s.refs===fn?s.refs={}:s.refs,h=s.setupState,p=Wt(h),d=h===fn?()=>!1:g=>Kt(p,g);if(u!=null&&u!==l&&(Hn(u)?(c[u]=null,d(u)&&(h[u]=null)):Je(u)&&(u.value=null)),pt(l))Jd(l,s,12,[a,c]);else{const g=Hn(l),_=Je(l);if(g||_){const m=()=>{if(e.f){const y=g?d(l)?h[l]:c[l]:l.value;i?tt(y)&&XS(y,o):tt(y)?y.includes(o)||y.push(o):g?(c[l]=[o],d(l)&&(h[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else g?(c[l]=a,d(l)&&(h[l]=a)):_&&(l.value=a,e.k&&(c[e.k]=a))};a?(m.id=-1,gi(m,n)):m()}}}g0().requestIdleCallback;g0().cancelIdleCallback;const Mc=e=>!!e.type.__asyncLoader,AL=e=>e.type.__isKeepAlive;function _G(e,t){ML(e,"a",t)}function wG(e,t){ML(e,"da",t)}function ML(e,t,n=ur){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(b0(t,r,n),n){let i=n.parent;for(;i&&i.parent;)AL(i.parent.vnode)&&bG(r,t,n,i),i=i.parent}}function bG(e,t,n,r){const i=b0(t,e,r,!0);Qd(()=>{XS(r[t],i)},n)}function b0(e,t,n=ur,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{nl();const s=tp(n),l=na(t,n,e,a);return s(),rl(),l});return r?i.unshift(o):i.push(o),o}}const Za=e=>(t,n=ur)=>{(!wd||e==="sp")&&b0(e,(...r)=>t(...r),n)},SG=Za("bm"),il=Za("m"),xG=Za("bu"),CG=Za("u"),RL=Za("bum"),Qd=Za("um"),TG=Za("sp"),EG=Za("rtg"),AG=Za("rtc");function MG(e,t=ur){b0("ec",e,t)}const RG="components",DL=Symbol.for("v-ndc");function Wa(e){return Hn(e)?DG(RG,e,!1)||e:e||DL}function DG(e,t,n=!0,r=!1){const i=nr||ur;if(i){const o=i.type;{const s=g6(o,!1);if(s&&(s===t||s===eo(t)||s===v0(eo(t))))return o}const a=OA(i[e]||o[e],t)||OA(i.appContext[e],t);return!a&&r?o:a}}function OA(e,t){return e&&(e[t]||e[eo(t)]||e[v0(eo(t))])}function Ft(e,t,n,r){let i;const o=n,a=tt(e);if(a||Hn(e)){const s=a&&Ec(e);let l=!1;s&&(l=!Zi(e),e=y0(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l_d(t)?!(t.type===js||t.type===Ge&&!PL(t.children)):!0)?e:null}const Zw=e=>e?KL(e)?x0(e):Zw(e.parent):null,kh=rr(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=>Zw(e.parent),$root:e=>Zw(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ax(e),$forceUpdate:e=>e.f||(e.f=()=>{ix(e.update)}),$nextTick:e=>e.n||(e.n=Po.bind(e.proxy)),$watch:e=>ZG.bind(e)}),$_=(e,t)=>e!==fn&&!e.__isScriptSetup&&Kt(e,t),PG={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:a,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if($_(r,t))return a[t]=1,r[t];if(i!==fn&&Kt(i,t))return a[t]=2,i[t];if((u=e.propsOptions[0])&&Kt(u,t))return a[t]=3,o[t];if(n!==fn&&Kt(n,t))return a[t]=4,n[t];Jw&&(a[t]=0)}}const c=kh[t];let h,p;if(c)return t==="$attrs"&&_r(e.attrs,"get",""),c(e);if((h=s.__cssModules)&&(h=h[t]))return h;if(n!==fn&&Kt(n,t))return a[t]=4,n[t];if(p=l.config.globalProperties,Kt(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return $_(i,t)?(i[t]=n,!0):r!==fn&&Kt(r,t)?(r[t]=n,!0):Kt(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!==fn&&Kt(e,a)||$_(t,a)||(s=o[0])&&Kt(s,a)||Kt(r,a)||Kt(kh,a)||Kt(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Kt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function kA(e){return tt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Jw=!0;function IG(e){const t=ax(e),n=e.proxy,r=e.ctx;Jw=!1,t.beforeCreate&&NA(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:h,mounted:p,beforeUpdate:d,updated:g,activated:_,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:S,unmounted:x,render:E,renderTracked:T,renderTriggered:M,errorCaptured:D,serverPrefetch:I,expose:k,inheritAttrs:N,components:H,directives:te,filters:W}=t;if(u&&LG(u,r,null),a)for(const oe in a){const Q=a[oe];pt(Q)&&(r[oe]=Q.bind(n))}if(i){const oe=i.call(n,n);dn(oe)&&(e.data=Eo(oe))}if(Jw=!0,o)for(const oe in o){const Q=o[oe],fe=pt(Q)?Q.bind(n,n):pt(Q.get)?Q.get.bind(n,n):Zo,_e=!pt(Q)&&pt(Q.set)?Q.set.bind(n):Zo,be=Ie({get:fe,set:_e});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>be.value,set:Ne=>be.value=Ne})}if(s)for(const oe in s)IL(s[oe],r,n,oe);if(l){const oe=pt(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(Q=>{Sg(Q,oe[Q])})}c&&NA(c,e,"c");function j(oe,Q){tt(Q)?Q.forEach(fe=>oe(fe.bind(n))):Q&&oe(Q.bind(n))}if(j(SG,h),j(il,p),j(xG,d),j(CG,g),j(_G,_),j(wG,m),j(MG,D),j(AG,T),j(EG,M),j(RL,b),j(Qd,x),j(TG,I),tt(k))if(k.length){const oe=e.exposed||(e.exposed={});k.forEach(Q=>{Object.defineProperty(oe,Q,{get:()=>n[Q],set:fe=>n[Q]=fe})})}else e.exposed||(e.exposed={});E&&e.render===Zo&&(e.render=E),N!=null&&(e.inheritAttrs=N),H&&(e.components=H),te&&(e.directives=te),I&&EL(e)}function LG(e,t,n=Zo){tt(e)&&(e=Qw(e));for(const r in e){const i=e[r];let o;dn(i)?"default"in i?o=Ji(i.from||r,i.default,!0):o=Ji(i.from||r):o=Ji(i),Je(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function NA(e,t,n){na(tt(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function IL(e,t,n,r){let i=r.includes(".")?WL(n,r):()=>n[r];if(Hn(e)){const o=t[e];pt(o)&&Lt(i,o)}else if(pt(e))Lt(i,e.bind(n));else if(dn(e))if(tt(e))e.forEach(o=>IL(o,t,n,r));else{const o=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(o)&&Lt(i,o,e)}}function ax(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=>mm(l,u,a,!0)),mm(l,t,a)),dn(t)&&o.set(t,l),l}function mm(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&mm(e,o,n,!0),i&&i.forEach(a=>mm(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const s=OG[a]||n&&n[a];e[a]=s?s(e[a],t[a]):t[a]}return e}const OG={data:FA,props:$A,emits:$A,methods:vh,computed:vh,beforeCreate:Mr,created:Mr,beforeMount:Mr,mounted:Mr,beforeUpdate:Mr,updated:Mr,beforeDestroy:Mr,beforeUnmount:Mr,destroyed:Mr,unmounted:Mr,activated:Mr,deactivated:Mr,errorCaptured:Mr,serverPrefetch:Mr,components:vh,directives:vh,watch:NG,provide:FA,inject:kG};function FA(e,t){return t?e?function(){return rr(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function kG(e,t){return vh(Qw(e),Qw(t))}function Qw(e){if(tt(e)){const t={};for(let n=0;n1)return n&&pt(t)?t.call(r&&r.proxy):t}}const OL={},kL=()=>Object.create(OL),NL=e=>Object.getPrototypeOf(e)===OL;function BG(e,t,n,r=!1){const i={},o=kL();e.propsDefaults=Object.create(null),FL(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=r?i:mL(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function VG(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,s=Wt(i),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[p,d]=$L(h,t,!0);rr(a,p),d&&s.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return dn(e)&&r.set(e,Cc),Cc;if(tt(o))for(let c=0;ce[0]==="_"||e==="$stable",sx=e=>tt(e)?e.map(Wo):[Wo(e)],UG=(e,t,n)=>{if(t._n)return t;const r=Qr((...i)=>sx(t(...i)),n);return r._c=!1,r},VL=(e,t,n)=>{const r=e._ctx;for(const i in e){if(BL(i))continue;const o=e[i];if(pt(o))t[i]=UG(i,o,r);else if(o!=null){const a=sx(o);t[i]=()=>a}}},HL=(e,t)=>{const n=sx(t);e.slots.default=()=>n},UL=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},zG=(e,t,n)=>{const r=e.slots=kL();if(e.vnode.shapeFlag&32){const i=t._;i?(UL(r,t,n),n&&KI(r,"_",i,!0)):VL(t,r)}else t&&HL(e,t)},GG=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,a=fn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:UL(i,t,n):(o=!t.$stable,VL(t,i)),a=t}else t&&(HL(e,t),a={default:1});if(o)for(const s in i)!BL(s)&&a[s]==null&&delete i[s]},gi=i6;function WG(e){return YG(e)}function YG(e,t){const n=g0();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:d=Zo,insertStaticContent:g}=e,_=($,B,ne,me=null,ce=null,O=null,V=void 0,Z=null,ae=!!B.dynamicChildren)=>{if($===B)return;$&&!Nf($,B)&&(me=le($),Ne($,ce,O,!0),$=null),B.patchFlag===-2&&(ae=!1,B.dynamicChildren=null);const{type:pe,ref:Ce,shapeFlag:Y}=B;switch(pe){case ep:m($,B,ne,me);break;case js:y($,B,ne,me);break;case H_:$==null&&b(B,ne,me,V);break;case Ge:H($,B,ne,me,ce,O,V,Z,ae);break;default:Y&1?E($,B,ne,me,ce,O,V,Z,ae):Y&6?te($,B,ne,me,ce,O,V,Z,ae):(Y&64||Y&128)&&pe.process($,B,ne,me,ce,O,V,Z,ae,xe)}Ce!=null&&ce&&gm(Ce,$&&$.ref,O,B||$,!B)},m=($,B,ne,me)=>{if($==null)r(B.el=s(B.children),ne,me);else{const ce=B.el=$.el;B.children!==$.children&&u(ce,B.children)}},y=($,B,ne,me)=>{$==null?r(B.el=l(B.children||""),ne,me):B.el=$.el},b=($,B,ne,me)=>{[$.el,$.anchor]=g($.children,B,ne,me,$.el,$.anchor)},S=({el:$,anchor:B},ne,me)=>{let ce;for(;$&&$!==B;)ce=p($),r($,ne,me),$=ce;r(B,ne,me)},x=({el:$,anchor:B})=>{let ne;for(;$&&$!==B;)ne=p($),i($),$=ne;i(B)},E=($,B,ne,me,ce,O,V,Z,ae)=>{B.type==="svg"?V="svg":B.type==="math"&&(V="mathml"),$==null?T(B,ne,me,ce,O,V,Z,ae):I($,B,ce,O,V,Z,ae)},T=($,B,ne,me,ce,O,V,Z)=>{let ae,pe;const{props:Ce,shapeFlag:Y,transition:ie,dirs:Re}=$;if(ae=$.el=a($.type,O,Ce&&Ce.is,Ce),Y&8?c(ae,$.children):Y&16&&D($.children,ae,null,me,ce,B_($,O),V,Z),Re&&_l($,null,me,"created"),M(ae,$,$.scopeId,V,me),Ce){for(const ft in Ce)ft!=="value"&&!Ph(ft)&&o(ae,ft,null,Ce[ft],O,me);"value"in Ce&&o(ae,"value",null,Ce.value,O),(pe=Ce.onVnodeBeforeMount)&&Fo(pe,me,$)}Re&&_l($,null,me,"beforeMount");const Be=jG(ce,ie);Be&&ie.beforeEnter(ae),r(ae,B,ne),((pe=Ce&&Ce.onVnodeMounted)||Be||Re)&&gi(()=>{pe&&Fo(pe,me,$),Be&&ie.enter(ae),Re&&_l($,null,me,"mounted")},ce)},M=($,B,ne,me,ce)=>{if(ne&&d($,ne),me)for(let O=0;O{for(let pe=ae;pe<$.length;pe++){const Ce=$[pe]=Z?Ms($[pe]):Wo($[pe]);_(null,Ce,B,ne,me,ce,O,V,Z)}},I=($,B,ne,me,ce,O,V)=>{const Z=B.el=$.el;let{patchFlag:ae,dynamicChildren:pe,dirs:Ce}=B;ae|=$.patchFlag&16;const Y=$.props||fn,ie=B.props||fn;let Re;if(ne&&wl(ne,!1),(Re=ie.onVnodeBeforeUpdate)&&Fo(Re,ne,B,$),Ce&&_l(B,$,ne,"beforeUpdate"),ne&&wl(ne,!0),(Y.innerHTML&&ie.innerHTML==null||Y.textContent&&ie.textContent==null)&&c(Z,""),pe?k($.dynamicChildren,pe,Z,ne,me,B_(B,ce),O):V||Q($,B,Z,null,ne,me,B_(B,ce),O,!1),ae>0){if(ae&16)N(Z,Y,ie,ne,ce);else if(ae&2&&Y.class!==ie.class&&o(Z,"class",null,ie.class,ce),ae&4&&o(Z,"style",Y.style,ie.style,ce),ae&8){const Be=B.dynamicProps;for(let ft=0;ft{Re&&Fo(Re,ne,B,$),Ce&&_l(B,$,ne,"updated")},me)},k=($,B,ne,me,ce,O,V)=>{for(let Z=0;Z{if(B!==ne){if(B!==fn)for(const O in B)!Ph(O)&&!(O in ne)&&o($,O,B[O],null,ce,me);for(const O in ne){if(Ph(O))continue;const V=ne[O],Z=B[O];V!==Z&&O!=="value"&&o($,O,Z,V,ce,me)}"value"in ne&&o($,"value",B.value,ne.value,ce)}},H=($,B,ne,me,ce,O,V,Z,ae)=>{const pe=B.el=$?$.el:s(""),Ce=B.anchor=$?$.anchor:s("");let{patchFlag:Y,dynamicChildren:ie,slotScopeIds:Re}=B;Re&&(Z=Z?Z.concat(Re):Re),$==null?(r(pe,ne,me),r(Ce,ne,me),D(B.children||[],ne,Ce,ce,O,V,Z,ae)):Y>0&&Y&64&&ie&&$.dynamicChildren?(k($.dynamicChildren,ie,ne,ce,O,V,Z),(B.key!=null||ce&&B===ce.subTree)&&zL($,B,!0)):Q($,B,ne,Ce,ce,O,V,Z,ae)},te=($,B,ne,me,ce,O,V,Z,ae)=>{B.slotScopeIds=Z,$==null?B.shapeFlag&512?ce.ctx.activate(B,ne,me,V,ae):W(B,ne,me,ce,O,V,ae):X($,B,ae)},W=($,B,ne,me,ce,O,V)=>{const Z=$.component=f6($,me,ce);if(AL($)&&(Z.ctx.renderer=xe),h6(Z,!1,V),Z.asyncDep){if(ce&&ce.registerDep(Z,j,V),!$.el){const ae=Z.subTree=ye(js);y(null,ae,B,ne)}}else j(Z,$,B,ne,ce,O,V)},X=($,B,ne)=>{const me=B.component=$.component;if(n6($,B,ne))if(me.asyncDep&&!me.asyncResolved){oe(me,B,ne);return}else me.next=B,me.update();else B.el=$.el,me.vnode=B},j=($,B,ne,me,ce,O,V)=>{const Z=()=>{if($.isMounted){let{next:Y,bu:ie,u:Re,parent:Be,vnode:ft}=$;{const Rn=GL($);if(Rn){Y&&(Y.el=ft.el,oe($,Y,V)),Rn.asyncDep.then(()=>{$.isUnmounted||Z()});return}}let wt=Y,on;wl($,!1),Y?(Y.el=ft.el,oe($,Y,V)):Y=ft,ie&&bg(ie),(on=Y.props&&Y.props.onVnodeBeforeUpdate)&&Fo(on,Be,Y,ft),wl($,!0);const yn=V_($),kn=$.subTree;$.subTree=yn,_(kn,yn,h(kn.el),le(kn),$,ce,O),Y.el=yn.el,wt===null&&r6($,yn.el),Re&&gi(Re,ce),(on=Y.props&&Y.props.onVnodeUpdated)&&gi(()=>Fo(on,Be,Y,ft),ce)}else{let Y;const{el:ie,props:Re}=B,{bm:Be,m:ft,parent:wt,root:on,type:yn}=$,kn=Mc(B);if(wl($,!1),Be&&bg(Be),!kn&&(Y=Re&&Re.onVnodeBeforeMount)&&Fo(Y,wt,B),wl($,!0),ie&&Pe){const Rn=()=>{$.subTree=V_($),Pe(ie,$.subTree,$,ce,null)};kn&&yn.__asyncHydrate?yn.__asyncHydrate(ie,$,Rn):Rn()}else{on.ce&&on.ce._injectChildStyle(yn);const Rn=$.subTree=V_($);_(null,Rn,ne,me,$,ce,O),B.el=Rn.el}if(ft&&gi(ft,ce),!kn&&(Y=Re&&Re.onVnodeMounted)){const Rn=B;gi(()=>Fo(Y,wt,Rn),ce)}(B.shapeFlag&256||wt&&Mc(wt.vnode)&&wt.vnode.shapeFlag&256)&&$.a&&gi($.a,ce),$.isMounted=!0,B=ne=me=null}};$.scope.on();const ae=$.effect=new rL(Z);$.scope.off();const pe=$.update=ae.run.bind(ae),Ce=$.job=ae.runIfDirty.bind(ae);Ce.i=$,Ce.id=$.uid,ae.scheduler=()=>ix(Ce),wl($,!0),pe()},oe=($,B,ne)=>{B.component=$;const me=$.vnode.props;$.vnode=B,$.next=null,VG($,B.props,me,ne),GG($,B.children,ne),nl(),LA($),rl()},Q=($,B,ne,me,ce,O,V,Z,ae=!1)=>{const pe=$&&$.children,Ce=$?$.shapeFlag:0,Y=B.children,{patchFlag:ie,shapeFlag:Re}=B;if(ie>0){if(ie&128){_e(pe,Y,ne,me,ce,O,V,Z,ae);return}else if(ie&256){fe(pe,Y,ne,me,ce,O,V,Z,ae);return}}Re&8?(Ce&16&&Ye(pe,ce,O),Y!==pe&&c(ne,Y)):Ce&16?Re&16?_e(pe,Y,ne,me,ce,O,V,Z,ae):Ye(pe,ce,O,!0):(Ce&8&&c(ne,""),Re&16&&D(Y,ne,me,ce,O,V,Z,ae))},fe=($,B,ne,me,ce,O,V,Z,ae)=>{$=$||Cc,B=B||Cc;const pe=$.length,Ce=B.length,Y=Math.min(pe,Ce);let ie;for(ie=0;ieCe?Ye($,ce,O,!0,!1,Y):D(B,ne,me,ce,O,V,Z,ae,Y)},_e=($,B,ne,me,ce,O,V,Z,ae)=>{let pe=0;const Ce=B.length;let Y=$.length-1,ie=Ce-1;for(;pe<=Y&&pe<=ie;){const Re=$[pe],Be=B[pe]=ae?Ms(B[pe]):Wo(B[pe]);if(Nf(Re,Be))_(Re,Be,ne,null,ce,O,V,Z,ae);else break;pe++}for(;pe<=Y&&pe<=ie;){const Re=$[Y],Be=B[ie]=ae?Ms(B[ie]):Wo(B[ie]);if(Nf(Re,Be))_(Re,Be,ne,null,ce,O,V,Z,ae);else break;Y--,ie--}if(pe>Y){if(pe<=ie){const Re=ie+1,Be=Reie)for(;pe<=Y;)Ne($[pe],ce,O,!0),pe++;else{const Re=pe,Be=pe,ft=new Map;for(pe=Be;pe<=ie;pe++){const Nn=B[pe]=ae?Ms(B[pe]):Wo(B[pe]);Nn.key!=null&&ft.set(Nn.key,pe)}let wt,on=0;const yn=ie-Be+1;let kn=!1,Rn=0;const Yn=new Array(yn);for(pe=0;pe=yn){Ne(Nn,ce,O,!0);continue}let Zn;if(Nn.key!=null)Zn=ft.get(Nn.key);else for(wt=Be;wt<=ie;wt++)if(Yn[wt-Be]===0&&Nf(Nn,B[wt])){Zn=wt;break}Zn===void 0?Ne(Nn,ce,O,!0):(Yn[Zn-Be]=pe+1,Zn>=Rn?Rn=Zn:kn=!0,_(Nn,B[Zn],ne,null,ce,O,V,Z,ae),on++)}const si=kn?qG(Yn):Cc;for(wt=si.length-1,pe=yn-1;pe>=0;pe--){const Nn=Be+pe,Zn=B[Nn],Mu=Nn+1{const{el:O,type:V,transition:Z,children:ae,shapeFlag:pe}=$;if(pe&6){be($.component.subTree,B,ne,me);return}if(pe&128){$.suspense.move(B,ne,me);return}if(pe&64){V.move($,B,ne,xe);return}if(V===Ge){r(O,B,ne);for(let Y=0;YZ.enter(O),ce);else{const{leave:Y,delayLeave:ie,afterLeave:Re}=Z,Be=()=>r(O,B,ne),ft=()=>{Y(O,()=>{Be(),Re&&Re()})};ie?ie(O,Be,ft):ft()}else r(O,B,ne)},Ne=($,B,ne,me=!1,ce=!1)=>{const{type:O,props:V,ref:Z,children:ae,dynamicChildren:pe,shapeFlag:Ce,patchFlag:Y,dirs:ie,cacheIndex:Re}=$;if(Y===-2&&(ce=!1),Z!=null&&gm(Z,null,ne,$,!0),Re!=null&&(B.renderCache[Re]=void 0),Ce&256){B.ctx.deactivate($);return}const Be=Ce&1&&ie,ft=!Mc($);let wt;if(ft&&(wt=V&&V.onVnodeBeforeUnmount)&&Fo(wt,B,$),Ce&6)He($.component,ne,me);else{if(Ce&128){$.suspense.unmount(ne,me);return}Be&&_l($,null,B,"beforeUnmount"),Ce&64?$.type.remove($,B,ne,xe,me):pe&&!pe.hasOnce&&(O!==Ge||Y>0&&Y&64)?Ye(pe,B,ne,!1,!0):(O===Ge&&Y&384||!ce&&Ce&16)&&Ye(ae,B,ne),me&&ke($)}(ft&&(wt=V&&V.onVnodeUnmounted)||Be)&&gi(()=>{wt&&Fo(wt,B,$),Be&&_l($,null,B,"unmounted")},ne)},ke=$=>{const{type:B,el:ne,anchor:me,transition:ce}=$;if(B===Ge){je(ne,me);return}if(B===H_){x($);return}const O=()=>{i(ne),ce&&!ce.persisted&&ce.afterLeave&&ce.afterLeave()};if($.shapeFlag&1&&ce&&!ce.persisted){const{leave:V,delayLeave:Z}=ce,ae=()=>V(ne,O);Z?Z($.el,O,ae):ae()}else O()},je=($,B)=>{let ne;for(;$!==B;)ne=p($),i($),$=ne;i(B)},He=($,B,ne)=>{const{bum:me,scope:ce,job:O,subTree:V,um:Z,m:ae,a:pe}=$;VA(ae),VA(pe),me&&bg(me),ce.stop(),O&&(O.flags|=8,Ne(V,$,B,ne)),Z&&gi(Z,B),gi(()=>{$.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Ye=($,B,ne,me=!1,ce=!1,O=0)=>{for(let V=O;V<$.length;V++)Ne($[V],B,ne,me,ce)},le=$=>{if($.shapeFlag&6)return le($.component.subTree);if($.shapeFlag&128)return $.suspense.next();const B=p($.anchor||$.el),ne=B&&B[mG];return ne?p(ne):B};let Te=!1;const we=($,B,ne)=>{$==null?B._vnode&&Ne(B._vnode,null,null,!0):_(B._vnode||null,$,B,null,null,null,ne),B._vnode=$,Te||(Te=!0,LA(),xL(),Te=!1)},xe={p:_,um:Ne,m:be,r:ke,mt:W,mc:D,pc:Q,pbc:k,n:le,o:e};let Ee,Pe;return{render:we,hydrate:Ee,createApp:$G(we,Ee)}}function B_({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 wl({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function jG(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zL(e,t,n=!1){const r=e.children,i=t.children;if(tt(r)&&tt(i))for(let o=0;o>1,e[n[s]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function GL(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:GL(t)}function VA(e){if(e)for(let t=0;tJi(XG);function lx(e,t){return ux(e,null,t)}function Lt(e,t,n){return ux(e,t,n)}function ux(e,t,n=fn){const{immediate:r,deep:i,flush:o,once:a}=n,s=rr({},n),l=t&&r||!t&&o!=="post";let u;if(wd){if(o==="sync"){const d=KG();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=Zo,d.resume=Zo,d.pause=Zo,d}}const c=ur;s.call=(d,g,_)=>na(d,c,g,_);let h=!1;o==="post"?s.scheduler=d=>{gi(d,c&&c.suspense)}:o!=="sync"&&(h=!0,s.scheduler=(d,g)=>{g?d():ix(d)}),s.augmentJob=d=>{t&&(d.flags|=4),h&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const p=dG(e,t,s);return wd&&(u?u.push(p):l&&p()),p}function ZG(e,t,n){const r=this.proxy,i=Hn(e)?e.includes(".")?WL(r,e):()=>r[e]:e.bind(r,r);let o;pt(t)?o=t:(o=t.handler,n=t);const a=tp(this),s=ux(i,o.bind(r),n);return a(),s}function WL(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;it==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${eo(t)}Modifiers`]||e[`${tl(t)}Modifiers`];function QG(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fn;let i=n;const o=t.startsWith("update:"),a=o&&JG(r,t.slice(7));a&&(a.trim&&(i=n.map(c=>Hn(c)?c.trim():c)),a.number&&(i=n.map(fm)));let s,l=r[s=L_(t)]||r[s=L_(eo(t))];!l&&o&&(l=r[s=L_(tl(t))]),l&&na(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,na(u,e,6,i)}}function YL(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(!pt(e)){const l=u=>{const c=YL(u,t,!0);c&&(s=!0,rr(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(dn(e)&&r.set(e,null),null):(tt(o)?o.forEach(l=>a[l]=null):rr(a,o),dn(e)&&r.set(e,a),a)}function S0(e,t){return!e||!d0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Kt(e,t[0].toLowerCase()+t.slice(1))||Kt(e,tl(t))||Kt(e,t))}function V_(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:h,data:p,setupState:d,ctx:g,inheritAttrs:_}=e,m=vm(e);let y,b;try{if(n.shapeFlag&4){const x=i||r,E=x;y=Wo(u.call(E,x,c,h,d,p,g)),b=s}else{const x=t;y=Wo(x.length>1?x(h,{attrs:s,slots:a,emit:l}):x(h,null)),b=t.props?s:e6(s)}}catch(x){Nh.length=0,w0(x,e,1),y=ye(js)}let S=y;if(b&&_!==!1){const x=Object.keys(b),{shapeFlag:E}=S;x.length&&E&7&&(o&&x.some(qS)&&(b=t6(b,o)),S=zc(S,b,!1,!0))}return n.dirs&&(S=zc(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&ox(S,n.transition),y=S,vm(m),y}const e6=e=>{let t;for(const n in e)(n==="class"||n==="style"||d0(n))&&((t||(t={}))[n]=e[n]);return t},t6=(e,t)=>{const n={};for(const r in e)(!qS(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function n6(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?HA(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let h=0;he.__isSuspense;function i6(e,t){t&&t.pendingBranch?tt(e)?t.effects.push(...e):t.effects.push(e):gG(e)}const Ge=Symbol.for("v-fgt"),ep=Symbol.for("v-txt"),js=Symbol.for("v-cmt"),H_=Symbol.for("v-stc"),Nh=[];let Ci=null;function q(e=!1){Nh.push(Ci=e?null:[])}function o6(){Nh.pop(),Ci=Nh[Nh.length-1]||null}let yd=1;function UA(e,t=!1){yd+=e,e<0&&Ci&&t&&(Ci.hasOnce=!0)}function qL(e){return e.dynamicChildren=yd>0?Ci||Cc:null,o6(),yd>0&&Ci&&Ci.push(e),e}function re(e,t,n,r,i,o){return qL(L(e,t,n,r,i,o,!0))}function Et(e,t,n,r,i){return qL(ye(e,t,n,r,i,!0))}function _d(e){return e?e.__v_isVNode===!0:!1}function Nf(e,t){return e.type===t.type&&e.key===t.key}const XL=({key:e})=>e??null,xg=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Hn(e)||Je(e)||pt(e)?{i:nr,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,o=e===Ge?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&XL(t),ref:t&&xg(t),scopeId:TL,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:nr};return s?(cx(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Hn(n)?8:16),yd>0&&!a&&Ci&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ci.push(l),l}const ye=a6;function a6(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===DL)&&(e=js),_d(e)){const s=zc(e,t,!0);return n&&cx(s,n),yd>0&&!o&&Ci&&(s.shapeFlag&6?Ci[Ci.indexOf(e)]=s:Ci.push(s)),s.patchFlag=-2,s}if(m6(e)&&(e=e.__vccOpts),t){t=s6(t);let{class:s,style:l}=t;s&&!Hn(s)&&(t.class=Ke(s)),dn(l)&&(rx(l)&&!tt(l)&&(l=rr({},l)),t.style=yo(l))}const a=Hn(e)?1:jL(e)?128:yG(e)?64:dn(e)?4:pt(e)?2:0;return L(e,t,n,r,i,a,o,!0)}function s6(e){return e?rx(e)||NL(e)?rr({},e):e:null}function zc(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:a,children:s,transition:l}=e,u=t?l6(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&XL(u),ref:t&&t.ref?n&&o?tt(o)?o.concat(xg(t)):[o,xg(t)]:xg(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!==Ge?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&&zc(e.ssContent),ssFallback:e.ssFallback&&zc(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ox(c,l.clone(c)),c}function st(e=" ",t=0){return ye(ep,null,e,t)}function yt(e="",t=!1){return t?(q(),Et(js,null,e)):ye(js,null,e)}function Wo(e){return e==null||typeof e=="boolean"?ye(js):tt(e)?ye(Ge,null,e.slice()):_d(e)?Ms(e):ye(ep,null,String(e))}function Ms(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zc(e)}function cx(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(tt(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),cx(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!NL(t)?t._ctx=nr:i===3&&nr&&(nr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:nr},n=32):(t=String(t),r&64?(n=16,t=[st(t)]):n=8);e.children=t,e.shapeFlag|=n}function l6(...e){const t={};for(let n=0;nur||nr;let ym,tb;{const e=g0(),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)}};ym=t("__VUE_INSTANCE_SETTERS__",n=>ur=n),tb=t("__VUE_SSR_SETTERS__",n=>wd=n)}const tp=e=>{const t=ur;return ym(e),e.scope.on(),()=>{e.scope.off(),ym(t)}},zA=()=>{ur&&ur.scope.off(),ym(null)};function KL(e){return e.vnode.shapeFlag&4}let wd=!1;function h6(e,t=!1,n=!1){t&&tb(t);const{props:r,children:i}=e.vnode,o=KL(e);BG(e,r,o,t),zG(e,i,n);const a=o?d6(e,t):void 0;return t&&tb(!1),a}function d6(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,PG);const{setup:r}=n;if(r){nl();const i=e.setupContext=r.length>1?v6(e):null,o=tp(e),a=Jd(r,e,0,[e.props,i]),s=jI(a);if(rl(),o(),(s||e.sp)&&!Mc(e)&&EL(e),s){if(a.then(zA,zA),t)return a.then(l=>{GA(e,l,t)}).catch(l=>{w0(l,e,0)});e.asyncDep=a}else GA(e,a,t)}else ZL(e,t)}function GA(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dn(t)&&(e.setupState=_L(t)),ZL(e,n)}let WA;function ZL(e,t,n){const r=e.type;if(!e.render){if(!t&&WA&&!r.render){const i=r.template||ax(e).template;if(i){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=rr(rr({isCustomElement:o,delimiters:s},a),l);r.render=WA(i,u)}}e.render=r.render||Zo}{const i=tp(e);nl();try{IG(e)}finally{rl(),i()}}}const p6={get(e,t){return _r(e,"get",""),e[t]}};function v6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,p6),slots:e.slots,emit:e.emit,expose:t}}function x0(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_L(tG(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kh)return kh[n](e)},has(t,n){return n in t||n in kh}})):e.proxy}function g6(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function m6(e){return pt(e)&&"__vccOpts"in e}const Ie=(e,t)=>fG(e,t,wd);function jo(e,t,n){const r=arguments.length;return r===2?dn(t)&&!tt(t)?_d(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_d(n)&&(n=[n]),ye(e,t,n))}const y6="3.5.13";/** -* @vue/runtime-dom v3.5.13 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let nb;const YA=typeof window<"u"&&window.trustedTypes;if(YA)try{nb=YA.createPolicy("vue",{createHTML:e=>e})}catch{}const JL=nb?e=>nb.createHTML(e):e=>e,_6="http://www.w3.org/2000/svg",w6="http://www.w3.org/1998/Math/MathML",Ma=typeof document<"u"?document:null,jA=Ma&&Ma.createElement("template"),b6={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"?Ma.createElementNS(_6,e):t==="mathml"?Ma.createElementNS(w6,e):n?Ma.createElement(e,{is:n}):Ma.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Ma.createTextNode(e),createComment:e=>Ma.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ma.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{jA.innerHTML=JL(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const s=jA.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]}},S6=Symbol("_vtc");function x6(e,t,n){const r=e[S6];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const _m=Symbol("_vod"),QL=Symbol("_vsh"),C6={beforeMount(e,{value:t},{transition:n}){e[_m]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Ff(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),Ff(e,!0),r.enter(e)):r.leave(e,()=>{Ff(e,!1)}):Ff(e,t))},beforeUnmount(e,{value:t}){Ff(e,t)}};function Ff(e,t){e.style.display=t?e[_m]:"none",e[QL]=!t}const T6=Symbol(""),E6=/(^|;)\s*display\s*:/;function A6(e,t,n){const r=e.style,i=Hn(n);let o=!1;if(n&&!i){if(t)if(Hn(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&Cg(r,s,"")}else for(const a in t)n[a]==null&&Cg(r,a,"");for(const a in n)a==="display"&&(o=!0),Cg(r,a,n[a])}else if(i){if(t!==n){const a=r[T6];a&&(n+=";"+a),r.cssText=n,o=E6.test(n)}}else t&&e.removeAttribute("style");_m in e&&(e[_m]=o?r.display:"",e[QL]&&(r.display="none"))}const qA=/\s*!important$/;function Cg(e,t,n){if(tt(n))n.forEach(r=>Cg(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=M6(e,t);qA.test(n)?e.setProperty(tl(r),n.replace(qA,""),"important"):e[r]=n}}const XA=["Webkit","Moz","ms"],U_={};function M6(e,t){const n=U_[t];if(n)return n;let r=eo(t);if(r!=="filter"&&r in e)return U_[t]=r;r=v0(r);for(let i=0;iz_||(I6.then(()=>z_=0),z_=Date.now());function O6(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;na(k6(r,n.value),t,5,[r])};return n.value=e,n.attached=L6(),n}function k6(e,t){if(tt(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 t2=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,N6=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?x6(e,r,a):t==="style"?A6(e,n,r):d0(t)?qS(t)||D6(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):F6(e,t,r,a))?(JA(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ZA(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Hn(r))?JA(e,eo(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ZA(e,t,r,a))};function F6(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&t2(t)&&pt(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 t2(t)&&Hn(n)?!1:t in e}const Gc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return tt(t)?n=>bg(t,n):t};function $6(e){e.target.composing=!0}function n2(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ha=Symbol("_assign"),Fr={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ha]=Gc(i);const o=r||i.props&&i.props.type==="number";Ps(e,t?"change":"input",a=>{if(a.target.composing)return;let s=e.value;n&&(s=s.trim()),o&&(s=fm(s)),e[Ha](s)}),n&&Ps(e,"change",()=>{e.value=e.value.trim()}),t||(Ps(e,"compositionstart",$6),Ps(e,"compositionend",n2),Ps(e,"change",n2))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},a){if(e[Ha]=Gc(a),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?fm(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))}},mo={deep:!0,created(e,t,n){e[Ha]=Gc(n),Ps(e,"change",()=>{const r=e._modelValue,i=bd(e),o=e.checked,a=e[Ha];if(tt(r)){const s=ZS(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(of(r)){const s=new Set(r);o?s.add(i):s.delete(i),a(s)}else a(eO(e,o))})},mounted:r2,beforeUpdate(e,t,n){e[Ha]=Gc(n),r2(e,t,n)}};function r2(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(tt(t))i=ZS(t,r.props.value)>-1;else if(of(t))i=t.has(r.props.value);else{if(t===n)return;i=Kd(t,eO(e,!0))}e.checked!==i&&(e.checked=i)}const Ai={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=of(t);Ps(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?fm(bd(a)):bd(a));e[Ha](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Po(()=>{e._assigning=!1})}),e[Ha]=Gc(r)},mounted(e,{value:t}){i2(e,t)},beforeUpdate(e,t,n){e[Ha]=Gc(n)},updated(e,{value:t}){e._assigning||i2(e,t)}};function i2(e,t){const n=e.multiple,r=tt(t);if(!(n&&!r&&!of(t))){for(let i=0,o=e.options.length;iString(u)===String(s)):a.selected=ZS(t,s)>-1}else a.selected=t.has(s);else if(Kd(bd(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bd(e){return"_value"in e?e._value:e.value}function eO(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const B6=["ctrl","shift","alt","meta"],V6={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)=>B6.some(n=>e[`${n}Key`]&&!t.includes(n))},Sd=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...o)=>{for(let a=0;a{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const o=tl(i.key);if(t.some(a=>a===o||H6[a]===o))return e(i)})},z6=rr({patchProp:N6},b6);let o2;function G6(){return o2||(o2=WG(z6))}const W6=(...e)=>{const t=G6().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=j6(r);if(!i)return;const o=t._component;!pt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,Y6(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function Y6(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function j6(e){return Hn(e)?document.querySelector(e):e}function tO(e,t){return q(),re("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 q6(e,t){return q(),re("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 X6(e,t){return q(),re("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 nO(e,t){return q(),re("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 K6(e,t){return q(),re("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 rO(e,t){return q(),re("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 a2(e,t){return q(),re("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 iO(e,t){return q(),re("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 Z6(e,t){return q(),re("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 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function oO(e,t){return q(),re("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 J6(e,t){return q(),re("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 Q6(e,t){return q(),re("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 eW(e,t){return q(),re("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 tW(e,t){return q(),re("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 aO(e,t){return q(),re("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 s2(e,t){return q(),re("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 l2(e,t){return q(),re("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 sO(e,t){return q(),re("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 nW(e,t){return q(),re("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 lO(e,t){return q(),re("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 rW(e,t){return q(),re("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 uO(e,t){return q(),re("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 cO(e,t){return q(),re("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 fO(e,t){return q(),re("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 iW(e,t){return q(),re("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 oW(e,t){return q(),re("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 C0(e,t){return q(),re("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"})])}/*! - * vue-router v4.5.0 - * (c) 2024 Eduardo San Martin Morote - * @license MIT - */const hc=typeof document<"u";function hO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function aW(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&hO(e.default)}const Xt=Object.assign;function G_(e,t){const n={};for(const r in t){const i=t[r];n[r]=Ao(i)?i.map(e):e(i)}return n}const Fh=()=>{},Ao=Array.isArray,dO=/#/g,sW=/&/g,lW=/\//g,uW=/=/g,cW=/\?/g,pO=/\+/g,fW=/%5B/g,hW=/%5D/g,vO=/%5E/g,dW=/%60/g,gO=/%7B/g,pW=/%7C/g,mO=/%7D/g,vW=/%20/g;function fx(e){return encodeURI(""+e).replace(pW,"|").replace(fW,"[").replace(hW,"]")}function gW(e){return fx(e).replace(gO,"{").replace(mO,"}").replace(vO,"^")}function rb(e){return fx(e).replace(pO,"%2B").replace(vW,"+").replace(dO,"%23").replace(sW,"%26").replace(dW,"`").replace(gO,"{").replace(mO,"}").replace(vO,"^")}function mW(e){return rb(e).replace(uW,"%3D")}function yW(e){return fx(e).replace(dO,"%23").replace(cW,"%3F")}function _W(e){return e==null?"":yW(e).replace(lW,"%2F")}function xd(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const wW=/\/$/,bW=e=>e.replace(wW,"");function W_(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=TW(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:xd(a)}}function SW(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function u2(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xW(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Wc(t.matched[r],n.matched[i])&&yO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!CW(e[n],t[n]))return!1;return!0}function CW(e,t){return Ao(e)?c2(e,t):Ao(t)?c2(t,e):e===t}function c2(e,t){return Ao(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function TW(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let o=n.length-1,a,s;for(a=0;a1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const hs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Cd;(function(e){e.pop="pop",e.push="push"})(Cd||(Cd={}));var $h;(function(e){e.back="back",e.forward="forward",e.unknown=""})($h||($h={}));function EW(e){if(!e)if(hc){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),bW(e)}const AW=/^[^#]+#/;function MW(e,t){return e.replace(AW,"#")+t}function RW(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 T0=()=>({left:window.scrollX,top:window.scrollY});function DW(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=RW(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 f2(e,t){return(history.state?history.state.position-t:-1)+e}const ib=new Map;function PW(e,t){ib.set(e,t)}function IW(e){const t=ib.get(e);return ib.delete(e),t}let LW=()=>location.protocol+"//"+location.host;function _O(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),u2(l,"")}return u2(n,e)+r+i}function OW(e,t,n,r){let i=[],o=[],a=null;const s=({state:p})=>{const d=_O(e,location),g=n.value,_=t.value;let m=0;if(p){if(n.value=d,t.value=p,a&&a===g){a=null;return}m=_?p.position-_.position:0}else r(d);i.forEach(y=>{y(n.value,g,{delta:m,type:Cd.pop,direction:m?m>0?$h.forward:$h.back:$h.unknown})})};function l(){a=n.value}function u(p){i.push(p);const d=()=>{const g=i.indexOf(p);g>-1&&i.splice(g,1)};return o.push(d),d}function c(){const{history:p}=window;p.state&&p.replaceState(Xt({},p.state,{scroll:T0()}),"")}function h(){for(const p of o)p();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:h}}function h2(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?T0():null}}function kW(e){const{history:t,location:n}=window,r={value:_O(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 h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:LW()+e+l;try{t[c?"replaceState":"pushState"](u,"",p),i.value=u}catch(d){console.error(d),n[c?"replace":"assign"](p)}}function a(l,u){const c=Xt({},t.state,h2(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=Xt({},i.value,t.state,{forward:l,scroll:T0()});o(c.current,c,!0);const h=Xt({},h2(r.value,l,null),{position:c.position+1},u);o(l,h,!1),r.value=l}return{location:r,state:i,push:s,replace:a}}function NW(e){e=EW(e);const t=kW(e),n=OW(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const i=Xt({location:"",base:e,go:r,createHref:MW.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 FW(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),NW(e)}function $W(e){return typeof e=="string"||e&&typeof e=="object"}function wO(e){return typeof e=="string"||typeof e=="symbol"}const bO=Symbol("");var d2;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(d2||(d2={}));function Yc(e,t){return Xt(new Error,{type:e,[bO]:!0},t)}function xa(e,t){return e instanceof Error&&bO in e&&(t==null||!!(e.type&t))}const p2="[^/]+?",BW={sensitive:!1,strict:!1,start:!0,end:!0},VW=/[.+*?^${}()[\]/\\]/g;function HW(e,t){const n=Xt({},BW,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 h=0;ht.length?t.length===1&&t[0]===80?1:-1:0}function SO(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const zW={type:0,value:""},GW=/[a-zA-Z0-9_]/;function WW(e){if(!e)return[[]];if(e==="/")return[[zW]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s=0,l,u="",c="";function h(){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 p(){u+=l}for(;s{a(S)}:Fh}function a(h){if(wO(h)){const p=r.get(h);p&&(r.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&r.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function s(){return n}function l(h){const p=KW(h,n);n.splice(p,0,h),h.record.name&&!y2(h)&&r.set(h.record.name,h)}function u(h,p){let d,g={},_,m;if("name"in h&&h.name){if(d=r.get(h.name),!d)throw Yc(1,{location:h});m=d.record.name,g=Xt(g2(p.params,d.keys.filter(S=>!S.optional).concat(d.parent?d.parent.keys.filter(S=>S.optional):[]).map(S=>S.name)),h.params&&g2(h.params,d.keys.map(S=>S.name))),_=d.stringify(g)}else if(h.path!=null)_=h.path,d=n.find(S=>S.re.test(_)),d&&(g=d.parse(_),m=d.record.name);else{if(d=p.name?r.get(p.name):n.find(S=>S.re.test(p.path)),!d)throw Yc(1,{location:h,currentLocation:p});m=d.record.name,g=Xt({},p.params,h.params),_=d.stringify(g)}const y=[];let b=d;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:_,params:g,matched:y,meta:XW(y)}}e.forEach(h=>o(h));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function g2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function m2(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:qW(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 qW(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 y2(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function XW(e){return e.reduce((t,n)=>Xt(t,n.meta),{})}function _2(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function KW(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;SO(e,t[o])<0?r=o:n=o+1}const i=ZW(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function ZW(e){let t=e;for(;t=t.parent;)if(xO(t)&&SO(e,t)===0)return t}function xO({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function JW(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&rb(o)):[r&&rb(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function QW(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ao(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const e9=Symbol(""),b2=Symbol(""),E0=Symbol(""),hx=Symbol(""),ob=Symbol("");function $f(){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 Rs(e,t,n,r,i,o=a=>a()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=p=>{p===!1?l(Yc(4,{from:n,to:t})):p instanceof Error?l(p):$W(p)?l(Yc(2,{from:t,to:p})):(a&&r.enterCallbacks[i]===a&&typeof p=="function"&&a.push(p),s())},c=o(()=>e.call(r&&r.instances[i],t,n,u));let h=Promise.resolve(c);e.length<3&&(h=h.then(u)),h.catch(p=>l(p))})}function Y_(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(hO(l)){const c=(l.__vccOpts||l)[t];c&&o.push(Rs(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 h=aW(c)?c.default:c;a.mods[s]=c,a.components[s]=h;const d=(h.__vccOpts||h)[t];return d&&Rs(d,n,r,a,s,i)()}))}}return o}function S2(e){const t=Ji(E0),n=Ji(hx),r=Ie(()=>{const l=F(e.to);return t.resolve(l)}),i=Ie(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],h=n.matched;if(!c||!h.length)return-1;const p=h.findIndex(Wc.bind(null,c));if(p>-1)return p;const d=x2(l[u-2]);return u>1&&x2(c)===d&&h[h.length-1].path!==d?h.findIndex(Wc.bind(null,l[u-2])):p}),o=Ie(()=>i.value>-1&&o9(n.params,r.value.params)),a=Ie(()=>i.value>-1&&i.value===n.matched.length-1&&yO(n.params,r.value.params));function s(l={}){if(i9(l)){const u=t[F(e.replace)?"replace":"push"](F(e.to)).catch(Fh);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Ie(()=>r.value.href),isActive:o,isExactActive:a,navigate:s}}function t9(e){return e.length===1?e[0]:e}const n9=Qe({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:S2,setup(e,{slots:t}){const n=Eo(S2(e)),{options:r}=Ji(E0),i=Ie(()=>({[C2(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[C2(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t9(t.default(n));return e.custom?o:jo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),r9=n9;function i9(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 o9(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(!Ao(i)||i.length!==r.length||r.some((o,a)=>o!==i[a]))return!1}return!0}function x2(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const C2=(e,t,n)=>e??t??n,a9=Qe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ji(ob),i=Ie(()=>e.route||r.value),o=Ji(b2,0),a=Ie(()=>{let u=F(o);const{matched:c}=i.value;let h;for(;(h=c[u])&&!h.components;)u++;return u}),s=Ie(()=>i.value.matched[a.value]);Sg(b2,Ie(()=>a.value+1)),Sg(e9,s),Sg(ob,i);const l=Me();return Lt(()=>[l.value,s.value,e.name],([u,c,h],[p,d,g])=>{c&&(c.instances[h]=u,d&&d!==c&&u&&u===p&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!Wc(c,d)||!p)&&(c.enterCallbacks[h]||[]).forEach(_=>_(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,h=s.value,p=h&&h.components[c];if(!p)return T2(n.default,{Component:p,route:u});const d=h.props[c],g=d?d===!0?u.params:typeof d=="function"?d(u):d:null,m=jo(p,Xt({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[c]=null)},ref:l}));return T2(n.default,{Component:m,route:u})||m}}});function T2(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const dx=a9;function s9(e){const t=jW(e.routes,e),n=e.parseQuery||JW,r=e.stringifyQuery||w2,i=e.history,o=$f(),a=$f(),s=$f(),l=Zd(hs);let u=hs;hc&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=G_.bind(null,le=>""+le),h=G_.bind(null,_W),p=G_.bind(null,xd);function d(le,Te){let we,xe;return wO(le)?(we=t.getRecordMatcher(le),xe=Te):xe=le,t.addRoute(xe,we)}function g(le){const Te=t.getRecordMatcher(le);Te&&t.removeRoute(Te)}function _(){return t.getRoutes().map(le=>le.record)}function m(le){return!!t.getRecordMatcher(le)}function y(le,Te){if(Te=Xt({},Te||l.value),typeof le=="string"){const B=W_(n,le,Te.path),ne=t.resolve({path:B.path},Te),me=i.createHref(B.fullPath);return Xt(B,ne,{params:p(ne.params),hash:xd(B.hash),redirectedFrom:void 0,href:me})}let we;if(le.path!=null)we=Xt({},le,{path:W_(n,le.path,Te.path).path});else{const B=Xt({},le.params);for(const ne in B)B[ne]==null&&delete B[ne];we=Xt({},le,{params:h(B)}),Te.params=h(Te.params)}const xe=t.resolve(we,Te),Ee=le.hash||"";xe.params=c(p(xe.params));const Pe=SW(r,Xt({},le,{hash:gW(Ee),path:xe.path})),$=i.createHref(Pe);return Xt({fullPath:Pe,hash:Ee,query:r===w2?QW(le.query):le.query||{}},xe,{redirectedFrom:void 0,href:$})}function b(le){return typeof le=="string"?W_(n,le,l.value.path):Xt({},le)}function S(le,Te){if(u!==le)return Yc(8,{from:Te,to:le})}function x(le){return M(le)}function E(le){return x(Xt(b(le),{replace:!0}))}function T(le){const Te=le.matched[le.matched.length-1];if(Te&&Te.redirect){const{redirect:we}=Te;let xe=typeof we=="function"?we(le):we;return typeof xe=="string"&&(xe=xe.includes("?")||xe.includes("#")?xe=b(xe):{path:xe},xe.params={}),Xt({query:le.query,hash:le.hash,params:xe.path!=null?{}:le.params},xe)}}function M(le,Te){const we=u=y(le),xe=l.value,Ee=le.state,Pe=le.force,$=le.replace===!0,B=T(we);if(B)return M(Xt(b(B),{state:typeof B=="object"?Xt({},Ee,B.state):Ee,force:Pe,replace:$}),Te||we);const ne=we;ne.redirectedFrom=Te;let me;return!Pe&&xW(r,xe,we)&&(me=Yc(16,{to:ne,from:xe}),be(xe,xe,!0,!1)),(me?Promise.resolve(me):k(ne,xe)).catch(ce=>xa(ce)?xa(ce,2)?ce:_e(ce):Q(ce,ne,xe)).then(ce=>{if(ce){if(xa(ce,2))return M(Xt({replace:$},b(ce.to),{state:typeof ce.to=="object"?Xt({},Ee,ce.to.state):Ee,force:Pe}),Te||ne)}else ce=H(ne,xe,!0,$,Ee);return N(ne,xe,ce),ce})}function D(le,Te){const we=S(le,Te);return we?Promise.reject(we):Promise.resolve()}function I(le){const Te=je.values().next().value;return Te&&typeof Te.runWithContext=="function"?Te.runWithContext(le):le()}function k(le,Te){let we;const[xe,Ee,Pe]=l9(le,Te);we=Y_(xe.reverse(),"beforeRouteLeave",le,Te);for(const B of xe)B.leaveGuards.forEach(ne=>{we.push(Rs(ne,le,Te))});const $=D.bind(null,le,Te);return we.push($),Ye(we).then(()=>{we=[];for(const B of o.list())we.push(Rs(B,le,Te));return we.push($),Ye(we)}).then(()=>{we=Y_(Ee,"beforeRouteUpdate",le,Te);for(const B of Ee)B.updateGuards.forEach(ne=>{we.push(Rs(ne,le,Te))});return we.push($),Ye(we)}).then(()=>{we=[];for(const B of Pe)if(B.beforeEnter)if(Ao(B.beforeEnter))for(const ne of B.beforeEnter)we.push(Rs(ne,le,Te));else we.push(Rs(B.beforeEnter,le,Te));return we.push($),Ye(we)}).then(()=>(le.matched.forEach(B=>B.enterCallbacks={}),we=Y_(Pe,"beforeRouteEnter",le,Te,I),we.push($),Ye(we))).then(()=>{we=[];for(const B of a.list())we.push(Rs(B,le,Te));return we.push($),Ye(we)}).catch(B=>xa(B,8)?B:Promise.reject(B))}function N(le,Te,we){s.list().forEach(xe=>I(()=>xe(le,Te,we)))}function H(le,Te,we,xe,Ee){const Pe=S(le,Te);if(Pe)return Pe;const $=Te===hs,B=hc?history.state:{};we&&(xe||$?i.replace(le.fullPath,Xt({scroll:$&&B&&B.scroll},Ee)):i.push(le.fullPath,Ee)),l.value=le,be(le,Te,we,$),_e()}let te;function W(){te||(te=i.listen((le,Te,we)=>{if(!He.listening)return;const xe=y(le),Ee=T(xe);if(Ee){M(Xt(Ee,{replace:!0,force:!0}),xe).catch(Fh);return}u=xe;const Pe=l.value;hc&&PW(f2(Pe.fullPath,we.delta),T0()),k(xe,Pe).catch($=>xa($,12)?$:xa($,2)?(M(Xt(b($.to),{force:!0}),xe).then(B=>{xa(B,20)&&!we.delta&&we.type===Cd.pop&&i.go(-1,!1)}).catch(Fh),Promise.reject()):(we.delta&&i.go(-we.delta,!1),Q($,xe,Pe))).then($=>{$=$||H(xe,Pe,!1),$&&(we.delta&&!xa($,8)?i.go(-we.delta,!1):we.type===Cd.pop&&xa($,20)&&i.go(-1,!1)),N(xe,Pe,$)}).catch(Fh)}))}let X=$f(),j=$f(),oe;function Q(le,Te,we){_e(le);const xe=j.list();return xe.length?xe.forEach(Ee=>Ee(le,Te,we)):console.error(le),Promise.reject(le)}function fe(){return oe&&l.value!==hs?Promise.resolve():new Promise((le,Te)=>{X.add([le,Te])})}function _e(le){return oe||(oe=!le,W(),X.list().forEach(([Te,we])=>le?we(le):Te()),X.reset()),le}function be(le,Te,we,xe){const{scrollBehavior:Ee}=e;if(!hc||!Ee)return Promise.resolve();const Pe=!we&&IW(f2(le.fullPath,0))||(xe||!we)&&history.state&&history.state.scroll||null;return Po().then(()=>Ee(le,Te,Pe)).then($=>$&&DW($)).catch($=>Q($,le,Te))}const Ne=le=>i.go(le);let ke;const je=new Set,He={currentRoute:l,listening:!0,addRoute:d,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:_,resolve:y,options:e,push:x,replace:E,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:a.add,afterEach:s.add,onError:j.add,isReady:fe,install(le){const Te=this;le.component("RouterLink",r9),le.component("RouterView",dx),le.config.globalProperties.$router=Te,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>F(l)}),hc&&!ke&&l.value===hs&&(ke=!0,x(i.location).catch(Ee=>{}));const we={};for(const Ee in hs)Object.defineProperty(we,Ee,{get:()=>l.value[Ee],enumerable:!0});le.provide(E0,Te),le.provide(hx,mL(we)),le.provide(ob,l);const xe=le.unmount;je.add(le),le.unmount=function(){je.delete(le),je.size<1&&(u=hs,te&&te(),te=null,l.value=hs,ke=!1,oe=!1),xe()}}};function Ye(le){return le.reduce((Te,we)=>Te.then(()=>I(we)),Promise.resolve())}return He}function l9(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aWc(u,s))?r.push(s):n.push(s));const l=e.matched[a];l&&(t.matched.find(u=>Wc(u,l))||i.push(l))}return[n,r,i]}function u9(){return Ji(E0)}function CO(e){return Ji(hx)}/*! - * shared v10.0.5 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const wm=typeof window<"u",ol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),c9=(e,t,n)=>f9({l:e,k:t,s:n}),f9=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Vn=e=>typeof e=="number"&&isFinite(e),h9=e=>px(e)==="[object Date]",jc=e=>px(e)==="[object RegExp]",A0=e=>Mt(e)&&Object.keys(e).length===0,Xn=Object.assign,d9=Object.create,ln=(e=null)=>d9(e);let E2;const Ql=()=>E2||(E2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ln());function A2(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const p9=Object.prototype.hasOwnProperty;function _o(e,t){return p9.call(e,t)}const Ln=Array.isArray,bn=e=>typeof e=="function",Fe=e=>typeof e=="string",Ut=e=>typeof e=="boolean",Yt=e=>e!==null&&typeof e=="object",v9=e=>Yt(e)&&bn(e.then)&&bn(e.catch),TO=Object.prototype.toString,px=e=>TO.call(e),Mt=e=>px(e)==="[object Object]",g9=e=>e==null?"":Ln(e)||Mt(e)&&e.toString===TO?JSON.stringify(e,null,2):String(e);function vx(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}function m9(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const pv=e=>!Yt(e)||Ln(e);function Tg(e,t){if(pv(e)||pv(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__"&&(Yt(r[o])&&!Yt(i[o])&&(i[o]=Array.isArray(r[o])?[]:ln()),pv(i[o])||pv(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 y9(e,t,n){return{line:e,column:t,offset:n}}function ab(e,t,n){return{start:e,end:t}}const tn={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},_9=17;function M0(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 w9(e){throw e}const Ca=" ",b9="\r",Pr=` -`,S9="\u2028",x9="\u2029";function C9(e){const t=e;let n=0,r=1,i=1,o=0;const a=M=>t[M]===b9&&t[M+1]===Pr,s=M=>t[M]===Pr,l=M=>t[M]===x9,u=M=>t[M]===S9,c=M=>a(M)||s(M)||l(M)||u(M),h=()=>n,p=()=>r,d=()=>i,g=()=>o,_=M=>a(M)||l(M)||u(M)?Pr:t[M],m=()=>_(n),y=()=>_(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 x(){n=0,r=1,i=1,o=0}function E(M=0){o=M}function T(){const M=n+o;for(;M!==n;)b();o=0}return{index:h,line:p,column:d,peekOffset:g,charAt:_,currentChar:m,currentPeek:y,next:b,peek:S,reset:x,resetPeek:E,skipToPeek:T}}const ds=void 0,T9=".",M2="'",E9="tokenizer";function A9(e,t={}){const n=t.location!==!1,r=C9(e),i=()=>r.index(),o=()=>y9(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 h(O,V,Z,...ae){const pe=u();if(V.column+=Z,V.offset+=Z,c){const Ce=n?ab(pe.startLoc,V):null,Y=M0(O,Ce,{domain:E9,args:ae});c(Y)}}function p(O,V,Z){O.endLoc=o(),O.currentType=V;const ae={type:V};return n&&(ae.loc=ab(O.startLoc,O.endLoc)),Z!=null&&(ae.value=Z),ae}const d=O=>p(O,13);function g(O,V){return O.currentChar()===V?(O.next(),V):(h(tn.EXPECTED_TOKEN,o(),0,V),"")}function _(O){let V="";for(;O.currentPeek()===Ca||O.currentPeek()===Pr;)V+=O.currentPeek(),O.peek();return V}function m(O){const V=_(O);return O.skipToPeek(),V}function y(O){if(O===ds)return!1;const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V===95}function b(O){if(O===ds)return!1;const V=O.charCodeAt(0);return V>=48&&V<=57}function S(O,V){const{currentType:Z}=V;if(Z!==2)return!1;_(O);const ae=y(O.currentPeek());return O.resetPeek(),ae}function x(O,V){const{currentType:Z}=V;if(Z!==2)return!1;_(O);const ae=O.currentPeek()==="-"?O.peek():O.currentPeek(),pe=b(ae);return O.resetPeek(),pe}function E(O,V){const{currentType:Z}=V;if(Z!==2)return!1;_(O);const ae=O.currentPeek()===M2;return O.resetPeek(),ae}function T(O,V){const{currentType:Z}=V;if(Z!==7)return!1;_(O);const ae=O.currentPeek()===".";return O.resetPeek(),ae}function M(O,V){const{currentType:Z}=V;if(Z!==8)return!1;_(O);const ae=y(O.currentPeek());return O.resetPeek(),ae}function D(O,V){const{currentType:Z}=V;if(!(Z===7||Z===11))return!1;_(O);const ae=O.currentPeek()===":";return O.resetPeek(),ae}function I(O,V){const{currentType:Z}=V;if(Z!==9)return!1;const ae=()=>{const Ce=O.currentPeek();return Ce==="{"?y(O.peek()):Ce==="@"||Ce==="|"||Ce===":"||Ce==="."||Ce===Ca||!Ce?!1:Ce===Pr?(O.peek(),ae()):N(O,!1)},pe=ae();return O.resetPeek(),pe}function k(O){_(O);const V=O.currentPeek()==="|";return O.resetPeek(),V}function N(O,V=!0){const Z=(pe=!1,Ce="")=>{const Y=O.currentPeek();return Y==="{"||Y==="@"||!Y?pe:Y==="|"?!(Ce===Ca||Ce===Pr):Y===Ca?(O.peek(),Z(!0,Ca)):Y===Pr?(O.peek(),Z(!0,Pr)):!0},ae=Z();return V&&O.resetPeek(),ae}function H(O,V){const Z=O.currentChar();return Z===ds?ds:V(Z)?(O.next(),Z):null}function te(O){const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36}function W(O){return H(O,te)}function X(O){const V=O.charCodeAt(0);return V>=97&&V<=122||V>=65&&V<=90||V>=48&&V<=57||V===95||V===36||V===45}function j(O){return H(O,X)}function oe(O){const V=O.charCodeAt(0);return V>=48&&V<=57}function Q(O){return H(O,oe)}function fe(O){const V=O.charCodeAt(0);return V>=48&&V<=57||V>=65&&V<=70||V>=97&&V<=102}function _e(O){return H(O,fe)}function be(O){let V="",Z="";for(;V=Q(O);)Z+=V;return Z}function Ne(O){let V="";for(;;){const Z=O.currentChar();if(Z==="{"||Z==="}"||Z==="@"||Z==="|"||!Z)break;if(Z===Ca||Z===Pr)if(N(O))V+=Z,O.next();else{if(k(O))break;V+=Z,O.next()}else V+=Z,O.next()}return V}function ke(O){m(O);let V="",Z="";for(;V=j(O);)Z+=V;return O.currentChar()===ds&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z}function je(O){m(O);let V="";return O.currentChar()==="-"?(O.next(),V+=`-${be(O)}`):V+=be(O),O.currentChar()===ds&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V}function He(O){return O!==M2&&O!==Pr}function Ye(O){m(O),g(O,"'");let V="",Z="";for(;V=H(O,He);)V==="\\"?Z+=le(O):Z+=V;const ae=O.currentChar();return ae===Pr||ae===ds?(h(tn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),ae===Pr&&(O.next(),g(O,"'")),Z):(g(O,"'"),Z)}function le(O){const V=O.currentChar();switch(V){case"\\":case"'":return O.next(),`\\${V}`;case"u":return Te(O,V,4);case"U":return Te(O,V,6);default:return h(tn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,V),""}}function Te(O,V,Z){g(O,V);let ae="";for(let pe=0;pe{const ae=O.currentChar();return ae==="{"||ae==="@"||ae==="|"||ae==="("||ae===")"||!ae||ae===Ca?Z:(Z+=ae,O.next(),V(Z))};return V("")}function $(O){m(O);const V=g(O,"|");return m(O),V}function B(O,V){let Z=null;switch(O.currentChar()){case"{":return V.braceNest>=1&&h(tn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),O.next(),Z=p(V,2,"{"),m(O),V.braceNest++,Z;case"}":return V.braceNest>0&&V.currentType===2&&h(tn.EMPTY_PLACEHOLDER,o(),0),O.next(),Z=p(V,3,"}"),V.braceNest--,V.braceNest>0&&m(O),V.inLinked&&V.braceNest===0&&(V.inLinked=!1),Z;case"@":return V.braceNest>0&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=ne(O,V)||d(V),V.braceNest=0,Z;default:{let pe=!0,Ce=!0,Y=!0;if(k(O))return V.braceNest>0&&h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),Z=p(V,1,$(O)),V.braceNest=0,V.inLinked=!1,Z;if(V.braceNest>0&&(V.currentType===4||V.currentType===5||V.currentType===6))return h(tn.UNTERMINATED_CLOSING_BRACE,o(),0),V.braceNest=0,me(O,V);if(pe=S(O,V))return Z=p(V,4,ke(O)),m(O),Z;if(Ce=x(O,V))return Z=p(V,5,je(O)),m(O),Z;if(Y=E(O,V))return Z=p(V,6,Ye(O)),m(O),Z;if(!pe&&!Ce&&!Y)return Z=p(V,12,xe(O)),h(tn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,Z.value),m(O),Z;break}}return Z}function ne(O,V){const{currentType:Z}=V;let ae=null;const pe=O.currentChar();switch((Z===7||Z===8||Z===11||Z===9)&&(pe===Pr||pe===Ca)&&h(tn.INVALID_LINKED_FORMAT,o(),0),pe){case"@":return O.next(),ae=p(V,7,"@"),V.inLinked=!0,ae;case".":return m(O),O.next(),p(V,8,".");case":":return m(O),O.next(),p(V,9,":");default:return k(O)?(ae=p(V,1,$(O)),V.braceNest=0,V.inLinked=!1,ae):T(O,V)||D(O,V)?(m(O),ne(O,V)):M(O,V)?(m(O),p(V,11,Ee(O))):I(O,V)?(m(O),pe==="{"?B(O,V)||ae:p(V,10,Pe(O))):(Z===7&&h(tn.INVALID_LINKED_FORMAT,o(),0),V.braceNest=0,V.inLinked=!1,me(O,V))}}function me(O,V){let Z={type:13};if(V.braceNest>0)return B(O,V)||d(V);if(V.inLinked)return ne(O,V)||d(V);switch(O.currentChar()){case"{":return B(O,V)||d(V);case"}":return h(tn.UNBALANCED_CLOSING_BRACE,o(),0),O.next(),p(V,3,"}");case"@":return ne(O,V)||d(V);default:{if(k(O))return Z=p(V,1,$(O)),V.braceNest=0,V.inLinked=!1,Z;if(N(O))return p(V,0,Ne(O));break}}return Z}function ce(){const{currentType:O,offset:V,startLoc:Z,endLoc:ae}=l;return l.lastType=O,l.lastOffset=V,l.lastStartLoc=Z,l.lastEndLoc=ae,l.offset=i(),l.startLoc=o(),r.currentChar()===ds?p(l,13):me(r,l)}return{nextToken:ce,currentOffset:i,currentPosition:o,context:u}}const M9="parser",R9=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function D9(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function P9(e={}){const t=e.location!==!1,{onError:n}=e;function r(y,b,S,x,...E){const T=y.currentPosition();if(T.offset+=x,T.column+=x,n){const M=t?ab(S,T):null,D=M0(b,M,{domain:M9,args:E});n(D)}}function i(y,b,S){const x={type:y};return t&&(x.start=b,x.end=b,x.loc={start:S,end:S}),x}function o(y,b,S,x){t&&(y.end=b,y.loc&&(y.loc.end=S))}function a(y,b){const S=y.context(),x=i(3,S.offset,S.startLoc);return x.value=b,o(x,y.currentOffset(),y.currentPosition()),x}function s(y,b){const S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(5,x,E);return T.index=parseInt(b,10),y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function l(y,b){const S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(4,x,E);return T.key=b,y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function u(y,b){const S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(9,x,E);return T.value=b.replace(R9,D9),y.nextToken(),o(T,y.currentOffset(),y.currentPosition()),T}function c(y){const b=y.nextToken(),S=y.context(),{lastOffset:x,lastStartLoc:E}=S,T=i(8,x,E);return b.type!==11?(r(y,tn.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),T.value="",o(T,x,E),{nextConsumeToken:b,node:T}):(b.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,$o(b)),T.value=b.value||"",o(T,y.currentOffset(),y.currentPosition()),{node:T})}function h(y,b){const S=y.context(),x=i(7,S.offset,S.startLoc);return x.value=b,o(x,y.currentOffset(),y.currentPosition()),x}function p(y){const b=y.context(),S=i(6,b.offset,b.startLoc);let x=y.nextToken();if(x.type===8){const E=c(y);S.modifier=E.node,x=E.nextConsumeToken||y.nextToken()}switch(x.type!==9&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),x=y.nextToken(),x.type===2&&(x=y.nextToken()),x.type){case 10:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=h(y,x.value||"");break;case 4:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=l(y,x.value||"");break;case 5:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=s(y,x.value||"");break;case 6:x.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(x)),S.key=u(y,x.value||"");break;default:{r(y,tn.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const E=y.context(),T=i(7,E.offset,E.startLoc);return T.value="",o(T,E.offset,E.startLoc),S.key=T,o(S,E.offset,E.startLoc),{nextConsumeToken:x,node:S}}}return o(S,y.currentOffset(),y.currentPosition()),{node:S}}function d(y){const b=y.context(),S=b.currentType===1?y.currentOffset():b.offset,x=b.currentType===1?b.endLoc:b.startLoc,E=i(2,S,x);E.items=[];let T=null;do{const I=T||y.nextToken();switch(T=null,I.type){case 0:I.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(I)),E.items.push(a(y,I.value||""));break;case 5:I.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(I)),E.items.push(s(y,I.value||""));break;case 4:I.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(I)),E.items.push(l(y,I.value||""));break;case 6:I.value==null&&r(y,tn.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,$o(I)),E.items.push(u(y,I.value||""));break;case 7:{const k=p(y);E.items.push(k.node),T=k.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const M=b.currentType===1?b.lastOffset:y.currentOffset(),D=b.currentType===1?b.lastEndLoc:y.currentPosition();return o(E,M,D),E}function g(y,b,S,x){const E=y.context();let T=x.items.length===0;const M=i(1,b,S);M.cases=[],M.cases.push(x);do{const D=d(y);T||(T=D.items.length===0),M.cases.push(D)}while(E.currentType!==13);return T&&r(y,tn.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),o(M,y.currentOffset(),y.currentPosition()),M}function _(y){const b=y.context(),{offset:S,startLoc:x}=b,E=d(y);return b.currentType===13?E:g(y,S,x,E)}function m(y){const b=A9(y,Xn({},e)),S=b.context(),x=i(0,S.offset,S.startLoc);return t&&x.loc&&(x.loc.source=y),x.body=_(b),e.onCacheKey&&(x.cacheKey=e.onCacheKey(y)),S.currentType!==13&&r(b,tn.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,y[S.offset]||""),o(x,b.currentOffset(),b.currentPosition()),x}return{parse:m}}function $o(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 I9(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function R2(e,t){for(let n=0;nD2(n)),e}function D2(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;ns;function u(m,y){s.code+=m}function c(m,y=!0){const b=y?i:"";u(o?b+" ".repeat(m):b)}function h(m=!0){const y=++s.indentLevel;m&&c(y)}function p(m=!0){const y=--s.indentLevel;m&&c(y)}function d(){c(s.indentLevel)}return{context:l,push:u,indent:h,deindent:p,newline:d,helper:m=>`_${m}`,needIndent:()=>s.needIndent}}function N9(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),qc(e,t.key),t.modifier?(e.push(", "),qc(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function F9(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let o=0;o{const n=Fe(t.mode)?t.mode:"normal",r=Fe(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=k9(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 { ${vx(s.map(h=>`${h}: _${h}`),", ")} } = ctx`),l.newline()),l.push("return "),qc(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 H9(e,t={}){const n=Xn({},t),r=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,s=P9(n).parse(e);return r?(o&&O9(s),i&&dc(s),{ast:s,code:""}):(L9(s,n),V9(s,n))}/*! - * core-base v10.0.5 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */function U9(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ql().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ql().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function j_(e){return n=>z9(n,e)}function z9(e,t){const n=W9(t);if(n==null)throw Td(0);if(mx(n)===1){const o=j9(n);return e.plural(o.reduce((a,s)=>[...a,P2(e,s)],[]))}else return P2(e,n)}const G9=["b","body"];function W9(e){return al(e,G9)}const Y9=["c","cases"];function j9(e){return al(e,Y9,[])}function P2(e,t){const n=X9(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Z9(t).reduce((i,o)=>[...i,sb(e,o)],[]);return e.normalize(r)}}const q9=["s","static"];function X9(e){return al(e,q9)}const K9=["i","items"];function Z9(e){return al(e,K9,[])}function sb(e,t){const n=mx(t);switch(n){case 3:return vv(t,n);case 9:return vv(t,n);case 4:{const r=t;if(_o(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(_o(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Td(n)}case 5:{const r=t;if(_o(r,"i")&&Vn(r.i))return e.interpolate(e.list(r.i));if(_o(r,"index")&&Vn(r.index))return e.interpolate(e.list(r.index));throw Td(n)}case 6:{const r=t,i=t7(r),o=r7(r);return e.linked(sb(e,o),i?sb(e,i):void 0,e.type)}case 7:return vv(t,n);case 8:return vv(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const J9=["t","type"];function mx(e){return al(e,J9)}const Q9=["v","value"];function vv(e,t){const n=al(e,Q9);if(n)return n;throw Td(t)}const e7=["m","modifier"];function t7(e){return al(e,e7)}const n7=["k","key"];function r7(e){const t=al(e,n7);if(t)return t;throw Td(6)}function al(e,t,n){for(let r=0;re;let gv=ln();function Xc(e){return Yt(e)&&mx(e)===0&&(_o(e,"b")||_o(e,"body"))}function o7(e,t={}){let n=!1;const r=t.onError||w9;return t.onError=i=>{n=!0,r(i)},{...H9(e,t),detectError:n}}function a7(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Fe(e)){Ut(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||i7)(e),i=gv[r];if(i)return i;const{ast:o,detectError:a}=o7(e,{...t,location:!1,jit:!0}),s=j_(o);return a?s:gv[r]=s}else{const n=e.cacheKey;if(n){const r=gv[n];return r||(gv[n]=j_(e))}else return j_(e)}}let Ed=null;function s7(e){Ed=e}function l7(e,t,n){Ed&&Ed.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const u7=c7("function:translate");function c7(e){return t=>Ed&&Ed.emit(e,t)}const Na={INVALID_ARGUMENT:_9,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},f7=24;function Fa(e){return M0(e,null,void 0)}function yx(e,t){return t.locale!=null?I2(t.locale):I2(e.locale)}let q_;function I2(e){if(Fe(e))return e;if(bn(e)){if(e.resolvedOnce&&q_!=null)return q_;if(e.constructor.name==="Function"){const t=e();if(v9(t))throw Fa(Na.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return q_=t}else throw Fa(Na.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Fa(Na.NOT_SUPPORT_LOCALE_TYPE)}function h7(e,t,n){return[...new Set([n,...Ln(t)?t:Yt(t)?Object.keys(t):Fe(t)?[t]:[n]])]}function EO(e,t,n){const r=Fe(n)?n:Ad,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ln(a);)a=L2(o,a,t);const s=Ln(t)||!Mt(t)?t:t.default?t.default:null;a=Fe(s)?[s]:s,Ln(a)&&L2(o,a,!1),i.__localeChainCache.set(r,o)}return o}function L2(e,t,n){let r=!0;for(let i=0;i{a===void 0?a=s:a+=s},p[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},p[2]=()=>{p[0](),i++},p[3]=()=>{if(i>0)i--,r=4,p[0]();else{if(i=0,a===void 0||(a=_7(a),a===!1))return!1;p[1]()}};function d(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,s="\\"+g,p[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&d())){if(l=y7(o),h=sl[r],u=h[l]||h.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=p[u[1]],c&&(s=o,c()===!1))))return;if(r===7)return t}}const O2=new Map;function b7(e,t){return Yt(e)?e[t]:null}function S7(e,t){if(!Yt(e))return null;let n=O2.get(t);if(n||(n=w7(t),n&&O2.set(t,n)),!n)return null;const r=n.length;let i=e,o=0;for(;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function C7(){return{upper:(e,t)=>t==="text"&&Fe(e)?e.toUpperCase():t==="vnode"&&Yt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Fe(e)?e.toLowerCase():t==="vnode"&&Yt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Fe(e)?N2(e):t==="vnode"&&Yt(e)&&"__v_isVNode"in e?N2(e.children):e}}let AO;function T7(e){AO=e}let MO;function E7(e){MO=e}let RO;function A7(e){RO=e}let DO=null;const M7=e=>{DO=e},R7=()=>DO;let PO=null;const F2=e=>{PO=e},D7=()=>PO;let $2=0;function P7(e={}){const t=bn(e.onWarn)?e.onWarn:m9,n=Fe(e.version)?e.version:x7,r=Fe(e.locale)||bn(e.locale)?e.locale:Ad,i=bn(r)?Ad:r,o=Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||Fe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=Mt(e.messages)?e.messages:X_(i),s=Mt(e.datetimeFormats)?e.datetimeFormats:X_(i),l=Mt(e.numberFormats)?e.numberFormats:X_(i),u=Xn(ln(),e.modifiers,C7()),c=e.pluralRules||ln(),h=bn(e.missing)?e.missing:null,p=Ut(e.missingWarn)||jc(e.missingWarn)?e.missingWarn:!0,d=Ut(e.fallbackWarn)||jc(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,_=!!e.unresolving,m=bn(e.postTranslation)?e.postTranslation:null,y=Mt(e.processor)?e.processor:null,b=Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,x=bn(e.messageCompiler)?e.messageCompiler:AO,E=bn(e.messageResolver)?e.messageResolver:MO||b7,T=bn(e.localeFallbacker)?e.localeFallbacker:RO||h7,M=Yt(e.fallbackContext)?e.fallbackContext:void 0,D=e,I=Yt(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,k=Yt(D.__numberFormatters)?D.__numberFormatters:new Map,N=Yt(D.__meta)?D.__meta:{};$2++;const H={version:n,cid:$2,locale:r,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:h,missingWarn:p,fallbackWarn:d,fallbackFormat:g,unresolving:_,postTranslation:m,processor:y,warnHtmlMessage:b,escapeParameter:S,messageCompiler:x,messageResolver:E,localeFallbacker:T,fallbackContext:M,onWarn:t,__meta:N};return H.datetimeFormats=s,H.numberFormats=l,H.__datetimeFormatters=I,H.__numberFormatters=k,__INTLIFY_PROD_DEVTOOLS__&&l7(H,n,N),H}const X_=e=>({[e]:ln()});function _x(e,t,n,r,i){const{missing:o,onWarn:a}=e;if(o!==null){const s=o(e,n,t,i);return Fe(s)?s:t}else return t}function Bf(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function I7(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function L7(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r{IO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:Mt(r)&&(a=r),Mt(i)&&(a=i),[o.key||"",s,o,a]}function V2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function H2(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e,[l,u,c,h]=ub(...t),p=Ut(c.missingWarn)?c.missingWarn:e.missingWarn;Ut(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,g=yx(e,c),_=a(e,i,g);if(!Fe(l)||l==="")return new Intl.NumberFormat(g,h).format(u);let m={},y,b=null;const S="number format";for(let T=0;T<_.length&&(y=_[T],m=n[y]||{},b=m[l],!Mt(b));T++)_x(e,l,y,p,S);if(!Mt(b)||!Fe(y))return r?R0:l;let x=`${y}__${l}`;A0(h)||(x=`${x}__${JSON.stringify(h)}`);let E=s.get(x);return E||(E=new Intl.NumberFormat(y,Xn({},b,h)),s.set(x,E)),d?E.formatToParts(u):E.format(u)}const LO=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ub(...e){const[t,n,r,i]=e,o=ln();let a=ln();if(!Vn(t))throw Fa(Na.INVALID_ARGUMENT);const s=t;return Fe(n)?o.key=n:Mt(n)&&Object.keys(n).forEach(l=>{LO.includes(l)?a[l]=n[l]:o[l]=n[l]}),Fe(r)?o.locale=r:Mt(r)&&(a=r),Mt(i)&&(a=i),[o.key||"",s,o,a]}function U2(e,t,n){const r=e;for(const i in n){const o=`${t}__${i}`;r.__numberFormatters.has(o)&&r.__numberFormatters.delete(o)}}const O7=e=>e,k7=e=>"",N7="text",F7=e=>e.length===0?"":vx(e),$7=g9;function z2(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function B7(e){const t=Vn(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Vn(e.named.count)||Vn(e.named.n))?Vn(e.named.count)?e.named.count:Vn(e.named.n)?e.named.n:t:t}function V7(e,t){t.count||(t.count=e),t.n||(t.n=e)}function H7(e={}){const t=e.locale,n=B7(e),r=Yt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?e.pluralRules[t]:z2,i=Yt(e.pluralRules)&&Fe(t)&&bn(e.pluralRules[t])?z2:void 0,o=y=>y[r(n,y.length,i)],a=e.list||[],s=y=>a[y],l=e.named||ln();Vn(e.pluralIndex)&&V7(n,l);const u=y=>l[y];function c(y,b){const S=bn(e.messages)?e.messages(y,!!b):Yt(e.messages)?e.messages[y]:!1;return S||(e.parent?e.parent.message(y):k7)}const h=y=>e.modifiers?e.modifiers[y]:O7,p=Mt(e.processor)&&bn(e.processor.normalize)?e.processor.normalize:F7,d=Mt(e.processor)&&bn(e.processor.interpolate)?e.processor.interpolate:$7,g=Mt(e.processor)&&Fe(e.processor.type)?e.processor.type:N7,m={list:s,named:u,plural:o,linked:(y,...b)=>{const[S,x]=b;let E="text",T="";b.length===1?Yt(S)?(T=S.modifier||T,E=S.type||E):Fe(S)&&(T=S||T):b.length===2&&(Fe(S)&&(T=S||T),Fe(x)&&(E=x||E));const M=c(y,!0)(m),D=E==="vnode"&&Ln(M)&&T?M[0]:M;return T?h(T)(D,E):D},message:c,type:g,interpolate:d,normalize:p,values:Xn(ln(),a,l)};return m}const G2=()=>"",Yi=e=>bn(e);function W2(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,u]=cb(...t),c=Ut(u.missingWarn)?u.missingWarn:e.missingWarn,h=Ut(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=Ut(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,g=Fe(u.default)||Ut(u.default)?Ut(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:null,_=n||g!=null&&(Fe(g)||bn(g)),m=yx(e,u);p&&U7(u);let[y,b,S]=d?[l,m,s[m]||ln()]:OO(e,l,m,a,h,c),x=y,E=l;if(!d&&!(Fe(x)||Xc(x)||Yi(x))&&_&&(x=g,E=x),!d&&(!(Fe(x)||Xc(x)||Yi(x))||!Fe(b)))return i?R0:l;let T=!1;const M=()=>{T=!0},D=Yi(x)?x:kO(e,l,b,x,E,M);if(T)return x;const I=W7(e,b,S,u),k=H7(I),N=z7(e,D,k),H=r?r(N,l):N;if(__INTLIFY_PROD_DEVTOOLS__){const te={timestamp:Date.now(),key:Fe(l)?l:Yi(x)?x.key:"",locale:b||(Yi(x)?x.locale:""),format:Fe(x)?x:Yi(x)?x.source:"",message:H};te.meta=Xn({},e.__meta,R7()||{}),u7(te)}return H}function U7(e){Ln(e.list)?e.list=e.list.map(t=>Fe(t)?A2(t):t):Yt(e.named)&&Object.keys(e.named).forEach(t=>{Fe(e.named[t])&&(e.named[t]=A2(e.named[t]))})}function OO(e,t,n,r,i,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let h=ln(),p,d=null;const g="translate";for(let _=0;_r;return u.locale=n,u.key=t,u}const l=a(r,G7(e,n,i,r,s,o));return l.locale=n,l.key=t,l.source=r,l}function z7(e,t,n){return t(n)}function cb(...e){const[t,n,r]=e,i=ln();if(!Fe(t)&&!Vn(t)&&!Yi(t)&&!Xc(t))throw Fa(Na.INVALID_ARGUMENT);const o=Vn(t)?String(t):(Yi(t),t);return Vn(n)?i.plural=n:Fe(n)?i.default=n:Mt(n)&&!A0(n)?i.named=n:Ln(n)&&(i.list=n),Vn(r)?i.plural=r:Fe(r)?i.default=r:Mt(r)&&Xn(i,r),[o,i]}function G7(e,t,n,r,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{throw o&&o(a),a},onCacheKey:a=>c9(t,n,a)}}function W7(e,t,n,r){const{modifiers:i,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,p={locale:t,modifiers:i,pluralRules:o,messages:(d,g)=>{let _=a(n,d);if(_==null&&(c||g)){const[,,m]=OO(c||e,d,t,s,l,u);_=a(m,d)}if(Fe(_)||Xc(_)){let m=!1;const b=kO(e,d,t,_,d,()=>{m=!0});return m?G2:b}else return Yi(_)?_:G2}};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),Vn(r.plural)&&(p.pluralIndex=r.plural),p}U9();/*! - * vue-i18n v10.0.5 - * (c) 2024 kazuya kawaguchi - * Released under the MIT License. - */const Y7="10.0.5";function j7(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ql().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ql().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ql().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ql().__INTLIFY_PROD_DEVTOOLS__=!1)}const Br={UNEXPECTED_RETURN_TYPE:f7,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 ni(e,...t){return M0(e,null,void 0)}const fb=ol("__translateVNode"),hb=ol("__datetimeParts"),db=ol("__numberParts"),NO=ol("__setPluralRules"),FO=ol("__injectWithOption"),pb=ol("__dispose");function Md(e){if(!Yt(e))return e;for(const t in e)if(_o(e,t))if(!t.includes("."))Yt(e[t])&&Md(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,o=!1;for(let a=0;a{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(a[l]=a[l]||ln(),Tg(u,a[l])):Tg(u,a)}else Fe(s)&&Tg(JSON.parse(s),a)}),i==null&&o)for(const s in a)_o(a,s)&&Md(a[s]);return a}function $O(e){return e.type}function BO(e,t,n){let r=Yt(t.messages)?t.messages:ln();"__i18nGlobal"in n&&(r=bx(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Yt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Yt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Y2(e){return ye(ep,null,e,0)}const j2="__INTLIFY_META__",q2=()=>[],q7=()=>!1;let X2=0;function K2(e){return(t,n,r,i)=>e(n,r,ra()||void 0,i)}const X7=()=>{const e=ra();let t=null;return e&&(t=$O(e)[j2])?{[j2]:t}:null};function Sx(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,i=e.flatJson,o=wm?Me:Zd;let a=Ut(e.inheritLocale)?e.inheritLocale:!0;const s=o(t&&a?t.locale.value:Fe(e.locale)?e.locale:Ad),l=o(t&&a?t.fallbackLocale.value:Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=o(bx(s.value,e)),c=o(Mt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),h=o(Mt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let p=t?t.missingWarn:Ut(e.missingWarn)||jc(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Ut(e.fallbackWarn)||jc(e.fallbackWarn)?e.fallbackWarn:!0,g=t?t.fallbackRoot:Ut(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,m=bn(e.missing)?e.missing:null,y=bn(e.missing)?K2(e.missing):null,b=bn(e.postTranslation)?e.postTranslation:null,S=t?t.warnHtmlMessage:Ut(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const E=t?t.modifiers:Mt(e.modifiers)?e.modifiers:{};let T=e.pluralRules||t&&t.pluralRules,M;M=(()=>{r&&F2(null);const Y={version:Y7,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:E,pluralRules:T,missing:y===null?void 0:y,missingWarn:p,fallbackWarn:d,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Y.datetimeFormats=c.value,Y.numberFormats=h.value,Y.__datetimeFormatters=Mt(M)?M.__datetimeFormatters:void 0,Y.__numberFormatters=Mt(M)?M.__numberFormatters:void 0;const ie=P7(Y);return r&&F2(ie),ie})(),Bf(M,s.value,l.value);function I(){return[s.value,l.value,u.value,c.value,h.value]}const k=Ie({get:()=>s.value,set:Y=>{s.value=Y,M.locale=s.value}}),N=Ie({get:()=>l.value,set:Y=>{l.value=Y,M.fallbackLocale=l.value,Bf(M,s.value,Y)}}),H=Ie(()=>u.value),te=Ie(()=>c.value),W=Ie(()=>h.value);function X(){return bn(b)?b:null}function j(Y){b=Y,M.postTranslation=Y}function oe(){return m}function Q(Y){Y!==null&&(y=K2(Y)),m=Y,M.missing=y}const fe=(Y,ie,Re,Be,ft,wt)=>{I();let on;try{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=t?D7():void 0),on=Y(M)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(M.fallbackContext=void 0)}if(Re!=="translate exists"&&Vn(on)&&on===R0||Re==="translate exists"&&!on){const[yn,kn]=ie();return t&&g?Be(t):ft(yn)}else{if(wt(on))return on;throw ni(Br.UNEXPECTED_RETURN_TYPE)}};function _e(...Y){return fe(ie=>Reflect.apply(W2,null,[ie,...Y]),()=>cb(...Y),"translate",ie=>Reflect.apply(ie.t,ie,[...Y]),ie=>ie,ie=>Fe(ie))}function be(...Y){const[ie,Re,Be]=Y;if(Be&&!Yt(Be))throw ni(Br.INVALID_ARGUMENT);return _e(ie,Re,Xn({resolvedMessage:!0},Be||{}))}function Ne(...Y){return fe(ie=>Reflect.apply(B2,null,[ie,...Y]),()=>lb(...Y),"datetime format",ie=>Reflect.apply(ie.d,ie,[...Y]),()=>k2,ie=>Fe(ie))}function ke(...Y){return fe(ie=>Reflect.apply(H2,null,[ie,...Y]),()=>ub(...Y),"number format",ie=>Reflect.apply(ie.n,ie,[...Y]),()=>k2,ie=>Fe(ie))}function je(Y){return Y.map(ie=>Fe(ie)||Vn(ie)||Ut(ie)?Y2(String(ie)):ie)}const Ye={normalize:je,interpolate:Y=>Y,type:"vnode"};function le(...Y){return fe(ie=>{let Re;const Be=ie;try{Be.processor=Ye,Re=Reflect.apply(W2,null,[Be,...Y])}finally{Be.processor=null}return Re},()=>cb(...Y),"translate",ie=>ie[fb](...Y),ie=>[Y2(ie)],ie=>Ln(ie))}function Te(...Y){return fe(ie=>Reflect.apply(H2,null,[ie,...Y]),()=>ub(...Y),"number format",ie=>ie[db](...Y),q2,ie=>Fe(ie)||Ln(ie))}function we(...Y){return fe(ie=>Reflect.apply(B2,null,[ie,...Y]),()=>lb(...Y),"datetime format",ie=>ie[hb](...Y),q2,ie=>Fe(ie)||Ln(ie))}function xe(Y){T=Y,M.pluralRules=T}function Ee(Y,ie){return fe(()=>{if(!Y)return!1;const Re=Fe(ie)?ie:s.value,Be=B(Re),ft=M.messageResolver(Be,Y);return Xc(ft)||Yi(ft)||Fe(ft)},()=>[Y],"translate exists",Re=>Reflect.apply(Re.te,Re,[Y,ie]),q7,Re=>Ut(Re))}function Pe(Y){let ie=null;const Re=EO(M,l.value,s.value);for(let Be=0;Be{a&&(s.value=Y,M.locale=Y,Bf(M,s.value,l.value))}),Lt(t.fallbackLocale,Y=>{a&&(l.value=Y,M.fallbackLocale=Y,Bf(M,s.value,l.value))}));const Ce={id:X2,locale:k,fallbackLocale:N,get inheritLocale(){return a},set inheritLocale(Y){a=Y,Y&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Bf(M,s.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:H,get modifiers(){return E},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(Y){p=Y,M.missingWarn=p},get fallbackWarn(){return d},set fallbackWarn(Y){d=Y,M.fallbackWarn=d},get fallbackRoot(){return g},set fallbackRoot(Y){g=Y},get fallbackFormat(){return _},set fallbackFormat(Y){_=Y,M.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(Y){S=Y,M.warnHtmlMessage=Y},get escapeParameter(){return x},set escapeParameter(Y){x=Y,M.escapeParameter=Y},t:_e,getLocaleMessage:B,setLocaleMessage:ne,mergeLocaleMessage:me,getPostTranslationHandler:X,setPostTranslationHandler:j,getMissingHandler:oe,setMissingHandler:Q,[NO]:xe};return Ce.datetimeFormats=te,Ce.numberFormats=W,Ce.rt=be,Ce.te=Ee,Ce.tm=$,Ce.d=Ne,Ce.n=ke,Ce.getDateTimeFormat=ce,Ce.setDateTimeFormat=O,Ce.mergeDateTimeFormat=V,Ce.getNumberFormat=Z,Ce.setNumberFormat=ae,Ce.mergeNumberFormat=pe,Ce[FO]=n,Ce[fb]=le,Ce[hb]=we,Ce[db]=Te,Ce}function K7(e){const t=Fe(e.locale)?e.locale:Ad,n=Fe(e.fallbackLocale)||Ln(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=bn(e.missing)?e.missing:void 0,i=Ut(e.silentTranslationWarn)||jc(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Ut(e.silentFallbackWarn)||jc(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Ut(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=Mt(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=bn(e.postTranslation)?e.postTranslation:void 0,h=Fe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,d=Ut(e.sync)?e.sync:!0;let g=e.messages;if(Mt(e.sharedMessages)){const E=e.sharedMessages;g=Object.keys(E).reduce((M,D)=>{const I=M[D]||(M[D]={});return Xn(I,E[D]),M},g||{})}const{__i18n:_,__root:m,__injectWithOption:y}=e,b=e.datetimeFormats,S=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:n,messages:g,flatJson:x,datetimeFormats:b,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:d,__i18n:_,__root:m,__injectWithOption:y}}function vb(e={}){const t=Sx(K7(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 Ut(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(i){t.missingWarn=Ut(i)?!i:i},get silentFallbackWarn(){return Ut(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(i){t.fallbackWarn=Ut(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(!Fe(o))throw ni(Br.INVALID_ARGUMENT);const h=o;return Fe(a)?l.locale=a:Vn(a)?l.plural=a:Ln(a)?u=a:Mt(a)&&(c=a),Fe(s)?l.locale=s:Ln(s)?u=s:Mt(s)&&(c=s),Reflect.apply(t.t,t,[h,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 Z7(e,t,n){return{beforeCreate(){const r=ra();if(!r)throw ni(Br.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=Z2(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=vb(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Z2(e,i);else{this.$i18n=vb({__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&&BO(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=ra();if(!r)throw ni(Br.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 Z2(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[NO](t.pluralizationRules||e.pluralizationRules);const n=bx(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 xx={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function J7({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Ge?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},ln())}function VO(){return Ge}const Q7=Qe({name:"i18n-t",props:Xn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Vn(e)||!isNaN(e)}},xx),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||ia({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(h=>h!=="_"),a=ln();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Fe(e.plural)?+e.plural:e.plural);const s=J7(t,o),l=i[fb](e.keypath,s,a),u=Xn(ln(),r),c=Fe(e.tag)||Yt(e.tag)?e.tag:VO();return jo(c,u,l)}}}),J2=Q7;function eY(e){return Ln(e)&&!Fe(e[0])}function HO(e,t,n,r){const{slots:i,attrs:o}=t;return()=>{const a={part:!0};let s=ln();e.locale&&(a.locale=e.locale),Fe(e.format)?a.key=e.format:Yt(e.format)&&(Fe(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((p,d)=>n.includes(d)?Xn(ln(),p,{[d]:e.format[d]}):p,ln()));const l=r(e.value,a,s);let u=[a.key];Ln(l)?u=l.map((p,d)=>{const g=i[p.type],_=g?g({[p.type]:p.value,index:d,parts:l}):[p.value];return eY(_)&&(_[0].key=`${p.type}-${d}`),_}):Fe(l)&&(u=[l]);const c=Xn(ln(),o),h=Fe(e.tag)||Yt(e.tag)?e.tag:VO();return jo(h,c,u)}}const tY=Qe({name:"i18n-n",props:Xn({value:{type:Number,required:!0},format:{type:[String,Object]}},xx),setup(e,t){const n=e.i18n||ia({useScope:e.scope,__useComponent:!0});return HO(e,t,LO,(...r)=>n[db](...r))}}),Q2=tY,nY=Qe({name:"i18n-d",props:Xn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},xx),setup(e,t){const n=e.i18n||ia({useScope:e.scope,__useComponent:!0});return HO(e,t,IO,(...r)=>n[hb](...r))}}),eM=nY;function rY(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 iY(e){const t=a=>{const{instance:s,value:l}=a;if(!s||!s.$)throw ni(Br.UNEXPECTED_ERROR);const u=rY(e,s.$),c=tM(l);return[Reflect.apply(u.t,u,[...nM(c)]),u]};return{created:(a,s)=>{const[l,u]=t(s);wm&&e.global===u&&(a.__i18nWatcher=Lt(u.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{wm&&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=tM(s);a.textContent=Reflect.apply(l.t,l,[...nM(u)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function tM(e){if(Fe(e))return{path:e};if(Mt(e)){if(!("path"in e))throw ni(Br.REQUIRED_VALUE,"path");return e}else throw ni(Br.INVALID_VALUE)}function nM(e){const{path:t,locale:n,args:r,choice:i,plural:o}=e,a={},s=r||{};return Fe(n)&&(a.locale=n),Vn(i)&&(a.plural=i),Vn(o)&&(a.plural=o),[t,s,a]}function oY(e,t,...n){const r=Mt(n[0])?n[0]:{};(Ut(r.globalInstall)?r.globalInstall:!0)&&([J2.name,"I18nT"].forEach(o=>e.component(o,J2)),[Q2.name,"I18nN"].forEach(o=>e.component(o,Q2)),[eM.name,"I18nD"].forEach(o=>e.component(o,eM))),e.directive("t",iY(t))}const aY=ol("global-vue-i18n");function sY(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ut(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ut(e.globalInjection)?e.globalInjection:!0,i=new Map,[o,a]=lY(e,n),s=ol("");function l(p){return i.get(p)||null}function u(p,d){i.set(p,d)}function c(p){i.delete(p)}const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(p,...d){if(p.__VUE_I18N_SYMBOL__=s,p.provide(p.__VUE_I18N_SYMBOL__,h),Mt(d[0])){const m=d[0];h.__composerExtend=m.__composerExtend,h.__vueI18nExtend=m.__vueI18nExtend}let g=null;!n&&r&&(g=gY(p,h.global)),__VUE_I18N_FULL_INSTALL__&&oY(p,h,...d),__VUE_I18N_LEGACY_API__&&n&&p.mixin(Z7(a,a.__composer,h));const _=p.unmount;p.unmount=()=>{g&&g(),h.dispose(),_()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:l,__setInstance:u,__deleteInstance:c};return h}function ia(e={}){const t=ra();if(t==null)throw ni(Br.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ni(Br.NOT_INSTALLED);const n=uY(t),r=fY(n),i=$O(t),o=cY(e,i);if(o==="global")return BO(r,e,i),r;if(o==="parent"){let l=hY(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Xn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),r&&(l.__root=r),s=Sx(l),a.__composerExtend&&(s[pb]=a.__composerExtend(s)),pY(a,t,s),a.__setInstance(t,s)}return s}function lY(e,t,n){const r=k8(),i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>vb(e)):r.run(()=>Sx(e));if(i==null)throw ni(Br.UNEXPECTED_ERROR);return[r,i]}function uY(e){const t=Ji(e.isCE?aY:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ni(e.isCE?Br.NOT_INSTALLED_WITH_PROVIDE:Br.UNEXPECTED_ERROR);return t}function cY(e,t){return A0(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fY(e){return e.mode==="composition"?e.global:e.global.__composer}function hY(e,t,n=!1){let r=null;const i=t.root;let o=dY(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[FO]&&(r=null))}if(r!=null||i===o)break;o=o.parent}return r}function dY(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pY(e,t,n){il(()=>{},t),Qd(()=>{const r=n;e.__deleteInstance(t);const i=r[pb];i&&(i(),delete r[pb])},t)}const vY=["locale","fallbackLocale","availableLocales"],rM=["t","rt","d","n","tm","te"];function gY(e,t){const n=Object.create(null);return vY.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw ni(Br.UNEXPECTED_ERROR);const a=Je(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,rM.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw ni(Br.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,rM.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}j7();T7(a7);E7(S7);A7(EO);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ql();e.__INTLIFY__=!0,s7(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const K_=Me(!1),iM=Me(),D0=()=>{const{t:e}=ia();return{showTip:(n,r={})=>{K_.value=!0,iM.value=e(n,r),setTimeout(()=>{K_.value=!1},1e4)},tipShowModel:K_,tipContent:iM}},Cx="https://ipv6.google.com/generate_204",qo=0;var wo=(e=>(e.EN_US="en-US",e.ZH_CN="zh-CN",e.RU_RU="ru-RU",e))(wo||{}),Is=(e=>(e.MI_SANS="MiSans",e.SARASA_UI="SarasaUi",e.PING_FANG="PingFang",e.FIRA_SANS="FiraSans",e.SYSTEM_UI="SystemUI",e))(Is||{}),Bt=(e=>(e.Details="details",e.Close="close",e.Type="type",e.Process="process",e.Host="host",e.Rule="rule",e.Chains="chains",e.DlSpeed="dlSpeed",e.UlSpeed="ulSpeed",e.Download="dl",e.Upload="ul",e.ConnectTime="connectTime",e.SourceIP="sourceIP",e.SourcePort="sourcePort",e.Destination="destination",e))(Bt||{}),Ls=(e=>(e.DEFAULT="defaultsort",e.NAME_ASC="nameasc",e.NAME_DESC="namedesc",e.LATENCY_ASC="latencyasc",e.LATENCY_DESC="latencydesc",e))(Ls||{}),Rd=(e=>(e.AUTO="auto",e.DOTS="dots",e.BAR="bar",e))(Rd||{}),Kc=(e=>(e.RULES="rules",e.PROVIDER="ruleProvider",e))(Kc||{}),yu=(e=>(e.PROXIES="proxies",e.PROVIDER="proxyProvider",e))(yu||{}),Xr=(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))(Xr||{}),Ia=(e=>(e.ACTIVE="active",e.CLOSED="closed",e))(Ia||{}),eu=(e=>(e.Info="info",e.Error="error",e.Warning="warning",e.Debug="debug",e.Silent="silent",e))(eu||{}),Vt=(e=>(e.proxies="proxies",e.connections="connections",e.logs="logs",e.rules="rules",e.settings="settings",e.setup="setup",e))(Vt||{});const UO={proxies:tW,connections:iO,rules:iW,logs:eW,settings:J6};var Dd=(e=>(e.SMALL="small",e.LARGE="large",e))(Dd||{}),np=(e=>(e.SMALL="small",e.LARGE="large",e))(np||{});function P0(e){return tL()?(nL(e),!0):!1}function Eu(e){return typeof e=="function"?e():F(e)}const zO=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mY=e=>e!=null,yY=Object.prototype.toString,_Y=e=>yY.call(e)==="[object Object]",bm=()=>{};function wY(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 GO=e=>e();function bY(e=GO){const t=Me(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:_0(t),pause:n,resume:r,eventFilter:i}}function WO(e){return ra()}function SY(...e){if(e.length!==1)return uG(...e);const t=e[0];return typeof t=="function"?_0(oG(()=>({get:t,set:bm}))):Me(t)}function xY(e,t,n={}){const{eventFilter:r=GO,...i}=n;return Lt(e,wY(r,t),i)}function CY(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:o,pause:a,resume:s,isActive:l}=bY(r);return{stop:xY(e,t,{...i,eventFilter:o}),pause:a,resume:s,isActive:l}}function TY(e,t){WO()&&RL(e,t)}function Tx(e,t=!0,n){WO()?il(e,n):t?e():Po(e)}const Ya=zO?window:void 0,YO=zO?window.document:void 0;function ks(e){var t;const n=Eu(e);return(t=n==null?void 0:n.$el)!=null?t:n}function lu(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=Ya):[t,n,r,i]=e,!t)return bm;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,h,p,d)=>(c.addEventListener(h,p,d),()=>c.removeEventListener(h,p,d)),l=Lt(()=>[ks(t),Eu(i)],([c,h])=>{if(a(),!c)return;const p=_Y(h)?{...h}:h;o.push(...n.flatMap(d=>r.map(g=>s(c,d,g,p))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return P0(u),u}function EY(){const e=Me(!1),t=ra();return t&&il(()=>{e.value=!0},t),e}function Ex(e){const t=EY();return Ie(()=>(t.value,!!e()))}function AY(e,t,n={}){const{window:r=Ya,...i}=n;let o;const a=Ex(()=>r&&"MutationObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ie(()=>{const p=Eu(e),d=(Array.isArray(p)?p:[p]).map(ks).filter(mY);return new Set(d)}),u=Lt(()=>l.value,p=>{s(),a.value&&p.size&&(o=new MutationObserver(t),p.forEach(d=>o.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>o==null?void 0:o.takeRecords(),h=()=>{u(),s()};return P0(h),{isSupported:a,stop:h,takeRecords:c}}function MY(e,t={}){const{window:n=Ya}=t,r=Ex(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const o=Me(!1),a=u=>{o.value=u.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=lx(()=>{r.value&&(s(),i=n.matchMedia(Eu(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),o.value=i.matches)});return P0(()=>{l(),s(),i=void 0}),o}const mv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yv="__vueuse_ssr_handlers__",RY=DY();function DY(){return yv in mv||(mv[yv]=mv[yv]||{}),mv[yv]}function PY(e,t){return RY[e]||t}function IY(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 LY={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()}},oM="vueuse-storage";function Ht(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:h=Ya,eventFilter:p,onError:d=k=>{console.error(k)},initOnMounted:g}=r,_=(c?Zd:Me)(typeof t=="function"?t():t);if(!n)try{n=PY("getDefaultStorage",()=>{var k;return(k=Ya)==null?void 0:k.localStorage})()}catch(k){d(k)}if(!n)return _;const m=Eu(t),y=IY(m),b=(i=r.serializer)!=null?i:LY[y],{pause:S,resume:x}=CY(_,()=>T(_.value),{flush:o,deep:a,eventFilter:p});h&&s&&Tx(()=>{n instanceof Storage?lu(h,"storage",D):lu(h,oM,I),g&&D()}),g||D();function E(k,N){if(h){const H={key:e,oldValue:k,newValue:N,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(oM,{detail:H}))}}function T(k){try{const N=n.getItem(e);if(k==null)E(N,null),n.removeItem(e);else{const H=b.write(k);N!==H&&(n.setItem(e,H),E(N,H))}}catch(N){d(N)}}function M(k){const N=k?k.newValue:n.getItem(e);if(N==null)return l&&m!=null&&n.setItem(e,b.write(m)),m;if(!k&&u){const H=b.read(N);return typeof u=="function"?u(H,m):y==="object"&&!Array.isArray(H)?{...m,...H}:H}else return typeof N!="string"?N:b.read(N)}function D(k){if(!(k&&k.storageArea!==n)){if(k&&k.key==null){_.value=m;return}if(!(k&&k.key!==e)){S();try{(k==null?void 0:k.newValue)!==b.write(_.value)&&(_.value=M(k))}catch(N){d(N)}finally{k?Po(x):x()}}}}function I(k){D(k.detail)}return _}function OY(e={}){const{document:t=YO}=e;if(!t)return Me("visible");const n=Me(t.visibilityState);return lu(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function kY(e,t,n={}){const{window:r=Ya,...i}=n;let o;const a=Ex(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=Ie(()=>{const h=Eu(e);return Array.isArray(h)?h.map(p=>ks(p)):[ks(h)]}),u=Lt(l,h=>{if(s(),a.value&&r){o=new ResizeObserver(t);for(const p of h)p&&o.observe(p,i)}},{immediate:!0,flush:"post"}),c=()=>{s(),u()};return P0(c),{isSupported:a,stop:c}}function NY(e,t={width:0,height:0},n={}){const{window:r=Ya,box:i="content-box"}=n,o=Ie(()=>{var h,p;return(p=(h=ks(e))==null?void 0:h.namespaceURI)==null?void 0:p.includes("svg")}),a=Me(t.width),s=Me(t.height),{stop:l}=kY(e,([h])=>{const p=i==="border-box"?h.borderBoxSize:i==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(r&&o.value){const d=ks(e);if(d){const g=d.getBoundingClientRect();a.value=g.width,s.value=g.height}}else if(p){const d=Array.isArray(p)?p:[p];a.value=d.reduce((g,{inlineSize:_})=>g+_,0),s.value=d.reduce((g,{blockSize:_})=>g+_,0)}else a.value=h.contentRect.width,s.value=h.contentRect.height},n);Tx(()=>{const h=ks(e);h&&(a.value="offsetWidth"in h?h.offsetWidth:t.width,s.value="offsetHeight"in h?h.offsetHeight:t.height)});const u=Lt(()=>ks(e),h=>{a.value=h?t.width:0,s.value=h?t.height:0});function c(){l(),u()}return{width:a,height:s,stop:c}}function FY(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:o,passive:a=!0,window:s=Ya}=t,l=Eo({x:0,y:0}),u=Eo({x:0,y:0}),c=Ie(()=>l.x-u.x),h=Ie(()=>l.y-u.y),{max:p,abs:d}=Math,g=Ie(()=>p(d(c.value),d(h.value))>=n),_=Me(!1),m=Ie(()=>g.value?d(c.value)>d(h.value)?c.value>0?"left":"right":h.value>0?"up":"down":"none"),y=I=>[I.touches[0].clientX,I.touches[0].clientY],b=(I,k)=>{l.x=I,l.y=k},S=(I,k)=>{u.x=I,u.y=k};let x;const E=$Y(s==null?void 0:s.document);a?x=E?{passive:!0}:{capture:!1}:x=E?{passive:!1,capture:!0}:{capture:!0};const T=I=>{_.value&&(i==null||i(I,m.value)),_.value=!1},M=[lu(e,"touchstart",I=>{if(I.touches.length!==1)return;const[k,N]=y(I);b(k,N),S(k,N),o==null||o(I)},x),lu(e,"touchmove",I=>{if(I.touches.length!==1)return;const[k,N]=y(I);S(k,N),x.capture&&!x.passive&&Math.abs(c.value)>Math.abs(h.value)&&I.preventDefault(),!_.value&&g.value&&(_.value=!0),_.value&&(r==null||r(I))},x),lu(e,["touchend","touchcancel"],T,x)];return{isPassiveEventSupported:E,isSwiping:_,direction:m,coordsStart:l,coordsEnd:u,lengthX:c,lengthY:h,stop:()=>M.forEach(I=>I())}}function $Y(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",bm,n),e.removeEventListener("x",bm),t}function BY(e=null,t={}){var n,r,i;const{document:o=YO,restoreOnUnmount:a=h=>h}=t,s=(n=o==null?void 0:o.title)!=null?n:"",l=SY((r=e??(o==null?void 0:o.title))!=null?r:null),u=e&&typeof e=="function";function c(h){if(!("titleTemplate"in t))return h;const p=t.titleTemplate||"%s";return typeof p=="function"?p(h):Eu(p).replace(/%s/g,h)}return Lt(l,(h,p)=>{h!==p&&o&&(o.title=c(typeof h=="string"?h:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&o&&!u&&AY((i=o.head)==null?void 0:i.querySelector("title"),()=>{o&&o.title!==l.value&&(l.value=c(o.title))},{childList:!0}),TY(()=>{if(a){const h=a(s,l.value||"");h!=null&&o&&(o.title=h)}}),l}function VY(e={}){const{window:t=Ya,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:o=!0,type:a="inner"}=e,s=Me(n),l=Me(r),u=()=>{t&&(a==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):o?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(u(),Tx(u),lu("resize",u,{passive:!0}),i){const c=MY("(orientation: portrait)");Lt(c,()=>u())}return{width:s,height:l}}const Dc=Ht("config/theme","default"),$a=Ht("config/language",Object.values(wo).includes(navigator.language)?navigator.language:wo.EN_US),Us=Ht("config/is-sidebar-collapsed",!0),Bh=Ht("config/font",Is.MI_SANS),Eg=Ht("config/auto-upgrade",!1),Ag=Ht("config/show-global-proxy",!0),Z_=Ht("config/collapse-group-map",{}),Vh=Ht("config/two-columns",!0),Hh=Ht("config/speedtest-url","http://www.gstatic.com/generate_204"),Uh=Ht("config/speedtest-timeout",5e3),Mg=Ht("config/proxy-sort-type",Ls.DEFAULT),Rg=Ht("config/automatic-disconnection",!0),zh=Ht("config/truncate-proxy-name",!0),Gh=Ht("config/proxy-preview-type",Rd.AUTO),Dg=Ht("config/hide-unavailable-proxies",!1),Ns=Ht("config/low-latency",300),ka=Ht("config/medium-latency",800),uu=Ht("config/ipv6-test",!1),Wh=Ht("config/proxy-card-size",np.LARGE),tu=Ht("config/use-connecticon-card",!1),Pg=Ht("config/connecticon-table-size",Dd.SMALL),Kl=Ht("config/connection-table-columns",[Bt.Close,Bt.Host,Bt.Type,Bt.Rule,Bt.Chains,Bt.DlSpeed,Bt.UlSpeed,Bt.Download,Bt.Upload,Bt.ConnectTime]),Ig=Ht("config/compact-connection-card",!0),_i=Ht("config/source-ip-label-map",{}),Lg=Ht("config/log-retention-limit",1e3),HY=["data-theme"],UY={key:0,class:"toast-sm toast toast-start toast-top z-50 max-w-64 whitespace-normal text-sm"},zY={class:"breaks-all alert alert-warning flex w-72 whitespace-normal p-2"},GY={href:"https://github.com/Zephyruso/zashboard/blob/main/README.md",target:"_blank",class:"flex-1"},WY=Qe({__name:"App",setup(e){const t=Me(),n=()=>{const s=getComputedStyle(t.value).getPropertyValue("background-color").trim(),l=document.querySelector('meta[name="theme-color"]');l&&l.setAttribute("content",s)},{tipContent:r,tipShowModel:i}=D0();il(()=>{n(),Lt(Dc,()=>{Po(n)})});const o={[Is.MI_SANS]:"font-MiSans",[Is.SARASA_UI]:"font-SarasaUI",[Is.PING_FANG]:"font-PingFang",[Is.FIRA_SANS]:"font-FiraSans",[Is.SYSTEM_UI]:"font-SystemUI"},a=Ie(()=>o[Bh.value]);return(s,l)=>(q(),re("div",{ref_key:"app",ref:t,class:Ke(`flex h-dvh w-screen overflow-x-hidden bg-base-100 ${a.value}`),"data-theme":F(Dc)},[ye(F(dx)),F(i)?(q(),re("div",UY,[L("div",zY,[L("a",GY,ue(s.$t(F(r))),1),L("button",{class:"btn btn-circle btn-ghost btn-sm",onClick:l[0]||(l[0]=u=>i.value=!1)},[ye(F(oW),{class:"w-4 cursor-pointer"})])])])):yt("",!0)],10,HY))}}),YY={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",compactCard:"Compact Card",chains:"Chains",sortBy:"Sort By",rule:"Rule",sourceIP:"Source IP",activeConnections:"Active Conns",closedConnections:"Closed Conns",logLevel:"Log Level",twoColumnProxyGroup:"Two Column Proxy Group",type:"Type",process:"Process",sniffHost:"Sniff Host",connectTime:"Time",sourcePort:"Source Port",destination:"Destination",inboundUser:"Inbound User",dl:"DL",ul:"UL",dlSpeed:"DL Speed",ulSpeed:"UL Speed",settings:"Settings",speedtestUrl:"Speedtest URL",speedtestTimeout:"Speedtest Timeout",connectionStyle:"Connection Style",card:"Card",table:"Table",customTableColumns:"Custom Table Columns",close:"Close",details:"Details",showGlobalProxy:"Show Global Proxy Node",dashboard:"Dashboard",theme:"Theme",proxyProvider:"Proxy Provider",ruleProvider:"Rule Provider",expire:"Expire",noExpire:"Null",updated:"Updated",upgradeUI:"Upgrade Dashboard",updateAllProviders:"Upgrade All Providers",reloadConfigs:"Reload Configs",mode:"Mode",proxySortType:"Proxy Sort Type",defaultsort:"By Configs",nameasc:"Name Asc",namedesc:"Name Desc",latencydesc:"Latency Desc",latencyasc:"Latency Asc",language:"Language",automaticDisconnection:"Automatic Disconnection",backend:"Backend",tunMode:"Tun Mode",upgradeCore:"Upgrade Core",truncateProxyName:"Truncate Proxy Name",sourceIPLabels:"Source IP Labels",proxyPreviewType:"Proxy Preview Type",auto:"Auto",dots:"Dots",bar:"Bar",exportSettings:"Export Settings",importSettings:"Import Settings",hideUnavailable:"Hide Unavail",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",statistics:"Statistics",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"},jY={setup:"Настройка",overview:"Обзор",proxies:"Прокси",rules:"Правила",connections:"Подключения",logs:"Журнал",protocol:"Протокол",host:"Хост",port:"Порт",password:"Пароль",submit:"Отправить",cancel:"Отмена",download:"Загрузить",upload:"Выгрузить",downloadSpeed:"Скорость загрузки",uploadSpeed:"Скорость выгрузки",memoryUsage:"Память",version:"Версия",quickFilter:"Быстрый фильтр",noContent:"Нет содержимого",flushFakeIP:"Очистить Fake IP",compactCard:"Компактная карточка",chains:"Цепочки",sortBy:"Сортировать по",rule:"Правило",sourceIP:"Исходный IP",activeConnections:"Активные",closedConnections:"Закрытые",logLevel:"Уровень журнала",twoColumnProxyGroup:"Группа прокси в два столбца",type:"Тип",process:"Процесс",sniffHost:"Определение хоста",connectTime:"Время",sourcePort:"Исходный порт",destination:"Назначение",inboundUser:"Входящий пользователь",dl:"Загр",ul:"Выгр",dlSpeed:"Загрузка",ulSpeed:"Выгрузка",settings:"Настройки",speedtestUrl:"URL теста скорости",speedtestTimeout:"Таймаут теста скорости",connectionStyle:"Стиль подключения",card:"Карточка",table:"Таблица",customTableColumns:"Пользовательские столбцы таблицы",close:"Закрыть",details:"Детали",showGlobalProxy:"Показать глобальный прокси-узел",dashboard:"Панель управления",theme:"Тема",proxyProvider:"Провайдер прокси",ruleProvider:"Провайдер правил",expire:"Истекает",noExpire:"Нет",updated:"Обновлено",upgradeUI:"Обновить панель",updateAllProviders:"Обновить все провайдеры",reloadConfigs:"Перезагрузить конфигурации",mode:"Режим",proxySortType:"Тип сортировки прокси",defaultsort:"По конфигурациям",nameasc:"Имя по возрастанию",namedesc:"Имя по убыванию",latencydesc:"Задержка по убыванию",latencyasc:"Задержка по возрастанию",language:"Язык",automaticDisconnection:"Автоматическое отключение",backend:"Бэкенд",tunMode:"Режим Tun",upgradeCore:"Обновить ядро",truncateProxyName:"Усечение имени прокси",sourceIPLabels:"Метки исходного IP",proxyPreviewType:"Тип предварительного просмотра прокси",auto:"Авто",dots:"Точки",bar:"Полоса",exportSettings:"Экспорт настроек",importSettings:"Импорт настроек",hideUnavailable:"Скрыть недоступные",protocolTips:"Вы пытаетесь подключиться к http-бэкенду, но панель управления обслуживается через https. Это может вызвать ошибку подключения. Пожалуйста, разрешите небезопасный контент в настройках браузера. Настройки находятся слева от адресной строки.",global:"Глобальный",direct:"Прямой",quickFilterTip:"Быстрая фильтрация позволяет одним щелчком исключать подключения, соответствующие цепочкам прокси, хосту или IP-адресам назначения с использованием регулярных выражений.",lowLatencyDesc:"Желтый порог",mediumLatencyDesc:"Красный порог",fonts:"Шрифты",statistics:"Статистика",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:"Большой"},qY={setup:"配置",overview:"概览",proxies:"代理",rules:"规则",connections:"连接",logs:"日志",protocol:"协议",host:"主机",port:"端口",password:"密码",submit:"提交",cancel:"取消",download:"下载",upload:"上传",downloadSpeed:"下载速度",uploadSpeed:"上传速度",memoryUsage:"内存使用",version:"版本",quickFilter:"快速过滤",noContent:"无内容",flushFakeIP:"清空Fake IP",compactCard:"紧凑卡片",chains:"代理链",sortBy:"排序方式",rule:"规则",sourceIP:"源IP",activeConnections:"活跃连接",closedConnections:"已关闭连接",logLevel:"日志等级",twoColumnProxyGroup:"双列显示代理组",type:"类型",process:"进程",sniffHost:"嗅探主机",connectTime:"连接时间",sourcePort:"源端口",destination:"目标",inboundUser:"入站用户",dl:"下载",ul:"上传",dlSpeed:"下载速度",ulSpeed:"上传速度",settings:"设置",speedtestUrl:"测速地址",speedtestTimeout:"测速超时",connectionStyle:"连接样式",card:"卡片",table:"表格",customTableColumns:"自定义表格列",close:"关闭",details:"详情",showGlobalProxy:"显示全局代理节点",dashboard:"面板",theme:"主题",proxyProvider:"代理提供商",ruleProvider:"规则提供商",expire:"到期时间",noExpire:"不限时",updated:"更新于",upgradeUI:"更新面板",updateAllProviders:"更新所有提供商",reloadConfigs:"重载配置",mode:"模式",proxySortType:"代理排序方式",defaultsort:"按配置排序",nameasc:"按名称升序",namedesc:"按名称降序",latencydesc:"按延迟降序",latencyasc:"按延迟升序",language:"语言",automaticDisconnection:"自动断开连接",backend:"后端",upgradeCore:"更新核心",tunMode:"Tun 模式",truncateProxyName:"截断代理名称",sourceIPLabels:"源IP标签",proxyPreviewType:"代理预览类型",auto:"自动",dots:"点",bar:"条",exportSettings:"导出设置",importSettings:"导入设置",hideUnavailable:"隐藏不可用",protocolTips:"您正在尝试连接一个http后端但zashboard是通过https提供的,这可能会导致连接错误,请在浏览器设置中允许不安全的内容,设置在浏览器地址栏左侧。",global:"全局",direct:"直连",quickFilterTip:"快速过滤使用正则表达式进行匹配,支持一键排除符合代理链、主机或目标 IP 的连接。",lowLatencyDesc:"黄色的阈值",mediumLatencyDesc:"红色的阈值",fonts:"字体",statistics:"统计",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:"大"},Ax=sY({locale:$a.value,messages:{[wo.EN_US]:YY,[wo.ZH_CN]:qY,[wo.RU_RU]:jY}});var gh={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */var XY=gh.exports,aM;function KY(){return aM||(aM=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__",h=1,p=2,d=4,g=1,_=2,m=1,y=2,b=4,S=8,x=16,E=32,T=64,M=128,D=256,I=512,k=30,N="...",H=800,te=16,W=1,X=2,j=3,oe=1/0,Q=9007199254740991,fe=17976931348623157e292,_e=NaN,be=4294967295,Ne=be-1,ke=be>>>1,je=[["ary",M],["bind",m],["bindKey",y],["curry",S],["curryRight",x],["flip",I],["partial",E],["partialRight",T],["rearg",D]],He="[object Arguments]",Ye="[object Array]",le="[object AsyncFunction]",Te="[object Boolean]",we="[object Date]",xe="[object DOMException]",Ee="[object Error]",Pe="[object Function]",$="[object GeneratorFunction]",B="[object Map]",ne="[object Number]",me="[object Null]",ce="[object Object]",O="[object Promise]",V="[object Proxy]",Z="[object RegExp]",ae="[object Set]",pe="[object String]",Ce="[object Symbol]",Y="[object Undefined]",ie="[object WeakMap]",Re="[object WeakSet]",Be="[object ArrayBuffer]",ft="[object DataView]",wt="[object Float32Array]",on="[object Float64Array]",yn="[object Int8Array]",kn="[object Int16Array]",Rn="[object Int32Array]",Yn="[object Uint8Array]",si="[object Uint8ClampedArray]",Nn="[object Uint16Array]",Zn="[object Uint32Array]",Mu=/\b__p \+= '';/g,Ru=/\b(__p \+=) '' \+/g,Du=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dp=/&(?:amp|lt|gt|quot|#39);/g,ts=/[&<>"']/g,_y=RegExp(dp.source),wy=RegExp(ts.source),Un=/<%-([\s\S]+?)%>/g,ns=/<%([\s\S]+?)%>/g,pp=/<%=([\s\S]+?)%>/g,vp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gf=/^\w*$/,gp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pu=/[\\^$.*+?()[\]{}|]/g,by=RegExp(Pu.source),Hr=/^\s+/,Iu=/\s/,mp=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yp=/\{\n\/\* \[wrapped with (.+)\] \*/,_p=/,? & /,wp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ro=/[()=,{}\[\]\/\s]/,bp=/\\(\\)?/g,Sp=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mf=/\w*$/,xp=/^[-+]0x[0-9a-f]+$/i,Sy=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,K=/^0o[0-7]+$/i,Ae=/^(?:0|[1-9]\d*)$/,Ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qt=/($^)/,Jn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",fr="\\u0300-\\u036f",Di="\\ufe20-\\ufe2f",ul="\\u20d0-\\u20ff",Qn=fr+Di+ul,yf="\\u2700-\\u27bf",_f="a-z\\xdf-\\xf6\\xf8-\\xff",u$="\\xac\\xb1\\xd7\\xf7",c$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f$="\\u2000-\\u206f",h$=" \\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",nT="A-Z\\xc0-\\xd6\\xd8-\\xde",rT="\\ufe0e\\ufe0f",iT=u$+c$+f$+h$,xy="['’]",d$="["+Dn+"]",oT="["+iT+"]",Cp="["+Qn+"]",aT="\\d+",p$="["+yf+"]",sT="["+_f+"]",lT="[^"+Dn+iT+aT+yf+_f+nT+"]",Cy="\\ud83c[\\udffb-\\udfff]",v$="(?:"+Cp+"|"+Cy+")",uT="[^"+Dn+"]",Ty="(?:\\ud83c[\\udde6-\\uddff]){2}",Ey="[\\ud800-\\udbff][\\udc00-\\udfff]",Lu="["+nT+"]",cT="\\u200d",fT="(?:"+sT+"|"+lT+")",g$="(?:"+Lu+"|"+lT+")",hT="(?:"+xy+"(?:d|ll|m|re|s|t|ve))?",dT="(?:"+xy+"(?:D|LL|M|RE|S|T|VE))?",pT=v$+"?",vT="["+rT+"]?",m$="(?:"+cT+"(?:"+[uT,Ty,Ey].join("|")+")"+vT+pT+")*",y$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gT=vT+pT+m$,w$="(?:"+[p$,Ty,Ey].join("|")+")"+gT,b$="(?:"+[uT+Cp+"?",Cp,Ty,Ey,d$].join("|")+")",S$=RegExp(xy,"g"),x$=RegExp(Cp,"g"),Ay=RegExp(Cy+"(?="+Cy+")|"+b$+gT,"g"),C$=RegExp([Lu+"?"+sT+"+"+hT+"(?="+[oT,Lu,"$"].join("|")+")",g$+"+"+dT+"(?="+[oT,Lu+fT,"$"].join("|")+")",Lu+"?"+fT+"+"+hT,Lu+"+"+dT,_$,y$,aT,w$].join("|"),"g"),T$=RegExp("["+cT+Dn+Qn+rT+"]"),E$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,A$=["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"],M$=-1,_n={};_n[wt]=_n[on]=_n[yn]=_n[kn]=_n[Rn]=_n[Yn]=_n[si]=_n[Nn]=_n[Zn]=!0,_n[He]=_n[Ye]=_n[Be]=_n[Te]=_n[ft]=_n[we]=_n[Ee]=_n[Pe]=_n[B]=_n[ne]=_n[ce]=_n[Z]=_n[ae]=_n[pe]=_n[ie]=!1;var vn={};vn[He]=vn[Ye]=vn[Be]=vn[ft]=vn[Te]=vn[we]=vn[wt]=vn[on]=vn[yn]=vn[kn]=vn[Rn]=vn[B]=vn[ne]=vn[ce]=vn[Z]=vn[ae]=vn[pe]=vn[Ce]=vn[Yn]=vn[si]=vn[Nn]=vn[Zn]=!0,vn[Ee]=vn[Pe]=vn[ie]=!1;var R$={À:"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"},D$={"&":"&","<":"<",">":">",'"':""","'":"'"},P$={"&":"&","<":"<",">":">",""":'"',"'":"'"},I$={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},L$=parseFloat,O$=parseInt,mT=typeof cv=="object"&&cv&&cv.Object===Object&&cv,k$=typeof self=="object"&&self&&self.Object===Object&&self,ir=mT||k$||Function("return this")(),My=t&&!t.nodeType&&t,cl=My&&!0&&e&&!e.nodeType&&e,yT=cl&&cl.exports===My,Ry=yT&&mT.process,Pi=function(){try{var J=cl&&cl.require&&cl.require("util").types;return J||Ry&&Ry.binding&&Ry.binding("util")}catch{}}(),_T=Pi&&Pi.isArrayBuffer,wT=Pi&&Pi.isDate,bT=Pi&&Pi.isMap,ST=Pi&&Pi.isRegExp,xT=Pi&&Pi.isSet,CT=Pi&&Pi.isTypedArray;function li(J,de,se){switch(se.length){case 0:return J.call(de);case 1:return J.call(de,se[0]);case 2:return J.call(de,se[0],se[1]);case 3:return J.call(de,se[0],se[1],se[2])}return J.apply(de,se)}function N$(J,de,se,$e){for(var ht=-1,zt=J==null?0:J.length;++ht-1}function Dy(J,de,se){for(var $e=-1,ht=J==null?0:J.length;++$e-1;);return se}function IT(J,de){for(var se=J.length;se--&&Ou(de,J[se],0)>-1;);return se}function W$(J,de){for(var se=J.length,$e=0;se--;)J[se]===de&&++$e;return $e}var Y$=Oy(R$),j$=Oy(D$);function q$(J){return"\\"+I$[J]}function X$(J,de){return J==null?n:J[de]}function ku(J){return T$.test(J)}function K$(J){return E$.test(J)}function Z$(J){for(var de,se=[];!(de=J.next()).done;)se.push(de.value);return se}function $y(J){var de=-1,se=Array(J.size);return J.forEach(function($e,ht){se[++de]=[ht,$e]}),se}function LT(J,de){return function(se){return J(de(se))}}function os(J,de){for(var se=-1,$e=J.length,ht=0,zt=[];++se<$e;){var jn=J[se];(jn===de||jn===c)&&(J[se]=c,zt[ht++]=se)}return zt}function Ap(J){var de=-1,se=Array(J.size);return J.forEach(function($e){se[++de]=$e}),se}function J$(J){var de=-1,se=Array(J.size);return J.forEach(function($e){se[++de]=[$e,$e]}),se}function Q$(J,de,se){for(var $e=se-1,ht=J.length;++$e-1}function $B(f,v){var w=this.__data__,C=Up(w,f);return C<0?(++this.size,w.push([f,v])):w[C][1]=v,this}da.prototype.clear=OB,da.prototype.delete=kB,da.prototype.get=NB,da.prototype.has=FB,da.prototype.set=$B;function pa(f){var v=-1,w=f==null?0:f.length;for(this.clear();++v=v?f:v)),f}function ki(f,v,w,C,A,P){var U,z=v&h,ee=v&p,ve=v&d;if(w&&(U=A?w(f,C,A,P):w(f)),U!==n)return U;if(!En(f))return f;var ge=gt(f);if(ge){if(U=U4(f),!z)return Ur(f,U)}else{var Se=dr(f),Oe=Se==Pe||Se==$;if(fs(f))return vE(f,z);if(Se==ce||Se==He||Oe&&!A){if(U=ee||Oe?{}:OE(f),!z)return ee?P4(f,e4(U,f)):D4(f,WT(U,f))}else{if(!vn[Se])return A?f:{};U=z4(f,Se,z)}}P||(P=new oo);var We=P.get(f);if(We)return We;P.set(f,U),uA(f)?f.forEach(function(rt){U.add(ki(rt,v,w,rt,f,P))}):sA(f)&&f.forEach(function(rt,Dt){U.set(Dt,ki(rt,v,w,Dt,f,P))});var nt=ve?ee?c_:u_:ee?Gr:er,Ct=ge?n:nt(f);return Ii(Ct||f,function(rt,Dt){Ct&&(Dt=rt,rt=f[Dt]),Ef(U,Dt,ki(rt,v,w,Dt,f,P))}),U}function t4(f){var v=er(f);return function(w){return YT(w,f,v)}}function YT(f,v,w){var C=w.length;if(f==null)return!C;for(f=un(f);C--;){var A=w[C],P=v[A],U=f[A];if(U===n&&!(A in f)||!P(U))return!1}return!0}function jT(f,v,w){if(typeof f!="function")throw new Li(a);return Lf(function(){f.apply(n,w)},v)}function Af(f,v,w,C){var A=-1,P=Tp,U=!0,z=f.length,ee=[],ve=v.length;if(!z)return ee;w&&(v=Sn(v,ui(w))),C?(P=Dy,U=!1):v.length>=i&&(P=wf,U=!1,v=new dl(v));e:for(;++AA?0:A+w),C=C===n||C>A?A:bt(C),C<0&&(C+=A),C=w>C?0:fA(C);w0&&w(z)?v>1?or(z,v-1,w,C,A):is(A,z):C||(A[A.length]=z)}return A}var Wy=bE(),KT=bE(!0);function Oo(f,v){return f&&Wy(f,v,er)}function Yy(f,v){return f&&KT(f,v,er)}function Gp(f,v){return rs(v,function(w){return _a(f[w])})}function vl(f,v){v=us(v,f);for(var w=0,C=v.length;f!=null&&wv}function i4(f,v){return f!=null&&en.call(f,v)}function o4(f,v){return f!=null&&v in un(f)}function a4(f,v,w){return f>=hr(v,w)&&f=120&&ge.length>=120)?new dl(U&&ge):n}ge=f[0];var Se=-1,Oe=z[0];e:for(;++Se-1;)z!==f&&kp.call(z,ee,1),kp.call(f,ee,1);return f}function sE(f,v){for(var w=f?v.length:0,C=w-1;w--;){var A=v[w];if(w==C||A!==P){var P=A;ya(A)?kp.call(f,A,1):n_(f,A)}}return f}function Qy(f,v){return f+$p(HT()*(v-f+1))}function _4(f,v,w,C){for(var A=-1,P=qn(Fp((v-f)/(w||1)),0),U=se(P);P--;)U[C?P:++A]=f,f+=w;return U}function e_(f,v){var w="";if(!f||v<1||v>Q)return w;do v%2&&(w+=f),v=$p(v/2),v&&(f+=f);while(v);return w}function At(f,v){return m_(FE(f,v,Wr),f+"")}function w4(f){return GT(Yu(f))}function b4(f,v){var w=Yu(f);return tv(w,pl(v,0,w.length))}function Df(f,v,w,C){if(!En(f))return f;v=us(v,f);for(var A=-1,P=v.length,U=P-1,z=f;z!=null&&++AA?0:A+v),w=w>A?A:w,w<0&&(w+=A),A=v>w?0:w-v>>>0,v>>>=0;for(var P=se(A);++C>>1,U=f[P];U!==null&&!fi(U)&&(w?U<=v:U=i){var ve=v?null:k4(f);if(ve)return Ap(ve);U=!1,A=wf,ee=new dl}else ee=v?[]:z;e:for(;++C=C?f:Ni(f,v,w)}var pE=hB||function(f){return ir.clearTimeout(f)};function vE(f,v){if(v)return f.slice();var w=f.length,C=NT?NT(w):new f.constructor(w);return f.copy(C),C}function a_(f){var v=new f.constructor(f.byteLength);return new Lp(v).set(new Lp(f)),v}function E4(f,v){var w=v?a_(f.buffer):f.buffer;return new f.constructor(w,f.byteOffset,f.byteLength)}function A4(f){var v=new f.constructor(f.source,mf.exec(f));return v.lastIndex=f.lastIndex,v}function M4(f){return Tf?un(Tf.call(f)):{}}function gE(f,v){var w=v?a_(f.buffer):f.buffer;return new f.constructor(w,f.byteOffset,f.length)}function mE(f,v){if(f!==v){var w=f!==n,C=f===null,A=f===f,P=fi(f),U=v!==n,z=v===null,ee=v===v,ve=fi(v);if(!z&&!ve&&!P&&f>v||P&&U&&ee&&!z&&!ve||C&&U&&ee||!w&&ee||!A)return 1;if(!C&&!P&&!ve&&f=z)return ee;var ve=w[C];return ee*(ve=="desc"?-1:1)}}return f.index-v.index}function yE(f,v,w,C){for(var A=-1,P=f.length,U=w.length,z=-1,ee=v.length,ve=qn(P-U,0),ge=se(ee+ve),Se=!C;++z1?w[A-1]:n,U=A>2?w[2]:n;for(P=f.length>3&&typeof P=="function"?(A--,P):n,U&&Tr(w[0],w[1],U)&&(P=A<3?n:P,A=1),v=un(v);++C-1?A[P?v[U]:U]:n}}function CE(f){return ma(function(v){var w=v.length,C=w,A=Oi.prototype.thru;for(f&&v.reverse();C--;){var P=v[C];if(typeof P!="function")throw new Li(a);if(A&&!U&&Qp(P)=="wrapper")var U=new Oi([],!0)}for(C=U?C:w;++C1&&Ot.reverse(),ge&&eez))return!1;var ve=P.get(f),ge=P.get(v);if(ve&&ge)return ve==v&&ge==f;var Se=-1,Oe=!0,We=w&_?new dl:n;for(P.set(f,v),P.set(v,f);++Se1?"& ":"")+v[C],v=v.join(w>2?", ":" "),f.replace(mp,`{ -/* [wrapped with `+v+`] */ -`)}function W4(f){return gt(f)||yl(f)||!!(BT&&f&&f[BT])}function ya(f,v){var w=typeof f;return v=v??Q,!!v&&(w=="number"||w!="symbol"&&Ae.test(f))&&f>-1&&f%1==0&&f0){if(++v>=H)return arguments[0]}else v=0;return f.apply(n,arguments)}}function tv(f,v){var w=-1,C=f.length,A=C-1;for(v=v===n?C:v;++w1?f[v-1]:n;return w=typeof w=="function"?(f.pop(),w):n,XE(f,w)});function KE(f){var v=R(f);return v.__chain__=!0,v}function nH(f,v){return v(f),f}function nv(f,v){return v(f)}var rH=ma(function(f){var v=f.length,w=v?f[0]:0,C=this.__wrapped__,A=function(P){return Gy(P,f)};return v>1||this.__actions__.length||!(C instanceof It)||!ya(w)?this.thru(A):(C=C.slice(w,+w+(v?1:0)),C.__actions__.push({func:nv,args:[A],thisArg:n}),new Oi(C,this.__chain__).thru(function(P){return v&&!P.length&&P.push(n),P}))});function iH(){return KE(this)}function oH(){return new Oi(this.value(),this.__chain__)}function aH(){this.__values__===n&&(this.__values__=cA(this.value()));var f=this.__index__>=this.__values__.length,v=f?n:this.__values__[this.__index__++];return{done:f,value:v}}function sH(){return this}function lH(f){for(var v,w=this;w instanceof Hp;){var C=zE(w);C.__index__=0,C.__values__=n,v?A.__wrapped__=C:v=C;var A=C;w=w.__wrapped__}return A.__wrapped__=f,v}function uH(){var f=this.__wrapped__;if(f instanceof It){var v=f;return this.__actions__.length&&(v=new It(this)),v=v.reverse(),v.__actions__.push({func:nv,args:[y_],thisArg:n}),new Oi(v,this.__chain__)}return this.thru(y_)}function cH(){return hE(this.__wrapped__,this.__actions__)}var fH=qp(function(f,v,w){en.call(f,w)?++f[w]:va(f,w,1)});function hH(f,v,w){var C=gt(f)?TT:n4;return w&&Tr(f,v,w)&&(v=n),C(f,et(v,3))}function dH(f,v){var w=gt(f)?rs:XT;return w(f,et(v,3))}var pH=xE(GE),vH=xE(WE);function gH(f,v){return or(rv(f,v),1)}function mH(f,v){return or(rv(f,v),oe)}function yH(f,v,w){return w=w===n?1:bt(w),or(rv(f,v),w)}function ZE(f,v){var w=gt(f)?Ii:ss;return w(f,et(v,3))}function JE(f,v){var w=gt(f)?F$:qT;return w(f,et(v,3))}var _H=qp(function(f,v,w){en.call(f,w)?f[w].push(v):va(f,w,[v])});function wH(f,v,w,C){f=zr(f)?f:Yu(f),w=w&&!C?bt(w):0;var A=f.length;return w<0&&(w=qn(A+w,0)),lv(f)?w<=A&&f.indexOf(v,w)>-1:!!A&&Ou(f,v,w)>-1}var bH=At(function(f,v,w){var C=-1,A=typeof v=="function",P=zr(f)?se(f.length):[];return ss(f,function(U){P[++C]=A?li(v,U,w):Mf(U,v,w)}),P}),SH=qp(function(f,v,w){va(f,w,v)});function rv(f,v){var w=gt(f)?Sn:tE;return w(f,et(v,3))}function xH(f,v,w,C){return f==null?[]:(gt(v)||(v=v==null?[]:[v]),w=C?n:w,gt(w)||(w=w==null?[]:[w]),oE(f,v,w))}var CH=qp(function(f,v,w){f[w?0:1].push(v)},function(){return[[],[]]});function TH(f,v,w){var C=gt(f)?Py:RT,A=arguments.length<3;return C(f,et(v,4),w,A,ss)}function EH(f,v,w){var C=gt(f)?$$:RT,A=arguments.length<3;return C(f,et(v,4),w,A,qT)}function AH(f,v){var w=gt(f)?rs:XT;return w(f,av(et(v,3)))}function MH(f){var v=gt(f)?GT:w4;return v(f)}function RH(f,v,w){(w?Tr(f,v,w):v===n)?v=1:v=bt(v);var C=gt(f)?ZB:b4;return C(f,v)}function DH(f){var v=gt(f)?JB:x4;return v(f)}function PH(f){if(f==null)return 0;if(zr(f))return lv(f)?Nu(f):f.length;var v=dr(f);return v==B||v==ae?f.size:Ky(f).length}function IH(f,v,w){var C=gt(f)?Iy:C4;return w&&Tr(f,v,w)&&(v=n),C(f,et(v,3))}var LH=At(function(f,v){if(f==null)return[];var w=v.length;return w>1&&Tr(f,v[0],v[1])?v=[]:w>2&&Tr(v[0],v[1],v[2])&&(v=[v[0]]),oE(f,or(v,1),[])}),iv=dB||function(){return ir.Date.now()};function OH(f,v){if(typeof v!="function")throw new Li(a);return f=bt(f),function(){if(--f<1)return v.apply(this,arguments)}}function QE(f,v,w){return v=w?n:v,v=f&&v==null?f.length:v,ga(f,M,n,n,n,n,v)}function eA(f,v){var w;if(typeof v!="function")throw new Li(a);return f=bt(f),function(){return--f>0&&(w=v.apply(this,arguments)),f<=1&&(v=n),w}}var w_=At(function(f,v,w){var C=m;if(w.length){var A=os(w,Gu(w_));C|=E}return ga(f,C,v,w,A)}),tA=At(function(f,v,w){var C=m|y;if(w.length){var A=os(w,Gu(tA));C|=E}return ga(v,C,f,w,A)});function nA(f,v,w){v=w?n:v;var C=ga(f,S,n,n,n,n,n,v);return C.placeholder=nA.placeholder,C}function rA(f,v,w){v=w?n:v;var C=ga(f,x,n,n,n,n,n,v);return C.placeholder=rA.placeholder,C}function iA(f,v,w){var C,A,P,U,z,ee,ve=0,ge=!1,Se=!1,Oe=!0;if(typeof f!="function")throw new Li(a);v=$i(v)||0,En(w)&&(ge=!!w.leading,Se="maxWait"in w,P=Se?qn($i(w.maxWait)||0,v):P,Oe="trailing"in w?!!w.trailing:Oe);function We($n){var so=C,ba=A;return C=A=n,ve=$n,U=f.apply(ba,so),U}function nt($n){return ve=$n,z=Lf(Dt,v),ge?We($n):U}function Ct($n){var so=$n-ee,ba=$n-ve,xA=v-so;return Se?hr(xA,P-ba):xA}function rt($n){var so=$n-ee,ba=$n-ve;return ee===n||so>=v||so<0||Se&&ba>=P}function Dt(){var $n=iv();if(rt($n))return Ot($n);z=Lf(Dt,Ct($n))}function Ot($n){return z=n,Oe&&C?We($n):(C=A=n,U)}function hi(){z!==n&&pE(z),ve=0,C=ee=A=z=n}function Er(){return z===n?U:Ot(iv())}function di(){var $n=iv(),so=rt($n);if(C=arguments,A=this,ee=$n,so){if(z===n)return nt(ee);if(Se)return pE(z),z=Lf(Dt,v),We(ee)}return z===n&&(z=Lf(Dt,v)),U}return di.cancel=hi,di.flush=Er,di}var kH=At(function(f,v){return jT(f,1,v)}),NH=At(function(f,v,w){return jT(f,$i(v)||0,w)});function FH(f){return ga(f,I)}function ov(f,v){if(typeof f!="function"||v!=null&&typeof v!="function")throw new Li(a);var w=function(){var C=arguments,A=v?v.apply(this,C):C[0],P=w.cache;if(P.has(A))return P.get(A);var U=f.apply(this,C);return w.cache=P.set(A,U)||P,U};return w.cache=new(ov.Cache||pa),w}ov.Cache=pa;function av(f){if(typeof f!="function")throw new Li(a);return function(){var v=arguments;switch(v.length){case 0:return!f.call(this);case 1:return!f.call(this,v[0]);case 2:return!f.call(this,v[0],v[1]);case 3:return!f.call(this,v[0],v[1],v[2])}return!f.apply(this,v)}}function $H(f){return eA(2,f)}var BH=T4(function(f,v){v=v.length==1&>(v[0])?Sn(v[0],ui(et())):Sn(or(v,1),ui(et()));var w=v.length;return At(function(C){for(var A=-1,P=hr(C.length,w);++A=v}),yl=JT(function(){return arguments}())?JT:function(f){return Pn(f)&&en.call(f,"callee")&&!$T.call(f,"callee")},gt=se.isArray,eU=_T?ui(_T):l4;function zr(f){return f!=null&&sv(f.length)&&!_a(f)}function Fn(f){return Pn(f)&&zr(f)}function tU(f){return f===!0||f===!1||Pn(f)&&Cr(f)==Te}var fs=vB||I_,nU=wT?ui(wT):u4;function rU(f){return Pn(f)&&f.nodeType===1&&!Of(f)}function iU(f){if(f==null)return!0;if(zr(f)&&(gt(f)||typeof f=="string"||typeof f.splice=="function"||fs(f)||Wu(f)||yl(f)))return!f.length;var v=dr(f);if(v==B||v==ae)return!f.size;if(If(f))return!Ky(f).length;for(var w in f)if(en.call(f,w))return!1;return!0}function oU(f,v){return Rf(f,v)}function aU(f,v,w){w=typeof w=="function"?w:n;var C=w?w(f,v):n;return C===n?Rf(f,v,n,w):!!C}function S_(f){if(!Pn(f))return!1;var v=Cr(f);return v==Ee||v==xe||typeof f.message=="string"&&typeof f.name=="string"&&!Of(f)}function sU(f){return typeof f=="number"&&VT(f)}function _a(f){if(!En(f))return!1;var v=Cr(f);return v==Pe||v==$||v==le||v==V}function aA(f){return typeof f=="number"&&f==bt(f)}function sv(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=Q}function En(f){var v=typeof f;return f!=null&&(v=="object"||v=="function")}function Pn(f){return f!=null&&typeof f=="object"}var sA=bT?ui(bT):f4;function lU(f,v){return f===v||Xy(f,v,h_(v))}function uU(f,v,w){return w=typeof w=="function"?w:n,Xy(f,v,h_(v),w)}function cU(f){return lA(f)&&f!=+f}function fU(f){if(q4(f))throw new ht(o);return QT(f)}function hU(f){return f===null}function dU(f){return f==null}function lA(f){return typeof f=="number"||Pn(f)&&Cr(f)==ne}function Of(f){if(!Pn(f)||Cr(f)!=ce)return!1;var v=Op(f);if(v===null)return!0;var w=en.call(v,"constructor")&&v.constructor;return typeof w=="function"&&w instanceof w&&Dp.call(w)==uB}var x_=ST?ui(ST):h4;function pU(f){return aA(f)&&f>=-Q&&f<=Q}var uA=xT?ui(xT):d4;function lv(f){return typeof f=="string"||!gt(f)&&Pn(f)&&Cr(f)==pe}function fi(f){return typeof f=="symbol"||Pn(f)&&Cr(f)==Ce}var Wu=CT?ui(CT):p4;function vU(f){return f===n}function gU(f){return Pn(f)&&dr(f)==ie}function mU(f){return Pn(f)&&Cr(f)==Re}var yU=Jp(Zy),_U=Jp(function(f,v){return f<=v});function cA(f){if(!f)return[];if(zr(f))return lv(f)?io(f):Ur(f);if(bf&&f[bf])return Z$(f[bf]());var v=dr(f),w=v==B?$y:v==ae?Ap:Yu;return w(f)}function wa(f){if(!f)return f===0?f:0;if(f=$i(f),f===oe||f===-oe){var v=f<0?-1:1;return v*fe}return f===f?f:0}function bt(f){var v=wa(f),w=v%1;return v===v?w?v-w:v:0}function fA(f){return f?pl(bt(f),0,be):0}function $i(f){if(typeof f=="number")return f;if(fi(f))return _e;if(En(f)){var v=typeof f.valueOf=="function"?f.valueOf():f;f=En(v)?v+"":v}if(typeof f!="string")return f===0?f:+f;f=DT(f);var w=Sy.test(f);return w||K.test(f)?O$(f.slice(2),w?2:8):xp.test(f)?_e:+f}function hA(f){return ko(f,Gr(f))}function wU(f){return f?pl(bt(f),-Q,Q):f===0?f:0}function jt(f){return f==null?"":ci(f)}var bU=Uu(function(f,v){if(If(v)||zr(v)){ko(v,er(v),f);return}for(var w in v)en.call(v,w)&&Ef(f,w,v[w])}),dA=Uu(function(f,v){ko(v,Gr(v),f)}),uv=Uu(function(f,v,w,C){ko(v,Gr(v),f,C)}),SU=Uu(function(f,v,w,C){ko(v,er(v),f,C)}),xU=ma(Gy);function CU(f,v){var w=Hu(f);return v==null?w:WT(w,v)}var TU=At(function(f,v){f=un(f);var w=-1,C=v.length,A=C>2?v[2]:n;for(A&&Tr(v[0],v[1],A)&&(C=1);++w1),P}),ko(f,c_(f),w),C&&(w=ki(w,h|p|d,N4));for(var A=v.length;A--;)n_(w,v[A]);return w});function zU(f,v){return vA(f,av(et(v)))}var GU=ma(function(f,v){return f==null?{}:m4(f,v)});function vA(f,v){if(f==null)return{};var w=Sn(c_(f),function(C){return[C]});return v=et(v),aE(f,w,function(C,A){return v(C,A[0])})}function WU(f,v,w){v=us(v,f);var C=-1,A=v.length;for(A||(A=1,f=n);++Cv){var C=f;f=v,v=C}if(w||f%1||v%1){var A=HT();return hr(f+A*(v-f+L$("1e-"+((A+"").length-1))),v)}return Qy(f,v)}var nz=zu(function(f,v,w){return v=v.toLowerCase(),f+(w?yA(v):v)});function yA(f){return E_(jt(f).toLowerCase())}function _A(f){return f=jt(f),f&&f.replace(Ue,Y$).replace(x$,"")}function rz(f,v,w){f=jt(f),v=ci(v);var C=f.length;w=w===n?C:pl(bt(w),0,C);var A=w;return w-=v.length,w>=0&&f.slice(w,A)==v}function iz(f){return f=jt(f),f&&wy.test(f)?f.replace(ts,j$):f}function oz(f){return f=jt(f),f&&by.test(f)?f.replace(Pu,"\\$&"):f}var az=zu(function(f,v,w){return f+(w?"-":"")+v.toLowerCase()}),sz=zu(function(f,v,w){return f+(w?" ":"")+v.toLowerCase()}),lz=SE("toLowerCase");function uz(f,v,w){f=jt(f),v=bt(v);var C=v?Nu(f):0;if(!v||C>=v)return f;var A=(v-C)/2;return Zp($p(A),w)+f+Zp(Fp(A),w)}function cz(f,v,w){f=jt(f),v=bt(v);var C=v?Nu(f):0;return v&&C>>0,w?(f=jt(f),f&&(typeof v=="string"||v!=null&&!x_(v))&&(v=ci(v),!v&&ku(f))?cs(io(f),0,w):f.split(v,w)):[]}var mz=zu(function(f,v,w){return f+(w?" ":"")+E_(v)});function yz(f,v,w){return f=jt(f),w=w==null?0:pl(bt(w),0,f.length),v=ci(v),f.slice(w,w+v.length)==v}function _z(f,v,w){var C=R.templateSettings;w&&Tr(f,v,w)&&(v=n),f=jt(f),v=uv({},v,C,RE);var A=uv({},v.imports,C.imports,RE),P=er(A),U=Fy(A,P),z,ee,ve=0,ge=v.interpolate||Qt,Se="__p += '",Oe=By((v.escape||Qt).source+"|"+ge.source+"|"+(ge===pp?Sp:Qt).source+"|"+(v.evaluate||Qt).source+"|$","g"),We="//# sourceURL="+(en.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++M$+"]")+` -`;f.replace(Oe,function(rt,Dt,Ot,hi,Er,di){return Ot||(Ot=hi),Se+=f.slice(ve,di).replace(Jn,q$),Dt&&(z=!0,Se+=`' + -__e(`+Dt+`) + -'`),Er&&(ee=!0,Se+=`'; -`+Er+`; -__p += '`),Ot&&(Se+=`' + -((__t = (`+Ot+`)) == null ? '' : __t) + -'`),ve=di+rt.length,rt}),Se+=`'; -`;var nt=en.call(v,"variable")&&v.variable;if(!nt)Se=`with (obj) { -`+Se+` -} -`;else if(ro.test(nt))throw new ht(s);Se=(ee?Se.replace(Mu,""):Se).replace(Ru,"$1").replace(Du,"$1;"),Se="function("+(nt||"obj")+`) { -`+(nt?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(z?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Se+`return __p -}`;var Ct=bA(function(){return zt(P,We+"return "+Se).apply(n,U)});if(Ct.source=Se,S_(Ct))throw Ct;return Ct}function wz(f){return jt(f).toLowerCase()}function bz(f){return jt(f).toUpperCase()}function Sz(f,v,w){if(f=jt(f),f&&(w||v===n))return DT(f);if(!f||!(v=ci(v)))return f;var C=io(f),A=io(v),P=PT(C,A),U=IT(C,A)+1;return cs(C,P,U).join("")}function xz(f,v,w){if(f=jt(f),f&&(w||v===n))return f.slice(0,OT(f)+1);if(!f||!(v=ci(v)))return f;var C=io(f),A=IT(C,io(v))+1;return cs(C,0,A).join("")}function Cz(f,v,w){if(f=jt(f),f&&(w||v===n))return f.replace(Hr,"");if(!f||!(v=ci(v)))return f;var C=io(f),A=PT(C,io(v));return cs(C,A).join("")}function Tz(f,v){var w=k,C=N;if(En(v)){var A="separator"in v?v.separator:A;w="length"in v?bt(v.length):w,C="omission"in v?ci(v.omission):C}f=jt(f);var P=f.length;if(ku(f)){var U=io(f);P=U.length}if(w>=P)return f;var z=w-Nu(C);if(z<1)return C;var ee=U?cs(U,0,z).join(""):f.slice(0,z);if(A===n)return ee+C;if(U&&(z+=ee.length-z),x_(A)){if(f.slice(z).search(A)){var ve,ge=ee;for(A.global||(A=By(A.source,jt(mf.exec(A))+"g")),A.lastIndex=0;ve=A.exec(ge);)var Se=ve.index;ee=ee.slice(0,Se===n?z:Se)}}else if(f.indexOf(ci(A),z)!=z){var Oe=ee.lastIndexOf(A);Oe>-1&&(ee=ee.slice(0,Oe))}return ee+C}function Ez(f){return f=jt(f),f&&_y.test(f)?f.replace(dp,tB):f}var Az=zu(function(f,v,w){return f+(w?" ":"")+v.toUpperCase()}),E_=SE("toUpperCase");function wA(f,v,w){return f=jt(f),v=w?n:v,v===n?K$(f)?iB(f):H$(f):f.match(v)||[]}var bA=At(function(f,v){try{return li(f,n,v)}catch(w){return S_(w)?w:new ht(w)}}),Mz=ma(function(f,v){return Ii(v,function(w){w=No(w),va(f,w,w_(f[w],f))}),f});function Rz(f){var v=f==null?0:f.length,w=et();return f=v?Sn(f,function(C){if(typeof C[1]!="function")throw new Li(a);return[w(C[0]),C[1]]}):[],At(function(C){for(var A=-1;++AQ)return[];var w=be,C=hr(f,be);v=et(v),f-=be;for(var A=Ny(C,v);++w0||v<0)?new It(w):(f<0?w=w.takeRight(-f):f&&(w=w.drop(f)),v!==n&&(v=bt(v),w=v<0?w.dropRight(-v):w.take(v-f)),w)},It.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},It.prototype.toArray=function(){return this.take(be)},Oo(It.prototype,function(f,v){var w=/^(?:filter|find|map|reject)|While$/.test(v),C=/^(?:head|last)$/.test(v),A=R[C?"take"+(v=="last"?"Right":""):v],P=C||/^find/.test(v);A&&(R.prototype[v]=function(){var U=this.__wrapped__,z=C?[1]:arguments,ee=U instanceof It,ve=z[0],ge=ee||gt(U),Se=function(Dt){var Ot=A.apply(R,is([Dt],z));return C&&Oe?Ot[0]:Ot};ge&&w&&typeof ve=="function"&&ve.length!=1&&(ee=ge=!1);var Oe=this.__chain__,We=!!this.__actions__.length,nt=P&&!Oe,Ct=ee&&!We;if(!P&&ge){U=Ct?U:new It(this);var rt=f.apply(U,z);return rt.__actions__.push({func:nv,args:[Se],thisArg:n}),new Oi(rt,Oe)}return nt&&Ct?f.apply(this,z):(rt=this.thru(Se),nt?C?rt.value()[0]:rt.value():rt)})}),Ii(["pop","push","shift","sort","splice","unshift"],function(f){var v=Mp[f],w=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",C=/^(?:pop|shift)$/.test(f);R.prototype[f]=function(){var A=arguments;if(C&&!this.__chain__){var P=this.value();return v.apply(gt(P)?P:[],A)}return this[w](function(U){return v.apply(gt(U)?U:[],A)})}}),Oo(It.prototype,function(f,v){var w=R[v];if(w){var C=w.name+"";en.call(Vu,C)||(Vu[C]=[]),Vu[C].push({name:v,func:w})}}),Vu[Xp(n,y).name]=[{name:"wrapper",func:n}],It.prototype.clone=EB,It.prototype.reverse=AB,It.prototype.value=MB,R.prototype.at=rH,R.prototype.chain=iH,R.prototype.commit=oH,R.prototype.next=aH,R.prototype.plant=lH,R.prototype.reverse=uH,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=cH,R.prototype.first=R.prototype.head,bf&&(R.prototype[bf]=sH),R},Fu=oB();cl?((cl.exports=Fu)._=Fu,My._=Fu):ir._=Fu}).call(XY)}(gh,gh.exports)),gh.exports}var Mo=KY();const ZY=h0(Mo),ar=[];for(let e=0;e<256;++e)ar.push((e+256).toString(16).slice(1));function JY(e,t=0){return(ar[e[t+0]]+ar[e[t+1]]+ar[e[t+2]]+ar[e[t+3]]+"-"+ar[e[t+4]]+ar[e[t+5]]+"-"+ar[e[t+6]]+ar[e[t+7]]+"-"+ar[e[t+8]]+ar[e[t+9]]+"-"+ar[e[t+10]]+ar[e[t+11]]+ar[e[t+12]]+ar[e[t+13]]+ar[e[t+14]]+ar[e[t+15]]).toLowerCase()}let J_;const QY=new Uint8Array(16);function ej(){if(!J_){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");J_=crypto.getRandomValues.bind(crypto)}return J_(QY)}const tj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),sM={randomUUID:tj};function nj(e,t,n){if(sM.randomUUID&&!t&&!e)return sM.randomUUID();e=e||{};const r=e.random||(e.rng||ej)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,JY(r)}const oa=Ht("setup/api-list",[]),Sr=Ht("setup/active-uuid",""),qs=Ie(()=>oa.value.find(e=>e.uuid===Sr.value)),rj=e=>{const t=oa.value.find(r=>Mo.isEqual(Mo.omit(r,"uuid"),e));if(t){Sr.value=t.uuid;return}const n=nj();oa.value.push({...e,uuid:n}),Sr.value=n},jO=e=>{oa.value=oa.value.filter(t=>t.uuid!==e)},Zl="GLOBAL",gb=Me([]),Ro=Me({}),Mx=Me({}),Zc=Ht("config/ipv6-map",{}),Pc=Me([]),I0=e=>Mx.value[cu(e)],ij=e=>Zc.value[cu(e)],Xs=async()=>{const{data:e}=await Kq(),{data:t}=await Jq(),n=e.proxies[Zl].all??[];Ro.value=e.proxies,gb.value=Object.values(e.proxies).filter(r=>{var i;return((i=r.all)==null?void 0:i.length)&&r.name!==Zl&&!(r!=null&&r.hidden)}).sort((r,i)=>n.indexOf(r.name)-n.indexOf(i.name)).map(r=>r.name),Mx.value=Object.fromEntries(Object.entries(e.proxies).map(([r,i])=>(uu.value&&uj(i)&&(Zc.value[r]=!0),[r,lj(i)]))),Pc.value=Object.values(t.providers).filter(r=>r.name!=="default"&&r.vehicleType!=="Compatible")},oj=async(e,t)=>{await Zq(e,t),Ro.value[e].now=t,Rg.value&&bo.value.filter(n=>n.chains.includes(e)).forEach(n=>V0(n.id)),Xs()},aj=async e=>{if(uu.value)try{const{data:n}=await TM(e,Cx,4e3);Zc.value[cu(e)]=n.delay>qo}catch{Zc.value[cu(e)]=!1}const{data:t}=await TM(e,Hh.value,Uh.value);Mx.value[cu(e)]=t.delay},sj=async e=>{var t,n;if(uu.value)try{const{data:r}=await EM(e,Cx,4e3);(t=Ro.value[e].all)==null||t.forEach(i=>{Zc.value[cu(i)]=r[i]>qo})}catch{(n=Ro.value[e].all)==null||n.forEach(r=>{Zc.value[cu(r)]=!1})}await EM(e,Hh.value,Uh.value),await Xs()},lj=e=>{var t;return((t=Mo.last(e.history))==null?void 0:t.delay)??0},uj=e=>{var n,r,i;const t=(r=(n=e.extra)==null?void 0:n[Cx])==null?void 0:r.history;return(((i=Mo.last(t))==null?void 0:i.delay)??0)>qo},cu=e=>{let t=Ro.value[e];if(!e||!t)return e;for(;t.now&&t.now!==t.name;){const n=Ro.value[t.now];if(!n)return t.name;t=n}return t.name},nu=60,fu=new Array(nu).fill(0).map((e,t)=>({name:t,value:e})),Rx=Me(0),mh=Me([...fu]),Og=Me([...fu]),Dx=Me(0),Px=Me(0),yh=Me([...fu]),_h=Me([...fu]);let _v;const cj=()=>{_v==null||_v(),yh.value=[...fu],_h.value=[...fu],mh.value=[...fu];const{data:e,close:t}=cX(),n=Lt(()=>e.value,a=>{if(!a)return;const s=Date.now().valueOf();Rx.value=a.inuse,mh.value.push({value:a.inuse,name:s}),Og.value.push({value:bo.value.length,name:s}),mh.value=mh.value.slice(-1*nu),Og.value=Og.value.slice(-1*nu)}),{data:r,close:i}=fX(),o=Lt(()=>r.value,a=>{if(!a)return;const s=Date.now().valueOf();Dx.value=a.down,Px.value=a.up,yh.value.push({value:a.down,name:s}),_h.value.push({value:a.up,name:s}),yh.value=yh.value.slice(-1*nu),_h.value=_h.value.slice(-1*nu)});_v=()=>{t(),i(),n(),o()}},fj=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],hj=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],dj=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],pj=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],lM=(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 vj(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?pj:dj:t.binary?hj:fj,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=lM(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=lM(Number(e),t.locale,a),u=n[s];return o+l+r+u}const mn=(e,t)=>vj(e,{binary:!1,...t}),qO=VY(),XO=Ie(()=>qO.width.value>1280);Ie(()=>qO.width.value<640);const L0=e=>ta(e).locale($a.value).fromNow(),KO=e=>{const t=Ro.value[e];return t?["direct","reject","reject-drop","pass"].includes(t.type.toLowerCase())||!!t.all:!1},wv=e=>{if(KO(e))return-1;const t=I0(e);return t===0?1/0:t},ZO=e=>{switch(e=[...e],Dg.value&&(e=e.filter(t=>KO(t)||I0(t)>0)),Mg.value){case Ls.DEFAULT:return e;case Ls.NAME_ASC:return e.sort((t,n)=>t.localeCompare(n));case Ls.NAME_DESC:return e.sort((t,n)=>n.localeCompare(t));case Ls.LATENCY_ASC:return e.sort((t,n)=>wv(t)-wv(n));case Ls.LATENCY_DESC:return e.sort((t,n)=>wv(n)-wv(t))}},Sm=e=>{const t=e.includes(":");for(const n in _i.value)if(n.startsWith("/")){if(new RegExp(n,"i").test(e))return _i.value[n]}else if(e===n||t&&e.endsWith(n))return _i.value[n];return e},JO=e=>e.metadata.process||e.metadata.processPath.replace(/^.*[/\\](.*)$/,"$1")||"-",QO=(e,t)=>{const{suffix:n="",binary:r=!1}=t;return e.data.name -
- ${e.seriesName} - (${ta(e.data.name).format("HH:mm:ss")}): ${mn(e.data.value,{binary:r})}${n} - `},uM=()=>{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)},xm=()=>{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()},_u=e=>`${e.protocol}://${e.host}:${e.port}${e.secondaryPath||""}`;function ek(e,t){return function(){return e.apply(t,arguments)}}const{toString:gj}=Object.prototype,{getPrototypeOf:Ix}=Object,O0=(e=>t=>{const n=gj.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Io=e=>(e=e.toLowerCase(),t=>O0(t)===e),k0=e=>t=>typeof t===e,{isArray:af}=Array,Pd=k0("undefined");function mj(e){return e!==null&&!Pd(e)&&e.constructor!==null&&!Pd(e.constructor)&&Ti(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tk=Io("ArrayBuffer");function yj(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tk(e.buffer),t}const _j=k0("string"),Ti=k0("function"),nk=k0("number"),N0=e=>e!==null&&typeof e=="object",wj=e=>e===!0||e===!1,kg=e=>{if(O0(e)!=="object")return!1;const t=Ix(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bj=Io("Date"),Sj=Io("File"),xj=Io("Blob"),Cj=Io("FileList"),Tj=e=>N0(e)&&Ti(e.pipe),Ej=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ti(e.append)&&((t=O0(e))==="formdata"||t==="object"&&Ti(e.toString)&&e.toString()==="[object FormData]"))},Aj=Io("URLSearchParams"),[Mj,Rj,Dj,Pj]=["ReadableStream","Request","Response","Headers"].map(Io),Ij=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),af(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ru=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ik=e=>!Pd(e)&&e!==ru;function mb(){const{caseless:e}=ik(this)&&this||{},t={},n=(r,i)=>{const o=e&&rk(t,i)||i;kg(t[o])&&kg(r)?t[o]=mb(t[o],r):kg(r)?t[o]=mb({},r):af(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(rp(t,(i,o)=>{n&&Ti(i)?e[o]=ek(i,n):e[o]=i},{allOwnKeys:r}),e),Oj=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kj=(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)},Nj=(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&&Ix(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fj=(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},$j=e=>{if(!e)return null;if(af(e))return e;let t=e.length;if(!nk(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Bj=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ix(Uint8Array)),Vj=(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])}},Hj=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Uj=Io("HTMLFormElement"),zj=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),cM=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gj=Io("RegExp"),ok=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};rp(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},Wj=e=>{ok(e,(t,n)=>{if(Ti(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ti(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+"'")})}})},Yj=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return af(e)?r(e):r(String(e).split(t)),n},jj=()=>{},qj=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Q_="abcdefghijklmnopqrstuvwxyz",fM="0123456789",ak={DIGIT:fM,ALPHA:Q_,ALPHA_DIGIT:Q_+Q_.toUpperCase()+fM},Xj=(e=16,t=ak.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Kj(e){return!!(e&&Ti(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Zj=e=>{const t=new Array(10),n=(r,i)=>{if(N0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=af(r)?[]:{};return rp(r,(a,s)=>{const l=n(a,i+1);!Pd(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},Jj=Io("AsyncFunction"),Qj=e=>e&&(N0(e)||Ti(e))&&Ti(e.then)&&Ti(e.catch),sk=((e,t)=>e?setImmediate:t?((n,r)=>(ru.addEventListener("message",({source:i,data:o})=>{i===ru&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ru.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ti(ru.postMessage)),eq=typeof queueMicrotask<"u"?queueMicrotask.bind(ru):typeof process<"u"&&process.nextTick||sk,he={isArray:af,isArrayBuffer:tk,isBuffer:mj,isFormData:Ej,isArrayBufferView:yj,isString:_j,isNumber:nk,isBoolean:wj,isObject:N0,isPlainObject:kg,isReadableStream:Mj,isRequest:Rj,isResponse:Dj,isHeaders:Pj,isUndefined:Pd,isDate:bj,isFile:Sj,isBlob:xj,isRegExp:Gj,isFunction:Ti,isStream:Tj,isURLSearchParams:Aj,isTypedArray:Bj,isFileList:Cj,forEach:rp,merge:mb,extend:Lj,trim:Ij,stripBOM:Oj,inherits:kj,toFlatObject:Nj,kindOf:O0,kindOfTest:Io,endsWith:Fj,toArray:$j,forEachEntry:Vj,matchAll:Hj,isHTMLForm:Uj,hasOwnProperty:cM,hasOwnProp:cM,reduceDescriptors:ok,freezeMethods:Wj,toObjectSet:Yj,toCamelCase:zj,noop:jj,toFiniteNumber:qj,findKey:rk,global:ru,isContextDefined:ik,ALPHABET:ak,generateString:Xj,isSpecCompliantForm:Kj,toJSONObject:Zj,isAsyncFn:Jj,isThenable:Qj,setImmediate:sk,asap:eq};function mt(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)}he.inherits(mt,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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const lk=mt.prototype,uk={};["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=>{uk[e]={value:e}});Object.defineProperties(mt,uk);Object.defineProperty(lk,"isAxiosError",{value:!0});mt.from=(e,t,n,r,i,o)=>{const a=Object.create(lk);return he.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),mt.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const tq=null;function yb(e){return he.isPlainObject(e)||he.isArray(e)}function ck(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function hM(e,t,n){return e?e.concat(t).map(function(i,o){return i=ck(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function nq(e){return he.isArray(e)&&!e.some(yb)}const rq=he.toFlatObject(he,{},null,function(t){return/^is[A-Z]/.test(t)});function F0(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,m){return!he.isUndefined(m[_])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(he.isDate(g))return g.toISOString();if(!l&&he.isBlob(g))throw new mt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(g)||he.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,_,m){let y=g;if(g&&!m&&typeof g=="object"){if(he.endsWith(_,"{}"))_=r?_:_.slice(0,-2),g=JSON.stringify(g);else if(he.isArray(g)&&nq(g)||(he.isFileList(g)||he.endsWith(_,"[]"))&&(y=he.toArray(g)))return _=ck(_),y.forEach(function(S,x){!(he.isUndefined(S)||S===null)&&t.append(a===!0?hM([_],x,o):a===null?_:_+"[]",u(S))}),!1}return yb(g)?!0:(t.append(hM(m,_,o),u(g)),!1)}const h=[],p=Object.assign(rq,{defaultVisitor:c,convertValue:u,isVisitable:yb});function d(g,_){if(!he.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+_.join("."));h.push(g),he.forEach(g,function(y,b){(!(he.isUndefined(y)||y===null)&&i.call(t,y,he.isString(b)?b.trim():b,_,p))===!0&&d(y,_?_.concat(b):[b])}),h.pop()}}if(!he.isObject(e))throw new TypeError("data must be an object");return d(e),t}function dM(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lx(e,t){this._pairs=[],e&&F0(e,this,t)}const fk=Lx.prototype;fk.append=function(t,n){this._pairs.push([t,n])};fk.toString=function(t){const n=t?function(r){return t.call(this,r,dM)}:dM;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function iq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hk(e,t,n){if(!t)return e;const r=n&&n.encode||iq;he.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=he.isURLSearchParams(t)?t.toString():new Lx(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class pM{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){he.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dk={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},oq=typeof URLSearchParams<"u"?URLSearchParams:Lx,aq=typeof FormData<"u"?FormData:null,sq=typeof Blob<"u"?Blob:null,lq={isBrowser:!0,classes:{URLSearchParams:oq,FormData:aq,Blob:sq},protocols:["http","https","file","blob","url","data"]},Ox=typeof window<"u"&&typeof document<"u",_b=typeof navigator=="object"&&navigator||void 0,uq=Ox&&(!_b||["ReactNative","NativeScript","NS"].indexOf(_b.product)<0),cq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fq=Ox&&window.location.href||"http://localhost",hq=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ox,hasStandardBrowserEnv:uq,hasStandardBrowserWebWorkerEnv:cq,navigator:_b,origin:fq},Symbol.toStringTag,{value:"Module"})),br={...hq,...lq};function dq(e,t){return F0(e,new br.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return br.isNode&&he.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pq(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vq(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&he.isArray(i)?i.length:a,l?(he.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!he.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&he.isArray(i[a])&&(i[a]=vq(i[a])),!s)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(r,i)=>{t(pq(r),i,n,0)}),n}return null}function gq(e,t,n){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ip={transitional:dk,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=he.isObject(t);if(o&&he.isHTMLForm(t)&&(t=new FormData(t)),he.isFormData(t))return i?JSON.stringify(pk(t)):t;if(he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t)||he.isReadableStream(t))return t;if(he.isArrayBufferView(t))return t.buffer;if(he.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 dq(t,this.formSerializer).toString();if((s=he.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return F0(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),gq(t)):t}],transformResponse:[function(t){const n=this.transitional||ip.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(he.isResponse(t)||he.isReadableStream(t))return t;if(t&&he.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"?mt.from(s,mt.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:br.classes.FormData,Blob:br.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{ip.headers[e]={}});const mq=he.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"]),yq=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]&&mq[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},vM=Symbol("internals");function Vf(e){return e&&String(e).trim().toLowerCase()}function Ng(e){return e===!1||e==null?e:he.isArray(e)?e.map(Ng):String(e)}function _q(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 wq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function e1(e,t,n,r,i){if(he.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!he.isString(t)){if(he.isString(r))return t.indexOf(r)!==-1;if(he.isRegExp(r))return r.test(t)}}function bq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sq(e,t){const n=he.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 ei{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Vf(l);if(!c)throw new Error("header name must be a non-empty string");const h=he.findKey(i,c);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||l]=Ng(s))}const a=(s,l)=>he.forEach(s,(u,c)=>o(u,c,l));if(he.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(he.isString(t)&&(t=t.trim())&&!wq(t))a(yq(t),n);else if(he.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=Vf(t),t){const r=he.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return _q(i);if(he.isFunction(n))return n.call(this,i,r);if(he.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vf(t),t){const r=he.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||e1(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Vf(a),a){const s=he.findKey(r,a);s&&(!n||e1(r,r[s],s,n))&&(delete r[s],i=!0)}}return he.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||e1(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return he.forEach(this,(i,o)=>{const a=he.findKey(r,o);if(a){n[a]=Ng(i),delete n[o];return}const s=t?bq(o):String(o).trim();s!==o&&delete n[o],n[s]=Ng(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return he.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&he.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[vM]=this[vM]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Vf(a);r[s]||(Sq(i,a),r[s]=!0)}return he.isArray(t)?t.forEach(o):o(t),this}}ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(ei.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});he.freezeMethods(ei);function t1(e,t){const n=this||ip,r=t||n,i=ei.from(r.headers);let o=r.data;return he.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function vk(e){return!!(e&&e.__CANCEL__)}function sf(e,t,n){mt.call(this,e??"canceled",mt.ERR_CANCELED,t,n),this.name="CanceledError"}he.inherits(sf,mt,{__CANCEL__:!0});function gk(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new mt("Request failed with status code "+n.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xq(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Cq(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 h=o,p=0;for(;h!==i;)p+=n[h++],h=h%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),h=c-n;h>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-h)))},()=>i&&a(i)]}const Cm=(e,t,n=3)=>{let r=0;const i=Cq(50,250);return Tq(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const h={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(h)},n)},gM=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},mM=e=>(...t)=>he.asap(()=>e(...t)),Eq=br.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,br.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,Aq=br.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),he.isString(r)&&a.push("path="+r),he.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 Mq(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rq(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mk(e,t){return e&&!Mq(t)?Rq(e,t):t}const yM=e=>e instanceof ei?{...e}:e;function wu(e,t){t=t||{};const n={};function r(u,c,h,p){return he.isPlainObject(u)&&he.isPlainObject(c)?he.merge.call({caseless:p},u,c):he.isPlainObject(c)?he.merge({},c):he.isArray(c)?c.slice():c}function i(u,c,h,p){if(he.isUndefined(c)){if(!he.isUndefined(u))return r(void 0,u,h,p)}else return r(u,c,h,p)}function o(u,c){if(!he.isUndefined(c))return r(void 0,c)}function a(u,c){if(he.isUndefined(c)){if(!he.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,h){if(h in t)return r(u,c);if(h 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,h)=>i(yM(u),yM(c),h,!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(c){const h=l[c]||i,p=h(e[c],t[c],c);he.isUndefined(p)&&h!==s||(n[c]=p)}),n}const yk=e=>{const t=wu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=ei.from(a),t.url=hk(mk(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(he.isFormData(n)){if(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(br.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||r!==!1&&Eq(t.url))){const u=i&&o&&Aq.read(o);u&&a.set(i,u)}return t},Dq=typeof XMLHttpRequest<"u",Pq=Dq&&function(e){return new Promise(function(n,r){const i=yk(e);let o=i.data;const a=ei.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,h,p,d,g;function _(){d&&d(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const S=ei.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};gk(function(M){n(M),_()},function(M){r(M),_()},E),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new mt("Request aborted",mt.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new mt("Network Error",mt.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||dk;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new mt(x,E.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,e,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&he.forEach(a.toJSON(),function(x,E){m.setRequestHeader(E,x)}),he.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([p,g]=Cm(u,!0),m.addEventListener("progress",p)),l&&m.upload&&([h,d]=Cm(l),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",d)),(i.cancelToken||i.signal)&&(c=S=>{m&&(r(!S||S.type?new sf(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const b=xq(i.url);if(b&&br.protocols.indexOf(b)===-1){r(new mt("Unsupported protocol "+b+":",mt.ERR_BAD_REQUEST,e));return}m.send(o||null)})},Iq=(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 mt?c:new sf(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,o(new mt(`timeout ${t} of ms exceeded`,mt.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=()=>he.asap(s),l}},Lq=function*(e,t){let n=e.byteLength;if(n{const i=Oq(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 h=c.byteLength;if(n){let p=o+=h;n(p)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},$0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_k=$0&&typeof ReadableStream=="function",Nq=$0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),wk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Fq=_k&&wk(()=>{let e=!1;const t=new Request(br.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wM=64*1024,wb=_k&&wk(()=>he.isReadableStream(new Response("").body)),Tm={stream:wb&&(e=>e.body)};$0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Tm[t]&&(Tm[t]=he.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new mt(`Response type '${t}' is not supported`,mt.ERR_NOT_SUPPORT,r)})})})(new Response);const $q=async e=>{if(e==null)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e))return(await new Request(br.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(he.isArrayBufferView(e)||he.isArrayBuffer(e))return e.byteLength;if(he.isURLSearchParams(e)&&(e=e+""),he.isString(e))return(await Nq(e)).byteLength},Bq=async(e,t)=>{const n=he.toFiniteNumber(e.getContentLength());return n??$q(t)},Vq=$0&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:h="same-origin",fetchOptions:p}=yk(e);u=u?(u+"").toLowerCase():"text";let d=Iq([i,o&&o.toAbortSignal()],a),g;const _=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let m;try{if(l&&Fq&&n!=="get"&&n!=="head"&&(m=await Bq(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),T;if(he.isFormData(r)&&(T=E.headers.get("content-type"))&&c.setContentType(T),E.body){const[M,D]=gM(m,Cm(mM(l)));r=_M(E.body,wM,M,D)}}he.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;g=new Request(t,{...p,signal:d,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:y?h:void 0});let b=await fetch(g);const S=wb&&(u==="stream"||u==="response");if(wb&&(s||S&&_)){const E={};["status","statusText","headers"].forEach(I=>{E[I]=b[I]});const T=he.toFiniteNumber(b.headers.get("content-length")),[M,D]=s&&gM(T,Cm(mM(s),!0))||[];b=new Response(_M(b.body,wM,M,()=>{D&&D(),_&&_()}),E)}u=u||"text";let x=await Tm[he.findKey(Tm,u)||"text"](b,e);return!S&&_&&_(),await new Promise((E,T)=>{gk(E,T,{data:x,headers:ei.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(y){throw _&&_(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new mt("Network Error",mt.ERR_NETWORK,e,g),{cause:y.cause||y}):mt.from(y,y&&y.code,e,g)}}),bb={http:tq,xhr:Pq,fetch:Vq};he.forEach(bb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const bM=e=>`- ${e}`,Hq=e=>he.isFunction(e)||e===null||e===!1,bk={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : -`+o.map(bM).join(` -`):" "+bM(o[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:bb};function n1(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new sf(null,e)}function SM(e){return n1(e),e.headers=ei.from(e.headers),e.data=t1.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bk.getAdapter(e.adapter||ip.adapter)(e).then(function(r){return n1(e),r.data=t1.call(e,e.transformResponse,r),r.headers=ei.from(r.headers),r},function(r){return vk(r)||(n1(e),r&&r.response&&(r.response.data=t1.call(e,e.transformResponse,r.response),r.response.headers=ei.from(r.response.headers))),Promise.reject(r)})}const Sk="1.7.8",B0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{B0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xM={};B0.transitional=function(t,n,r){function i(o,a){return"[Axios v"+Sk+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new mt(i(a," has been removed"+(n?" in "+n:"")),mt.ERR_DEPRECATED);return n&&!xM[a]&&(xM[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}};B0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Uq(e,t,n){if(typeof e!="object")throw new mt("options must be an object",mt.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 mt("option "+o+" must be "+l,mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new mt("Unknown option "+o,mt.ERR_BAD_OPTION)}}const Fg={assertOptions:Uq,validators:B0},Bo=Fg.validators;class hu{constructor(t){this.defaults=t,this.interceptors={request:new pM,response:new pM}}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=wu(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Fg.assertOptions(r,{silentJSONParsing:Bo.transitional(Bo.boolean),forcedJSONParsing:Bo.transitional(Bo.boolean),clarifyTimeoutError:Bo.transitional(Bo.boolean)},!1),i!=null&&(he.isFunction(i)?n.paramsSerializer={serialize:i}:Fg.assertOptions(i,{encode:Bo.function,serialize:Bo.function},!0)),Fg.assertOptions(n,{baseUrl:Bo.spelling("baseURL"),withXsrfToken:Bo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&he.merge(o.common,o[n.method]);o&&he.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ei.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});const u=[];this.interceptors.response.forEach(function(_){u.push(_.fulfilled,_.rejected)});let c,h=0,p;if(!l){const g=[SM.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),p=g.length,c=Promise.resolve(n);h{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 sf(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 kx(function(i){t=i}),cancel:t}}}function zq(e){return function(n){return e.apply(null,n)}}function Gq(e){return he.isObject(e)&&e.isAxiosError===!0}const Sb={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(Sb).forEach(([e,t])=>{Sb[t]=e});function xk(e){const t=new hu(e),n=ek(hu.prototype.request,t);return he.extend(n,hu.prototype,t,{allOwnKeys:!0}),he.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return xk(wu(e,i))},n}const xt=xk(ip);xt.Axios=hu;xt.CanceledError=sf;xt.CancelToken=kx;xt.isCancel=vk;xt.VERSION=Sk;xt.toFormData=F0;xt.AxiosError=mt;xt.Cancel=xt.CanceledError;xt.all=function(t){return Promise.all(t)};xt.spread=zq;xt.isAxiosError=Gq;xt.mergeConfig=wu;xt.AxiosHeaders=ei;xt.formToJSON=e=>pk(he.isHTMLForm(e)?new FormData(e):e);xt.getAdapter=bk.getAdapter;xt.HttpStatusCode=Sb;xt.default=xt;var $g={exports:{}},Wq=$g.exports,CM;function Yq(){return CM||(CM=1,function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(Wq,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,h=document.createElement("div");h.addEventListener("open",function(d){s.onopen(d)}),h.addEventListener("close",function(d){s.onclose(d)}),h.addEventListener("connecting",function(d){s.onconnecting(d)}),h.addEventListener("message",function(d){s.onmessage(d)}),h.addEventListener("error",function(d){s.onerror(d)}),this.addEventListener=h.addEventListener.bind(h),this.removeEventListener=h.removeEventListener.bind(h),this.dispatchEvent=h.dispatchEvent.bind(h);function p(d,g){var _=document.createEvent("CustomEvent");return _.initCustomEvent(d,!1,!1,g),_}this.open=function(d){if(l=new WebSocket(s.url,r||[]),d){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else h.dispatchEvent(p("connecting")),this.reconnectAttempts=0;(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",s.url);var g=l,_=setTimeout(function(){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",s.url),c=!0,g.close(),c=!1},s.timeoutInterval);l.onopen=function(m){clearTimeout(_),(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",s.url),s.protocol=l.protocol,s.readyState=WebSocket.OPEN,s.reconnectAttempts=0;var y=p("open");y.isReconnect=d,d=!1,h.dispatchEvent(y)},l.onclose=function(m){if(clearTimeout(b),l=null,u)s.readyState=WebSocket.CLOSED,h.dispatchEvent(p("close"));else{s.readyState=WebSocket.CONNECTING;var y=p("connecting");y.code=m.code,y.reason=m.reason,y.wasClean=m.wasClean,h.dispatchEvent(y),!d&&!c&&((s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",s.url),h.dispatchEvent(p("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(m){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",s.url,m.data);var y=p("message");y.data=m.data,h.dispatchEvent(y)},l.onerror=function(m){(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",s.url,m),h.dispatchEvent(p("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(d){if(l)return(s.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",s.url,d),l.send(d);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(d,g){typeof d>"u"&&(d=1e3),u=!0,l&&l.close(d,g)},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})}($g)),$g.exports}var jq=Yq();const qq=h0(jq);xt.interceptors.request.use(e=>{var t;return e.baseURL=_u(qs.value),e.headers.Authorization="Bearer "+((t=qs.value)==null?void 0:t.password),e});xt.interceptors.response.use(null,e=>(e.status===401&&Sr.value?(jO(Sr.value),Sr.value=null,Do.push({name:Vt.setup}),Po(()=>{const{showTip:t}=D0();t("unauthorizedTip")})):e.status===404&&(Sr.value=null,Do.push({name:Vt.setup})),e));const Id=Me(),Ck=Me(!1),Xq=()=>xt.get("/version"),ja=Ie(()=>{var e;return(e=Id.value)==null?void 0:e.includes("sing-box")}),Tk=Me("1.35.0");Lt(qs,async e=>{if(e){const{data:t}=await Xq();if(Id.value=t.version,ja.value)return;Ck.value=await dX()}},{immediate:!0});const Kq=()=>xt.get("/proxies"),Zq=(e,t)=>xt.put(`/proxies/${encodeURIComponent(e)}`,{name:t}),TM=(e,t,n)=>xt.get(`/proxies/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),EM=(e,t,n)=>xt.get(`/group/${encodeURIComponent(e)}/delay`,{params:{url:t,timeout:n}}),Jq=()=>xt.get("/providers/proxies"),Ek=e=>xt.put(`/providers/proxies/${encodeURIComponent(e)}`),Qq=e=>xt.get(`/providers/proxies/${encodeURIComponent(e)}/healthcheck`,{timeout:15e3}),eX=()=>xt.get("/rules"),tX=()=>xt.get("/providers/rules"),Ak=e=>xt.put(`/providers/rules/${encodeURIComponent(e)}`),V0=e=>xt.delete(`/connections/${e}`),nX=()=>xt.get("/configs"),rX=e=>xt.patch("/configs",e),AM=()=>xt.post("/cache/fakeip/flush"),iX=()=>xt.put("/configs?reload=true",{path:"",payload:""}),Mk=()=>xt.post("/upgrade/ui"),oX=()=>xt.post("/upgrade"),aX=()=>xt.post("/restart"),sX=e=>xt.get("/dns/query",{params:e}),H0=(e,t)=>{const n=qs.value,r=new URL(`${_u(n).replace("http","ws")}/${e}`);r.searchParams.append("token",(n==null?void 0:n.password)||""),t&&Object.entries(t).forEach(([s,l])=>{r.searchParams.append(s,l)});const i=Me(),o=new qq(r.toString()),a=()=>{o.close()};return o.onmessage=({data:s})=>{i.value=JSON.parse(s)},{data:i,close:a}},lX=()=>H0("connections"),uX=(e={})=>H0("logs",e),cX=()=>H0("memory"),fX=()=>H0("traffic"),MM=async(e,t=1e4)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),t);try{return(await fetch(`${_u(e)}/version`,{method:"GET",headers:{Authorization:`Bearer ${e.password}`},signal:n.signal})).ok}catch{return!1}finally{clearTimeout(r)}},hX=async()=>{const e=await fetch("https://api.github.com/repos/Zephyruso/zashboard/releases/latest"),{tag_name:t}=await e.json();return t&&t!==`v${Tk.value}`},RM=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))},dX=async()=>{const e=/(alpha|beta|meta)-?(\w+)/.exec(Id.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(Id.value)}const t=e[1],n=e[2];return t==="meta"?await RM("/releases/latest",n):t==="alpha"?await RM("/releases/tags/Prerelease-Alpha",n):!1},bo=Me([]),Bg=Me([]),Em=Me(0),Am=Me(0);let bv;const pX=()=>{bv==null||bv(),bo.value=[],Bg.value=[],Em.value=0,Am.value=0;const e=lX(),t=Lt(e.data,n=>{var r;n&&(Em.value=n.downloadTotal,Am.value=n.uploadTotal,!Ug.value&&(Bg.value=[...Bg.value,...Mo.differenceWith(bo.value,n.connections,(i,o)=>i.id===o.id)].slice(-500),bo.value=((r=n.connections)==null?void 0:r.map(i=>{const o=bo.value.find(a=>a.id===i.id);return o?{...i,downloadSpeed:i.download-o.download,uploadSpeed:i.upload-o.upload}:{...i,downloadSpeed:0,uploadSpeed:0}}))??[]))});bv=()=>{t(),e.close()}},Yh=Ht("config/quick-filter-regex","direct|dns-out"),Vg=Ht("config/quick-filter-enabled",!1),Yl=Me(Ia.ACTIVE),DM={[Xr.HOST]:(e,t)=>(e.metadata.host||e.metadata.destinationIP).localeCompare(t.metadata.host||t.metadata.destinationIP),[Xr.RULE]:(e,t)=>e.rule.localeCompare(t.rule),[Xr.CHAINS]:(e,t)=>e.chains.join("").localeCompare(t.chains.join("")),[Xr.DOWNLOAD]:(e,t)=>t.download-e.download,[Xr.DOWNLOAD_SPEED]:(e,t)=>t.downloadSpeed-e.downloadSpeed,[Xr.UPLOAD]:(e,t)=>t.upload-e.upload,[Xr.UPLOAD_SPEED]:(e,t)=>t.uploadSpeed-e.uploadSpeed,[Xr.SOURCE_IP]:(e,t)=>e.metadata.sourceIP.localeCompare(t.metadata.sourceIP),[Xr.TYPE]:(e,t)=>(e.metadata.type+e.metadata.network).localeCompare(t.metadata.type+t.metadata.network),[Xr.CONNECT_TIME]:(e,t)=>ta(t.start).valueOf()-ta(e.start).valueOf()},Hg=Ht("config/connection-sort-type",Xr.HOST),jh=Me(""),Ug=Me(!1),Ic=Ie(()=>{let e=null;return Vg.value&&Yh.value&&(e=new RegExp(Yh.value,"i")),(Yl.value===Ia.ACTIVE?bo.value:Bg.value).filter(t=>e&&(e.test(t.chains.join(""))||e.test(t.metadata.host)||e.test(t.metadata.destinationIP))||Ra.value&&t.metadata.sourceIP!==Ra.value?!1:jh.value?[t.metadata.host,t.metadata.destinationIP,t.metadata.destinationPort,t.metadata.sourceIP,t.metadata.sourcePort,t.metadata.processPath,t.metadata.type,t.metadata.network,t.chains.join(""),t.rule,t.rulePayload].some(n=>n==null?void 0:n.includes(jh.value)):!0).sort((t,n)=>{const r=tu.value?DM[Hg.value](t,n):DM[Xr.HOST](t,n);return r===0?t.id.localeCompare(n.id):r})}),Ra=Me(""),vX=Ie(()=>ZY.uniq(bo.value.map(e=>e.metadata.sourceIP)).sort());function qu(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((d,g)=>r[g]!==d)))return i;r=c;let p;if(n.key&&((a=n.debug)!=null&&a.call(n))&&(p=Date.now()),i=t(...c),n.key&&((s=n.debug)!=null&&s.call(n))){const d=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-p)*100)/100,_=g/16,m=(y,b)=>{for(y=String(y);y.lengthMath.abs(e-t)<1,mX=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},yX=e=>e,_X=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},wX=(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)}},PM={passive:!0},bX=typeof window>"u"?!0:"onscrollend"in window,SX=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&bX?()=>{}:mX(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=u=>()=>{const{horizontal:c,isRtl:h}=e.options;i=c?n.scrollLeft*(h&&-1||1):n.scrollTop,o(),t(i,u)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,PM),n.addEventListener("scrollend",l,PM),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},xX=(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"])},CX=(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 TX{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:yX,rangeExtractor:_X,onChange:()=>{},measureElement:xX,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=qu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let a=r-1;a>=0;a--){const s=n[a];if(i.has(s.lane))continue;const l=o.get(s.lane);if(l==null||s.end>l.end?o.set(s.lane,s):s.enda.end===s.end?a.index-s.index:a.end-s.end)[0]:void 0},this.getMeasurementOptions=qu(()=>[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=qu(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},s)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;cthis.options.debug}),this.calculateRange=qu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,i)=>this.range=n.length>0&&r>0?EX({measurements:n,outerSize:r,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=qu(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,i,o)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:i,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const a=o.key,s=this.elementsCache.get(a);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(a,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=qu(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;othis.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return r1(r[Rk(0,r.length-1,i=>r1(r[i]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const i=this.getSize(),o=this.getScrollOffset();r==="auto"&&(n<=o?r="start":n>=o+i?r="end":r="start"),r==="start"?n=n:r==="end"?n=n-i:r==="center"&&(n=n-i/2);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=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,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]=r1(this.getOffsetForIndex(n,s));gX(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 Rk=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(or)t=i-1;else return i}return e>0?e-1:0};function EX({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=Rk(0,r,s=>e[s].start,n);let a=o;for(;aF(e).getScrollElement(),i=>{i&&t._willUpdate()},{immediate:!0}),Lt(()=>F(e),i=>{t.setOptions({...i,onChange:(o,a)=>{var s;IA(n),(s=i.onChange)==null||s.call(i,o,a)}}),t._willUpdate(),IA(n)},{immediate:!0}),nL(r),n}function Dk(e){return AX(Ie(()=>({observeElementRect:wX,observeElementOffset:SX,scrollToFn:CX,...F(e)})))}const MX=["data-index"],Nx=Qe({__name:"VirtualScroller",props:{data:{}},setup(e){const t=Me(null),n=e,r=Ie(()=>({count:n.data.length,getScrollElement:()=>t.value,estimateSize:()=>55,overscan:24})),i=Dk(r),o=Ie(()=>i.value.getVirtualItems()),a=Ie(()=>i.value.getTotalSize()),s=l=>{l&&i.value.measureElement(l)};return(l,u)=>{var c;return q(),re("div",{ref_key:"parentRef",ref:t,class:"flex h-full w-full overflow-y-auto overscroll-y-none p-2"},[L("div",{style:yo({height:`${a.value}px`}),class:"relative w-full max-sm:min-h-[calc(100%+1px)]"},[L("div",{class:"absolute left-0 top-0 w-full",style:yo({transform:`translateY(${((c=o.value[0])==null?void 0:c.start)??0}px)`})},[(q(!0),re(Ge,null,Ft(o.value,h=>(q(),re("div",{key:h.key.toString(),"data-index":h.index,ref_for:!0,ref:s},[Oh(l.$slots,"default",{item:l.data[h.index],index:h.index})],8,MX))),128))],4)],4)],512)}}}),IM=Me(),LM=Me(),Fx=()=>({infoConn:IM,modalRef:LM,handlerInfo:t=>{var n;IM.value=t,(n=LM.value)==null||n.showModal()}}),$x="-",RX=e=>{const t=PX(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split($x);return s[0]===""&&s.length!==1&&s.shift(),Pk(s,t)||DX(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},Pk=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Pk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join($x);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},OM=/^\[(.+)\]$/,DX=e=>{if(OM.test(e)){const t=OM.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},PX=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return LX(Object.entries(e.classGroups),n).forEach(([o,a])=>{xb(a,r,o,t)}),r},xb=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:kM(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(IX(i)){xb(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{xb(a,kM(t,o),n,r)})})},kM=(e,t)=>{let n=e;return t.split($x).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},IX=e=>e.isThemeGetter,LX=(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,OX=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)}}},Ik="!",kX=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,h;for(let m=0;mc?h-c:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:_}};return n?s=>n({className:s,parseClassName:a}):a},NX=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},FX=e=>({cache:OX(e.cacheSize),parseClassName:kX(e),...RX(e)}),$X=/\s+/,BX=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split($X);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:c,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:d}=n(u);let g=!!d,_=r(g?p.substring(0,d):p);if(!_){if(!g){s=u+(s.length>0?" "+s:s);continue}if(_=r(p),!_){s=u+(s.length>0?" "+s:s);continue}g=!1}const m=NX(c).join(":"),y=h?m+Ik:m,b=y+_;if(o.includes(b))continue;o.push(b);const S=i(_,g);for(let x=0;x0?" "+s:s)}return s};function VX(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rh(c),e());return n=FX(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=BX(l,n);return i(l,c),c}return function(){return o(VX.apply(null,arguments))}}const wn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ok=/^\[(?:([a-z-]+):)?(.+)\]$/i,UX=/^\d+\/\d+$/,zX=new Set(["px","full","screen"]),GX=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,WX=/\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$/,YX=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jX=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qX=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ta=e=>Lc(e)||zX.has(e)||UX.test(e),ps=e=>lf(e,"length",nK),Lc=e=>!!e&&!Number.isNaN(Number(e)),i1=e=>lf(e,"number",Lc),Hf=e=>!!e&&Number.isInteger(Number(e)),XX=e=>e.endsWith("%")&&Lc(e.slice(0,-1)),St=e=>Ok.test(e),vs=e=>GX.test(e),KX=new Set(["length","size","percentage"]),ZX=e=>lf(e,KX,kk),JX=e=>lf(e,"position",kk),QX=new Set(["image","url"]),eK=e=>lf(e,QX,iK),tK=e=>lf(e,"",rK),Uf=()=>!0,lf=(e,t,n)=>{const r=Ok.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},nK=e=>WX.test(e)&&!YX.test(e),kk=()=>!1,rK=e=>jX.test(e),iK=e=>qX.test(e),oK=()=>{const e=wn("colors"),t=wn("spacing"),n=wn("blur"),r=wn("brightness"),i=wn("borderColor"),o=wn("borderRadius"),a=wn("borderSpacing"),s=wn("borderWidth"),l=wn("contrast"),u=wn("grayscale"),c=wn("hueRotate"),h=wn("invert"),p=wn("gap"),d=wn("gradientColorStops"),g=wn("gradientColorStopPositions"),_=wn("inset"),m=wn("margin"),y=wn("opacity"),b=wn("padding"),S=wn("saturate"),x=wn("scale"),E=wn("sepia"),T=wn("skew"),M=wn("space"),D=wn("translate"),I=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",St,t],H=()=>[St,t],te=()=>["",Ta,ps],W=()=>["auto",Lc,St],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],j=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],fe=()=>["","0",St],_e=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Lc,St];return{cacheSize:500,separator:":",theme:{colors:[Uf],spacing:[Ta,ps],blur:["none","",vs,St],brightness:be(),borderColor:[e],borderRadius:["none","","full",vs,St],borderSpacing:H(),borderWidth:te(),contrast:be(),grayscale:fe(),hueRotate:be(),invert:fe(),gap:H(),gradientColorStops:[e],gradientColorStopPositions:[XX,ps],inset:N(),margin:N(),opacity:be(),padding:H(),saturate:be(),scale:be(),sepia:fe(),skew:be(),space:H(),translate:H()},classGroups:{aspect:[{aspect:["auto","square","video",St]}],container:["container"],columns:[{columns:[vs]}],"break-after":[{"break-after":_e()}],"break-before":[{"break-before":_e()}],"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:[...X(),St]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[_]}],"inset-x":[{"inset-x":[_]}],"inset-y":[{"inset-y":[_]}],start:[{start:[_]}],end:[{end:[_]}],top:[{top:[_]}],right:[{right:[_]}],bottom:[{bottom:[_]}],left:[{left:[_]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hf,St]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",St]}],grow:[{grow:fe()}],shrink:[{shrink:fe()}],order:[{order:["first","last","none",Hf,St]}],"grid-cols":[{"grid-cols":[Uf]}],"col-start-end":[{col:["auto",{span:["full",Hf,St]},St]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Uf]}],"row-start-end":[{row:["auto",{span:[Hf,St]},St]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",St]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",St]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"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:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",St,t]}],"min-w":[{"min-w":[St,t,"min","max","fit"]}],"max-w":[{"max-w":[St,t,"none","full","min","max","fit","prose",{screen:[vs]},vs]}],h:[{h:[St,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[St,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[St,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[St,t,"auto","min","max","fit"]}],"font-size":[{text:["base",vs,ps]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",i1]}],"font-family":[{font:[Uf]}],"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",St]}],"line-clamp":[{"line-clamp":["none",Lc,i1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ta,St]}],"list-image":[{"list-image":["none",St]}],"list-style-type":[{list:["none","disc","decimal",St]}],"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:[...j(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ta,ps]}],"underline-offset":[{"underline-offset":["auto",Ta,St]}],"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:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",St]}],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",St]}],"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:[...X(),JX]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZX]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eK]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],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:[...j(),"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:j()}],"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:["",...j()]}],"outline-offset":[{"outline-offset":[Ta,St]}],"outline-w":[{outline:[Ta,ps]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ta,ps]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",vs,tK]}],"shadow-color":[{shadow:[Uf]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",vs,St]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[E]}],"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":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",St]}],duration:[{duration:be()}],ease:[{ease:["linear","in","out","in-out",St]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",St]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[Hf,St]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"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",St]}],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",St]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",St]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ta,ps,i1]}],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"]}}},nn=HX(oK),aK=Qe({props:{conn:Object},name:"ConnectionCard",setup(e){const{handlerInfo:t}=Fx();return()=>{const n=ye("span",{class:"flex-1"},null),r=ye("span",{class:"w-80 grow break-all text-sm tracking-tight text-primary/80 sm:text-base"},[e.conn.metadata.host||e.conn.metadata.destinationIP,ye("span",{class:"hidden sm:inline"},[st(":"),e.conn.metadata.destinationPort])]),i=ye("div",{class:"badge flex px-1 text-sm text-base-content"},[ye(q6,{class:"h-4 w-3"},null),ye("div",{class:"hidden w-16 text-right sm:inline"},[mn(e.conn.download),st(" |")," "]),ye("div",{class:"w-20 text-right"},[mn(e.conn.downloadSpeed),st("/s")])]),o=ye("div",{class:"badge hidden px-1 text-sm text-base-content 2xl:flex"},[ye(a2,{class:"h-4 w-3"},null),ye("div",{class:"w-16 text-right"},[mn(e.conn.upload),st(" | ")]),ye("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),st("/s")])]),a=ye("div",{class:"badge hidden px-1 text-sm text-base-content lg:flex"},[ye(a2,{class:"h-4 w-3"},null),ye("div",{class:"w-16 text-right"},[mn(e.conn.upload),st(" | ")]),ye("div",{class:"w-20 text-right"},[mn(e.conn.uploadSpeed),st("/s")])]),s=ye("div",{class:"flex w-12 gap-1"},[ye("button",{class:"btn btn-circle btn-xs",onClick:()=>t(e.conn)},[ye(aO,{class:"h-4 w-4"},null)]),ye("button",{class:"btn btn-circle btn-xs",onClick:()=>V0(e.conn.id)},[ye(C0,{class:"h-4 w-4"},null)])]),l=e.conn.chains,u=Mo.first(l),c=Mo.last(l),h=ye("span",{class:"inline w-56 truncate text-sm"},[ye("span",{class:"hidden sm:inline"},[[...l].reverse().join("->")]),ye("span",{class:"inline sm:hidden"},[l.length>1?[c,u].join(" =>> "):u])]),p=ye("span",{class:"hidden text-sm tracking-tight xl:inline"},[e.conn.rule]),d=ye("span",{class:"hidden min-w-48 px-2 text-sm 2xl:inline"},[JO(e.conn)]),g=ye("span",{class:nn("inline whitespace-nowrap text-right text-sm tracking-tight",$a.value===wo.ZH_CN?"w-20":"w-32")},[L0(e.conn.start)]),_=ye("span",{class:"hidden w-36 text-sm lg:inline"},[e.conn.metadata.type,st(" | "),e.conn.metadata.network]),m=ye("span",{class:"hidden w-36 text-sm md:inline"},[e.conn.metadata.type,st(" | "),e.conn.metadata.network]),y=e.conn.metadata.destinationIP||"remote-resolve",b=Sm(e.conn.metadata.sourceIP),S=ye("span",{class:"hidden w-96 truncate text-sm tracking-tight xl:flex"},[ye("span",null,[b,st(":"),e.conn.metadata.sourcePort]),ye("span",null,[st("->")]),ye("span",null,[y,st(":"),e.conn.metadata.destinationPort])]),x=ye("span",{class:"hidden w-52 truncate text-sm tracking-tight 3xl:flex"},[ye("span",null,[b]),ye("span",null,[st("->")]),ye("span",null,[y])]);return XO.value&&Ig.value?ye("div",{class:"card flex-row items-center justify-between gap-1 px-2 py-1"},[r,h,x,m,i,o,g,s]):ye("div",{class:"card gap-[1px] px-2 py-[1px]"},[ye("div",{class:"flex flex-row items-center gap-1 px-1"},[r,n,d,S,i,a]),ye("div",{class:"flex flex-row items-center gap-1 px-1"},[h,p,n,_,g,s])])}}}),sK={key:0,class:"card m-2 flex-row p-2 text-sm"},lK=Qe({__name:"ConnectionCardList",setup(e){return(t,n)=>F(Ic).length?(q(),Et(Nx,{key:1,data:F(Ic)},{default:Qr(({item:r})=>[ye(F(aK),{class:"mb-1",conn:r},null,8,["conn"])]),_:1},8,["data"])):(q(),re("div",sK,ue(t.$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 Fs(e,t){return typeof e=="function"?e(t):e}function Mi(e,t){return n=>{t.setState(r=>({...r,[e]:Fs(n,r[e])}))}}function du(e){return e instanceof Function}function uK(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function Nk(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 it(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,h)=>r[h]!==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,h=Math.round((Date.now()-u)*100)/100,p=h/16,d=(g,_)=>{for(g=String(g);g.length<_;)g=" "+g;return g};console.info(`%c⏱ ${d(h,5)} /${d(c,5)} ms`,` - font-size: .6rem; - font-weight: bold; - color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,n==null?void 0:n.key)}return i}}function ot(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 cK(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:it(()=>[e,n,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),ot(e.options,"debugCells"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(o,n,t,e)},{}),o}function fK(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=p=>{let d=p;for(const _ of l.split(".")){var g;d=(g=d)==null?void 0:g[_]}return d}:c=p=>p[s.accessorKey]),!u)throw new Error;let h={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:it(()=>[!0],()=>{var p;return[h,...(p=h.columns)==null?void 0:p.flatMap(d=>d.getFlatColumns())]},ot(e.options,"debugColumns")),getLeafColumns:it(()=>[e._getOrderColumnsFn()],p=>{var d;if((d=h.columns)!=null&&d.length){let g=h.columns.flatMap(_=>_.getLeafColumns());return p(g)}return[h]},ot(e.options,"debugColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(h,e);return h}const pr="debugHeaders";function NM(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 hK={createTable:e=>{e.getHeaderGroups=it(()=>[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(h=>n.find(p=>p.id===h)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(h=>n.find(p=>p.id===h)).filter(Boolean))!=null?a:[],u=n.filter(h=>!(r!=null&&r.includes(h.id))&&!(i!=null&&i.includes(h.id)));return Sv(t,[...s,...u,...l],e)},ot(e.options,pr)),e.getCenterHeaderGroups=it(()=>[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))),Sv(t,n,e,"center")),ot(e.options,pr)),e.getLeftHeaderGroups=it(()=>[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 Sv(t,o,e,"left")},ot(e.options,pr)),e.getRightHeaderGroups=it(()=>[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 Sv(t,o,e,"right")},ot(e.options,pr)),e.getFooterGroups=it(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ot(e.options,pr)),e.getLeftFooterGroups=it(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ot(e.options,pr)),e.getCenterFooterGroups=it(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ot(e.options,pr)),e.getRightFooterGroups=it(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ot(e.options,pr)),e.getFlatHeaders=it(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ot(e.options,pr)),e.getLeftFlatHeaders=it(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ot(e.options,pr)),e.getCenterFlatHeaders=it(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ot(e.options,pr)),e.getRightFlatHeaders=it(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ot(e.options,pr)),e.getCenterLeafHeaders=it(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ot(e.options,pr)),e.getLeftLeafHeaders=it(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ot(e.options,pr)),e.getRightLeafHeaders=it(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),ot(e.options,pr)),e.getLeafHeaders=it(()=>[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()},ot(e.options,pr))}};function Sv(e,t,n,r){var i,o;let a=0;const s=function(p,d){d===void 0&&(d=1),a=Math.max(a,d),p.filter(g=>g.getIsVisible()).forEach(g=>{var _;(_=g.columns)!=null&&_.length&&s(g.columns,d+1)},0)};s(e);let l=[];const u=(p,d)=>{const g={depth:d,id:[r,`${d}`].filter(Boolean).join("_"),headers:[]},_=[];p.forEach(m=>{const y=[..._].reverse()[0],b=m.column.depth===g.depth;let S,x=!1;if(b&&m.column.parent?S=m.column.parent:(S=m.column,x=!0),y&&(y==null?void 0:y.column)===S)y.subHeaders.push(m);else{const E=NM(n,S,{id:[r,d,S.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${_.filter(T=>T.column===S).length}`:void 0,depth:d,index:_.length});E.subHeaders.push(m),_.push(E)}g.headers.push(m),m.headerGroup=g}),l.push(g),d>0&&u(_,d-1)},c=t.map((p,d)=>NM(n,p,{depth:a,index:d}));u(c,a-1),l.reverse();const h=p=>p.filter(g=>g.column.getIsVisible()).map(g=>{let _=0,m=0,y=[0];g.subHeaders&&g.subHeaders.length?(y=[],h(g.subHeaders).forEach(S=>{let{colSpan:x,rowSpan:E}=S;_+=x,y.push(E)})):_=1;const b=Math.min(...y);return m=m+b,g.colSpan=_,g.rowSpan=m,{colSpan:_,rowSpan:m}});return h((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const Fk=(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:()=>Nk(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:it(()=>[e.getAllLeafColumns()],l=>l.map(u=>cK(e,s,u,u.id)),ot(e.options,"debugRows")),_getAllCellsByColumnId:it(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),ot(e.options,"debugRows"))};for(let l=0;l{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},$k=(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))};$k.autoRemove=e=>Co(e);const Bk=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};Bk.autoRemove=e=>Co(e);const Vk=(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())};Vk.autoRemove=e=>Co(e);const Hk=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Hk.autoRemove=e=>Co(e)||!(e!=null&&e.length);const Uk=(e,t,n)=>!n.some(r=>{var i;return!((i=e.getValue(t))!=null&&i.includes(r))});Uk.autoRemove=e=>Co(e)||!(e!=null&&e.length);const zk=(e,t,n)=>n.some(r=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(r)});zk.autoRemove=e=>Co(e)||!(e!=null&&e.length);const Gk=(e,t,n)=>e.getValue(t)===n;Gk.autoRemove=e=>Co(e);const Wk=(e,t,n)=>e.getValue(t)==n;Wk.autoRemove=e=>Co(e);const Bx=(e,t,n)=>{let[r,i]=n;const o=e.getValue(t);return o>=r&&o<=i};Bx.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]};Bx.autoRemove=e=>Co(e)||Co(e[0])&&Co(e[1]);const Da={includesString:$k,includesStringSensitive:Bk,equalsString:Vk,arrIncludes:Hk,arrIncludesAll:Uk,arrIncludesSome:zk,equals:Gk,weakEquals:Wk,inNumberRange:Bx};function Co(e){return e==null||e===""}const pK={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Mi("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"?Da.includesString:typeof r=="number"?Da.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Da.equals:Array.isArray(r)?Da.arrIncludes:Da.weakEquals},e.getFilterFn=()=>{var n,r;return du(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:Da[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=Fs(n,o?o.value:void 0);if(FM(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=Fs(t,i))==null?void 0:o.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(FM(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 FM(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const vK=(e,t,n)=>n.reduce((r,i)=>{const o=i.getValue(e);return r+(typeof o=="number"?o:0)},0),gK=(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},mK=(e,t,n)=>{let r;return n.forEach(i=>{const o=i.getValue(e);o!=null&&(r=o)&&(r=o)}),r},yK=(e,t,n)=>{let r,i;return n.forEach(o=>{const a=o.getValue(e);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i{let n=0,r=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},wK=(e,t)=>{if(!t.length)return;const n=t.map(o=>o.getValue(e));if(!uK(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},bK=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),SK=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,xK=(e,t)=>t.length,o1={sum:vK,min:gK,max:mK,extent:yK,mean:_K,median:wK,unique:bK,uniqueCount:SK,count:xK},CK={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:Mi("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 o1.sum;if(Object.prototype.toString.call(r)==="[object Date]")return o1.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return du(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:o1[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 TK(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 EK={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Mi("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=it(n=>[qh(t,n)],n=>n.findIndex(r=>r.id===e.id),ot(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=qh(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const i=qh(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=it(()=>[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 TK(o,n,r)},ot(e.options,"debugTable"))}},a1=()=>({left:[],right:[]}),AK={getInitialState:e=>({columnPinning:a1(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Mi("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(h=>!(r!=null&&r.includes(h))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(h=>!(r!=null&&r.includes(h))),...r]}}if(n==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(h=>!(r!=null&&r.includes(h))),...r],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(h=>!(r!=null&&r.includes(h)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(h=>!(r!=null&&r.includes(h))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(h=>!(r!=null&&r.includes(h)))}})},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=it(()=>[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))},ot(t.options,"debugRows")),e.getLeftVisibleCells=it(()=>[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"})),ot(t.options,"debugRows")),e.getRightVisibleCells=it(()=>[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"})),ot(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?a1():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:a1())},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=it(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),ot(e.options,"debugColumns")),e.getRightLeafColumns=it(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(i=>i.id===r)).filter(Boolean),ot(e.options,"debugColumns")),e.getCenterLeafColumns=it(()=>[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))},ot(e.options,"debugColumns"))}},xv={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},s1=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),MK={getDefaultColumnDef:()=>xv,getInitialState:e=>({columnSizing:{},columnSizingInfo:s1(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Mi("columnSizing",e),onColumnSizingInfoChange:Mi("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:xv.minSize,(r=o??e.columnDef.size)!=null?r:xv.size),(i=e.columnDef.maxSize)!=null?i:xv.maxSize)},e.getStart=it(n=>[n,qh(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((i,o)=>i+o.getSize(),0),ot(t.options,"debugColumns")),e.getAfter=it(n=>[n,qh(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((i,o)=>i+o.getSize(),0),ot(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(),l1(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=l1(o)?Math.round(o.touches[0].clientX):o.clientX,u={},c=(y,b)=>{typeof b=="number"&&(t.setColumnSizingInfo(S=>{var x,E;const T=t.options.columnResizeDirection==="rtl"?-1:1,M=(b-((x=S==null?void 0:S.startOffset)!=null?x:0))*T,D=Math.max(M/((E=S==null?void 0:S.startSize)!=null?E:0),-.999999);return S.columnSizingStart.forEach(I=>{let[k,N]=I;u[k]=Math.round(Math.max(N+N*D,0)*100)/100}),{...S,deltaOffset:M,deltaPercentage:D}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(S=>({...S,...u})))},h=y=>c("move",y),p=y=>{c("end",y),t.setColumnSizingInfo(b=>({...b,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=n||typeof document<"u"?document:null,g={moveHandler:y=>h(y.clientX),upHandler:y=>{d==null||d.removeEventListener("mousemove",g.moveHandler),d==null||d.removeEventListener("mouseup",g.upHandler),p(y.clientX)}},_={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),h(y.touches[0].clientX),!1),upHandler:y=>{var b;d==null||d.removeEventListener("touchmove",_.moveHandler),d==null||d.removeEventListener("touchend",_.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),p((b=y.touches[0])==null?void 0:b.clientX)}},m=RK()?{passive:!1}:!1;l1(o)?(d==null||d.addEventListener("touchmove",_.moveHandler,m),d==null||d.addEventListener("touchend",_.upHandler,m)):(d==null||d.addEventListener("mousemove",g.moveHandler,m),d==null||d.addEventListener("mouseup",g.upHandler,m)),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?s1():(n=e.initialState.columnSizingInfo)!=null?n:s1())},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 Cv=null;function RK(){if(typeof Cv=="boolean")return Cv;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 Cv=e,Cv}function l1(e){return e.type==="touchstart"}const DK={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Mi("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=it(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),ot(t.options,"debugRows")),e.getVisibleCells=it(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,i)=>[...n,...r,...i],ot(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>it(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),ot(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 qh(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const PK={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()}}},IK={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Mi("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=()=>Da.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return du(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Da[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},LK={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Mi("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()}}}},Cb=0,Tb=10,u1=()=>({pageIndex:Cb,pageSize:Tb}),OK={getInitialState:e=>({...e,pagination:{...u1(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Mi("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=>Fs(r,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=r=>{var i;e.setPagination(r?u1():(i=e.initialState.pagination)!=null?i:u1())},e.setPageIndex=r=>{e.setPagination(i=>{let o=Fs(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?Cb:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageIndex)!=null?i:Cb)},e.resetPageSize=r=>{var i,o;e.setPageSize(r?Tb:(i=(o=e.initialState)==null||(o=o.pagination)==null?void 0:o.pageSize)!=null?i:Tb)},e.setPageSize=r=>{e.setPagination(i=>{const o=Math.max(1,Fs(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=Fs(r,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),e.getPageOptions=it(()=>[e.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((o,a)=>a)),i},ot(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},c1=()=>({top:[],bottom:[]}),kK={getInitialState:e=>({rowPinning:c1(),...e}),getDefaultOptions:e=>({onRowPinningChange:Mi("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 h,p;return{top:((h=l==null?void 0:l.top)!=null?h:[]).filter(_=>!(s!=null&&s.has(_))),bottom:[...((p=l==null?void 0:l.bottom)!=null?p:[]).filter(_=>!(s!=null&&s.has(_))),...Array.from(s)]}}if(n==="top"){var d,g;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(_=>!(s!=null&&s.has(_))),...Array.from(s)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(_=>!(s!=null&&s.has(_)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(_=>!(s!=null&&s.has(_))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(_=>!(s!=null&&s.has(_)))}})},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?c1():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:c1())},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=it(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),ot(e.options,"debugRows")),e.getBottomRows=it(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),ot(e.options,"debugRows")),e.getCenterRows=it(()=>[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))},ot(e.options,"debugRows"))}},NK={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Mi("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=>{Eb(i,o.id,r,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=it(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?f1(e,n):{rows:[],flatRows:[],rowsById:{}},ot(e.options,"debugTable")),e.getFilteredSelectedRowModel=it(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?f1(e,n):{rows:[],flatRows:[],rowsById:{}},ot(e.options,"debugTable")),e.getGroupedSelectedRowModel=it(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?f1(e,n):{rows:[],flatRows:[],rowsById:{}},ot(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(i=>i.getCanSelect()&&!n[i.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(i=>!n[i.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const i=e.getIsSelected();t.setRowSelection(o=>{var a;if(n=typeof n<"u"?n:!i,e.getCanSelect()&&i===n)return o;const s={...o};return Eb(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Vx(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ab(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ab(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)}}}},Eb=(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=>Eb(e,s.id,n,r,i))};function f1(e,t){const n=e.getState().rowSelection,r=[],i={},o=function(a,s){return a.map(l=>{var u;const c=Vx(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 Vx(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ab(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()&&(Vx(a,t)?o=!0:i=!1),a.subRows&&a.subRows.length)){const s=Ab(a,t);s==="all"?o=!0:(s==="some"&&(o=!0),i=!1)}}),i?"all":o?"some":!1}const Mb=/([0-9]+)/gm,FK=(e,t,n)=>Yk(Ks(e.getValue(n)).toLowerCase(),Ks(t.getValue(n)).toLowerCase()),$K=(e,t,n)=>Yk(Ks(e.getValue(n)),Ks(t.getValue(n))),BK=(e,t,n)=>Hx(Ks(e.getValue(n)).toLowerCase(),Ks(t.getValue(n)).toLowerCase()),VK=(e,t,n)=>Hx(Ks(e.getValue(n)),Ks(t.getValue(n))),HK=(e,t,n)=>{const r=e.getValue(n),i=t.getValue(n);return r>i?1:rHx(e.getValue(n),t.getValue(n));function Hx(e,t){return e===t?0:e>t?1:-1}function Ks(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Yk(e,t){const n=e.split(Mb).filter(Boolean),r=t.split(Mb).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 zf={alphanumeric:FK,alphanumericCaseSensitive:$K,text:BK,textCaseSensitive:VK,datetime:HK,basic:UK},zK={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Mi("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 zf.datetime;if(typeof o=="string"&&(r=!0,o.split(Mb).length>1))return zf.alphanumeric}return r?zf.text:zf.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 du(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:zf[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(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.id===e.id);let u=[],c,h=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 p;u=[...a,{id:e.id,desc:h}],u.splice(0,u.length-((p=t.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:h}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:h}];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())}},GK=[hK,DK,EK,AK,dK,pK,PK,IK,zK,CK,LK,OK,kK,NK,MK];function WK(e){var t,n;const r=[...GK,...(t=e._features)!=null?t:[]];let i={_features:r};const o=i._features.reduce((p,d)=>Object.assign(p,d.getDefaultOptions==null?void 0:d.getDefaultOptions(i)),{}),a=p=>i.options.mergeOptions?i.options.mergeOptions(o,p):{...o,...p};let l={...{},...(n=e.initialState)!=null?n:{}};i._features.forEach(p=>{var d;l=(d=p.getInitialState==null?void 0:p.getInitialState(l))!=null?d:l});const u=[];let c=!1;const h={_features:r,options:{...o,...e},initialState:l,_queue:p=>{u.push(p),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{i.setState(i.initialState)},setOptions:p=>{const d=Fs(p,i.options);i.options=a(d)},getState:()=>i.options.state,setState:p=>{i.options.onStateChange==null||i.options.onStateChange(p)},_getRowId:(p,d,g)=>{var _;return(_=i.options.getRowId==null?void 0:i.options.getRowId(p,d,g))!=null?_:`${g?[g.id,d].join("."):d}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(p,d)=>{let g=(d?i.getPrePaginationRowModel():i.getRowModel()).rowsById[p];if(!g&&(g=i.getCoreRowModel().rowsById[p],!g))throw new Error;return g},_getDefaultColumnDef:it(()=>[i.options.defaultColumn],p=>{var d;return p=(d=p)!=null?d:{},{header:g=>{const _=g.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:g=>{var _,m;return(_=(m=g.renderValue())==null||m.toString==null?void 0:m.toString())!=null?_:null},...i._features.reduce((g,_)=>Object.assign(g,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...p}},ot(e,"debugColumns")),_getColumnDefs:()=>i.options.columns,getAllColumns:it(()=>[i._getColumnDefs()],p=>{const d=function(g,_,m){return m===void 0&&(m=0),g.map(y=>{const b=fK(i,y,m,_),S=y;return b.columns=S.columns?d(S.columns,b,m+1):[],b})};return d(p)},ot(e,"debugColumns")),getAllFlatColumns:it(()=>[i.getAllColumns()],p=>p.flatMap(d=>d.getFlatColumns()),ot(e,"debugColumns")),_getAllFlatColumnsById:it(()=>[i.getAllFlatColumns()],p=>p.reduce((d,g)=>(d[g.id]=g,d),{}),ot(e,"debugColumns")),getAllLeafColumns:it(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(p,d)=>{let g=p.flatMap(_=>_.getLeafColumns());return d(g)},ot(e,"debugColumns")),getColumn:p=>i._getAllFlatColumnsById()[p]};Object.assign(i,h);for(let p=0;pit(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;ue._autoResetPageIndex()))}function jK(){return e=>it(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:qK(n),ot(e.options,"debugTable"))}function qK(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 XK(){return e=>it(()=>[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(g=>(g.depth=u,i.push(g),o[g.id]=g,g.subRows&&(g.subRows=a(g.subRows,u+1,g.id)),g));const h=r[u],p=KK(l,h);return Array.from(p.entries()).map((g,_)=>{let[m,y]=g,b=`${h}:${m}`;b=c?`${c}>${b}`:b;const S=a(y,u+1,b);S.forEach(T=>{T.parentId=b});const x=u?Nk(y,T=>T.subRows):y,E=Fk(e,b,x[0].original,_,u,void 0,c);return Object.assign(E,{groupingColumnId:h,groupingValue:m,subRows:S,leafRows:x,getValue:T=>{if(r.includes(T)){if(E._valuesCache.hasOwnProperty(T))return E._valuesCache[T];if(y[0]){var M;E._valuesCache[T]=(M=y[0].getValue(T))!=null?M:void 0}return E._valuesCache[T]}if(E._groupingValuesCache.hasOwnProperty(T))return E._groupingValuesCache[T];const D=e.getColumn(T),I=D==null?void 0:D.getAggregationFn();if(I)return E._groupingValuesCache[T]=I(T,x,y),E._groupingValuesCache[T]}}),S.forEach(T=>{i.push(T),o[T.id]=T}),E})},s=a(n.rows,0);return s.forEach(l=>{i.push(l),o[l.id]=l}),{rows:s,flatRows:i,rowsById:o}},ot(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function KK(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 ZK(){return e=>it(()=>[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,h)=>{for(let d=0;d{var h;i.push(c),(h=c.subRows)!=null&&h.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:i,rowsById:n.rowsById}},ot(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 Tv(){return!0}const JK=Symbol("merge-proxy"),QK={get(e,t,n){return t===JK?n:e.get(t)},has(e,t){return e.has(t)},set:Tv,deleteProperty:Tv,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Tv,deleteProperty:Tv}},ownKeys(e){return e.keys()}};function h1(e){return"value"in e?e.value:e}function wh(){for(var e=arguments.length,t=new Array(e),n=0;n=0;i--){const o=h1(t[i])[r];if(o!==void 0)return o}},has(r){for(let i=t.length-1;i>=0;i--)if(r in h1(t[i]))return!0;return!1},keys(){const r=[];for(let i=0;i()=>typeof e.render=="function"||typeof e.render=="object"?jo(e.render,e.props):e.render});function $M(e){return wh(e,{data:F(e.data)})}function eZ(e){const t=Je(e.data),n=wh({state:{},onStateChange:()=>{},renderFallbackValue:null,mergeOptions(o,a){return t?{...o,...a}:wh(o,a)}},t?$M(e):e),r=WK(n);if(t){const o=Zd(e.data);Lt(o,()=>{r.setState(a=>({...a,data:o.value}))},{immediate:!0})}const i=Me(r.initialState);return lx(()=>{r.setOptions(o=>{var a;const s=new Proxy({},{get:(l,u)=>i.value[u]});return wh(o,t?$M(e):e,{state:wh(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 tZ=["colSpan","onClick"],nZ={class:"flex items-center gap-1"},rZ=["onClick"],iZ=["onClick"],oZ=Qe({__name:"ConnectionTable",setup(e){const{handlerInfo:t}=Fx(),{t:n}=ia(),r=[{header:()=>n("details"),enableSorting:!1,id:Bt.Details,cell:({row:m})=>jo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=m.original;t(y)}},[jo(aO,{class:"h-4 w-4"})])},{header:()=>n("close"),enableSorting:!1,id:Bt.Close,cell:({row:m})=>jo("button",{class:"btn btn-xs btn-circle",onClick:()=>{const y=m.original;V0(y.id)}},[jo(C0,{class:"h-4 w-4"})])},{header:()=>n("type"),id:Bt.Type,accessorFn:m=>`${m.metadata.type} | ${m.metadata.network}`},{header:()=>n("process"),id:Bt.Process,accessorFn:m=>JO(m)},{header:()=>n("host"),id:Bt.Host,accessorFn:m=>`${m.metadata.host?m.metadata.host:m.metadata.destinationIP}:${m.metadata.destinationPort}`},{header:()=>n("rule"),id:Bt.Rule,accessorFn:m=>m.rulePayload?`${m.rule} -> ${m.rulePayload}`:m.rule},{header:()=>n("chains"),id:Bt.Chains,accessorFn:m=>m.chains.slice().reverse().join(" -> ")},{header:()=>n("connectTime"),enableGrouping:!1,id:Bt.ConnectTime,accessorFn:m=>L0(m.start),sortingFn:(m,y)=>ta(y.original.start).valueOf()-ta(m.original.start).valueOf()},{header:()=>n("dlSpeed"),enableGrouping:!1,enableSorting:!0,id:Bt.DlSpeed,accessorFn:m=>`${mn(m.downloadSpeed)}/s`,sortingFn:(m,y)=>m.original.downloadSpeed-y.original.downloadSpeed},{header:()=>n("ulSpeed"),enableGrouping:!1,id:Bt.UlSpeed,accessorFn:m=>`${mn(m.uploadSpeed)}/s`,sortingFn:(m,y)=>m.original.uploadSpeed-y.original.uploadSpeed},{header:()=>n("dl"),enableGrouping:!1,id:Bt.Download,accessorFn:m=>mn(m.download),sortingFn:(m,y)=>m.original.download-y.original.download},{header:()=>n("ul"),enableGrouping:!1,id:Bt.Upload,accessorFn:m=>mn(m.upload),sortingFn:(m,y)=>m.original.upload-y.original.upload},{header:()=>n("sourceIP"),id:Bt.SourceIP,accessorFn:m=>Sm(m.metadata.sourceIP)},{header:()=>n("sourcePort"),id:Bt.SourcePort,accessorFn:m=>m.metadata.sourcePort},{header:()=>n("destination"),id:Bt.Destination,accessorFn:m=>m.metadata.destinationIP||m.metadata.host}],i=Me([]),o=Me({}),a=Ht("config/table-sorting",[]),s=eZ({get data(){return Ic.value},columns:r,state:{get columnOrder(){return Kl.value},get columnVisibility(){return{...Object.fromEntries(Object.values(Bt).map(m=>[m,!1])),...Object.fromEntries(Kl.value.map(m=>[m,!0]))}},get grouping(){return i.value},get expanded(){return o.value},get sorting(){return a.value}},onGroupingChange:m=>{du(m)?i.value=m(i.value):i.value=m},onExpandedChange:m=>{du(m)&&(o.value=m(o.value))},onSortingChange:m=>{du(m)?a.value=m(a.value):a.value=m},getSortedRowModel:ZK(),getGroupedRowModel:XK(),getExpandedRowModel:jK(),getCoreRowModel:YK()}),l=Ie(()=>s.getRowModel().rows),u=Me(null),c=Ie(()=>({count:l.value.length,getScrollElement:()=>u.value,estimateSize:()=>36,overscan:48})),h=Dk(c),p=Ie(()=>h.value.getVirtualItems()),d=Ie(()=>h.value.getTotalSize()+24),g={[Dd.SMALL]:"table-xs",[Dd.LARGE]:"table-sm"},_=Ie(()=>g[Pg.value]);return(m,y)=>(q(),re("div",{ref_key:"parentRef",ref:u,class:"h-full overflow-y-auto p-2"},[L("div",{style:yo({height:`${d.value}px`})},[L("table",{class:Ke(`table table-zebra ${_.value} rounded-none shadow-md`)},[L("thead",null,[(q(!0),re(Ge,null,Ft(F(s).getHeaderGroups(),b=>(q(),re("tr",{key:b.id},[(q(!0),re(Ge,null,Ft(b.headers,S=>(q(),re("th",{key:S.id,colSpan:S.colSpan,class:Ke(S.column.getCanSort()?"cursor-pointer select-none":""),onClick:x=>{var E;return(E=S.column.getToggleSortingHandler())==null?void 0:E(x)}},[L("div",nZ,[S.column.getCanGroup()?(q(),re("button",{key:0,class:"cursor-pointer",onClick:Sd(()=>S.column.getToggleGroupingHandler()(),["stop"])},[S.column.getIsGrouped()?(q(),Et(F(s2),{key:0,class:"h-4 w-4"})):(q(),Et(F(l2),{key:1,class:"h-4 w-4"}))],8,rZ)):yt("",!0),S.isPlaceholder?yt("",!0):(q(),Et(F(d1),{key:1,render:S.column.columnDef.header,props:S.getContext()},null,8,["render","props"])),S.column.getIsSorted()==="asc"?(q(),Et(F(rO),{key:2,class:"h-4 w-4"})):yt("",!0),S.column.getIsSorted()==="desc"?(q(),Et(F(tO),{key:3,class:"h-4 w-4"})):yt("",!0)])],10,tZ))),128))]))),128))]),L("tbody",null,[(q(!0),re(Ge,null,Ft(p.value,(b,S)=>(q(),re("tr",{key:b.key.toString(),style:yo({height:`${b.size}px`,transform:`translateY(${b.start-S*b.size}px)`}),class:"hover:!bg-primary hover:text-primary-content"},[(q(!0),re(Ge,null,Ft(l.value[b.index].getVisibleCells(),x=>(q(),re("td",{key:x.id,class:Ke(F(nn)("whitespace-nowrap text-sm",[F(Bt).Download,F(Bt).DlSpeed,F(Bt).Upload,F(Bt).UlSpeed].includes(x.column.id)&&"min-w-20",[F(Bt).Host].includes(x.column.id)&&"max-w-[32rem] truncate"))},[x.column.getIsGrouped()?(q(),re(Ge,{key:0},[l.value[b.index].getCanExpand()?(q(),re(Ge,{key:0},[L("button",{onClick:()=>l.value[b.index].getToggleExpandedHandler()(),class:"relative top-1 cursor-pointer"},[l.value[b.index].getIsExpanded()?(q(),Et(F(s2),{key:0,class:"h-4 w-4"})):(q(),Et(F(l2),{key:1,class:"h-4 w-4"}))],8,iZ),ye(F(d1),{render:x.column.columnDef.cell,props:x.getContext()},null,8,["render","props"]),L("span",null," ("+ue(l.value[b.index].subRows.length)+") ",1)],64)):yt("",!0)],64)):(q(),Et(F(d1),{key:1,render:x.getIsAggregated()?x.column.columnDef.aggregatedCell:x.column.columnDef.cell,props:x.getContext()},null,8,["render","props"]))],2))),128))],4))),128))])],2)],4)],512))}});var Mm={d:(e,t)=>{for(var n in t)Mm.o(t,n)&&!Mm.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},jk={};function Rb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ncZ});const Ze=(BM={computed:()=>Ie,createTextVNode:()=>st,createVNode:()=>ye,defineComponent:()=>Qe,reactive:()=>Eo,ref:()=>Me,watch:()=>Lt,watchEffect:()=>lx},p1={},Mm.d(p1,BM),p1),aZ=(0,Ze.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var e=this.data,t=this.onClick;return(0,Ze.createVNode)("span",{class:"vjs-tree-brackets",onClick:t},[e])}}),sZ=(0,Ze.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,Ze.computed)(function(){return e.isMultiple?"checkbox":"radio"}),model:(0,Ze.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,Ze.createVNode)("label",{class:["vjs-check-controller",t?"is-checked":""],onClick:function(r){return r.stopPropagation()}},[(0,Ze.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(e)},null),(0,Ze.createVNode)("input",{checked:t,class:"vjs-check-controller-original is-".concat(e),type:e,onChange:function(){return n("change",t)}},null)])}}),lZ=(0,Ze.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,Ze.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(n?"open":"close"),onClick:t},[(0,Ze.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Ze.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 BM,p1;function Db(e){return Db=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},Db(e)}function Xk(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function jl(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,h=i.length,p=h===void 0?1:h,d=Xk(e);if(d==="array"){var g=VM(e.map(function(y,b,S){return jl(y,"".concat(t,"[").concat(b,"]"),n+1,{index:b,showComma:b!==S.length-1,length:p,type:l})}));return[jl("[",t,n,{showComma:!1,key:o,length:e.length,type:"arrayStart"})[0]].concat(g,jl("]",t,n,{showComma:c,length:e.length,type:"arrayEnd"})[0])}if(d==="object"){var _=Object.keys(e),m=VM(_.map(function(y,b,S){return jl(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:p,type:l})}));return[jl("{",t,n,{showComma:!1,key:o,index:a,length:_.length,type:"objectStart"})[0]].concat(m,jl("}",t,n,{showComma:c,length:_.length,type:"objectEnd"})[0])}return[{content:e,level:n,key:o,index:a,path:t,showComma:c,length:p,type:l}]}function VM(e){if(typeof Array.prototype.flat=="function")return e.flat();for(var t=Rm(e),n=[];t.length;){var r=t.shift();Array.isArray(r)?t.unshift.apply(t,Rm(r)):n.push(r)}return n}function Pb(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(Db(e)!=="object")return e;if(t.get(e))return t.get(e);if(Array.isArray(e)){var n=e.map(function(o){return Pb(o,t)});return t.set(e,n),n}var r={};for(var i in e)r[i]=Pb(e[i],t);return t.set(e,r),r}function HM(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 UM(e){for(var t=1;t=S||T.length>=x,I=(M=e.pathCollapsible)===null||M===void 0?void 0:M.call(e,T);return T.type!=="objectStart"&&T.type!=="arrayStart"||!D&&!I?E:pi(pi({},E),{},Dm({},T.path,1))},{})},s=(0,Ze.reactive)({translateY:0,visibleData:null,hiddenPaths:a(e.deep,e.collapsedNodeLength)}),l=(0,Ze.computed)(function(){for(var S=null,x=[],E=o.value.length,T=0;TS.length?S.length-E:M;D<0&&(D=0);var I=D+E;s.translateY=D*e.itemHeight,s.visibleData=S.filter(function(k,N){return N>=D&&N(q(),re("div",hZ,[F(tu)?(q(),Et(lK,{key:0})):(q(),Et(oZ,{key:1})),L("dialog",{ref_key:"modalRef",ref:n,class:"modal"},[L("div",dZ,[ye(F(fZ),{data:F(t)},null,8,["data"])]),i[0]||(i[0]=L("form",{method:"dialog",class:"modal-backdrop"},[L("button",null,"close")],-1))],512)]))}}),vZ={class:"relative w-full flex-1"},Ux=Qe({__name:"TextInput",props:{label:{type:String,required:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:t}){const r=Me(e.modelValue),i=t;Lt(r,a=>{i("update:modelValue",a)});const o=()=>{r.value=""};return(a,s)=>(q(),re("div",vZ,[Tt(L("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>r.value=l),type:"text",class:"input input-sm join-item input-bordered w-full"},null,512),[[Fr,r.value]]),ye(F(C0),{class:"absolute right-2 top-1/2 h-3 w-3 -translate-y-1/2 cursor-pointer",onClick:o})]))}}),gZ=["value"],mZ=["value"],GM=Qe({__name:"SourceIPFilter",props:{horizontal:{type:Boolean}},setup(e){const t=Ie(()=>vX.value.map(n=>({label:Sm(n),value:n})));return(n,r)=>n.horizontal?yt("",!0):Tt((q(),re("select",{key:0,class:"join-item select select-bordered select-sm","onUpdate:modelValue":r[0]||(r[0]=i=>Je(Ra)?Ra.value=i:null)},[r[1]||(r[1]=L("option",{value:""},"all",-1)),t.value.every(i=>i.value!==F(Ra))&&F(Ra)!==""?(q(),re("option",{key:0,value:F(Ra)},ue(F(Sm)(F(Ra))),9,gZ)):yt("",!0),(q(!0),re(Ge,null,Ft(t.value,i=>(q(),re("option",{key:i.value,value:i.value},ue(i.label),9,mZ))),128))],512)),[[Ai,F(Ra)]])}}),yZ={class:"tabs-boxed tabs tabs-sm"},_Z={class:"shrink-0"},wZ=["value"],bZ={class:"shrink-0"},SZ=["data-tip"],xZ={class:"join flex-1"},CZ=Qe({__name:"ConnectionCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=()=>{Ic.value.forEach(n=>{V0(n.id)})};return(n,r)=>(q(),re("div",{class:Ke(F(nn)("flex flex-col gap-2 p-2 text-sm",n.horizontal&&"flex-row flex-wrap pb-0"))},[L("div",yZ,[L("a",{role:"tab",class:Ke(F(nn)("tab",F(Yl)===F(Ia).ACTIVE&&"tab-active")),onClick:r[0]||(r[0]=()=>Yl.value=F(Ia).ACTIVE)},[st(ue(n.$t("activeConnections"))+" ",1),F(Yl)===F(Ia).ACTIVE?(q(),re(Ge,{key:0},[st(" ("+ue(F(Ic).length)+") ",1)],64)):yt("",!0)],2),L("a",{role:"tab",class:Ke(F(nn)("tab",F(Yl)===F(Ia).CLOSED&&"tab-active")),onClick:r[1]||(r[1]=()=>Yl.value=F(Ia).CLOSED)},[st(ue(n.$t("closedConnections"))+" ",1),F(Yl)===F(Ia).CLOSED?(q(),re(Ge,{key:0},[st(" ("+ue(F(Ic).length)+") ",1)],64)):yt("",!0)],2)]),F(tu)?(q(),re("div",{key:0,class:Ke(F(nn)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",_Z,ue(n.$t("sortBy"))+":",1),Tt(L("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":r[2]||(r[2]=i=>Je(Hg)?Hg.value=i:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Xr)),i=>(q(),re("option",{key:i,value:i},ue(n.$t(i)||i),9,wZ))),128))],512),[[Ai,F(Hg)]])],2)):yt("",!0),L("div",{class:Ke(F(nn)("flex w-full items-center gap-2",n.horizontal&&"md:w-auto"))},[L("span",bZ,ue(n.$t("quickFilter"))+": ",1),Tt(L("input",{type:"text",class:Ke(["input input-sm join-item input-bordered w-0 flex-1",n.horizontal&&"md:w-48"]),"onUpdate:modelValue":r[3]||(r[3]=i=>Je(Yh)?Yh.value=i:null)},null,2),[[Fr,F(Yh)]]),Tt(L("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[4]||(r[4]=i=>Je(Vg)?Vg.value=i:null)},null,512),[[mo,F(Vg)]]),L("div",{class:Ke(`tooltip ${n.horizontal?"tooltip-left md:tooltip-bottom":"tooltip-left"}`),"data-tip":n.$t("quickFilterTip")},[ye(F(fO),{class:"h-4 w-4"})],10,SZ)],2),n.horizontal?yt("",!0):(q(),Et(GM,{key:1})),L("div",xZ,[n.horizontal?(q(),Et(GM,{key:0})):yt("",!0),ye(Ux,{modelValue:F(jh),"onUpdate:modelValue":r[5]||(r[5]=i=>Je(jh)?jh.value=i:null),class:"join-item min-w-36"},null,8,["modelValue"]),L("button",{class:"btn join-item btn-sm",onClick:r[6]||(r[6]=i=>Ug.value=!F(Ug))},[(q(),Et(Wa(F(Ug)?F(uO):F(lO)),{class:"h-4 w-4"}))]),L("button",{class:"btn join-item btn-sm",onClick:t},[ye(F(C0),{class:"h-4 w-4"})])])],2))}}),zx=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Zk=zx(CZ,[["__scopeId","data-v-ed6a81e8"]]),Pm=Me([]),Oc=Me(""),zg=Me(!1),Gg=Ht("config/log-level",eu.Info);let Ev,Im=[];const TZ=Mo.throttle(()=>{Pm.value=Im.concat(Pm.value).slice(0,Lg.value),Im=[]},500),Ib=[],EZ=()=>{Ib.length=0;for(const e in _i.value){if(e.startsWith("/"))continue;const t=new RegExp(e+":","ig");Ib.push([t,`${e} (${_i.value[e]}) :`])}};Lt(_i,()=>{EZ()},{immediate:!0});const Lb=()=>{Ev==null||Ev(),Pm.value=[],Im=[];let e=1;const t=uX({level:Gg.value}),n=Lt(t.data,r=>{if(r){if(zg.value){e++;return}for(const[i,o]of Ib)r.payload=r.payload.replace(i,o);Im.unshift({...r,time:new Date().valueOf(),seq:e++}),TZ()}});Ev=()=>{n(),t.close()}},AZ=["value"],Jk=Qe({__name:"LogsCtrl",props:{horizontal:{type:Boolean}},setup(e){return(t,n)=>(q(),re("div",{class:Ke(F(nn)("join w-full p-2",t.horizontal&&"max-w-96 pb-0"))},[Tt(L("select",{class:"join-item select select-bordered select-sm","onUpdate:modelValue":n[0]||(n[0]=r=>Je(Gg)?Gg.value=r:null),onChange:n[1]||(n[1]=(...r)=>F(Lb)&&F(Lb)(...r))},[(q(!0),re(Ge,null,Ft(Object.values(F(eu)),r=>(q(),re("option",{key:r,value:r},ue(r),9,AZ))),128))],544),[[Ai,F(Gg)]]),ye(Ux,{type:"text",modelValue:F(Oc),"onUpdate:modelValue":n[2]||(n[2]=r=>Je(Oc)?Oc.value=r:null)},null,8,["modelValue"]),L("button",{class:"btn-bordered btn join-item btn-sm",onClick:n[3]||(n[3]=r=>zg.value=!F(zg))},[(q(),Et(Wa(F(zg)?F(uO):F(lO)),{class:"h-4 w-4"}))])],2))}}),wi=Me({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}}),Gx=async()=>{wi.value=(await nX()).data},Ob=async e=>{await rX(e),Gx()},Qk=Me(yu.PROXIES),eN=Ie(()=>{var e;return Qk.value===yu.PROVIDER?Pc.value.map(t=>t.name):ja.value&&Ag.value&&Ro.value[Zl]?[...gb.value,Zl]:!ja.value&&((e=wi.value)==null?void 0:e.mode.toLocaleUpperCase())===Zl&&Ro.value[Zl]?[Zl]:gb.value}),MZ=Ie(()=>Vh.value&&eN.value.length>1),U0=()=>({proxiesTabShow:Qk,renderGroups:eN,hasTwoColumns:MZ}),RZ={key:0,role:"tablist",class:"tabs-boxed tabs tabs-sm"},DZ=["onClick"],PZ={key:1,class:"flex flex-col gap-2"},IZ=["value"],LZ=["value"],OZ=["value"],kZ={class:"shrink-0"},tN=Qe({__name:"ProxiesCtrl",props:{horizontal:{type:Boolean}},setup(e){const{proxiesTabShow:t}=U0(),n=Me(!1),r=async()=>{if(!n.value){n.value=!0;try{await Promise.all(Pc.value.map(a=>Ek(a.name))),await Xs(),n.value=!1}catch{await Xs(),n.value=!1}}},i=Ie(()=>{var a,s;return((a=wi.value)==null?void 0:a["mode-list"])||((s=wi.value)==null?void 0:s.modes)||["direct","rule","global"]}),o=a=>{const s=a.target.value;Ob({mode:s})};return(a,s)=>F(wi)?(q(),re("div",{key:0,class:Ke(F(nn)("flex flex-col gap-1 p-2 text-sm sm:gap-2",a.horizontal&&"flex-row flex-wrap pb-0"))},[F(Pc).length?(q(),re("div",{key:0,class:Ke(F(nn)("flex flex-col-reverse gap-2",a.horizontal&&"flex-row"))},[F(Pc).length?(q(),re("div",RZ,[(q(!0),re(Ge,null,Ft(F(yu),l=>(q(),re("a",{role:"tab",class:Ke(["tab",{"tab-active":F(t)===l}]),key:l,onClick:u=>t.value=l},ue(a.$t(l)),11,DZ))),128))])):yt("",!0),F(t)===F(yu).PROVIDER?(q(),re("div",PZ,[L("button",{class:Ke(F(nn)("btn btn-sm",n.value?"animate-pulse":"")),onClick:r},ue(a.$t("updateAllProviders")),3)])):yt("",!0)],2)):yt("",!0),s[2]||(s[2]=L("div",{class:"w-full sm:hidden"},null,-1)),L("div",{class:Ke(F(nn)("flex w-full items-center gap-2",a.horizontal&&"w-24"))},[L("select",{class:"select select-bordered select-sm w-1/2 flex-1",value:F(wi).mode,onChange:o},[(q(!0),re(Ge,null,Ft(i.value,l=>(q(),re("option",{key:l,value:l},ue(a.$t(l.toLowerCase())||l),9,LZ))),128))],40,IZ)],2),L("div",{class:Ke(F(nn)("flex w-full items-center gap-2",a.horizontal&&"w-72 max-sm:flex-1"))},[Tt(L("select",{class:"select select-bordered select-sm w-1/2 flex-1","onUpdate:modelValue":s[0]||(s[0]=l=>Je(Mg)?Mg.value=l:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Ls)),l=>(q(),re("option",{key:l,value:l},ue(a.$t(l)),9,OZ))),128))],512),[[Ai,F(Mg)]]),L("span",kZ,ue(a.$t("hideUnavailable"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":s[1]||(s[1]=l=>Je(Dg)?Dg.value=l:null)},null,512),[[mo,F(Dg)]])],2)],2)):yt("",!0)}}),Xh=Me(Kc.RULES),kb=Me([]),Lm=Me([]),Ld=async()=>{const{data:e}=await eX(),{data:t}=await tX();kb.value=e.rules,Lm.value=Object.values(t.providers)},NZ={role:"tablist",class:"tabs-boxed tabs tabs-sm"},FZ=["onClick"],$Z={key:0,class:"flex flex-col gap-2"},nN=Qe({__name:"RulesCtrl",props:{horizontal:{type:Boolean}},setup(e){const t=Me(!1),n=async()=>{if(!t.value){t.value=!0;try{await Promise.all(Lm.value.map(r=>Ak(r.name))),await Ld(),t.value=!1}catch{await Ld(),t.value=!1}}};return(r,i)=>F(Lm).length?(q(),re("div",{key:0,class:Ke(F(nn)("flex flex-col-reverse gap-2 p-2",r.horizontal&&"flex-row pb-0"))},[L("div",NZ,[(q(!0),re(Ge,null,Ft(F(Kc),o=>(q(),re("a",{role:"tab",class:Ke(["tab",{"tab-active":F(Xh)===o}]),key:o,onClick:a=>Xh.value=o},ue(r.$t(o)),11,FZ))),128))]),F(Xh)===F(Kc).PROVIDER?(q(),re("div",$Z,[L("button",{class:Ke(F(nn)("btn btn-sm",t.value?"animate-pulse":"")),onClick:n},ue(r.$t("updateAllProviders")),3)])):yt("",!0)],2)):yt("",!0)}}),BZ=""+new URL("metacubex-BlQkOUXT.jpg",import.meta.url).href,VZ="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",HZ={class:"flex items-center gap-1"},UZ=["src"],rN=Qe({__name:"BackendVersion",setup(e){return(t,n)=>(q(),re("div",HZ,[st(ue(t.$t("version"))+": ",1),L("img",{src:F(ja)?F(VZ):F(BZ),class:"h-4 w-4 rounded-sm"},null,8,UZ),st(" "+ue(F(Id)),1)]))}}),zZ={class:"join flex"},GZ=["value"],iN=Qe({__name:"BackendSwitch",setup(e){const t=Ie(()=>oa.value.map(r=>({label:_u(r),value:r.uuid}))),n=()=>{Sr.value=null,Do.push({name:Vt.setup})};return(r,i)=>(q(),re("div",zZ,[Tt(L("select",{class:"join-item select select-bordered select-sm w-56","onUpdate:modelValue":i[0]||(i[0]=o=>Je(Sr)?Sr.value=o:null)},[(q(!0),re(Ge,null,Ft(t.value,o=>(q(),re("option",{key:o.value,value:o.value},ue(o.label),9,GZ))),128))],512),[[Ai,F(Sr)]]),L("button",{class:"btn join-item btn-sm",onClick:n},[ye(F(cO),{class:"h-4 w-4"})])]))}}),WZ={class:"grid w-full grid-cols-2 gap-1 rounded-lg"},oN=Qe({__name:"StatisticsInfo",setup(e){return(t,n)=>(q(),re("div",WZ,[L("div",null,ue(t.$t("connections"))+": "+ue(F(bo).length),1),L("div",null,ue(t.$t("memoryUsage"))+": "+ue(F(mn)(F(Rx),{binary:!0})),1),L("div",null,ue(t.$t("download"))+": "+ue(F(mn)(F(Em))),1),L("div",null,ue(t.$t("dlSpeed"))+": "+ue(F(mn)(F(Dx)))+"/s",1),L("div",null,ue(t.$t("upload"))+": "+ue(F(mn)(F(Am))),1),L("div",null,ue(t.$t("ulSpeed"))+": "+ue(F(mn)(F(Px)))+"/s",1)]))}}),YZ={class:"flex flex-col gap-2 p-2 text-sm"},jZ={class:"flex"},qZ=Qe({__name:"CommonCtrl",setup(e){return(t,n)=>(q(),re("div",YZ,[ye(oN),ye(rN),L("div",jZ,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>Us.value=!0)},[ye(F(X6),{class:"h-5 w-5"})]),n[1]||(n[1]=L("div",{class:"flex-1"},null,-1)),ye(iN)])]))}});/*! ***************************************************************************** -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 Nb=function(e,t){return Nb=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])},Nb(e,t)};function Ve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Wx=12,XZ="sans-serif",bu=Wx+"px "+XZ,KZ=20,ZZ=100,JZ="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function QZ(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)s=a*n.length;else for(var l=0;l"u"&&typeof self<"u"?vt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(vt.node=!0,vt.svgSupported=!0):vJ(navigator.userAgent,vt);function vJ(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 gJ=".",bl="___EC__COMPONENT__CONTAINER___",dN="___EC__EXTENDED_CLASS___";function Ko(e){var t={main:"",sub:""};if(e){var n=e.split(gJ);t.main=n[0]||"",t.sub=n[1]||""}return t}function mJ(e){qa(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function yJ(e){return!!(e&&e[dN])}function Kx(e,t){e.$constructor=e,e.extend=function(n){var r=this,i;return _J(r)?i=function(o){Ve(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},oJ(i,this)),Le(i.prototype,n),i[dN]=!0,i.extend=this.extend,i.superCall=SJ,i.superApply=xJ,i.superClass=r,i}}function _J(e){return _t(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function pN(e,t){e.extend=t.extend}var wJ=Math.round(Math.random()*10);function bJ(e){var t=["__\0is_clz",wJ++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function SJ(e,t){for(var n=[],r=2;r=0||o&&sn(o,l)<0)){var u=r.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var CJ=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],TJ=Nd(CJ),EJ=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return TJ(this,t,n)},e}(),vN=function(){function e(t){this.value=t}return e}(),AJ=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new vN(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}(),ap=function(){function e(t){this._list=new AJ,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 vN(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}(),Bb=new ap(50);function MJ(e){if(typeof e=="string"){var t=Bb.get(e);return t&&t.image}else return e}function gN(e,t,n,r,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=Bb.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!j0(t)&&o.pending.push(a)):(t=uf.loadImage(e,jM,jM),t.__zrImageSrc=e,Bb.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function jM(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tg&&(g=S,_g&&(g=x,y=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Sl.x=Cl.x=n.x,Sl.y=Tl.y=n.y,xl.x=Tl.x=n.x+n.width,xl.y=Cl.y=n.y+n.height,Sl.transform(r),Tl.transform(r),xl.transform(r),Cl.transform(r),t.x=Mv(Sl.x,xl.x,Cl.x,Tl.x),t.y=Mv(Sl.y,xl.y,Cl.y,Tl.y);var l=Rv(Sl.x,xl.x,Cl.x,Tl.x),u=Rv(Sl.y,xl.y,Cl.y,Tl.y);t.width=l-t.x,t.height=u-t.y},e}(),qM={};function Ei(e,t){t=t||bu;var n=qM[t];n||(n=qM[t]=new ap(500));var r=n.get(e);return r==null&&(r=uf.measureText(e,t).width,n.put(e,r)),r}function XM(e,t,n,r){var i=Ei(e,t),o=tC(t),a=bh(0,i,n),s=pc(0,o,r),l=new Jt(a,s,i,o);return l}function eC(e,t,n,r){var i=((e||"")+"").split(` -`),o=i.length;if(o===1)return XM(i[0],t,n,r);for(var a=new Jt(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function mN(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",h="top";if(r instanceof Array)l+=Su(r[0],n.width),u+=Su(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="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,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var v1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function PJ(e,t,n,r,i){if(!t)return"";var o=(e+"").split(` -`);i=yN(t,n,r,i);for(var a=0,s=o.length;a=a;l++)s-=a;var u=Ei(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 _N(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Ei(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?IJ(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=Ei(e,r)}return e===""&&(e=t.placeholder),e}function IJ(e,t,n,r){for(var i=0,o=0,a=e.length;od&&u){var g=Math.floor(d/s);h=h.slice(0,g)}if(e&&o&&c!=null)for(var _=yN(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&g1(n,e.substring(s,u),t,a),g1(n,l[2],t,a,l[1]),s=v1.lastIndex}si){E>0?(b.tokens=b.tokens.slice(0,E),m(b,x,S),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var H=M.width,te=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")T.percentWidth=H,c.push(T),T.contentWidth=Ei(T.text,k);else{if(te){var W=M.backgroundColor,X=W&&W.image;X&&(X=MJ(X),j0(X)&&(T.width=Math.max(T.width,X.width*N/X.height)))}var j=g&&r!=null?r-x:null;j!=null&&j0&&g+r.accumWidth>r.width&&(c=t.split(` -`),u=!0),r.accumWidth=g}else{var _=wN(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=_.accumWidth+d,h=_.linesWidths,c=_.lines}}else c=t.split(` -`);for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $J=cf(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function BJ(e){return FJ(e)?!!$J[e]:!0}function wN(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+d>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=p,c=d)):g?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d));continue}c+=d,g?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}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 ff(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function VJ(e){return[e[0],e[1]]}function ZM(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function HJ(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function UJ(e){return Math.sqrt(zJ(e))}function zJ(e){return e[0]*e[0]+e[1]*e[1]}function m1(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function GJ(e,t){var n=UJ(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Hb(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var WJ=Hb;function YJ(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Fc=YJ;function Qi(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 mc(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function yc(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var JM=Zx,QM=5e-5;function El(e){return e>QM||e<-QM}var Al=[],Xu=[],y1=kc(),_1=Math.abs,nC=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 El(this.rotation)||El(this.x)||El(this.y)||El(this.scaleX-1)||El(this.scaleY-1)||El(this.skewX)||El(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(JM(r),this.invTransform=null);return}r=r||kc(),n?this.getLocalTransform(r):JM(r),t&&(n?Nc(r,t,r):RJ(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Al);var r=Al[0]<0?-1:1,i=Al[1]<0?-1:1,o=((Al[0]-r)*n+r)/Al[0]||0,a=((Al[1]-i)*n+i)/Al[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||kc(),Qx(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||kc(),Nc(Xu,t.invTransform,n),n=Xu);var r=this.originX,i=this.originY;(r||i)&&(y1[4]=r,y1[5]=i,Nc(Xu,n,y1),Xu[4]-=r,Xu[5]-=i,n=Xu),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&&Qi(r,r,i),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],i=this.transform;return i&&Qi(r,r,i),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&_1(t[0]-1)>1e-10&&_1(t[3]-1)>1e-10?Math.sqrt(_1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){jJ(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,h=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(r||i||s||l){var g=r+s,_=i+l;n[4]=-g*o-p*_*a,n[5]=-_*a-d*g*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=d*o,n[2]=p*a,u&&Jx(n,n,u),n[4]+=r+c,n[5]+=i+h,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}(),Fd=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function jJ(e,t){for(var n=0;n-km&&ekm||e<-km}function lr(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 tR(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Nm(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,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if($s(c)&&$s(h))if($s(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[d++]=g)}else{var _=h*h-4*c*p;if($s(_)){var m=h/c,g=-s/a+m,y=-m/2;g>=0&&g<=1&&(o[d++]=g),y>=0&&y<=1&&(o[d++]=y)}else if(_>0){var b=zs(_),S=c*s+1.5*a*(-h+b),x=c*s+1.5*a*(-h-b);S<0?S=-Dv(-S,Pv):S=Dv(S,Pv),x<0?x=-Dv(-x,Pv):x=Dv(x,Pv);var g=(-s-(S+x))/(3*a);g>=0&&g<=1&&(o[d++]=g)}else{var E=(2*c*s-3*a*h)/(2*zs(c*c*c)),T=Math.acos(E)/3,M=zs(c),D=Math.cos(T),g=(-s-2*M*D)/(3*a),y=(-s+M*(D+eR*Math.sin(T)))/(3*a),I=(-s+M*(D-eR*Math.sin(T)))/(3*a);g>=0&&g<=1&&(o[d++]=g),y>=0&&y<=1&&(o[d++]=y),I>=0&&I<=1&&(o[d++]=I)}}return d}function xN(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($s(a)){if(SN(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if($s(c))i[0]=-o/(2*a);else if(c>0){var h=zs(c),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function Fm(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,h=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function qJ(e,t,n,r,i,o,a,s,l,u,c){var h,p=.005,d=1/0,g,_,m,y;Yo[0]=l,Yo[1]=u;for(var b=0;b<1;b+=.05)ji[0]=lr(e,n,i,a,b),ji[1]=lr(t,r,o,s,b),m=Fc(Yo,ji),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if($s(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=zs(c),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),p>=0&&p<=1&&(i[l++]=p)}}return l}function CN(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function $m(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 ZJ(e,t,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Yo[0]=a,Yo[1]=s;for(var p=0;p<1;p+=.05){ji[0]=Kr(e,n,i,p),ji[1]=Kr(t,r,o,p);var d=Fc(Yo,ji);d=0&&d=1?1:Nm(0,r,o,1,l,s)&&lr(0,i,a,1,s[0])}}}var eQ=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||ti,this.ondestroy=t.ondestroy||ti,this.onrestart=t.onrestart||ti,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=_t(t)?t:Zh[t]||TN(t)},e}(),rR={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 Gs(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ub(e){return e<0?0:e>1?1:e}function w1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Gs(parseFloat(t)/100*255):Gs(parseInt(t,10))}function Jh(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ub(parseFloat(t)/100):Ub(parseFloat(t))}function b1(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 Iv(e,t,n){return e+(t-e)*n}function Hi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function zb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var EN=new ap(20),Lv=null;function Ku(e,t){Lv&&zb(Lv,t),Lv=EN.put(e,Lv||t.slice())}function Ua(e,t){if(e){t=t||[];var n=EN.get(e);if(n)return zb(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in rR)return zb(t,rR[r]),Ku(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)){Hi(t,0,0,0,1);return}return Hi(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),Ku(e,t),t}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Hi(t,0,0,0,1);return}return Hi(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),Ku(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?Hi(t,+u[0],+u[1],+u[2],1):Hi(t,0,0,0,1);c=Jh(u.pop());case"rgb":if(u.length>=3)return Hi(t,w1(u[0]),w1(u[1]),w1(u[2]),u.length===3?c:Jh(u[3])),Ku(e,t),t;Hi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Hi(t,0,0,0,1);return}return u[3]=Jh(u[3]),iR(u,t),Ku(e,t),t;case"hsl":if(u.length!==3){Hi(t,0,0,0,1);return}return iR(u,t),Ku(e,t),t;default:return}}Hi(t,0,0,0,1)}}function iR(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Jh(e[1]),i=Jh(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return t=t||[],Hi(t,Gs(b1(a,o,n+1/3)*255),Gs(b1(a,o,n)*255),Gs(b1(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function oR(e,t){var n=Ua(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 q0(n,n.length===4?"rgba":"rgb")}}function tQ(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=Ua(t[i]),s=Ua(t[o]),l=r-i,u=q0([Gs(Iv(a[0],s[0],l)),Gs(Iv(a[1],s[1],l)),Gs(Iv(a[2],s[2],l)),Ub(Iv(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function q0(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 Bm(e,t){var n=Ua(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var aR=new ap(100);function sR(e){if(qe(e)){var t=aR.get(e);return t||(t=oR(e,-.1),aR.put(e,t)),t}else if(G0(e)){var n=Le({},e);return n.colorStops=ct(e.colorStops,function(r){return{offset:r.offset,color:oR(r.color,-.1)}}),n}return e}function nQ(e){return e.type==="linear"}function rQ(e){return e.type==="radial"}(function(){return vt.hasGlobalWindow&&_t(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 Gb=Array.prototype.slice;function Pa(e,t,n){return(t-e)*n+e}function S1(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=uR,l=n;if(ri(n)){var u=sQ(n);s=u,(u===1&&!Tn(n[0])||u===2&&!Tn(n[0][0]))&&(a=!0)}else if(Tn(n)&&!Om(n))s=kv;else if(qe(n))if(!isNaN(+n))s=kv;else{var c=Ua(n);c&&(l=c,s=Sh)}else if(G0(n)){var h=Le({},l);h.colorStops=ct(n.colorStops,function(d){return{offset:d.offset,color:Ua(d.color)}}),nQ(n)?s=Wb:rQ(n)&&(s=Yb),l=h}o===0?this.valType=s:(s!==this.valType||s===uR)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return r&&(p.easing=r,p.easingFunc=_t(r)?r:Zh[r]||TN(r)),i.push(p),p},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(_,m){return _.time-m.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Nv(i),u=cR(i),c=0;c=0&&!(a[c].percent<=n);c--);c=p(c,s-2)}else{for(c=h;cn);c++);c=p(c-1,s-2)}g=a[c+1],d=a[c]}if(d&&g){this._lastFr=c,this._lastFrP=n;var m=g.percent-d.percent,y=m===0?1:p((n-d.percent)/m,1);g.easingFunc&&(y=g.easingFunc(y));var b=r?this._additiveValue:u?Yf:t[l];if((Nv(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=y<1?d.rawValue:g.rawValue;else if(Nv(o))o===qg?S1(b,d[i],g[i],y):iQ(b,d[i],g[i],y);else if(cR(o)){var S=d[i],x=g[i],E=o===Wb;t[l]={type:E?"linear":"radial",x:Pa(S.x,x.x,y),y:Pa(S.y,x.y,y),colorStops:ct(S.colorStops,function(M,D){var I=x.colorStops[D];return{offset:Pa(M.offset,I.offset,y),color:jg(S1([],M.color,I.color,y))}}),global:x.global},E?(t[l].x2=Pa(S.x2,x.x2,y),t[l].y2=Pa(S.y2,x.y2,y)):t[l].r=Pa(S.r,x.r,y)}else if(u)S1(b,d[i],g[i],y),r||(t[l]=jg(b));else{var T=Pa(d[i],g[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===kv?t[r]=t[r]+i:n===Sh?(Ua(t[r],Yf),Ov(Yf,Yf,i,1),t[r]=jg(Yf)):n===qg?Ov(t[r],t[r],i,1):n===AN&&lR(t[r],t[r],i,1)},e}(),rC=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){qx("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,Cn(n),r)},e.prototype.whenWithKeys=function(t,n,r,i){for(var o=this._tracks,a=0;a0&&l.addKeyframe(0,Yg(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Yg(n[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),ca=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,S=void 0;_&&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!==m.fill||b!==m.stroke||S!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=S,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=Si,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()?Xb:qb},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ua(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,q0(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||{},Le(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(at(t))for(var r=t,i=Cn(r),o=0;o0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(x1,!1,t)},e.prototype.useState=function(t,n,r,i){var o=t===x1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(sn(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){qx("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 h=this._textContent,p=this._textGuide;return h&&h.useState(t,n,r,c),p&&p.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&=~Si),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l0,g);var _=this._textContent,m=this._textGuide;_&&_.useStates(t,n,p),m&&m.useStates(t,n,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Si)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var i=this.currentStates.slice(),o=sn(i,t),a=sn(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,i=0;i=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,i=r.length,o=[],a=0;a0&&n.during&&o[0].during(function(g,_){n.during(_)});for(var p=0;p0||i.force&&!a.length){var D=void 0,I=void 0,k=void 0;if(s){I={},p&&(D={});for(var x=0;x1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Fv[0]=D1(i)*n+e,Fv[1]=R1(i)*r+t,$v[0]=D1(o)*n+e,$v[1]=R1(o)*r+t,u(s,Fv,$v),c(l,Fv,$v),i=i%Ml,i<0&&(i=i+Ml),o=o%Ml,o<0&&(o=o+Ml),i>o&&!a?o+=Ml:ii&&(Bv[0]=D1(d)*n+e,Bv[1]=R1(d)*r+t,u(s,Bv,s),c(l,Bv,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Rl=[],Dl=[],Vo=[],gs=[],Ho=[],Uo=[],P1=Math.min,I1=Math.max,Pl=Math.cos,Il=Math.sin,Ea=Math.abs,Zb=Math.PI,Ts=Zb*2,L1=typeof Float32Array<"u",jf=[];function O1(e){var t=Math.round(e/Zb*1e8)/1e8;return t%2*Zb}function bQ(e,t){var n=O1(e[0]);n<0&&(n+=Ts);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Ts?i=n+Ts:t&&n-i>=Ts?i=n-Ts:!t&&n>i?i=n+(Ts-O1(n-i)):t&&n0&&(this._ux=Ea(r/Vm/t)||0,this._uy=Ea(r/Vm/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(qt.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=Ea(t-this._xi),i=Ea(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(qt.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(qt.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(qt.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(),jf[0]=i,jf[1]=o,bQ(jf,a),i=jf[0],o=jf[1];var s=o-i;return this.addData(qt.A,t,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,r,i,o,a),this._xi=Pl(o)*r+t,this._yi=Il(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(qt.R,t,n,r,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.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)&&L1&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Vo[0]=Vo[1]=Ho[0]=Ho[1]=Number.MAX_VALUE,gs[0]=gs[1]=Uo[0]=Uo[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,i=0,o=0,a;for(a=0;ar||Ea(S)>i||p===n-1)&&(_=Math.sqrt(b*b+S*S),o=m,a=y);break}case qt.C:{var x=t[p++],E=t[p++],m=t[p++],y=t[p++],T=t[p++],M=t[p++];_=XJ(o,a,x,E,m,y,T,M,10),o=T,a=M;break}case qt.Q:{var x=t[p++],E=t[p++],m=t[p++],y=t[p++];_=JJ(o,a,x,E,m,y,10),o=m,a=y;break}case qt.A:var D=t[p++],I=t[p++],k=t[p++],N=t[p++],H=t[p++],te=t[p++],W=te+H;p+=1,g&&(s=Pl(H)*k+D,l=Il(H)*N+I),_=I1(k,N)*P1(Ts,Math.abs(te)),o=Pl(W)*k+D,a=Il(W)*N+I;break;case qt.R:{s=o=t[p++],l=a=t[p++];var X=t[p++],j=t[p++];_=X*2+j*2;break}case qt.Z:{var b=s-o,S=l-a;_=Math.sqrt(b*b+S*S),o=s,a=l;break}}_>=0&&(u[h++]=_,c+=_)}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,h,p,d=n<1,g,_,m=0,y=0,b,S=0,x,E;if(!(d&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,_=this._pathLen,b=n*_,!b)))e:for(var T=0;T0&&(t.lineTo(x,E),S=0),M){case qt.M:s=u=r[T++],l=c=r[T++],t.moveTo(u,c);break;case qt.L:{h=r[T++],p=r[T++];var I=Ea(h-u),k=Ea(p-c);if(I>i||k>o){if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;t.lineTo(u*(1-H)+h*H,c*(1-H)+p*H);break e}m+=N}t.lineTo(h,p),u=h,c=p,S=0}else{var te=I*I+k*k;te>S&&(x=h,E=p,S=te)}break}case qt.C:{var W=r[T++],X=r[T++],j=r[T++],oe=r[T++],Q=r[T++],fe=r[T++];if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;Fm(u,W,j,Q,H,Rl),Fm(c,X,oe,fe,H,Dl),t.bezierCurveTo(Rl[1],Dl[1],Rl[2],Dl[2],Rl[3],Dl[3]);break e}m+=N}t.bezierCurveTo(W,X,j,oe,Q,fe),u=Q,c=fe;break}case qt.Q:{var W=r[T++],X=r[T++],j=r[T++],oe=r[T++];if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;$m(u,W,j,H,Rl),$m(c,X,oe,H,Dl),t.quadraticCurveTo(Rl[1],Dl[1],Rl[2],Dl[2]);break e}m+=N}t.quadraticCurveTo(W,X,j,oe),u=j,c=oe;break}case qt.A:var _e=r[T++],be=r[T++],Ne=r[T++],ke=r[T++],je=r[T++],He=r[T++],Ye=r[T++],le=!r[T++],Te=Ne>ke?Ne:ke,we=Ea(Ne-ke)>.001,xe=je+He,Ee=!1;if(d){var N=g[y++];m+N>b&&(xe=je+He*(b-m)/N,Ee=!0),m+=N}if(we&&t.ellipse?t.ellipse(_e,be,Ne,ke,Ye,je,xe,le):t.arc(_e,be,Te,je,xe,le),Ee)break e;D&&(s=Pl(je)*Ne+_e,l=Il(je)*ke+be),u=Pl(xe)*Ne+_e,c=Il(xe)*ke+be;break;case qt.R:s=u=r[T],l=c=r[T+1],h=r[T++],p=r[T++];var Pe=r[T++],$=r[T++];if(d){var N=g[y++];if(m+N>b){var B=b-m;t.moveTo(h,p),t.lineTo(h+P1(B,Pe),p),B-=Pe,B>0&&t.lineTo(h+Pe,p+P1(B,$)),B-=$,B>0&&t.lineTo(h+I1(Pe-B,0),p+$),B-=Pe,B>0&&t.lineTo(h,p+I1($-B,0));break e}m+=N}t.rect(h,p,Pe,$);break;case qt.Z:if(d){var N=g[y++];if(m+N>b){var H=(b-m)/N;t.lineTo(u*(1-H)+s*H,c*(1-H)+l*H);break e}m+=N}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=qt,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ju(e,t,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+h&&c>r+h&&c>o+h&&c>s+h||ce+h&&u>n+h&&u>i+h&&u>a+h||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=qf);var p=Math.atan2(l,s);return p<0&&(p+=qf),p>=r&&p<=i||p+qf>=r&&p+qf<=i}function Ll(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var ms=xu.CMD,Ol=Math.PI*2,TQ=1e-4;function EQ(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&AQ(),d=lr(t,r,o,s,Wi[0]),p>1&&(g=lr(t,r,o,s,Wi[1]))),p===2?mt&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=Kr(t,r,o,u),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Lr[0]=-l,Lr[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ol-1e-4){r=0,i=Ol;var c=o?1:-1;return a>=Lr[0]+e&&a<=Lr[1]+e?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Ol,i+=Ol);for(var p=0,d=0;d<2;d++){var g=Lr[d];if(g+e>a){var _=Math.atan2(s,g),c=o?1:-1;_<0&&(_=Ol+_),(_>=r&&_<=i||_+Ol>=r&&_+Ol<=i)&&(_>Math.PI/2&&_1&&(n||(s+=Ll(l,u,c,h,r,i))),m&&(l=o[g],u=o[g+1],c=l,h=u),_){case ms.M:c=o[g++],h=o[g++],l=c,u=h;break;case ms.L:if(n){if(Ju(l,u,o[g],o[g+1],t,r,i))return!0}else s+=Ll(l,u,o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ms.C:if(n){if(SQ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=MQ(l,u,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ms.Q:if(n){if(xQ(l,u,o[g++],o[g++],o[g],o[g+1],t,r,i))return!0}else s+=RQ(l,u,o[g++],o[g++],o[g],o[g+1],r,i)||0;l=o[g++],u=o[g++];break;case ms.A:var y=o[g++],b=o[g++],S=o[g++],x=o[g++],E=o[g++],T=o[g++];g+=1;var M=!!(1-o[g++]);p=Math.cos(E)*S+y,d=Math.sin(E)*x+b,m?(c=p,h=d):s+=Ll(l,u,p,d,r,i);var D=(r-y)*x/S+y;if(n){if(CQ(y,b,x,E,E+T,M,t,D,i))return!0}else s+=DQ(y,b,x,E,E+T,M,D,i);l=Math.cos(E+T)*S+y,u=Math.sin(E+T)*x+b;break;case ms.R:c=l=o[g++],h=u=o[g++];var I=o[g++],k=o[g++];if(p=c+I,d=h+k,n){if(Ju(c,h,p,h,t,r,i)||Ju(p,h,p,d,t,r,i)||Ju(p,d,c,d,t,r,i)||Ju(c,d,c,h,t,r,i))return!0}else s+=Ll(p,h,p,d,r,i),s+=Ll(c,d,c,h,r,i);break;case ms.Z:if(n){if(Ju(l,u,c,h,t,r,i))return!0}else s+=Ll(l,u,c,h,r,i);l=c,u=h;break}}return!n&&!EQ(u,h)&&(s+=Ll(l,u,c,h,r,i)||0),s!==0}function PQ(e,t,n){return DN(e,0,!1,t,n)}function IQ(e,t,n,r){return DN(e,t,!0,n,r)}var PN=rn({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pu),LQ={style:rn({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},K0.style)},k1=Fd.concat(["invisible","culling","z","z2","zlevel","parent"]),pn=function(e){Ve(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.5?qb:r>.2?uQ:Xb}else if(n)return Xb}return qb},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(qe(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Bm(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,i=!n;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&vc)&&(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)),IQ(s,l/u,n,r)))return!0}if(this.hasFill())return PQ(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=vc,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:Le(i,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&vc)},t.prototype.createStyle=function(n){return W0(PN,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Le({},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=Le({},i.shape),Le(u,r.shape)):(u=Le({},o?this.shape:i.shape),Le(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=Le({},this.shape);for(var c={},h=Cn(u),p=0;p0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return W0(OQ,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=eC(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}(sp);Hm.prototype.type="tspan";var kQ=rn({x:0,y:0},pu),NQ={style:rn({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},K0.style)};function FQ(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ll=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return W0(kQ,n)},t.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=FQ(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 NQ},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Jt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(sp);ll.prototype.type="image";function $Q(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 h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+c>i&&(h=u+c,u*=i/h,c*=i/h),l+u>o&&(h=l+u,l*=o/h,u*=o/h),s+c>o&&(h=s+c,s*=o/h,c*=o/h),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 _c=Math.round;function IN(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&&(_c(r*2)===_c(i*2)&&(e.x1=e.x2=iu(r,s,!0)),_c(o*2)===_c(a*2)&&(e.y1=e.y2=iu(o,s,!0))),e}}function LN(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=iu(r,s,!0),e.y=iu(i,s,!0),e.width=Math.max(iu(r+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(iu(i+a,s,!1)-e.y,a===0?0:1)),e}}function iu(e,t,n){if(!t)return e;var r=_c(e*2);return(r+_c(t))%2===0?r/2:(r+(n?1:-1))/2}var BQ=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),VQ={},cr=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new BQ},t.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=LN(VQ,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?$Q(n,r):n.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pn);cr.prototype.type="rect";var gR={fill:"#000"},mR=2,HQ={style:rn({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},K0.style)},oi=function(e){Ve(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=gR,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,H=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),te=a.calculatedLineHeight,W=0;W=0&&(W=T[te],W.align==="right");)this._placeToken(W,n,D,y,H,"right",S),I-=W.width,H-=W.width,te--;for(N+=(o-(N-m)-(b-H)-I)/2;k<=te;)W=T[k],this._placeToken(W,n,D,y,N+W.width/2,"center",S),N+=W.width,k++;y+=D}},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,h=o+i/2;c==="top"?h=o+n.height/2:c==="bottom"&&(h=o+i-n.height/2);var p=!n.isLineHolder&&N1(u);p&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,h-n.height/2,n.width,n.height);var d=!!u.backgroundColor,g=n.textPadding;g&&(a=xR(a,s,g),h-=n.height/2-g[0]-n.innerHeight/2);var _=this._getOrCreateChild(Hm),m=_.createStyle();_.useStyle(m);var y=this._defaultStyle,b=!1,S=0,x=SR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),E=bR("stroke"in u?u.stroke:"stroke"in r?r.stroke:!d&&!l&&(!y.autoStroke||b)?(S=mR,y.stroke):null),T=u.textShadowBlur>0||r.textShadowBlur>0;m.text=n.text,m.x=a,m.y=h,T&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=n.font||bu,m.opacity=Wg(u.opacity,r.opacity,1),_R(m,u),E&&(m.lineWidth=Wg(u.lineWidth,r.lineWidth,S),m.lineDash=kt(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=E),x&&(m.fill=x);var M=n.contentWidth,D=n.contentHeight;_.setBoundingRect(new Jt(bh(m.x,M,m.textAlign),pc(m.y,D,m.textBaseline),M,D))},t.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,h=l&&l.image,p=l&&!h,d=n.borderRadius,g=this,_,m;if(p||n.lineHeight||u&&c){_=this._getOrCreateChild(cr),_.useStyle(_.createStyle()),_.style.fill=null;var y=_.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=d,_.dirtyShape()}if(p){var b=_.style;b.fill=l||null,b.fillOpacity=kt(n.fillOpacity,1)}else if(h){m=this._getOrCreateChild(ll),m.onload=function(){g.dirtyStyle()};var S=m.style;S.image=l.image,S.x=i,S.y=o,S.width=a,S.height=s}if(u&&c){var b=_.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=kt(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,_.strokeContainThreshold=0,_.hasFill()&&_.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(_||m).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=Wg(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return WQ(n)&&(r=[n.fontStyle,n.fontWeight,GQ(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Xo(r)||n.textFont||n.font},t}(sp),UQ={left:!0,right:1,center:1},zQ={top:1,bottom:1,middle:1},yR=["fontStyle","fontWeight","fontSize","fontFamily"];function GQ(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Wx+"px":e+"px"}function _R(e,t){for(var n=0;n0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function Nr(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 qe(e)?jQ(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Wn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),ON),e=(+e).toFixed(t),n?e:+e}function Ba(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 qQ(e)}function qQ(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 XQ(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 KQ(e,t){var n=Math.max(Ba(e),Ba(t)),r=e+t;return n>ON?r:Wn(r,n)}function kN(e){var t=Math.PI*2;return(e%t+t)%t}function Um(e){return e>-TR&&e=10&&t++,t}function NN(e,t){var n=iC(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 zm(e){var t=parseFloat(e);return t==e&&(t!==0||!qe(e)||e.indexOf("x")<=0)?t:NaN}function QQ(e){return!isNaN(zm(e))}function FN(){return Math.round(Math.random()*9)}function $N(e,t){return t===0?e:$N(t,e%t)}function AR(e,t){return e==null?t:t==null?e:e*t/$N(e,t)}function Zr(e){throw new Error(e)}function MR(e,t,n){return(t-e)*n+e}var BN="series\0",eee="\0_ec_\0";function $r(e){return e instanceof Array?e:e==null?[]:[e]}function RR(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r=0,o=!1;if(e instanceof pn){var a=UN(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Qu(s)||Qu(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=Le({},r),u=Le({},u),u.fill=s):!Qu(u.fill)&&Qu(s)?(o=!0,r=Le({},r),u=Le({},u),u.fill=sR(s)):!Qu(u.stroke)&&Qu(l)&&(o||(r=Le({},r),u=Le({},u)),u.stroke=sR(l)),r.style=u}}if(r&&r.z2==null){o||(r=Le({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??gee)}return r}function See(e,t,n){if(n&&n.z2==null){n=Le({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??mee)}return n}function xee(e,t,n){var r=sn(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:wee(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=Le({},n),a=Le({opacity:r?i:o.opacity*.1},a),n.style=a),n}function $1(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return bee(this,e,t,n);if(e==="blur")return xee(this,e,n);if(e==="select")return See(this,e,n)}return n}function Cee(e){e.stateProxy=$1;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=$1),n&&(n.stateProxy=$1)}function NR(e,t){!XN(e,t)&&!e.__highByOuter&&Ja(e,zN)}function FR(e,t){!XN(e,t)&&!e.__highByOuter&&Ja(e,GN)}function Gm(e,t){e.__highByOuter|=1<<(t||0),Ja(e,zN)}function Wm(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ja(e,GN)}function Tee(e){Ja(e,uC)}function YN(e){Ja(e,WN)}function jN(e){Ja(e,yee)}function qN(e){Ja(e,_ee)}function XN(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function KN(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(i,o){var a=sC(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){WN(u)}),s&&n.push(o)),a.isBlured=!1}),G(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,t)})}function Jb(e,t,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var h=0;h0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function eS(e,t,n){ZN(e,!0),Ja(e,Cee),Iee(e,t,n)}function Pee(e){ZN(e,!1)}function tS(e,t,n,r){r?Pee(e):eS(e,t,n)}function Iee(e,t,n){var r=hn(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var BR=["emphasis","blur","select"],Lee={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function VR(e,t,n,r){n=n||"itemStyle";for(var i=0;i1&&(a*=B1(g),s*=B1(g));var _=(i===o?-1:1)*B1((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,m=_*a*d/s,y=_*-s*p/a,b=(e+n)/2+Uv(h)*m-Hv(h)*y,S=(t+r)/2+Hv(h)*m+Uv(h)*y,x=GR([1,0],[(p-m)/a,(d-y)/s]),E=[(p-m)/a,(d-y)/s],T=[(-1*p-m)/a,(-1*d-y)/s],M=GR(E,T);if(iS(E,T)<=-1&&(M=Xf),iS(E,T)>=1&&(M=0),M<0){var D=Math.round(M/Xf*1e6)/1e6;M=Xf*2+D%2*Xf}c.addData(u,b,S,a,s,x,M,h,o)}var Bee=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Vee=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hee(e){var t=new xu;if(!e)return t;var n=0,r=0,i=n,o=r,a,s=xu.CMD,l=e.match(Bee);if(!l)return t;for(var u=0;u=0&&(i.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var i=sn(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=sn(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;iW*W+X*X&&(D=k,I=N),{cx:D,cy:I,x0:-c,y0:-h,x1:D*(i/E-1),y1:I*(i/E-1)}}function Xee(e){var t;if(ze(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 Kee(e,t){var n,r=Ch(t.r,0),i=Ch(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,h=t.cy,p=!!t.clockwise,d=YR(u-l),g=d>V1&&d%V1;if(g>fo&&(d=g),!(r>fo))e.moveTo(c,h);else if(d>V1-fo)e.moveTo(c+r*tc(l),h+r*kl(l)),e.arc(c,h,r,l,u,!p),i>fo&&(e.moveTo(c+i*tc(u),h+i*kl(u)),e.arc(c,h,i,u,l,p));else{var _=void 0,m=void 0,y=void 0,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0,M=void 0,D=void 0,I=void 0,k=void 0,N=void 0,H=void 0,te=void 0,W=void 0,X=r*tc(l),j=r*kl(l),oe=i*tc(u),Q=i*kl(u),fe=d>fo;if(fe){var _e=t.cornerRadius;_e&&(n=Xee(_e),_=n[0],m=n[1],y=n[2],b=n[3]);var be=YR(r-i)/2;if(S=zo(be,y),x=zo(be,b),E=zo(be,_),T=zo(be,m),I=M=Ch(S,x),k=D=Ch(E,T),(M>fo||D>fo)&&(N=r*tc(u),H=r*kl(u),te=i*tc(l),W=i*kl(l),dfo){var we=zo(y,I),xe=zo(b,I),Ee=zv(te,W,X,j,r,we,p),Pe=zv(N,H,oe,Q,r,xe,p);e.moveTo(c+Ee.cx+Ee.x0,h+Ee.cy+Ee.y0),I0&&e.arc(c+Ee.cx,h+Ee.cy,we,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,h,r,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(Pe.cy+Pe.y1,Pe.cx+Pe.x1),!p),xe>0&&e.arc(c+Pe.cx,h+Pe.cy,xe,vr(Pe.y1,Pe.x1),vr(Pe.y0,Pe.x0),!p))}else e.moveTo(c+X,h+j),e.arc(c,h,r,l,u,!p);if(!(i>fo)||!fe)e.lineTo(c+oe,h+Q);else if(k>fo){var we=zo(_,k),xe=zo(m,k),Ee=zv(oe,Q,N,H,i,-xe,p),Pe=zv(X,j,te,W,i,-we,p);e.lineTo(c+Ee.cx+Ee.x0,h+Ee.cy+Ee.y0),k0&&e.arc(c+Ee.cx,h+Ee.cy,xe,vr(Ee.y0,Ee.x0),vr(Ee.y1,Ee.x1),!p),e.arc(c,h,i,vr(Ee.cy+Ee.y1,Ee.cx+Ee.x1),vr(Pe.cy+Pe.y1,Pe.cx+Pe.x1),p),we>0&&e.arc(c+Pe.cx,h+Pe.cy,we,vr(Pe.y1,Pe.x1),vr(Pe.y0,Pe.x0),!p))}else e.lineTo(c+oe,h+Q),e.arc(c,h,i,u,l,p)}e.closePath()}}}var Zee=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}(),ty=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Zee},t.prototype.buildPath=function(n,r){Kee(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pn);ty.prototype.type="sector";var Jee=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),hC=function(e){Ve(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Jee},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}(pn);hC.prototype.type="ring";function Qee(e,t,n,r){var i=[],o=[],a=[],s=[],l,u,c,h;if(r){c=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,d=e.length;p=2){if(r){var o=Qee(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,h=i.length;sFl[1]){if(s=!1,o)return s;var c=Math.abs(Fl[0]-Nl[1]),h=Math.abs(Nl[0]-Fl[1]);Math.min(c,h)>i.len()&&(c0){var h=c.duration,p=c.delay,d=c.easing,g={duration:h,delay:p||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,g):t.animateTo(n,g)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Js(e,t,n,r,i,o){mC("update",e,t,n,r,i,o)}function cp(e,t,n,r,i,o){mC("enter",e,t,n,r,i,o)}function rd(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function XR(e){return!e.isGroup}function xte(e){return e.shape!=null}function sF(e,t,n){if(!e||!t)return;function r(a){var s={};return a.traverse(function(l){XR(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return xte(a)&&(s.shape=Le({},a.shape)),s}var o=r(e);t.traverse(function(a){if(XR(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),Js(a,l,n,hn(a).dataIndex)}}})}function Cte(e,t){return ct(e,function(n){var r=n[0];r=qm(r,t.x),r=Xm(r,t.x+t.width);var i=n[1];return i=qm(i,t.y),i=Xm(i,t.y+t.height),[r,i]})}function Tte(e,t){var n=qm(e.x,t.x),r=Xm(e.x+e.width,t.x+t.width),i=qm(e.y,t.y),o=Xm(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 wC(e,t,n){var r=Le({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),rn(i,n),new ll(r)):yC(e.replace("path://",""),r,n,"center")}function Ete(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var m=H1(d,g,c,h)/p;return!(m<0||m>1)}function H1(e,t,n,r){return e*r-n*t}function Ate(e){return e<=1e-6&&e>=-1e-6}function bC(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=qe(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&&G(Cn(l),function(c){Jc(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=hn(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:rn({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function KR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function SC(e,t){if(e)if(ze(e))for(var n=0;n1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,a)}else u===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(n,i,a,"_newKeyGetter");for(var s=0;s1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(h===1&&p===1)this._update&&this._update(c,u),i[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var d=0;d1)for(var s=0;s_&&(_=S)}d[0]=g,d[1]=_}},i=function(){return this._data?this._data.length/this._dimSize:0};aD=(t={},t[ai+"_"+za]={pure:!0,appendData:o},t[ai+"_"+hf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[fa]={pure:!0,appendData:o},t[Qa]={pure:!0,appendData:function(a){var s=this._data;G(a,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[no]={appendData:o},t[Ws]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;si?-this._resultLT:0},e}(),oy="undefined",tne=typeof Uint32Array===oy?Array:Uint32Array,nne=typeof Uint16Array===oy?Array:Uint16Array,CF=typeof Int32Array===oy?Array:Int32Array,cD=typeof Float64Array===oy?Array:Float64Array,TF={float:cD,int:CF,ordinal:Array,number:Array,time:cD},Y1;function Zf(e){return e>65535?tne:nne}function nc(){return[1/0,-1/0]}function rne(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function fD(e,t,n,r,i){var o=TF[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;um[1]&&(m[1]=_)}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=ct(a,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,n,r){var i=this._chunks,o=i[t],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c=0&&l<0)&&(s=g,l=d,u=0),d===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=h&&b<=p||isNaN(b))&&(l[u++]=_),_++}g=!0}else if(o===2){for(var m=d[i[0]],S=d[i[1]],x=t[i[1]][0],E=t[i[1]][1],y=0;y=h&&b<=p||isNaN(b))&&(T>=x&&T<=E||isNaN(T))&&(l[u++]=_),_++}g=!0}}if(!g)if(o===1)for(var y=0;y=h&&b<=p||isNaN(b))&&(l[u++]=M)}else for(var y=0;yt[k][1])&&(D=!1)}D&&(l[u++]=n.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},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,h,p,d=new(Zf(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var g=1;gc&&(c=h,p=x)}N>0&&Nc-g&&(l=c-g,s.length=l);for(var _=0;_h[1]&&(h[1]=y),p[d++]=b}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,i=this._chunks,o=0,a=this.count();ol&&(l=h)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],i=this._chunks,o=0;o=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,i,o){return Jg(n[o],this._dimensions[o])}Y1={arrayRows:t,objectRows:function(n,r,i,o){return Jg(n[r],this._dimensions[o])},keyedColumns:t,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return Jg(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),e}(),ine=Kn(),one={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},EF=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=RF(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return kt(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=_F(this.source),r=!DF(t),i="",o=[],a=0,s=0;a30}var Jf=at,ys=ct,ane=typeof Int32Array>"u"?Array:Int32Array,sne="e\0\0",hD=-1,lne=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],une=["_approximateExtent"],dD,Yv,Qf,eh,j1,jv,q1,cne=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;AF(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===no;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,i=r[t];i||(i=r[t]={});var o=i[n];return o==null&&(o=this.getVisual(n),ze(o)?o=o.slice():Jf(o)&&(o=Le({},o)),i[n]=o),o},e.prototype.setItemVisual=function(t,n,r){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Jf(n)?Le(i,n):i[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Jf(t)?Le(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?Le(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;vee(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){G(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:ys(this.dimensions,this._getDimInfo,this),this.hostModel)),j1(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];_t(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Xx(arguments)))})},e.internalField=function(){dD=function(t){var n=t._invertedIndicesMap;G(n,function(r,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){r=n[i]=new ane(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[n]=l}}}(),e}();function fne(e,t){TC(e)||(e=mF(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Rt(),o=[],a=dne(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&DF(a),l=r===e.dimensionsDefine,u=l?RF(e):MF(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=Rt(c),p=new CF(a),d=0;d0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function dne(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return G(t,function(o){var a;at(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function pne(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 X1={},AC=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];G(X1,function(i,o){var a=i.create(t,n);r=r.concat(a||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){G(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){X1[t]=n},e.get=function(t){return X1[t]},e}(),vne=function(){function e(t){this.coordSysDims=[],this.axisMap=Rt(),this.categoryAxisMap=Rt(),this.coordSysName=t}return e}();function gne(e){var t=e.get("coordinateSystem"),n=new vne(t),r=mne[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var mne={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",So).models[0],o=e.getReferringComponents("yAxis",So).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),rc(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),rc(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",So).models[0];t.coordSysDims=["single"],n.set("single",i),rc(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",So).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),rc(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),rc(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();G(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),rc(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function rc(e){return e.get("type")==="category"}function yne(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;_ne(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,h,p;if(G(o,function(b,S){qe(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){h="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,g=c.type,_=0;G(o,function(b){b.coordDim===d&&_++});var m={name:h,coordDim:d,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:p,coordDim:p,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(p,g),y.storeDimIndex=s.ensureCalculationDimension(h,g)),a.appendCalculationDimension(m),a.appendCalculationDimension(y)):(o.push(m),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:p,stackResultDimension:h}}function _ne(e){return!AF(e.schema)}function Vd(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function wne(e,t){return Vd(e,t)?e.getCalculationInfo("stackResultDimension"):t}function bne(e,t){var n=e.get("coordinateSystem"),r=AC.get(n),i;return t&&t.coordSysDims&&(i=ct(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=Jte(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function Sne(e,t,n){var r,i;return n&&G(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 xne(e,t,n){n=n||{};var r=t.getSourceManager(),i,o=!1;i=r.getSource(),o=i.sourceFormat===no;var a=gne(t),s=bne(t,a),l=n.useEncodeDefaulter,u=_t(l)?l:l?tr(Hte,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=fne(i,c),p=Sne(h.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(h),g=yne(t,{schema:h,store:d}),_=new cne(h,t);_.setCalculationInfo(g);var m=p!=null&&Cne(i)?function(y,b,S,x){return x===p?S:this.defaultDimValueGetter(y,b,S,x)}:null;return _.hasItemOption=!1,_.initData(o?i:d,null,m),_}function Cne(e){if(e.sourceFormat===no){var t=Tne(e.data||[]);return!ze(lp(t))}}function Tne(e){for(var t=0;t=0&&s.push(l)}),s}}function Rne(e,t){return Zt(Zt({},e,!0),t,!0)}var Dne=Math.log(2);function lS(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function Lne(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(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?pD(s,a):pD(a,s))}function PF(e){return e.nodeName.toUpperCase()==="CANVAS"}var One=/([&<>"'])/g,kne={"&":"&","<":"<",">":">",'"':""","'":"'"};function bi(e){return e==null?"":(e+"").replace(One,function(t,n){return kne[n]})}const Nne={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:". "}}}},Fne={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 Km="ZH",MC="EN",Bc=MC,Qg={},RC={},IF=vt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Bc).toUpperCase();return e.indexOf(Km)>-1?Km:Bc}():Bc;function LF(e,t){e=e.toUpperCase(),RC[e]=new On(t),Qg[e]=t}function $ne(e){if(qe(e)){var t=Qg[e.toUpperCase()]||{};return e===Km||e===MC?Nt(t):Zt(Nt(t),Nt(Qg[Bc]),!1)}else return Zt(Nt(e),Nt(Qg[Bc]),!1)}function Bne(e){return RC[e]}function Vne(){return RC[Bc]}LF(MC,Nne);LF(Km,Fne);var DC=1e3,PC=DC*60,id=PC*60,Ki=id*24,gD=Ki*365,Th={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}"},qv="{yyyy}-{MM}-{dd}",mD={year:"{yyyy}",month:"{yyyy}-{MM}",day:qv,hour:qv+" "+Th.hour,minute:qv+" "+Th.minute,second:qv+" "+Th.second,millisecond:Th.none},Z1=["year","month","day","hour","minute","second","millisecond"],OF=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _s(e,t){return e+="","0000".substr(0,t-e.length)+e}function Vc(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 Hne(e){return e===Vc(e)}function Une(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sy(e,t,n,r){var i=Xa(e),o=i[IC(n)](),a=i[Hc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[ly(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Hd(n)](),h=(c-1)%12+1,p=i[uy(n)](),d=i[cy(n)](),g=i[fy(n)](),_=c>=12?"pm":"am",m=_.toUpperCase(),y=r instanceof On?r:Bne(r||IF)||Vne(),b=y.getModel("time"),S=b.get("month"),x=b.get("monthAbbr"),E=b.get("dayOfWeek"),T=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,_+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,_s(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,_s(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_s(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,E[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+"").replace(/{HH}/g,_s(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,_s(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,_s(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,_s(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,_s(g,3)).replace(/{S}/g,g+"")}function zne(e,t,n,r,i){var o=null;if(qe(n))o=n;else if(_t(n))o=n(e.value,t,{level:e.level});else{var a=Le({},Th);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ze(o)){var h=e.level==null?0:e.level>=0?e.level:o.length+e.level;h=Math.min(h,o.length-1),o=o[h]}}return sy(new Date(e.value),o,i,r)}function kF(e,t){var n=Xa(e),r=n[Hc(t)]()+1,i=n[ly(t)](),o=n[Hd(t)](),a=n[uy(t)](),s=n[cy(t)](),l=n[fy(t)](),u=l===0,c=u&&s===0,h=c&&a===0,p=h&&o===0,d=p&&i===1,g=d&&r===1;return g?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function yD(e,t,n){var r=Tn(e)?Xa(e):e;switch(t=t||kF(e,n),t){case"year":return r[IC(n)]();case"half-year":return r[Hc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Hc(n)]()+1)/4);case"month":return r[Hc(n)]();case"day":return r[ly(n)]();case"half-day":return r[Hd(n)]()/24;case"hour":return r[Hd(n)]();case"minute":return r[uy(n)]();case"second":return r[cy(n)]();case"millisecond":return r[fy(n)]()}}function IC(e){return e?"getUTCFullYear":"getFullYear"}function Hc(e){return e?"getUTCMonth":"getMonth"}function ly(e){return e?"getUTCDate":"getDate"}function Hd(e){return e?"getUTCHours":"getHours"}function uy(e){return e?"getUTCMinutes":"getMinutes"}function cy(e){return e?"getUTCSeconds":"getSeconds"}function fy(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Gne(e){return e?"setUTCFullYear":"setFullYear"}function NF(e){return e?"setUTCMonth":"setMonth"}function FF(e){return e?"setUTCDate":"setDate"}function $F(e){return e?"setUTCHours":"setHours"}function BF(e){return e?"setUTCMinutes":"setMinutes"}function VF(e){return e?"setUTCSeconds":"setSeconds"}function HF(e){return e?"setUTCMilliseconds":"setMilliseconds"}function UF(e){if(!QQ(e))return qe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function zF(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 hy=uN;function cS(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Xo(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?Xa(e):e;if(isNaN(+l)){if(s)return"-"}else return sy(l,r,n)}if(t==="ordinal")return Fb(e)?i(e):Tn(e)&&o(e)?e+"":"-";var u=zm(e);return o(u)?UF(u):Fb(e)?i(e):typeof e=="boolean"?e+"":"-"}var _D=["a","b","c","d","e","f","g"],J1=function(e,t){return"{"+e+(t??"")+"}"};function GF(e,t,n){ze(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Tu(e,t){return t=t||"transparent",qe(e)?e:at(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var em=G,Yne=["left","right","top","bottom","width","height"],Xv=[["width","left","right"],["height","top","bottom"]];function LC(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(),h=t.childAt(u+1),p=h&&h.getBoundingRect(),d,g;if(e==="horizontal"){var _=c.width+(p?-p.x+c.x:0);d=o+_,d>r||l.newline?(o=0,d=_,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(p?-p.y+c.y:0);g=a+m,g>i||l.newline?(o+=s+n,a=0,g=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=d+n:a=g+n)})}var od=LC;tr(LC,"vertical");tr(LC,"horizontal");function Zm(e,t,n){n=hy(n||0);var r=t.width,i=t.height,o=Nr(e.left,r),a=Nr(e.top,i),s=Nr(e.right,r),l=Nr(e.bottom,i),u=Nr(e.width,r),c=Nr(e.height,i),h=n[2]+n[0],p=n[1]+n[3],d=e.aspect;switch(isNaN(u)&&(u=r-s-p-o),isNaN(c)&&(c=i-l-h-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-p),isNaN(a)&&(a=i-l-c-h),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-p;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-p-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var g=new Jt(o+n[3],a+n[0],u,c);return g.margin=n,g}function Ud(e){var t=e.layoutMode||e.constructor.layoutMode;return at(t)?t:t?{type:t}:null}function tf(e,t,n){var r=n&&n.ignoreSize;!ze(r)&&(r=[r,r]);var i=a(Xv[0],0),o=a(Xv[1],1);u(Xv[0],e,i),u(Xv[1],e,o);function a(c,h){var p={},d=0,g={},_=0,m=2;if(em(c,function(S){g[S]=e[S]}),em(c,function(S){s(t,S)&&(p[S]=g[S]=t[S]),l(p,S)&&d++,l(g,S)&&_++}),r[h])return l(t,c[1])?g[c[2]]=null:l(t,c[2])&&(g[c[1]]=null),g;if(_===m||!d)return g;if(d>=m)return p;for(var y=0;y=0;l--)s=Zt(s,i[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return up(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}(On);pN(an,On);Y0(an);Ane(an);Mne(an,Xne);function Xne(e){var t=[];return G(an.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=ct(t,function(n){return Ko(n).main}),e!=="dataset"&&sn(t,"dataset")<=0&&t.unshift("dataset"),t}var wD=Kn();Kn();var OC=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var i=$r(this.get("color",!0)),o=this.get("colorLayer",!0);return Zne(this,wD,i,o,t,n,r)},e.prototype.clearColorPalette=function(){Jne(this,wD)},e}();function Kne(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function Zne(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:Kne(r,a);if(c=c||n,!(!c||!c.length)){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Jne(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Qne=/\{@(.+?)\}/g,ere=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,h=this.mainType,p=h==="series",d=r.userOutput&&r.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ze(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(_t(o))return l.status=n,l.dimensionIndex=i,o(l);if(qe(o)){var c=GF(o,l);return c.replace(Qne,function(h,p){var d=p.length,g=p;g.charAt(0)==="["&&g.charAt(d-1)==="]"&&(g=+g.slice(1,d-1));var _=ef(s,t,g);if(a&&ze(a.interpolatedValue)){var m=s.getDimensionIndex(g);m>=0&&(_=a.interpolatedValue[m])}return _!=null?_+"":""})}},e.prototype.getRawValue=function(t,n){return ef(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function bD(e){var t,n;return at(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function ad(e){return new tre(e)}var tre=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 h;(this._dirty||o==="reset")&&(this._dirty=!1,h=this._doReset(r)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,g=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(h||d1&&r>0?s:a}};return o;function a(){return t=e?null:l9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Kv(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=ii(s)?Ws:no,o=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=kt(h.seriesLayoutBy,p.seriesLayoutBy)||null,g=kt(h.sourceHeader,p.sourceHeader),_=kt(h.dimensions,p.dimensions),m=d!==p.seriesLayoutBy||!!g!=!!p.sourceHeader||_;i=m?[aS(s,{seriesLayoutBy:d,sourceHeader:g,dimensions:_},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=[aS(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&&xD(o)}var a,s=[],l=[];return G(t,function(u){u.prepareSource();var c=u.getSource(i||0),h="";i!=null&&!c&&xD(h),s.push(c),l.push(u._getVersionSign())}),r?a=ure(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[Gte(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return G(e.blocks,function(i){var o=XF(i);o>=t&&(t=o+ +(r&&(!o||fS(i)&&!i.noHeader)))}),t}return 0}function pre(e,t,n,r){var i=t.noHeader,o=gre(XF(t)),a=[],s=t.blocks||[];qa(!s||ze(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Jc(u,l)){var c=new ene(u[l],null);s.sort(function(g,_){return c.evaluate(g.sortParam,_.sortParam)})}else l==="seriesDesc"&&s.reverse()}G(s,function(g,_){var m=t.valueFormatter,y=qF(g)(m?Le(Le({},e),{valueFormatter:m}):e,g,_>0?o.html:0,r);y!=null&&a.push(y)});var h=e.renderMode==="richText"?a.join(o.richText):hS(a.join(""),i?n:o.html);if(i)return h;var p=cS(t.header,"ordinal",e.useUTC),d=jF(r,e.renderMode).nameStyle;return e.renderMode==="richText"?KF(e,p,d)+o.richText+h:hS('
'+bi(p)+"
"+h,n)}function vre(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(x){return x=ze(x)?x:[x],ct(x,function(E,T){return cS(E,ze(d)?d[T]:d,u)})};if(!(o&&a)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),p=o?"":cS(l,"ordinal",u),d=t.valueType,g=a?[]:c(t.value,t.dataIndex),_=!s||!o,m=!s&&o,y=jF(r,i),b=y.nameStyle,S=y.valueStyle;return i==="richText"?(s?"":h)+(o?"":KF(e,p,b))+(a?"":_re(e,g,_,m,S)):hS((s?"":h)+(o?"":mre(p,!s,b))+(a?"":yre(g,_,m,S)),n)}}function CD(e,t,n,r,i,o){if(e){var a=qF(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function gre(e){return{html:hre[e],richText:dre[e]}}function hS(e,t){var n='
',r="margin: "+t+"px 0 0";return'
'+e+n+"
"}function mre(e,t,n){var r=t?"margin-left:2px":"";return''+bi(e)+""}function yre(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=ze(e)?e:[e],''+ct(e,function(a){return bi(a)}).join("  ")+""}function KF(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function _re(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(ze(t)?t.join(" "):t,o)}function wre(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Tu(r)}function ZF(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Q1=function(){function e(){this.richTextStyles={},this._nextStyleNameId=FN()}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=Wne({color:n,type:t,renderMode:r,markerId:i});return qe(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ze(n)?G(n,function(o){return Le(r,o)}):Le(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+t+"}"},e}();function bre(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=ze(s),u=wre(t,n),c,h,p,d;if(a>1||l&&!a){var g=Sre(s,t,n,o,u);c=g.inlineValues,h=g.inlineValueTypes,p=g.blocks,d=g.inlineValues[0]}else if(a){var _=i.getDimensionInfo(o[0]);d=c=ef(i,n,o[0]),h=_.type}else d=c=l?s[0]:s;var m=oC(t),y=m&&t.name||"",b=i.getName(n),S=r?y:b;return zd("section",{header:y,noHeader:r||!m,sortParam:d,blocks:[zd("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Xo(S),value:c,valueType:h,dataIndex:n})].concat(p||[])})}function Sre(e,t,n,r,i){var o=t.getData(),a=cf(e,function(h,p,d){var g=o.getDimensionInfo(d);return h=h||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?G(r,function(h){c(ef(o,n,h),h)}):G(e,c);function c(h,p){var d=o.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(zd("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ws=Kn();function Zv(e,t){return e.getName(t)||e.getId(t)}var xre="__universalTransitionEnabled",Qs=function(e){Ve(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=ad({count:Tre,reset:Ere}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=ws(this).sourceManager=new fre(this);o.prepareSource();var a=this.getInitialData(n,i);ED(a,this),this.dataTask.context.data=a,ws(this).dataBeforeProcessed=a,TD(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,r){var i=Ud(this),o=i?dy(n):{},a=this.subType;an.hasClass(a)&&(a+="Series"),Zt(n,r.getTheme().get(this.subType)),Zt(n,this.getDefaultOption()),RR(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&tf(n,o,i)},t.prototype.mergeOption=function(n,r){n=Zt(this.option,n,!0),this.fillDataTextStyle(n.data);var i=Ud(this);i&&tf(this.option,n,i);var o=ws(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);ED(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,ws(this).dataBeforeProcessed=a,TD(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!ii(n))for(var r=["show"],i=0;ithis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=OC.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(a)}return i},t.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[Zv(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[xre])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"){at(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c0&&this._innerSelect(n,r)}},t.registerClass=function(n){return an.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}(an);ua(Qs,ere);ua(Qs,OC);pN(Qs,an);function TD(e){var t=e.name;oC(e)||(e.name=Cre(e)||t)}function Cre(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return G(n,function(i){var o=t.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function Tre(e){return e.model.getRawData().count()}function Ere(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Are}function Are(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ED(e,t){G(fJ(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,tr(Mre,t))})}function Mre(e,t){var n=dS(e);return n&&n.setOutputEnd((t||this).count()),t}function dS(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 Rre=pn.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()}}),Dre=pn.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()}}),Pre=pn.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,h=Math.sin(u),p=Math.cos(u),d=a*.6,g=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-h*d,l+s+p*d,n,r-g,n,r),e.bezierCurveTo(n,r-g,n-c+h*d,l+s+p*d,n-c,l+s),e.closePath()}}),Ire=pn.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()}}),Lre={line:Zs,rect:cr,roundRect:cr,square:cr,circle:ey,diamond:Dre,pin:Pre,arrow:Ire,triangle:Rre},Ore={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}},pS={};G(Lre,function(e,t){pS[t]=new e});var kre=pn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=mN(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=pS[r];i||(r="rect",i=pS[r]),Ore[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Nre(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 nf(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=iF(e.slice(8),new Jt(t,n,r,i),a?"center":"cover"):e.indexOf("path://")===0?l=yC(e.slice(7),{},new Jt(t,n,r,i),a?"center":"cover"):l=new kre({shape:{symbolType:e,x:t,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=Nre,o&&l.setColor(o),l}function Fre(e){return ze(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function JF(e,t){if(e!=null)return ze(e)||(e=[e,e]),[Nr(e[0],t[0])||0,Nr(kt(e[1],e[0]),t[1])||0]}var $re=function(e){Ve(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 xne(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new xr,i=nf("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=nf(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}(Qs);function QF(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=ef(e,t,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var NC=function(e){Ve(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=nf(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Vre,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(){Gm(this.childAt(0))},t.prototype.downplay=function(){Wm(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 h=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Js(p,d,s,r),dte(p)}if(this._updateCommon(n,r,l,i,o),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,cp(p,d,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,h,p,d,g,_,m,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,h=o.selectItemStyle,p=o.focus,d=o.blurScope,_=o.labelStatesModels,m=o.hoverScale,y=o.cursorStyle,g=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),h=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),p=S.get("focus"),d=S.get("blurScope"),g=S.get("disabled"),_=CC(b),m=S.getShallow("scale"),y=b.getShallow("cursor")}var x=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var E=JF(n.getItemVisual(r,"symbolOffset"),i);E&&(s.x=E[0],s.y=E[1]),y&&s.attr("cursor",y);var T=n.getItemVisual(r,"style"),M=T.fill;if(s instanceof ll){var D=s.style;s.useStyle(Le({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},T))}else s.__isEmptyBrush?s.useStyle(Le({},T)):s.useStyle(T),s.style.decal=null,s.setColor(M,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=n.getItemVisual(r,"liftZ"),k=this._z2;I!=null?k==null&&(this._z2=s.z2,s.z2+=I):k!=null&&(s.z2=k,this._z2=null);var N=a&&a.useNameLabel;xC(s,_,{labelFetcher:l,labelDataIndex:r,defaultText:H,inheritColor:M,defaultOpacity:T.opacity});function H(X){return N?n.getName(X):QF(n,X)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var te=s.ensureState("emphasis");te.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var W=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;te.scaleX=this._sizeX*W,te.scaleY=this._sizeY*W,this.setSymbolScale(1),tS(this,p,d,g)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=hn(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&jm(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();jm(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Fre(n.getItemVisual(r,"symbolSize"))},t}(xr);function Vre(e,t){this.parent.drift(e,t)}function ew(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 AD(e){return e!=null&&!at(e)&&(e={isIgnore:e}),e||{}}function MD(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:CC(t),cursorStyle:t.get("cursor")}}var Hre=function(){function e(t){this.group=new xr,this._SymbolCtor=t||NC}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=AD(n);var r=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=MD(t),u={disableAnimation:s},c=n.getSymbolPoint||function(h){return t.getItemLayout(h)};o||r.removeAll(),t.diff(o).add(function(h){var p=c(h);if(ew(t,p,h,n)){var d=new a(t,h,l,u);d.setPosition(p),t.setItemGraphicEl(h,d),r.add(d)}}).update(function(h,p){var d=o.getItemGraphicEl(p),g=c(h);if(!ew(t,g,h,n)){r.remove(d);return}var _=t.getItemVisual(h,"symbol")||"circle",m=d&&d.getSymbolType&&d.getSymbolType();if(!d||m&&m!==_)r.remove(d),d=new a(t,h,l,u),d.setPosition(g);else{d.updateData(t,h,l,u);var y={x:g[0],y:g[1]};s?d.attr(y):Js(d,y,i)}r.add(d),t.setItemGraphicEl(h,d)}).remove(function(h){var p=o.getItemGraphicEl(h);p&&p.fadeOut(function(){r.remove(p)},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=MD(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=AD(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o0?n=r[0]:r[1]<0&&(n=r[1]),n}function t5(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 n5=typeof Float32Array<"u",zre=n5?Float32Array:Array;function wc(e){return ze(e)?n5?new Float32Array(e):e:new zre(e)}function Gre(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 Wre(e,t,n,r,i,o,a,s){for(var l=Gre(e,t),u=[],c=[],h=[],p=[],d=[],g=[],_=[],m=e5(i,t,a),y=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S=i||_<0)break;if(gu(y,b)){if(l){_+=o;continue}break}if(_===n)e[o>0?"moveTo":"lineTo"](y,b),h=y,p=b;else{var S=y-u,x=b-c;if(S*S+x*x<.5){_+=o;continue}if(a>0){for(var E=_+o,T=t[E*2],M=t[E*2+1];T===y&&M===b&&m=r||gu(T,M))d=y,g=b;else{k=T-u,N=M-c;var W=y-u,X=T-y,j=b-c,oe=M-b,Q=void 0,fe=void 0;if(s==="x"){Q=Math.abs(W),fe=Math.abs(X);var _e=k>0?1:-1;d=y-_e*Q*a,g=b,H=y+_e*fe*a,te=b}else if(s==="y"){Q=Math.abs(j),fe=Math.abs(oe);var be=N>0?1:-1;d=y,g=b-be*Q*a,H=y,te=b+be*fe*a}else Q=Math.sqrt(W*W+j*j),fe=Math.sqrt(X*X+oe*oe),I=fe/(fe+Q),d=y-k*a*(1-I),g=b-N*a*(1-I),H=y+k*a*I,te=b+N*a*I,H=bs(H,Ss(T,y)),te=bs(te,Ss(M,b)),H=Ss(H,bs(T,y)),te=Ss(te,bs(M,b)),k=H-y,N=te-b,d=y-k*Q/fe,g=b-N*Q/fe,d=bs(d,Ss(u,y)),g=bs(g,Ss(c,b)),d=Ss(d,bs(u,y)),g=Ss(g,bs(c,b)),k=y-d,N=b-g,H=y+k*fe/Q,te=b+N*fe/Q}e.bezierCurveTo(h,p,d,g,y,b),h=H,p=te}else e.lineTo(y,b)}u=y,c=b,_+=o}return m}var r5=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),Yre=function(e){Ve(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 r5},t.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&gu(i[a*2-2],i[a*2-1]);a--);for(;o=0){var x=u?(g-l)*S+l:(d-s)*S+s;return u?[n,x]:[x,n]}s=d,l=g;break;case a.C:d=o[h++],g=o[h++],_=o[h++],m=o[h++],y=o[h++],b=o[h++];var E=u?Nm(s,d,_,y,n,c):Nm(l,g,m,b,n,c);if(E>0)for(var T=0;T=0){var x=u?lr(l,g,m,b,M):lr(s,d,_,y,M);return u?[n,x]:[x,n]}}s=y,l=b;break}}},t}(pn),jre=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(r5),qre=function(e){Ve(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 jre},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&&gu(i[s*2-2],i[s*2-1]);s--);for(;at){o?n.push(a(o,l,t)):i&&n.push(a(i,l,0),a(i,l,t));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function iie(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=ct(o.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=rie(u,i==="x"?n.getWidth():n.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var g=10,_=p[0].coord-g,m=p[d-1].coord+g,y=m-_;if(y<.001)return"transparent";G(p,function(S){S.offset=(S.coord-_)/y}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var b=new gC(0,0,0,0,p,!0);return b[i]=_,b[i+"2"]=m,b}}}function oie(e,t,n){var r=e.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&aie(o,t))){var a=t.mapDimension(o.dim),s={};return G(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function aie(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function sie(e,t){return isNaN(e)||isNaN(t)}function lie(e){for(var t=e.length/2;t>0&&sie(e[t*2-2],e[t*2-1]);t--);return t-1}function kD(e,t){return[e[t*2],e[t*2+1]]}function uie(e,t,n){for(var r=e.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function a5(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var _e=_.getState("emphasis").style;_e.lineWidth=+_.style.lineWidth+1}hn(_).seriesIndex=n.seriesIndex,tS(_,oe,Q,fe);var be=OD(n.get("smooth")),Ne=n.get("smoothMonotone");if(_.setShape({smooth:be,smoothMonotone:Ne,connectNulls:D}),m){var ke=l.getCalculationInfo("stackedOnSeries"),je=0;m.useStyle(rn(c.getAreaStyle(),{fill:te,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ke&&(je=OD(ke.get("smooth"))),m.setShape({smooth:be,stackedOnSmooth:je,smoothMonotone:Ne,connectNulls:D}),VR(m,n,"areaStyle"),hn(m).seriesIndex=n.seriesIndex,tS(m,oe,Q,fe)}var He=function(Ye){o._changePolyState(Ye)};l.eachItemGraphicEl(function(Ye){Ye&&(Ye.onHoverStateChange=He)}),this._polyline.onHoverStateChange=He,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=N,this._valueOrigin=x,n.get("triggerLineEvent")&&(this.packEventData(n,_),m&&this.packEventData(n,m))},t.prototype.packEventData=function(n,r){hn(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=Cu(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],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var p=n.get("zlevel")||0,d=n.get("z")||0;u=new NC(a,s),u.x=c,u.y=h,u.setZ(p,d);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=p,g.z=d,g.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qo.prototype.highlight.call(this,n,r,i,o)},t.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=Cu(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 Qo.prototype.downplay.call(this,n,r,i,o)},t.prototype._changePolyState=function(n){var r=this._polygon;kR(this._polyline,n),r&&kR(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Yre({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 qre({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");_t(c)&&(c=c(null));var h=u.get("animationDelay")||0,p=_t(h)?h(null):h;n.eachItemGraphicEl(function(d,g){var _=d;if(_){var m=[d.x,d.y],y=void 0,b=void 0,S=void 0;if(i)if(a){var x=i,E=r.pointToCoord(m);o?(y=x.startAngle,b=x.endAngle,S=-E[1]/180*Math.PI):(y=x.r0,b=x.r,S=E[0])}else{var T=i;o?(y=T.x,b=T.x+T.width,S=d.x):(y=T.y+T.height,b=T.y,S=d.y)}var M=b===y?0:(S-y)/(b-y);l&&(M=1-M);var D=_t(h)?h(g):c*M+p,I=_.getSymbolPath(),k=I.getTextContent();_.attr({scaleX:0,scaleY:0}),_.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),k&&k.animateFrom({style:{opacity:0}},{duration:300,delay:D}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(a5(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 oi({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=lie(l);c>=0&&(xC(s,CC(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(h,p,d){return d!=null?Bre(a,d):QF(a,h)},enableTextSetter:!0},cie(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 h=i.getLayout("points"),p=i.hostModel,d=p.get("connectNulls"),g=s.get("precision"),_=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,S=r.shape,x=b?y?S.x:S.y+S.height:y?S.x+S.width:S.y,E=(y?_:0)*(b?-1:1),T=(y?0:-_)*(b?-1:1),M=y?"x":"y",D=uie(h,x,M),I=D.range,k=I[1]-I[0],N=void 0;if(k>=1){if(k>1&&!d){var H=kD(h,I[0]);u.attr({x:H[0]+E,y:H[1]+T}),a&&(N=p.getRawValue(I[0]))}else{var H=c.getPointOn(x,M);H&&u.attr({x:H[0]+E,y:H[1]+T});var te=p.getRawValue(I[0]),W=p.getRawValue(I[1]);a&&(N=pee(i,g,te,W,D.t))}o.lastFrameIndex=I[0]}else{var X=n===1||o.lastFrameIndex>0?I[0]:0,H=kD(h,X);a&&(N=p.getRawValue(X)),u.attr({x:H[0]+E,y:H[1]+T})}if(a){var j=uF(u);typeof j.setLabelText=="function"&&j.setLabelText(N)}}},t.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,h=n.hostModel,p=Wre(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),d=p.current,g=p.stackedOnCurrent,_=p.next,m=p.stackedOnNext;if(a&&(d=xs(p.current,i,a,l),g=xs(p.stackedOnCurrent,i,a,l),_=xs(p.next,i,a,l),m=xs(p.stackedOnNext,i,a,l)),LD(d,_)>3e3||c&&LD(g,m)>3e3){u.stopAnimation(),u.setShape({points:_}),c&&(c.stopAnimation(),c.setShape({points:_,stackedOnPoints:m}));return}u.shape.__points=p.current,u.shape.points=d;var y={shape:{points:_}};p.current!==d&&(y.shape.__points=p.next),u.stopAnimation(),Js(u,y,h),c&&(c.setShape({points:d,stackedOnPoints:g}),c.stopAnimation(),Js(c,{shape:{stackedOnPoints:m}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=p.status,x=0;xt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;nt&&(t=o,n=i)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},pie=function(e){return Math.round(e.length/2)};function vie(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(),h=r.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/d));var g=void 0;qe(o)?g=die[o]:_t(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(u.dim),1/d,g,pie))}}}}}function gie(e){e.registerChartView(fie),e.registerSeriesModel($re),e.registerLayout(hie("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,vie("line"))}var mie="__ec_stack_";function s5(e){return e.get("stack")||mie+e.seriesIndex}function l5(e){return e.dim+e.index}function yie(e,t){var n=[];return t.eachSeriesByType(e,function(r){xie(r)&&n.push(r)}),n}function _ie(e){var t={};G(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),p=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),g=h.getStore(),_=0,m=g.count();_0&&(o=o===null?s:Math.min(o,s))}n[r]=o}}return n}function wie(e){var t=_ie(e),n=[];return G(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]),h=o.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?c/p*u:c}else{var d=r.getData();s=Math.abs(a[1]-a[0])/d.count()}var g=Nr(r.get("barWidth"),s),_=Nr(r.get("barMaxWidth"),s),m=Nr(r.get("barMinWidth")||(Cie(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:_,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:l5(o),stackId:s5(r)})}),bie(n)}function bie(e){var t={};G(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 h=r.barMaxWidth;h&&(l[u].maxWidth=h);var p=r.barMinWidth;p&&(l[u].minWidth=p);var d=r.barGap;d!=null&&(s.gap=d);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return G(t,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=Cn(o).length;s=Math.max(35-l*4,15)+"%"}var u=Nr(s,a),c=Nr(r.gap,1),h=r.remainedWidth,p=r.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),G(o,function(y){var b=y.maxWidth,S=y.minWidth;if(y.width){var x=y.width;b&&(x=Math.min(x,b)),S&&(x=Math.max(x,S)),y.width=x,h-=x+c*x,p--}else{var x=d;b&&bx&&(x=S),x!==d&&(y.width=x,h-=x+c*x,p--)}}),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var g=0,_;G(o,function(y,b){y.width||(y.width=d),_=y,g+=y.width*(1+c)}),_&&(g-=_.width*c);var m=-g/2;G(o,function(y,b){n[i][b]=n[i][b]||{bandWidth:a,offset:m,width:y.width},m+=y.width*(1+c)})}),n}function Sie(e,t,n){if(e&&t){var r=e[l5(t)];return r!=null&&n!=null?r[s5(n)]:r}}function xie(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Cie(e){return e.pipelineContext&&e.pipelineContext.large}var Jm="\0__throttleOriginMethod",ND="\0__throttleRate",FD="\0__throttleType";function u5(e,t,n){var r,i=0,o=0,a=null,s,l,u,c;t=t||0;function h(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var p=function(){for(var d=[],g=0;g=0?h():a=setTimeout(h,-s),i=r};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){c=d},p}function c5(e,t,n,r){var i=e[t];if(i){var o=i[Jm]||i,a=i[FD],s=i[ND];if(s!==n||a!==r){if(n==null||!r)return e[t]=o;i=e[t]=u5(o,n,r==="debounce"),i[Jm]=o,i[FD]=r,i[ND]=n}return i}}function gS(e,t){var n=e[t];n&&n[Jm]&&(n.clear&&n.clear(),e[t]=n[Jm])}function ic(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c=0;if(i){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&mS(e,a,t,n)}else{mS(e,t,t,n);var o=Pie(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Rie.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Pie(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 Iie(e,t,n,r){e.addEventListener(t,n,r)}function Lie(e,t,n,r){e.removeEventListener(t,n,r)}var f5=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Oie=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var i=t.touches;if(i){for(var o={points:[],touches:[],target:n,event:t},a=0,s=i.length;a1&&r&&r.length>1){var o=BD(r)/BD(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=kie(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},h5="silent";function Nie(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:Fie}}function Fie(){f5(this.event)}var $ie=function(e){Ve(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}(ca),th=function(){function e(t,n){this.x=t,this.y=n}return e}(),Bie=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],iw=new Jt(0,0,0,0),d5=function(e){Ve(t,e);function t(n,r,i,o,a){var s=e.call(this)||this;return s._hovered=new th(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new $ie,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Mie(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(G(Bie,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=p5(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 th(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 th(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=Nie(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 th(n,r);if(VD(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Jt(n-u,r-u,l,l),h=o.length-1;h>=0;h--){var p=o[h];p!==i&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(iw.copy(p.getBoundingRect()),p.transform&&iw.applyTransform(p.transform),iw.intersect(c)&&s.push(p))}if(s.length)for(var d=4,g=Math.PI/12,_=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Vie(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?h5:!0}return!1}function VD(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=Vie(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==h5)){t.target=a;break}}}function p5(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var v5=32,nh=7;function Hie(e){for(var t=0;e>=v5;)t|=e&1,e>>=1;return e+t}function HD(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function Uie(e,t,n){for(n--;t>>1,i(o,e[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function ow(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function aw(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function zie(e,t){var n=nh,r,i,o=0,a=[];r=[],i=[];function s(d,g){r[o]=d,i[o]=g,o+=1}function l(){for(;o>1;){var d=o-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]i[d+1])break;c(d)}}function u(){for(;o>1;){var d=o-2;d>0&&i[d-1]=nh||M>=nh);if(D)break;E<0&&(E=0),E+=2}if(n=E,n<1&&(n=1),g===1){for(y=0;y=0;y--)e[T+y]=e[E+y];e[x]=a[S];return}for(var M=n;;){var D=0,I=0,k=!1;do if(t(a[S],e[b])<0){if(e[x--]=e[b--],D++,I=0,--g===0){k=!0;break}}else if(e[x--]=a[S--],I++,D=0,--m===1){k=!0;break}while((D|I)=0;y--)e[T+y]=e[E+y];if(g===0){k=!0;break}}if(e[x--]=a[S--],--m===1){k=!0;break}if(I=m-ow(e[b],a,0,m,m-1,t),I!==0){for(x-=I,S-=I,m-=I,T=x+1,E=S+1,y=0;y=nh||I>=nh);if(k)break;M<0&&(M=0),M+=2}if(n=M,n<1&&(n=1),m===1){for(x-=g,b-=g,T=x+1,E=b+1,y=g-1;y>=0;y--)e[T+y]=e[E+y];e[x]=a[S]}else{if(m===0)throw new Error;for(E=x-(m-1),y=0;ys&&(l=s),UD(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 zD=!1;function sw(){zD||(zD=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function GD(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Gie=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=GD}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(sw(),c.z=0),isNaN(c.z2)&&(sw(),c.z2=0),isNaN(c.zlevel)&&(sw(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,n,r);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,n,r);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Qm;Qm=vt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function bc(){return new Date().getTime()}var Wie=function(e){Ve(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=bc()-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&&(Qm(r),!n._paused&&n.update())}Qm(r)},t.prototype.start=function(){this._running||(this._time=bc(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=bc(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=bc()-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 rC(n,r.loop);return this.addAnimator(i),i},t}(ca),Yie=300,lw=vt.domSupported,uw=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=ct(e,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:r}}(),WD={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},YD=!1;function yS(e){var t=e.pointerType;return t==="pen"||t==="touch"}function jie(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 cw(e){e&&(e.zrByTouch=!0)}function qie(e,t){return Ui(e.dom,new Xie(e,t),!0)}function g5(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 Xie=function(){function e(t,n){this.stopPropagation=ti,this.stopImmediatePropagation=ti,this.preventDefault=ti,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),ho={mousedown:function(e){e=Ui(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ui(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=Ui(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ui(this.dom,e);var t=e.toElement||e.relatedTarget;g5(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){YD=!0,e=Ui(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){YD||(e=Ui(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ui(this.dom,e),cw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ho.mousemove.call(this,e),ho.mousedown.call(this,e)},touchmove:function(e){e=Ui(this.dom,e),cw(e),this.handler.processGesture(e,"change"),ho.mousemove.call(this,e)},touchend:function(e){e=Ui(this.dom,e),cw(e),this.handler.processGesture(e,"end"),ho.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n=0;l--)o[l]&&!$d(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[KD],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var i=this._componentsMap.get(n);if(i){var o=i[r||0];if(o)return o;if(r==null){for(var a=0;a=t:n==="max"?e<=t:e===t}function voe(e,t){return e.join(",")===t.join(",")}var lo=G,Gd=at,eP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=eP.length;n=0;m--){var y=e[m];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,d)),g>=0){var b=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&p>=0&&b>0||l==="samesign"&&p<=0&&b<0){p=KQ(p,b),_=b;break}}}return r[0]=p,r[1]=_,r})})}var sa=function(){function e(){this.group=new xr,this.uid=ay("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}();Kx(sa);Y0(sa);var oP=Kn(),aP={itemStyle:Nd(fF,!0),lineStyle:Nd(cF,!0)},Toe={lineStyle:"stroke",itemStyle:"fill"};function S5(e,t){var n=e.visualStyleMapper||aP[t];return n||(console.warn("Unknown style type '"+t+"'."),aP.itemStyle)}function x5(e,t){var n=e.visualDrawType||Toe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Eoe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=S5(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=x5(e,r),u=a[l],c=_t(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||_t(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||_t(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(d,g){var _=e.getDataParams(g),m=Le({},a);m[l]=c(_),d.setItemVisual(g,"style",m)}}}},oh=new On,Aoe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=S5(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){oh.option=l[r];var u=i(oh),c=a.ensureUniqueItemVisual(s,"style");Le(c,u),oh.option.decal&&(a.setItemVisual(s,"decal",oh.option.decal),oh.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Moe={performRawSeries:!0,overallReset:function(e){var t=Rt();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)),oP(n).scope=o}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=oP(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=x5(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],h=o.getItemVisual(c,"colorFromPalette");if(h){var p=o.ensureUniqueItemVisual(c,"style"),d=r.getName(u)||u+"",g=r.count();p[l]=n.getColorFromPalette(d,a,g)}})}})}},Qv=Math.PI;function Roe(e,t){t=t||{},rn(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 xr,r=new cr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new oi({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 cr({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 ny({shape:{startAngle:-Qv/2,endAngle:-Qv/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:Qv*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Qv*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 C5=function(){function e(t,n,r,i){this._stageTaskMap=Rt(),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=Rt();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;G(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";qa(!(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;G(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var d,g=p.agentStubMap;g.each(function(m){s(i,m)&&(m.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,r);var _=a.getPerformArgs(p,i.block);g.each(function(m){m.perform(_)}),p.perform(_)&&(o=!0)}else h&&h.each(function(m,y){s(i,m)&&m.dirty();var b=a.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(m.context.model),a.updatePayload(m,r),m.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=Rt(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(h){var p=h.uid,d=s.set(p,a&&a.get(p)||ad({plan:Ooe,reset:koe,count:Foe}));d.context={model:h,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(h,d)}},e.prototype._createOverallStageTask=function(t,n,r,i){var o=this,a=n.overallTask=n.overallTask||ad({reset:Doe});a.context={ecModel:r,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Rt(),u=t.seriesType,c=t.getTargetSeries,h=!0,p=!1,d="";qa(!t.createOnAllSeries,d),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(h=!1,G(r.getSeries(),g));function g(_){var m=_.uid,y=l.set(m,s&&s.get(m)||(p=!0,ad({reset:Poe,onDirty:Loe})));y.context={model:_,overallProgress:h},y.agent=a,y.__block=h,o._pipe(_,y)}p&&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 _t(t)&&(t={overallReset:t,seriesType:$oe(t)}),t.uid=ay("stageHandler"),n&&(t.visualType=n),t},e}();function Doe(e){e.overallReset(e.ecModel,e.api,e.payload)}function Poe(e){return e.overallProgress&&Ioe}function Ioe(){this.agent.dirty(),this.getDownstream().dirty()}function Loe(){this.agent&&this.agent.dirty()}function Ooe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function koe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=$r(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ct(t,function(n,r){return T5(r)}):Noe}var Noe=T5(0);function T5(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&d===u.length-p.length){var g=u.slice(0,d);g!=="data"&&(n.mainType=g,n[p.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(h,p,d,g){return h[d]==null||p[g||d]===h[d]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),wS=["symbol","symbolSize","symbolRotate","symbolOffset"],cP=wS.concat(["symbolKeepAspect"]),Hoe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a=0&&ou(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function bS(e,t,n){for(var r=t.type==="radial"?Xoe(e,t,n):qoe(e,t,n),i=t.colorStops,o=0;o0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tn(e)?[e]:ze(e)?e:null}function R5(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Zoe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=ct(n,function(o){return o/i}),r/=i)}return[n,r]}var Joe=new xu(!0);function t0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function fP(e){return typeof e=="string"&&e!=="none"}function n0(e){var t=e.fill;return t!=null&&t!=="none"}function hP(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 dP(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 SS(e,t,n){var r=gN(t.image,t.__image,n);if(j0(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)*hJ),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Qoe(e,t,n,r){var i,o=t0(n),a=n0(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||Joe,h=t.__dirty;if(!r){var p=n.fill,d=n.stroke,g=a&&!!p.colorStops,_=o&&!!d.colorStops,m=a&&!!p.image,y=o&&!!d.image,b=void 0,S=void 0,x=void 0,E=void 0,T=void 0;(g||_)&&(T=t.getBoundingRect()),g&&(b=h?bS(e,p,T):t.__canvasFillGradient,t.__canvasFillGradient=b),_&&(S=h?bS(e,d,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),m&&(x=h||!t.__canvasFillPattern?SS(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(E=h||!t.__canvasStrokePattern?SS(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),g?e.fillStyle=b:m&&(x?e.fillStyle=x:a=!1),_?e.strokeStyle=S:y&&(E?e.strokeStyle=E:o=!1)}var M=t.getGlobalScale();c.setScale(M[0],M[1],t.segmentIgnoreThreshold);var D,I;e.setLineDash&&n.lineDash&&(i=R5(t),D=i[0],I=i[1]);var k=!0;(u||h&vc)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),k=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),k&&c.rebuildPath(e,l?s:1),D&&(e.setLineDash(D),e.lineDashOffset=I),r||(n.strokeFirst?(o&&dP(e,n),a&&hP(e,n)):(a&&hP(e,n),o&&dP(e,n))),D&&e.setLineDash([])}function eae(e,t,n){var r=t.__image=gN(n.image,t.__image,t,t.onload);if(!(!r||!j0(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,h=a-u,p=s-c;e.drawImage(r,u,c,h,p,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function tae(e,t,n){var r,i=n.text;if(i!=null&&(i+=""),i){e.font=n.font||bu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=R5(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(t0(n)&&e.strokeText(i,n.x,n.y),n0(n)&&e.fillText(i,n.x,n.y)):(n0(n)&&e.fillText(i,n.x,n.y),t0(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var pP=["shadowBlur","shadowOffsetX","shadowOffsetY"],vP=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function D5(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Jr(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?pu.opacity:a}(r||t.blend!==n.blend)&&(o||(Jr(e,i),o=!0),e.globalCompositeOperation=t.blend||pu.blend);for(var s=0;s0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,i){if(!this[gr]){if(this._disposed){this.id;return}var o,a,s;if(at(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[gr]=!0,!this._model||r){var l=new foe(this._api),u=this._theme,c=this._model=new $C;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},TS);var h={seriesTransition:s,optionChanged:!0};if(i)this[jr]={silent:o,updateParams:h},this[gr]=!1,this.getZr().wakeUp();else{try{sc(this),Cs.update.call(this,null,h)}catch(p){throw this[jr]=null,this[gr]=!1,p}this._ssr||this._zr.flush(),this[jr]=null,this[gr]=!1,ah.call(this,o),sh.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||vt.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(vt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return G(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;G(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 G(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(DP[i]){var l=s,u=s,c=-s,h=-s,p=[],d=n&&n.pixelRatio||this.getDevicePixelRatio();G(ld,function(S,x){if(S.group===i){var E=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Nt(n)),T=S.getDom().getBoundingClientRect();l=o(T.left,l),u=o(T.top,u),c=a(T.right,c),h=a(T.bottom,h),p.push({dom:E,left:T.left,top:T.top})}}),l*=d,u*=d,c*=d,h*=d;var g=c-l,_=h-u,m=uf.createCanvas(),y=qD(m,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:_}),r){var b="";return G(p,function(S){var x=S.left-l,E=S.top-u;b+=''+S.dom+""}),y.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new cr({shape:{x:0,y:0,width:g,height:_},style:{fill:n.connectedBackgroundColor}})),G(p,function(S){var x=new ll({style:{x:S.left*d-l,y:S.top*d-u,image:S.dom}});y.add(x)}),y.refreshImmediately(),m.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return yw(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return yw(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var i=this._model,o,a=F1(i,n);return G(a,function(s,l){l.indexOf("Models")>=0&&G(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(r);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(o=o||h.containPoint(r,u))}},this)},this),!!o},t.prototype.getVisual=function(n,r){var i=this._model,o=F1(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?zoe(s,l,r):Goe(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;G(Eae,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&Ah(s,function(g){var _=hn(g);if(_&&_.dataIndex!=null){var m=_.dataModel||a.getSeriesByIndex(_.seriesIndex);return l=m&&m.getDataParams(_.dataIndex,_.dataType,s)||{},!0}else if(_.eventData)return l=Le({},_.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var p=c&&h!=null&&a.getComponent(c,h),d=p&&n[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),G(sd,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),G(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),Tie(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&&HN(this.getDom(),HC,"");var r=this,i=r._api,o=r._model;G(r._componentsViews,function(a){a.dispose(o,i)}),G(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 ld[r.id]},t.prototype.resize=function(n){if(!this[gr]){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[jr]&&(o==null&&(o=this[jr].silent),i=!0,this[jr]=null),this[gr]=!0;try{i&&sc(this),Cs.update.call(this,{type:"resize",animation:Le({duration:0},n&&n.animation)})}catch(a){throw this[gr]=!1,a}this[gr]=!1,ah.call(this,o),sh.call(this,o)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(at(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!ES[n]){var i=ES[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=Le({},n);return r.type=sd[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(at(r)||(r={silent:!!r}),!!r0[n.type]&&this._model){if(this[gr]){this._pendingActions.push(n);return}var i=r.silent;ww.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&vt.browser.weChat&&this._throttledZrFlush(),ah.call(this,i),sh.call(this,i)}},t.prototype.updateLabelLayout=function(){po.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(){sc=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),mw(h,!0),mw(h,!1),p.plan()},mw=function(h,p){for(var d=h._model,g=h._scheduler,_=p?h._componentsViews:h._chartsViews,m=p?h._componentsMap:h._chartsMap,y=h._zr,b=h._api,S=0;S<_.length;S++)_[S].__alive=!1;p?d.eachComponent(function(T,M){T!=="series"&&x(M)}):d.eachSeries(x);function x(T){var M=T.__requireNewView;T.__requireNewView=!1;var D="_ec_"+T.id+"_"+T.type,I=!M&&m[D];if(!I){var k=Ko(T.type),N=p?sa.getClass(k.main,k.sub):Qo.getClass(k.sub);I=new N,I.init(d,b),m[D]=I,_.push(I),y.add(I.group)}T.__viewId=I.__id=D,I.__alive=!0,I.__model=T,I.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&g.prepareView(I,T,d,b)}for(var S=0;S<_.length;){var E=_[S];E.__alive?S++:(!p&&E.renderTask.dispose(),y.remove(E.group),E.dispose(d,b),_.splice(S,1),m[E.__id]===E&&delete m[E.__id],E.__id=E.group.__ecComponentInfo=null)}},rg=function(h,p,d,g,_){var m=h._model;if(m.setUpdatePayload(d),!g){G([].concat(h._componentsViews).concat(h._chartsViews),E);return}var y={};y[g+"Id"]=d[g+"Id"],y[g+"Index"]=d[g+"Index"],y[g+"Name"]=d[g+"Name"];var b={mainType:g,query:y};_&&(b.subType=_);var S=d.excludeSeriesId,x;S!=null&&(x=Rt(),G($r(S),function(T){var M=Jo(T,null);M!=null&&x.set(M,!0)})),m&&m.eachComponent(b,function(T){var M=x&&x.get(T.id)!=null;if(!M)if(HR(d))if(T instanceof Qs)d.type===vu&&!d.notBlur&&!T.get(["emphasis","disabled"])&&Eee(T,d,h._api);else{var D=cC(T.mainType,T.componentIndex,d.name,h._api),I=D.focusSelf,k=D.dispatchers;d.type===vu&&I&&!d.notBlur&&Qb(T.mainType,T.componentIndex,h._api),k&&G(k,function(N){d.type===vu?Gm(N):Wm(N)})}else rS(d)&&T instanceof Qs&&(Ree(T,d,h._api),$R(T),Bi(h))},h),m&&m.eachComponent(b,function(T){var M=x&&x.get(T.id)!=null;M||E(h[g==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},h);function E(T){T&&T.__alive&&T[p]&&T[p](T.__model,m,h._api,d)}},Cs={prepareAndUpdate:function(h){sc(this),Cs.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var d=this._model,g=this._api,_=this._zr,m=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(h),y.restoreData(d,h),y.performSeriesTasks(d),m.create(d,g),y.performDataProcessorTasks(d,h),_w(this,d),m.update(d,g),n(d),y.performVisualTasks(d,h),bw(this,d,g,h,p);var b=d.get("backgroundColor")||"transparent",S=d.get("darkMode");_.setBackgroundColor(b),S!=null&&S!=="auto"&&_.setDarkMode(S),po.trigger("afterupdate",d,g)}},updateTransform:function(h){var p=this,d=this._model,g=this._api;if(d){d.setUpdatePayload(h);var _=[];d.eachComponent(function(y,b){if(y!=="series"){var S=p.getViewOfComponentModel(b);if(S&&S.__alive)if(S.updateTransform){var x=S.updateTransform(b,d,g,h);x&&x.update&&_.push(S)}else _.push(S)}});var m=Rt();d.eachSeries(function(y){var b=p._chartsMap[y.__viewId];if(b.updateTransform){var S=b.updateTransform(y,d,g,h);S&&S.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),n(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0,dirtyMap:m}),ig(this,d,g,h,{},m),po.trigger("afterupdate",d,g)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),Qo.markUpdateMethod(h,"updateView"),n(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),bw(this,p,this._api,h,{}),po.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,d=this._model;d&&(d.setUpdatePayload(h),d.eachSeries(function(g){g.getData().clearAllVisual()}),Qo.markUpdateMethod(h,"updateVisual"),n(d),this._scheduler.performVisualTasks(d,h,{visualType:"visual",setDirty:!0}),d.eachComponent(function(g,_){if(g!=="series"){var m=p.getViewOfComponentModel(_);m&&m.__alive&&m.updateVisual(_,d,p._api,h)}}),d.eachSeries(function(g){var _=p._chartsMap[g.__viewId];_.updateVisual(g,d,p._api,h)}),po.trigger("afterupdate",d,this._api))},updateLayout:function(h){Cs.update.call(this,h)}},yw=function(h,p,d,g){if(h._disposed){h.id;return}for(var _=h._model,m=h._coordSysMgr.getCoordinateSystems(),y,b=F1(_,d),S=0;Sp.get("hoverLayerThreshold")&&!vt.node&&!vt.worker&&p.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=h._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(h,p){var d=h.get("blendMode")||null;p.eachRendered(function(g){g.isGroup||(g.style.blend=d)})}function s(h,p){if(!h.preventAutoZ){var d=h.get("z")||0,g=h.get("zlevel")||0;p.eachRendered(function(_){return l(_,d,g,-1/0),!0})}}function l(h,p,d,g){var _=h.getTextContent(),m=h.getTextGuideLine(),y=h.isGroup;if(y)for(var b=h.childrenRef(),S=0;S0?{duration:_,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(rd(y))return;if(y instanceof pn&&kee(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(g){y.stateTransition=m;var S=y.getTextContent(),x=y.getTextGuideLine();S&&(S.stateTransition=m),x&&(x.stateTransition=m)}y.__dirty&&i(y)}})}MP=function(h){return new(function(p){Ve(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(g){for(;g;){var _=g.__ecComponentInfo;if(_!=null)return h._model.getComponent(_.mainType,_.index);g=g.parent}},d.prototype.enterEmphasis=function(g,_){Gm(g,_),Bi(h)},d.prototype.leaveEmphasis=function(g,_){Wm(g,_),Bi(h)},d.prototype.enterBlur=function(g){Tee(g),Bi(h)},d.prototype.leaveBlur=function(g){YN(g),Bi(h)},d.prototype.enterSelect=function(g){jN(g),Bi(h)},d.prototype.leaveSelect=function(g){qN(g),Bi(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(g){return h.getViewOfComponentModel(g)},d.prototype.getViewOfSeriesModel=function(g){return h.getViewOfSeriesModel(g)},d}(_5))(h)},W5=function(h){function p(d,g){for(var _=0;_=0)){PP.push(n);var o=C5.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Z5(e,t){ES[e]=t}function Oae(e,t,n){var r=fae("registerMap");r&&r(e,t,n)}var kae=lre;Au(BC,Eoe);Au(py,Aoe);Au(py,Moe);Au(BC,Hoe);Au(py,Uoe);Au(B5,uae);X5(b5);K5(pae,xoe);Z5("default",Roe);df({type:vu,event:vu,update:vu},ti);df({type:Xg,event:Xg,update:Xg},ti);df({type:ed,event:ed,update:ed},ti);df({type:Kg,event:Kg,update:Kg},ti);df({type:td,event:td,update:td},ti);q5("light",Boe);q5("dark",M5);var IP=[],Nae={registerPreprocessor:X5,registerProcessor:K5,registerPostInit:Dae,registerPostUpdate:Pae,registerUpdateLifecycle:UC,registerAction:df,registerCoordinateSystem:Iae,registerLayout:Lae,registerVisual:Au,registerTransform:kae,registerLoading:Z5,registerMap:Oae,registerImpl:cae,PRIORITY:xae,ComponentModel:an,ComponentView:sa,SeriesModel:Qs,ChartView:Qo,registerComponentModel:function(e){an.registerClass(e)},registerComponentView:function(e){sa.registerClass(e)},registerSeriesModel:function(e){Qs.registerClass(e)},registerChartView:function(e){Qo.registerClass(e)},registerSubTypeDefaulter:function(e,t){an.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){noe(e,t)}};function el(e){if(ze(e)){G(e,function(t){el(t)});return}sn(IP,e)>=0||(IP.push(e),_t(e)&&(e={install:e}),e.install(Nae))}var Fae=function(e){Ve(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}(an),$ae=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),AS=function(e){Ve(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",So).models[0]},t.type="cartesian2dAxis",t}(an);ua(AS,$ae);var J5={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Bae=Zt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},J5),GC=Zt({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}}},J5),Vae=Zt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},GC),Hae=rn({logBase:10},GC);const Uae={category:Bae,value:GC,time:Vae,log:Hae};var zae=0,MS=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++zae}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&ct(r,Gae);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(!qe(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=Rt(this.categories))},e}();function Gae(e){return at(e)&&e.value!=null?e.value:e+""}var Wae={value:1,category:1,time:1,log:1};function LP(e,t,n,r){G(Wae,function(i,o){var a=Zt(Zt({},Uae[o],!0),r,!0),s=function(l){Ve(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,h){var p=Ud(this),d=p?dy(c):{},g=h.getTheme();Zt(c,g.get(o+"Axis")),Zt(c,this.getDefaultOption()),c.type=OP(c),p&&tf(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=MS.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.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",OP)}function OP(e){return e.type||(e.data?"category":"value")}var ha=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var n=this._extent;t[0]n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Y0(ha);function RS(e){return e.type==="interval"||e.type==="log"}function Yae(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=NN(o/t);n!=null&&ar&&(a=i.interval=r);var s=i.intervalPrecision=Q5(a),l=i.niceTickExtent=[Wn(Math.ceil(e[0]/a)*a,s),Wn(Math.floor(e[1]/a)*a,s)];return jae(l,e),i}function Sw(e){var t=Math.pow(10,iC(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Wn(n*t)}function Q5(e){return Ba(e)+2}function kP(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function jae(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),kP(e,0,t),kP(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function vy(e,t){return e>=t[0]&&e<=t[1]}function gy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function my(e,t){return e*(t[1]-t[0])+t[0]}var WC=function(e){Ve(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new MS({})),ze(i)&&(i=new MS({categories:ct(i,function(o){return at(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:qe(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),vy(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),gy(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(my(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(ha);ha.registerClass(WC);var Hl=Wn,pf=function(e){Ve(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 vy(n,this._extent)},t.prototype.normalize=function(n){return gy(n,this._extent)},t.prototype.scale=function(n){return my(n,this._extent)},t.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=Q5(n)},t.prototype.getTicks=function(n){var r=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:o[1];return i[1]>c&&(n?s.push({value:Hl(c+r,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;ao[0]&&d>>1;e[i][1]i&&(this._approxInterval=i);var s=og.length,l=Math.min(qae(og,this._approxInterval,0,s),s-1);this._interval=og[l][1],this._minLevelUnit=og[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Tn(n)?n:+Xa(n)},t.prototype.contain=function(n){return vy(this.parse(n),this._extent)},t.prototype.normalize=function(n){return gy(this.parse(n),this._extent)},t.prototype.scale=function(n){return my(n,this._extent)},t.type="time",t}(pf),og=[["second",DC],["minute",PC],["hour",id],["quarter-day",id*6],["half-day",id*12],["day",Ki*1.2],["half-week",Ki*3.5],["week",Ki*7],["month",Ki*31],["quarter",Ki*95],["half-year",gD/2],["year",gD]];function Xae(e,t,n,r){var i=Xa(t),o=Xa(n),a=function(g){return yD(i,g,r)===yD(o,g,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}function Kae(e,t){return e/=Ki,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Zae(e){var t=30*Ki;return e/=t,e>6?6:e>3?3:e>2?2:1}function Jae(e){return e/=id,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function NP(e,t){return e/=t?PC:DC,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Qae(e){return NN(e)}function ese(e,t,n){var r=new Date(e);switch(Vc(t)){case"year":case"month":r[NF(n)](0);case"day":r[FF(n)](1);case"hour":r[$F(n)](0);case"minute":r[BF(n)](0);case"second":r[VF(n)](0),r[HF(n)](0)}return r.getTime()}function tse(e,t,n,r){var i=1e4,o=OF,a=0;function s(k,N,H,te,W,X,j){for(var oe=new Date(N),Q=N,fe=oe[te]();Q1&&X===0&&H.unshift({value:H[0].value-Q})}}for(var X=0;X=r[0]&&b<=r[1]&&h++)}var S=(r[1]-r[0])/t;if(h>S*1.5&&p>S/1.5||(u.push(m),h>S||e===o[d]))break}c=[]}}}for(var x=kr(ct(u,function(k){return kr(k,function(N){return N.value>=r[0]&&N.value<=r[1]&&!N.notAdd})}),function(k){return k.length>0}),E=[],T=x.length-1,d=0;d0;)o*=10;var s=[Wn(ise(r[0]/o)*o),Wn(rse(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){ud.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=uo(n)/uo(this.base),vy(n,this._extent)},t.prototype.normalize=function(n){return n=uo(n)/uo(this.base),gy(n,this._extent)},t.prototype.scale=function(n){return n=my(n,this._extent),ag(this.base,n)},t.type="log",t}(ha),t3=YC.prototype;t3.getMinorTicks=ud.getMinorTicks;t3.getLabel=ud.getLabel;function sg(e,t){return nse(e,Ba(t))}ha.registerClass(YC);var ose=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},e.prototype.modifyDataMinMax=function(t,n){this[sse[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=ase[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),ase={min:"_determinedMin",max:"_determinedMax"},sse={min:"_dataMin",max:"_dataMax"};function lse(e,t,n){var r=e.rawExtentInfo;return r||(r=new ose(e,t,n),e.rawExtentInfo=r,r)}function lg(e,t){return t==null?null:Om(t)?NaN:e.parse(t)}function n3(e,t){var n=e.type,r=lse(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=yie("bar",a),l=!1;if(G(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=wie(s),c=use(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function use(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Sie(r,n.axis);if(a===void 0)return{min:e,max:t};var s=1/0;G(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;G(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,h=1-(s+l)/o,p=c/h-c;return t+=p*(l/u),e-=p*(s/u),{min:e,max:t}}function $P(e,t){var n=t,r=n3(e,n),i=r.extent,o=n.get("splitNumber");e instanceof YC&&(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 cse(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new WC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new e3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(ha.getClass(t)||pf)}}function fse(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function vf(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):qe(t)?function(r){return function(i){var o=e.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(t):_t(t)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(jC(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function jC(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function hse(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof WC?i=n.count():(r=n.getTicks(),i=r.length);var a=e.getLabelModel(),s=vf(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function mse(e){var t=e.getLabelModel().get("customValues");if(t){var n=vf(e);return{labels:i3(e,t).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:r}})}}return e.type==="category"?_se(e):bse(e)}function yse(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:i3(e,n)}:e.type==="category"?wse(e,t):{ticks:ct(e.scale.getTicks(),function(r){return r.value})}}function _se(e){var t=e.getLabelModel(),n=o3(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function o3(e,t){var n=a3(e,"labels"),r=qC(t),i=s3(n,r);if(i)return i;var o,a;return _t(r)?o=c3(e,r):(a=r==="auto"?Sse(e):r,o=u3(e,a)),l3(n,r,{labels:o,labelCategoryInterval:a})}function wse(e,t){var n=a3(e,"ticks"),r=qC(t),i=s3(n,r);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),_t(r))o=c3(e,r,!0);else if(r==="auto"){var s=o3(e,e.getLabelModel());a=s.labelCategoryInterval,o=ct(s.labels,function(l){return l.tickValue})}else a=r,o=u3(e,a,!0);return l3(n,r,{ticks:o,tickCategoryInterval:a})}function bse(e){var t=e.scale.getTicks(),n=vf(e);return{labels:ct(t,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function a3(e,t){return jd(e)[t]||(jd(e)[t]=[])}function s3(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),p=0,d=0;l<=o[1];l+=s){var g=0,_=0,m=eC(n({value:l}),t.font,"center","top");g=m.width*1.3,_=m.height*1.3,p=Math.max(p,g,7),d=Math.max(d,_,7)}var y=p/c,b=d/h;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(y,b))),x=jd(e.model),E=e.getExtent(),T=x.lastAutoInterval,M=x.lastTickCount;return T!=null&&M!=null&&Math.abs(T-S)<=1&&Math.abs(M-a)<=1&&T>S&&x.axisExtent0===E[0]&&x.axisExtent1===E[1]?S=T:(x.lastTickCount=a,x.lastAutoInterval=S,x.axisExtent0=E[0],x.axisExtent1=E[1]),S}function Cse(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 u3(e,t,n){var r=vf(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 h=r3(e),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==o[0]&&_(o[0]);for(var g=u;g<=o[1];g+=l)_(g);d&&g-l!==o[1]&&_(o[1]);function _(m){var y={value:m};s.push(n?m:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function c3(e,t,n){var r=e.scale,i=vf(e),o=[];return G(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 VP=[0,1],Tse=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 XQ(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(),HP(r,i.count())),ER(t,VP,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),HP(r,i.count()));var o=ER(t,r,VP,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=yse(this,n),i=r.ticks,o=ct(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Ese(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=ct(r,function(o){return ct(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return mse(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 xse(this)},e}();function HP(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Ese(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]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;G(t,function(d){d.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+u*s},t.push(a)}var h=o[0]>o[1];p(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&p(o[0],t[0].coord)&&t.unshift({coord:o[0]}),p(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&p(a.coord,o[1])&&t.push({coord:o[1]});function p(d,g){return d=Wn(d),g=Wn(g),h?d>g:dr[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}(Tse);function PS(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(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,g=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var _=a.toGlobalCoord(a.dataToCoord(0));g[p.onZero]=Math.max(Math.min(_,g[1]),g[0])}o.position=[u==="y"?g[p[l]]:h[0],u==="x"?g[p[l]]:h[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?g[p[s]]-g[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),kd(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 UP(e){return e.get("coordinateSystem")==="cartesian2d"}function zP(e){var t={xAxisModel:null,yAxisModel:null};return G(t,function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,So).models[0];t[r]=o}),t}var xw=Math.log;function Mse(e,t,n){var r=pf.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=n3(e,t),u=l.extent,c=l.fixMin,h=l.fixMax;if(e.type==="log"){var p=xw(e.base);u=[xw(u[0])/p,xw(u[1])/p]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(e);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var g=r.getInterval.call(e),_=u[0],m=u[1];if(c&&h)g=(m-_)/a;else if(c)for(m=u[0]+g*a;mu[0]&&isFinite(_)&&isFinite(u[0]);)g=Sw(g),_=u[1]-g*a;else{var y=e.getTicks().length-1;y>a&&(g=Sw(g));var b=g*a;m=Math.ceil(u[1]/g)*g,_=Wn(m-b),_<0&&u[0]>=0?(_=0,m=Wn(b)):m>0&&u[1]<=0&&(m=0,_=-Wn(b))}var S=(i[0].value-o[0].value)/s,x=(i[a].value-o[a].value)/s;r.setExtent.call(e,_+g*S,m+g*x),r.setInterval.call(e,g),(S||x)&&r.setNiceExtent.call(e,_+g,m-g)}var Rse=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=DS,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=Cn(a),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var p=+l[h],d=a[p],g=d.model,_=d.scale;RS(_)&&g.get("alignTicks")&&g.get("interval")==null?c.push(d):($P(_,g),RS(_)&&(s=d))}c.length&&(s||(s=c.pop(),$P(s.scale,s.model)),G(c,function(m){Mse(m.scale,m.model,s.scale)}))}}i(r.x),i(r.y);var o={};G(r.x,function(a){GP(r,"y",a,o)}),G(r.y,function(a){GP(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=Zm(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(G(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=hse(u);if(c){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[h]-=c[h]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),G(this._coordsList,function(u){u.calcAffineTransform()});function l(){G(s,function(u){var c=u.isHorizontal(),h=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),Dse(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]}at(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i0?"top":"bottom",o="center"):Um(i-Bs)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),YP={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&&(Qi(s,s,a),Qi(l,l,a));var c=Le({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Zs({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Bd(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);qe(p)&&(p=[p,p]),(qe(d)||Tn(d))&&(d=[d,d]);var g=JF(t.get(["axisLine","symbolOffset"])||0,d),_=d[0],m=d[1];G([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(p[b]!=="none"&&p[b]!=null){var S=nf(p[b],-_/2,-m/2,_,m,c.stroke,!0),x=y.r+y.offset,E=u?l:s;S.attr({rotation:y.rotate,x:E[0]+x*Math.cos(e.rotation),y:E[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(e,t,n,r){var i=Lse(n,r,t,e),o=kse(n,r,t,e);if(Ise(t,o,i),Ose(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=Eie(ct(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Aie(a)}},axisName:function(e,t,n,r){var i=kd(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,h=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,qP(o)?e.labelOffset+a*l:0],p,d=t.get("nameRotate");d!=null&&(d=d*Bs/180);var g;qP(o)?p=Ys.innerTextLayout(e.rotation,d??e.rotation,a):(p=Pse(e.rotation,o,d||0,u),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(p.rotation)),!isFinite(g)&&(g=null)));var _=s.getFont(),m=t.get("nameTruncate",!0)||{},y=m.ellipsis,b=kd(e.nameTruncateMaxWidth,m.maxWidth,g),S=new oi({x:h[0],y:h[1],rotation:p.rotation,silent:Ys.isLabelSilent(t),style:Qc(s,{text:i,font:_,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(bC({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var x=Ys.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,hn(S).eventData=x}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function Pse(e,t,n,r){var i=kN(n-e),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Um(i-Bs/2)?(a=l?"bottom":"top",o="center"):Um(i-Bs*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",iBs/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function Ise(e,t,n){if(!r3(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],h=n[n.length-1],p=n[n.length-2];r===!1?(Vi(o),Vi(u)):jP(o,a)&&(r?(Vi(a),Vi(c)):(Vi(o),Vi(u))),i===!1?(Vi(s),Vi(h)):jP(l,s)&&(i?(Vi(l),Vi(p)):(Vi(s),Vi(h)))}}function Vi(e){e&&(e.ignore=!0)}function jP(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=Zx([]);return Jx(i,i,-e.rotation),n.applyTransform(Nc([],i,e.getLocalTransform())),r.applyTransform(Nc([],i,t.getLocalTransform())),n.intersect(r)}}function qP(e){return e==="middle"||e==="center"}function f3(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function Hse(e){var t=XC(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=IS(n);o==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),as)return!0;if(a){var l=XC(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=Jl(t).pointerEl=new Mte[o.type](ZP(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,r,i){if(n.label){var o=Jl(t).labelEl=new oi(ZP(n.label));t.add(o),QP(o,i)}},e.prototype.updatePointerEl=function(t,n,r){var i=Jl(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=Jl(t).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),QP(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=wC(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){f5(u.event)},onmousedown:Ew(this._onHandleDragMove,this,0,0),drift:Ew(this._onHandleDragMove,this),ondragend:Ew(this._onHandleDragEnd,this)}),r.add(i)),eI(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ze(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,c5(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){JP(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Aw(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(Aw(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(Aw(i)),Jl(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),gS(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 JP(e,t,n,r){v3(Jl(n).lastProp,r)||(Jl(n).lastProp=r,t?Js(n,r,e):(n.stopAnimation(),n.attr(r)))}function v3(e,t){if(at(e)&&at(t)){var n=!0;return G(t,function(r,i){n=n&&v3(e[i],r)}),!!n}else return e===t}function QP(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Aw(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function eI(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 Jse(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 Qse(e,t,n,r,i){var o=n.get("value"),a=g3(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=hy(s.get("padding")||0),u=s.getFont(),c=eC(a,u),h=i.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],g=i.align;g==="right"&&(h[0]-=p),g==="center"&&(h[0]-=p/2);var _=i.verticalAlign;_==="bottom"&&(h[1]-=d),_==="middle"&&(h[1]-=d/2),ele(h,p,d,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:Qc(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function ele(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 g3(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:jC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};G(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),qe(a)?o=a.replace("{value}",o):_t(a)&&(o=a(s))}return o}function m3(e,t,n){var r=kc();return Jx(r,r,n.rotation),Vb(r,r,n.position),_C([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function tle(e,t,n,r,i,o){var a=Ys.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Qse(t,r,i,o,{position:m3(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function nle(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function rle(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var ile=function(e){Ve(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=tI(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var p=Jse(o),d=ole[u](s,h,c);d.style=p,n.graphicKey=d.type,n.pointer=d}var g=PS(l.model,i);tle(r,n,g,i,o,a)},t.prototype.getHandleTransform=function(n,r,i){var o=PS(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=m3(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=tI(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[n.x,n.y];h[c]+=r[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=h[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:n.rotation,cursorPoint:d,tooltipOption:g[c]}},t}(Zse);function tI(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ole={line:function(e,t,n){var r=nle([t,n[0]],[t,n[1]],nI(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:rle([t-r/2,n[0]],[r,i],nI(e))}}};function nI(e){return e.dim==="x"?0:1}var ale=function(e){Ve(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}(an),Va=Kn(),sle=G;function y3(e,t,n){if(!vt.node){var r=t.getZr();Va(r).records||(Va(r).records={}),lle(r,t);var i=Va(r).records[e]||(Va(r).records[e]={});i.handler=n}}function lle(e,t){if(Va(e).initialized)return;Va(e).initialized=!0,n("click",tr(rI,"click")),n("mousemove",tr(rI,"mousemove")),n("globalout",cle);function n(r,i){e.on(r,function(o){var a=fle(t);sle(Va(e).records,function(s){s&&i(s,o,a.dispatchAction)}),ule(a.pendings,t)})}}function ule(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 cle(e,t,n){e.handler("leave",null,n)}function rI(e,t,n,r){t.handler(e,n,r)}function fle(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 OS(e,t){if(!vt.node){var n=t.getZr(),r=(Va(n).records||{})[e];r&&(Va(n).records[e]=null)}}var hle=function(e){Ve(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";y3("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){OS("axisPointer",r)},t.prototype.dispose=function(n,r){OS("axisPointer",r)},t.type="axisPointer",t}(sa);function _3(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=Cu(o,e);if(a==null||a<0||ze(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),h=c.dim,p=u.dim,d=h==="x"||h==="radius"?1:0,g=o.mapDimension(p),_=[];_[d]=o.get(g,a),_[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(_)||[]}else n=l.dataToPoint(o.getValues(ct(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:s}}var iI=Kn();function dle(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Mn(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){im(i)&&(i=_3({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=im(i),u=o.axesInfo,c=s.axesInfo,h=r==="leave"||im(i),p={},d={},g={list:[],map:{}},_={showPointer:tr(vle,d),showTooltip:tr(gle,g)};G(s.coordSysMap,function(y,b){var S=l||y.containPoint(i);G(s.coordSysAxesInfo[b],function(x,E){var T=x.axis,M=wle(u,x);if(!h&&S&&(!u||M)){var D=M&&M.value;D==null&&!l&&(D=T.pointToData(i)),D!=null&&oI(x,D,_,!1,p)}})});var m={};return G(c,function(y,b){var S=y.linkGroup;S&&!d[b]&&G(S.axesInfo,function(x,E){var T=d[E];if(x!==y&&T){var M=T.value;S.mapper&&(M=y.axis.scale.parse(S.mapper(M,aI(x),aI(y)))),m[y.key]=M}})}),G(m,function(y,b){oI(c[b],y,_,!0,p)}),mle(d,c,p),yle(g,i,e,a),_le(c,a,n),p}}function oI(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=ple(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Le(i,s[0]),!r&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function ple(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return G(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),h,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,e,n);p=d.dataIndices,h=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!p.length)return;h=l.getData().get(c[0],p[0])}if(!(h==null||!isFinite(h))){var g=e-h,_=Math.abs(g);_<=a&&((_=0&&s<0)&&(a=_,s=g,i=h,o.length=0),G(p,function(m){o.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:o,snapToValue:i}}function vle(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function gle(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=qd(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 mle(e,t,n){var r=n.axesInfo=[];G(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 yle(e,t,n,r){if(im(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 _le(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=iI(r)[i]||{},a=iI(r)[i]={};G(e,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&G(h.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];G(o,function(u,c){!a[c]&&l.push(u)}),G(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 wle(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 aI(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 im(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function w3(e){h3.registerAxisPointerClass("CartesianAxisPointer",ile),e.registerComponentModel(ale),e.registerComponentView(hle),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ze(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Nse(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dle)}function ble(e){el(Kse),el(w3)}function Sle(e,t){var n=hy(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new cr({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 xle=function(e){Ve(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}(an);function b3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function S3(e){if(vt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+i,p=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-h)/2)*100)/100;s+=";"+o+":-"+d+"px";var g=t+" solid "+i+"px;",_=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'
'}function Dle(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+=vt.transformSupported?","+KC+r:",left"+r+",top"+r),Ele+":"+i}function sI(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!vt.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=vt.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+KC+":"+a+";":[["top",0],["left",0],[x3,a]]}function Ple(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),G(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Ile(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"),h=ZF(e,"html"),p=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+p),t&&i&&r.push(Dle(i,n)),o&&r.push("background-color:"+o),G(["width","color","radius"],function(d){var g="border-"+d,_=zF(g),m=e.get(_);m!=null&&r.push(g+":"+m+(d==="color"?"":"px"))}),r.push(Ple(c)),h!=null&&r.push("padding:"+hy(h).join("px ")+"px"),r.join(";")+";"}function lI(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Pne(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 Lle=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,vt.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&&(qe(o)?document.querySelector(o):Od(o)?o:_t(o)&&o(t.getDom()));lI(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();Ui(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=Tle(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=Ale+Ile(t,!this._firstShow,this._longHide)+sI(o[0],o[1],!0)+("border-color:"+Tu(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(qe(o)&&r.get("trigger")==="item"&&!b3(r)&&(s=Rle(r,i,o)),qe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ze(t)||(t=[t]);for(var l=0;l=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(n,r,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||vt.node||!i.getDom())){var a=fI(o,i);this._ticket="";var s=o.dataByCoordSys,l=Vle(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=kle;c.x=o.x,c.y=o.y,c.update(),hn(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 h=_3(o,r),p=h.point[0],d=h.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:h.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(fI(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(),h=lh([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.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=hn(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ah(i,function(c){if(hn(c).dataIndex!=null)return l=c,!0;if(hn(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=Mn(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},t.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=lh([r.tooltipOption],o),l=this._renderMode,u=[],c=zd("section",{blocks:[],noHeader:!0}),h=[],p=new Q1;G(n,function(b){G(b.dataByAxis,function(S){var x=i.getComponent(S.axisDim+"Axis",S.axisIndex),E=S.value;if(!(!x||E==null)){var T=g3(E,x.axis,i,S.seriesDataIndices,S.valueLabelOpt),M=zd("section",{header:T,noHeader:!Xo(T),sortBlocks:!0,blocks:[]});c.blocks.push(M),G(S.seriesDataIndices,function(D){var I=i.getSeriesByIndex(D.seriesIndex),k=D.dataIndexInside,N=I.getDataParams(k);if(!(N.dataIndex<0)){N.axisDim=S.axisDim,N.axisIndex=S.axisIndex,N.axisType=S.axisType,N.axisId=S.axisId,N.axisValue=jC(x.axis,{value:E}),N.axisValueLabel=T,N.marker=p.makeTooltipMarker("item",Tu(N.color),l);var H=bD(I.formatTooltip(k,!0,null)),te=H.frag;if(te){var W=lh([I],o).get("valueFormatter");M.blocks.push(W?Le({valueFormatter:W},te):te)}H.text&&h.push(H.text),u.push(N)}})}})}),c.blocks.reverse(),h.reverse();var d=r.position,g=s.get("order"),_=CD(c,p,l,g,i.get("useUTC"),s.get("textStyle"));_&&h.unshift(_);var m=l==="richText"?` - -`:"
",y=h.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=hn(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,p=u.getData(h),d=this._renderMode,g=n.positionDefault,_=lh([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),m=_.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,h),b=new Q1;y.marker=b.makeTooltipMarker("item",Tu(y.color),d);var S=bD(u.formatTooltip(c,!1,h)),x=_.get("order"),E=_.get("valueFormatter"),T=S.frag,M=T?CD(E?Le({valueFormatter:E},T):T,b,d,x,o.get("useUTC"),_.get("textStyle")):S.text,D="item_"+u.name+"_"+c;this._showOrMove(_,function(){this._showTooltipContent(_,M,y,D,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=hn(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(qe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Nt(l),l.content=bi(l.content));var h=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&h.push(p),h.push({formatter:l.content});var d=n.positionDefault,g=lh(h,this._tooltipModel,d?{position:d}:null),_=g.get("content"),m=Math.random()+"",y=new Q1;this._showOrMove(g,function(){var b=Nt(g.get("formatterParams")||{});this._showTooltipContent(g,_,b,m,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 h=this._tooltipContent;h.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var d=r,g=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),_=g.color;if(p)if(qe(p)){var m=n.ecModel.get("useUTC"),y=ze(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=p,b&&(d=sy(y.axisValue,d,m)),d=GF(d,i,!0)}else if(_t(p)){var S=Mn(function(x,E){x===this._ticket&&(h.setContent(E,c,n,_,l),this._updatePosition(n,l,a,s,h,i,u))},this);this._ticket=o,d=p(i,o,S)}else d=p;h.setContent(d,c,n,_,l),h.show(n,_),this._updatePosition(n,l,a,s,h,i,u)}},t.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ze(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ze(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 h=a.getSize(),p=n.get("align"),d=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),_t(r)&&(r=r([i,o],s,a.el,g,{viewSize:[u,c],contentSize:h.slice()})),ze(r))i=Nr(r[0],u),o=Nr(r[1],c);else if(at(r)){var _=r;_.width=h[0],_.height=h[1];var m=Zm(_,{width:u,height:c});i=m.x,o=m.y,p=null,d=null}else if(qe(r)&&l){var y=Ble(r,g,h,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=Fle(i,o,a,u,c,p?null:20,d?null:20);i=y[0],o=y[1]}if(p&&(i-=hI(p)?h[0]/2:p==="right"?h[0]:0),d&&(o-=hI(d)?h[1]/2:d==="bottom"?h[1]:0),b3(n)){var y=$le(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&&G(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&G(u,function(p,d){var g=h[d]||{},_=p.seriesDataIndices||[],m=g.seriesDataIndices||[];a=a&&p.value===g.value&&p.axisType===g.axisType&&p.axisId===g.axisId&&_.length===m.length,a&&G(_,function(y,b){var S=m[b];a=a&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),o&&G(p.seriesDataIndices,function(y){var b=y.seriesIndex,S=r[b],x=o[b];S&&x&&x.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){vt.node||!r.getDom()||(gS(this,"_updatePosition"),this._tooltipContent.dispose(),OS("itemTooltip",r))},t.type="tooltip",t}(sa);function lh(e,t,n){var r=t.ecModel,i;n?(i=new On(n,r,r),i=new On(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof On&&(a=a.get("tooltip",!0)),qe(a)&&(a={formatter:a}),a&&(i=new On(a,i,r)))}return i}function fI(e,t){return e.dispatchAction||Mn(t.dispatchAction,t)}function Fle(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 $le(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 Ble(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 hI(e){return e==="center"||e==="middle"}function Vle(e,t,n){var r=aC(e).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=up(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=hn(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function Hle(e){el(w3),e.registerComponentModel(xle),e.registerComponentView(Nle),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ti),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ti)}var Ule=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"])}},kS=function(e){Ve(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"]),ze(r)&&G(r,function(o,a){qe(o)&&(o={type:o}),r[a]=Zt(o,Ule(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(an),lc=tr,NS=G,ug=xr,T3=function(e){Ve(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 ug),this.group.add(this._selectorGroup=new ug),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(),h={width:i.getWidth(),height:i.getHeight()},p=n.get("padding"),d=Zm(c,h,p),g=this.layoutInner(n,a,d,o,l,u),_=Zm(rn({width:g.width,height:g.height},c),h,p);this.group.x=_.x-g.x,this.group.y=_.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Sle(g,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=Rt(),h=r.get("selectedMode"),p=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),NS(r.getData(),function(d,g){var _=d.get("name");if(!this.newlineDisabled&&(_===""||_===` -`)){var m=new ug;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(_)[0];if(!c.get(_))if(y){var b=y.getData(),S=b.getVisual("legendLineStyle")||{},x=b.getVisual("legendIcon"),E=b.getVisual("style"),T=this._createItem(y,_,g,d,r,n,S,E,x,h,o);T.on("click",lc(dI,_,null,o,p)).on("mouseover",lc(FS,y.name,null,o,p)).on("mouseout",lc($S,y.name,null,o,p)),i.ssr&&T.eachChild(function(M){var D=hn(M);D.seriesIndex=y.seriesIndex,D.dataIndex=g,D.ssrType="legend"}),c.set(_,!0)}else i.eachRawSeries(function(M){if(!c.get(_)&&M.legendVisualProvider){var D=M.legendVisualProvider;if(!D.containName(_))return;var I=D.indexOfName(_),k=D.getItemVisual(I,"style"),N=D.getItemVisual(I,"legendIcon"),H=Ua(k.fill);H&&H[3]===0&&(H[3]=.2,k=Le(Le({},k),{fill:q0(H,"rgba")}));var te=this._createItem(M,_,g,d,r,n,{},k,N,h,o);te.on("click",lc(dI,null,_,o,p)).on("mouseover",lc(FS,null,_,o,p)).on("mouseout",lc($S,null,_,o,p)),i.ssr&&te.eachChild(function(W){var X=hn(W);X.seriesIndex=M.seriesIndex,X.dataIndex=g,X.ssrType="legend"}),c.set(_,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();NS(n,function(u){var c=u.type,h=new oi({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var p=r.getModel("selectorLabel"),d=r.getModel(["emphasis","selectorLabel"]);xC(h,{normal:p,emphasis:d},{defaultText:u.title}),eS(h)})},t.prototype._createItem=function(n,r,i,o,a,s,l,u,c,h,p){var d=n.visualDrawType,g=a.get("itemWidth"),_=a.get("itemHeight"),m=a.isSelected(r),y=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),S=o.get("icon");c=S||c||"roundRect";var x=zle(c,o,l,u,d,m,p),E=new ug,T=o.getModel("textStyle");if(_t(n.getLegendIcon)&&(!S||S==="inherit"))E.add(n.getLegendIcon({itemWidth:g,itemHeight:_,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}));else{var M=S==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;E.add(Gle({itemWidth:g,itemHeight:_,icon:c,iconRotate:M,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:b}))}var D=s==="left"?g+5:-5,I=s,k=a.get("formatter"),N=r;qe(k)&&k?N=k.replace("{name}",r??""):_t(k)&&(N=k(r));var H=m?T.getTextColor():o.get("inactiveColor");E.add(new oi({style:Qc(T,{text:N,x:D,y:_/2,fill:H,align:I,verticalAlign:"middle"},{inheritColor:H})}));var te=new cr({shape:E.getBoundingRect(),style:{fill:"transparent"}}),W=o.getModel("tooltip");return W.get("show")&&bC({el:te,componentModel:a,itemName:r,itemTooltipOption:W.option}),E.add(te),E.eachChild(function(X){X.silent=!0}),te.silent=!h,this.getContentGroup().add(E),eS(E),E.__legendDataIndex=i,E},t.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();od(n.get("orient"),l,n.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){od("horizontal",u,n.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],g=n.get("selectorButtonGap",!0),_=n.getOrient().index,m=_===0?"width":"height",y=_===0?"height":"width",b=_===0?"y":"x";s==="end"?d[_]+=c[m]+g:h[_]+=p[m]+g,d[1-_]+=c[y]/2-p[y]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var S={x:0,y:0};return S[m]=c[m]+g+p[m],S[y]=Math.max(c[y],p[y]),S[b]=Math.min(0,p[b]+d[1-_]),S}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(sa);function zle(e,t,n,r,i,o,a){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),NS(m,function(b,S){m[S]==="inherit"&&(m[S]=y[S])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?r.decal:xS(h,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 p=t.getModel("lineStyle"),d=p.getLineStyle();if(s(d,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!o){var g=t.get("inactiveBorderWidth"),_=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&_?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function Gle(e){var t=e.icon||"roundRect",n=nf(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 dI(e,t,n,r){$S(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),FS(e,t,n,r)}function E3(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;ri[a],m=[-d.x,-d.y];r||(m[o]=c[u]);var y=[0,0],b=[-g.x,-g.y],S=kt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(_){var x=n.get("pageButtonPosition",!0);x==="end"?b[o]+=i[a]-g[a]:y[o]+=g[a]+S}b[1-o]+=d[s]/2-g[s]/2,c.setPosition(m),h.setPosition(y),p.setPosition(b);var E={x:0,y:0};if(E[a]=_?i[a]:d[a],E[s]=Math.max(d[s],g[s]),E[l]=Math.min(0,g[l]+b[1-o]),h.__rectSize=i[a],_){var T={x:0,y:0};T[a]=Math.max(i[a]-g[a]-S,0),T[s]=E[s],h.setClipPath(new cr({shape:T})),h.__rectSize=T[a]}else p.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var M=this._getPageInfo(n);return M.pageIndex!=null&&Js(c,{x:M.contentPosition[0],y:M.contentPosition[1]},_?n:null),this._updatePageInfoView(n,M),E},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;G(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=r[h]!=null,d=i.childOfName(c);d&&(d.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),d.cursor=p?"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",qe(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=Mw[a],l=Rw[a],u=this._findTargetItemIndex(r),c=i.children(),h=c[u],p=c.length,d=p?1:0,g={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return g;var _=x(h);g.contentPosition[a]=-_.s;for(var m=u+1,y=_,b=_,S=null;m<=p;++m)S=x(c[m]),(!S&&b.e>y.s+o||S&&!E(S,y.s))&&(b.i>y.i?y=b:y=S,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),b=S;for(var m=u-1,y=_,b=_,S=null;m>=-1;--m)S=x(c[m]),(!S||!E(b,S.s))&&y.i=M&&T.s<=M+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}(T3);function Xle(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 Kle(e){el(A3),e.registerComponentModel(jle),e.registerComponentView(qle),Xle(e)}function Zle(e){el(A3),el(Kle)}function gI(e,t,n){var r=uf.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 Dw=function(e){Ve(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||Vm,typeof n=="string"?a=gI(n,r,i):at(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(hN(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=gI("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 Jt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var S=new Jt(0,0,0,0);S.copy(b),a.push(S)}else{for(var x=!1,E=1/0,T=0,M=0;M=s)}}for(var h=this.__startIndex;h15)break}}W.prevElClipPaths&&y.restore()};if(b)if(b.length===0)D=m.__endIndex;else for(var k=d.dpr,N=0;N0&&t>i[0]){for(l=0;lt);l++);s=r[i[l]]}if(i.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(n.dom,u.nextSibling):a.appendChild(n.dom)}else a.firstChild?a.insertBefore(n.dom,a.firstChild):a.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,i=0;i0?cg:0),this._needsManuallyCompositing),c.__builtin__||qx("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&Si&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__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,G(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Zt(r[t],n,!0):r[t]=n;for(var i=0;i{const a=getComputedStyle(n.value),s=getComputedStyle(r.value);let l=a.color,u=a.backgroundColor,c=a.borderColor,h=a.fontFamily,p=s.color,d=s.backgroundColor,g=s.borderBottomColor,_=s.borderTopColor;Lt(()=>Dc.value,()=>{const x=getComputedStyle(n.value),E=getComputedStyle(r.value);l=x.color,u=x.backgroundColor,c=x.borderColor,p=E.color,d=E.backgroundColor,g=E.borderBottomColor,_=E.borderTopColor}),Lt(()=>Bh.value,()=>{h=getComputedStyle(n.value).fontFamily});const m=Ie(()=>({legend:{bottom:0,data:t.data.map(x=>x.name),textStyle:{color:l,fontFamily:h}},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:h},formatter:t.toolTipFormatter},xAxis:{type:"category",axisLine:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{type:"value",splitNumber:4,max:x=>Math.max(x.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:h}},series:t.data.map((x,E)=>{const T=E===t.data.length-1?p:d,M=E===t.data.length-1?g:_;return{name:x.name,symbol:"none",emphasis:{disabled:!0},lineStyle:{width:1},data:x.data,areaStyle:{color:new gC(0,0,0,1,[{offset:0,color:T},{offset:1,color:M}])},type:"line",color:T,smooth:!0}})})),y=Mae(o.value);y.setOption(m.value),Lt(m,()=>{i.value||y==null||y.setOption(m.value)});const{width:b}=NY(o),S=Mo.debounce(()=>{y.resize()},100);Lt(()=>b.value,()=>{S()})}),(a,s)=>(q(),re("div",rue,[L("div",{ref_key:"chart",ref:o,class:"h-full w-full"},null,512),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[0]||(s[0]=l=>i.value=!i.value)},[(q(),Et(Wa(i.value?F(rW):F(nW)),{class:"h-4 w-4"}))])]))}}),M3=Qe({__name:"SpeedCharts",setup(e){const{t}=ia(),n=Ie(()=>[{name:t("ulSpeed"),data:_h.value},{name:t("dlSpeed"),data:yh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!1})}/s`,i=o=>o.map(a=>QO(a,{binary:!1,suffix:"/s"})).join("");return(o,a)=>(q(),Et(ZC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:60*1e3},null,8,["data"]))}}),iue={class:"card mx-1 flex flex-col gap-4 py-2 text-xs"},oue={class:"flex flex-col items-center justify-center"},aue={class:"flex flex-col items-center justify-center"},sue={class:"flex flex-col items-center justify-center"},lue={class:"flex flex-col items-center justify-center"},uue={class:"flex flex-col items-center justify-center"},cue=Qe({__name:"VerticalInfos",setup(e){return(t,n)=>(q(),re("div",iue,[L("div",oue,[ye(F(iO),{class:"h-4 w-4"}),st(" "+ue(F(bo).length),1)]),L("div",aue,[ye(F(tO),{class:"h-4 w-4"}),st(" "+ue(F(mn)(F(Em)))+" ",1),L("span",null,ue(F(mn)(F(Dx)))+"/s ",1)]),L("div",sue,[ye(F(rO),{class:"h-4 w-4"}),st(" "+ue(F(mn)(F(Am)))+" ",1),L("span",null,ue(F(mn)(F(Px)))+"/s ",1)]),L("div",lue,[ye(F(Q6),{class:"h-4 w-4"}),st(" "+ue(F(mn)(F(Rx),{binary:!0})),1)]),L("div",uue,[L("button",{class:"btn btn-circle btn-sm",onClick:n[0]||(n[0]=r=>Us.value=!1)},[ye(F(K6),{class:"h-5 w-5"})])])]))}}),fue={class:"drawer-side z-30"},hue={class:"menu flex-1 pb-0"},due=["onClick"],pue={key:0,class:"card"},vue={class:"card"},gue=Qe({__name:"SideBar",setup(e){const t={[Vt.connections]:Zk,[Vt.logs]:Jk,[Vt.proxies]:tN,[Vt.rules]:nN},n=Ie(()=>r.name?t[r.name]:null),r=CO(),i=Object.values(Vt).filter(o=>o!==Vt.setup);return(o,a)=>(q(),re("div",fue,[a[0]||(a[0]=L("label",{for:"sidebar","aria-label":"close sidebar",class:"drawer-overlay"},null,-1)),L("div",{class:Ke(F(nn)("scrollbar-hidden flex h-full flex-col gap-2 overflow-x-hidden bg-base-200 p-2 text-base-content !transition-all duration-500",F(Us)?"w-18 px-0":"w-[21rem]"))},[L("ul",hue,[(q(!0),re(Ge,null,Ft(F(i),s=>(q(),re("li",{key:s},[L("a",{class:Ke(s===F(r).name?"active":"inactive"),onClick:()=>F(Do).push({name:s})},[(q(),Et(Wa(F(UO)[s]),{class:"h-5 w-5"})),F(Us)?yt("",!0):(q(),re(Ge,{key:0},[st(ue(o.$t(s)),1)],64))],10,due)]))),128))]),F(Us)?(q(),Et(cue,{key:0})):(q(),re(Ge,{key:1},[F(r).name!==F(Vt).settings?(q(),re("div",pue,[ye(M3)])):yt("",!0),L("div",vue,[n.value?(q(),Et(Wa(n.value),{key:0})):yt("",!0),ye(qZ)])],64))],2)]))}}),Pw=Me(!1),R3=()=>({isUIUpdateAvailable:Pw,checkUIUpdate:async()=>{Pw.value=await hX(),Pw.value&&Eg.value&&Mk()}}),mue={class:"w-128 drawer md:drawer-open"},yue={class:"drawer-content fixed bottom-0 flex h-full w-full flex-col overflow-hidden bg-base-200/40 md:relative md:w-auto"},_ue={class:"relative h-0 flex-1"},wue={class:"flex h-12 w-full items-center justify-center gap-1 p-2"},bue={class:"menu menu-horizontal flex flex-1"},Sue=["href"],xue={for:"sidebar"},Cue={class:"btn btn-circle drawer-button btn-sm bg-neutral text-neutral-content"},Tue={class:"modal-box"},Eue={class:"text-lg font-bold"},Aue={class:"flex justify-end gap-2"},Mue=Qe({__name:"HomePage",setup(e){const t=Me(null),n=window.matchMedia("(display-mode: standalone)").matches||navigator.standalone,r={[Vt.connections]:Zk,[Vt.logs]:Jk,[Vt.proxies]:tN,[Vt.rules]:nN},i=u9(),o=CO(),a=Object.values(Vt).filter(b=>b!==Vt.setup),s=Ie(()=>r[o.name]),l=Me(),{direction:u}=FY(l,{threshold:15}),c=()=>{const b=o.name;return b===Vt.setup?Vt.proxies:a[(a.indexOf(b)+1)%a.length]},h=()=>{const b=o.name;return b===Vt.setup?Vt.proxies:a[(a.indexOf(b)-1+a.length)%a.length]};Lt(u,()=>{u.value==="right"?i.push({name:h()}):u.value==="left"&&i.push({name:c()})});const{proxiesTabShow:p}=U0(),{checkUIUpdate:d}=R3();Lt(Sr,()=>{Sr.value&&(Xh.value=Kc.RULES,p.value=yu.PROXIES,Gx(),Xs(),Ld(),pX(),Lb(),cj(),d())},{immediate:!0});const g=()=>{var b;(b=t.value)==null||b.close()},{showTip:_}=D0(),m=async()=>{const b=oa.value.filter(x=>x.uuid!==Sr.value);g();const S=(await Promise.all(b.map(async x=>await MM(x)?x:null))).filter(x=>x!==null);S.length>0&&(Sr.value=S[0].uuid,_("backendSwitchTo",{backend:_u(S[0])}))},y=OY();return Lt(y,async()=>{var b,S;if(!(!qs.value||oa.value.length===0||y.value!=="visible"))try{await MM(qs.value)||(b=t.value)==null||b.showModal()}catch{(S=t.value)==null||S.showModal()}},{immediate:!0}),(b,S)=>(q(),re("div",mue,[S[0]||(S[0]=L("input",{id:"sidebar",type:"checkbox",class:"drawer-toggle"},null,-1)),ye(gue),L("div",yue,[s.value&&F(Us)?(q(),Et(Wa(s.value),{key:0,horizontal:!0})):yt("",!0),L("div",_ue,[ye(F(dx),{class:"absolute h-full w-full"})]),L("div",{class:Ke(`${F(n)?"pb-24":"pb-12"} md:hidden`)},null,2),L("div",{ref_key:"navBarRef",ref:l,class:Ke(`fixed bottom-0 z-30 w-full bg-base-200 md:hidden ${F(n)?"h-24 pb-12":"h-12"}`)},[L("div",wue,[L("ul",bue,[(q(!0),re(Ge,null,Ft(F(a),x=>(q(),re("li",{key:x,class:"flex-1"},[L("a",{class:Ke(["flex items-center justify-center",x===F(o).name?"active":"inactive"]),href:`#${x}`},[(q(),Et(Wa(F(UO)[x]),{class:"h-5 w-5"}))],10,Sue)]))),128))]),L("label",xue,[L("div",Cue,[ye(F(Z6),{class:"h-4 w-4"})])])])],2)]),L("dialog",{id:"autoSwitchBackend",ref_key:"modalRef",ref:t,class:"modal"},[L("div",Tue,[L("h3",Eue,ue(b.$t("currentBackendUnavailable")),1),L("div",Aue,[L("button",{class:"btn btn-sm",onClick:g},ue(b.$t("cancel")),1),L("button",{class:"btn btn-primary btn-sm",onClick:m},ue(b.$t("confirm")),1)])])],512)]))}}),Rue={class:"flex flex-col"},Due={key:0,class:"card m-2 flex-row p-2 text-sm"},Pue={class:"card mb-1 block p-2 text-sm"},Iue={class:"mx-2 text-primary"},Lue={class:"ml-2"},Oue=Qe({__name:"LogsPage",setup(e){const t={[eu.Error]:"text-error",[eu.Warning]:"text-warning",[eu.Info]:"text-info",[eu.Debug]:"text-accent"},n=Ie(()=>Pm.value.filter(r=>Oc.value?r.payload.includes(Oc.value)||r.type.includes(Oc.value):!0));return(r,i)=>(q(),re("div",Rue,[n.value.length?yt("",!0):(q(),re("div",Due,ue(r.$t("noContent")),1)),ye(Nx,{data:n.value},{default:Qr(({item:o})=>[L("div",Pue,[L("span",null,ue(o.seq),1),L("span",Iue,ue(F(ta)(o.time).locale(F($a)).format("HH:mm:ss")),1),L("span",{class:Ke(t[o.type])},ue(o.type),3),L("span",Lue,ue(o.payload),1)])]),_:1},8,["data"])]))}}),D3=Qe({__name:"CollapseCard",props:{name:{}},setup(e){const t=e,n=Ie({get(){return Z_.value[t.name]},set(s){s?(i.value=!1,r.value=!0,Po(()=>{Z_.value[t.name]=!0})):Z_.value[t.name]=!1}}),r=Me(n.value),i=Me(!n.value),o=()=>{n.value||setTimeout(()=>{i.value=!n.value},50)},a=()=>{n.value||(r.value=!1)};return(s,l)=>(q(),re("div",{class:Ke(`collapse collapse-arrow ${n.value?"collapse-open":"collapse-close"}`)},[L("div",{class:"collapse-title cursor-pointer select-none pr-4",onClick:l[0]||(l[0]=u=>n.value=!n.value)},[Oh(s.$slots,"title"),i.value?Oh(s.$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?Oh(s.$slots,"content",{key:0}):yt("",!0)],32)],2))}});var o0=function(){return o0=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni.endVal;i.frameVal=s?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),a1?i.options.decimal+h[1]:"",i.options.useGrouping){u="";for(var p=3,d=0,g=0,_=s.length;g<_;++g)i.options.useIndianSeparators&&g===4&&(p=2,d=1),g!==0&&d%p==0&&(u=i.options.separator+u),d++,u=s[_-g-1]+u;s=u}return i.options.numerals&&i.options.numerals.length&&(s=s.replace(/[0-9]/g,function(m){return i.options.numerals[+m]}),l=l.replace(/[0-9]/g,function(m){return i.options.numerals[+m]})),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=o0(o0({},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;owindow.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 P3=Qe({__name:"LatencyTag",props:{name:{}},setup(e){const t=e,n=Me(),r=Ie(()=>I0(t.name));let i=null;il(()=>{Lt(r,(a,s)=>{i?i==null||i.update(a):Po(()=>{i=new kue(n.value,r.value,{duration:1,separator:"",enableScrollSpy:!1,startVal:s}),i==null||i.update(a)})})}),Qd(()=>{i=null});const o=Ie(()=>r.value===qo?"":r.value(q(),re("div",{class:Ke(F(nn)("flex h-5 w-10 items-center justify-center rounded-xl bg-base-100 text-xs hover:bg-base-200",o.value))},[r.value===F(qo)?(q(),Et(F(oO),{key:0,class:"h-3 w-3 text-base-content"})):yt("",!0),Tt(L("div",{ref_key:"latencyRef",ref:n},ue(r.value),513),[[C6,r.value!==F(qo)]])],2))}});/*! @license DOMPurify 3.2.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.2/LICENSE */const{entries:I3,setPrototypeOf:yI,isFrozen:Nue,getPrototypeOf:Fue,getOwnPropertyDescriptor:$ue}=Object;let{freeze:Vr,seal:to,create:L3}=Object,{apply:BS,construct:VS}=typeof Reflect<"u"&&Reflect;Vr||(Vr=function(t){return t});to||(to=function(t){return t});BS||(BS=function(t,n,r){return t.apply(n,r)});VS||(VS=function(t,n){return new t(...n)});const fg=Ri(Array.prototype.forEach),_I=Ri(Array.prototype.pop),ch=Ri(Array.prototype.push),om=Ri(String.prototype.toLowerCase),Iw=Ri(String.prototype.toString),wI=Ri(String.prototype.match),fh=Ri(String.prototype.replace),Bue=Ri(String.prototype.indexOf),Vue=Ri(String.prototype.trim),vo=Ri(Object.prototype.hasOwnProperty),Ar=Ri(RegExp.prototype.test),hh=Hue(TypeError);function Ri(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:om;yI&&yI(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Nue(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Uue(e){for(let t=0;t/gm),jue=to(/\${[\w\W]*}/gm),que=to(/^data-[\-\w.\u00B7-\uFFFF]/),Xue=to(/^aria-[\-\w]+$/),O3=to(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Kue=to(/^(?:\w+script|data):/i),Zue=to(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),k3=to(/^html$/i),Jue=to(/^[a-z][.\w]*(-[.\w]+)+$/i);var TI=Object.freeze({__proto__:null,ARIA_ATTR:Xue,ATTR_WHITESPACE:Zue,CUSTOM_ELEMENT:Jue,DATA_ATTR:que,DOCTYPE_NAME:k3,ERB_EXPR:Yue,IS_ALLOWED_URI:O3,IS_SCRIPT_OR_DATA:Kue,MUSTACHE_EXPR:Wue,TMPLIT_EXPR:jue});const ph={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Que=function(){return typeof window>"u"?null:window},ece=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}},EI=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function N3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Que();const t=Xe=>N3(Xe);if(t.version="3.2.2",t.removed=[],!e||!e.document||e.document.nodeType!==ph.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:h,DOMParser:p,trustedTypes:d}=e,g=l.prototype,_=dh(g,"cloneNode"),m=dh(g,"remove"),y=dh(g,"nextSibling"),b=dh(g,"childNodes"),S=dh(g,"parentNode");if(typeof a=="function"){const Xe=n.createElement("template");Xe.content&&Xe.content.ownerDocument&&(n=Xe.content.ownerDocument)}let x,E="";const{implementation:T,createNodeIterator:M,createDocumentFragment:D,getElementsByTagName:I}=n,{importNode:k}=r;let N=EI();t.isSupported=typeof I3=="function"&&typeof S=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:te,TMPLIT_EXPR:W,DATA_ATTR:X,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:fe}=TI;let{IS_ALLOWED_URI:_e}=TI,be=null;const Ne=Pt({},[...bI,...Lw,...Ow,...kw,...SI]);let ke=null;const je=Pt({},[...xI,...Nw,...CI,...hg]);let He=Object.seal(L3(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}})),Ye=null,le=null,Te=!0,we=!0,xe=!1,Ee=!0,Pe=!1,$=!0,B=!1,ne=!1,me=!1,ce=!1,O=!1,V=!1,Z=!0,ae=!1;const pe="user-content-";let Ce=!0,Y=!1,ie={},Re=null;const Be=Pt({},["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 ft=null;const wt=Pt({},["audio","video","img","source","image","track"]);let on=null;const yn=Pt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml";let si=Yn,Nn=!1,Zn=null;const Mu=Pt({},[kn,Rn,Yn],Iw);let Ru=Pt({},["mi","mo","mn","ms","mtext"]),Du=Pt({},["annotation-xml"]);const dp=Pt({},["title","style","font","a","script"]);let ts=null;const _y=["application/xhtml+xml","text/html"],wy="text/html";let Un=null,ns=null;const pp=n.createElement("form"),vp=function(K){return K instanceof RegExp||K instanceof Function},gf=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ns&&ns===K)){if((!K||typeof K!="object")&&(K={}),K=ql(K),ts=_y.indexOf(K.PARSER_MEDIA_TYPE)===-1?wy:K.PARSER_MEDIA_TYPE,Un=ts==="application/xhtml+xml"?Iw:om,be=vo(K,"ALLOWED_TAGS")?Pt({},K.ALLOWED_TAGS,Un):Ne,ke=vo(K,"ALLOWED_ATTR")?Pt({},K.ALLOWED_ATTR,Un):je,Zn=vo(K,"ALLOWED_NAMESPACES")?Pt({},K.ALLOWED_NAMESPACES,Iw):Mu,on=vo(K,"ADD_URI_SAFE_ATTR")?Pt(ql(yn),K.ADD_URI_SAFE_ATTR,Un):yn,ft=vo(K,"ADD_DATA_URI_TAGS")?Pt(ql(wt),K.ADD_DATA_URI_TAGS,Un):wt,Re=vo(K,"FORBID_CONTENTS")?Pt({},K.FORBID_CONTENTS,Un):Be,Ye=vo(K,"FORBID_TAGS")?Pt({},K.FORBID_TAGS,Un):{},le=vo(K,"FORBID_ATTR")?Pt({},K.FORBID_ATTR,Un):{},ie=vo(K,"USE_PROFILES")?K.USE_PROFILES:!1,Te=K.ALLOW_ARIA_ATTR!==!1,we=K.ALLOW_DATA_ATTR!==!1,xe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Pe=K.SAFE_FOR_TEMPLATES||!1,$=K.SAFE_FOR_XML!==!1,B=K.WHOLE_DOCUMENT||!1,ce=K.RETURN_DOM||!1,O=K.RETURN_DOM_FRAGMENT||!1,V=K.RETURN_TRUSTED_TYPE||!1,me=K.FORCE_BODY||!1,Z=K.SANITIZE_DOM!==!1,ae=K.SANITIZE_NAMED_PROPS||!1,Ce=K.KEEP_CONTENT!==!1,Y=K.IN_PLACE||!1,_e=K.ALLOWED_URI_REGEXP||O3,si=K.NAMESPACE||Yn,Ru=K.MATHML_TEXT_INTEGRATION_POINTS||Ru,Du=K.HTML_INTEGRATION_POINTS||Du,He=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&vp(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(He.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&vp(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(He.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(He.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(we=!1),O&&(ce=!0),ie&&(be=Pt({},SI),ke=[],ie.html===!0&&(Pt(be,bI),Pt(ke,xI)),ie.svg===!0&&(Pt(be,Lw),Pt(ke,Nw),Pt(ke,hg)),ie.svgFilters===!0&&(Pt(be,Ow),Pt(ke,Nw),Pt(ke,hg)),ie.mathMl===!0&&(Pt(be,kw),Pt(ke,CI),Pt(ke,hg))),K.ADD_TAGS&&(be===Ne&&(be=ql(be)),Pt(be,K.ADD_TAGS,Un)),K.ADD_ATTR&&(ke===je&&(ke=ql(ke)),Pt(ke,K.ADD_ATTR,Un)),K.ADD_URI_SAFE_ATTR&&Pt(on,K.ADD_URI_SAFE_ATTR,Un),K.FORBID_CONTENTS&&(Re===Be&&(Re=ql(Re)),Pt(Re,K.FORBID_CONTENTS,Un)),Ce&&(be["#text"]=!0),B&&Pt(be,["html","head","body"]),be.table&&(Pt(be,["tbody"]),delete Ye.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw hh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw hh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=K.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else x===void 0&&(x=ece(d,i)),x!==null&&typeof E=="string"&&(E=x.createHTML(""));Vr&&Vr(K),ns=K}},gp=Pt({},[...Lw,...Ow,...zue]),Pu=Pt({},[...kw,...Gue]),by=function(K){let Ae=S(K);(!Ae||!Ae.tagName)&&(Ae={namespaceURI:si,tagName:"template"});const Ue=om(K.tagName),Qt=om(Ae.tagName);return Zn[K.namespaceURI]?K.namespaceURI===Rn?Ae.namespaceURI===Yn?Ue==="svg":Ae.namespaceURI===kn?Ue==="svg"&&(Qt==="annotation-xml"||Ru[Qt]):!!gp[Ue]:K.namespaceURI===kn?Ae.namespaceURI===Yn?Ue==="math":Ae.namespaceURI===Rn?Ue==="math"&&Du[Qt]:!!Pu[Ue]:K.namespaceURI===Yn?Ae.namespaceURI===Rn&&!Du[Qt]||Ae.namespaceURI===kn&&!Ru[Qt]?!1:!Pu[Ue]&&(dp[Ue]||!gp[Ue]):!!(ts==="application/xhtml+xml"&&Zn[K.namespaceURI]):!1},Hr=function(K){ch(t.removed,{element:K});try{S(K).removeChild(K)}catch{m(K)}},Iu=function(K,Ae){try{ch(t.removed,{attribute:Ae.getAttributeNode(K),from:Ae})}catch{ch(t.removed,{attribute:null,from:Ae})}if(Ae.removeAttribute(K),K==="is")if(ce||O)try{Hr(Ae)}catch{}else try{Ae.setAttribute(K,"")}catch{}},mp=function(K){let Ae=null,Ue=null;if(me)K=""+K;else{const Dn=wI(K,/^[\r\n\t ]+/);Ue=Dn&&Dn[0]}ts==="application/xhtml+xml"&&si===Yn&&(K=''+K+"");const Qt=x?x.createHTML(K):K;if(si===Yn)try{Ae=new p().parseFromString(Qt,ts)}catch{}if(!Ae||!Ae.documentElement){Ae=T.createDocument(si,"template",null);try{Ae.documentElement.innerHTML=Nn?E:Qt}catch{}}const Jn=Ae.body||Ae.documentElement;return K&&Ue&&Jn.insertBefore(n.createTextNode(Ue),Jn.childNodes[0]||null),si===Yn?I.call(Ae,B?"html":"body")[0]:B?Ae.documentElement:Jn},yp=function(K){return M.call(K.ownerDocument||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},_p=function(K){return K instanceof h&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},wp=function(K){return typeof s=="function"&&K instanceof s};function ro(Xe,K,Ae){fg(Xe,Ue=>{Ue.call(t,K,Ae,ns)})}const bp=function(K){let Ae=null;if(ro(N.beforeSanitizeElements,K,null),_p(K))return Hr(K),!0;const Ue=Un(K.nodeName);if(ro(N.uponSanitizeElement,K,{tagName:Ue,allowedTags:be}),K.hasChildNodes()&&!wp(K.firstElementChild)&&Ar(/<[/\w]/g,K.innerHTML)&&Ar(/<[/\w]/g,K.textContent)||K.nodeType===ph.progressingInstruction||$&&K.nodeType===ph.comment&&Ar(/<[/\w]/g,K.data))return Hr(K),!0;if(!be[Ue]||Ye[Ue]){if(!Ye[Ue]&&mf(Ue)&&(He.tagNameCheck instanceof RegExp&&Ar(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue)))return!1;if(Ce&&!Re[Ue]){const Qt=S(K)||K.parentNode,Jn=b(K)||K.childNodes;if(Jn&&Qt){const Dn=Jn.length;for(let fr=Dn-1;fr>=0;--fr){const Di=_(Jn[fr],!0);Di.__removalCount=(K.__removalCount||0)+1,Qt.insertBefore(Di,y(K))}}}return Hr(K),!0}return K instanceof l&&!by(K)||(Ue==="noscript"||Ue==="noembed"||Ue==="noframes")&&Ar(/<\/no(script|embed|frames)/i,K.innerHTML)?(Hr(K),!0):(Pe&&K.nodeType===ph.text&&(Ae=K.textContent,fg([H,te,W],Qt=>{Ae=fh(Ae,Qt," ")}),K.textContent!==Ae&&(ch(t.removed,{element:K.cloneNode()}),K.textContent=Ae)),ro(N.afterSanitizeElements,K,null),!1)},Sp=function(K,Ae,Ue){if(Z&&(Ae==="id"||Ae==="name")&&(Ue in n||Ue in pp))return!1;if(!(we&&!le[Ae]&&Ar(X,Ae))){if(!(Te&&Ar(j,Ae))){if(!ke[Ae]||le[Ae]){if(!(mf(K)&&(He.tagNameCheck instanceof RegExp&&Ar(He.tagNameCheck,K)||He.tagNameCheck instanceof Function&&He.tagNameCheck(K))&&(He.attributeNameCheck instanceof RegExp&&Ar(He.attributeNameCheck,Ae)||He.attributeNameCheck instanceof Function&&He.attributeNameCheck(Ae))||Ae==="is"&&He.allowCustomizedBuiltInElements&&(He.tagNameCheck instanceof RegExp&&Ar(He.tagNameCheck,Ue)||He.tagNameCheck instanceof Function&&He.tagNameCheck(Ue))))return!1}else if(!on[Ae]){if(!Ar(_e,fh(Ue,Q,""))){if(!((Ae==="src"||Ae==="xlink:href"||Ae==="href")&&K!=="script"&&Bue(Ue,"data:")===0&&ft[K])){if(!(xe&&!Ar(oe,fh(Ue,Q,"")))){if(Ue)return!1}}}}}}return!0},mf=function(K){return K!=="annotation-xml"&&wI(K,fe)},xp=function(K){ro(N.beforeSanitizeAttributes,K,null);const{attributes:Ae}=K;if(!Ae)return;const Ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let Qt=Ae.length;for(;Qt--;){const Jn=Ae[Qt],{name:Dn,namespaceURI:fr,value:Di}=Jn,ul=Un(Dn);let Qn=Dn==="value"?Di:Vue(Di);if(Ue.attrName=ul,Ue.attrValue=Qn,Ue.keepAttr=!0,Ue.forceKeepAttr=void 0,ro(N.uponSanitizeAttribute,K,Ue),Qn=Ue.attrValue,ae&&(ul==="id"||ul==="name")&&(Iu(Dn,K),Qn=pe+Qn),$&&Ar(/((--!?|])>)|<\/(style|title)/i,Qn)){Iu(Dn,K);continue}if(Ue.forceKeepAttr||(Iu(Dn,K),!Ue.keepAttr))continue;if(!Ee&&Ar(/\/>/i,Qn)){Iu(Dn,K);continue}Pe&&fg([H,te,W],_f=>{Qn=fh(Qn,_f," ")});const yf=Un(K.nodeName);if(Sp(yf,ul,Qn)){if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!fr)switch(d.getAttributeType(yf,ul)){case"TrustedHTML":{Qn=x.createHTML(Qn);break}case"TrustedScriptURL":{Qn=x.createScriptURL(Qn);break}}try{fr?K.setAttributeNS(fr,Dn,Qn):K.setAttribute(Dn,Qn),_p(K)?Hr(K):_I(t.removed)}catch{}}}ro(N.afterSanitizeAttributes,K,null)},Sy=function Xe(K){let Ae=null;const Ue=yp(K);for(ro(N.beforeSanitizeShadowDOM,K,null);Ae=Ue.nextNode();)ro(N.uponSanitizeShadowNode,Ae,null),!bp(Ae)&&(Ae.content instanceof o&&Xe(Ae.content),xp(Ae));ro(N.afterSanitizeShadowDOM,K,null)};return t.sanitize=function(Xe){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ae=null,Ue=null,Qt=null,Jn=null;if(Nn=!Xe,Nn&&(Xe=""),typeof Xe!="string"&&!wp(Xe))if(typeof Xe.toString=="function"){if(Xe=Xe.toString(),typeof Xe!="string")throw hh("dirty is not a string, aborting")}else throw hh("toString is not a function");if(!t.isSupported)return Xe;if(ne||gf(K),t.removed=[],typeof Xe=="string"&&(Y=!1),Y){if(Xe.nodeName){const Di=Un(Xe.nodeName);if(!be[Di]||Ye[Di])throw hh("root node is forbidden and cannot be sanitized in-place")}}else if(Xe instanceof s)Ae=mp(""),Ue=Ae.ownerDocument.importNode(Xe,!0),Ue.nodeType===ph.element&&Ue.nodeName==="BODY"||Ue.nodeName==="HTML"?Ae=Ue:Ae.appendChild(Ue);else{if(!ce&&!Pe&&!B&&Xe.indexOf("<")===-1)return x&&V?x.createHTML(Xe):Xe;if(Ae=mp(Xe),!Ae)return ce?null:V?E:""}Ae&&me&&Hr(Ae.firstChild);const Dn=yp(Y?Xe:Ae);for(;Qt=Dn.nextNode();)bp(Qt)||(Qt.content instanceof o&&Sy(Qt.content),xp(Qt));if(Y)return Xe;if(ce){if(O)for(Jn=D.call(Ae.ownerDocument);Ae.firstChild;)Jn.appendChild(Ae.firstChild);else Jn=Ae;return(ke.shadowroot||ke.shadowrootmode)&&(Jn=k.call(r,Jn,!0)),Jn}let fr=B?Ae.outerHTML:Ae.innerHTML;return B&&be["!doctype"]&&Ae.ownerDocument&&Ae.ownerDocument.doctype&&Ae.ownerDocument.doctype.name&&Ar(k3,Ae.ownerDocument.doctype.name)&&(fr=" -`+fr),Pe&&fg([H,te,W],Di=>{fr=fh(fr,Di," ")}),x&&V?x.createHTML(fr):fr},t.setConfig=function(){let Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gf(Xe),ne=!0},t.clearConfig=function(){ns=null,ne=!1},t.isValidAttribute=function(Xe,K,Ae){ns||gf({});const Ue=Un(Xe),Qt=Un(K);return Sp(Ue,Qt,Ae)},t.addHook=function(Xe,K){typeof K=="function"&&ch(N[Xe],K)},t.removeHook=function(Xe){return _I(N[Xe])},t.removeHooks=function(Xe){N[Xe]=[]},t.removeAllHooks=function(){N=EI()},t}var tce=N3();const nce=["innerHTML"],rce=["src"],AI="data:image/svg+xml,",F3=Qe({__name:"ProxyIcon",props:{icon:{},fill:{},size:{}},setup(e){const t=e,n=Ie(()=>t.size==="small"?"w-4":"w-5"),r=Ie(()=>t.icon.startsWith(AI)),i=Ie(()=>{if(r.value)return tce.sanitize(t.icon.replace(AI,""))});return(o,a)=>r.value?(q(),re("div",{key:0,class:Ke(["inline-block",o.fill||"fill-primary",n.value]),innerHTML:i.value},null,10,nce)):(q(),re("img",{key:1,class:Ke(n.value),src:o.icon},null,10,rce))}}),ice=["data-tip"],oce={class:"flex w-full flex-1 items-center gap-1"},ace={class:"flex h-4 w-full items-center justify-between"},sce=Qe({__name:"ProxyNodeCard",props:{name:{},active:{type:Boolean}},setup(e){const t=e,n=Me(null),r=Me(!1),i=()=>{if(n.value){const{scrollWidth:h,clientWidth:p}=n.value;r.value=h>p}},o=Ie(()=>Ro.value[t.name]),a=Me(!1),s=h=>(h=h.toLowerCase(),h=h.replace("shadowsocks","ss"),h=h.replace("hysteria","hy"),h=h.replace("wireguard","wg"),h),l=Ie(()=>Wh.value===np.SMALL),u=Ie(()=>{const h=s(o.value.type),p=uu.value&&ij(o.value.name)?"IPv6":"",d=o.value.udp?"udp":"";return[h,d,p].filter(Boolean).join(l.value?"/":" / ")}),c=async()=>{if(!a.value){a.value=!0;try{await aj(t.name),a.value=!1}catch{a.value=!1}}};return(h,p)=>(q(),re("div",{ref:"cardRef",class:Ke(F(nn)("flex cursor-pointer flex-col items-start gap-[2px] rounded-md bg-base-200",h.active?"bg-primary text-primary-content":"sm:hover:bg-base-300",r.value&&"tooltip tooltip-bottom",l.value?"p-1":"p-2")),"data-tip":o.value.name,onMouseenter:i},[L("div",oce,[o.value.icon?(q(),Et(F3,{key:0,class:"shrink-0",size:"small",icon:o.value.icon,fill:h.active?"fill-primary-content":"fill-base-content"},null,8,["icon","fill"])):yt("",!0),L("span",{class:Ke(F(nn)("text-sm",F(zh)&&"truncate")),ref_key:"nameRef",ref:n},ue(o.value.name),3)]),L("div",ace,[L("span",{class:Ke(`whitespace-nowrap text-xs tracking-tight ${h.active?"text-primary-content":"text-slate-500"}`)},ue(u.value),3),ye(P3,{class:Ke([a.value?"animate-pulse cursor-wait":"",l.value&&"!h-4 !w-8"]),name:o.value.name,onClick:Sd(c,["stop"])},null,8,["class","name"])])],42,ice))}}),$3=zx(sce,[["__scopeId","data-v-f63636b0"]]),lce=Qe({__name:"ProxyNodeGrid",setup(e){const{hasTwoColumns:t}=U0();return(n,r)=>(q(),re("div",{class:Ke(F(nn)("grid grid-cols-2 gap-2",F(zh)&&"max-h-96 overflow-y-auto",F(Wh)===F(np).LARGE?F(Us)?F(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":F(t)?"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4":"sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-6 3xl:grid-cols-8":F(Us)?F(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":F(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-5 2xl:grid-cols-8 3xl:grid-cols-10"))},[Oh(n.$slots,"default",{},void 0,!0)],2))}}),B3=zx(lce,[["__scopeId","data-v-f39f6eaa"]]),uce={key:0,class:"flex flex-wrap gap-1 pt-2"},cce={key:0,class:"h-2 w-2 rounded-full bg-white"},fce={key:1,class:"flex items-center gap-2 py-2"},hce={class:"flex flex-1 items-center justify-center overflow-hidden rounded-2xl [&>*]:h-2"},V3=Qe({__name:"ProxyPreview",props:{nodes:{},now:{}},setup(e){const t=e,n=Ie(()=>Gh.value===Rd.DOTS||Gh.value===Rd.AUTO&&t.nodes.length<20),r=Ie(()=>t.nodes.map(u=>({latency:I0(u),name:u}))),i=u=>u===qo?"bg-gray-500":ur.value.filter(u=>u.latencyqo).length),a=Ie(()=>r.value.filter(u=>u.latency>=Ns.value&&u.latencyr.value.filter(u=>u.latency>=ka.value).length),l=Ie(()=>r.value.filter(u=>u.latency===qo).length);return(u,c)=>n.value?(q(),re("div",uce,[(q(!0),re(Ge,null,Ft(r.value,h=>(q(),re("div",{key:h.name,class:Ke(["flex h-4 w-4 items-center justify-center rounded-full",i(h.latency)])},[u.now===h.name?(q(),re("div",cce)):yt("",!0)],2))),128))])):(q(),re("div",fce,[L("div",hce,[L("div",{class:Ke(i(F(Ns)-1)),style:yo({width:`${o.value*100/u.nodes.length}%`})},null,6),L("div",{class:Ke(i(F(ka)-1)),style:yo({width:`${a.value*100/u.nodes.length}%`})},null,6),L("div",{class:Ke(i(F(ka)+1)),style:yo({width:`${s.value*100/u.nodes.length}%`})},null,6),L("div",{class:Ke(i(F(qo))),style:yo({width:`${l.value*100/u.nodes.length}%`})},null,6)])]))}}),dce={class:"flex items-center gap-2 pr-5"},pce={class:"flex flex-1 items-center gap-1"},vce={class:"text-lg font-medium"},gce={key:1,class:"text-sm"},mce={class:"flex items-center gap-2 text-xs text-slate-500"},yce={class:"flex-1"},_ce={class:"shrink-0"},wce=Qe({__name:"ProxyGroup",props:{name:{}},setup(e){const t=e,n=Ie(()=>Ro.value[t.name]),r=Ie(()=>ZO(n.value.all??[])),i=Me(!1),o=async()=>{if(!i.value){i.value=!0;try{await sj(t.name),i.value=!1}catch{i.value=!1}}},a=Ie(()=>bo.value.filter(l=>l.chains.includes(t.name)).reduce((l,u)=>l+u.downloadSpeed,0));return(s,l)=>(q(),Et(D3,{name:n.value.name},{title:Qr(()=>{var u;return[L("div",dce,[L("div",pce,[n.value.icon?(q(),Et(F3,{key:0,icon:n.value.icon},null,8,["icon"])):yt("",!0),L("span",vce,ue(n.value.name),1),n.value.now?(q(),re("span",gce," -> "+ue(n.value.now),1)):yt("",!0)]),ye(P3,{class:Ke(F(nn)("z-10 bg-base-200/40 hover:shadow",i.value?"animate-pulse cursor-wait bg-base-300":"")),name:n.value.now,onClick:Sd(o,["stop"])},null,8,["class","name"])]),L("div",mce,[L("div",yce,ue(n.value.type)+" ("+ue((u=n.value.all)==null?void 0:u.length)+")",1),L("div",_ce,ue(F(mn)(a.value))+"/s",1)])]}),preview:Qr(()=>[ye(V3,{nodes:r.value,now:n.value.now},null,8,["nodes","now"])]),content:Qr(()=>[ye(B3,null,{default:Qr(()=>[(q(!0),re(Ge,null,Ft(r.value,u=>(q(),Et($3,{key:u,name:u,active:u===n.value.now,onClick:c=>F(oj)(n.value.name,u)},null,8,["name","active","onClick"]))),128))]),_:1})]),_:1},8,["name"]))}}),bce={class:"flex items-center gap-2"},Sce={class:"text-lg font-medium sm:text-xl"},xce={class:"text-sm"},Cce={class:"flex gap-2"},Tce=["value"],Ece={class:"flex flex-col sm:flex-row sm:gap-4"},Ace={class:"text-sm text-slate-500"},Mce={class:"text-sm text-slate-500"},Rce={class:"text-sm text-slate-500"},Dce=Qe({__name:"ProxyProvider",props:{name:{}},setup(e){const t=e,n=c=>{const{Download:h=0,Upload:p=0,Total:d=0,Expire:g=0}=c,_=mn(d,{binary:!0}),m=mn(h+p,{binary:!0}),y=Mo.toFinite(((h+p)/d*100).toFixed(2));return{total:_,used:m,percentage:y,expirePrefix:()=>{const{t:x}=ia();return x("expire")},expireStr:()=>{const{t:x}=ia();return g===0?x("noExpire"):ta(g*1e3).format("YYYY-MM-DD")}}},r=Ie(()=>Pc.value.find(c=>c.name===t.name)),i=Ie(()=>ZO(r.value.proxies.map(c=>c.name))),o=Ie(()=>r.value.subscriptionInfo?n(r.value.subscriptionInfo):null),a=Me(!1),s=Me(!1),l=async()=>{if(!s.value){s.value=!0;try{await Qq(t.name),await Xs(),s.value=!1}catch{s.value=!1}}},u=async()=>{if(!a.value){a.value=!0;try{await Ek(t.name),await Xs(),a.value=!1}catch{a.value=!1}}};return(c,h)=>(q(),Et(D3,{name:r.value.name},{title:Qr(()=>[L("div",bce,[L("div",Sce,[st(ue(r.value.name)+" ",1),L("span",xce," ("+ue(r.value.proxies.length)+") ",1)]),h[0]||(h[0]=L("div",{class:"flex-1"},null,-1)),L("div",Cce,[L("button",{class:Ke(F(nn)("btn btn-circle btn-sm z-30",s.value?"animate-pulse":"")),onClick:Sd(l,["stop"])},[ye(F(oO),{class:"h-4 w-4"})],2),L("button",{class:Ke(F(nn)("btn btn-circle btn-sm z-30",a.value?"animate-spin":"")),onClick:Sd(u,["stop"])},[ye(F(nO),{class:"h-4 w-4"})],2)])]),o.value?(q(),re("progress",{key:0,class:"progress",value:o.value.percentage,max:"100"},null,8,Tce)):yt("",!0),L("div",Ece,[o.value?(q(),re(Ge,{key:0},[L("div",Ace,ue(o.value.used)+" / "+ue(o.value.total)+" ( "+ue(o.value.percentage)+"% ) ",1),L("div",Mce,ue(o.value.expirePrefix())+": "+ue(o.value.expireStr()),1)],64)):yt("",!0),L("div",Rce,ue(c.$t("updated"))+" "+ue(F(L0)(r.value.updatedAt)),1)])]),preview:Qr(()=>[ye(V3,{nodes:i.value},null,8,["nodes"])]),content:Qr(()=>[ye(B3,null,{default:Qr(()=>[(q(!0),re(Ge,null,Ft(i.value,p=>(q(),Et($3,{key:p,name:p},null,8,["name"]))),128))]),_:1})]),_:1},8,["name"]))}}),Pce={class:"overflow-y-auto p-2"},Ice={key:0,class:"grid grid-cols-2 gap-1"},Lce={key:1,class:"grid grid-cols-1 gap-1"},Oce=Qe({__name:"ProxiesPage",setup(e){const{proxiesTabShow:t,renderGroups:n}=U0(),r=Ie(()=>t.value===yu.PROVIDER?Dce:wce),i=(o,a)=>o.filter((s,l)=>l%2===a);return(o,a)=>(q(),re("div",Pce,[F(XO)&&F(Vh)&&F(n).length>1?(q(),re("div",Ice,[(q(),re(Ge,null,Ft([0,1],s=>L("div",{key:s,class:"flex flex-1 flex-col gap-1"},[(q(!0),re(Ge,null,Ft(i(F(n),s),l=>(q(),Et(Wa(r.value),{key:l,name:l},null,8,["name"]))),128))])),64))])):(q(),re("div",Lce,[(q(!0),re(Ge,null,Ft(F(n),s=>(q(),Et(Wa(r.value),{key:s,name:s},null,8,["name"]))),128))]))]))}}),kce={class:"mr-2 inline-block min-w-4 text-center"},Nce={key:0},Fce={class:"flex gap-2"},$ce={class:"text-primary"},Bce=Qe({__name:"RuleCard",props:{rule:{},index:{}},setup(e){return(t,n)=>(q(),re("div",{class:Ke(F(nn)("card mb-1 gap-1 p-2 text-sm",!t.rule.payload&&"flex-row gap-0"))},[L("div",null,[L("span",kce,ue(t.index)+".",1),t.rule.payload?(q(),re("span",Nce,ue(t.rule.payload),1)):yt("",!0)]),L("div",Fce,[L("span",{class:Ke(t.rule.payload&&"text-slate-500")},ue(t.rule.type),3),n[0]||(n[0]=L("span",null,"->",-1)),L("span",$ce,ue(t.rule.proxy),1)])],2))}}),Vce={class:"card w-full flex-row items-center gap-2 p-1 px-2 text-sm"},Hce={class:"flex flex-1 flex-col sm:flex-row"},Uce={class:"flex flex-1 items-center gap-2"},zce={class:"flex gap-3 text-slate-500"},Gce=Qe({__name:"RuleProvider",props:{ruleProvider:{},index:{}},setup(e){const t=Me(!1),n=e,r=async()=>{t.value||(t.value=!0,await Ak(n.ruleProvider.name),Ld(),t.value=!1)};return(i,o)=>(q(),re("div",Vce,[L("div",Hce,[L("div",Uce,[L("span",null,ue(i.index)+".",1),L("span",null,ue(i.ruleProvider.name)+" ("+ue(i.ruleProvider.ruleCount)+") ",1)]),L("div",zce,[L("span",null,ue(i.ruleProvider.behavior),1),L("span",null,ue(i.ruleProvider.vehicleType),1),L("span",null,ue(i.$t("updated"))+" "+ue(F(L0)(i.ruleProvider.updatedAt)),1)])]),L("button",{class:Ke(F(nn)("btn btn-circle btn-sm",t.value?"animate-spin":"")),onClick:r},[ye(F(nO),{class:"h-4 w-4"})],2)]))}}),Wce={key:0,class:"flex flex-col gap-1 overflow-y-auto overflow-x-hidden p-2"},Yce=Qe({__name:"RulesPage",setup(e){return(t,n)=>F(Xh)===F(Kc).PROVIDER?(q(),re("div",Wce,[(q(!0),re(Ge,null,Ft(F(Lm),(r,i)=>(q(),Et(Gce,{key:r.name,ruleProvider:r,index:i+1},null,8,["ruleProvider","index"]))),128))])):(q(),Et(Nx,{key:1,data:F(kb)},{default:Qr(({item:r})=>[(q(),Et(Bce,{key:r.payload,rule:r,index:F(kb).indexOf(r)+1},null,8,["rule","index"]))]),_:1},8,["data"]))}}),jce={class:"join w-96 max-sm:w-full"},qce={class:"max-h-96 overflow-y-auto"},Xce=Qe({__name:"DnsQuery",setup(e){const t=Eo({name:"www.google.com",type:"A"}),n=Me([]),r=async()=>{const{data:i}=await sX(t);n.value=i.Answer};return(i,o)=>(q(),re(Ge,null,[L("div",jce,[ye(Ux,{modelValue:t.name,"onUpdate:modelValue":o[0]||(o[0]=a=>t.name=a),type:"text",name:"name",placeholder:"Domain Name"},null,8,["modelValue"]),Tt(L("select",{"onUpdate:modelValue":o[1]||(o[1]=a=>t.type=a),class:"join-item select select-bordered select-sm"},o[2]||(o[2]=[L("option",{value:"A"},"A",-1),L("option",{value:"AAAA"},"AAAA",-1),L("option",{value:"MX"},"MX",-1)]),512),[[Ai,t.type]]),L("button",{class:"btn join-item btn-sm",onClick:r},ue(i.$t("DNSQuery")),1)]),L("div",qce,[(q(!0),re(Ge,null,Ft(n.value,a=>(q(),re("div",{class:"flex gap-1",key:a.data},[L("div",null,ue(a.name),1),o[3]||(o[3]=st(" : ")),L("div",null,ue(a.data),1)]))),128))])],64))}}),Kce={class:"card card-compact"},Zce={class:"card-title px-4 pt-4"},Jce={class:"card-body gap-4"},Qce={class:"grid max-w-screen-md grid-cols-2 gap-2 lg:grid-cols-3"},efe={key:0,class:"flex items-center gap-2"},tfe={class:"shrink-0"},nfe=["onUpdate:modelValue","onChange"],rfe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},ife={class:"indicator w-full"},ofe={key:0,class:"indicator-item flex"},afe=Qe({__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=()=>{Gx(),Ld(),Xs()},r=Me(!1),i=async()=>{if(!r.value){r.value=!0;try{await aX(),setTimeout(()=>{n()},500),r.value=!1}catch{r.value=!1}}},o=Me(!1),a=async()=>{if(!o.value){o.value=!0;try{await oX(),n(),o.value=!1}catch{o.value=!1}}},s=Me(!1),l=async()=>{if(!s.value){s.value=!0;try{await iX(),n(),s.value=!1}catch{s.value=!1}}},u=async()=>{var c;await Ob({tun:{enable:(c=wi.value)==null?void 0:c.tun.enable}})};return(c,h)=>{var p;return q(),re("div",Kce,[L("div",Zce,ue(c.$t("backend")),1),L("div",Jce,[ye(iN),ye(rN),F(ja)?yt("",!0):(q(),re(Ge,{key:0},[h[2]||(h[2]=L("div",{class:"divider"},null,-1)),L("div",Qce,[(p=F(wi))!=null&&p.tun?(q(),re("div",efe,[st(ue(c.$t("tunMode"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":h[0]||(h[0]=d=>F(wi).tun.enable=d),onChange:u},null,544),[[mo,F(wi).tun.enable]])])):yt("",!0),(q(),re(Ge,null,Ft(t,d=>L("div",{class:"flex items-center gap-2",key:d.key},[L("span",tfe,ue(c.$t(d.label))+": ",1),Tt(L("input",{class:"input input-sm input-bordered w-20",type:"number","onUpdate:modelValue":g=>F(wi)[d.key]=g,onChange:g=>F(Ob)({[d.key]:Number(F(wi)[d.key])})},null,40,nfe),[[Fr,F(wi)[d.key]]])])),64))])],64)),L("div",rfe,[F(ja)?yt("",!0):(q(),re(Ge,{key:0},[L("div",ife,[F(Ck)?(q(),re("span",ofe,h[3]||(h[3]=[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:Ke(F(nn)("btn btn-primary btn-sm flex-1",o.value?"animate-pulse":"")),onClick:a},ue(c.$t("upgradeCore")),3)]),L("button",{class:Ke(F(nn)("btn btn-sm",r.value?"animate-pulse":"")),onClick:i},ue(c.$t("restartCore")),3),L("button",{class:Ke(F(nn)("btn btn-sm",s.value?"animate-pulse":"")),onClick:l},ue(c.$t("reloadConfigs")),3)],64)),L("button",{class:"btn btn-sm",onClick:h[1]||(h[1]=(...d)=>F(AM)&&F(AM)(...d))},ue(c.$t("flushFakeIP")),1)]),h[4]||(h[4]=L("div",{class:"divider"},null,-1)),ye(Xce)])])}}}),sfe={class:"flex items-center gap-2"},lfe=["value"],H3=Qe({__name:"LanguageSelect",setup(e){const t={[wo.EN_US]:"English",[wo.ZH_CN]:"简体中文",[wo.RU_RU]:"Русский"};return(n,r)=>(q(),re("div",sfe,[st(ue(n.$t("language"))+": ",1),Tt(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":r[0]||(r[0]=i=>Je($a)?$a.value=i:null),onChange:r[1]||(r[1]=()=>F(Ax).global.locale=F($a))},[(q(!0),re(Ge,null,Ft(Object.values(F(wo)),i=>(q(),re("option",{key:i,value:i},ue(t[i]||i),9,lfe))),128))],544),[[Ai,F($a)]])]))}}),ufe={class:"card card-compact"},cfe={class:"card-title px-4 pt-4"},ffe={class:"card-body"},hfe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},dfe={class:"flex items-center gap-2"},pfe={class:"flex items-center gap-2"},vfe={class:"flex w-full items-center gap-2"},gfe={class:"shrink-0"},mfe={class:"flex w-full items-center gap-2"},yfe={class:"shrink-0"},_fe={class:"flex items-center gap-2"},wfe={class:"shrink-0"},bfe={class:"flex items-center gap-2"},Sfe={class:"shrink-0"},xfe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2"},Cfe={class:"flex items-center gap-2 max-sm:hidden"},Tfe={class:"flex items-center gap-2"},Efe=["value"],Afe={class:"flex items-center gap-2"},Mfe={class:"flex items-center gap-2"},Rfe=["value"],Dfe={key:0,class:"flex items-center gap-2"},Pfe=Qe({__name:"ProxiesSettings",setup(e){return(t,n)=>(q(),re("div",ufe,[L("div",cfe,ue(t.$t("proxies")),1),L("div",ffe,[L("div",hfe,[L("div",dfe,[st(ue(t.$t("automaticDisconnection"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=r=>Je(Rg)?Rg.value=r:null)},null,512),[[mo,F(Rg)]])]),L("div",pfe,[st(ue(t.$t("ipv6Test"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=r=>Je(uu)?uu.value=r:null)},null,512),[[mo,F(uu)]])]),L("div",vfe,[L("span",gfe,ue(t.$t("speedtestUrl"))+": ",1),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-60 flex-1 sm:max-w-80","onUpdate:modelValue":n[2]||(n[2]=r=>Je(Hh)?Hh.value=r:null)},null,512),[[Fr,F(Hh)]])]),L("div",mfe,[L("span",yfe,ue(t.$t("speedtestTimeout"))+": ",1),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":n[3]||(n[3]=r=>Je(Uh)?Uh.value=r:null)},null,512),[[Fr,F(Uh)]]),n[11]||(n[11]=st(" ms "))]),L("div",_fe,[L("span",wfe,ue(t.$t("lowLatencyDesc"))+": ",1),Tt(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":n[4]||(n[4]=r=>Je(Ns)?Ns.value=r:null)},null,512),[[Fr,F(Ns)]]),n[12]||(n[12]=st(" ms "))]),L("div",bfe,[L("span",Sfe,ue(t.$t("mediumLatencyDesc"))+": ",1),Tt(L("input",{type:"number",class:"input input-sm input-bordered w-20","onUpdate:modelValue":n[5]||(n[5]=r=>Je(ka)?ka.value=r:null)},null,512),[[Fr,F(ka)]]),n[13]||(n[13]=st(" ms "))])]),n[14]||(n[14]=L("div",{class:"divider"},null,-1)),L("div",xfe,[L("div",Cfe,[st(ue(t.$t("twoColumnProxyGroup"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[6]||(n[6]=r=>Je(Vh)?Vh.value=r:null)},null,512),[[mo,F(Vh)]])]),L("div",Tfe,[st(ue(t.$t("proxyPreviewType"))+": ",1),Tt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":n[7]||(n[7]=r=>Je(Gh)?Gh.value=r:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Rd)),r=>(q(),re("option",{key:r,value:r},ue(t.$t(r)),9,Efe))),128))],512),[[Ai,F(Gh)]])]),L("div",Afe,[st(ue(t.$t("truncateProxyName"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[8]||(n[8]=r=>Je(zh)?zh.value=r:null)},null,512),[[mo,F(zh)]])]),L("div",Mfe,[st(ue(t.$t("proxyCardSize"))+": ",1),Tt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":n[9]||(n[9]=r=>Je(Wh)?Wh.value=r:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(np)),r=>(q(),re("option",{key:r,value:r},ue(t.$t(r)),9,Rfe))),128))],512),[[Ai,F(Wh)]])]),F(ja)?(q(),re("div",Dfe,[st(ue(t.$t("showGlobalProxy"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":n[10]||(n[10]=r=>Je(Ag)?Ag.value=r:null)},null,512),[[mo,F(Ag)]])])):yt("",!0)])])]))}}),Ife={class:"flex flex-col gap-2 p-2"},Lfe=["onUpdate:modelValue"],Ofe=["onClick"],kfe={class:"flex w-full items-center gap-2"},Nfe=Qe({__name:"SourceIPLabels",setup(e){const t=Ie(()=>Object.keys(_i.value)),n=Eo({ip:"",label:""}),r=()=>{_i.value[n.ip]=n.label,n.ip="",n.label=""},i=o=>{Reflect.deleteProperty(_i.value,o),_i.value={..._i.value}};return(o,a)=>(q(),re(Ge,null,[L("div",null,ue(o.$t("sourceIPLabels"))+":",1),L("div",Ife,[(q(!0),re(Ge,null,Ft(t.value,s=>(q(),re("div",{key:s,class:"flex items-center gap-2"},[st(ue(s)+" -> ",1),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-24","onUpdate:modelValue":l=>F(_i)[s]=l},null,8,Lfe),[[Fr,F(_i)[s]]]),L("button",{class:"btn btn-circle btn-sm",onClick:()=>i(s)},[ye(F(sO),{class:"h-4 w-4"})],8,Ofe)]))),128)),L("div",kfe,[a[2]||(a[2]=st(" IP: ")),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-44","onUpdate:modelValue":a[0]||(a[0]=s=>n.ip=s)},null,512),[[Fr,n.ip]]),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-20","onUpdate:modelValue":a[1]||(a[1]=s=>n.label=s)},null,512),[[Fr,n.label]]),L("button",{class:"btn btn-circle btn-sm",onClick:r},[ye(F(cO),{class:"h-4 w-4"})])])])],64))}});var Ffe=Object.defineProperty,a0=Object.getOwnPropertySymbols,U3=Object.prototype.hasOwnProperty,z3=Object.prototype.propertyIsEnumerable,MI=(e,t,n)=>t in e?Ffe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sc=(e,t)=>{for(var n in t||(t={}))U3.call(t,n)&&MI(e,n,t[n]);if(a0)for(var n of a0(t))z3.call(t,n)&&MI(e,n,t[n]);return e},G3=(e,t)=>{var n={};for(var r in e)U3.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&a0)for(var r of a0(e))t.indexOf(r)<0&&z3.call(e,r)&&(n[r]=e[r]);return n};const W3="[vue-draggable-plus]: ";function $fe(e){console.warn(W3+e)}function Bfe(e){console.error(W3+e)}function RI(e,t,n){return n>=0&&nn?n.toUpperCase():"")}function Hfe(e){return Object.keys(e).reduce((t,n)=>(typeof e[n]<"u"&&(t[Vfe(n)]=e[n]),t),{})}function DI(e,t){return Array.isArray(e)&&e.splice(t,1),e}function PI(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function Ufe(e){return typeof e>"u"}function zfe(e){return typeof e=="string"}function II(e,t,n){const r=e.children[n];e.insertBefore(t,r)}function Fw(e){e.parentNode&&e.parentNode.removeChild(e)}function Gfe(e,t=document){var n;let r=null;return typeof(t==null?void 0:t.querySelector)=="function"?r=(n=t==null?void 0:t.querySelector)==null?void 0:n.call(t,e):r=document.querySelector(e),r||$fe(`Element not found: ${e}`),r}function Wfe(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Yfe(e,t){const n=Sc({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Wfe(e[r],t[r]):n[r]=t[r]}),n}function jfe(e){return e instanceof HTMLElement}function LI(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function qfe(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}const Xfe=Object.assign;/**! - * Sortable 1.15.2 - * @author RubaXa - * @author owenm - * @license MIT - */function OI(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 la(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function Jfe(e,t){if(e==null)return{};var n=Zfe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var Qfe="1.15.2";function Ga(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var es=Ga(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),fp=Ga(/Edge/i),kI=Ga(/firefox/i),cd=Ga(/safari/i)&&!Ga(/chrome/i)&&!Ga(/android/i),Y3=Ga(/iP(ad|od|hone)/i),j3=Ga(/chrome/i)&&Ga(/android/i),q3={capture:!1,passive:!1};function Gt(e,t,n){e.addEventListener(t,n,!es&&q3)}function $t(e,t,n){e.removeEventListener(t,n,!es&&q3)}function s0(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 ehe(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function go(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&s0(e,t):s0(e,t))||r&&e===n)return e;if(e===n)break}while(e=ehe(e))}return null}var NI=/\s+/g;function vi(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(NI," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(NI," ")}}function lt(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 Uc(e,t){var n="";if(typeof e=="string")n=e;else do{var r=lt(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 X3(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i=o,!a)return r;if(r===ea())break;r=Vs(r,!1)}return!1}function rf(e,t,n,r){for(var i=0,o=0,a=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Jfe(n,lhe);hp.pluginEvent.bind(ut)(e,t,la({dragEl:De,parentEl:In,ghostEl:dt,rootEl:xn,nextEl:Xl,lastDownEl:sm,cloneEl:An,cloneHidden:Os,dragStarted:Mh,putSortable:sr,activeSortable:ut.active,originalEvent:r,oldIndex:xc,oldDraggableIndex:hd,newIndex:yi,newDraggableIndex:Ds,hideGhostForTarget:r$,unhideGhostForTarget:i$,cloneNowHidden:function(){Os=!0},cloneNowShown:function(){Os=!1},dispatchSortableEvent:function(o){Dr({sortable:t,name:o,originalEvent:r})}},i))};function Dr(e){she(la({putSortable:sr,cloneEl:An,targetEl:De,rootEl:xn,oldIndex:xc,oldDraggableIndex:hd,newIndex:yi,newDraggableIndex:Ds},e))}var De,In,dt,xn,Xl,sm,An,Os,xc,yi,hd,Ds,dg,sr,gc=!1,l0=!1,u0=[],zl,co,Vw,Hw,BI,VI,Mh,cc,dd,pd=!1,pg=!1,lm,mr,Uw=[],HS=!1,c0=[],yy=typeof document<"u",vg=Y3,HI=fp||es?"cssFloat":"float",uhe=yy&&!j3&&!Y3&&"draggable"in document.createElement("div"),e$=function(){if(yy){if(es)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),t$=function(e,t){var n=lt(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=rf(e,0,t),o=rf(e,1,t),a=i&<(i),s=o&<(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Gn(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Gn(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&a.float!=="none"){var c=a.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||l>=r&&n[HI]==="none"||o&&n[HI]==="none"&&l+u>r)?"vertical":"horizontal"},che=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2},fhe=function(e,t){var n;return u0.some(function(r){var i=r[xi].options.emptyInsertThreshold;if(!(!i||JC(r))){var o=Gn(r),a=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(a&&s)return n=r}}),n},n$=function(e){function t(i,o){return function(a,s,l,u){var c=a.options.group.name&&s.options.group.name&&a.options.group.name===s.options.group.name;if(i==null&&(o||c))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(a,s,l,u),o)(a,s,l,u);var h=(o?a:s).options.group.name;return i===!0||typeof i=="string"&&i===h||i.join&&i.indexOf(h)>-1}}var n={},r=e.group;(!r||am(r)!="object")&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},r$=function(){!e$&&dt&<(dt,"display","none")},i$=function(){!e$&&dt&<(dt,"display","")};yy&&!j3&&document.addEventListener("click",function(e){if(l0)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),l0=!1,!1},!0);var Gl=function(e){if(De){e=e.touches?e.touches[0]:e;var t=fhe(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[xi]._onDragOver(n)}}},hhe=function(e){De&&De.parentNode[xi]._isOutsideThisEl(e.target)};function ut(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=Ka({},t),e[xi]=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 t$(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(o,a){o.setData("Text",a.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:ut.supportPointer!==!1&&"PointerEvent"in window&&!cd,emptyInsertThreshold:5};hp.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);n$(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:uhe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Gt(e,"pointerdown",this._onTapStart):(Gt(e,"mousedown",this._onTapStart),Gt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Gt(e,"dragover",this),Gt(e,"dragenter",this)),u0.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ka(this,ihe())}ut.prototype={constructor:ut,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(cc=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,De):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,u=r.filter;if(whe(n),!De&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||r.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&cd&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=go(s,r.draggable,n,!1),!(s&&s.animated)&&sm!==s)){if(xc=Gi(s),hd=Gi(s,r.draggable),typeof u=="function"){if(u.call(this,e,s,this)){Dr({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),qr("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(c){if(c=go(l,c.trim(),n,!1),c)return Dr({sortable:t,rootEl:c,name:"filter",targetEl:s,fromEl:n,toEl:n}),qr("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!go(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,o=r.options,a=i.ownerDocument,s;if(n&&!De&&n.parentNode===i){var l=Gn(n);if(xn=i,De=n,In=De.parentNode,Xl=De.nextSibling,sm=n,dg=o.group,ut.dragged=De,zl={target:De,clientX:(t||e).clientX,clientY:(t||e).clientY},BI=zl.clientX-l.left,VI=zl.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,De.style["will-change"]="all",s=function(){if(qr("delayEnded",r,{evt:e}),ut.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!kI&&r.nativeDraggable&&(De.draggable=!0),r._triggerDragStart(e,t),Dr({sortable:r,name:"choose",originalEvent:e}),vi(De,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){X3(De,u.trim(),zw)}),Gt(a,"dragover",Gl),Gt(a,"mousemove",Gl),Gt(a,"touchmove",Gl),Gt(a,"mouseup",r._onDrop),Gt(a,"touchend",r._onDrop),Gt(a,"touchcancel",r._onDrop),kI&&this.nativeDraggable&&(this.options.touchStartThreshold=4,De.draggable=!0),qr("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(fp||es))){if(ut.eventCanceled){this._onDrop();return}Gt(a,"mouseup",r._disableDelayedDrag),Gt(a,"touchend",r._disableDelayedDrag),Gt(a,"touchcancel",r._disableDelayedDrag),Gt(a,"mousemove",r._delayedDragTouchMoveHandler),Gt(a,"touchmove",r._delayedDragTouchMoveHandler),o.supportPointer&&Gt(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){De&&zw(De),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;$t(e,"mouseup",this._disableDelayedDrag),$t(e,"touchend",this._disableDelayedDrag),$t(e,"touchcancel",this._disableDelayedDrag),$t(e,"mousemove",this._delayedDragTouchMoveHandler),$t(e,"touchmove",this._delayedDragTouchMoveHandler),$t(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Gt(document,"pointermove",this._onTouchMove):t?Gt(document,"touchmove",this._onTouchMove):Gt(document,"mousemove",this._onTouchMove):(Gt(De,"dragend",this),Gt(xn,"dragstart",this._onDragStart));try{document.selection?um(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(gc=!1,xn&&De){qr("dragStarted",this,{evt:t}),this.nativeDraggable&&Gt(document,"dragover",hhe);var n=this.options;!e&&vi(De,n.dragClass,!1),vi(De,n.ghostClass,!0),ut.active=this,e&&this._appendGhost(),Dr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(co){this._lastX=co.clientX,this._lastY=co.clientY,r$();for(var e=document.elementFromPoint(co.clientX,co.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(co.clientX,co.clientY),e!==t);)t=e;if(De.parentNode[xi]._isOutsideThisEl(e),t)do{if(t[xi]){var n=void 0;if(n=t[xi]._onDragOver({clientX:co.clientX,clientY:co.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);i$()}},_onTouchMove:function(e){if(zl){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=dt&&Uc(dt,!0),a=dt&&o&&o.a,s=dt&&o&&o.d,l=vg&&mr&&$I(mr),u=(i.clientX-zl.clientX+r.x)/(a||1)+(l?l[0]-Uw[0]:0)/(a||1),c=(i.clientY-zl.clientY+r.y)/(s||1)+(l?l[1]-Uw[1]:0)/(s||1);if(!ut.active&&!gc){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(Dr({rootEl:In,name:"add",toEl:In,fromEl:xn,originalEvent:e}),Dr({sortable:this,name:"remove",toEl:In,originalEvent:e}),Dr({rootEl:In,name:"sort",toEl:In,fromEl:xn,originalEvent:e}),Dr({sortable:this,name:"sort",toEl:In,originalEvent:e})),sr&&sr.save()):yi!==xc&&yi>=0&&(Dr({sortable:this,name:"update",toEl:In,originalEvent:e}),Dr({sortable:this,name:"sort",toEl:In,originalEvent:e})),ut.active&&((yi==null||yi===-1)&&(yi=xc,Ds=hd),Dr({sortable:this,name:"end",toEl:In,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){qr("nulling",this),xn=De=In=dt=Xl=An=sm=Os=zl=co=Mh=yi=Ds=xc=hd=cc=dd=sr=dg=ut.dragged=ut.ghost=ut.clone=ut.active=null,c0.forEach(function(e){e.checked=!0}),c0.length=Vw=Hw=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":De&&(this._onDragOver(e),dhe(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,o=this.options;ri.right+o||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+o||e.clientX>r.right&&e.clientY>r.top}function mhe(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,h=r?n.bottom:n.right,p=!1;if(!a){if(s&&lmc+u*o/2:lh-lm)return-dd}else if(l>c+u*(1-i)/2&&lh-u*o/2)?l>c+u/2?1:-1:0}function yhe(e){return Gi(De){if(X&&(i==null?void 0:i.length)!==H.childNodes.length)return N.insertBefore(X,j.nextSibling),!0;const Q=H.childNodes[oe];X=H==null?void 0:H.replaceChild(j,Q)})}}catch(X){te=X}finally{i=null}Po(()=>{if(zI(),te)throw te})}const y={onUpdate:_,onStart:p,onAdd:d,onRemove:g,onEnd:m};function b(D){const I=F(o);return D||(D=zfe(I)?Gfe(I,r==null?void 0:r.$el):I),D&&!jfe(D)&&(D=D.$el),D||Bfe("Root element not found"),D}function S(){var D;const I=(D=F(s))!=null?D:{},k=G3(I,["immediate","clone"]);return LI(k,(N,H)=>{qfe(N)&&(k[N]=(te,...W)=>{const X=The();return Xfe(te,X),H(te,...W)})}),Yfe(a===null?{}:y,k)}const x=D=>{D=b(D),l&&E.destroy(),l=new ut(D,S())};Lt(()=>s,()=>{l&&LI(S(),(D,I)=>{l==null||l.option(D,I)})},{deep:!0});const E={option:(D,I)=>l==null?void 0:l.option(D,I),destroy:()=>{l==null||l.destroy(),l=null},save:()=>l==null?void 0:l.save(),toArray:()=>l==null?void 0:l.toArray(),closest:(...D)=>l==null?void 0:l.closest(...D)},T=()=>E==null?void 0:E.option("disabled",!0),M=()=>E==null?void 0:E.option("disabled",!1);return Che(()=>{u&&x()}),xhe(E.destroy),Sc({start:x,pause:T,resume:M},E)}const WS=["update","start","add","remove","choose","unchoose","end","sort","filter","clone","move","change"],Ahe=["clone","animation","ghostClass","group","sort","disabled","store","handle","draggable","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","chosenClass","dragClass","ignore","filter","preventOnFilter","easing","setData","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","emptyInsertThreshold","scroll","forceAutoScrollFallback","scrollSensitivity","scrollSpeed","bubbleScroll","modelValue","tag","target","customUpdate",...WS.map(e=>`on${e.replace(/^\S/,t=>t.toUpperCase())}`)],WI=Qe({name:"VueDraggable",model:{prop:"modelValue",event:"update:modelValue"},props:Ahe,emits:["update:modelValue",...WS],setup(e,{slots:t,emit:n,expose:r,attrs:i}){const o=WS.reduce((c,h)=>{const p=`on${h.replace(/^\S/,d=>d.toUpperCase())}`;return c[p]=(...d)=>n(h,...d),c},{}),a=Ie(()=>{const c=aG(e),h=G3(c,["modelValue"]),p=Object.entries(h).reduce((d,[g,_])=>{const m=F(_);return m!==void 0&&(d[g]=m),d},{});return Sc(Sc({},o),Hfe(Sc(Sc({},i),p)))}),s=Ie({get:()=>e.modelValue,set:c=>n("update:modelValue",c)}),l=Me(),u=Eo(Ehe(e.target||l,s,a));return r(u),()=>{var c;return jo(e.tag||"div",{ref:l},(c=t==null?void 0:t.default)==null?void 0:c.call(t,u))}}}),Mhe={class:"flex items-center gap-2"},Rhe=["value"],Dhe={class:"flex rounded lg:flex-col"},Phe=Qe({__name:"TableSettings",setup(e){const t=Me(Object.values(Bt).filter(n=>!Kl.value.includes(n)));return(n,r)=>(q(),re(Ge,null,[L("div",Mhe,[L("div",null,ue(n.$t("tableSize"))+":",1),Tt(L("select",{class:"select select-bordered select-sm min-w-24","onUpdate:modelValue":r[0]||(r[0]=i=>Je(Pg)?Pg.value=i:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Dd)),i=>(q(),re("option",{key:i,value:i},ue(n.$t(i)),9,Rhe))),128))],512),[[Ai,F(Pg)]])]),L("div",null,ue(n.$t("customTableColumns"))+":",1),L("div",Dhe,[ye(F(WI),{class:"flex flex-1 flex-col gap-2 bg-base-200 p-2 lg:flex-row",modelValue:F(Kl),"onUpdate:modelValue":r[1]||(r[1]=i=>Je(Kl)?Kl.value=i:null),animation:150,group:"list",ghostClass:"ghost"},{default:Qr(()=>[(q(!0),re(Ge,null,Ft(F(Kl),i=>(q(),re("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},ue(n.$t(i)),1))),128))]),_:1},8,["modelValue"]),ye(F(WI),{class:"flex flex-1 flex-col gap-2 p-2 lg:flex-row",modelValue:t.value,"onUpdate:modelValue":r[2]||(r[2]=i=>t.value=i),animation:150,group:"list",ghostClass:"ghost"},{default:Qr(()=>[(q(!0),re(Ge,null,Ft(t.value,i=>(q(),re("div",{key:i,class:"flex h-8 cursor-move items-center rounded bg-neutral px-2 text-neutral-content"},ue(n.$t(i)),1))),128))]),_:1},8,["modelValue"])])],64))}}),Ihe=Qe({__name:"ConnectionsCharts",setup(e){const{t}=ia(),n=Ie(()=>[{name:t("connections"),data:Og.value}]),r=o=>` ${o}`,i=o=>o.map(a=>{if(!(a.data.name -
- ${a.seriesName} - (${ta(a.data.name).format("HH:mm:ss")}): ${a.data.value} - `}).join(` -`);return(o,a)=>(q(),Et(ZC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100},null,8,["data"]))}}),Lhe=Qe({__name:"MemoryCharts",setup(e){const{t}=ia(),n=Ie(()=>[{name:t("memoryUsage"),data:mh.value}]),r=o=>`${mn(o,{maximumFractionDigits:1,binary:!0})}`,i=o=>QO(o[0],{binary:!0,suffix:""});return(o,a)=>(q(),Et(ZC,{data:n.value,"label-formatter":r,"tool-tip-formatter":i,min:100*1024*1024},null,8,["data"]))}}),Ohe={class:"grid grid-cols-1 gap-2 overflow-y-auto p-2"},khe={class:"card card-compact"},Nhe={class:"card-title px-4 pt-4 text-primary"},Fhe={class:"indicator"},$he={key:0,class:"indicator-item flex"},Bhe={href:"https://github.com/Zephyruso/zashboard",target:"_blank"},Vhe={class:"card-body gap-4"},Hhe={class:"flex items-center gap-2"},Uhe=["value"],zhe={class:"flex items-center gap-2"},Ghe=["value"],Whe={key:0,class:"flex items-center gap-2"},Yhe={class:"grid max-w-screen-md grid-cols-2 gap-2 sm:grid-cols-4"},jhe={class:"card card-compact"},qhe={class:"card-title px-4 pt-4"},Xhe={class:"card-body gap-4"},Khe={class:"grid grid-cols-1 gap-2 lg:grid-cols-2 3xl:grid-cols-4"},Zhe={class:"card card-compact"},Jhe={class:"card-title px-4 pt-4"},Qhe={class:"card-body"},ede={class:"flex items-center gap-2"},tde={key:0,class:"flex items-center gap-2 max-sm:hidden"},nde={class:"card card-compact"},rde={class:"card-title px-4 pt-4"},ide={class:"card-body"},ode={class:"flex items-center gap-2"},ade=Qe({__name:"SettingsPage",setup(e){const{isUIUpdateAvailable:t}=R3(),n=Me(!1),r=async()=>{if(!n.value){n.value=!0;try{await Mk(),n.value=!1,window.location.reload()}catch{n.value=!1}}},i=["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(o,a)=>(q(),re("div",Ohe,[L("div",khe,[L("div",Nhe,[L("div",Fhe,[F(t)?(q(),re("span",$he,a[8]||(a[8]=[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",Bhe,"zashboard v"+ue(F(Tk)),1)])]),L("div",Vhe,[L("div",Hhe,[st(ue(o.$t("theme"))+": ",1),Tt(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":a[0]||(a[0]=s=>Je(Dc)?Dc.value=s:null)},[(q(),re(Ge,null,Ft(i,s=>L("option",{key:s,value:s},ue(s),9,Uhe)),64))],512),[[Ai,F(Dc)]])]),ye(H3),L("div",zhe,[st(ue(o.$t("fonts"))+": ",1),Tt(L("select",{class:"select select-bordered select-sm w-48","onUpdate:modelValue":a[1]||(a[1]=s=>Je(Bh)?Bh.value=s:null)},[(q(!0),re(Ge,null,Ft(Object.values(F(Is)),s=>(q(),re("option",{key:s,value:s},ue(s),9,Ghe))),128))],512),[[Ai,F(Bh)]])]),F(ja)?yt("",!0):(q(),re("div",Whe,[st(ue(o.$t("autoUpgrade"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[2]||(a[2]=s=>Je(Eg)?Eg.value=s:null)},null,512),[[mo,F(Eg)]])])),L("div",Yhe,[F(ja)?yt("",!0):(q(),re(Ge,{key:0},[L("button",{class:Ke(F(nn)("btn btn-primary btn-sm",n.value?"animate-pulse":"")),onClick:r},ue(o.$t("upgradeUI")),3),a[9]||(a[9]=L("div",{class:"sm:hidden"},null,-1))],64)),L("button",{class:"btn btn-sm",onClick:a[3]||(a[3]=(...s)=>F(uM)&&F(uM)(...s))},ue(o.$t("exportSettings")),1),L("button",{class:"btn btn-sm",onClick:a[4]||(a[4]=(...s)=>F(xm)&&F(xm)(...s))},ue(o.$t("importSettings")),1)])])]),L("div",jhe,[L("div",qhe,ue(o.$t("statistics")),1),L("div",Xhe,[L("div",Khe,[ye(oN,{class:"bg-base-200/40 p-4"}),ye(M3),ye(Lhe),ye(Ihe)])])]),ye(afe),ye(Pfe),L("div",Zhe,[L("div",Jhe,ue(o.$t("connections")),1),L("div",Qhe,[L("div",ede,[st(ue(o.$t("connectionStyle"))+": "+ue(o.$t("table"))+" ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[5]||(a[5]=s=>Je(tu)?tu.value=s:null)},null,512),[[mo,F(tu)]]),st(" "+ue(o.$t("card")),1)]),F(tu)?(q(),re("div",tde,[st(ue(o.$t("compactCard"))+": ",1),Tt(L("input",{class:"toggle",type:"checkbox","onUpdate:modelValue":a[6]||(a[6]=s=>Je(Ig)?Ig.value=s:null)},null,512),[[mo,F(Ig)]])])):(q(),Et(Phe,{key:1})),a[10]||(a[10]=L("div",{class:"divider"},null,-1)),ye(Nfe)])]),L("div",nde,[L("div",rde,ue(o.$t("logs")),1),L("div",ide,[L("div",ode,[st(ue(o.$t("logRetentionLimit"))+": ",1),Tt(L("input",{class:"input input-sm input-bordered w-20",type:"number",max:"9999","onUpdate:modelValue":a[7]||(a[7]=s=>Je(Lg)?Lg.value=s:null)},null,512),[[Fr,F(Lg)]])])])])]))}}),sde={class:"absolute right-4 top-4"},lde={class:"absolute bottom-4 right-4"},ude={class:"card w-64 gap-2 px-6 py-2 sm:gap-4"},cde={class:"text-2xl font-semibold"},fde={class:"form-control"},hde={class:"label"},dde={class:"label-text"},pde={class:"form-control"},vde={class:"label"},gde={class:"label-text"},mde={class:"form-control"},yde={class:"label"},_de={class:"label-text"},wde={class:"form-control"},bde={class:"label flex items-center justify-start gap-1"},Sde={class:"label-text"},xde=["data-tip"],Cde={class:"form-control"},Tde={class:"label"},Ede={class:"label-text"},Ade={class:"flex flex-col gap-2"},Mde=["onClick"],Rde=["onClick"],Dde=Qe({__name:"SetupPage",setup(e){var a,s;const t=Eo({protocol:"http",host:"127.0.0.1",port:9090,secondaryPath:"",password:""}),{showTip:n}=D0(),r=l=>{Sr.value=l,Do.push({name:Vt.proxies})},i=async(l,u=!1)=>{const{protocol:c,host:h,port:p,password:d}=l;if(!c||!h||!p){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(h)&&!u&&n("protocolTips");try{const g=await fetch(`${_u(l)}/version`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(g.status!==200){u||alert(g.statusText);return}const{version:_,message:m}=await g.json();if(!_){u||alert(m);return}rj(l),Do.push({name:Vt.proxies})}catch(g){u||alert(g)}},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)=>(q(),re("div",{class:"flex h-full w-full items-center justify-center bg-base-200/40",onKeydown:u[7]||(u[7]=U6(c=>i(t),["enter"]))},[L("div",sde,[L("button",{class:"btn btn-sm",onClick:u[0]||(u[0]=(...c)=>F(xm)&&F(xm)(...c))},ue(l.$t("importSettings")),1)]),L("div",lde,[ye(H3)]),L("div",ude,[L("h1",cde,ue(l.$t("setup")),1),L("div",fde,[L("label",hde,[L("span",dde,ue(l.$t("protocol")),1)]),Tt(L("select",{class:"select select-bordered select-sm w-full","onUpdate:modelValue":u[1]||(u[1]=c=>t.protocol=c)},u[8]||(u[8]=[L("option",{value:"http"},"HTTP",-1),L("option",{value:"https"},"HTTPS",-1)]),512),[[Ai,t.protocol]])]),L("div",pde,[L("label",vde,[L("span",gde,ue(l.$t("host")),1)]),Tt(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),[[Fr,t.host]])]),L("div",mde,[L("label",yde,[L("span",_de,ue(l.$t("port")),1)]),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[3]||(u[3]=c=>t.port=c)},null,512),[[Fr,t.port]])]),L("div",wde,[L("label",bde,[L("span",Sde,ue(l.$t("secondaryPath")),1),L("span",{class:"tooltip","data-tip":l.$t("secondaryPathTip")},[ye(F(fO),{class:"h-4 w-4"})],8,xde)]),Tt(L("input",{type:"text",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[4]||(u[4]=c=>t.secondaryPath=c)},null,512),[[Fr,t.secondaryPath]])]),L("div",Cde,[L("label",Tde,[L("span",Ede,ue(l.$t("password")),1)]),Tt(L("input",{type:"password",class:"input input-sm input-bordered w-full","onUpdate:modelValue":u[5]||(u[5]=c=>t.password=c)},null,512),[[Fr,t.password]])]),L("button",{class:"btn btn-primary btn-sm w-full",onClick:u[6]||(u[6]=c=>i(t))},ue(l.$t("submit")),1),L("div",Ade,[(q(!0),re(Ge,null,Ft(F(oa),c=>(q(),re("div",{key:c.uuid,class:"flex items-center gap-2"},[L("button",{class:"btn btn-sm flex-1",onClick:h=>r(c.uuid)},ue(F(_u)(c)),9,Mde),L("button",{class:"btn btn-circle btn-sm",onClick:()=>F(jO)(c.uuid)},[ye(F(sO),{class:"h-4 w-4"})],8,Rde)]))),128))])])],32))}}),Do=s9({history:FW("./"),routes:[{path:"/",redirect:Vt.proxies,component:Mue,children:[{path:"proxies",name:Vt.proxies,component:Oce},{path:"connections",name:Vt.connections,component:pZ},{path:"logs",name:Vt.logs,component:Oue},{path:"rules",name:Vt.rules,component:Yce},{path:"settings",name:Vt.settings,component:ade}]},{path:"/setup",name:Vt.setup,component:Dde},{path:"/:catchAll(.*)",redirect:Vt.proxies}]}),YI=BY("zashboard"),l$=e=>{typeof e=="string"&&qs.value?YI.value=`zashboard | ${Ax.global.t(e)}`:YI.value="zashboard"};Do.beforeEach(e=>{!qs.value&&e.name!==Vt.setup&&Do.push({name:Vt.setup})});Do.afterEach(e=>{l$(e.name)});Lt($a,()=>{l$(Do.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 tT=W6(WY);ta.extend(S8);tT.use(Do);tT.use(Ax);tT.mount("#app"); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Wi3TY4zB.css b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Doht7gsQ.css similarity index 61% rename from luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Wi3TY4zB.css rename to luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Doht7gsQ.css index 1b1361514..a40c40e89 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Wi3TY4zB.css +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/assets/index-Doht7gsQ.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0% 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}*{scrollbar-color:color-mix(in oklch,currentColor 35%,transparent) transparent}*:hover{scrollbar-color:color-mix(in oklch,currentColor 60%,transparent) transparent}:root{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}}[data-theme=light]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}[data-theme=dark]{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}[data-theme=cupcake]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 15.2344% .017892 200.026556;--sc: 15.787% .020249 356.29965;--ac: 15.8762% .029206 78.618794;--nc: 84.7148% .013247 313.189598;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: 76.172% .089459 200.026556;--s: 78.9351% .101246 356.29965;--a: 79.3811% .146032 78.618794;--n: 23.5742% .066235 313.189598;--b1: 97.7882% .00418 56.375637;--b2: 93.9822% .007638 61.449292;--b3: 91.5861% .006811 53.440502;--bc: 23.5742% .066235 313.189598;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .7rem}[data-theme=bumblebee]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 20% 0 0;--ac: 16.254% .0314 56.52;--nc: 82.55% .015 281.99;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 89.51% .2132 96.61;--pc: 38.92% .046 96.61;--s: 80.39% .194 70.76;--sc: 39.38% .068 70.76;--a: 81.27% .157 56.52;--n: 12.75% .075 281.99;--b1: 100% 0 0}[data-theme=emerald]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 76.6626% .135433 153.450024;--pc: 33.3872% .040618 162.240129;--s: 61.3028% .202368 261.294233;--sc: 100% 0 0;--a: 72.7725% .149783 33.200363;--ac: 0% 0 0;--n: 35.5192% .032071 262.988584;--nc: 98.4625% .001706 247.838921;--b1: 100% 0 0;--bc: 35.5192% .032071 262.988584;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 12.078% .0456 269.1;--sc: 13.0739% .010951 256.688055;--ac: 15.3934% .022799 163.57888;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--border-btn: 1px;--tab-border: 1px;--p: 60.39% .228 269.1;--s: 65.3694% .054756 256.688055;--a: 76.9669% .113994 163.57888;--n: 22.3899% .031305 278.07229;--nc: 95.8796% .008588 247.915135;--b1: 100% 0 0;--bc: 22.3899% .031305 278.07229;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--tab-radius: .25rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--b2: 20.2941% .076211 287.835609;--b3: 18.7665% .070475 287.835609;--pc: 14.4421% .031903 342.009383;--sc: 15.6543% .02362 227.382405;--ac: 17.608% .0412 93.72;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 72.2105% .159514 342.009383;--s: 78.2714% .118101 227.382405;--a: 88.04% .206 93.72;--n: 25.5554% .103537 286.507967;--nc: 97.9365% .00819 301.358346;--b1: 21.8216% .081948 287.835609;--bc: 97.9365% .00819 301.358346;--in: 76.5197% .12273 231.831603;--inc: 23.5017% .096418 290.329844;--su: 86.0572% .115038 178.624677;--suc: 23.5017% .096418 290.329844;--wa: 85.531% .122117 93.722227;--wac: 23.5017% .096418 290.329844;--er: 73.7005% .121339 32.639257;--erc: 23.5017% .096418 290.329844}[data-theme=retro]{color-scheme:light;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 13.144% .0398 27.33;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 76.8664% .104092 22.664655;--pc: 26.5104% .006243 .522862;--s: 80.7415% .052534 159.094608;--sc: 26.5104% .006243 .522862;--a: 70.3919% .125455 52.953428;--ac: 26.5104% .006243 .522862;--n: 28.4181% .009519 355.534017;--nc: 92.5604% .025113 89.217311;--b1: 91.6374% .034554 90.51575;--b2: 88.2722% .049418 91.774344;--b3: 84.133% .065952 90.856665;--bc: 26.5104% .006243 .522862;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 65.72% .199 27.33;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem;--tab-radius: .4rem}[data-theme=cyberpunk]{color-scheme:light;--b2: 87.8943% .16647 104.32;--b3: 81.2786% .15394 104.32;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 18.902% .0358 104.32;--pc: 14.844% .0418 6.35;--sc: 16.666% .0368 204.72;--ac: 14.372% .04352 310.43;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 74.22% .209 6.35;--s: 83.33% .184 204.72;--a: 71.86% .2176 310.43;--n: 23.04% .065 269.31;--nc: 94.51% .179 104.32;--b1: 94.51% .179 104.32;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--b2: 88.0567% .024834 337.06289;--b3: 81.4288% .022964 337.06289;--pc: 13.7239% .030755 15.066527;--sc: 14.3942% .029258 293.189609;--ac: 14.2537% .014961 197.828857;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 14.614% .0414 27.33;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 68.6197% .153774 15.066527;--s: 71.971% .14629 293.189609;--a: 71.2685% .074804 197.828857;--n: 54.6053% .143342 358.004839;--nc: 90.2701% .037202 336.955191;--b1: 94.6846% .026703 337.06289;--bc: 37.3085% .081131 4.606426;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 73.07% .207 27.33;--rounded-btn: 1.9rem;--tab-radius: .7rem}[data-theme=halloween]{color-scheme:dark;--b2: 23.0416% 0 0;--b3: 21.3072% 0 0;--bc: 84.9552% 0 0;--sc: 89.196% .0496 305.03;--nc: 84.8742% .009322 65.681484;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 13.144% .0398 27.33;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 77.48% .204 60.62;--pc: 19.6935% .004671 196.779412;--s: 45.98% .248 305.03;--a: 64.8% .223 136.073479;--ac: 0% 0 0;--n: 24.371% .046608 65.681484;--b1: 24.7759% 0 0;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 65.72% .199 27.33}[data-theme=garden]{color-scheme:light;--b2: 86.4453% .002011 17.197414;--b3: 79.9386% .00186 17.197414;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--sc: 89.699% .022197 355.095988;--ac: 11.2547% .010859 154.390187;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 62.45% .278 3.83636;--pc: 100% 0 0;--s: 48.4952% .110985 355.095988;--a: 56.2735% .054297 154.390187;--n: 24.1559% .049362 89.070594;--nc: 92.9519% .002163 17.197414;--b1: 92.9519% .002163 17.197414;--bc: 16.9617% .001664 17.32068}[data-theme=forest]{color-scheme:dark;--b2: 17.522% .007709 17.911578;--b3: 16.2032% .007129 17.911578;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 83.7682% .001658 17.911578;--sc: 13.9553% .027077 168.327128;--ac: 14.1257% .02389 185.713193;--nc: 86.1397% .007806 171.364646;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 68.6283% .185567 148.958922;--pc: 0% 0 0;--s: 69.7764% .135385 168.327128;--a: 70.6285% .119451 185.713193;--n: 30.6985% .039032 171.364646;--b1: 18.8409% .00829 17.911578;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--b2: 45.3464% .118611 261.181672;--b3: 41.9333% .109683 261.181672;--bc: 89.7519% .025508 261.181672;--sc: 12.1365% .02175 309.782946;--ac: 18.6854% .020445 94.555431;--nc: 12.2124% .023402 243.760661;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 14.79% .038 27.33;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 85.6617% .14498 198.6458;--pc: 40.1249% .068266 197.603872;--s: 60.6827% .108752 309.782946;--a: 93.4269% .102225 94.555431;--n: 61.0622% .117009 243.760661;--b1: 48.7596% .127539 261.181672;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 73.95% .19 27.33}[data-theme=lofi]{color-scheme:light;--inc: 15.908% .0206 205.9;--suc: 18.026% .0306 164.14;--wac: 17.674% .027 79.94;--erc: 15.732% .03 28.47;--border-btn: 1px;--tab-border: 1px;--p: 15.9066% 0 0;--pc: 100% 0 0;--s: 21.455% .001566 17.278957;--sc: 100% 0 0;--a: 26.8618% 0 0;--ac: 100% 0 0;--n: 0% 0 0;--nc: 100% 0 0;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.268% .001082 17.17934;--bc: 0% 0 0;--in: 79.54% .103 205.9;--su: 90.13% .153 164.14;--wa: 88.37% .135 79.94;--er: 78.66% .15 28.47;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--tab-radius: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=pastel]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 20% 0 0;--pc: 16.6166% .006979 316.8737;--sc: 17.6153% .009839 8.688364;--ac: 17.8419% .012056 170.923263;--nc: 14.2681% .014702 228.183906;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 83.0828% .034896 316.8737;--s: 88.0763% .049197 8.688364;--a: 89.2096% .06028 170.923263;--n: 71.3406% .07351 228.183906;--b1: 100% 0 0;--b2: 98.4625% .001706 247.838921;--b3: 87.1681% .009339 258.338227;--rounded-btn: 1.9rem;--tab-radius: .7rem}[data-theme=fantasy]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 87.49% .0378 325.02;--sc: 90.784% .0324 241.36;--ac: 15.196% .0408 56.72;--nc: 85.5616% .005919 256.847952;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 37.45% .189 325.02;--s: 53.92% .162 241.36;--a: 75.98% .204 56.72;--n: 27.8078% .029596 256.847952;--b1: 100% 0 0;--bc: 27.8078% .029596 256.847952}[data-theme=wireframe]{color-scheme:light;--bc: 20% 0 0;--pc: 15.6521% 0 0;--sc: 15.6521% 0 0;--ac: 15.6521% 0 0;--nc: 18.8014% 0 0;--inc: 89.0403% .062643 264.052021;--suc: 90.395% .035372 142.495339;--wac: 14.1626% .019994 108.702381;--erc: 12.5591% .051537 29.233885;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,"sans-serif";--p: 78.2604% 0 0;--s: 78.2604% 0 0;--a: 78.2604% 0 0;--n: 94.007% 0 0;--b1: 100% 0 0;--b2: 94.9119% 0 0;--b3: 89.7547% 0 0;--in: 45.2014% .313214 264.052021;--su: 51.9752% .176858 142.495339;--wa: 70.8131% .099969 108.702381;--er: 62.7955% .257683 29.233885;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pc: 86.736% 0 0;--sc: 86.736% 0 0;--ac: 86.736% 0 0;--nc: 86.736% 0 0;--inc: 89.0403% .062643 264.052021;--suc: 90.395% .035372 142.495339;--wac: 19.3597% .042201 109.769232;--erc: 12.5591% .051537 29.233885;--border-btn: 1px;--tab-border: 1px;--p: 33.6799% 0 0;--s: 33.6799% 0 0;--a: 33.6799% 0 0;--b1: 0% 0 0;--b2: 19.1251% 0 0;--b3: 26.8618% 0 0;--bc: 87.6096% 0 0;--n: 33.6799% 0 0;--in: 45.2014% .313214 264.052021;--su: 51.9752% .176858 142.495339;--wa: 96.7983% .211006 109.769232;--er: 62.7955% .257683 29.233885;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pc: 20% 0 0;--sc: 85.5163% .012821 261.069149;--ac: 87.3349% .010348 338.82597;--inc: 15.8122% .024356 237.133883;--suc: 15.6239% .038579 132.154381;--wac: 17.2255% .027305 102.89115;--erc: 14.3506% .035271 22.568916;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 100% 0 0;--s: 27.5815% .064106 261.069149;--a: 36.6744% .051741 338.82597;--n: 24.27% .057015 59.825019;--nc: 93.2033% .089631 90.861683;--b1: 14.0765% .004386 285.822869;--b2: 20.2191% .004211 308.22937;--b3: 29.8961% .003818 308.318612;--bc: 75.6879% .123666 76.890484;--in: 79.0612% .121778 237.133883;--su: 78.1197% .192894 132.154381;--wa: 86.1274% .136524 102.89115;--er: 71.7531% .176357 22.568916}[data-theme=dracula]{color-scheme:dark;--b2: 26.8053% .020556 277.508664;--b3: 24.7877% .019009 277.508664;--pc: 15.0922% .036614 346.812432;--sc: 14.8405% .029709 301.883095;--ac: 16.6785% .024826 66.558491;--nc: 87.8891% .006515 275.524078;--inc: 17.6526% .018676 212.846491;--suc: 17.4199% .043903 148.024881;--wac: 19.1068% .026849 112.757109;--erc: 13.6441% .041266 24.430965;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 75.4611% .18307 346.812432;--s: 74.2023% .148546 301.883095;--a: 83.3927% .124132 66.558491;--n: 39.4456% .032576 275.524078;--b1: 28.8229% .022103 277.508664;--bc: 97.7477% .007913 106.545019;--in: 88.263% .09338 212.846491;--su: 87.0995% .219516 148.024881;--wa: 95.5338% .134246 112.757109;--er: 68.2204% .206328 24.430965}[data-theme=cmyk]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--bc: 20% 0 0;--pc: 14.3544% .02666 239.443325;--sc: 12.8953% .040552 359.339283;--ac: 18.8458% .037948 105.306968;--nc: 84.3557% 0 0;--inc: 13.6952% .0189 217.284104;--suc: 89.3898% .032505 321.406278;--wac: 14.2473% .031969 52.023412;--erc: 12.4027% .041677 28.717543;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 71.7722% .133298 239.443325;--s: 64.4766% .202758 359.339283;--a: 94.2289% .189741 105.306968;--n: 21.7787% 0 0;--b1: 100% 0 0;--in: 68.4759% .094499 217.284104;--su: 46.949% .162524 321.406278;--wa: 71.2364% .159843 52.023412;--er: 62.0133% .208385 28.717543}[data-theme=autumn]{color-scheme:light;--b2: 89.1077% 0 0;--b3: 82.4006% 0 0;--bc: 19.1629% 0 0;--pc: 88.1446% .032232 17.530175;--sc: 12.3353% .033821 23.865865;--ac: 14.6851% .018999 60.729616;--nc: 90.8734% .007475 51.902819;--inc: 13.8449% .019596 207.284192;--suc: 12.199% .016032 174.616213;--wac: 14.0163% .032982 56.844303;--erc: 90.614% .0482 24.16;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 40.7232% .16116 17.530175;--s: 61.6763% .169105 23.865865;--a: 73.4253% .094994 60.729616;--n: 54.3672% .037374 51.902819;--b1: 95.8147% 0 0;--in: 69.2245% .097979 207.284192;--su: 60.9951% .080159 174.616213;--wa: 70.0817% .164909 56.844303;--er: 53.07% .241 24.16}[data-theme=business]{color-scheme:dark;--b2: 22.6487% 0 0;--b3: 20.944% 0 0;--bc: 84.8707% 0 0;--pc: 88.3407% .019811 251.473931;--sc: 12.8185% .005481 229.389418;--ac: 13.4542% .033545 35.791525;--nc: 85.4882% .00265 253.041249;--inc: 12.5233% .028702 240.033697;--suc: 14.0454% .018919 156.59611;--wac: 15.4965% .023141 81.519177;--erc: 90.3221% .029356 29.674507;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.7036% .099057 251.473931;--s: 64.0924% .027405 229.389418;--a: 67.271% .167726 35.791525;--n: 27.441% .01325 253.041249;--b1: 24.3535% 0 0;--in: 62.6163% .143511 240.033697;--su: 70.2268% .094594 156.59611;--wa: 77.4824% .115704 81.519177;--er: 51.6105% .14678 29.674507;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--b2: 91.6146% 0 0;--b3: 84.7189% 0 0;--bc: 19.7021% 0 0;--pc: 14.38% .0714 330.759573;--sc: 14.674% .0448 48.250878;--ac: 18.556% .0528 122.962951;--nc: 84.262% .0256 278.68;--inc: 12.144% .0454 252.05;--suc: 17.144% .0532 158.53;--wac: 18.202% .0424 100.5;--erc: 12.968% .0586 29.349188;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 71.9% .357 330.759573;--s: 73.37% .224 48.250878;--a: 92.78% .264 122.962951;--n: 21.31% .128 278.68;--b1: 98.5104% 0 0;--in: 60.72% .227 252.05;--su: 85.72% .266 158.53;--wa: 91.01% .212 100.5;--er: 64.84% .293 29.349188;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem;--tab-radius: .7rem}[data-theme=lemonade]{color-scheme:light;--b2: 91.8003% .0186 123.72;--b3: 84.8906% .0172 123.72;--bc: 19.742% .004 123.72;--pc: 11.784% .0398 134.6;--sc: 15.55% .0392 111.09;--ac: 17.078% .0402 100.73;--nc: 86.196% .015 108.6;--inc: 17.238% .0094 224.14;--suc: 17.238% .0094 157.85;--wac: 17.238% .0094 102.15;--erc: 17.238% .0094 25.85;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 58.92% .199 134.6;--s: 77.75% .196 111.09;--a: 85.39% .201 100.73;--n: 30.98% .075 108.6;--b1: 98.71% .02 123.72;--in: 86.19% .047 224.14;--su: 86.19% .047 157.85;--wa: 86.19% .047 102.15;--er: 86.19% .047 25.85}[data-theme=night]{color-scheme:dark;--b2: 19.3144% .037037 265.754874;--b3: 17.8606% .034249 265.754874;--bc: 84.1536% .007965 265.754874;--pc: 15.0703% .027798 232.66148;--sc: 13.6023% .031661 276.934902;--ac: 14.4721% .035244 350.048739;--nc: 85.5899% .00737 260.030984;--suc: 15.6904% .026506 181.911977;--wac: 16.6486% .027912 82.95003;--erc: 14.3572% .034051 13.11834;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 75.3513% .138989 232.66148;--s: 68.0113% .158303 276.934902;--a: 72.3603% .176218 350.048739;--n: 27.9495% .036848 260.030984;--b1: 20.7682% .039824 265.754874;--in: 68.4553% .148062 237.25135;--inc: 0% 0 0;--su: 78.452% .132529 181.911977;--wa: 83.2428% .139558 82.95003;--er: 71.7858% .170255 13.11834}[data-theme=coffee]{color-scheme:dark;--b2: 20.1585% .021457 329.708637;--b3: 18.6412% .019842 329.708637;--pc: 14.3993% .024765 62.756393;--sc: 86.893% .00597 199.19444;--ac: 88.5243% .014881 224.389184;--nc: 83.3022% .003149 326.261446;--inc: 15.898% .012774 184.558367;--suc: 14.9445% .014491 131.116276;--wac: 17.6301% .028162 87.722413;--erc: 15.4637% .025644 31.871922;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 71.9967% .123825 62.756393;--s: 34.465% .029849 199.19444;--a: 42.6213% .074405 224.389184;--n: 16.5109% .015743 326.261446;--b1: 21.6758% .023072 329.708637;--bc: 72.3547% .092794 79.129387;--in: 79.4902% .063869 184.558367;--su: 74.7224% .072456 131.116276;--wa: 88.1503% .140812 87.722413;--er: 77.3187% .12822 31.871922}[data-theme=winter]{color-scheme:light;--pc: 91.372% .051 257.57;--sc: 88.5103% .03222 282.339433;--ac: 11.988% .038303 335.171434;--nc: 83.9233% .012704 257.651965;--inc: 17.6255% .017178 214.515264;--suc: 16.0988% .015404 197.823719;--wac: 17.8345% .009167 71.47031;--erc: 14.6185% .022037 20.076293;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 56.86% .255 257.57;--s: 42.5516% .161098 282.339433;--a: 59.9398% .191515 335.171434;--n: 19.6166% .063518 257.651965;--b1: 100% 0 0;--b2: 97.4663% .011947 259.822565;--b3: 93.2686% .016223 262.751375;--bc: 41.8869% .053885 255.824911;--in: 88.1275% .085888 214.515264;--su: 80.4941% .077019 197.823719;--wa: 89.1725% .045833 71.47031;--er: 73.0926% .110185 20.076293}[data-theme=dim]{color-scheme:dark;--pc: 17.2267% .028331 139.549991;--sc: 14.6752% .033181 35.353059;--ac: 14.8459% .026728 311.37924;--inc: 17.2157% .028409 206.182959;--suc: 17.2343% .028437 166.534048;--wac: 17.2327% .028447 94.818679;--erc: 16.4838% .019914 33.756357;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 86.1335% .141656 139.549991;--s: 73.3759% .165904 35.353059;--a: 74.2296% .133641 311.37924;--n: 24.7311% .020483 264.094728;--nc: 82.9011% .031335 222.959324;--b1: 30.8577% .023243 264.149498;--b2: 28.0368% .01983 264.182074;--b3: 26.3469% .018403 262.177739;--bc: 82.9011% .031335 222.959324;--in: 86.0785% .142046 206.182959;--su: 86.1717% .142187 166.534048;--wa: 86.1634% .142236 94.818679;--er: 82.4189% .09957 33.756357}[data-theme=nord]{color-scheme:light;--pc: 11.8872% .015449 254.027774;--sc: 13.9303% .011822 248.687186;--ac: 15.4929% .01245 217.469017;--inc: 13.8414% .012499 332.664922;--suc: 15.3654% .01498 131.063061;--wac: 17.0972% .017847 84.093335;--erc: 12.122% .024119 15.341883;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 59.4359% .077246 254.027774;--s: 69.6516% .059108 248.687186;--a: 77.4643% .062249 217.469017;--n: 45.229% .035214 264.1312;--nc: 89.9258% .016374 262.749256;--b1: 95.1276% .007445 260.731539;--b2: 93.2996% .010389 261.788485;--b3: 89.9258% .016374 262.749256;--bc: 32.4374% .022945 264.182036;--in: 69.2072% .062496 332.664922;--su: 76.827% .074899 131.063061;--wa: 85.4862% .089234 84.093335;--er: 60.61% .120594 15.341883;--rounded-box: .4rem;--rounded-btn: .2rem;--rounded-badge: .4rem;--tab-radius: .2rem}[data-theme=sunset]{color-scheme:dark;--pc: 14.9408% .031656 39.94703;--sc: 14.5075% .035531 2.72034;--ac: 14.2589% .033336 299.844533;--inc: 17.1119% .017054 206.015183;--suc: 17.1122% .017172 144.77874;--wac: 17.1139% .016961 74.427797;--erc: 17.1023% .015778 16.886379;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 74.7039% .158278 39.94703;--s: 72.5375% .177654 2.72034;--a: 71.2947% .166678 299.844533;--n: 26% .019 237.69;--nc: 70% .019 237.69;--b1: 22% .019 237.69;--b2: 20% .019 237.69;--b3: 18% .019 237.69;--bc: 77.3835% .043586 245.096534;--in: 85.5596% .085271 206.015183;--su: 85.5609% .08586 144.77874;--wa: 85.5695% .084806 74.427797;--er: 85.5116% .07889 16.886379;--rounded-box: 1.2rem;--rounded-btn: .8rem;--rounded-badge: .4rem;--tab-radius: .7rem}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}@media (hover:hover){.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.tab:hover{--tw-text-opacity: 1}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):hover,.tabs-boxed :is(input:checked):hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity));--tw-bg-opacity: 1;--tw-border-opacity: 1}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.collapse:not(td):not(tr):not(colgroup){visibility:visible}.collapse{position:relative;display:grid;overflow:hidden;grid-template-rows:auto 0fr;transition:grid-template-rows .2s;width:100%;border-radius:var(--rounded-box, 1rem)}.collapse-title,.collapse>input[type=checkbox],.collapse>input[type=radio],.collapse-content{grid-column-start:1;grid-row-start:1}.collapse>input[type=checkbox],.collapse>input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.collapse-content{visibility:hidden;grid-column-start:1;grid-row-start:2;min-height:0px;transition:visibility .2s;transition:padding .2s ease-out,background-color .2s ease-out;padding-left:1rem;padding-right:1rem;cursor:unset}.collapse[open],.collapse-open,.collapse:focus:not(.collapse-close){grid-template-rows:auto 1fr}.collapse:not(.collapse-close):has(>input[type=checkbox]:checked),.collapse:not(.collapse-close):has(>input[type=radio]:checked){grid-template-rows:auto 1fr}.collapse[open]>.collapse-content,.collapse-open>.collapse-content,.collapse:focus:not(.collapse-close)>.collapse-content,.collapse:not(.collapse-close)>input[type=checkbox]:checked~.collapse-content,.collapse:not(.collapse-close)>input[type=radio]:checked~.collapse-content{visibility:visible;min-height:-moz-fit-content;min-height:fit-content}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{height:.125rem;width:100%;flex-grow:1;--tw-content: "";content:var(--tw-content);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.drawer{position:relative;display:grid;grid-auto-columns:max-content auto;width:100%}.drawer-content{grid-column-start:2;grid-row-start:1;min-width:0px}.drawer-side{pointer-events:none;position:fixed;inset-inline-start:0px;top:0;grid-column-start:1;grid-row-start:1;display:grid;width:100%;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr));align-items:flex-start;justify-items:start;overflow-x:hidden;overflow-y:hidden;overscroll-behavior:contain;height:100vh;height:100dvh}.drawer-side>.drawer-overlay{position:sticky;top:0;place-self:stretch;cursor:pointer;background-color:transparent;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.drawer-side>*{grid-column-start:1;grid-row-start:1}.drawer-side>*:not(.drawer-overlay){transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;will-change:transform;transform:translate(-100%)}[dir=rtl] .drawer-side>*:not(.drawer-overlay){transform:translate(100%)}.drawer-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.drawer-toggle:checked~.drawer-side{pointer-events:auto;visibility:visible;overflow-y:auto}.drawer-toggle:checked~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}.drawer-end>.drawer-toggle~.drawer-content{grid-column-start:1}.drawer-end>.drawer-toggle~.drawer-side{grid-column-start:2;justify-items:end}.drawer-end>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(100%)}[dir=rtl] .drawer-end>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(-100%)}.drawer-end>.drawer-toggle:checked~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}@media (hover: hover){.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn:hover{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1)) 90%,black)}}@supports not (color: oklch(0% 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0% 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary:hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}@supports (color: color-mix(in oklab,black,black)){.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0% 0 0)){:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.input[type=number]::-webkit-inner-spin-button,.input-md[type=number]::-webkit-inner-spin-button{margin-top:-1rem;margin-bottom:-1rem;margin-inline-end:-1rem}.input-sm[type=number]::-webkit-inner-spin-button{margin-top:0;margin-bottom:0;margin-inline-end:-0px}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.link{cursor:pointer;text-decoration-line:underline}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.modal{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;margin:0;display:grid;height:100%;max-height:none;width:100%;max-width:none;justify-items:center;padding:0;opacity:0;overscroll-behavior:contain;z-index:999;background-color:transparent;color:inherit;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);grid-column-start:1;grid-row-start:1;width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;box-shadow:#00000040 0 25px 50px -12px;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open]{pointer-events:auto;visibility:visible;opacity:1}:root:has(:is(.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open])){overflow:hidden;scrollbar-gutter:stable}.progress{position:relative;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-inline-start:1rem;padding-inline-end:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.tabs{display:grid;align-items:flex-end}.tabs-lifted:has(.tab-content[class^=rounded-]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])),.tabs-lifted:has(.tab-content[class*=" rounded-"]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])){border-bottom-color:transparent}.tab{position:relative;grid-row-start:1;display:inline-flex;height:2rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: var(--fallback-bc,oklch(var(--bc)/1));--tab-bg: var(--fallback-b1,oklch(var(--b1)/1));--tab-border-color: var(--fallback-b3,oklch(var(--b3)/1));color:var(--tab-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem)}.tab:is(input[type=radio]){width:auto;border-bottom-right-radius:0;border-bottom-left-radius:0}.tab:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.tab:not(input):empty{cursor:default;grid-column-start:span 9999}:checked+.tab-content:nth-child(2),:is(.tab-active,[aria-selected=true])+.tab-content:nth-child(2){border-start-start-radius:0px}input.tab:checked+.tab-content,:is(.tab-active,[aria-selected=true])+.tab-content{display:block}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: var(--fallback-b1,oklch(var(--b1)/1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;border-color:currentColor;background-color:currentColor;color:var(--fallback-bc,oklch(var(--bc)/.5));transition:background,box-shadow var(--animation-input, .2s) ease-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-warning{border-color:var(--fallback-wa,oklch(var(--wa)/.2));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));--alert-bg: var(--fallback-wa,oklch(var(--wa)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}@media (prefers-reduced-motion: no-preference){.btn{animation:button-pop var(--animation-btn, .25s) ease-out}}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0% 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary.btn-active{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0% 0 0)){.btn-primary{--btn-color: var(--p)}}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:disabled{border-width:0px;cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}.checkbox:checked,.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}details.collapse{width:100%}details.collapse summary{position:relative;display:block;outline:2px solid transparent;outline-offset:2px}details.collapse summary::-webkit-details-marker{display:none}.collapse:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse:has(.collapse-title:focus-visible),.collapse:has(>input[type=checkbox]:focus-visible),.collapse:has(>input[type=radio]:focus-visible){outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse-arrow>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;--tw-translate-y: -100%;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s;transition-duration:.2s;top:1.9rem;inset-inline-end:1.4rem;content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.collapse-plus>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;top:.9rem;inset-inline-end:1.4rem;content:"+";pointer-events:none}.collapse:not(.collapse-open):not(.collapse-close)>input[type=checkbox],.collapse:not(.collapse-open):not(.collapse-close)>input[type=radio]:not(:checked),.collapse:not(.collapse-open):not(.collapse-close)>.collapse-title{cursor:pointer}.collapse:focus:not(.collapse-open):not(.collapse-close):not(.collapse[open])>.collapse-title{cursor:unset}.collapse-title{position:relative}:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){z-index:1}.collapse-title,:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){width:100%;padding:1rem;padding-inline-end:3rem;min-height:3.75rem;transition:background-color .2s ease-out}.collapse[open]>:where(.collapse-content),.collapse-open>:where(.collapse-content),.collapse:focus:not(.collapse-close)>:where(.collapse-content),.collapse:not(.collapse-close)>:where(input[type=checkbox]:checked~.collapse-content),.collapse:not(.collapse-close)>:where(input[type=radio]:checked~.collapse-content){padding-bottom:1rem;transition:padding .2s ease-out,background-color .2s ease-out}.collapse[open].collapse-arrow>.collapse-title:after,.collapse-open.collapse-arrow>.collapse-title:after,.collapse-arrow:focus:not(.collapse-close)>.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{--tw-translate-y: -50%;--tw-rotate: 225deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.collapse[open].collapse-plus>.collapse-title:after,.collapse-open.collapse-plus>.collapse-title:after,.collapse-plus:focus:not(.collapse-close)>.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{content:"−"}.divider:not(:empty){gap:1rem}.drawer-toggle:checked~.drawer-side>.drawer-overlay{background-color:#0006}.drawer-toggle:focus-visible~.drawer-content label.drawer-button{outline-style:solid;outline-width:2px;outline-offset:2px}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));background-color:transparent}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:has(>input[disabled]),.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input:has(>input[disabled])::-moz-placeholder,.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])::placeholder,.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])>input[disabled]{cursor:not-allowed}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1)}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:""}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):is(summary):not(.active,.btn):focus-visible,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):is(summary):not(.active,.btn):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}.modal:not(dialog:not(.modal-open)),.modal::backdrop{background-color:#0006;animation:modal-pop .2s ease-out}.modal-backdrop{z-index:-1;grid-column-start:1;grid-row-start:1;display:grid;align-self:stretch;justify-self:stretch;color:transparent}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box,.modal[open] .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes modal-pop{0%{opacity:0}}.progress::-moz-progress-bar{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)))}.progress:indeterminate{--progress-color: var(--fallback-bc,oklch(var(--bc)/1));background-image:repeating-linear-gradient(90deg,var(--progress-color) -1%,var(--progress-color) 10%,transparent 10%,transparent 90%);background-size:200%;background-position-x:15%;animation:progress-loading 5s ease-in-out infinite}.progress::-webkit-progress-bar{border-radius:var(--rounded-box, 1rem);background-color:transparent}.progress::-webkit-progress-value{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)))}.progress:indeterminate::-moz-progress-bar{background-color:transparent;background-image:repeating-linear-gradient(90deg,var(--progress-color) -1%,var(--progress-color) 10%,transparent 10%,transparent 90%);background-size:200%;background-position-x:15%;animation:progress-loading 5s ease-in-out infinite}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}.tabs-lifted>.tab:focus-visible{border-end-end-radius:0;border-end-start-radius:0}.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tab:is(input:checked){border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-5px}.tab-disabled,.tab[disabled]{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.tabs-bordered>.tab{border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;border-style:solid;border-bottom-width:calc(var(--tab-border, 1px) + 1px)}.tabs-lifted>.tab{border:var(--tab-border, 1px) solid transparent;border-width:0 0 var(--tab-border, 1px) 0;border-start-start-radius:var(--tab-radius, .5rem);border-start-end-radius:var(--tab-radius, .5rem);border-bottom-color:var(--tab-border-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem);padding-top:var(--tab-border, 1px)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-lifted>.tab:is(input:checked){background-color:var(--tab-bg);border-width:var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);border-inline-start-color:var(--tab-border-color);border-inline-end-color:var(--tab-border-color);border-top-color:var(--tab-border-color);padding-inline-start:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-inline-end:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-bottom:var(--tab-border, 1px);padding-top:0}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked):before{z-index:1;content:"";display:block;position:absolute;width:calc(100% + var(--tab-radius, .5rem) * 2);height:var(--tab-radius, .5rem);bottom:0;background-size:var(--tab-radius, .5rem);background-position:top left,top right;background-repeat:no-repeat;--tab-grad: calc(69% - var(--tab-border, 1px));--radius-start: radial-gradient( circle at top left, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );--radius-end: radial-gradient( circle at top right, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );background-image:var(--radius-start),var(--radius-end)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,.tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-end);background-position:top right}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-start);background-position:top left}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,.tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-start);background-position:top left}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-end);background-position:top right}.tabs-lifted>:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled])+.tabs-lifted :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked)+.tabs-lifted .tab:is(input:checked):before{background-image:var(--radius-end);background-position:top right}.tabs-boxed{border-radius:var(--rounded-btn, .5rem);--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding:.25rem}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed :is(input:checked){--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table:where([dir=rtl],[dir=rtl] *){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead tr,tbody tr:not(:last-child),tbody tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.table :where(tfoot){border-top-width:1px;--tw-border-opacity: 1;border-top-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.toggle:hover{background-color:currentColor}.toggle:checked,.toggle[aria-checked=true]{background-image:none;--handleoffsetcalculator: var(--handleoffset);--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset, var(--handleoffsetcalculator) 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset}.artboard.phone-1.\!horizontal{width:568px!important;height:320px!important}.artboard.phone-1.horizontal,.artboard.phone-1.artboard-horizontal{width:568px;height:320px}.artboard.phone-2.\!horizontal{width:667px!important;height:375px!important}.artboard.phone-2.horizontal,.artboard.phone-2.artboard-horizontal{width:667px;height:375px}.artboard.phone-3.\!horizontal{width:736px!important;height:414px!important}.artboard.phone-3.horizontal,.artboard.phone-3.artboard-horizontal{width:736px;height:414px}.artboard.phone-4.\!horizontal{width:812px!important;height:375px!important}.artboard.phone-4.horizontal,.artboard.phone-4.artboard-horizontal{width:812px;height:375px}.artboard.phone-5.\!horizontal{width:896px!important;height:414px!important}.artboard.phone-5.horizontal,.artboard.phone-5.artboard-horizontal{width:896px;height:414px}.artboard.phone-6.\!horizontal{width:1024px!important;height:320px!important}.artboard.phone-6.horizontal,.artboard.phone-6.artboard-horizontal{width:1024px;height:320px}.badge-xs{height:.75rem;font-size:.75rem;line-height:.75rem;padding-left:.313rem;padding-right:.313rem}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-xs{height:1.5rem;min-height:1.5rem;padding-left:.5rem;padding-right:.5rem;font-size:.75rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.drawer-open>.drawer-toggle{display:none}.drawer-open>.drawer-toggle~.drawer-side{pointer-events:auto;visibility:visible;position:sticky;display:block;width:auto;overscroll-behavior:auto}.drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}[dir=rtl] .drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}.drawer-open>.drawer-toggle:checked~.drawer-side{pointer-events:auto;visibility:visible}.drawer-open>.drawer-side{overflow-y:auto}html:has(.drawer-toggle:checked){overflow-y:hidden;scrollbar-gutter:stable}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}.tabs-md :where(.tab){height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem}.tabs-lg :where(.tab){height:3rem;font-size:1.125rem;line-height:1.75rem;line-height:2;--tab-padding: 1.25rem}.tabs-sm :where(.tab){height:1.5rem;font-size:.875rem;line-height:.75rem;--tab-padding: .75rem}.tabs-xs :where(.tab){height:1.25rem;font-size:.75rem;line-height:.75rem;--tab-padding: .5rem}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))}.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip)}.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.tooltip-bottom:before{transform:translate(-50%);top:var(--tooltip-offset);left:50%;right:auto;bottom:auto}.tooltip-left:before{transform:translateY(-50%);top:50%;left:auto;right:var(--tooltip-offset);bottom:auto}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.drawer-open>.drawer-toggle~.drawer-side>.drawer-overlay{cursor:default;background-color:transparent}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-vertical>:where(*:not(:first-child)):is(.btn){margin-top:calc(var(--border-btn) * -1)}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join.join-horizontal>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1);margin-top:0}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0px;margin-top:1rem;padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.modal-top :where(.modal-box){width:100%;max-width:none;--tw-translate-y: -2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:0;border-top-right-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem)}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:0;border-bottom-left-radius:0}.table-xs :not(thead):not(tfoot) tr{font-size:.75rem;line-height:1rem}.table-xs :where(th,td){padding:.25rem .5rem}.table-sm :not(thead):not(tfoot) tr{font-size:.875rem;line-height:1.25rem}.table-sm :where(th,td){padding:.5rem .75rem}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: var(--fallback-n,oklch(var(--n)/1));--tooltip-text-color: var(--fallback-nc,oklch(var(--nc)/1));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail))}.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:"";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;white-space:normal;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before{opacity:1;transition-delay:75ms}.tooltip.tooltip-open:after{opacity:1;transition-delay:75ms}.tooltip:hover:before{opacity:1;transition-delay:75ms}.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.tooltip-bottom:after{transform:translate(-50%);border-color:transparent transparent var(--tooltip-color) transparent;top:var(--tooltip-tail-offset);left:50%;right:auto;bottom:auto}.tooltip-left:after{transform:translateY(-50%);border-color:transparent transparent transparent var(--tooltip-color);top:50%;left:auto;right:calc(var(--tooltip-tail-offset) + .0625rem);bottom:auto}.card,.collapse{border-radius:.75rem;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity, 1)));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-4{top:1rem}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.m-2{margin:.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.\!h-4{height:1rem!important}.h-0{height:0px}.h-12{height:3rem}.h-2{height:.5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-96{max-height:24rem}.\!w-8{width:2rem!important}.w-0{width:0px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-72{width:18rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[21rem\]{width:21rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-20{min-width:5rem}.min-w-24{min-width:6rem}.min-w-36{min-width:9rem}.min-w-4{min-width:1rem}.min-w-48{min-width:12rem}.max-w-64{max-width:16rem}.max-w-96{max-width:24rem}.max-w-\[32rem\]{max-width:32rem}.max-w-screen-md{max-width:768px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\[1px\]{gap:1px}.gap-\[2px\]{gap:2px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overscroll-y-none{overscroll-behavior-y:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border-base-content\/10{border-color:var(--fallback-bc,oklch(var(--bc)/.1))}.border-b-primary\/30{border-bottom-color:var(--fallback-p,oklch(var(--p)/.3))}.border-t-info\/30{border-top-color:var(--fallback-in,oklch(var(--in)/.3))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity, 1)))}.bg-base-100\/70{background-color:var(--fallback-b1,oklch(var(--b1)/.7))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.bg-base-200\/40{background-color:var(--fallback-b2,oklch(var(--b2)/.4))}.bg-base-300{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-high-latency{--tw-bg-opacity: 1;background-color:rgb(244 96 108 / var(--tw-bg-opacity, 1))}.bg-info\/60{background-color:var(--fallback-in,oklch(var(--in)/.6))}.bg-low-latency{--tw-bg-opacity: 1;background-color:rgb(52 189 109 / var(--tw-bg-opacity, 1))}.bg-medium-latency{--tw-bg-opacity: 1;background-color:rgb(250 210 75 / var(--tw-bg-opacity, 1))}.bg-neutral{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity, 1)))}.bg-primary{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity, 1)))}.bg-secondary{--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity, 1)))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-base-content{fill:var(--fallback-bc,oklch(var(--bc)/1))}.fill-primary{fill:var(--fallback-p,oklch(var(--p)/1))}.fill-primary-content{fill:var(--fallback-pc,oklch(var(--pc)/1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[1px\]{padding-top:1px;padding-bottom:1px}.pb-0{padding-bottom:0}.pb-12{padding-bottom:3rem}.pb-24{padding-bottom:6rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-FiraSans{font-family:Fira Sans,NotoEmoji,system-ui}.font-MiSans{font-family:MiSans-VF,NotoEmoji,system-ui}.font-PingFang{font-family:PingFangSC-Regular,NotoEmoji,system-ui}.font-SarasaUI{font-family:SarasaUiSC-Regular,NotoEmoji,system-ui}.font-SystemUI{font-family:NotoEmoji,system-ui}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-.025em}.text-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity, 1)))}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity, 1)))}.text-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity, 1)))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity, 1)))}.text-neutral-content{--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity, 1)))}.text-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity, 1)))}.text-primary-content{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity, 1)))}.text-primary\/60{color:var(--fallback-p,oklch(var(--p)/.6))}.text-primary\/80{color:var(--fallback-p,oklch(var(--p)/.8))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity, 1)))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-500{transition-duration:.5s}@font-face{font-family:NotoEmoji;src:url(./NotoColorEmoji-flagsonly-CWWDk9km.ttf) format("truetype")}.scrollbar-hidden::-webkit-scrollbar{display:none}.scrollbar-hidden{-ms-overflow-style:none;scrollbar-width:none}@media (min-width: 768px){.md\:drawer-open>.drawer-toggle{display:none}.md\:drawer-open>.drawer-toggle~.drawer-side{pointer-events:auto;visibility:visible;position:sticky;display:block;width:auto;overscroll-behavior:auto}.md\:drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}[dir=rtl] .md\:drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}.md\:drawer-open>.drawer-toggle:checked~.drawer-side{pointer-events:auto;visibility:visible}.md\:drawer-open>.drawer-side{overflow-y:auto}html:has(.md\:drawer-open.md\:drawer-open){overflow-y:auto;scrollbar-gutter:auto}.md\:tooltip-bottom:before{transform:translate(-50%);top:var(--tooltip-offset);left:50%;right:auto;bottom:auto}.md\:drawer-open>.drawer-toggle~.drawer-side>.drawer-overlay{cursor:default;background-color:transparent}.md\:tooltip-bottom:after{transform:translate(-50%);border-color:transparent transparent var(--tooltip-color) transparent;top:var(--tooltip-tail-offset);left:50%;right:auto;bottom:auto}}.hover\:\!bg-primary:hover{--tw-bg-opacity: 1 !important;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity, 1)))!important}.hover\:bg-base-200:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.hover\:text-primary-content:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity, 1)))}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media not all and (min-width: 640px){.max-sm\:hidden{display:none}.max-sm\:min-h-\[calc\(100\%\+1px\)\]{min-height:calc(100% + 1px)}.max-sm\:w-full{width:100%}.max-sm\:flex-1{flex:1 1 0%}.max-sm\:px-2{padding-left:.5rem;padding-right:.5rem}}@media (min-width: 640px){.sm\:inline{display:inline}.sm\:hidden{display:none}.sm\:max-w-80{max-width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:gap-2{gap:.5rem}.sm\:gap-4{gap:1rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\:hover\:bg-base-300:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}}@media (min-width: 768px){.md\:relative{position:relative}.md\:inline{display:inline}.md\:hidden{display:none}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:inline{display:inline}.lg\:flex{display:flex}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-col{flex-direction:column}}@media (min-width: 1280px){.xl\:inline{display:inline}.xl\:flex{display:flex}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}@media (min-width: 1536px){.\32xl\:inline{display:inline}.\32xl\:flex{display:flex}.\32xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\32xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\32xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}@media (min-width: 1792px){.\33xl\:flex{display:flex}.\33xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\33xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\33xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\33xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\33xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\33xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}.\[\&\>\*\]\:h-2>*{height:.5rem}.vjs-tree-brackets{cursor:pointer}.vjs-tree-brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller-inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-checkbox:after{-webkit-transform:rotate(45deg) scaleY(1);transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-radio:after{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller-inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;-webkit-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller-inner:after{-webkit-box-sizing:content-box;box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;-webkit-transform:rotate(45deg) scaleY(0);transform:rotate(45deg) scaleY(0);width:4px;-webkit-transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s,-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;-webkit-transform-origin:center;transform-origin:center}.vjs-check-controller .vjs-check-controller-inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller-inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller-original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-carets{position:absolute;right:0;cursor:pointer}.vjs-carets svg{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vjs-carets:hover{color:#1890ff}.vjs-carets-close{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.vjs-tree-node{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;line-height:20px}.vjs-tree-node.has-carets{padding-left:15px}.vjs-tree-node.has-carets.has-selector,.vjs-tree-node.has-selector{padding-left:30px}.vjs-tree-node.is-highlight,.vjs-tree-node:hover{background-color:#e6f7ff}.vjs-tree-node .vjs-indent{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.vjs-tree-node .vjs-indent-unit{width:1em}.vjs-tree-node .vjs-indent-unit.has-line{border-left:1px dashed #bfcbd9}.vjs-tree-node.dark.is-highlight,.vjs-tree-node.dark:hover{background-color:#2e4558}.vjs-node-index{position:absolute;right:100%;margin-right:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vjs-colon{white-space:pre}.vjs-comment{color:#bfcbd9}.vjs-value{word-break:break-word}.vjs-value-null,.vjs-value-undefined{color:#d55fde}.vjs-value-boolean,.vjs-value-number{color:#1d8ce0}.vjs-value-string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px;text-align:left}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree-node{white-space:nowrap}.tooltip[data-v-ed6a81e8]:before{width:200px}.tooltip[data-v-f63636b0]:before{z-index:20}.grid[data-v-f39f6eaa]{scrollbar-width:thin} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0% 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}*{scrollbar-color:color-mix(in oklch,currentColor 35%,transparent) transparent}*:hover{scrollbar-color:color-mix(in oklch,currentColor 60%,transparent) transparent}:root{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}}[data-theme=light]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 89.824% .06192 275.75;--ac: 15.352% .0368 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 49.12% .3096 275.75;--s: 69.71% .329 342.55;--sc: 98.71% .0106 342.55;--a: 76.76% .184 183.61;--n: 32.1785% .02476 255.701624;--nc: 89.4994% .011585 252.096176;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.4169% .00108 197.137559;--bc: 27.8078% .029596 256.847952}[data-theme=dark]{color-scheme:dark;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 13.138% .0392 275.75;--sc: 14.96% .052 342.55;--ac: 14.902% .0334 183.61;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 65.69% .196 275.75;--s: 74.8% .26 342.55;--a: 74.51% .167 183.61;--n: 31.3815% .021108 254.139175;--nc: 74.6477% .0216 264.435964;--b1: 25.3267% .015896 252.417568;--b2: 23.2607% .013807 253.100675;--b3: 21.1484% .01165 254.087939;--bc: 74.6477% .0216 264.435964}[data-theme=cupcake]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 15.2344% .017892 200.026556;--sc: 15.787% .020249 356.29965;--ac: 15.8762% .029206 78.618794;--nc: 84.7148% .013247 313.189598;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: 76.172% .089459 200.026556;--s: 78.9351% .101246 356.29965;--a: 79.3811% .146032 78.618794;--n: 23.5742% .066235 313.189598;--b1: 97.7882% .00418 56.375637;--b2: 93.9822% .007638 61.449292;--b3: 91.5861% .006811 53.440502;--bc: 23.5742% .066235 313.189598;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .7rem}[data-theme=bumblebee]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 20% 0 0;--ac: 16.254% .0314 56.52;--nc: 82.55% .015 281.99;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 89.51% .2132 96.61;--pc: 38.92% .046 96.61;--s: 80.39% .194 70.76;--sc: 39.38% .068 70.76;--a: 81.27% .157 56.52;--n: 12.75% .075 281.99;--b1: 100% 0 0}[data-theme=emerald]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 76.6626% .135433 153.450024;--pc: 33.3872% .040618 162.240129;--s: 61.3028% .202368 261.294233;--sc: 100% 0 0;--a: 72.7725% .149783 33.200363;--ac: 0% 0 0;--n: 35.5192% .032071 262.988584;--nc: 98.4625% .001706 247.838921;--b1: 100% 0 0;--bc: 35.5192% .032071 262.988584;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=corporate]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 12.078% .0456 269.1;--sc: 13.0739% .010951 256.688055;--ac: 15.3934% .022799 163.57888;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--border-btn: 1px;--tab-border: 1px;--p: 60.39% .228 269.1;--s: 65.3694% .054756 256.688055;--a: 76.9669% .113994 163.57888;--n: 22.3899% .031305 278.07229;--nc: 95.8796% .008588 247.915135;--b1: 100% 0 0;--bc: 22.3899% .031305 278.07229;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--tab-radius: .25rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=synthwave]{color-scheme:dark;--b2: 20.2941% .076211 287.835609;--b3: 18.7665% .070475 287.835609;--pc: 14.4421% .031903 342.009383;--sc: 15.6543% .02362 227.382405;--ac: 17.608% .0412 93.72;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 72.2105% .159514 342.009383;--s: 78.2714% .118101 227.382405;--a: 88.04% .206 93.72;--n: 25.5554% .103537 286.507967;--nc: 97.9365% .00819 301.358346;--b1: 21.8216% .081948 287.835609;--bc: 97.9365% .00819 301.358346;--in: 76.5197% .12273 231.831603;--inc: 23.5017% .096418 290.329844;--su: 86.0572% .115038 178.624677;--suc: 23.5017% .096418 290.329844;--wa: 85.531% .122117 93.722227;--wac: 23.5017% .096418 290.329844;--er: 73.7005% .121339 32.639257;--erc: 23.5017% .096418 290.329844}[data-theme=retro]{color-scheme:light;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 13.144% .0398 27.33;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 76.8664% .104092 22.664655;--pc: 26.5104% .006243 .522862;--s: 80.7415% .052534 159.094608;--sc: 26.5104% .006243 .522862;--a: 70.3919% .125455 52.953428;--ac: 26.5104% .006243 .522862;--n: 28.4181% .009519 355.534017;--nc: 92.5604% .025113 89.217311;--b1: 91.6374% .034554 90.51575;--b2: 88.2722% .049418 91.774344;--b3: 84.133% .065952 90.856665;--bc: 26.5104% .006243 .522862;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 65.72% .199 27.33;--rounded-box: .4rem;--rounded-btn: .4rem;--rounded-badge: .4rem;--tab-radius: .4rem}[data-theme=cyberpunk]{color-scheme:light;--b2: 87.8943% .16647 104.32;--b3: 81.2786% .15394 104.32;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 18.902% .0358 104.32;--pc: 14.844% .0418 6.35;--sc: 16.666% .0368 204.72;--ac: 14.372% .04352 310.43;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;--p: 74.22% .209 6.35;--s: 83.33% .184 204.72;--a: 71.86% .2176 310.43;--n: 23.04% .065 269.31;--nc: 94.51% .179 104.32;--b1: 94.51% .179 104.32;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--tab-radius: 0}[data-theme=valentine]{color-scheme:light;--b2: 88.0567% .024834 337.06289;--b3: 81.4288% .022964 337.06289;--pc: 13.7239% .030755 15.066527;--sc: 14.3942% .029258 293.189609;--ac: 14.2537% .014961 197.828857;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 14.614% .0414 27.33;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 68.6197% .153774 15.066527;--s: 71.971% .14629 293.189609;--a: 71.2685% .074804 197.828857;--n: 54.6053% .143342 358.004839;--nc: 90.2701% .037202 336.955191;--b1: 94.6846% .026703 337.06289;--bc: 37.3085% .081131 4.606426;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 73.07% .207 27.33;--rounded-btn: 1.9rem;--tab-radius: .7rem}[data-theme=halloween]{color-scheme:dark;--b2: 23.0416% 0 0;--b3: 21.3072% 0 0;--bc: 84.9552% 0 0;--sc: 89.196% .0496 305.03;--nc: 84.8742% .009322 65.681484;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 13.144% .0398 27.33;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 77.48% .204 60.62;--pc: 19.6935% .004671 196.779412;--s: 45.98% .248 305.03;--a: 64.8% .223 136.073479;--ac: 0% 0 0;--n: 24.371% .046608 65.681484;--b1: 24.7759% 0 0;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 65.72% .199 27.33}[data-theme=garden]{color-scheme:light;--b2: 86.4453% .002011 17.197414;--b3: 79.9386% .00186 17.197414;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--sc: 89.699% .022197 355.095988;--ac: 11.2547% .010859 154.390187;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 62.45% .278 3.83636;--pc: 100% 0 0;--s: 48.4952% .110985 355.095988;--a: 56.2735% .054297 154.390187;--n: 24.1559% .049362 89.070594;--nc: 92.9519% .002163 17.197414;--b1: 92.9519% .002163 17.197414;--bc: 16.9617% .001664 17.32068}[data-theme=forest]{color-scheme:dark;--b2: 17.522% .007709 17.911578;--b3: 16.2032% .007129 17.911578;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 83.7682% .001658 17.911578;--sc: 13.9553% .027077 168.327128;--ac: 14.1257% .02389 185.713193;--nc: 86.1397% .007806 171.364646;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 68.6283% .185567 148.958922;--pc: 0% 0 0;--s: 69.7764% .135385 168.327128;--a: 70.6285% .119451 185.713193;--n: 30.6985% .039032 171.364646;--b1: 18.8409% .00829 17.911578;--rounded-btn: 1.9rem}[data-theme=aqua]{color-scheme:dark;--b2: 45.3464% .118611 261.181672;--b3: 41.9333% .109683 261.181672;--bc: 89.7519% .025508 261.181672;--sc: 12.1365% .02175 309.782946;--ac: 18.6854% .020445 94.555431;--nc: 12.2124% .023402 243.760661;--inc: 90.923% .043042 262.880917;--suc: 12.541% .033982 149.213788;--wac: 13.3168% .031484 58.31834;--erc: 14.79% .038 27.33;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 85.6617% .14498 198.6458;--pc: 40.1249% .068266 197.603872;--s: 60.6827% .108752 309.782946;--a: 93.4269% .102225 94.555431;--n: 61.0622% .117009 243.760661;--b1: 48.7596% .127539 261.181672;--in: 54.615% .215208 262.880917;--su: 62.7052% .169912 149.213788;--wa: 66.584% .157422 58.31834;--er: 73.95% .19 27.33}[data-theme=lofi]{color-scheme:light;--inc: 15.908% .0206 205.9;--suc: 18.026% .0306 164.14;--wac: 17.674% .027 79.94;--erc: 15.732% .03 28.47;--border-btn: 1px;--tab-border: 1px;--p: 15.9066% 0 0;--pc: 100% 0 0;--s: 21.455% .001566 17.278957;--sc: 100% 0 0;--a: 26.8618% 0 0;--ac: 100% 0 0;--n: 0% 0 0;--nc: 100% 0 0;--b1: 100% 0 0;--b2: 96.1151% 0 0;--b3: 92.268% .001082 17.17934;--bc: 0% 0 0;--in: 79.54% .103 205.9;--su: 90.13% .153 164.14;--wa: 88.37% .135 79.94;--er: 78.66% .15 28.47;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem;--tab-radius: .125rem;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1}[data-theme=pastel]{color-scheme:light;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--bc: 20% 0 0;--pc: 16.6166% .006979 316.8737;--sc: 17.6153% .009839 8.688364;--ac: 17.8419% .012056 170.923263;--nc: 14.2681% .014702 228.183906;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 83.0828% .034896 316.8737;--s: 88.0763% .049197 8.688364;--a: 89.2096% .06028 170.923263;--n: 71.3406% .07351 228.183906;--b1: 100% 0 0;--b2: 98.4625% .001706 247.838921;--b3: 87.1681% .009339 258.338227;--rounded-btn: 1.9rem;--tab-radius: .7rem}[data-theme=fantasy]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--in: 72.06% .191 231.6;--su: 64.8% .15 160;--wa: 84.71% .199 83.87;--er: 71.76% .221 22.18;--pc: 87.49% .0378 325.02;--sc: 90.784% .0324 241.36;--ac: 15.196% .0408 56.72;--nc: 85.5616% .005919 256.847952;--inc: 0% 0 0;--suc: 0% 0 0;--wac: 0% 0 0;--erc: 0% 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 37.45% .189 325.02;--s: 53.92% .162 241.36;--a: 75.98% .204 56.72;--n: 27.8078% .029596 256.847952;--b1: 100% 0 0;--bc: 27.8078% .029596 256.847952}[data-theme=wireframe]{color-scheme:light;--bc: 20% 0 0;--pc: 15.6521% 0 0;--sc: 15.6521% 0 0;--ac: 15.6521% 0 0;--nc: 18.8014% 0 0;--inc: 89.0403% .062643 264.052021;--suc: 90.395% .035372 142.495339;--wac: 14.1626% .019994 108.702381;--erc: 12.5591% .051537 29.233885;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;font-family:Chalkboard,comic sans ms,"sans-serif";--p: 78.2604% 0 0;--s: 78.2604% 0 0;--a: 78.2604% 0 0;--n: 94.007% 0 0;--b1: 100% 0 0;--b2: 94.9119% 0 0;--b3: 89.7547% 0 0;--in: 45.2014% .313214 264.052021;--su: 51.9752% .176858 142.495339;--wa: 70.8131% .099969 108.702381;--er: 62.7955% .257683 29.233885;--rounded-box: .2rem;--rounded-btn: .2rem;--rounded-badge: .2rem;--tab-radius: .2rem}[data-theme=black]{color-scheme:dark;--pc: 86.736% 0 0;--sc: 86.736% 0 0;--ac: 86.736% 0 0;--nc: 86.736% 0 0;--inc: 89.0403% .062643 264.052021;--suc: 90.395% .035372 142.495339;--wac: 19.3597% .042201 109.769232;--erc: 12.5591% .051537 29.233885;--border-btn: 1px;--tab-border: 1px;--p: 33.6799% 0 0;--s: 33.6799% 0 0;--a: 33.6799% 0 0;--b1: 0% 0 0;--b2: 19.1251% 0 0;--b3: 26.8618% 0 0;--bc: 87.6096% 0 0;--n: 33.6799% 0 0;--in: 45.2014% .313214 264.052021;--su: 51.9752% .176858 142.495339;--wa: 96.7983% .211006 109.769232;--er: 62.7955% .257683 29.233885;--rounded-box: 0;--rounded-btn: 0;--rounded-badge: 0;--animation-btn: 0;--animation-input: 0;--btn-focus-scale: 1;--tab-radius: 0}[data-theme=luxury]{color-scheme:dark;--pc: 20% 0 0;--sc: 85.5163% .012821 261.069149;--ac: 87.3349% .010348 338.82597;--inc: 15.8122% .024356 237.133883;--suc: 15.6239% .038579 132.154381;--wac: 17.2255% .027305 102.89115;--erc: 14.3506% .035271 22.568916;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 100% 0 0;--s: 27.5815% .064106 261.069149;--a: 36.6744% .051741 338.82597;--n: 24.27% .057015 59.825019;--nc: 93.2033% .089631 90.861683;--b1: 14.0765% .004386 285.822869;--b2: 20.2191% .004211 308.22937;--b3: 29.8961% .003818 308.318612;--bc: 75.6879% .123666 76.890484;--in: 79.0612% .121778 237.133883;--su: 78.1197% .192894 132.154381;--wa: 86.1274% .136524 102.89115;--er: 71.7531% .176357 22.568916}[data-theme=dracula]{color-scheme:dark;--b2: 26.8053% .020556 277.508664;--b3: 24.7877% .019009 277.508664;--pc: 15.0922% .036614 346.812432;--sc: 14.8405% .029709 301.883095;--ac: 16.6785% .024826 66.558491;--nc: 87.8891% .006515 275.524078;--inc: 17.6526% .018676 212.846491;--suc: 17.4199% .043903 148.024881;--wac: 19.1068% .026849 112.757109;--erc: 13.6441% .041266 24.430965;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 75.4611% .18307 346.812432;--s: 74.2023% .148546 301.883095;--a: 83.3927% .124132 66.558491;--n: 39.4456% .032576 275.524078;--b1: 28.8229% .022103 277.508664;--bc: 97.7477% .007913 106.545019;--in: 88.263% .09338 212.846491;--su: 87.0995% .219516 148.024881;--wa: 95.5338% .134246 112.757109;--er: 68.2204% .206328 24.430965}[data-theme=cmyk]{color-scheme:light;--b2: 93% 0 0;--b3: 86% 0 0;--bc: 20% 0 0;--pc: 14.3544% .02666 239.443325;--sc: 12.8953% .040552 359.339283;--ac: 18.8458% .037948 105.306968;--nc: 84.3557% 0 0;--inc: 13.6952% .0189 217.284104;--suc: 89.3898% .032505 321.406278;--wac: 14.2473% .031969 52.023412;--erc: 12.4027% .041677 28.717543;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 71.7722% .133298 239.443325;--s: 64.4766% .202758 359.339283;--a: 94.2289% .189741 105.306968;--n: 21.7787% 0 0;--b1: 100% 0 0;--in: 68.4759% .094499 217.284104;--su: 46.949% .162524 321.406278;--wa: 71.2364% .159843 52.023412;--er: 62.0133% .208385 28.717543}[data-theme=autumn]{color-scheme:light;--b2: 89.1077% 0 0;--b3: 82.4006% 0 0;--bc: 19.1629% 0 0;--pc: 88.1446% .032232 17.530175;--sc: 12.3353% .033821 23.865865;--ac: 14.6851% .018999 60.729616;--nc: 90.8734% .007475 51.902819;--inc: 13.8449% .019596 207.284192;--suc: 12.199% .016032 174.616213;--wac: 14.0163% .032982 56.844303;--erc: 90.614% .0482 24.16;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 40.7232% .16116 17.530175;--s: 61.6763% .169105 23.865865;--a: 73.4253% .094994 60.729616;--n: 54.3672% .037374 51.902819;--b1: 95.8147% 0 0;--in: 69.2245% .097979 207.284192;--su: 60.9951% .080159 174.616213;--wa: 70.0817% .164909 56.844303;--er: 53.07% .241 24.16}[data-theme=business]{color-scheme:dark;--b2: 22.6487% 0 0;--b3: 20.944% 0 0;--bc: 84.8707% 0 0;--pc: 88.3407% .019811 251.473931;--sc: 12.8185% .005481 229.389418;--ac: 13.4542% .033545 35.791525;--nc: 85.4882% .00265 253.041249;--inc: 12.5233% .028702 240.033697;--suc: 14.0454% .018919 156.59611;--wac: 15.4965% .023141 81.519177;--erc: 90.3221% .029356 29.674507;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 41.7036% .099057 251.473931;--s: 64.0924% .027405 229.389418;--a: 67.271% .167726 35.791525;--n: 27.441% .01325 253.041249;--b1: 24.3535% 0 0;--in: 62.6163% .143511 240.033697;--su: 70.2268% .094594 156.59611;--wa: 77.4824% .115704 81.519177;--er: 51.6105% .14678 29.674507;--rounded-box: .25rem;--rounded-btn: .125rem;--rounded-badge: .125rem}[data-theme=acid]{color-scheme:light;--b2: 91.6146% 0 0;--b3: 84.7189% 0 0;--bc: 19.7021% 0 0;--pc: 14.38% .0714 330.759573;--sc: 14.674% .0448 48.250878;--ac: 18.556% .0528 122.962951;--nc: 84.262% .0256 278.68;--inc: 12.144% .0454 252.05;--suc: 17.144% .0532 158.53;--wac: 18.202% .0424 100.5;--erc: 12.968% .0586 29.349188;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 71.9% .357 330.759573;--s: 73.37% .224 48.250878;--a: 92.78% .264 122.962951;--n: 21.31% .128 278.68;--b1: 98.5104% 0 0;--in: 60.72% .227 252.05;--su: 85.72% .266 158.53;--wa: 91.01% .212 100.5;--er: 64.84% .293 29.349188;--rounded-box: 1.25rem;--rounded-btn: 1rem;--rounded-badge: 1rem;--tab-radius: .7rem}[data-theme=lemonade]{color-scheme:light;--b2: 91.8003% .0186 123.72;--b3: 84.8906% .0172 123.72;--bc: 19.742% .004 123.72;--pc: 11.784% .0398 134.6;--sc: 15.55% .0392 111.09;--ac: 17.078% .0402 100.73;--nc: 86.196% .015 108.6;--inc: 17.238% .0094 224.14;--suc: 17.238% .0094 157.85;--wac: 17.238% .0094 102.15;--erc: 17.238% .0094 25.85;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 58.92% .199 134.6;--s: 77.75% .196 111.09;--a: 85.39% .201 100.73;--n: 30.98% .075 108.6;--b1: 98.71% .02 123.72;--in: 86.19% .047 224.14;--su: 86.19% .047 157.85;--wa: 86.19% .047 102.15;--er: 86.19% .047 25.85}[data-theme=night]{color-scheme:dark;--b2: 19.3144% .037037 265.754874;--b3: 17.8606% .034249 265.754874;--bc: 84.1536% .007965 265.754874;--pc: 15.0703% .027798 232.66148;--sc: 13.6023% .031661 276.934902;--ac: 14.4721% .035244 350.048739;--nc: 85.5899% .00737 260.030984;--suc: 15.6904% .026506 181.911977;--wac: 16.6486% .027912 82.95003;--erc: 14.3572% .034051 13.11834;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 75.3513% .138989 232.66148;--s: 68.0113% .158303 276.934902;--a: 72.3603% .176218 350.048739;--n: 27.9495% .036848 260.030984;--b1: 20.7682% .039824 265.754874;--in: 68.4553% .148062 237.25135;--inc: 0% 0 0;--su: 78.452% .132529 181.911977;--wa: 83.2428% .139558 82.95003;--er: 71.7858% .170255 13.11834}[data-theme=coffee]{color-scheme:dark;--b2: 20.1585% .021457 329.708637;--b3: 18.6412% .019842 329.708637;--pc: 14.3993% .024765 62.756393;--sc: 86.893% .00597 199.19444;--ac: 88.5243% .014881 224.389184;--nc: 83.3022% .003149 326.261446;--inc: 15.898% .012774 184.558367;--suc: 14.9445% .014491 131.116276;--wac: 17.6301% .028162 87.722413;--erc: 15.4637% .025644 31.871922;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 71.9967% .123825 62.756393;--s: 34.465% .029849 199.19444;--a: 42.6213% .074405 224.389184;--n: 16.5109% .015743 326.261446;--b1: 21.6758% .023072 329.708637;--bc: 72.3547% .092794 79.129387;--in: 79.4902% .063869 184.558367;--su: 74.7224% .072456 131.116276;--wa: 88.1503% .140812 87.722413;--er: 77.3187% .12822 31.871922}[data-theme=winter]{color-scheme:light;--pc: 91.372% .051 257.57;--sc: 88.5103% .03222 282.339433;--ac: 11.988% .038303 335.171434;--nc: 83.9233% .012704 257.651965;--inc: 17.6255% .017178 214.515264;--suc: 16.0988% .015404 197.823719;--wac: 17.8345% .009167 71.47031;--erc: 14.6185% .022037 20.076293;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 56.86% .255 257.57;--s: 42.5516% .161098 282.339433;--a: 59.9398% .191515 335.171434;--n: 19.6166% .063518 257.651965;--b1: 100% 0 0;--b2: 97.4663% .011947 259.822565;--b3: 93.2686% .016223 262.751375;--bc: 41.8869% .053885 255.824911;--in: 88.1275% .085888 214.515264;--su: 80.4941% .077019 197.823719;--wa: 89.1725% .045833 71.47031;--er: 73.0926% .110185 20.076293}[data-theme=dim]{color-scheme:dark;--pc: 17.2267% .028331 139.549991;--sc: 14.6752% .033181 35.353059;--ac: 14.8459% .026728 311.37924;--inc: 17.2157% .028409 206.182959;--suc: 17.2343% .028437 166.534048;--wac: 17.2327% .028447 94.818679;--erc: 16.4838% .019914 33.756357;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 86.1335% .141656 139.549991;--s: 73.3759% .165904 35.353059;--a: 74.2296% .133641 311.37924;--n: 24.7311% .020483 264.094728;--nc: 82.9011% .031335 222.959324;--b1: 30.8577% .023243 264.149498;--b2: 28.0368% .01983 264.182074;--b3: 26.3469% .018403 262.177739;--bc: 82.9011% .031335 222.959324;--in: 86.0785% .142046 206.182959;--su: 86.1717% .142187 166.534048;--wa: 86.1634% .142236 94.818679;--er: 82.4189% .09957 33.756357}[data-theme=nord]{color-scheme:light;--pc: 11.8872% .015449 254.027774;--sc: 13.9303% .011822 248.687186;--ac: 15.4929% .01245 217.469017;--inc: 13.8414% .012499 332.664922;--suc: 15.3654% .01498 131.063061;--wac: 17.0972% .017847 84.093335;--erc: 12.122% .024119 15.341883;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 59.4359% .077246 254.027774;--s: 69.6516% .059108 248.687186;--a: 77.4643% .062249 217.469017;--n: 45.229% .035214 264.1312;--nc: 89.9258% .016374 262.749256;--b1: 95.1276% .007445 260.731539;--b2: 93.2996% .010389 261.788485;--b3: 89.9258% .016374 262.749256;--bc: 32.4374% .022945 264.182036;--in: 69.2072% .062496 332.664922;--su: 76.827% .074899 131.063061;--wa: 85.4862% .089234 84.093335;--er: 60.61% .120594 15.341883;--rounded-box: .4rem;--rounded-btn: .2rem;--rounded-badge: .4rem;--tab-radius: .2rem}[data-theme=sunset]{color-scheme:dark;--pc: 14.9408% .031656 39.94703;--sc: 14.5075% .035531 2.72034;--ac: 14.2589% .033336 299.844533;--inc: 17.1119% .017054 206.015183;--suc: 17.1122% .017172 144.77874;--wac: 17.1139% .016961 74.427797;--erc: 17.1023% .015778 16.886379;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--p: 74.7039% .158278 39.94703;--s: 72.5375% .177654 2.72034;--a: 71.2947% .166678 299.844533;--n: 26% .019 237.69;--nc: 70% .019 237.69;--b1: 22% .019 237.69;--b2: 20% .019 237.69;--b3: 18% .019 237.69;--bc: 77.3835% .043586 245.096534;--in: 85.5596% .085271 206.015183;--su: 85.5609% .08586 144.77874;--wa: 85.5695% .084806 74.427797;--er: 85.5116% .07889 16.886379;--rounded-box: 1.2rem;--rounded-btn: .8rem;--rounded-badge: .4rem;--tab-radius: .7rem}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}@media (hover:hover){.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.tab:hover{--tw-text-opacity: 1}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):hover,.tabs-boxed :is(input:checked):hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity));--tw-bg-opacity: 1;--tw-border-opacity: 1}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.collapse:not(td):not(tr):not(colgroup){visibility:visible}.collapse{position:relative;display:grid;overflow:hidden;grid-template-rows:auto 0fr;transition:grid-template-rows .2s;width:100%;border-radius:var(--rounded-box, 1rem)}.collapse-title,.collapse>input[type=checkbox],.collapse>input[type=radio],.collapse-content{grid-column-start:1;grid-row-start:1}.collapse>input[type=checkbox],.collapse>input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.collapse-content{visibility:hidden;grid-column-start:1;grid-row-start:2;min-height:0px;transition:visibility .2s;transition:padding .2s ease-out,background-color .2s ease-out;padding-left:1rem;padding-right:1rem;cursor:unset}.collapse[open],.collapse-open,.collapse:focus:not(.collapse-close){grid-template-rows:auto 1fr}.collapse:not(.collapse-close):has(>input[type=checkbox]:checked),.collapse:not(.collapse-close):has(>input[type=radio]:checked){grid-template-rows:auto 1fr}.collapse[open]>.collapse-content,.collapse-open>.collapse-content,.collapse:focus:not(.collapse-close)>.collapse-content,.collapse:not(.collapse-close)>input[type=checkbox]:checked~.collapse-content,.collapse:not(.collapse-close)>input[type=radio]:checked~.collapse-content{visibility:visible;min-height:-moz-fit-content;min-height:fit-content}.divider{display:flex;flex-direction:row;align-items:center;align-self:stretch;margin-top:1rem;margin-bottom:1rem;height:1rem;white-space:nowrap}.divider:before,.divider:after{height:.125rem;width:100%;flex-grow:1;--tw-content: "";content:var(--tw-content);background-color:var(--fallback-bc,oklch(var(--bc)/.1))}.drawer{position:relative;display:grid;grid-auto-columns:max-content auto;width:100%}.drawer-content{grid-column-start:2;grid-row-start:1;min-width:0px}.drawer-side{pointer-events:none;position:fixed;inset-inline-start:0px;top:0;grid-column-start:1;grid-row-start:1;display:grid;width:100%;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr));align-items:flex-start;justify-items:start;overflow-x:hidden;overflow-y:hidden;overscroll-behavior:contain;height:100vh;height:100dvh}.drawer-side>.drawer-overlay{position:sticky;top:0;place-self:stretch;cursor:pointer;background-color:transparent;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.drawer-side>*{grid-column-start:1;grid-row-start:1}.drawer-side>*:not(.drawer-overlay){transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;will-change:transform;transform:translate(-100%)}[dir=rtl] .drawer-side>*:not(.drawer-overlay){transform:translate(100%)}.drawer-toggle{position:fixed;height:0px;width:0px;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.drawer-toggle:checked~.drawer-side{pointer-events:auto;visibility:visible;overflow-y:auto}.drawer-toggle:checked~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}.drawer-end>.drawer-toggle~.drawer-content{grid-column-start:1}.drawer-end>.drawer-toggle~.drawer-side{grid-column-start:2;justify-items:end}.drawer-end>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(100%)}[dir=rtl] .drawer-end>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(-100%)}.drawer-end>.drawer-toggle:checked~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}@media (hover: hover){.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn:hover{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1)) 90%,black)}}@supports not (color: oklch(0% 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0% 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary:hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}@supports (color: color-mix(in oklab,black,black)){.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0% 0 0)){:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(.active,.btn):hover,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(.active,.btn):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}.tab[disabled],.tab[disabled]:hover{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.input[type=number]::-webkit-inner-spin-button,.input-md[type=number]::-webkit-inner-spin-button{margin-top:-1rem;margin-bottom:-1rem;margin-inline-end:-1rem}.input-sm[type=number]::-webkit-inner-spin-button{margin-top:0;margin-bottom:0;margin-inline-end:-0px}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.link{cursor:pointer;text-decoration-line:underline}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.modal{pointer-events:none;position:fixed;top:0;right:0;bottom:0;left:0;margin:0;display:grid;height:100%;max-height:none;width:100%;max-width:none;justify-items:center;padding:0;opacity:0;overscroll-behavior:contain;z-index:999;background-color:transparent;color:inherit;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);grid-column-start:1;grid-row-start:1;width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;box-shadow:#00000040 0 25px 50px -12px;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open]{pointer-events:auto;visibility:visible;opacity:1}:root:has(:is(.modal-open,.modal:target,.modal-toggle:checked+.modal,.modal[open])){overflow:hidden;scrollbar-gutter:stable}.progress{position:relative;width:100%;-webkit-appearance:none;-moz-appearance:none;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem);background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-inline-start:1rem;padding-inline-end:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.tabs{display:grid;align-items:flex-end}.tabs-lifted:has(.tab-content[class^=rounded-]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])),.tabs-lifted:has(.tab-content[class*=" rounded-"]) .tab:first-child:not(:is(.tab-active,[aria-selected=true])){border-bottom-color:transparent}.tab{position:relative;grid-row-start:1;display:inline-flex;height:2rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem;--tw-text-opacity: .5;--tab-color: var(--fallback-bc,oklch(var(--bc)/1));--tab-bg: var(--fallback-b1,oklch(var(--b1)/1));--tab-border-color: var(--fallback-b3,oklch(var(--b3)/1));color:var(--tab-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem)}.tab:is(input[type=radio]){width:auto;border-bottom-right-radius:0;border-bottom-left-radius:0}.tab:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.tab:not(input):empty{cursor:default;grid-column-start:span 9999}:checked+.tab-content:nth-child(2),:is(.tab-active,[aria-selected=true])+.tab-content:nth-child(2){border-start-start-radius:0px}input.tab:checked+.tab-content,:is(.tab-active,[aria-selected=true])+.tab-content{display:block}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.toggle{flex-shrink:0;--tglbg: var(--fallback-b1,oklch(var(--b1)/1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;border-color:currentColor;background-color:currentColor;color:var(--fallback-bc,oklch(var(--bc)/.5));transition:background,box-shadow var(--animation-input, .2s) ease-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-warning{border-color:var(--fallback-wa,oklch(var(--wa)/.2));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)));--alert-bg: var(--fallback-wa,oklch(var(--wa)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.btm-nav>*:where(.active){border-top-width:2px;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}@media (prefers-reduced-motion: no-preference){.btn{animation:button-pop var(--animation-btn, .25s) ease-out}}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0% 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary.btn-active{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0% 0 0)){.btn-primary{--btn-color: var(--p)}}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:disabled{border-width:0px;cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}.checkbox:checked,.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}details.collapse{width:100%}details.collapse summary{position:relative;display:block;outline:2px solid transparent;outline-offset:2px}details.collapse summary::-webkit-details-marker{display:none}.collapse:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse:has(.collapse-title:focus-visible),.collapse:has(>input[type=checkbox]:focus-visible),.collapse:has(>input[type=radio]:focus-visible){outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.collapse-arrow>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;--tw-translate-y: -100%;--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.15s;transition-duration:.2s;top:1.9rem;inset-inline-end:1.4rem;content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.collapse-plus>.collapse-title:after{position:absolute;display:block;height:.5rem;width:.5rem;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;top:.9rem;inset-inline-end:1.4rem;content:"+";pointer-events:none}.collapse:not(.collapse-open):not(.collapse-close)>input[type=checkbox],.collapse:not(.collapse-open):not(.collapse-close)>input[type=radio]:not(:checked),.collapse:not(.collapse-open):not(.collapse-close)>.collapse-title{cursor:pointer}.collapse:focus:not(.collapse-open):not(.collapse-close):not(.collapse[open])>.collapse-title{cursor:unset}.collapse-title{position:relative}:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){z-index:1}.collapse-title,:where(.collapse>input[type=checkbox]),:where(.collapse>input[type=radio]){width:100%;padding:1rem;padding-inline-end:3rem;min-height:3.75rem;transition:background-color .2s ease-out}.collapse[open]>:where(.collapse-content),.collapse-open>:where(.collapse-content),.collapse:focus:not(.collapse-close)>:where(.collapse-content),.collapse:not(.collapse-close)>:where(input[type=checkbox]:checked~.collapse-content),.collapse:not(.collapse-close)>:where(input[type=radio]:checked~.collapse-content){padding-bottom:1rem;transition:padding .2s ease-out,background-color .2s ease-out}.collapse[open].collapse-arrow>.collapse-title:after,.collapse-open.collapse-arrow>.collapse-title:after,.collapse-arrow:focus:not(.collapse-close)>.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-arrow:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{--tw-translate-y: -50%;--tw-rotate: 225deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.collapse[open].collapse-plus>.collapse-title:after,.collapse-open.collapse-plus>.collapse-title:after,.collapse-plus:focus:not(.collapse-close)>.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=checkbox]:checked~.collapse-title:after,.collapse-plus:not(.collapse-close)>input[type=radio]:checked~.collapse-title:after{content:"−"}.divider:not(:empty){gap:1rem}.drawer-toggle:checked~.drawer-side>.drawer-overlay{background-color:#0006}.drawer-toggle:focus-visible~.drawer-content label.drawer-button{outline-style:solid;outline-width:2px;outline-offset:2px}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));background-color:transparent}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:has(>input[disabled]),.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input:has(>input[disabled])::-moz-placeholder,.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])::placeholder,.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input:has(>input[disabled])>input[disabled]{cursor:not-allowed}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1)}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:""}.menu :where(li:not(.menu-title)>*:not(ul,details,.menu-title,.btn)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>*:not(ul,details,.menu-title)):is(summary):not(.active,.btn):focus-visible,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn).focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):not(summary,.active,.btn):focus,:where(.menu li:not(.menu-title,.disabled)>details>summary:not(.menu-title)):is(summary):not(.active,.btn):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul,.menu-title,details,.btn):active,.menu li>*:not(ul,.menu-title,details,.btn).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-phone .display{overflow:hidden;border-radius:40px;margin-top:-25px}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}.modal:not(dialog:not(.modal-open)),.modal::backdrop{background-color:#0006;animation:modal-pop .2s ease-out}.modal-backdrop{z-index:-1;grid-column-start:1;grid-row-start:1;display:grid;align-self:stretch;justify-self:stretch;color:transparent}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box,.modal[open] .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes modal-pop{0%{opacity:0}}.progress::-moz-progress-bar{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)))}.progress:indeterminate{--progress-color: var(--fallback-bc,oklch(var(--bc)/1));background-image:repeating-linear-gradient(90deg,var(--progress-color) -1%,var(--progress-color) 10%,transparent 10%,transparent 90%);background-size:200%;background-position-x:15%;animation:progress-loading 5s ease-in-out infinite}.progress::-webkit-progress-bar{border-radius:var(--rounded-box, 1rem);background-color:transparent}.progress::-webkit-progress-value{border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)))}.progress:indeterminate::-moz-progress-bar{background-color:transparent;background-image:repeating-linear-gradient(90deg,var(--progress-color) -1%,var(--progress-color) 10%,transparent 10%,transparent 90%);background-size:200%;background-position-x:15%;animation:progress-loading 5s ease-in-out infinite}@keyframes progress-loading{50%{background-position-x:-115%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}.tabs-lifted>.tab:focus-visible{border-end-end-radius:0;border-end-start-radius:0}.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tab:is(input:checked){border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: 1;--tw-text-opacity: 1}.tab:focus{outline:2px solid transparent;outline-offset:2px}.tab:focus-visible{outline:2px solid currentColor;outline-offset:-5px}.tab-disabled,.tab[disabled]{cursor:not-allowed;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.tabs-bordered>.tab{border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2;border-style:solid;border-bottom-width:calc(var(--tab-border, 1px) + 1px)}.tabs-lifted>.tab{border:var(--tab-border, 1px) solid transparent;border-width:0 0 var(--tab-border, 1px) 0;border-start-start-radius:var(--tab-radius, .5rem);border-start-end-radius:var(--tab-radius, .5rem);border-bottom-color:var(--tab-border-color);padding-inline-start:var(--tab-padding, 1rem);padding-inline-end:var(--tab-padding, 1rem);padding-top:var(--tab-border, 1px)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-lifted>.tab:is(input:checked){background-color:var(--tab-bg);border-width:var(--tab-border, 1px) var(--tab-border, 1px) 0 var(--tab-border, 1px);border-inline-start-color:var(--tab-border-color);border-inline-end-color:var(--tab-border-color);border-top-color:var(--tab-border-color);padding-inline-start:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-inline-end:calc(var(--tab-padding, 1rem) - var(--tab-border, 1px));padding-bottom:var(--tab-border, 1px);padding-top:0}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked):before{z-index:1;content:"";display:block;position:absolute;width:calc(100% + var(--tab-radius, .5rem) * 2);height:var(--tab-radius, .5rem);bottom:0;background-size:var(--tab-radius, .5rem);background-position:top left,top right;background-repeat:no-repeat;--tab-grad: calc(69% - var(--tab-border, 1px));--radius-start: radial-gradient( circle at top left, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );--radius-end: radial-gradient( circle at top right, transparent var(--tab-grad), var(--tab-border-color) calc(var(--tab-grad) + .25px), var(--tab-border-color) calc(var(--tab-grad) + var(--tab-border, 1px)), var(--tab-bg) calc(var(--tab-grad) + var(--tab-border, 1px) + .25px) );background-image:var(--radius-start),var(--radius-end)}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,.tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-end);background-position:top right}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):first-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):first-child:before{background-image:var(--radius-start);background-position:top left}.tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,.tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-start);background-position:top left}[dir=rtl] .tabs-lifted>.tab:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):last-child:before,[dir=rtl] .tabs-lifted>.tab:is(input:checked):last-child:before{background-image:var(--radius-end);background-position:top right}.tabs-lifted>:is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled])+.tabs-lifted :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]):before,.tabs-lifted>.tab:is(input:checked)+.tabs-lifted .tab:is(input:checked):before{background-image:var(--radius-end);background-position:top right}.tabs-boxed{border-radius:var(--rounded-btn, .5rem);--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding:.25rem}.tabs-boxed .tab{border-radius:var(--rounded-btn, .5rem)}.tabs-boxed :is(.tab-active,[aria-selected=true]):not(.tab-disabled):not([disabled]),.tabs-boxed :is(input:checked){--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.table:where([dir=rtl],[dir=rtl] *){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead tr,tbody tr:not(:last-child),tbody tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.table :where(tfoot){border-top-width:1px;--tw-border-opacity: 1;border-top-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.toggle:hover{background-color:currentColor}.toggle:checked,.toggle[aria-checked=true]{background-image:none;--handleoffsetcalculator: var(--handleoffset);--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset, var(--handleoffsetcalculator) 0 0 3px var(--fallback-bc,oklch(var(--bc)/1)) inset}.artboard.phone-1.\!horizontal{width:568px!important;height:320px!important}.artboard.phone-1.horizontal,.artboard.phone-1.artboard-horizontal{width:568px;height:320px}.artboard.phone-2.\!horizontal{width:667px!important;height:375px!important}.artboard.phone-2.horizontal,.artboard.phone-2.artboard-horizontal{width:667px;height:375px}.artboard.phone-3.\!horizontal{width:736px!important;height:414px!important}.artboard.phone-3.horizontal,.artboard.phone-3.artboard-horizontal{width:736px;height:414px}.artboard.phone-4.\!horizontal{width:812px!important;height:375px!important}.artboard.phone-4.horizontal,.artboard.phone-4.artboard-horizontal{width:812px;height:375px}.artboard.phone-5.\!horizontal{width:896px!important;height:414px!important}.artboard.phone-5.horizontal,.artboard.phone-5.artboard-horizontal{width:896px;height:414px}.artboard.phone-6.\!horizontal{width:1024px!important;height:320px!important}.artboard.phone-6.horizontal,.artboard.phone-6.artboard-horizontal{width:1024px;height:320px}.badge-xs{height:.75rem;font-size:.75rem;line-height:.75rem;padding-left:.313rem;padding-right:.313rem}.btm-nav-xs>*:where(.active){border-top-width:1px}.btm-nav-sm>*:where(.active){border-top-width:2px}.btm-nav-md>*:where(.active){border-top-width:2px}.btm-nav-lg>*:where(.active){border-top-width:4px}.btn-xs{height:1.5rem;min-height:1.5rem;padding-left:.5rem;padding-right:.5rem;font-size:.75rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.drawer-open>.drawer-toggle{display:none}.drawer-open>.drawer-toggle~.drawer-side{pointer-events:auto;visibility:visible;position:sticky;display:block;width:auto;overscroll-behavior:auto}.drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}[dir=rtl] .drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}.drawer-open>.drawer-toggle:checked~.drawer-side{pointer-events:auto;visibility:visible}.drawer-open>.drawer-side{overflow-y:auto}html:has(.drawer-toggle:checked){overflow-y:hidden;scrollbar-gutter:stable}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end):where([dir=rtl],[dir=rtl] *){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem;line-height:2rem}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.menu-horizontal{display:inline-flex;flex-direction:row}.menu-horizontal>li:not(.menu-title)>details>ul{position:absolute}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}.tabs-md :where(.tab){height:2rem;font-size:.875rem;line-height:1.25rem;line-height:2;--tab-padding: 1rem}.tabs-lg :where(.tab){height:3rem;font-size:1.125rem;line-height:1.75rem;line-height:2;--tab-padding: 1.25rem}.tabs-sm :where(.tab){height:1.5rem;font-size:.875rem;line-height:.75rem;--tab-padding: .75rem}.tabs-xs :where(.tab){height:1.25rem;font-size:.75rem;line-height:.75rem;--tab-padding: .5rem}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center):where([dir=rtl],[dir=rtl] *){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.tooltip{position:relative;display:inline-block;--tooltip-offset: calc(100% + 1px + var(--tooltip-tail, 0px))}.tooltip:before{position:absolute;pointer-events:none;z-index:1;content:var(--tw-content);--tw-content: attr(data-tip)}.tooltip:before,.tooltip-top:before{transform:translate(-50%);top:auto;left:50%;right:auto;bottom:var(--tooltip-offset)}.tooltip-bottom:before{transform:translate(-50%);top:var(--tooltip-offset);left:50%;right:auto;bottom:auto}.tooltip-left:before{transform:translateY(-50%);top:50%;left:auto;right:var(--tooltip-offset);bottom:auto}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.drawer-open>.drawer-toggle~.drawer-side>.drawer-overlay{cursor:default;background-color:transparent}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-vertical>:where(*:not(:first-child)):is(.btn){margin-top:calc(var(--border-btn) * -1)}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join.join-horizontal>:where(*:not(:first-child)):is(.btn){margin-inline-start:calc(var(--border-btn) * -1);margin-top:0}.menu-horizontal>li:not(.menu-title)>details>ul{margin-inline-start:0px;margin-top:1rem;padding-top:.5rem;padding-bottom:.5rem;padding-inline-end:.5rem}.menu-horizontal>li>details>ul:before{content:none}:where(.menu-horizontal>li:not(.menu-title)>details>ul){border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.modal-top :where(.modal-box){width:100%;max-width:none;--tw-translate-y: -2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-top-left-radius:0;border-top-right-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem)}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-right-radius:0;border-bottom-left-radius:0}.table-xs :not(thead):not(tfoot) tr{font-size:.75rem;line-height:1rem}.table-xs :where(th,td){padding:.25rem .5rem}.table-sm :not(thead):not(tfoot) tr{font-size:.875rem;line-height:1.25rem}.table-sm :where(th,td){padding:.5rem .75rem}.tooltip{position:relative;display:inline-block;text-align:center;--tooltip-tail: .1875rem;--tooltip-color: var(--fallback-n,oklch(var(--n)/1));--tooltip-text-color: var(--fallback-nc,oklch(var(--nc)/1));--tooltip-tail-offset: calc(100% + .0625rem - var(--tooltip-tail))}.tooltip:before,.tooltip:after{opacity:0;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-delay:.1s;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tooltip:after{position:absolute;content:"";border-style:solid;border-width:var(--tooltip-tail, 0);width:0;height:0;display:block}.tooltip:before{max-width:20rem;white-space:normal;border-radius:.25rem;padding:.25rem .5rem;font-size:.875rem;line-height:1.25rem;background-color:var(--tooltip-color);color:var(--tooltip-text-color);width:-moz-max-content;width:max-content}.tooltip.tooltip-open:before{opacity:1;transition-delay:75ms}.tooltip.tooltip-open:after{opacity:1;transition-delay:75ms}.tooltip:hover:before{opacity:1;transition-delay:75ms}.tooltip:hover:after{opacity:1;transition-delay:75ms}.tooltip:has(:focus-visible):after,.tooltip:has(:focus-visible):before{opacity:1;transition-delay:75ms}.tooltip:not([data-tip]):hover:before,.tooltip:not([data-tip]):hover:after{visibility:hidden;opacity:0}.tooltip:after,.tooltip-top:after{transform:translate(-50%);border-color:var(--tooltip-color) transparent transparent transparent;top:auto;left:50%;right:auto;bottom:var(--tooltip-tail-offset)}.tooltip-bottom:after{transform:translate(-50%);border-color:transparent transparent var(--tooltip-color) transparent;top:var(--tooltip-tail-offset);left:50%;right:auto;bottom:auto}.tooltip-left:after{transform:translateY(-50%);border-color:transparent transparent transparent var(--tooltip-color);top:50%;left:auto;right:calc(var(--tooltip-tail-offset) + .0625rem);bottom:auto}.card,.collapse{border-radius:.75rem;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity, 1)));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-2{top:.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-30{z-index:30}.z-50{z-index:50}.m-2{margin:.5rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.\!h-4{height:1rem!important}.h-0{height:0px}.h-12{height:3rem}.h-2{height:.5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-96{max-height:24rem}.\!w-8{width:2rem!important}.w-0{width:0px}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-56{width:14rem}.w-60{width:15rem}.w-64{width:16rem}.w-72{width:18rem}.w-80{width:20rem}.w-96{width:24rem}.w-\[21rem\]{width:21rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-20{min-width:5rem}.min-w-24{min-width:6rem}.min-w-36{min-width:9rem}.min-w-4{min-width:1rem}.min-w-48{min-width:12rem}.max-w-64{max-width:16rem}.max-w-96{max-width:24rem}.max-w-\[32rem\]{max-width:32rem}.max-w-screen-md{max-width:768px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\[1px\]{gap:1px}.gap-\[2px\]{gap:2px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overscroll-y-none{overscroll-behavior-y:none}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border-base-content\/10{border-color:var(--fallback-bc,oklch(var(--bc)/.1))}.border-b-primary\/30{border-bottom-color:var(--fallback-p,oklch(var(--p)/.3))}.border-t-info\/30{border-top-color:var(--fallback-in,oklch(var(--in)/.3))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity, 1)))}.bg-base-100\/70{background-color:var(--fallback-b1,oklch(var(--b1)/.7))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.bg-base-200\/40{background-color:var(--fallback-b2,oklch(var(--b2)/.4))}.bg-base-300{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-high-latency{--tw-bg-opacity: 1;background-color:rgb(244 96 108 / var(--tw-bg-opacity, 1))}.bg-info\/60{background-color:var(--fallback-in,oklch(var(--in)/.6))}.bg-low-latency{--tw-bg-opacity: 1;background-color:rgb(52 189 109 / var(--tw-bg-opacity, 1))}.bg-medium-latency{--tw-bg-opacity: 1;background-color:rgb(250 210 75 / var(--tw-bg-opacity, 1))}.bg-neutral{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity, 1)))}.bg-primary{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity, 1)))}.bg-secondary{--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity, 1)))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-base-content{fill:var(--fallback-bc,oklch(var(--bc)/1))}.fill-primary{fill:var(--fallback-p,oklch(var(--p)/1))}.fill-primary-content{fill:var(--fallback-pc,oklch(var(--pc)/1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-\[1px\]{padding-top:1px;padding-bottom:1px}.pb-0{padding-bottom:0}.pb-12{padding-bottom:3rem}.pb-24{padding-bottom:6rem}.pr-4{padding-right:1rem}.pr-5{padding-right:1.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.text-right{text-align:right}.font-FiraSans{font-family:Fira Sans,NotoEmoji,system-ui}.font-MiSans{font-family:MiSans-VF,NotoEmoji,system-ui}.font-PingFang{font-family:PingFangSC-Regular,NotoEmoji,system-ui}.font-SarasaUI{font-family:SarasaUiSC-Regular,NotoEmoji,system-ui}.font-SystemUI{font-family:NotoEmoji,system-ui}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-tight{letter-spacing:-.025em}.text-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity, 1)))}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity, 1)))}.text-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity, 1)))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity, 1)))}.text-neutral-content{--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity, 1)))}.text-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity, 1)))}.text-primary-content{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity, 1)))}.text-primary\/60{color:var(--fallback-p,oklch(var(--p)/.6))}.text-primary\/80{color:var(--fallback-p,oklch(var(--p)/.8))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity, 1)))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-500{transition-duration:.5s}@font-face{font-family:NotoEmoji;src:url(./NotoColorEmoji-flagsonly-CWWDk9km.ttf) format("truetype")}.scrollbar-hidden::-webkit-scrollbar{display:none}.scrollbar-hidden{-ms-overflow-style:none;scrollbar-width:none}@media (min-width: 768px){.md\:drawer-open>.drawer-toggle{display:none}.md\:drawer-open>.drawer-toggle~.drawer-side{pointer-events:auto;visibility:visible;position:sticky;display:block;width:auto;overscroll-behavior:auto}.md\:drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}[dir=rtl] .md\:drawer-open>.drawer-toggle~.drawer-side>*:not(.drawer-overlay){transform:translate(0)}.md\:drawer-open>.drawer-toggle:checked~.drawer-side{pointer-events:auto;visibility:visible}.md\:drawer-open>.drawer-side{overflow-y:auto}html:has(.md\:drawer-open.md\:drawer-open){overflow-y:auto;scrollbar-gutter:auto}.md\:tooltip-bottom:before{transform:translate(-50%);top:var(--tooltip-offset);left:50%;right:auto;bottom:auto}.md\:drawer-open>.drawer-toggle~.drawer-side>.drawer-overlay{cursor:default;background-color:transparent}.md\:tooltip-bottom:after{transform:translate(-50%);border-color:transparent transparent var(--tooltip-color) transparent;top:var(--tooltip-tail-offset);left:50%;right:auto;bottom:auto}}.hover\:\!bg-primary:hover{--tw-bg-opacity: 1 !important;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity, 1)))!important}.hover\:bg-base-200:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity, 1)))}.hover\:text-primary-content:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity, 1)))}.hover\:shadow:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media not all and (min-width: 640px){.max-sm\:hidden{display:none}.max-sm\:min-h-\[calc\(100\%\+1px\)\]{min-height:calc(100% + 1px)}.max-sm\:w-full{width:100%}.max-sm\:flex-1{flex:1 1 0%}.max-sm\:px-2{padding-left:.5rem;padding-right:.5rem}}@media (min-width: 640px){.sm\:inline{display:inline}.sm\:hidden{display:none}.sm\:max-w-80{max-width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:gap-2{gap:.5rem}.sm\:gap-4{gap:1rem}.sm\:text-base{font-size:1rem;line-height:1.5rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\:hover\:bg-base-300:hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity, 1)))}}@media (min-width: 768px){.md\:relative{position:relative}.md\:inline{display:inline}.md\:hidden{display:none}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 1024px){.lg\:inline{display:inline}.lg\:flex{display:flex}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:flex-col{flex-direction:column}}@media (min-width: 1280px){.xl\:inline{display:inline}.xl\:flex{display:flex}.xl\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}@media (min-width: 1536px){.\32xl\:inline{display:inline}.\32xl\:flex{display:flex}.\32xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\32xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\32xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\32xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\32xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\32xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}@media (min-width: 1792px){.\33xl\:flex{display:flex}.\33xl\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\33xl\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\33xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\33xl\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\33xl\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\33xl\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}.\[\&\>\*\]\:h-2>*{height:.5rem}.vjs-tree-brackets{cursor:pointer}.vjs-tree-brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller-inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-checkbox:after{-webkit-transform:rotate(45deg) scaleY(1);transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-radio:after{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller-inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;-webkit-transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller-inner:after{-webkit-box-sizing:content-box;box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;-webkit-transform:rotate(45deg) scaleY(0);transform:rotate(45deg) scaleY(0);width:4px;-webkit-transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s,-webkit-transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;-webkit-transform-origin:center;transform-origin:center}.vjs-check-controller .vjs-check-controller-inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller-inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller-original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-carets{position:absolute;right:0;cursor:pointer}.vjs-carets svg{-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.vjs-carets:hover{color:#1890ff}.vjs-carets-close{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.vjs-tree-node{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;line-height:20px}.vjs-tree-node.has-carets{padding-left:15px}.vjs-tree-node.has-carets.has-selector,.vjs-tree-node.has-selector{padding-left:30px}.vjs-tree-node.is-highlight,.vjs-tree-node:hover{background-color:#e6f7ff}.vjs-tree-node .vjs-indent{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.vjs-tree-node .vjs-indent-unit{width:1em}.vjs-tree-node .vjs-indent-unit.has-line{border-left:1px dashed #bfcbd9}.vjs-tree-node.dark.is-highlight,.vjs-tree-node.dark:hover{background-color:#2e4558}.vjs-node-index{position:absolute;right:100%;margin-right:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vjs-colon{white-space:pre}.vjs-comment{color:#bfcbd9}.vjs-value{word-break:break-word}.vjs-value-null,.vjs-value-undefined{color:#d55fde}.vjs-value-boolean,.vjs-value-number{color:#1d8ce0}.vjs-value-string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px;text-align:left}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree-node{white-space:nowrap}.tooltip[data-v-ed6a81e8]:before{width:200px}.tooltip[data-v-f63636b0]:before{z-index:20}.grid[data-v-f39f6eaa]{scrollbar-width:thin} diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html b/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html index b34760605..cd51fb497 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/index.html @@ -30,8 +30,8 @@ name="theme-color" content="#FFFFFF" /> - - + +
diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js b/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js index 613d90fc9..e29f948ef 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let c={};const o=e=>s(e,f),t={module:{uri:f},exports:c,require:o};i[f]=Promise.all(n.map((e=>t[e]||o(e)))).then((e=>(r(...e),c)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-DTQ-SwsF.js",revision:null},{url:"assets/index-Wi3TY4zB.css",revision:null},{url:"index.html",revision:"8f2b14077448252f401b1c9451be4cca"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let o={};const t=e=>s(e,f),c={module:{uri:f},exports:o,require:t};i[f]=Promise.all(n.map((e=>c[e]||t(e)))).then((e=>(r(...e),o)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BBqZAzxq.js",revision:null},{url:"assets/index-Doht7gsQ.css",revision:null},{url:"index.html",revision:"58857bcc1ef0a5a5642e8310f1fb7515"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); diff --git a/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt b/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt index 5971cf8a2..3c9507eff 100644 --- a/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt +++ b/luci-app-nekobox/root/etc/neko/ui/zashboard/version.txt @@ -1 +1 @@ -v1.35.0 \ No newline at end of file +v1.36.0 \ No newline at end of file diff --git a/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm b/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm index 89eced5b8..7c454aff2 100644 --- a/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm +++ b/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm @@ -1,12 +1,24 @@ <%+cbi/valueheader%> <% local api = require "luci.passwall.api" +local appname = 'passwall' +local uci = api.libuci +local ss_type = uci:get(appname, "@global_subscribe[0]", "ss_type") or "shadowsocks-libev" +local trojan_type = uci:get(appname, "@global_subscribe[0]", "trojan_type") or "trojan-plus" +local vmess_type = uci:get(appname, "@global_subscribe[0]", "vmess_type") or "xray" +local vless_type = uci:get(appname, "@global_subscribe[0]", "vless_type") or "xray" +local hysteria2_type = uci:get(appname, "@global_subscribe[0]", "hysteria2_type") or "hysteria2" -%>