@mokup/playground 0.0.13 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function ro(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ie={},yn=[],Mt=()=>{},Ql=()=>!1,Xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),oo=e=>e.startsWith("onUpdate:"),Qe=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pc=Object.prototype.hasOwnProperty,Re=(e,t)=>pc.call(e,t),ae=Array.isArray,xn=e=>Qs(e)==="[object Map]",Zl=e=>Qs(e)==="[object Set]",ue=e=>typeof e=="function",Ke=e=>typeof e=="string",zt=e=>typeof e=="symbol",Ne=e=>e!==null&&typeof e=="object",ei=e=>(Ne(e)||ue(e))&&ue(e.then)&&ue(e.catch),ti=Object.prototype.toString,Qs=e=>ti.call(e),gc=e=>Qs(e).slice(8,-1),ni=e=>Qs(e)==="[object Object]",Zs=e=>Ke(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Hn=ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),er=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},mc=/-\w/g,en=er(e=>e.replace(mc,t=>t.slice(1).toUpperCase())),hc=/\B([A-Z])/g,gn=er(e=>e.replace(hc,"-$1").toLowerCase()),si=er(e=>e.charAt(0).toUpperCase()+e.slice(1)),gr=er(e=>e?`on${si(e)}`:""),Zt=(e,t)=>!Object.is(e,t),mr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ri=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},bc=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $o;const tr=()=>$o||($o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cs(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Ke(s)?xc(s):cs(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ke(e)||Ne(e))return e}const _c=/;(?![^(]*\))/g,vc=/:([^]+)/,yc=/\/\*[^]*?\*\//g;function xc(e){const t={};return e.replace(yc,"").split(_c).forEach(n=>{if(n){const s=n.split(vc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ae(e){let t="";if(Ke(e))t=e;else if(ae(e))for(let n=0;n<e.length;n++){const s=Ae(e[n]);s&&(t+=s+" ")}else if(Ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const wc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",kc=ro(wc);function oi(e){return!!e||e===""}const li=e=>!!(e&&e.__v_isRef===!0),N=e=>Ke(e)?e:e==null?"":ae(e)||Ne(e)&&(e.toString===ti||!ue(e.toString))?li(e)?N(e.value):JSON.stringify(e,ii,2):String(e),ii=(e,t)=>li(t)?ii(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[hr(s,o)+" =>"]=r,n),{})}:Zl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>hr(n))}:zt(t)?hr(t):Ne(t)&&!ae(t)&&!ni(t)?String(t):t,hr=(e,t="")=>{var n;return zt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let dt;class ai{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=dt,!t&&dt&&(this.index=(dt.scopes||(dt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=dt;try{return dt=this,t()}finally{dt=n}}}on(){++this._on===1&&(this.prevScope=dt,dt=this)}off(){this._on>0&&--this._on===0&&(dt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Tc(e){return new ai(e)}function Cc(){return dt}let Le;const br=new WeakSet;class ci{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,dt&&dt.active&&dt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,br.has(this)&&(br.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||di(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Oo(this),fi(this);const t=Le,n=Tt;Le=this,Tt=!0;try{return this.fn()}finally{pi(this),Le=t,Tt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)co(t);this.deps=this.depsTail=void 0,Oo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?br.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Lr(this)&&this.run()}get dirty(){return Lr(this)}}let ui=0,Gn,Kn;function di(e,t=!1){if(e.flags|=8,t){e.next=Kn,Kn=e;return}e.next=Gn,Gn=e}function io(){ui++}function ao(){if(--ui>0)return;if(Kn){let t=Kn;for(Kn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Gn;){let t=Gn;for(Gn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function fi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),co(s),Sc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Lr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(gi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function gi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jn)||(e.globalVersion=Jn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Lr(e))))return;e.flags|=2;const t=e.dep,n=Le,s=Tt;Le=e,Tt=!0;try{fi(e);const r=e.fn(e._value);(t.version===0||Zt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Le=n,Tt=s,pi(e),e.flags&=-3}}function co(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)co(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Sc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Tt=!0;const mi=[];function Ht(){mi.push(Tt),Tt=!1}function Gt(){const e=mi.pop();Tt=e===void 0?!0:e}function Oo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let Jn=0;class Ec{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 uo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!Tt||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new Ec(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,hi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=s)}return n}trigger(t){this.version++,Jn++,this.notify(t)}notify(t){io();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ao()}}}function hi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)hi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ds=new WeakMap,fn=Symbol(""),$r=Symbol(""),Xn=Symbol("");function tt(e,t,n){if(Tt&&Le){let s=Ds.get(e);s||Ds.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new uo),r.map=s,r.key=n),r.track()}}function Ut(e,t,n,s,r,o){const l=Ds.get(e);if(!l){Jn++;return}const i=a=>{a&&a.trigger()};if(io(),t==="clear")l.forEach(i);else{const a=ae(e),c=a&&Zs(n);if(a&&n==="length"){const u=Number(s);l.forEach((f,h)=>{(h==="length"||h===Xn||!zt(h)&&h>=u)&&i(f)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),c&&i(l.get(Xn)),t){case"add":a?c&&i(l.get("length")):(i(l.get(fn)),xn(e)&&i(l.get($r)));break;case"delete":a||(i(l.get(fn)),xn(e)&&i(l.get($r)));break;case"set":xn(e)&&i(l.get(fn));break}}ao()}function Rc(e,t){const n=Ds.get(e);return n&&n.get(t)}function hn(e){const t=Te(e);return t===e?t:(tt(t,"iterate",Xn),_t(e)?t:t.map(Ct))}function nr(e){return tt(e=Te(e),"iterate",Xn),e}function Jt(e,t){return Kt(e)?Cn(pn(e)?Ct(t):t):Ct(t)}const Pc={__proto__:null,[Symbol.iterator](){return _r(this,Symbol.iterator,e=>Jt(this,e))},concat(...e){return hn(this).concat(...e.map(t=>ae(t)?hn(t):t))},entries(){return _r(this,"entries",e=>(e[1]=Jt(this,e[1]),e))},every(e,t){return Ot(this,"every",e,t,void 0,arguments)},filter(e,t){return Ot(this,"filter",e,t,n=>n.map(s=>Jt(this,s)),arguments)},find(e,t){return Ot(this,"find",e,t,n=>Jt(this,n),arguments)},findIndex(e,t){return Ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ot(this,"findLast",e,t,n=>Jt(this,n),arguments)},findLastIndex(e,t){return Ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return vr(this,"includes",e)},indexOf(...e){return vr(this,"indexOf",e)},join(e){return hn(this).join(e)},lastIndexOf(...e){return vr(this,"lastIndexOf",e)},map(e,t){return Ot(this,"map",e,t,void 0,arguments)},pop(){return An(this,"pop")},push(...e){return An(this,"push",e)},reduce(e,...t){return Ao(this,"reduce",e,t)},reduceRight(e,...t){return Ao(this,"reduceRight",e,t)},shift(){return An(this,"shift")},some(e,t){return Ot(this,"some",e,t,void 0,arguments)},splice(...e){return An(this,"splice",e)},toReversed(){return hn(this).toReversed()},toSorted(e){return hn(this).toSorted(e)},toSpliced(...e){return hn(this).toSpliced(...e)},unshift(...e){return An(this,"unshift",e)},values(){return _r(this,"values",e=>Jt(this,e))}};function _r(e,t,n){const s=nr(e),r=s[t]();return s!==e&&!_t(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Ic=Array.prototype;function Ot(e,t,n,s,r,o){const l=nr(e),i=l!==e&&!_t(e),a=l[t];if(a!==Ic[t]){const f=a.apply(e,o);return i?Ct(f):f}let c=n;l!==e&&(i?c=function(f,h){return n.call(this,Jt(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=a.call(l,c,s);return i&&r?r(u):u}function Ao(e,t,n,s){const r=nr(e);let o=n;return r!==e&&(_t(e)?n.length>3&&(o=function(l,i,a){return n.call(this,l,i,a,e)}):o=function(l,i,a){return n.call(this,l,Jt(e,i),a,e)}),r[t](o,...s)}function vr(e,t,n){const s=Te(e);tt(s,"iterate",Xn);const r=s[t](...n);return(r===-1||r===!1)&&sr(n[0])?(n[0]=Te(n[0]),s[t](...n)):r}function An(e,t,n=[]){Ht(),io();const s=Te(e)[t].apply(e,n);return ao(),Gt(),s}const Mc=ro("__proto__,__v_isRef,__isVue"),bi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(zt));function Lc(e){zt(e)||(e=String(e));const t=Te(this);return tt(t,"has",e),t.hasOwnProperty(e)}class _i{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?jc:wi:o?xi:yi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=ae(t);if(!r){let a;if(l&&(a=Pc[n]))return a;if(n==="hasOwnProperty")return Lc}const i=Reflect.get(t,n,Fe(t)?t:s);if((zt(n)?bi.has(n):Mc(n))||(r||tt(t,"get",n),o))return i;if(Fe(i)){const a=l&&Zs(n)?i:i.value;return r&&Ne(a)?Ar(a):a}return Ne(i)?r?Ar(i):po(i):i}}class vi extends _i{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const l=ae(t)&&Zs(n);if(!this._isShallow){const c=Kt(o);if(!_t(s)&&!Kt(s)&&(o=Te(o),s=Te(s)),!l&&Fe(o)&&!Fe(s))return c||(o.value=s),!0}const i=l?Number(n)<t.length:Re(t,n),a=Reflect.set(t,n,s,Fe(t)?t:r);return t===Te(r)&&(i?Zt(s,o)&&Ut(t,"set",n,s):Ut(t,"add",n,s)),a}deleteProperty(t,n){const s=Re(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ut(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!zt(n)||!bi.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",ae(t)?"length":fn),Reflect.ownKeys(t)}}class $c extends _i{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Oc=new vi,Ac=new $c,Nc=new vi(!0);const Or=e=>e,_s=e=>Reflect.getPrototypeOf(e);function Fc(e,t,n){return function(...s){const r=this.__v_raw,o=Te(r),l=xn(o),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...s),u=n?Or:t?Cn:Ct;return!t&&tt(o,"iterate",a?$r:fn),Qe(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:i?[u(f[0]),u(f[1])]:u(f),done:h}}})}}function vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Dc(e,t){const n={get(r){const o=this.__v_raw,l=Te(o),i=Te(r);e||(Zt(r,i)&&tt(l,"get",r),tt(l,"get",i));const{has:a}=_s(l),c=t?Or:e?Cn:Ct;if(a.call(l,r))return c(o.get(r));if(a.call(l,i))return c(o.get(i));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&tt(Te(r),"iterate",fn),r.size},has(r){const o=this.__v_raw,l=Te(o),i=Te(r);return e||(Zt(r,i)&&tt(l,"has",r),tt(l,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const l=this,i=l.__v_raw,a=Te(i),c=t?Or:e?Cn:Ct;return!e&&tt(a,"iterate",fn),i.forEach((u,f)=>r.call(o,c(u),c(f),l))}};return Qe(n,e?{add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear")}:{add(r){!t&&!_t(r)&&!Kt(r)&&(r=Te(r));const o=Te(this);return _s(o).has.call(o,r)||(o.add(r),Ut(o,"add",r,r)),this},set(r,o){!t&&!_t(o)&&!Kt(o)&&(o=Te(o));const l=Te(this),{has:i,get:a}=_s(l);let c=i.call(l,r);c||(r=Te(r),c=i.call(l,r));const u=a.call(l,r);return l.set(r,o),c?Zt(o,u)&&Ut(l,"set",r,o):Ut(l,"add",r,o),this},delete(r){const o=Te(this),{has:l,get:i}=_s(o);let a=l.call(o,r);a||(r=Te(r),a=l.call(o,r)),i&&i.call(o,r);const c=o.delete(r);return a&&Ut(o,"delete",r,void 0),c},clear(){const r=Te(this),o=r.size!==0,l=r.clear();return o&&Ut(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Fc(r,e,t)}),n}function fo(e,t){const n=Dc(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Re(n,r)&&r in s?n:s,r,o)}const Uc={get:fo(!1,!1)},Vc={get:fo(!1,!0)},Wc={get:fo(!0,!1)};const yi=new WeakMap,xi=new WeakMap,wi=new WeakMap,jc=new WeakMap;function Hc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gc(e){return e.__v_skip||!Object.isExtensible(e)?0:Hc(gc(e))}function po(e){return Kt(e)?e:go(e,!1,Oc,Uc,yi)}function Kc(e){return go(e,!1,Nc,Vc,xi)}function Ar(e){return go(e,!0,Ac,Wc,wi)}function go(e,t,n,s,r){if(!Ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Gc(e);if(o===0)return e;const l=r.get(e);if(l)return l;const i=new Proxy(e,o===2?s:n);return r.set(e,i),i}function pn(e){return Kt(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function Kt(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function sr(e){return e?!!e.__v_raw:!1}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Bc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&ri(e,"__v_skip",!0),e}const Ct=e=>Ne(e)?po(e):e,Cn=e=>Ne(e)?Ar(e):e;function Fe(e){return e?e.__v_isRef===!0:!1}function te(e){return ki(e,!1)}function zc(e){return ki(e,!0)}function ki(e,t){return Fe(e)?e:new qc(e,t)}class qc{constructor(t,n){this.dep=new uo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Te(t),this._value=n?t:Ct(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||_t(t)||Kt(t);t=s?t:Te(t),Zt(t,n)&&(this._rawValue=t,this._value=s?t:Ct(t),this.dep.trigger())}}function S(e){return Fe(e)?e.value:e}const Yc={get:(e,t,n)=>t==="__v_raw"?e:S(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ti(e){return pn(e)?e:new Proxy(e,Yc)}function Jc(e){const t=ae(e)?new Array(e.length):{};for(const n in e)t[n]=Qc(e,n);return t}class Xc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Te(t);let r=!0,o=t;if(!ae(t)||!Zs(String(n)))do r=!sr(o)||_t(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=S(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Fe(this._raw[this._key])){const n=this._object[this._key];if(Fe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Rc(this._raw,this._key)}}function Qc(e,t,n){return new Xc(e,t,n)}class Zc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new uo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return di(this,!0),!0}get value(){const t=this.dep.track();return gi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function eu(e,t,n=!1){let s,r;return ue(e)?s=e:(s=e.get,r=e.set),new Zc(s,r,n)}const ys={},Us=new WeakMap;let cn;function tu(e,t=!1,n=cn){if(n){let s=Us.get(n);s||Us.set(n,s=[]),s.push(e)}}function nu(e,t,n=Ie){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:i,call:a}=n,c=v=>r?v:_t(v)||r===!1||r===0?Vt(v,1):Vt(v);let u,f,h,b,k=!1,E=!1;if(Fe(e)?(f=()=>e.value,k=_t(e)):pn(e)?(f=()=>c(e),k=!0):ae(e)?(E=!0,k=e.some(v=>pn(v)||_t(v)),f=()=>e.map(v=>{if(Fe(v))return v.value;if(pn(v))return c(v);if(ue(v))return a?a(v,2):v()})):ue(e)?t?f=a?()=>a(e,2):e:f=()=>{if(h){Ht();try{h()}finally{Gt()}}const v=cn;cn=u;try{return a?a(e,3,[b]):e(b)}finally{cn=v}}:f=Mt,t&&r){const v=f,I=r===!0?1/0:r;f=()=>Vt(v(),I)}const P=Cc(),g=()=>{u.stop(),P&&P.active&&lo(P.effects,u)};if(o&&t){const v=t;t=(...I)=>{v(...I),g()}}let y=E?new Array(e.length).fill(ys):ys;const _=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(t){const I=u.run();if(r||k||(E?I.some((F,A)=>Zt(F,y[A])):Zt(I,y))){h&&h();const F=cn;cn=u;try{const A=[I,y===ys?void 0:E&&y[0]===ys?[]:y,b];y=I,a?a(t,3,A):t(...A)}finally{cn=F}}}else u.run()};return i&&i(_),u=new ci(f),u.scheduler=l?()=>l(_,!1):_,b=v=>tu(v,!1,u),h=u.onStop=()=>{const v=Us.get(u);if(v){if(a)a(v,4);else for(const I of v)I();Us.delete(u)}},t?s?_(!0):y=u.run():l?l(_.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Vt(e,t=1/0,n){if(t<=0||!Ne(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Fe(e))Vt(e.value,t,n);else if(ae(e))for(let s=0;s<e.length;s++)Vt(e[s],t,n);else if(Zl(e)||xn(e))e.forEach(s=>{Vt(s,t,n)});else if(ni(e)){for(const s in e)Vt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Vt(e[s],t,n)}return e}function us(e,t,n,s){try{return s?e(...s):e()}catch(r){rr(r,t,n)}}function $t(e,t,n,s){if(ue(e)){const r=us(e,t,n,s);return r&&ei(r)&&r.catch(o=>{rr(o,t,n)}),r}if(ae(e)){const r=[];for(let o=0;o<e.length;o++)r.push($t(e[o],t,n,s));return r}}function rr(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Ie;if(t){let i=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}i=i.parent}if(o){Ht(),us(o,null,10,[e,a,c]),Gt();return}}su(e,n,r,s,l)}function su(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const it=[];let Pt=-1;const wn=[];let Xt=null,_n=0;const Ci=Promise.resolve();let Vs=null;function Si(e){const t=Vs||Ci;return e?t.then(this?e.bind(this):e):t}function ru(e){let t=Pt+1,n=it.length;for(;t<n;){const s=t+n>>>1,r=it[s],o=Qn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function mo(e){if(!(e.flags&1)){const t=Qn(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=Qn(n)?it.push(e):it.splice(ru(t),0,e),e.flags|=1,Ei()}}function Ei(){Vs||(Vs=Ci.then(Pi))}function ou(e){ae(e)?wn.push(...e):Xt&&e.id===-1?Xt.splice(_n+1,0,e):e.flags&1||(wn.push(e),e.flags|=1),Ei()}function No(e,t,n=Pt+1){for(;n<it.length;n++){const s=it[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;it.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ri(e){if(wn.length){const t=[...new Set(wn)].sort((n,s)=>Qn(n)-Qn(s));if(wn.length=0,Xt){Xt.push(...t);return}for(Xt=t,_n=0;_n<Xt.length;_n++){const n=Xt[_n];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,_n=0}}const Qn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pi(e){try{for(Pt=0;Pt<it.length;Pt++){const t=it[Pt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),us(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Pt<it.length;Pt++){const t=it[Pt];t&&(t.flags&=-2)}Pt=-1,it.length=0,Ri(),Vs=null,(it.length||wn.length)&&Pi()}}let nt=null,Ii=null;function Ws(e){const t=nt;return nt=e,Ii=e&&e.type.__scopeId||null,t}function ne(e,t=nt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Gs(-1);const o=Ws(t);let l;try{l=e(...r)}finally{Ws(o),s._d&&Gs(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function xs(e,t){if(nt===null)return e;const n=ar(nt),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,i,a=Ie]=t[r];o&&(ue(o)&&(o={mounted:o,updated:o}),o.deep&&Vt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:i,modifiers:a}))}return e}function on(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];o&&(i.oldValue=o[l].value);let a=i.dir[s];a&&(Ht(),$t(a,n,8,[e.el,i,e,t]),Gt())}}function lu(e,t){if(at){let n=at.provides;const s=at.parent&&at.parent.provides;s===n&&(n=at.provides=Object.create(s)),n[e]=t}}function Bn(e,t,n=!1){const s=ir();if(s||Tn){let r=Tn?Tn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ue(t)?t.call(s&&s.proxy):t}}const iu=Symbol.for("v-scx"),au=()=>Bn(iu);function ft(e,t,n){return Mi(e,t,n)}function Mi(e,t,n=Ie){const{immediate:s,deep:r,flush:o,once:l}=n,i=Qe({},n),a=t&&s||!t&&o!=="post";let c;if(ts){if(o==="sync"){const b=au();c=b.__watcherHandles||(b.__watcherHandles=[])}else if(!a){const b=()=>{};return b.stop=Mt,b.resume=Mt,b.pause=Mt,b}}const u=at;i.call=(b,k,E)=>$t(b,u,k,E);let f=!1;o==="post"?i.scheduler=b=>{ht(b,u&&u.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(b,k)=>{k?b():mo(b)}),i.augmentJob=b=>{t&&(b.flags|=4),f&&(b.flags|=2,u&&(b.id=u.uid,b.i=u))};const h=nu(e,t,i);return ts&&(c?c.push(h):a&&h()),h}function cu(e,t,n){const s=this.proxy,r=Ke(e)?e.includes(".")?Li(s,e):()=>s[e]:e.bind(s,s);let o;ue(t)?o=t:(o=t.handler,n=t);const l=ps(this),i=Mi(r,o.bind(s),n);return l(),i}function Li(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const uu=Symbol("_vte"),du=e=>e.__isTeleport,fu=Symbol("_leaveCb");function ho(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ho(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $e(e,t){return ue(e)?Qe({name:e.name},t,{setup:e}):e}function $i(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const js=new WeakMap;function zn(e,t,n,s,r=!1){if(ae(e)){e.forEach((k,E)=>zn(k,t&&(ae(t)?t[E]:t),n,s,r));return}if(kn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&zn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ar(s.component):s.el,l=r?null:o,{i,r:a}=e,c=t&&t.r,u=i.refs===Ie?i.refs={}:i.refs,f=i.setupState,h=Te(f),b=f===Ie?Ql:k=>Re(h,k);if(c!=null&&c!==a){if(Fo(t),Ke(c))u[c]=null,b(c)&&(f[c]=null);else if(Fe(c)){c.value=null;const k=t;k.k&&(u[k.k]=null)}}if(ue(a))us(a,i,12,[l,u]);else{const k=Ke(a),E=Fe(a);if(k||E){const P=()=>{if(e.f){const g=k?b(a)?f[a]:u[a]:a.value;if(r)ae(g)&&lo(g,o);else if(ae(g))g.includes(o)||g.push(o);else if(k)u[a]=[o],b(a)&&(f[a]=u[a]);else{const y=[o];a.value=y,e.k&&(u[e.k]=y)}}else k?(u[a]=l,b(a)&&(f[a]=l)):E&&(a.value=l,e.k&&(u[e.k]=l))};if(l){const g=()=>{P(),js.delete(e)};g.id=-1,js.set(e,g),ht(g,n)}else Fo(e),P()}}}function Fo(e){const t=js.get(e);t&&(t.flags|=8,js.delete(e))}tr().requestIdleCallback;tr().cancelIdleCallback;const kn=e=>!!e.type.__asyncLoader,Oi=e=>e.type.__isKeepAlive;function pu(e,t){Ai(e,"a",t)}function gu(e,t){Ai(e,"da",t)}function Ai(e,t,n=at){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(or(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Oi(r.parent.vnode)&&mu(s,t,n,r),r=r.parent}}function mu(e,t,n,s){const r=or(t,e,s,!0);bo(()=>{lo(s[t],r)},n)}function or(e,t,n=at,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{Ht();const i=ps(n),a=$t(t,n,e,l);return i(),Gt(),a});return s?r.unshift(o):r.push(o),o}}const qt=e=>(t,n=at)=>{(!ts||e==="sp")&&or(e,(...s)=>t(...s),n)},hu=qt("bm"),Pn=qt("m"),bu=qt("bu"),_u=qt("u"),In=qt("bum"),bo=qt("um"),vu=qt("sp"),yu=qt("rtg"),xu=qt("rtc");function wu(e,t=at){or("ec",e,t)}const ku=Symbol.for("v-ndc");function Xe(e,t,n,s){let r;const o=n,l=ae(e);if(l||Ke(e)){const i=l&&pn(e);let a=!1,c=!1;i&&(a=!_t(e),c=Kt(e),e=nr(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=t(a?c?Cn(Ct(e[u])):Ct(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(Ne(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const u=i[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function _o(e,t,n={},s,r){if(nt.ce||nt.parent&&kn(nt.parent)&&nt.parent.ce){const c=Object.keys(n).length>0;return O(),pt(ve,null,[K("slot",n,s)],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),O();const l=o&&Ni(o(n)),i=n.key||l&&l.key,a=pt(ve,{key:(i&&!zt(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||[],l&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Ni(e){return e.some(t=>es(t)?!(t.type===Bt||t.type===ve&&!Ni(t.children)):!0)?e:null}const Nr=e=>e?ta(e)?ar(e):Nr(e.parent):null,qn=Qe(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=>Nr(e.parent),$root:e=>Nr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Di(e),$forceUpdate:e=>e.f||(e.f=()=>{mo(e.update)}),$nextTick:e=>e.n||(e.n=Si.bind(e.proxy)),$watch:e=>cu.bind(e)}),yr=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Re(e,t),Tu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:i,appContext:a}=e;if(t[0]!=="$"){const h=l[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(yr(s,t))return l[t]=1,s[t];if(r!==Ie&&Re(r,t))return l[t]=2,r[t];if(Re(o,t))return l[t]=3,o[t];if(n!==Ie&&Re(n,t))return l[t]=4,n[t];Fr&&(l[t]=0)}}const c=qn[t];let u,f;if(c)return t==="$attrs"&&tt(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Ie&&Re(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,Re(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return yr(r,t)?(r[t]=n,!0):s!==Ie&&Re(s,t)?(s[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:l}},i){let a;return!!(n[i]||e!==Ie&&i[0]!=="$"&&Re(e,i)||yr(t,i)||Re(o,i)||Re(s,i)||Re(qn,i)||Re(r.config.globalProperties,i)||(a=l.__cssModules)&&a[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ds(){return Cu().attrs}function Cu(e){const t=ir();return t.setupContext||(t.setupContext=sa(t))}function Do(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Fr=!0;function Su(e){const t=Di(e),n=e.proxy,s=e.ctx;Fr=!1,t.beforeCreate&&Uo(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:i,provide:a,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:b,updated:k,activated:E,deactivated:P,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:v,render:I,renderTracked:F,renderTriggered:A,errorCaptured:G,serverPrefetch:oe,expose:ye,inheritAttrs:he,components:de,directives:De,filters:le}=t;if(c&&Eu(c,s,null),l)for(const ee in l){const $=l[ee];ue($)&&(s[ee]=$.bind(n))}if(r){const ee=r.call(n,n);Ne(ee)&&(e.data=po(ee))}if(Fr=!0,o)for(const ee in o){const $=o[ee],z=ue($)?$.bind(n,n):ue($.get)?$.get.bind(n,n):Mt,se=!ue($)&&ue($.set)?$.set.bind(n):Mt,xe=H({get:z,set:se});Object.defineProperty(s,ee,{enumerable:!0,configurable:!0,get:()=>xe.value,set:fe=>xe.value=fe})}if(i)for(const ee in i)Fi(i[ee],s,n,ee);if(a){const ee=ue(a)?a.call(n):a;Reflect.ownKeys(ee).forEach($=>{lu($,ee[$])})}u&&Uo(u,e,"c");function J(ee,$){ae($)?$.forEach(z=>ee(z.bind(n))):$&&ee($.bind(n))}if(J(hu,f),J(Pn,h),J(bu,b),J(_u,k),J(pu,E),J(gu,P),J(wu,G),J(xu,F),J(yu,A),J(In,y),J(bo,v),J(vu,oe),ae(ye))if(ye.length){const ee=e.exposed||(e.exposed={});ye.forEach($=>{Object.defineProperty(ee,$,{get:()=>n[$],set:z=>n[$]=z,enumerable:!0})})}else e.exposed||(e.exposed={});I&&e.render===Mt&&(e.render=I),he!=null&&(e.inheritAttrs=he),de&&(e.components=de),De&&(e.directives=De),oe&&$i(e)}function Eu(e,t,n=Mt){ae(e)&&(e=Dr(e));for(const s in e){const r=e[s];let o;Ne(r)?"default"in r?o=Bn(r.from||s,r.default,!0):o=Bn(r.from||s):o=Bn(r),Fe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function Uo(e,t,n){$t(ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fi(e,t,n,s){let r=s.includes(".")?Li(n,s):()=>n[s];if(Ke(e)){const o=t[e];ue(o)&&ft(r,o)}else if(ue(e))ft(r,e.bind(n));else if(Ne(e))if(ae(e))e.forEach(o=>Fi(o,t,n,s));else{const o=ue(e.handler)?e.handler.bind(n):t[e.handler];ue(o)&&ft(r,o,e)}}function Di(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,i=o.get(t);let a;return i?a=i:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Hs(a,c,l,!0)),Hs(a,t,l)),Ne(t)&&o.set(t,a),a}function Hs(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Hs(e,o,n,!0),r&&r.forEach(l=>Hs(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=Ru[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const Ru={data:Vo,props:Wo,emits:Wo,methods:Vn,computed:Vn,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:Vn,directives:Vn,watch:Iu,provide:Vo,inject:Pu};function Vo(e,t){return t?e?function(){return Qe(ue(e)?e.call(this,this):e,ue(t)?t.call(this,this):t)}:t:e}function Pu(e,t){return Vn(Dr(e),Dr(t))}function Dr(e){if(ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function lt(e,t){return e?[...new Set([].concat(e,t))]:t}function Vn(e,t){return e?Qe(Object.create(null),e,t):t}function Wo(e,t){return e?ae(e)&&ae(t)?[...new Set([...e,...t])]:Qe(Object.create(null),Do(e),Do(t??{})):t}function Iu(e,t){if(!e)return t;if(!t)return e;const n=Qe(Object.create(null),e);for(const s in t)n[s]=lt(e[s],t[s]);return n}function Ui(){return{app:null,config:{isNativeTag:Ql,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Mu=0;function Lu(e,t){return function(s,r=null){ue(s)||(s=Qe({},s)),r!=null&&!Ne(r)&&(r=null);const o=Ui(),l=new WeakSet,i=[];let a=!1;const c=o.app={_uid:Mu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:id,get config(){return o.config},set config(u){},use(u,...f){return l.has(u)||(u&&ue(u.install)?(l.add(u),u.install(c,...f)):ue(u)&&(l.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,h){if(!a){const b=c._ceVNode||K(s,r);return b.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(b,u,h),a=!0,c._container=u,u.__vue_app__=c,ar(b.component)}},onUnmount(u){i.push(u)},unmount(){a&&($t(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=Tn;Tn=c;try{return u()}finally{Tn=f}}};return c}}let Tn=null;const $u=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${en(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function Ou(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ie;let r=n;const o=t.startsWith("update:"),l=o&&$u(s,t.slice(7));l&&(l.trim&&(r=n.map(u=>Ke(u)?u.trim():u)),l.number&&(r=n.map(bc)));let i,a=s[i=gr(t)]||s[i=gr(en(t))];!a&&o&&(a=s[i=gr(gn(t))]),a&&$t(a,e,6,r);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,$t(c,e,6,r)}}const Au=new WeakMap;function Vi(e,t,n=!1){const s=n?Au:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},i=!1;if(!ue(e)){const a=c=>{const u=Vi(c,t,!0);u&&(i=!0,Qe(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!i?(Ne(e)&&s.set(e,null),null):(ae(o)?o.forEach(a=>l[a]=null):Qe(l,o),Ne(e)&&s.set(e,l),l)}function lr(e,t){return!e||!Xs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,gn(t))||Re(e,t))}function jo(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:i,emit:a,render:c,renderCache:u,props:f,data:h,setupState:b,ctx:k,inheritAttrs:E}=e,P=Ws(e);let g,y;try{if(n.shapeFlag&4){const v=r||s,I=v;g=It(c.call(I,v,u,f,b,h,k)),y=i}else{const v=t;g=It(v.length>1?v(f,{attrs:i,slots:l,emit:a}):v(f,null)),y=t.props?i:Nu(i)}}catch(v){Yn.length=0,rr(v,e,1),g=K(Bt)}let _=g;if(y&&E!==!1){const v=Object.keys(y),{shapeFlag:I}=_;v.length&&I&7&&(o&&v.some(oo)&&(y=Fu(y,o)),_=Sn(_,y,!1,!0))}return n.dirs&&(_=Sn(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&ho(_,n.transition),g=_,Ws(P),g}const Nu=e=>{let t;for(const n in e)(n==="class"||n==="style"||Xs(n))&&((t||(t={}))[n]=e[n]);return t},Fu=(e,t)=>{const n={};for(const s in e)(!oo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Du(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:i,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ho(s,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(l[h]!==s[h]&&!lr(c,h))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?Ho(s,l,c):!0:!!l;return!1}function Ho(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!lr(n,o))return!0}return!1}function Uu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Wi={},ji=()=>Object.create(Wi),Hi=e=>Object.getPrototypeOf(e)===Wi;function Vu(e,t,n,s=!1){const r={},o=ji();e.propsDefaults=Object.create(null),Gi(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Kc(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Wu(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,i=Te(r),[a]=e.propsOptions;let c=!1;if((s||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(lr(e.emitsOptions,h))continue;const b=t[h];if(a)if(Re(o,h))b!==o[h]&&(o[h]=b,c=!0);else{const k=en(h);r[k]=Ur(a,i,k,b,e,!1)}else b!==o[h]&&(o[h]=b,c=!0)}}}else{Gi(e,t,r,o)&&(c=!0);let u;for(const f in i)(!t||!Re(t,f)&&((u=gn(f))===f||!Re(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=Ur(a,i,f,void 0,e,!0)):delete r[f]);if(o!==i)for(const f in o)(!t||!Re(t,f))&&(delete o[f],c=!0)}c&&Ut(e.attrs,"set","")}function Gi(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,i;if(t)for(let a in t){if(Hn(a))continue;const c=t[a];let u;r&&Re(r,u=en(a))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:lr(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,l=!0)}if(o){const a=Te(n),c=i||Ie;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Ur(r,a,f,c[f],e,!Re(c,f))}}return l}function Ur(e,t,n,s,r,o){const l=e[n];if(l!=null){const i=Re(l,"default");if(i&&s===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ue(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=ps(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!i?s=!1:l[1]&&(s===""||s===gn(n))&&(s=!0))}return s}const ju=new WeakMap;function Ki(e,t,n=!1){const s=n?ju:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},i=[];let a=!1;if(!ue(e)){const u=f=>{a=!0;const[h,b]=Ki(f,t,!0);Qe(l,h),b&&i.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return Ne(e)&&s.set(e,yn),yn;if(ae(o))for(let u=0;u<o.length;u++){const f=en(o[u]);Go(f)&&(l[f]=Ie)}else if(o)for(const u in o){const f=en(u);if(Go(f)){const h=o[u],b=l[f]=ae(h)||ue(h)?{type:h}:Qe({},h),k=b.type;let E=!1,P=!0;if(ae(k))for(let g=0;g<k.length;++g){const y=k[g],_=ue(y)&&y.name;if(_==="Boolean"){E=!0;break}else _==="String"&&(P=!1)}else E=ue(k)&&k.name==="Boolean";b[0]=E,b[1]=P,(E||Re(b,"default"))&&i.push(f)}}const c=[l,i];return Ne(e)&&s.set(e,c),c}function Go(e){return e[0]!=="$"&&!Hn(e)}const vo=e=>e==="_"||e==="_ctx"||e==="$stable",yo=e=>ae(e)?e.map(It):[It(e)],Hu=(e,t,n)=>{if(t._n)return t;const s=ne((...r)=>yo(t(...r)),n);return s._c=!1,s},Bi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(vo(r))continue;const o=e[r];if(ue(o))t[r]=Hu(r,o,s);else if(o!=null){const l=yo(o);t[r]=()=>l}}},zi=(e,t)=>{const n=yo(t);e.slots.default=()=>n},qi=(e,t,n)=>{for(const s in t)(n||!vo(s))&&(e[s]=t[s])},Gu=(e,t,n)=>{const s=e.slots=ji();if(e.vnode.shapeFlag&32){const r=t._;r?(qi(s,t,n),n&&ri(s,"_",r,!0)):Bi(t,s)}else t&&zi(e,t)},Ku=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=Ie;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:qi(r,t,n):(o=!t.$stable,Bi(t,r)),l=t}else t&&(zi(e,t),l={default:1});if(o)for(const i in r)!vo(i)&&l[i]==null&&delete r[i]},ht=Ju;function Bu(e){return zu(e)}function zu(e,t){const n=tr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:i,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:b=Mt,insertStaticContent:k}=e,E=(m,x,M,j=null,U=null,V=null,d=void 0,p=null,T=!!x.dynamicChildren)=>{if(m===x)return;m&&!Nn(m,x)&&(j=ke(m),fe(m,U,V,!0),m=null),x.patchFlag===-2&&(T=!1,x.dynamicChildren=null);const{type:R,ref:B,shapeFlag:W}=x;switch(R){case fs:P(m,x,M,j);break;case Bt:g(m,x,M,j);break;case wr:m==null&&y(x,M,j,d);break;case ve:de(m,x,M,j,U,V,d,p,T);break;default:W&1?I(m,x,M,j,U,V,d,p,T):W&6?De(m,x,M,j,U,V,d,p,T):(W&64||W&128)&&R.process(m,x,M,j,U,V,d,p,T,Be)}B!=null&&U?zn(B,m&&m.ref,V,x||m,!x):B==null&&m&&m.ref!=null&&zn(m.ref,null,V,m,!0)},P=(m,x,M,j)=>{if(m==null)s(x.el=i(x.children),M,j);else{const U=x.el=m.el;x.children!==m.children&&c(U,x.children)}},g=(m,x,M,j)=>{m==null?s(x.el=a(x.children||""),M,j):x.el=m.el},y=(m,x,M,j)=>{[m.el,m.anchor]=k(m.children,x,M,j,m.el,m.anchor)},_=({el:m,anchor:x},M,j)=>{let U;for(;m&&m!==x;)U=h(m),s(m,M,j),m=U;s(x,M,j)},v=({el:m,anchor:x})=>{let M;for(;m&&m!==x;)M=h(m),r(m),m=M;r(x)},I=(m,x,M,j,U,V,d,p,T)=>{if(x.type==="svg"?d="svg":x.type==="math"&&(d="mathml"),m==null)F(x,M,j,U,V,d,p,T);else{const R=m.el&&m.el._isVueCE?m.el:null;try{R&&R._beginPatch(),oe(m,x,U,V,d,p,T)}finally{R&&R._endPatch()}}},F=(m,x,M,j,U,V,d,p)=>{let T,R;const{props:B,shapeFlag:W,transition:C,dirs:L}=m;if(T=m.el=l(m.type,V,B&&B.is,B),W&8?u(T,m.children):W&16&&G(m.children,T,null,j,U,xr(m,V),d,p),L&&on(m,null,j,"created"),A(T,m,m.scopeId,d,j),B){for(const re in B)re!=="value"&&!Hn(re)&&o(T,re,null,B[re],V,j);"value"in B&&o(T,"value",null,B.value,V),(R=B.onVnodeBeforeMount)&&St(R,j,m)}L&&on(m,null,j,"beforeMount");const X=qu(U,C);X&&C.beforeEnter(T),s(T,x,M),((R=B&&B.onVnodeMounted)||X||L)&&ht(()=>{R&&St(R,j,m),X&&C.enter(T),L&&on(m,null,j,"mounted")},U)},A=(m,x,M,j,U)=>{if(M&&b(m,M),j)for(let V=0;V<j.length;V++)b(m,j[V]);if(U){let V=U.subTree;if(x===V||Qi(V.type)&&(V.ssContent===x||V.ssFallback===x)){const d=U.vnode;A(m,d,d.scopeId,d.slotScopeIds,U.parent)}}},G=(m,x,M,j,U,V,d,p,T=0)=>{for(let R=T;R<m.length;R++){const B=m[R]=p?Qt(m[R]):It(m[R]);E(null,B,x,M,j,U,V,d,p)}},oe=(m,x,M,j,U,V,d)=>{const p=x.el=m.el;let{patchFlag:T,dynamicChildren:R,dirs:B}=x;T|=m.patchFlag&16;const W=m.props||Ie,C=x.props||Ie;let L;if(M&&ln(M,!1),(L=C.onVnodeBeforeUpdate)&&St(L,M,x,m),B&&on(x,m,M,"beforeUpdate"),M&&ln(M,!0),(W.innerHTML&&C.innerHTML==null||W.textContent&&C.textContent==null)&&u(p,""),R?ye(m.dynamicChildren,R,p,M,j,xr(x,U),V):d||$(m,x,p,null,M,j,xr(x,U),V,!1),T>0){if(T&16)he(p,W,C,M,U);else if(T&2&&W.class!==C.class&&o(p,"class",null,C.class,U),T&4&&o(p,"style",W.style,C.style,U),T&8){const X=x.dynamicProps;for(let re=0;re<X.length;re++){const pe=X[re],He=W[pe],Ve=C[pe];(Ve!==He||pe==="value")&&o(p,pe,He,Ve,U,M)}}T&1&&m.children!==x.children&&u(p,x.children)}else!d&&R==null&&he(p,W,C,M,U);((L=C.onVnodeUpdated)||B)&&ht(()=>{L&&St(L,M,x,m),B&&on(x,m,M,"updated")},j)},ye=(m,x,M,j,U,V,d)=>{for(let p=0;p<x.length;p++){const T=m[p],R=x[p],B=T.el&&(T.type===ve||!Nn(T,R)||T.shapeFlag&198)?f(T.el):M;E(T,R,B,null,j,U,V,d,!0)}},he=(m,x,M,j,U)=>{if(x!==M){if(x!==Ie)for(const V in x)!Hn(V)&&!(V in M)&&o(m,V,x[V],null,U,j);for(const V in M){if(Hn(V))continue;const d=M[V],p=x[V];d!==p&&V!=="value"&&o(m,V,p,d,U,j)}"value"in M&&o(m,"value",x.value,M.value,U)}},de=(m,x,M,j,U,V,d,p,T)=>{const R=x.el=m?m.el:i(""),B=x.anchor=m?m.anchor:i("");let{patchFlag:W,dynamicChildren:C,slotScopeIds:L}=x;L&&(p=p?p.concat(L):L),m==null?(s(R,M,j),s(B,M,j),G(x.children||[],M,B,U,V,d,p,T)):W>0&&W&64&&C&&m.dynamicChildren&&m.dynamicChildren.length===C.length?(ye(m.dynamicChildren,C,M,U,V,d,p),(x.key!=null||U&&x===U.subTree)&&Yi(m,x,!0)):$(m,x,M,B,U,V,d,p,T)},De=(m,x,M,j,U,V,d,p,T)=>{x.slotScopeIds=p,m==null?x.shapeFlag&512?U.ctx.activate(x,M,j,d,T):le(x,M,j,U,V,d,T):ie(m,x,T)},le=(m,x,M,j,U,V,d)=>{const p=m.component=nd(m,j,U);if(Oi(m)&&(p.ctx.renderer=Be),sd(p,!1,d),p.asyncDep){if(U&&U.registerDep(p,J,d),!m.el){const T=p.subTree=K(Bt);g(null,T,x,M),m.placeholder=T.el}}else J(p,m,x,M,U,V,d)},ie=(m,x,M)=>{const j=x.component=m.component;if(Du(m,x,M))if(j.asyncDep&&!j.asyncResolved){ee(j,x,M);return}else j.next=x,j.update();else x.el=m.el,j.vnode=x},J=(m,x,M,j,U,V,d)=>{const p=()=>{if(m.isMounted){let{next:W,bu:C,u:L,parent:X,vnode:re}=m;{const mt=Ji(m);if(mt){W&&(W.el=re.el,ee(m,W,d)),mt.asyncDep.then(()=>{m.isUnmounted||p()});return}}let pe=W,He;ln(m,!1),W?(W.el=re.el,ee(m,W,d)):W=re,C&&mr(C),(He=W.props&&W.props.onVnodeBeforeUpdate)&&St(He,X,W,re),ln(m,!0);const Ve=jo(m),ct=m.subTree;m.subTree=Ve,E(ct,Ve,f(ct.el),ke(ct),m,U,V),W.el=Ve.el,pe===null&&Uu(m,Ve.el),L&&ht(L,U),(He=W.props&&W.props.onVnodeUpdated)&&ht(()=>St(He,X,W,re),U)}else{let W;const{el:C,props:L}=x,{bm:X,m:re,parent:pe,root:He,type:Ve}=m,ct=kn(x);ln(m,!1),X&&mr(X),!ct&&(W=L&&L.onVnodeBeforeMount)&&St(W,pe,x),ln(m,!0);{He.ce&&He.ce._def.shadowRoot!==!1&&He.ce._injectChildStyle(Ve);const mt=m.subTree=jo(m);E(null,mt,M,j,m,U,V),x.el=mt.el}if(re&&ht(re,U),!ct&&(W=L&&L.onVnodeMounted)){const mt=x;ht(()=>St(W,pe,mt),U)}(x.shapeFlag&256||pe&&kn(pe.vnode)&&pe.vnode.shapeFlag&256)&&m.a&&ht(m.a,U),m.isMounted=!0,x=M=j=null}};m.scope.on();const T=m.effect=new ci(p);m.scope.off();const R=m.update=T.run.bind(T),B=m.job=T.runIfDirty.bind(T);B.i=m,B.id=m.uid,T.scheduler=()=>mo(B),ln(m,!0),R()},ee=(m,x,M)=>{x.component=m;const j=m.vnode.props;m.vnode=x,m.next=null,Wu(m,x.props,j,M),Ku(m,x.children,M),Ht(),No(m),Gt()},$=(m,x,M,j,U,V,d,p,T=!1)=>{const R=m&&m.children,B=m?m.shapeFlag:0,W=x.children,{patchFlag:C,shapeFlag:L}=x;if(C>0){if(C&128){se(R,W,M,j,U,V,d,p,T);return}else if(C&256){z(R,W,M,j,U,V,d,p,T);return}}L&8?(B&16&&je(R,U,V),W!==R&&u(M,W)):B&16?L&16?se(R,W,M,j,U,V,d,p,T):je(R,U,V,!0):(B&8&&u(M,""),L&16&&G(W,M,j,U,V,d,p,T))},z=(m,x,M,j,U,V,d,p,T)=>{m=m||yn,x=x||yn;const R=m.length,B=x.length,W=Math.min(R,B);let C;for(C=0;C<W;C++){const L=x[C]=T?Qt(x[C]):It(x[C]);E(m[C],L,M,null,U,V,d,p,T)}R>B?je(m,U,V,!0,!1,W):G(x,M,j,U,V,d,p,T,W)},se=(m,x,M,j,U,V,d,p,T)=>{let R=0;const B=x.length;let W=m.length-1,C=B-1;for(;R<=W&&R<=C;){const L=m[R],X=x[R]=T?Qt(x[R]):It(x[R]);if(Nn(L,X))E(L,X,M,null,U,V,d,p,T);else break;R++}for(;R<=W&&R<=C;){const L=m[W],X=x[C]=T?Qt(x[C]):It(x[C]);if(Nn(L,X))E(L,X,M,null,U,V,d,p,T);else break;W--,C--}if(R>W){if(R<=C){const L=C+1,X=L<B?x[L].el:j;for(;R<=C;)E(null,x[R]=T?Qt(x[R]):It(x[R]),M,X,U,V,d,p,T),R++}}else if(R>C)for(;R<=W;)fe(m[R],U,V,!0),R++;else{const L=R,X=R,re=new Map;for(R=X;R<=C;R++){const ot=x[R]=T?Qt(x[R]):It(x[R]);ot.key!=null&&re.set(ot.key,R)}let pe,He=0;const Ve=C-X+1;let ct=!1,mt=0;const rn=new Array(Ve);for(R=0;R<Ve;R++)rn[R]=0;for(R=L;R<=W;R++){const ot=m[R];if(He>=Ve){fe(ot,U,V,!0);continue}let yt;if(ot.key!=null)yt=re.get(ot.key);else for(pe=X;pe<=C;pe++)if(rn[pe-X]===0&&Nn(ot,x[pe])){yt=pe;break}yt===void 0?fe(ot,U,V,!0):(rn[yt-X]=R+1,yt>=mt?mt=yt:ct=!0,E(ot,x[yt],M,null,U,V,d,p,T),He++)}const hs=ct?Yu(rn):yn;for(pe=hs.length-1,R=Ve-1;R>=0;R--){const ot=X+R,yt=x[ot],On=x[ot+1],bs=ot+1<B?On.el||Xi(On):j;rn[R]===0?E(null,yt,M,bs,U,V,d,p,T):ct&&(pe<0||R!==hs[pe]?xe(yt,M,bs,2):pe--)}}},xe=(m,x,M,j,U=null)=>{const{el:V,type:d,transition:p,children:T,shapeFlag:R}=m;if(R&6){xe(m.component.subTree,x,M,j);return}if(R&128){m.suspense.move(x,M,j);return}if(R&64){d.move(m,x,M,Be);return}if(d===ve){s(V,x,M);for(let W=0;W<T.length;W++)xe(T[W],x,M,j);s(m.anchor,x,M);return}if(d===wr){_(m,x,M);return}if(j!==2&&R&1&&p)if(j===0)p.beforeEnter(V),s(V,x,M),ht(()=>p.enter(V),U);else{const{leave:W,delayLeave:C,afterLeave:L}=p,X=()=>{m.ctx.isUnmounted?r(V):s(V,x,M)},re=()=>{V._isLeaving&&V[fu](!0),W(V,()=>{X(),L&&L()})};C?C(V,X,re):re()}else s(V,x,M)},fe=(m,x,M,j=!1,U=!1)=>{const{type:V,props:d,ref:p,children:T,dynamicChildren:R,shapeFlag:B,patchFlag:W,dirs:C,cacheIndex:L}=m;if(W===-2&&(U=!1),p!=null&&(Ht(),zn(p,null,M,m,!0),Gt()),L!=null&&(x.renderCache[L]=void 0),B&256){x.ctx.deactivate(m);return}const X=B&1&&C,re=!kn(m);let pe;if(re&&(pe=d&&d.onVnodeBeforeUnmount)&&St(pe,x,m),B&6)Ue(m.component,M,j);else{if(B&128){m.suspense.unmount(M,j);return}X&&on(m,null,x,"beforeUnmount"),B&64?m.type.remove(m,x,M,Be,j):R&&!R.hasOnce&&(V!==ve||W>0&&W&64)?je(R,x,M,!1,!0):(V===ve&&W&384||!U&&B&16)&&je(T,x,M),j&&_e(m)}(re&&(pe=d&&d.onVnodeUnmounted)||X)&&ht(()=>{pe&&St(pe,x,m),X&&on(m,null,x,"unmounted")},M)},_e=m=>{const{type:x,el:M,anchor:j,transition:U}=m;if(x===ve){Se(M,j);return}if(x===wr){v(m);return}const V=()=>{r(M),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(m.shapeFlag&1&&U&&!U.persisted){const{leave:d,delayLeave:p}=U,T=()=>d(M,V);p?p(m.el,V,T):T()}else V()},Se=(m,x)=>{let M;for(;m!==x;)M=h(m),r(m),m=M;r(x)},Ue=(m,x,M)=>{const{bum:j,scope:U,job:V,subTree:d,um:p,m:T,a:R}=m;Ko(T),Ko(R),j&&mr(j),U.stop(),V&&(V.flags|=8,fe(d,m,x,M)),p&&ht(p,x),ht(()=>{m.isUnmounted=!0},x)},je=(m,x,M,j=!1,U=!1,V=0)=>{for(let d=V;d<m.length;d++)fe(m[d],x,M,j,U)},ke=m=>{if(m.shapeFlag&6)return ke(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const x=h(m.anchor||m.el),M=x&&x[uu];return M?h(M):x};let st=!1;const rt=(m,x,M)=>{let j;m==null?x._vnode&&(fe(x._vnode,null,null,!0),j=x._vnode.component):E(x._vnode||null,m,x,null,null,null,M),x._vnode=m,st||(st=!0,No(j),Ri(),st=!1)},Be={p:E,um:fe,m:xe,r:_e,mt:le,mc:G,pc:$,pbc:ye,n:ke,o:e};return{render:rt,hydrate:void 0,createApp:Lu(rt)}}function xr({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 ln({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yi(e,t,n=!1){const s=e.children,r=t.children;if(ae(s)&&ae(r))for(let o=0;o<s.length;o++){const l=s[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=Qt(r[o]),i.el=l.el),!n&&i.patchFlag!==-2&&Yi(l,i)),i.type===fs&&(i.patchFlag!==-1?i.el=l.el:i.__elIndex=o+(e.type===ve?1:0)),i.type===Bt&&!i.el&&(i.el=l.el)}}function Yu(e){const t=e.slice(),n=[0];let s,r,o,l,i;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,l=n.length-1;o<l;)i=o+l>>1,e[n[i]]<c?o=i+1:l=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function Ji(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ji(t)}function Ko(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Xi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Xi(t.subTree):null}const Qi=e=>e.__isSuspense;function Ju(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):ou(e)}const ve=Symbol.for("v-fgt"),fs=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),wr=Symbol.for("v-stc"),Yn=[];let bt=null;function O(e=!1){Yn.push(bt=e?null:[])}function Xu(){Yn.pop(),bt=Yn[Yn.length-1]||null}let Zn=1;function Gs(e,t=!1){Zn+=e,e<0&&bt&&t&&(bt.hasOnce=!0)}function Zi(e){return e.dynamicChildren=Zn>0?bt||yn:null,Xu(),Zn>0&&bt&&bt.push(e),e}function D(e,t,n,s,r,o){return Zi(w(e,t,n,s,r,o,!0))}function pt(e,t,n,s,r){return Zi(K(e,t,n,s,r,!0))}function es(e){return e?e.__v_isVNode===!0:!1}function Nn(e,t){return e.type===t.type&&e.key===t.key}const ea=({key:e})=>e??null,$s=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ke(e)||Fe(e)||ue(e)?{i:nt,r:e,k:t,f:!!n}:e:null);function w(e,t=null,n=null,s=0,r=null,o=e===ve?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ea(t),ref:t&&$s(t),scopeId:Ii,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:nt};return i?(xo(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Ke(n)?8:16),Zn>0&&!l&&bt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&bt.push(a),a}const K=Qu;function Qu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===ku)&&(e=Bt),es(e)){const i=Sn(e,t,!0);return n&&xo(i,n),Zn>0&&!o&&bt&&(i.shapeFlag&6?bt[bt.indexOf(e)]=i:bt.push(i)),i.patchFlag=-2,i}if(ld(e)&&(e=e.__vccOpts),t){t=Zu(t);let{class:i,style:a}=t;i&&!Ke(i)&&(t.class=Ae(i)),Ne(a)&&(sr(a)&&!ae(a)&&(a=Qe({},a)),t.style=cs(a))}const l=Ke(e)?1:Qi(e)?128:du(e)?64:Ne(e)?4:ue(e)?2:0;return w(e,t,n,s,r,l,o,!0)}function Zu(e){return e?sr(e)||Hi(e)?Qe({},e):e:null}function Sn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:i,transition:a}=e,c=t?mn(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ea(c),ref:t&&t.ref?n&&o?ae(o)?o.concat($s(t)):[o,$s(t)]:$s(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Sn(e.ssContent),ssFallback:e.ssFallback&&Sn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&ho(u,a.clone(u)),u}function me(e=" ",t=0){return K(fs,null,e,t)}function ce(e="",t=!1){return t?(O(),pt(Bt,null,e)):K(Bt,null,e)}function It(e){return e==null||typeof e=="boolean"?K(Bt):ae(e)?K(ve,null,e.slice()):es(e)?Qt(e):K(fs,null,String(e))}function Qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Sn(e)}function xo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),xo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Hi(t)?t._ctx=nt:r===3&&nt&&(nt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:nt},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mn(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(r==="style")t.style=cs([t.style,s.style]);else if(Xs(r)){const o=t[r],l=s[r];l&&o!==l&&!(ae(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function St(e,t,n,s=null){$t(e,t,7,[n,s])}const ed=Ui();let td=0;function nd(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ed,o={uid:td++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ki(s,r),emitsOptions:Vi(s,r),emit:null,emitted:null,propsDefaults:Ie,inheritAttrs:s.inheritAttrs,ctx:Ie,data:Ie,props:Ie,attrs:Ie,slots:Ie,refs:Ie,setupState:Ie,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ou.bind(null,o),e.ce&&e.ce(o),o}let at=null;const ir=()=>at||nt;let Ks,Vr;{const e=tr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};Ks=t("__VUE_INSTANCE_SETTERS__",n=>at=n),Vr=t("__VUE_SSR_SETTERS__",n=>ts=n)}const ps=e=>{const t=at;return Ks(e),e.scope.on(),()=>{e.scope.off(),Ks(t)}},Bo=()=>{at&&at.scope.off(),Ks(null)};function ta(e){return e.vnode.shapeFlag&4}let ts=!1;function sd(e,t=!1,n=!1){t&&Vr(t);const{props:s,children:r}=e.vnode,o=ta(e);Vu(e,s,o,t),Gu(e,r,n||t);const l=o?rd(e,t):void 0;return t&&Vr(!1),l}function rd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tu);const{setup:s}=n;if(s){Ht();const r=e.setupContext=s.length>1?sa(e):null,o=ps(e),l=us(s,e,0,[e.props,r]),i=ei(l);if(Gt(),o(),(i||e.sp)&&!kn(e)&&$i(e),i){if(l.then(Bo,Bo),t)return l.then(a=>{zo(e,a)}).catch(a=>{rr(a,e,0)});e.asyncDep=l}else zo(e,l)}else na(e)}function zo(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ne(t)&&(e.setupState=Ti(t)),na(e)}function na(e,t,n){const s=e.type;e.render||(e.render=s.render||Mt);{const r=ps(e);Ht();try{Su(e)}finally{Gt(),r()}}}const od={get(e,t){return tt(e,"get",""),e[t]}};function sa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,od),slots:e.slots,emit:e.emit,expose:t}}function ar(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ti(Bc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qn)return qn[n](e)},has(t,n){return n in t||n in qn}})):e.proxy}function ld(e){return ue(e)&&"__vccOpts"in e}const H=(e,t)=>eu(e,t,ts);function ra(e,t,n){try{Gs(-1);const s=arguments.length;return s===2?Ne(t)&&!ae(t)?es(t)?K(e,null,[t]):K(e,t):K(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&es(n)&&(n=[n]),K(e,t,n))}finally{Gs(1)}}const id="3.5.27";let Wr;const qo=typeof window<"u"&&window.trustedTypes;if(qo)try{Wr=qo.createPolicy("vue",{createHTML:e=>e})}catch{}const oa=Wr?e=>Wr.createHTML(e):e=>e,ad="http://www.w3.org/2000/svg",cd="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,Yo=Ft&&Ft.createElement("template"),ud={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ft.createElementNS(ad,e):t==="mathml"?Ft.createElementNS(cd,e):n?Ft.createElement(e,{is:n}):Ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Yo.innerHTML=oa(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Yo.content;if(s==="svg"||s==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dd=Symbol("_vtc");function fd(e,t,n){const s=e[dd];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Bs=Symbol("_vod"),la=Symbol("_vsh"),ws={name:"show",beforeMount(e,{value:t},{transition:n}){e[Bs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Fn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Fn(e,!0),s.enter(e)):s.leave(e,()=>{Fn(e,!1)}):Fn(e,t))},beforeUnmount(e,{value:t}){Fn(e,t)}};function Fn(e,t){e.style.display=t?e[Bs]:"none",e[la]=!t}const pd=Symbol(""),gd=/(?:^|;)\s*display\s*:/;function md(e,t,n){const s=e.style,r=Ke(n);let o=!1;if(n&&!r){if(t)if(Ke(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&Os(s,i,"")}else for(const l in t)n[l]==null&&Os(s,l,"");for(const l in n)l==="display"&&(o=!0),Os(s,l,n[l])}else if(r){if(t!==n){const l=s[pd];l&&(n+=";"+l),s.cssText=n,o=gd.test(n)}}else t&&e.removeAttribute("style");Bs in e&&(e[Bs]=o?s.display:"",e[la]&&(s.display="none"))}const Jo=/\s*!important$/;function Os(e,t,n){if(ae(n))n.forEach(s=>Os(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=hd(e,t);Jo.test(n)?e.setProperty(gn(s),n.replace(Jo,""),"important"):e[s]=n}}const Xo=["Webkit","Moz","ms"],kr={};function hd(e,t){const n=kr[t];if(n)return n;let s=en(t);if(s!=="filter"&&s in e)return kr[t]=s;s=si(s);for(let r=0;r<Xo.length;r++){const o=Xo[r]+s;if(o in e)return kr[t]=o}return t}const Qo="http://www.w3.org/1999/xlink";function Zo(e,t,n,s,r,o=kc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Qo,t.slice(6,t.length)):e.setAttributeNS(Qo,t,n):n==null||o&&!oi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":zt(n)?String(n):n)}function el(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?oa(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=oi(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function bd(e,t,n,s){e.addEventListener(t,n,s)}function _d(e,t,n,s){e.removeEventListener(t,n,s)}const tl=Symbol("_vei");function vd(e,t,n,s,r=null){const o=e[tl]||(e[tl]={}),l=o[t];if(s&&l)l.value=s;else{const[i,a]=yd(t);if(s){const c=o[t]=kd(s,r);bd(e,i,c,a)}else l&&(_d(e,i,l,a),o[t]=void 0)}}const nl=/(?:Once|Passive|Capture)$/;function yd(e){let t;if(nl.test(e)){t={};let s;for(;s=e.match(nl);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):gn(e.slice(2)),t]}let Tr=0;const xd=Promise.resolve(),wd=()=>Tr||(xd.then(()=>Tr=0),Tr=Date.now());function kd(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$t(Td(s,n.value),t,5,[s])};return n.value=e,n.attached=wd(),n}function Td(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cd=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?fd(e,s,l):t==="style"?md(e,n,s):Xs(t)?oo(t)||vd(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sd(e,t,s,l))?(el(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zo(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ke(s))?el(e,en(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Zo(e,t,s,l))};function Sd(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&sl(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return sl(t)&&Ke(n)?!1:t in e}const Ed=["ctrl","shift","alt","meta"],Rd={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)=>Ed.some(n=>e[`${n}Key`]&&!t.includes(n))},ks=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let l=0;l<t.length;l++){const i=Rd[t[l]];if(i&&i(r,t))return}return e(r,...o)}))},Pd=Qe({patchProp:Cd},ud);let rl;function Id(){return rl||(rl=Bu(Pd))}const Md=((...e)=>{const t=Id().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=$d(s);if(!r)return;const o=t._component;!ue(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,Ld(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function Ld(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $d(e){return Ke(e)?document.querySelector(e):e}function Od(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const zs=typeof window<"u",tn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ad=(e,t,n)=>Nd({l:e,k:t,s:n}),Nd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ge=e=>typeof e=="number"&&isFinite(e),Fd=e=>wo(e)==="[object Date]",En=e=>wo(e)==="[object RegExp]",cr=e=>be(e)&&Object.keys(e).length===0,Ye=Object.assign,Dd=Object.create,Pe=(e=null)=>Dd(e);let ol;const un=()=>ol||(ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Pe());function ll(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function il(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ud(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${il(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${il(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript:")}),e}const Vd=Object.prototype.hasOwnProperty;function kt(e,t){return Vd.call(e,t)}const We=Array.isArray,Oe=e=>typeof e=="function",Y=e=>typeof e=="string",we=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",Wd=e=>Ce(e)&&Oe(e.then)&&Oe(e.catch),ia=Object.prototype.toString,wo=e=>ia.call(e),be=e=>wo(e)==="[object Object]",jd=e=>e==null?"":We(e)||be(e)&&e.toString===ia?JSON.stringify(e,null,2):String(e);function ko(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const Ts=e=>!Ce(e)||We(e);function As(e,t){if(Ts(e)||Ts(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Ce(s[o])&&!Ce(r[o])&&(r[o]=Array.isArray(s[o])?[]:Pe()),Ts(r[o])||Ts(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function Hd(e,t,n){return{line:e,column:t,offset:n}}function jr(e,t,n){return{start:e,end:t}}const Ee={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},Gd=17;function ur(e,t,n={}){const{domain:s,messages:r,args:o}=n,l=e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=s,i}function Kd(e){throw e}const Et=" ",Bd="\r",et=`
|
|
2
|
-
`,zd="\u2028",qd="\u2029";function Yd(e){const t=e;let n=0,s=1,r=1,o=0;const l=A=>t[A]===Bd&&t[A+1]===et,i=A=>t[A]===et,a=A=>t[A]===qd,c=A=>t[A]===zd,u=A=>l(A)||i(A)||a(A)||c(A),f=()=>n,h=()=>s,b=()=>r,k=()=>o,E=A=>l(A)||a(A)||c(A)?et:t[A],P=()=>E(n),g=()=>E(n+o);function y(){return o=0,u(n)&&(s++,r=0),l(n)&&n++,n++,r++,t[n]}function _(){return l(n+o)&&o++,o++,t[n+o]}function v(){n=0,s=1,r=1,o=0}function I(A=0){o=A}function F(){const A=n+o;for(;A!==n;)y();o=0}return{index:f,line:h,column:b,peekOffset:k,charAt:E,currentChar:P,currentPeek:g,next:y,peek:_,reset:v,resetPeek:I,skipToPeek:F}}const At=void 0,Jd=".",al="'",Xd="tokenizer";function Qd(e,t={}){const n=t.location!==!1,s=Yd(e),r=()=>s.index(),o=()=>Hd(s.line(),s.column(),s.index()),l=o(),i=r(),a={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=t;function f(d,p,T,...R){const B=c();if(p.column+=T,p.offset+=T,u){const W=n?jr(B.startLoc,p):null,C=ur(d,W,{domain:Xd,args:R});u(C)}}function h(d,p,T){d.endLoc=o(),d.currentType=p;const R={type:p};return n&&(R.loc=jr(d.startLoc,d.endLoc)),T!=null&&(R.value=T),R}const b=d=>h(d,13);function k(d,p){return d.currentChar()===p?(d.next(),p):(f(Ee.EXPECTED_TOKEN,o(),0,p),"")}function E(d){let p="";for(;d.currentPeek()===Et||d.currentPeek()===et;)p+=d.currentPeek(),d.peek();return p}function P(d){const p=E(d);return d.skipToPeek(),p}function g(d){if(d===At)return!1;const p=d.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function y(d){if(d===At)return!1;const p=d.charCodeAt(0);return p>=48&&p<=57}function _(d,p){const{currentType:T}=p;if(T!==2)return!1;E(d);const R=g(d.currentPeek());return d.resetPeek(),R}function v(d,p){const{currentType:T}=p;if(T!==2)return!1;E(d);const R=d.currentPeek()==="-"?d.peek():d.currentPeek(),B=y(R);return d.resetPeek(),B}function I(d,p){const{currentType:T}=p;if(T!==2)return!1;E(d);const R=d.currentPeek()===al;return d.resetPeek(),R}function F(d,p){const{currentType:T}=p;if(T!==7)return!1;E(d);const R=d.currentPeek()===".";return d.resetPeek(),R}function A(d,p){const{currentType:T}=p;if(T!==8)return!1;E(d);const R=g(d.currentPeek());return d.resetPeek(),R}function G(d,p){const{currentType:T}=p;if(!(T===7||T===11))return!1;E(d);const R=d.currentPeek()===":";return d.resetPeek(),R}function oe(d,p){const{currentType:T}=p;if(T!==9)return!1;const R=()=>{const W=d.currentPeek();return W==="{"?g(d.peek()):W==="@"||W==="|"||W===":"||W==="."||W===Et||!W?!1:W===et?(d.peek(),R()):he(d,!1)},B=R();return d.resetPeek(),B}function ye(d){E(d);const p=d.currentPeek()==="|";return d.resetPeek(),p}function he(d,p=!0){const T=(B=!1,W="")=>{const C=d.currentPeek();return C==="{"||C==="@"||!C?B:C==="|"?!(W===Et||W===et):C===Et?(d.peek(),T(!0,Et)):C===et?(d.peek(),T(!0,et)):!0},R=T();return p&&d.resetPeek(),R}function de(d,p){const T=d.currentChar();return T===At?At:p(T)?(d.next(),T):null}function De(d){const p=d.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function le(d){return de(d,De)}function ie(d){const p=d.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function J(d){return de(d,ie)}function ee(d){const p=d.charCodeAt(0);return p>=48&&p<=57}function $(d){return de(d,ee)}function z(d){const p=d.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function se(d){return de(d,z)}function xe(d){let p="",T="";for(;p=$(d);)T+=p;return T}function fe(d){let p="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===Et||T===et)if(he(d))p+=T,d.next();else{if(ye(d))break;p+=T,d.next()}else p+=T,d.next()}return p}function _e(d){P(d);let p="",T="";for(;p=J(d);)T+=p;const R=d.currentChar();if(R&&R!=="}"&&R!==At&&R!==Et&&R!==et&&R!==" "){const B=Be(d);return f(Ee.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T+B),T+B}return d.currentChar()===At&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T}function Se(d){P(d);let p="";return d.currentChar()==="-"?(d.next(),p+=`-${xe(d)}`):p+=xe(d),d.currentChar()===At&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),p}function Ue(d){return d!==al&&d!==et}function je(d){P(d),k(d,"'");let p="",T="";for(;p=de(d,Ue);)p==="\\"?T+=ke(d):T+=p;const R=d.currentChar();return R===et||R===At?(f(Ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),R===et&&(d.next(),k(d,"'")),T):(k(d,"'"),T)}function ke(d){const p=d.currentChar();switch(p){case"\\":case"'":return d.next(),`\\${p}`;case"u":return st(d,p,4);case"U":return st(d,p,6);default:return f(Ee.UNKNOWN_ESCAPE_SEQUENCE,o(),0,p),""}}function st(d,p,T){k(d,p);let R="";for(let B=0;B<T;B++){const W=se(d);if(!W){f(Ee.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${p}${R}${d.currentChar()}`);break}R+=W}return`\\${p}${R}`}function rt(d){return d!=="{"&&d!=="}"&&d!==Et&&d!==et}function Be(d){P(d);let p="",T="";for(;p=de(d,rt);)T+=p;return T}function q(d){let p="",T="";for(;p=le(d);)T+=p;return T}function m(d){const p=T=>{const R=d.currentChar();return R==="{"||R==="@"||R==="|"||R==="("||R===")"||!R||R===Et?T:(T+=R,d.next(),p(T))};return p("")}function x(d){P(d);const p=k(d,"|");return P(d),p}function M(d,p){let T=null;switch(d.currentChar()){case"{":return p.braceNest>=1&&f(Ee.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),d.next(),T=h(p,2,"{"),P(d),p.braceNest++,T;case"}":return p.braceNest>0&&p.currentType===2&&f(Ee.EMPTY_PLACEHOLDER,o(),0),d.next(),T=h(p,3,"}"),p.braceNest--,p.braceNest>0&&P(d),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),T;case"@":return p.braceNest>0&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T=j(d,p)||b(p),p.braceNest=0,T;default:{let B=!0,W=!0,C=!0;if(ye(d))return p.braceNest>0&&f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T=h(p,1,x(d)),p.braceNest=0,p.inLinked=!1,T;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),p.braceNest=0,U(d,p);if(B=_(d,p))return T=h(p,4,_e(d)),P(d),T;if(W=v(d,p))return T=h(p,5,Se(d)),P(d),T;if(C=I(d,p))return T=h(p,6,je(d)),P(d),T;if(!B&&!W&&!C)return T=h(p,12,Be(d)),f(Ee.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T.value),P(d),T;break}}return T}function j(d,p){const{currentType:T}=p;let R=null;const B=d.currentChar();switch((T===7||T===8||T===11||T===9)&&(B===et||B===Et)&&f(Ee.INVALID_LINKED_FORMAT,o(),0),B){case"@":return d.next(),R=h(p,7,"@"),p.inLinked=!0,R;case".":return P(d),d.next(),h(p,8,".");case":":return P(d),d.next(),h(p,9,":");default:return ye(d)?(R=h(p,1,x(d)),p.braceNest=0,p.inLinked=!1,R):F(d,p)||G(d,p)?(P(d),j(d,p)):A(d,p)?(P(d),h(p,11,q(d))):oe(d,p)?(P(d),B==="{"?M(d,p)||R:h(p,10,m(d))):(T===7&&f(Ee.INVALID_LINKED_FORMAT,o(),0),p.braceNest=0,p.inLinked=!1,U(d,p))}}function U(d,p){let T={type:13};if(p.braceNest>0)return M(d,p)||b(p);if(p.inLinked)return j(d,p)||b(p);switch(d.currentChar()){case"{":return M(d,p)||b(p);case"}":return f(Ee.UNBALANCED_CLOSING_BRACE,o(),0),d.next(),h(p,3,"}");case"@":return j(d,p)||b(p);default:{if(ye(d))return T=h(p,1,x(d)),p.braceNest=0,p.inLinked=!1,T;if(he(d))return h(p,0,fe(d));break}}return T}function V(){const{currentType:d,offset:p,startLoc:T,endLoc:R}=a;return a.lastType=d,a.lastOffset=p,a.lastStartLoc=T,a.lastEndLoc=R,a.offset=r(),a.startLoc=o(),s.currentChar()===At?h(a,13):U(s,a)}return{nextToken:V,currentOffset:r,currentPosition:o,context:c}}const Zd="parser",ef=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function tf(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function nf(e={}){const t=e.location!==!1,{onError:n}=e;function s(g,y,_,v,...I){const F=g.currentPosition();if(F.offset+=v,F.column+=v,n){const A=t?jr(_,F):null,G=ur(y,A,{domain:Zd,args:I});n(G)}}function r(g,y,_){const v={type:g};return t&&(v.start=y,v.end=y,v.loc={start:_,end:_}),v}function o(g,y,_,v){t&&(g.end=y,g.loc&&(g.loc.end=_))}function l(g,y){const _=g.context(),v=r(3,_.offset,_.startLoc);return v.value=y,o(v,g.currentOffset(),g.currentPosition()),v}function i(g,y){const _=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(5,v,I);return F.index=parseInt(y,10),g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function a(g,y){const _=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(4,v,I);return F.key=y,g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function c(g,y){const _=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(9,v,I);return F.value=y.replace(ef,tf),g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function u(g){const y=g.nextToken(),_=g.context(),{lastOffset:v,lastStartLoc:I}=_,F=r(8,v,I);return y.type!==11?(s(g,Ee.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),F.value="",o(F,v,I),{nextConsumeToken:y,node:F}):(y.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Rt(y)),F.value=y.value||"",o(F,g.currentOffset(),g.currentPosition()),{node:F})}function f(g,y){const _=g.context(),v=r(7,_.offset,_.startLoc);return v.value=y,o(v,g.currentOffset(),g.currentPosition()),v}function h(g){const y=g.context(),_=r(6,y.offset,y.startLoc);let v=g.nextToken();if(v.type===8){const I=u(g);_.modifier=I.node,v=I.nextConsumeToken||g.nextToken()}switch(v.type!==9&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),v=g.nextToken(),v.type===2&&(v=g.nextToken()),v.type){case 10:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=f(g,v.value||"");break;case 4:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=a(g,v.value||"");break;case 5:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=i(g,v.value||"");break;case 6:v.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(v)),_.key=c(g,v.value||"");break;default:{s(g,Ee.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const I=g.context(),F=r(7,I.offset,I.startLoc);return F.value="",o(F,I.offset,I.startLoc),_.key=F,o(_,I.offset,I.startLoc),{nextConsumeToken:v,node:_}}}return o(_,g.currentOffset(),g.currentPosition()),{node:_}}function b(g){const y=g.context(),_=y.currentType===1?g.currentOffset():y.offset,v=y.currentType===1?y.endLoc:y.startLoc,I=r(2,_,v);I.items=[];let F=null;do{const oe=F||g.nextToken();switch(F=null,oe.type){case 0:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(l(g,oe.value||""));break;case 5:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(i(g,oe.value||""));break;case 4:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(a(g,oe.value||""));break;case 6:oe.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,Rt(oe)),I.items.push(c(g,oe.value||""));break;case 7:{const ye=h(g);I.items.push(ye.node),F=ye.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const A=y.currentType===1?y.lastOffset:g.currentOffset(),G=y.currentType===1?y.lastEndLoc:g.currentPosition();return o(I,A,G),I}function k(g,y,_,v){const I=g.context();let F=v.items.length===0;const A=r(1,y,_);A.cases=[],A.cases.push(v);do{const G=b(g);F||(F=G.items.length===0),A.cases.push(G)}while(I.currentType!==13);return F&&s(g,Ee.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),o(A,g.currentOffset(),g.currentPosition()),A}function E(g){const y=g.context(),{offset:_,startLoc:v}=y,I=b(g);return y.currentType===13?I:k(g,_,v,I)}function P(g){const y=Qd(g,Ye({},e)),_=y.context(),v=r(0,_.offset,_.startLoc);return t&&v.loc&&(v.loc.source=g),v.body=E(y),e.onCacheKey&&(v.cacheKey=e.onCacheKey(g)),_.currentType!==13&&s(y,Ee.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,g[_.offset]||""),o(v,y.currentOffset(),y.currentPosition()),v}return{parse:P}}function Rt(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 sf(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function cl(e,t){for(let n=0;n<e.length;n++)To(e[n],t)}function To(e,t){switch(e.type){case 1:cl(e.cases,t),t.helper("plural");break;case 2:cl(e.items,t);break;case 6:{To(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function rf(e,t={}){const n=sf(e);n.helper("normalize"),e.body&&To(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function of(e){const t=e.body;return t.type===2?ul(t):t.cases.forEach(n=>ul(n)),e}function ul(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=ko(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function vn(e){switch(e.t=e.type,e.type){case 0:{const t=e;vn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)vn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)vn(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;vn(t.key),t.k=t.key,delete t.key,t.modifier&&(vn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function lf(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const i=()=>l;function a(E,P){l.code+=E}function c(E,P=!0){const g=P?s:"";a(r?g+" ".repeat(E):g)}function u(E=!0){const P=++l.indentLevel;E&&c(P)}function f(E=!0){const P=--l.indentLevel;E&&c(P)}function h(){c(l.indentLevel)}return{context:i,push:a,indent:u,deindent:f,newline:h,helper:E=>`_${E}`,needIndent:()=>l.needIndent}}function af(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Rn(e,t.key),t.modifier?(e.push(", "),Rn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function cf(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(Rn(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function uf(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(Rn(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function df(e,t){t.body?Rn(e,t.body):e.push("null")}function Rn(e,t){const{helper:n}=e;switch(t.type){case 0:df(e,t);break;case 1:uf(e,t);break;case 2:cf(e,t);break;case 6:af(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const ff=(e,t={})=>{const n=Y(t.mode)?t.mode:"normal",s=Y(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
3
|
-
`,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],i=lf(e,{filename:s,breakLineCode:r,needIndent:o});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),l.length>0&&(i.push(`const { ${ko(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),i.newline()),i.push("return "),Rn(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:a,map:c}=i.context();return{ast:e,code:a,map:c?c.toJSON():void 0}};function pf(e,t={}){const n=Ye({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,i=nf(n).parse(e);return s?(o&&of(i),r&&vn(i),{ast:i,code:""}):(rf(i,n),ff(i,n))}function gf(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(un().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(un().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Lt(e){return Ce(e)&&Co(e)===0&&(kt(e,"b")||kt(e,"body"))}const aa=["b","body"];function mf(e){return nn(e,aa)}const ca=["c","cases"];function hf(e){return nn(e,ca,[])}const ua=["s","static"];function bf(e){return nn(e,ua)}const da=["i","items"];function _f(e){return nn(e,da,[])}const fa=["t","type"];function Co(e){return nn(e,fa)}const pa=["v","value"];function Cs(e,t){const n=nn(e,pa);if(n!=null)return n;throw ns(t)}const ga=["m","modifier"];function vf(e){return nn(e,ga)}const ma=["k","key"];function yf(e){const t=nn(e,ma);if(t)return t;throw ns(6)}function nn(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(kt(e,r)&&e[r]!=null)return e[r]}return n}const ha=[...aa,...ca,...ua,...da,...ma,...ga,...pa,...fa];function ns(e){return new Error(`unhandled node type: ${e}`)}function Cr(e){return n=>xf(n,e)}function xf(e,t){const n=mf(t);if(n==null)throw ns(0);if(Co(n)===1){const o=hf(n);return e.plural(o.reduce((l,i)=>[...l,dl(e,i)],[]))}else return dl(e,n)}function dl(e,t){const n=bf(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=_f(t).reduce((r,o)=>[...r,Hr(e,o)],[]);return e.normalize(s)}}function Hr(e,t){const n=Co(t);switch(n){case 3:return Cs(t,n);case 9:return Cs(t,n);case 4:{const s=t;if(kt(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(kt(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw ns(n)}case 5:{const s=t;if(kt(s,"i")&&Ge(s.i))return e.interpolate(e.list(s.i));if(kt(s,"index")&&Ge(s.index))return e.interpolate(e.list(s.index));throw ns(n)}case 6:{const s=t,r=vf(s),o=yf(s);return e.linked(Hr(e,o),r?Hr(e,r):void 0,e.type)}case 7:return Cs(t,n);case 8:return Cs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const wf=e=>e;let Ss=Pe();function kf(e,t={}){let n=!1;const s=t.onError||Kd;return t.onError=r=>{n=!0,s(r)},{...pf(e,t),detectError:n}}function Tf(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Y(e)){we(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||wf)(e),r=Ss[s];if(r)return r;const{ast:o,detectError:l}=kf(e,{...t,location:!1,jit:!0}),i=Cr(o);return l?i:Ss[s]=i}else{const n=e.cacheKey;if(n){const s=Ss[n];return s||(Ss[n]=Cr(e))}else return Cr(e)}}let ss=null;function Cf(e){ss=e}function Sf(e,t,n){ss&&ss.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ef=Rf("function:translate");function Rf(e){return t=>ss&&ss.emit(e,t)}const Wt={INVALID_ARGUMENT:Gd,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Pf=24;function jt(e){return ur(e,null,void 0)}function So(e,t){return t.locale!=null?fl(t.locale):fl(e.locale)}let Sr;function fl(e){if(Y(e))return e;if(Oe(e)){if(e.resolvedOnce&&Sr!=null)return Sr;if(e.constructor.name==="Function"){const t=e();if(Wd(t))throw jt(Wt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Sr=t}else throw jt(Wt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jt(Wt.NOT_SUPPORT_LOCALE_TYPE)}function If(e,t,n){return[...new Set([n,...We(t)?t:Ce(t)?Object.keys(t):Y(t)?[t]:[n]])]}function ba(e,t,n){const s=Y(n)?n:rs,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let l=[n];for(;We(l);)l=pl(o,l,t);const i=We(t)||!be(t)?t:t.default?t.default:null;l=Y(i)?[i]:i,We(l)&&pl(o,l,!1),r.__localeChainCache.set(s,o)}return o}function pl(e,t,n){let s=!0;for(let r=0;r<t.length&&we(s);r++){const o=t[r];Y(o)&&(s=Mf(e,t[r],n))}return s}function Mf(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=Lf(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function Lf(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(We(n)||be(n))&&n[r]&&(s=n[r])}return s}const sn=[];sn[0]={w:[0],i:[3,0],"[":[4],o:[7]};sn[1]={w:[1],".":[2],"[":[4],o:[7]};sn[2]={w:[2],i:[3,0],0:[3,0]};sn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};sn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};sn[5]={"'":[4,0],o:8,l:[5,0]};sn[6]={'"':[4,0],o:8,l:[6,0]};const $f=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Of(e){return $f.test(e)}function Af(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Nf(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ff(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Of(t)?Af(t):"*"+t}function Df(e){const t=[];let n=-1,s=0,r=0,o,l,i,a,c,u,f;const h=[];h[0]=()=>{l===void 0?l=i:l+=i},h[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,s=4,h[0]();else{if(r=0,l===void 0||(l=Ff(l),l===!1))return!1;h[1]()}};function b(){const k=e[n+1];if(s===5&&k==="'"||s===6&&k==='"')return n++,i="\\"+k,h[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&b())){if(a=Nf(o),f=sn[s],c=f[a]||f.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(i=o,u()===!1))))return;if(s===7)return t}}const gl=new Map;function Uf(e,t){return Ce(e)?e[t]:null}function Vf(e,t){if(!Ce(e))return null;let n=gl.get(t);if(n||(n=Df(t),n&&gl.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const l=n[o];if(ha.includes(l)&&Lt(r))return null;const i=r[l];if(i===void 0||Oe(r))return null;r=i,o++}return r}const Wf="11.2.8",dr=-1,rs="en-US",ml="",hl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function jf(){return{upper:(e,t)=>t==="text"&&Y(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Y(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Y(e)?hl(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?hl(e.children):e}}let _a;function Hf(e){_a=e}let va;function Gf(e){va=e}let ya;function Kf(e){ya=e}let xa=null;const Bf=e=>{xa=e},zf=()=>xa;let wa=null;const bl=e=>{wa=e},qf=()=>wa;let _l=0;function Yf(e={}){const t=Oe(e.onWarn)?e.onWarn:Od,n=Y(e.version)?e.version:Wf,s=Y(e.locale)||Oe(e.locale)?e.locale:rs,r=Oe(s)?rs:s,o=We(e.fallbackLocale)||be(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,l=be(e.messages)?e.messages:Er(r),i=be(e.datetimeFormats)?e.datetimeFormats:Er(r),a=be(e.numberFormats)?e.numberFormats:Er(r),c=Ye(Pe(),e.modifiers,jf()),u=e.pluralRules||Pe(),f=Oe(e.missing)?e.missing:null,h=we(e.missingWarn)||En(e.missingWarn)?e.missingWarn:!0,b=we(e.fallbackWarn)||En(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,E=!!e.unresolving,P=Oe(e.postTranslation)?e.postTranslation:null,g=be(e.processor)?e.processor:null,y=we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,v=Oe(e.messageCompiler)?e.messageCompiler:_a,I=Oe(e.messageResolver)?e.messageResolver:va||Uf,F=Oe(e.localeFallbacker)?e.localeFallbacker:ya||If,A=Ce(e.fallbackContext)?e.fallbackContext:void 0,G=e,oe=Ce(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,ye=Ce(G.__numberFormatters)?G.__numberFormatters:new Map,he=Ce(G.__meta)?G.__meta:{};_l++;const de={version:n,cid:_l,locale:s,fallbackLocale:o,messages:l,modifiers:c,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:b,fallbackFormat:k,unresolving:E,postTranslation:P,processor:g,warnHtmlMessage:y,escapeParameter:_,messageCompiler:v,messageResolver:I,localeFallbacker:F,fallbackContext:A,onWarn:t,__meta:he};return de.datetimeFormats=i,de.numberFormats=a,de.__datetimeFormatters=oe,de.__numberFormatters=ye,__INTLIFY_PROD_DEVTOOLS__&&Sf(de,n,he),de}const Er=e=>({[e]:Pe()});function Eo(e,t,n,s,r){const{missing:o,onWarn:l}=e;if(o!==null){const i=o(e,n,t,r);return Y(i)?i:t}else return t}function Dn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Jf(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Xf(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Jf(e,t[s]))return!0;return!1}function vl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:i}=e,[a,c,u,f]=Gr(...t),h=we(u.missingWarn)?u.missingWarn:e.missingWarn;we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,k=So(e,u),E=l(e,r,k);if(!Y(a)||a==="")return new Intl.DateTimeFormat(k,f).format(c);let P={},g,y=null;const _="datetime format";for(let F=0;F<E.length&&(g=E[F],P=n[g]||{},y=P[a],!be(y));F++)Eo(e,a,g,h,_);if(!be(y)||!Y(g))return s?dr:a;let v=`${g}__${a}`;cr(f)||(v=`${v}__${JSON.stringify(f)}`);let I=i.get(v);return I||(I=new Intl.DateTimeFormat(g,Ye({},y,f)),i.set(v,I)),b?I.formatToParts(c):I.format(c)}const ka=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Gr(...e){const[t,n,s,r]=e,o=Pe();let l=Pe(),i;if(Y(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw jt(Wt.INVALID_ISO_DATE_ARGUMENT);const c=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();i=new Date(c);try{i.toISOString()}catch{throw jt(Wt.INVALID_ISO_DATE_ARGUMENT)}}else if(Fd(t)){if(isNaN(t.getTime()))throw jt(Wt.INVALID_DATE_ARGUMENT);i=t}else if(Ge(t))i=t;else throw jt(Wt.INVALID_ARGUMENT);return Y(n)?o.key=n:be(n)&&Object.keys(n).forEach(a=>{ka.includes(a)?l[a]=n[a]:o[a]=n[a]}),Y(s)?o.locale=s:be(s)&&(l=s),be(r)&&(l=r),[o.key||"",i,o,l]}function yl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function xl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:i}=e,[a,c,u,f]=Kr(...t),h=we(u.missingWarn)?u.missingWarn:e.missingWarn;we(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,k=So(e,u),E=l(e,r,k);if(!Y(a)||a==="")return new Intl.NumberFormat(k,f).format(c);let P={},g,y=null;const _="number format";for(let F=0;F<E.length&&(g=E[F],P=n[g]||{},y=P[a],!be(y));F++)Eo(e,a,g,h,_);if(!be(y)||!Y(g))return s?dr:a;let v=`${g}__${a}`;cr(f)||(v=`${v}__${JSON.stringify(f)}`);let I=i.get(v);return I||(I=new Intl.NumberFormat(g,Ye({},y,f)),i.set(v,I)),b?I.formatToParts(c):I.format(c)}const Ta=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Kr(...e){const[t,n,s,r]=e,o=Pe();let l=Pe();if(!Ge(t))throw jt(Wt.INVALID_ARGUMENT);const i=t;return Y(n)?o.key=n:be(n)&&Object.keys(n).forEach(a=>{Ta.includes(a)?l[a]=n[a]:o[a]=n[a]}),Y(s)?o.locale=s:be(s)&&(l=s),be(r)&&(l=r),[o.key||"",i,o,l]}function wl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Qf=e=>e,Zf=e=>"",ep="text",tp=e=>e.length===0?"":ko(e),np=jd;function kl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sp(e){const t=Ge(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ge(e.named.count)||Ge(e.named.n))?Ge(e.named.count)?e.named.count:Ge(e.named.n)?e.named.n:t:t}function rp(e,t){t.count||(t.count=e),t.n||(t.n=e)}function op(e={}){const t=e.locale,n=sp(e),s=Ce(e.pluralRules)&&Y(t)&&Oe(e.pluralRules[t])?e.pluralRules[t]:kl,r=Ce(e.pluralRules)&&Y(t)&&Oe(e.pluralRules[t])?kl:void 0,o=g=>g[s(n,g.length,r)],l=e.list||[],i=g=>l[g],a=e.named||Pe();Ge(e.pluralIndex)&&rp(n,a);const c=g=>a[g];function u(g,y){const _=Oe(e.messages)?e.messages(g,!!y):Ce(e.messages)?e.messages[g]:!1;return _||(e.parent?e.parent.message(g):Zf)}const f=g=>e.modifiers?e.modifiers[g]:Qf,h=be(e.processor)&&Oe(e.processor.normalize)?e.processor.normalize:tp,b=be(e.processor)&&Oe(e.processor.interpolate)?e.processor.interpolate:np,k=be(e.processor)&&Y(e.processor.type)?e.processor.type:ep,P={list:i,named:c,plural:o,linked:(g,...y)=>{const[_,v]=y;let I="text",F="";y.length===1?Ce(_)?(F=_.modifier||F,I=_.type||I):Y(_)&&(F=_||F):y.length===2&&(Y(_)&&(F=_||F),Y(v)&&(I=v||I));const A=u(g,!0)(P),G=I==="vnode"&&We(A)&&F?A[0]:A;return F?f(F)(G,I):G},message:u,type:k,interpolate:b,normalize:h,values:Ye(Pe(),l,a)};return P}const Tl=()=>"",xt=e=>Oe(e);function Cl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:l,messages:i}=e,[a,c]=Br(...t),u=we(c.missingWarn)?c.missingWarn:e.missingWarn,f=we(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=we(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,k=Y(c.default)||we(c.default)?we(c.default)?o?a:()=>a:c.default:n?o?a:()=>a:null,E=n||k!=null&&(Y(k)||Oe(k)),P=So(e,c);h&&lp(c);let[g,y,_]=b?[a,P,i[P]||Pe()]:Ca(e,a,P,l,f,u),v=g,I=a;if(!b&&!(Y(v)||Lt(v)||xt(v))&&E&&(v=k,I=v),!b&&(!(Y(v)||Lt(v)||xt(v))||!Y(y)))return r?dr:a;let F=!1;const A=()=>{F=!0},G=xt(v)?v:Sa(e,a,y,v,I,A);if(F)return v;const oe=cp(e,y,_,c),ye=op(oe),he=ip(e,G,ye);let de=s?s(he,a):he;if(h&&Y(de)&&(de=Ud(de)),__INTLIFY_PROD_DEVTOOLS__){const De={timestamp:Date.now(),key:Y(a)?a:xt(v)?v.key:"",locale:y||(xt(v)?v.locale:""),format:Y(v)?v:xt(v)?v.source:"",message:de};De.meta=Ye({},e.__meta,zf()||{}),Ef(De)}return de}function lp(e){We(e.list)?e.list=e.list.map(t=>Y(t)?ll(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=ll(e.named[t]))})}function Ca(e,t,n,s,r,o){const{messages:l,onWarn:i,messageResolver:a,localeFallbacker:c}=e,u=c(e,s,n);let f=Pe(),h,b=null;const k="translate";for(let E=0;E<u.length&&(h=u[E],f=l[h]||Pe(),(b=a(f,t))===null&&(b=f[t]),!(Y(b)||Lt(b)||xt(b)));E++)if(!Xf(h,u)){const P=Eo(e,t,h,o,k);P!==t&&(b=P)}return[b,h,f]}function Sa(e,t,n,s,r,o){const{messageCompiler:l,warnHtmlMessage:i}=e;if(xt(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(l==null){const c=(()=>s);return c.locale=n,c.key=t,c}const a=l(s,ap(e,n,r,s,i,o));return a.locale=n,a.key=t,a.source=s,a}function ip(e,t,n){return t(n)}function Br(...e){const[t,n,s]=e,r=Pe();if(!Y(t)&&!Ge(t)&&!xt(t)&&!Lt(t))throw jt(Wt.INVALID_ARGUMENT);const o=Ge(t)?String(t):(xt(t),t);return Ge(n)?r.plural=n:Y(n)?r.default=n:be(n)&&!cr(n)?r.named=n:We(n)&&(r.list=n),Ge(s)?r.plural=s:Y(s)?r.default=s:be(s)&&Ye(r,s),[o,r]}function ap(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:l=>{throw o&&o(l),l},onCacheKey:l=>Ad(t,n,l)}}function cp(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:l,fallbackLocale:i,fallbackWarn:a,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:r,pluralRules:o,messages:(b,k)=>{let E=l(n,b);if(E==null&&(u||k)){const[,,P]=Ca(u||e,b,t,i,a,c);E=l(P,b)}if(Y(E)||Lt(E)){let P=!1;const y=Sa(e,b,t,E,b,()=>{P=!0});return P?Tl:y}else return xt(E)?E:Tl}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),Ge(s.plural)&&(h.pluralIndex=s.plural),h}gf();const up="11.2.8";function dp(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(un().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(un().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(un().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(un().__INTLIFY_PROD_DEVTOOLS__=!1)}const gt={UNEXPECTED_RETURN_TYPE:Pf,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function vt(e,...t){return ur(e,null,void 0)}const zr=tn("__translateVNode"),qr=tn("__datetimeParts"),Yr=tn("__numberParts"),Ea=tn("__setPluralRules"),Ra=tn("__injectWithOption"),Jr=tn("__dispose");function os(e){if(!Ce(e)||Lt(e))return e;for(const t in e)if(kt(e,t))if(!t.includes("."))Ce(e[t])&&os(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let l=0;l<s;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in r||(r[n[l]]=Pe()),!Ce(r[n[l]])){o=!0;break}r=r[n[l]]}if(o||(Lt(r)?ha.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!Lt(r)){const l=r[n[s]];Ce(l)&&os(l)}}return e}function Ro(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,l=be(n)?n:We(s)?Pe():{[e]:Pe()};if(We(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:a,resource:c}=i;a?(l[a]=l[a]||Pe(),As(c,l[a])):As(c,l)}else Y(i)&&As(JSON.parse(i),l)}),r==null&&o)for(const i in l)kt(l,i)&&os(l[i]);return l}function Pa(e){return e.type}function Ia(e,t,n){let s=Ce(t.messages)?t.messages:Pe();"__i18nGlobal"in n&&(s=Ro(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Ce(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Sl(e){return K(fs,null,e,0)}function ls(){return ir()}const El="__INTLIFY_META__",Rl=()=>[],fp=()=>!1;let Pl=0;function Il(e){return((t,n,s,r)=>e(n,s,ls()||void 0,r))}const pp=()=>{const e=ls();let t=null;return e&&(t=Pa(e)[El])?{[El]:t}:null};function Po(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=zs?te:zc;let l=we(e.inheritLocale)?e.inheritLocale:!0;const i=o(t&&l?t.locale.value:Y(e.locale)?e.locale:rs),a=o(t&&l?t.fallbackLocale.value:Y(e.fallbackLocale)||We(e.fallbackLocale)||be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=o(Ro(i.value,e)),u=o(be(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=o(be(e.numberFormats)?e.numberFormats:{[i.value]:{}});let h=t?t.missingWarn:we(e.missingWarn)||En(e.missingWarn)?e.missingWarn:!0,b=t?t.fallbackWarn:we(e.fallbackWarn)||En(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:we(e.fallbackRoot)?e.fallbackRoot:!0,E=!!e.fallbackFormat,P=Oe(e.missing)?e.missing:null,g=Oe(e.missing)?Il(e.missing):null,y=Oe(e.postTranslation)?e.postTranslation:null,_=t?t.warnHtmlMessage:we(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter;const I=t?t.modifiers:be(e.modifiers)?e.modifiers:{};let F=e.pluralRules||t&&t.pluralRules,A;A=(()=>{s&&bl(null);const C={version:up,locale:i.value,fallbackLocale:a.value,messages:c.value,modifiers:I,pluralRules:F,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:b,fallbackFormat:E,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:_,escapeParameter:v,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=u.value,C.numberFormats=f.value,C.__datetimeFormatters=be(A)?A.__datetimeFormatters:void 0,C.__numberFormatters=be(A)?A.__numberFormatters:void 0;const L=Yf(C);return s&&bl(L),L})(),Dn(A,i.value,a.value);function oe(){return[i.value,a.value,c.value,u.value,f.value]}const ye=H({get:()=>i.value,set:C=>{A.locale=C,i.value=C}}),he=H({get:()=>a.value,set:C=>{A.fallbackLocale=C,a.value=C,Dn(A,i.value,C)}}),de=H(()=>c.value),De=H(()=>u.value),le=H(()=>f.value);function ie(){return Oe(y)?y:null}function J(C){y=C,A.postTranslation=C}function ee(){return P}function $(C){C!==null&&(g=Il(C)),P=C,A.missing=g}const z=(C,L,X,re,pe,He)=>{oe();let Ve;try{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=t?qf():void 0),Ve=C(A)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=void 0)}if(X!=="translate exists"&&Ge(Ve)&&Ve===dr||X==="translate exists"&&!Ve){const[ct,mt]=L();return t&&k?re(t):pe(ct)}else{if(He(Ve))return Ve;throw vt(gt.UNEXPECTED_RETURN_TYPE)}};function se(...C){return z(L=>Reflect.apply(Cl,null,[L,...C]),()=>Br(...C),"translate",L=>Reflect.apply(L.t,L,[...C]),L=>L,L=>Y(L))}function xe(...C){const[L,X,re]=C;if(re&&!Ce(re))throw vt(gt.INVALID_ARGUMENT);return se(L,X,Ye({resolvedMessage:!0},re||{}))}function fe(...C){return z(L=>Reflect.apply(vl,null,[L,...C]),()=>Gr(...C),"datetime format",L=>Reflect.apply(L.d,L,[...C]),()=>ml,L=>Y(L)||We(L))}function _e(...C){return z(L=>Reflect.apply(xl,null,[L,...C]),()=>Kr(...C),"number format",L=>Reflect.apply(L.n,L,[...C]),()=>ml,L=>Y(L)||We(L))}function Se(C){return C.map(L=>Y(L)||Ge(L)||we(L)?Sl(String(L)):L)}const je={normalize:Se,interpolate:C=>C,type:"vnode"};function ke(...C){return z(L=>{let X;const re=L;try{re.processor=je,X=Reflect.apply(Cl,null,[re,...C])}finally{re.processor=null}return X},()=>Br(...C),"translate",L=>L[zr](...C),L=>[Sl(L)],L=>We(L))}function st(...C){return z(L=>Reflect.apply(xl,null,[L,...C]),()=>Kr(...C),"number format",L=>L[Yr](...C),Rl,L=>Y(L)||We(L))}function rt(...C){return z(L=>Reflect.apply(vl,null,[L,...C]),()=>Gr(...C),"datetime format",L=>L[qr](...C),Rl,L=>Y(L)||We(L))}function Be(C){F=C,A.pluralRules=F}function q(C,L){return z(()=>{if(!C)return!1;const X=Y(L)?L:i.value,re=M(X),pe=A.messageResolver(re,C);return Lt(pe)||xt(pe)||Y(pe)},()=>[C],"translate exists",X=>Reflect.apply(X.te,X,[C,L]),fp,X=>we(X))}function m(C){let L=null;const X=ba(A,a.value,i.value);for(let re=0;re<X.length;re++){const pe=c.value[X[re]]||{},He=A.messageResolver(pe,C);if(He!=null){L=He;break}}return L}function x(C){const L=m(C);return L??(t?t.tm(C)||{}:{})}function M(C){return c.value[C]||{}}function j(C,L){if(r){const X={[C]:L};for(const re in X)kt(X,re)&&os(X[re]);L=X[C]}c.value[C]=L,A.messages=c.value}function U(C,L){c.value[C]=c.value[C]||{};const X={[C]:L};if(r)for(const re in X)kt(X,re)&&os(X[re]);L=X[C],As(L,c.value[C]),A.messages=c.value}function V(C){return u.value[C]||{}}function d(C,L){u.value[C]=L,A.datetimeFormats=u.value,yl(A,C,L)}function p(C,L){u.value[C]=Ye(u.value[C]||{},L),A.datetimeFormats=u.value,yl(A,C,L)}function T(C){return f.value[C]||{}}function R(C,L){f.value[C]=L,A.numberFormats=f.value,wl(A,C,L)}function B(C,L){f.value[C]=Ye(f.value[C]||{},L),A.numberFormats=f.value,wl(A,C,L)}Pl++,t&&zs&&(ft(t.locale,C=>{l&&(i.value=C,A.locale=C,Dn(A,i.value,a.value))}),ft(t.fallbackLocale,C=>{l&&(a.value=C,A.fallbackLocale=C,Dn(A,i.value,a.value))}));const W={id:Pl,locale:ye,fallbackLocale:he,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&t&&(i.value=t.locale.value,a.value=t.fallbackLocale.value,Dn(A,i.value,a.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:de,get modifiers(){return I},get pluralRules(){return F||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn(C){h=C,A.missingWarn=h},get fallbackWarn(){return b},set fallbackWarn(C){b=C,A.fallbackWarn=b},get fallbackRoot(){return k},set fallbackRoot(C){k=C},get fallbackFormat(){return E},set fallbackFormat(C){E=C,A.fallbackFormat=E},get warnHtmlMessage(){return _},set warnHtmlMessage(C){_=C,A.warnHtmlMessage=C},get escapeParameter(){return v},set escapeParameter(C){v=C,A.escapeParameter=C},t:se,getLocaleMessage:M,setLocaleMessage:j,mergeLocaleMessage:U,getPostTranslationHandler:ie,setPostTranslationHandler:J,getMissingHandler:ee,setMissingHandler:$,[Ea]:Be};return W.datetimeFormats=De,W.numberFormats=le,W.rt=xe,W.te=q,W.tm=x,W.d=fe,W.n=_e,W.getDateTimeFormat=V,W.setDateTimeFormat=d,W.mergeDateTimeFormat=p,W.getNumberFormat=T,W.setNumberFormat=R,W.mergeNumberFormat=B,W[Ra]=n,W[zr]=ke,W[qr]=rt,W[Yr]=st,W}function gp(e){const t=Y(e.locale)?e.locale:rs,n=Y(e.fallbackLocale)||We(e.fallbackLocale)||be(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Oe(e.missing)?e.missing:void 0,r=we(e.silentTranslationWarn)||En(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=we(e.silentFallbackWarn)||En(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=we(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,a=be(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Oe(e.postTranslation)?e.postTranslation:void 0,f=Y(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,b=we(e.sync)?e.sync:!0;let k=e.messages;if(be(e.sharedMessages)){const I=e.sharedMessages;k=Object.keys(I).reduce((A,G)=>{const oe=A[G]||(A[G]={});return Ye(oe,I[G]),A},k||{})}const{__i18n:E,__root:P,__injectWithOption:g}=e,y=e.datetimeFormats,_=e.numberFormats,v=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:v,datetimeFormats:y,numberFormats:_,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:l,fallbackFormat:i,modifiers:a,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:b,__i18n:E,__root:P,__injectWithOption:g}}function Xr(e={}){const t=Po(gp(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},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(r){t.setMissingHandler(r)},get silentTranslationWarn(){return we(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=we(r)?!r:r},get silentFallbackWarn(){return we(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=we(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function mp(e,t,n){return{beforeCreate(){const s=ls();if(!s)throw vt(gt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=Ml(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Xr(o);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Ml(e,r);else{this.$i18n=Xr({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&Ia(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,l)=>this.$i18n.te(o,l),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=ls();if(!s)throw vt(gt.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Ml(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[Ea](t.pluralizationRules||e.pluralizationRules);const n=Ro(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Io={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function hp({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===ve?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},Pe())}function Ma(){return ve}const bp=$e({name:"i18n-t",props:Ye({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ge(e)||!isNaN(e)}},Io),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Je({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),l=Pe();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=Y(e.plural)?+e.plural:e.plural);const i=hp(t,o),a=r[zr](e.keypath,i,l),c=Ye(Pe(),s),u=Y(e.tag)||Ce(e.tag)?e.tag:Ma();return ra(u,c,a)}}}),Ll=bp;function _p(e){return We(e)&&!Y(e[0])}function La(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const l={part:!0};let i=Pe();e.locale&&(l.locale=e.locale),Y(e.format)?l.key=e.format:Ce(e.format)&&(Y(e.format.key)&&(l.key=e.format.key),i=Object.keys(e.format).reduce((h,b)=>n.includes(b)?Ye(Pe(),h,{[b]:e.format[b]}):h,Pe()));const a=s(e.value,l,i);let c=[l.key];We(a)?c=a.map((h,b)=>{const k=r[h.type],E=k?k({[h.type]:h.value,index:b,parts:a}):[h.value];return _p(E)&&(E[0].key=`${h.type}-${b}`),E}):Y(a)&&(c=[a]);const u=Ye(Pe(),o),f=Y(e.tag)||Ce(e.tag)?e.tag:Ma();return ra(f,u,c)}}const vp=$e({name:"i18n-n",props:Ye({value:{type:Number,required:!0},format:{type:[String,Object]}},Io),setup(e,t){const n=e.i18n||Je({useScope:e.scope,__useComponent:!0});return La(e,t,Ta,(...s)=>n[Yr](...s))}}),$l=vp;function yp(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function xp(e){const t=l=>{const{instance:i,value:a}=l;if(!i||!i.$)throw vt(gt.UNEXPECTED_ERROR);const c=yp(e,i.$),u=Ol(a);return[Reflect.apply(c.t,c,[...Al(u)]),c]};return{created:(l,i)=>{const[a,c]=t(i);zs&&e.global===c&&(l.__i18nWatcher=ft(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=c,l.textContent=a},unmounted:l=>{zs&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const a=l.__composer,c=Ol(i);l.textContent=Reflect.apply(a.t,a,[...Al(c)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function Ol(e){if(Y(e))return{path:e};if(be(e)){if(!("path"in e))throw vt(gt.REQUIRED_VALUE,"path");return e}else throw vt(gt.INVALID_VALUE)}function Al(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,l={},i=s||{};return Y(n)&&(l.locale=n),Ge(r)&&(l.plural=r),Ge(o)&&(l.plural=o),[t,i,l]}function wp(e,t,...n){const s=be(n[0])?n[0]:{};(!we(s.globalInstall)||s.globalInstall)&&([Ll.name,"I18nT"].forEach(o=>e.component(o,Ll)),[$l.name,"I18nN"].forEach(o=>e.component(o,$l)),[Fl.name,"I18nD"].forEach(o=>e.component(o,Fl))),e.directive("t",xp(t))}const kp=tn("global-vue-i18n");function Tp(e={}){const t=__VUE_I18N_LEGACY_API__&&we(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=we(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=Cp(e,t),l=tn("");function i(f){return s.get(f)||null}function a(f,h){s.set(f,h)}function c(f){s.delete(f)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=l,f.provide(f.__VUE_I18N_SYMBOL__,u),be(h[0])){const E=h[0];u.__composerExtend=E.__composerExtend,u.__vueI18nExtend=E.__vueI18nExtend}let b=null;!t&&n&&(b=$p(f,u.global)),__VUE_I18N_FULL_INSTALL__&&wp(f,u,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(mp(o,o.__composer,u));const k=f.unmount;f.unmount=()=>{b&&b(),u.dispose(),k()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:i,__setInstance:a,__deleteInstance:c};return u}function Je(e={}){const t=ls();if(t==null)throw vt(gt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw vt(gt.NOT_INSTALLED);const n=Sp(t),s=Rp(n),r=Pa(t),o=Ep(e,r);if(o==="global")return Ia(s,e,r),s;if(o==="parent"){let a=Pp(n,t,e.__useComponent);return a==null&&(a=s),a}const l=n;let i=l.__getInstance(t);if(i==null){const a=Ye({},e);"__i18n"in r&&(a.__i18n=r.__i18n),s&&(a.__root=s),i=Po(a),l.__composerExtend&&(i[Jr]=l.__composerExtend(i)),Mp(l,t,i),l.__setInstance(t,i)}return i}function Cp(e,t){const n=Tc(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Xr(e)):n.run(()=>Po(e));if(s==null)throw vt(gt.UNEXPECTED_ERROR);return[n,s]}function Sp(e){const t=Bn(e.isCE?kp:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw vt(e.isCE?gt.NOT_INSTALLED_WITH_PROVIDE:gt.UNEXPECTED_ERROR);return t}function Ep(e,t){return cr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Rp(e){return e.mode==="composition"?e.global:e.global.__composer}function Pp(e,t,n=!1){let s=null;const r=t.root;let o=Ip(t,n);for(;o!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(o);i!=null&&(s=i.__composer,n&&s&&!s[Ra]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Ip(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Mp(e,t,n){Pn(()=>{},t),bo(()=>{const s=n;e.__deleteInstance(t);const r=s[Jr];r&&(r(),delete s[Jr])},t)}const Lp=["locale","fallbackLocale","availableLocales"],Nl=["t","rt","d","n","tm","te"];function $p(e,t){const n=Object.create(null);return Lp.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw vt(gt.UNEXPECTED_ERROR);const l=Fe(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,l)}),e.config.globalProperties.$i18n=n,Nl.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw vt(gt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,Nl.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Op=$e({name:"i18n-d",props:Ye({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Io),setup(e,t){const n=e.i18n||Je({useScope:e.scope,__useComponent:!0});return La(e,t,ka,(...s)=>n[qr](...s))}}),Fl=Op;dp();Hf(Tf);Gf(Vf);Kf(ba);if(__INTLIFY_PROD_DEVTOOLS__){const e=un();e.__INTLIFY__=!0,Cf(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Ap(e){const t=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;return t==="/"?"":t.endsWith("/index.html")?t.slice(0,-11):t}function qs(e){return e.replace(/\\/g,"/")}function Np(e){return e.startsWith("/")||/^[a-z]:\//i.test(e)}function Fp(e){return qs(e).replace(/\/+$/,"")}function Dp(e){return qs(e).trim()}function Mn(e,t,n={}){const s=Dp(e);if(!s)return null;if(Np(s))return!n.allowAbsoluteWithoutRoot&&!t?.trim()?null:`vscode://file/${encodeURI(s)}`;if(!t?.trim())return null;const r=Fp(t);if(!r)return null;const o=s.replace(/^\/+/,"");return`vscode://file/${encodeURI(`${r}/${o}`)}`}function fr(e,t,n){const s=Mn(e,t,n);return s?(window.location.href=s,!0):!1}var Up=/\s+/g,Vp=e=>typeof e!="string"||!e?e:e.replace(Up," ").trim(),Ys=(...e)=>{const t=[],n=s=>{if(!s&&s!==0&&s!==0n)return;if(Array.isArray(s)){for(let o=0,l=s.length;o<l;o++)n(s[o]);return}const r=typeof s;if(r==="string"||r==="number"||r==="bigint"){if(r==="number"&&s!==s)return;t.push(String(s))}else if(r==="object"){const o=Object.keys(s);for(let l=0,i=o.length;l<i;l++){const a=o[l];s[a]&&t.push(a)}}};for(let s=0,r=e.length;s<r;s++){const o=e[s];o!=null&&n(o)}return t.length>0?Vp(t.join(" ")):void 0},Dl=e=>e===!1?"false":e===!0?"true":e===0?"0":e,ut=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Wp=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!s.includes(o)||e[o]!==t[o])return!1}return!0},jp=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];n in e?e[n]=Ys(e[n],s):e[n]=s}return e},$a=(e,t)=>{for(let n=0;n<e.length;n++){const s=e[n];Array.isArray(s)?$a(s,t):s&&t.push(s)}},Oa=(...e)=>{const t=[];$a(e,t);const n=[];for(let s=0;s<t.length;s++)t[s]&&n.push(t[s]);return n},Qr=(e,t)=>{const n={};for(const s in e){const r=e[s];if(s in t){const o=t[s];Array.isArray(r)||Array.isArray(o)?n[s]=Oa(o,r):typeof r=="object"&&typeof o=="object"&&r&&o?n[s]=Qr(r,o):n[s]=o+" "+r}else n[s]=r}for(const s in t)s in e||(n[s]=t[s]);return n},Hp={twMerge:!0,twMergeConfig:{}};function Gp(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(s){e=s},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(s){t=s},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(s){n=s},reset(){e=null,t={},n=!1}}}var Dt=Gp(),Kp=e=>{const t=(s,r)=>{const{extend:o=null,slots:l={},variants:i={},compoundVariants:a=[],compoundSlots:c=[],defaultVariants:u={}}=s,f={...Hp,...r},h=o?.base?Ys(o.base,s?.base):s?.base,b=o?.variants&&!ut(o.variants)?Qr(i,o.variants):i,k=o?.defaultVariants&&!ut(o.defaultVariants)?{...o.defaultVariants,...u}:u;!ut(f.twMergeConfig)&&!Wp(f.twMergeConfig,Dt.cachedTwMergeConfig)&&(Dt.didTwMergeConfigChange=!0,Dt.cachedTwMergeConfig=f.twMergeConfig);const E=ut(o?.slots),P=ut(l)?{}:{base:Ys(s?.base,E&&o?.base),...l},g=E?P:jp({...o?.slots},ut(P)?{base:s?.base}:P),y=ut(o?.compoundVariants)?a:Oa(o?.compoundVariants,a),_=I=>{if(ut(b)&&ut(l)&&E)return e(h,I?.class,I?.className)(f);if(y&&!Array.isArray(y))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof y}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const F=(le,ie=b,J=null,ee=null)=>{const $=ie[le];if(!$||ut($))return null;const z=ee?.[le]??I?.[le];if(z===null)return null;const se=Dl(z);if(typeof se=="object")return null;const xe=k?.[le],fe=se??Dl(xe);return $[fe||"false"]},A=()=>{if(!b)return null;const le=Object.keys(b),ie=[];for(let J=0;J<le.length;J++){const ee=F(le[J],b);ee&&ie.push(ee)}return ie},G=(le,ie)=>{if(!b||typeof b!="object")return null;const J=[];for(const ee in b){const $=F(ee,b,le,ie),z=le==="base"&&typeof $=="string"?$:$&&$[le];z&&J.push(z)}return J},oe={};for(const le in I){const ie=I[le];ie!==void 0&&(oe[le]=ie)}const ye=(le,ie)=>{const J=typeof I?.[le]=="object"?{[le]:I[le]?.initial}:{};return{...k,...oe,...J,...ie}},he=(le=[],ie)=>{const J=[],ee=le.length;for(let $=0;$<ee;$++){const{class:z,className:se,...xe}=le[$];let fe=!0;const _e=ye(null,ie);for(const Se in xe){const Ue=xe[Se],je=_e[Se];if(Array.isArray(Ue)){if(!Ue.includes(je)){fe=!1;break}}else{if((Ue==null||Ue===!1)&&(je==null||je===!1))continue;if(je!==Ue){fe=!1;break}}}fe&&(z&&J.push(z),se&&J.push(se))}return J},de=le=>{const ie=he(y,le);if(!Array.isArray(ie))return ie;const J={},ee=e;for(let $=0;$<ie.length;$++){const z=ie[$];if(typeof z=="string")J.base=ee(J.base,z)(f);else if(typeof z=="object")for(const se in z)J[se]=ee(J[se],z[se])(f)}return J},De=le=>{if(c.length<1)return null;const ie={},J=ye(null,le);for(let ee=0;ee<c.length;ee++){const{slots:$=[],class:z,className:se,...xe}=c[ee];if(!ut(xe)){let fe=!0;for(const _e in xe){const Se=J[_e],Ue=xe[_e];if(Se===void 0||(Array.isArray(Ue)?!Ue.includes(Se):Ue!==Se)){fe=!1;break}}if(!fe)continue}for(let fe=0;fe<$.length;fe++){const _e=$[fe];ie[_e]||(ie[_e]=[]),ie[_e].push([z,se])}}return ie};if(!ut(l)||!E){const le={};if(typeof g=="object"&&!ut(g)){const ie=e;for(const J in g)le[J]=ee=>{const $=de(ee),z=De(ee);return ie(g[J],G(J,ee),$?$[J]:void 0,z?z[J]:void 0,ee?.class,ee?.className)(f)}}return le}return e(h,A(),he(y),I?.class,I?.className)(f)},v=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return _.variantKeys=v(),_.extend=o,_.base=h,_.slots=g,_.variants=b,_.defaultVariants=k,_.compoundSlots=c,_.compoundVariants=y,_};return{tv:t,createTV:s=>(r,o)=>t(r,o?Qr(s,o):s)}};const Bp=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},zp=(e,t)=>({classGroupId:e,validator:t}),Aa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Js="-",Ul=[],qp="arbitrary..",Yp=e=>{const t=Xp(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Jp(l);const i=l.split(Js),a=i[0]===""&&i.length>1?1:0;return Na(i,a,t)},getConflictingClassGroupIds:(l,i)=>{if(i){const a=s[l],c=n[l];return a?c?Bp(c,a):a:c||Ul}return n[l]||Ul}}},Na=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const c=Na(e,t+1,o);if(c)return c}const l=n.validators;if(l===null)return;const i=t===0?e.join(Js):e.slice(t).join(Js),a=l.length;for(let c=0;c<a;c++){const u=l[c];if(u.validator(i))return u.classGroupId}},Jp=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?qp+s:void 0})(),Xp=e=>{const{theme:t,classGroups:n}=e;return Qp(n,t)},Qp=(e,t)=>{const n=Aa();for(const s in e){const r=e[s];Mo(r,n,s,t)}return n},Mo=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const l=e[o];Zp(l,t,n,s)}},Zp=(e,t,n,s)=>{if(typeof e=="string"){eg(e,t,n);return}if(typeof e=="function"){tg(e,t,n,s);return}ng(e,t,n,s)},eg=(e,t,n)=>{const s=e===""?t:Fa(t,e);s.classGroupId=n},tg=(e,t,n,s)=>{if(sg(e)){Mo(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(zp(n,e))},ng=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let l=0;l<o;l++){const[i,a]=r[l];Mo(a,Fa(t,i),n,s)}},Fa=(e,t)=>{let n=e;const s=t.split(Js),r=s.length;for(let o=0;o<r;o++){const l=s[o];let i=n.nextPart.get(l);i||(i=Aa(),n.nextPart.set(l,i)),n=i}return n},sg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,l)=>{n[o]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=s[o])!==void 0)return r(o,l),l},set(o,l){o in n?n[o]=l:r(o,l)}}},Zr="!",Vl=":",og=[],Wl=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),lg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let l=0,i=0,a=0,c;const u=r.length;for(let E=0;E<u;E++){const P=r[E];if(l===0&&i===0){if(P===Vl){o.push(r.slice(a,E)),a=E+1;continue}if(P==="/"){c=E;continue}}P==="["?l++:P==="]"?l--:P==="("?i++:P===")"&&i--}const f=o.length===0?r:r.slice(a);let h=f,b=!1;f.endsWith(Zr)?(h=f.slice(0,-1),b=!0):f.startsWith(Zr)&&(h=f.slice(1),b=!0);const k=c&&c>a?c-a:void 0;return Wl(o,b,h,k)};if(t){const r=t+Vl,o=s;s=l=>l.startsWith(r)?o(l.slice(r.length)):Wl(og,!1,l,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},ig=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let r=[];for(let o=0;o<n.length;o++){const l=n[o],i=l[0]==="[",a=t.has(l);i||a?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(l)):r.push(l)}return r.length>0&&(r.sort(),s.push(...r)),s}},ag=e=>({cache:rg(e.cacheSize),parseClassName:lg(e),sortModifiers:ig(e),...Yp(e)}),cg=/\s+/,ug=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,l=[],i=e.trim().split(cg);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:f,modifiers:h,hasImportantModifier:b,baseClassName:k,maybePostfixModifierPosition:E}=n(u);if(f){a=u+(a.length>0?" "+a:a);continue}let P=!!E,g=s(P?k.substring(0,E):k);if(!g){if(!P){a=u+(a.length>0?" "+a:a);continue}if(g=s(k),!g){a=u+(a.length>0?" "+a:a);continue}P=!1}const y=h.length===0?"":h.length===1?h[0]:o(h).join(":"),_=b?y+Zr:y,v=_+g;if(l.indexOf(v)>-1)continue;l.push(v);const I=r(g,P);for(let F=0;F<I.length;++F){const A=I[F];l.push(_+A)}a=u+(a.length>0?" "+a:a)}return a},dg=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=Da(n))&&(r&&(r+=" "),r+=s);return r},Da=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Da(e[s]))&&(n&&(n+=" "),n+=t);return n},eo=(e,...t)=>{let n,s,r,o;const l=a=>{const c=t.reduce((u,f)=>f(u),e());return n=ag(c),s=n.cache.get,r=n.cache.set,o=i,i(a)},i=a=>{const c=s(a);if(c)return c;const u=ug(a,n);return r(a,u),u};return o=l,(...a)=>o(dg(...a))},fg=[],ze=e=>{const t=n=>n[e]||fg;return t.isThemeGetter=!0,t},Ua=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Va=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pg=/^\d+\/\d+$/,gg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mg=/\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$/,hg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_g=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bn=e=>pg.test(e),ge=e=>!!e&&!Number.isNaN(Number(e)),Yt=e=>!!e&&Number.isInteger(Number(e)),Rr=e=>e.endsWith("%")&&ge(e.slice(0,-1)),Nt=e=>gg.test(e),vg=()=>!0,yg=e=>mg.test(e)&&!hg.test(e),Wa=()=>!1,xg=e=>bg.test(e),wg=e=>_g.test(e),kg=e=>!Q(e)&&!Z(e),Tg=e=>Ln(e,Ga,Wa),Q=e=>Ua.test(e),an=e=>Ln(e,Ka,yg),Pr=e=>Ln(e,Pg,ge),jl=e=>Ln(e,ja,Wa),Cg=e=>Ln(e,Ha,wg),Es=e=>Ln(e,Ba,xg),Z=e=>Va.test(e),Un=e=>$n(e,Ka),Sg=e=>$n(e,Ig),Hl=e=>$n(e,ja),Eg=e=>$n(e,Ga),Rg=e=>$n(e,Ha),Rs=e=>$n(e,Ba,!0),Ln=(e,t,n)=>{const s=Ua.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},$n=(e,t,n=!1)=>{const s=Va.exec(e);return s?s[1]?t(s[1]):n:!1},ja=e=>e==="position"||e==="percentage",Ha=e=>e==="image"||e==="url",Ga=e=>e==="length"||e==="size"||e==="bg-size",Ka=e=>e==="length",Pg=e=>e==="number",Ig=e=>e==="family-name",Ba=e=>e==="shadow",to=()=>{const e=ze("color"),t=ze("font"),n=ze("text"),s=ze("font-weight"),r=ze("tracking"),o=ze("leading"),l=ze("breakpoint"),i=ze("container"),a=ze("spacing"),c=ze("radius"),u=ze("shadow"),f=ze("inset-shadow"),h=ze("text-shadow"),b=ze("drop-shadow"),k=ze("blur"),E=ze("perspective"),P=ze("aspect"),g=ze("ease"),y=ze("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...v(),Z,Q],F=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],G=()=>[Z,Q,a],oe=()=>[bn,"full","auto",...G()],ye=()=>[Yt,"none","subgrid",Z,Q],he=()=>["auto",{span:["full",Yt,Z,Q]},Yt,Z,Q],de=()=>[Yt,"auto",Z,Q],De=()=>["auto","min","max","fr",Z,Q],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],J=()=>["auto",...G()],ee=()=>[bn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],$=()=>[e,Z,Q],z=()=>[...v(),Hl,jl,{position:[Z,Q]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],xe=()=>["auto","cover","contain",Eg,Tg,{size:[Z,Q]}],fe=()=>[Rr,Un,an],_e=()=>["","none","full",c,Z,Q],Se=()=>["",ge,Un,an],Ue=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ke=()=>[ge,Rr,Hl,jl],st=()=>["","none",k,Z,Q],rt=()=>["none",ge,Z,Q],Be=()=>["none",ge,Z,Q],q=()=>[ge,Z,Q],m=()=>[bn,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nt],breakpoint:[Nt],color:[vg],container:[Nt],"drop-shadow":[Nt],ease:["in","out","in-out"],font:[kg],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nt],shadow:[Nt],spacing:["px",ge],text:[Nt],"text-shadow":[Nt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bn,Q,Z,P]}],container:["container"],columns:[{columns:[ge,Q,Z,i]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:oe()}],"inset-x":[{"inset-x":oe()}],"inset-y":[{"inset-y":oe()}],start:[{start:oe()}],end:[{end:oe()}],top:[{top:oe()}],right:[{right:oe()}],bottom:[{bottom:oe()}],left:[{left:oe()}],visibility:["visible","invisible","collapse"],z:[{z:[Yt,"auto",Z,Q]}],basis:[{basis:[bn,"full","auto",i,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,bn,"auto","initial","none",Q]}],grow:[{grow:["",ge,Z,Q]}],shrink:[{shrink:["",ge,Z,Q]}],order:[{order:[Yt,"first","last","none",Z,Q]}],"grid-cols":[{"grid-cols":ye()}],"col-start-end":[{col:he()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":ye()}],"row-start-end":[{row:he()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:J()}],mx:[{mx:J()}],my:[{my:J()}],ms:[{ms:J()}],me:[{me:J()}],mt:[{mt:J()}],mr:[{mr:J()}],mb:[{mb:J()}],ml:[{ml:J()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[i,"screen",...ee()]}],"min-w":[{"min-w":[i,"screen","none",...ee()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,Un,an]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Z,Pr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rr,Q]}],"font-family":[{font:[Sg,Q,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Z,Q]}],"line-clamp":[{"line-clamp":[ge,"none",Z,Pr]}],leading:[{leading:[o,...G()]}],"list-image":[{"list-image":["none",Z,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Z,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",Z,an]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[ge,"auto",Z,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z,Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:xe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yt,Z,Q],radial:["",Z,Q],conic:[Yt,Z,Q]},Rg,Cg]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:_e()}],"rounded-s":[{"rounded-s":_e()}],"rounded-e":[{"rounded-e":_e()}],"rounded-t":[{"rounded-t":_e()}],"rounded-r":[{"rounded-r":_e()}],"rounded-b":[{"rounded-b":_e()}],"rounded-l":[{"rounded-l":_e()}],"rounded-ss":[{"rounded-ss":_e()}],"rounded-se":[{"rounded-se":_e()}],"rounded-ee":[{"rounded-ee":_e()}],"rounded-es":[{"rounded-es":_e()}],"rounded-tl":[{"rounded-tl":_e()}],"rounded-tr":[{"rounded-tr":_e()}],"rounded-br":[{"rounded-br":_e()}],"rounded-bl":[{"rounded-bl":_e()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ue(),"hidden","none"]}],"divide-style":[{divide:[...Ue(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,Z,Q]}],"outline-w":[{outline:["",ge,Un,an]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",u,Rs,Es]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",f,Rs,Es]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[ge,an]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",h,Rs,Es]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[ge,Z,Q]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":ke()}],"mask-image-linear-to-pos":[{"mask-linear-to":ke()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":ke()}],"mask-image-t-to-pos":[{"mask-t-to":ke()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":ke()}],"mask-image-r-to-pos":[{"mask-r-to":ke()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":ke()}],"mask-image-b-to-pos":[{"mask-b-to":ke()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":ke()}],"mask-image-l-to-pos":[{"mask-l-to":ke()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":ke()}],"mask-image-x-to-pos":[{"mask-x-to":ke()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":ke()}],"mask-image-y-to-pos":[{"mask-y-to":ke()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[Z,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ke()}],"mask-image-radial-to-pos":[{"mask-radial-to":ke()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":ke()}],"mask-image-conic-to-pos":[{"mask-conic-to":ke()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:xe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Z,Q]}],filter:[{filter:["","none",Z,Q]}],blur:[{blur:st()}],brightness:[{brightness:[ge,Z,Q]}],contrast:[{contrast:[ge,Z,Q]}],"drop-shadow":[{"drop-shadow":["","none",b,Rs,Es]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",ge,Z,Q]}],"hue-rotate":[{"hue-rotate":[ge,Z,Q]}],invert:[{invert:["",ge,Z,Q]}],saturate:[{saturate:[ge,Z,Q]}],sepia:[{sepia:["",ge,Z,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",Z,Q]}],"backdrop-blur":[{"backdrop-blur":st()}],"backdrop-brightness":[{"backdrop-brightness":[ge,Z,Q]}],"backdrop-contrast":[{"backdrop-contrast":[ge,Z,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,Z,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,Z,Q]}],"backdrop-invert":[{"backdrop-invert":["",ge,Z,Q]}],"backdrop-opacity":[{"backdrop-opacity":[ge,Z,Q]}],"backdrop-saturate":[{"backdrop-saturate":[ge,Z,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,Z,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Z,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",Z,Q]}],ease:[{ease:["linear","initial",g,Z,Q]}],delay:[{delay:[ge,Z,Q]}],animate:[{animate:["none",y,Z,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,Z,Q]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:rt()}],"rotate-x":[{"rotate-x":rt()}],"rotate-y":[{"rotate-y":rt()}],"rotate-z":[{"rotate-z":rt()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[Z,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:m()}],"translate-x":[{"translate-x":m()}],"translate-y":[{"translate-y":m()}],"translate-z":[{"translate-z":m()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z,Q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"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",Z,Q]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[ge,Un,an,Pr]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mg=(e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(Wn(e,"cacheSize",t),Wn(e,"prefix",n),Wn(e,"experimentalParseClassName",s),Ps(e.theme,o.theme),Ps(e.classGroups,o.classGroups),Ps(e.conflictingClassGroups,o.conflictingClassGroups),Ps(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Wn(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Is(e.theme,r.theme),Is(e.classGroups,r.classGroups),Is(e.conflictingClassGroups,r.conflictingClassGroups),Is(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),za(e,r,"orderSensitiveModifiers"),e),Wn=(e,t,n)=>{n!==void 0&&(e[t]=n)},Ps=(e,t)=>{if(t)for(const n in t)Wn(e,n,t[n])},Is=(e,t)=>{if(t)for(const n in t)za(e,t,n)},za=(e,t,n)=>{const s=t[n];s!==void 0&&(e[n]=e[n]?e[n].concat(s):s)},Lg=(e,...t)=>typeof e=="function"?eo(to,e,...t):eo(()=>Mg(to(),e),...t),$g=eo(to);var Og=e=>ut(e)?$g:Lg({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),qa=(e,t)=>{const n=Ys(e);return!n||!(t?.twMerge??!0)?n:((!Dt.cachedTwMerge||Dt.didTwMergeConfigChange)&&(Dt.didTwMergeConfigChange=!1,Dt.cachedTwMerge=Og(Dt.cachedTwMergeConfig)),Dt.cachedTwMerge(n)||void 0)},Ag=(...e)=>qa(e,{}),Ng=(...e)=>t=>qa(e,t),{tv:gs}=Kp(Ng);function ms(...e){return Ag(...e)}const Me=$e({__name:"UiPill",props:{tone:{default:"strong"},size:{default:"md"},caps:{type:Boolean,default:!0},tracking:{default:"wide"}},setup(e){const t=e,n=gs({base:"inline-flex items-center gap-2 rounded-full",variants:{size:{xxs:"px-2 py-0.5 text-[0.55rem]",xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border border-pg-border bg-pg-surface-card text-pg-text-soft",chip:"bg-pg-chip text-pg-chip-text"},caps:{true:"uppercase",false:""},tracking:{wide:"tracking-[0.25em]",tight:"tracking-[0.2em]",none:""}},defaultVariants:{size:"md",tone:"strong",caps:!0,tracking:"wide"}}),s=ds(),r=H(()=>{const i=t.caps?t.tracking:"none";return ms(n({size:t.size,tone:t.tone,caps:t.caps,tracking:i}),s.class)}),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("span",mn(o.value,{class:r.value,style:l.value}),[_o(i.$slots,"default")],16))}}),Fg={class:"flex min-h-0 flex-col gap-4"},Dg={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Ug={class:"flex flex-wrap items-center justify-between gap-3"},Vg={class:"flex flex-col gap-1"},Wg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},jg={class:"text-lg font-display text-pg-text-strong"},Hg={class:"mt-4 grid gap-3 text-sm text-pg-text-soft"},Gg={class:"flex items-center gap-2"},Kg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Bg={class:"flex items-center gap-2"},zg={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},qg={class:"flex min-h-0 flex-1 flex-col gap-3"},Yg={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Jg={key:0,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Xg={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qg={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Zg={class:"flex flex-wrap items-center justify-between gap-2"},em={class:"flex flex-wrap items-center gap-2"},tm={class:"text-[0.75rem] font-semibold text-pg-text"},nm=["aria-label","title","onClick"],sm={class:"mt-1 text-[0.7rem] text-pg-text-muted"},rm={key:1,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},om={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},lm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},im={class:"flex flex-wrap items-center justify-between gap-2"},am={class:"flex flex-wrap items-center gap-2"},cm={class:"text-[0.75rem] font-semibold text-pg-text"},um=["aria-label","title","onClick"],dm={class:"mt-1 text-[0.7rem] text-pg-text-muted"},fm={key:2,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},pm={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},gm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},mm={class:"flex flex-wrap items-center justify-between gap-2"},hm={class:"text-[0.75rem] font-semibold text-pg-text"},bm=["aria-label","title","onClick"],_m=$e({__name:"ConfigDetail",props:{selected:{},impacted:{},isDisabled:{type:Boolean},workspaceRoot:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>{const f=t.selected.file.replace(/\\/g,"/"),h=f.lastIndexOf("/");return h<0?"/":f.slice(0,h)||"/"}),r=H(()=>s.value==="/"?"/**":`${s.value}/**`),o=H(()=>{const f=[],h=[],b=[];for(const k of t.impacted)k.kind==="disabled"?h.push(k):k.kind==="ignored"?b.push(k):f.push(k);return{active:f,disabled:h,ignored:b}}),l=H(()=>t.impacted.length),i=f=>`method-${f.toLowerCase()}`;function a(f){return f.url?f.url:f.file}function c(f){return Mn(f,t.workspaceRoot)}function u(f){fr(f,t.workspaceRoot)}return(f,h)=>(O(),D("section",Fg,[w("div",Dg,[w("div",Ug,[w("div",Vg,[w("span",Wg,N(S(n)("configPanel.title")),1),w("span",jg,N(t.selected.file),1)]),K(Me,{tone:"chip",size:"sm",caps:!1},{default:ne(()=>[me(N(t.isDisabled?S(n)("configPanel.statusDisabled"):S(n)("configPanel.statusEnabled")),1)]),_:1})]),w("div",Hg,[w("div",Gg,[w("span",Kg,N(S(n)("configPanel.scope")),1),w("span",null,N(r.value),1)]),w("div",Bg,[w("span",zg,N(S(n)("configPanel.impacted")),1),K(Me,{tone:"chip",size:"sm",caps:!1},{default:ne(()=>[me(N(l.value),1)]),_:1})])])]),w("div",qg,[l.value===0?(O(),D("div",Yg,N(S(n)("configPanel.emptyImpacts")),1)):(O(),D(ve,{key:1},[o.value.active.length>0?(O(),D("div",Jg,[w("div",Xg,[w("span",null,N(S(n)("configPanel.active")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.active.length),1)]),_:1})]),w("div",Qg,[(O(!0),D(ve,null,Xe(o.value.active,b=>(O(),D("div",{key:`active-${b.file}-${b.method??""}-${b.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",Zg,[w("div",em,[b.method?(O(),D("span",{key:0,class:Ae(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(b.method)])},N(b.method),3)):ce("",!0),w("span",tm,N(a(b)),1)]),c(b.file)?(O(),D("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...h[0]||(h[0]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,nm)):ce("",!0)]),w("div",sm,N(b.file),1)]))),128))])])):ce("",!0),o.value.disabled.length>0?(O(),D("div",rm,[w("div",om,[w("span",null,N(S(n)("configPanel.disabled")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.disabled.length),1)]),_:1})]),w("div",lm,[(O(!0),D(ve,null,Xe(o.value.disabled,b=>(O(),D("div",{key:`disabled-${b.file}-${b.method??""}-${b.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",im,[w("div",am,[b.method?(O(),D("span",{key:0,class:Ae(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(b.method)])},N(b.method),3)):ce("",!0),w("span",cm,N(a(b)),1)]),c(b.file)?(O(),D("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...h[1]||(h[1]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,um)):ce("",!0)]),w("div",dm,N(b.file),1)]))),128))])])):ce("",!0),o.value.ignored.length>0?(O(),D("div",fm,[w("div",pm,[w("span",null,N(S(n)("configPanel.ignored")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.ignored.length),1)]),_:1})]),w("div",gm,[(O(!0),D(ve,null,Xe(o.value.ignored,b=>(O(),D("div",{key:`ignored-${b.file}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",mm,[w("span",hm,N(a(b)),1),c(b.file)?(O(),D("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...h[2]||(h[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,bm)):ce("",!0)])]))),128))])])):ce("",!0)],64))])]))}}),Ya="mokup.playground.detailPanels",jn={configChain:!1,middlewares:!1},is=te(jn);let Gl=!1;function vm(){if(typeof window>"u")return jn;try{const e=localStorage.getItem(Ya);if(!e)return jn;const t=JSON.parse(e);return{...jn,...t}}catch{return jn}}function ym(e){if(!(typeof window>"u"))try{localStorage.setItem(Ya,JSON.stringify(e))}catch{}}function Ja(){Gl||typeof window>"u"||(is.value=vm(),Gl=!0)}function Kl(e,t){Ja();const n={...is.value,[e]:t};is.value=n,ym(n)}function Xa(e){return Ja(),{isOpen:H(()=>is.value[e]),toggle:()=>Kl(e,!is.value[e]),setOpen:r=>Kl(e,r)}}const xm=["aria-expanded"],wm={class:"flex flex-wrap items-center gap-2"},km={key:0,class:"flex flex-col gap-2 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},Tm={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},Cm={class:"text-[0.7rem] text-pg-text-subtle"},Sm={key:1,class:"border-t px-4 py-3 text-xs border-pg-border text-pg-text-muted"},Bl="pg-config-chain-panel",Em=$e({__name:"RouteDetailConfigChain",props:{configChain:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Je(),{isOpen:s,toggle:r}=Xa("configChain"),o=H(()=>(t.configChain??[]).map((l,i)=>({file:l,order:i+1,disabled:t.configStatusMap.get(l)==="disabled"})));return(l,i)=>(O(),D("div",null,[w("button",{type:"button",class:"group flex w-full items-center justify-between border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition border-pg-border text-pg-text-muted hover:text-pg-text-soft","aria-expanded":S(s),"aria-controls":Bl,onClick:i[0]||(i[0]=(...a)=>S(r)&&S(r)(...a))},[w("span",wm,[w("span",null,N(S(n)("detail.configChain")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(o.value.length),1)]),_:1})]),w("span",{class:Ae(["i-[carbon--chevron-down] h-4 w-4 transition",S(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,xm),S(s)?(O(),D("div",{key:0,id:Bl},[o.value.length>0?(O(),D("div",km,[(O(!0),D(ve,null,Xe(o.value,a=>(O(),D("div",{key:`config-${a.order}-${a.file}`,class:"flex flex-wrap items-center gap-2"},[w("span",Tm,N(a.order),1),w("span",Cm,N(a.file),1),a.disabled?(O(),pt(Me,{key:0,tone:"strong",size:"xxs",caps:!1},{default:ne(()=>[me(N(S(n)("configPanel.statusDisabled")),1)]),_:1})):ce("",!0)]))),128))])):(O(),D("div",Sm,N(S(n)("detail.configChainEmpty")),1))])):ce("",!0)]))}}),Rm=["aria-expanded"],Pm={class:"flex flex-wrap items-center gap-2"},Im={key:0,class:"flex flex-col gap-2"},Mm={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Lm={class:"flex flex-wrap gap-2"},$m=["href","title"],Om={key:1,class:"flex flex-col gap-2"},Am={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Nm={class:"flex flex-wrap gap-2"},Fm=["href","title"],Dm={key:2,class:"flex flex-col gap-2"},Um={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Vm={class:"flex flex-wrap gap-2"},Wm=["href","title"],zl="pg-middlewares-panel",jm=$e({__name:"RouteDetailMiddlewares",props:{selected:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=Je(),{isOpen:s,toggle:r}=Xa("middlewares");function o(b){const k=b.trim();return k?Mn(k,t.workspaceRoot,{allowAbsoluteWithoutRoot:!0})??"":""}const l=H(()=>t.selected.preMiddlewares??[]),i=H(()=>t.selected.normalMiddlewares?t.selected.normalMiddlewares:t.selected.preMiddlewares||t.selected.postMiddlewares?[]:t.selected.middlewares??[]),a=H(()=>t.selected.postMiddlewares??[]),c=H(()=>t.selected.preMiddlewareCount??l.value.length),u=H(()=>t.selected.normalMiddlewareCount??i.value.length),f=H(()=>t.selected.postMiddlewareCount??a.value.length),h=H(()=>t.selected.middlewareCount??c.value+u.value+f.value);return(b,k)=>(O(),D("div",null,[w("button",{type:"button",class:"group flex w-full items-center justify-between border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition border-pg-border text-pg-text-muted hover:text-pg-text-soft","aria-expanded":S(s),"aria-controls":zl,onClick:k[0]||(k[0]=(...E)=>S(r)&&S(r)(...E))},[w("span",Pm,[w("span",null,N(S(n)("detail.middlewares")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(h.value),1)]),_:1})]),w("span",{class:Ae(["i-[carbon--chevron-down] h-4 w-4 transition",S(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,Rm),S(s)&&(l.value.length>0||i.value.length>0||a.value.length>0)?(O(),D("div",{key:0,id:zl,class:"flex flex-col gap-3 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},[l.value.length>0?(O(),D("div",Im,[w("div",Mm,[w("span",null,N(S(n)("detail.middlewarePre")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(c.value),1)]),_:1})]),w("div",Lm,[(O(!0),D(ve,null,Xe(l.value,E=>(O(),D("span",{key:`pre-${E}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[me(N(E)+" ",1),o(E)?(O(),D("a",{key:0,href:o(E),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[1]||(k[1]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,$m)):ce("",!0)]))),128))])])):ce("",!0),i.value.length>0?(O(),D("div",Om,[w("div",Am,[w("span",null,N(S(n)("detail.middlewareNormal")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(u.value),1)]),_:1})]),w("div",Nm,[(O(!0),D(ve,null,Xe(i.value,E=>(O(),D("span",{key:`normal-${E}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[me(N(E)+" ",1),o(E)?(O(),D("a",{key:0,href:o(E),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[2]||(k[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Fm)):ce("",!0)]))),128))])])):ce("",!0),a.value.length>0?(O(),D("div",Dm,[w("div",Um,[w("span",null,N(S(n)("detail.middlewarePost")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(f.value),1)]),_:1})]),w("div",Vm,[(O(!0),D(ve,null,Xe(a.value,E=>(O(),D("span",{key:`post-${E}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[me(N(E)+" ",1),o(E)?(O(),D("a",{key:0,href:o(E),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[3]||(k[3]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Wm)):ce("",!0)]))),128))])])):ce("",!0)])):ce("",!0)]))}}),as=$e({__name:"UiTextInput",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=gs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=ds(),r=H(()=>ms(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("input",mn(o.value,{class:r.value,style:l.value}),null,16))}}),Hm={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},Gm={class:"truncate text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},Km={class:"flex flex-wrap items-center gap-3 px-4 py-3"},Bm=["disabled","aria-busy"],zm={key:0,class:"i-[carbon--circle-dash] h-3.5 w-3.5 animate-spin","aria-hidden":"true"},qm=$e({__name:"RouteDetailRequestHeader",props:{method:{},requestUrl:{},file:{},isSwRegistering:{type:Boolean}},emits:["run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>`method-${n.method.toLowerCase()}`);return(l,i)=>(O(),D("div",null,[w("div",Hm,[w("span",null,N(S(r)("detail.requestLabel")),1),w("span",Gm,N(n.file),1)]),w("div",Km,[w("span",{class:Ae(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",o.value])},N(n.method),3),K(as,{value:n.requestUrl,readonly:"",class:"min-w-[220px] flex-1"},null,8,["value"]),w("button",{class:"flex items-center gap-2 rounded-full px-4 py-2 text-[0.65rem] uppercase tracking-[0.3em] shadow-sm transition hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-70 disabled:hover:translate-y-0 bg-pg-accent text-pg-on-accent","data-testid":"playground-run",disabled:n.isSwRegistering,"aria-busy":n.isSwRegistering,onClick:i[0]||(i[0]=a=>s("run"))},[n.isSwRegistering?(O(),D("span",zm)):ce("",!0),me(" "+N(S(r)("detail.run")),1)],8,Bm)])]))}}),Ym=["type"],qe=$e({__name:"UiChipButton",props:{active:{type:Boolean,default:!1},tone:{default:"strong"},size:{default:"md"},type:{default:"button"}},setup(e,{expose:t}){const n=e,s=gs({base:"inline-flex items-center gap-2 rounded-full border uppercase tracking-[0.25em] transition hover:-translate-y-0.5",variants:{size:{xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border-pg-border bg-pg-surface-card text-pg-text-soft"},active:{true:"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm ring-1 ring-pg-accent-ring"}},defaultVariants:{size:"md",tone:"strong"}}),r=ds(),o=H(()=>ms(s({size:n.size,tone:n.tone,active:n.active}),r.class)),l=H(()=>{const{class:c,style:u,...f}=r;return f}),i=H(()=>r.style),a=te(null);return t({el:a}),(c,u)=>(O(),D("button",mn({ref_key:"buttonRef",ref:a},l.value,{type:n.type,class:o.value,style:i.value}),[_o(c.$slots,"default")],16,Ym))}}),dn=$e({__name:"UiField",props:{label:{},dense:{type:Boolean,default:!1}},setup(e){const t=e,n=gs({base:"flex flex-col uppercase text-pg-text-muted",variants:{dense:{true:"gap-1 text-[0.55rem] tracking-[0.25em]",false:"gap-1.5 text-[0.65rem] tracking-[0.2em]"}},defaultVariants:{dense:!1}}),s=ds(),r=H(()=>ms(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("label",mn(o.value,{class:r.value,style:l.value}),[w("span",null,N(t.label),1),_o(i.$slots,"default")],16))}}),Ir=$e({__name:"UiTextarea",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=gs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=ds(),r=H(()=>ms(n({dense:t.dense}),s.class)),o=H(()=>{const{class:i,style:a,...c}=s;return c}),l=H(()=>s.style);return(i,a)=>(O(),D("textarea",mn(o.value,{class:r.value,style:l.value}),null,16))}}),Jm={class:"rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},Xm={class:"border-t p-4 border-pg-border"},Qm={class:"flex flex-wrap gap-2"},Zm={class:"mt-4"},eh={key:0,class:"rounded-xl border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},th={key:1,class:"grid gap-3 lg:grid-cols-2"},nh={class:"flex items-center gap-2 text-[0.55rem] uppercase tracking-[0.2em] text-pg-text-muted"},sh={class:"rounded-full border px-2 py-0.5 text-[0.5rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},rh={class:"relative"},oh=["value"],lh={value:"json"},ih={value:"text"},ah={value:"form"},ch={value:"multipart"},uh={value:"base64"},dh='{ "q": "alpha", "page": 1 }',fh='{ "x-mokup": "playground" }',ph='{ "name": "Ada" }',gh=`title=alpha
|
|
4
|
-
count=3`,
|
|
5
|
-
status=active`,hh="SGVsbG8gd29ybGQ=",bh=$e({__name:"RouteDetailRequest",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),{bodyType:o}=Jc(n);function l(I){return I.kind==="param"?r("detail.paramPlaceholder"):r("detail.paramPlaceholderCatchall")}const i=te("query"),a=te(!1),c=new Map;let u=null;const f=H(()=>new Set(n.missingParams)),h=H(()=>n.missingParams.length>0),b=H(()=>n.routeParams.some(I=>I.required)),k=H(()=>{switch(o.value){case"text":return r("detail.bodyTypeText");case"form":return r("detail.bodyTypeForm");case"multipart":return r("detail.bodyTypeMultipart");case"base64":return r("detail.bodyTypeBase64");default:return r("detail.bodyTypeJson")}});function E(I,F){if(!F){c.delete(I);return}c.set(I,F)}function P(){u&&(clearTimeout(u),u=null),a.value=!1,!(typeof window>"u")&&window.requestAnimationFrame(()=>{a.value=!0,u=window.setTimeout(()=>{a.value=!1,u=null},1400)})}function g(){const[I]=n.missingParams;if(!I)return;const F=c.get(I);if(!F)return;F.scrollIntoView({behavior:"smooth",block:"center"}),F.querySelector("input")?.focus()}function y(){return n.routeParams.length>0?"params":"query"}ft(()=>n.selected?.url??"",()=>{i.value=y()},{immediate:!0}),ft(()=>n.routeParams.length,(I,F)=>{if(!n.selected){i.value="query";return}I>0&&F===0&&i.value==="query"&&(i.value="params"),I===0&&i.value==="params"&&(i.value="query")}),ft(()=>n.missingPulse,async(I,F)=>{I===F||!h.value||(i.value="params",await Si(),g(),P())}),ft(()=>n.missingParams.length,I=>{I===0&&(a.value=!1)}),In(()=>{u&&(clearTimeout(u),u=null)});function _(){switch(n.bodyType){case"text":return r("detail.bodyPlaceholderText");case"form":return r("detail.bodyPlaceholderForm",{sample:gh});case"multipart":return r("detail.bodyPlaceholderMultipart",{sample:mh});case"base64":return r("detail.bodyPlaceholderBase64",{sample:hh});default:return r("detail.bodyPlaceholderJson",{json:ph})}}const v=H(()=>n.selected.configChain??[]);return(I,F)=>(O(),D("section",Jm,[K(qm,{method:n.selected.method,"request-url":n.requestUrl,file:n.selected.file,"is-sw-registering":n.isSwRegistering,onRun:F[0]||(F[0]=A=>s("run"))},null,8,["method","request-url","file","is-sw-registering"]),K(Em,{"config-chain":v.value,"config-status-map":n.configStatusMap},null,8,["config-chain","config-status-map"]),K(jm,{selected:n.selected,"workspace-root":n.workspaceRoot},null,8,["selected","workspace-root"]),w("div",Xm,[w("div",Qm,[K(qe,{size:"md",active:i.value==="params",class:Ae([h.value?"pg-tab-missing":"",a.value&&h.value?"pg-pulse":""]),onClick:F[1]||(F[1]=A=>i.value="params")},{default:ne(()=>[w("span",null,N(S(r)("detail.params")),1),b.value?(O(),pt(Me,{key:0,size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(S(r)("detail.badgeRequired")),1)]),_:1})):ce("",!0)]),_:1},8,["active","class"]),K(qe,{size:"md",active:i.value==="query",onClick:F[2]||(F[2]=A=>i.value="query")},{default:ne(()=>[w("span",null,N(S(r)("detail.query")),1),K(Me,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(S(r)("detail.badgeJson")),1)]),_:1})]),_:1},8,["active"]),K(qe,{size:"md",active:i.value==="headers",onClick:F[3]||(F[3]=A=>i.value="headers")},{default:ne(()=>[w("span",null,N(S(r)("detail.headers")),1),K(Me,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(S(r)("detail.badgeJson")),1)]),_:1})]),_:1},8,["active"]),K(qe,{size:"md",active:i.value==="body",onClick:F[4]||(F[4]=A=>i.value="body")},{default:ne(()=>[w("span",null,N(S(r)("detail.body")),1),K(Me,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:ne(()=>[me(N(k.value),1)]),_:1})]),_:1},8,["active"])]),w("div",Zm,[xs(w("div",null,[n.routeParams.length===0?(O(),D("div",eh,N(S(r)("detail.emptyParams")),1)):(O(),D("div",th,[(O(!0),D(ve,null,Xe(n.routeParams,A=>(O(),D("label",{key:A.id,ref_for:!0,ref:G=>E(A.name,G),class:"flex flex-col gap-1.5 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},[w("span",nh,[w("span",null,N(A.name),1),w("span",sh,N(A.token),1)]),K(as,{value:n.paramValues[A.name]??"",placeholder:l(A),class:Ae([f.value.has(A.name)?"pg-input-missing":"",a.value&&f.value.has(A.name)?"pg-pulse":""]),onInput:G=>s("update:param-value",A.name,G.target?.value??"")},null,8,["value","placeholder","class","onInput"])]))),128))]))],512),[[ws,i.value==="params"]]),xs(w("div",null,[K(dn,{label:S(r)("detail.query")},{default:ne(()=>[K(Ir,{value:n.queryText,rows:"4",placeholder:S(r)("detail.queryPlaceholder",{json:dh}),onInput:F[5]||(F[5]=A=>s("update:queryText",A.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ws,i.value==="query"]]),xs(w("div",null,[K(dn,{label:S(r)("detail.headers")},{default:ne(()=>[K(Ir,{value:n.headersText,rows:"4",placeholder:S(r)("detail.headersPlaceholder",{json:fh}),onInput:F[6]||(F[6]=A=>s("update:headersText",A.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ws,i.value==="headers"]]),xs(w("div",null,[K(dn,{label:S(r)("detail.bodyType")},{default:ne(()=>[w("div",rh,[w("select",{class:"w-full appearance-none rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",value:S(o),onChange:F[7]||(F[7]=A=>s("update:bodyType",A.target?.value))},[w("option",lh,N(S(r)("detail.bodyTypeJson")),1),w("option",ih,N(S(r)("detail.bodyTypeText")),1),w("option",ah,N(S(r)("detail.bodyTypeForm")),1),w("option",ch,N(S(r)("detail.bodyTypeMultipart")),1),w("option",uh,N(S(r)("detail.bodyTypeBase64")),1)],40,oh),F[9]||(F[9]=w("span",{class:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-pg-text-muted","aria-hidden":"true"},[w("span",{class:"i-[carbon--chevron-down] block h-4 w-4"})],-1))])]),_:1},8,["label"]),K(dn,{label:S(r)("detail.body")},{default:ne(()=>[K(Ir,{value:n.bodyText,rows:"6",placeholder:_(),onInput:F[8]||(F[8]=A=>s("update:bodyText",A.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[ws,i.value==="body"]])])])]))}}),_h={class:"flex min-h-[220px] flex-1 flex-col rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},vh={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},yh={class:"flex items-center gap-3 text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},xh={class:"flex-1 min-h-0 overflow-auto rounded-b-2xl p-4 text-xs bg-pg-surface-strong text-pg-text","data-testid":"playground-response"},wh=$e({__name:"RouteDetailResponse",props:{responseText:{},responseStatus:{},responseTime:{}},setup(e){const t=e,{t:n}=Je();return(s,r)=>(O(),D("section",_h,[w("div",vh,[w("span",null,N(S(n)("detail.responseLabel")),1),w("span",yh,[w("span",null,N(t.responseStatus),1),w("span",null,N(t.responseTime),1)])]),w("pre",xh,N(t.responseText),1)]))}}),kh={class:"flex min-h-0 flex-col gap-4"},Th={key:0,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},Ch={class:"text-xl font-display text-pg-text-strong"},Sh={class:"text-sm"},Eh={key:1,class:"flex min-h-0 h-full flex-col gap-4"},Rh=$e({__name:"RouteDetail",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je();return(o,l)=>(O(),D("section",kh,[n.selected?(O(),D("div",Eh,[K(bh,{selected:n.selected,"request-url":n.requestUrl,"workspace-root":n.workspaceRoot,"route-params":n.routeParams,"param-values":n.paramValues,"missing-params":n.missingParams,"missing-pulse":n.missingPulse,"query-text":n.queryText,"headers-text":n.headersText,"body-text":n.bodyText,"body-type":n.bodyType,"is-sw-registering":n.isSwRegistering,"config-status-map":n.configStatusMap,"onUpdate:queryText":l[0]||(l[0]=i=>s("update:queryText",i)),"onUpdate:headersText":l[1]||(l[1]=i=>s("update:headersText",i)),"onUpdate:bodyText":l[2]||(l[2]=i=>s("update:bodyText",i)),"onUpdate:bodyType":l[3]||(l[3]=i=>s("update:bodyType",i)),"onUpdate:paramValue":l[4]||(l[4]=(i,a)=>s("update:param-value",i,a)),onRun:l[5]||(l[5]=i=>s("run"))},null,8,["selected","request-url","workspace-root","route-params","param-values","missing-params","missing-pulse","query-text","headers-text","body-text","body-type","is-sw-registering","config-status-map"]),K(wh,{"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime},null,8,["response-text","response-status","response-time"])])):(O(),D("div",Th,[w("p",Ch,N(S(r)("detail.selectTitle")),1),w("p",Sh,N(S(r)("detail.selectHint")),1)]))]))}}),Ph={class:"flex min-h-0 flex-col gap-4"},Ih={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Mh={class:"flex flex-wrap items-center justify-between gap-3"},Lh={class:"flex flex-col gap-1"},$h={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Oh={class:"flex flex-wrap items-center gap-2"},Ah={class:"text-lg font-display text-pg-text-strong"},Nh={class:"text-xs text-pg-text-subtle"},Fh={class:"flex items-center gap-2"},Dh=["aria-label","title"],Uh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Vh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Wh={key:0,class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},jh={class:"flex flex-wrap items-start justify-between gap-3"},Hh={class:"flex flex-col gap-1"},Gh={class:"flex flex-wrap items-center gap-2"},Kh={class:"text-[0.85rem] font-semibold text-pg-text"},Bh={key:0,class:"text-[0.75rem] text-pg-text-muted"},zh={key:1,class:"text-[0.7rem] text-pg-text-subtle"},qh=["aria-label","title","onClick"],Yh={key:1,class:"mt-3 text-xs text-pg-text-muted"},Jh={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Xh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qh={key:0,class:"mt-3 flex flex-col gap-2 text-xs text-pg-text-soft"},Zh={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},eb={class:"text-[0.7rem] text-pg-text-subtle"},tb={key:1,class:"mt-3 text-xs text-pg-text-muted"},nb={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},sb={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},rb={key:0,class:"mt-3 flex flex-col gap-3 text-sm text-pg-text-soft"},ob={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},lb={class:"mt-1 text-[0.75rem] text-pg-text-soft"},ib={class:"whitespace-pre-wrap"},ab={key:1,class:"mt-3 text-xs text-pg-text-muted"},cb={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},ub={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},db={class:"mt-3 grid gap-2 text-sm text-pg-text-soft"},fb={key:0,class:"flex items-center gap-2"},pb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},gb={key:1,class:"flex items-center gap-2"},mb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},hb={class:"flex items-center gap-2"},bb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},_b={class:"text-pg-text-subtle"},ql=$e({__name:"RouteDetailInactive",props:{mode:{},selected:{},workspaceRoot:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Je(),s=H(()=>t.mode==="ignored"?n("inactive.titleIgnored"):n("inactive.titleDisabled")),r=H(()=>t.mode==="ignored"?n(`ignored.reason.${t.selected.reason}`):n(`disabled.reason.${t.selected.reason}`)),o=H(()=>t.selected.url?t.selected.url:t.selected.file),l=P=>`method-${P.toLowerCase()}`,i=H(()=>t.selected.decisionChain??[]),a=H(()=>t.selected.configChain??[]),c=H(()=>a.value.map((P,g)=>({file:P,order:g+1,disabled:t.configStatusMap.get(P)==="disabled"}))),u=H(()=>t.selected.effectiveConfig??{}),f=H(()=>{const P=[],g=u.value;return typeof g.enabled=="boolean"&&P.push({key:"enabled",label:n("inactive.config.enabled"),value:String(g.enabled)}),typeof g.status=="number"&&P.push({key:"status",label:n("inactive.config.status"),value:String(g.status)}),typeof g.delay=="number"&&P.push({key:"delay",label:n("inactive.config.delay"),value:`${g.delay}ms`}),typeof g.ignorePrefix<"u"&&P.push({key:"ignorePrefix",label:n("inactive.config.ignorePrefix"),value:h(g.ignorePrefix)}),typeof g.include<"u"&&P.push({key:"include",label:n("inactive.config.include"),value:h(g.include)}),typeof g.exclude<"u"&&P.push({key:"exclude",label:n("inactive.config.exclude"),value:h(g.exclude)}),g.headers&&Object.keys(g.headers).length>0&&P.push({key:"headers",label:n("inactive.config.headers"),value:h(g.headers)}),P});function h(P){return Array.isArray(P)?P.join(", "):P&&typeof P=="object"?JSON.stringify(P,null,2):String(P)}function b(P){return{"config.enabled":n("decision.configEnabled"),"ignore-prefix":n("decision.ignorePrefix"),"file.supported":n("decision.fileSupported"),"filter.exclude":n("decision.filterExclude"),"filter.include":n("decision.filterInclude"),"route.derived":n("decision.routeDerived"),"rule.enabled":n("decision.ruleEnabled")}[P.step]??P.step}function k(P){return Mn(P,t.workspaceRoot)}function E(P){fr(P,t.workspaceRoot)}return(P,g)=>(O(),D("section",Ph,[w("div",Ih,[w("div",Mh,[w("div",Lh,[w("span",$h,N(s.value),1),w("div",Oh,[t.selected.method?(O(),D("span",{key:0,class:Ae(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",l(t.selected.method)])},N(t.selected.method),3)):ce("",!0),w("span",Ah,N(o.value),1)]),w("span",Nh,N(t.selected.file),1)]),w("div",Fh,[K(Me,{tone:"chip",size:"sm",caps:!1},{default:ne(()=>[me(N(r.value),1)]),_:1}),k(t.selected.file)?(O(),D("button",{key:0,class:"flex h-8 w-8 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${t.selected.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:g[0]||(g[0]=y=>E(t.selected.file))},[...g[1]||(g[1]=[w("span",{class:"i-[carbon--launch] h-4 w-4","aria-hidden":"true"},null,-1)])],8,Dh)):ce("",!0)])])]),w("div",Uh,[w("div",Vh,[w("span",null,N(S(n)("inactive.decisionChain")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(i.value.length),1)]),_:1})]),i.value.length>0?(O(),D("div",Wh,[(O(!0),D(ve,null,Xe(i.value,(y,_)=>(O(),D("div",{key:`decision-${_}-${y.step}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",jh,[w("div",Hh,[w("div",Gh,[w("span",{class:Ae(["rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em]",y.result==="pass"?"border-pg-border bg-pg-surface-strong text-pg-text-soft":"border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"])},N(y.result==="pass"?S(n)("inactive.pass"):S(n)("inactive.fail")),3),w("span",Kh,N(b(y)),1)]),y.detail?(O(),D("span",Bh,N(y.detail),1)):ce("",!0),y.source?(O(),D("span",zh,N(y.source),1)):ce("",!0)]),y.source&&k(y.source)?(O(),D("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${y.source} in VS Code`,title:S(n)("detail.openInVscode"),onClick:v=>E(y.source)},[...g[2]||(g[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,qh)):ce("",!0)])]))),128))])):(O(),D("div",Yh,N(S(n)("inactive.decisionChainEmpty")),1))]),w("div",Jh,[w("div",Xh,[w("span",null,N(S(n)("detail.configChain")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(c.value.length),1)]),_:1})]),c.value.length>0?(O(),D("div",Qh,[(O(!0),D(ve,null,Xe(c.value,y=>(O(),D("div",{key:`config-${y.order}-${y.file}`,class:"flex flex-wrap items-center gap-2"},[w("span",Zh,N(y.order),1),w("span",eb,N(y.file),1),y.disabled?(O(),pt(Me,{key:0,tone:"strong",size:"xxs",caps:!1},{default:ne(()=>[me(N(S(n)("configPanel.statusDisabled")),1)]),_:1})):ce("",!0)]))),128))])):(O(),D("div",tb,N(S(n)("detail.configChainEmpty")),1))]),w("div",nb,[w("div",sb,[w("span",null,N(S(n)("inactive.effectiveConfig")),1),K(Me,{tone:"chip",size:"xxs",caps:!1},{default:ne(()=>[me(N(f.value.length),1)]),_:1})]),f.value.length>0?(O(),D("div",rb,[(O(!0),D(ve,null,Xe(f.value,y=>(O(),D("div",{key:`config-entry-${y.key}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[w("div",ob,N(y.label),1),w("div",lb,[w("code",ib,N(y.value),1)])]))),128))])):(O(),D("div",ab,N(S(n)("inactive.effectiveConfigEmpty")),1))]),w("div",cb,[w("div",ub,N(S(n)("inactive.routeSummary")),1),w("div",db,[t.selected.method?(O(),D("div",fb,[w("span",pb,N(S(n)("inactive.summaryMethod")),1),w("span",null,N(t.selected.method),1)])):ce("",!0),t.selected.url?(O(),D("div",gb,[w("span",mb,N(S(n)("inactive.summaryPath")),1),w("span",null,N(t.selected.url),1)])):ce("",!0),w("div",hb,[w("span",bb,N(S(n)("inactive.summaryFile")),1),w("span",_b,N(t.selected.file),1)])])])]))}}),vb={key:4,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},yb={class:"text-xl font-display text-pg-text-strong"},xb={class:"text-sm"},wb=$e({__name:"PlaygroundContent",props:{selected:{},selectedDisabled:{},selectedIgnored:{},selectedConfig:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},routeMode:{},enabledMode:{},disabledMode:{},configImpactRoutes:{},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>n.routeMode==="active"&&n.enabledMode==="api"),l=H(()=>!!n.selectedConfig),i=H(()=>n.routeMode==="disabled"&&n.disabledMode==="api"),a=H(()=>n.routeMode==="ignored"),c=H(()=>n.selectedConfig?n.configStatusMap.get(n.selectedConfig.file)??"enabled":"enabled"),u=H(()=>n.routeMode==="disabled"?r("states.disabledTitle"):n.routeMode==="ignored"?r("states.ignoredTitle"):r("states.configTitle")),f=H(()=>n.routeMode==="disabled"?r("states.disabledHint"):n.routeMode==="ignored"?r("states.ignoredHint"):r("states.configHint")),h=H({get:()=>n.queryText,set:y=>s("update:queryText",y)}),b=H({get:()=>n.headersText,set:y=>s("update:headersText",y)}),k=H({get:()=>n.bodyText,set:y=>s("update:bodyText",y)}),E=H(()=>n.workspaceRoot??"");function P(y,_){s("update:param-value",y,_)}function g(){s("run")}return(y,_)=>o.value?(O(),pt(Rh,{key:0,queryText:h.value,"onUpdate:queryText":_[0]||(_[0]=v=>h.value=v),headersText:b.value,"onUpdate:headersText":_[1]||(_[1]=v=>b.value=v),bodyText:k.value,"onUpdate:bodyText":_[2]||(_[2]=v=>k.value=v),selected:n.selected,"request-url":n.requestUrl,"workspace-root":E.value,"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime,"is-sw-registering":n.isSwRegistering,"route-params":n.routeParams,"param-values":n.paramValues,"missing-params":n.missingParams,"missing-pulse":n.missingPulse,"config-status-map":n.configStatusMap,"onUpdate:paramValue":P,onRun:g},null,8,["queryText","headersText","bodyText","selected","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","config-status-map"])):i.value&&n.selectedDisabled?(O(),pt(ql,{key:1,mode:"disabled",selected:n.selectedDisabled,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):a.value&&n.selectedIgnored?(O(),pt(ql,{key:2,mode:"ignored",selected:n.selectedIgnored,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):n.selectedConfig&&l.value?(O(),pt(_m,{key:3,selected:n.selectedConfig,impacted:n.configImpactRoutes,"is-disabled":c.value==="disabled","workspace-root":n.workspaceRoot},null,8,["selected","impacted","is-disabled","workspace-root"])):(O(),D("div",vb,[w("p",yb,N(u.value),1),w("p",xb,N(f.value),1)]))}}),Qa="mokup.playground.theme";function Za(){try{const e=localStorage.getItem(Qa);if(e==="system"||e==="light"||e==="dark")return e}catch{}return null}function kb(e){try{localStorage.setItem(Qa,e)}catch{}}function Tb(e){return e==="system"?"light":e==="light"?"dark":"system"}function ec(e,t){return e==="dark"?"dark":e==="light"?"light":t?"dark":"light"}function Ns(e,t){const n=ec(e,t);return document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,n}function Cb(){const e=Za()??"system",t=window.matchMedia("(prefers-color-scheme: dark)").matches;return Ns(e,t),e}function Sb(){const e=te("system"),t=te(!1);let n=null;const s=H(()=>ec(e.value,t.value)),r=()=>{n&&(t.value=n.matches,e.value==="system"&&Ns(e.value,t.value))};function o(i){e.value=i,kb(i),Ns(i,t.value)}function l(){o(Tb(e.value))}return Pn(()=>{n=window.matchMedia("(prefers-color-scheme: dark)"),t.value=n.matches,e.value=Za()??"system",Ns(e.value,t.value),n.addEventListener("change",r)}),In(()=>{n?.removeEventListener("change",r),n=null}),{themeMode:e,effectiveTheme:s,setThemeMode:o,cycleThemeMode:l}}const Eb={header:{title:"Mock Playground",subtitle:"Inspect mock endpoints, craft requests, and validate responses without leaving the dev server.",refresh:"Refresh",routes:"{count} routes",calls:"{count} calls",languageToggle:"Language",themeToggle:"Theme"},controls:{more:"More"},theme:{system:"System",light:"Light",dark:"Dark"},filters:{search:"Search",base:"Base",searchPlaceholder:"Filter by method, path, or file"},disabled:{active:"Active ({count})",disabled:"Disabled ({count})",ignored:"Ignored ({count})",reason:{disabled:"Disabled","disabled-dir":"Disabled (dir)","ignore-prefix":"Ignore prefix",include:"Include filter",exclude:"Exclude filter",unknown:"Unknown"}},enabled:{api:"API ({count})",config:"Config ({count})",configLabel:"Config"},ignored:{reason:{unsupported:"Unsupported","invalid-route":"Not a route",unknown:"Unknown"}},tabs:{overview:"Overview"},tree:{file:"File",route:"Route"},states:{loadingRoutes:"Loading routes...",emptyRoutes:"No routes matched.",emptyDisabledRoutes:"No disabled routes matched.",emptyIgnoredRoutes:"No ignored files matched.",emptyDisabledConfigFiles:"No disabled config files matched.",emptyConfigFiles:"No config files matched.",disabledTitle:"Disabled routes",disabledHint:"Disabled routes are not executable.",ignoredTitle:"Ignored files",ignoredHint:"Ignored files are not mock routes.",configTitle:"Config files",configHint:"Config files are not mock routes."},detail:{selectTitle:"Select a route",selectHint:"Choose a route on the left to run a request.",requestLabel:"Request",responseLabel:"Response",run:"Run",params:"Params",badgeRequired:"Required",badgeJson:"JSON",emptyParams:"No params for this route.",query:"Query (JSON)",headers:"Headers (JSON)",body:"Body",bodyType:"Body type",bodyTypeJson:"JSON",bodyTypeText:"Text",bodyTypeForm:"Form",bodyTypeMultipart:"Multipart",bodyTypeBase64:"Base64",middlewares:"Middlewares",middlewarePre:"Pre",middlewareNormal:"Normal",middlewarePost:"Post",configChain:"Config chain",configChainEmpty:"No config files matched.",openInVscode:"Open in VSCode",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"raw text",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",paramPlaceholder:"value",paramPlaceholderCatchall:"path/segments"},response:{idle:"Idle",empty:"No response yet.",waiting:"Waiting for response...",loading:"Loading...",error:"Error",emptyPayload:"[empty response]"},errors:{queryJson:"Query JSON error: {message}",headersJson:"Headers JSON error: {message}",bodyJson:"Body JSON error: {message}",bodyBase64:"Body base64 error: {message}",routeParams:"Missing route params: {params}"},configPanel:{title:"Config scope",scope:"Scope",impacted:"Impacted routes",active:"Active",disabled:"Disabled",ignored:"Ignored",emptyImpacts:"No routes matched.",statusEnabled:"Enabled",statusDisabled:"Disabled"},decision:{"config.enabled":"Config enabled","ignore-prefix":"Ignore prefix","file.supported":"Supported file","filter.exclude":"Exclude filter","filter.include":"Include filter","route.derived":"Route derived","rule.enabled":"Rule enabled"},inactive:{titleDisabled:"Disabled route",titleIgnored:"Ignored file",decisionChain:"Decision chain",decisionChainEmpty:"No decision chain recorded.",effectiveConfig:"Effective config",effectiveConfigEmpty:"No config overrides.",routeSummary:"Route summary",pass:"Pass",fail:"Fail",summaryMethod:"Method",summaryPath:"Path",summaryFile:"File",config:{enabled:"Enabled",status:"Status",delay:"Delay",ignorePrefix:"Ignore prefix",include:"Include",exclude:"Exclude",headers:"Headers"}}},Rb={header:{title:"接口调试台",subtitle:"查看 Mock 接口、构造请求并验证响应,无需离开开发服务器。",refresh:"刷新",routes:"{count} 条接口",calls:"已调用 {count} 次",languageToggle:"语言",themeToggle:"主题"},controls:{more:"更多"},theme:{system:"跟随系统",light:"亮色",dark:"暗色"},filters:{search:"搜索",base:"基路径",searchPlaceholder:"按方法、路径或文件过滤"},disabled:{active:"启用 ({count})",disabled:"禁用 ({count})",ignored:"忽略 ({count})",reason:{disabled:"已禁用","disabled-dir":"目录禁用","ignore-prefix":"前缀忽略",include:"未命中包含",exclude:"命中排除",unknown:"未知"}},enabled:{api:"接口 ({count})",config:"配置 ({count})",configLabel:"配置"},ignored:{reason:{unsupported:"不支持的文件","invalid-route":"非路由文件",unknown:"未知"}},tabs:{overview:"总览"},tree:{file:"文件",route:"路由"},states:{loadingRoutes:"正在加载接口...",emptyRoutes:"没有匹配的接口。",emptyDisabledRoutes:"没有匹配的禁用接口。",emptyIgnoredRoutes:"没有匹配的忽略文件。",emptyDisabledConfigFiles:"没有匹配的禁用配置文件。",emptyConfigFiles:"没有匹配的配置文件。",disabledTitle:"禁用接口",disabledHint:"禁用接口无法调试。",ignoredTitle:"忽略的文件",ignoredHint:"忽略列表中的文件不属于接口。",configTitle:"配置文件",configHint:"配置文件不属于接口。"},detail:{selectTitle:"请选择接口",selectHint:"从左侧选择一个接口开始调试。",requestLabel:"请求",responseLabel:"响应",run:"发送",params:"路径参数",badgeRequired:"必填",badgeJson:"JSON",emptyParams:"该接口没有路径参数。",query:"查询参数 (JSON)",headers:"请求头 (JSON)",body:"请求体",bodyType:"请求体类型",bodyTypeJson:"JSON",bodyTypeText:"文本",bodyTypeForm:"表单",bodyTypeMultipart:"多段表单",bodyTypeBase64:"Base64",middlewares:"中间件",middlewarePre:"前置",middlewareNormal:"普通",middlewarePost:"后置",configChain:"配置链路",configChainEmpty:"当前接口未匹配配置文件。",openInVscode:"在 VSCode 中打开",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"原始文本",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",paramPlaceholder:"填写值",paramPlaceholderCatchall:"路径片段"},response:{idle:"空闲",empty:"暂无响应。",waiting:"等待响应...",loading:"请求中...",error:"错误",emptyPayload:"[空响应]"},errors:{queryJson:"查询 JSON 错误:{message}",headersJson:"请求头 JSON 错误:{message}",bodyJson:"请求体 JSON 错误:{message}",bodyBase64:"请求体 Base64 错误:{message}",routeParams:"缺少路径参数:{params}"},configPanel:{title:"配置范围",scope:"影响范围",impacted:"影响接口",active:"生效",disabled:"禁用",ignored:"忽略",emptyImpacts:"没有匹配的接口。",statusEnabled:"启用",statusDisabled:"禁用"},decision:{"config.enabled":"配置启用","ignore-prefix":"忽略前缀","file.supported":"支持文件","filter.exclude":"排除过滤","filter.include":"包含过滤","route.derived":"路由解析","rule.enabled":"规则启用"},inactive:{titleDisabled:"禁用接口",titleIgnored:"忽略文件",decisionChain:"判定链路",decisionChainEmpty:"暂无判定链路。",effectiveConfig:"生效配置",effectiveConfigEmpty:"暂无配置覆盖。",routeSummary:"接口概览",pass:"通过",fail:"未通过",summaryMethod:"方法",summaryPath:"路径",summaryFile:"文件",config:{enabled:"启用",status:"状态码",delay:"延迟",ignorePrefix:"忽略前缀",include:"包含",exclude:"排除",headers:"响应头"}}},tc="mokup.playground.locale",Pb={"en-US":Eb,"zh-CN":Rb};function Ib(){try{const e=localStorage.getItem(tc);if(e==="en-US"||e==="zh-CN")return e}catch{}return null}function Mb(e){try{localStorage.setItem(tc,e)}catch{}}const Lb=Tp({legacy:!1,locale:Ib()??"en-US",fallbackLocale:"en-US",messages:Pb}),$b={class:"flex flex-none flex-wrap items-center justify-between gap-2 rounded-2xl border px-3 py-2 text-[0.55rem] uppercase tracking-[0.25em] shadow-sm border-pg-border bg-pg-surface-card text-pg-text-soft"},Ob={class:"flex flex-wrap items-center gap-2"},Ab={class:"flex flex-wrap items-center gap-2"},Nb=$e({__name:"PlaygroundHeader",props:{visibleCount:{},totalCount:{}},emits:["refresh"],setup(e,{emit:t}){const n=t,{locale:s,t:r}=Je(),{themeMode:o,effectiveTheme:l,cycleThemeMode:i}=Sb(),a=H(()=>l.value==="dark"?"i-[carbon--moon]":"i-[carbon--sun]"),c=H(()=>r(`theme.${o.value}`)),u=H(()=>s.value==="zh-CN"?"中文":"EN");function f(){const b=s.value==="en-US"?"zh-CN":"en-US";s.value=b,Mb(b)}function h(){n("refresh")}return(b,k)=>(O(),D("div",$b,[w("div",Ob,[K(Me,{tone:"strong",size:"xs"},{default:ne(()=>[k[0]||(k[0]=w("span",{class:"i-[carbon--map] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("header.routes",{count:e.visibleCount})),1)]),_:1}),K(Me,{tone:"strong",size:"xs"},{default:ne(()=>[k[1]||(k[1]=w("span",{class:"i-[carbon--activity] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("header.calls",{count:e.totalCount})),1)]),_:1})]),w("div",Ab,[K(qe,{size:"xs",title:S(r)("header.languageToggle"),onClick:f},{default:ne(()=>[k[2]||(k[2]=w("span",{class:"i-[carbon--language] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(u.value),1)]),_:1},8,["title"]),K(qe,{size:"xs",title:S(r)("header.themeToggle"),onClick:S(i)},{default:ne(()=>[w("span",{class:Ae([a.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),w("span",null,N(c.value),1)]),_:1},8,["title","onClick"]),K(qe,{size:"xs",onClick:h},{default:ne(()=>[k[3]||(k[3]=w("span",{class:"i-[carbon--rotate] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("header.refresh")),1)]),_:1})])]))}}),Fb={class:"flex flex-col gap-1","data-testid":"playground-tree"},Db=["title","onClick"],Ub={class:"flex min-w-0 flex-1 flex-col gap-1"},Vb=["aria-label","onClick"],Wb=$e({__name:"RouteTree",props:{rows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select"],setup(e,{emit:t}){const n=e,s=t,r=u=>`method-${u.toLowerCase()}`;function o(u){return Mn(u.file,n.workspaceRoot)}function l(u){fr(u.file,n.workspaceRoot)}function i(u){if(u.kind==="folder"){s("toggle",u.id);return}s("select",u)}function a(u){return n.getRouteCount?n.getRouteCount(u):0}function c(u){return`${u*12}px`}return(u,f)=>(O(),D("div",Fb,[(O(!0),D(ve,null,Xe(e.rows,h=>(O(),D("div",{key:h.id,class:Ae(["group flex items-center gap-2 rounded-lg border border-transparent px-2 py-1 text-left transition text-pg-text hover:bg-pg-hover",h.selected?"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm":""]),"data-testid":"playground-tree-row"},[w("button",{class:"flex min-w-0 flex-1 items-start gap-2 text-left",type:"button",title:h.title,onClick:b=>i(h)},[w("div",Ub,[w("div",{class:"flex items-center gap-2",style:cs({paddingLeft:c(h.depth)})},[w("span",{class:Ae(["flex h-3.5 w-3.5 items-center justify-center",h.selected?"text-pg-on-accent-soft":"text-pg-text-muted"])},[h.kind==="folder"?(O(),D("span",{key:0,class:Ae([h.expanded?"i-[carbon--chevron-down]":"i-[carbon--chevron-right]","h-3.5 w-3.5"]),"aria-hidden":"true"},null,2)):ce("",!0)],2),h.kind==="route"&&h.route?(O(),D("span",{key:0,class:Ae(["rounded-full px-1.5 py-0.5 text-[0.5rem] uppercase tracking-[0.2em]",r(h.route.method)])},N(h.route.method),3)):ce("",!0),w("span",{class:Ae(["text-[0.78rem]",h.kind==="folder"?"font-semibold":"font-medium"])},N(h.label),3)],4)]),h.kind==="route"&&h.route&&a(h.route)>0?(O(),pt(Me,{key:0,tone:"chip",size:"xxs",caps:!1,class:"ml-auto"},{default:ne(()=>[me(N(a(h.route)),1)]),_:2},1024)):ce("",!0)],8,Db),h.kind==="route"&&h.route&&o(h.route)?(O(),D("button",{key:0,class:Ae(["flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",h.selected?"text-pg-on-accent-soft":""]),type:"button","aria-label":`Open ${h.route.file} in VS Code`,onClick:b=>l(h.route)},[...f[0]||(f[0]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],10,Vb)):ce("",!0)],2))),128))]))}}),jb={class:"flex-1 min-h-0 overflow-auto"},Hb={key:0,class:"rounded-2xl border px-4 py-3 text-sm border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"},Gb={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Kb={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Bb={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},zb={key:2,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},qb={key:3,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Yb={key:4,class:"flex flex-col gap-2"},Jb=["onClick"],Xb={class:"flex flex-wrap items-center justify-between gap-2"},Qb={class:"flex flex-col gap-1"},Zb={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},e_={key:0,class:"text-[0.75rem] text-pg-text-subtle"},t_={class:"flex items-center gap-2"},n_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},s_=["aria-label","title","onClick"],r_={key:5,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},o_={key:6,class:"flex flex-col gap-2"},l_=["onClick"],i_={class:"flex flex-wrap items-center justify-between gap-2"},a_={class:"flex flex-col gap-1"},c_={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},u_={class:"flex items-center gap-2"},d_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},f_=["aria-label","title","onClick"],p_={key:7,class:"flex flex-col gap-2"},g_=["onClick"],m_={class:"flex flex-wrap items-center justify-between gap-2"},h_={class:"flex flex-col gap-1"},b_={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},__={class:"flex items-center gap-2"},v_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},y_=["aria-label","title","onClick"],x_={key:8,class:"flex flex-col gap-2"},w_=["onClick"],k_={class:"flex flex-wrap items-center justify-between gap-2"},T_={class:"flex flex-col gap-1"},C_={class:"text-[0.7rem] tracking-[0.18em] text-pg-text-muted"},S_={class:"flex items-center gap-2"},E_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},R_=["aria-label","title","onClick"],Ms="relative bg-pg-accent/12 text-pg-text-strong font-semibold shadow-[inset_4px_0_0_0_var(--color-pg-accent)]",P_=$e({__name:"PlaygroundSidebarBody",props:{routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H(()=>{const g={rows:n.treeRows};return n.workspaceRoot&&n.workspaceRoot.trim()&&(g.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(g.getRouteCount=n.getRouteCount),g});function l(g){return r(`disabled.reason.${g??"unknown"}`)}function i(g){return r(`ignored.reason.${g??"unknown"}`)}function a(g){return g?g.toLowerCase():""}function c(g){return g.toLowerCase()}function u(g){return Mn(g,n.workspaceRoot)}function f(g){fr(g,n.workspaceRoot)}function h(g){g.route&&s("select-route",g.route)}function b(g){return n.selectedConfig?.file===g.file}function k(g){if(!g)return"";const y=(g.method??"").toUpperCase(),_=g.url??"";return`${g.file}|${g.reason}|${y}|${_}`}function E(g){const y=k(n.selectedDisabled);return y?k(g)===y:!1}function P(g){return n.selectedIgnored?.file===g.file&&n.selectedIgnored?.reason===g.reason}return(g,y)=>(O(),D("div",jb,[n.error?(O(),D("div",Hb,N(n.error),1)):n.loading?(O(),D("div",Gb,N(S(r)("states.loadingRoutes")),1)):(O(),D(ve,{key:2},[n.routeMode==="disabled"&&n.disabledMode==="api"&&!n.disabledFiltered.length?(O(),D("div",Kb,N(S(r)("states.emptyDisabledRoutes")),1)):n.routeMode==="ignored"&&!n.ignoredFiltered.length?(O(),D("div",Bb,N(S(r)("states.emptyIgnoredRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="api"&&!n.filtered.length?(O(),D("div",zb,N(S(r)("states.emptyRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="config"&&!n.configFiltered.length?(O(),D("div",qb,N(S(r)("states.emptyConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="api"?(O(),D("div",Yb,[(O(!0),D(ve,null,Xe(n.disabledFiltered,_=>(O(),D("button",{key:`${_.file}-${_.reason}-${_.method??""}-${_.url??""}`,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",E(_)?Ms:""]),type:"button",onClick:v=>s("select-disabled-route",_)},[w("div",Xb,[w("div",Qb,[w("span",Zb,N(_.method&&_.url?`${_.method} ${a(_.url)}`:a(_.url)||_.file),1),_.method&&_.url?(O(),D("span",e_,N(_.file),1)):ce("",!0)]),w("div",t_,[E(_)?(O(),D("span",n_,[...y[1]||(y[1]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(l(_.reason)),1)]),_:2},1024),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[2]||(y[2]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,s_)):ce("",!0)])])],10,Jb))),128))])):n.routeMode==="disabled"&&n.disabledMode==="config"&&!n.disabledConfigFiltered.length?(O(),D("div",r_,N(S(r)("states.emptyDisabledConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="config"?(O(),D("div",o_,[(O(!0),D(ve,null,Xe(n.disabledConfigFiltered,_=>(O(),D("button",{key:_.file,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",b(_)?Ms:""]),type:"button",onClick:v=>s("select-config",_)},[w("div",i_,[w("div",a_,[w("span",c_,N(c(_.file)),1)]),w("div",u_,[b(_)?(O(),D("span",d_,[...y[3]||(y[3]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(S(r)("enabled.configLabel")),1)]),_:1}),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[4]||(y[4]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,f_)):ce("",!0)])])],10,l_))),128))])):n.routeMode==="ignored"?(O(),D("div",p_,[(O(!0),D(ve,null,Xe(n.ignoredFiltered,_=>(O(),D("button",{key:`${_.file}-${_.reason}`,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",P(_)?Ms:""]),type:"button",onClick:v=>s("select-ignored-route",_)},[w("div",m_,[w("div",h_,[w("span",b_,N(_.file),1)]),w("div",__,[P(_)?(O(),D("span",v_,[...y[5]||(y[5]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(i(_.reason)),1)]),_:2},1024),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[6]||(y[6]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,y_)):ce("",!0)])])],10,g_))),128))])):n.routeMode==="active"&&n.enabledMode==="config"?(O(),D("div",x_,[(O(!0),D(ve,null,Xe(n.configFiltered,_=>(O(),D("button",{key:_.file,class:Ae(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",b(_)?Ms:""]),type:"button",onClick:v=>s("select-config",_)},[w("div",k_,[w("div",T_,[w("span",C_,N(c(_.file)),1)]),w("div",S_,[b(_)?(O(),D("span",E_,[...y[7]||(y[7]=[w("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):ce("",!0),K(Me,{tone:"strong",size:"sm",tracking:"tight"},{default:ne(()=>[me(N(S(r)("enabled.configLabel")),1)]),_:1}),u(_.file)?(O(),D("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${_.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:ks(v=>f(_.file),["stop"])},[...y[8]||(y[8]=[w("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,R_)):ce("",!0)])])],10,w_))),128))])):(O(),pt(Wb,mn({key:9},o.value,{onToggle:y[0]||(y[0]=_=>s("toggle",_)),onSelect:h}),null,16))],64))]))}}),I_=$e({__name:"PlaygroundFilters",props:{search:{},basePath:{},showBase:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){const n=e,s=t;function r(l){const i=l.target;s("update:search",i?.value??"")}const{t:o}=Je();return(l,i)=>(O(),D("section",{class:Ae(["grid",n.compact?"gap-2":"gap-3"])},[K(dn,{label:S(o)("filters.search"),dense:n.compact},{default:ne(()=>[K(as,{value:e.search,type:"search",dense:n.compact,placeholder:S(o)("filters.searchPlaceholder"),"data-testid":"playground-search",onInput:r},null,8,["value","dense","placeholder"])]),_:1},8,["label","dense"]),n.showBase?(O(),pt(dn,{key:0,label:S(o)("filters.base"),dense:n.compact},{default:ne(()=>[K(as,{value:e.basePath,readonly:"",dense:n.compact},null,8,["value","dense"])]),_:1},8,["label","dense"])):ce("",!0)],2))}}),M_={class:"flex flex-wrap items-center gap-2"},L_=$e({__name:"PlaygroundTabs",props:{groups:{},activeGroup:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:s}=Je();return(r,o)=>(O(),D("section",M_,[K(qe,{size:"md",active:e.activeGroup==="all",onClick:o[0]||(o[0]=l=>n("select","all"))},{default:ne(()=>[me(N(S(s)("tabs.overview")),1)]),_:1},8,["active"]),(O(!0),D(ve,null,Xe(e.groups,l=>(O(),pt(qe,{key:l.key,size:"md",active:e.activeGroup===l.key,onClick:i=>n("select",l.key)},{default:ne(()=>[me(N(l.label),1)]),_:2},1032,["active","onClick"]))),128))]))}}),$_={class:"flex items-center gap-2"},O_=$e({__name:"TreeModeToggle",props:{treeMode:{}},emits:["update:treeMode"],setup(e,{emit:t}){const n=t;function s(o){n("update:treeMode",o)}const{t:r}=Je();return(o,l)=>(O(),D("div",$_,[K(qe,{size:"sm",active:e.treeMode==="file",onClick:l[0]||(l[0]=i=>s("file"))},{default:ne(()=>[l[2]||(l[2]=w("span",{class:"i-[carbon--document] h-4 w-4","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("tree.file")),1)]),_:1},8,["active"]),K(qe,{size:"sm",active:e.treeMode==="route",onClick:l[1]||(l[1]=i=>s("route"))},{default:ne(()=>[l[3]||(l[3]=w("span",{class:"i-[carbon--link] h-4 w-4","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("tree.route")),1)]),_:1},8,["active"])]))}}),A_={class:"relative"},N_={class:"flex items-end gap-2"},F_={class:"mt-2 flex flex-wrap items-center gap-2"},D_={key:0,class:"mt-2 flex flex-wrap items-center gap-2"},U_={key:1,class:"mt-2 flex flex-wrap items-center gap-2"},V_={class:"grid gap-3"},W_=$e({__name:"PlaygroundSidebarHeader",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Je(),o=H({get:()=>n.search,set:h=>s("update:search",h)}),l=H(()=>n.basePath||"/"),i=te(!1),a=te(null),c=te(null);function u(){i.value=!i.value}function f(h){if(!i.value)return;const b=h.target;if(!b)return;const k=a.value?.$el;c.value?.contains(b)||k?.contains(b)||(i.value=!1)}return Pn(()=>{document.addEventListener("pointerdown",f)}),In(()=>{document.removeEventListener("pointerdown",f)}),(h,b)=>(O(),D("div",A_,[w("div",N_,[K(I_,{search:o.value,"onUpdate:search":b[0]||(b[0]=k=>o.value=k),"base-path":l.value,"show-base":!1,compact:!0,class:"flex-1"},null,8,["search","base-path"]),K(qe,{ref_key:"moreButtonRef",ref:a,size:"sm",class:"h-9","aria-expanded":i.value,"aria-haspopup":"true","aria-controls":"playground-more-panel",onClick:u},{default:ne(()=>[b[10]||(b[10]=w("span",{class:"i-[carbon--settings-adjust] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),w("span",null,N(S(r)("controls.more")),1)]),_:1},8,["aria-expanded"])]),w("div",F_,[K(qe,{size:"md",active:n.routeMode==="active",onClick:b[1]||(b[1]=k=>s("set-route-mode","active"))},{default:ne(()=>[me(N(S(r)("disabled.active",{count:n.activeTotal})),1)]),_:1},8,["active"]),K(qe,{size:"md",active:n.routeMode==="disabled",onClick:b[2]||(b[2]=k=>s("set-route-mode","disabled"))},{default:ne(()=>[me(N(S(r)("disabled.disabled",{count:n.disabledTotal})),1)]),_:1},8,["active"]),K(qe,{size:"md",active:n.routeMode==="ignored",onClick:b[3]||(b[3]=k=>s("set-route-mode","ignored"))},{default:ne(()=>[me(N(S(r)("disabled.ignored",{count:n.ignoredTotal})),1)]),_:1},8,["active"])]),n.routeMode==="active"?(O(),D("div",D_,[K(qe,{size:"sm",active:n.enabledMode==="api",onClick:b[4]||(b[4]=k=>s("set-enabled-mode","api"))},{default:ne(()=>[me(N(S(r)("enabled.api",{count:n.apiTotal})),1)]),_:1},8,["active"]),K(qe,{size:"sm",active:n.enabledMode==="config",onClick:b[5]||(b[5]=k=>s("set-enabled-mode","config"))},{default:ne(()=>[me(N(S(r)("enabled.config",{count:n.configTotal})),1)]),_:1},8,["active"])])):n.routeMode==="disabled"?(O(),D("div",U_,[K(qe,{size:"sm",active:n.disabledMode==="api",onClick:b[6]||(b[6]=k=>s("set-disabled-mode","api"))},{default:ne(()=>[me(N(S(r)("enabled.api",{count:n.disabledApiTotal})),1)]),_:1},8,["active"]),K(qe,{size:"sm",active:n.disabledMode==="config",onClick:b[7]||(b[7]=k=>s("set-disabled-mode","config"))},{default:ne(()=>[me(N(S(r)("enabled.config",{count:n.disabledConfigTotal})),1)]),_:1},8,["active"])])):ce("",!0),i.value?(O(),D("div",{key:2,id:"playground-more-panel",ref_key:"morePanelRef",ref:c,class:"absolute left-0 right-0 z-30 mt-2 rounded-2xl border p-3 shadow-xl border-pg-border bg-pg-surface-panel"},[w("div",V_,[K(dn,{label:S(r)("filters.base"),dense:""},{default:ne(()=>[K(as,{value:l.value,readonly:"",dense:""},null,8,["value"])]),_:1},8,["label"]),K(L_,{groups:n.groups,"active-group":n.activeGroup,onSelect:b[8]||(b[8]=k=>s("select-group",k))},null,8,["groups","active-group"]),K(O_,{"tree-mode":n.treeMode,"onUpdate:treeMode":b[9]||(b[9]=k=>s("update:treeMode",k))},null,8,["tree-mode"])])],512)):ce("",!0)]))}}),j_={class:"flex min-h-0 w-full max-w-none flex-col gap-3 overflow-hidden border-b p-3 border-pg-border lg:w-[var(--left-width)] lg:min-w-[240px] lg:max-w-[560px] lg:flex-none lg:border-b-0 lg:border-r"},H_=$e({__name:"PlaygroundSidebar",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode","toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t;return(r,o)=>(O(),D("aside",j_,[K(W_,{search:n.search,"base-path":n.basePath,groups:n.groups,"active-group":n.activeGroup,"tree-mode":n.treeMode,"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"active-total":n.activeTotal,"api-total":n.apiTotal,"disabled-total":n.disabledTotal,"ignored-total":n.ignoredTotal,"config-total":n.configTotal,"disabled-api-total":n.disabledApiTotal,"disabled-config-total":n.disabledConfigTotal,"onUpdate:search":o[0]||(o[0]=l=>s("update:search",l)),onSelectGroup:o[1]||(o[1]=l=>s("select-group",l)),onSetRouteMode:o[2]||(o[2]=l=>s("set-route-mode",l)),onSetEnabledMode:o[3]||(o[3]=l=>s("set-enabled-mode",l)),onSetDisabledMode:o[4]||(o[4]=l=>s("set-disabled-mode",l)),"onUpdate:treeMode":o[5]||(o[5]=l=>s("update:treeMode",l))},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total"]),K(P_,{"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"selected-config":n.selectedConfig,"selected-disabled":n.selectedDisabled,"selected-ignored":n.selectedIgnored,error:n.error,loading:n.loading,filtered:n.filtered,"disabled-filtered":n.disabledFiltered,"ignored-filtered":n.ignoredFiltered,"config-filtered":n.configFiltered,"disabled-config-filtered":n.disabledConfigFiltered,"tree-rows":n.treeRows,"workspace-root":n.workspaceRoot,"get-route-count":n.getRouteCount,onToggle:o[6]||(o[6]=l=>s("toggle",l)),onSelectRoute:o[7]||(o[7]=l=>s("select-route",l)),onSelectDisabledRoute:o[8]||(o[8]=l=>s("select-disabled-route",l)),onSelectIgnoredRoute:o[9]||(o[9]=l=>s("select-ignored-route",l)),onSelectConfig:o[10]||(o[10]=l=>s("select-config",l))},null,8,["route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count"])]))}});function G_(e){const t=H(()=>e.routeMode.value==="disabled"),n=H(()=>e.routeMode.value==="ignored"),s=H(()=>e.routes.value.length+e.configCount.value),r=H(()=>e.routes.value.length),o=H(()=>e.disabledCount.value+e.disabledConfigCount.value),l=H(()=>e.ignoredCount.value),i=H(()=>e.configCount.value),a=H(()=>e.disabledConfigCount.value),c=H(()=>e.disabledCount.value),u=H(()=>t.value?e.disabledMode.value==="config"?e.disabledConfigFiltered.value.length:e.disabledFiltered.value.length:n.value?e.ignoredFiltered.value.length:e.enabledMode.value==="config"?e.configFiltered.value.length:e.routeCount.value);return{activeTotal:s,apiTotal:r,disabledTotal:o,ignoredTotal:l,configTotal:i,disabledConfigTotal:a,disabledApiTotal:c,visibleCount:u}}function K_(e){function t(){const c=e.lastSelectedKey.value;return c?e.filtered.value.find(u=>e.getRouteKey(u)===c)??null:null}function n(c){if(e.routeMode.value=c,c!=="active"){e.selectRoute(null),e.selectConfig(null),c==="disabled"&&e.disabledMode.value==="api"&&(e.selectDisabledRoute(e.disabledFiltered.value[0]??null),e.selectIgnoredRoute(null)),c==="ignored"&&(e.selectIgnoredRoute(e.ignoredFiltered.value[0]??null),e.selectDisabledRoute(null));return}if(e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.enabledMode.value==="api"&&!e.selected.value){const u=t();u&&e.selectRoute(u)}e.enabledMode.value!=="config"&&e.selectConfig(null)}function s(c){if(e.enabledMode.value=c,c==="config"){e.selectRoute(null);return}if(e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),!e.selected.value){const u=t();u&&e.selectRoute(u)}}function r(c){if(e.disabledMode.value=c,c==="config"){e.selectDisabledRoute(null);return}e.selectConfig(null),e.selectedDisabled.value||e.selectDisabledRoute(e.disabledFiltered.value[0]??null)}function o(c){e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectRoute(c)}function l(c){e.selectRoute(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectConfig(c)}function i(c){e.selectRoute(null),e.selectConfig(null),e.selectIgnoredRoute(null),e.selectDisabledRoute(c)}function a(c){e.selectRoute(null),e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(c)}return{setRouteMode:n,setEnabledMode:s,setDisabledMode:r,handleSelectRoute:o,handleSelectConfig:l,handleSelectDisabled:i,handleSelectIgnored:a}}new Set(".\\+*[^]$()");const Mr=/^[\w-]+$/,B_=/^\[([^\]/]+)\]$/,z_=/^\[\.\.\.([^\]/]+)\]$/,q_=/^\[\[\.\.\.([^\]/]+)\]\]$/,Y_=/^\([^)]+\)$/;function J_(e){switch(e.type){case"static":return 4;case"param":return 3;case"catchall":return 2;case"optional-catchall":return 1;default:return 0}}function X_(e){return e.map(J_)}function nc(e){const n=(e.split("?")[0]??"").split("#")[0]??"";let s=n.startsWith("/")?n:`/${n}`;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s}function Q_(e){return nc(e).split("/").filter(Boolean)}function no(e){const t=[],n=[],s=nc(e),r=Q_(s),o=[],l=new Set;for(let i=0;i<r.length;i+=1){const a=r[i];if(!a)continue;if(Y_.test(a)){t.push(`Route groups are not supported: ${a}`);continue}const c=a.match(q_);if(c){const h=c[1];if(!h){t.push(`Invalid optional catch-all param name "${a}"`);continue}if(!Mr.test(h)){t.push(`Invalid optional catch-all param name "${h}"`);continue}if(i!==r.length-1){t.push(`Optional catch-all "${a}" must be the last segment`);continue}l.has(h)&&n.push(`Duplicate param name "${h}"`),l.add(h),o.push({type:"optional-catchall",name:h});continue}const u=a.match(z_);if(u){const h=u[1];if(!h){t.push(`Invalid catch-all param name "${a}"`);continue}if(!Mr.test(h)){t.push(`Invalid catch-all param name "${h}"`);continue}if(i!==r.length-1){t.push(`Catch-all "${a}" must be the last segment`);continue}l.has(h)&&n.push(`Duplicate param name "${h}"`),l.add(h),o.push({type:"catchall",name:h});continue}const f=a.match(B_);if(f){const h=f[1];if(!h){t.push(`Invalid param name "${a}"`);continue}if(!Mr.test(h)){t.push(`Invalid param name "${h}"`);continue}l.has(h)&&n.push(`Duplicate param name "${h}"`),l.add(h),o.push({type:"param",name:h});continue}if(a.includes("[")||a.includes("]")||a.includes("(")||a.includes(")")){t.push(`Invalid route segment "${a}"`);continue}o.push({type:"static",value:a})}return{template:s,tokens:o,score:X_(o),errors:t,warnings:n}}function Fs(e){const t=e.trim();if(!t)return{value:void 0};try{return{value:JSON.parse(t)}}catch(n){return{error:n instanceof Error?n.message:"Invalid JSON"}}}function Z_(e,t){for(const[n,s]of Object.entries(t))typeof s>"u"||(Array.isArray(s)?s.forEach(r=>e.searchParams.append(n,String(r))):e.searchParams.set(n,String(s)))}function so(e,t){return e==="catchall"?`[...${t}]`:e==="optional-catchall"?`[[...${t}]]`:`[${t}]`}function ev(e){const t=[],n=new Set;for(const s of e){if(s.type==="static"||n.has(s.name))continue;n.add(s.name);const r=s.type;t.push({id:`${r}:${s.name}`,name:s.name,kind:r,token:so(r,s.name),required:r!=="optional-catchall"})}return t}function sc(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?t.split("/").filter(Boolean):[]}function tv(e,t){const n=[],s=new Set;for(const o of e){if(o.type==="static"){n.push(o.value);continue}const l=t[o.name]?.trim()??"";if(!l){o.type!=="optional-catchall"&&s.add(o.name);continue}if(o.type==="param"){n.push(encodeURIComponent(l));continue}const i=sc(l).map(encodeURIComponent);if(i.length===0){o.type!=="optional-catchall"&&s.add(o.name);continue}n.push(...i)}return{path:n.length>0?`/${n.join("/")}`:"/",missing:[...s]}}function nv(e,t){const n=[];for(const s of e){if(s.type==="static"){n.push(s.value);continue}const r=t[s.name]?.trim()??"";if(!r){s.type!=="optional-catchall"&&n.push(so(s.type,s.name));continue}if(s.type==="param"){n.push(encodeURIComponent(r));continue}const o=sc(r).map(encodeURIComponent);if(o.length===0){s.type!=="optional-catchall"&&n.push(so(s.type,s.name));continue}n.push(...o)}return n.length>0?`/${n.join("/")}`:"/"}function sv(e){const t=new URLSearchParams;for(const[s,r]of Object.entries(e))typeof r>"u"||(Array.isArray(r)?r.forEach(o=>t.append(s,String(o))):t.set(s,String(r)));const n=t.toString();return n?`?${n}`:""}function Yl(e){const t=e.trim();if(!t)return[];const n=t.split(/[&\n]/),s=[];for(const r of n){const o=r.trim();if(!o)continue;const[l,...i]=o.split("="),a=(l??"").trim();if(!a)continue;const c=i.join("=").trim();s.push([a,c])}return s}function rv(e){const t=e.trim();if(!t)return{value:void 0};const s=(t.startsWith("data:")?t.split("base64,").pop()??"":t).replace(/\s+/g,"");try{const r=atob(s),o=new Uint8Array(r.length);for(let l=0;l<r.length;l+=1)o[l]=r.charCodeAt(l);return{value:o}}catch(r){return{error:r instanceof Error?r.message:"Invalid base64"}}}function ov(e){return{resetResponse:()=>{e.responseText.value=e.t("response.empty"),e.responseStatus.value=e.t("response.idle"),e.responseTime.value=""},runRequest:async()=>{if(!e.selected.value)return;const s=e.routeTokens.value.length>0?e.routeTokens.value:no(e.selected.value.url).tokens,r=tv(s,e.paramValues.value);if(r.missing.length>0){e.onMissingParams?.(r.missing),e.responseText.value=e.t("errors.routeParams",{params:r.missing.join(", ")});return}const o=e.getRouteKey(e.selected.value),l=Fs(e.queryText.value);if(l.error){e.responseText.value=e.t("errors.queryJson",{message:l.error});return}const i=Fs(e.headersText.value);if(i.error){e.responseText.value=e.t("errors.headersJson",{message:i.error});return}const a=new URL(r.path,window.location.origin);l.value&&Z_(a,l.value);const c={};if(i.value)for(const[b,k]of Object.entries(i.value))typeof k>"u"||(c[b]=Array.isArray(k)?k.join(","):String(k));const u={method:e.selected.value.method,headers:c},f=e.selected.value.method.toUpperCase();if(f!=="GET"&&f!=="HEAD"){const b=e.bodyText.value;if(e.bodyType.value==="json"){const k=Fs(b);if(k.error){e.responseText.value=e.t("errors.bodyJson",{message:k.error});return}k.value&&(u.body=JSON.stringify(k.value),c["Content-Type"]||(c["Content-Type"]="application/json"))}else if(e.bodyType.value==="text")b.trim()&&(u.body=b,c["Content-Type"]||(c["Content-Type"]="text/plain; charset=utf-8"));else if(e.bodyType.value==="form"){const k=Yl(b);if(k.length>0){const E=new URLSearchParams;for(const[P,g]of k)E.append(P,g);u.body=E.toString(),c["Content-Type"]||(c["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8")}}else if(e.bodyType.value==="multipart"){const k=Yl(b);if(k.length>0){const E=new FormData;for(const[P,g]of k)E.append(P,g);u.body=E}}else if(e.bodyType.value==="base64"){const k=rv(b);if(k.error){e.responseText.value=e.t("errors.bodyBase64",{message:k.error});return}k.value&&(u.body=k.value,c["Content-Type"]||(c["Content-Type"]="application/octet-stream"))}}e.responseStatus.value=e.t("response.loading"),e.responseTime.value="",e.responseText.value=e.t("response.waiting"),await e.ensureSwReady();const h=performance.now();try{const b=await fetch(a.toString(),u);e.isServerCounts.value||(e.routeCounts.value[o]=(e.routeCounts.value[o]??0)+1);const k=Math.round(performance.now()-h);e.responseTime.value=`${k}ms`,e.responseStatus.value=`${b.status} ${b.statusText}`;const E=b.headers.get("content-type")??"",P=await b.text();if(E.includes("application/json"))try{e.responseText.value=JSON.stringify(JSON.parse(P),null,2)}catch{e.responseText.value=P}else e.responseText.value=P||e.t("response.emptyPayload")}catch(b){e.responseStatus.value=e.t("response.error"),e.responseText.value=b instanceof Error?b.message:String(b)}}}}function rc(e){try{return new URL(e).pathname.includes("mokup-sw")}catch{return e.includes("mokup-sw")}}function Jl(e){return[e.active?.scriptURL,e.waiting?.scriptURL,e.installing?.scriptURL].filter(n=>typeof n=="string").some(n=>rc(n))}function lv(e){return!!e&&rc(e.scriptURL)}async function iv(){if(typeof window>"u"||!("serviceWorker"in navigator))return null;try{const e=await navigator.serviceWorker.getRegistration();if(e&&Jl(e))return e}catch{}try{return(await navigator.serviceWorker.getRegistrations()).find(Jl)??null}catch{return null}}function av(){return!1}function cv(e){if(!av())return"";const t=e.trim();if(!t)return"";const n=t.startsWith("/")?t:`/${t}`,s=n.endsWith("/")?n.slice(0,-1):n,r=new URL(`${s}/ws`,window.location.origin);return r.protocol=r.protocol==="https:"?"wss:":"ws:",r.toString()}function uv(e){try{const t=JSON.parse(e);if(t.type==="snapshot"&&t.perRoute||t.type==="increment"&&typeof t.routeKey=="string")return t}catch{return null}return null}let Ls=null;function dv(e,t={}){const{t:n}=Je(),s=te(""),r=te(""),o=te(""),l=te("json"),i=te(n("response.empty")),a=te(n("response.idle")),c=te(""),u=te(!1),f=te(!1),h=H(()=>u.value&&!f.value),b=te({}),k=H(()=>Object.values(b.value).reduce(($,z)=>$+z,0)),E=te(!1),P=te(null),g=te(""),y=te([]),_=te([]),v=te({}),I=te([]),F=te(0),A=H(()=>{if(!e.value)return"";const $=y.value.length>0?y.value:no(e.value.url).tokens,z=nv($,v.value),se=Fs(s.value);return se.error||!se.value?z:`${z}${sv(se.value)}`});function G($){return`${$.method} ${$.url}`}function oe($){return b.value[G($)]??0}function ye($){if(typeof $.data!="string")return;const z=uv($.data);if(z){if(z.type==="snapshot"){b.value={...z.perRoute};return}b.value[z.routeKey]=(b.value[z.routeKey]??0)+1}}function he(){P.value&&(P.value.close(),P.value=null),g.value="",E.value=!1}function de($){if(typeof window>"u")return;const z=cv($);if(!(!z||g.value===z)){he(),g.value=z;try{const se=new WebSocket(z);P.value=se,se.addEventListener("open",()=>{E.value=!0}),se.addEventListener("message",ye),se.addEventListener("close",()=>{P.value===se&&he()}),se.addEventListener("error",()=>{P.value===se&&he()})}catch{he()}}}function De($,z){v.value={...v.value,[$]:z},z.trim()&&I.value.includes($)&&(I.value=I.value.filter(se=>se!==$))}function le($){if(I.value=[],F.value=0,!$){y.value=[],_.value=[],v.value={};return}const z=no($.url);y.value=z.tokens;const se=ev(z.tokens),xe={};for(const fe of se)xe[fe.name]=v.value[fe.name]??"";_.value=se,v.value=xe}async function ie(){if(f.value)return!0;if(typeof window>"u"||!("serviceWorker"in navigator))return!1;const $=navigator.serviceWorker.controller;if(lv($))return u.value=!0,f.value=!0,!0;if(!u.value){if(!await iv())return!1;u.value=!0}return Ls||(Ls=navigator.serviceWorker.ready.then(()=>{f.value=!0}).catch(()=>{Ls=null})),await Ls,f.value}typeof window<"u"&&"serviceWorker"in navigator&&ie().catch(()=>{}),t.basePath&&ft(t.basePath,$=>{$&&de($)},{immediate:!0}),ir()&&In(()=>{he()});const{resetResponse:J,runRequest:ee}=ov({t:n,selected:e,routeTokens:y,paramValues:v,queryText:s,headersText:r,bodyText:o,bodyType:l,responseText:i,responseStatus:a,responseTime:c,routeCounts:b,isServerCounts:E,ensureSwReady:ie,getRouteKey:G,onMissingParams:$=>{I.value=[...$],F.value+=1}});return ft(e,()=>{J(),le(e.value)}),{queryText:s,headersText:r,bodyText:o,bodyType:l,responseText:i,responseStatus:a,responseTime:c,resetResponse:J,runRequest:ee,isSwRegistering:h,routeParams:_,paramValues:v,missingParams:I,missingPulse:F,setParamValue:De,requestUrl:A,routeCounts:b,totalCount:k,getRouteCount:oe}}function Xl(e){const{selectedFile:t,routes:n,disabledRoutes:s,ignoredRoutes:r}=e;if(!t)return[];const o=i=>!!i?.includes(t),l=[];for(const i of n)if(o(i.configChain)){const a={kind:"active",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of s)if(o(i.configChain)){const a={kind:"disabled",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of r)o(i.configChain)&&l.push({kind:"ignored",file:i.file});return l}function fv(){const e=te([]),t=te([]),n=te([]),s=te([]),r=te([]),o=te([]),l=te([]),i=te([]),a=te(null),c=te(null),u=te(null),f=te(null),h=te([]),b=te("all"),k=te(!1),E=te(""),P=te(""),g=te(""),y=te(""),_=H(()=>P.value.trim().toLowerCase()),v=H(()=>o.value.length),I=H(()=>t.value.length),F=H(()=>n.value.length),A=H(()=>s.value.length),G=H(()=>r.value.length),oe=H(()=>{const q=new Map;for(const m of s.value)q.set(m.file,"enabled");for(const m of r.value)q.set(m.file,"disabled");return q}),ye=H(()=>`${g.value||""}/routes`),he=q=>`${q.method} ${q.url}`,de=q=>`${q.file}|${q.reason}|${q.method??""}|${q.url??""}`,De=q=>`${q.file}|${q.reason}`,le=te("");function ie(){return b.value==="all"?e.value:e.value.filter(q=>q.groupKey===b.value)}function J(){const q=_.value,m=ie();o.value=q?m.filter(x=>`${x.method} ${x.url} ${x.file}`.toLowerCase().includes(q)):[...m]}function ee(){return b.value==="all"?s.value:s.value.filter(q=>q.groupKey===b.value)}function $(){const q=_.value,m=ee();l.value=q?m.filter(x=>x.file.toLowerCase().includes(q)):[...m]}function z(){return b.value==="all"?r.value:r.value.filter(q=>q.groupKey===b.value)}function se(){const q=_.value,m=z();i.value=q?m.filter(x=>x.file.toLowerCase().includes(q)):[...m]}const xe=H(()=>{const q=_.value;return q?t.value.filter(m=>`${m.method??""} ${m.url??""} ${m.file} ${m.reason}`.toLowerCase().includes(q)):[...t.value]}),fe=H(()=>{const q=_.value;return q?n.value.filter(m=>`${m.file} ${m.reason}`.toLowerCase().includes(q)):[...n.value]});function _e(q){b.value=q,J(),$(),se(),!(a.value&&o.value.some(x=>he(x)===he(a.value)))&&(a.value=o.value[0]??null)}function Se(q){a.value=q}function Ue(q){c.value=q}function je(q){u.value=q}function ke(q){f.value=q}function st(q){g.value=Ap(q)}async function rt(){k.value=!0,E.value="";const q=le.value,m=c.value?de(c.value):"",x=u.value?De(u.value):"",M=b.value,j=f.value?.file??"";try{const U=await fetch(ye.value);if(!U.ok)throw new Error(`Failed to load routes: ${U.status}`);const V=await U.json();if(e.value=V.routes??[],t.value=V.disabled??[],n.value=V.ignored??[],s.value=V.configs??[],r.value=V.disabledConfigs??[],h.value=V.groups??[],y.value=V.root??"",M!=="all"&&(h.value.some(p=>p.key===M)||(b.value="all")),J(),$(),se(),q){const d=o.value.find(p=>he(p)===q);a.value=d??null}else a.value=o.value[0]??null;if(m){const d=t.value.find(p=>de(p)===m);c.value=d??t.value[0]??null}else c.value=t.value[0]??null;if(x){const d=n.value.find(p=>De(p)===x);u.value=d??n.value[0]??null}else u.value=n.value[0]??null;if(j){const d=s.value.find(p=>p.file===j)??r.value.find(p=>p.file===j)??null;f.value=d}}catch(U){E.value=U instanceof Error?U.message:String(U)}finally{k.value=!1}}ft(P,()=>{J(),$(),se()}),ft(a,q=>{q&&(le.value=he(q))});const Be=H(()=>{const q=f.value?.file,m={routes:e.value,disabledRoutes:t.value,ignoredRoutes:n.value};return Xl(q?{...m,selectedFile:q}:m)});return{routes:e,disabledRoutes:t,ignoredRoutes:n,configFiles:s,disabledConfigFiles:r,disabledFiltered:xe,ignoredFiltered:fe,configFiltered:l,disabledConfigFiltered:i,filtered:o,selected:a,selectedConfig:f,selectedDisabled:c,selectedIgnored:u,groups:h,activeGroup:b,loading:k,error:E,search:P,basePath:g,workspaceRoot:y,searchTerm:_,routeCount:v,disabledCount:I,ignoredCount:F,configCount:A,disabledConfigCount:G,configStatusMap:oe,routeKey:he,lastSelectedKey:le,loadRoutes:rt,setActiveGroup:_e,selectRoute:Se,selectDisabledRoute:Ue,selectIgnoredRoute:je,selectConfig:ke,setBasePath:st,configImpactRoutes:Be}}function pv(e,t){if(t==="file")return qs(e.file).split("/").filter(Boolean);const n=qs(e.url),s=n.startsWith("/")?n.slice(1):n;return s?s.split("/").filter(Boolean):[]}function oc(e,t){const n={id:`${t}:root`,label:"",kind:"folder",path:"",children:[]};for(const s of e){const r=pv(s,t);if(r.length===0){const i=`${t}:route:${s.method} ${s.url}|${s.file}`;n.children.push({id:i,label:"/",kind:"route",path:"/",route:s,children:[]});continue}let o=n;const l=r.length;for(let i=0;i<l;i+=1){const a=r[i];if(i===l-1){const h=`${t}:route:${s.method} ${s.url}|${s.file}`;o.children.push({id:h,label:a,kind:"route",path:r.join("/"),route:s,children:[]});continue}o.map||(o.map=new Map);const u=r.slice(0,i+1).join("/");let f=o.map.get(u);f||(f={id:`${t}:folder:${u}`,label:a,kind:"folder",path:u,children:[]},o.map.set(u,f),o.children.push(f)),o=f}}return n}function Lo(e){e.children.sort((t,n)=>{if(t.kind!==n.kind)return t.kind==="folder"?-1:1;const s=t.label.localeCompare(n.label);return s!==0?s:t.route&&n.route?t.route.method.localeCompare(n.route.method):0});for(const t of e.children)t.kind==="folder"&&Lo(t)}function lc(e,t){for(const n of e.children)n.kind==="folder"&&(t.push(n.id),lc(n,t))}function gv(e,t){const n=oc(e,t);Lo(n);const s=[];return lc(n,s),s}function ic(e,t,n,s,r,o,l){for(const i of e.children){const a=i.kind==="folder"?i.path:n==="file"?i.route?.file:i.route?.url,c=i.kind==="folder"?r(i.id):void 0;s.push({id:i.id,label:i.label,kind:i.kind,depth:t,title:a,expanded:c,selected:i.route?l(i.route)===o:!1,route:i.route}),i.kind==="folder"&&c&&ic(i,t+1,n,s,r,o,l)}}function mv(e){const t=[];return ic(e.root,0,e.mode,t,e.isExpanded,e.selectedKey,e.getRouteKey),t}function hv(e){const t=te("file"),n=te(new Set),s=te(new Set),r=te(!1),o=te(!1);function l(){return"mokup.playground.treeMode"}function i(_){return`mokup.playground.treeExpanded.${_}`}function a(_){try{const v=localStorage.getItem(i(_));if(!v)return{set:new Set,hasValue:!1};const I=JSON.parse(v);return Array.isArray(I)?{set:new Set(I.filter(F=>typeof F=="string")),hasValue:!0}:{set:new Set,hasValue:!1}}catch{return{set:new Set,hasValue:!1}}}function c(_,v){try{localStorage.setItem(i(_),JSON.stringify([...v]))}catch{}}function u(_){try{localStorage.setItem(l(),_)}catch{}}function f(){return t.value==="file"?n.value:s.value}function h(_,v){_==="file"?n.value=v:s.value=v}function b(_){return _==="file"?r.value:o.value}function k(_,v){_==="file"?r.value=v:o.value=v}function E(_){return e.searchTerm.value||!b(t.value)?!0:f().has(_)}function P(_){const v=t.value;if(!b(v)){const F=new Set(gv(e.routes.value,v));h(v,F),k(v,!0)}const I=new Set(f());I.has(_)?I.delete(_):I.add(_),h(v,I),k(v,!0),c(v,I)}function g(_){t.value=_,u(_)}const y=H(()=>{const _=t.value,v=oc(e.routes.value,_);return Lo(v),mv({root:v,mode:_,isExpanded:E,selectedKey:e.selectedKey.value,getRouteKey:e.getRouteKey})});return Pn(()=>{try{const _=localStorage.getItem(l());(_==="file"||_==="route")&&(t.value=_);const v=a("file");n.value=v.set,r.value=v.hasValue;const I=a("route");s.value=I.set,o.value=I.hasValue}catch{}}),{treeMode:t,treeRows:y,toggleExpanded:P,setTreeMode:g}}function bv(e){const t=te(e.defaultWidth),n=te(!1);let s=0,r=0;const o=H(()=>({"--left-width":`${t.value}px`}));function l(f){return Math.min(e.maxWidth,Math.max(e.minWidth,f))}function i(f){if(!n.value)return;const h=f.clientX-s;t.value=l(r+h)}function a(){n.value&&(n.value=!1,window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",a),localStorage.setItem(e.storageKey,String(t.value)))}function c(f){f.button===0&&(f.preventDefault(),n.value=!0,s=f.clientX,r=t.value,window.addEventListener("pointermove",i),window.addEventListener("pointerup",a))}function u(){const f=Number(localStorage.getItem(e.storageKey));Number.isFinite(f)&&f>0&&(t.value=l(f))}return{splitWidth:t,splitStyle:o,isDragging:n,handleDragStart:c,restoreSplitWidth:u,stopDrag:a}}const _v={class:"h-screen overflow-hidden pg-app-bg","data-testid":"playground-app"},vv={class:"flex h-full w-full flex-col"},yv={class:"flex min-h-0 flex-1 flex-col overflow-hidden"},xv={class:"flex flex-1 flex-col overflow-hidden bg-pg-surface-shell"},wv={class:"relative hidden w-4 flex-none items-center justify-center lg:flex"},kv={class:"flex min-h-0 flex-1 flex-col overflow-hidden p-4 lg:p-6"},Tv={class:"mt-3 flex-1 min-h-0 overflow-auto"},Cv=$e({__name:"App",setup(e){const{routes:t,filtered:n,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,groups:f,activeGroup:h,loading:b,error:k,search:E,basePath:P,workspaceRoot:g,searchTerm:y,routeCount:_,disabledCount:v,ignoredCount:I,configCount:F,disabledConfigCount:A,configStatusMap:G,routeKey:oe,lastSelectedKey:ye,loadRoutes:he,setActiveGroup:de,selectRoute:De,selectDisabledRoute:le,selectIgnoredRoute:ie,selectConfig:J,setBasePath:ee,configImpactRoutes:$}=fv(),{queryText:z,headersText:se,bodyText:xe,bodyType:fe,responseText:_e,responseStatus:Se,responseTime:Ue,runRequest:je,isSwRegistering:ke,routeParams:st,paramValues:rt,missingParams:Be,missingPulse:q,setParamValue:m,requestUrl:x,totalCount:M,getRouteCount:j}=dv(i,{basePath:P}),U=H(()=>i.value?oe(i.value):""),V=te("active"),d=te("api"),p=te("api"),{activeTotal:T,apiTotal:R,disabledTotal:B,ignoredTotal:W,configTotal:C,disabledConfigTotal:L,disabledApiTotal:X,visibleCount:re}=G_({routes:t,configCount:F,disabledCount:v,ignoredCount:I,disabledConfigCount:A,routeCount:_,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,routeMode:V,enabledMode:d,disabledMode:p}),{setRouteMode:pe,setEnabledMode:He,setDisabledMode:Ve,handleSelectRoute:ct,handleSelectConfig:mt,handleSelectDisabled:rn,handleSelectIgnored:hs}=K_({routeMode:V,enabledMode:d,disabledMode:p,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,filtered:n,disabledFiltered:s,ignoredFiltered:r,lastSelectedKey:ye,getRouteKey:oe,selectRoute:De,selectDisabledRoute:le,selectIgnoredRoute:ie,selectConfig:J}),{splitStyle:ot,isDragging:yt,handleDragStart:On,restoreSplitWidth:bs,stopDrag:ac}=bv({storageKey:"mokup:playground:split-width",defaultWidth:320,minWidth:240,maxWidth:560}),{treeMode:cc,treeRows:uc,toggleExpanded:dc,setTreeMode:fc}=hv({routes:n,selectedKey:U,searchTerm:y,getRouteKey:oe});function pr(){he().catch(()=>{})}return Pn(()=>{ee(window.location.pathname),bs(),window.__MOKUP_PLAYGROUND__={reloadRoutes:pr},pr()}),In(()=>{ac()}),(Sv,Ze)=>(O(),D("div",_v,[w("div",vv,[w("main",yv,[w("div",xv,[w("div",{class:Ae(["flex min-h-0 flex-1 flex-col lg:flex-row",S(yt)?"select-none":""]),style:cs(S(ot))},[K(H_,{search:S(E),"onUpdate:search":Ze[0]||(Ze[0]=wt=>Fe(E)?E.value=wt:null),"base-path":S(P),groups:S(f),"active-group":S(h),"tree-mode":S(cc),"route-mode":V.value,"enabled-mode":d.value,"disabled-mode":p.value,"selected-config":S(u),"selected-disabled":S(a),"selected-ignored":S(c),"active-total":S(T),"api-total":S(R),"disabled-total":S(B),"ignored-total":S(W),"config-total":S(C),"disabled-api-total":S(X),"disabled-config-total":S(L),error:S(k),loading:S(b),filtered:S(n),"disabled-filtered":S(s),"ignored-filtered":S(r),"config-filtered":S(o),"disabled-config-filtered":S(l),"tree-rows":S(uc),"workspace-root":S(g),"get-route-count":S(j),onSelectGroup:S(de),onSetRouteMode:S(pe),onSetEnabledMode:S(He),onSetDisabledMode:S(Ve),onToggle:S(dc),onSelectRoute:S(ct),onSelectDisabledRoute:S(rn),onSelectIgnoredRoute:S(hs),onSelectConfig:S(mt),"onUpdate:treeMode":S(fc)},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count","onSelectGroup","onSetRouteMode","onSetEnabledMode","onSetDisabledMode","onToggle","onSelectRoute","onSelectDisabledRoute","onSelectIgnoredRoute","onSelectConfig","onUpdate:treeMode"]),w("div",wv,[Ze[7]||(Ze[7]=w("div",{class:"h-full w-px bg-pg-divider"},null,-1)),w("button",{class:"group absolute flex h-10 w-10 cursor-col-resize items-center justify-center rounded-full border shadow-sm transition hover:-translate-y-0.5 border-pg-border bg-pg-surface-strong text-pg-text-muted hover:text-pg-text-soft",type:"button","aria-label":"Resize panels",onPointerdown:Ze[1]||(Ze[1]=(...wt)=>S(On)&&S(On)(...wt))},[...Ze[6]||(Ze[6]=[w("span",{class:"i-[carbon--drag-horizontal] h-5 w-5","aria-hidden":"true"},null,-1)])],32)]),w("section",kv,[K(Nb,{"visible-count":S(re),"total-count":S(M),onRefresh:pr},null,8,["visible-count","total-count"]),w("div",Tv,[K(wb,{queryText:S(z),"onUpdate:queryText":Ze[2]||(Ze[2]=wt=>Fe(z)?z.value=wt:null),headersText:S(se),"onUpdate:headersText":Ze[3]||(Ze[3]=wt=>Fe(se)?se.value=wt:null),bodyText:S(xe),"onUpdate:bodyText":Ze[4]||(Ze[4]=wt=>Fe(xe)?xe.value=wt:null),bodyType:S(fe),"onUpdate:bodyType":Ze[5]||(Ze[5]=wt=>Fe(fe)?fe.value=wt:null),selected:S(i),"selected-disabled":S(a),"selected-ignored":S(c),"selected-config":S(u),"request-url":S(x),"workspace-root":S(g),"response-text":S(_e),"response-status":S(Se),"response-time":S(Ue),"is-sw-registering":S(ke),"route-params":S(st),"param-values":S(rt),"missing-params":S(Be),"missing-pulse":S(q),"route-mode":V.value,"enabled-mode":d.value,"disabled-mode":p.value,"config-impact-routes":S($),"config-status-map":S(G),"onUpdate:paramValue":S(m),onRun:S(je)},null,8,["queryText","headersText","bodyText","bodyType","selected","selected-disabled","selected-ignored","selected-config","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","route-mode","enabled-mode","disabled-mode","config-impact-routes","config-status-map","onUpdate:paramValue","onRun"])])])],6)])])])]))}});Cb();Md(Cv).use(Lb).mount("#app");
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function wo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Me={},Mn=[],At=()=>{},Ti=()=>!1,cr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ko=e=>e.startsWith("onUpdate:"),Je=Object.assign,To=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qc=Object.prototype.hasOwnProperty,Re=(e,t)=>qc.call(e,t),fe=Array.isArray,Ln=e=>ur(e)==="[object Map]",Ci=e=>ur(e)==="[object Set]",ge=e=>typeof e=="function",He=e=>typeof e=="string",Jt=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",Si=e=>(Ae(e)||ge(e))&&ge(e.then)&&ge(e.catch),Ei=Object.prototype.toString,ur=e=>Ei.call(e),zc=e=>ur(e).slice(8,-1),Ri=e=>ur(e)==="[object Object]",dr=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qn=wo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Yc=/-\w/g,on=fr(e=>e.replace(Yc,t=>t.slice(1).toUpperCase())),Jc=/\B([A-Z])/g,wn=fr(e=>e.replace(Jc,"-$1").toLowerCase()),Ii=fr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=fr(e=>e?`on${Ii(e)}`:""),rn=(e,t)=>!Object.is(e,t),Rr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Pi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Xc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Qc=e=>{const t=He(e)?Number(e):NaN;return isNaN(t)?e:t};let Xo;const pr=()=>Xo||(Xo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _s(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=He(s)?nu(s):_s(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(He(e)||Ae(e))return e}const Zc=/;(?![^(]*\))/g,eu=/:([^]+)/,tu=/\/\*[^]*?\*\//g;function nu(e){const t={};return e.replace(tu,"").split(Zc).forEach(n=>{if(n){const s=n.split(eu);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function $e(e){let t="";if(He(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const s=$e(e[n]);s&&(t+=s+" ")}else if(Ae(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const su="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ru=wo(su);function Mi(e){return!!e||e===""}const Li=e=>!!(e&&e.__v_isRef===!0),$=e=>He(e)?e:e==null?"":fe(e)||Ae(e)&&(e.toString===Ei||!ge(e.toString))?Li(e)?$(e.value):JSON.stringify(e,$i,2):String(e),$i=(e,t)=>Li(t)?$i(e,t.value):Ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ir(s,o)+" =>"]=r,n),{})}:Ci(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ir(n))}:Jt(t)?Ir(t):Ae(t)&&!fe(t)&&!Ri(t)?String(t):t,Ir=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let dt;class Ai{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=dt,!t&&dt&&(this.index=(dt.scopes||(dt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=dt;try{return dt=this,t()}finally{dt=n}}}on(){++this._on===1&&(this.prevScope=dt,dt=this)}off(){this._on>0&&--this._on===0&&(dt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ou(e){return new Ai(e)}function lu(){return dt}let Le;const Pr=new WeakSet;class Oi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,dt&&dt.active&&dt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pr.has(this)&&(Pr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qo(this),Di(this);const t=Le,n=St;Le=this,St=!0;try{return this.fn()}finally{Ui(this),Le=t,St=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Eo(t);this.deps=this.depsTail=void 0,Qo(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qr(this)&&this.run()}get dirty(){return qr(this)}}let Ni=0,Zn,es;function Fi(e,t=!1){if(e.flags|=8,t){e.next=es,es=e;return}e.next=Zn,Zn=e}function Co(){Ni++}function So(){if(--Ni>0)return;if(es){let t=es;for(es=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Zn;){let t=Zn;for(Zn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Di(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ui(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Eo(s),iu(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function qr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===os)||(e.globalVersion=os,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!qr(e))))return;e.flags|=2;const t=e.dep,n=Le,s=St;Le=e,St=!0;try{Di(e);const r=e.fn(e._value);(t.version===0||rn(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Le=n,St=s,Ui(e),e.flags&=-3}}function Eo(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Eo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function iu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let St=!0;const Wi=[];function qt(){Wi.push(St),St=!1}function zt(){const e=Wi.pop();St=e===void 0?!0:e}function Qo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Le;Le=void 0;try{t()}finally{Le=n}}}let os=0;class au{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 Ro{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!St||Le===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Le)n=this.activeLink=new au(Le,this),Le.deps?(n.prevDep=Le.depsTail,Le.depsTail.nextDep=n,Le.depsTail=n):Le.deps=Le.depsTail=n,ji(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Le.depsTail,n.nextDep=void 0,Le.depsTail.nextDep=n,Le.depsTail=n,Le.deps===n&&(Le.deps=s)}return n}trigger(t){this.version++,os++,this.notify(t)}notify(t){Co();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{So()}}}function ji(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ji(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Js=new WeakMap,yn=Symbol(""),zr=Symbol(""),ls=Symbol("");function tt(e,t,n){if(St&&Le){let s=Js.get(e);s||Js.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Ro),r.map=s,r.key=n),r.track()}}function Ht(e,t,n,s,r,o){const l=Js.get(e);if(!l){os++;return}const i=a=>{a&&a.trigger()};if(Co(),t==="clear")l.forEach(i);else{const a=fe(e),c=a&&dr(n);if(a&&n==="length"){const u=Number(s);l.forEach((d,m)=>{(m==="length"||m===ls||!Jt(m)&&m>=u)&&i(d)})}else switch((n!==void 0||l.has(void 0))&&i(l.get(n)),c&&i(l.get(ls)),t){case"add":a?c&&i(l.get("length")):(i(l.get(yn)),Ln(e)&&i(l.get(zr)));break;case"delete":a||(i(l.get(yn)),Ln(e)&&i(l.get(zr)));break;case"set":Ln(e)&&i(l.get(yn));break}}So()}function cu(e,t){const n=Js.get(e);return n&&n.get(t)}function En(e){const t=we(e);return t===e?t:(tt(t,"iterate",ls),_t(e)?t:t.map(Et))}function gr(e){return tt(e=we(e),"iterate",ls),e}function en(e,t){return Yt(e)?Nn(xn(e)?Et(t):t):Et(t)}const uu={__proto__:null,[Symbol.iterator](){return Mr(this,Symbol.iterator,e=>en(this,e))},concat(...e){return En(this).concat(...e.map(t=>fe(t)?En(t):t))},entries(){return Mr(this,"entries",e=>(e[1]=en(this,e[1]),e))},every(e,t){return Nt(this,"every",e,t,void 0,arguments)},filter(e,t){return Nt(this,"filter",e,t,n=>n.map(s=>en(this,s)),arguments)},find(e,t){return Nt(this,"find",e,t,n=>en(this,n),arguments)},findIndex(e,t){return Nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Nt(this,"findLast",e,t,n=>en(this,n),arguments)},findLastIndex(e,t){return Nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Lr(this,"includes",e)},indexOf(...e){return Lr(this,"indexOf",e)},join(e){return En(this).join(e)},lastIndexOf(...e){return Lr(this,"lastIndexOf",e)},map(e,t){return Nt(this,"map",e,t,void 0,arguments)},pop(){return Hn(this,"pop")},push(...e){return Hn(this,"push",e)},reduce(e,...t){return Zo(this,"reduce",e,t)},reduceRight(e,...t){return Zo(this,"reduceRight",e,t)},shift(){return Hn(this,"shift")},some(e,t){return Nt(this,"some",e,t,void 0,arguments)},splice(...e){return Hn(this,"splice",e)},toReversed(){return En(this).toReversed()},toSorted(e){return En(this).toSorted(e)},toSpliced(...e){return En(this).toSpliced(...e)},unshift(...e){return Hn(this,"unshift",e)},values(){return Mr(this,"values",e=>en(this,e))}};function Mr(e,t,n){const s=gr(e),r=s[t]();return s!==e&&!_t(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const du=Array.prototype;function Nt(e,t,n,s,r,o){const l=gr(e),i=l!==e&&!_t(e),a=l[t];if(a!==du[t]){const d=a.apply(e,o);return i?Et(d):d}let c=n;l!==e&&(i?c=function(d,m){return n.call(this,en(e,d),m,e)}:n.length>2&&(c=function(d,m){return n.call(this,d,m,e)}));const u=a.call(l,c,s);return i&&r?r(u):u}function Zo(e,t,n,s){const r=gr(e);let o=n;return r!==e&&(_t(e)?n.length>3&&(o=function(l,i,a){return n.call(this,l,i,a,e)}):o=function(l,i,a){return n.call(this,l,en(e,i),a,e)}),r[t](o,...s)}function Lr(e,t,n){const s=we(e);tt(s,"iterate",ls);const r=s[t](...n);return(r===-1||r===!1)&&mr(n[0])?(n[0]=we(n[0]),s[t](...n)):r}function Hn(e,t,n=[]){qt(),Co();const s=we(e)[t].apply(e,n);return So(),zt(),s}const fu=wo("__proto__,__v_isRef,__isVue"),Hi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt));function pu(e){Jt(e)||(e=String(e));const t=we(this);return tt(t,"has",e),t.hasOwnProperty(e)}class Bi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ku:zi:o?qi:Gi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=fe(t);if(!r){let a;if(l&&(a=uu[n]))return a;if(n==="hasOwnProperty")return pu}const i=Reflect.get(t,n,Fe(t)?t:s);if((Jt(n)?Hi.has(n):fu(n))||(r||tt(t,"get",n),o))return i;if(Fe(i)){const a=l&&dr(n)?i:i.value;return r&&Ae(a)?Jr(a):a}return Ae(i)?r?Jr(i):Po(i):i}}class Ki extends Bi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const l=fe(t)&&dr(n);if(!this._isShallow){const c=Yt(o);if(!_t(s)&&!Yt(s)&&(o=we(o),s=we(s)),!l&&Fe(o)&&!Fe(s))return c||(o.value=s),!0}const i=l?Number(n)<t.length:Re(t,n),a=Reflect.set(t,n,s,Fe(t)?t:r);return t===we(r)&&(i?rn(s,o)&&Ht(t,"set",n,s):Ht(t,"add",n,s)),a}deleteProperty(t,n){const s=Re(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ht(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Jt(n)||!Hi.has(n))&&tt(t,"has",n),s}ownKeys(t){return tt(t,"iterate",fe(t)?"length":yn),Reflect.ownKeys(t)}}class gu extends Bi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const mu=new Ki,hu=new gu,bu=new Ki(!0);const Yr=e=>e,Ps=e=>Reflect.getPrototypeOf(e);function vu(e,t,n){return function(...s){const r=this.__v_raw,o=we(r),l=Ln(o),i=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...s),u=n?Yr:t?Nn:Et;return!t&&tt(o,"iterate",a?zr:yn),Je(Object.create(c),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:i?[u(d[0]),u(d[1])]:u(d),done:m}}})}}function Ms(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function _u(e,t){const n={get(r){const o=this.__v_raw,l=we(o),i=we(r);e||(rn(r,i)&&tt(l,"get",r),tt(l,"get",i));const{has:a}=Ps(l),c=t?Yr:e?Nn:Et;if(a.call(l,r))return c(o.get(r));if(a.call(l,i))return c(o.get(i));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&tt(we(r),"iterate",yn),r.size},has(r){const o=this.__v_raw,l=we(o),i=we(r);return e||(rn(r,i)&&tt(l,"has",r),tt(l,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const l=this,i=l.__v_raw,a=we(i),c=t?Yr:e?Nn:Et;return!e&&tt(a,"iterate",yn),i.forEach((u,d)=>r.call(o,c(u),c(d),l))}};return Je(n,e?{add:Ms("add"),set:Ms("set"),delete:Ms("delete"),clear:Ms("clear")}:{add(r){!t&&!_t(r)&&!Yt(r)&&(r=we(r));const o=we(this);return Ps(o).has.call(o,r)||(o.add(r),Ht(o,"add",r,r)),this},set(r,o){!t&&!_t(o)&&!Yt(o)&&(o=we(o));const l=we(this),{has:i,get:a}=Ps(l);let c=i.call(l,r);c||(r=we(r),c=i.call(l,r));const u=a.call(l,r);return l.set(r,o),c?rn(o,u)&&Ht(l,"set",r,o):Ht(l,"add",r,o),this},delete(r){const o=we(this),{has:l,get:i}=Ps(o);let a=l.call(o,r);a||(r=we(r),a=l.call(o,r)),i&&i.call(o,r);const c=o.delete(r);return a&&Ht(o,"delete",r,void 0),c},clear(){const r=we(this),o=r.size!==0,l=r.clear();return o&&Ht(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=vu(r,e,t)}),n}function Io(e,t){const n=_u(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Re(n,r)&&r in s?n:s,r,o)}const yu={get:Io(!1,!1)},xu={get:Io(!1,!0)},wu={get:Io(!0,!1)};const Gi=new WeakMap,qi=new WeakMap,zi=new WeakMap,ku=new WeakMap;function Tu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Cu(e){return e.__v_skip||!Object.isExtensible(e)?0:Tu(zc(e))}function Po(e){return Yt(e)?e:Mo(e,!1,mu,yu,Gi)}function Su(e){return Mo(e,!1,bu,xu,qi)}function Jr(e){return Mo(e,!0,hu,wu,zi)}function Mo(e,t,n,s,r){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Cu(e);if(o===0)return e;const l=r.get(e);if(l)return l;const i=new Proxy(e,o===2?s:n);return r.set(e,i),i}function xn(e){return Yt(e)?xn(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function mr(e){return e?!!e.__v_raw:!1}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function Eu(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&Pi(e,"__v_skip",!0),e}const Et=e=>Ae(e)?Po(e):e,Nn=e=>Ae(e)?Jr(e):e;function Fe(e){return e?e.__v_isRef===!0:!1}function oe(e){return Yi(e,!1)}function Ru(e){return Yi(e,!0)}function Yi(e,t){return Fe(e)?e:new Iu(e,t)}class Iu{constructor(t,n){this.dep=new Ro,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:we(t),this._value=n?t:Et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||_t(t)||Yt(t);t=s?t:we(t),rn(t,n)&&(this._rawValue=t,this._value=s?t:Et(t),this.dep.trigger())}}function S(e){return Fe(e)?e.value:e}const Pu={get:(e,t,n)=>t==="__v_raw"?e:S(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Fe(r)&&!Fe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ji(e){return xn(e)?e:new Proxy(e,Pu)}function Mu(e){const t=fe(e)?new Array(e.length):{};for(const n in e)t[n]=$u(e,n);return t}class Lu{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=we(t);let r=!0,o=t;if(!fe(t)||!dr(String(n)))do r=!mr(o)||_t(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=S(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Fe(this._raw[this._key])){const n=this._object[this._key];if(Fe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return cu(this._raw,this._key)}}function $u(e,t,n){return new Lu(e,t,n)}class Au{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ro(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=os-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Fi(this,!0),!0}get value(){const t=this.dep.track();return Vi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ou(e,t,n=!1){let s,r;return ge(e)?s=e:(s=e.get,r=e.set),new Au(s,r,n)}const Ls={},Xs=new WeakMap;let bn;function Nu(e,t=!1,n=bn){if(n){let s=Xs.get(n);s||Xs.set(n,s=[]),s.push(e)}}function Fu(e,t,n=Me){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:i,call:a}=n,c=_=>r?_:_t(_)||r===!1||r===0?Bt(_,1):Bt(_);let u,d,m,b,k=!1,R=!1;if(Fe(e)?(d=()=>e.value,k=_t(e)):xn(e)?(d=()=>c(e),k=!0):fe(e)?(R=!0,k=e.some(_=>xn(_)||_t(_)),d=()=>e.map(_=>{if(Fe(_))return _.value;if(xn(_))return c(_);if(ge(_))return a?a(_,2):_()})):ge(e)?t?d=a?()=>a(e,2):e:d=()=>{if(m){qt();try{m()}finally{zt()}}const _=bn;bn=u;try{return a?a(e,3,[b]):e(b)}finally{bn=_}}:d=At,t&&r){const _=d,P=r===!0?1/0:r;d=()=>Bt(_(),P)}const I=lu(),g=()=>{u.stop(),I&&I.active&&To(I.effects,u)};if(o&&t){const _=t;t=(...P)=>{_(...P),g()}}let w=R?new Array(e.length).fill(Ls):Ls;const v=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const P=u.run();if(r||k||(R?P.some((F,D)=>rn(F,w[D])):rn(P,w))){m&&m();const F=bn;bn=u;try{const D=[P,w===Ls?void 0:R&&w[0]===Ls?[]:w,b];w=P,a?a(t,3,D):t(...D)}finally{bn=F}}}else u.run()};return i&&i(v),u=new Oi(d),u.scheduler=l?()=>l(v,!1):v,b=_=>Nu(_,!1,u),m=u.onStop=()=>{const _=Xs.get(u);if(_){if(a)a(_,4);else for(const P of _)P();Xs.delete(u)}},t?s?v(!0):w=u.run():l?l(v.bind(null,!0),!0):u.run(),g.pause=u.pause.bind(u),g.resume=u.resume.bind(u),g.stop=g,g}function Bt(e,t=1/0,n){if(t<=0||!Ae(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Fe(e))Bt(e.value,t,n);else if(fe(e))for(let s=0;s<e.length;s++)Bt(e[s],t,n);else if(Ci(e)||Ln(e))e.forEach(s=>{Bt(s,t,n)});else if(Ri(e)){for(const s in e)Bt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Bt(e[s],t,n)}return e}function ys(e,t,n,s){try{return s?e(...s):e()}catch(r){hr(r,t,n)}}function Rt(e,t,n,s){if(ge(e)){const r=ys(e,t,n,s);return r&&Si(r)&&r.catch(o=>{hr(o,t,n)}),r}if(fe(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Rt(e[o],t,n,s));return r}}function hr(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Me;if(t){let i=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,c)===!1)return}i=i.parent}if(o){qt(),ys(o,null,10,[e,a,c]),zt();return}}Du(e,n,r,s,l)}function Du(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const it=[];let Lt=-1;const $n=[];let tn=null,In=0;const Xi=Promise.resolve();let Qs=null;function Qi(e){const t=Qs||Xi;return e?t.then(this?e.bind(this):e):t}function Uu(e){let t=Lt+1,n=it.length;for(;t<n;){const s=t+n>>>1,r=it[s],o=is(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Lo(e){if(!(e.flags&1)){const t=is(e),n=it[it.length-1];!n||!(e.flags&2)&&t>=is(n)?it.push(e):it.splice(Uu(t),0,e),e.flags|=1,Zi()}}function Zi(){Qs||(Qs=Xi.then(ta))}function Vu(e){fe(e)?$n.push(...e):tn&&e.id===-1?tn.splice(In+1,0,e):e.flags&1||($n.push(e),e.flags|=1),Zi()}function el(e,t,n=Lt+1){for(;n<it.length;n++){const s=it[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;it.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function ea(e){if($n.length){const t=[...new Set($n)].sort((n,s)=>is(n)-is(s));if($n.length=0,tn){tn.push(...t);return}for(tn=t,In=0;In<tn.length;In++){const n=tn[In];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}tn=null,In=0}}const is=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ta(e){try{for(Lt=0;Lt<it.length;Lt++){const t=it[Lt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ys(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Lt<it.length;Lt++){const t=it[Lt];t&&(t.flags&=-2)}Lt=-1,it.length=0,ea(),Qs=null,(it.length||$n.length)&&ta()}}let st=null,na=null;function Zs(e){const t=st;return st=e,na=e&&e.type.__scopeId||null,t}function le(e,t=st,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&nr(-1);const o=Zs(t);let l;try{l=e(...r)}finally{Zs(o),s._d&&nr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function $s(e,t){if(st===null)return e;const n=yr(st),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,i,a=Me]=t[r];o&&(ge(o)&&(o={mounted:o,updated:o}),o.deep&&Bt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:i,modifiers:a}))}return e}function fn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];o&&(i.oldValue=o[l].value);let a=i.dir[s];a&&(qt(),Rt(a,n,8,[e.el,i,e,t]),zt())}}function Wu(e,t){if(at){let n=at.provides;const s=at.parent&&at.parent.provides;s===n&&(n=at.provides=Object.create(s)),n[e]=t}}function ts(e,t,n=!1){const s=ks();if(s||On){let r=On?On._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ge(t)?t.call(s&&s.proxy):t}}const ju=Symbol.for("v-scx"),Hu=()=>ts(ju);function ft(e,t,n){return sa(e,t,n)}function sa(e,t,n=Me){const{immediate:s,deep:r,flush:o,once:l}=n,i=Je({},n),a=t&&s||!t&&o!=="post";let c;if(ds){if(o==="sync"){const b=Hu();c=b.__watcherHandles||(b.__watcherHandles=[])}else if(!a){const b=()=>{};return b.stop=At,b.resume=At,b.pause=At,b}}const u=at;i.call=(b,k,R)=>Rt(b,u,k,R);let d=!1;o==="post"?i.scheduler=b=>{bt(b,u&&u.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(b,k)=>{k?b():Lo(b)}),i.augmentJob=b=>{t&&(b.flags|=4),d&&(b.flags|=2,u&&(b.id=u.uid,b.i=u))};const m=Fu(e,t,i);return ds&&(c?c.push(m):a&&m()),m}function Bu(e,t,n){const s=this.proxy,r=He(e)?e.includes(".")?ra(s,e):()=>s[e]:e.bind(s,s);let o;ge(t)?o=t:(o=t.handler,n=t);const l=Ts(this),i=sa(r,o.bind(s),n);return l(),i}function ra(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Ku=Symbol("_vte"),oa=e=>e.__isTeleport,Wt=Symbol("_leaveCb"),As=Symbol("_enterCb");function Gu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return kn(()=>{e.isMounted=!0}),Tn(()=>{e.isUnmounting=!0}),e}const kt=[Function,Array],la={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kt,onEnter:kt,onAfterEnter:kt,onEnterCancelled:kt,onBeforeLeave:kt,onLeave:kt,onAfterLeave:kt,onLeaveCancelled:kt,onBeforeAppear:kt,onAppear:kt,onAfterAppear:kt,onAppearCancelled:kt},ia=e=>{const t=e.subTree;return t.component?ia(t.component):t},qu={name:"BaseTransition",props:la,setup(e,{slots:t}){const n=ks(),s=Gu();return()=>{const r=t.default&&ua(t.default(),!0);if(!r||!r.length)return;const o=aa(r),l=we(e),{mode:i}=l;if(s.isLeaving)return $r(o);const a=tl(o);if(!a)return $r(o);let c=Xr(a,l,s,n,d=>c=d);a.type!==nt&&as(a,c);let u=n.subTree&&tl(n.subTree);if(u&&u.type!==nt&&!vn(u,a)&&ia(n).type!==nt){let d=Xr(u,l,s,n);if(as(u,d),i==="out-in"&&a.type!==nt)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},$r(o);i==="in-out"&&a.type!==nt?d.delayLeave=(m,b,k)=>{const R=ca(s,u);R[String(u.key)]=u,m[Wt]=()=>{b(),m[Wt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{k(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function aa(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==nt){t=n;break}}return t}const zu=qu;function ca(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Xr(e,t,n,s,r){const{appear:o,mode:l,persisted:i=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:m,onLeave:b,onAfterLeave:k,onLeaveCancelled:R,onBeforeAppear:I,onAppear:g,onAfterAppear:w,onAppearCancelled:v}=t,_=String(e.key),P=ca(n,e),F=(z,ie)=>{z&&Rt(z,s,9,ie)},D=(z,ie)=>{const ce=ie[1];F(z,ie),fe(z)?z.every(O=>O.length<=1)&&ce():z.length<=1&&ce()},G={mode:l,persisted:i,beforeEnter(z){let ie=a;if(!n.isMounted)if(o)ie=I||a;else return;z[Wt]&&z[Wt](!0);const ce=P[_];ce&&vn(e,ce)&&ce.el[Wt]&&ce.el[Wt](),F(ie,[z])},enter(z){let ie=c,ce=u,O=d;if(!n.isMounted)if(o)ie=g||c,ce=w||u,O=v||d;else return;let Y=!1;const B=z[As]=te=>{Y||(Y=!0,te?F(O,[z]):F(ce,[z]),G.delayedLeave&&G.delayedLeave(),z[As]=void 0)};ie?D(ie,[z,B]):B()},leave(z,ie){const ce=String(e.key);if(z[As]&&z[As](!0),n.isUnmounting)return ie();F(m,[z]);let O=!1;const Y=z[Wt]=B=>{O||(O=!0,ie(),B?F(R,[z]):F(k,[z]),z[Wt]=void 0,P[ce]===e&&delete P[ce])};P[ce]=e,b?D(b,[z,Y]):Y()},clone(z){const ie=Xr(z,t,n,s,r);return r&&r(ie),ie}};return G}function $r(e){if(br(e))return e=ln(e),e.children=null,e}function tl(e){if(!br(e))return oa(e.type)&&e.children?aa(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function as(e,t){e.shapeFlag&6&&e.component?(e.transition=t,as(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ua(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let l=e[o];const i=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===xe?(l.patchFlag&128&&r++,s=s.concat(ua(l.children,t,i))):(t||l.type!==nt)&&s.push(i!=null?ln(l,{key:i}):l)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function Oe(e,t){return ge(e)?Je({name:e.name},t,{setup:e}):e}function da(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const er=new WeakMap;function ns(e,t,n,s,r=!1){if(fe(e)){e.forEach((k,R)=>ns(k,t&&(fe(t)?t[R]:t),n,s,r));return}if(An(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&ns(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?yr(s.component):s.el,l=r?null:o,{i,r:a}=e,c=t&&t.r,u=i.refs===Me?i.refs={}:i.refs,d=i.setupState,m=we(d),b=d===Me?Ti:k=>Re(m,k);if(c!=null&&c!==a){if(nl(t),He(c))u[c]=null,b(c)&&(d[c]=null);else if(Fe(c)){c.value=null;const k=t;k.k&&(u[k.k]=null)}}if(ge(a))ys(a,i,12,[l,u]);else{const k=He(a),R=Fe(a);if(k||R){const I=()=>{if(e.f){const g=k?b(a)?d[a]:u[a]:a.value;if(r)fe(g)&&To(g,o);else if(fe(g))g.includes(o)||g.push(o);else if(k)u[a]=[o],b(a)&&(d[a]=u[a]);else{const w=[o];a.value=w,e.k&&(u[e.k]=w)}}else k?(u[a]=l,b(a)&&(d[a]=l)):R&&(a.value=l,e.k&&(u[e.k]=l))};if(l){const g=()=>{I(),er.delete(e)};g.id=-1,er.set(e,g),bt(g,n)}else nl(e),I()}}}function nl(e){const t=er.get(e);t&&(t.flags|=8,er.delete(e))}pr().requestIdleCallback;pr().cancelIdleCallback;const An=e=>!!e.type.__asyncLoader,br=e=>e.type.__isKeepAlive;function Yu(e,t){fa(e,"a",t)}function Ju(e,t){fa(e,"da",t)}function fa(e,t,n=at){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(vr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)br(r.parent.vnode)&&Xu(s,t,n,r),r=r.parent}}function Xu(e,t,n,s){const r=vr(t,e,s,!0);$o(()=>{To(s[t],r)},n)}function vr(e,t,n=at,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{qt();const i=Ts(n),a=Rt(t,n,e,l);return i(),zt(),a});return s?r.unshift(o):r.push(o),o}}const Xt=e=>(t,n=at)=>{(!ds||e==="sp")&&vr(e,(...s)=>t(...s),n)},Qu=Xt("bm"),kn=Xt("m"),Zu=Xt("bu"),ed=Xt("u"),Tn=Xt("bum"),$o=Xt("um"),td=Xt("sp"),nd=Xt("rtg"),sd=Xt("rtc");function rd(e,t=at){vr("ec",e,t)}const od=Symbol.for("v-ndc");function Qe(e,t,n,s){let r;const o=n,l=fe(e);if(l||He(e)){const i=l&&xn(e);let a=!1,c=!1;i&&(a=!_t(e),c=Yt(e),e=gr(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(a?c?Nn(Et(e[u])):Et(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o)}else if(Ae(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,c=i.length;a<c;a++){const u=i[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function Ao(e,t,n={},s,r){if(st.ce||st.parent&&An(st.parent)&&st.parent.ce){const c=Object.keys(n).length>0;return L(),pt(xe,null,[q("slot",n,s)],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),L();const l=o&&pa(o(n)),i=n.key||l&&l.key,a=pt(xe,{key:(i&&!Jt(i)?i:`_${t}`)+(!l&&s?"_fb":"")},l||[],l&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function pa(e){return e.some(t=>us(t)?!(t.type===nt||t.type===xe&&!pa(t.children)):!0)?e:null}const Qr=e=>e?La(e)?yr(e):Qr(e.parent):null,ss=Je(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=>Qr(e.parent),$root:e=>Qr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ma(e),$forceUpdate:e=>e.f||(e.f=()=>{Lo(e.update)}),$nextTick:e=>e.n||(e.n=Qi.bind(e.proxy)),$watch:e=>Bu.bind(e)}),Ar=(e,t)=>e!==Me&&!e.__isScriptSetup&&Re(e,t),ld={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:i,appContext:a}=e;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ar(s,t))return l[t]=1,s[t];if(r!==Me&&Re(r,t))return l[t]=2,r[t];if(Re(o,t))return l[t]=3,o[t];if(n!==Me&&Re(n,t))return l[t]=4,n[t];Zr&&(l[t]=0)}}const c=ss[t];let u,d;if(c)return t==="$attrs"&&tt(e.attrs,"get",""),c(e);if((u=i.__cssModules)&&(u=u[t]))return u;if(n!==Me&&Re(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,Re(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ar(r,t)?(r[t]=n,!0):s!==Me&&Re(s,t)?(s[t]=n,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:l}},i){let a;return!!(n[i]||e!==Me&&i[0]!=="$"&&Re(e,i)||Ar(t,i)||Re(o,i)||Re(s,i)||Re(ss,i)||Re(r.config.globalProperties,i)||(a=l.__cssModules)&&a[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xs(){return id().attrs}function id(e){const t=ks();return t.setupContext||(t.setupContext=Aa(t))}function sl(e){return fe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zr=!0;function ad(e){const t=ma(e),n=e.proxy,s=e.ctx;Zr=!1,t.beforeCreate&&rl(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:i,provide:a,inject:c,created:u,beforeMount:d,mounted:m,beforeUpdate:b,updated:k,activated:R,deactivated:I,beforeDestroy:g,beforeUnmount:w,destroyed:v,unmounted:_,render:P,renderTracked:F,renderTriggered:D,errorCaptured:G,serverPrefetch:z,expose:ie,inheritAttrs:ce,components:O,directives:Y,filters:B}=t;if(c&&cd(c,s,null),l)for(const ee in l){const j=l[ee];ge(j)&&(s[ee]=j.bind(n))}if(r){const ee=r.call(n,n);Ae(ee)&&(e.data=Po(ee))}if(Zr=!0,o)for(const ee in o){const j=o[ee],X=ge(j)?j.bind(n,n):ge(j.get)?j.get.bind(n,n):At,ae=!ge(j)&&ge(j.set)?j.set.bind(n):At,ue=K({get:X,set:ae});Object.defineProperty(s,ee,{enumerable:!0,configurable:!0,get:()=>ue.value,set:he=>ue.value=he})}if(i)for(const ee in i)ga(i[ee],s,n,ee);if(a){const ee=ge(a)?a.call(n):a;Reflect.ownKeys(ee).forEach(j=>{Wu(j,ee[j])})}u&&rl(u,e,"c");function Q(ee,j){fe(j)?j.forEach(X=>ee(X.bind(n))):j&&ee(j.bind(n))}if(Q(Qu,d),Q(kn,m),Q(Zu,b),Q(ed,k),Q(Yu,R),Q(Ju,I),Q(rd,G),Q(sd,F),Q(nd,D),Q(Tn,w),Q($o,_),Q(td,z),fe(ie))if(ie.length){const ee=e.exposed||(e.exposed={});ie.forEach(j=>{Object.defineProperty(ee,j,{get:()=>n[j],set:X=>n[j]=X,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===At&&(e.render=P),ce!=null&&(e.inheritAttrs=ce),O&&(e.components=O),Y&&(e.directives=Y),z&&da(e)}function cd(e,t,n=At){fe(e)&&(e=eo(e));for(const s in e){const r=e[s];let o;Ae(r)?"default"in r?o=ts(r.from||s,r.default,!0):o=ts(r.from||s):o=ts(r),Fe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function rl(e,t,n){Rt(fe(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ga(e,t,n,s){let r=s.includes(".")?ra(n,s):()=>n[s];if(He(e)){const o=t[e];ge(o)&&ft(r,o)}else if(ge(e))ft(r,e.bind(n));else if(Ae(e))if(fe(e))e.forEach(o=>ga(o,t,n,s));else{const o=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(o)&&ft(r,o,e)}}function ma(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,i=o.get(t);let a;return i?a=i:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>tr(a,c,l,!0)),tr(a,t,l)),Ae(t)&&o.set(t,a),a}function tr(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&tr(e,o,n,!0),r&&r.forEach(l=>tr(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const i=ud[l]||n&&n[l];e[l]=i?i(e[l],t[l]):t[l]}return e}const ud={data:ol,props:ll,emits:ll,methods:Yn,computed:Yn,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:Yn,directives:Yn,watch:fd,provide:ol,inject:dd};function ol(e,t){return t?e?function(){return Je(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function dd(e,t){return Yn(eo(e),eo(t))}function eo(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function lt(e,t){return e?[...new Set([].concat(e,t))]:t}function Yn(e,t){return e?Je(Object.create(null),e,t):t}function ll(e,t){return e?fe(e)&&fe(t)?[...new Set([...e,...t])]:Je(Object.create(null),sl(e),sl(t??{})):t}function fd(e,t){if(!e)return t;if(!t)return e;const n=Je(Object.create(null),e);for(const s in t)n[s]=lt(e[s],t[s]);return n}function ha(){return{app:null,config:{isNativeTag:Ti,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let pd=0;function gd(e,t){return function(s,r=null){ge(s)||(s=Je({},s)),r!=null&&!Ae(r)&&(r=null);const o=ha(),l=new WeakSet,i=[];let a=!1;const c=o.app={_uid:pd++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Hd,get config(){return o.config},set config(u){},use(u,...d){return l.has(u)||(u&&ge(u.install)?(l.add(u),u.install(c,...d)):ge(u)&&(l.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,m){if(!a){const b=c._ceVNode||q(s,r);return b.appContext=o,m===!0?m="svg":m===!1&&(m=void 0),e(b,u,m),a=!0,c._container=u,u.__vue_app__=c,yr(b.component)}},onUnmount(u){i.push(u)},unmount(){a&&(Rt(i,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=On;On=c;try{return u()}finally{On=d}}};return c}}let On=null;const md=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${on(t)}Modifiers`]||e[`${wn(t)}Modifiers`];function hd(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Me;let r=n;const o=t.startsWith("update:"),l=o&&md(s,t.slice(7));l&&(l.trim&&(r=n.map(u=>He(u)?u.trim():u)),l.number&&(r=n.map(Xc)));let i,a=s[i=Er(t)]||s[i=Er(on(t))];!a&&o&&(a=s[i=Er(wn(t))]),a&&Rt(a,e,6,r);const c=s[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Rt(c,e,6,r)}}const bd=new WeakMap;function ba(e,t,n=!1){const s=n?bd:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},i=!1;if(!ge(e)){const a=c=>{const u=ba(c,t,!0);u&&(i=!0,Je(l,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!i?(Ae(e)&&s.set(e,null),null):(fe(o)?o.forEach(a=>l[a]=null):Je(l,o),Ae(e)&&s.set(e,l),l)}function _r(e,t){return!e||!cr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,wn(t))||Re(e,t))}function il(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:i,emit:a,render:c,renderCache:u,props:d,data:m,setupState:b,ctx:k,inheritAttrs:R}=e,I=Zs(e);let g,w;try{if(n.shapeFlag&4){const _=r||s,P=_;g=$t(c.call(P,_,u,d,b,m,k)),w=i}else{const _=t;g=$t(_.length>1?_(d,{attrs:i,slots:l,emit:a}):_(d,null)),w=t.props?i:vd(i)}}catch(_){rs.length=0,hr(_,e,1),g=q(nt)}let v=g;if(w&&R!==!1){const _=Object.keys(w),{shapeFlag:P}=v;_.length&&P&7&&(o&&_.some(ko)&&(w=_d(w,o)),v=ln(v,w,!1,!0))}return n.dirs&&(v=ln(v,null,!1,!0),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&as(v,n.transition),g=v,Zs(I),g}const vd=e=>{let t;for(const n in e)(n==="class"||n==="style"||cr(n))&&((t||(t={}))[n]=e[n]);return t},_d=(e,t)=>{const n={};for(const s in e)(!ko(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function yd(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:i,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?al(s,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const m=u[d];if(l[m]!==s[m]&&!_r(c,m))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===l?!1:s?l?al(s,l,c):!0:!!l;return!1}function al(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!_r(n,o))return!0}return!1}function xd({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const va={},_a=()=>Object.create(va),ya=e=>Object.getPrototypeOf(e)===va;function wd(e,t,n,s=!1){const r={},o=_a();e.propsDefaults=Object.create(null),xa(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Su(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function kd(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,i=we(r),[a]=e.propsOptions;let c=!1;if((s||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let m=u[d];if(_r(e.emitsOptions,m))continue;const b=t[m];if(a)if(Re(o,m))b!==o[m]&&(o[m]=b,c=!0);else{const k=on(m);r[k]=to(a,i,k,b,e,!1)}else b!==o[m]&&(o[m]=b,c=!0)}}}else{xa(e,t,r,o)&&(c=!0);let u;for(const d in i)(!t||!Re(t,d)&&((u=wn(d))===d||!Re(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=to(a,i,d,void 0,e,!0)):delete r[d]);if(o!==i)for(const d in o)(!t||!Re(t,d))&&(delete o[d],c=!0)}c&&Ht(e.attrs,"set","")}function xa(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,i;if(t)for(let a in t){if(Qn(a))continue;const c=t[a];let u;r&&Re(r,u=on(a))?!o||!o.includes(u)?n[u]=c:(i||(i={}))[u]=c:_r(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,l=!0)}if(o){const a=we(n),c=i||Me;for(let u=0;u<o.length;u++){const d=o[u];n[d]=to(r,a,d,c[d],e,!Re(c,d))}}return l}function to(e,t,n,s,r,o){const l=e[n];if(l!=null){const i=Re(l,"default");if(i&&s===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ge(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=Ts(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!i?s=!1:l[1]&&(s===""||s===wn(n))&&(s=!0))}return s}const Td=new WeakMap;function wa(e,t,n=!1){const s=n?Td:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},i=[];let a=!1;if(!ge(e)){const u=d=>{a=!0;const[m,b]=wa(d,t,!0);Je(l,m),b&&i.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return Ae(e)&&s.set(e,Mn),Mn;if(fe(o))for(let u=0;u<o.length;u++){const d=on(o[u]);cl(d)&&(l[d]=Me)}else if(o)for(const u in o){const d=on(u);if(cl(d)){const m=o[u],b=l[d]=fe(m)||ge(m)?{type:m}:Je({},m),k=b.type;let R=!1,I=!0;if(fe(k))for(let g=0;g<k.length;++g){const w=k[g],v=ge(w)&&w.name;if(v==="Boolean"){R=!0;break}else v==="String"&&(I=!1)}else R=ge(k)&&k.name==="Boolean";b[0]=R,b[1]=I,(R||Re(b,"default"))&&i.push(d)}}const c=[l,i];return Ae(e)&&s.set(e,c),c}function cl(e){return e[0]!=="$"&&!Qn(e)}const Oo=e=>e==="_"||e==="_ctx"||e==="$stable",No=e=>fe(e)?e.map($t):[$t(e)],Cd=(e,t,n)=>{if(t._n)return t;const s=le((...r)=>No(t(...r)),n);return s._c=!1,s},ka=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Oo(r))continue;const o=e[r];if(ge(o))t[r]=Cd(r,o,s);else if(o!=null){const l=No(o);t[r]=()=>l}}},Ta=(e,t)=>{const n=No(t);e.slots.default=()=>n},Ca=(e,t,n)=>{for(const s in t)(n||!Oo(s))&&(e[s]=t[s])},Sd=(e,t,n)=>{const s=e.slots=_a();if(e.vnode.shapeFlag&32){const r=t._;r?(Ca(s,t,n),n&&Pi(s,"_",r,!0)):ka(t,s)}else t&&Ta(e,t)},Ed=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=Me;if(s.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:Ca(r,t,n):(o=!t.$stable,ka(t,r)),l=t}else t&&(Ta(e,t),l={default:1});if(o)for(const i in r)!Oo(i)&&l[i]==null&&delete r[i]},bt=Ld;function Rd(e){return Id(e)}function Id(e,t){const n=pr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:i,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:m,setScopeId:b=At,insertStaticContent:k}=e,R=(f,y,M,H=null,V=null,U=null,p=void 0,h=null,T=!!y.dynamicChildren)=>{if(f===y)return;f&&!vn(f,y)&&(H=Te(f),he(f,V,U,!0),f=null),y.patchFlag===-2&&(T=!1,y.dynamicChildren=null);const{type:E,ref:J,shapeFlag:W}=y;switch(E){case ws:I(f,y,M,H);break;case nt:g(f,y,M,H);break;case Nr:f==null&&w(y,M,H,p);break;case xe:O(f,y,M,H,V,U,p,h,T);break;default:W&1?P(f,y,M,H,V,U,p,h,T):W&6?Y(f,y,M,H,V,U,p,h,T):(W&64||W&128)&&E.process(f,y,M,H,V,U,p,h,T,Ge)}J!=null&&V?ns(J,f&&f.ref,U,y||f,!y):J==null&&f&&f.ref!=null&&ns(f.ref,null,U,f,!0)},I=(f,y,M,H)=>{if(f==null)s(y.el=i(y.children),M,H);else{const V=y.el=f.el;y.children!==f.children&&c(V,y.children)}},g=(f,y,M,H)=>{f==null?s(y.el=a(y.children||""),M,H):y.el=f.el},w=(f,y,M,H)=>{[f.el,f.anchor]=k(f.children,y,M,H,f.el,f.anchor)},v=({el:f,anchor:y},M,H)=>{let V;for(;f&&f!==y;)V=m(f),s(f,M,H),f=V;s(y,M,H)},_=({el:f,anchor:y})=>{let M;for(;f&&f!==y;)M=m(f),r(f),f=M;r(y)},P=(f,y,M,H,V,U,p,h,T)=>{if(y.type==="svg"?p="svg":y.type==="math"&&(p="mathml"),f==null)F(y,M,H,V,U,p,h,T);else{const E=f.el&&f.el._isVueCE?f.el:null;try{E&&E._beginPatch(),z(f,y,V,U,p,h,T)}finally{E&&E._endPatch()}}},F=(f,y,M,H,V,U,p,h)=>{let T,E;const{props:J,shapeFlag:W,transition:C,dirs:A}=f;if(T=f.el=l(f.type,U,J&&J.is,J),W&8?u(T,f.children):W&16&&G(f.children,T,null,H,V,Or(f,U),p,h),A&&fn(f,null,H,"created"),D(T,f,f.scopeId,p,H),J){for(const de in J)de!=="value"&&!Qn(de)&&o(T,de,null,J[de],U,H);"value"in J&&o(T,"value",null,J.value,U),(E=J.onVnodeBeforeMount)&&It(E,H,f)}A&&fn(f,null,H,"beforeMount");const ne=Pd(V,C);ne&&C.beforeEnter(T),s(T,y,M),((E=J&&J.onVnodeMounted)||ne||A)&&bt(()=>{E&&It(E,H,f),ne&&C.enter(T),A&&fn(f,null,H,"mounted")},V)},D=(f,y,M,H,V)=>{if(M&&b(f,M),H)for(let U=0;U<H.length;U++)b(f,H[U]);if(V){let U=V.subTree;if(y===U||Ia(U.type)&&(U.ssContent===y||U.ssFallback===y)){const p=V.vnode;D(f,p,p.scopeId,p.slotScopeIds,V.parent)}}},G=(f,y,M,H,V,U,p,h,T=0)=>{for(let E=T;E<f.length;E++){const J=f[E]=h?nn(f[E]):$t(f[E]);R(null,J,y,M,H,V,U,p,h)}},z=(f,y,M,H,V,U,p)=>{const h=y.el=f.el;let{patchFlag:T,dynamicChildren:E,dirs:J}=y;T|=f.patchFlag&16;const W=f.props||Me,C=y.props||Me;let A;if(M&&pn(M,!1),(A=C.onVnodeBeforeUpdate)&&It(A,M,y,f),J&&fn(y,f,M,"beforeUpdate"),M&&pn(M,!0),(W.innerHTML&&C.innerHTML==null||W.textContent&&C.textContent==null)&&u(h,""),E?ie(f.dynamicChildren,E,h,M,H,Or(y,V),U):p||j(f,y,h,null,M,H,Or(y,V),U,!1),T>0){if(T&16)ce(h,W,C,M,V);else if(T&2&&W.class!==C.class&&o(h,"class",null,C.class,V),T&4&&o(h,"style",W.style,C.style,V),T&8){const ne=y.dynamicProps;for(let de=0;de<ne.length;de++){const ve=ne[de],je=W[ve],Ue=C[ve];(Ue!==je||ve==="value")&&o(h,ve,je,Ue,V,M)}}T&1&&f.children!==y.children&&u(h,y.children)}else!p&&E==null&&ce(h,W,C,M,V);((A=C.onVnodeUpdated)||J)&&bt(()=>{A&&It(A,M,y,f),J&&fn(y,f,M,"updated")},H)},ie=(f,y,M,H,V,U,p)=>{for(let h=0;h<y.length;h++){const T=f[h],E=y[h],J=T.el&&(T.type===xe||!vn(T,E)||T.shapeFlag&198)?d(T.el):M;R(T,E,J,null,H,V,U,p,!0)}},ce=(f,y,M,H,V)=>{if(y!==M){if(y!==Me)for(const U in y)!Qn(U)&&!(U in M)&&o(f,U,y[U],null,V,H);for(const U in M){if(Qn(U))continue;const p=M[U],h=y[U];p!==h&&U!=="value"&&o(f,U,h,p,V,H)}"value"in M&&o(f,"value",y.value,M.value,V)}},O=(f,y,M,H,V,U,p,h,T)=>{const E=y.el=f?f.el:i(""),J=y.anchor=f?f.anchor:i("");let{patchFlag:W,dynamicChildren:C,slotScopeIds:A}=y;A&&(h=h?h.concat(A):A),f==null?(s(E,M,H),s(J,M,H),G(y.children||[],M,J,V,U,p,h,T)):W>0&&W&64&&C&&f.dynamicChildren&&f.dynamicChildren.length===C.length?(ie(f.dynamicChildren,C,M,V,U,p,h),(y.key!=null||V&&y===V.subTree)&&Sa(f,y,!0)):j(f,y,M,J,V,U,p,h,T)},Y=(f,y,M,H,V,U,p,h,T)=>{y.slotScopeIds=h,f==null?y.shapeFlag&512?V.ctx.activate(y,M,H,p,T):B(y,M,H,V,U,p,T):te(f,y,T)},B=(f,y,M,H,V,U,p)=>{const h=f.component=Dd(f,H,V);if(br(f)&&(h.ctx.renderer=Ge),Ud(h,!1,p),h.asyncDep){if(V&&V.registerDep(h,Q,p),!f.el){const T=h.subTree=q(nt);g(null,T,y,M),f.placeholder=T.el}}else Q(h,f,y,M,V,U,p)},te=(f,y,M)=>{const H=y.component=f.component;if(yd(f,y,M))if(H.asyncDep&&!H.asyncResolved){ee(H,y,M);return}else H.next=y,H.update();else y.el=f.el,H.vnode=y},Q=(f,y,M,H,V,U,p)=>{const h=()=>{if(f.isMounted){let{next:W,bu:C,u:A,parent:ne,vnode:de}=f;{const mt=Ea(f);if(mt){W&&(W.el=de.el,ee(f,W,p)),mt.asyncDep.then(()=>{f.isUnmounted||h()});return}}let ve=W,je;pn(f,!1),W?(W.el=de.el,ee(f,W,p)):W=de,C&&Rr(C),(je=W.props&&W.props.onVnodeBeforeUpdate)&&It(je,ne,W,de),pn(f,!0);const Ue=il(f),ct=f.subTree;f.subTree=Ue,R(ct,Ue,d(ct.el),Te(ct),f,V,U),W.el=Ue.el,ve===null&&xd(f,Ue.el),A&&bt(A,V),(je=W.props&&W.props.onVnodeUpdated)&&bt(()=>It(je,ne,W,de),V)}else{let W;const{el:C,props:A}=y,{bm:ne,m:de,parent:ve,root:je,type:Ue}=f,ct=An(y);pn(f,!1),ne&&Rr(ne),!ct&&(W=A&&A.onVnodeBeforeMount)&&It(W,ve,y),pn(f,!0);{je.ce&&je.ce._def.shadowRoot!==!1&&je.ce._injectChildStyle(Ue);const mt=f.subTree=il(f);R(null,mt,M,H,f,V,U),y.el=mt.el}if(de&&bt(de,V),!ct&&(W=A&&A.onVnodeMounted)){const mt=y;bt(()=>It(W,ve,mt),V)}(y.shapeFlag&256||ve&&An(ve.vnode)&&ve.vnode.shapeFlag&256)&&f.a&&bt(f.a,V),f.isMounted=!0,y=M=H=null}};f.scope.on();const T=f.effect=new Oi(h);f.scope.off();const E=f.update=T.run.bind(T),J=f.job=T.runIfDirty.bind(T);J.i=f,J.id=f.uid,T.scheduler=()=>Lo(J),pn(f,!0),E()},ee=(f,y,M)=>{y.component=f;const H=f.vnode.props;f.vnode=y,f.next=null,kd(f,y.props,H,M),Ed(f,y.children,M),qt(),el(f),zt()},j=(f,y,M,H,V,U,p,h,T=!1)=>{const E=f&&f.children,J=f?f.shapeFlag:0,W=y.children,{patchFlag:C,shapeFlag:A}=y;if(C>0){if(C&128){ae(E,W,M,H,V,U,p,h,T);return}else if(C&256){X(E,W,M,H,V,U,p,h,T);return}}A&8?(J&16&&We(E,V,U),W!==E&&u(M,W)):J&16?A&16?ae(E,W,M,H,V,U,p,h,T):We(E,V,U,!0):(J&8&&u(M,""),A&16&&G(W,M,H,V,U,p,h,T))},X=(f,y,M,H,V,U,p,h,T)=>{f=f||Mn,y=y||Mn;const E=f.length,J=y.length,W=Math.min(E,J);let C;for(C=0;C<W;C++){const A=y[C]=T?nn(y[C]):$t(y[C]);R(f[C],A,M,null,V,U,p,h,T)}E>J?We(f,V,U,!0,!1,W):G(y,M,H,V,U,p,h,T,W)},ae=(f,y,M,H,V,U,p,h,T)=>{let E=0;const J=y.length;let W=f.length-1,C=J-1;for(;E<=W&&E<=C;){const A=f[E],ne=y[E]=T?nn(y[E]):$t(y[E]);if(vn(A,ne))R(A,ne,M,null,V,U,p,h,T);else break;E++}for(;E<=W&&E<=C;){const A=f[W],ne=y[C]=T?nn(y[C]):$t(y[C]);if(vn(A,ne))R(A,ne,M,null,V,U,p,h,T);else break;W--,C--}if(E>W){if(E<=C){const A=C+1,ne=A<J?y[A].el:H;for(;E<=C;)R(null,y[E]=T?nn(y[E]):$t(y[E]),M,ne,V,U,p,h,T),E++}}else if(E>C)for(;E<=W;)he(f[E],V,U,!0),E++;else{const A=E,ne=E,de=new Map;for(E=ne;E<=C;E++){const ot=y[E]=T?nn(y[E]):$t(y[E]);ot.key!=null&&de.set(ot.key,E)}let ve,je=0;const Ue=C-ne+1;let ct=!1,mt=0;const dn=new Array(Ue);for(E=0;E<Ue;E++)dn[E]=0;for(E=A;E<=W;E++){const ot=f[E];if(je>=Ue){he(ot,V,U,!0);continue}let wt;if(ot.key!=null)wt=de.get(ot.key);else for(ve=ne;ve<=C;ve++)if(dn[ve-ne]===0&&vn(ot,y[ve])){wt=ve;break}wt===void 0?he(ot,V,U,!0):(dn[wt-ne]=E+1,wt>=mt?mt=wt:ct=!0,R(ot,y[wt],M,null,V,U,p,h,T),je++)}const Es=ct?Md(dn):Mn;for(ve=Es.length-1,E=Ue-1;E>=0;E--){const ot=ne+E,wt=y[ot],Rs=y[ot+1],Is=ot+1<J?Rs.el||Ra(Rs):H;dn[E]===0?R(null,wt,M,Is,V,U,p,h,T):ct&&(ve<0||E!==Es[ve]?ue(wt,M,Is,2):ve--)}}},ue=(f,y,M,H,V=null)=>{const{el:U,type:p,transition:h,children:T,shapeFlag:E}=f;if(E&6){ue(f.component.subTree,y,M,H);return}if(E&128){f.suspense.move(y,M,H);return}if(E&64){p.move(f,y,M,Ge);return}if(p===xe){s(U,y,M);for(let W=0;W<T.length;W++)ue(T[W],y,M,H);s(f.anchor,y,M);return}if(p===Nr){v(f,y,M);return}if(H!==2&&E&1&&h)if(H===0)h.beforeEnter(U),s(U,y,M),bt(()=>h.enter(U),V);else{const{leave:W,delayLeave:C,afterLeave:A}=h,ne=()=>{f.ctx.isUnmounted?r(U):s(U,y,M)},de=()=>{U._isLeaving&&U[Wt](!0),W(U,()=>{ne(),A&&A()})};C?C(U,ne,de):de()}else s(U,y,M)},he=(f,y,M,H=!1,V=!1)=>{const{type:U,props:p,ref:h,children:T,dynamicChildren:E,shapeFlag:J,patchFlag:W,dirs:C,cacheIndex:A}=f;if(W===-2&&(V=!1),h!=null&&(qt(),ns(h,null,M,f,!0),zt()),A!=null&&(y.renderCache[A]=void 0),J&256){y.ctx.deactivate(f);return}const ne=J&1&&C,de=!An(f);let ve;if(de&&(ve=p&&p.onVnodeBeforeUnmount)&&It(ve,y,f),J&6)De(f.component,M,H);else{if(J&128){f.suspense.unmount(M,H);return}ne&&fn(f,null,y,"beforeUnmount"),J&64?f.type.remove(f,y,M,Ge,H):E&&!E.hasOnce&&(U!==xe||W>0&&W&64)?We(E,y,M,!1,!0):(U===xe&&W&384||!V&&J&16)&&We(T,y,M),H&&me(f)}(de&&(ve=p&&p.onVnodeUnmounted)||ne)&&bt(()=>{ve&&It(ve,y,f),ne&&fn(f,null,y,"unmounted")},M)},me=f=>{const{type:y,el:M,anchor:H,transition:V}=f;if(y===xe){Se(M,H);return}if(y===Nr){_(f);return}const U=()=>{r(M),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(f.shapeFlag&1&&V&&!V.persisted){const{leave:p,delayLeave:h}=V,T=()=>p(M,U);h?h(f.el,U,T):T()}else U()},Se=(f,y)=>{let M;for(;f!==y;)M=m(f),r(f),f=M;r(y)},De=(f,y,M)=>{const{bum:H,scope:V,job:U,subTree:p,um:h,m:T,a:E}=f;ul(T),ul(E),H&&Rr(H),V.stop(),U&&(U.flags|=8,he(p,f,y,M)),h&&bt(h,y),bt(()=>{f.isUnmounted=!0},y)},We=(f,y,M,H=!1,V=!1,U=0)=>{for(let p=U;p<f.length;p++)he(f[p],y,M,H,V)},Te=f=>{if(f.shapeFlag&6)return Te(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const y=m(f.anchor||f.el),M=y&&y[Ku];return M?m(M):y};let rt=!1;const Ze=(f,y,M)=>{let H;f==null?y._vnode&&(he(y._vnode,null,null,!0),H=y._vnode.component):R(y._vnode||null,f,y,null,null,null,M),y._vnode=f,rt||(rt=!0,el(H),ea(),rt=!1)},Ge={p:R,um:he,m:ue,r:me,mt:B,mc:G,pc:j,pbc:ie,n:Te,o:e};return{render:Ze,hydrate:void 0,createApp:gd(Ze)}}function Or({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 pn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Sa(e,t,n=!1){const s=e.children,r=t.children;if(fe(s)&&fe(r))for(let o=0;o<s.length;o++){const l=s[o];let i=r[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[o]=nn(r[o]),i.el=l.el),!n&&i.patchFlag!==-2&&Sa(l,i)),i.type===ws&&(i.patchFlag!==-1?i.el=l.el:i.__elIndex=o+(e.type===xe?1:0)),i.type===nt&&!i.el&&(i.el=l.el)}}function Md(e){const t=e.slice(),n=[0];let s,r,o,l,i;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,l=n.length-1;o<l;)i=o+l>>1,e[n[i]]<c?o=i+1:l=i;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}function Ea(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ea(t)}function ul(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ra(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ra(t.subTree):null}const Ia=e=>e.__isSuspense;function Ld(e,t){t&&t.pendingBranch?fe(e)?t.effects.push(...e):t.effects.push(e):Vu(e)}const xe=Symbol.for("v-fgt"),ws=Symbol.for("v-txt"),nt=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),rs=[];let vt=null;function L(e=!1){rs.push(vt=e?null:[])}function $d(){rs.pop(),vt=rs[rs.length-1]||null}let cs=1;function nr(e,t=!1){cs+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Pa(e){return e.dynamicChildren=cs>0?vt||Mn:null,$d(),cs>0&&vt&&vt.push(e),e}function N(e,t,n,s,r,o){return Pa(x(e,t,n,s,r,o,!0))}function pt(e,t,n,s,r){return Pa(q(e,t,n,s,r,!0))}function us(e){return e?e.__v_isVNode===!0:!1}function vn(e,t){return e.type===t.type&&e.key===t.key}const Ma=({key:e})=>e??null,Ks=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?He(e)||Fe(e)||ge(e)?{i:st,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,s=0,r=null,o=e===xe?0:1,l=!1,i=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ma(t),ref:t&&Ks(t),scopeId:na,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:st};return i?(Fo(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=He(n)?8:16),cs>0&&!l&&vt&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&vt.push(a),a}const q=Ad;function Ad(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===od)&&(e=nt),us(e)){const i=ln(e,t,!0);return n&&Fo(i,n),cs>0&&!o&&vt&&(i.shapeFlag&6?vt[vt.indexOf(e)]=i:vt.push(i)),i.patchFlag=-2,i}if(jd(e)&&(e=e.__vccOpts),t){t=Od(t);let{class:i,style:a}=t;i&&!He(i)&&(t.class=$e(i)),Ae(a)&&(mr(a)&&!fe(a)&&(a=Je({},a)),t.style=_s(a))}const l=He(e)?1:Ia(e)?128:oa(e)?64:Ae(e)?4:ge(e)?2:0;return x(e,t,n,s,r,l,o,!0)}function Od(e){return e?mr(e)||ya(e)?Je({},e):e:null}function ln(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:i,transition:a}=e,c=t?Cn(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ma(c),ref:t&&t.ref?n&&o?fe(o)?o.concat(Ks(t)):[o,Ks(t)]:Ks(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ln(e.ssContent),ssFallback:e.ssFallback&&ln(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&as(u,a.clone(u)),u}function be(e=" ",t=0){return q(ws,null,e,t)}function pe(e="",t=!1){return t?(L(),pt(nt,null,e)):q(nt,null,e)}function $t(e){return e==null||typeof e=="boolean"?q(nt):fe(e)?q(xe,null,e.slice()):us(e)?nn(e):q(ws,null,String(e))}function nn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ln(e)}function Fo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(fe(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Fo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ya(t)?t._ctx=st:r===3&&st&&(st.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ge(t)?(t={default:t,_ctx:st},n=32):(t=String(t),s&64?(n=16,t=[be(t)]):n=8);e.children=t,e.shapeFlag|=n}function Cn(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=$e([t.class,s.class]));else if(r==="style")t.style=_s([t.style,s.style]);else if(cr(r)){const o=t[r],l=s[r];l&&o!==l&&!(fe(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function It(e,t,n,s=null){Rt(e,t,7,[n,s])}const Nd=ha();let Fd=0;function Dd(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Nd,o={uid:Fd++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wa(s,r),emitsOptions:ba(s,r),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:s.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=hd.bind(null,o),e.ce&&e.ce(o),o}let at=null;const ks=()=>at||st;let sr,no;{const e=pr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(l=>l(o)):r[0](o)}};sr=t("__VUE_INSTANCE_SETTERS__",n=>at=n),no=t("__VUE_SSR_SETTERS__",n=>ds=n)}const Ts=e=>{const t=at;return sr(e),e.scope.on(),()=>{e.scope.off(),sr(t)}},dl=()=>{at&&at.scope.off(),sr(null)};function La(e){return e.vnode.shapeFlag&4}let ds=!1;function Ud(e,t=!1,n=!1){t&&no(t);const{props:s,children:r}=e.vnode,o=La(e);wd(e,s,o,t),Sd(e,r,n||t);const l=o?Vd(e,t):void 0;return t&&no(!1),l}function Vd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ld);const{setup:s}=n;if(s){qt();const r=e.setupContext=s.length>1?Aa(e):null,o=Ts(e),l=ys(s,e,0,[e.props,r]),i=Si(l);if(zt(),o(),(i||e.sp)&&!An(e)&&da(e),i){if(l.then(dl,dl),t)return l.then(a=>{fl(e,a)}).catch(a=>{hr(a,e,0)});e.asyncDep=l}else fl(e,l)}else $a(e)}function fl(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=Ji(t)),$a(e)}function $a(e,t,n){const s=e.type;e.render||(e.render=s.render||At);{const r=Ts(e);qt();try{ad(e)}finally{zt(),r()}}}const Wd={get(e,t){return tt(e,"get",""),e[t]}};function Aa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Wd),slots:e.slots,emit:e.emit,expose:t}}function yr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ji(Eu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}})):e.proxy}function jd(e){return ge(e)&&"__vccOpts"in e}const K=(e,t)=>Ou(e,t,ds);function Do(e,t,n){try{nr(-1);const s=arguments.length;return s===2?Ae(t)&&!fe(t)?us(t)?q(e,null,[t]):q(e,t):q(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&us(n)&&(n=[n]),q(e,t,n))}finally{nr(1)}}const Hd="3.5.27";let so;const pl=typeof window<"u"&&window.trustedTypes;if(pl)try{so=pl.createPolicy("vue",{createHTML:e=>e})}catch{}const Oa=so?e=>so.createHTML(e):e=>e,Bd="http://www.w3.org/2000/svg",Kd="http://www.w3.org/1998/Math/MathML",Vt=typeof document<"u"?document:null,gl=Vt&&Vt.createElement("template"),Gd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Vt.createElementNS(Bd,e):t==="mathml"?Vt.createElementNS(Kd,e):n?Vt.createElement(e,{is:n}):Vt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Vt.createTextNode(e),createComment:e=>Vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const l=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{gl.innerHTML=Oa(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=gl.content;if(s==="svg"||s==="mathml"){const a=i.firstChild;for(;a.firstChild;)i.appendChild(a.firstChild);i.removeChild(a)}t.insertBefore(i,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qt="transition",Bn="animation",fs=Symbol("_vtc"),Na={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qd=Je({},la,Na),zd=e=>(e.displayName="Transition",e.props=qd,e),Yd=zd((e,{slots:t})=>Do(zu,Jd(e),t)),gn=(e,t=[])=>{fe(e)?e.forEach(n=>n(...t)):e&&e(...t)},ml=e=>e?fe(e)?e.some(t=>t.length>1):e.length>1:!1;function Jd(e){const t={};for(const O in e)O in Na||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=l,appearToClass:u=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,k=Xd(r),R=k&&k[0],I=k&&k[1],{onBeforeEnter:g,onEnter:w,onEnterCancelled:v,onLeave:_,onLeaveCancelled:P,onBeforeAppear:F=g,onAppear:D=w,onAppearCancelled:G=v}=t,z=(O,Y,B,te)=>{O._enterCancelled=te,mn(O,Y?u:i),mn(O,Y?c:l),B&&B()},ie=(O,Y)=>{O._isLeaving=!1,mn(O,d),mn(O,b),mn(O,m),Y&&Y()},ce=O=>(Y,B)=>{const te=O?D:w,Q=()=>z(Y,O,B);gn(te,[Y,Q]),hl(()=>{mn(Y,O?a:o),Ft(Y,O?u:i),ml(te)||bl(Y,s,R,Q)})};return Je(t,{onBeforeEnter(O){gn(g,[O]),Ft(O,o),Ft(O,l)},onBeforeAppear(O){gn(F,[O]),Ft(O,a),Ft(O,c)},onEnter:ce(!1),onAppear:ce(!0),onLeave(O,Y){O._isLeaving=!0;const B=()=>ie(O,Y);Ft(O,d),O._enterCancelled?(Ft(O,m),yl(O)):(yl(O),Ft(O,m)),hl(()=>{O._isLeaving&&(mn(O,d),Ft(O,b),ml(_)||bl(O,s,I,B))}),gn(_,[O,B])},onEnterCancelled(O){z(O,!1,void 0,!0),gn(v,[O])},onAppearCancelled(O){z(O,!0,void 0,!0),gn(G,[O])},onLeaveCancelled(O){ie(O),gn(P,[O])}})}function Xd(e){if(e==null)return null;if(Ae(e))return[Fr(e.enter),Fr(e.leave)];{const t=Fr(e);return[t,t]}}function Fr(e){return Qc(e)}function Ft(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[fs]||(e[fs]=new Set)).add(t)}function mn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[fs];n&&(n.delete(t),n.size||(e[fs]=void 0))}function hl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Qd=0;function bl(e,t,n,s){const r=e._endId=++Qd,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:l,timeout:i,propCount:a}=Zd(e,t);if(!l)return s();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,m),o()},m=b=>{b.target===e&&++u>=a&&d()};setTimeout(()=>{u<a&&d()},i+1),e.addEventListener(c,m)}function Zd(e,t){const n=window.getComputedStyle(e),s=k=>(n[k]||"").split(", "),r=s(`${Qt}Delay`),o=s(`${Qt}Duration`),l=vl(r,o),i=s(`${Bn}Delay`),a=s(`${Bn}Duration`),c=vl(i,a);let u=null,d=0,m=0;t===Qt?l>0&&(u=Qt,d=l,m=o.length):t===Bn?c>0&&(u=Bn,d=c,m=a.length):(d=Math.max(l,c),u=d>0?l>c?Qt:Bn:null,m=u?u===Qt?o.length:a.length:0);const b=u===Qt&&/\b(?:transform|all)(?:,|$)/.test(s(`${Qt}Property`).toString());return{type:u,timeout:d,propCount:m,hasTransform:b}}function vl(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>_l(n)+_l(e[s])))}function _l(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yl(e){return(e?e.ownerDocument:document).body.offsetHeight}function ef(e,t,n){const s=e[fs];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const rr=Symbol("_vod"),Fa=Symbol("_vsh"),Os={name:"show",beforeMount(e,{value:t},{transition:n}){e[rr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Kn(e,!0),s.enter(e)):s.leave(e,()=>{Kn(e,!1)}):Kn(e,t))},beforeUnmount(e,{value:t}){Kn(e,t)}};function Kn(e,t){e.style.display=t?e[rr]:"none",e[Fa]=!t}const tf=Symbol(""),nf=/(?:^|;)\s*display\s*:/;function sf(e,t,n){const s=e.style,r=He(n);let o=!1;if(n&&!r){if(t)if(He(t))for(const l of t.split(";")){const i=l.slice(0,l.indexOf(":")).trim();n[i]==null&&Gs(s,i,"")}else for(const l in t)n[l]==null&&Gs(s,l,"");for(const l in n)l==="display"&&(o=!0),Gs(s,l,n[l])}else if(r){if(t!==n){const l=s[tf];l&&(n+=";"+l),s.cssText=n,o=nf.test(n)}}else t&&e.removeAttribute("style");rr in e&&(e[rr]=o?s.display:"",e[Fa]&&(s.display="none"))}const xl=/\s*!important$/;function Gs(e,t,n){if(fe(n))n.forEach(s=>Gs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=rf(e,t);xl.test(n)?e.setProperty(wn(s),n.replace(xl,""),"important"):e[s]=n}}const wl=["Webkit","Moz","ms"],Dr={};function rf(e,t){const n=Dr[t];if(n)return n;let s=on(t);if(s!=="filter"&&s in e)return Dr[t]=s;s=Ii(s);for(let r=0;r<wl.length;r++){const o=wl[r]+s;if(o in e)return Dr[t]=o}return t}const kl="http://www.w3.org/1999/xlink";function Tl(e,t,n,s,r,o=ru(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(kl,t.slice(6,t.length)):e.setAttributeNS(kl,t,n):n==null||o&&!Mi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Jt(n)?String(n):n)}function Cl(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Oa(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(i!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Mi(n):n==null&&i==="string"?(n="",l=!0):i==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function of(e,t,n,s){e.addEventListener(t,n,s)}function lf(e,t,n,s){e.removeEventListener(t,n,s)}const Sl=Symbol("_vei");function af(e,t,n,s,r=null){const o=e[Sl]||(e[Sl]={}),l=o[t];if(s&&l)l.value=s;else{const[i,a]=cf(t);if(s){const c=o[t]=ff(s,r);of(e,i,c,a)}else l&&(lf(e,i,l,a),o[t]=void 0)}}const El=/(?:Once|Passive|Capture)$/;function cf(e){let t;if(El.test(e)){t={};let s;for(;s=e.match(El);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wn(e.slice(2)),t]}let Ur=0;const uf=Promise.resolve(),df=()=>Ur||(uf.then(()=>Ur=0),Ur=Date.now());function ff(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Rt(pf(s,n.value),t,5,[s])};return n.value=e,n.attached=df(),n}function pf(e,t){if(fe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Rl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gf=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?ef(e,s,l):t==="style"?sf(e,n,s):cr(t)?ko(t)||af(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):mf(e,t,s,l))?(Cl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Tl(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!He(s))?Cl(e,on(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Tl(e,t,s,l))};function mf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rl(t)&&ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rl(t)&&He(n)?!1:t in e}const hf=["ctrl","shift","alt","meta"],bf={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)=>hf.some(n=>e[`${n}Key`]&&!t.includes(n))},Ns=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let l=0;l<t.length;l++){const i=bf[t[l]];if(i&&i(r,t))return}return e(r,...o)}))},vf=Je({patchProp:gf},Gd);let Il;function _f(){return Il||(Il=Rd(vf))}const yf=((...e)=>{const t=_f().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=wf(s);if(!r)return;const o=t._component;!ge(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,xf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function xf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wf(e){return He(e)?document.querySelector(e):e}function kf(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const or=typeof window<"u",an=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Tf=(e,t,n)=>Cf({l:e,k:t,s:n}),Cf=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ke=e=>typeof e=="number"&&isFinite(e),Sf=e=>Uo(e)==="[object Date]",Fn=e=>Uo(e)==="[object RegExp]",xr=e=>ye(e)&&Object.keys(e).length===0,Ye=Object.assign,Ef=Object.create,Pe=(e=null)=>Ef(e);let Pl;const _n=()=>Pl||(Pl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Pe());function Ml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Ll(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rf(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${Ll(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${Ll(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript:")}),e}const If=Object.prototype.hasOwnProperty;function Ct(e,t){return If.call(e,t)}const Ve=Array.isArray,Ne=e=>typeof e=="function",Z=e=>typeof e=="string",ke=e=>typeof e=="boolean",Ce=e=>e!==null&&typeof e=="object",Pf=e=>Ce(e)&&Ne(e.then)&&Ne(e.catch),Da=Object.prototype.toString,Uo=e=>Da.call(e),ye=e=>Uo(e)==="[object Object]",Mf=e=>e==null?"":Ve(e)||ye(e)&&e.toString===Da?JSON.stringify(e,null,2):String(e);function Vo(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const Fs=e=>!Ce(e)||Ve(e);function qs(e,t){if(Fs(e)||Fs(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Ce(s[o])&&!Ce(r[o])&&(r[o]=Array.isArray(s[o])?[]:Pe()),Fs(r[o])||Fs(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function Lf(e,t,n){return{line:e,column:t,offset:n}}function ro(e,t,n){return{start:e,end:t}}const Ee={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},$f=17;function wr(e,t,n={}){const{domain:s,messages:r,args:o}=n,l=e,i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=s,i}function Af(e){throw e}const Pt=" ",Of="\r",et=`
|
|
2
|
+
`,Nf="\u2028",Ff="\u2029";function Df(e){const t=e;let n=0,s=1,r=1,o=0;const l=D=>t[D]===Of&&t[D+1]===et,i=D=>t[D]===et,a=D=>t[D]===Ff,c=D=>t[D]===Nf,u=D=>l(D)||i(D)||a(D)||c(D),d=()=>n,m=()=>s,b=()=>r,k=()=>o,R=D=>l(D)||a(D)||c(D)?et:t[D],I=()=>R(n),g=()=>R(n+o);function w(){return o=0,u(n)&&(s++,r=0),l(n)&&n++,n++,r++,t[n]}function v(){return l(n+o)&&o++,o++,t[n+o]}function _(){n=0,s=1,r=1,o=0}function P(D=0){o=D}function F(){const D=n+o;for(;D!==n;)w();o=0}return{index:d,line:m,column:b,peekOffset:k,charAt:R,currentChar:I,currentPeek:g,next:w,peek:v,reset:_,resetPeek:P,skipToPeek:F}}const Dt=void 0,Uf=".",$l="'",Vf="tokenizer";function Wf(e,t={}){const n=t.location!==!1,s=Df(e),r=()=>s.index(),o=()=>Lf(s.line(),s.column(),s.index()),l=o(),i=r(),a={currentType:13,offset:i,startLoc:l,endLoc:l,lastType:13,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>a,{onError:u}=t;function d(p,h,T,...E){const J=c();if(h.column+=T,h.offset+=T,u){const W=n?ro(J.startLoc,h):null,C=wr(p,W,{domain:Vf,args:E});u(C)}}function m(p,h,T){p.endLoc=o(),p.currentType=h;const E={type:h};return n&&(E.loc=ro(p.startLoc,p.endLoc)),T!=null&&(E.value=T),E}const b=p=>m(p,13);function k(p,h){return p.currentChar()===h?(p.next(),h):(d(Ee.EXPECTED_TOKEN,o(),0,h),"")}function R(p){let h="";for(;p.currentPeek()===Pt||p.currentPeek()===et;)h+=p.currentPeek(),p.peek();return h}function I(p){const h=R(p);return p.skipToPeek(),h}function g(p){if(p===Dt)return!1;const h=p.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function w(p){if(p===Dt)return!1;const h=p.charCodeAt(0);return h>=48&&h<=57}function v(p,h){const{currentType:T}=h;if(T!==2)return!1;R(p);const E=g(p.currentPeek());return p.resetPeek(),E}function _(p,h){const{currentType:T}=h;if(T!==2)return!1;R(p);const E=p.currentPeek()==="-"?p.peek():p.currentPeek(),J=w(E);return p.resetPeek(),J}function P(p,h){const{currentType:T}=h;if(T!==2)return!1;R(p);const E=p.currentPeek()===$l;return p.resetPeek(),E}function F(p,h){const{currentType:T}=h;if(T!==7)return!1;R(p);const E=p.currentPeek()===".";return p.resetPeek(),E}function D(p,h){const{currentType:T}=h;if(T!==8)return!1;R(p);const E=g(p.currentPeek());return p.resetPeek(),E}function G(p,h){const{currentType:T}=h;if(!(T===7||T===11))return!1;R(p);const E=p.currentPeek()===":";return p.resetPeek(),E}function z(p,h){const{currentType:T}=h;if(T!==9)return!1;const E=()=>{const W=p.currentPeek();return W==="{"?g(p.peek()):W==="@"||W==="|"||W===":"||W==="."||W===Pt||!W?!1:W===et?(p.peek(),E()):ce(p,!1)},J=E();return p.resetPeek(),J}function ie(p){R(p);const h=p.currentPeek()==="|";return p.resetPeek(),h}function ce(p,h=!0){const T=(J=!1,W="")=>{const C=p.currentPeek();return C==="{"||C==="@"||!C?J:C==="|"?!(W===Pt||W===et):C===Pt?(p.peek(),T(!0,Pt)):C===et?(p.peek(),T(!0,et)):!0},E=T();return h&&p.resetPeek(),E}function O(p,h){const T=p.currentChar();return T===Dt?Dt:h(T)?(p.next(),T):null}function Y(p){const h=p.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function B(p){return O(p,Y)}function te(p){const h=p.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function Q(p){return O(p,te)}function ee(p){const h=p.charCodeAt(0);return h>=48&&h<=57}function j(p){return O(p,ee)}function X(p){const h=p.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function ae(p){return O(p,X)}function ue(p){let h="",T="";for(;h=j(p);)T+=h;return T}function he(p){let h="";for(;;){const T=p.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===Pt||T===et)if(ce(p))h+=T,p.next();else{if(ie(p))break;h+=T,p.next()}else h+=T,p.next()}return h}function me(p){I(p);let h="",T="";for(;h=Q(p);)T+=h;const E=p.currentChar();if(E&&E!=="}"&&E!==Dt&&E!==Pt&&E!==et&&E!==" "){const J=Ge(p);return d(Ee.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T+J),T+J}return p.currentChar()===Dt&&d(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T}function Se(p){I(p);let h="";return p.currentChar()==="-"?(p.next(),h+=`-${ue(p)}`):h+=ue(p),p.currentChar()===Dt&&d(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),h}function De(p){return p!==$l&&p!==et}function We(p){I(p),k(p,"'");let h="",T="";for(;h=O(p,De);)h==="\\"?T+=Te(p):T+=h;const E=p.currentChar();return E===et||E===Dt?(d(Ee.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),E===et&&(p.next(),k(p,"'")),T):(k(p,"'"),T)}function Te(p){const h=p.currentChar();switch(h){case"\\":case"'":return p.next(),`\\${h}`;case"u":return rt(p,h,4);case"U":return rt(p,h,6);default:return d(Ee.UNKNOWN_ESCAPE_SEQUENCE,o(),0,h),""}}function rt(p,h,T){k(p,h);let E="";for(let J=0;J<T;J++){const W=ae(p);if(!W){d(Ee.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${h}${E}${p.currentChar()}`);break}E+=W}return`\\${h}${E}`}function Ze(p){return p!=="{"&&p!=="}"&&p!==Pt&&p!==et}function Ge(p){I(p);let h="",T="";for(;h=O(p,Ze);)T+=h;return T}function xt(p){let h="",T="";for(;h=B(p);)T+=h;return T}function f(p){const h=T=>{const E=p.currentChar();return E==="{"||E==="@"||E==="|"||E==="("||E===")"||!E||E===Pt?T:(T+=E,p.next(),h(T))};return h("")}function y(p){I(p);const h=k(p,"|");return I(p),h}function M(p,h){let T=null;switch(p.currentChar()){case"{":return h.braceNest>=1&&d(Ee.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),p.next(),T=m(h,2,"{"),I(p),h.braceNest++,T;case"}":return h.braceNest>0&&h.currentType===2&&d(Ee.EMPTY_PLACEHOLDER,o(),0),p.next(),T=m(h,3,"}"),h.braceNest--,h.braceNest>0&&I(p),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),T;case"@":return h.braceNest>0&&d(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T=H(p,h)||b(h),h.braceNest=0,T;default:{let J=!0,W=!0,C=!0;if(ie(p))return h.braceNest>0&&d(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),T=m(h,1,y(p)),h.braceNest=0,h.inLinked=!1,T;if(h.braceNest>0&&(h.currentType===4||h.currentType===5||h.currentType===6))return d(Ee.UNTERMINATED_CLOSING_BRACE,o(),0),h.braceNest=0,V(p,h);if(J=v(p,h))return T=m(h,4,me(p)),I(p),T;if(W=_(p,h))return T=m(h,5,Se(p)),I(p),T;if(C=P(p,h))return T=m(h,6,We(p)),I(p),T;if(!J&&!W&&!C)return T=m(h,12,Ge(p)),d(Ee.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T.value),I(p),T;break}}return T}function H(p,h){const{currentType:T}=h;let E=null;const J=p.currentChar();switch((T===7||T===8||T===11||T===9)&&(J===et||J===Pt)&&d(Ee.INVALID_LINKED_FORMAT,o(),0),J){case"@":return p.next(),E=m(h,7,"@"),h.inLinked=!0,E;case".":return I(p),p.next(),m(h,8,".");case":":return I(p),p.next(),m(h,9,":");default:return ie(p)?(E=m(h,1,y(p)),h.braceNest=0,h.inLinked=!1,E):F(p,h)||G(p,h)?(I(p),H(p,h)):D(p,h)?(I(p),m(h,11,xt(p))):z(p,h)?(I(p),J==="{"?M(p,h)||E:m(h,10,f(p))):(T===7&&d(Ee.INVALID_LINKED_FORMAT,o(),0),h.braceNest=0,h.inLinked=!1,V(p,h))}}function V(p,h){let T={type:13};if(h.braceNest>0)return M(p,h)||b(h);if(h.inLinked)return H(p,h)||b(h);switch(p.currentChar()){case"{":return M(p,h)||b(h);case"}":return d(Ee.UNBALANCED_CLOSING_BRACE,o(),0),p.next(),m(h,3,"}");case"@":return H(p,h)||b(h);default:{if(ie(p))return T=m(h,1,y(p)),h.braceNest=0,h.inLinked=!1,T;if(ce(p))return m(h,0,he(p));break}}return T}function U(){const{currentType:p,offset:h,startLoc:T,endLoc:E}=a;return a.lastType=p,a.lastOffset=h,a.lastStartLoc=T,a.lastEndLoc=E,a.offset=r(),a.startLoc=o(),s.currentChar()===Dt?m(a,13):V(s,a)}return{nextToken:U,currentOffset:r,currentPosition:o,context:c}}const jf="parser",Hf=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Bf(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Kf(e={}){const t=e.location!==!1,{onError:n}=e;function s(g,w,v,_,...P){const F=g.currentPosition();if(F.offset+=_,F.column+=_,n){const D=t?ro(v,F):null,G=wr(w,D,{domain:jf,args:P});n(G)}}function r(g,w,v){const _={type:g};return t&&(_.start=w,_.end=w,_.loc={start:v,end:v}),_}function o(g,w,v,_){t&&(g.end=w,g.loc&&(g.loc.end=v))}function l(g,w){const v=g.context(),_=r(3,v.offset,v.startLoc);return _.value=w,o(_,g.currentOffset(),g.currentPosition()),_}function i(g,w){const v=g.context(),{lastOffset:_,lastStartLoc:P}=v,F=r(5,_,P);return F.index=parseInt(w,10),g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function a(g,w){const v=g.context(),{lastOffset:_,lastStartLoc:P}=v,F=r(4,_,P);return F.key=w,g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function c(g,w){const v=g.context(),{lastOffset:_,lastStartLoc:P}=v,F=r(9,_,P);return F.value=w.replace(Hf,Bf),g.nextToken(),o(F,g.currentOffset(),g.currentPosition()),F}function u(g){const w=g.nextToken(),v=g.context(),{lastOffset:_,lastStartLoc:P}=v,F=r(8,_,P);return w.type!==11?(s(g,Ee.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),F.value="",o(F,_,P),{nextConsumeToken:w,node:F}):(w.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,Mt(w)),F.value=w.value||"",o(F,g.currentOffset(),g.currentPosition()),{node:F})}function d(g,w){const v=g.context(),_=r(7,v.offset,v.startLoc);return _.value=w,o(_,g.currentOffset(),g.currentPosition()),_}function m(g){const w=g.context(),v=r(6,w.offset,w.startLoc);let _=g.nextToken();if(_.type===8){const P=u(g);v.modifier=P.node,_=P.nextConsumeToken||g.nextToken()}switch(_.type!==9&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(_)),_=g.nextToken(),_.type===2&&(_=g.nextToken()),_.type){case 10:_.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(_)),v.key=d(g,_.value||"");break;case 4:_.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(_)),v.key=a(g,_.value||"");break;case 5:_.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(_)),v.key=i(g,_.value||"");break;case 6:_.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(_)),v.key=c(g,_.value||"");break;default:{s(g,Ee.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const P=g.context(),F=r(7,P.offset,P.startLoc);return F.value="",o(F,P.offset,P.startLoc),v.key=F,o(v,P.offset,P.startLoc),{nextConsumeToken:_,node:v}}}return o(v,g.currentOffset(),g.currentPosition()),{node:v}}function b(g){const w=g.context(),v=w.currentType===1?g.currentOffset():w.offset,_=w.currentType===1?w.endLoc:w.startLoc,P=r(2,v,_);P.items=[];let F=null;do{const z=F||g.nextToken();switch(F=null,z.type){case 0:z.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(z)),P.items.push(l(g,z.value||""));break;case 5:z.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(z)),P.items.push(i(g,z.value||""));break;case 4:z.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(z)),P.items.push(a(g,z.value||""));break;case 6:z.value==null&&s(g,Ee.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Mt(z)),P.items.push(c(g,z.value||""));break;case 7:{const ie=m(g);P.items.push(ie.node),F=ie.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const D=w.currentType===1?w.lastOffset:g.currentOffset(),G=w.currentType===1?w.lastEndLoc:g.currentPosition();return o(P,D,G),P}function k(g,w,v,_){const P=g.context();let F=_.items.length===0;const D=r(1,w,v);D.cases=[],D.cases.push(_);do{const G=b(g);F||(F=G.items.length===0),D.cases.push(G)}while(P.currentType!==13);return F&&s(g,Ee.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),o(D,g.currentOffset(),g.currentPosition()),D}function R(g){const w=g.context(),{offset:v,startLoc:_}=w,P=b(g);return w.currentType===13?P:k(g,v,_,P)}function I(g){const w=Wf(g,Ye({},e)),v=w.context(),_=r(0,v.offset,v.startLoc);return t&&_.loc&&(_.loc.source=g),_.body=R(w),e.onCacheKey&&(_.cacheKey=e.onCacheKey(g)),v.currentType!==13&&s(w,Ee.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,g[v.offset]||""),o(_,w.currentOffset(),w.currentPosition()),_}return{parse:I}}function Mt(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 Gf(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Al(e,t){for(let n=0;n<e.length;n++)Wo(e[n],t)}function Wo(e,t){switch(e.type){case 1:Al(e.cases,t),t.helper("plural");break;case 2:Al(e.items,t);break;case 6:{Wo(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function qf(e,t={}){const n=Gf(e);n.helper("normalize"),e.body&&Wo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function zf(e){const t=e.body;return t.type===2?Ol(t):t.cases.forEach(n=>Ol(n)),e}function Ol(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Vo(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function Pn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Pn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Pn(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Pn(t.key),t.k=t.key,delete t.key,t.modifier&&(Pn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Yf(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const i=()=>l;function a(R,I){l.code+=R}function c(R,I=!0){const g=I?s:"";a(r?g+" ".repeat(R):g)}function u(R=!0){const I=++l.indentLevel;R&&c(I)}function d(R=!0){const I=--l.indentLevel;R&&c(I)}function m(){c(l.indentLevel)}return{context:i,push:a,indent:u,deindent:d,newline:m,helper:R=>`_${R}`,needIndent:()=>l.needIndent}}function Jf(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Dn(e,t.key),t.modifier?(e.push(", "),Dn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Xf(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(Dn(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function Qf(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(Dn(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function Zf(e,t){t.body?Dn(e,t.body):e.push("null")}function Dn(e,t){const{helper:n}=e;switch(t.type){case 0:Zf(e,t);break;case 1:Qf(e,t);break;case 2:Xf(e,t);break;case 6:Jf(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const ep=(e,t={})=>{const n=Z(t.mode)?t.mode:"normal",s=Z(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
3
|
+
`,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],i=Yf(e,{filename:s,breakLineCode:r,needIndent:o});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(o),l.length>0&&(i.push(`const { ${Vo(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),i.newline()),i.push("return "),Dn(i,e),i.deindent(o),i.push("}"),delete e.helpers;const{code:a,map:c}=i.context();return{ast:e,code:a,map:c?c.toJSON():void 0}};function tp(e,t={}){const n=Ye({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,i=Kf(n).parse(e);return s?(o&&zf(i),r&&Pn(i),{ast:i,code:""}):(qf(i,n),ep(i,n))}function np(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_n().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_n().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Ot(e){return Ce(e)&&jo(e)===0&&(Ct(e,"b")||Ct(e,"body"))}const Ua=["b","body"];function sp(e){return cn(e,Ua)}const Va=["c","cases"];function rp(e){return cn(e,Va,[])}const Wa=["s","static"];function op(e){return cn(e,Wa)}const ja=["i","items"];function lp(e){return cn(e,ja,[])}const Ha=["t","type"];function jo(e){return cn(e,Ha)}const Ba=["v","value"];function Ds(e,t){const n=cn(e,Ba);if(n!=null)return n;throw ps(t)}const Ka=["m","modifier"];function ip(e){return cn(e,Ka)}const Ga=["k","key"];function ap(e){const t=cn(e,Ga);if(t)return t;throw ps(6)}function cn(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(Ct(e,r)&&e[r]!=null)return e[r]}return n}const qa=[...Ua,...Va,...Wa,...ja,...Ga,...Ka,...Ba,...Ha];function ps(e){return new Error(`unhandled node type: ${e}`)}function Vr(e){return n=>cp(n,e)}function cp(e,t){const n=sp(t);if(n==null)throw ps(0);if(jo(n)===1){const o=rp(n);return e.plural(o.reduce((l,i)=>[...l,Nl(e,i)],[]))}else return Nl(e,n)}function Nl(e,t){const n=op(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=lp(t).reduce((r,o)=>[...r,oo(e,o)],[]);return e.normalize(s)}}function oo(e,t){const n=jo(t);switch(n){case 3:return Ds(t,n);case 9:return Ds(t,n);case 4:{const s=t;if(Ct(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(Ct(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw ps(n)}case 5:{const s=t;if(Ct(s,"i")&&Ke(s.i))return e.interpolate(e.list(s.i));if(Ct(s,"index")&&Ke(s.index))return e.interpolate(e.list(s.index));throw ps(n)}case 6:{const s=t,r=ip(s),o=ap(s);return e.linked(oo(e,o),r?oo(e,r):void 0,e.type)}case 7:return Ds(t,n);case 8:return Ds(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const up=e=>e;let Us=Pe();function dp(e,t={}){let n=!1;const s=t.onError||Af;return t.onError=r=>{n=!0,s(r)},{...tp(e,t),detectError:n}}function fp(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Z(e)){ke(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||up)(e),r=Us[s];if(r)return r;const{ast:o,detectError:l}=dp(e,{...t,location:!1,jit:!0}),i=Vr(o);return l?i:Us[s]=i}else{const n=e.cacheKey;if(n){const s=Us[n];return s||(Us[n]=Vr(e))}else return Vr(e)}}let gs=null;function pp(e){gs=e}function gp(e,t,n){gs&&gs.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const mp=hp("function:translate");function hp(e){return t=>gs&&gs.emit(e,t)}const Kt={INVALID_ARGUMENT:$f,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},bp=24;function Gt(e){return wr(e,null,void 0)}function Ho(e,t){return t.locale!=null?Fl(t.locale):Fl(e.locale)}let Wr;function Fl(e){if(Z(e))return e;if(Ne(e)){if(e.resolvedOnce&&Wr!=null)return Wr;if(e.constructor.name==="Function"){const t=e();if(Pf(t))throw Gt(Kt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Wr=t}else throw Gt(Kt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gt(Kt.NOT_SUPPORT_LOCALE_TYPE)}function vp(e,t,n){return[...new Set([n,...Ve(t)?t:Ce(t)?Object.keys(t):Z(t)?[t]:[n]])]}function za(e,t,n){const s=Z(n)?n:ms,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let l=[n];for(;Ve(l);)l=Dl(o,l,t);const i=Ve(t)||!ye(t)?t:t.default?t.default:null;l=Z(i)?[i]:i,Ve(l)&&Dl(o,l,!1),r.__localeChainCache.set(s,o)}return o}function Dl(e,t,n){let s=!0;for(let r=0;r<t.length&&ke(s);r++){const o=t[r];Z(o)&&(s=_p(e,t[r],n))}return s}function _p(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=yp(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function yp(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Ve(n)||ye(n))&&n[r]&&(s=n[r])}return s}const un=[];un[0]={w:[0],i:[3,0],"[":[4],o:[7]};un[1]={w:[1],".":[2],"[":[4],o:[7]};un[2]={w:[2],i:[3,0],0:[3,0]};un[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};un[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};un[5]={"'":[4,0],o:8,l:[5,0]};un[6]={'"':[4,0],o:8,l:[6,0]};const xp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function wp(e){return xp.test(e)}function kp(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Tp(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Cp(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:wp(t)?kp(t):"*"+t}function Sp(e){const t=[];let n=-1,s=0,r=0,o,l,i,a,c,u,d;const m=[];m[0]=()=>{l===void 0?l=i:l+=i},m[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},m[2]=()=>{m[0](),r++},m[3]=()=>{if(r>0)r--,s=4,m[0]();else{if(r=0,l===void 0||(l=Cp(l),l===!1))return!1;m[1]()}};function b(){const k=e[n+1];if(s===5&&k==="'"||s===6&&k==='"')return n++,i="\\"+k,m[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&b())){if(a=Tp(o),d=un[s],c=d[a]||d.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=m[c[1]],u&&(i=o,u()===!1))))return;if(s===7)return t}}const Ul=new Map;function Ep(e,t){return Ce(e)?e[t]:null}function Rp(e,t){if(!Ce(e))return null;let n=Ul.get(t);if(n||(n=Sp(t),n&&Ul.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const l=n[o];if(qa.includes(l)&&Ot(r))return null;const i=r[l];if(i===void 0||Ne(r))return null;r=i,o++}return r}const Ip="11.2.8",kr=-1,ms="en-US",Vl="",Wl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Pp(){return{upper:(e,t)=>t==="text"&&Z(e)?e.toUpperCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Z(e)?e.toLowerCase():t==="vnode"&&Ce(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Z(e)?Wl(e):t==="vnode"&&Ce(e)&&"__v_isVNode"in e?Wl(e.children):e}}let Ya;function Mp(e){Ya=e}let Ja;function Lp(e){Ja=e}let Xa;function $p(e){Xa=e}let Qa=null;const Ap=e=>{Qa=e},Op=()=>Qa;let Za=null;const jl=e=>{Za=e},Np=()=>Za;let Hl=0;function Fp(e={}){const t=Ne(e.onWarn)?e.onWarn:kf,n=Z(e.version)?e.version:Ip,s=Z(e.locale)||Ne(e.locale)?e.locale:ms,r=Ne(s)?ms:s,o=Ve(e.fallbackLocale)||ye(e.fallbackLocale)||Z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,l=ye(e.messages)?e.messages:jr(r),i=ye(e.datetimeFormats)?e.datetimeFormats:jr(r),a=ye(e.numberFormats)?e.numberFormats:jr(r),c=Ye(Pe(),e.modifiers,Pp()),u=e.pluralRules||Pe(),d=Ne(e.missing)?e.missing:null,m=ke(e.missingWarn)||Fn(e.missingWarn)?e.missingWarn:!0,b=ke(e.fallbackWarn)||Fn(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,R=!!e.unresolving,I=Ne(e.postTranslation)?e.postTranslation:null,g=ye(e.processor)?e.processor:null,w=ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,_=Ne(e.messageCompiler)?e.messageCompiler:Ya,P=Ne(e.messageResolver)?e.messageResolver:Ja||Ep,F=Ne(e.localeFallbacker)?e.localeFallbacker:Xa||vp,D=Ce(e.fallbackContext)?e.fallbackContext:void 0,G=e,z=Ce(G.__datetimeFormatters)?G.__datetimeFormatters:new Map,ie=Ce(G.__numberFormatters)?G.__numberFormatters:new Map,ce=Ce(G.__meta)?G.__meta:{};Hl++;const O={version:n,cid:Hl,locale:s,fallbackLocale:o,messages:l,modifiers:c,pluralRules:u,missing:d,missingWarn:m,fallbackWarn:b,fallbackFormat:k,unresolving:R,postTranslation:I,processor:g,warnHtmlMessage:w,escapeParameter:v,messageCompiler:_,messageResolver:P,localeFallbacker:F,fallbackContext:D,onWarn:t,__meta:ce};return O.datetimeFormats=i,O.numberFormats=a,O.__datetimeFormatters=z,O.__numberFormatters=ie,__INTLIFY_PROD_DEVTOOLS__&&gp(O,n,ce),O}const jr=e=>({[e]:Pe()});function Bo(e,t,n,s,r){const{missing:o,onWarn:l}=e;if(o!==null){const i=o(e,n,t,r);return Z(i)?i:t}else return t}function Gn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Dp(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Up(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Dp(e,t[s]))return!0;return!1}function Bl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:i}=e,[a,c,u,d]=lo(...t),m=ke(u.missingWarn)?u.missingWarn:e.missingWarn;ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,k=Ho(e,u),R=l(e,r,k);if(!Z(a)||a==="")return new Intl.DateTimeFormat(k,d).format(c);let I={},g,w=null;const v="datetime format";for(let F=0;F<R.length&&(g=R[F],I=n[g]||{},w=I[a],!ye(w));F++)Bo(e,a,g,m,v);if(!ye(w)||!Z(g))return s?kr:a;let _=`${g}__${a}`;xr(d)||(_=`${_}__${JSON.stringify(d)}`);let P=i.get(_);return P||(P=new Intl.DateTimeFormat(g,Ye({},w,d)),i.set(_,P)),b?P.formatToParts(c):P.format(c)}const ec=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function lo(...e){const[t,n,s,r]=e,o=Pe();let l=Pe(),i;if(Z(t)){const a=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Gt(Kt.INVALID_ISO_DATE_ARGUMENT);const c=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();i=new Date(c);try{i.toISOString()}catch{throw Gt(Kt.INVALID_ISO_DATE_ARGUMENT)}}else if(Sf(t)){if(isNaN(t.getTime()))throw Gt(Kt.INVALID_DATE_ARGUMENT);i=t}else if(Ke(t))i=t;else throw Gt(Kt.INVALID_ARGUMENT);return Z(n)?o.key=n:ye(n)&&Object.keys(n).forEach(a=>{ec.includes(a)?l[a]=n[a]:o[a]=n[a]}),Z(s)?o.locale=s:ye(s)&&(l=s),ye(r)&&(l=r),[o.key||"",i,o,l]}function Kl(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function Gl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:i}=e,[a,c,u,d]=io(...t),m=ke(u.missingWarn)?u.missingWarn:e.missingWarn;ke(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,k=Ho(e,u),R=l(e,r,k);if(!Z(a)||a==="")return new Intl.NumberFormat(k,d).format(c);let I={},g,w=null;const v="number format";for(let F=0;F<R.length&&(g=R[F],I=n[g]||{},w=I[a],!ye(w));F++)Bo(e,a,g,m,v);if(!ye(w)||!Z(g))return s?kr:a;let _=`${g}__${a}`;xr(d)||(_=`${_}__${JSON.stringify(d)}`);let P=i.get(_);return P||(P=new Intl.NumberFormat(g,Ye({},w,d)),i.set(_,P)),b?P.formatToParts(c):P.format(c)}const tc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function io(...e){const[t,n,s,r]=e,o=Pe();let l=Pe();if(!Ke(t))throw Gt(Kt.INVALID_ARGUMENT);const i=t;return Z(n)?o.key=n:ye(n)&&Object.keys(n).forEach(a=>{tc.includes(a)?l[a]=n[a]:o[a]=n[a]}),Z(s)?o.locale=s:ye(s)&&(l=s),ye(r)&&(l=r),[o.key||"",i,o,l]}function ql(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Vp=e=>e,Wp=e=>"",jp="text",Hp=e=>e.length===0?"":Vo(e),Bp=Mf;function zl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Kp(e){const t=Ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ke(e.named.count)||Ke(e.named.n))?Ke(e.named.count)?e.named.count:Ke(e.named.n)?e.named.n:t:t}function Gp(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qp(e={}){const t=e.locale,n=Kp(e),s=Ce(e.pluralRules)&&Z(t)&&Ne(e.pluralRules[t])?e.pluralRules[t]:zl,r=Ce(e.pluralRules)&&Z(t)&&Ne(e.pluralRules[t])?zl:void 0,o=g=>g[s(n,g.length,r)],l=e.list||[],i=g=>l[g],a=e.named||Pe();Ke(e.pluralIndex)&&Gp(n,a);const c=g=>a[g];function u(g,w){const v=Ne(e.messages)?e.messages(g,!!w):Ce(e.messages)?e.messages[g]:!1;return v||(e.parent?e.parent.message(g):Wp)}const d=g=>e.modifiers?e.modifiers[g]:Vp,m=ye(e.processor)&&Ne(e.processor.normalize)?e.processor.normalize:Hp,b=ye(e.processor)&&Ne(e.processor.interpolate)?e.processor.interpolate:Bp,k=ye(e.processor)&&Z(e.processor.type)?e.processor.type:jp,I={list:i,named:c,plural:o,linked:(g,...w)=>{const[v,_]=w;let P="text",F="";w.length===1?Ce(v)?(F=v.modifier||F,P=v.type||P):Z(v)&&(F=v||F):w.length===2&&(Z(v)&&(F=v||F),Z(_)&&(P=_||P));const D=u(g,!0)(I),G=P==="vnode"&&Ve(D)&&F?D[0]:D;return F?d(F)(G,P):G},message:u,type:k,interpolate:b,normalize:m,values:Ye(Pe(),l,a)};return I}const Yl=()=>"",Tt=e=>Ne(e);function Jl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:l,messages:i}=e,[a,c]=ao(...t),u=ke(c.missingWarn)?c.missingWarn:e.missingWarn,d=ke(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,m=ke(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,k=Z(c.default)||ke(c.default)?ke(c.default)?o?a:()=>a:c.default:n?o?a:()=>a:null,R=n||k!=null&&(Z(k)||Ne(k)),I=Ho(e,c);m&&zp(c);let[g,w,v]=b?[a,I,i[I]||Pe()]:nc(e,a,I,l,d,u),_=g,P=a;if(!b&&!(Z(_)||Ot(_)||Tt(_))&&R&&(_=k,P=_),!b&&(!(Z(_)||Ot(_)||Tt(_))||!Z(w)))return r?kr:a;let F=!1;const D=()=>{F=!0},G=Tt(_)?_:sc(e,a,w,_,P,D);if(F)return _;const z=Xp(e,w,v,c),ie=qp(z),ce=Yp(e,G,ie);let O=s?s(ce,a):ce;if(m&&Z(O)&&(O=Rf(O)),__INTLIFY_PROD_DEVTOOLS__){const Y={timestamp:Date.now(),key:Z(a)?a:Tt(_)?_.key:"",locale:w||(Tt(_)?_.locale:""),format:Z(_)?_:Tt(_)?_.source:"",message:O};Y.meta=Ye({},e.__meta,Op()||{}),mp(Y)}return O}function zp(e){Ve(e.list)?e.list=e.list.map(t=>Z(t)?Ml(t):t):Ce(e.named)&&Object.keys(e.named).forEach(t=>{Z(e.named[t])&&(e.named[t]=Ml(e.named[t]))})}function nc(e,t,n,s,r,o){const{messages:l,onWarn:i,messageResolver:a,localeFallbacker:c}=e,u=c(e,s,n);let d=Pe(),m,b=null;const k="translate";for(let R=0;R<u.length&&(m=u[R],d=l[m]||Pe(),(b=a(d,t))===null&&(b=d[t]),!(Z(b)||Ot(b)||Tt(b)));R++)if(!Up(m,u)){const I=Bo(e,t,m,o,k);I!==t&&(b=I)}return[b,m,d]}function sc(e,t,n,s,r,o){const{messageCompiler:l,warnHtmlMessage:i}=e;if(Tt(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(l==null){const c=(()=>s);return c.locale=n,c.key=t,c}const a=l(s,Jp(e,n,r,s,i,o));return a.locale=n,a.key=t,a.source=s,a}function Yp(e,t,n){return t(n)}function ao(...e){const[t,n,s]=e,r=Pe();if(!Z(t)&&!Ke(t)&&!Tt(t)&&!Ot(t))throw Gt(Kt.INVALID_ARGUMENT);const o=Ke(t)?String(t):(Tt(t),t);return Ke(n)?r.plural=n:Z(n)?r.default=n:ye(n)&&!xr(n)?r.named=n:Ve(n)&&(r.list=n),Ke(s)?r.plural=s:Z(s)?r.default=s:ye(s)&&Ye(r,s),[o,r]}function Jp(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:l=>{throw o&&o(l),l},onCacheKey:l=>Tf(t,n,l)}}function Xp(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:l,fallbackLocale:i,fallbackWarn:a,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:o,messages:(b,k)=>{let R=l(n,b);if(R==null&&(u||k)){const[,,I]=nc(u||e,b,t,i,a,c);R=l(I,b)}if(Z(R)||Ot(R)){let I=!1;const w=sc(e,b,t,R,b,()=>{I=!0});return I?Yl:w}else return Tt(R)?R:Yl}};return e.processor&&(m.processor=e.processor),s.list&&(m.list=s.list),s.named&&(m.named=s.named),Ke(s.plural)&&(m.pluralIndex=s.plural),m}np();const Qp="11.2.8";function Zp(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(_n().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(_n().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_n().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_n().__INTLIFY_PROD_DEVTOOLS__=!1)}const gt={UNEXPECTED_RETURN_TYPE:bp,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function yt(e,...t){return wr(e,null,void 0)}const co=an("__translateVNode"),uo=an("__datetimeParts"),fo=an("__numberParts"),rc=an("__setPluralRules"),oc=an("__injectWithOption"),po=an("__dispose");function hs(e){if(!Ce(e)||Ot(e))return e;for(const t in e)if(Ct(e,t))if(!t.includes("."))Ce(e[t])&&hs(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let l=0;l<s;l++){if(n[l]==="__proto__")throw new Error(`unsafe key: ${n[l]}`);if(n[l]in r||(r[n[l]]=Pe()),!Ce(r[n[l]])){o=!0;break}r=r[n[l]]}if(o||(Ot(r)?qa.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!Ot(r)){const l=r[n[s]];Ce(l)&&hs(l)}}return e}function Ko(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,l=ye(n)?n:Ve(s)?Pe():{[e]:Pe()};if(Ve(s)&&s.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:a,resource:c}=i;a?(l[a]=l[a]||Pe(),qs(c,l[a])):qs(c,l)}else Z(i)&&qs(JSON.parse(i),l)}),r==null&&o)for(const i in l)Ct(l,i)&&hs(l[i]);return l}function lc(e){return e.type}function ic(e,t,n){let s=Ce(t.messages)?t.messages:Pe();"__i18nGlobal"in n&&(s=Ko(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Ce(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Ce(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Xl(e){return q(ws,null,e,0)}function bs(){return ks()}const Ql="__INTLIFY_META__",Zl=()=>[],eg=()=>!1;let ei=0;function ti(e){return((t,n,s,r)=>e(n,s,bs()||void 0,r))}const tg=()=>{const e=bs();let t=null;return e&&(t=lc(e)[Ql])?{[Ql]:t}:null};function Go(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=or?oe:Ru;let l=ke(e.inheritLocale)?e.inheritLocale:!0;const i=o(t&&l?t.locale.value:Z(e.locale)?e.locale:ms),a=o(t&&l?t.fallbackLocale.value:Z(e.fallbackLocale)||Ve(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),c=o(Ko(i.value,e)),u=o(ye(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),d=o(ye(e.numberFormats)?e.numberFormats:{[i.value]:{}});let m=t?t.missingWarn:ke(e.missingWarn)||Fn(e.missingWarn)?e.missingWarn:!0,b=t?t.fallbackWarn:ke(e.fallbackWarn)||Fn(e.fallbackWarn)?e.fallbackWarn:!0,k=t?t.fallbackRoot:ke(e.fallbackRoot)?e.fallbackRoot:!0,R=!!e.fallbackFormat,I=Ne(e.missing)?e.missing:null,g=Ne(e.missing)?ti(e.missing):null,w=Ne(e.postTranslation)?e.postTranslation:null,v=t?t.warnHtmlMessage:ke(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const P=t?t.modifiers:ye(e.modifiers)?e.modifiers:{};let F=e.pluralRules||t&&t.pluralRules,D;D=(()=>{s&&jl(null);const C={version:Qp,locale:i.value,fallbackLocale:a.value,messages:c.value,modifiers:P,pluralRules:F,missing:g===null?void 0:g,missingWarn:m,fallbackWarn:b,fallbackFormat:R,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:v,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=u.value,C.numberFormats=d.value,C.__datetimeFormatters=ye(D)?D.__datetimeFormatters:void 0,C.__numberFormatters=ye(D)?D.__numberFormatters:void 0;const A=Fp(C);return s&&jl(A),A})(),Gn(D,i.value,a.value);function z(){return[i.value,a.value,c.value,u.value,d.value]}const ie=K({get:()=>i.value,set:C=>{D.locale=C,i.value=C}}),ce=K({get:()=>a.value,set:C=>{D.fallbackLocale=C,a.value=C,Gn(D,i.value,C)}}),O=K(()=>c.value),Y=K(()=>u.value),B=K(()=>d.value);function te(){return Ne(w)?w:null}function Q(C){w=C,D.postTranslation=C}function ee(){return I}function j(C){C!==null&&(g=ti(C)),I=C,D.missing=g}const X=(C,A,ne,de,ve,je)=>{z();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,s||(D.fallbackContext=t?Np():void 0),Ue=C(D)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(D.fallbackContext=void 0)}if(ne!=="translate exists"&&Ke(Ue)&&Ue===kr||ne==="translate exists"&&!Ue){const[ct,mt]=A();return t&&k?de(t):ve(ct)}else{if(je(Ue))return Ue;throw yt(gt.UNEXPECTED_RETURN_TYPE)}};function ae(...C){return X(A=>Reflect.apply(Jl,null,[A,...C]),()=>ao(...C),"translate",A=>Reflect.apply(A.t,A,[...C]),A=>A,A=>Z(A))}function ue(...C){const[A,ne,de]=C;if(de&&!Ce(de))throw yt(gt.INVALID_ARGUMENT);return ae(A,ne,Ye({resolvedMessage:!0},de||{}))}function he(...C){return X(A=>Reflect.apply(Bl,null,[A,...C]),()=>lo(...C),"datetime format",A=>Reflect.apply(A.d,A,[...C]),()=>Vl,A=>Z(A)||Ve(A))}function me(...C){return X(A=>Reflect.apply(Gl,null,[A,...C]),()=>io(...C),"number format",A=>Reflect.apply(A.n,A,[...C]),()=>Vl,A=>Z(A)||Ve(A))}function Se(C){return C.map(A=>Z(A)||Ke(A)||ke(A)?Xl(String(A)):A)}const We={normalize:Se,interpolate:C=>C,type:"vnode"};function Te(...C){return X(A=>{let ne;const de=A;try{de.processor=We,ne=Reflect.apply(Jl,null,[de,...C])}finally{de.processor=null}return ne},()=>ao(...C),"translate",A=>A[co](...C),A=>[Xl(A)],A=>Ve(A))}function rt(...C){return X(A=>Reflect.apply(Gl,null,[A,...C]),()=>io(...C),"number format",A=>A[fo](...C),Zl,A=>Z(A)||Ve(A))}function Ze(...C){return X(A=>Reflect.apply(Bl,null,[A,...C]),()=>lo(...C),"datetime format",A=>A[uo](...C),Zl,A=>Z(A)||Ve(A))}function Ge(C){F=C,D.pluralRules=F}function xt(C,A){return X(()=>{if(!C)return!1;const ne=Z(A)?A:i.value,de=M(ne),ve=D.messageResolver(de,C);return Ot(ve)||Tt(ve)||Z(ve)},()=>[C],"translate exists",ne=>Reflect.apply(ne.te,ne,[C,A]),eg,ne=>ke(ne))}function f(C){let A=null;const ne=za(D,a.value,i.value);for(let de=0;de<ne.length;de++){const ve=c.value[ne[de]]||{},je=D.messageResolver(ve,C);if(je!=null){A=je;break}}return A}function y(C){const A=f(C);return A??(t?t.tm(C)||{}:{})}function M(C){return c.value[C]||{}}function H(C,A){if(r){const ne={[C]:A};for(const de in ne)Ct(ne,de)&&hs(ne[de]);A=ne[C]}c.value[C]=A,D.messages=c.value}function V(C,A){c.value[C]=c.value[C]||{};const ne={[C]:A};if(r)for(const de in ne)Ct(ne,de)&&hs(ne[de]);A=ne[C],qs(A,c.value[C]),D.messages=c.value}function U(C){return u.value[C]||{}}function p(C,A){u.value[C]=A,D.datetimeFormats=u.value,Kl(D,C,A)}function h(C,A){u.value[C]=Ye(u.value[C]||{},A),D.datetimeFormats=u.value,Kl(D,C,A)}function T(C){return d.value[C]||{}}function E(C,A){d.value[C]=A,D.numberFormats=d.value,ql(D,C,A)}function J(C,A){d.value[C]=Ye(d.value[C]||{},A),D.numberFormats=d.value,ql(D,C,A)}ei++,t&&or&&(ft(t.locale,C=>{l&&(i.value=C,D.locale=C,Gn(D,i.value,a.value))}),ft(t.fallbackLocale,C=>{l&&(a.value=C,D.fallbackLocale=C,Gn(D,i.value,a.value))}));const W={id:ei,locale:ie,fallbackLocale:ce,get inheritLocale(){return l},set inheritLocale(C){l=C,C&&t&&(i.value=t.locale.value,a.value=t.fallbackLocale.value,Gn(D,i.value,a.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:O,get modifiers(){return P},get pluralRules(){return F||{}},get isGlobal(){return s},get missingWarn(){return m},set missingWarn(C){m=C,D.missingWarn=m},get fallbackWarn(){return b},set fallbackWarn(C){b=C,D.fallbackWarn=b},get fallbackRoot(){return k},set fallbackRoot(C){k=C},get fallbackFormat(){return R},set fallbackFormat(C){R=C,D.fallbackFormat=R},get warnHtmlMessage(){return v},set warnHtmlMessage(C){v=C,D.warnHtmlMessage=C},get escapeParameter(){return _},set escapeParameter(C){_=C,D.escapeParameter=C},t:ae,getLocaleMessage:M,setLocaleMessage:H,mergeLocaleMessage:V,getPostTranslationHandler:te,setPostTranslationHandler:Q,getMissingHandler:ee,setMissingHandler:j,[rc]:Ge};return W.datetimeFormats=Y,W.numberFormats=B,W.rt=ue,W.te=xt,W.tm=y,W.d=he,W.n=me,W.getDateTimeFormat=U,W.setDateTimeFormat=p,W.mergeDateTimeFormat=h,W.getNumberFormat=T,W.setNumberFormat=E,W.mergeNumberFormat=J,W[oc]=n,W[co]=Te,W[uo]=Ze,W[fo]=rt,W}function ng(e){const t=Z(e.locale)?e.locale:ms,n=Z(e.fallbackLocale)||Ve(e.fallbackLocale)||ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Ne(e.missing)?e.missing:void 0,r=ke(e.silentTranslationWarn)||Fn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=ke(e.silentFallbackWarn)||Fn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=ke(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,a=ye(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Ne(e.postTranslation)?e.postTranslation:void 0,d=Z(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,m=!!e.escapeParameterHtml,b=ke(e.sync)?e.sync:!0;let k=e.messages;if(ye(e.sharedMessages)){const P=e.sharedMessages;k=Object.keys(P).reduce((D,G)=>{const z=D[G]||(D[G]={});return Ye(z,P[G]),D},k||{})}const{__i18n:R,__root:I,__injectWithOption:g}=e,w=e.datetimeFormats,v=e.numberFormats,_=e.flatJson;return{locale:t,fallbackLocale:n,messages:k,flatJson:_,datetimeFormats:w,numberFormats:v,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:l,fallbackFormat:i,modifiers:a,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:m,messageResolver:e.messageResolver,inheritLocale:b,__i18n:R,__root:I,__injectWithOption:g}}function go(e={}){const t=Go(ng(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},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(r){t.setMissingHandler(r)},get silentTranslationWarn(){return ke(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=ke(r)?!r:r},get silentFallbackWarn(){return ke(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=ke(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function sg(e,t,n){return{beforeCreate(){const s=bs();if(!s)throw yt(gt.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=ni(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=go(o);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=ni(e,r);else{this.$i18n=go({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&ic(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,l)=>this.$i18n.te(o,l),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=bs();if(!s)throw yt(gt.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function ni(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[rc](t.pluralizationRules||e.pluralizationRules);const n=Ko(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const qo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function rg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===xe?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},Pe())}function ac(){return xe}const og=Oe({name:"i18n-t",props:Ye({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ke(e)||!isNaN(e)}},qo),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Xe({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d[0]!=="_"),l=Pe();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=Z(e.plural)?+e.plural:e.plural);const i=rg(t,o),a=r[co](e.keypath,i,l),c=Ye(Pe(),s),u=Z(e.tag)||Ce(e.tag)?e.tag:ac();return Do(u,c,a)}}}),si=og;function lg(e){return Ve(e)&&!Z(e[0])}function cc(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const l={part:!0};let i=Pe();e.locale&&(l.locale=e.locale),Z(e.format)?l.key=e.format:Ce(e.format)&&(Z(e.format.key)&&(l.key=e.format.key),i=Object.keys(e.format).reduce((m,b)=>n.includes(b)?Ye(Pe(),m,{[b]:e.format[b]}):m,Pe()));const a=s(e.value,l,i);let c=[l.key];Ve(a)?c=a.map((m,b)=>{const k=r[m.type],R=k?k({[m.type]:m.value,index:b,parts:a}):[m.value];return lg(R)&&(R[0].key=`${m.type}-${b}`),R}):Z(a)&&(c=[a]);const u=Ye(Pe(),o),d=Z(e.tag)||Ce(e.tag)?e.tag:ac();return Do(d,u,c)}}const ig=Oe({name:"i18n-n",props:Ye({value:{type:Number,required:!0},format:{type:[String,Object]}},qo),setup(e,t){const n=e.i18n||Xe({useScope:e.scope,__useComponent:!0});return cc(e,t,tc,(...s)=>n[fo](...s))}}),ri=ig;function ag(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function cg(e){const t=l=>{const{instance:i,value:a}=l;if(!i||!i.$)throw yt(gt.UNEXPECTED_ERROR);const c=ag(e,i.$),u=oi(a);return[Reflect.apply(c.t,c,[...li(u)]),c]};return{created:(l,i)=>{const[a,c]=t(i);or&&e.global===c&&(l.__i18nWatcher=ft(c.locale,()=>{i.instance&&i.instance.$forceUpdate()})),l.__composer=c,l.textContent=a},unmounted:l=>{or&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:i})=>{if(l.__composer){const a=l.__composer,c=oi(i);l.textContent=Reflect.apply(a.t,a,[...li(c)])}},getSSRProps:l=>{const[i]=t(l);return{textContent:i}}}}function oi(e){if(Z(e))return{path:e};if(ye(e)){if(!("path"in e))throw yt(gt.REQUIRED_VALUE,"path");return e}else throw yt(gt.INVALID_VALUE)}function li(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,l={},i=s||{};return Z(n)&&(l.locale=n),Ke(r)&&(l.plural=r),Ke(o)&&(l.plural=o),[t,i,l]}function ug(e,t,...n){const s=ye(n[0])?n[0]:{};(!ke(s.globalInstall)||s.globalInstall)&&([si.name,"I18nT"].forEach(o=>e.component(o,si)),[ri.name,"I18nN"].forEach(o=>e.component(o,ri)),[ai.name,"I18nD"].forEach(o=>e.component(o,ai))),e.directive("t",cg(t))}const dg=an("global-vue-i18n");function fg(e={}){const t=__VUE_I18N_LEGACY_API__&&ke(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ke(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=pg(e,t),l=an("");function i(d){return s.get(d)||null}function a(d,m){s.set(d,m)}function c(d){s.delete(d)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...m){if(d.__VUE_I18N_SYMBOL__=l,d.provide(d.__VUE_I18N_SYMBOL__,u),ye(m[0])){const R=m[0];u.__composerExtend=R.__composerExtend,u.__vueI18nExtend=R.__vueI18nExtend}let b=null;!t&&n&&(b=xg(d,u.global)),__VUE_I18N_FULL_INSTALL__&&ug(d,u,...m),__VUE_I18N_LEGACY_API__&&t&&d.mixin(sg(o,o.__composer,u));const k=d.unmount;d.unmount=()=>{b&&b(),u.dispose(),k()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:i,__setInstance:a,__deleteInstance:c};return u}function Xe(e={}){const t=bs();if(t==null)throw yt(gt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw yt(gt.NOT_INSTALLED);const n=gg(t),s=hg(n),r=lc(t),o=mg(e,r);if(o==="global")return ic(s,e,r),s;if(o==="parent"){let a=bg(n,t,e.__useComponent);return a==null&&(a=s),a}const l=n;let i=l.__getInstance(t);if(i==null){const a=Ye({},e);"__i18n"in r&&(a.__i18n=r.__i18n),s&&(a.__root=s),i=Go(a),l.__composerExtend&&(i[po]=l.__composerExtend(i)),_g(l,t,i),l.__setInstance(t,i)}return i}function pg(e,t){const n=ou(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>go(e)):n.run(()=>Go(e));if(s==null)throw yt(gt.UNEXPECTED_ERROR);return[n,s]}function gg(e){const t=ts(e.isCE?dg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw yt(e.isCE?gt.NOT_INSTALLED_WITH_PROVIDE:gt.UNEXPECTED_ERROR);return t}function mg(e,t){return xr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function hg(e){return e.mode==="composition"?e.global:e.global.__composer}function bg(e,t,n=!1){let s=null;const r=t.root;let o=vg(t,n);for(;o!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const i=l.__getInstance(o);i!=null&&(s=i.__composer,n&&s&&!s[oc]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function vg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _g(e,t,n){kn(()=>{},t),$o(()=>{const s=n;e.__deleteInstance(t);const r=s[po];r&&(r(),delete s[po])},t)}const yg=["locale","fallbackLocale","availableLocales"],ii=["t","rt","d","n","tm","te"];function xg(e,t){const n=Object.create(null);return yg.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw yt(gt.UNEXPECTED_ERROR);const l=Fe(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,l)}),e.config.globalProperties.$i18n=n,ii.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw yt(gt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,ii.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const wg=Oe({name:"i18n-d",props:Ye({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},qo),setup(e,t){const n=e.i18n||Xe({useScope:e.scope,__useComponent:!0});return cc(e,t,ec,(...s)=>n[uo](...s))}}),ai=wg;Zp();Mp(fp);Lp(Rp);$p(za);if(__INTLIFY_PROD_DEVTOOLS__){const e=_n();e.__INTLIFY__=!0,pp(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function kg(e){const t=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;return t==="/"?"":t.endsWith("/index.html")?t.slice(0,-11):t}function lr(e){return e.replace(/\\/g,"/")}function Tg(e){return e.startsWith("/")||/^[a-z]:\//i.test(e)}function Cg(e){return lr(e).replace(/\/+$/,"")}function Sg(e){return lr(e).trim()}function Vn(e,t,n={}){const s=Sg(e);if(!s)return null;if(Tg(s))return!n.allowAbsoluteWithoutRoot&&!t?.trim()?null:`vscode://file/${encodeURI(s)}`;if(!t?.trim())return null;const r=Cg(t);if(!r)return null;const o=s.replace(/^\/+/,"");return`vscode://file/${encodeURI(`${r}/${o}`)}`}function Tr(e,t,n){const s=Vn(e,t,n);return s?(window.location.href=s,!0):!1}var Eg=/\s+/g,Rg=e=>typeof e!="string"||!e?e:e.replace(Eg," ").trim(),ir=(...e)=>{const t=[],n=s=>{if(!s&&s!==0&&s!==0n)return;if(Array.isArray(s)){for(let o=0,l=s.length;o<l;o++)n(s[o]);return}const r=typeof s;if(r==="string"||r==="number"||r==="bigint"){if(r==="number"&&s!==s)return;t.push(String(s))}else if(r==="object"){const o=Object.keys(s);for(let l=0,i=o.length;l<i;l++){const a=o[l];s[a]&&t.push(a)}}};for(let s=0,r=e.length;s<r;s++){const o=e[s];o!=null&&n(o)}return t.length>0?Rg(t.join(" ")):void 0},ci=e=>e===!1?"false":e===!0?"true":e===0?"0":e,ut=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Ig=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++){const o=n[r];if(!s.includes(o)||e[o]!==t[o])return!1}return!0},Pg=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];n in e?e[n]=ir(e[n],s):e[n]=s}return e},uc=(e,t)=>{for(let n=0;n<e.length;n++){const s=e[n];Array.isArray(s)?uc(s,t):s&&t.push(s)}},dc=(...e)=>{const t=[];uc(e,t);const n=[];for(let s=0;s<t.length;s++)t[s]&&n.push(t[s]);return n},mo=(e,t)=>{const n={};for(const s in e){const r=e[s];if(s in t){const o=t[s];Array.isArray(r)||Array.isArray(o)?n[s]=dc(o,r):typeof r=="object"&&typeof o=="object"&&r&&o?n[s]=mo(r,o):n[s]=o+" "+r}else n[s]=r}for(const s in t)s in e||(n[s]=t[s]);return n},Mg={twMerge:!0,twMergeConfig:{}};function Lg(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(s){e=s},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(s){t=s},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(s){n=s},reset(){e=null,t={},n=!1}}}var jt=Lg(),$g=e=>{const t=(s,r)=>{const{extend:o=null,slots:l={},variants:i={},compoundVariants:a=[],compoundSlots:c=[],defaultVariants:u={}}=s,d={...Mg,...r},m=o?.base?ir(o.base,s?.base):s?.base,b=o?.variants&&!ut(o.variants)?mo(i,o.variants):i,k=o?.defaultVariants&&!ut(o.defaultVariants)?{...o.defaultVariants,...u}:u;!ut(d.twMergeConfig)&&!Ig(d.twMergeConfig,jt.cachedTwMergeConfig)&&(jt.didTwMergeConfigChange=!0,jt.cachedTwMergeConfig=d.twMergeConfig);const R=ut(o?.slots),I=ut(l)?{}:{base:ir(s?.base,R&&o?.base),...l},g=R?I:Pg({...o?.slots},ut(I)?{base:s?.base}:I),w=ut(o?.compoundVariants)?a:dc(o?.compoundVariants,a),v=P=>{if(ut(b)&&ut(l)&&R)return e(m,P?.class,P?.className)(d);if(w&&!Array.isArray(w))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const F=(B,te=b,Q=null,ee=null)=>{const j=te[B];if(!j||ut(j))return null;const X=ee?.[B]??P?.[B];if(X===null)return null;const ae=ci(X);if(typeof ae=="object")return null;const ue=k?.[B],he=ae??ci(ue);return j[he||"false"]},D=()=>{if(!b)return null;const B=Object.keys(b),te=[];for(let Q=0;Q<B.length;Q++){const ee=F(B[Q],b);ee&&te.push(ee)}return te},G=(B,te)=>{if(!b||typeof b!="object")return null;const Q=[];for(const ee in b){const j=F(ee,b,B,te),X=B==="base"&&typeof j=="string"?j:j&&j[B];X&&Q.push(X)}return Q},z={};for(const B in P){const te=P[B];te!==void 0&&(z[B]=te)}const ie=(B,te)=>{const Q=typeof P?.[B]=="object"?{[B]:P[B]?.initial}:{};return{...k,...z,...Q,...te}},ce=(B=[],te)=>{const Q=[],ee=B.length;for(let j=0;j<ee;j++){const{class:X,className:ae,...ue}=B[j];let he=!0;const me=ie(null,te);for(const Se in ue){const De=ue[Se],We=me[Se];if(Array.isArray(De)){if(!De.includes(We)){he=!1;break}}else{if((De==null||De===!1)&&(We==null||We===!1))continue;if(We!==De){he=!1;break}}}he&&(X&&Q.push(X),ae&&Q.push(ae))}return Q},O=B=>{const te=ce(w,B);if(!Array.isArray(te))return te;const Q={},ee=e;for(let j=0;j<te.length;j++){const X=te[j];if(typeof X=="string")Q.base=ee(Q.base,X)(d);else if(typeof X=="object")for(const ae in X)Q[ae]=ee(Q[ae],X[ae])(d)}return Q},Y=B=>{if(c.length<1)return null;const te={},Q=ie(null,B);for(let ee=0;ee<c.length;ee++){const{slots:j=[],class:X,className:ae,...ue}=c[ee];if(!ut(ue)){let he=!0;for(const me in ue){const Se=Q[me],De=ue[me];if(Se===void 0||(Array.isArray(De)?!De.includes(Se):De!==Se)){he=!1;break}}if(!he)continue}for(let he=0;he<j.length;he++){const me=j[he];te[me]||(te[me]=[]),te[me].push([X,ae])}}return te};if(!ut(l)||!R){const B={};if(typeof g=="object"&&!ut(g)){const te=e;for(const Q in g)B[Q]=ee=>{const j=O(ee),X=Y(ee);return te(g[Q],G(Q,ee),j?j[Q]:void 0,X?X[Q]:void 0,ee?.class,ee?.className)(d)}}return B}return e(m,D(),ce(w),P?.class,P?.className)(d)},_=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return v.variantKeys=_(),v.extend=o,v.base=m,v.slots=g,v.variants=b,v.defaultVariants=k,v.compoundSlots=c,v.compoundVariants=w,v};return{tv:t,createTV:s=>(r,o)=>t(r,o?mo(s,o):s)}};const Ag=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},Og=(e,t)=>({classGroupId:e,validator:t}),fc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ar="-",ui=[],Ng="arbitrary..",Fg=e=>{const t=Ug(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Dg(l);const i=l.split(ar),a=i[0]===""&&i.length>1?1:0;return pc(i,a,t)},getConflictingClassGroupIds:(l,i)=>{if(i){const a=s[l],c=n[l];return a?c?Ag(c,a):a:c||ui}return n[l]||ui}}},pc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const c=pc(e,t+1,o);if(c)return c}const l=n.validators;if(l===null)return;const i=t===0?e.join(ar):e.slice(t).join(ar),a=l.length;for(let c=0;c<a;c++){const u=l[c];if(u.validator(i))return u.classGroupId}},Dg=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?Ng+s:void 0})(),Ug=e=>{const{theme:t,classGroups:n}=e;return Vg(n,t)},Vg=(e,t)=>{const n=fc();for(const s in e){const r=e[s];zo(r,n,s,t)}return n},zo=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const l=e[o];Wg(l,t,n,s)}},Wg=(e,t,n,s)=>{if(typeof e=="string"){jg(e,t,n);return}if(typeof e=="function"){Hg(e,t,n,s);return}Bg(e,t,n,s)},jg=(e,t,n)=>{const s=e===""?t:gc(t,e);s.classGroupId=n},Hg=(e,t,n,s)=>{if(Kg(e)){zo(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Og(n,e))},Bg=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let l=0;l<o;l++){const[i,a]=r[l];zo(a,gc(t,i),n,s)}},gc=(e,t)=>{let n=e;const s=t.split(ar),r=s.length;for(let o=0;o<r;o++){const l=s[o];let i=n.nextPart.get(l);i||(i=fc(),n.nextPart.set(l,i)),n=i}return n},Kg=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,l)=>{n[o]=l,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let l=n[o];if(l!==void 0)return l;if((l=s[o])!==void 0)return r(o,l),l},set(o,l){o in n?n[o]=l:r(o,l)}}},ho="!",di=":",qg=[],fi=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),zg=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let l=0,i=0,a=0,c;const u=r.length;for(let R=0;R<u;R++){const I=r[R];if(l===0&&i===0){if(I===di){o.push(r.slice(a,R)),a=R+1;continue}if(I==="/"){c=R;continue}}I==="["?l++:I==="]"?l--:I==="("?i++:I===")"&&i--}const d=o.length===0?r:r.slice(a);let m=d,b=!1;d.endsWith(ho)?(m=d.slice(0,-1),b=!0):d.startsWith(ho)&&(m=d.slice(1),b=!0);const k=c&&c>a?c-a:void 0;return fi(o,b,m,k)};if(t){const r=t+di,o=s;s=l=>l.startsWith(r)?o(l.slice(r.length)):fi(qg,!1,l,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},Yg=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let r=[];for(let o=0;o<n.length;o++){const l=n[o],i=l[0]==="[",a=t.has(l);i||a?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(l)):r.push(l)}return r.length>0&&(r.sort(),s.push(...r)),s}},Jg=e=>({cache:Gg(e.cacheSize),parseClassName:zg(e),sortModifiers:Yg(e),...Fg(e)}),Xg=/\s+/,Qg=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,l=[],i=e.trim().split(Xg);let a="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:d,modifiers:m,hasImportantModifier:b,baseClassName:k,maybePostfixModifierPosition:R}=n(u);if(d){a=u+(a.length>0?" "+a:a);continue}let I=!!R,g=s(I?k.substring(0,R):k);if(!g){if(!I){a=u+(a.length>0?" "+a:a);continue}if(g=s(k),!g){a=u+(a.length>0?" "+a:a);continue}I=!1}const w=m.length===0?"":m.length===1?m[0]:o(m).join(":"),v=b?w+ho:w,_=v+g;if(l.indexOf(_)>-1)continue;l.push(_);const P=r(g,I);for(let F=0;F<P.length;++F){const D=P[F];l.push(v+D)}a=u+(a.length>0?" "+a:a)}return a},Zg=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=mc(n))&&(r&&(r+=" "),r+=s);return r},mc=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=mc(e[s]))&&(n&&(n+=" "),n+=t);return n},bo=(e,...t)=>{let n,s,r,o;const l=a=>{const c=t.reduce((u,d)=>d(u),e());return n=Jg(c),s=n.cache.get,r=n.cache.set,o=i,i(a)},i=a=>{const c=s(a);if(c)return c;const u=Qg(a,n);return r(a,u),u};return o=l,(...a)=>o(Zg(...a))},em=[],qe=e=>{const t=n=>n[e]||em;return t.isThemeGetter=!0,t},hc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tm=/^\d+\/\d+$/,nm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sm=/\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$/,rm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,om=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>tm.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Zt=e=>!!e&&Number.isInteger(Number(e)),Hr=e=>e.endsWith("%")&&_e(e.slice(0,-1)),Ut=e=>nm.test(e),im=()=>!0,am=e=>sm.test(e)&&!rm.test(e),vc=()=>!1,cm=e=>om.test(e),um=e=>lm.test(e),dm=e=>!se(e)&&!re(e),fm=e=>Wn(e,xc,vc),se=e=>hc.test(e),hn=e=>Wn(e,wc,am),Br=e=>Wn(e,bm,_e),pi=e=>Wn(e,_c,vc),pm=e=>Wn(e,yc,um),Vs=e=>Wn(e,kc,cm),re=e=>bc.test(e),qn=e=>jn(e,wc),gm=e=>jn(e,vm),gi=e=>jn(e,_c),mm=e=>jn(e,xc),hm=e=>jn(e,yc),Ws=e=>jn(e,kc,!0),Wn=(e,t,n)=>{const s=hc.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},jn=(e,t,n=!1)=>{const s=bc.exec(e);return s?s[1]?t(s[1]):n:!1},_c=e=>e==="position"||e==="percentage",yc=e=>e==="image"||e==="url",xc=e=>e==="length"||e==="size"||e==="bg-size",wc=e=>e==="length",bm=e=>e==="number",vm=e=>e==="family-name",kc=e=>e==="shadow",vo=()=>{const e=qe("color"),t=qe("font"),n=qe("text"),s=qe("font-weight"),r=qe("tracking"),o=qe("leading"),l=qe("breakpoint"),i=qe("container"),a=qe("spacing"),c=qe("radius"),u=qe("shadow"),d=qe("inset-shadow"),m=qe("text-shadow"),b=qe("drop-shadow"),k=qe("blur"),R=qe("perspective"),I=qe("aspect"),g=qe("ease"),w=qe("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[..._(),re,se],F=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],G=()=>[re,se,a],z=()=>[Rn,"full","auto",...G()],ie=()=>[Zt,"none","subgrid",re,se],ce=()=>["auto",{span:["full",Zt,re,se]},Zt,re,se],O=()=>[Zt,"auto",re,se],Y=()=>["auto","min","max","fr",re,se],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],te=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...G()],ee=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],j=()=>[e,re,se],X=()=>[..._(),gi,pi,{position:[re,se]}],ae=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",mm,fm,{size:[re,se]}],he=()=>[Hr,qn,hn],me=()=>["","none","full",c,re,se],Se=()=>["",_e,qn,hn],De=()=>["solid","dashed","dotted","double"],We=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Te=()=>[_e,Hr,gi,pi],rt=()=>["","none",k,re,se],Ze=()=>["none",_e,re,se],Ge=()=>["none",_e,re,se],xt=()=>[_e,re,se],f=()=>[Rn,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ut],breakpoint:[Ut],color:[im],container:[Ut],"drop-shadow":[Ut],ease:["in","out","in-out"],font:[dm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ut],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ut],shadow:[Ut],spacing:["px",_e],text:[Ut],"text-shadow":[Ut],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,se,re,I]}],container:["container"],columns:[{columns:[_e,se,re,i]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[Zt,"auto",re,se]}],basis:[{basis:[Rn,"full","auto",i,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Rn,"auto","initial","none",se]}],grow:[{grow:["",_e,re,se]}],shrink:[{shrink:["",_e,re,se]}],order:[{order:[Zt,"first","last","none",re,se]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...te(),"normal"]}],"justify-self":[{"justify-self":["auto",...te()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...te(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...te(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...te(),"baseline"]}],"place-self":[{"place-self":["auto",...te()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[i,"screen",...ee()]}],"min-w":[{"min-w":[i,"screen","none",...ee()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,qn,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,re,Br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hr,se]}],"font-family":[{font:[gm,se,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,re,se]}],"line-clamp":[{"line-clamp":[_e,"none",re,Br]}],leading:[{leading:[o,...G()]}],"list-image":[{"list-image":["none",re,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",re,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...De(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",re,hn]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[_e,"auto",re,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re,se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zt,re,se],radial:["",re,se],conic:[Zt,re,se]},hm,pm]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...De(),"hidden","none"]}],"divide-style":[{divide:[...De(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...De(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,re,se]}],"outline-w":[{outline:["",_e,qn,hn]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,Ws,Vs]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,Ws,Vs]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[_e,hn]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",m,Ws,Vs]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[_e,re,se]}],"mix-blend":[{"mix-blend":[...We(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":We()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":Te()}],"mask-image-linear-to-pos":[{"mask-linear-to":Te()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Te()}],"mask-image-t-to-pos":[{"mask-t-to":Te()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Te()}],"mask-image-r-to-pos":[{"mask-r-to":Te()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Te()}],"mask-image-b-to-pos":[{"mask-b-to":Te()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Te()}],"mask-image-l-to-pos":[{"mask-l-to":Te()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Te()}],"mask-image-x-to-pos":[{"mask-x-to":Te()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Te()}],"mask-image-y-to-pos":[{"mask-y-to":Te()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[re,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":Te()}],"mask-image-radial-to-pos":[{"mask-radial-to":Te()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":Te()}],"mask-image-conic-to-pos":[{"mask-conic-to":Te()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",re,se]}],filter:[{filter:["","none",re,se]}],blur:[{blur:rt()}],brightness:[{brightness:[_e,re,se]}],contrast:[{contrast:[_e,re,se]}],"drop-shadow":[{"drop-shadow":["","none",b,Ws,Vs]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",_e,re,se]}],"hue-rotate":[{"hue-rotate":[_e,re,se]}],invert:[{invert:["",_e,re,se]}],saturate:[{saturate:[_e,re,se]}],sepia:[{sepia:["",_e,re,se]}],"backdrop-filter":[{"backdrop-filter":["","none",re,se]}],"backdrop-blur":[{"backdrop-blur":rt()}],"backdrop-brightness":[{"backdrop-brightness":[_e,re,se]}],"backdrop-contrast":[{"backdrop-contrast":[_e,re,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,re,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,re,se]}],"backdrop-invert":[{"backdrop-invert":["",_e,re,se]}],"backdrop-opacity":[{"backdrop-opacity":[_e,re,se]}],"backdrop-saturate":[{"backdrop-saturate":[_e,re,se]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,re,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",re,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",re,se]}],ease:[{ease:["linear","initial",g,re,se]}],delay:[{delay:[_e,re,se]}],animate:[{animate:["none",w,re,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[R,re,se]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:Ge()}],"scale-x":[{"scale-x":Ge()}],"scale-y":[{"scale-y":Ge()}],"scale-z":[{"scale-z":Ge()}],"scale-3d":["scale-3d"],skew:[{skew:xt()}],"skew-x":[{"skew-x":xt()}],"skew-y":[{"skew-y":xt()}],transform:[{transform:[re,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:f()}],"translate-x":[{"translate-x":f()}],"translate-y":[{"translate-y":f()}],"translate-z":[{"translate-z":f()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"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",re,se]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[_e,qn,hn,Br]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},_m=(e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(Jn(e,"cacheSize",t),Jn(e,"prefix",n),Jn(e,"experimentalParseClassName",s),js(e.theme,o.theme),js(e.classGroups,o.classGroups),js(e.conflictingClassGroups,o.conflictingClassGroups),js(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Jn(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Hs(e.theme,r.theme),Hs(e.classGroups,r.classGroups),Hs(e.conflictingClassGroups,r.conflictingClassGroups),Hs(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Tc(e,r,"orderSensitiveModifiers"),e),Jn=(e,t,n)=>{n!==void 0&&(e[t]=n)},js=(e,t)=>{if(t)for(const n in t)Jn(e,n,t[n])},Hs=(e,t)=>{if(t)for(const n in t)Tc(e,t,n)},Tc=(e,t,n)=>{const s=t[n];s!==void 0&&(e[n]=e[n]?e[n].concat(s):s)},ym=(e,...t)=>typeof e=="function"?bo(vo,e,...t):bo(()=>_m(vo(),e),...t),xm=bo(vo);var wm=e=>ut(e)?xm:ym({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Cc=(e,t)=>{const n=ir(e);return!n||!(t?.twMerge??!0)?n:((!jt.cachedTwMerge||jt.didTwMergeConfigChange)&&(jt.didTwMergeConfigChange=!1,jt.cachedTwMerge=wm(jt.cachedTwMergeConfig)),jt.cachedTwMerge(n)||void 0)},km=(...e)=>Cc(e,{}),Tm=(...e)=>t=>Cc(e,t),{tv:Cs}=$g(Tm);function Ss(...e){return km(...e)}const Ie=Oe({__name:"UiPill",props:{tone:{default:"strong"},size:{default:"md"},caps:{type:Boolean,default:!0},tracking:{default:"wide"}},setup(e){const t=e,n=Cs({base:"inline-flex items-center gap-2 rounded-full",variants:{size:{xxs:"px-2 py-0.5 text-[0.55rem]",xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border border-pg-border bg-pg-surface-card text-pg-text-soft",chip:"bg-pg-chip text-pg-chip-text"},caps:{true:"uppercase",false:""},tracking:{wide:"tracking-[0.25em]",tight:"tracking-[0.2em]",none:""}},defaultVariants:{size:"md",tone:"strong",caps:!0,tracking:"wide"}}),s=xs(),r=K(()=>{const i=t.caps?t.tracking:"none";return Ss(n({size:t.size,tone:t.tone,caps:t.caps,tracking:i}),s.class)}),o=K(()=>{const{class:i,style:a,...c}=s;return c}),l=K(()=>s.style);return(i,a)=>(L(),N("span",Cn(o.value,{class:r.value,style:l.value}),[Ao(i.$slots,"default")],16))}}),Cm={class:"flex min-h-0 flex-col gap-4"},Sm={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Em={class:"flex flex-wrap items-center justify-between gap-3"},Rm={class:"flex flex-col gap-1"},Im={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Pm={class:"text-lg font-display text-pg-text-strong"},Mm={class:"mt-4 grid gap-3 text-sm text-pg-text-soft"},Lm={class:"flex items-center gap-2"},$m={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Am={class:"flex items-center gap-2"},Om={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Nm={class:"flex min-h-0 flex-1 flex-col gap-3"},Fm={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Dm={key:0,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Um={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Vm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Wm={class:"flex flex-wrap items-center justify-between gap-2"},jm={class:"flex flex-wrap items-center gap-2"},Hm={class:"text-[0.75rem] font-semibold text-pg-text"},Bm=["aria-label","title","onClick"],Km={class:"mt-1 text-[0.7rem] text-pg-text-muted"},Gm={key:1,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},qm={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},zm={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Ym={class:"flex flex-wrap items-center justify-between gap-2"},Jm={class:"flex flex-wrap items-center gap-2"},Xm={class:"text-[0.75rem] font-semibold text-pg-text"},Qm=["aria-label","title","onClick"],Zm={class:"mt-1 text-[0.7rem] text-pg-text-muted"},eh={key:2,class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},th={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},nh={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},sh={class:"flex flex-wrap items-center justify-between gap-2"},rh={class:"text-[0.75rem] font-semibold text-pg-text"},oh=["aria-label","title","onClick"],lh=Oe({__name:"ConfigDetail",props:{selected:{},impacted:{},isDisabled:{type:Boolean},workspaceRoot:{}},setup(e){const t=e,{t:n}=Xe(),s=K(()=>{const d=t.selected.file.replace(/\\/g,"/"),m=d.lastIndexOf("/");return m<0?"/":d.slice(0,m)||"/"}),r=K(()=>s.value==="/"?"/**":`${s.value}/**`),o=K(()=>{const d=[],m=[],b=[];for(const k of t.impacted)k.kind==="disabled"?m.push(k):k.kind==="ignored"?b.push(k):d.push(k);return{active:d,disabled:m,ignored:b}}),l=K(()=>t.impacted.length),i=d=>`method-${d.toLowerCase()}`;function a(d){return d.url?d.url:d.file}function c(d){return Vn(d,t.workspaceRoot)}function u(d){Tr(d,t.workspaceRoot)}return(d,m)=>(L(),N("section",Cm,[x("div",Sm,[x("div",Em,[x("div",Rm,[x("span",Im,$(S(n)("configPanel.title")),1),x("span",Pm,$(t.selected.file),1)]),q(Ie,{tone:"chip",size:"sm",caps:!1},{default:le(()=>[be($(t.isDisabled?S(n)("configPanel.statusDisabled"):S(n)("configPanel.statusEnabled")),1)]),_:1})]),x("div",Mm,[x("div",Lm,[x("span",$m,$(S(n)("configPanel.scope")),1),x("span",null,$(r.value),1)]),x("div",Am,[x("span",Om,$(S(n)("configPanel.impacted")),1),q(Ie,{tone:"chip",size:"sm",caps:!1},{default:le(()=>[be($(l.value),1)]),_:1})])])]),x("div",Nm,[l.value===0?(L(),N("div",Fm,$(S(n)("configPanel.emptyImpacts")),1)):(L(),N(xe,{key:1},[o.value.active.length>0?(L(),N("div",Dm,[x("div",Um,[x("span",null,$(S(n)("configPanel.active")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(o.value.active.length),1)]),_:1})]),x("div",Vm,[(L(!0),N(xe,null,Qe(o.value.active,b=>(L(),N("div",{key:`active-${b.file}-${b.method??""}-${b.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Wm,[x("div",jm,[b.method?(L(),N("span",{key:0,class:$e(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(b.method)])},$(b.method),3)):pe("",!0),x("span",Hm,$(a(b)),1)]),c(b.file)?(L(),N("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...m[0]||(m[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Bm)):pe("",!0)]),x("div",Km,$(b.file),1)]))),128))])])):pe("",!0),o.value.disabled.length>0?(L(),N("div",Gm,[x("div",qm,[x("span",null,$(S(n)("configPanel.disabled")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(o.value.disabled.length),1)]),_:1})]),x("div",zm,[(L(!0),N(xe,null,Qe(o.value.disabled,b=>(L(),N("div",{key:`disabled-${b.file}-${b.method??""}-${b.url??""}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Ym,[x("div",Jm,[b.method?(L(),N("span",{key:0,class:$e(["rounded-full px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",i(b.method)])},$(b.method),3)):pe("",!0),x("span",Xm,$(a(b)),1)]),c(b.file)?(L(),N("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...m[1]||(m[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Qm)):pe("",!0)]),x("div",Zm,$(b.file),1)]))),128))])])):pe("",!0),o.value.ignored.length>0?(L(),N("div",eh,[x("div",th,[x("span",null,$(S(n)("configPanel.ignored")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(o.value.ignored.length),1)]),_:1})]),x("div",nh,[(L(!0),N(xe,null,Qe(o.value.ignored,b=>(L(),N("div",{key:`ignored-${b.file}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",sh,[x("span",rh,$(a(b)),1),c(b.file)?(L(),N("button",{key:0,class:"flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${b.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:k=>u(b.file)},[...m[2]||(m[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,oh)):pe("",!0)])]))),128))])])):pe("",!0)],64))])]))}}),Sc="mokup.playground.detailPanels",Xn={configChain:!1,middlewares:!1},vs=oe(Xn);let mi=!1;function ih(){if(typeof window>"u")return Xn;try{const e=localStorage.getItem(Sc);if(!e)return Xn;const t=JSON.parse(e);return{...Xn,...t}}catch{return Xn}}function ah(e){if(!(typeof window>"u"))try{localStorage.setItem(Sc,JSON.stringify(e))}catch{}}function Ec(){mi||typeof window>"u"||(vs.value=ih(),mi=!0)}function hi(e,t){Ec();const n={...vs.value,[e]:t};vs.value=n,ah(n)}function Rc(e){return Ec(),{isOpen:K(()=>vs.value[e]),toggle:()=>hi(e,!vs.value[e]),setOpen:r=>hi(e,r)}}const ch=["aria-expanded"],uh={class:"flex flex-wrap items-center gap-2"},dh={key:0,class:"flex flex-col gap-2 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},fh={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},ph={class:"text-[0.7rem] text-pg-text-subtle"},gh={key:1,class:"border-t px-4 py-3 text-xs border-pg-border text-pg-text-muted"},bi="pg-config-chain-panel",mh=Oe({__name:"RouteDetailConfigChain",props:{configChain:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Xe(),{isOpen:s,toggle:r}=Rc("configChain"),o=K(()=>(t.configChain??[]).map((l,i)=>({file:l,order:i+1,disabled:t.configStatusMap.get(l)==="disabled"})));return(l,i)=>(L(),N("div",null,[x("button",{type:"button",class:"group flex w-full items-center justify-between border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition border-pg-border text-pg-text-muted hover:text-pg-text-soft","aria-expanded":S(s),"aria-controls":bi,onClick:i[0]||(i[0]=(...a)=>S(r)&&S(r)(...a))},[x("span",uh,[x("span",null,$(S(n)("detail.configChain")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(o.value.length),1)]),_:1})]),x("span",{class:$e(["i-[carbon--chevron-down] h-4 w-4 transition",S(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,ch),S(s)?(L(),N("div",{key:0,id:bi},[o.value.length>0?(L(),N("div",dh,[(L(!0),N(xe,null,Qe(o.value,a=>(L(),N("div",{key:`config-${a.order}-${a.file}`,class:"flex flex-wrap items-center gap-2"},[x("span",fh,$(a.order),1),x("span",ph,$(a.file),1),a.disabled?(L(),pt(Ie,{key:0,tone:"strong",size:"xxs",caps:!1},{default:le(()=>[be($(S(n)("configPanel.statusDisabled")),1)]),_:1})):pe("",!0)]))),128))])):(L(),N("div",gh,$(S(n)("detail.configChainEmpty")),1))])):pe("",!0)]))}}),hh=["aria-expanded"],bh={class:"flex flex-wrap items-center gap-2"},vh={key:0,class:"flex flex-col gap-2"},_h={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},yh={class:"flex flex-wrap gap-2"},xh=["href","title"],wh={key:1,class:"flex flex-col gap-2"},kh={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Th={class:"flex flex-wrap gap-2"},Ch=["href","title"],Sh={key:2,class:"flex flex-col gap-2"},Eh={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Rh={class:"flex flex-wrap gap-2"},Ih=["href","title"],vi="pg-middlewares-panel",Ph=Oe({__name:"RouteDetailMiddlewares",props:{selected:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=Xe(),{isOpen:s,toggle:r}=Rc("middlewares");function o(b){const k=b.trim();return k?Vn(k,t.workspaceRoot,{allowAbsoluteWithoutRoot:!0})??"":""}const l=K(()=>t.selected.preMiddlewares??[]),i=K(()=>t.selected.normalMiddlewares?t.selected.normalMiddlewares:t.selected.preMiddlewares||t.selected.postMiddlewares?[]:t.selected.middlewares??[]),a=K(()=>t.selected.postMiddlewares??[]),c=K(()=>t.selected.preMiddlewareCount??l.value.length),u=K(()=>t.selected.normalMiddlewareCount??i.value.length),d=K(()=>t.selected.postMiddlewareCount??a.value.length),m=K(()=>t.selected.middlewareCount??c.value+u.value+d.value);return(b,k)=>(L(),N("div",null,[x("button",{type:"button",class:"group flex w-full items-center justify-between border-t px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition border-pg-border text-pg-text-muted hover:text-pg-text-soft","aria-expanded":S(s),"aria-controls":vi,onClick:k[0]||(k[0]=(...R)=>S(r)&&S(r)(...R))},[x("span",bh,[x("span",null,$(S(n)("detail.middlewares")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(m.value),1)]),_:1})]),x("span",{class:$e(["i-[carbon--chevron-down] h-4 w-4 transition",S(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,hh),S(s)&&(l.value.length>0||i.value.length>0||a.value.length>0)?(L(),N("div",{key:0,id:vi,class:"flex flex-col gap-3 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},[l.value.length>0?(L(),N("div",vh,[x("div",_h,[x("span",null,$(S(n)("detail.middlewarePre")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(c.value),1)]),_:1})]),x("div",yh,[(L(!0),N(xe,null,Qe(l.value,R=>(L(),N("span",{key:`pre-${R}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[be($(R)+" ",1),o(R)?(L(),N("a",{key:0,href:o(R),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[1]||(k[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,xh)):pe("",!0)]))),128))])])):pe("",!0),i.value.length>0?(L(),N("div",wh,[x("div",kh,[x("span",null,$(S(n)("detail.middlewareNormal")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(u.value),1)]),_:1})]),x("div",Th,[(L(!0),N(xe,null,Qe(i.value,R=>(L(),N("span",{key:`normal-${R}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[be($(R)+" ",1),o(R)?(L(),N("a",{key:0,href:o(R),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[2]||(k[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Ch)):pe("",!0)]))),128))])])):pe("",!0),a.value.length>0?(L(),N("div",Sh,[x("div",Eh,[x("span",null,$(S(n)("detail.middlewarePost")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(d.value),1)]),_:1})]),x("div",Rh,[(L(!0),N(xe,null,Qe(a.value,R=>(L(),N("span",{key:`post-${R}`,class:"inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[be($(R)+" ",1),o(R)?(L(),N("a",{key:0,href:o(R),class:"text-pg-text-soft transition hover:text-pg-text",title:S(n)("detail.openInVscode")},[...k[3]||(k[3]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Ih)):pe("",!0)]))),128))])])):pe("",!0)])):pe("",!0)]))}}),Un=Oe({__name:"UiTextInput",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Cs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=xs(),r=K(()=>Ss(n({dense:t.dense}),s.class)),o=K(()=>{const{class:i,style:a,...c}=s;return c}),l=K(()=>s.style);return(i,a)=>(L(),N("input",Cn(o.value,{class:r.value,style:l.value}),null,16))}}),Mh={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},Lh={class:"truncate text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},$h={class:"flex flex-wrap items-center gap-3 px-4 py-3"},Ah=["disabled","aria-busy"],Oh={key:0,class:"i-[carbon--circle-dash] h-3.5 w-3.5 animate-spin","aria-hidden":"true"},Nh=Oe({__name:"RouteDetailRequestHeader",props:{method:{},requestUrl:{},file:{},isSwRegistering:{type:Boolean}},emits:["run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Xe(),o=K(()=>`method-${n.method.toLowerCase()}`);return(l,i)=>(L(),N("div",null,[x("div",Mh,[x("span",null,$(S(r)("detail.requestLabel")),1),x("span",Lh,$(n.file),1)]),x("div",$h,[x("span",{class:$e(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",o.value])},$(n.method),3),q(Un,{value:n.requestUrl,readonly:"",class:"min-w-[220px] flex-1"},null,8,["value"]),x("button",{class:"flex items-center gap-2 rounded-full px-4 py-2 text-[0.65rem] uppercase tracking-[0.3em] shadow-sm transition hover:-translate-y-0.5 disabled:cursor-not-allowed disabled:opacity-70 disabled:hover:translate-y-0 bg-pg-accent text-pg-on-accent","data-testid":"playground-run",disabled:n.isSwRegistering,"aria-busy":n.isSwRegistering,onClick:i[0]||(i[0]=a=>s("run"))},[n.isSwRegistering?(L(),N("span",Oh)):pe("",!0),be(" "+$(S(r)("detail.run")),1)],8,Ah)])]))}}),Fh=["type"],ze=Oe({__name:"UiChipButton",props:{active:{type:Boolean,default:!1},tone:{default:"strong"},size:{default:"md"},type:{default:"button"}},setup(e,{expose:t}){const n=e,s=Cs({base:"inline-flex items-center gap-2 rounded-full border uppercase tracking-[0.25em] transition hover:-translate-y-0.5",variants:{size:{xs:"px-2.5 py-1 text-[0.55rem]",sm:"px-3 py-1 text-[0.55rem]",md:"px-3 py-1.5 text-[0.6rem]",lg:"px-3 py-1.5 text-[0.65rem]"},tone:{strong:"border-pg-border bg-pg-surface-strong text-pg-text-soft",card:"border-pg-border bg-pg-surface-card text-pg-text-soft"},active:{true:"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm ring-1 ring-pg-accent-ring"}},defaultVariants:{size:"md",tone:"strong"}}),r=xs(),o=K(()=>Ss(s({size:n.size,tone:n.tone,active:n.active}),r.class)),l=K(()=>{const{class:c,style:u,...d}=r;return d}),i=K(()=>r.style),a=oe(null);return t({el:a}),(c,u)=>(L(),N("button",Cn({ref_key:"buttonRef",ref:a},l.value,{type:n.type,class:o.value,style:i.value}),[Ao(c.$slots,"default")],16,Fh))}}),sn=Oe({__name:"UiField",props:{label:{},dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Cs({base:"flex flex-col uppercase text-pg-text-muted",variants:{dense:{true:"gap-1 text-[0.55rem] tracking-[0.25em]",false:"gap-1.5 text-[0.65rem] tracking-[0.2em]"}},defaultVariants:{dense:!1}}),s=xs(),r=K(()=>Ss(n({dense:t.dense}),s.class)),o=K(()=>{const{class:i,style:a,...c}=s;return c}),l=K(()=>s.style);return(i,a)=>(L(),N("label",Cn(o.value,{class:r.value,style:l.value}),[x("span",null,$(t.label),1),Ao(i.$slots,"default")],16))}}),Kr=Oe({__name:"UiTextarea",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Cs({base:"rounded-lg border outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",variants:{dense:{true:"px-2.5 py-1.5 text-[0.8rem]",false:"px-3 py-2 text-sm"}},defaultVariants:{dense:!1}}),s=xs(),r=K(()=>Ss(n({dense:t.dense}),s.class)),o=K(()=>{const{class:i,style:a,...c}=s;return c}),l=K(()=>s.style);return(i,a)=>(L(),N("textarea",Cn(o.value,{class:r.value,style:l.value}),null,16))}}),Dh={class:"rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},Uh={class:"border-t p-4 border-pg-border"},Vh={class:"flex flex-wrap gap-2"},Wh={class:"mt-4"},jh={key:0,class:"rounded-xl border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},Hh={key:1,class:"grid gap-3 lg:grid-cols-2"},Bh={class:"flex items-center gap-2 text-[0.55rem] uppercase tracking-[0.2em] text-pg-text-muted"},Kh={class:"rounded-full border px-2 py-0.5 text-[0.5rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},Gh={class:"relative"},qh=["value"],zh={value:"json"},Yh={value:"text"},Jh={value:"form"},Xh={value:"multipart"},Qh={value:"base64"},Zh={key:0,class:"mt-4"},eb={class:"mt-2 flex flex-col gap-2"},tb={class:"flex flex-col gap-2 lg:flex-row lg:items-center"},nb={class:"flex items-center gap-2 rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-card text-pg-text-muted"},sb=["onChange"],rb=["onClick"],ob='{ "q": "alpha", "page": 1 }',lb='{ "x-mokup": "playground" }',ib='{ "name": "Ada" }',ab=`title=alpha
|
|
4
|
+
count=3`,cb=`title=alpha
|
|
5
|
+
status=active`,ub="SGVsbG8gd29ybGQ=",db=Oe({__name:"RouteDetailRequest",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},multipartFiles:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:multipartFiles","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Xe(),{bodyType:o}=Mu(n);function l(O){return O.kind==="param"?r("detail.paramPlaceholder"):r("detail.paramPlaceholderCatchall")}const i=oe("query"),a=oe(!1),c=new Map;let u=null,d=0;const m=K(()=>new Set(n.missingParams)),b=K(()=>n.missingParams.length>0),k=K(()=>n.routeParams.some(O=>O.required)),R=K(()=>{switch(o.value){case"text":return r("detail.bodyTypeText");case"form":return r("detail.bodyTypeForm");case"multipart":return r("detail.bodyTypeMultipart");case"base64":return r("detail.bodyTypeBase64");default:return r("detail.bodyTypeJson")}});function I(O,Y){if(!Y){c.delete(O);return}c.set(O,Y)}function g(){u&&(clearTimeout(u),u=null),a.value=!1,!(typeof window>"u")&&window.requestAnimationFrame(()=>{a.value=!0,u=window.setTimeout(()=>{a.value=!1,u=null},1400)})}function w(){const[O]=n.missingParams;if(!O)return;const Y=c.get(O);if(!Y)return;Y.scrollIntoView({behavior:"smooth",block:"center"}),Y.querySelector("input")?.focus()}function v(){return n.routeParams.length>0?"params":"query"}ft(()=>n.selected?.url??"",()=>{i.value=v()},{immediate:!0}),ft(()=>n.routeParams.length,(O,Y)=>{if(!n.selected){i.value="query";return}O>0&&Y===0&&i.value==="query"&&(i.value="params"),O===0&&i.value==="params"&&(i.value="query")}),ft(()=>n.missingPulse,async(O,Y)=>{O===Y||!b.value||(i.value="params",await Qi(),w(),g())}),ft(()=>n.missingParams.length,O=>{O===0&&(a.value=!1)}),Tn(()=>{u&&(clearTimeout(u),u=null)});function _(){switch(n.bodyType){case"text":return r("detail.bodyPlaceholderText");case"form":return r("detail.bodyPlaceholderForm",{sample:ab});case"multipart":return r("detail.bodyPlaceholderMultipart",{sample:cb});case"base64":return r("detail.bodyPlaceholderBase64",{sample:ub});default:return r("detail.bodyPlaceholderJson",{json:ib})}}const P=K(()=>n.selected.configChain??[]);function F(){return d+=1,{id:`multipart-${d}`,name:"",files:[]}}function D(){s("update:multipartFiles",[...n.multipartFiles,F()])}function G(O){s("update:multipartFiles",n.multipartFiles.filter(Y=>Y.id!==O))}function z(O,Y){s("update:multipartFiles",n.multipartFiles.map(B=>B.id===O?{...B,name:Y}:B))}function ie(O,Y){const B=Y.target,te=Array.from(B?.files??[]);s("update:multipartFiles",n.multipartFiles.map(Q=>Q.id===O?{...Q,files:te}:Q))}function ce(O){return O.files.length===0?r("detail.bodyMultipartChoose"):r("detail.bodyMultipartCount",{count:O.files.length})}return(O,Y)=>(L(),N("section",Dh,[q(Nh,{method:n.selected.method,"request-url":n.requestUrl,file:n.selected.file,"is-sw-registering":n.isSwRegistering,onRun:Y[0]||(Y[0]=B=>s("run"))},null,8,["method","request-url","file","is-sw-registering"]),q(mh,{"config-chain":P.value,"config-status-map":n.configStatusMap},null,8,["config-chain","config-status-map"]),q(Ph,{selected:n.selected,"workspace-root":n.workspaceRoot},null,8,["selected","workspace-root"]),x("div",Uh,[x("div",Vh,[q(ze,{size:"md",active:i.value==="params",class:$e([b.value?"pg-tab-missing":"",a.value&&b.value?"pg-pulse":""]),onClick:Y[1]||(Y[1]=B=>i.value="params")},{default:le(()=>[x("span",null,$(S(r)("detail.params")),1),k.value?(L(),pt(Ie,{key:0,size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:le(()=>[be($(S(r)("detail.badgeRequired")),1)]),_:1})):pe("",!0)]),_:1},8,["active","class"]),q(ze,{size:"md",active:i.value==="query",onClick:Y[2]||(Y[2]=B=>i.value="query")},{default:le(()=>[x("span",null,$(S(r)("detail.query")),1),q(Ie,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:le(()=>[be($(S(r)("detail.badgeJson")),1)]),_:1})]),_:1},8,["active"]),q(ze,{size:"md",active:i.value==="headers",onClick:Y[3]||(Y[3]=B=>i.value="headers")},{default:le(()=>[x("span",null,$(S(r)("detail.headers")),1),q(Ie,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:le(()=>[be($(S(r)("detail.badgeJson")),1)]),_:1})]),_:1},8,["active"]),q(ze,{size:"md",active:i.value==="body",onClick:Y[4]||(Y[4]=B=>i.value="body")},{default:le(()=>[x("span",null,$(S(r)("detail.body")),1),q(Ie,{size:"xxs",tone:"chip",caps:!1,class:"pg-tab-badge"},{default:le(()=>[be($(R.value),1)]),_:1})]),_:1},8,["active"])]),x("div",Wh,[$s(x("div",null,[n.routeParams.length===0?(L(),N("div",jh,$(S(r)("detail.emptyParams")),1)):(L(),N("div",Hh,[(L(!0),N(xe,null,Qe(n.routeParams,B=>(L(),N("label",{key:B.id,ref_for:!0,ref:te=>I(B.name,te),class:"flex flex-col gap-1.5 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},[x("span",Bh,[x("span",null,$(B.name),1),x("span",Kh,$(B.token),1)]),q(Un,{value:n.paramValues[B.name]??"",placeholder:l(B),class:$e([m.value.has(B.name)?"pg-input-missing":"",a.value&&m.value.has(B.name)?"pg-pulse":""]),onInput:te=>s("update:param-value",B.name,te.target?.value??"")},null,8,["value","placeholder","class","onInput"])]))),128))]))],512),[[Os,i.value==="params"]]),$s(x("div",null,[q(sn,{label:S(r)("detail.query")},{default:le(()=>[q(Kr,{value:n.queryText,rows:"4",placeholder:S(r)("detail.queryPlaceholder",{json:ob}),onInput:Y[5]||(Y[5]=B=>s("update:queryText",B.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[Os,i.value==="query"]]),$s(x("div",null,[q(sn,{label:S(r)("detail.headers")},{default:le(()=>[q(Kr,{value:n.headersText,rows:"4",placeholder:S(r)("detail.headersPlaceholder",{json:lb}),onInput:Y[6]||(Y[6]=B=>s("update:headersText",B.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"])],512),[[Os,i.value==="headers"]]),$s(x("div",null,[q(sn,{label:S(r)("detail.bodyType")},{default:le(()=>[x("div",Gh,[x("select",{class:"w-full appearance-none rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",value:S(o),onChange:Y[7]||(Y[7]=B=>s("update:bodyType",B.target?.value))},[x("option",zh,$(S(r)("detail.bodyTypeJson")),1),x("option",Yh,$(S(r)("detail.bodyTypeText")),1),x("option",Jh,$(S(r)("detail.bodyTypeForm")),1),x("option",Xh,$(S(r)("detail.bodyTypeMultipart")),1),x("option",Qh,$(S(r)("detail.bodyTypeBase64")),1)],40,qh),Y[9]||(Y[9]=x("span",{class:"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-pg-text-muted","aria-hidden":"true"},[x("span",{class:"i-[carbon--chevron-down] block h-4 w-4"})],-1))])]),_:1},8,["label"]),q(sn,{label:S(r)("detail.body")},{default:le(()=>[q(Kr,{value:n.bodyText,rows:"6",placeholder:_(),onInput:Y[8]||(Y[8]=B=>s("update:bodyText",B.target?.value??""))},null,8,["value","placeholder"])]),_:1},8,["label"]),n.bodyType==="multipart"?(L(),N("div",Zh,[q(sn,{label:S(r)("detail.bodyMultipartFiles")},{default:le(()=>[x("div",eb,[(L(!0),N(xe,null,Qe(n.multipartFiles,B=>(L(),N("div",{key:B.id,class:"rounded-xl border p-3 border-pg-border bg-pg-surface-strong"},[x("div",tb,[q(Un,{class:"flex-1",value:B.name,placeholder:S(r)("detail.bodyMultipartField"),onInput:te=>z(B.id,te.target?.value??"")},null,8,["value","placeholder","onInput"]),x("label",nb,[x("input",{class:"sr-only",type:"file",multiple:"",onChange:te=>ie(B.id,te)},null,40,sb),x("span",null,$(ce(B)),1)]),x("button",{class:"rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] transition border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",type:"button",onClick:te=>G(B.id)},$(S(r)("detail.bodyMultipartRemove")),9,rb)])]))),128)),x("button",{class:"w-full rounded-lg border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] transition border-dashed border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",type:"button",onClick:D},$(S(r)("detail.bodyMultipartAdd")),1)])]),_:1},8,["label"])])):pe("",!0)],512),[[Os,i.value==="body"]])])])]))}}),fb={class:"flex min-h-[220px] flex-1 flex-col rounded-2xl border shadow-sm border-pg-border bg-pg-surface-card"},pb={class:"flex items-center justify-between border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},gb={class:"flex items-center gap-3 text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},mb={class:"flex-1 min-h-0 overflow-auto rounded-b-2xl p-4 text-xs bg-pg-surface-strong text-pg-text","data-testid":"playground-response"},hb=Oe({__name:"RouteDetailResponse",props:{responseText:{},responseStatus:{},responseTime:{}},setup(e){const t=e,{t:n}=Xe();return(s,r)=>(L(),N("section",fb,[x("div",pb,[x("span",null,$(S(n)("detail.responseLabel")),1),x("span",gb,[x("span",null,$(t.responseStatus),1),x("span",null,$(t.responseTime),1)])]),x("pre",mb,$(t.responseText),1)]))}}),bb={class:"flex min-h-0 flex-col gap-4"},vb={key:0,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},_b={class:"text-xl font-display text-pg-text-strong"},yb={class:"text-sm"},xb={key:1,class:"flex min-h-0 h-full flex-col gap-4"},wb=Oe({__name:"RouteDetail",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},multipartFiles:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:multipartFiles","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Xe();return(o,l)=>(L(),N("section",bb,[n.selected?(L(),N("div",xb,[q(db,{selected:n.selected,"request-url":n.requestUrl,"workspace-root":n.workspaceRoot,"route-params":n.routeParams,"param-values":n.paramValues,"missing-params":n.missingParams,"missing-pulse":n.missingPulse,"query-text":n.queryText,"headers-text":n.headersText,"body-text":n.bodyText,"body-type":n.bodyType,"multipart-files":n.multipartFiles,"is-sw-registering":n.isSwRegistering,"config-status-map":n.configStatusMap,"onUpdate:queryText":l[0]||(l[0]=i=>s("update:queryText",i)),"onUpdate:headersText":l[1]||(l[1]=i=>s("update:headersText",i)),"onUpdate:bodyText":l[2]||(l[2]=i=>s("update:bodyText",i)),"onUpdate:bodyType":l[3]||(l[3]=i=>s("update:bodyType",i)),"onUpdate:multipartFiles":l[4]||(l[4]=i=>s("update:multipartFiles",i)),"onUpdate:paramValue":l[5]||(l[5]=(i,a)=>s("update:param-value",i,a)),onRun:l[6]||(l[6]=i=>s("run"))},null,8,["selected","request-url","workspace-root","route-params","param-values","missing-params","missing-pulse","query-text","headers-text","body-text","body-type","multipart-files","is-sw-registering","config-status-map"]),q(hb,{"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime},null,8,["response-text","response-status","response-time"])])):(L(),N("div",vb,[x("p",_b,$(S(r)("detail.selectTitle")),1),x("p",yb,$(S(r)("detail.selectHint")),1)]))]))}}),kb={class:"flex min-h-0 flex-col gap-4"},Tb={class:"rounded-3xl border p-5 shadow-xl border-pg-border bg-pg-surface-card"},Cb={class:"flex flex-wrap items-center justify-between gap-3"},Sb={class:"flex flex-col gap-1"},Eb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Rb={class:"flex flex-wrap items-center gap-2"},Ib={class:"text-lg font-display text-pg-text-strong"},Pb={class:"text-xs text-pg-text-subtle"},Mb={class:"flex items-center gap-2"},Lb=["aria-label","title"],$b={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Ab={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Ob={key:0,class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Nb={class:"flex flex-wrap items-start justify-between gap-3"},Fb={class:"flex flex-col gap-1"},Db={class:"flex flex-wrap items-center gap-2"},Ub={class:"text-[0.85rem] font-semibold text-pg-text"},Vb={key:0,class:"text-[0.75rem] text-pg-text-muted"},Wb={key:1,class:"text-[0.7rem] text-pg-text-subtle"},jb=["aria-label","title","onClick"],Hb={key:1,class:"mt-3 text-xs text-pg-text-muted"},Bb={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Kb={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Gb={key:0,class:"mt-3 flex flex-col gap-2 text-xs text-pg-text-soft"},qb={class:"rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},zb={class:"text-[0.7rem] text-pg-text-subtle"},Yb={key:1,class:"mt-3 text-xs text-pg-text-muted"},Jb={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},Xb={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qb={key:0,class:"mt-3 flex flex-col gap-3 text-sm text-pg-text-soft"},Zb={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},ev={class:"mt-1 text-[0.75rem] text-pg-text-soft"},tv={class:"whitespace-pre-wrap"},nv={key:1,class:"mt-3 text-xs text-pg-text-muted"},sv={class:"rounded-2xl border p-4 border-pg-border bg-pg-surface-soft"},rv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},ov={class:"mt-3 grid gap-2 text-sm text-pg-text-soft"},lv={key:0,class:"flex items-center gap-2"},iv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},av={key:1,class:"flex items-center gap-2"},cv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},uv={class:"flex items-center gap-2"},dv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},fv={class:"text-pg-text-subtle"},_i=Oe({__name:"RouteDetailInactive",props:{mode:{},selected:{},workspaceRoot:{},configStatusMap:{}},setup(e){const t=e,{t:n}=Xe(),s=K(()=>t.mode==="ignored"?n("inactive.titleIgnored"):n("inactive.titleDisabled")),r=K(()=>t.mode==="ignored"?n(`ignored.reason.${t.selected.reason}`):n(`disabled.reason.${t.selected.reason}`)),o=K(()=>t.selected.url?t.selected.url:t.selected.file),l=I=>`method-${I.toLowerCase()}`,i=K(()=>t.selected.decisionChain??[]),a=K(()=>t.selected.configChain??[]),c=K(()=>a.value.map((I,g)=>({file:I,order:g+1,disabled:t.configStatusMap.get(I)==="disabled"})));function u(I){return Array.isArray(I)?I.join(", "):I&&typeof I=="object"?JSON.stringify(I,null,2):String(I)}const d=K(()=>t.selected.effectiveConfig??{}),m=K(()=>{const I=[],g=d.value;return typeof g.enabled=="boolean"&&I.push({key:"enabled",label:n("inactive.config.enabled"),value:String(g.enabled)}),typeof g.status=="number"&&I.push({key:"status",label:n("inactive.config.status"),value:String(g.status)}),typeof g.delay=="number"&&I.push({key:"delay",label:n("inactive.config.delay"),value:`${g.delay}ms`}),typeof g.ignorePrefix<"u"&&I.push({key:"ignorePrefix",label:n("inactive.config.ignorePrefix"),value:u(g.ignorePrefix)}),typeof g.include<"u"&&I.push({key:"include",label:n("inactive.config.include"),value:u(g.include)}),typeof g.exclude<"u"&&I.push({key:"exclude",label:n("inactive.config.exclude"),value:u(g.exclude)}),g.headers&&Object.keys(g.headers).length>0&&I.push({key:"headers",label:n("inactive.config.headers"),value:u(g.headers)}),I});function b(I){return{"config.enabled":n("decision.configEnabled"),"ignore-prefix":n("decision.ignorePrefix"),"file.supported":n("decision.fileSupported"),"filter.exclude":n("decision.filterExclude"),"filter.include":n("decision.filterInclude"),"route.derived":n("decision.routeDerived"),"rule.enabled":n("decision.ruleEnabled")}[I.step]??I.step}function k(I){return Vn(I,t.workspaceRoot)}function R(I){Tr(I,t.workspaceRoot)}return(I,g)=>(L(),N("section",kb,[x("div",Tb,[x("div",Cb,[x("div",Sb,[x("span",Eb,$(s.value),1),x("div",Rb,[t.selected.method?(L(),N("span",{key:0,class:$e(["rounded-full px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",l(t.selected.method)])},$(t.selected.method),3)):pe("",!0),x("span",Ib,$(o.value),1)]),x("span",Pb,$(t.selected.file),1)]),x("div",Mb,[q(Ie,{tone:"chip",size:"sm",caps:!1},{default:le(()=>[be($(r.value),1)]),_:1}),k(t.selected.file)?(L(),N("button",{key:0,class:"flex h-8 w-8 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${t.selected.file} in VS Code`,title:S(n)("detail.openInVscode"),onClick:g[0]||(g[0]=w=>R(t.selected.file))},[...g[1]||(g[1]=[x("span",{class:"i-[carbon--launch] h-4 w-4","aria-hidden":"true"},null,-1)])],8,Lb)):pe("",!0)])])]),x("div",$b,[x("div",Ab,[x("span",null,$(S(n)("inactive.decisionChain")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(i.value.length),1)]),_:1})]),i.value.length>0?(L(),N("div",Ob,[(L(!0),N(xe,null,Qe(i.value,(w,v)=>(L(),N("div",{key:`decision-${v}-${w.step}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Nb,[x("div",Fb,[x("div",Db,[x("span",{class:$e(["rounded-full border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em]",w.result==="pass"?"border-pg-border bg-pg-surface-strong text-pg-text-soft":"border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"])},$(w.result==="pass"?S(n)("inactive.pass"):S(n)("inactive.fail")),3),x("span",Ub,$(b(w)),1)]),w.detail?(L(),N("span",Vb,$(w.detail),1)):pe("",!0),w.source?(L(),N("span",Wb,$(w.source),1)):pe("",!0)]),w.source&&k(w.source)?(L(),N("button",{key:0,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${w.source} in VS Code`,title:S(n)("detail.openInVscode"),onClick:_=>R(w.source)},[...g[2]||(g[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,jb)):pe("",!0)])]))),128))])):(L(),N("div",Hb,$(S(n)("inactive.decisionChainEmpty")),1))]),x("div",Bb,[x("div",Kb,[x("span",null,$(S(n)("detail.configChain")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(c.value.length),1)]),_:1})]),c.value.length>0?(L(),N("div",Gb,[(L(!0),N(xe,null,Qe(c.value,w=>(L(),N("div",{key:`config-${w.order}-${w.file}`,class:"flex flex-wrap items-center gap-2"},[x("span",qb,$(w.order),1),x("span",zb,$(w.file),1),w.disabled?(L(),pt(Ie,{key:0,tone:"strong",size:"xxs",caps:!1},{default:le(()=>[be($(S(n)("configPanel.statusDisabled")),1)]),_:1})):pe("",!0)]))),128))])):(L(),N("div",Yb,$(S(n)("detail.configChainEmpty")),1))]),x("div",Jb,[x("div",Xb,[x("span",null,$(S(n)("inactive.effectiveConfig")),1),q(Ie,{tone:"chip",size:"xxs",caps:!1},{default:le(()=>[be($(m.value.length),1)]),_:1})]),m.value.length>0?(L(),N("div",Qb,[(L(!0),N(xe,null,Qe(m.value,w=>(L(),N("div",{key:`config-entry-${w.key}`,class:"rounded-xl border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Zb,$(w.label),1),x("div",ev,[x("code",tv,$(w.value),1)])]))),128))])):(L(),N("div",nv,$(S(n)("inactive.effectiveConfigEmpty")),1))]),x("div",sv,[x("div",rv,$(S(n)("inactive.routeSummary")),1),x("div",ov,[t.selected.method?(L(),N("div",lv,[x("span",iv,$(S(n)("inactive.summaryMethod")),1),x("span",null,$(t.selected.method),1)])):pe("",!0),t.selected.url?(L(),N("div",av,[x("span",cv,$(S(n)("inactive.summaryPath")),1),x("span",null,$(t.selected.url),1)])):pe("",!0),x("div",uv,[x("span",dv,$(S(n)("inactive.summaryFile")),1),x("span",fv,$(t.selected.file),1)])])])]))}}),pv={key:4,class:"flex h-full flex-col items-center justify-center gap-3 rounded-3xl border p-6 text-center shadow-xl border-pg-border bg-pg-surface-card text-pg-text-muted"},gv={class:"text-xl font-display text-pg-text-strong"},mv={class:"text-sm"},hv=Oe({__name:"PlaygroundContent",props:{selected:{},selectedDisabled:{},selectedIgnored:{},selectedConfig:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},multipartFiles:{},responseText:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},routeMode:{},enabledMode:{},disabledMode:{},configImpactRoutes:{},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:multipartFiles","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Xe(),o=K(()=>n.routeMode==="active"&&n.enabledMode==="api"),l=K(()=>!!n.selectedConfig),i=K(()=>n.routeMode==="disabled"&&n.disabledMode==="api"),a=K(()=>n.routeMode==="ignored"),c=K(()=>n.selectedConfig?n.configStatusMap.get(n.selectedConfig.file)??"enabled":"enabled"),u=K(()=>n.routeMode==="disabled"?r("states.disabledTitle"):n.routeMode==="ignored"?r("states.ignoredTitle"):r("states.configTitle")),d=K(()=>n.routeMode==="disabled"?r("states.disabledHint"):n.routeMode==="ignored"?r("states.ignoredHint"):r("states.configHint")),m=K({get:()=>n.queryText,set:_=>s("update:queryText",_)}),b=K({get:()=>n.headersText,set:_=>s("update:headersText",_)}),k=K({get:()=>n.bodyText,set:_=>s("update:bodyText",_)}),R=K({get:()=>n.bodyType,set:_=>s("update:bodyType",_)}),I=K({get:()=>n.multipartFiles,set:_=>s("update:multipartFiles",_)}),g=K(()=>n.workspaceRoot??"");function w(_,P){s("update:param-value",_,P)}function v(){s("run")}return(_,P)=>o.value?(L(),pt(wb,{key:0,queryText:m.value,"onUpdate:queryText":P[0]||(P[0]=F=>m.value=F),headersText:b.value,"onUpdate:headersText":P[1]||(P[1]=F=>b.value=F),bodyText:k.value,"onUpdate:bodyText":P[2]||(P[2]=F=>k.value=F),bodyType:R.value,"onUpdate:bodyType":P[3]||(P[3]=F=>R.value=F),multipartFiles:I.value,"onUpdate:multipartFiles":P[4]||(P[4]=F=>I.value=F),selected:n.selected,"request-url":n.requestUrl,"workspace-root":g.value,"response-text":n.responseText,"response-status":n.responseStatus,"response-time":n.responseTime,"is-sw-registering":n.isSwRegistering,"route-params":n.routeParams,"param-values":n.paramValues,"missing-params":n.missingParams,"missing-pulse":n.missingPulse,"config-status-map":n.configStatusMap,"onUpdate:paramValue":w,onRun:v},null,8,["queryText","headersText","bodyText","bodyType","multipartFiles","selected","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","config-status-map"])):i.value&&n.selectedDisabled?(L(),pt(_i,{key:1,mode:"disabled",selected:n.selectedDisabled,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):a.value&&n.selectedIgnored?(L(),pt(_i,{key:2,mode:"ignored",selected:n.selectedIgnored,"workspace-root":n.workspaceRoot,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):n.selectedConfig&&l.value?(L(),pt(lh,{key:3,selected:n.selectedConfig,impacted:n.configImpactRoutes,"is-disabled":c.value==="disabled","workspace-root":n.workspaceRoot},null,8,["selected","impacted","is-disabled","workspace-root"])):(L(),N("div",pv,[x("p",gv,$(u.value),1),x("p",mv,$(d.value),1)]))}}),Ic="mokup.playground.theme";function Pc(){try{const e=localStorage.getItem(Ic);if(e==="system"||e==="light"||e==="dark")return e}catch{}return null}function bv(e){try{localStorage.setItem(Ic,e)}catch{}}function vv(e){return e==="system"?"light":e==="light"?"dark":"system"}function Mc(e,t){return e==="dark"?"dark":e==="light"?"light":t?"dark":"light"}function zs(e,t){const n=Mc(e,t);return document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,n}function _v(){const e=Pc()??"system",t=window.matchMedia("(prefers-color-scheme: dark)").matches;return zs(e,t),e}function yv(){const e=oe("system"),t=oe(!1);let n=null;const s=K(()=>Mc(e.value,t.value)),r=()=>{n&&(t.value=n.matches,e.value==="system"&&zs(e.value,t.value))};function o(i){e.value=i,bv(i),zs(i,t.value)}function l(){o(vv(e.value))}return kn(()=>{n=window.matchMedia("(prefers-color-scheme: dark)"),t.value=n.matches,e.value=Pc()??"system",zs(e.value,t.value),n.addEventListener("change",r)}),Tn(()=>{n?.removeEventListener("change",r),n=null}),{themeMode:e,effectiveTheme:s,setThemeMode:o,cycleThemeMode:l}}const xv={header:{title:"Mock Playground",subtitle:"Inspect mock endpoints, craft requests, and validate responses without leaving the dev server.",refresh:"Refresh",routes:"{count} routes",calls:"{count} calls",mode:"Mode: {mode}",modeSw:"SW",modeSwRegistering:"SW (registering)",modeServer:"Server",languageToggle:"Language",themeToggle:"Theme"},controls:{more:"More"},theme:{system:"System",light:"Light",dark:"Dark"},filters:{search:"Search",base:"Base",searchPlaceholder:"Filter by method, path, or file"},disabled:{active:"Active ({count})",disabled:"Disabled ({count})",ignored:"Ignored ({count})",reason:{disabled:"Disabled","disabled-dir":"Disabled (dir)","ignore-prefix":"Ignore prefix",include:"Include filter",exclude:"Exclude filter",unknown:"Unknown"}},enabled:{api:"API ({count})",config:"Config ({count})",configLabel:"Config"},ignored:{reason:{unsupported:"Unsupported","invalid-route":"Not a route",unknown:"Unknown"}},tabs:{overview:"Overview"},tree:{file:"File",route:"Route"},states:{loadingRoutes:"Loading routes...",emptyRoutes:"No routes matched.",emptyDisabledRoutes:"No disabled routes matched.",emptyIgnoredRoutes:"No ignored files matched.",emptyDisabledConfigFiles:"No disabled config files matched.",emptyConfigFiles:"No config files matched.",disabledTitle:"Disabled routes",disabledHint:"Disabled routes are not executable.",ignoredTitle:"Ignored files",ignoredHint:"Ignored files are not mock routes.",configTitle:"Config files",configHint:"Config files are not mock routes."},detail:{selectTitle:"Select a route",selectHint:"Choose a route on the left to run a request.",requestLabel:"Request",responseLabel:"Response",run:"Run",params:"Params",badgeRequired:"Required",badgeJson:"JSON",emptyParams:"No params for this route.",query:"Query (JSON)",headers:"Headers (JSON)",body:"Body",bodyType:"Body type",bodyTypeJson:"JSON",bodyTypeText:"Text",bodyTypeForm:"Form",bodyTypeMultipart:"Multipart",bodyTypeBase64:"Base64",middlewares:"Middlewares",middlewarePre:"Pre",middlewareNormal:"Normal",middlewarePost:"Post",configChain:"Config chain",configChainEmpty:"No config files matched.",openInVscode:"Open in VSCode",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"raw text",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",bodyMultipartFiles:"Files",bodyMultipartField:"Field name",bodyMultipartChoose:"Choose files",bodyMultipartAdd:"Add file field",bodyMultipartRemove:"Remove",bodyMultipartCount:"{count} files",paramPlaceholder:"value",paramPlaceholderCatchall:"path/segments"},response:{idle:"Idle",empty:"No response yet.",waiting:"Waiting for response...",loading:"Loading...",error:"Error",emptyPayload:"[empty response]"},errors:{queryJson:"Query JSON error: {message}",headersJson:"Headers JSON error: {message}",bodyJson:"Body JSON error: {message}",bodyBase64:"Body base64 error: {message}",routeParams:"Missing route params: {params}"},configPanel:{title:"Config scope",scope:"Scope",impacted:"Impacted routes",active:"Active",disabled:"Disabled",ignored:"Ignored",emptyImpacts:"No routes matched.",statusEnabled:"Enabled",statusDisabled:"Disabled"},decision:{"config.enabled":"Config enabled","ignore-prefix":"Ignore prefix","file.supported":"Supported file","filter.exclude":"Exclude filter","filter.include":"Include filter","route.derived":"Route derived","rule.enabled":"Rule enabled"},inactive:{titleDisabled:"Disabled route",titleIgnored:"Ignored file",decisionChain:"Decision chain",decisionChainEmpty:"No decision chain recorded.",effectiveConfig:"Effective config",effectiveConfigEmpty:"No config overrides.",routeSummary:"Route summary",pass:"Pass",fail:"Fail",summaryMethod:"Method",summaryPath:"Path",summaryFile:"File",config:{enabled:"Enabled",status:"Status",delay:"Delay",ignorePrefix:"Ignore prefix",include:"Include",exclude:"Exclude",headers:"Headers"}}},wv={header:{title:"接口调试台",subtitle:"查看 Mock 接口、构造请求并验证响应,无需离开开发服务器。",refresh:"刷新",routes:"{count} 条接口",calls:"已调用 {count} 次",mode:"模式:{mode}",modeSw:"SW",modeSwRegistering:"SW 注册中",modeServer:"服务端",languageToggle:"语言",themeToggle:"主题"},controls:{more:"更多"},theme:{system:"跟随系统",light:"亮色",dark:"暗色"},filters:{search:"搜索",base:"基路径",searchPlaceholder:"按方法、路径或文件过滤"},disabled:{active:"启用 ({count})",disabled:"禁用 ({count})",ignored:"忽略 ({count})",reason:{disabled:"已禁用","disabled-dir":"目录禁用","ignore-prefix":"前缀忽略",include:"未命中包含",exclude:"命中排除",unknown:"未知"}},enabled:{api:"接口 ({count})",config:"配置 ({count})",configLabel:"配置"},ignored:{reason:{unsupported:"不支持的文件","invalid-route":"非路由文件",unknown:"未知"}},tabs:{overview:"总览"},tree:{file:"文件",route:"路由"},states:{loadingRoutes:"正在加载接口...",emptyRoutes:"没有匹配的接口。",emptyDisabledRoutes:"没有匹配的禁用接口。",emptyIgnoredRoutes:"没有匹配的忽略文件。",emptyDisabledConfigFiles:"没有匹配的禁用配置文件。",emptyConfigFiles:"没有匹配的配置文件。",disabledTitle:"禁用接口",disabledHint:"禁用接口无法调试。",ignoredTitle:"忽略的文件",ignoredHint:"忽略列表中的文件不属于接口。",configTitle:"配置文件",configHint:"配置文件不属于接口。"},detail:{selectTitle:"请选择接口",selectHint:"从左侧选择一个接口开始调试。",requestLabel:"请求",responseLabel:"响应",run:"发送",params:"路径参数",badgeRequired:"必填",badgeJson:"JSON",emptyParams:"该接口没有路径参数。",query:"查询参数 (JSON)",headers:"请求头 (JSON)",body:"请求体",bodyType:"请求体类型",bodyTypeJson:"JSON",bodyTypeText:"文本",bodyTypeForm:"表单",bodyTypeMultipart:"多段表单",bodyTypeBase64:"Base64",middlewares:"中间件",middlewarePre:"前置",middlewareNormal:"普通",middlewarePost:"后置",configChain:"配置链路",configChainEmpty:"当前接口未匹配配置文件。",openInVscode:"在 VSCode 中打开",queryPlaceholder:"{json}",headersPlaceholder:"{json}",bodyPlaceholderJson:"{json}",bodyPlaceholderText:"原始文本",bodyPlaceholderForm:"{sample}",bodyPlaceholderMultipart:"{sample}",bodyPlaceholderBase64:"{sample}",bodyMultipartFiles:"文件",bodyMultipartField:"字段名",bodyMultipartChoose:"选择文件",bodyMultipartAdd:"新增文件字段",bodyMultipartRemove:"移除",bodyMultipartCount:"{count} 个文件",paramPlaceholder:"填写值",paramPlaceholderCatchall:"路径片段"},response:{idle:"空闲",empty:"暂无响应。",waiting:"等待响应...",loading:"请求中...",error:"错误",emptyPayload:"[空响应]"},errors:{queryJson:"查询 JSON 错误:{message}",headersJson:"请求头 JSON 错误:{message}",bodyJson:"请求体 JSON 错误:{message}",bodyBase64:"请求体 Base64 错误:{message}",routeParams:"缺少路径参数:{params}"},configPanel:{title:"配置范围",scope:"影响范围",impacted:"影响接口",active:"生效",disabled:"禁用",ignored:"忽略",emptyImpacts:"没有匹配的接口。",statusEnabled:"启用",statusDisabled:"禁用"},decision:{"config.enabled":"配置启用","ignore-prefix":"忽略前缀","file.supported":"支持文件","filter.exclude":"排除过滤","filter.include":"包含过滤","route.derived":"路由解析","rule.enabled":"规则启用"},inactive:{titleDisabled:"禁用接口",titleIgnored:"忽略文件",decisionChain:"判定链路",decisionChainEmpty:"暂无判定链路。",effectiveConfig:"生效配置",effectiveConfigEmpty:"暂无配置覆盖。",routeSummary:"接口概览",pass:"通过",fail:"未通过",summaryMethod:"方法",summaryPath:"路径",summaryFile:"文件",config:{enabled:"启用",status:"状态码",delay:"延迟",ignorePrefix:"忽略前缀",include:"包含",exclude:"排除",headers:"响应头"}}},Lc="mokup.playground.locale",kv={"en-US":xv,"zh-CN":wv};function Tv(){try{const e=localStorage.getItem(Lc);if(e==="en-US"||e==="zh-CN")return e}catch{}return null}function Cv(e){try{localStorage.setItem(Lc,e)}catch{}}const Sv=fg({legacy:!1,locale:Tv()??"en-US",fallbackLocale:"en-US",messages:kv}),Ev={class:"flex flex-none flex-wrap items-center justify-between gap-2 rounded-2xl border px-3 py-2 text-[0.55rem] uppercase tracking-[0.25em] shadow-sm border-pg-border bg-pg-surface-card text-pg-text-soft"},Rv={class:"flex flex-wrap items-center gap-2"},Iv={class:"flex flex-wrap items-center gap-2"},Pv=Oe({__name:"PlaygroundHeader",props:{visibleCount:{},totalCount:{},requestMode:{}},emits:["refresh"],setup(e,{emit:t}){const n=e,s=t,{locale:r,t:o}=Xe(),{themeMode:l,effectiveTheme:i,cycleThemeMode:a}=yv(),c=K(()=>i.value==="dark"?"i-[carbon--moon]":"i-[carbon--sun]"),u=K(()=>o(`theme.${l.value}`)),d=K(()=>r.value==="zh-CN"?"中文":"EN"),m=K(()=>n.requestMode==="sw-registering"?o("header.mode",{mode:o("header.modeSwRegistering")}):n.requestMode==="sw"?o("header.mode",{mode:o("header.modeSw")}):o("header.mode",{mode:o("header.modeServer")})),b=K(()=>n.requestMode==="sw-registering"?"i-[carbon--time]":n.requestMode==="sw"?"i-[carbon--network-3]":"i-[carbon--bare-metal-server]");function k(){const I=r.value==="en-US"?"zh-CN":"en-US";r.value=I,Cv(I)}function R(){s("refresh")}return(I,g)=>(L(),N("div",Ev,[x("div",Rv,[q(Ie,{tone:"strong",size:"xs"},{default:le(()=>[g[0]||(g[0]=x("span",{class:"i-[carbon--map] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,$(S(o)("header.routes",{count:e.visibleCount})),1)]),_:1}),q(Ie,{tone:"strong",size:"xs"},{default:le(()=>[g[1]||(g[1]=x("span",{class:"i-[carbon--activity] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,$(S(o)("header.calls",{count:e.totalCount})),1)]),_:1}),q(Ie,{tone:"strong",size:"xs"},{default:le(()=>[x("span",{class:$e([b.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),x("span",null,$(m.value),1)]),_:1})]),x("div",Iv,[q(ze,{size:"xs",title:S(o)("header.languageToggle"),onClick:k},{default:le(()=>[g[2]||(g[2]=x("span",{class:"i-[carbon--language] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,$(d.value),1)]),_:1},8,["title"]),q(ze,{size:"xs",title:S(o)("header.themeToggle"),onClick:S(a)},{default:le(()=>[x("span",{class:$e([c.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),x("span",null,$(u.value),1)]),_:1},8,["title","onClick"]),q(ze,{size:"xs",onClick:R},{default:le(()=>[g[3]||(g[3]=x("span",{class:"i-[carbon--rotate] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,$(S(o)("header.refresh")),1)]),_:1})])]))}}),Mv={class:"flex flex-col gap-1","data-testid":"playground-tree"},Lv=["title","onClick"],$v={class:"flex min-w-0 flex-1 flex-col gap-1"},Av=["aria-label","onClick"],Ov=Oe({__name:"RouteTree",props:{rows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select"],setup(e,{emit:t}){const n=e,s=t,r=u=>`method-${u.toLowerCase()}`;function o(u){return Vn(u.file,n.workspaceRoot)}function l(u){Tr(u.file,n.workspaceRoot)}function i(u){if(u.kind==="folder"){s("toggle",u.id);return}s("select",u)}function a(u){return n.getRouteCount?n.getRouteCount(u):0}function c(u){return`${u*12}px`}return(u,d)=>(L(),N("div",Mv,[(L(!0),N(xe,null,Qe(e.rows,m=>(L(),N("div",{key:m.id,class:$e(["group flex items-center gap-2 rounded-lg border border-transparent px-2 py-1 text-left transition text-pg-text hover:bg-pg-hover",m.selected?"bg-pg-accent text-pg-on-accent border-pg-accent shadow-sm":""]),"data-testid":"playground-tree-row"},[x("button",{class:"flex min-w-0 flex-1 items-start gap-2 text-left",type:"button",title:m.title,onClick:b=>i(m)},[x("div",$v,[x("div",{class:"flex items-center gap-2",style:_s({paddingLeft:c(m.depth)})},[x("span",{class:$e(["flex h-3.5 w-3.5 items-center justify-center",m.selected?"text-pg-on-accent-soft":"text-pg-text-muted"])},[m.kind==="folder"?(L(),N("span",{key:0,class:$e([m.expanded?"i-[carbon--chevron-down]":"i-[carbon--chevron-right]","h-3.5 w-3.5"]),"aria-hidden":"true"},null,2)):pe("",!0)],2),m.kind==="route"&&m.route?(L(),N("span",{key:0,class:$e(["rounded-full px-1.5 py-0.5 text-[0.5rem] uppercase tracking-[0.2em]",r(m.route.method)])},$(m.route.method),3)):pe("",!0),x("span",{class:$e(["text-[0.78rem]",m.kind==="folder"?"font-semibold":"font-medium"])},$(m.label),3)],4)]),m.kind==="route"&&m.route&&a(m.route)>0?(L(),pt(Ie,{key:0,tone:"chip",size:"xxs",caps:!1,class:"ml-auto"},{default:le(()=>[be($(a(m.route)),1)]),_:2},1024)):pe("",!0)],8,Lv),m.kind==="route"&&m.route&&o(m.route)?(L(),N("button",{key:0,class:$e(["flex h-6 w-6 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",m.selected?"text-pg-on-accent-soft":""]),type:"button","aria-label":`Open ${m.route.file} in VS Code`,onClick:b=>l(m.route)},[...d[0]||(d[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],10,Av)):pe("",!0)],2))),128))]))}}),Nv={class:"flex-1 min-h-0 overflow-auto"},Fv={key:0,class:"rounded-2xl border px-4 py-3 text-sm border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"},Dv={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Uv={key:0,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Vv={key:1,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Wv={key:2,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},jv={key:3,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Hv={key:4,class:"flex flex-col gap-2"},Bv=["onClick"],Kv={class:"flex flex-wrap items-center justify-between gap-2"},Gv={class:"flex flex-col gap-1"},qv={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},zv={key:0,class:"text-[0.75rem] text-pg-text-subtle"},Yv={class:"flex items-center gap-2"},Jv={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},Xv=["aria-label","title","onClick"],Qv={key:5,class:"rounded-2xl border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Zv={key:6,class:"flex flex-col gap-2"},e_=["onClick"],t_={class:"flex flex-wrap items-center justify-between gap-2"},n_={class:"flex flex-col gap-1"},s_={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},r_={class:"flex items-center gap-2"},o_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},l_=["aria-label","title","onClick"],i_={key:7,class:"flex flex-col gap-2"},a_=["onClick"],c_={class:"flex flex-wrap items-center justify-between gap-2"},u_={class:"flex flex-col gap-1"},d_={class:"text-[0.7rem] uppercase tracking-[0.18em] text-pg-text-muted"},f_={class:"flex items-center gap-2"},p_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},g_=["aria-label","title","onClick"],m_={key:8,class:"flex flex-col gap-2"},h_=["onClick"],b_={class:"flex flex-wrap items-center justify-between gap-2"},v_={class:"flex flex-col gap-1"},__={class:"text-[0.7rem] tracking-[0.18em] text-pg-text-muted"},y_={class:"flex items-center gap-2"},x_={key:0,class:"flex h-6 w-6 items-center justify-center rounded-full border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},w_=["aria-label","title","onClick"],Bs="relative bg-pg-accent/12 text-pg-text-strong font-semibold shadow-[inset_4px_0_0_0_var(--color-pg-accent)]",k_=Oe({__name:"PlaygroundSidebarBody",props:{routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Xe(),o=K(()=>{const g={rows:n.treeRows};return n.workspaceRoot&&n.workspaceRoot.trim()&&(g.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(g.getRouteCount=n.getRouteCount),g});function l(g){return r(`disabled.reason.${g??"unknown"}`)}function i(g){return r(`ignored.reason.${g??"unknown"}`)}function a(g){return g?g.toLowerCase():""}function c(g){return g.toLowerCase()}function u(g){return Vn(g,n.workspaceRoot)}function d(g){Tr(g,n.workspaceRoot)}function m(g){g.route&&s("select-route",g.route)}function b(g){return n.selectedConfig?.file===g.file}function k(g){if(!g)return"";const w=(g.method??"").toUpperCase(),v=g.url??"";return`${g.file}|${g.reason}|${w}|${v}`}function R(g){const w=k(n.selectedDisabled);return w?k(g)===w:!1}function I(g){return n.selectedIgnored?.file===g.file&&n.selectedIgnored?.reason===g.reason}return(g,w)=>(L(),N("div",Nv,[n.error?(L(),N("div",Fv,$(n.error),1)):n.loading?(L(),N("div",Dv,$(S(r)("states.loadingRoutes")),1)):(L(),N(xe,{key:2},[n.routeMode==="disabled"&&n.disabledMode==="api"&&!n.disabledFiltered.length?(L(),N("div",Uv,$(S(r)("states.emptyDisabledRoutes")),1)):n.routeMode==="ignored"&&!n.ignoredFiltered.length?(L(),N("div",Vv,$(S(r)("states.emptyIgnoredRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="api"&&!n.filtered.length?(L(),N("div",Wv,$(S(r)("states.emptyRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="config"&&!n.configFiltered.length?(L(),N("div",jv,$(S(r)("states.emptyConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="api"?(L(),N("div",Hv,[(L(!0),N(xe,null,Qe(n.disabledFiltered,v=>(L(),N("button",{key:`${v.file}-${v.reason}-${v.method??""}-${v.url??""}`,class:$e(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",R(v)?Bs:""]),type:"button",onClick:_=>s("select-disabled-route",v)},[x("div",Kv,[x("div",Gv,[x("span",qv,$(v.method&&v.url?`${v.method} ${a(v.url)}`:a(v.url)||v.file),1),v.method&&v.url?(L(),N("span",zv,$(v.file),1)):pe("",!0)]),x("div",Yv,[R(v)?(L(),N("span",Jv,[...w[1]||(w[1]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),q(Ie,{tone:"strong",size:"sm",tracking:"tight"},{default:le(()=>[be($(l(v.reason)),1)]),_:2},1024),u(v.file)?(L(),N("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${v.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:Ns(_=>d(v.file),["stop"])},[...w[2]||(w[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Xv)):pe("",!0)])])],10,Bv))),128))])):n.routeMode==="disabled"&&n.disabledMode==="config"&&!n.disabledConfigFiltered.length?(L(),N("div",Qv,$(S(r)("states.emptyDisabledConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="config"?(L(),N("div",Zv,[(L(!0),N(xe,null,Qe(n.disabledConfigFiltered,v=>(L(),N("button",{key:v.file,class:$e(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",b(v)?Bs:""]),type:"button",onClick:_=>s("select-config",v)},[x("div",t_,[x("div",n_,[x("span",s_,$(c(v.file)),1)]),x("div",r_,[b(v)?(L(),N("span",o_,[...w[3]||(w[3]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),q(Ie,{tone:"strong",size:"sm",tracking:"tight"},{default:le(()=>[be($(S(r)("enabled.configLabel")),1)]),_:1}),u(v.file)?(L(),N("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${v.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:Ns(_=>d(v.file),["stop"])},[...w[4]||(w[4]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,l_)):pe("",!0)])])],10,e_))),128))])):n.routeMode==="ignored"?(L(),N("div",i_,[(L(!0),N(xe,null,Qe(n.ignoredFiltered,v=>(L(),N("button",{key:`${v.file}-${v.reason}`,class:$e(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",I(v)?Bs:""]),type:"button",onClick:_=>s("select-ignored-route",v)},[x("div",c_,[x("div",u_,[x("span",d_,$(v.file),1)]),x("div",f_,[I(v)?(L(),N("span",p_,[...w[5]||(w[5]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),q(Ie,{tone:"strong",size:"sm",tracking:"tight"},{default:le(()=>[be($(i(v.reason)),1)]),_:2},1024),u(v.file)?(L(),N("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${v.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:Ns(_=>d(v.file),["stop"])},[...w[6]||(w[6]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,g_)):pe("",!0)])])],10,a_))),128))])):n.routeMode==="active"&&n.enabledMode==="config"?(L(),N("div",m_,[(L(!0),N(xe,null,Qe(n.configFiltered,v=>(L(),N("button",{key:v.file,class:$e(["rounded-2xl border px-4 py-3 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong",b(v)?Bs:""]),type:"button",onClick:_=>s("select-config",v)},[x("div",b_,[x("div",v_,[x("span",__,$(c(v.file)),1)]),x("div",y_,[b(v)?(L(),N("span",x_,[...w[7]||(w[7]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),q(Ie,{tone:"strong",size:"sm",tracking:"tight"},{default:le(()=>[be($(S(r)("enabled.configLabel")),1)]),_:1}),u(v.file)?(L(),N("button",{key:1,class:"flex h-7 w-7 items-center justify-center rounded-md transition text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":`Open ${v.file} in VS Code`,title:S(r)("detail.openInVscode"),onClick:Ns(_=>d(v.file),["stop"])},[...w[8]||(w[8]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,w_)):pe("",!0)])])],10,h_))),128))])):(L(),pt(Ov,Cn({key:9},o.value,{onToggle:w[0]||(w[0]=v=>s("toggle",v)),onSelect:m}),null,16))],64))]))}}),T_=Oe({__name:"PlaygroundFilters",props:{search:{},basePath:{},showBase:{type:Boolean,default:!0},compact:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){const n=e,s=t;function r(l){const i=l.target;s("update:search",i?.value??"")}const{t:o}=Xe();return(l,i)=>(L(),N("section",{class:$e(["grid",n.compact?"gap-2":"gap-3"])},[q(sn,{label:S(o)("filters.search"),dense:n.compact},{default:le(()=>[q(Un,{value:e.search,type:"search",dense:n.compact,placeholder:S(o)("filters.searchPlaceholder"),"data-testid":"playground-search",onInput:r},null,8,["value","dense","placeholder"])]),_:1},8,["label","dense"]),n.showBase?(L(),pt(sn,{key:0,label:S(o)("filters.base"),dense:n.compact},{default:le(()=>[q(Un,{value:e.basePath,readonly:"",dense:n.compact},null,8,["value","dense"])]),_:1},8,["label","dense"])):pe("",!0)],2))}}),C_={class:"flex flex-wrap items-center gap-2"},S_=Oe({__name:"PlaygroundTabs",props:{groups:{},activeGroup:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:s}=Xe();return(r,o)=>(L(),N("section",C_,[q(ze,{size:"md",active:e.activeGroup==="all",onClick:o[0]||(o[0]=l=>n("select","all"))},{default:le(()=>[be($(S(s)("tabs.overview")),1)]),_:1},8,["active"]),(L(!0),N(xe,null,Qe(e.groups,l=>(L(),pt(ze,{key:l.key,size:"md",active:e.activeGroup===l.key,onClick:i=>n("select",l.key)},{default:le(()=>[be($(l.label),1)]),_:2},1032,["active","onClick"]))),128))]))}}),E_={class:"flex items-center gap-2"},R_=Oe({__name:"TreeModeToggle",props:{treeMode:{}},emits:["update:treeMode"],setup(e,{emit:t}){const n=t;function s(o){n("update:treeMode",o)}const{t:r}=Xe();return(o,l)=>(L(),N("div",E_,[q(ze,{size:"sm",active:e.treeMode==="file",onClick:l[0]||(l[0]=i=>s("file"))},{default:le(()=>[l[2]||(l[2]=x("span",{class:"i-[carbon--document] h-4 w-4","aria-hidden":"true"},null,-1)),x("span",null,$(S(r)("tree.file")),1)]),_:1},8,["active"]),q(ze,{size:"sm",active:e.treeMode==="route",onClick:l[1]||(l[1]=i=>s("route"))},{default:le(()=>[l[3]||(l[3]=x("span",{class:"i-[carbon--link] h-4 w-4","aria-hidden":"true"},null,-1)),x("span",null,$(S(r)("tree.route")),1)]),_:1},8,["active"])]))}}),I_={class:"relative"},P_={class:"flex items-end gap-2"},M_={class:"mt-2 flex flex-wrap items-center gap-2"},L_={key:0,class:"mt-2 flex flex-wrap items-center gap-2"},$_={key:1,class:"mt-2 flex flex-wrap items-center gap-2"},A_={class:"grid gap-3"},O_=Oe({__name:"PlaygroundSidebarHeader",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode"],setup(e,{emit:t}){const n=e,s=t,{t:r}=Xe(),o=K({get:()=>n.search,set:m=>s("update:search",m)}),l=K(()=>n.basePath||"/"),i=oe(!1),a=oe(null),c=oe(null);function u(){i.value=!i.value}function d(m){if(!i.value)return;const b=m.target;if(!b)return;const k=a.value?.$el;c.value?.contains(b)||k?.contains(b)||(i.value=!1)}return kn(()=>{document.addEventListener("pointerdown",d)}),Tn(()=>{document.removeEventListener("pointerdown",d)}),(m,b)=>(L(),N("div",I_,[x("div",P_,[q(T_,{search:o.value,"onUpdate:search":b[0]||(b[0]=k=>o.value=k),"base-path":l.value,"show-base":!1,compact:!0,class:"flex-1"},null,8,["search","base-path"]),q(ze,{ref_key:"moreButtonRef",ref:a,size:"sm",class:"h-9","aria-expanded":i.value,"aria-haspopup":"true","aria-controls":"playground-more-panel",onClick:u},{default:le(()=>[b[10]||(b[10]=x("span",{class:"i-[carbon--settings-adjust] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,$(S(r)("controls.more")),1)]),_:1},8,["aria-expanded"])]),x("div",M_,[q(ze,{size:"md",active:n.routeMode==="active",onClick:b[1]||(b[1]=k=>s("set-route-mode","active"))},{default:le(()=>[be($(S(r)("disabled.active",{count:n.activeTotal})),1)]),_:1},8,["active"]),q(ze,{size:"md",active:n.routeMode==="disabled",onClick:b[2]||(b[2]=k=>s("set-route-mode","disabled"))},{default:le(()=>[be($(S(r)("disabled.disabled",{count:n.disabledTotal})),1)]),_:1},8,["active"]),q(ze,{size:"md",active:n.routeMode==="ignored",onClick:b[3]||(b[3]=k=>s("set-route-mode","ignored"))},{default:le(()=>[be($(S(r)("disabled.ignored",{count:n.ignoredTotal})),1)]),_:1},8,["active"])]),n.routeMode==="active"?(L(),N("div",L_,[q(ze,{size:"sm",active:n.enabledMode==="api",onClick:b[4]||(b[4]=k=>s("set-enabled-mode","api"))},{default:le(()=>[be($(S(r)("enabled.api",{count:n.apiTotal})),1)]),_:1},8,["active"]),q(ze,{size:"sm",active:n.enabledMode==="config",onClick:b[5]||(b[5]=k=>s("set-enabled-mode","config"))},{default:le(()=>[be($(S(r)("enabled.config",{count:n.configTotal})),1)]),_:1},8,["active"])])):n.routeMode==="disabled"?(L(),N("div",$_,[q(ze,{size:"sm",active:n.disabledMode==="api",onClick:b[6]||(b[6]=k=>s("set-disabled-mode","api"))},{default:le(()=>[be($(S(r)("enabled.api",{count:n.disabledApiTotal})),1)]),_:1},8,["active"]),q(ze,{size:"sm",active:n.disabledMode==="config",onClick:b[7]||(b[7]=k=>s("set-disabled-mode","config"))},{default:le(()=>[be($(S(r)("enabled.config",{count:n.disabledConfigTotal})),1)]),_:1},8,["active"])])):pe("",!0),i.value?(L(),N("div",{key:2,id:"playground-more-panel",ref_key:"morePanelRef",ref:c,class:"absolute left-0 right-0 z-30 mt-2 rounded-2xl border p-3 shadow-xl border-pg-border bg-pg-surface-panel"},[x("div",A_,[q(sn,{label:S(r)("filters.base"),dense:""},{default:le(()=>[q(Un,{value:l.value,readonly:"",dense:""},null,8,["value"])]),_:1},8,["label"]),q(S_,{groups:n.groups,"active-group":n.activeGroup,onSelect:b[8]||(b[8]=k=>s("select-group",k))},null,8,["groups","active-group"]),q(R_,{"tree-mode":n.treeMode,"onUpdate:treeMode":b[9]||(b[9]=k=>s("update:treeMode",k))},null,8,["tree-mode"])])],512)):pe("",!0)]))}}),N_={class:"flex min-h-0 w-full max-w-none flex-col gap-3 overflow-hidden border-b p-3 border-pg-border lg:w-[var(--left-width)] lg:min-w-[240px] lg:max-w-[560px] lg:flex-none lg:border-b-0 lg:border-r"},F_=Oe({__name:"PlaygroundSidebar",props:{search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{},error:{},loading:{type:Boolean},filtered:{},disabledFiltered:{},ignoredFiltered:{},configFiltered:{},disabledConfigFiltered:{},treeRows:{},workspaceRoot:{},getRouteCount:{type:Function}},emits:["update:search","select-group","set-route-mode","set-enabled-mode","set-disabled-mode","update:treeMode","toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t;return(r,o)=>(L(),N("aside",N_,[q(O_,{search:n.search,"base-path":n.basePath,groups:n.groups,"active-group":n.activeGroup,"tree-mode":n.treeMode,"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"active-total":n.activeTotal,"api-total":n.apiTotal,"disabled-total":n.disabledTotal,"ignored-total":n.ignoredTotal,"config-total":n.configTotal,"disabled-api-total":n.disabledApiTotal,"disabled-config-total":n.disabledConfigTotal,"onUpdate:search":o[0]||(o[0]=l=>s("update:search",l)),onSelectGroup:o[1]||(o[1]=l=>s("select-group",l)),onSetRouteMode:o[2]||(o[2]=l=>s("set-route-mode",l)),onSetEnabledMode:o[3]||(o[3]=l=>s("set-enabled-mode",l)),onSetDisabledMode:o[4]||(o[4]=l=>s("set-disabled-mode",l)),"onUpdate:treeMode":o[5]||(o[5]=l=>s("update:treeMode",l))},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total"]),q(k_,{"route-mode":n.routeMode,"enabled-mode":n.enabledMode,"disabled-mode":n.disabledMode,"selected-config":n.selectedConfig,"selected-disabled":n.selectedDisabled,"selected-ignored":n.selectedIgnored,error:n.error,loading:n.loading,filtered:n.filtered,"disabled-filtered":n.disabledFiltered,"ignored-filtered":n.ignoredFiltered,"config-filtered":n.configFiltered,"disabled-config-filtered":n.disabledConfigFiltered,"tree-rows":n.treeRows,"workspace-root":n.workspaceRoot,"get-route-count":n.getRouteCount,onToggle:o[6]||(o[6]=l=>s("toggle",l)),onSelectRoute:o[7]||(o[7]=l=>s("select-route",l)),onSelectDisabledRoute:o[8]||(o[8]=l=>s("select-disabled-route",l)),onSelectIgnoredRoute:o[9]||(o[9]=l=>s("select-ignored-route",l)),onSelectConfig:o[10]||(o[10]=l=>s("select-config",l))},null,8,["route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count"])]))}});function D_(e){const t=K(()=>e.routeMode.value==="disabled"),n=K(()=>e.routeMode.value==="ignored"),s=K(()=>e.routes.value.length+e.configCount.value),r=K(()=>e.routes.value.length),o=K(()=>e.disabledCount.value+e.disabledConfigCount.value),l=K(()=>e.ignoredCount.value),i=K(()=>e.configCount.value),a=K(()=>e.disabledConfigCount.value),c=K(()=>e.disabledCount.value),u=K(()=>t.value?e.disabledMode.value==="config"?e.disabledConfigFiltered.value.length:e.disabledFiltered.value.length:n.value?e.ignoredFiltered.value.length:e.enabledMode.value==="config"?e.configFiltered.value.length:e.routeCount.value);return{activeTotal:s,apiTotal:r,disabledTotal:o,ignoredTotal:l,configTotal:i,disabledConfigTotal:a,disabledApiTotal:c,visibleCount:u}}function U_(e){function t(){const c=e.lastSelectedKey.value;return c?e.filtered.value.find(u=>e.getRouteKey(u)===c)??null:null}function n(c){if(e.routeMode.value=c,c!=="active"){e.selectRoute(null),e.selectConfig(null),c==="disabled"&&e.disabledMode.value==="api"&&(e.selectDisabledRoute(e.disabledFiltered.value[0]??null),e.selectIgnoredRoute(null)),c==="ignored"&&(e.selectIgnoredRoute(e.ignoredFiltered.value[0]??null),e.selectDisabledRoute(null));return}if(e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.enabledMode.value==="api"&&!e.selected.value){const u=t();u&&e.selectRoute(u)}e.enabledMode.value!=="config"&&e.selectConfig(null)}function s(c){if(e.enabledMode.value=c,c==="config"){e.selectRoute(null);return}if(e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),!e.selected.value){const u=t();u&&e.selectRoute(u)}}function r(c){if(e.disabledMode.value=c,c==="config"){e.selectDisabledRoute(null);return}e.selectConfig(null),e.selectedDisabled.value||e.selectDisabledRoute(e.disabledFiltered.value[0]??null)}function o(c){e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectRoute(c)}function l(c){e.selectRoute(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectConfig(c)}function i(c){e.selectRoute(null),e.selectConfig(null),e.selectIgnoredRoute(null),e.selectDisabledRoute(c)}function a(c){e.selectRoute(null),e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(c)}return{setRouteMode:n,setEnabledMode:s,setDisabledMode:r,handleSelectRoute:o,handleSelectConfig:l,handleSelectDisabled:i,handleSelectIgnored:a}}new Set(".\\+*[^]$()");const Gr=/^[\w-]+$/,V_=/^\[([^\]/]+)\]$/,W_=/^\[\.\.\.([^\]/]+)\]$/,j_=/^\[\[\.\.\.([^\]/]+)\]\]$/,H_=/^\([^)]+\)$/;function B_(e){switch(e.type){case"static":return 4;case"param":return 3;case"catchall":return 2;case"optional-catchall":return 1;default:return 0}}function K_(e){return e.map(B_)}function $c(e){const n=(e.split("?")[0]??"").split("#")[0]??"";let s=n.startsWith("/")?n:`/${n}`;return s.length>1&&s.endsWith("/")&&(s=s.slice(0,-1)),s}function G_(e){return $c(e).split("/").filter(Boolean)}function _o(e){const t=[],n=[],s=$c(e),r=G_(s),o=[],l=new Set;for(let i=0;i<r.length;i+=1){const a=r[i];if(!a)continue;if(H_.test(a)){t.push(`Route groups are not supported: ${a}`);continue}const c=a.match(j_);if(c){const m=c[1];if(!m){t.push(`Invalid optional catch-all param name "${a}"`);continue}if(!Gr.test(m)){t.push(`Invalid optional catch-all param name "${m}"`);continue}if(i!==r.length-1){t.push(`Optional catch-all "${a}" must be the last segment`);continue}l.has(m)&&n.push(`Duplicate param name "${m}"`),l.add(m),o.push({type:"optional-catchall",name:m});continue}const u=a.match(W_);if(u){const m=u[1];if(!m){t.push(`Invalid catch-all param name "${a}"`);continue}if(!Gr.test(m)){t.push(`Invalid catch-all param name "${m}"`);continue}if(i!==r.length-1){t.push(`Catch-all "${a}" must be the last segment`);continue}l.has(m)&&n.push(`Duplicate param name "${m}"`),l.add(m),o.push({type:"catchall",name:m});continue}const d=a.match(V_);if(d){const m=d[1];if(!m){t.push(`Invalid param name "${a}"`);continue}if(!Gr.test(m)){t.push(`Invalid param name "${m}"`);continue}l.has(m)&&n.push(`Duplicate param name "${m}"`),l.add(m),o.push({type:"param",name:m});continue}if(a.includes("[")||a.includes("]")||a.includes("(")||a.includes(")")){t.push(`Invalid route segment "${a}"`);continue}o.push({type:"static",value:a})}return{template:s,tokens:o,score:K_(o),errors:t,warnings:n}}function Ys(e){const t=e.trim();if(!t)return{value:void 0};try{return{value:JSON.parse(t)}}catch(n){return{error:n instanceof Error?n.message:"Invalid JSON"}}}function q_(e,t){for(const[n,s]of Object.entries(t))typeof s>"u"||(Array.isArray(s)?s.forEach(r=>e.searchParams.append(n,String(r))):e.searchParams.set(n,String(s)))}function yo(e,t){return e==="catchall"?`[...${t}]`:e==="optional-catchall"?`[[...${t}]]`:`[${t}]`}function z_(e){const t=[],n=new Set;for(const s of e){if(s.type==="static"||n.has(s.name))continue;n.add(s.name);const r=s.type;t.push({id:`${r}:${s.name}`,name:s.name,kind:r,token:yo(r,s.name),required:r!=="optional-catchall"})}return t}function Ac(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?t.split("/").filter(Boolean):[]}function Y_(e,t){const n=[],s=new Set;for(const o of e){if(o.type==="static"){n.push(o.value);continue}const l=t[o.name]?.trim()??"";if(!l){o.type!=="optional-catchall"&&s.add(o.name);continue}if(o.type==="param"){n.push(encodeURIComponent(l));continue}const i=Ac(l).map(encodeURIComponent);if(i.length===0){o.type!=="optional-catchall"&&s.add(o.name);continue}n.push(...i)}return{path:n.length>0?`/${n.join("/")}`:"/",missing:[...s]}}function J_(e,t){const n=[];for(const s of e){if(s.type==="static"){n.push(s.value);continue}const r=t[s.name]?.trim()??"";if(!r){s.type!=="optional-catchall"&&n.push(yo(s.type,s.name));continue}if(s.type==="param"){n.push(encodeURIComponent(r));continue}const o=Ac(r).map(encodeURIComponent);if(o.length===0){s.type!=="optional-catchall"&&n.push(yo(s.type,s.name));continue}n.push(...o)}return n.length>0?`/${n.join("/")}`:"/"}function X_(e){const t=new URLSearchParams;for(const[s,r]of Object.entries(e))typeof r>"u"||(Array.isArray(r)?r.forEach(o=>t.append(s,String(o))):t.set(s,String(r)));const n=t.toString();return n?`?${n}`:""}function yi(e){const t=e.trim();if(!t)return[];const n=t.split(/[&\r\n]/),s=[];for(const r of n){const o=r.trim();if(!o)continue;const[l,...i]=o.split("="),a=(l??"").trim();if(!a)continue;const c=i.join("=").trim();s.push([a,c])}return s}function Q_(e){const t=e.trim();if(!t)return{value:void 0};const s=(t.startsWith("data:")?t.split("base64,").pop()??"":t).replace(/\s+/g,"");try{const r=atob(s),o=new Uint8Array(r.length);for(let l=0;l<r.length;l+=1)o[l]=r.charCodeAt(l);return{value:o}}catch{return{error:"Invalid base64"}}}function Z_(e){return{resetResponse:()=>{e.responseText.value=e.t("response.empty"),e.responseStatus.value=e.t("response.idle"),e.responseTime.value=""},runRequest:async()=>{if(!e.selected.value)return;const s=e.routeTokens.value.length>0?e.routeTokens.value:_o(e.selected.value.url).tokens,r=Y_(s,e.paramValues.value);if(r.missing.length>0){e.onMissingParams?.(r.missing),e.responseText.value=e.t("errors.routeParams",{params:r.missing.join(", ")});return}const o=e.getRouteKey(e.selected.value),l=Ys(e.queryText.value);if(l.error){e.responseText.value=e.t("errors.queryJson",{message:l.error});return}const i=Ys(e.headersText.value);if(i.error){e.responseText.value=e.t("errors.headersJson",{message:i.error});return}const a=new URL(r.path,window.location.origin);l.value&&q_(a,l.value);const c={};if(i.value)for(const[b,k]of Object.entries(i.value))typeof k>"u"||(c[b]=Array.isArray(k)?k.join(","):String(k));const u={method:e.selected.value.method,headers:c},d=e.selected.value.method.toUpperCase();if(d!=="GET"&&d!=="HEAD"){const b=e.bodyText.value;if(e.bodyType.value==="json"){const k=Ys(b);if(k.error){e.responseText.value=e.t("errors.bodyJson",{message:k.error});return}k.value&&(u.body=JSON.stringify(k.value),c["Content-Type"]||(c["Content-Type"]="application/json"))}else if(e.bodyType.value==="text")b.trim()&&(u.body=b,c["Content-Type"]||(c["Content-Type"]="text/plain; charset=utf-8"));else if(e.bodyType.value==="form"){const k=yi(b);if(k.length>0){const R=new URLSearchParams;for(const[I,g]of k)R.append(I,g);u.body=R.toString(),c["Content-Type"]||(c["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8")}}else if(e.bodyType.value==="multipart"){const k=yi(b),R=(e.multipartFiles?.value??[]).map(I=>({name:I.name.trim(),files:I.files})).filter(I=>I.name.length>0&&I.files.length>0);if(k.length>0||R.length>0){const I=new FormData;for(const[g,w]of k)I.append(g,w);for(const g of R)for(const w of g.files)I.append(g.name,w);u.body=I}}else if(e.bodyType.value==="base64"){const k=Q_(b);if(k.error){e.responseText.value=e.t("errors.bodyBase64",{message:k.error});return}k.value&&(u.body=k.value,c["Content-Type"]||(c["Content-Type"]="application/octet-stream"))}}e.responseStatus.value=e.t("response.loading"),e.responseTime.value="",e.responseText.value=e.t("response.waiting"),await e.ensureSwReady();const m=performance.now();try{const b=await fetch(a.toString(),u);e.isServerCounts.value||(e.routeCounts.value[o]=(e.routeCounts.value[o]??0)+1);const k=Math.round(performance.now()-m);e.responseTime.value=`${k}ms`,e.responseStatus.value=`${b.status} ${b.statusText}`;const R=b.headers.get("content-type")??"",I=await b.text();if(R.includes("application/json"))try{e.responseText.value=JSON.stringify(JSON.parse(I),null,2)}catch{e.responseText.value=I}else e.responseText.value=I||e.t("response.emptyPayload")}catch(b){e.responseStatus.value=e.t("response.error"),e.responseText.value=b instanceof Error?b.message:String(b)}}}}function Oc(e){try{return new URL(e).pathname.includes("mokup-sw")}catch{return e.includes("mokup-sw")}}function xi(e){return[e.active?.scriptURL,e.waiting?.scriptURL,e.installing?.scriptURL].filter(n=>typeof n=="string").some(n=>Oc(n))}function ey(e){return!!e&&Oc(e.scriptURL)}async function ty(){if(typeof window>"u"||!("serviceWorker"in navigator))return null;try{const e=await navigator.serviceWorker.getRegistration();if(e&&xi(e))return e}catch{}try{return(await navigator.serviceWorker.getRegistrations()).find(xi)??null}catch{return null}}function ny(){return!1}function sy(e){if(!ny())return"";const t=e.trim();if(!t)return"";const n=t.startsWith("/")?t:`/${t}`,s=n.endsWith("/")?n.slice(0,-1):n,r=new URL(`${s}/ws`,window.location.origin);return r.protocol=r.protocol==="https:"?"wss:":"ws:",r.toString()}function ry(e){try{const t=JSON.parse(e);if(t.type==="snapshot"&&t.perRoute||t.type==="increment"&&typeof t.routeKey=="string")return t}catch{return null}return null}let zn=null;function oy(e,t={}){const{t:n}=Xe(),s=oe(""),r=oe(""),o=oe(""),l=oe("json"),i=oe([]),a=oe(n("response.empty")),c=oe(n("response.idle")),u=oe(""),d=oe(!1),m=oe(!1),b=K(()=>d.value&&!m.value),k=oe({}),R=K(()=>Object.values(k.value).reduce((X,ae)=>X+ae,0)),I=oe(!1),g=oe(null),w=oe(""),v=oe([]),_=oe([]),P=oe({}),F=oe([]),D=oe(0),G=K(()=>{if(!e.value)return"";const X=v.value.length>0?v.value:_o(e.value.url).tokens,ae=J_(X,P.value),ue=Ys(s.value);return ue.error||!ue.value?ae:`${ae}${X_(ue.value)}`});function z(X){return`${X.method} ${X.url}`}function ie(X){return k.value[z(X)]??0}function ce(X){if(typeof X.data!="string")return;const ae=ry(X.data);if(ae){if(ae.type==="snapshot"){k.value={...ae.perRoute};return}k.value[ae.routeKey]=(k.value[ae.routeKey]??0)+1}}function O(){g.value&&(g.value.close(),g.value=null),w.value="",I.value=!1}function Y(X){if(typeof window>"u")return;const ae=sy(X);if(!(!ae||w.value===ae)){O(),w.value=ae;try{const ue=new WebSocket(ae);g.value=ue,ue.addEventListener("open",()=>{I.value=!0}),ue.addEventListener("message",ce),ue.addEventListener("close",()=>{g.value===ue&&O()}),ue.addEventListener("error",()=>{g.value===ue&&O()})}catch{O()}}}function B(X,ae){P.value={...P.value,[X]:ae},ae.trim()&&F.value.includes(X)&&(F.value=F.value.filter(ue=>ue!==X))}function te(X){if(F.value=[],D.value=0,!X){v.value=[],_.value=[],P.value={};return}const ae=_o(X.url);v.value=ae.tokens;const ue=z_(ae.tokens),he={};for(const me of ue)he[me.name]=P.value[me.name]??"";_.value=ue,P.value=he}async function Q(){if(m.value)return!0;if(typeof window>"u"||!("serviceWorker"in navigator))return!1;let X=null;zn||(X=navigator.serviceWorker.ready.then(()=>{m.value=!0}).catch(()=>{zn=null}));const ae=navigator.serviceWorker.controller;if(ey(ae))return d.value=!0,m.value=!0,!0;if(!d.value){if(!await ty())return!1;d.value=!0}return!zn&&X&&(zn=X),await zn,m.value}typeof window<"u"&&"serviceWorker"in navigator&&Q().catch(()=>{}),t.basePath&&ft(t.basePath,X=>{X&&Y(X)},{immediate:!0}),ks()&&Tn(()=>{O()});const{resetResponse:ee,runRequest:j}=Z_({t:n,selected:e,routeTokens:v,paramValues:P,queryText:s,headersText:r,bodyText:o,bodyType:l,multipartFiles:i,responseText:a,responseStatus:c,responseTime:u,routeCounts:k,isServerCounts:I,ensureSwReady:Q,getRouteKey:z,onMissingParams:X=>{F.value=[...X],D.value+=1}});return ft(e,()=>{ee(),te(e.value)}),{queryText:s,headersText:r,bodyText:o,bodyType:l,multipartFiles:i,responseText:a,responseStatus:c,responseTime:u,resetResponse:ee,runRequest:j,isSwMode:d,isSwRegistering:b,routeParams:_,paramValues:P,missingParams:F,missingPulse:D,setParamValue:B,requestUrl:G,routeCounts:k,totalCount:R,getRouteCount:ie}}const xo="mokup.playground.lastSelectedRoute";function ly(){try{const e=localStorage.getItem(xo);return e&&e.trim()?e:null}catch{}return null}function wi(e){try{e&&e.trim()?localStorage.setItem(xo,e):localStorage.removeItem(xo)}catch{}}function ki(e){const{selectedFile:t,routes:n,disabledRoutes:s,ignoredRoutes:r}=e;if(!t)return[];const o=i=>!!i?.includes(t),l=[];for(const i of n)if(o(i.configChain)){const a={kind:"active",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of s)if(o(i.configChain)){const a={kind:"disabled",file:i.file};i.method&&(a.method=i.method),i.url&&(a.url=i.url),l.push(a)}for(const i of r)o(i.configChain)&&l.push({kind:"ignored",file:i.file});return l}function iy(){const e=oe([]),t=oe([]),n=oe([]),s=oe([]),r=oe([]),o=oe([]),l=oe([]),i=oe([]),a=oe(null),c=oe(null),u=oe(null),d=oe(null),m=oe([]),b=oe("all"),k=oe(!1),R=oe(""),I=oe(""),g=oe(""),w=oe(""),v=K(()=>I.value.trim().toLowerCase()),_=K(()=>o.value.length),P=K(()=>t.value.length),F=K(()=>n.value.length),D=K(()=>s.value.length),G=K(()=>r.value.length),z=K(()=>{const f=new Map;for(const y of s.value)f.set(y.file,"enabled");for(const y of r.value)f.set(y.file,"disabled");return f}),ie=K(()=>`${g.value||""}/routes`),ce=f=>`${f.method} ${f.url}`,O=f=>`${f.file}|${f.reason}|${f.method??""}|${f.url??""}`,Y=f=>`${f.file}|${f.reason}`,B=oe(ly()??"");function te(f,y){return f?y.find(M=>ce(M)===f)??null:null}function Q(){return b.value==="all"?e.value:e.value.filter(f=>f.groupKey===b.value)}function ee(){const f=v.value,y=Q();o.value=f?y.filter(M=>`${M.method} ${M.url} ${M.file}`.toLowerCase().includes(f)):[...y]}function j(){return b.value==="all"?s.value:s.value.filter(f=>f.groupKey===b.value)}function X(){const f=v.value,y=j();l.value=f?y.filter(M=>M.file.toLowerCase().includes(f)):[...y]}function ae(){return b.value==="all"?r.value:r.value.filter(f=>f.groupKey===b.value)}function ue(){const f=v.value,y=ae();i.value=f?y.filter(M=>M.file.toLowerCase().includes(f)):[...y]}const he=K(()=>{const f=v.value;return f?t.value.filter(y=>`${y.method??""} ${y.url??""} ${y.file} ${y.reason}`.toLowerCase().includes(f)):[...t.value]}),me=K(()=>{const f=v.value;return f?n.value.filter(y=>`${y.file} ${y.reason}`.toLowerCase().includes(f)):[...n.value]});function Se(f){b.value=f,ee(),X(),ue(),!(a.value&&o.value.some(M=>ce(M)===ce(a.value)))&&(a.value=te(B.value,o.value))}function De(f){a.value=f}function We(f){c.value=f}function Te(f){u.value=f}function rt(f){d.value=f}function Ze(f){g.value=kg(f)}async function Ge(){k.value=!0,R.value="";const f=B.value,y=c.value?O(c.value):"",M=u.value?Y(u.value):"",H=b.value,V=d.value?.file??"";try{const U=await fetch(ie.value);if(!U.ok)throw new Error(`Failed to load routes: ${U.status}`);const p=await U.json();e.value=p.routes??[],t.value=p.disabled??[],n.value=p.ignored??[],s.value=p.configs??[],r.value=p.disabledConfigs??[],m.value=p.groups??[],w.value=p.root??"",H!=="all"&&(m.value.some(E=>E.key===H)||(b.value="all")),ee(),X(),ue();const h=f?te(f,o.value):null;if(f&&!h&&(te(f,e.value)||(B.value="",wi(null))),a.value=h,y){const T=t.value.find(E=>O(E)===y);c.value=T??t.value[0]??null}else c.value=t.value[0]??null;if(M){const T=n.value.find(E=>Y(E)===M);u.value=T??n.value[0]??null}else u.value=n.value[0]??null;if(V){const T=s.value.find(E=>E.file===V)??r.value.find(E=>E.file===V)??null;d.value=T}}catch(U){R.value=U instanceof Error?U.message:String(U)}finally{k.value=!1}}ft(I,()=>{ee(),X(),ue()}),ft(a,f=>{if(f){const y=ce(f);B.value=y,wi(y)}});const xt=K(()=>{const f=d.value?.file,y={routes:e.value,disabledRoutes:t.value,ignoredRoutes:n.value};return ki(f?{...y,selectedFile:f}:y)});return{routes:e,disabledRoutes:t,ignoredRoutes:n,configFiles:s,disabledConfigFiles:r,disabledFiltered:he,ignoredFiltered:me,configFiltered:l,disabledConfigFiltered:i,filtered:o,selected:a,selectedConfig:d,selectedDisabled:c,selectedIgnored:u,groups:m,activeGroup:b,loading:k,error:R,search:I,basePath:g,workspaceRoot:w,searchTerm:v,routeCount:_,disabledCount:P,ignoredCount:F,configCount:D,disabledConfigCount:G,configStatusMap:z,routeKey:ce,lastSelectedKey:B,loadRoutes:Ge,setActiveGroup:Se,selectRoute:De,selectDisabledRoute:We,selectIgnoredRoute:Te,selectConfig:rt,setBasePath:Ze,configImpactRoutes:xt}}function ay(e,t){if(t==="file")return lr(e.file).split("/").filter(Boolean);const n=lr(e.url),s=n.startsWith("/")?n.slice(1):n;return s?s.split("/").filter(Boolean):[]}function Nc(e,t){const n={id:`${t}:root`,label:"",kind:"folder",path:"",children:[]};for(const s of e){const r=ay(s,t);if(r.length===0){const i=`${t}:route:${s.method} ${s.url}|${s.file}`;n.children.push({id:i,label:"/",kind:"route",path:"/",route:s,children:[]});continue}let o=n;const l=r.length;for(let i=0;i<l;i+=1){const a=r[i];if(i===l-1){const m=`${t}:route:${s.method} ${s.url}|${s.file}`;o.children.push({id:m,label:a,kind:"route",path:r.join("/"),route:s,children:[]});continue}o.map||(o.map=new Map);const u=r.slice(0,i+1).join("/");let d=o.map.get(u);d||(d={id:`${t}:folder:${u}`,label:a,kind:"folder",path:u,children:[]},o.map.set(u,d),o.children.push(d)),o=d}}return n}function Yo(e){e.children.sort((t,n)=>{if(t.kind!==n.kind)return t.kind==="folder"?-1:1;const s=t.label.localeCompare(n.label);return s!==0?s:t.route&&n.route?t.route.method.localeCompare(n.route.method):0});for(const t of e.children)t.kind==="folder"&&Yo(t);return e}function Fc(e,t){for(const n of e.children)n.kind==="folder"&&(t.push(n.id),Fc(n,t))}function cy(e,t){const n=Nc(e,t);Yo(n);const s=[];return Fc(n,s),s}function Dc(e,t,n,s,r,o,l){for(const i of e.children){const a=i.kind==="folder"?i.path:n==="file"?i.route?.file:i.route?.url,c=i.kind==="folder"?r(i.id):void 0;s.push({id:i.id,label:i.label,kind:i.kind,depth:t,title:a,expanded:c,selected:i.route?l(i.route)===o:!1,route:i.route}),i.kind==="folder"&&c&&Dc(i,t+1,n,s,r,o,l)}}function uy(e){const t=[];return Dc(e.root,0,e.mode,t,e.isExpanded,e.selectedKey,e.getRouteKey),t}function dy(e){const t=oe("file"),n=oe(new Set),s=oe(new Set),r=oe(!1),o=oe(!1);function l(){return"mokup.playground.treeMode"}function i(v){return`mokup.playground.treeExpanded.${v}`}function a(v){try{const _=localStorage.getItem(i(v));if(!_)return{set:new Set,hasValue:!1};const P=JSON.parse(_);return Array.isArray(P)?{set:new Set(P.filter(F=>typeof F=="string")),hasValue:!0}:{set:new Set,hasValue:!1}}catch{return{set:new Set,hasValue:!1}}}function c(v,_){try{localStorage.setItem(i(v),JSON.stringify([..._]))}catch{}}function u(v){try{localStorage.setItem(l(),v)}catch{}}function d(){return t.value==="file"?n.value:s.value}function m(v,_){v==="file"?n.value=_:s.value=_}function b(v){return v==="file"?r.value:o.value}function k(v,_){v==="file"?r.value=_:o.value=_}function R(v){return e.searchTerm.value||!b(t.value)?!0:d().has(v)}function I(v){const _=t.value;if(!b(_)){const F=new Set(cy(e.routes.value,_));m(_,F),k(_,!0)}const P=new Set(d());P.has(v)?P.delete(v):P.add(v),m(_,P),k(_,!0),c(_,P)}function g(v){t.value=v,u(v)}const w=K(()=>{const v=t.value,_=Nc(e.routes.value,v);return Yo(_),uy({root:_,mode:v,isExpanded:R,selectedKey:e.selectedKey.value,getRouteKey:e.getRouteKey})});return kn(()=>{try{const v=localStorage.getItem(l());(v==="file"||v==="route")&&(t.value=v);const _=a("file");n.value=_.set,r.value=_.hasValue;const P=a("route");s.value=P.set,o.value=P.hasValue}catch{}}),{treeMode:t,treeRows:w,toggleExpanded:I,setTreeMode:g}}function fy(e){const t=oe(e.defaultWidth),n=oe(!1);let s=0,r=0;const o=K(()=>({"--left-width":`${t.value}px`}));function l(d){return Math.min(e.maxWidth,Math.max(e.minWidth,d))}function i(d){if(!n.value)return;const m=d.clientX-s;t.value=l(r+m)}function a(){n.value&&(n.value=!1,window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",a),localStorage.setItem(e.storageKey,String(t.value)))}function c(d){d.button===0&&(d.preventDefault(),n.value=!0,s=d.clientX,r=t.value,window.addEventListener("pointermove",i),window.addEventListener("pointerup",a))}function u(){const d=Number(localStorage.getItem(e.storageKey));Number.isFinite(d)&&d>0&&(t.value=l(d))}return{splitWidth:t,splitStyle:o,isDragging:n,handleDragStart:c,restoreSplitWidth:u,stopDrag:a}}const py={class:"h-screen overflow-hidden pg-app-bg","data-testid":"playground-app"},gy={key:0,class:"pointer-events-none fixed inset-x-0 top-5 z-50 flex justify-center px-4"},my={class:"flex h-full w-full flex-col"},hy={class:"flex min-h-0 flex-1 flex-col overflow-hidden"},by={class:"flex flex-1 flex-col overflow-hidden bg-pg-surface-shell"},vy={class:"relative hidden w-4 flex-none items-center justify-center lg:flex"},_y={class:"flex min-h-0 flex-1 flex-col overflow-hidden p-4 lg:p-6"},yy={class:"mt-3 flex-1 min-h-0 overflow-auto"},xy=Oe({__name:"App",setup(e){const{routes:t,filtered:n,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,groups:d,activeGroup:m,loading:b,error:k,search:R,basePath:I,workspaceRoot:g,searchTerm:w,routeCount:v,disabledCount:_,ignoredCount:P,configCount:F,disabledConfigCount:D,configStatusMap:G,routeKey:z,lastSelectedKey:ie,loadRoutes:ce,setActiveGroup:O,selectRoute:Y,selectDisabledRoute:B,selectIgnoredRoute:te,selectConfig:Q,setBasePath:ee,configImpactRoutes:j}=iy(),{queryText:X,headersText:ae,bodyText:ue,bodyType:he,multipartFiles:me,responseText:Se,responseStatus:De,responseTime:We,runRequest:Te,isSwMode:rt,isSwRegistering:Ze,routeParams:Ge,paramValues:xt,missingParams:f,missingPulse:y,setParamValue:M,requestUrl:H,totalCount:V,getRouteCount:U}=oy(i,{basePath:I}),p=K(()=>i.value?z(i.value):""),h=K(()=>rt.value?Ze.value?"sw-registering":"sw":"server"),T=oe("active"),E=oe("api"),J=oe("api"),{activeTotal:W,apiTotal:C,disabledTotal:A,ignoredTotal:ne,configTotal:de,disabledConfigTotal:ve,disabledApiTotal:je,visibleCount:Ue}=D_({routes:t,configCount:F,disabledCount:_,ignoredCount:P,disabledConfigCount:D,routeCount:v,disabledFiltered:s,ignoredFiltered:r,configFiltered:o,disabledConfigFiltered:l,routeMode:T,enabledMode:E,disabledMode:J}),{setRouteMode:ct,setEnabledMode:mt,setDisabledMode:dn,handleSelectRoute:Es,handleSelectConfig:ot,handleSelectDisabled:wt,handleSelectIgnored:Rs}=U_({routeMode:T,enabledMode:E,disabledMode:J,selected:i,selectedDisabled:a,selectedIgnored:c,selectedConfig:u,filtered:n,disabledFiltered:s,ignoredFiltered:r,lastSelectedKey:ie,getRouteKey:z,selectRoute:Y,selectDisabledRoute:B,selectIgnoredRoute:te,selectConfig:Q}),{splitStyle:Is,isDragging:Uc,handleDragStart:Jo,restoreSplitWidth:Vc,stopDrag:Wc}=fy({storageKey:"mokup:playground:split-width",defaultWidth:320,minWidth:240,maxWidth:560}),{treeMode:jc,treeRows:Hc,toggleExpanded:Bc,setTreeMode:Kc}=dy({routes:n,selectedKey:p,searchTerm:w,getRouteKey:z}),Cr=oe(!1),Sn=oe(null);function Sr(){ce().catch(()=>{})}function Gc(){Sn.value&&window.clearTimeout(Sn.value),Cr.value=!0,Sn.value=window.setTimeout(()=>{Cr.value=!1,Sn.value=null},2e3)}return kn(()=>{ee(window.location.pathname),Vc(),window.__MOKUP_PLAYGROUND__={reloadRoutes:Sr,notifyHotReload:Gc},Sr()}),Tn(()=>{Wc(),Sn.value&&window.clearTimeout(Sn.value)}),(wy,Be)=>(L(),N("div",py,[q(Yd,{name:"pg-hot-toast"},{default:le(()=>[Cr.value?(L(),N("div",gy,[...Be[7]||(Be[7]=[x("div",{class:"pg-hot-toast inline-flex items-center gap-2 rounded-full border border-pg-border bg-pg-surface-panel px-4 py-2 text-sm font-medium text-pg-text shadow-lg"},[x("span",{class:"i-[carbon--checkmark-filled] h-4 w-4 text-pg-accent","aria-hidden":"true"}),be(" Hot reload complete ")],-1)])])):pe("",!0)]),_:1}),x("div",my,[x("main",hy,[x("div",by,[x("div",{class:$e(["flex min-h-0 flex-1 flex-col lg:flex-row",S(Uc)?"select-none":""]),style:_s(S(Is))},[q(F_,{search:S(R),"onUpdate:search":Be[0]||(Be[0]=ht=>Fe(R)?R.value=ht:null),"base-path":S(I),groups:S(d),"active-group":S(m),"tree-mode":S(jc),"route-mode":T.value,"enabled-mode":E.value,"disabled-mode":J.value,"selected-config":S(u),"selected-disabled":S(a),"selected-ignored":S(c),"active-total":S(W),"api-total":S(C),"disabled-total":S(A),"ignored-total":S(ne),"config-total":S(de),"disabled-api-total":S(je),"disabled-config-total":S(ve),error:S(k),loading:S(b),filtered:S(n),"disabled-filtered":S(s),"ignored-filtered":S(r),"config-filtered":S(o),"disabled-config-filtered":S(l),"tree-rows":S(Hc),"workspace-root":S(g),"get-route-count":S(U),onSelectGroup:S(O),onSetRouteMode:S(ct),onSetEnabledMode:S(mt),onSetDisabledMode:S(dn),onToggle:S(Bc),onSelectRoute:S(Es),onSelectDisabledRoute:S(wt),onSelectIgnoredRoute:S(Rs),onSelectConfig:S(ot),"onUpdate:treeMode":S(Kc)},null,8,["search","base-path","groups","active-group","tree-mode","route-mode","enabled-mode","disabled-mode","selected-config","selected-disabled","selected-ignored","active-total","api-total","disabled-total","ignored-total","config-total","disabled-api-total","disabled-config-total","error","loading","filtered","disabled-filtered","ignored-filtered","config-filtered","disabled-config-filtered","tree-rows","workspace-root","get-route-count","onSelectGroup","onSetRouteMode","onSetEnabledMode","onSetDisabledMode","onToggle","onSelectRoute","onSelectDisabledRoute","onSelectIgnoredRoute","onSelectConfig","onUpdate:treeMode"]),x("div",vy,[Be[9]||(Be[9]=x("div",{class:"h-full w-px bg-pg-divider"},null,-1)),x("button",{class:"group absolute flex h-10 w-10 cursor-col-resize items-center justify-center rounded-full border shadow-sm transition hover:-translate-y-0.5 border-pg-border bg-pg-surface-strong text-pg-text-muted hover:text-pg-text-soft",type:"button","aria-label":"Resize panels",onPointerdown:Be[1]||(Be[1]=(...ht)=>S(Jo)&&S(Jo)(...ht))},[...Be[8]||(Be[8]=[x("span",{class:"i-[carbon--drag-horizontal] h-5 w-5","aria-hidden":"true"},null,-1)])],32)]),x("section",_y,[q(Pv,{"visible-count":S(Ue),"total-count":S(V),"request-mode":h.value,onRefresh:Sr},null,8,["visible-count","total-count","request-mode"]),x("div",yy,[q(hv,{queryText:S(X),"onUpdate:queryText":Be[2]||(Be[2]=ht=>Fe(X)?X.value=ht:null),headersText:S(ae),"onUpdate:headersText":Be[3]||(Be[3]=ht=>Fe(ae)?ae.value=ht:null),bodyText:S(ue),"onUpdate:bodyText":Be[4]||(Be[4]=ht=>Fe(ue)?ue.value=ht:null),bodyType:S(he),"onUpdate:bodyType":Be[5]||(Be[5]=ht=>Fe(he)?he.value=ht:null),multipartFiles:S(me),"onUpdate:multipartFiles":Be[6]||(Be[6]=ht=>Fe(me)?me.value=ht:null),selected:S(i),"selected-disabled":S(a),"selected-ignored":S(c),"selected-config":S(u),"request-url":S(H),"workspace-root":S(g),"response-text":S(Se),"response-status":S(De),"response-time":S(We),"is-sw-registering":S(Ze),"route-params":S(Ge),"param-values":S(xt),"missing-params":S(f),"missing-pulse":S(y),"route-mode":T.value,"enabled-mode":E.value,"disabled-mode":J.value,"config-impact-routes":S(j),"config-status-map":S(G),"onUpdate:paramValue":S(M),onRun:S(Te)},null,8,["queryText","headersText","bodyText","bodyType","multipartFiles","selected","selected-disabled","selected-ignored","selected-config","request-url","workspace-root","response-text","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","route-mode","enabled-mode","disabled-mode","config-impact-routes","config-status-map","onUpdate:paramValue","onRun"])])])],6)])])])]))}});_v();yf(xy).use(Sv).mount("#app");
|