@mokup/playground 0.2.2 → 0.2.3

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,8 +1,8 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./UiCodeEditor.js","./UiCodeEditor.css"])))=>i.map(i=>d[i]);
2
- (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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).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 Mo(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const je={},An=[],Ot=()=>{},jl=()=>!1,yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lo=e=>e.startsWith("onUpdate:"),tt=Object.assign,Io=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lc=Object.prototype.hasOwnProperty,Fe=(e,t)=>Lc.call(e,t),he=Array.isArray,Fn=e=>Cs(e)==="[object Map]",Hl=e=>Cs(e)==="[object Set]",ia=e=>Cs(e)==="[object Date]",xe=e=>typeof e=="function",Ye=e=>typeof e=="string",Rt=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",Wl=e=>(Oe(e)||xe(e))&&xe(e.then)&&xe(e.catch),Bl=Object.prototype.toString,Cs=e=>Bl.call(e),Ic=e=>Cs(e).slice(8,-1),Gl=e=>Cs(e)==="[object Object]",vr=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rs=Mo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Nc=/-\w/g,ln=xr(e=>e.replace(Nc,t=>t.slice(1).toUpperCase())),Ac=/\B([A-Z])/g,Sn=xr(e=>e.replace(Ac,"-$1").toLowerCase()),ql=xr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Or=xr(e=>e?`on${ql(e)}`:""),on=(e,t)=>!Object.is(e,t),Dr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},zl=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Fc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Oc=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let ua;const _r=()=>ua||(ua=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ss(e){if(he(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Ye(s)?Kc(s):Ss(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(Ye(e)||Oe(e))return e}const Dc=/;(?![^(]*\))/g,Uc=/:([^]+)/,Vc=/\/\*[^]*?\*\//g;function Kc(e){const t={};return e.replace(Vc,"").split(Dc).forEach(n=>{if(n){const s=n.split(Uc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ce(e){let t="";if(Ye(e))t=e;else if(he(e))for(let n=0;n<e.length;n++){const s=ce(e[n]);s&&(t+=s+" ")}else if(Oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const jc="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hc=Mo(jc);function Jl(e){return!!e||e===""}function Wc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=No(e[s],t[s]);return n}function No(e,t){if(e===t)return!0;let n=ia(e),s=ia(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Rt(e),s=Rt(t),n||s)return e===t;if(n=he(e),s=he(t),n||s)return n&&s?Wc(e,t):!1;if(n=Oe(e),s=Oe(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const a in e){const l=e.hasOwnProperty(a),i=t.hasOwnProperty(a);if(l&&!i||!l&&i||!No(e[a],t[a]))return!1}}return String(e)===String(t)}const Yl=e=>!!(e&&e.__v_isRef===!0),N=e=>Ye(e)?e:e==null?"":he(e)||Oe(e)&&(e.toString===Bl||!xe(e.toString))?Yl(e)?N(e.value):JSON.stringify(e,Xl,2):String(e),Xl=(e,t)=>Yl(t)?Xl(e,t.value):Fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ur(s,o)+" =>"]=r,n),{})}:Hl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ur(n))}:Rt(t)?Ur(t):Oe(t)&&!he(t)&&!Gl(t)?String(t):t,Ur=(e,t="")=>{var n;return Rt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let mt;class Ql{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=mt,!t&&mt&&(this.index=(mt.scopes||(mt.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=mt;try{return mt=this,t()}finally{mt=n}}}on(){++this._on===1&&(this.prevScope=mt,mt=this)}off(){this._on>0&&--this._on===0&&(mt=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 Bc(e){return new Ql(e)}function Gc(){return mt}let He;const Vr=new WeakSet;class Zl{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,mt&&mt.active&&mt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vr.has(this)&&(Vr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ti(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ca(this),ni(this);const t=He,n=Et;He=this,Et=!0;try{return this.fn()}finally{si(this),He=t,Et=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Oo(t);this.deps=this.depsTail=void 0,ca(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){no(this)&&this.run()}get dirty(){return no(this)}}let ei=0,os,as;function ti(e,t=!1){if(e.flags|=8,t){e.next=as,as=e;return}e.next=os,os=e}function Ao(){ei++}function Fo(){if(--ei>0)return;if(as){let t=as;for(as=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;os;){let t=os;for(os=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 ni(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function si(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Oo(s),qc(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function no(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ri(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ri(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fs)||(e.globalVersion=fs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!no(e))))return;e.flags|=2;const t=e.dep,n=He,s=Et;He=e,Et=!0;try{ni(e);const r=e.fn(e._value);(t.version===0||on(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{He=n,Et=s,si(e),e.flags&=-3}}function Oo(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)Oo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Et=!0;const oi=[];function Yt(){oi.push(Et),Et=!1}function Xt(){const e=oi.pop();Et=e===void 0?!0:e}function ca(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=He;He=void 0;try{t()}finally{He=n}}}let fs=0;class zc{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 Do{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(!He||!Et||He===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==He)n=this.activeLink=new zc(He,this),He.deps?(n.prevDep=He.depsTail,He.depsTail.nextDep=n,He.depsTail=n):He.deps=He.depsTail=n,ai(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=He.depsTail,n.nextDep=void 0,He.depsTail.nextDep=n,He.depsTail=n,He.deps===n&&(He.deps=s)}return n}trigger(t){this.version++,fs++,this.notify(t)}notify(t){Ao();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Fo()}}}function ai(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)ai(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const or=new WeakMap,kn=Symbol(""),so=Symbol(""),ps=Symbol("");function rt(e,t,n){if(Et&&He){let s=or.get(e);s||or.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Do),r.map=s,r.key=n),r.track()}}function Gt(e,t,n,s,r,o){const a=or.get(e);if(!a){fs++;return}const l=i=>{i&&i.trigger()};if(Ao(),t==="clear")a.forEach(l);else{const i=he(e),u=i&&vr(n);if(i&&n==="length"){const c=Number(s);a.forEach((f,h)=>{(h==="length"||h===ps||!Rt(h)&&h>=c)&&l(f)})}else switch((n!==void 0||a.has(void 0))&&l(a.get(n)),u&&l(a.get(ps)),t){case"add":i?u&&l(a.get("length")):(l(a.get(kn)),Fn(e)&&l(a.get(so)));break;case"delete":i||(l(a.get(kn)),Fn(e)&&l(a.get(so)));break;case"set":Fn(e)&&l(a.get(kn));break}}Fo()}function Jc(e,t){const n=or.get(e);return n&&n.get(t)}function Mn(e){const t=Me(e);return t===e?t:(rt(t,"iterate",ps),_t(e)?t:t.map(Pt))}function wr(e){return rt(e=Me(e),"iterate",ps),e}function sn(e,t){return Qt(e)?Vn(Cn(e)?Pt(t):t):Pt(t)}const Yc={__proto__:null,[Symbol.iterator](){return Kr(this,Symbol.iterator,e=>sn(this,e))},concat(...e){return Mn(this).concat(...e.map(t=>he(t)?Mn(t):t))},entries(){return Kr(this,"entries",e=>(e[1]=sn(this,e[1]),e))},every(e,t){return Ut(this,"every",e,t,void 0,arguments)},filter(e,t){return Ut(this,"filter",e,t,n=>n.map(s=>sn(this,s)),arguments)},find(e,t){return Ut(this,"find",e,t,n=>sn(this,n),arguments)},findIndex(e,t){return Ut(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ut(this,"findLast",e,t,n=>sn(this,n),arguments)},findLastIndex(e,t){return Ut(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ut(this,"forEach",e,t,void 0,arguments)},includes(...e){return jr(this,"includes",e)},indexOf(...e){return jr(this,"indexOf",e)},join(e){return Mn(this).join(e)},lastIndexOf(...e){return jr(this,"lastIndexOf",e)},map(e,t){return Ut(this,"map",e,t,void 0,arguments)},pop(){return qn(this,"pop")},push(...e){return qn(this,"push",e)},reduce(e,...t){return da(this,"reduce",e,t)},reduceRight(e,...t){return da(this,"reduceRight",e,t)},shift(){return qn(this,"shift")},some(e,t){return Ut(this,"some",e,t,void 0,arguments)},splice(...e){return qn(this,"splice",e)},toReversed(){return Mn(this).toReversed()},toSorted(e){return Mn(this).toSorted(e)},toSpliced(...e){return Mn(this).toSpliced(...e)},unshift(...e){return qn(this,"unshift",e)},values(){return Kr(this,"values",e=>sn(this,e))}};function Kr(e,t,n){const s=wr(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 Xc=Array.prototype;function Ut(e,t,n,s,r,o){const a=wr(e),l=a!==e&&!_t(e),i=a[t];if(i!==Xc[t]){const f=i.apply(e,o);return l?Pt(f):f}let u=n;a!==e&&(l?u=function(f,h){return n.call(this,sn(e,f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=i.call(a,u,s);return l&&r?r(c):c}function da(e,t,n,s){const r=wr(e);let o=n;return r!==e&&(_t(e)?n.length>3&&(o=function(a,l,i){return n.call(this,a,l,i,e)}):o=function(a,l,i){return n.call(this,a,sn(e,l),i,e)}),r[t](o,...s)}function jr(e,t,n){const s=Me(e);rt(s,"iterate",ps);const r=s[t](...n);return(r===-1||r===!1)&&Tr(n[0])?(n[0]=Me(n[0]),s[t](...n)):r}function qn(e,t,n=[]){Yt(),Ao();const s=Me(e)[t].apply(e,n);return Fo(),Xt(),s}const Qc=Mo("__proto__,__v_isRef,__isVue"),li=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rt));function Zc(e){Rt(e)||(e=String(e));const t=Me(this);return rt(t,"has",e),t.hasOwnProperty(e)}class ii{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?ud:fi:o?di:ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=he(t);if(!r){let i;if(a&&(i=Yc[n]))return i;if(n==="hasOwnProperty")return Zc}const l=Reflect.get(t,n,Ee(t)?t:s);if((Rt(n)?li.has(n):Qc(n))||(r||rt(t,"get",n),o))return l;if(Ee(l)){const i=a&&vr(n)?l:l.value;return r&&Oe(i)?oo(i):i}return Oe(l)?r?oo(l):Vo(l):l}}class ui extends ii{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const a=he(t)&&vr(n);if(!this._isShallow){const u=Qt(o);if(!_t(s)&&!Qt(s)&&(o=Me(o),s=Me(s)),!a&&Ee(o)&&!Ee(s))return u||(o.value=s),!0}const l=a?Number(n)<t.length:Fe(t,n),i=Reflect.set(t,n,s,Ee(t)?t:r);return t===Me(r)&&(l?on(s,o)&&Gt(t,"set",n,s):Gt(t,"add",n,s)),i}deleteProperty(t,n){const s=Fe(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Gt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Rt(n)||!li.has(n))&&rt(t,"has",n),s}ownKeys(t){return rt(t,"iterate",he(t)?"length":kn),Reflect.ownKeys(t)}}class ed extends ii{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const td=new ui,nd=new ed,sd=new ui(!0);const ro=e=>e,Vs=e=>Reflect.getPrototypeOf(e);function rd(e,t,n){return function(...s){const r=this.__v_raw,o=Me(r),a=Fn(o),l=e==="entries"||e===Symbol.iterator&&a,i=e==="keys"&&a,u=r[e](...s),c=n?ro:t?Vn:Pt;return!t&&rt(o,"iterate",i?so:kn),tt(Object.create(u),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:l?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function Ks(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function od(e,t){const n={get(r){const o=this.__v_raw,a=Me(o),l=Me(r);e||(on(r,l)&&rt(a,"get",r),rt(a,"get",l));const{has:i}=Vs(a),u=t?ro:e?Vn:Pt;if(i.call(a,r))return u(o.get(r));if(i.call(a,l))return u(o.get(l));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!e&&rt(Me(r),"iterate",kn),r.size},has(r){const o=this.__v_raw,a=Me(o),l=Me(r);return e||(on(r,l)&&rt(a,"has",r),rt(a,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const a=this,l=a.__v_raw,i=Me(l),u=t?ro:e?Vn:Pt;return!e&&rt(i,"iterate",kn),l.forEach((c,f)=>r.call(o,u(c),u(f),a))}};return tt(n,e?{add:Ks("add"),set:Ks("set"),delete:Ks("delete"),clear:Ks("clear")}:{add(r){!t&&!_t(r)&&!Qt(r)&&(r=Me(r));const o=Me(this);return Vs(o).has.call(o,r)||(o.add(r),Gt(o,"add",r,r)),this},set(r,o){!t&&!_t(o)&&!Qt(o)&&(o=Me(o));const a=Me(this),{has:l,get:i}=Vs(a);let u=l.call(a,r);u||(r=Me(r),u=l.call(a,r));const c=i.call(a,r);return a.set(r,o),u?on(o,c)&&Gt(a,"set",r,o):Gt(a,"add",r,o),this},delete(r){const o=Me(this),{has:a,get:l}=Vs(o);let i=a.call(o,r);i||(r=Me(r),i=a.call(o,r)),l&&l.call(o,r);const u=o.delete(r);return i&&Gt(o,"delete",r,void 0),u},clear(){const r=Me(this),o=r.size!==0,a=r.clear();return o&&Gt(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=rd(r,e,t)}),n}function Uo(e,t){const n=od(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Fe(n,r)&&r in s?n:s,r,o)}const ad={get:Uo(!1,!1)},ld={get:Uo(!1,!0)},id={get:Uo(!0,!1)};const ci=new WeakMap,di=new WeakMap,fi=new WeakMap,ud=new WeakMap;function cd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dd(e){return e.__v_skip||!Object.isExtensible(e)?0:cd(Ic(e))}function Vo(e){return Qt(e)?e:Ko(e,!1,td,ad,ci)}function fd(e){return Ko(e,!1,sd,ld,di)}function oo(e){return Ko(e,!0,nd,id,fi)}function Ko(e,t,n,s,r){if(!Oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=dd(e);if(o===0)return e;const a=r.get(e);if(a)return a;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Cn(e){return Qt(e)?Cn(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function Tr(e){return e?!!e.__v_raw:!1}function Me(e){const t=e&&e.__v_raw;return t?Me(t):e}function pd(e){return!Fe(e,"__v_skip")&&Object.isExtensible(e)&&zl(e,"__v_skip",!0),e}const Pt=e=>Oe(e)?Vo(e):e,Vn=e=>Oe(e)?oo(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function ee(e){return pi(e,!1)}function gd(e){return pi(e,!0)}function pi(e,t){return Ee(e)?e:new md(e,t)}class md{constructor(t,n){this.dep=new Do,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Me(t),this._value=n?t:Pt(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)||Qt(t);t=s?t:Me(t),on(t,n)&&(this._rawValue=t,this._value=s?t:Pt(t),this.dep.trigger())}}function _(e){return Ee(e)?e.value:e}const hd={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ee(r)&&!Ee(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function gi(e){return Cn(e)?e:new Proxy(e,hd)}function bd(e){const t=he(e)?new Array(e.length):{};for(const n in e)t[n]=vd(e,n);return t}class yd{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Me(t);let r=!0,o=t;if(!he(t)||!vr(String(n)))do r=!Tr(o)||_t(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=_(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ee(this._raw[this._key])){const n=this._object[this._key];if(Ee(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Jc(this._raw,this._key)}}function vd(e,t,n){return new yd(e,t,n)}class xd{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Do(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&He!==this)return ti(this,!0),!0}get value(){const t=this.dep.track();return ri(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _d(e,t,n=!1){let s,r;return xe(e)?s=e:(s=e.get,r=e.set),new xd(s,r,n)}const js={},ar=new WeakMap;let _n;function wd(e,t=!1,n=_n){if(n){let s=ar.get(n);s||ar.set(n,s=[]),s.push(e)}}function Td(e,t,n=je){const{immediate:s,deep:r,once:o,scheduler:a,augmentJob:l,call:i}=n,u=m=>r?m:_t(m)||r===!1||r===0?qt(m,1):qt(m);let c,f,h,p,b=!1,x=!1;if(Ee(e)?(f=()=>e.value,b=_t(e)):Cn(e)?(f=()=>u(e),b=!0):he(e)?(x=!0,b=e.some(m=>Cn(m)||_t(m)),f=()=>e.map(m=>{if(Ee(m))return m.value;if(Cn(m))return u(m);if(xe(m))return i?i(m,2):m()})):xe(e)?t?f=i?()=>i(e,2):e:f=()=>{if(h){Yt();try{h()}finally{Xt()}}const m=_n;_n=c;try{return i?i(e,3,[p]):e(p)}finally{_n=m}}:f=Ot,t&&r){const m=f,R=r===!0?1/0:r;f=()=>qt(m(),R)}const F=Gc(),w=()=>{c.stop(),F&&F.active&&Io(F.effects,c)};if(o&&t){const m=t;t=(...R)=>{m(...R),w()}}let M=x?new Array(e.length).fill(js):js;const k=m=>{if(!(!(c.flags&1)||!c.dirty&&!m))if(t){const R=c.run();if(r||b||(x?R.some((C,L)=>on(C,M[L])):on(R,M))){h&&h();const C=_n;_n=c;try{const L=[R,M===js?void 0:x&&M[0]===js?[]:M,p];M=R,i?i(t,3,L):t(...L)}finally{_n=C}}}else c.run()};return l&&l(k),c=new Zl(f),c.scheduler=a?()=>a(k,!1):k,p=m=>wd(m,!1,c),h=c.onStop=()=>{const m=ar.get(c);if(m){if(i)i(m,4);else for(const R of m)R();ar.delete(c)}},t?s?k(!0):M=c.run():a?a(k.bind(null,!0),!0):c.run(),w.pause=c.pause.bind(c),w.resume=c.resume.bind(c),w.stop=w,w}function qt(e,t=1/0,n){if(t<=0||!Oe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ee(e))qt(e.value,t,n);else if(he(e))for(let s=0;s<e.length;s++)qt(e[s],t,n);else if(Hl(e)||Fn(e))e.forEach(s=>{qt(s,t,n)});else if(Gl(e)){for(const s in e)qt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&qt(e[s],t,n)}return e}function Es(e,t,n,s){try{return s?e(...s):e()}catch(r){Rs(r,t,n)}}function $t(e,t,n,s){if(xe(e)){const r=Es(e,t,n,s);return r&&Wl(r)&&r.catch(o=>{Rs(o,t,n)}),r}if(he(e)){const r=[];for(let o=0;o<e.length;o++)r.push($t(e[o],t,n,s));return r}}function Rs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||je;if(t){let l=t.parent;const i=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,i,u)===!1)return}l=l.parent}if(o){Yt(),Es(o,null,10,[e,i,u]),Xt();return}}kd(e,n,r,s,a)}function kd(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ct=[];let Nt=-1;const On=[];let rn=null,In=0;const mi=Promise.resolve();let lr=null;function hi(e){const t=lr||mi;return e?t.then(this?e.bind(this):e):t}function Cd(e){let t=Nt+1,n=ct.length;for(;t<n;){const s=t+n>>>1,r=ct[s],o=gs(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function jo(e){if(!(e.flags&1)){const t=gs(e),n=ct[ct.length-1];!n||!(e.flags&2)&&t>=gs(n)?ct.push(e):ct.splice(Cd(t),0,e),e.flags|=1,bi()}}function bi(){lr||(lr=mi.then(vi))}function Sd(e){he(e)?On.push(...e):rn&&e.id===-1?rn.splice(In+1,0,e):e.flags&1||(On.push(e),e.flags|=1),bi()}function fa(e,t,n=Nt+1){for(;n<ct.length;n++){const s=ct[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ct.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function yi(e){if(On.length){const t=[...new Set(On)].sort((n,s)=>gs(n)-gs(s));if(On.length=0,rn){rn.push(...t);return}for(rn=t,In=0;In<rn.length;In++){const n=rn[In];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}rn=null,In=0}}const gs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function vi(e){try{for(Nt=0;Nt<ct.length;Nt++){const t=ct[Nt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Es(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Nt<ct.length;Nt++){const t=ct[Nt];t&&(t.flags&=-2)}Nt=-1,ct.length=0,yi(),lr=null,(ct.length||On.length)&&vi()}}let lt=null,xi=null;function ir(e){const t=lt;return lt=e,xi=e&&e.type.__scopeId||null,t}function fe(e,t=lt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&dr(-1);const o=ir(t);let a;try{a=e(...r)}finally{ir(o),s._d&&dr(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function Hs(e,t){if(lt===null)return e;const n=Rr(lt),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,a,l,i=je]=t[r];o&&(xe(o)&&(o={mounted:o,updated:o}),o.deep&&qt(a),s.push({dir:o,instance:n,value:a,oldValue:void 0,arg:l,modifiers:i}))}return e}function mn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let a=0;a<r.length;a++){const l=r[a];o&&(l.oldValue=o[a].value);let i=l.dir[s];i&&(Yt(),$t(i,n,8,[e.el,l,e,t]),Xt())}}function Ed(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 ls(e,t,n=!1){const s=Ms();if(s||Un){let r=Un?Un._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&&xe(t)?t.call(s&&s.proxy):t}}const Rd=Symbol.for("v-scx"),Pd=()=>ls(Rd);function ht(e,t,n){return _i(e,t,n)}function _i(e,t,n=je){const{immediate:s,deep:r,flush:o,once:a}=n,l=tt({},n),i=t&&s||!t&&o!=="post";let u;if(Kn){if(o==="sync"){const p=Pd();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!i){const p=()=>{};return p.stop=Ot,p.resume=Ot,p.pause=Ot,p}}const c=at;l.call=(p,b,x)=>$t(p,c,b,x);let f=!1;o==="post"?l.scheduler=p=>{gt(p,c&&c.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(p,b)=>{b?p():jo(p)}),l.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=Td(e,t,l);return Kn&&(u?u.push(h):i&&h()),h}function $d(e,t,n){const s=this.proxy,r=Ye(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let o;xe(t)?o=t:(o=t.handler,n=t);const a=Ls(this),l=_i(r,o.bind(s),n);return a(),l}function wi(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 Md=Symbol("_vte"),Ti=e=>e.__isTeleport,At=Symbol("_leaveCb"),zn=Symbol("_enterCb");function Ld(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return En(()=>{e.isMounted=!0}),Rn(()=>{e.isUnmounting=!0}),e}const kt=[Function,Array],ki={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},Ci=e=>{const t=e.subTree;return t.component?Ci(t.component):t},Id={name:"BaseTransition",props:ki,setup(e,{slots:t}){const n=Ms(),s=Ld();return()=>{const r=t.default&&Ri(t.default(),!0);if(!r||!r.length)return;const o=Si(r),a=Me(e),{mode:l}=a;if(s.isLeaving)return Hr(o);const i=pa(o);if(!i)return Hr(o);let u=ao(i,a,s,n,f=>u=f);i.type!==ot&&ms(i,u);let c=n.subTree&&pa(n.subTree);if(c&&c.type!==ot&&!wn(c,i)&&Ci(n).type!==ot){let f=ao(c,a,s,n);if(ms(c,f),l==="out-in"&&i.type!==ot)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Hr(o);l==="in-out"&&i.type!==ot?f.delayLeave=(h,p,b)=>{const x=Ei(s,c);x[String(c.key)]=c,h[At]=()=>{p(),h[At]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{b(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function Si(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ot){t=n;break}}return t}const Nd=Id;function Ei(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 ao(e,t,n,s,r){const{appear:o,mode:a,persisted:l=!1,onBeforeEnter:i,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:b,onLeaveCancelled:x,onBeforeAppear:F,onAppear:w,onAfterAppear:M,onAppearCancelled:k}=t,m=String(e.key),R=Ei(n,e),C=(z,ne)=>{z&&$t(z,s,9,ne)},L=(z,ne)=>{const ae=ne[1];C(z,ne),he(z)?z.every(G=>G.length<=1)&&ae():z.length<=1&&ae()},H={mode:a,persisted:l,beforeEnter(z){let ne=i;if(!n.isMounted)if(o)ne=F||i;else return;z[At]&&z[At](!0);const ae=R[m];ae&&wn(e,ae)&&ae.el[At]&&ae.el[At](),C(ne,[z])},enter(z){let ne=u,ae=c,G=f;if(!n.isMounted)if(o)ne=w||u,ae=M||c,G=k||f;else return;let me=!1;z[zn]=X=>{me||(me=!0,X?C(G,[z]):C(ae,[z]),H.delayedLeave&&H.delayedLeave(),z[zn]=void 0)};const se=z[zn].bind(null,!1);ne?L(ne,[z,se]):se()},leave(z,ne){const ae=String(e.key);if(z[zn]&&z[zn](!0),n.isUnmounting)return ne();C(h,[z]);let G=!1;z[At]=se=>{G||(G=!0,ne(),se?C(x,[z]):C(b,[z]),z[At]=void 0,R[ae]===e&&delete R[ae])};const me=z[At].bind(null,!1);R[ae]=e,p?L(p,[z,me]):me()},clone(z){const ne=ao(z,t,n,s,r);return r&&r(ne),ne}};return H}function Hr(e){if(Ps(e))return e=un(e),e.children=null,e}function pa(e){if(!Ps(e))return Ti(e.type)&&e.children?Si(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&&xe(n.default))return n.default()}}function ms(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ms(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 Ri(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let a=e[o];const l=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===ye?(a.patchFlag&128&&r++,s=s.concat(Ri(a.children,t,l))):(t||a.type!==ot)&&s.push(l!=null?un(a,{key:l}):a)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function Ge(e,t){return xe(e)?tt({name:e.name},t,{setup:e}):e}function Ho(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ga(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ur=new WeakMap;function is(e,t,n,s,r=!1){if(he(e)){e.forEach((x,F)=>is(x,t&&(he(t)?t[F]:t),n,s,r));return}if(Dn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&is(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Rr(s.component):s.el,a=r?null:o,{i:l,r:i}=e,u=t&&t.r,c=l.refs===je?l.refs={}:l.refs,f=l.setupState,h=Me(f),p=f===je?jl:x=>ga(c,x)?!1:Fe(h,x),b=(x,F)=>!(F&&ga(c,F));if(u!=null&&u!==i){if(ma(t),Ye(u))c[u]=null,p(u)&&(f[u]=null);else if(Ee(u)){const x=t;b(u,x.k)&&(u.value=null),x.k&&(c[x.k]=null)}}if(xe(i))Es(i,l,12,[a,c]);else{const x=Ye(i),F=Ee(i);if(x||F){const w=()=>{if(e.f){const M=x?p(i)?f[i]:c[i]:b()||!e.k?i.value:c[e.k];if(r)he(M)&&Io(M,o);else if(he(M))M.includes(o)||M.push(o);else if(x)c[i]=[o],p(i)&&(f[i]=c[i]);else{const k=[o];b(i,e.k)&&(i.value=k),e.k&&(c[e.k]=k)}}else x?(c[i]=a,p(i)&&(f[i]=a)):F&&(b(i,e.k)&&(i.value=a),e.k&&(c[e.k]=a))};if(a){const M=()=>{w(),ur.delete(e)};M.id=-1,ur.set(e,M),gt(M,n)}else ma(e),w()}}}function ma(e){const t=ur.get(e);t&&(t.flags|=8,ur.delete(e))}const ha=e=>e.nodeType===8;_r().requestIdleCallback;_r().cancelIdleCallback;function Ad(e,t){if(ha(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(ha(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Dn=e=>!!e.type.__asyncLoader;function Fd(e){xe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:o,timeout:a,suspensible:l=!0,onError:i}=e;let u=null,c,f=0;const h=()=>(f++,u=null,p()),p=()=>{let b;return u||(b=u=t().catch(x=>{if(x=x instanceof Error?x:new Error(String(x)),i)return new Promise((F,w)=>{i(x,()=>F(h()),()=>w(x),f+1)});throw x}).then(x=>b!==u&&u?u:(x&&(x.__esModule||x[Symbol.toStringTag]==="Module")&&(x=x.default),c=x,x)))};return Ge({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(b,x,F){let w=!1;(x.bu||(x.bu=[])).push(()=>w=!0);const M=()=>{w||F()},k=o?()=>{const m=o(M,R=>Ad(b,R));m&&(x.bum||(x.bum=[])).push(m)}:M;c?k():p().then(()=>!x.isUnmounted&&k())},get __asyncResolved(){return c},setup(){const b=at;if(Ho(b),c)return()=>Ws(c,b);const x=k=>{u=null,Rs(k,b,13,!s)};if(l&&b.suspense||Kn)return p().then(k=>()=>Ws(k,b)).catch(k=>(x(k),()=>s?Q(s,{error:k}):null));const F=ee(!1),w=ee(),M=ee(!!r);return r&&setTimeout(()=>{M.value=!1},r),a!=null&&setTimeout(()=>{if(!F.value&&!w.value){const k=new Error(`Async component timed out after ${a}ms.`);x(k),w.value=k}},a),p().then(()=>{F.value=!0,b.parent&&Ps(b.parent.vnode)&&b.parent.update()}).catch(k=>{x(k),w.value=k}),()=>{if(F.value&&c)return Ws(c,b);if(w.value&&s)return Q(s,{error:w.value});if(n&&!M.value)return Ws(n,b)}}})}function Ws(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,a=Q(e,s,r);return a.ref=n,a.ce=o,delete t.vnode.ce,a}const Ps=e=>e.type.__isKeepAlive;function Od(e,t){Pi(e,"a",t)}function Dd(e,t){Pi(e,"da",t)}function Pi(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(kr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Ps(r.parent.vnode)&&Ud(s,t,n,r),r=r.parent}}function Ud(e,t,n,s){const r=kr(t,e,s,!0);Wo(()=>{Io(s[t],r)},n)}function kr(e,t,n=at,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Yt();const l=Ls(n),i=$t(t,n,e,a);return l(),Xt(),i});return s?r.unshift(o):r.push(o),o}}const en=e=>(t,n=at)=>{(!Kn||e==="sp")&&kr(e,(...s)=>t(...s),n)},Vd=en("bm"),En=en("m"),Kd=en("bu"),jd=en("u"),Rn=en("bum"),Wo=en("um"),Hd=en("sp"),Wd=en("rtg"),Bd=en("rtc");function Gd(e,t=at){kr("ec",e,t)}const qd=Symbol.for("v-ndc");function Ue(e,t,n,s){let r;const o=n,a=he(e);if(a||Ye(e)){const l=a&&Cn(e);let i=!1,u=!1;l&&(i=!_t(e),u=Qt(e),e=wr(e)),r=new Array(e.length);for(let c=0,f=e.length;c<f;c++)r[c]=t(i?u?Vn(Pt(e[c])):Pt(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(Oe(e))if(e[Symbol.iterator])r=Array.from(e,(l,i)=>t(l,i,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let i=0,u=l.length;i<u;i++){const c=l[i];r[i]=t(e[c],c,i,o)}}else r=[];return r}function Cr(e,t,n={},s,r){if(lt.ce||lt.parent&&Dn(lt.parent)&&lt.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),$(),dt(ye,null,[Q("slot",n,s)],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),$();const a=o&&$i(o(n)),l=n.key||a&&a.key,i=dt(ye,{key:(l&&!Rt(l)?l:`_${t}`)+(!a&&s?"_fb":"")},a||[],a&&e._===1?64:-2);return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),o&&o._c&&(o._d=!0),i}function $i(e){return e.some(t=>bs(t)?!(t.type===ot||t.type===ye&&!$i(t.children)):!0)?e:null}const lo=e=>e?Yi(e)?Rr(e):lo(e.parent):null,us=tt(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=>lo(e.parent),$root:e=>lo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Li(e),$forceUpdate:e=>e.f||(e.f=()=>{jo(e.update)}),$nextTick:e=>e.n||(e.n=hi.bind(e.proxy)),$watch:e=>$d.bind(e)}),Wr=(e,t)=>e!==je&&!e.__isScriptSetup&&Fe(e,t),zd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:a,type:l,appContext:i}=e;if(t[0]!=="$"){const h=a[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(Wr(s,t))return a[t]=1,s[t];if(r!==je&&Fe(r,t))return a[t]=2,r[t];if(Fe(o,t))return a[t]=3,o[t];if(n!==je&&Fe(n,t))return a[t]=4,n[t];io&&(a[t]=0)}}const u=us[t];let c,f;if(u)return t==="$attrs"&&rt(e.attrs,"get",""),u(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(n!==je&&Fe(n,t))return a[t]=4,n[t];if(f=i.config.globalProperties,Fe(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Wr(r,t)?(r[t]=n,!0):s!==je&&Fe(s,t)?(s[t]=n,!0):Fe(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:a}},l){let i;return!!(n[l]||e!==je&&l[0]!=="$"&&Fe(e,l)||Wr(t,l)||Fe(o,l)||Fe(s,l)||Fe(us,l)||Fe(r.config.globalProperties,l)||(i=a.__cssModules)&&i[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sr(){return Jd().attrs}function Jd(e){const t=Ms();return t.setupContext||(t.setupContext=Qi(t))}function ba(e){return he(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let io=!0;function Yd(e){const t=Li(e),n=e.proxy,s=e.ctx;io=!1,t.beforeCreate&&ya(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:a,watch:l,provide:i,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:b,activated:x,deactivated:F,beforeDestroy:w,beforeUnmount:M,destroyed:k,unmounted:m,render:R,renderTracked:C,renderTriggered:L,errorCaptured:H,serverPrefetch:z,expose:ne,inheritAttrs:ae,components:G,directives:me,filters:se}=t;if(u&&Xd(u,s,null),a)for(const W in a){const q=a[W];xe(q)&&(s[W]=q.bind(n))}if(r){const W=r.call(n,n);Oe(W)&&(e.data=Vo(W))}if(io=!0,o)for(const W in o){const q=o[W],ge=xe(q)?q.bind(n,n):xe(q.get)?q.get.bind(n,n):Ot,$e=!xe(q)&&xe(q.set)?q.set.bind(n):Ot,we=V({get:ge,set:$e});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>we.value,set:be=>we.value=be})}if(l)for(const W in l)Mi(l[W],s,n,W);if(i){const W=xe(i)?i.call(n):i;Reflect.ownKeys(W).forEach(q=>{Ed(q,W[q])})}c&&ya(c,e,"c");function B(W,q){he(q)?q.forEach(ge=>W(ge.bind(n))):q&&W(q.bind(n))}if(B(Vd,f),B(En,h),B(Kd,p),B(jd,b),B(Od,x),B(Dd,F),B(Gd,H),B(Bd,C),B(Wd,L),B(Rn,M),B(Wo,m),B(Hd,z),he(ne))if(ne.length){const W=e.exposed||(e.exposed={});ne.forEach(q=>{Object.defineProperty(W,q,{get:()=>n[q],set:ge=>n[q]=ge,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Ot&&(e.render=R),ae!=null&&(e.inheritAttrs=ae),G&&(e.components=G),me&&(e.directives=me),z&&Ho(e)}function Xd(e,t,n=Ot){he(e)&&(e=uo(e));for(const s in e){const r=e[s];let o;Oe(r)?"default"in r?o=ls(r.from||s,r.default,!0):o=ls(r.from||s):o=ls(r),Ee(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[s]=o}}function ya(e,t,n){$t(he(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mi(e,t,n,s){let r=s.includes(".")?wi(n,s):()=>n[s];if(Ye(e)){const o=t[e];xe(o)&&ht(r,o)}else if(xe(e))ht(r,e.bind(n));else if(Oe(e))if(he(e))e.forEach(o=>Mi(o,t,n,s));else{const o=xe(e.handler)?e.handler.bind(n):t[e.handler];xe(o)&&ht(r,o,e)}}function Li(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,l=o.get(t);let i;return l?i=l:!r.length&&!n&&!s?i=t:(i={},r.length&&r.forEach(u=>cr(i,u,a,!0)),cr(i,t,a)),Oe(t)&&o.set(t,i),i}function cr(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&cr(e,o,n,!0),r&&r.forEach(a=>cr(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const l=Qd[a]||n&&n[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const Qd={data:va,props:xa,emits:xa,methods:ts,computed:ts,beforeCreate:ut,created:ut,beforeMount:ut,mounted:ut,beforeUpdate:ut,updated:ut,beforeDestroy:ut,beforeUnmount:ut,destroyed:ut,unmounted:ut,activated:ut,deactivated:ut,errorCaptured:ut,serverPrefetch:ut,components:ts,directives:ts,watch:ef,provide:va,inject:Zd};function va(e,t){return t?e?function(){return tt(xe(e)?e.call(this,this):e,xe(t)?t.call(this,this):t)}:t:e}function Zd(e,t){return ts(uo(e),uo(t))}function uo(e){if(he(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ut(e,t){return e?[...new Set([].concat(e,t))]:t}function ts(e,t){return e?tt(Object.create(null),e,t):t}function xa(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:tt(Object.create(null),ba(e),ba(t??{})):t}function ef(e,t){if(!e)return t;if(!t)return e;const n=tt(Object.create(null),e);for(const s in t)n[s]=ut(e[s],t[s]);return n}function Ii(){return{app:null,config:{isNativeTag:jl,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 tf=0;function nf(e,t){return function(s,r=null){xe(s)||(s=tt({},s)),r!=null&&!Oe(r)&&(r=null);const o=Ii(),a=new WeakSet,l=[];let i=!1;const u=o.app={_uid:tf++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Lf,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&xe(c.install)?(a.add(c),c.install(u,...f)):xe(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!i){const p=u._ceVNode||Q(s,r);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(p,c,h),i=!0,u._container=c,c.__vue_app__=u,Rr(p.component)}},onUnmount(c){l.push(c)},unmount(){i&&($t(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Un;Un=u;try{return c()}finally{Un=f}}};return u}}let Un=null;const sf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ln(t)}Modifiers`]||e[`${Sn(t)}Modifiers`];function rf(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||je;let r=n;const o=t.startsWith("update:"),a=o&&sf(s,t.slice(7));a&&(a.trim&&(r=n.map(c=>Ye(c)?c.trim():c)),a.number&&(r=n.map(Fc)));let l,i=s[l=Or(t)]||s[l=Or(ln(t))];!i&&o&&(i=s[l=Or(Sn(t))]),i&&$t(i,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$t(u,e,6,r)}}const of=new WeakMap;function Ni(e,t,n=!1){const s=n?of:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let a={},l=!1;if(!xe(e)){const i=u=>{const c=Ni(u,t,!0);c&&(l=!0,tt(a,c))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!o&&!l?(Oe(e)&&s.set(e,null),null):(he(o)?o.forEach(i=>a[i]=null):tt(a,o),Oe(e)&&s.set(e,a),a)}function Er(e,t){return!e||!yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Fe(e,t[0].toLowerCase()+t.slice(1))||Fe(e,Sn(t))||Fe(e,t))}function _a(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:a,attrs:l,emit:i,render:u,renderCache:c,props:f,data:h,setupState:p,ctx:b,inheritAttrs:x}=e,F=ir(e);let w,M;try{if(n.shapeFlag&4){const m=r||s,R=m;w=Ft(u.call(R,m,c,f,p,h,b)),M=l}else{const m=t;w=Ft(m.length>1?m(f,{attrs:l,slots:a,emit:i}):m(f,null)),M=t.props?l:af(l)}}catch(m){cs.length=0,Rs(m,e,1),w=Q(ot)}let k=w;if(M&&x!==!1){const m=Object.keys(M),{shapeFlag:R}=k;m.length&&R&7&&(o&&m.some(Lo)&&(M=lf(M,o)),k=un(k,M,!1,!0))}return n.dirs&&(k=un(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&ms(k,n.transition),w=k,ir(F),w}const af=e=>{let t;for(const n in e)(n==="class"||n==="style"||yr(n))&&((t||(t={}))[n]=e[n]);return t},lf=(e,t)=>{const n={};for(const s in e)(!Lo(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function uf(e,t,n){const{props:s,children:r,component:o}=e,{props:a,children:l,patchFlag:i}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return s?wa(s,a,u):!!a;if(i&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(Ai(a,s,h)&&!Er(u,h))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===a?!1:s?a?wa(s,a,u):!0:!!a;return!1}function wa(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(Ai(t,e,o)&&!Er(n,o))return!0}return!1}function Ai(e,t,n){const s=e[n],r=t[n];return n==="style"&&Oe(s)&&Oe(r)?!No(s,r):s!==r}function cf({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 Fi={},Oi=()=>Object.create(Fi),Di=e=>Object.getPrototypeOf(e)===Fi;function df(e,t,n,s=!1){const r={},o=Oi();e.propsDefaults=Object.create(null),Ui(e,t,r,o);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=s?r:fd(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ff(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:a}}=e,l=Me(r),[i]=e.propsOptions;let u=!1;if((s||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Er(e.emitsOptions,h))continue;const p=t[h];if(i)if(Fe(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const b=ln(h);r[b]=co(i,l,b,p,e,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{Ui(e,t,r,o)&&(u=!0);let c;for(const f in l)(!t||!Fe(t,f)&&((c=Sn(f))===f||!Fe(t,c)))&&(i?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=co(i,l,f,void 0,e,!0)):delete r[f]);if(o!==l)for(const f in o)(!t||!Fe(t,f))&&(delete o[f],u=!0)}u&&Gt(e.attrs,"set","")}function Ui(e,t,n,s){const[r,o]=e.propsOptions;let a=!1,l;if(t)for(let i in t){if(rs(i))continue;const u=t[i];let c;r&&Fe(r,c=ln(i))?!o||!o.includes(c)?n[c]=u:(l||(l={}))[c]=u:Er(e.emitsOptions,i)||(!(i in s)||u!==s[i])&&(s[i]=u,a=!0)}if(o){const i=Me(n),u=l||je;for(let c=0;c<o.length;c++){const f=o[c];n[f]=co(r,i,f,u[f],e,!Fe(u,f))}}return a}function co(e,t,n,s,r,o){const a=e[n];if(a!=null){const l=Fe(a,"default");if(l&&s===void 0){const i=a.default;if(a.type!==Function&&!a.skipFactory&&xe(i)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=Ls(r);s=u[n]=i.call(null,t),c()}}else s=i;r.ce&&r.ce._setProp(n,s)}a[0]&&(o&&!l?s=!1:a[1]&&(s===""||s===Sn(n))&&(s=!0))}return s}const pf=new WeakMap;function Vi(e,t,n=!1){const s=n?pf:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,a={},l=[];let i=!1;if(!xe(e)){const c=f=>{i=!0;const[h,p]=Vi(f,t,!0);tt(a,h),p&&l.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!i)return Oe(e)&&s.set(e,An),An;if(he(o))for(let c=0;c<o.length;c++){const f=ln(o[c]);Ta(f)&&(a[f]=je)}else if(o)for(const c in o){const f=ln(c);if(Ta(f)){const h=o[c],p=a[f]=he(h)||xe(h)?{type:h}:tt({},h),b=p.type;let x=!1,F=!0;if(he(b))for(let w=0;w<b.length;++w){const M=b[w],k=xe(M)&&M.name;if(k==="Boolean"){x=!0;break}else k==="String"&&(F=!1)}else x=xe(b)&&b.name==="Boolean";p[0]=x,p[1]=F,(x||Fe(p,"default"))&&l.push(f)}}const u=[a,l];return Oe(e)&&s.set(e,u),u}function Ta(e){return e[0]!=="$"&&!rs(e)}const Bo=e=>e==="_"||e==="_ctx"||e==="$stable",Go=e=>he(e)?e.map(Ft):[Ft(e)],gf=(e,t,n)=>{if(t._n)return t;const s=fe((...r)=>Go(t(...r)),n);return s._c=!1,s},Ki=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Bo(r))continue;const o=e[r];if(xe(o))t[r]=gf(r,o,s);else if(o!=null){const a=Go(o);t[r]=()=>a}}},ji=(e,t)=>{const n=Go(t);e.slots.default=()=>n},Hi=(e,t,n)=>{for(const s in t)(n||!Bo(s))&&(e[s]=t[s])},mf=(e,t,n)=>{const s=e.slots=Oi();if(e.vnode.shapeFlag&32){const r=t._;r?(Hi(s,t,n),n&&zl(s,"_",r,!0)):Ki(t,s)}else t&&ji(e,t)},hf=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,a=je;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Hi(r,t,n):(o=!t.$stable,Ki(t,r)),a=t}else t&&(ji(e,t),a={default:1});if(o)for(const l in r)!Bo(l)&&a[l]==null&&delete r[l]},gt=_f;function bf(e){return yf(e)}function yf(e,t){const n=_r();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:a,createText:l,createComment:i,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=Ot,insertStaticContent:b}=e,x=(v,E,O,D=null,U=null,K=null,g=void 0,d=null,T=!!E.dynamicChildren)=>{if(v===E)return;v&&!wn(v,E)&&(D=Ce(v),be(v,U,K,!0),v=null),E.patchFlag===-2&&(T=!1,E.dynamicChildren=null);const{type:P,ref:Z,shapeFlag:j}=E;switch(P){case $s:F(v,E,O,D);break;case ot:w(v,E,O,D);break;case Gr:v==null&&M(E,O,D,g);break;case ye:G(v,E,O,D,U,K,g,d,T);break;default:j&1?R(v,E,O,D,U,K,g,d,T):j&6?me(v,E,O,D,U,K,g,d,T):(j&64||j&128)&&P.process(v,E,O,D,U,K,g,d,T,J)}Z!=null&&U?is(Z,v&&v.ref,K,E||v,!E):Z==null&&v&&v.ref!=null&&is(v.ref,null,K,v,!0)},F=(v,E,O,D)=>{if(v==null)s(E.el=l(E.children),O,D);else{const U=E.el=v.el;E.children!==v.children&&u(U,E.children)}},w=(v,E,O,D)=>{v==null?s(E.el=i(E.children||""),O,D):E.el=v.el},M=(v,E,O,D)=>{[v.el,v.anchor]=b(v.children,E,O,D,v.el,v.anchor)},k=({el:v,anchor:E},O,D)=>{let U;for(;v&&v!==E;)U=h(v),s(v,O,D),v=U;s(E,O,D)},m=({el:v,anchor:E})=>{let O;for(;v&&v!==E;)O=h(v),r(v),v=O;r(E)},R=(v,E,O,D,U,K,g,d,T)=>{if(E.type==="svg"?g="svg":E.type==="math"&&(g="mathml"),v==null)C(E,O,D,U,K,g,d,T);else{const P=v.el&&v.el._isVueCE?v.el:null;try{P&&P._beginPatch(),z(v,E,U,K,g,d,T)}finally{P&&P._endPatch()}}},C=(v,E,O,D,U,K,g,d)=>{let T,P;const{props:Z,shapeFlag:j,transition:S,dirs:A}=v;if(T=v.el=a(v.type,K,Z&&Z.is,Z),j&8?c(T,v.children):j&16&&H(v.children,T,null,D,U,Br(v,K),g,d),A&&mn(v,null,D,"created"),L(T,v,v.scopeId,g,D),Z){for(const oe in Z)oe!=="value"&&!rs(oe)&&o(T,oe,null,Z[oe],K,D);"value"in Z&&o(T,"value",null,Z.value,K),(P=Z.onVnodeBeforeMount)&&Mt(P,D,v)}A&&mn(v,null,D,"beforeMount");const te=vf(U,S);te&&S.beforeEnter(T),s(T,E,O),((P=Z&&Z.onVnodeMounted)||te||A)&&gt(()=>{P&&Mt(P,D,v),te&&S.enter(T),A&&mn(v,null,D,"mounted")},U)},L=(v,E,O,D,U)=>{if(O&&p(v,O),D)for(let K=0;K<D.length;K++)p(v,D[K]);if(U){let K=U.subTree;if(E===K||qi(K.type)&&(K.ssContent===E||K.ssFallback===E)){const g=U.vnode;L(v,g,g.scopeId,g.slotScopeIds,U.parent)}}},H=(v,E,O,D,U,K,g,d,T=0)=>{for(let P=T;P<v.length;P++){const Z=v[P]=d?Wt(v[P]):Ft(v[P]);x(null,Z,E,O,D,U,K,g,d)}},z=(v,E,O,D,U,K,g)=>{const d=E.el=v.el;let{patchFlag:T,dynamicChildren:P,dirs:Z}=E;T|=v.patchFlag&16;const j=v.props||je,S=E.props||je;let A;if(O&&hn(O,!1),(A=S.onVnodeBeforeUpdate)&&Mt(A,O,E,v),Z&&mn(E,v,O,"beforeUpdate"),O&&hn(O,!0),(j.innerHTML&&S.innerHTML==null||j.textContent&&S.textContent==null)&&c(d,""),P?ne(v.dynamicChildren,P,d,O,D,Br(E,U),K):g||q(v,E,d,null,O,D,Br(E,U),K,!1),T>0){if(T&16)ae(d,j,S,O,U);else if(T&2&&j.class!==S.class&&o(d,"class",null,S.class,U),T&4&&o(d,"style",j.style,S.style,U),T&8){const te=E.dynamicProps;for(let oe=0;oe<te.length;oe++){const de=te[oe],Je=j[de],qe=S[de];(qe!==Je||de==="value")&&o(d,de,Je,qe,U,O)}}T&1&&v.children!==E.children&&c(d,E.children)}else!g&&P==null&&ae(d,j,S,O,U);((A=S.onVnodeUpdated)||Z)&&gt(()=>{A&&Mt(A,O,E,v),Z&&mn(E,v,O,"updated")},D)},ne=(v,E,O,D,U,K,g)=>{for(let d=0;d<E.length;d++){const T=v[d],P=E[d],Z=T.el&&(T.type===ye||!wn(T,P)||T.shapeFlag&198)?f(T.el):O;x(T,P,Z,null,D,U,K,g,!0)}},ae=(v,E,O,D,U)=>{if(E!==O){if(E!==je)for(const K in E)!rs(K)&&!(K in O)&&o(v,K,E[K],null,U,D);for(const K in O){if(rs(K))continue;const g=O[K],d=E[K];g!==d&&K!=="value"&&o(v,K,d,g,U,D)}"value"in O&&o(v,"value",E.value,O.value,U)}},G=(v,E,O,D,U,K,g,d,T)=>{const P=E.el=v?v.el:l(""),Z=E.anchor=v?v.anchor:l("");let{patchFlag:j,dynamicChildren:S,slotScopeIds:A}=E;A&&(d=d?d.concat(A):A),v==null?(s(P,O,D),s(Z,O,D),H(E.children||[],O,Z,U,K,g,d,T)):j>0&&j&64&&S&&v.dynamicChildren&&v.dynamicChildren.length===S.length?(ne(v.dynamicChildren,S,O,U,K,g,d),(E.key!=null||U&&E===U.subTree)&&Wi(v,E,!0)):q(v,E,O,Z,U,K,g,d,T)},me=(v,E,O,D,U,K,g,d,T)=>{E.slotScopeIds=d,v==null?E.shapeFlag&512?U.ctx.activate(E,O,D,g,T):se(E,O,D,U,K,g,T):X(v,E,T)},se=(v,E,O,D,U,K,g)=>{const d=v.component=Ef(v,D,U);if(Ps(v)&&(d.ctx.renderer=J),Rf(d,!1,g),d.asyncDep){if(U&&U.registerDep(d,B,g),!v.el){const T=d.subTree=Q(ot);w(null,T,E,O),v.placeholder=T.el}}else B(d,v,E,O,U,K,g)},X=(v,E,O)=>{const D=E.component=v.component;if(uf(v,E,O))if(D.asyncDep&&!D.asyncResolved){W(D,E,O);return}else D.next=E,D.update();else E.el=v.el,D.vnode=E},B=(v,E,O,D,U,K,g)=>{const d=()=>{if(v.isMounted){let{next:j,bu:S,u:A,parent:te,vnode:oe}=v;{const yt=Bi(v);if(yt){j&&(j.el=oe.el,W(v,j,g)),yt.asyncDep.then(()=>{gt(()=>{v.isUnmounted||P()},U)});return}}let de=j,Je;hn(v,!1),j?(j.el=oe.el,W(v,j,g)):j=oe,S&&Dr(S),(Je=j.props&&j.props.onVnodeBeforeUpdate)&&Mt(Je,te,j,oe),hn(v,!0);const qe=_a(v),ft=v.subTree;v.subTree=qe,x(ft,qe,f(ft.el),Ce(ft),v,U,K),j.el=qe.el,de===null&&cf(v,qe.el),A&&gt(A,U),(Je=j.props&&j.props.onVnodeUpdated)&&gt(()=>Mt(Je,te,j,oe),U)}else{let j;const{el:S,props:A}=E,{bm:te,m:oe,parent:de,root:Je,type:qe}=v,ft=Dn(E);hn(v,!1),te&&Dr(te),!ft&&(j=A&&A.onVnodeBeforeMount)&&Mt(j,de,E),hn(v,!0);{Je.ce&&Je.ce._hasShadowRoot()&&Je.ce._injectChildStyle(qe);const yt=v.subTree=_a(v);x(null,yt,O,D,v,U,K),E.el=yt.el}if(oe&&gt(oe,U),!ft&&(j=A&&A.onVnodeMounted)){const yt=E;gt(()=>Mt(j,de,yt),U)}(E.shapeFlag&256||de&&Dn(de.vnode)&&de.vnode.shapeFlag&256)&&v.a&&gt(v.a,U),v.isMounted=!0,E=O=D=null}};v.scope.on();const T=v.effect=new Zl(d);v.scope.off();const P=v.update=T.run.bind(T),Z=v.job=T.runIfDirty.bind(T);Z.i=v,Z.id=v.uid,T.scheduler=()=>jo(Z),hn(v,!0),P()},W=(v,E,O)=>{E.component=v;const D=v.vnode.props;v.vnode=E,v.next=null,ff(v,E.props,D,O),hf(v,E.children,O),Yt(),fa(v),Xt()},q=(v,E,O,D,U,K,g,d,T=!1)=>{const P=v&&v.children,Z=v?v.shapeFlag:0,j=E.children,{patchFlag:S,shapeFlag:A}=E;if(S>0){if(S&128){$e(P,j,O,D,U,K,g,d,T);return}else if(S&256){ge(P,j,O,D,U,K,g,d,T);return}}A&8?(Z&16&&De(P,U,K),j!==P&&c(O,j)):Z&16?A&16?$e(P,j,O,D,U,K,g,d,T):De(P,U,K,!0):(Z&8&&c(O,""),A&16&&H(j,O,D,U,K,g,d,T))},ge=(v,E,O,D,U,K,g,d,T)=>{v=v||An,E=E||An;const P=v.length,Z=E.length,j=Math.min(P,Z);let S;for(S=0;S<j;S++){const A=E[S]=T?Wt(E[S]):Ft(E[S]);x(v[S],A,O,null,U,K,g,d,T)}P>Z?De(v,U,K,!0,!1,j):H(E,O,D,U,K,g,d,T,j)},$e=(v,E,O,D,U,K,g,d,T)=>{let P=0;const Z=E.length;let j=v.length-1,S=Z-1;for(;P<=j&&P<=S;){const A=v[P],te=E[P]=T?Wt(E[P]):Ft(E[P]);if(wn(A,te))x(A,te,O,null,U,K,g,d,T);else break;P++}for(;P<=j&&P<=S;){const A=v[j],te=E[S]=T?Wt(E[S]):Ft(E[S]);if(wn(A,te))x(A,te,O,null,U,K,g,d,T);else break;j--,S--}if(P>j){if(P<=S){const A=S+1,te=A<Z?E[A].el:D;for(;P<=S;)x(null,E[P]=T?Wt(E[P]):Ft(E[P]),O,te,U,K,g,d,T),P++}}else if(P>S)for(;P<=j;)be(v[P],U,K,!0),P++;else{const A=P,te=P,oe=new Map;for(P=te;P<=S;P++){const it=E[P]=T?Wt(E[P]):Ft(E[P]);it.key!=null&&oe.set(it.key,P)}let de,Je=0;const qe=S-te+1;let ft=!1,yt=0;const pn=new Array(qe);for(P=0;P<qe;P++)pn[P]=0;for(P=A;P<=j;P++){const it=v[P];if(Je>=qe){be(it,U,K,!0);continue}let Tt;if(it.key!=null)Tt=oe.get(it.key);else for(de=te;de<=S;de++)if(pn[de-te]===0&&wn(it,E[de])){Tt=de;break}Tt===void 0?be(it,U,K,!0):(pn[Tt-te]=P+1,Tt>=yt?yt=Tt:ft=!0,x(it,E[Tt],O,null,U,K,g,d,T),Je++)}const Ns=ft?xf(pn):An;for(de=Ns.length-1,P=qe-1;P>=0;P--){const it=te+P,Tt=E[it],As=E[it+1],Fs=it+1<Z?As.el||Gi(As):D;pn[P]===0?x(null,Tt,O,Fs,U,K,g,d,T):ft&&(de<0||P!==Ns[de]?we(Tt,O,Fs,2):de--)}}},we=(v,E,O,D,U=null)=>{const{el:K,type:g,transition:d,children:T,shapeFlag:P}=v;if(P&6){we(v.component.subTree,E,O,D);return}if(P&128){v.suspense.move(E,O,D);return}if(P&64){g.move(v,E,O,J);return}if(g===ye){s(K,E,O);for(let j=0;j<T.length;j++)we(T[j],E,O,D);s(v.anchor,E,O);return}if(g===Gr){k(v,E,O);return}if(D!==2&&P&1&&d)if(D===0)d.beforeEnter(K),s(K,E,O),gt(()=>d.enter(K),U);else{const{leave:j,delayLeave:S,afterLeave:A}=d,te=()=>{v.ctx.isUnmounted?r(K):s(K,E,O)},oe=()=>{K._isLeaving&&K[At](!0),j(K,()=>{te(),A&&A()})};S?S(K,te,oe):oe()}else s(K,E,O)},be=(v,E,O,D=!1,U=!1)=>{const{type:K,props:g,ref:d,children:T,dynamicChildren:P,shapeFlag:Z,patchFlag:j,dirs:S,cacheIndex:A}=v;if(j===-2&&(U=!1),d!=null&&(Yt(),is(d,null,O,v,!0),Xt()),A!=null&&(E.renderCache[A]=void 0),Z&256){E.ctx.deactivate(v);return}const te=Z&1&&S,oe=!Dn(v);let de;if(oe&&(de=g&&g.onVnodeBeforeUnmount)&&Mt(de,E,v),Z&6)Ne(v.component,O,D);else{if(Z&128){v.suspense.unmount(O,D);return}te&&mn(v,null,E,"beforeUnmount"),Z&64?v.type.remove(v,E,O,J,D):P&&!P.hasOnce&&(K!==ye||j>0&&j&64)?De(P,E,O,!1,!0):(K===ye&&j&384||!U&&Z&16)&&De(T,E,O),D&&ve(v)}(oe&&(de=g&&g.onVnodeUnmounted)||te)&&gt(()=>{de&&Mt(de,E,v),te&&mn(v,null,E,"unmounted")},O)},ve=v=>{const{type:E,el:O,anchor:D,transition:U}=v;if(E===ye){ke(O,D);return}if(E===Gr){m(v);return}const K=()=>{r(O),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(v.shapeFlag&1&&U&&!U.persisted){const{leave:g,delayLeave:d}=U,T=()=>g(O,K);d?d(v.el,K,T):T()}else K()},ke=(v,E)=>{let O;for(;v!==E;)O=h(v),r(v),v=O;r(E)},Ne=(v,E,O)=>{const{bum:D,scope:U,job:K,subTree:g,um:d,m:T,a:P}=v;ka(T),ka(P),D&&Dr(D),U.stop(),K&&(K.flags|=8,be(g,v,E,O)),d&&gt(d,E),gt(()=>{v.isUnmounted=!0},E)},De=(v,E,O,D=!1,U=!1,K=0)=>{for(let g=K;g<v.length;g++)be(v[g],E,O,D,U)},Ce=v=>{if(v.shapeFlag&6)return Ce(v.component.subTree);if(v.shapeFlag&128)return v.suspense.next();const E=h(v.anchor||v.el),O=E&&E[Md];return O?h(O):E};let Ke=!1;const ue=(v,E,O)=>{let D;v==null?E._vnode&&(be(E._vnode,null,null,!0),D=E._vnode.component):x(E._vnode||null,v,E,null,null,null,O),E._vnode=v,Ke||(Ke=!0,fa(D),yi(),Ke=!1)},J={p:x,um:be,m:we,r:ve,mt:se,mc:H,pc:q,pbc:ne,n:Ce,o:e};return{render:ue,hydrate:void 0,createApp:nf(ue)}}function Br({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 hn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wi(e,t,n=!1){const s=e.children,r=t.children;if(he(s)&&he(r))for(let o=0;o<s.length;o++){const a=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=Wt(r[o]),l.el=a.el),!n&&l.patchFlag!==-2&&Wi(a,l)),l.type===$s&&(l.patchFlag===-1&&(l=r[o]=Wt(l)),l.el=a.el),l.type===ot&&!l.el&&(l.el=a.el)}}function xf(e){const t=e.slice(),n=[0];let s,r,o,a,l;const i=e.length;for(s=0;s<i;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,a=n.length-1;o<a;)l=o+a>>1,e[n[l]]<u?o=l+1:a=l;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Bi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bi(t)}function ka(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gi(t.subTree):null}const qi=e=>e.__isSuspense;function _f(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):Sd(e)}const ye=Symbol.for("v-fgt"),$s=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),Gr=Symbol.for("v-stc"),cs=[];let xt=null;function $(e=!1){cs.push(xt=e?null:[])}function wf(){cs.pop(),xt=cs[cs.length-1]||null}let hs=1;function dr(e,t=!1){hs+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function zi(e){return e.dynamicChildren=hs>0?xt||An:null,wf(),hs>0&&xt&&xt.push(e),e}function I(e,t,n,s,r,o){return zi(y(e,t,n,s,r,o,!0))}function dt(e,t,n,s,r){return zi(Q(e,t,n,s,r,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function wn(e,t){return e.type===t.type&&e.key===t.key}const Ji=({key:e})=>e??null,tr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ye(e)||Ee(e)||xe(e)?{i:lt,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,s=0,r=null,o=e===ye?0:1,a=!1,l=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ji(t),ref:t&&tr(t),scopeId:xi,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:lt};return l?(qo(i,n),o&128&&e.normalize(i)):n&&(i.shapeFlag|=Ye(n)?8:16),hs>0&&!a&&xt&&(i.patchFlag>0||o&6)&&i.patchFlag!==32&&xt.push(i),i}const Q=Tf;function Tf(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===qd)&&(e=ot),bs(e)){const l=un(e,t,!0);return n&&qo(l,n),hs>0&&!o&&xt&&(l.shapeFlag&6?xt[xt.indexOf(e)]=l:xt.push(l)),l.patchFlag=-2,l}if(Mf(e)&&(e=e.__vccOpts),t){t=kf(t);let{class:l,style:i}=t;l&&!Ye(l)&&(t.class=ce(l)),Oe(i)&&(Tr(i)&&!he(i)&&(i=tt({},i)),t.style=Ss(i))}const a=Ye(e)?1:qi(e)?128:Ti(e)?64:Oe(e)?4:xe(e)?2:0;return y(e,t,n,s,r,a,o,!0)}function kf(e){return e?Tr(e)||Di(e)?tt({},e):e:null}function un(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:a,children:l,transition:i}=e,u=t?Zt(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ji(u),ref:t&&t.ref?n&&o?he(o)?o.concat(tr(t)):[o,tr(t)]:tr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&un(e.ssContent),ssFallback:e.ssFallback&&un(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&s&&ms(c,i.clone(c)),c}function Pe(e=" ",t=0){return Q($s,null,e,t)}function pe(e="",t=!1){return t?($(),dt(ot,null,e)):Q(ot,null,e)}function Ft(e){return e==null||typeof e=="boolean"?Q(ot):he(e)?Q(ye,null,e.slice()):bs(e)?Wt(e):Q($s,null,String(e))}function Wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:un(e)}function qo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(he(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),qo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Di(t)?t._ctx=lt:r===3&&lt&&(lt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else xe(t)?(t={default:t,_ctx:lt},n=32):(t=String(t),s&64?(n=16,t=[Pe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zt(...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=ce([t.class,s.class]));else if(r==="style")t.style=Ss([t.style,s.style]);else if(yr(r)){const o=t[r],a=s[r];a&&o!==a&&!(he(o)&&o.includes(a))&&(t[r]=o?[].concat(o,a):a)}else r!==""&&(t[r]=s[r])}return t}function Mt(e,t,n,s=null){$t(e,t,7,[n,s])}const Cf=Ii();let Sf=0;function Ef(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Cf,o={uid:Sf++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ql(!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:Vi(s,r),emitsOptions:Ni(s,r),emit:null,emitted:null,propsDefaults:je,inheritAttrs:s.inheritAttrs,ctx:je,data:je,props:je,attrs:je,slots:je,refs:je,setupState:je,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=rf.bind(null,o),e.ce&&e.ce(o),o}let at=null;const Ms=()=>at||lt;let fr,fo;{const e=_r(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};fr=t("__VUE_INSTANCE_SETTERS__",n=>at=n),fo=t("__VUE_SSR_SETTERS__",n=>Kn=n)}const Ls=e=>{const t=at;return fr(e),e.scope.on(),()=>{e.scope.off(),fr(t)}},Ca=()=>{at&&at.scope.off(),fr(null)};function Yi(e){return e.vnode.shapeFlag&4}let Kn=!1;function Rf(e,t=!1,n=!1){t&&fo(t);const{props:s,children:r}=e.vnode,o=Yi(e);df(e,s,o,t),mf(e,r,n||t);const a=o?Pf(e,t):void 0;return t&&fo(!1),a}function Pf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zd);const{setup:s}=n;if(s){Yt();const r=e.setupContext=s.length>1?Qi(e):null,o=Ls(e),a=Es(s,e,0,[e.props,r]),l=Wl(a);if(Xt(),o(),(l||e.sp)&&!Dn(e)&&Ho(e),l){if(a.then(Ca,Ca),t)return a.then(i=>{Sa(e,i)}).catch(i=>{Rs(i,e,0)});e.asyncDep=a}else Sa(e,a)}else Xi(e)}function Sa(e,t,n){xe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)&&(e.setupState=gi(t)),Xi(e)}function Xi(e,t,n){const s=e.type;e.render||(e.render=s.render||Ot);{const r=Ls(e);Yt();try{Yd(e)}finally{Xt(),r()}}}const $f={get(e,t){return rt(e,"get",""),e[t]}};function Qi(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$f),slots:e.slots,emit:e.emit,expose:t}}function Rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gi(pd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in us)return us[n](e)},has(t,n){return n in t||n in us}})):e.proxy}function Mf(e){return xe(e)&&"__vccOpts"in e}const V=(e,t)=>_d(e,t,Kn);function zo(e,t,n){try{dr(-1);const s=arguments.length;return s===2?Oe(t)&&!he(t)?bs(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bs(n)&&(n=[n]),Q(e,t,n))}finally{dr(1)}}const Lf="3.5.28";let po;const Ea=typeof window<"u"&&window.trustedTypes;if(Ea)try{po=Ea.createPolicy("vue",{createHTML:e=>e})}catch{}const Zi=po?e=>po.createHTML(e):e=>e,If="http://www.w3.org/2000/svg",Nf="http://www.w3.org/1998/Math/MathML",Ht=typeof document<"u"?document:null,Ra=Ht&&Ht.createElement("template"),Af={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"?Ht.createElementNS(If,e):t==="mathml"?Ht.createElementNS(Nf,e):n?Ht.createElement(e,{is:n}):Ht.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ht.createTextNode(e),createComment:e=>Ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const a=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ra.innerHTML=Zi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Ra.content;if(s==="svg"||s==="mathml"){const i=l.firstChild;for(;i.firstChild;)l.appendChild(i.firstChild);l.removeChild(i)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},tn="transition",Jn="animation",ys=Symbol("_vtc"),eu={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},Ff=tt({},ki,eu),Of=e=>(e.displayName="Transition",e.props=Ff,e),Df=Of((e,{slots:t})=>zo(Nd,Uf(e),t)),bn=(e,t=[])=>{he(e)?e.forEach(n=>n(...t)):e&&e(...t)},Pa=e=>e?he(e)?e.some(t=>t.length>1):e.length>1:!1;function Uf(e){const t={};for(const G in e)G in eu||(t[G]=e[G]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:i=o,appearActiveClass:u=a,appearToClass:c=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,b=Vf(r),x=b&&b[0],F=b&&b[1],{onBeforeEnter:w,onEnter:M,onEnterCancelled:k,onLeave:m,onLeaveCancelled:R,onBeforeAppear:C=w,onAppear:L=M,onAppearCancelled:H=k}=t,z=(G,me,se,X)=>{G._enterCancelled=X,yn(G,me?c:l),yn(G,me?u:a),se&&se()},ne=(G,me)=>{G._isLeaving=!1,yn(G,f),yn(G,p),yn(G,h),me&&me()},ae=G=>(me,se)=>{const X=G?L:M,B=()=>z(me,G,se);bn(X,[me,B]),$a(()=>{yn(me,G?i:o),Vt(me,G?c:l),Pa(X)||Ma(me,s,x,B)})};return tt(t,{onBeforeEnter(G){bn(w,[G]),Vt(G,o),Vt(G,a)},onBeforeAppear(G){bn(C,[G]),Vt(G,i),Vt(G,u)},onEnter:ae(!1),onAppear:ae(!0),onLeave(G,me){G._isLeaving=!0;const se=()=>ne(G,me);Vt(G,f),G._enterCancelled?(Vt(G,h),Na(G)):(Na(G),Vt(G,h)),$a(()=>{G._isLeaving&&(yn(G,f),Vt(G,p),Pa(m)||Ma(G,s,F,se))}),bn(m,[G,se])},onEnterCancelled(G){z(G,!1,void 0,!0),bn(k,[G])},onAppearCancelled(G){z(G,!0,void 0,!0),bn(H,[G])},onLeaveCancelled(G){ne(G),bn(R,[G])}})}function Vf(e){if(e==null)return null;if(Oe(e))return[qr(e.enter),qr(e.leave)];{const t=qr(e);return[t,t]}}function qr(e){return Oc(e)}function Vt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ys]||(e[ys]=new Set)).add(t)}function yn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[ys];n&&(n.delete(t),n.size||(e[ys]=void 0))}function $a(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kf=0;function Ma(e,t,n,s){const r=e._endId=++Kf,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:l,propCount:i}=jf(e,t);if(!a)return s();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),o()},h=p=>{p.target===e&&++c>=i&&f()};setTimeout(()=>{c<i&&f()},l+1),e.addEventListener(u,h)}function jf(e,t){const n=window.getComputedStyle(e),s=b=>(n[b]||"").split(", "),r=s(`${tn}Delay`),o=s(`${tn}Duration`),a=La(r,o),l=s(`${Jn}Delay`),i=s(`${Jn}Duration`),u=La(l,i);let c=null,f=0,h=0;t===tn?a>0&&(c=tn,f=a,h=o.length):t===Jn?u>0&&(c=Jn,f=u,h=i.length):(f=Math.max(a,u),c=f>0?a>u?tn:Jn:null,h=c?c===tn?o.length:i.length:0);const p=c===tn&&/\b(?:transform|all)(?:,|$)/.test(s(`${tn}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:p}}function La(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ia(n)+Ia(e[s])))}function Ia(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Na(e){return(e?e.ownerDocument:document).body.offsetHeight}function Hf(e,t,n){const s=e[ys];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const pr=Symbol("_vod"),tu=Symbol("_vsh"),Bs={name:"show",beforeMount(e,{value:t},{transition:n}){e[pr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Yn(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),Yn(e,!0),s.enter(e)):s.leave(e,()=>{Yn(e,!1)}):Yn(e,t))},beforeUnmount(e,{value:t}){Yn(e,t)}};function Yn(e,t){e.style.display=t?e[pr]:"none",e[tu]=!t}const Wf=Symbol(""),Bf=/(?:^|;)\s*display\s*:/;function Gf(e,t,n){const s=e.style,r=Ye(n);let o=!1;if(n&&!r){if(t)if(Ye(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();n[l]==null&&nr(s,l,"")}else for(const a in t)n[a]==null&&nr(s,a,"");for(const a in n)a==="display"&&(o=!0),nr(s,a,n[a])}else if(r){if(t!==n){const a=s[Wf];a&&(n+=";"+a),s.cssText=n,o=Bf.test(n)}}else t&&e.removeAttribute("style");pr in e&&(e[pr]=o?s.display:"",e[tu]&&(s.display="none"))}const Aa=/\s*!important$/;function nr(e,t,n){if(he(n))n.forEach(s=>nr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=qf(e,t);Aa.test(n)?e.setProperty(Sn(s),n.replace(Aa,""),"important"):e[s]=n}}const Fa=["Webkit","Moz","ms"],zr={};function qf(e,t){const n=zr[t];if(n)return n;let s=ln(t);if(s!=="filter"&&s in e)return zr[t]=s;s=ql(s);for(let r=0;r<Fa.length;r++){const o=Fa[r]+s;if(o in e)return zr[t]=o}return t}const Oa="http://www.w3.org/1999/xlink";function Da(e,t,n,s,r,o=Hc(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Oa,t.slice(6,t.length)):e.setAttributeNS(Oa,t,n):n==null||o&&!Jl(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Rt(n)?String(n):n)}function Ua(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Zi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,i=n==null?e.type==="checkbox"?"on":"":String(n);(l!==i||!("_value"in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Jl(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(r||t)}function zf(e,t,n,s){e.addEventListener(t,n,s)}function Jf(e,t,n,s){e.removeEventListener(t,n,s)}const Va=Symbol("_vei");function Yf(e,t,n,s,r=null){const o=e[Va]||(e[Va]={}),a=o[t];if(s&&a)a.value=s;else{const[l,i]=Xf(t);if(s){const u=o[t]=ep(s,r);zf(e,l,u,i)}else a&&(Jf(e,l,a,i),o[t]=void 0)}}const Ka=/(?:Once|Passive|Capture)$/;function Xf(e){let t;if(Ka.test(e)){t={};let s;for(;s=e.match(Ka);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Sn(e.slice(2)),t]}let Jr=0;const Qf=Promise.resolve(),Zf=()=>Jr||(Qf.then(()=>Jr=0),Jr=Date.now());function ep(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;$t(tp(s,n.value),t,5,[s])};return n.value=e,n.attached=Zf(),n}function tp(e,t){if(he(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 ja=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,np=(e,t,n,s,r,o)=>{const a=r==="svg";t==="class"?Hf(e,s,a):t==="style"?Gf(e,n,s):yr(t)?Lo(t)||Yf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sp(e,t,s,a))?(Ua(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Da(e,t,s,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ye(s))?Ua(e,ln(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Da(e,t,s,a))};function sp(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ja(t)&&xe(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 ja(t)&&Ye(n)?!1:t in e}const rp=["ctrl","shift","alt","meta"],op={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)=>rp.some(n=>e[`${n}Key`]&&!t.includes(n))},Gs=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let a=0;a<t.length;a++){const l=op[t[a]];if(l&&l(r,t))return}return e(r,...o)}))},ap=tt({patchProp:np},Af);let Ha;function lp(){return Ha||(Ha=bf(ap))}const ip=((...e)=>{const t=lp().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=cp(s);if(!r)return;const o=t._component;!xe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=n(r,!1,up(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t});function up(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cp(e){return Ye(e)?document.querySelector(e):e}function dp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const gr=typeof window<"u",cn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),fp=(e,t,n)=>pp({l:e,k:t,s:n}),pp=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Xe=e=>typeof e=="number"&&isFinite(e),gp=e=>Jo(e)==="[object Date]",jn=e=>Jo(e)==="[object RegExp]",Pr=e=>Re(e)&&Object.keys(e).length===0,et=Object.assign,mp=Object.create,Ve=(e=null)=>mp(e);let Wa;const Tn=()=>Wa||(Wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ve());function Ba(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Ga(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function hp(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${Ga(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${Ga(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript&#58;")}),e}const bp=Object.prototype.hasOwnProperty;function St(e,t){return bp.call(e,t)}const ze=Array.isArray,Be=e=>typeof e=="function",re=e=>typeof e=="string",Le=e=>typeof e=="boolean",Ie=e=>e!==null&&typeof e=="object",yp=e=>Ie(e)&&Be(e.then)&&Be(e.catch),nu=Object.prototype.toString,Jo=e=>nu.call(e),Re=e=>Jo(e)==="[object Object]",vp=e=>e==null?"":ze(e)||Re(e)&&e.toString===nu?JSON.stringify(e,null,2):String(e);function Yo(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const qs=e=>!Ie(e)||ze(e);function sr(e,t){if(qs(e)||qs(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__"&&(Ie(s[o])&&!Ie(r[o])&&(r[o]=Array.isArray(s[o])?[]:Ve()),qs(r[o])||qs(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function xp(e,t,n){return{line:e,column:t,offset:n}}function go(e,t,n){return{start:e,end:t}}const Ae={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},_p=17;function $r(e,t,n={}){const{domain:s,messages:r,args:o}=n,a=e,l=new SyntaxError(String(a));return l.code=e,t&&(l.location=t),l.domain=s,l}function wp(e){throw e}const Lt=" ",Tp="\r",st=`
3
- `,kp="\u2028",Cp="\u2029";function Sp(e){const t=e;let n=0,s=1,r=1,o=0;const a=L=>t[L]===Tp&&t[L+1]===st,l=L=>t[L]===st,i=L=>t[L]===Cp,u=L=>t[L]===kp,c=L=>a(L)||l(L)||i(L)||u(L),f=()=>n,h=()=>s,p=()=>r,b=()=>o,x=L=>a(L)||i(L)||u(L)?st:t[L],F=()=>x(n),w=()=>x(n+o);function M(){return o=0,c(n)&&(s++,r=0),a(n)&&n++,n++,r++,t[n]}function k(){return a(n+o)&&o++,o++,t[n+o]}function m(){n=0,s=1,r=1,o=0}function R(L=0){o=L}function C(){const L=n+o;for(;L!==n;)M();o=0}return{index:f,line:h,column:p,peekOffset:b,charAt:x,currentChar:F,currentPeek:w,next:M,peek:k,reset:m,resetPeek:R,skipToPeek:C}}const Kt=void 0,Ep=".",qa="'",Rp="tokenizer";function Pp(e,t={}){const n=t.location!==!1,s=Sp(e),r=()=>s.index(),o=()=>xp(s.line(),s.column(),s.index()),a=o(),l=r(),i={currentType:13,offset:l,startLoc:a,endLoc:a,lastType:13,lastOffset:l,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},u=()=>i,{onError:c}=t;function f(g,d,T,...P){const Z=u();if(d.column+=T,d.offset+=T,c){const j=n?go(Z.startLoc,d):null,S=$r(g,j,{domain:Rp,args:P});c(S)}}function h(g,d,T){g.endLoc=o(),g.currentType=d;const P={type:d};return n&&(P.loc=go(g.startLoc,g.endLoc)),T!=null&&(P.value=T),P}const p=g=>h(g,13);function b(g,d){return g.currentChar()===d?(g.next(),d):(f(Ae.EXPECTED_TOKEN,o(),0,d),"")}function x(g){let d="";for(;g.currentPeek()===Lt||g.currentPeek()===st;)d+=g.currentPeek(),g.peek();return d}function F(g){const d=x(g);return g.skipToPeek(),d}function w(g){if(g===Kt)return!1;const d=g.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d===95}function M(g){if(g===Kt)return!1;const d=g.charCodeAt(0);return d>=48&&d<=57}function k(g,d){const{currentType:T}=d;if(T!==2)return!1;x(g);const P=w(g.currentPeek());return g.resetPeek(),P}function m(g,d){const{currentType:T}=d;if(T!==2)return!1;x(g);const P=g.currentPeek()==="-"?g.peek():g.currentPeek(),Z=M(P);return g.resetPeek(),Z}function R(g,d){const{currentType:T}=d;if(T!==2)return!1;x(g);const P=g.currentPeek()===qa;return g.resetPeek(),P}function C(g,d){const{currentType:T}=d;if(T!==7)return!1;x(g);const P=g.currentPeek()===".";return g.resetPeek(),P}function L(g,d){const{currentType:T}=d;if(T!==8)return!1;x(g);const P=w(g.currentPeek());return g.resetPeek(),P}function H(g,d){const{currentType:T}=d;if(!(T===7||T===11))return!1;x(g);const P=g.currentPeek()===":";return g.resetPeek(),P}function z(g,d){const{currentType:T}=d;if(T!==9)return!1;const P=()=>{const j=g.currentPeek();return j==="{"?w(g.peek()):j==="@"||j==="|"||j===":"||j==="."||j===Lt||!j?!1:j===st?(g.peek(),P()):ae(g,!1)},Z=P();return g.resetPeek(),Z}function ne(g){x(g);const d=g.currentPeek()==="|";return g.resetPeek(),d}function ae(g,d=!0){const T=(Z=!1,j="")=>{const S=g.currentPeek();return S==="{"||S==="@"||!S?Z:S==="|"?!(j===Lt||j===st):S===Lt?(g.peek(),T(!0,Lt)):S===st?(g.peek(),T(!0,st)):!0},P=T();return d&&g.resetPeek(),P}function G(g,d){const T=g.currentChar();return T===Kt?Kt:d(T)?(g.next(),T):null}function me(g){const d=g.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===95||d===36}function se(g){return G(g,me)}function X(g){const d=g.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===95||d===36||d===45}function B(g){return G(g,X)}function W(g){const d=g.charCodeAt(0);return d>=48&&d<=57}function q(g){return G(g,W)}function ge(g){const d=g.charCodeAt(0);return d>=48&&d<=57||d>=65&&d<=70||d>=97&&d<=102}function $e(g){return G(g,ge)}function we(g){let d="",T="";for(;d=q(g);)T+=d;return T}function be(g){let d="";for(;;){const T=g.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===Lt||T===st)if(ae(g))d+=T,g.next();else{if(ne(g))break;d+=T,g.next()}else d+=T,g.next()}return d}function ve(g){F(g);let d="",T="";for(;d=B(g);)T+=d;const P=g.currentChar();if(P&&P!=="}"&&P!==Kt&&P!==Lt&&P!==st&&P!==" "){const Z=J(g);return f(Ae.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T+Z),T+Z}return g.currentChar()===Kt&&f(Ae.UNTERMINATED_CLOSING_BRACE,o(),0),T}function ke(g){F(g);let d="";return g.currentChar()==="-"?(g.next(),d+=`-${we(g)}`):d+=we(g),g.currentChar()===Kt&&f(Ae.UNTERMINATED_CLOSING_BRACE,o(),0),d}function Ne(g){return g!==qa&&g!==st}function De(g){F(g),b(g,"'");let d="",T="";for(;d=G(g,Ne);)d==="\\"?T+=Ce(g):T+=d;const P=g.currentChar();return P===st||P===Kt?(f(Ae.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),P===st&&(g.next(),b(g,"'")),T):(b(g,"'"),T)}function Ce(g){const d=g.currentChar();switch(d){case"\\":case"'":return g.next(),`\\${d}`;case"u":return Ke(g,d,4);case"U":return Ke(g,d,6);default:return f(Ae.UNKNOWN_ESCAPE_SEQUENCE,o(),0,d),""}}function Ke(g,d,T){b(g,d);let P="";for(let Z=0;Z<T;Z++){const j=$e(g);if(!j){f(Ae.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${d}${P}${g.currentChar()}`);break}P+=j}return`\\${d}${P}`}function ue(g){return g!=="{"&&g!=="}"&&g!==Lt&&g!==st}function J(g){F(g);let d="",T="";for(;d=G(g,ue);)T+=d;return T}function Y(g){let d="",T="";for(;d=se(g);)T+=d;return T}function v(g){const d=T=>{const P=g.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===Lt?T:(T+=P,g.next(),d(T))};return d("")}function E(g){F(g);const d=b(g,"|");return F(g),d}function O(g,d){let T=null;switch(g.currentChar()){case"{":return d.braceNest>=1&&f(Ae.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),g.next(),T=h(d,2,"{"),F(g),d.braceNest++,T;case"}":return d.braceNest>0&&d.currentType===2&&f(Ae.EMPTY_PLACEHOLDER,o(),0),g.next(),T=h(d,3,"}"),d.braceNest--,d.braceNest>0&&F(g),d.inLinked&&d.braceNest===0&&(d.inLinked=!1),T;case"@":return d.braceNest>0&&f(Ae.UNTERMINATED_CLOSING_BRACE,o(),0),T=D(g,d)||p(d),d.braceNest=0,T;default:{let Z=!0,j=!0,S=!0;if(ne(g))return d.braceNest>0&&f(Ae.UNTERMINATED_CLOSING_BRACE,o(),0),T=h(d,1,E(g)),d.braceNest=0,d.inLinked=!1,T;if(d.braceNest>0&&(d.currentType===4||d.currentType===5||d.currentType===6))return f(Ae.UNTERMINATED_CLOSING_BRACE,o(),0),d.braceNest=0,U(g,d);if(Z=k(g,d))return T=h(d,4,ve(g)),F(g),T;if(j=m(g,d))return T=h(d,5,ke(g)),F(g),T;if(S=R(g,d))return T=h(d,6,De(g)),F(g),T;if(!Z&&!j&&!S)return T=h(d,12,J(g)),f(Ae.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,T.value),F(g),T;break}}return T}function D(g,d){const{currentType:T}=d;let P=null;const Z=g.currentChar();switch((T===7||T===8||T===11||T===9)&&(Z===st||Z===Lt)&&f(Ae.INVALID_LINKED_FORMAT,o(),0),Z){case"@":return g.next(),P=h(d,7,"@"),d.inLinked=!0,P;case".":return F(g),g.next(),h(d,8,".");case":":return F(g),g.next(),h(d,9,":");default:return ne(g)?(P=h(d,1,E(g)),d.braceNest=0,d.inLinked=!1,P):C(g,d)||H(g,d)?(F(g),D(g,d)):L(g,d)?(F(g),h(d,11,Y(g))):z(g,d)?(F(g),Z==="{"?O(g,d)||P:h(d,10,v(g))):(T===7&&f(Ae.INVALID_LINKED_FORMAT,o(),0),d.braceNest=0,d.inLinked=!1,U(g,d))}}function U(g,d){let T={type:13};if(d.braceNest>0)return O(g,d)||p(d);if(d.inLinked)return D(g,d)||p(d);switch(g.currentChar()){case"{":return O(g,d)||p(d);case"}":return f(Ae.UNBALANCED_CLOSING_BRACE,o(),0),g.next(),h(d,3,"}");case"@":return D(g,d)||p(d);default:{if(ne(g))return T=h(d,1,E(g)),d.braceNest=0,d.inLinked=!1,T;if(ae(g))return h(d,0,be(g));break}}return T}function K(){const{currentType:g,offset:d,startLoc:T,endLoc:P}=i;return i.lastType=g,i.lastOffset=d,i.lastStartLoc=T,i.lastEndLoc=P,i.offset=r(),i.startLoc=o(),s.currentChar()===Kt?h(i,13):U(s,i)}return{nextToken:K,currentOffset:r,currentPosition:o,context:u}}const $p="parser",Mp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Lp(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 Ip(e={}){const t=e.location!==!1,{onError:n}=e;function s(w,M,k,m,...R){const C=w.currentPosition();if(C.offset+=m,C.column+=m,n){const L=t?go(k,C):null,H=$r(M,L,{domain:$p,args:R});n(H)}}function r(w,M,k){const m={type:w};return t&&(m.start=M,m.end=M,m.loc={start:k,end:k}),m}function o(w,M,k,m){t&&(w.end=M,w.loc&&(w.loc.end=k))}function a(w,M){const k=w.context(),m=r(3,k.offset,k.startLoc);return m.value=M,o(m,w.currentOffset(),w.currentPosition()),m}function l(w,M){const k=w.context(),{lastOffset:m,lastStartLoc:R}=k,C=r(5,m,R);return C.index=parseInt(M,10),w.nextToken(),o(C,w.currentOffset(),w.currentPosition()),C}function i(w,M){const k=w.context(),{lastOffset:m,lastStartLoc:R}=k,C=r(4,m,R);return C.key=M,w.nextToken(),o(C,w.currentOffset(),w.currentPosition()),C}function u(w,M){const k=w.context(),{lastOffset:m,lastStartLoc:R}=k,C=r(9,m,R);return C.value=M.replace(Mp,Lp),w.nextToken(),o(C,w.currentOffset(),w.currentPosition()),C}function c(w){const M=w.nextToken(),k=w.context(),{lastOffset:m,lastStartLoc:R}=k,C=r(8,m,R);return M.type!==11?(s(w,Ae.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),C.value="",o(C,m,R),{nextConsumeToken:M,node:C}):(M.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,It(M)),C.value=M.value||"",o(C,w.currentOffset(),w.currentPosition()),{node:C})}function f(w,M){const k=w.context(),m=r(7,k.offset,k.startLoc);return m.value=M,o(m,w.currentOffset(),w.currentPosition()),m}function h(w){const M=w.context(),k=r(6,M.offset,M.startLoc);let m=w.nextToken();if(m.type===8){const R=c(w);k.modifier=R.node,m=R.nextConsumeToken||w.nextToken()}switch(m.type!==9&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(m)),m=w.nextToken(),m.type===2&&(m=w.nextToken()),m.type){case 10:m.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(m)),k.key=f(w,m.value||"");break;case 4:m.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(m)),k.key=i(w,m.value||"");break;case 5:m.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(m)),k.key=l(w,m.value||"");break;case 6:m.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(m)),k.key=u(w,m.value||"");break;default:{s(w,Ae.UNEXPECTED_EMPTY_LINKED_KEY,M.lastStartLoc,0);const R=w.context(),C=r(7,R.offset,R.startLoc);return C.value="",o(C,R.offset,R.startLoc),k.key=C,o(k,R.offset,R.startLoc),{nextConsumeToken:m,node:k}}}return o(k,w.currentOffset(),w.currentPosition()),{node:k}}function p(w){const M=w.context(),k=M.currentType===1?w.currentOffset():M.offset,m=M.currentType===1?M.endLoc:M.startLoc,R=r(2,k,m);R.items=[];let C=null;do{const z=C||w.nextToken();switch(C=null,z.type){case 0:z.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(z)),R.items.push(a(w,z.value||""));break;case 5:z.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(z)),R.items.push(l(w,z.value||""));break;case 4:z.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(z)),R.items.push(i(w,z.value||""));break;case 6:z.value==null&&s(w,Ae.UNEXPECTED_LEXICAL_ANALYSIS,M.lastStartLoc,0,It(z)),R.items.push(u(w,z.value||""));break;case 7:{const ne=h(w);R.items.push(ne.node),C=ne.nextConsumeToken||null;break}}}while(M.currentType!==13&&M.currentType!==1);const L=M.currentType===1?M.lastOffset:w.currentOffset(),H=M.currentType===1?M.lastEndLoc:w.currentPosition();return o(R,L,H),R}function b(w,M,k,m){const R=w.context();let C=m.items.length===0;const L=r(1,M,k);L.cases=[],L.cases.push(m);do{const H=p(w);C||(C=H.items.length===0),L.cases.push(H)}while(R.currentType!==13);return C&&s(w,Ae.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),o(L,w.currentOffset(),w.currentPosition()),L}function x(w){const M=w.context(),{offset:k,startLoc:m}=M,R=p(w);return M.currentType===13?R:b(w,k,m,R)}function F(w){const M=Pp(w,et({},e)),k=M.context(),m=r(0,k.offset,k.startLoc);return t&&m.loc&&(m.loc.source=w),m.body=x(M),e.onCacheKey&&(m.cacheKey=e.onCacheKey(w)),k.currentType!==13&&s(M,Ae.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,w[k.offset]||""),o(m,M.currentOffset(),M.currentPosition()),m}return{parse:F}}function It(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 Np(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function za(e,t){for(let n=0;n<e.length;n++)Xo(e[n],t)}function Xo(e,t){switch(e.type){case 1:za(e.cases,t),t.helper("plural");break;case 2:za(e.items,t);break;case 6:{Xo(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 Ap(e,t={}){const n=Np(e);n.helper("normalize"),e.body&&Xo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Fp(e){const t=e.body;return t.type===2?Ja(t):t.cases.forEach(n=>Ja(n)),e}function Ja(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=Yo(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 Nn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Nn(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++)Nn(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++)Nn(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;Nn(t.key),t.k=t.key,delete t.key,t.modifier&&(Nn(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 Op(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function i(x,F){a.code+=x}function u(x,F=!0){const w=F?s:"";i(r?w+" ".repeat(x):w)}function c(x=!0){const F=++a.indentLevel;x&&u(F)}function f(x=!0){const F=--a.indentLevel;x&&u(F)}function h(){u(a.indentLevel)}return{context:l,push:i,indent:c,deindent:f,newline:h,helper:x=>`_${x}`,needIndent:()=>a.needIndent}}function Dp(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Hn(e,t.key),t.modifier?(e.push(", "),Hn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Up(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&&(Hn(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function Vp(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&&(Hn(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function Kp(e,t){t.body?Hn(e,t.body):e.push("null")}function Hn(e,t){const{helper:n}=e;switch(t.type){case 0:Kp(e,t);break;case 1:Vp(e,t);break;case 2:Up(e,t);break;case 6:Dp(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 jp=(e,t={})=>{const n=re(t.mode)?t.mode:"normal",s=re(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
- `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Op(e,{filename:s,breakLineCode:r,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Yo(a.map(c=>`${c}: _${c}`),", ")} } = ctx`),l.newline()),l.push("return "),Hn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:i,map:u}=l.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function Hp(e,t={}){const n=et({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,l=Ip(n).parse(e);return s?(o&&Fp(l),r&&Nn(l),{ast:l,code:""}):(Ap(l,n),jp(l,n))}function Wp(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Tn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Tn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Dt(e){return Ie(e)&&Qo(e)===0&&(St(e,"b")||St(e,"body"))}const su=["b","body"];function Bp(e){return dn(e,su)}const ru=["c","cases"];function Gp(e){return dn(e,ru,[])}const ou=["s","static"];function qp(e){return dn(e,ou)}const au=["i","items"];function zp(e){return dn(e,au,[])}const lu=["t","type"];function Qo(e){return dn(e,lu)}const iu=["v","value"];function zs(e,t){const n=dn(e,iu);if(n!=null)return n;throw vs(t)}const uu=["m","modifier"];function Jp(e){return dn(e,uu)}const cu=["k","key"];function Yp(e){const t=dn(e,cu);if(t)return t;throw vs(6)}function dn(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(St(e,r)&&e[r]!=null)return e[r]}return n}const du=[...su,...ru,...ou,...au,...cu,...uu,...iu,...lu];function vs(e){return new Error(`unhandled node type: ${e}`)}function Yr(e){return n=>Xp(n,e)}function Xp(e,t){const n=Bp(t);if(n==null)throw vs(0);if(Qo(n)===1){const o=Gp(n);return e.plural(o.reduce((a,l)=>[...a,Ya(e,l)],[]))}else return Ya(e,n)}function Ya(e,t){const n=qp(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=zp(t).reduce((r,o)=>[...r,mo(e,o)],[]);return e.normalize(s)}}function mo(e,t){const n=Qo(t);switch(n){case 3:return zs(t,n);case 9:return zs(t,n);case 4:{const s=t;if(St(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(St(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw vs(n)}case 5:{const s=t;if(St(s,"i")&&Xe(s.i))return e.interpolate(e.list(s.i));if(St(s,"index")&&Xe(s.index))return e.interpolate(e.list(s.index));throw vs(n)}case 6:{const s=t,r=Jp(s),o=Yp(s);return e.linked(mo(e,o),r?mo(e,r):void 0,e.type)}case 7:return zs(t,n);case 8:return zs(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Qp=e=>e;let Js=Ve();function Zp(e,t={}){let n=!1;const s=t.onError||wp;return t.onError=r=>{n=!0,s(r)},{...Hp(e,t),detectError:n}}function eg(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&re(e)){Le(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||Qp)(e),r=Js[s];if(r)return r;const{ast:o,detectError:a}=Zp(e,{...t,location:!1,jit:!0}),l=Yr(o);return a?l:Js[s]=l}else{const n=e.cacheKey;if(n){const s=Js[n];return s||(Js[n]=Yr(e))}else return Yr(e)}}let xs=null;function tg(e){xs=e}function ng(e,t,n){xs&&xs.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const sg=rg("function:translate");function rg(e){return t=>xs&&xs.emit(e,t)}const zt={INVALID_ARGUMENT:_p,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},og=24;function Jt(e){return $r(e,null,void 0)}function Zo(e,t){return t.locale!=null?Xa(t.locale):Xa(e.locale)}let Xr;function Xa(e){if(re(e))return e;if(Be(e)){if(e.resolvedOnce&&Xr!=null)return Xr;if(e.constructor.name==="Function"){const t=e();if(yp(t))throw Jt(zt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Xr=t}else throw Jt(zt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Jt(zt.NOT_SUPPORT_LOCALE_TYPE)}function ag(e,t,n){return[...new Set([n,...ze(t)?t:Ie(t)?Object.keys(t):re(t)?[t]:[n]])]}function fu(e,t,n){const s=re(n)?n:_s,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let a=[n];for(;ze(a);)a=Qa(o,a,t);const l=ze(t)||!Re(t)?t:t.default?t.default:null;a=re(l)?[l]:l,ze(a)&&Qa(o,a,!1),r.__localeChainCache.set(s,o)}return o}function Qa(e,t,n){let s=!0;for(let r=0;r<t.length&&Le(s);r++){const o=t[r];re(o)&&(s=lg(e,t[r],n))}return s}function lg(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=ig(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function ig(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),(ze(n)||Re(n))&&n[r]&&(s=n[r])}return s}const fn=[];fn[0]={w:[0],i:[3,0],"[":[4],o:[7]};fn[1]={w:[1],".":[2],"[":[4],o:[7]};fn[2]={w:[2],i:[3,0],0:[3,0]};fn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};fn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};fn[5]={"'":[4,0],o:8,l:[5,0]};fn[6]={'"':[4,0],o:8,l:[6,0]};const ug=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function cg(e){return ug.test(e)}function dg(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 fg(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 pg(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:cg(t)?dg(t):"*"+t}function gg(e){const t=[];let n=-1,s=0,r=0,o,a,l,i,u,c,f;const h=[];h[0]=()=>{a===void 0?a=l:a+=l},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,s=4,h[0]();else{if(r=0,a===void 0||(a=pg(a),a===!1))return!1;h[1]()}};function p(){const b=e[n+1];if(s===5&&b==="'"||s===6&&b==='"')return n++,l="\\"+b,h[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(i=fg(o),f=fn[s],u=f[i]||f.l||8,u===8||(s=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(l=o,c()===!1))))return;if(s===7)return t}}const Za=new Map;function mg(e,t){return Ie(e)?e[t]:null}function hg(e,t){if(!Ie(e))return null;let n=Za.get(t);if(n||(n=gg(t),n&&Za.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const a=n[o];if(du.includes(a)&&Dt(r))return null;const l=r[a];if(l===void 0||Be(r))return null;r=l,o++}return r}const bg="11.2.8",Mr=-1,_s="en-US",el="",tl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function yg(){return{upper:(e,t)=>t==="text"&&re(e)?e.toUpperCase():t==="vnode"&&Ie(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&re(e)?e.toLowerCase():t==="vnode"&&Ie(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&re(e)?tl(e):t==="vnode"&&Ie(e)&&"__v_isVNode"in e?tl(e.children):e}}let pu;function vg(e){pu=e}let gu;function xg(e){gu=e}let mu;function _g(e){mu=e}let hu=null;const wg=e=>{hu=e},Tg=()=>hu;let bu=null;const nl=e=>{bu=e},kg=()=>bu;let sl=0;function Cg(e={}){const t=Be(e.onWarn)?e.onWarn:dp,n=re(e.version)?e.version:bg,s=re(e.locale)||Be(e.locale)?e.locale:_s,r=Be(s)?_s:s,o=ze(e.fallbackLocale)||Re(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=Re(e.messages)?e.messages:Qr(r),l=Re(e.datetimeFormats)?e.datetimeFormats:Qr(r),i=Re(e.numberFormats)?e.numberFormats:Qr(r),u=et(Ve(),e.modifiers,yg()),c=e.pluralRules||Ve(),f=Be(e.missing)?e.missing:null,h=Le(e.missingWarn)||jn(e.missingWarn)?e.missingWarn:!0,p=Le(e.fallbackWarn)||jn(e.fallbackWarn)?e.fallbackWarn:!0,b=!!e.fallbackFormat,x=!!e.unresolving,F=Be(e.postTranslation)?e.postTranslation:null,w=Re(e.processor)?e.processor:null,M=Le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter,m=Be(e.messageCompiler)?e.messageCompiler:pu,R=Be(e.messageResolver)?e.messageResolver:gu||mg,C=Be(e.localeFallbacker)?e.localeFallbacker:mu||ag,L=Ie(e.fallbackContext)?e.fallbackContext:void 0,H=e,z=Ie(H.__datetimeFormatters)?H.__datetimeFormatters:new Map,ne=Ie(H.__numberFormatters)?H.__numberFormatters:new Map,ae=Ie(H.__meta)?H.__meta:{};sl++;const G={version:n,cid:sl,locale:s,fallbackLocale:o,messages:a,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:b,unresolving:x,postTranslation:F,processor:w,warnHtmlMessage:M,escapeParameter:k,messageCompiler:m,messageResolver:R,localeFallbacker:C,fallbackContext:L,onWarn:t,__meta:ae};return G.datetimeFormats=l,G.numberFormats=i,G.__datetimeFormatters=z,G.__numberFormatters=ne,__INTLIFY_PROD_DEVTOOLS__&&ng(G,n,ae),G}const Qr=e=>({[e]:Ve()});function ea(e,t,n,s,r){const{missing:o,onWarn:a}=e;if(o!==null){const l=o(e,n,t,r);return re(l)?l:t}else return t}function Xn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Sg(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Eg(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Sg(e,t[s]))return!0;return!1}function rl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:l}=e,[i,u,c,f]=ho(...t),h=Le(c.missingWarn)?c.missingWarn:e.missingWarn;Le(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,b=Zo(e,c),x=a(e,r,b);if(!re(i)||i==="")return new Intl.DateTimeFormat(b,f).format(u);let F={},w,M=null;const k="datetime format";for(let C=0;C<x.length&&(w=x[C],F=n[w]||{},M=F[i],!Re(M));C++)ea(e,i,w,h,k);if(!Re(M)||!re(w))return s?Mr:i;let m=`${w}__${i}`;Pr(f)||(m=`${m}__${JSON.stringify(f)}`);let R=l.get(m);return R||(R=new Intl.DateTimeFormat(w,et({},M,f)),l.set(m,R)),p?R.formatToParts(u):R.format(u)}const yu=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ho(...e){const[t,n,s,r]=e,o=Ve();let a=Ve(),l;if(re(t)){const i=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!i)throw Jt(zt.INVALID_ISO_DATE_ARGUMENT);const u=i[3]?i[3].trim().startsWith("T")?`${i[1].trim()}${i[3].trim()}`:`${i[1].trim()}T${i[3].trim()}`:i[1].trim();l=new Date(u);try{l.toISOString()}catch{throw Jt(zt.INVALID_ISO_DATE_ARGUMENT)}}else if(gp(t)){if(isNaN(t.getTime()))throw Jt(zt.INVALID_DATE_ARGUMENT);l=t}else if(Xe(t))l=t;else throw Jt(zt.INVALID_ARGUMENT);return re(n)?o.key=n:Re(n)&&Object.keys(n).forEach(i=>{yu.includes(i)?a[i]=n[i]:o[i]=n[i]}),re(s)?o.locale=s:Re(s)&&(a=s),Re(r)&&(a=r),[o.key||"",l,o,a]}function ol(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function al(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:l}=e,[i,u,c,f]=bo(...t),h=Le(c.missingWarn)?c.missingWarn:e.missingWarn;Le(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,b=Zo(e,c),x=a(e,r,b);if(!re(i)||i==="")return new Intl.NumberFormat(b,f).format(u);let F={},w,M=null;const k="number format";for(let C=0;C<x.length&&(w=x[C],F=n[w]||{},M=F[i],!Re(M));C++)ea(e,i,w,h,k);if(!Re(M)||!re(w))return s?Mr:i;let m=`${w}__${i}`;Pr(f)||(m=`${m}__${JSON.stringify(f)}`);let R=l.get(m);return R||(R=new Intl.NumberFormat(w,et({},M,f)),l.set(m,R)),p?R.formatToParts(u):R.format(u)}const vu=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function bo(...e){const[t,n,s,r]=e,o=Ve();let a=Ve();if(!Xe(t))throw Jt(zt.INVALID_ARGUMENT);const l=t;return re(n)?o.key=n:Re(n)&&Object.keys(n).forEach(i=>{vu.includes(i)?a[i]=n[i]:o[i]=n[i]}),re(s)?o.locale=s:Re(s)&&(a=s),Re(r)&&(a=r),[o.key||"",l,o,a]}function ll(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Rg=e=>e,Pg=e=>"",$g="text",Mg=e=>e.length===0?"":Yo(e),Lg=vp;function il(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ig(e){const t=Xe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Xe(e.named.count)||Xe(e.named.n))?Xe(e.named.count)?e.named.count:Xe(e.named.n)?e.named.n:t:t}function Ng(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Ag(e={}){const t=e.locale,n=Ig(e),s=Ie(e.pluralRules)&&re(t)&&Be(e.pluralRules[t])?e.pluralRules[t]:il,r=Ie(e.pluralRules)&&re(t)&&Be(e.pluralRules[t])?il:void 0,o=w=>w[s(n,w.length,r)],a=e.list||[],l=w=>a[w],i=e.named||Ve();Xe(e.pluralIndex)&&Ng(n,i);const u=w=>i[w];function c(w,M){const k=Be(e.messages)?e.messages(w,!!M):Ie(e.messages)?e.messages[w]:!1;return k||(e.parent?e.parent.message(w):Pg)}const f=w=>e.modifiers?e.modifiers[w]:Rg,h=Re(e.processor)&&Be(e.processor.normalize)?e.processor.normalize:Mg,p=Re(e.processor)&&Be(e.processor.interpolate)?e.processor.interpolate:Lg,b=Re(e.processor)&&re(e.processor.type)?e.processor.type:$g,F={list:l,named:u,plural:o,linked:(w,...M)=>{const[k,m]=M;let R="text",C="";M.length===1?Ie(k)?(C=k.modifier||C,R=k.type||R):re(k)&&(C=k||C):M.length===2&&(re(k)&&(C=k||C),re(m)&&(R=m||R));const L=c(w,!0)(F),H=R==="vnode"&&ze(L)&&C?L[0]:L;return C?f(C)(H,R):H},message:c,type:b,interpolate:p,normalize:h,values:et(Ve(),a,i)};return F}const ul=()=>"",Ct=e=>Be(e);function cl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:a,messages:l}=e,[i,u]=yo(...t),c=Le(u.missingWarn)?u.missingWarn:e.missingWarn,f=Le(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=Le(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,b=re(u.default)||Le(u.default)?Le(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:null,x=n||b!=null&&(re(b)||Be(b)),F=Zo(e,u);h&&Fg(u);let[w,M,k]=p?[i,F,l[F]||Ve()]:xu(e,i,F,a,f,c),m=w,R=i;if(!p&&!(re(m)||Dt(m)||Ct(m))&&x&&(m=b,R=m),!p&&(!(re(m)||Dt(m)||Ct(m))||!re(M)))return r?Mr:i;let C=!1;const L=()=>{C=!0},H=Ct(m)?m:_u(e,i,M,m,R,L);if(C)return m;const z=Ug(e,M,k,u),ne=Ag(z),ae=Og(e,H,ne);let G=s?s(ae,i):ae;if(h&&re(G)&&(G=hp(G)),__INTLIFY_PROD_DEVTOOLS__){const me={timestamp:Date.now(),key:re(i)?i:Ct(m)?m.key:"",locale:M||(Ct(m)?m.locale:""),format:re(m)?m:Ct(m)?m.source:"",message:G};me.meta=et({},e.__meta,Tg()||{}),sg(me)}return G}function Fg(e){ze(e.list)?e.list=e.list.map(t=>re(t)?Ba(t):t):Ie(e.named)&&Object.keys(e.named).forEach(t=>{re(e.named[t])&&(e.named[t]=Ba(e.named[t]))})}function xu(e,t,n,s,r,o){const{messages:a,onWarn:l,messageResolver:i,localeFallbacker:u}=e,c=u(e,s,n);let f=Ve(),h,p=null;const b="translate";for(let x=0;x<c.length&&(h=c[x],f=a[h]||Ve(),(p=i(f,t))===null&&(p=f[t]),!(re(p)||Dt(p)||Ct(p)));x++)if(!Eg(h,c)){const F=ea(e,t,h,o,b);F!==t&&(p=F)}return[p,h,f]}function _u(e,t,n,s,r,o){const{messageCompiler:a,warnHtmlMessage:l}=e;if(Ct(s)){const u=s;return u.locale=u.locale||n,u.key=u.key||t,u}if(a==null){const u=(()=>s);return u.locale=n,u.key=t,u}const i=a(s,Dg(e,n,r,s,l,o));return i.locale=n,i.key=t,i.source=s,i}function Og(e,t,n){return t(n)}function yo(...e){const[t,n,s]=e,r=Ve();if(!re(t)&&!Xe(t)&&!Ct(t)&&!Dt(t))throw Jt(zt.INVALID_ARGUMENT);const o=Xe(t)?String(t):(Ct(t),t);return Xe(n)?r.plural=n:re(n)?r.default=n:Re(n)&&!Pr(n)?r.named=n:ze(n)&&(r.list=n),Xe(s)?r.plural=s:re(s)?r.default=s:Re(s)&&et(r,s),[o,r]}function Dg(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{throw o&&o(a),a},onCacheKey:a=>fp(t,n,a)}}function Ug(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:a,fallbackLocale:l,fallbackWarn:i,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:r,pluralRules:o,messages:(p,b)=>{let x=a(n,p);if(x==null&&(c||b)){const[,,F]=xu(c||e,p,t,l,i,u);x=a(F,p)}if(re(x)||Dt(x)){let F=!1;const M=_u(e,p,t,x,p,()=>{F=!0});return F?ul:M}else return Ct(x)?x:ul}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),Xe(s.plural)&&(h.pluralIndex=s.plural),h}Wp();const Vg="11.2.8";function Kg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Tn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Tn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Tn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Tn().__INTLIFY_PROD_DEVTOOLS__=!1)}const bt={UNEXPECTED_RETURN_TYPE:og,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 wt(e,...t){return $r(e,null,void 0)}const vo=cn("__translateVNode"),xo=cn("__datetimeParts"),_o=cn("__numberParts"),wu=cn("__setPluralRules"),Tu=cn("__injectWithOption"),wo=cn("__dispose");function ws(e){if(!Ie(e)||Dt(e))return e;for(const t in e)if(St(e,t))if(!t.includes("."))Ie(e[t])&&ws(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let a=0;a<s;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in r||(r[n[a]]=Ve()),!Ie(r[n[a]])){o=!0;break}r=r[n[a]]}if(o||(Dt(r)?du.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!Dt(r)){const a=r[n[s]];Ie(a)&&ws(a)}}return e}function ta(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,a=Re(n)?n:ze(s)?Ve():{[e]:Ve()};if(ze(s)&&s.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:i,resource:u}=l;i?(a[i]=a[i]||Ve(),sr(u,a[i])):sr(u,a)}else re(l)&&sr(JSON.parse(l),a)}),r==null&&o)for(const l in a)St(a,l)&&ws(a[l]);return a}function ku(e){return e.type}function Cu(e,t,n){let s=Ie(t.messages)?t.messages:Ve();"__i18nGlobal"in n&&(s=ta(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Ie(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Ie(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function dl(e){return Q($s,null,e,0)}function Ts(){return Ms()}const fl="__INTLIFY_META__",pl=()=>[],jg=()=>!1;let gl=0;function ml(e){return((t,n,s,r)=>e(n,s,Ts()||void 0,r))}const Hg=()=>{const e=Ts();let t=null;return e&&(t=ku(e)[fl])?{[fl]:t}:null};function na(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=gr?ee:gd;let a=Le(e.inheritLocale)?e.inheritLocale:!0;const l=o(t&&a?t.locale.value:re(e.locale)?e.locale:_s),i=o(t&&a?t.fallbackLocale.value:re(e.fallbackLocale)||ze(e.fallbackLocale)||Re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),u=o(ta(l.value,e)),c=o(Re(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),f=o(Re(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=t?t.missingWarn:Le(e.missingWarn)||jn(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:Le(e.fallbackWarn)||jn(e.fallbackWarn)?e.fallbackWarn:!0,b=t?t.fallbackRoot:Le(e.fallbackRoot)?e.fallbackRoot:!0,x=!!e.fallbackFormat,F=Be(e.missing)?e.missing:null,w=Be(e.missing)?ml(e.missing):null,M=Be(e.postTranslation)?e.postTranslation:null,k=t?t.warnHtmlMessage:Le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter;const R=t?t.modifiers:Re(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,L;L=(()=>{s&&nl(null);const S={version:Vg,locale:l.value,fallbackLocale:i.value,messages:u.value,modifiers:R,pluralRules:C,missing:w===null?void 0:w,missingWarn:h,fallbackWarn:p,fallbackFormat:x,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:k,escapeParameter:m,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=Re(L)?L.__datetimeFormatters:void 0,S.__numberFormatters=Re(L)?L.__numberFormatters:void 0;const A=Cg(S);return s&&nl(A),A})(),Xn(L,l.value,i.value);function z(){return[l.value,i.value,u.value,c.value,f.value]}const ne=V({get:()=>l.value,set:S=>{L.locale=S,l.value=S}}),ae=V({get:()=>i.value,set:S=>{L.fallbackLocale=S,i.value=S,Xn(L,l.value,S)}}),G=V(()=>u.value),me=V(()=>c.value),se=V(()=>f.value);function X(){return Be(M)?M:null}function B(S){M=S,L.postTranslation=S}function W(){return F}function q(S){S!==null&&(w=ml(S)),F=S,L.missing=w}const ge=(S,A,te,oe,de,Je)=>{z();let qe;try{__INTLIFY_PROD_DEVTOOLS__,s||(L.fallbackContext=t?kg():void 0),qe=S(L)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(L.fallbackContext=void 0)}if(te!=="translate exists"&&Xe(qe)&&qe===Mr||te==="translate exists"&&!qe){const[ft,yt]=A();return t&&b?oe(t):de(ft)}else{if(Je(qe))return qe;throw wt(bt.UNEXPECTED_RETURN_TYPE)}};function $e(...S){return ge(A=>Reflect.apply(cl,null,[A,...S]),()=>yo(...S),"translate",A=>Reflect.apply(A.t,A,[...S]),A=>A,A=>re(A))}function we(...S){const[A,te,oe]=S;if(oe&&!Ie(oe))throw wt(bt.INVALID_ARGUMENT);return $e(A,te,et({resolvedMessage:!0},oe||{}))}function be(...S){return ge(A=>Reflect.apply(rl,null,[A,...S]),()=>ho(...S),"datetime format",A=>Reflect.apply(A.d,A,[...S]),()=>el,A=>re(A)||ze(A))}function ve(...S){return ge(A=>Reflect.apply(al,null,[A,...S]),()=>bo(...S),"number format",A=>Reflect.apply(A.n,A,[...S]),()=>el,A=>re(A)||ze(A))}function ke(S){return S.map(A=>re(A)||Xe(A)||Le(A)?dl(String(A)):A)}const De={normalize:ke,interpolate:S=>S,type:"vnode"};function Ce(...S){return ge(A=>{let te;const oe=A;try{oe.processor=De,te=Reflect.apply(cl,null,[oe,...S])}finally{oe.processor=null}return te},()=>yo(...S),"translate",A=>A[vo](...S),A=>[dl(A)],A=>ze(A))}function Ke(...S){return ge(A=>Reflect.apply(al,null,[A,...S]),()=>bo(...S),"number format",A=>A[_o](...S),pl,A=>re(A)||ze(A))}function ue(...S){return ge(A=>Reflect.apply(rl,null,[A,...S]),()=>ho(...S),"datetime format",A=>A[xo](...S),pl,A=>re(A)||ze(A))}function J(S){C=S,L.pluralRules=C}function Y(S,A){return ge(()=>{if(!S)return!1;const te=re(A)?A:l.value,oe=O(te),de=L.messageResolver(oe,S);return Dt(de)||Ct(de)||re(de)},()=>[S],"translate exists",te=>Reflect.apply(te.te,te,[S,A]),jg,te=>Le(te))}function v(S){let A=null;const te=fu(L,i.value,l.value);for(let oe=0;oe<te.length;oe++){const de=u.value[te[oe]]||{},Je=L.messageResolver(de,S);if(Je!=null){A=Je;break}}return A}function E(S){const A=v(S);return A??(t?t.tm(S)||{}:{})}function O(S){return u.value[S]||{}}function D(S,A){if(r){const te={[S]:A};for(const oe in te)St(te,oe)&&ws(te[oe]);A=te[S]}u.value[S]=A,L.messages=u.value}function U(S,A){u.value[S]=u.value[S]||{};const te={[S]:A};if(r)for(const oe in te)St(te,oe)&&ws(te[oe]);A=te[S],sr(A,u.value[S]),L.messages=u.value}function K(S){return c.value[S]||{}}function g(S,A){c.value[S]=A,L.datetimeFormats=c.value,ol(L,S,A)}function d(S,A){c.value[S]=et(c.value[S]||{},A),L.datetimeFormats=c.value,ol(L,S,A)}function T(S){return f.value[S]||{}}function P(S,A){f.value[S]=A,L.numberFormats=f.value,ll(L,S,A)}function Z(S,A){f.value[S]=et(f.value[S]||{},A),L.numberFormats=f.value,ll(L,S,A)}gl++,t&&gr&&(ht(t.locale,S=>{a&&(l.value=S,L.locale=S,Xn(L,l.value,i.value))}),ht(t.fallbackLocale,S=>{a&&(i.value=S,L.fallbackLocale=S,Xn(L,l.value,i.value))}));const j={id:gl,locale:ne,fallbackLocale:ae,get inheritLocale(){return a},set inheritLocale(S){a=S,S&&t&&(l.value=t.locale.value,i.value=t.fallbackLocale.value,Xn(L,l.value,i.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:G,get modifiers(){return R},get pluralRules(){return C||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn(S){h=S,L.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(S){p=S,L.fallbackWarn=p},get fallbackRoot(){return b},set fallbackRoot(S){b=S},get fallbackFormat(){return x},set fallbackFormat(S){x=S,L.fallbackFormat=x},get warnHtmlMessage(){return k},set warnHtmlMessage(S){k=S,L.warnHtmlMessage=S},get escapeParameter(){return m},set escapeParameter(S){m=S,L.escapeParameter=S},t:$e,getLocaleMessage:O,setLocaleMessage:D,mergeLocaleMessage:U,getPostTranslationHandler:X,setPostTranslationHandler:B,getMissingHandler:W,setMissingHandler:q,[wu]:J};return j.datetimeFormats=me,j.numberFormats=se,j.rt=we,j.te=Y,j.tm=E,j.d=be,j.n=ve,j.getDateTimeFormat=K,j.setDateTimeFormat=g,j.mergeDateTimeFormat=d,j.getNumberFormat=T,j.setNumberFormat=P,j.mergeNumberFormat=Z,j[Tu]=n,j[vo]=Ce,j[xo]=ue,j[_o]=Ke,j}function Wg(e){const t=re(e.locale)?e.locale:_s,n=re(e.fallbackLocale)||ze(e.fallbackLocale)||Re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Be(e.missing)?e.missing:void 0,r=Le(e.silentTranslationWarn)||jn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Le(e.silentFallbackWarn)||jn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=Le(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,i=Re(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=Be(e.postTranslation)?e.postTranslation:void 0,f=re(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,p=Le(e.sync)?e.sync:!0;let b=e.messages;if(Re(e.sharedMessages)){const R=e.sharedMessages;b=Object.keys(R).reduce((L,H)=>{const z=L[H]||(L[H]={});return et(z,R[H]),L},b||{})}const{__i18n:x,__root:F,__injectWithOption:w}=e,M=e.datetimeFormats,k=e.numberFormats,m=e.flatJson;return{locale:t,fallbackLocale:n,messages:b,flatJson:m,datetimeFormats:M,numberFormats:k,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:a,fallbackFormat:l,modifiers:i,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:p,__i18n:x,__root:F,__injectWithOption:w}}function To(e={}){const t=na(Wg(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 Le(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=Le(r)?!r:r},get silentFallbackWarn(){return Le(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=Le(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 Bg(e,t,n){return{beforeCreate(){const s=Ts();if(!s)throw wt(bt.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=hl(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=To(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=hl(e,r);else{this.$i18n=To({__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&&Cu(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Ts();if(!s)throw wt(bt.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 hl(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[wu](t.pluralizationRules||e.pluralizationRules);const n=ta(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 sa={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Gg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===ye?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},Ve())}function Su(){return ye}const qg=Ge({name:"i18n-t",props:et({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Xe(e)||!isNaN(e)}},sa),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||nt({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(f=>f[0]!=="_"),a=Ve();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=re(e.plural)?+e.plural:e.plural);const l=Gg(t,o),i=r[vo](e.keypath,l,a),u=et(Ve(),s),c=re(e.tag)||Ie(e.tag)?e.tag:Su();return zo(c,u,i)}}}),bl=qg;function zg(e){return ze(e)&&!re(e[0])}function Eu(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const a={part:!0};let l=Ve();e.locale&&(a.locale=e.locale),re(e.format)?a.key=e.format:Ie(e.format)&&(re(e.format.key)&&(a.key=e.format.key),l=Object.keys(e.format).reduce((h,p)=>n.includes(p)?et(Ve(),h,{[p]:e.format[p]}):h,Ve()));const i=s(e.value,a,l);let u=[a.key];ze(i)?u=i.map((h,p)=>{const b=r[h.type],x=b?b({[h.type]:h.value,index:p,parts:i}):[h.value];return zg(x)&&(x[0].key=`${h.type}-${p}`),x}):re(i)&&(u=[i]);const c=et(Ve(),o),f=re(e.tag)||Ie(e.tag)?e.tag:Su();return zo(f,c,u)}}const Jg=Ge({name:"i18n-n",props:et({value:{type:Number,required:!0},format:{type:[String,Object]}},sa),setup(e,t){const n=e.i18n||nt({useScope:e.scope,__useComponent:!0});return Eu(e,t,vu,(...s)=>n[_o](...s))}}),yl=Jg;function Yg(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 Xg(e){const t=a=>{const{instance:l,value:i}=a;if(!l||!l.$)throw wt(bt.UNEXPECTED_ERROR);const u=Yg(e,l.$),c=vl(i);return[Reflect.apply(u.t,u,[...xl(c)]),u]};return{created:(a,l)=>{const[i,u]=t(l);gr&&e.global===u&&(a.__i18nWatcher=ht(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),a.__composer=u,a.textContent=i},unmounted:a=>{gr&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:l})=>{if(a.__composer){const i=a.__composer,u=vl(l);a.textContent=Reflect.apply(i.t,i,[...xl(u)])}},getSSRProps:a=>{const[l]=t(a);return{textContent:l}}}}function vl(e){if(re(e))return{path:e};if(Re(e)){if(!("path"in e))throw wt(bt.REQUIRED_VALUE,"path");return e}else throw wt(bt.INVALID_VALUE)}function xl(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,a={},l=s||{};return re(n)&&(a.locale=n),Xe(r)&&(a.plural=r),Xe(o)&&(a.plural=o),[t,l,a]}function Qg(e,t,...n){const s=Re(n[0])?n[0]:{};(!Le(s.globalInstall)||s.globalInstall)&&([bl.name,"I18nT"].forEach(o=>e.component(o,bl)),[yl.name,"I18nN"].forEach(o=>e.component(o,yl)),[wl.name,"I18nD"].forEach(o=>e.component(o,wl))),e.directive("t",Xg(t))}const Zg=cn("global-vue-i18n");function em(e={}){const t=__VUE_I18N_LEGACY_API__&&Le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Le(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=tm(e,t),a=cn("");function l(f){return s.get(f)||null}function i(f,h){s.set(f,h)}function u(f){s.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,c),Re(h[0])){const x=h[0];c.__composerExtend=x.__composerExtend,c.__vueI18nExtend=x.__vueI18nExtend}let p=null;!t&&n&&(p=um(f,c.global)),__VUE_I18N_FULL_INSTALL__&&Qg(f,c,...h),__VUE_I18N_LEGACY_API__&&t&&f.mixin(Bg(o,o.__composer,c));const b=f.unmount;f.unmount=()=>{p&&p(),c.dispose(),b()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:l,__setInstance:i,__deleteInstance:u};return c}function nt(e={}){const t=Ts();if(t==null)throw wt(bt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw wt(bt.NOT_INSTALLED);const n=nm(t),s=rm(n),r=ku(t),o=sm(e,r);if(o==="global")return Cu(s,e,r),s;if(o==="parent"){let i=om(n,t,e.__useComponent);return i==null&&(i=s),i}const a=n;let l=a.__getInstance(t);if(l==null){const i=et({},e);"__i18n"in r&&(i.__i18n=r.__i18n),s&&(i.__root=s),l=na(i),a.__composerExtend&&(l[wo]=a.__composerExtend(l)),lm(a,t,l),a.__setInstance(t,l)}return l}function tm(e,t){const n=Bc(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>To(e)):n.run(()=>na(e));if(s==null)throw wt(bt.UNEXPECTED_ERROR);return[n,s]}function nm(e){const t=ls(e.isCE?Zg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw wt(e.isCE?bt.NOT_INSTALLED_WITH_PROVIDE:bt.UNEXPECTED_ERROR);return t}function sm(e,t){return Pr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function rm(e){return e.mode==="composition"?e.global:e.global.__composer}function om(e,t,n=!1){let s=null;const r=t.root;let o=am(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")s=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const l=a.__getInstance(o);l!=null&&(s=l.__composer,n&&s&&!s[Tu]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function am(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function lm(e,t,n){En(()=>{},t),Wo(()=>{const s=n;e.__deleteInstance(t);const r=s[wo];r&&(r(),delete s[wo])},t)}const im=["locale","fallbackLocale","availableLocales"],_l=["t","rt","d","n","tm","te"];function um(e,t){const n=Object.create(null);return im.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw wt(bt.UNEXPECTED_ERROR);const a=Ee(o.value)?{get(){return o.value.value},set(l){o.value.value=l}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,_l.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw wt(bt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,_l.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const cm=Ge({name:"i18n-d",props:et({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},sa),setup(e,t){const n=e.i18n||nt({useScope:e.scope,__useComponent:!0});return Eu(e,t,yu,(...s)=>n[xo](...s))}}),wl=cm;Kg();vg(eg);xg(hg);_g(fu);if(__INTLIFY_PROD_DEVTOOLS__){const e=Tn();e.__INTLIFY__=!0,tg(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function dm(e){const t=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;return t==="/"?"":t.endsWith("/index.html")?t.slice(0,-11):t}function mr(e){return e.replace(/\\/g,"/")}function fm(e){return e.startsWith("/")||/^[a-z]:\//i.test(e)}function pm(e){return mr(e).replace(/\/+$/,"")}function gm(e){return mr(e).trim()}function Pn(e,t,n={}){const s=gm(e);if(!s)return null;if(fm(s))return!n.allowAbsoluteWithoutRoot&&!t?.trim()?null:`vscode://file/${encodeURI(s)}`;if(!t?.trim())return null;const r=pm(t);if(!r)return null;const o=s.replace(/^\/+/,"");return`vscode://file/${encodeURI(`${r}/${o}`)}`}function Is(e,t,n){const s=Pn(e,t,n);return s?(window.location.href=s,!0):!1}var mm=/\s+/g,hm=e=>typeof e!="string"||!e?e:e.replace(mm," ").trim(),hr=(...e)=>{const t=[],n=s=>{if(!s&&s!==0&&s!==0n)return;if(Array.isArray(s)){for(let o=0,a=s.length;o<a;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 a=0,l=o.length;a<l;a++){const i=o[a];s[i]&&t.push(i)}}};for(let s=0,r=e.length;s<r;s++){const o=e[s];o!=null&&n(o)}return t.length>0?hm(t.join(" ")):void 0},Tl=e=>e===!1?"false":e===!0?"true":e===0?"0":e,pt=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},bm=(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},ym=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];n in e?e[n]=hr(e[n],s):e[n]=s}return e},Ru=(e,t)=>{for(let n=0;n<e.length;n++){const s=e[n];Array.isArray(s)?Ru(s,t):s&&t.push(s)}},Pu=(...e)=>{const t=[];Ru(e,t);const n=[];for(let s=0;s<t.length;s++)t[s]&&n.push(t[s]);return n},ko=(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]=Pu(o,r):typeof r=="object"&&typeof o=="object"&&r&&o?n[s]=ko(r,o):n[s]=o+" "+r}else n[s]=r}for(const s in t)s in e||(n[s]=t[s]);return n},vm={twMerge:!0,twMergeConfig:{}};function xm(){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 Bt=xm(),_m=e=>{const t=(s,r)=>{const{extend:o=null,slots:a={},variants:l={},compoundVariants:i=[],compoundSlots:u=[],defaultVariants:c={}}=s,f={...vm,...r},h=o?.base?hr(o.base,s?.base):s?.base,p=o?.variants&&!pt(o.variants)?ko(l,o.variants):l,b=o?.defaultVariants&&!pt(o.defaultVariants)?{...o.defaultVariants,...c}:c;!pt(f.twMergeConfig)&&!bm(f.twMergeConfig,Bt.cachedTwMergeConfig)&&(Bt.didTwMergeConfigChange=!0,Bt.cachedTwMergeConfig=f.twMergeConfig);const x=pt(o?.slots),F=pt(a)?{}:{base:hr(s?.base,x&&o?.base),...a},w=x?F:ym({...o?.slots},pt(F)?{base:s?.base}:F),M=pt(o?.compoundVariants)?i:Pu(o?.compoundVariants,i),k=R=>{if(pt(p)&&pt(a)&&x)return e(h,R?.class,R?.className)(f);if(M&&!Array.isArray(M))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof M}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const C=(se,X=p,B=null,W=null)=>{const q=X[se];if(!q||pt(q))return null;const ge=W?.[se]??R?.[se];if(ge===null)return null;const $e=Tl(ge);if(typeof $e=="object")return null;const we=b?.[se],be=$e??Tl(we);return q[be||"false"]},L=()=>{if(!p)return null;const se=Object.keys(p),X=[];for(let B=0;B<se.length;B++){const W=C(se[B],p);W&&X.push(W)}return X},H=(se,X)=>{if(!p||typeof p!="object")return null;const B=[];for(const W in p){const q=C(W,p,se,X),ge=se==="base"&&typeof q=="string"?q:q&&q[se];ge&&B.push(ge)}return B},z={};for(const se in R){const X=R[se];X!==void 0&&(z[se]=X)}const ne=(se,X)=>{const B=typeof R?.[se]=="object"?{[se]:R[se]?.initial}:{};return{...b,...z,...B,...X}},ae=(se=[],X)=>{const B=[],W=se.length;for(let q=0;q<W;q++){const{class:ge,className:$e,...we}=se[q];let be=!0;const ve=ne(null,X);for(const ke in we){const Ne=we[ke],De=ve[ke];if(Array.isArray(Ne)){if(!Ne.includes(De)){be=!1;break}}else{if((Ne==null||Ne===!1)&&(De==null||De===!1))continue;if(De!==Ne){be=!1;break}}}be&&(ge&&B.push(ge),$e&&B.push($e))}return B},G=se=>{const X=ae(M,se);if(!Array.isArray(X))return X;const B={},W=e;for(let q=0;q<X.length;q++){const ge=X[q];if(typeof ge=="string")B.base=W(B.base,ge)(f);else if(typeof ge=="object")for(const $e in ge)B[$e]=W(B[$e],ge[$e])(f)}return B},me=se=>{if(u.length<1)return null;const X={},B=ne(null,se);for(let W=0;W<u.length;W++){const{slots:q=[],class:ge,className:$e,...we}=u[W];if(!pt(we)){let be=!0;for(const ve in we){const ke=B[ve],Ne=we[ve];if(ke===void 0||(Array.isArray(Ne)?!Ne.includes(ke):Ne!==ke)){be=!1;break}}if(!be)continue}for(let be=0;be<q.length;be++){const ve=q[be];X[ve]||(X[ve]=[]),X[ve].push([ge,$e])}}return X};if(!pt(a)||!x){const se={};if(typeof w=="object"&&!pt(w)){const X=e;for(const B in w)se[B]=W=>{const q=G(W),ge=me(W);return X(w[B],H(B,W),q?q[B]:void 0,ge?ge[B]:void 0,W?.class,W?.className)(f)}}return se}return e(h,L(),ae(M),R?.class,R?.className)(f)},m=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return k.variantKeys=m(),k.extend=o,k.base=h,k.slots=w,k.variants=p,k.defaultVariants=b,k.compoundSlots=u,k.compoundVariants=M,k};return{tv:t,createTV:s=>(r,o)=>t(r,o?ko(s,o):s)}};const wm=(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},Tm=(e,t)=>({classGroupId:e,validator:t}),$u=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),br="-",kl=[],km="arbitrary..",Cm=e=>{const t=Em(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Sm(a);const l=a.split(br),i=l[0]===""&&l.length>1?1:0;return Mu(l,i,t)},getConflictingClassGroupIds:(a,l)=>{if(l){const i=s[a],u=n[a];return i?u?wm(u,i):i:u||kl}return n[a]||kl}}},Mu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const u=Mu(e,t+1,o);if(u)return u}const a=n.validators;if(a===null)return;const l=t===0?e.join(br):e.slice(t).join(br),i=a.length;for(let u=0;u<i;u++){const c=a[u];if(c.validator(l))return c.classGroupId}},Sm=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?km+s:void 0})(),Em=e=>{const{theme:t,classGroups:n}=e;return Rm(n,t)},Rm=(e,t)=>{const n=$u();for(const s in e){const r=e[s];ra(r,n,s,t)}return n},ra=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const a=e[o];Pm(a,t,n,s)}},Pm=(e,t,n,s)=>{if(typeof e=="string"){$m(e,t,n);return}if(typeof e=="function"){Mm(e,t,n,s);return}Lm(e,t,n,s)},$m=(e,t,n)=>{const s=e===""?t:Lu(t,e);s.classGroupId=n},Mm=(e,t,n,s)=>{if(Im(e)){ra(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Tm(n,e))},Lm=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let a=0;a<o;a++){const[l,i]=r[a];ra(i,Lu(t,l),n,s)}},Lu=(e,t)=>{let n=e;const s=t.split(br),r=s.length;for(let o=0;o<r;o++){const a=s[o];let l=n.nextPart.get(a);l||(l=$u(),n.nextPart.set(a,l)),n=l}return n},Im=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nm=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const r=(o,a)=>{n[o]=a,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(o){let a=n[o];if(a!==void 0)return a;if((a=s[o])!==void 0)return r(o,a),a},set(o,a){o in n?n[o]=a:r(o,a)}}},Co="!",Cl=":",Am=[],Sl=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),Fm=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let a=0,l=0,i=0,u;const c=r.length;for(let x=0;x<c;x++){const F=r[x];if(a===0&&l===0){if(F===Cl){o.push(r.slice(i,x)),i=x+1;continue}if(F==="/"){u=x;continue}}F==="["?a++:F==="]"?a--:F==="("?l++:F===")"&&l--}const f=o.length===0?r:r.slice(i);let h=f,p=!1;f.endsWith(Co)?(h=f.slice(0,-1),p=!0):f.startsWith(Co)&&(h=f.slice(1),p=!0);const b=u&&u>i?u-i:void 0;return Sl(o,p,h,b)};if(t){const r=t+Cl,o=s;s=a=>a.startsWith(r)?o(a.slice(r.length)):Sl(Am,!1,a,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},Om=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 a=n[o],l=a[0]==="[",i=t.has(a);l||i?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(a)):r.push(a)}return r.length>0&&(r.sort(),s.push(...r)),s}},Dm=e=>({cache:Nm(e.cacheSize),parseClassName:Fm(e),sortModifiers:Om(e),...Cm(e)}),Um=/\s+/,Vm=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,a=[],l=e.trim().split(Um);let i="";for(let u=l.length-1;u>=0;u-=1){const c=l[u],{isExternal:f,modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:x}=n(c);if(f){i=c+(i.length>0?" "+i:i);continue}let F=!!x,w=s(F?b.substring(0,x):b);if(!w){if(!F){i=c+(i.length>0?" "+i:i);continue}if(w=s(b),!w){i=c+(i.length>0?" "+i:i);continue}F=!1}const M=h.length===0?"":h.length===1?h[0]:o(h).join(":"),k=p?M+Co:M,m=k+w;if(a.indexOf(m)>-1)continue;a.push(m);const R=r(w,F);for(let C=0;C<R.length;++C){const L=R[C];a.push(k+L)}i=c+(i.length>0?" "+i:i)}return i},Km=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=Iu(n))&&(r&&(r+=" "),r+=s);return r},Iu=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Iu(e[s]))&&(n&&(n+=" "),n+=t);return n},So=(e,...t)=>{let n,s,r,o;const a=i=>{const u=t.reduce((c,f)=>f(c),e());return n=Dm(u),s=n.cache.get,r=n.cache.set,o=l,l(i)},l=i=>{const u=s(i);if(u)return u;const c=Vm(i,n);return r(i,c),c};return o=a,(...i)=>o(Km(...i))},jm=[],Qe=e=>{const t=n=>n[e]||jm;return t.isThemeGetter=!0,t},Nu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Au=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Hm=/^\d+\/\d+$/,Wm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bm=/\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$/,Gm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ln=e=>Hm.test(e),Te=e=>!!e&&!Number.isNaN(Number(e)),nn=e=>!!e&&Number.isInteger(Number(e)),Zr=e=>e.endsWith("%")&&Te(e.slice(0,-1)),jt=e=>Wm.test(e),Jm=()=>!0,Ym=e=>Bm.test(e)&&!Gm.test(e),Fu=()=>!1,Xm=e=>qm.test(e),Qm=e=>zm.test(e),Zm=e=>!le(e)&&!ie(e),eh=e=>Wn(e,Uu,Fu),le=e=>Nu.test(e),vn=e=>Wn(e,Vu,Ym),eo=e=>Wn(e,oh,Te),El=e=>Wn(e,Ou,Fu),th=e=>Wn(e,Du,Qm),Ys=e=>Wn(e,Ku,Xm),ie=e=>Au.test(e),Qn=e=>Bn(e,Vu),nh=e=>Bn(e,ah),Rl=e=>Bn(e,Ou),sh=e=>Bn(e,Uu),rh=e=>Bn(e,Du),Xs=e=>Bn(e,Ku,!0),Wn=(e,t,n)=>{const s=Nu.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},Bn=(e,t,n=!1)=>{const s=Au.exec(e);return s?s[1]?t(s[1]):n:!1},Ou=e=>e==="position"||e==="percentage",Du=e=>e==="image"||e==="url",Uu=e=>e==="length"||e==="size"||e==="bg-size",Vu=e=>e==="length",oh=e=>e==="number",ah=e=>e==="family-name",Ku=e=>e==="shadow",Eo=()=>{const e=Qe("color"),t=Qe("font"),n=Qe("text"),s=Qe("font-weight"),r=Qe("tracking"),o=Qe("leading"),a=Qe("breakpoint"),l=Qe("container"),i=Qe("spacing"),u=Qe("radius"),c=Qe("shadow"),f=Qe("inset-shadow"),h=Qe("text-shadow"),p=Qe("drop-shadow"),b=Qe("blur"),x=Qe("perspective"),F=Qe("aspect"),w=Qe("ease"),M=Qe("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],m=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...m(),ie,le],C=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],H=()=>[ie,le,i],z=()=>[Ln,"full","auto",...H()],ne=()=>[nn,"none","subgrid",ie,le],ae=()=>["auto",{span:["full",nn,ie,le]},nn,ie,le],G=()=>[nn,"auto",ie,le],me=()=>["auto","min","max","fr",ie,le],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...H()],W=()=>[Ln,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],q=()=>[e,ie,le],ge=()=>[...m(),Rl,El,{position:[ie,le]}],$e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],we=()=>["auto","cover","contain",sh,eh,{size:[ie,le]}],be=()=>[Zr,Qn,vn],ve=()=>["","none","full",u,ie,le],ke=()=>["",Te,Qn,vn],Ne=()=>["solid","dashed","dotted","double"],De=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[Te,Zr,Rl,El],Ke=()=>["","none",b,ie,le],ue=()=>["none",Te,ie,le],J=()=>["none",Te,ie,le],Y=()=>[Te,ie,le],v=()=>[Ln,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[jt],breakpoint:[jt],color:[Jm],container:[jt],"drop-shadow":[jt],ease:["in","out","in-out"],font:[Zm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[jt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[jt],shadow:[jt],spacing:["px",Te],text:[jt],"text-shadow":[jt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ln,le,ie,F]}],container:["container"],columns:[{columns:[Te,le,ie,l]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:R()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],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:[nn,"auto",ie,le]}],basis:[{basis:[Ln,"full","auto",l,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Ln,"auto","initial","none",le]}],grow:[{grow:["",Te,ie,le]}],shrink:[{shrink:["",Te,ie,le]}],order:[{order:[nn,"first","last","none",ie,le]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":me()}],"auto-rows":[{"auto-rows":me()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[l,"screen",...W()]}],"min-w":[{"min-w":[l,"screen","none",...W()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,Qn,vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ie,eo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zr,le]}],"font-family":[{font:[nh,le,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,ie,le]}],"line-clamp":[{"line-clamp":[Te,"none",ie,eo]}],leading:[{leading:[o,...H()]}],"list-image":[{"list-image":["none",ie,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ie,vn]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Te,"auto",ie,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,le]}],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",ie,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:$e()}],"bg-size":[{bg:we()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nn,ie,le],radial:["",ie,le],conic:[nn,ie,le]},rh,th]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:be()}],"gradient-via-pos":[{via:be()}],"gradient-to-pos":[{to:be()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:ke()}],"border-w-x":[{"border-x":ke()}],"border-w-y":[{"border-y":ke()}],"border-w-s":[{"border-s":ke()}],"border-w-e":[{"border-e":ke()}],"border-w-t":[{"border-t":ke()}],"border-w-r":[{"border-r":ke()}],"border-w-b":[{"border-b":ke()}],"border-w-l":[{"border-l":ke()}],"divide-x":[{"divide-x":ke()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ke()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ie,le]}],"outline-w":[{outline:["",Te,Qn,vn]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",c,Xs,Ys]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",f,Xs,Ys]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Te,vn]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":ke()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",h,Xs,Ys]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Te,ie,le]}],"mix-blend":[{"mix-blend":[...De(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":De()}],"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":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[ie,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"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":m()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:$e()}],"mask-size":[{mask:we()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,le]}],filter:[{filter:["","none",ie,le]}],blur:[{blur:Ke()}],brightness:[{brightness:[Te,ie,le]}],contrast:[{contrast:[Te,ie,le]}],"drop-shadow":[{"drop-shadow":["","none",p,Xs,Ys]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Te,ie,le]}],"hue-rotate":[{"hue-rotate":[Te,ie,le]}],invert:[{invert:["",Te,ie,le]}],saturate:[{saturate:[Te,ie,le]}],sepia:[{sepia:["",Te,ie,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,le]}],"backdrop-blur":[{"backdrop-blur":Ke()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ie,le]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ie,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ie,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ie,le]}],"backdrop-invert":[{"backdrop-invert":["",Te,ie,le]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ie,le]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ie,le]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ie,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ie,le]}],ease:[{ease:["linear","initial",w,ie,le]}],delay:[{delay:[Te,ie,le]}],animate:[{animate:["none",M,ie,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,ie,le]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[ie,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:v()}],"translate-x":[{"translate-x":v()}],"translate-y":[{"translate-y":v()}],"translate-z":[{"translate-z":v()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"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",ie,le]}],"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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,le]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Te,Qn,vn,eo]}],stroke:[{stroke:["none",...q()]}],"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"]}},lh=(e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(ns(e,"cacheSize",t),ns(e,"prefix",n),ns(e,"experimentalParseClassName",s),Qs(e.theme,o.theme),Qs(e.classGroups,o.classGroups),Qs(e.conflictingClassGroups,o.conflictingClassGroups),Qs(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),ns(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),Zs(e.theme,r.theme),Zs(e.classGroups,r.classGroups),Zs(e.conflictingClassGroups,r.conflictingClassGroups),Zs(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),ju(e,r,"orderSensitiveModifiers"),e),ns=(e,t,n)=>{n!==void 0&&(e[t]=n)},Qs=(e,t)=>{if(t)for(const n in t)ns(e,n,t[n])},Zs=(e,t)=>{if(t)for(const n in t)ju(e,t,n)},ju=(e,t,n)=>{const s=t[n];s!==void 0&&(e[n]=e[n]?e[n].concat(s):s)},ih=(e,...t)=>typeof e=="function"?So(Eo,e,...t):So(()=>lh(Eo(),e),...t),uh=So(Eo);var ch=e=>pt(e)?uh:ih({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Hu=(e,t)=>{const n=hr(e);return!n||!(t?.twMerge??!0)?n:((!Bt.cachedTwMerge||Bt.didTwMergeConfigChange)&&(Bt.didTwMergeConfigChange=!1,Bt.cachedTwMerge=ch(Bt.cachedTwMergeConfig)),Bt.cachedTwMerge(n)||void 0)},dh=(...e)=>Hu(e,{}),fh=(...e)=>t=>Hu(e,t),{tv:Lr}=_m(fh);function Ir(...e){return dh(...e)}const We=Ge({__name:"UiPill",props:{tone:{default:"strong"},size:{default:"md"},caps:{type:Boolean,default:!0},tracking:{default:"wide"}},setup(e){const t=e,n=Lr({base:"inline-flex items-center gap-1.5 rounded",variants:{size:{xxs:"px-1.5 py-0.5 text-[0.7rem]",xs:"px-2 py-0.5 text-[0.7rem]",sm:"px-2 py-0.5 text-[0.7rem]",md:"px-2.5 py-1 text-[0.75rem]",lg:"px-3 py-1 text-[0.8rem]"},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:"",false:""},tracking:{wide:"",tight:"",none:""}},defaultVariants:{size:"md",tone:"strong",caps:!1,tracking:"none"}}),s=Sr(),r=V(()=>{const l=t.caps?t.tracking:"none";return Ir(n({size:t.size,tone:t.tone,caps:t.caps,tracking:l}),s.class)}),o=V(()=>{const{class:l,style:i,...u}=s;return u}),a=V(()=>s.style);return(l,i)=>($(),I("span",Zt(o.value,{class:r.value,style:a.value}),[Cr(l.$slots,"default")],16))}}),ph={class:"flex min-h-0 flex-col gap-4"},gh={class:"rounded border p-5 border-pg-border bg-pg-surface-card"},mh={class:"flex flex-wrap items-center justify-between gap-3"},hh={class:"flex flex-col gap-1"},bh={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},yh={class:"text-lg font-display text-pg-text-strong"},vh={class:"mt-4 grid gap-3 text-sm text-pg-text-soft"},xh={class:"flex items-center gap-2"},_h={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},wh={class:"flex items-center gap-2"},Th={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},kh={class:"flex min-h-0 flex-1 flex-col gap-3"},Ch={key:0,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Sh={key:0,class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Eh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Rh={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Ph={class:"flex flex-wrap items-center justify-between gap-2"},$h={class:"flex flex-wrap items-center gap-2"},Mh={class:"text-[0.75rem] font-semibold text-pg-text"},Lh=["aria-label","title","onClick"],Ih={class:"mt-1 text-[0.7rem] text-pg-text-muted"},Nh={key:1,class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Ah={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Fh={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Oh={class:"flex flex-wrap items-center justify-between gap-2"},Dh={class:"flex flex-wrap items-center gap-2"},Uh={class:"text-[0.75rem] font-semibold text-pg-text"},Vh=["aria-label","title","onClick"],Kh={class:"mt-1 text-[0.7rem] text-pg-text-muted"},jh={key:2,class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Hh={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Wh={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Bh={class:"flex flex-wrap items-center justify-between gap-2"},Gh={class:"text-[0.75rem] font-semibold text-pg-text"},qh=["aria-label","title","onClick"],zh=Ge({__name:"ConfigDetail",props:{selected:{},impacted:{},isDisabled:{type:Boolean},workspaceRoot:{}},setup(e){const t=e,{t:n}=nt(),s=V(()=>{const f=t.selected.file.replace(/\\/g,"/"),h=f.lastIndexOf("/");return h<0?"/":f.slice(0,h)||"/"}),r=V(()=>s.value==="/"?"/**":`${s.value}/**`),o=V(()=>{const f=[],h=[],p=[];for(const b of t.impacted)b.kind==="disabled"?h.push(b):b.kind==="ignored"?p.push(b):f.push(b);return{active:f,disabled:h,ignored:p}}),a=V(()=>t.impacted.length),l=f=>`method-${f.toLowerCase()}`;function i(f){return f.url?f.url:f.file}function u(f){return Pn(f,t.workspaceRoot)}function c(f){Is(f,t.workspaceRoot)}return(f,h)=>($(),I("section",ph,[y("div",gh,[y("div",mh,[y("div",hh,[y("span",bh,N(_(n)("configPanel.title")),1),y("span",yh,N(t.selected.file),1)]),Q(We,{tone:"chip",size:"sm",caps:!1},{default:fe(()=>[Pe(N(t.isDisabled?_(n)("configPanel.statusDisabled"):_(n)("configPanel.statusEnabled")),1)]),_:1})]),y("div",vh,[y("div",xh,[y("span",_h,N(_(n)("configPanel.scope")),1),y("span",null,N(r.value),1)]),y("div",wh,[y("span",Th,N(_(n)("configPanel.impacted")),1),Q(We,{tone:"chip",size:"sm",caps:!1},{default:fe(()=>[Pe(N(a.value),1)]),_:1})])])]),y("div",kh,[a.value===0?($(),I("div",Ch,N(_(n)("configPanel.emptyImpacts")),1)):($(),I(ye,{key:1},[o.value.active.length>0?($(),I("div",Sh,[y("div",Eh,[y("span",null,N(_(n)("configPanel.active")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(o.value.active.length),1)]),_:1})]),y("div",Rh,[($(!0),I(ye,null,Ue(o.value.active,p=>($(),I("div",{key:`active-${p.file}-${p.method??""}-${p.url??""}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[y("div",Ph,[y("div",$h,[p.method?($(),I("span",{key:0,class:ce(["rounded border px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",l(p.method)])},N(p.method),3)):pe("",!0),y("span",Mh,N(i(p)),1)]),u(p.file)?($(),I("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 ${p.file} in VS Code`,title:_(n)("detail.openInVscode"),onClick:b=>c(p.file)},[...h[0]||(h[0]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Lh)):pe("",!0)]),y("div",Ih,N(p.file),1)]))),128))])])):pe("",!0),o.value.disabled.length>0?($(),I("div",Nh,[y("div",Ah,[y("span",null,N(_(n)("configPanel.disabled")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(o.value.disabled.length),1)]),_:1})]),y("div",Fh,[($(!0),I(ye,null,Ue(o.value.disabled,p=>($(),I("div",{key:`disabled-${p.file}-${p.method??""}-${p.url??""}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[y("div",Oh,[y("div",Dh,[p.method?($(),I("span",{key:0,class:ce(["rounded border px-2 py-1 text-[0.55rem] uppercase tracking-[0.2em]",l(p.method)])},N(p.method),3)):pe("",!0),y("span",Uh,N(i(p)),1)]),u(p.file)?($(),I("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 ${p.file} in VS Code`,title:_(n)("detail.openInVscode"),onClick:b=>c(p.file)},[...h[1]||(h[1]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Vh)):pe("",!0)]),y("div",Kh,N(p.file),1)]))),128))])])):pe("",!0),o.value.ignored.length>0?($(),I("div",jh,[y("div",Hh,[y("span",null,N(_(n)("configPanel.ignored")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(o.value.ignored.length),1)]),_:1})]),y("div",Wh,[($(!0),I(ye,null,Ue(o.value.ignored,p=>($(),I("div",{key:`ignored-${p.file}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[y("div",Bh,[y("span",Gh,N(i(p)),1),u(p.file)?($(),I("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 ${p.file} in VS Code`,title:_(n)("detail.openInVscode"),onClick:b=>c(p.file)},[...h[2]||(h[2]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,qh)):pe("",!0)])]))),128))])])):pe("",!0)],64))])]))}}),Jh="modulepreload",Yh=function(e,t){return new URL(e,t).href},Pl={},Xh=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),i=l?.nonce||l?.getAttribute("nonce");r=u(n.map(c=>{if(c=Yh(c,s),c in Pl)return;Pl[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(s)for(let b=a.length-1;b>=0;b--){const x=a[b];if(x.href===c&&(!f||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":Jh,f||(p.as="script"),p.crossOrigin="",p.href=c,i&&p.setAttribute("nonce",i),document.head.appendChild(p),f)return new Promise((b,x)=>{p.addEventListener("load",b),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return r.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function xn(e){return/^[\w./:@=&?%-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}function Qh(e){const t=["curl"],n=e.method.toUpperCase();n!=="GET"&&t.push(`-X ${n}`);const s=new URL(e.url,"http://localhost");e.authType==="apikey"&&e.authKeyLocation==="query"&&e.authKeyName&&e.authKeyValue&&s.searchParams.set(e.authKeyName,e.authKeyValue),t.push(xn(s.toString()));const r={...e.headers};e.authType==="bearer"&&e.authToken?r.Authorization=`Bearer ${e.authToken}`:e.authType==="basic"&&(e.authUsername||e.authPassword)?r.Authorization=`Basic ${btoa(`${e.authUsername}:${e.authPassword}`)}`:e.authType==="apikey"&&e.authKeyLocation==="header"&&e.authKeyName&&e.authKeyValue?r[e.authKeyName]=e.authKeyValue:e.authType==="custom"&&e.authCustomName&&(r[e.authCustomName]=e.authCustomValue);for(const[o,a]of Object.entries(r))t.push(`-H ${xn(`${o}: ${a}`)}`);if(n!=="GET"&&n!=="HEAD"&&e.bodyType!=="none"){const o=e.bodyText.trim();if(e.bodyType==="raw"&&o){if(!r["Content-Type"]){const a=Zh(e.rawType);t.push(`-H ${xn(`Content-Type: ${a}`)}`)}t.push(`-d ${xn(o)}`)}else if(e.bodyType==="form-urlencoded"&&o)r["Content-Type"]||t.push(`-H ${xn("Content-Type: application/x-www-form-urlencoded")}`),t.push(`--data-urlencode ${xn(o)}`);else if(e.bodyType==="form-data"&&o)for(const a of o.split(`
5
- `))a.indexOf("=")>0&&t.push(`-F ${xn(a.trim())}`)}return t.join(` \\
6
- `)}function Zh(e){switch(e){case"json":return"application/json";case"javascript":return"application/javascript";case"html":return"text/html";case"xml":return"text/xml";default:return"text/plain"}}function Zn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function eb(e){const t=e.method.toUpperCase(),n=new URL(e.url,"http://localhost");e.authType==="apikey"&&e.authKeyLocation==="query"&&e.authKeyName&&e.authKeyValue&&n.searchParams.set(e.authKeyName,e.authKeyValue);const s={...e.headers};e.authType==="bearer"&&e.authToken?s.Authorization=`Bearer ${e.authToken}`:e.authType==="basic"&&(e.authUsername||e.authPassword)?s.Authorization=`Basic ${btoa(`${e.authUsername}:${e.authPassword}`)}`:e.authType==="apikey"&&e.authKeyLocation==="header"&&e.authKeyName&&e.authKeyValue?s[e.authKeyName]=e.authKeyValue:e.authType==="custom"&&e.authCustomName&&(s[e.authCustomName]=e.authCustomValue);let r;if(t!=="GET"&&t!=="HEAD"&&e.bodyType!=="none"){const l=e.bodyText.trim();e.bodyType==="raw"&&l?(s["Content-Type"]||(s["Content-Type"]=tb(e.rawType)),r=l):e.bodyType==="form-urlencoded"&&l&&(s["Content-Type"]||(s["Content-Type"]="application/x-www-form-urlencoded"),r=l)}const o=[`fetch(${Zn(n.toString())}`," {"];o.push(` method: ${Zn(t)},`);const a=Object.entries(s);if(a.length>0){o.push(" headers: {");for(const[l,i]of a)o.push(` ${Zn(l)}: ${Zn(i)},`);o.push(" },")}return r!==void 0&&(s["Content-Type"]==="application/json"?o.push(` body: JSON.stringify(${r}),`):o.push(` body: ${Zn(r)},`)),o.push(" }"),o.push(")"),o.join(`
7
- `)}function tb(e){switch(e){case"json":return"application/json";case"javascript":return"application/javascript";case"html":return"text/html";case"xml":return"text/xml";default:return"text/plain"}}function ds(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 nb(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)))}const Wu="mokup.playground.detailPanels.v2",Bu="mokup.playground.detailPanels",ss={configChain:!1,middlewares:!1},ks=ee(ss);let $l=!1;function sb(){if(typeof window>"u")return ss;const e=t=>{if(!t)return null;try{const n=JSON.parse(t);return{...ss,...n}}catch{return null}};try{return e(localStorage.getItem(Wu))??e(localStorage.getItem(Bu))??ss}catch{return ss}}function rb(e){if(!(typeof window>"u"))try{localStorage.setItem(Wu,JSON.stringify(e)),localStorage.setItem(Bu,JSON.stringify(e))}catch{}}function Gu(){$l||typeof window>"u"||(ks.value=sb(),$l=!0)}function Ml(e,t){Gu();const n={...ks.value,[e]:t};ks.value=n,rb(n)}function qu(e){return Gu(),{isOpen:V(()=>ks.value[e]),toggle:()=>Ml(e,!ks.value[e]),setOpen:r=>Ml(e,r)}}const ob=["aria-expanded"],ab={class:"flex flex-wrap items-center gap-2"},lb={key:0,class:"flex flex-col gap-2 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},ib={class:"rounded border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},ub={class:"text-[0.7rem] text-pg-text-subtle"},cb=["title","onClick"],db={key:1,class:"border-t px-4 py-3 text-xs border-pg-border text-pg-text-muted"},Ll="pg-config-chain-panel",fb=Ge({__name:"RouteDetailConfigChain",props:{configChain:{},configStatusMap:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=nt(),{isOpen:s,toggle:r}=qu("configChain"),o=V(()=>(t.configChain??[]).map((l,i)=>({file:l,order:i+1,disabled:t.configStatusMap.get(l)==="disabled",editorUrl:Pn(l,t.workspaceRoot)})));function a(l){Is(l,t.workspaceRoot)}return(l,i)=>($(),I("div",null,[y("button",{type:"button",class:"group flex w-full items-center justify-between px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition text-pg-text-muted hover:text-pg-text-soft","aria-expanded":_(s),"aria-controls":Ll,onClick:i[0]||(i[0]=(...u)=>_(r)&&_(r)(...u))},[y("span",ab,[y("span",null,N(_(n)("detail.configChain")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(o.value.length),1)]),_:1})]),y("span",{class:ce(["i-[carbon--chevron-down] h-4 w-4 transition",_(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,ob),_(s)?($(),I("div",{key:0,id:Ll},[o.value.length>0?($(),I("div",lb,[($(!0),I(ye,null,Ue(o.value,u=>($(),I("div",{key:`config-${u.order}-${u.file}`,class:"flex flex-wrap items-center gap-2"},[y("span",ib,N(u.order),1),y("span",ub,N(u.file),1),u.editorUrl?($(),I("button",{key:0,type:"button",class:"inline-flex items-center rounded border px-1.5 py-0.5 text-[0.55rem] uppercase tracking-[0.15em] transition border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",title:_(n)("detail.openInVscode"),onClick:c=>a(u.file)},[...i[1]||(i[1]=[y("span",{class:"i-[carbon--launch] h-3 w-3","aria-hidden":"true"},null,-1)])],8,cb)):pe("",!0),u.disabled?($(),dt(We,{key:1,tone:"strong",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(_(n)("configPanel.statusDisabled")),1)]),_:1})):pe("",!0)]))),128))])):($(),I("div",db,N(_(n)("detail.configChainEmpty")),1))])):pe("",!0)]))}}),pb=["aria-expanded"],gb={class:"flex flex-wrap items-center gap-2"},mb={key:0,class:"flex flex-col gap-2"},hb={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},bb={class:"flex flex-wrap gap-2"},yb=["href","title"],vb={key:1,class:"flex flex-col gap-2"},xb={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},_b={class:"flex flex-wrap gap-2"},wb=["href","title"],Tb={key:2,class:"flex flex-col gap-2"},kb={class:"flex flex-wrap items-center gap-2 text-[0.6rem] uppercase tracking-[0.2em] text-pg-text-muted"},Cb={class:"flex flex-wrap gap-2"},Sb=["href","title"],Il="pg-middlewares-panel",Eb=Ge({__name:"RouteDetailMiddlewares",props:{selected:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=nt(),{isOpen:s,toggle:r}=qu("middlewares");function o(p){const b=p.trim();return b?Pn(b,t.workspaceRoot,{allowAbsoluteWithoutRoot:!0})??"":""}const a=V(()=>t.selected.preMiddlewares??[]),l=V(()=>t.selected.normalMiddlewares?t.selected.normalMiddlewares:t.selected.preMiddlewares||t.selected.postMiddlewares?[]:t.selected.middlewares??[]),i=V(()=>t.selected.postMiddlewares??[]),u=V(()=>t.selected.preMiddlewareCount??a.value.length),c=V(()=>t.selected.normalMiddlewareCount??l.value.length),f=V(()=>t.selected.postMiddlewareCount??i.value.length),h=V(()=>t.selected.middlewareCount??u.value+c.value+f.value);return(p,b)=>($(),I("div",null,[y("button",{type:"button",class:"group flex w-full items-center justify-between px-4 py-3 text-[0.6rem] uppercase tracking-[0.2em] transition text-pg-text-muted hover:text-pg-text-soft","aria-expanded":_(s),"aria-controls":Il,onClick:b[0]||(b[0]=(...x)=>_(r)&&_(r)(...x))},[y("span",gb,[y("span",null,N(_(n)("detail.middlewares")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(h.value),1)]),_:1})]),y("span",{class:ce(["i-[carbon--chevron-down] h-4 w-4 transition",_(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,pb),_(s)&&(a.value.length>0||l.value.length>0||i.value.length>0)?($(),I("div",{key:0,id:Il,class:"flex flex-col gap-3 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},[a.value.length>0?($(),I("div",mb,[y("div",hb,[y("span",null,N(_(n)("detail.middlewarePre")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(u.value),1)]),_:1})]),y("div",bb,[($(!0),I(ye,null,Ue(a.value,x=>($(),I("span",{key:`pre-${x}`,class:"inline-flex items-center gap-2 rounded border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[Pe(N(x)+" ",1),o(x)?($(),I("a",{key:0,href:o(x),class:"text-pg-text-soft transition hover:text-pg-text",title:_(n)("detail.openInVscode")},[...b[1]||(b[1]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,yb)):pe("",!0)]))),128))])])):pe("",!0),l.value.length>0?($(),I("div",vb,[y("div",xb,[y("span",null,N(_(n)("detail.middlewareNormal")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(c.value),1)]),_:1})]),y("div",_b,[($(!0),I(ye,null,Ue(l.value,x=>($(),I("span",{key:`normal-${x}`,class:"inline-flex items-center gap-2 rounded border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[Pe(N(x)+" ",1),o(x)?($(),I("a",{key:0,href:o(x),class:"text-pg-text-soft transition hover:text-pg-text",title:_(n)("detail.openInVscode")},[...b[2]||(b[2]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,wb)):pe("",!0)]))),128))])])):pe("",!0),i.value.length>0?($(),I("div",Tb,[y("div",kb,[y("span",null,N(_(n)("detail.middlewarePost")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(f.value),1)]),_:1})]),y("div",Cb,[($(!0),I(ye,null,Ue(i.value,x=>($(),I("span",{key:`post-${x}`,class:"inline-flex items-center gap-2 rounded border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[Pe(N(x)+" ",1),o(x)?($(),I("a",{key:0,href:o(x),class:"text-pg-text-soft transition hover:text-pg-text",title:_(n)("detail.openInVscode")},[...b[3]||(b[3]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Sb)):pe("",!0)]))),128))])])):pe("",!0)])):pe("",!0)]))}}),Ze=Ge({__name:"UiField",props:{label:{},dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Lr({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=Sr(),r=V(()=>Ir(n({dense:t.dense}),s.class)),o=V(()=>{const{class:l,style:i,...u}=s;return u}),a=V(()=>s.style);return(l,i)=>($(),I("div",Zt(o.value,{class:r.value,style:a.value}),[y("span",null,N(t.label),1),Cr(l.$slots,"default")],16))}}),vt=Ge({__name:"UiTextInput",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Lr({base:"rounded 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=Sr(),r=V(()=>Ir(n({dense:t.dense}),s.class)),o=V(()=>{const{class:l,style:i,...u}=s;return u}),a=V(()=>s.style);return(l,i)=>($(),I("input",Zt(o.value,{class:r.value,style:a.value}),null,16))}}),Rb={class:"rounded border border-pg-border bg-pg-surface-card"},Pb={class:"flex flex-col gap-3 px-4 py-4"},$b={class:"flex flex-wrap items-center gap-2"},Mb={class:"inline-flex items-center gap-2 rounded px-4 py-2 text-[0.65rem] uppercase tracking-[0.25em] transition border border-pg-border bg-pg-surface-strong text-pg-text-muted hover:text-pg-text-soft",type:"button"},Lb={class:"absolute right-0 top-full z-10 mt-1 min-w-[160px] rounded border py-1 border-pg-border bg-pg-surface-card shadow-sm"},Ib=["disabled","aria-busy"],Nb={key:0,class:"i-[carbon--circle-dash] h-3.5 w-3.5 animate-spin","aria-hidden":"true"},Ab={class:"text-[0.65rem] text-pg-text-subtle"},Fb={class:"border-t border-pg-border"},Ob={class:"flex flex-wrap items-center gap-5 px-4 pt-2 text-[0.65rem] uppercase tracking-[0.25em]",role:"tablist"},Db=["aria-selected"],Ub=["aria-selected"],Vb=["aria-selected"],Kb=["aria-selected"],jb=["aria-selected"],Hb=["aria-selected"],Wb={class:"border-t px-4 py-4 border-pg-border"},Bb={class:"flex flex-col gap-4"},Gb={class:"mb-1.5 text-[0.55rem] uppercase tracking-[0.25em] text-pg-text-muted"},qb={key:0,class:"rounded border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},zb={key:1,class:"grid gap-3 lg:grid-cols-2"},Jb={class:"flex items-center gap-2 text-[0.55rem] uppercase tracking-[0.2em] text-pg-text-muted"},Yb={class:"rounded border px-2 py-0.5 text-[0.5rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},Xb={key:0,class:"flex flex-col gap-4"},Qb={class:"flex flex-wrap items-center gap-4 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},Zb=["checked","onChange"],ey={key:0,class:"grid gap-3 lg:grid-cols-2"},ty={key:1,class:"grid gap-3 lg:grid-cols-2"},ny={key:2,class:"grid gap-3 lg:grid-cols-3"},sy={class:"relative"},ry=["value"],oy={value:"header"},ay={value:"query"},ly={key:3,class:"grid gap-3 lg:grid-cols-2"},iy={key:1},uy={key:2},cy={class:"flex flex-wrap items-center gap-4 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},dy=["disabled","checked","onChange"],fy={key:0,class:"mt-3 flex flex-wrap items-center gap-3"},py={class:"relative"},gy=["value"],my=["value"],hy={key:0,class:"flex items-center gap-2 rounded border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-muted"},by=["checked"],yy={key:1,class:"mt-3 rounded border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},vy={key:2,class:"mt-2"},xy={class:"flex flex-wrap items-center gap-3"},_y={class:"flex items-center gap-2 rounded border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-card text-pg-text-muted"},wy={key:4,class:"mt-4"},Ty={class:"mt-2 flex flex-col gap-2"},ky={class:"flex flex-col gap-2 lg:flex-row lg:items-center"},Cy={class:"flex items-center gap-2 rounded border px-3 py-2 text-[0.7rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-card text-pg-text-muted"},Sy=["onChange"],Ey=["onClick"],Ry={class:"rounded border border-pg-border bg-pg-surface-strong"},Py={class:"rounded border border-pg-border bg-pg-surface-strong"},$y='{ "q": "alpha", "page": 1 }',My='{ "x-mokup": "playground" }',Ly='{ "name": "Ada" }',Iy="Hello Mokup",Ny="export const data = { ok: true }",Ay='<div class="card">Hello</div>',Fy="<note>Hello</note>",Nl=`title=alpha
8
- count=3`,Oy=Ge({__name:"PostmanRequestView",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},rawType:{},rawValidate:{type:Boolean},multipartFiles:{},binaryFile:{},authType:{},authToken:{},authUsername:{},authPassword:{},authKeyName:{},authKeyValue:{},authKeyLocation:{},authCustomName:{},authCustomValue:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:rawType","update:rawValidate","update:multipartFiles","update:binaryFile","update:authType","update:authToken","update:authUsername","update:authPassword","update:authKeyName","update:authKeyValue","update:authKeyLocation","update:authCustomName","update:authCustomValue","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,r=Fd({loader:()=>Xh(()=>import("./UiCodeEditor.js"),__vite__mapDeps([0,1]),import.meta.url),suspensible:!1}),{t:o}=nt(),{bodyType:a}=bd(n),l=V(()=>`method-${n.selected.method.toLowerCase()}`),i=V(()=>{const ue=n.selected.configChain;return ue!==void 0?{configChain:ue}:{}}),u=ee("params"),c=ee(!1),f=new Map;let h=null,p=0;const b=V(()=>new Set(n.missingParams)),x=V(()=>n.missingParams.length>0),F=V(()=>n.routeParams.some(ue=>ue.required)),w=V(()=>{switch(n.rawType){case"text":return o("detail.rawTypeText");case"javascript":return o("detail.rawTypeJavascript");case"html":return o("detail.rawTypeHtml");case"xml":return o("detail.rawTypeXml");default:return o("detail.rawTypeJson")}}),M=V(()=>{switch(a.value){case"none":return o("detail.bodyTypeNone");case"form-data":return o("detail.bodyTypeFormData");case"form-urlencoded":return o("detail.bodyTypeFormUrlencoded");case"raw":return`${o("detail.bodyTypeRaw")} · ${w.value}`;case"binary":return o("detail.bodyTypeBinary");default:return o("detail.bodyTypeNone")}}),k=V(()=>[{value:"none",label:o("detail.authTypeNone")},{value:"bearer",label:o("detail.authTypeBearer")},{value:"basic",label:o("detail.authTypeBasic")},{value:"apikey",label:o("detail.authTypeApiKey")},{value:"custom",label:o("detail.authTypeCustom")}]),m=V(()=>[{value:"none",label:o("detail.bodyTypeNone")},{value:"form-data",label:o("detail.bodyTypeFormData")},{value:"form-urlencoded",label:o("detail.bodyTypeFormUrlencoded")},{value:"raw",label:o("detail.bodyTypeRaw")},{value:"binary",label:o("detail.bodyTypeBinary")},{value:"graphql",label:o("detail.bodyTypeGraphql"),disabled:!0}]),R=V(()=>[{value:"text",label:o("detail.rawTypeText")},{value:"javascript",label:o("detail.rawTypeJavascript")},{value:"json",label:o("detail.rawTypeJson")},{value:"html",label:o("detail.rawTypeHtml")},{value:"xml",label:o("detail.rawTypeXml")}]);function C(ue){return ue.kind==="param"?o("detail.paramPlaceholder"):o("detail.paramPlaceholderCatchall")}function L(ue,J){if(!J){f.delete(ue);return}f.set(ue,J)}function H(){h&&(clearTimeout(h),h=null),c.value=!1,!(typeof window>"u")&&window.requestAnimationFrame(()=>{c.value=!0,h=window.setTimeout(()=>{c.value=!1,h=null},1400)})}function z(){const[ue]=n.missingParams;if(!ue)return;const J=f.get(ue);if(!J)return;J.scrollIntoView({behavior:"smooth",block:"center"}),J.querySelector("input")?.focus()}ht(()=>n.selected?.url??"",()=>{u.value="params"},{immediate:!0}),ht(()=>n.missingPulse,async(ue,J)=>{ue===J||!x.value||(u.value="params",await hi(),z(),H())}),ht(()=>n.missingParams.length,ue=>{ue===0&&(c.value=!1)}),Rn(()=>{h&&(clearTimeout(h),h=null),G&&(clearTimeout(G),G=null)});const ne=ee(!1),ae=ee("");let G=null;function me(){const ue=ds(n.headersText),J={};if(ue.value&&typeof ue.value=="object")for(const[Y,v]of Object.entries(ue.value))J[Y]=String(v);return{method:n.selected.method,url:n.requestUrl,headers:J,bodyType:n.bodyType,rawType:n.rawType,bodyText:n.bodyText,authType:n.authType,authToken:n.authToken,authUsername:n.authUsername,authPassword:n.authPassword,authKeyName:n.authKeyName,authKeyValue:n.authKeyValue,authKeyLocation:n.authKeyLocation,authCustomName:n.authCustomName,authCustomValue:n.authCustomValue}}function se(ue,J){navigator.clipboard.writeText(ue),ae.value=J,ne.value=!1,G&&clearTimeout(G),G=setTimeout(()=>{ae.value="",G=null},2e3)}function X(){se(n.requestUrl,"url")}function B(){se(Qh(me()),"curl")}function W(){se(eb(me()),"fetch")}function q(){switch(n.bodyType){case"raw":switch(n.rawType){case"text":return o("detail.bodyPlaceholderRawText",{sample:Iy});case"javascript":return o("detail.bodyPlaceholderRawJavascript",{sample:Ny});case"html":return o("detail.bodyPlaceholderRawHtml",{sample:Ay});case"xml":return o("detail.bodyPlaceholderRawXml",{sample:Fy});default:return o("detail.bodyPlaceholderRawJson",{json:Ly})}case"form-data":return o("detail.bodyPlaceholderFormData",{sample:Nl});case"form-urlencoded":return o("detail.bodyPlaceholderFormUrlencoded",{sample:Nl});default:return""}}const ge=V(()=>n.bodyType==="raw"&&n.rawType==="json"?"json":"text");function $e(){return p+=1,{id:`multipart-${p}`,name:"",files:[]}}function we(){s("update:multipartFiles",[...n.multipartFiles,$e()])}function be(ue){s("update:multipartFiles",n.multipartFiles.filter(J=>J.id!==ue))}function ve(ue,J){s("update:multipartFiles",n.multipartFiles.map(Y=>Y.id===ue?{...Y,name:J}:Y))}function ke(ue,J){const Y=J.target,v=Array.from(Y?.files??[]);s("update:multipartFiles",n.multipartFiles.map(E=>E.id===ue?{...E,files:v}:E))}function Ne(ue){return ue.files.length===0?o("detail.bodyMultipartChoose"):o("detail.bodyMultipartCount",{count:ue.files.length})}function De(ue){const J=ue.target,[Y]=Array.from(J?.files??[]);s("update:binaryFile",Y??null)}function Ce(){s("update:binaryFile",null)}function Ke(ue){return ue?ue<1024?`${ue} B`:ue<1024*1024?`${(ue/1024).toFixed(1)} KB`:`${(ue/(1024*1024)).toFixed(1)} MB`:"0 B"}return(ue,J)=>($(),I("section",Rb,[y("div",Pb,[y("div",$b,[y("span",{class:ce(["inline-flex h-[34px] w-[96px] flex-none items-center justify-center rounded border px-3 py-2 text-[0.65rem] uppercase tracking-[0.25em] border-pg-border bg-pg-surface-strong text-pg-text",l.value])},N(n.selected.method.toUpperCase()),3),Q(vt,{value:n.requestUrl,readonly:"",class:"min-w-[220px] flex-1"},null,8,["value"]),y("div",{class:"relative",onMouseenter:J[0]||(J[0]=Y=>ne.value=!0),onMouseleave:J[1]||(J[1]=Y=>ne.value=!1)},[y("button",Mb,[y("span",{class:ce(["h-3.5 w-3.5",ae.value?"i-[carbon--checkmark]":"i-[carbon--copy]"]),"aria-hidden":"true"},null,2),Pe(" "+N(ae.value?_(o)("detail.copyMenuDone"):_(o)("detail.copyMenu"))+" ",1),J[22]||(J[22]=y("span",{class:"i-[carbon--chevron-down] h-3 w-3","aria-hidden":"true"},null,-1))]),Hs(y("div",Lb,[y("button",{class:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-[0.65rem] uppercase tracking-[0.2em] transition text-pg-text-soft hover:bg-pg-hover-strong",type:"button",onClick:X},[J[23]||(J[23]=y("span",{class:"i-[carbon--link] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),Pe(" "+N(_(o)("detail.copyUrl")),1)]),y("button",{class:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-[0.65rem] uppercase tracking-[0.2em] transition text-pg-text-soft hover:bg-pg-hover-strong",type:"button",onClick:B},[J[24]||(J[24]=y("span",{class:"i-[carbon--terminal] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),Pe(" "+N(_(o)("detail.copyCurl")),1)]),y("button",{class:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-[0.65rem] uppercase tracking-[0.2em] transition text-pg-text-soft hover:bg-pg-hover-strong",type:"button",onClick:W},[J[25]||(J[25]=y("span",{class:"i-[carbon--code] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),Pe(" "+N(_(o)("detail.copyFetch")),1)])],512),[[Bs,ne.value]])],32),y("button",{class:"inline-flex items-center gap-2 rounded px-4 py-2 text-[0.65rem] uppercase tracking-[0.25em] transition disabled:cursor-not-allowed disabled:opacity-70 bg-pg-accent text-pg-on-accent","data-testid":"playground-run",disabled:n.isSwRegistering,"aria-busy":n.isSwRegistering,onClick:J[2]||(J[2]=Y=>s("run"))},[n.isSwRegistering?($(),I("span",Nb)):pe("",!0),Pe(" "+N(_(o)("detail.run")),1)],8,Ib)]),y("div",Ab,N(n.selected.file),1)]),y("div",Fb,[y("div",Ob,[y("button",{type:"button",role:"tab","aria-selected":u.value==="params",class:ce(["border-b-2 pb-2 transition",[u.value==="params"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft",x.value?"pg-tab-missing":"",c.value&&x.value?"pg-pulse":""]]),onClick:J[3]||(J[3]=Y=>u.value="params")},[y("span",null,N(_(o)("detail.params")),1),F.value?($(),dt(We,{key:0,size:"xxs",tone:"chip",caps:!1,class:"ml-2"},{default:fe(()=>[Pe(N(_(o)("detail.badgeRequired")),1)]),_:1})):pe("",!0)],10,Db),y("button",{type:"button",role:"tab","aria-selected":u.value==="auth",class:ce(["border-b-2 pb-2 transition",u.value==="auth"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:J[4]||(J[4]=Y=>u.value="auth")},N(_(o)("detail.auth")),11,Ub),y("button",{type:"button",role:"tab","aria-selected":u.value==="headers",class:ce(["border-b-2 pb-2 transition",u.value==="headers"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:J[5]||(J[5]=Y=>u.value="headers")},N(_(o)("detail.headers")),11,Vb),y("button",{type:"button",role:"tab","aria-selected":u.value==="body",class:ce(["border-b-2 pb-2 transition",u.value==="body"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:J[6]||(J[6]=Y=>u.value="body")},[Pe(N(_(o)("detail.body"))+" ",1),Q(We,{size:"xxs",tone:"chip",caps:!1,class:"ml-2"},{default:fe(()=>[Pe(N(M.value),1)]),_:1})],10,Kb),y("button",{type:"button",role:"tab","aria-selected":u.value==="config",class:ce(["border-b-2 pb-2 transition",u.value==="config"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:J[7]||(J[7]=Y=>u.value="config")},N(_(o)("detail.configChain")),11,jb),y("button",{type:"button",role:"tab","aria-selected":u.value==="middlewares",class:ce(["border-b-2 pb-2 transition",u.value==="middlewares"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:J[8]||(J[8]=Y=>u.value="middlewares")},N(_(o)("detail.middlewares")),11,Hb)]),y("div",Wb,[Hs(y("div",Bb,[y("div",null,[y("div",Gb,N(_(o)("detail.params")),1),n.routeParams.length===0?($(),I("div",qb,N(_(o)("detail.emptyParams")),1)):($(),I("div",zb,[($(!0),I(ye,null,Ue(n.routeParams,Y=>($(),I("label",{key:Y.id,ref_for:!0,ref:v=>L(Y.name,v),class:"flex flex-col gap-1.5 text-[0.65rem] uppercase tracking-[0.2em] text-pg-text-muted"},[y("span",Jb,[y("span",null,N(Y.name),1),y("span",Yb,N(Y.token),1)]),Q(vt,{value:n.paramValues[Y.name]??"",placeholder:C(Y),class:ce([b.value.has(Y.name)?"pg-input-missing":"",c.value&&b.value.has(Y.name)?"pg-pulse":""]),onInput:v=>s("update:param-value",Y.name,v.target?.value??"")},null,8,["value","placeholder","class","onInput"])]))),128))]))]),Q(Ze,{label:_(o)("detail.query")},{default:fe(()=>[Q(_(r),{"model-value":n.queryText,language:"json",rows:4,"format-label":_(o)("detail.formatJson"),placeholder:_(o)("detail.queryPlaceholder",{json:$y}),"onUpdate:modelValue":J[9]||(J[9]=Y=>s("update:queryText",Y))},null,8,["model-value","format-label","placeholder"])]),_:1},8,["label"])],512),[[Bs,u.value==="params"]]),u.value==="auth"?($(),I("div",Xb,[Q(Ze,{label:_(o)("detail.authType")},{default:fe(()=>[y("div",Qb,[($(!0),I(ye,null,Ue(k.value,Y=>($(),I("label",{key:Y.value,class:"inline-flex items-center gap-2 rounded border px-3 py-1 transition border-pg-border bg-pg-surface-strong text-pg-text-soft"},[y("input",{class:"h-3.5 w-3.5 rounded border-pg-border text-pg-accent",type:"radio",name:"authType",checked:n.authType===Y.value,onChange:v=>s("update:authType",Y.value)},null,40,Zb),y("span",null,N(Y.label),1)]))),128))])]),_:1},8,["label"]),n.authType==="bearer"?($(),I("div",ey,[Q(Ze,{label:_(o)("detail.authTypeBearerToken")},{default:fe(()=>[Q(vt,{value:n.authToken,placeholder:"eyJhbGciOiJIUzI1NiIs...",onInput:J[10]||(J[10]=Y=>s("update:authToken",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"])])):n.authType==="basic"?($(),I("div",ty,[Q(Ze,{label:_(o)("detail.authTypeBasicUsername")},{default:fe(()=>[Q(vt,{value:n.authUsername,placeholder:"admin",onInput:J[11]||(J[11]=Y=>s("update:authUsername",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Ze,{label:_(o)("detail.authTypeBasicPassword")},{default:fe(()=>[Q(vt,{value:n.authPassword,type:"password",placeholder:"••••••••",onInput:J[12]||(J[12]=Y=>s("update:authPassword",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"])])):n.authType==="apikey"?($(),I("div",ny,[Q(Ze,{label:_(o)("detail.authTypeApiKeyName")},{default:fe(()=>[Q(vt,{value:n.authKeyName,placeholder:"X-API-Key",onInput:J[13]||(J[13]=Y=>s("update:authKeyName",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Ze,{label:_(o)("detail.authTypeApiKeyValue")},{default:fe(()=>[Q(vt,{value:n.authKeyValue,placeholder:"sk_live_...",onInput:J[14]||(J[14]=Y=>s("update:authKeyValue",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Ze,{label:_(o)("detail.authTypeApiKeyLocation")},{default:fe(()=>[y("div",sy,[y("select",{class:"w-full appearance-none rounded 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:n.authKeyLocation,onChange:J[15]||(J[15]=Y=>s("update:authKeyLocation",Y.target?.value))},[y("option",oy,N(_(o)("detail.authTypeApiKeyLocationHeader")),1),y("option",ay,N(_(o)("detail.authTypeApiKeyLocationQuery")),1)],40,ry),J[26]||(J[26]=y("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"},[y("span",{class:"i-[carbon--chevron-down] block h-4 w-4"})],-1))])]),_:1},8,["label"])])):n.authType==="custom"?($(),I("div",ly,[Q(Ze,{label:_(o)("detail.authTypeCustomName")},{default:fe(()=>[Q(vt,{value:n.authCustomName,placeholder:"X-Custom-Auth",onInput:J[16]||(J[16]=Y=>s("update:authCustomName",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Ze,{label:_(o)("detail.authTypeCustomValue")},{default:fe(()=>[Q(vt,{value:n.authCustomValue,placeholder:"value",onInput:J[17]||(J[17]=Y=>s("update:authCustomValue",Y.target?.value??""))},null,8,["value"])]),_:1},8,["label"])])):pe("",!0)])):u.value==="headers"?($(),I("div",iy,[Q(Ze,{label:_(o)("detail.headers")},{default:fe(()=>[Q(_(r),{"model-value":n.headersText,language:"json",rows:4,"format-label":_(o)("detail.formatJson"),placeholder:_(o)("detail.headersPlaceholder",{json:My}),"onUpdate:modelValue":J[18]||(J[18]=Y=>s("update:headersText",Y))},null,8,["model-value","format-label","placeholder"])]),_:1},8,["label"])])):u.value==="body"?($(),I("div",uy,[Q(Ze,{label:_(o)("detail.bodyType")},{default:fe(()=>[y("div",cy,[($(!0),I(ye,null,Ue(m.value,Y=>($(),I("label",{key:Y.value,class:ce(["inline-flex items-center gap-2 rounded border px-3 py-1 transition border-pg-border bg-pg-surface-strong",Y.disabled?"opacity-60 cursor-not-allowed":"text-pg-text-soft"])},[y("input",{class:"h-3.5 w-3.5 rounded border-pg-border text-pg-accent",type:"radio",name:"bodyType",disabled:Y.disabled,checked:n.bodyType===Y.value,onChange:v=>Y.disabled?null:s("update:bodyType",Y.value)},null,40,dy),y("span",null,N(Y.label),1)],2))),128))])]),_:1},8,["label"]),n.bodyType==="raw"?($(),I("div",fy,[Q(Ze,{label:_(o)("detail.rawType"),class:"flex-1 min-w-[200px]"},{default:fe(()=>[y("div",py,[y("select",{class:"w-full appearance-none rounded 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:n.rawType,onChange:J[19]||(J[19]=Y=>s("update:rawType",Y.target?.value))},[($(!0),I(ye,null,Ue(R.value,Y=>($(),I("option",{key:Y.value,value:Y.value},N(Y.label),9,my))),128))],40,gy),J[27]||(J[27]=y("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"},[y("span",{class:"i-[carbon--chevron-down] block h-4 w-4"})],-1))])]),_:1},8,["label"]),n.rawType==="json"?($(),I("label",hy,[y("input",{type:"checkbox",class:"h-4 w-4 rounded border-pg-border text-pg-accent",checked:n.rawValidate,onChange:J[20]||(J[20]=Y=>s("update:rawValidate",Y.target?.checked??!0))},null,40,by),y("span",null,N(_(o)("detail.rawValidate")),1)])):pe("",!0)])):pe("",!0),n.bodyType==="none"?($(),I("div",yy,N(_(o)("detail.bodyNoneHint")),1)):n.bodyType==="binary"?($(),I("div",vy,[Q(Ze,{label:_(o)("detail.bodyBinaryFile")},{default:fe(()=>[y("div",xy,[y("label",_y,[y("input",{class:"sr-only",type:"file",onChange:De},null,32),y("span",null,N(n.binaryFile?_(o)("detail.bodyBinarySelected",{name:n.binaryFile.name,size:Ke(n.binaryFile.size)}):_(o)("detail.bodyBinaryChoose")),1)]),n.binaryFile?($(),I("button",{key:0,class:"rounded 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:Ce},N(_(o)("detail.bodyBinaryRemove")),1)):pe("",!0)])]),_:1},8,["label"])])):($(),dt(Ze,{key:3,label:_(o)("detail.body")},{default:fe(()=>[Q(_(r),{"model-value":n.bodyText,language:ge.value,rows:6,"format-label":_(o)("detail.formatJson"),placeholder:q(),"onUpdate:modelValue":J[21]||(J[21]=Y=>s("update:bodyText",Y))},null,8,["model-value","language","format-label","placeholder"])]),_:1},8,["label"])),n.bodyType==="form-data"?($(),I("div",wy,[Q(Ze,{label:_(o)("detail.bodyMultipartFiles")},{default:fe(()=>[y("div",Ty,[($(!0),I(ye,null,Ue(n.multipartFiles,Y=>($(),I("div",{key:Y.id,class:"rounded border p-3 border-pg-border bg-pg-surface-strong"},[y("div",ky,[Q(vt,{class:"flex-1",value:Y.name,placeholder:_(o)("detail.bodyMultipartField"),onInput:v=>ve(Y.id,v.target?.value??"")},null,8,["value","placeholder","onInput"]),y("label",Cy,[y("input",{class:"sr-only",type:"file",multiple:"",onChange:v=>ke(Y.id,v)},null,40,Sy),y("span",null,N(Ne(Y)),1)]),y("button",{class:"rounded 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:v=>be(Y.id)},N(_(o)("detail.bodyMultipartRemove")),9,Ey)])]))),128)),y("button",{class:"w-full rounded 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:we},N(_(o)("detail.bodyMultipartAdd")),1)])]),_:1},8,["label"])])):pe("",!0)])):pe("",!0),Hs(y("div",Ry,[Q(fb,Zt(i.value,{"config-status-map":n.configStatusMap,"workspace-root":n.workspaceRoot}),null,16,["config-status-map","workspace-root"])],512),[[Bs,u.value==="config"]]),Hs(y("div",Py,[Q(Eb,{selected:n.selected,"workspace-root":n.workspaceRoot},null,8,["selected","workspace-root"])],512),[[Bs,u.value==="middlewares"]])])])]))}}),Dy={class:"flex min-h-[240px] flex-1 flex-col rounded border border-pg-border bg-pg-surface-card"},Uy={class:"flex flex-wrap items-center justify-between gap-2 border-b px-4 py-3 text-[0.65rem] uppercase tracking-[0.3em] border-pg-border text-pg-text-muted"},Vy={class:"flex flex-wrap items-center gap-3 text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},Ky={class:"flex flex-wrap items-center gap-4 border-b px-4 pt-2 text-[0.65rem] uppercase tracking-[0.25em] border-pg-border",role:"tablist"},jy=["aria-selected"],Hy=["aria-selected"],Wy=["aria-selected"],By={class:"flex-1 min-h-0 overflow-auto p-4"},Gy={key:0,class:"flex h-full flex-col gap-3"},qy={class:"flex flex-wrap items-center gap-3 text-[0.6rem] uppercase tracking-[0.25em] text-pg-text-muted"},zy=["disabled"],Jy={class:"flex-1"},Yy={key:0,class:"min-h-[160px] rounded border p-4 text-xs border-pg-border bg-pg-surface-strong text-pg-text","data-testid":"playground-response"},Xy={key:1,class:"min-h-[160px] rounded border p-4 text-xs border-pg-border bg-pg-surface-strong text-pg-text"},Qy={key:2,class:"min-h-[160px] rounded border p-4 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},Zy=["srcdoc","title"],ev={key:1,class:"min-h-[160px] rounded border p-4 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},tv={key:0},nv={key:1,class:"flex flex-col gap-2 text-xs text-pg-text-soft"},sv={class:"rounded border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-card text-pg-text-soft"},rv={class:"text-pg-text"},ov={key:2,class:"min-h-[160px] rounded border p-4 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},av=Ge({__name:"PostmanResponseView",props:{responseRaw:{},responsePretty:{},responseHeaders:{},responseContentType:{},responseStatus:{},responseTime:{}},setup(e){const t=e,{t:n}=nt(),s=ee("body"),r=ee("pretty"),o=V(()=>t.responseStatus||n("response.idle")),a=V(()=>t.responseTime||n("response.waiting")),l=V(()=>{const p=t.responseRaw??"";if(!p)return n("response.size",{size:"0 B"});const b=typeof TextEncoder>"u"?p.length:new TextEncoder().encode(p).length,x=b<1024?`${b} B`:b<1024*1024?`${(b/1024).toFixed(1)} KB`:`${(b/(1024*1024)).toFixed(1)} MB`;return n("response.size",{size:x})}),i=V(()=>t.responsePretty||n("response.empty")),u=V(()=>t.responseRaw||t.responsePretty||n("response.empty")),c=V(()=>Object.entries(t.responseHeaders)),f=V(()=>t.responseContentType.toLowerCase().includes("text/html")),h=V(()=>t.responseRaw||t.responsePretty);return ht(f,p=>{!p&&r.value==="preview"&&(r.value="pretty")}),(p,b)=>($(),I("section",Dy,[y("div",Uy,[y("span",null,N(_(n)("detail.responseLabel")),1),y("span",Vy,[y("span",null,N(o.value),1),y("span",null,N(a.value),1),y("span",null,N(l.value),1)])]),y("div",Ky,[y("button",{type:"button",role:"tab","aria-selected":s.value==="body",class:ce(["border-b-2 pb-2 transition",s.value==="body"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:b[0]||(b[0]=x=>s.value="body")},N(_(n)("response.bodyTab")),11,jy),y("button",{type:"button",role:"tab","aria-selected":s.value==="headers",class:ce(["border-b-2 pb-2 transition",s.value==="headers"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:b[1]||(b[1]=x=>s.value="headers")},N(_(n)("response.headersTab")),11,Hy),y("button",{type:"button",role:"tab","aria-selected":s.value==="cookies",class:ce(["border-b-2 pb-2 transition",s.value==="cookies"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:b[2]||(b[2]=x=>s.value="cookies")},N(_(n)("response.cookiesTab")),11,Wy)]),y("div",By,[s.value==="body"?($(),I("div",Gy,[y("div",qy,[y("button",{type:"button",class:ce(["rounded border px-3 py-1 transition border-pg-border",r.value==="pretty"?"bg-pg-hover text-pg-text-strong":"text-pg-text-muted hover:text-pg-text-soft"]),onClick:b[3]||(b[3]=x=>r.value="pretty")},N(_(n)("response.prettyTab")),3),y("button",{type:"button",class:ce(["rounded border px-3 py-1 transition border-pg-border",r.value==="raw"?"bg-pg-hover text-pg-text-strong":"text-pg-text-muted hover:text-pg-text-soft"]),onClick:b[4]||(b[4]=x=>r.value="raw")},N(_(n)("response.rawTab")),3),y("button",{type:"button",class:ce(["rounded border px-3 py-1 transition border-pg-border disabled:cursor-not-allowed disabled:opacity-60",r.value==="preview"?"bg-pg-hover text-pg-text-strong":"text-pg-text-muted hover:text-pg-text-soft"]),disabled:!f.value,onClick:b[5]||(b[5]=x=>r.value="preview")},N(_(n)("response.previewTab")),11,zy)]),y("div",Jy,[r.value==="pretty"?($(),I("pre",Yy,N(i.value),1)):r.value==="raw"?($(),I("pre",Xy,N(u.value),1)):r.value==="preview"&&!f.value?($(),I("div",Qy,N(_(n)("response.previewEmpty")),1)):($(),I("iframe",{key:3,class:"min-h-[160px] w-full rounded border bg-white",srcdoc:h.value,sandbox:"",title:_(n)("response.previewTab")},null,8,Zy))])])):s.value==="headers"?($(),I("div",ev,[c.value.length===0?($(),I("div",tv,N(_(n)("response.headersEmpty")),1)):($(),I("div",nv,[($(!0),I(ye,null,Ue(c.value,([x,F])=>($(),I("div",{key:x,class:"flex flex-wrap items-center gap-2"},[y("span",sv,N(x),1),y("span",rv,N(F),1)]))),128))]))])):($(),I("div",ov,N(_(n)("response.cookiesEmpty")),1))])]))}}),lv={class:"flex min-h-0 flex-col gap-4"},iv={key:0,class:"flex h-full flex-col items-center justify-center gap-3 rounded border p-6 text-center border-pg-border bg-pg-surface-card text-pg-text-muted"},uv={class:"text-xl font-display text-pg-text-strong"},cv={class:"text-sm"},dv={key:1,class:"relative flex min-h-0 h-full flex-col gap-4"},fv=Ge({__name:"RouteDetail",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},rawType:{},rawValidate:{type:Boolean},multipartFiles:{},binaryFile:{},authType:{},authToken:{},authUsername:{},authPassword:{},authKeyName:{},authKeyValue:{},authKeyLocation:{},authCustomName:{},authCustomValue:{},responseRaw:{},responsePretty:{},responseHeaders:{},responseContentType:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:rawType","update:rawValidate","update:multipartFiles","update:binaryFile","update:authType","update:authToken","update:authUsername","update:authPassword","update:authKeyName","update:authKeyValue","update:authKeyLocation","update:authCustomName","update:authCustomValue","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=nt();return(o,a)=>($(),I("section",lv,[n.selected?($(),I("div",dv,[Q(Oy,{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,"raw-type":n.rawType,"raw-validate":n.rawValidate,"multipart-files":n.multipartFiles,"binary-file":n.binaryFile,"auth-type":n.authType,"auth-token":n.authToken,"auth-username":n.authUsername,"auth-password":n.authPassword,"auth-key-name":n.authKeyName,"auth-key-value":n.authKeyValue,"auth-key-location":n.authKeyLocation,"auth-custom-name":n.authCustomName,"auth-custom-value":n.authCustomValue,"is-sw-registering":n.isSwRegistering,"config-status-map":n.configStatusMap,"onUpdate:queryText":a[0]||(a[0]=l=>s("update:queryText",l)),"onUpdate:headersText":a[1]||(a[1]=l=>s("update:headersText",l)),"onUpdate:bodyText":a[2]||(a[2]=l=>s("update:bodyText",l)),"onUpdate:bodyType":a[3]||(a[3]=l=>s("update:bodyType",l)),"onUpdate:rawType":a[4]||(a[4]=l=>s("update:rawType",l)),"onUpdate:rawValidate":a[5]||(a[5]=l=>s("update:rawValidate",l)),"onUpdate:multipartFiles":a[6]||(a[6]=l=>s("update:multipartFiles",l)),"onUpdate:binaryFile":a[7]||(a[7]=l=>s("update:binaryFile",l)),"onUpdate:authType":a[8]||(a[8]=l=>s("update:authType",l)),"onUpdate:authToken":a[9]||(a[9]=l=>s("update:authToken",l)),"onUpdate:authUsername":a[10]||(a[10]=l=>s("update:authUsername",l)),"onUpdate:authPassword":a[11]||(a[11]=l=>s("update:authPassword",l)),"onUpdate:authKeyName":a[12]||(a[12]=l=>s("update:authKeyName",l)),"onUpdate:authKeyValue":a[13]||(a[13]=l=>s("update:authKeyValue",l)),"onUpdate:authKeyLocation":a[14]||(a[14]=l=>s("update:authKeyLocation",l)),"onUpdate:authCustomName":a[15]||(a[15]=l=>s("update:authCustomName",l)),"onUpdate:authCustomValue":a[16]||(a[16]=l=>s("update:authCustomValue",l)),"onUpdate:paramValue":a[17]||(a[17]=(l,i)=>s("update:param-value",l,i)),onRun:a[18]||(a[18]=l=>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","raw-type","raw-validate","multipart-files","binary-file","auth-type","auth-token","auth-username","auth-password","auth-key-name","auth-key-value","auth-key-location","auth-custom-name","auth-custom-value","is-sw-registering","config-status-map"]),Q(av,{"response-raw":n.responseRaw,"response-pretty":n.responsePretty,"response-headers":n.responseHeaders,"response-content-type":n.responseContentType,"response-status":n.responseStatus,"response-time":n.responseTime},null,8,["response-raw","response-pretty","response-headers","response-content-type","response-status","response-time"])])):($(),I("div",iv,[y("p",uv,N(_(r)("detail.selectTitle")),1),y("p",cv,N(_(r)("detail.selectHint")),1)]))]))}}),pv={class:"flex min-h-0 flex-col gap-4"},gv={class:"rounded border p-5 border-pg-border bg-pg-surface-card"},mv={class:"flex flex-wrap items-center justify-between gap-3"},hv={class:"flex flex-col gap-1"},bv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},yv={class:"flex flex-wrap items-center gap-2"},vv={class:"text-lg font-display text-pg-text-strong"},xv={class:"text-xs text-pg-text-subtle"},_v={class:"flex items-center gap-2"},wv=["aria-label","title"],Tv={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},kv={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Cv={key:0,class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Sv={class:"flex flex-wrap items-start justify-between gap-3"},Ev={class:"flex flex-col gap-1"},Rv={class:"flex flex-wrap items-center gap-2"},Pv={class:"text-[0.85rem] font-semibold text-pg-text"},$v={key:0,class:"text-[0.75rem] text-pg-text-muted"},Mv={key:1,class:"text-[0.7rem] text-pg-text-subtle"},Lv=["aria-label","title","onClick"],Iv={key:1,class:"mt-3 text-xs text-pg-text-muted"},Nv={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Av={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Fv={key:0,class:"mt-3 flex flex-col gap-2 text-xs text-pg-text-soft"},Ov={class:"rounded border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},Dv={class:"text-[0.7rem] text-pg-text-subtle"},Uv={key:1,class:"mt-3 text-xs text-pg-text-muted"},Vv={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Kv={class:"flex items-center gap-2 text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},jv={key:0,class:"mt-3 flex flex-col gap-3 text-sm text-pg-text-soft"},Hv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Wv={class:"mt-1 text-[0.75rem] text-pg-text-soft"},Bv={class:"whitespace-pre-wrap"},Gv={key:1,class:"mt-3 text-xs text-pg-text-muted"},qv={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},zv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Jv={class:"mt-3 grid gap-2 text-sm text-pg-text-soft"},Yv={key:0,class:"flex items-center gap-2"},Xv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},Qv={key:1,class:"flex items-center gap-2"},Zv={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},ex={class:"flex items-center gap-2"},tx={class:"text-[0.6rem] uppercase tracking-[0.3em] text-pg-text-muted"},nx={class:"text-pg-text-subtle"},Al=Ge({__name:"RouteDetailInactive",props:{mode:{},selected:{},workspaceRoot:{},configStatusMap:{}},setup(e){const t=e,{t:n}=nt(),s=V(()=>t.mode==="ignored"?n("inactive.titleIgnored"):n("inactive.titleDisabled")),r=V(()=>t.mode==="ignored"?n(`ignored.reason.${t.selected.reason}`):n(`disabled.reason.${t.selected.reason}`)),o=V(()=>t.selected.file),a=V(()=>t.mode==="disabled"?t.selected.method:void 0),l=V(()=>t.mode==="disabled"?t.selected.url:void 0),i=V(()=>l.value??o.value);function u(k){return k?`method-${k.toLowerCase()}`:""}const c=V(()=>t.selected.decisionChain??[]),f=V(()=>t.selected.configChain??[]),h=V(()=>f.value.map((k,m)=>({file:k,order:m+1,disabled:t.configStatusMap.get(k)==="disabled"})));function p(k){return Array.isArray(k)?k.join(", "):k&&typeof k=="object"?JSON.stringify(k,null,2):String(k)}const b=V(()=>t.selected.effectiveConfig??{}),x=V(()=>{const k=[],m=b.value;return typeof m.enabled=="boolean"&&k.push({key:"enabled",label:n("inactive.config.enabled"),value:String(m.enabled)}),typeof m.status=="number"&&k.push({key:"status",label:n("inactive.config.status"),value:String(m.status)}),typeof m.delay=="number"&&k.push({key:"delay",label:n("inactive.config.delay"),value:`${m.delay}ms`}),typeof m.ignorePrefix<"u"&&k.push({key:"ignorePrefix",label:n("inactive.config.ignorePrefix"),value:p(m.ignorePrefix)}),typeof m.include<"u"&&k.push({key:"include",label:n("inactive.config.include"),value:p(m.include)}),typeof m.exclude<"u"&&k.push({key:"exclude",label:n("inactive.config.exclude"),value:p(m.exclude)}),m.headers&&Object.keys(m.headers).length>0&&k.push({key:"headers",label:n("inactive.config.headers"),value:p(m.headers)}),k});function F(k){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")}[k.step]??k.step}function w(k){return Pn(k,t.workspaceRoot)}function M(k){Is(k,t.workspaceRoot)}return(k,m)=>($(),I("section",pv,[y("div",gv,[y("div",mv,[y("div",hv,[y("span",bv,N(s.value),1),y("div",yv,[a.value?($(),I("span",{key:0,class:ce(["rounded border px-3 py-1 text-[0.6rem] uppercase tracking-[0.2em]",u(a.value)])},N(a.value),3)):pe("",!0),y("span",vv,N(i.value),1)]),y("span",xv,N(o.value),1)]),y("div",_v,[Q(We,{tone:"chip",size:"sm",caps:!1},{default:fe(()=>[Pe(N(r.value),1)]),_:1}),w(o.value)?($(),I("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 ${o.value} in VS Code`,title:_(n)("detail.openInVscode"),onClick:m[0]||(m[0]=R=>M(o.value))},[...m[1]||(m[1]=[y("span",{class:"i-[carbon--launch] h-4 w-4","aria-hidden":"true"},null,-1)])],8,wv)):pe("",!0)])])]),y("div",Tv,[y("div",kv,[y("span",null,N(_(n)("inactive.decisionChain")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(c.value.length),1)]),_:1})]),c.value.length>0?($(),I("div",Cv,[($(!0),I(ye,null,Ue(c.value,(R,C)=>($(),I("div",{key:`decision-${C}-${R.step}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[y("div",Sv,[y("div",Ev,[y("div",Rv,[y("span",{class:ce(["rounded border px-2 py-0.5 text-[0.55rem] uppercase tracking-[0.2em]",R.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(R.result==="pass"?_(n)("inactive.pass"):_(n)("inactive.fail")),3),y("span",Pv,N(F(R)),1)]),R.detail?($(),I("span",$v,N(R.detail),1)):pe("",!0),R.source?($(),I("span",Mv,N(R.source),1)):pe("",!0)]),R.source&&w(R.source)?($(),I("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 ${R.source} in VS Code`,title:_(n)("detail.openInVscode"),onClick:L=>M(R.source)},[...m[2]||(m[2]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Lv)):pe("",!0)])]))),128))])):($(),I("div",Iv,N(_(n)("inactive.decisionChainEmpty")),1))]),y("div",Nv,[y("div",Av,[y("span",null,N(_(n)("detail.configChain")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(h.value.length),1)]),_:1})]),h.value.length>0?($(),I("div",Fv,[($(!0),I(ye,null,Ue(h.value,R=>($(),I("div",{key:`config-${R.order}-${R.file}`,class:"flex flex-wrap items-center gap-2"},[y("span",Ov,N(R.order),1),y("span",Dv,N(R.file),1),R.disabled?($(),dt(We,{key:0,tone:"strong",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(_(n)("configPanel.statusDisabled")),1)]),_:1})):pe("",!0)]))),128))])):($(),I("div",Uv,N(_(n)("detail.configChainEmpty")),1))]),y("div",Vv,[y("div",Kv,[y("span",null,N(_(n)("inactive.effectiveConfig")),1),Q(We,{tone:"chip",size:"xxs",caps:!1},{default:fe(()=>[Pe(N(x.value.length),1)]),_:1})]),x.value.length>0?($(),I("div",jv,[($(!0),I(ye,null,Ue(x.value,R=>($(),I("div",{key:`config-entry-${R.key}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[y("div",Hv,N(R.label),1),y("div",Wv,[y("code",Bv,N(R.value),1)])]))),128))])):($(),I("div",Gv,N(_(n)("inactive.effectiveConfigEmpty")),1))]),y("div",qv,[y("div",zv,N(_(n)("inactive.routeSummary")),1),y("div",Jv,[a.value?($(),I("div",Yv,[y("span",Xv,N(_(n)("inactive.summaryMethod")),1),y("span",null,N(a.value),1)])):pe("",!0),l.value?($(),I("div",Qv,[y("span",Zv,N(_(n)("inactive.summaryPath")),1),y("span",null,N(l.value),1)])):pe("",!0),y("div",ex,[y("span",tx,N(_(n)("inactive.summaryFile")),1),y("span",nx,N(o.value),1)])])])]))}}),sx={key:4,class:"flex h-full flex-col items-center justify-center gap-3 rounded border p-6 text-center border-pg-border bg-pg-surface-card text-pg-text-muted"},rx={class:"text-xl font-display text-pg-text-strong"},ox={class:"text-sm"},ax=Ge({__name:"PlaygroundContent",props:{selected:{},selectedDisabled:{},selectedIgnored:{},selectedConfig:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},rawType:{},rawValidate:{type:Boolean},multipartFiles:{},binaryFile:{},authType:{},authToken:{},authUsername:{},authPassword:{},authKeyName:{},authKeyValue:{},authKeyLocation:{},authCustomName:{},authCustomValue:{},responseRaw:{},responsePretty:{},responseHeaders:{},responseContentType:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},routeMode:{},enabledMode:{},disabledMode:{},configImpactRoutes:{},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:rawType","update:rawValidate","update:multipartFiles","update:binaryFile","update:authType","update:authToken","update:authUsername","update:authPassword","update:authKeyName","update:authKeyValue","update:authKeyLocation","update:authCustomName","update:authCustomValue","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=nt(),o=V(()=>n.routeMode==="active"&&n.enabledMode==="api"),a=V(()=>n.routeMode==="disabled"&&n.disabledMode==="api"),l=V(()=>n.routeMode==="ignored"),i=V(()=>n.selectedConfig?n.configStatusMap.get(n.selectedConfig.file)??"enabled":"enabled"),u=V(()=>n.routeMode==="disabled"?r("states.disabledTitle"):n.routeMode==="ignored"?r("states.ignoredTitle"):r("states.configTitle")),c=V(()=>n.routeMode==="disabled"?r("states.disabledHint"):n.routeMode==="ignored"?r("states.ignoredHint"):r("states.configHint")),f=V({get:()=>n.queryText,set:X=>s("update:queryText",X)}),h=V({get:()=>n.headersText,set:X=>s("update:headersText",X)}),p=V({get:()=>n.bodyText,set:X=>s("update:bodyText",X)}),b=V({get:()=>n.bodyType,set:X=>s("update:bodyType",X)}),x=V({get:()=>n.rawType,set:X=>s("update:rawType",X)}),F=V({get:()=>n.rawValidate,set:X=>s("update:rawValidate",X)}),w=V({get:()=>n.multipartFiles,set:X=>s("update:multipartFiles",X)}),M=V({get:()=>n.binaryFile,set:X=>s("update:binaryFile",X)}),k=V({get:()=>n.authType,set:X=>s("update:authType",X)}),m=V({get:()=>n.authToken,set:X=>s("update:authToken",X)}),R=V({get:()=>n.authUsername,set:X=>s("update:authUsername",X)}),C=V({get:()=>n.authPassword,set:X=>s("update:authPassword",X)}),L=V({get:()=>n.authKeyName,set:X=>s("update:authKeyName",X)}),H=V({get:()=>n.authKeyValue,set:X=>s("update:authKeyValue",X)}),z=V({get:()=>n.authKeyLocation,set:X=>s("update:authKeyLocation",X)}),ne=V({get:()=>n.authCustomName,set:X=>s("update:authCustomName",X)}),ae=V({get:()=>n.authCustomValue,set:X=>s("update:authCustomValue",X)}),G=V(()=>n.workspaceRoot??"");function me(X,B){s("update:param-value",X,B)}function se(){s("run")}return(X,B)=>o.value?($(),dt(fv,{key:0,queryText:f.value,"onUpdate:queryText":B[0]||(B[0]=W=>f.value=W),headersText:h.value,"onUpdate:headersText":B[1]||(B[1]=W=>h.value=W),bodyText:p.value,"onUpdate:bodyText":B[2]||(B[2]=W=>p.value=W),bodyType:b.value,"onUpdate:bodyType":B[3]||(B[3]=W=>b.value=W),rawType:x.value,"onUpdate:rawType":B[4]||(B[4]=W=>x.value=W),rawValidate:F.value,"onUpdate:rawValidate":B[5]||(B[5]=W=>F.value=W),multipartFiles:w.value,"onUpdate:multipartFiles":B[6]||(B[6]=W=>w.value=W),binaryFile:M.value,"onUpdate:binaryFile":B[7]||(B[7]=W=>M.value=W),authType:k.value,"onUpdate:authType":B[8]||(B[8]=W=>k.value=W),authToken:m.value,"onUpdate:authToken":B[9]||(B[9]=W=>m.value=W),authUsername:R.value,"onUpdate:authUsername":B[10]||(B[10]=W=>R.value=W),authPassword:C.value,"onUpdate:authPassword":B[11]||(B[11]=W=>C.value=W),authKeyName:L.value,"onUpdate:authKeyName":B[12]||(B[12]=W=>L.value=W),authKeyValue:H.value,"onUpdate:authKeyValue":B[13]||(B[13]=W=>H.value=W),authKeyLocation:z.value,"onUpdate:authKeyLocation":B[14]||(B[14]=W=>z.value=W),authCustomName:ne.value,"onUpdate:authCustomName":B[15]||(B[15]=W=>ne.value=W),authCustomValue:ae.value,"onUpdate:authCustomValue":B[16]||(B[16]=W=>ae.value=W),selected:n.selected,"request-url":n.requestUrl,"workspace-root":G.value,"response-raw":n.responseRaw,"response-pretty":n.responsePretty,"response-headers":n.responseHeaders,"response-content-type":n.responseContentType,"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":me,onRun:se},null,8,["queryText","headersText","bodyText","bodyType","rawType","rawValidate","multipartFiles","binaryFile","authType","authToken","authUsername","authPassword","authKeyName","authKeyValue","authKeyLocation","authCustomName","authCustomValue","selected","request-url","workspace-root","response-raw","response-pretty","response-headers","response-content-type","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","config-status-map"])):a.value&&n.selectedDisabled?($(),dt(Al,{key:1,mode:"disabled",selected:n.selectedDisabled,"workspace-root":G.value,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):l.value&&n.selectedIgnored?($(),dt(Al,{key:2,mode:"ignored",selected:n.selectedIgnored,"workspace-root":G.value,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):n.selectedConfig?($(),dt(zh,{key:3,selected:n.selectedConfig,impacted:n.configImpactRoutes,"is-disabled":i.value==="disabled","workspace-root":G.value},null,8,["selected","impacted","is-disabled","workspace-root"])):($(),I("div",sx,[y("p",rx,N(u.value),1),y("p",ox,N(c.value),1)]))}}),zu="mokup.playground.theme";function Ju(){try{const e=localStorage.getItem(zu);if(e==="system"||e==="light"||e==="dark")return e}catch{}return null}function lx(e){try{localStorage.setItem(zu,e)}catch{}}function ix(e){return e==="system"?"light":e==="light"?"dark":"system"}function Yu(e,t){return e==="dark"?"dark":e==="light"?"light":t?"dark":"light"}function rr(e,t){const n=Yu(e,t);return document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,n}function ux(){const e=Ju()??"system",t=window.matchMedia("(prefers-color-scheme: dark)").matches;return rr(e,t),e}function cx(){const e=ee("system"),t=ee(!1);let n=null;const s=V(()=>Yu(e.value,t.value)),r=()=>{n&&(t.value=n.matches,e.value==="system"&&rr(e.value,t.value))};function o(l){e.value=l,lx(l),rr(l,t.value)}function a(){o(ix(e.value))}return En(()=>{n=window.matchMedia("(prefers-color-scheme: dark)"),t.value=n.matches,e.value=Ju()??"system",rr(e.value,t.value),n.addEventListener("change",r)}),Rn(()=>{n?.removeEventListener("change",r),n=null}),{themeMode:e,effectiveTheme:s,setThemeMode:o,cycleThemeMode:a}}const dx={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",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar"},theme:{system:"System",light:"Light",dark:"Dark"},filters:{search:"Search",base:"Base",searchPlaceholder:"Search method:post path:/users file:auth"},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:"Send",copyMenu:"Copy",copyMenuDone:"Copied",copyUrl:"Copy URL",copyCurl:"Copy cURL",copyFetch:"Copy fetch",info:"Info",infoTitle:"Route info",infoMethod:"Method",infoPath:"Path",infoFile:"File",infoType:"Type",infoStatus:"Status",infoDelay:"Delay",params:"Params",auth:"Auth",bodyTypeNone:"none",bodyTypeFormData:"form-data",bodyTypeFormUrlencoded:"x-www-form-urlencoded",bodyTypeRaw:"raw",bodyTypeBinary:"binary",bodyTypeGraphql:"GraphQL",rawType:"raw type",rawTypeText:"text",rawTypeJavascript:"javascript",rawTypeJson:"json",rawTypeHtml:"html",rawTypeXml:"xml",rawTypeWxml:"wxml",rawValidate:"Validate JSON",formatJson:"Format JSON",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}",bodyPlaceholderRawText:"{sample}",bodyPlaceholderRawJavascript:"{sample}",bodyPlaceholderRawJson:"{json}",bodyPlaceholderRawHtml:"{sample}",bodyPlaceholderRawXml:"{sample}",bodyPlaceholderRawWxml:"{sample}",bodyPlaceholderFormData:"{sample}",bodyPlaceholderFormUrlencoded:"{sample}",bodyMultipartFiles:"Files",bodyMultipartField:"Field name",bodyMultipartChoose:"Choose files",bodyMultipartAdd:"Add file field",bodyMultipartRemove:"Remove",bodyMultipartCount:"{count} files",paramPlaceholder:"value",paramPlaceholderCatchall:"path/segments",authPlaceholder:"Auth configuration is not available yet.",authType:"Auth type",authTypeNone:"No Auth",authTypeBearer:"Bearer Token",authTypeBearerToken:"Token",authTypeBasic:"Basic Auth",authTypeBasicUsername:"Username",authTypeBasicPassword:"Password",authTypeApiKey:"API Key",authTypeApiKeyName:"Key name",authTypeApiKeyValue:"Key value",authTypeApiKeyLocation:"Add to",authTypeApiKeyLocationHeader:"Header",authTypeApiKeyLocationQuery:"Query Params",authTypeCustom:"Custom Header",authTypeCustomName:"Header name",authTypeCustomValue:"Header value",bodyNoneHint:"This request has no body.",bodyBinaryFile:"Binary file",bodyBinaryChoose:"Choose file",bodyBinarySelected:"{name} ({size})",bodyBinaryRemove:"Remove file"},response:{idle:"Idle",empty:"No response yet.",waiting:"Waiting for response...",loading:"Loading...",error:"Error",emptyPayload:"[empty response]",bodyTab:"Body",headersTab:"Headers",cookiesTab:"Cookies",prettyTab:"Pretty",rawTab:"Raw",previewTab:"Preview",previewEmpty:"Preview not available.",headersEmpty:"No response headers.",cookiesEmpty:"No cookies.",size:"Size: {size}"},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"}}},fx={header:{title:"接口调试台",subtitle:"查看 Mock 接口、构造请求并验证响应,无需离开开发服务器。",refresh:"刷新",routes:"{count} 条接口",calls:"已调用 {count} 次",mode:"模式:{mode}",modeSw:"SW",modeSwRegistering:"SW 注册中",modeServer:"服务端",languageToggle:"语言",themeToggle:"主题"},controls:{more:"更多",collapseSidebar:"收起侧边栏",expandSidebar:"展开侧边栏"},theme:{system:"跟随系统",light:"亮色",dark:"暗色"},filters:{search:"搜索",base:"基路径",searchPlaceholder:"例如 method:post path:/users file:auth"},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:"发送",copyMenu:"复制",copyMenuDone:"已复制",copyUrl:"复制 URL",copyCurl:"复制 cURL",copyFetch:"复制 fetch",info:"信息",infoTitle:"路由信息",infoMethod:"方法",infoPath:"路径",infoFile:"文件",infoType:"类型",infoStatus:"状态码",infoDelay:"延迟",params:"路径参数",auth:"鉴权",bodyTypeNone:"none",bodyTypeFormData:"form-data",bodyTypeFormUrlencoded:"x-www-form-urlencoded",bodyTypeRaw:"raw",bodyTypeBinary:"binary",bodyTypeGraphql:"GraphQL",rawType:"raw 类型",rawTypeText:"text",rawTypeJavascript:"javascript",rawTypeJson:"json",rawTypeHtml:"html",rawTypeXml:"xml",rawTypeWxml:"wxml",rawValidate:"校验 JSON",formatJson:"格式化 JSON",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}",bodyPlaceholderRawText:"{sample}",bodyPlaceholderRawJavascript:"{sample}",bodyPlaceholderRawJson:"{json}",bodyPlaceholderRawHtml:"{sample}",bodyPlaceholderRawXml:"{sample}",bodyPlaceholderRawWxml:"{sample}",bodyPlaceholderFormData:"{sample}",bodyPlaceholderFormUrlencoded:"{sample}",bodyMultipartFiles:"文件",bodyMultipartField:"字段名",bodyMultipartChoose:"选择文件",bodyMultipartAdd:"新增文件字段",bodyMultipartRemove:"移除",bodyMultipartCount:"{count} 个文件",paramPlaceholder:"填写值",paramPlaceholderCatchall:"路径片段",authPlaceholder:"暂无鉴权配置。",authType:"鉴权类型",authTypeNone:"无鉴权",authTypeBearer:"Bearer Token",authTypeBearerToken:"Token",authTypeBasic:"Basic 认证",authTypeBasicUsername:"用户名",authTypeBasicPassword:"密码",authTypeApiKey:"API Key",authTypeApiKeyName:"Key 名称",authTypeApiKeyValue:"Key 值",authTypeApiKeyLocation:"添加到",authTypeApiKeyLocationHeader:"请求头",authTypeApiKeyLocationQuery:"查询参数",authTypeCustom:"自定义请求头",authTypeCustomName:"请求头名称",authTypeCustomValue:"请求头值",bodyNoneHint:"该请求不包含请求体。",bodyBinaryFile:"二进制文件",bodyBinaryChoose:"选择文件",bodyBinarySelected:"{name}({size})",bodyBinaryRemove:"移除文件"},response:{idle:"空闲",empty:"暂无响应。",waiting:"等待响应...",loading:"请求中...",error:"错误",emptyPayload:"[空响应]",bodyTab:"响应体",headersTab:"响应头",cookiesTab:"Cookies",prettyTab:"Pretty",rawTab:"Raw",previewTab:"Preview",previewEmpty:"暂无可预览内容。",headersEmpty:"暂无响应头。",cookiesEmpty:"暂无 Cookies。",size:"大小:{size}"},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:"响应头"}}},Xu="mokup.playground.locale",px={"en-US":dx,"zh-CN":fx};function gx(){try{const e=localStorage.getItem(Xu);if(e==="en-US"||e==="zh-CN")return e}catch{}return null}function mx(e){try{localStorage.setItem(Xu,e)}catch{}}const hx=em({legacy:!1,locale:gx()??"en-US",fallbackLocale:"en-US",messages:px}),bx=["type"],an=Ge({__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=Lr({base:"inline-flex items-center gap-1.5 rounded border text-[0.75rem] transition",variants:{size:{xs:"px-2 py-0.5",sm:"px-2 py-1",md:"px-2.5 py-1",lg:"px-3 py-1.5"},tone:{strong:"border-pg-border bg-pg-surface-strong text-pg-text-soft hover:bg-pg-hover-strong",card:"border-pg-border bg-pg-surface-card text-pg-text-soft hover:bg-pg-hover-strong"},active:{true:"bg-pg-accent text-pg-on-accent border-pg-accent"}},defaultVariants:{size:"md",tone:"strong"}}),r=Sr(),o=V(()=>Ir(s({size:n.size,tone:n.tone,active:n.active}),r.class)),a=V(()=>{const{class:u,style:c,...f}=r;return f}),l=V(()=>r.style),i=ee(null);return t({el:i}),(u,c)=>($(),I("button",Zt({ref_key:"buttonRef",ref:i},a.value,{type:n.type,class:o.value,style:l.value}),[Cr(u.$slots,"default")],16,bx))}}),yx={class:"flex flex-none flex-wrap items-center justify-between gap-2 rounded-t border px-3 py-1.5 text-xs border-pg-border bg-pg-surface-card text-pg-text-soft"},vx={class:"flex flex-wrap items-center gap-2"},xx={class:"flex flex-wrap items-center gap-2"},_x=Ge({__name:"PlaygroundHeader",props:{visibleCount:{},totalCount:{},requestMode:{}},emits:["refresh"],setup(e,{emit:t}){const n=e,s=t,{locale:r,t:o}=nt(),{themeMode:a,effectiveTheme:l,cycleThemeMode:i}=cx(),u=V(()=>l.value==="dark"?"i-[carbon--moon]":"i-[carbon--sun]"),c=V(()=>o(`theme.${a.value}`)),f=V(()=>r.value==="zh-CN"?"中文":"EN"),h=V(()=>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")})),p=V(()=>n.requestMode==="sw-registering"?"i-[carbon--time]":n.requestMode==="sw"?"i-[carbon--network-3]":"i-[carbon--bare-metal-server]");function b(){const F=r.value==="en-US"?"zh-CN":"en-US";r.value=F,mx(F)}function x(){s("refresh")}return(F,w)=>($(),I("div",yx,[y("div",vx,[Q(We,{tone:"strong",size:"xs"},{default:fe(()=>[w[0]||(w[0]=y("span",{class:"i-[carbon--map] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),y("span",null,N(_(o)("header.routes",{count:e.visibleCount})),1)]),_:1}),Q(We,{tone:"strong",size:"xs"},{default:fe(()=>[w[1]||(w[1]=y("span",{class:"i-[carbon--activity] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),y("span",null,N(_(o)("header.calls",{count:e.totalCount})),1)]),_:1}),Q(We,{tone:"strong",size:"xs"},{default:fe(()=>[y("span",{class:ce([p.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),y("span",null,N(h.value),1)]),_:1})]),y("div",xx,[Q(an,{size:"xs",title:_(o)("header.languageToggle"),onClick:b},{default:fe(()=>[w[2]||(w[2]=y("span",{class:"i-[carbon--language] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),y("span",null,N(f.value),1)]),_:1},8,["title"]),Q(an,{size:"xs",title:_(o)("header.themeToggle"),onClick:_(i)},{default:fe(()=>[y("span",{class:ce([u.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),y("span",null,N(c.value),1)]),_:1},8,["title","onClick"]),Q(an,{size:"xs",onClick:x},{default:fe(()=>[w[3]||(w[3]=y("span",{class:"i-[carbon--rotate] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),y("span",null,N(_(o)("header.refresh")),1)]),_:1})])]))}});function wx(e){switch(e.toLowerCase()){case"method":case"m":return"method";case"path":case"url":case"route":return"path";case"file":case"f":return"file";case"group":case"g":return"group";case"reason":case"r":return"reason";default:return null}}function Qu(e){const t=e.trim();if(!t)return[];const n=[];for(const s of t.split(/\s+/)){if(!s)continue;const r=s.match(/^([a-z]+)(:|=)(.+)$/i);if(!r){n.push({field:"text",value:s.toLowerCase()});continue}const o=r[1],a=r[3];if(!o||!a){n.push({field:"text",value:s.toLowerCase()});continue}const l=a.trim();if(!l){n.push({field:"text",value:s.toLowerCase()});continue}const i=wx(o);if(!i){n.push({field:"text",value:s.toLowerCase()});continue}n.push({field:i,value:l.toLowerCase()})}return n}function Tx(e){const t=Qu(e).map(n=>n.value).filter(Boolean);return[...new Set(t)]}function Zu(e,t){if(!e)return[{text:"",highlight:!1}];if(!t.length)return[{text:e,highlight:!1}];const n=e.toLowerCase(),s=[];for(const l of t){if(!l)continue;let i=0;for(;i<n.length;){const u=n.indexOf(l,i);if(u===-1)break;s.push([u,u+l.length]),i=u+l.length}}if(!s.length)return[{text:e,highlight:!1}];s.sort((l,i)=>l[0]-i[0]||l[1]-i[1]);const r=[];for(const[l,i]of s){const u=r[r.length-1];!u||l>u[1]?r.push([l,i]):u[1]=Math.max(u[1],i)}const o=[];let a=0;for(const[l,i]of r)a<l&&o.push({text:e.slice(a,l),highlight:!1}),o.push({text:e.slice(l,i),highlight:!0}),a=i;return a<e.length&&o.push({text:e.slice(a),highlight:!1}),o}const kx={class:"flex flex-col gap-0","data-testid":"playground-tree",role:"tree"},Cx=["aria-expanded","aria-selected"],Sx=["title","onClick"],Ex={class:"flex min-w-0 flex-1 flex-col gap-1"},Rx=["aria-label","onClick"],Px=Ge({__name:"RouteTree",props:{rows:{},workspaceRoot:{},getRouteCount:{type:Function},highlightTokens:{}},emits:["toggle","select"],setup(e,{emit:t}){const n=e,s=t;function r(f,h){const p=`method-${f.toLowerCase()}`;return h?`${p} ${p}-strong`:p}function o(f){return f?Pn(f.file,n.workspaceRoot):null}function a(f){f&&Is(f.file,n.workspaceRoot)}function l(f){if(f.kind==="folder"){s("toggle",f.id);return}s("select",f)}function i(f){return f&&n.getRouteCount?n.getRouteCount(f):0}function u(f){return`${f*12}px`}function c(f){return Zu(f,n.highlightTokens??[])}return(f,h)=>($(),I("div",kx,[($(!0),I(ye,null,Ue(e.rows,p=>($(),I("div",{key:p.id,role:"treeitem","aria-expanded":p.kind==="folder"?p.expanded:void 0,"aria-selected":p.selected,class:ce(["group flex min-h-[28px] items-center gap-2 rounded border border-transparent px-2 py-0.5 text-left transition text-pg-text-soft hover:bg-pg-hover-strong",p.selected?"bg-pg-accent/16 text-pg-text-strong border-pg-accent/50 font-semibold shadow-[inset_3px_0_0_0_var(--color-pg-accent)]":""]),"data-testid":"playground-tree-row"},[y("button",{class:"flex min-w-0 flex-1 items-start gap-2 text-left",type:"button",title:p.title,onClick:b=>l(p)},[y("div",Ex,[y("div",{class:"flex items-center gap-2",style:Ss({paddingLeft:u(p.depth)})},[y("span",{class:ce(["flex h-3.5 w-3.5 items-center justify-center",p.selected?"text-pg-accent":"text-pg-text-subtle"])},[p.kind==="folder"?($(),I("span",{key:0,class:ce([p.expanded?"i-[carbon--chevron-down]":"i-[carbon--chevron-right]","h-3.5 w-3.5"]),"aria-hidden":"true"},null,2)):pe("",!0)],2),p.kind==="route"&&p.route?($(),I("span",{key:0,class:ce(["rounded border px-1.5 py-0.5 text-[0.5rem] uppercase tracking-[0.12em] leading-none transition group-hover:brightness-105",r(p.route.method,p.selected)])},N(p.route.method),3)):pe("",!0),y("span",{class:ce(["text-[0.8rem] text-pg-text-strong",p.kind==="folder"?"font-semibold":"font-medium"])},[($(!0),I(ye,null,Ue(c(p.label),(b,x)=>($(),I("span",{key:`${p.id}-label-${x}`,class:ce(b.highlight?"pg-highlight":"")},N(b.text),3))),128))],2)],4)]),p.kind==="route"&&p.route&&i(p.route)>0?($(),dt(We,{key:0,tone:"chip",size:"xxs",caps:!1,class:"ml-auto"},{default:fe(()=>[Pe(N(i(p.route)),1)]),_:2},1024)):pe("",!0)],8,Sx),p.kind==="route"&&p.route&&o(p.route)?($(),I("button",{key:0,class:ce(["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",p.selected?"text-pg-on-accent-soft":""]),type:"button","aria-label":`Open ${p.route.file} in VS Code`,onClick:b=>a(p.route)},[...h[0]||(h[0]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],10,Rx)):pe("",!0)],10,Cx))),128))]))}}),$x={class:"flex-1 min-h-0 overflow-auto"},Mx={key:0,class:"rounded border px-4 py-3 text-sm border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"},Lx={key:1,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Ix={key:0,class:"mb-2 inline-flex items-center gap-2 rounded border px-2.5 py-1 text-xs border-pg-border bg-pg-surface-soft text-pg-text-muted"},Nx={key:1,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Ax={key:2,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Fx={key:3,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Ox={key:4,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Dx={key:5,class:"flex flex-col gap-0.5"},Ux=["onClick"],Vx={class:"flex flex-wrap items-center justify-between gap-2"},Kx={class:"flex flex-col gap-1"},jx={class:"text-[0.78rem] font-medium text-pg-text-strong"},Hx={key:0,class:"text-[0.7rem] text-pg-text-muted"},Wx={class:"flex items-center gap-2"},Bx={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},Gx=["aria-label","title","onClick"],qx={key:6,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},zx={key:7,class:"flex flex-col gap-0.5"},Jx=["onClick"],Yx={class:"flex flex-wrap items-center justify-between gap-2"},Xx={class:"flex flex-col gap-1"},Qx={class:"text-[0.75rem] font-medium text-pg-text-strong"},Zx={class:"flex items-center gap-2"},e_={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},t_=["aria-label","title","onClick"],n_={key:8,class:"flex flex-col gap-0.5"},s_=["onClick"],r_={class:"flex flex-wrap items-center justify-between gap-2"},o_={class:"flex flex-col gap-1"},a_={class:"text-[0.75rem] font-medium text-pg-text-strong"},l_={class:"flex items-center gap-2"},i_={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},u_=["aria-label","title","onClick"],c_={key:9,class:"flex flex-col gap-0.5"},d_=["onClick"],f_={class:"flex flex-wrap items-center justify-between gap-2"},p_={class:"flex flex-col gap-1"},g_={class:"text-[0.75rem] font-medium text-pg-text-strong"},m_={class:"flex items-center gap-2"},h_={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},b_=["aria-label","title","onClick"],er="relative bg-pg-accent/12 text-pg-text-strong font-semibold shadow-[inset_4px_0_0_0_var(--color-pg-accent)]",y_=Ge({__name:"PlaygroundSidebarBody",props:{search:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},error:{},loading:{type:Boolean},hasCachedData:{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}=nt(),o=V(()=>Tx(n.search)),a=V(()=>{const m={rows:n.treeRows};return n.workspaceRoot&&n.workspaceRoot.trim()&&(m.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(m.getRouteCount=n.getRouteCount),m});function l(m){return r(`disabled.reason.${m??"unknown"}`)}function i(m){return r(`ignored.reason.${m??"unknown"}`)}function u(m){return m?m.toLowerCase():""}function c(m){return m.toLowerCase()}function f(m){return Zu(m,o.value)}function h(m){return m.method&&m.url?`${m.method} ${u(m.url)}`:u(m.url)||m.file}function p(m){return Pn(m,n.workspaceRoot)}function b(m){Is(m,n.workspaceRoot)}function x(m){m.route&&s("select-route",m.route)}function F(m){return n.selectedConfig?.file===m.file}function w(m){if(!m)return"";const R=(m.method??"").toUpperCase(),C=m.url??"";return`${m.file}|${m.reason}|${R}|${C}`}function M(m){const R=w(n.selectedDisabled);return R?w(m)===R:!1}function k(m){return n.selectedIgnored?.file===m.file&&n.selectedIgnored?.reason===m.reason}return(m,R)=>($(),I("div",$x,[n.error?($(),I("div",Mx,N(n.error),1)):n.loading&&!n.hasCachedData?($(),I("div",Lx,N(_(r)("states.loadingRoutes")),1)):($(),I(ye,{key:2},[n.loading&&n.hasCachedData?($(),I("div",Ix,[R[1]||(R[1]=y("span",{class:"i-[carbon--renew] h-3 w-3 animate-spin","aria-hidden":"true"},null,-1)),y("span",null,N(_(r)("states.loadingRoutes")),1)])):pe("",!0),n.routeMode==="disabled"&&n.disabledMode==="api"&&!n.disabledFiltered.length?($(),I("div",Nx,N(_(r)("states.emptyDisabledRoutes")),1)):n.routeMode==="ignored"&&!n.ignoredFiltered.length?($(),I("div",Ax,N(_(r)("states.emptyIgnoredRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="api"&&!n.filtered.length?($(),I("div",Fx,N(_(r)("states.emptyRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="config"&&!n.configFiltered.length?($(),I("div",Ox,N(_(r)("states.emptyConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="api"?($(),I("div",Dx,[($(!0),I(ye,null,Ue(n.disabledFiltered,C=>($(),I("button",{key:`${C.file}-${C.reason}-${C.method??""}-${C.url??""}`,class:ce(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",M(C)?er:""]),type:"button",onClick:L=>s("select-disabled-route",C)},[y("div",Vx,[y("div",Kx,[y("span",jx,[($(!0),I(ye,null,Ue(f(h(C)),(L,H)=>($(),I("span",{key:`${C.file}-label-${H}`,class:ce(L.highlight?"pg-highlight":"")},N(L.text),3))),128))]),C.method&&C.url?($(),I("span",Hx,[($(!0),I(ye,null,Ue(f(C.file),(L,H)=>($(),I("span",{key:`${C.file}-file-${H}`,class:ce(L.highlight?"pg-highlight":"")},N(L.text),3))),128))])):pe("",!0)]),y("div",Wx,[M(C)?($(),I("span",Bx,[...R[2]||(R[2]=[y("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),Q(We,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:fe(()=>[Pe(N(l(C.reason)),1)]),_:2},1024),p(C.file)?($(),I("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 ${C.file} in VS Code`,title:_(r)("detail.openInVscode"),onClick:Gs(L=>b(C.file),["stop"])},[...R[3]||(R[3]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Gx)):pe("",!0)])])],10,Ux))),128))])):n.routeMode==="disabled"&&n.disabledMode==="config"&&!n.disabledConfigFiltered.length?($(),I("div",qx,N(_(r)("states.emptyDisabledConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="config"?($(),I("div",zx,[($(!0),I(ye,null,Ue(n.disabledConfigFiltered,C=>($(),I("button",{key:C.file,class:ce(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",F(C)?er:""]),type:"button",onClick:L=>s("select-config",C)},[y("div",Yx,[y("div",Xx,[y("span",Qx,[($(!0),I(ye,null,Ue(f(c(C.file)),(L,H)=>($(),I("span",{key:`${C.file}-disabled-${H}`,class:ce(L.highlight?"pg-highlight":"")},N(L.text),3))),128))])]),y("div",Zx,[F(C)?($(),I("span",e_,[...R[4]||(R[4]=[y("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),Q(We,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:fe(()=>[Pe(N(_(r)("enabled.configLabel")),1)]),_:1}),p(C.file)?($(),I("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 ${C.file} in VS Code`,title:_(r)("detail.openInVscode"),onClick:Gs(L=>b(C.file),["stop"])},[...R[5]||(R[5]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,t_)):pe("",!0)])])],10,Jx))),128))])):n.routeMode==="ignored"?($(),I("div",n_,[($(!0),I(ye,null,Ue(n.ignoredFiltered,C=>($(),I("button",{key:`${C.file}-${C.reason}`,class:ce(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",k(C)?er:""]),type:"button",onClick:L=>s("select-ignored-route",C)},[y("div",r_,[y("div",o_,[y("span",a_,[($(!0),I(ye,null,Ue(f(C.file),(L,H)=>($(),I("span",{key:`${C.file}-ignored-${H}`,class:ce(L.highlight?"pg-highlight":"")},N(L.text),3))),128))])]),y("div",l_,[k(C)?($(),I("span",i_,[...R[6]||(R[6]=[y("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),Q(We,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:fe(()=>[Pe(N(i(C.reason)),1)]),_:2},1024),p(C.file)?($(),I("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 ${C.file} in VS Code`,title:_(r)("detail.openInVscode"),onClick:Gs(L=>b(C.file),["stop"])},[...R[7]||(R[7]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,u_)):pe("",!0)])])],10,s_))),128))])):n.routeMode==="active"&&n.enabledMode==="config"?($(),I("div",c_,[($(!0),I(ye,null,Ue(n.configFiltered,C=>($(),I("button",{key:C.file,class:ce(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",F(C)?er:""]),type:"button",onClick:L=>s("select-config",C)},[y("div",f_,[y("div",p_,[y("span",g_,[($(!0),I(ye,null,Ue(f(c(C.file)),(L,H)=>($(),I("span",{key:`${C.file}-config-${H}`,class:ce(L.highlight?"pg-highlight":"")},N(L.text),3))),128))])]),y("div",m_,[F(C)?($(),I("span",h_,[...R[8]||(R[8]=[y("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):pe("",!0),Q(We,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:fe(()=>[Pe(N(_(r)("enabled.configLabel")),1)]),_:1}),p(C.file)?($(),I("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 ${C.file} in VS Code`,title:_(r)("detail.openInVscode"),onClick:Gs(L=>b(C.file),["stop"])},[...R[9]||(R[9]=[y("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,b_)):pe("",!0)])])],10,d_))),128))])):($(),dt(Px,Zt({key:10},a.value,{"highlight-tokens":o.value,onToggle:R[0]||(R[0]=C=>s("toggle",C)),onSelect:x}),null,16,["highlight-tokens"]))],64))]))}}),v_=Ge({__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(a){const l=a.target;s("update:search",l?.value??"")}const{t:o}=nt();return(a,l)=>($(),I("section",{class:ce(["grid",n.compact?"gap-2":"gap-3"])},[Q(Ze,{label:_(o)("filters.search"),dense:n.compact},{default:fe(()=>[Q(vt,{value:e.search,type:"search",dense:n.compact,placeholder:_(o)("filters.searchPlaceholder"),"data-testid":"playground-search",class:ce(n.compact?"h-[34px]":""),onInput:r},null,8,["value","dense","placeholder","class"])]),_:1},8,["label","dense"]),n.showBase?($(),dt(Ze,{key:0,label:_(o)("filters.base"),dense:n.compact},{default:fe(()=>[Q(vt,{value:e.basePath,readonly:"",dense:n.compact},null,8,["value","dense"])]),_:1},8,["label","dense"])):pe("",!0)],2))}}),x_={class:"flex flex-wrap items-center gap-2"},__=Ge({__name:"PlaygroundTabs",props:{groups:{},activeGroup:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:s}=nt();return(r,o)=>($(),I("section",x_,[Q(an,{size:"md",active:e.activeGroup==="all",onClick:o[0]||(o[0]=a=>n("select","all"))},{default:fe(()=>[Pe(N(_(s)("tabs.overview")),1)]),_:1},8,["active"]),($(!0),I(ye,null,Ue(e.groups,a=>($(),dt(an,{key:a.key,size:"md",active:e.activeGroup===a.key,onClick:l=>n("select",a.key)},{default:fe(()=>[Pe(N(a.label),1)]),_:2},1032,["active","onClick"]))),128))]))}}),w_={class:"flex items-center gap-2"},T_=Ge({__name:"TreeModeToggle",props:{treeMode:{}},emits:["update:treeMode"],setup(e,{emit:t}){const n=t;function s(o){n("update:treeMode",o)}const{t:r}=nt();return(o,a)=>($(),I("div",w_,[Q(an,{size:"sm",active:e.treeMode==="file",onClick:a[0]||(a[0]=l=>s("file"))},{default:fe(()=>[a[2]||(a[2]=y("span",{class:"i-[carbon--document] h-4 w-4","aria-hidden":"true"},null,-1)),y("span",null,N(_(r)("tree.file")),1)]),_:1},8,["active"]),Q(an,{size:"sm",active:e.treeMode==="route",onClick:a[1]||(a[1]=l=>s("route"))},{default:fe(()=>[a[3]||(a[3]=y("span",{class:"i-[carbon--link] h-4 w-4","aria-hidden":"true"},null,-1)),y("span",null,N(_(r)("tree.route")),1)]),_:1},8,["active"])]))}}),k_={class:"relative"},C_={class:"flex items-end gap-2"},S_={class:"flex items-center gap-2"},E_={class:"mt-2 flex items-center gap-5 border-b border-pg-border text-[0.65rem] uppercase tracking-[0.25em]"},R_={key:0,class:"mt-1.5 flex items-center gap-4 text-[0.6rem] uppercase tracking-[0.2em]"},P_={key:1,class:"mt-1.5 flex items-center gap-4 text-[0.6rem] uppercase tracking-[0.2em]"},$_={class:"grid gap-3"},M_=Ge({__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}=nt(),o=V({get:()=>n.search,set:h=>s("update:search",h)}),a=V(()=>n.basePath||"/"),l=ee(!1),i=ee(null),u=ee(null);function c(){l.value=!l.value}function f(h){if(!l.value)return;const p=h.target;if(!p)return;const b=i.value?.$el;u.value?.contains(p)||b?.contains(p)||(l.value=!1)}return En(()=>{document.addEventListener("pointerdown",f)}),Rn(()=>{document.removeEventListener("pointerdown",f)}),(h,p)=>($(),I("div",k_,[y("div",C_,[Q(v_,{search:o.value,"onUpdate:search":p[0]||(p[0]=b=>o.value=b),"base-path":a.value,"show-base":!1,compact:!0,class:"flex-1"},null,8,["search","base-path"]),y("div",S_,[Q(an,{ref_key:"moreButtonRef",ref:i,size:"sm",class:"h-[34px]","aria-expanded":l.value,"aria-haspopup":"true","aria-controls":"playground-more-panel",onClick:c},{default:fe(()=>[p[10]||(p[10]=y("span",{class:"i-[carbon--settings-adjust] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),y("span",null,N(_(r)("controls.more")),1)]),_:1},8,["aria-expanded"]),Cr(h.$slots,"actions")])]),y("div",E_,[y("button",{type:"button",class:ce(["border-b-2 pb-1.5 transition",n.routeMode==="active"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[1]||(p[1]=b=>s("set-route-mode","active"))},N(_(r)("disabled.active",{count:n.activeTotal})),3),y("button",{type:"button",class:ce(["border-b-2 pb-1.5 transition",n.routeMode==="disabled"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[2]||(p[2]=b=>s("set-route-mode","disabled"))},N(_(r)("disabled.disabled",{count:n.disabledTotal})),3),y("button",{type:"button",class:ce(["border-b-2 pb-1.5 transition",n.routeMode==="ignored"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[3]||(p[3]=b=>s("set-route-mode","ignored"))},N(_(r)("disabled.ignored",{count:n.ignoredTotal})),3)]),n.routeMode==="active"?($(),I("div",R_,[y("button",{type:"button",class:ce(["border-b pb-1 transition",n.enabledMode==="api"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[4]||(p[4]=b=>s("set-enabled-mode","api"))},N(_(r)("enabled.api",{count:n.apiTotal})),3),y("button",{type:"button",class:ce(["border-b pb-1 transition",n.enabledMode==="config"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[5]||(p[5]=b=>s("set-enabled-mode","config"))},N(_(r)("enabled.config",{count:n.configTotal})),3)])):n.routeMode==="disabled"?($(),I("div",P_,[y("button",{type:"button",class:ce(["border-b pb-1 transition",n.disabledMode==="api"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[6]||(p[6]=b=>s("set-disabled-mode","api"))},N(_(r)("enabled.api",{count:n.disabledApiTotal})),3),y("button",{type:"button",class:ce(["border-b pb-1 transition",n.disabledMode==="config"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:p[7]||(p[7]=b=>s("set-disabled-mode","config"))},N(_(r)("enabled.config",{count:n.disabledConfigTotal})),3)])):pe("",!0),l.value?($(),I("div",{key:2,id:"playground-more-panel",ref_key:"morePanelRef",ref:u,class:"absolute left-0 right-0 z-30 mt-1 rounded border p-2 border-pg-border bg-pg-surface-panel shadow-md"},[y("div",$_,[Q(Ze,{label:_(r)("filters.base"),dense:""},{default:fe(()=>[Q(vt,{value:a.value,readonly:"",dense:""},null,8,["value"])]),_:1},8,["label"]),Q(__,{groups:n.groups,"active-group":n.activeGroup,onSelect:p[8]||(p[8]=b=>s("select-group",b))},null,8,["groups","active-group"]),Q(T_,{"tree-mode":n.treeMode,"onUpdate:treeMode":p[9]||(p[9]=b=>s("update:treeMode",b))},null,8,["tree-mode"])])],512)):pe("",!0)]))}}),L_={key:0,class:"flex min-h-0 flex-1 flex-col gap-1"},I_=["aria-label","title"],N_={key:1,class:"flex min-h-0 flex-1 flex-col items-center gap-1 py-1"},A_=["aria-label","title"],F_={class:"flex flex-col items-center gap-1"},O_=["title"],D_=["title"],U_=["title"],V_={key:0,class:"flex flex-col items-center gap-1"},K_=["title"],j_=["title"],H_={class:"flex flex-col items-center gap-1 text-pg-text-muted"},W_={class:"rounded border px-1.5 py-0.5 text-[0.6rem] uppercase tracking-wide border-pg-border bg-pg-surface-strong"},B_={key:0,class:"flex h-7 w-7 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent"},G_=Ge({__name:"PlaygroundSidebar",props:{collapsed:{type:Boolean},search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{},error:{},loading:{type:Boolean},hasCachedData:{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-collapse","toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t,{t:r}=nt(),o=V(()=>{const p="flex min-h-0 w-full max-w-none flex-col overflow-hidden border-b border-pg-border bg-pg-surface-soft lg:flex-none lg:border-b-0 lg:border-r";return n.collapsed?`${p} p-1 lg:w-[72px] lg:min-w-[72px] lg:max-w-[72px]`:`${p} gap-1 p-2 lg:w-[var(--left-width)] lg:min-w-[240px] lg:max-w-[560px]`}),a=V(()=>{const p=(n.activeGroup||"all").toUpperCase();return p.length>6?`${p.slice(0,6)}…`:p}),l=V(()=>n.search.trim().length>0),i=V(()=>(n.routeMode==="disabled"?n.disabledMode:n.enabledMode)==="api"),u=V(()=>(n.routeMode==="disabled"?n.disabledMode:n.enabledMode)==="config"),c=V(()=>{const p={search:n.search,groups:n.groups,activeGroup:n.activeGroup,treeMode:n.treeMode,routeMode:n.routeMode,enabledMode:n.enabledMode,disabledMode:n.disabledMode,activeTotal:n.activeTotal,apiTotal:n.apiTotal,disabledTotal:n.disabledTotal,ignoredTotal:n.ignoredTotal,configTotal:n.configTotal,disabledApiTotal:n.disabledApiTotal,disabledConfigTotal:n.disabledConfigTotal};return n.basePath!==void 0?{...p,basePath:n.basePath}:p}),f=V(()=>{const b={...{search:n.search,routeMode:n.routeMode,enabledMode:n.enabledMode,disabledMode:n.disabledMode,loading:n.loading,hasCachedData:n.hasCachedData,filtered:n.filtered,disabledFiltered:n.disabledFiltered,ignoredFiltered:n.ignoredFiltered,configFiltered:n.configFiltered,disabledConfigFiltered:n.disabledConfigFiltered,treeRows:n.treeRows}};return n.selectedConfig!==void 0&&(b.selectedConfig=n.selectedConfig),n.selectedDisabled!==void 0&&(b.selectedDisabled=n.selectedDisabled),n.selectedIgnored!==void 0&&(b.selectedIgnored=n.selectedIgnored),n.error!==void 0&&(b.error=n.error),n.workspaceRoot!==void 0&&(b.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(b.getRouteCount=n.getRouteCount),b});function h(p){if(n.routeMode==="disabled"){s("set-disabled-mode",p);return}s("set-enabled-mode",p)}return(p,b)=>($(),I("aside",{class:ce(o.value)},[n.collapsed?($(),I("div",N_,[y("button",{class:"flex h-7 w-7 items-center justify-center rounded border transition border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":_(r)("controls.expandSidebar"),title:_(r)("controls.expandSidebar"),onClick:b[12]||(b[12]=x=>s("toggle-collapse"))},[...b[19]||(b[19]=[y("span",{class:"i-[carbon--chevron-right] h-4 w-4","aria-hidden":"true"},null,-1)])],8,A_),y("div",F_,[y("button",{class:ce(["flex h-8 w-8 items-center justify-center rounded border transition",n.routeMode==="active"?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:_(r)("disabled.active",{count:n.activeTotal}),onClick:b[13]||(b[13]=x=>s("set-route-mode","active"))},[...b[20]||(b[20]=[y("span",{class:"i-[carbon--checkmark-filled] h-4 w-4","aria-hidden":"true"},null,-1)])],10,O_),y("button",{class:ce(["flex h-8 w-8 items-center justify-center rounded border transition",n.routeMode==="disabled"?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:_(r)("disabled.disabled",{count:n.disabledTotal}),onClick:b[14]||(b[14]=x=>s("set-route-mode","disabled"))},[...b[21]||(b[21]=[y("span",{class:"i-[carbon--close-filled] h-4 w-4","aria-hidden":"true"},null,-1)])],10,D_),y("button",{class:ce(["flex h-8 w-8 items-center justify-center rounded border transition",n.routeMode==="ignored"?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:_(r)("disabled.ignored",{count:n.ignoredTotal}),onClick:b[15]||(b[15]=x=>s("set-route-mode","ignored"))},[...b[22]||(b[22]=[y("span",{class:"i-[carbon--view-off] h-4 w-4","aria-hidden":"true"},null,-1)])],10,U_)]),b[26]||(b[26]=y("div",{class:"h-px w-8 bg-pg-border"},null,-1)),n.routeMode!=="ignored"?($(),I("div",V_,[y("button",{class:ce(["flex h-8 w-8 items-center justify-center rounded border transition",i.value?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:n.routeMode==="disabled"?_(r)("enabled.api",{count:n.disabledApiTotal}):_(r)("enabled.api",{count:n.apiTotal}),onClick:b[16]||(b[16]=x=>h("api"))},[...b[23]||(b[23]=[y("span",{class:"i-[carbon--api] h-4 w-4","aria-hidden":"true"},null,-1)])],10,K_),y("button",{class:ce(["flex h-8 w-8 items-center justify-center rounded border transition",u.value?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:n.routeMode==="disabled"?_(r)("enabled.config",{count:n.disabledConfigTotal}):_(r)("enabled.config",{count:n.configTotal}),onClick:b[17]||(b[17]=x=>h("config"))},[...b[24]||(b[24]=[y("span",{class:"i-[carbon--settings] h-4 w-4","aria-hidden":"true"},null,-1)])],10,j_)])):pe("",!0),b[27]||(b[27]=y("div",{class:"h-px w-8 bg-pg-border"},null,-1)),y("div",H_,[y("span",W_,N(a.value),1),l.value?($(),I("span",B_,[...b[25]||(b[25]=[y("span",{class:"i-[carbon--search] h-4 w-4","aria-hidden":"true"},null,-1)])])):pe("",!0)])])):($(),I("div",L_,[Q(M_,Zt(c.value,{"onUpdate:search":b[1]||(b[1]=x=>s("update:search",x)),onSelectGroup:b[2]||(b[2]=x=>s("select-group",x)),onSetRouteMode:b[3]||(b[3]=x=>s("set-route-mode",x)),onSetEnabledMode:b[4]||(b[4]=x=>s("set-enabled-mode",x)),onSetDisabledMode:b[5]||(b[5]=x=>s("set-disabled-mode",x)),"onUpdate:treeMode":b[6]||(b[6]=x=>s("update:treeMode",x))}),{actions:fe(()=>[y("button",{class:"flex h-[34px] w-[34px] items-center justify-center rounded border transition border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":_(r)("controls.collapseSidebar"),title:_(r)("controls.collapseSidebar"),onClick:b[0]||(b[0]=x=>s("toggle-collapse"))},[...b[18]||(b[18]=[y("span",{class:"i-[carbon--chevron-left] h-4 w-4","aria-hidden":"true"},null,-1)])],8,I_)]),_:1},16),Q(y_,Zt(f.value,{onToggle:b[7]||(b[7]=x=>s("toggle",x)),onSelectRoute:b[8]||(b[8]=x=>s("select-route",x)),onSelectDisabledRoute:b[9]||(b[9]=x=>s("select-disabled-route",x)),onSelectIgnoredRoute:b[10]||(b[10]=x=>s("select-ignored-route",x)),onSelectConfig:b[11]||(b[11]=x=>s("select-config",x))}),null,16)]))],2))}});function q_(e){const t=V(()=>e.routeMode.value==="disabled"),n=V(()=>e.routeMode.value==="ignored"),s=V(()=>e.routes.value.length+e.configCount.value),r=V(()=>e.routes.value.length),o=V(()=>e.disabledCount.value+e.disabledConfigCount.value),a=V(()=>e.ignoredCount.value),l=V(()=>e.configCount.value),i=V(()=>e.disabledConfigCount.value),u=V(()=>e.disabledCount.value),c=V(()=>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:a,configTotal:l,disabledConfigTotal:i,disabledApiTotal:u,visibleCount:c}}function z_(e){function t(){const u=e.lastSelectedKey.value;return u?e.filtered.value.find(c=>e.getRouteKey(c)===u)??null:null}function n(u){if(e.routeMode.value=u,u!=="active"){e.selectRoute(null),e.selectConfig(null),u==="disabled"&&e.disabledMode.value==="api"&&(e.selectDisabledRoute(e.disabledFiltered.value[0]??null),e.selectIgnoredRoute(null)),u==="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 c=t();c&&e.selectRoute(c)}e.enabledMode.value!=="config"&&e.selectConfig(null)}function s(u){if(e.enabledMode.value=u,u==="config"){e.selectRoute(null);return}if(e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),!e.selected.value){const c=t();c&&e.selectRoute(c)}}function r(u){if(e.disabledMode.value=u,u==="config"){e.selectDisabledRoute(null);return}e.selectConfig(null),e.selectedDisabled.value||e.selectDisabledRoute(e.disabledFiltered.value[0]??null)}function o(u){e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectRoute(u)}function a(u){e.selectRoute(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(null),e.selectConfig(u)}function l(u){e.selectRoute(null),e.selectConfig(null),e.selectIgnoredRoute(null),e.selectDisabledRoute(u)}function i(u){e.selectRoute(null),e.selectConfig(null),e.selectDisabledRoute(null),e.selectIgnoredRoute(u)}return{setRouteMode:n,setEnabledMode:s,setDisabledMode:r,handleSelectRoute:o,handleSelectConfig:a,handleSelectDisabled:l,handleSelectIgnored:i}}new Set(".\\+*[^]$()");const to=/^[\w-]+$/,J_=/^\[([^\]/]+)\]$/,Y_=/^\[\.\.\.([^\]/]+)\]$/,X_=/^\[\[\.\.\.([^\]/]+)\]\]$/,Q_=/^\([^)]+\)$/;function Z_(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 ew(e){return e.map(Z_)}function ec(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 tw(e){return ec(e).split("/").filter(Boolean)}function Ro(e){const t=[],n=[],s=ec(e),r=tw(s),o=[],a=new Set;for(let l=0;l<r.length;l+=1){const i=r[l];if(!i)continue;if(Q_.test(i)){t.push(`Route groups are not supported: ${i}`);continue}const u=i.match(X_);if(u){const h=u[1];if(!h){t.push(`Invalid optional catch-all param name "${i}"`);continue}if(!to.test(h)){t.push(`Invalid optional catch-all param name "${h}"`);continue}if(l!==r.length-1){t.push(`Optional catch-all "${i}" must be the last segment`);continue}a.has(h)&&n.push(`Duplicate param name "${h}"`),a.add(h),o.push({type:"optional-catchall",name:h});continue}const c=i.match(Y_);if(c){const h=c[1];if(!h){t.push(`Invalid catch-all param name "${i}"`);continue}if(!to.test(h)){t.push(`Invalid catch-all param name "${h}"`);continue}if(l!==r.length-1){t.push(`Catch-all "${i}" must be the last segment`);continue}a.has(h)&&n.push(`Duplicate param name "${h}"`),a.add(h),o.push({type:"catchall",name:h});continue}const f=i.match(J_);if(f){const h=f[1];if(!h){t.push(`Invalid param name "${i}"`);continue}if(!to.test(h)){t.push(`Invalid param name "${h}"`);continue}a.has(h)&&n.push(`Duplicate param name "${h}"`),a.add(h),o.push({type:"param",name:h});continue}if(i.includes("[")||i.includes("]")||i.includes("(")||i.includes(")")){t.push(`Invalid route segment "${i}"`);continue}o.push({type:"static",value:i})}return{template:s,tokens:o,score:ew(o),errors:t,warnings:n}}function Po(e,t){return e==="catchall"?`[...${t}]`:e==="optional-catchall"?`[[...${t}]]`:`[${t}]`}function nw(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:Po(r,s.name),required:r!=="optional-catchall"})}return t}function tc(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?t.split("/").filter(Boolean):[]}function sw(e,t){const n=[],s=new Set;for(const o of e){if(o.type==="static"){n.push(o.value);continue}const a=t[o.name]?.trim()??"";if(!a){o.type!=="optional-catchall"&&s.add(o.name);continue}if(o.type==="param"){n.push(encodeURIComponent(a));continue}const l=tc(a).map(encodeURIComponent);if(l.length===0){o.type!=="optional-catchall"&&s.add(o.name);continue}n.push(...l)}return{path:n.length>0?`/${n.join("/")}`:"/",missing:[...s]}}function rw(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(Po(s.type,s.name));continue}if(s.type==="param"){n.push(encodeURIComponent(r));continue}const o=tc(r).map(encodeURIComponent);if(o.length===0){s.type!=="optional-catchall"&&n.push(Po(s.type,s.name));continue}n.push(...o)}return n.length>0?`/${n.join("/")}`:"/"}function ow(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 Fl(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[a,...l]=o.split("="),i=(a??"").trim();if(!i)continue;const u=l.join("=").trim();s.push([i,u])}return s}function aw(e){const t=e.responseText,n=e.responseRaw??t??{value:""},s=e.responsePretty??t??{value:""},r=e.responseHeaders??{value:{}},o=e.responseContentType??{value:""},a=f=>{n.value=f,t&&t!==n&&(t.value=f)},l=f=>{s.value=f,t&&t!==s&&(t.value=f)},i=f=>{switch(f){case"javascript":return"application/javascript; charset=utf-8";case"json":return"application/json; charset=utf-8";case"html":return"text/html; charset=utf-8";case"xml":return"text/xml; charset=utf-8";default:return"text/plain; charset=utf-8"}};return{resetResponse:()=>{a(""),l(e.t("response.empty")),r.value={},o.value="",e.responseStatus.value=e.t("response.idle"),e.responseTime.value=""},runRequest:async()=>{if(!e.selected.value)return;const f=e.routeTokens.value.length>0?e.routeTokens.value:Ro(e.selected.value.url).tokens,h=sw(f,e.paramValues.value);if(h.missing.length>0){e.onMissingParams?.(h.missing);const C=e.t("errors.routeParams",{params:h.missing.join(", ")});a(""),l(C),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}const p=e.getRouteKey(e.selected.value),b=ds(e.queryText.value);if(b.error){const C=e.t("errors.queryJson",{message:b.error});a(""),l(C),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}const x=ds(e.headersText.value);if(x.error){const C=e.t("errors.headersJson",{message:x.error});a(""),l(C),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}const F=new URL(h.path,window.location.origin);b.value&&nb(F,b.value);const w={};if(x.value)for(const[C,L]of Object.entries(x.value))typeof L>"u"||(w[C]=Array.isArray(L)?L.join(","):String(L));const M=e.authType?.value??"none";if(M==="bearer"){const C=e.authToken?.value??"";C&&(w.Authorization=`Bearer ${C}`)}else if(M==="basic"){const C=e.authUsername?.value??"",L=e.authPassword?.value??"";(C||L)&&(w.Authorization=`Basic ${btoa(`${C}:${L}`)}`)}else if(M==="apikey"){const C=e.authKeyName?.value??"",L=e.authKeyValue?.value??"",H=e.authKeyLocation?.value??"header";C&&L&&(H==="query"?F.searchParams.set(C,L):w[C]=L)}else if(M==="custom"){const C=e.authCustomName?.value??"",L=e.authCustomValue?.value??"";C&&(w[C]=L)}const k={method:e.selected.value.method,headers:w,cache:"no-store"},m=e.selected.value.method.toUpperCase();if(m!=="GET"&&m!=="HEAD"){const C=e.bodyText.value;if(e.bodyType.value==="raw"){const L=C.trim();if(e.rawType.value==="json"&&e.rawValidate.value){const H=ds(C);if(H.error){const z=e.t("errors.bodyJson",{message:H.error});a(""),l(z),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}}L&&(k.body=C,w["Content-Type"]||(w["Content-Type"]=i(e.rawType.value)))}else if(e.bodyType.value==="form-urlencoded"){const L=Fl(C);if(L.length>0){const H=new URLSearchParams;for(const[z,ne]of L)H.append(z,ne);k.body=H.toString(),w["Content-Type"]||(w["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8")}}else if(e.bodyType.value==="form-data"){const L=Fl(C),H=(e.multipartFiles?.value??[]).map(z=>({name:z.name.trim(),files:z.files})).filter(z=>z.name.length>0&&z.files.length>0);if(L.length>0||H.length>0){const z=new FormData;for(const[ne,ae]of L)z.append(ne,ae);for(const ne of H)for(const ae of ne.files)z.append(ne.name,ae);k.body=z}}else if(e.bodyType.value==="binary"){const L=e.binaryFile?.value??null;L&&(k.body=L,w["Content-Type"]||(w["Content-Type"]=L.type||"application/octet-stream"))}}e.responseStatus.value=e.t("response.loading"),e.responseTime.value="",a(""),l(e.t("response.waiting")),r.value={},o.value="",await e.ensureSwReady();const R=performance.now();try{const C=await fetch(F.toString(),k);e.isServerCounts.value||(e.routeCounts.value[p]=(e.routeCounts.value[p]??0)+1);const L=Math.round(performance.now()-R);e.responseTime.value=`${L}ms`,e.responseStatus.value=`${C.status} ${C.statusText}`;const H={};typeof C.headers?.forEach=="function"&&C.headers.forEach((ae,G)=>{H[G]=ae}),r.value=H;const z=C.headers.get("content-type")??"";o.value=z;const ne=await C.text();if(a(ne),z.includes("application/json"))try{l(JSON.stringify(JSON.parse(ne),null,2))}catch{l(ne||e.t("response.emptyPayload"))}else l(ne||e.t("response.emptyPayload"))}catch(C){e.responseStatus.value=e.t("response.error");const L=C instanceof Error?C.message:String(C);a(""),l(L),r.value={},o.value=""}}}}function nc(e){try{return new URL(e).pathname.includes("mokup-sw")}catch{return e.includes("mokup-sw")}}function Ol(e){return[e.active?.scriptURL,e.waiting?.scriptURL,e.installing?.scriptURL].filter(n=>typeof n=="string").some(n=>nc(n))}function lw(e){return!!e&&nc(e.scriptURL)}async function iw(){if(typeof window>"u"||!("serviceWorker"in navigator))return null;try{const e=await navigator.serviceWorker.getRegistration();if(e&&Ol(e))return e}catch{}try{return(await navigator.serviceWorker.getRegistrations()).find(Ol)??null}catch{return null}}function uw(){return!1}function cw(e){if(!uw())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 dw(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 es=null;function fw(e,t={}){const{t:n}=nt(),s=ee(""),r=ee(""),o=ee(""),a=ee("none"),l=ee("json"),i=ee(!0),u=ee(null),c=ee([]),f=ee("none"),h=ee(""),p=ee(""),b=ee(""),x=ee(""),F=ee(""),w=ee("header"),M=ee(""),k=ee(""),m=ee(""),R=ee(n("response.empty")),C=R,L=ee({}),H=ee(""),z=ee(n("response.idle")),ne=ee(""),ae=ee(!1),G=ee(!1),me=V(()=>ae.value&&!G.value),se=ee({}),X=V(()=>Object.values(se.value).reduce((D,U)=>D+U,0)),B=ee(!1),W=ee(null),q=ee(""),ge=ee([]),$e=ee([]),we=ee({}),be=ee([]),ve=ee(0),ke=V(()=>{if(!e.value)return"";const D=ge.value.length>0?ge.value:Ro(e.value.url).tokens,U=rw(D,we.value),K=ds(s.value);return K.error||!K.value?U:`${U}${ow(K.value)}`});function Ne(D){return`${D.method} ${D.url}`}function De(D){return se.value[Ne(D)]??0}function Ce(D){if(typeof D.data!="string")return;const U=dw(D.data);if(U){if(U.type==="snapshot"){se.value={...U.perRoute};return}se.value[U.routeKey]=(se.value[U.routeKey]??0)+1}}function Ke(){W.value&&(W.value.close(),W.value=null),q.value="",B.value=!1}function ue(D){if(typeof window>"u")return;const U=cw(D);if(!(!U||q.value===U)){Ke(),q.value=U;try{const K=new WebSocket(U);W.value=K,K.addEventListener("open",()=>{B.value=!0}),K.addEventListener("message",Ce),K.addEventListener("close",()=>{W.value===K&&Ke()}),K.addEventListener("error",()=>{W.value===K&&Ke()})}catch{Ke()}}}function J(D,U){we.value={...we.value,[D]:U},U.trim()&&be.value.includes(D)&&(be.value=be.value.filter(K=>K!==D))}function Y(D){if(be.value=[],ve.value=0,!D){ge.value=[],$e.value=[],we.value={};return}const U=Ro(D.url);ge.value=U.tokens;const K=nw(U.tokens),g={};for(const d of K)g[d.name]=we.value[d.name]??"";$e.value=K,we.value=g}async function v(){if(G.value)return!0;if(typeof window>"u"||!("serviceWorker"in navigator))return!1;let D=null;es||(D=navigator.serviceWorker.ready.then(()=>{G.value=!0}).catch(()=>{es=null}));const U=navigator.serviceWorker.controller;if(lw(U))return ae.value=!0,G.value=!0,!0;if(!ae.value){if(!await iw())return!1;ae.value=!0}return!es&&D&&(es=D),await es,G.value}typeof window<"u"&&"serviceWorker"in navigator&&v().catch(()=>{}),t.basePath&&ht(t.basePath,D=>{D&&ue(D)},{immediate:!0}),Ms()&&Rn(()=>{Ke()});const{resetResponse:E,runRequest:O}=aw({t:n,selected:e,routeTokens:ge,paramValues:we,queryText:s,headersText:r,bodyText:o,bodyType:a,rawType:l,rawValidate:i,multipartFiles:c,binaryFile:u,authType:f,authToken:h,authUsername:p,authPassword:b,authKeyName:x,authKeyValue:F,authKeyLocation:w,authCustomName:M,authCustomValue:k,responseRaw:m,responsePretty:R,responseText:C,responseHeaders:L,responseContentType:H,responseStatus:z,responseTime:ne,routeCounts:se,isServerCounts:B,ensureSwReady:v,getRouteKey:Ne,onMissingParams:D=>{be.value=[...D],ve.value+=1}});return ht(e,()=>{E(),Y(e.value)}),{queryText:s,headersText:r,bodyText:o,bodyType:a,rawType:l,rawValidate:i,multipartFiles:c,binaryFile:u,authType:f,authToken:h,authUsername:p,authPassword:b,authKeyName:x,authKeyValue:F,authKeyLocation:w,authCustomName:M,authCustomValue:k,responseRaw:m,responsePretty:R,responseText:C,responseHeaders:L,responseContentType:H,responseStatus:z,responseTime:ne,resetResponse:E,runRequest:O,isSwMode:ae,isSwRegistering:me,routeParams:$e,paramValues:we,missingParams:be,missingPulse:ve,setParamValue:J,requestUrl:ke,routeCounts:se,totalCount:X,getRouteCount:De}}const $o="mokup.playground.lastSelectedRoute";function pw(){try{const e=localStorage.getItem($o);return e&&e.trim()?e:null}catch{}return null}function Dl(e){try{e&&e.trim()?localStorage.setItem($o,e):localStorage.removeItem($o)}catch{}}function Ul(e){const{selectedFile:t,routes:n,disabledRoutes:s,ignoredRoutes:r}=e;if(!t)return[];const o=l=>!!l?.includes(t),a=[];for(const l of n)if(o(l.configChain)){const i={kind:"active",file:l.file};l.method&&(i.method=l.method),l.url&&(i.url=l.url),a.push(i)}for(const l of s)if(o(l.configChain)){const i={kind:"disabled",file:l.file};l.method&&(i.method=l.method),l.url&&(i.url=l.url),a.push(i)}for(const l of r)o(l.configChain)&&a.push({kind:"ignored",file:l.file});return a}function gw(){const e=ee([]),t=ee([]),n=ee([]),s=ee([]),r=ee([]),o=ee([]),a=ee([]),l=ee([]),i=ee(null),u=ee(null),c=ee(null),f=ee(null),h=ee([]),p=ee("all"),b=ee(!1),x=ee(""),F=ee(""),w=ee(""),M=ee(""),k=V(()=>F.value.trim().toLowerCase()),m=V(()=>Qu(F.value)),R=V(()=>o.value.length),C=V(()=>t.value.length),L=V(()=>n.value.length),H=V(()=>s.value.length),z=V(()=>r.value.length),ne=V(()=>{const d=new Map;for(const T of s.value)d.set(T.file,"enabled");for(const T of r.value)d.set(T.file,"disabled");return d}),ae=V(()=>`${w.value||""}/routes`),G=d=>`${d.method} ${d.url}`,me=d=>`${d.file}|${d.reason}|${d.method??""}|${d.url??""}`,se=d=>`${d.file}|${d.reason}`,X=ee(pw()??"");function B(d){return(d??"").toLowerCase()}function W(d,T){return d.includes(T)}function q(d,T){const P=B(d.method),Z=B(d.url),j=B(d.file),S=B(d.groupKey??d.group),A=`${P} ${Z} ${j} ${S}`;return T.every(te=>{const oe=te.value;switch(te.field){case"method":return W(P,oe);case"path":return W(Z,oe);case"file":return W(j,oe);case"group":return W(S,oe);case"reason":return!1;default:return W(A,oe)}})}function ge(d,T){const P=B(d.file),Z=B(d.groupKey??d.group),j=`${P} ${Z}`;return T.every(S=>{const A=S.value;switch(S.field){case"file":return W(P,A);case"group":return W(Z,A);case"text":return W(j,A);default:return!1}})}function $e(d,T){const P=B(d.method),Z=B(d.url),j=B(d.file),S=B(d.groupKey??d.group),A=B(d.reason),te=`${P} ${Z} ${j} ${S} ${A}`;return T.every(oe=>{const de=oe.value;switch(oe.field){case"method":return W(P,de);case"path":return W(Z,de);case"file":return W(j,de);case"group":return W(S,de);case"reason":return W(A,de);default:return W(te,de)}})}function we(d,T){const P=B(d.file),Z=B(d.groupKey??d.group),j=B(d.reason),S=`${P} ${Z} ${j}`;return T.every(A=>{const te=A.value;switch(A.field){case"file":return W(P,te);case"group":return W(Z,te);case"reason":return W(j,te);case"text":return W(S,te);default:return!1}})}function be(d,T){return d?T.find(P=>G(P)===d)??null:null}function ve(){return p.value==="all"?e.value:e.value.filter(d=>d.groupKey===p.value)}function ke(){const d=m.value,T=ve();o.value=d.length?T.filter(P=>q(P,d)):[...T]}function Ne(){return p.value==="all"?s.value:s.value.filter(d=>d.groupKey===p.value)}function De(){const d=m.value,T=Ne();a.value=d.length?T.filter(P=>ge(P,d)):[...T]}function Ce(){return p.value==="all"?r.value:r.value.filter(d=>d.groupKey===p.value)}function Ke(){const d=m.value,T=Ce();l.value=d.length?T.filter(P=>ge(P,d)):[...T]}const ue=V(()=>{const d=m.value;return d.length?t.value.filter(T=>$e(T,d)):[...t.value]}),J=V(()=>{const d=m.value;return d.length?n.value.filter(T=>we(T,d)):[...n.value]});function Y(d){p.value=d,ke(),De(),Ke(),!(i.value&&o.value.some(P=>G(P)===G(i.value)))&&(i.value=be(X.value,o.value))}function v(d){i.value=d}function E(d){u.value=d}function O(d){c.value=d}function D(d){f.value=d}function U(d){w.value=dm(d)}async function K(){b.value=!0,x.value="";const d=X.value,T=u.value?me(u.value):"",P=c.value?se(c.value):"",Z=p.value,j=f.value?.file??"";try{const S=await fetch(ae.value);if(!S.ok)throw new Error(`Failed to load routes: ${S.status}`);const A=await S.json();e.value=A.routes??[],t.value=A.disabled??[],n.value=A.ignored??[],s.value=A.configs??[],r.value=A.disabledConfigs??[],h.value=A.groups??[],M.value=A.root??"",Z!=="all"&&(h.value.some(de=>de.key===Z)||(p.value="all")),ke(),De(),Ke();const te=d?be(d,o.value):null;if(d&&!te&&(be(d,e.value)||(X.value="",Dl(null))),i.value=te,T){const oe=t.value.find(de=>me(de)===T);u.value=oe??t.value[0]??null}else u.value=t.value[0]??null;if(P){const oe=n.value.find(de=>se(de)===P);c.value=oe??n.value[0]??null}else c.value=n.value[0]??null;if(j){const oe=s.value.find(de=>de.file===j)??r.value.find(de=>de.file===j)??null;f.value=oe}}catch(S){x.value=S instanceof Error?S.message:String(S)}finally{b.value=!1}}ht(F,()=>{ke(),De(),Ke()}),ht(i,d=>{if(d){const T=G(d);X.value=T,Dl(T)}});const g=V(()=>{const d=f.value?.file,T={routes:e.value,disabledRoutes:t.value,ignoredRoutes:n.value};return Ul(d?{...T,selectedFile:d}:T)});return{routes:e,disabledRoutes:t,ignoredRoutes:n,configFiles:s,disabledConfigFiles:r,disabledFiltered:ue,ignoredFiltered:J,configFiltered:a,disabledConfigFiltered:l,filtered:o,selected:i,selectedConfig:f,selectedDisabled:u,selectedIgnored:c,groups:h,activeGroup:p,loading:b,error:x,search:F,basePath:w,workspaceRoot:M,searchTerm:k,routeCount:R,disabledCount:C,ignoredCount:L,configCount:H,disabledConfigCount:z,configStatusMap:ne,routeKey:G,lastSelectedKey:X,loadRoutes:K,setActiveGroup:Y,selectRoute:v,selectDisabledRoute:E,selectIgnoredRoute:O,selectConfig:D,setBasePath:U,configImpactRoutes:g}}function mw(e,t){if(t==="file")return mr(e.file).split("/").filter(Boolean);const n=mr(e.url),s=n.startsWith("/")?n.slice(1):n;return s?s.split("/").filter(Boolean):[]}function sc(e,t){const n={id:`${t}:root`,label:"",kind:"folder",path:"",children:[]};for(const s of e){const r=mw(s,t);if(r.length===0){const l=`${t}:route:${s.method} ${s.url}|${s.file}`;n.children.push({id:l,label:"/",kind:"route",path:"/",route:s,children:[]});continue}let o=n;const a=r.length;for(let l=0;l<a;l+=1){const i=r[l]??"";if(!i)continue;if(l===a-1){const p=`${t}:route:${s.method} ${s.url}|${s.file}`;o.children.push({id:p,label:i,kind:"route",path:r.join("/"),route:s,children:[]});continue}o.map||(o.map=new Map);const c=r.slice(0,l+1).join("/"),f=o.map.get(c);if(f){o=f;continue}const h={id:`${t}:folder:${c}`,label:i,kind:"folder",path:c,children:[]};o.map.set(c,h),o.children.push(h),o=h}}return n}function oa(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"&&oa(t);return e}function rc(e,t){for(const n of e.children)n.kind==="folder"&&(t.push(n.id),rc(n,t))}function hw(e,t){const n=sc(e,t);oa(n);const s=[];return rc(n,s),s}function oc(e,t,n,s,r,o,a){for(const l of e.children){const i=l.kind==="folder"?l.path:n==="file"?l.route?.file??l.label:l.route?.url??l.label,u=l.kind==="folder"?r(l.id):!1,c={id:l.id,label:l.label,kind:l.kind,depth:t,title:i,expanded:u,selected:l.route?a(l.route)===o:!1};l.route&&(c.route=l.route),s.push(c),l.kind==="folder"&&u&&oc(l,t+1,n,s,r,o,a)}}function bw(e){const t=[];return oc(e.root,0,e.mode,t,e.isExpanded,e.selectedKey,e.getRouteKey),t}function yw(e){const t=ee("file"),n=ee(new Set),s=ee(new Set),r=ee(!1),o=ee(!1);function a(){return"mokup.playground.treeMode"}function l(k){return`mokup.playground.treeExpanded.${k}`}function i(k){try{const m=localStorage.getItem(l(k));if(!m)return{set:new Set,hasValue:!1};const R=JSON.parse(m);return Array.isArray(R)?{set:new Set(R.filter(C=>typeof C=="string")),hasValue:!0}:{set:new Set,hasValue:!1}}catch{return{set:new Set,hasValue:!1}}}function u(k,m){try{localStorage.setItem(l(k),JSON.stringify([...m]))}catch{}}function c(k){try{localStorage.setItem(a(),k)}catch{}}function f(){return t.value==="file"?n.value:s.value}function h(k,m){k==="file"?n.value=m:s.value=m}function p(k){return k==="file"?r.value:o.value}function b(k,m){k==="file"?r.value=m:o.value=m}function x(k){return e.searchTerm.value||!p(t.value)?!0:f().has(k)}function F(k){const m=t.value;if(!p(m)){const C=new Set(hw(e.routes.value,m));h(m,C),b(m,!0)}const R=new Set(f());R.has(k)?R.delete(k):R.add(k),h(m,R),b(m,!0),u(m,R)}function w(k){t.value=k,c(k)}const M=V(()=>{const k=t.value,m=sc(e.routes.value,k);return oa(m),bw({root:m,mode:k,isExpanded:x,selectedKey:e.selectedKey.value,getRouteKey:e.getRouteKey})});return En(()=>{try{const k=localStorage.getItem(a());(k==="file"||k==="route")&&(t.value=k);const m=i("file");n.value=m.set,r.value=m.hasValue;const R=i("route");s.value=R.set,o.value=R.hasValue}catch{}}),{treeMode:t,treeRows:M,toggleExpanded:F,setTreeMode:w}}function vw(e){const t=ee(e.defaultWidth),n=ee(!1);let s=0,r=0;const o=V(()=>({"--left-width":`${t.value}px`}));function a(f){return Math.min(e.maxWidth,Math.max(e.minWidth,f))}function l(f){if(!n.value)return;const h=f.clientX-s;t.value=a(r+h)}function i(){n.value&&(n.value=!1,window.removeEventListener("pointermove",l),window.removeEventListener("pointerup",i),localStorage.setItem(e.storageKey,String(t.value)))}function u(f){f.button===0&&(f.preventDefault(),n.value=!0,s=f.clientX,r=t.value,window.addEventListener("pointermove",l),window.addEventListener("pointerup",i))}function c(){const f=Number(localStorage.getItem(e.storageKey));Number.isFinite(f)&&f>0&&(t.value=a(f))}return{splitWidth:t,splitStyle:o,isDragging:n,handleDragStart:u,restoreSplitWidth:c,stopDrag:i}}const xw={class:"h-screen overflow-hidden pg-app-bg","data-testid":"playground-app"},_w={key:0,class:"pointer-events-none fixed inset-x-0 top-5 z-50 flex justify-center px-4"},ww={class:"flex h-full w-full flex-col"},Tw={class:"flex min-h-0 flex-1 flex-col overflow-hidden"},kw={class:"flex flex-1 flex-col overflow-hidden bg-pg-surface-shell"},Cw={class:"flex min-h-0 flex-1 flex-col overflow-hidden p-4 lg:p-6"},Sw={class:"mt-3 flex-1 min-h-0 overflow-auto"},Vl="mokup.playground.sidebarCollapsed",Kl=72,Ew=Ge({__name:"App",setup(e){const{routes:t,disabledRoutes:n,ignoredRoutes:s,configFiles:r,disabledConfigFiles:o,filtered:a,disabledFiltered:l,ignoredFiltered:i,configFiltered:u,disabledConfigFiltered:c,selected:f,selectedDisabled:h,selectedIgnored:p,selectedConfig:b,groups:x,activeGroup:F,loading:w,error:M,search:k,basePath:m,workspaceRoot:R,searchTerm:C,routeCount:L,disabledCount:H,ignoredCount:z,configCount:ne,disabledConfigCount:ae,configStatusMap:G,routeKey:me,lastSelectedKey:se,loadRoutes:X,setActiveGroup:B,selectRoute:W,selectDisabledRoute:q,selectIgnoredRoute:ge,selectConfig:$e,setBasePath:we,configImpactRoutes:be}=gw(),{queryText:ve,headersText:ke,bodyText:Ne,bodyType:De,rawType:Ce,rawValidate:Ke,multipartFiles:ue,binaryFile:J,authType:Y,authToken:v,authUsername:E,authPassword:O,authKeyName:D,authKeyValue:U,authKeyLocation:K,authCustomName:g,authCustomValue:d,responseRaw:T,responsePretty:P,responseHeaders:Z,responseContentType:j,responseStatus:S,responseTime:A,runRequest:te,isSwMode:oe,isSwRegistering:de,routeParams:Je,paramValues:qe,missingParams:ft,missingPulse:yt,setParamValue:pn,requestUrl:Ns,totalCount:it,getRouteCount:Tt}=fw(f,{basePath:m}),As=V(()=>f.value?me(f.value):""),Fs=V(()=>t.value.length>0||n.value.length>0||s.value.length>0||r.value.length>0||o.value.length>0),ac=V(()=>oe.value?de.value?"sw-registering":"sw":"server"),Os=ee("active"),Ds=ee("api"),Us=ee("api"),{activeTotal:lc,apiTotal:ic,disabledTotal:uc,ignoredTotal:cc,configTotal:dc,disabledConfigTotal:fc,disabledApiTotal:pc,visibleCount:gc}=q_({routes:t,configCount:ne,disabledCount:H,ignoredCount:z,disabledConfigCount:ae,routeCount:L,disabledFiltered:l,ignoredFiltered:i,configFiltered:u,disabledConfigFiltered:c,routeMode:Os,enabledMode:Ds,disabledMode:Us}),{setRouteMode:mc,setEnabledMode:hc,setDisabledMode:bc,handleSelectRoute:yc,handleSelectConfig:vc,handleSelectDisabled:xc,handleSelectIgnored:_c}=z_({routeMode:Os,enabledMode:Ds,disabledMode:Us,selected:f,selectedDisabled:h,selectedIgnored:p,selectedConfig:b,filtered:a,disabledFiltered:l,ignoredFiltered:i,lastSelectedKey:se,getRouteKey:me,selectRoute:W,selectDisabledRoute:q,selectIgnoredRoute:ge,selectConfig:$e}),{splitStyle:wc,isDragging:aa,handleDragStart:la,restoreSplitWidth:Tc,stopDrag:kc,splitWidth:Gn}=vw({storageKey:"mokup:playground:split-width",defaultWidth:320,minWidth:240,maxWidth:560}),{treeMode:Cc,treeRows:Sc,toggleExpanded:Ec,setTreeMode:Rc}=yw({routes:a,selectedKey:As,searchTerm:C,getRouteKey:me}),Nr=ee(!1),$n=ee(null),gn=ee(!1),Ar=ee(320);function Fr(){X().catch(()=>{})}function Pc(){$n.value&&window.clearTimeout($n.value),Nr.value=!0,$n.value=window.setTimeout(()=>{Nr.value=!1,$n.value=null},2e3)}function $c(){gn.value?(gn.value=!1,Gn.value=Ar.value):(Ar.value=Gn.value,gn.value=!0,Gn.value=Kl),localStorage.setItem(Vl,String(gn.value))}return En(()=>{we(window.location.pathname),Tc(),Ar.value=Gn.value,localStorage.getItem(Vl)==="true"&&(gn.value=!0,Gn.value=Kl),window.__MOKUP_PLAYGROUND__={reloadRoutes:Fr,notifyHotReload:Pc},Fr()}),Rn(()=>{kc(),$n.value&&window.clearTimeout($n.value)}),(Mc,_e)=>($(),I("div",xw,[Q(Df,{name:"pg-hot-toast"},{default:fe(()=>[Nr.value?($(),I("div",_w,[..._e[19]||(_e[19]=[y("div",{class:"pg-hot-toast inline-flex items-center gap-2 rounded border border-pg-border bg-pg-surface-panel px-4 py-2 text-sm font-medium text-pg-text"},[y("span",{class:"i-[carbon--checkmark-filled] h-4 w-4 text-pg-accent","aria-hidden":"true"}),Pe(" Hot reload complete ")],-1)])])):pe("",!0)]),_:1}),y("div",ww,[y("main",Tw,[y("div",kw,[y("div",{class:ce(["flex min-h-0 flex-1 flex-col lg:flex-row",_(aa)?"select-none":""]),style:Ss(_(wc))},[Q(G_,{search:_(k),"onUpdate:search":_e[0]||(_e[0]=Se=>Ee(k)?k.value=Se:null),collapsed:gn.value,"base-path":_(m),groups:_(x),"active-group":_(F),"tree-mode":_(Cc),"route-mode":Os.value,"enabled-mode":Ds.value,"disabled-mode":Us.value,"selected-config":_(b),"selected-disabled":_(h),"selected-ignored":_(p),"active-total":_(lc),"api-total":_(ic),"disabled-total":_(uc),"ignored-total":_(cc),"config-total":_(dc),"disabled-api-total":_(pc),"disabled-config-total":_(fc),error:_(M),loading:_(w),"has-cached-data":Fs.value,filtered:_(a),"disabled-filtered":_(l),"ignored-filtered":_(i),"config-filtered":_(u),"disabled-config-filtered":_(c),"tree-rows":_(Sc),"workspace-root":_(R),"get-route-count":_(Tt),onToggleCollapse:$c,onSelectGroup:_(B),onSetRouteMode:_(mc),onSetEnabledMode:_(hc),onSetDisabledMode:_(bc),onToggle:_(Ec),onSelectRoute:_(yc),onSelectDisabledRoute:_(xc),onSelectIgnoredRoute:_(_c),onSelectConfig:_(vc),"onUpdate:treeMode":_(Rc)},null,8,["search","collapsed","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","has-cached-data","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"]),gn.value?pe("",!0):($(),I("div",{key:0,class:ce(["pg-sash-zone relative hidden w-0 flex-none lg:flex",_(aa)?"pg-sash-active":""]),onPointerdown:_e[1]||(_e[1]=(...Se)=>_(la)&&_(la)(...Se))},[..._e[20]||(_e[20]=[y("div",{class:"pg-sash",role:"separator","aria-label":"Resize panels"},null,-1)])],34)),y("section",Cw,[Q(_x,{"visible-count":_(gc),"total-count":_(it),"request-mode":ac.value,onRefresh:Fr},null,8,["visible-count","total-count","request-mode"]),y("div",Sw,[Q(ax,{queryText:_(ve),"onUpdate:queryText":_e[2]||(_e[2]=Se=>Ee(ve)?ve.value=Se:null),headersText:_(ke),"onUpdate:headersText":_e[3]||(_e[3]=Se=>Ee(ke)?ke.value=Se:null),bodyText:_(Ne),"onUpdate:bodyText":_e[4]||(_e[4]=Se=>Ee(Ne)?Ne.value=Se:null),bodyType:_(De),"onUpdate:bodyType":_e[5]||(_e[5]=Se=>Ee(De)?De.value=Se:null),rawType:_(Ce),"onUpdate:rawType":_e[6]||(_e[6]=Se=>Ee(Ce)?Ce.value=Se:null),rawValidate:_(Ke),"onUpdate:rawValidate":_e[7]||(_e[7]=Se=>Ee(Ke)?Ke.value=Se:null),multipartFiles:_(ue),"onUpdate:multipartFiles":_e[8]||(_e[8]=Se=>Ee(ue)?ue.value=Se:null),binaryFile:_(J),"onUpdate:binaryFile":_e[9]||(_e[9]=Se=>Ee(J)?J.value=Se:null),authType:_(Y),"onUpdate:authType":_e[10]||(_e[10]=Se=>Ee(Y)?Y.value=Se:null),authToken:_(v),"onUpdate:authToken":_e[11]||(_e[11]=Se=>Ee(v)?v.value=Se:null),authUsername:_(E),"onUpdate:authUsername":_e[12]||(_e[12]=Se=>Ee(E)?E.value=Se:null),authPassword:_(O),"onUpdate:authPassword":_e[13]||(_e[13]=Se=>Ee(O)?O.value=Se:null),authKeyName:_(D),"onUpdate:authKeyName":_e[14]||(_e[14]=Se=>Ee(D)?D.value=Se:null),authKeyValue:_(U),"onUpdate:authKeyValue":_e[15]||(_e[15]=Se=>Ee(U)?U.value=Se:null),authKeyLocation:_(K),"onUpdate:authKeyLocation":_e[16]||(_e[16]=Se=>Ee(K)?K.value=Se:null),authCustomName:_(g),"onUpdate:authCustomName":_e[17]||(_e[17]=Se=>Ee(g)?g.value=Se:null),authCustomValue:_(d),"onUpdate:authCustomValue":_e[18]||(_e[18]=Se=>Ee(d)?d.value=Se:null),selected:_(f),"selected-disabled":_(h),"selected-ignored":_(p),"selected-config":_(b),"request-url":_(Ns),"workspace-root":_(R),"response-raw":_(T),"response-pretty":_(P),"response-headers":_(Z),"response-content-type":_(j),"response-status":_(S),"response-time":_(A),"is-sw-registering":_(de),"route-params":_(Je),"param-values":_(qe),"missing-params":_(ft),"missing-pulse":_(yt),"route-mode":Os.value,"enabled-mode":Ds.value,"disabled-mode":Us.value,"config-impact-routes":_(be),"config-status-map":_(G),"onUpdate:paramValue":_(pn),onRun:_(te)},null,8,["queryText","headersText","bodyText","bodyType","rawType","rawValidate","multipartFiles","binaryFile","authType","authToken","authUsername","authPassword","authKeyName","authKeyValue","authKeyLocation","authCustomName","authCustomValue","selected","selected-disabled","selected-ignored","selected-config","request-url","workspace-root","response-raw","response-pretty","response-headers","response-content-type","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)])])])]))}});ux();ip(Ew).use(hx).mount("#app");export{Rn as a,$ as b,I as c,Ge as d,pe as e,y as f,Hs as g,V as h,Ir as i,Zt as m,En as o,ee as r,N as t,Sr as u,Bs as v,ht as w};
2
+ (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 pl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ve={},Gn=[],Ut=()=>{},Ui=()=>!1,Wr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gl=e=>e.startsWith("onUpdate:"),et=Object.assign,ml=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Gd=Object.prototype.hasOwnProperty,Ae=(e,t)=>Gd.call(e,t),ge=Array.isArray,qn=e=>Gs(e)==="[object Map]",Ki=e=>Gs(e)==="[object Set]",zl=e=>Gs(e)==="[object Date]",be=e=>typeof e=="function",ze=e=>typeof e=="string",Pt=e=>typeof e=="symbol",Ne=e=>e!==null&&typeof e=="object",ji=e=>(Ne(e)||be(e))&&be(e.then)&&be(e.catch),Wi=Object.prototype.toString,Gs=e=>Wi.call(e),qd=e=>Gs(e).slice(8,-1),Bi=e=>Gs(e)==="[object Object]",Br=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,_s=pl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},zd=/-\w/g,mn=Hr(e=>e.replace(zd,t=>t.slice(1).toUpperCase())),Jd=/\B([A-Z])/g,yn=Hr(e=>e.replace(Jd,"-$1").toLowerCase()),Hi=Hr(e=>e.charAt(0).toUpperCase()+e.slice(1)),po=Hr(e=>e?`on${Hi(e)}`:""),pn=(e,t)=>!Object.is(e,t),go=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Gi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Yd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xd=e=>{const t=ze(e)?Number(e):NaN;return isNaN(t)?e:t};let Jl;const Gr=()=>Jl||(Jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dn(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ze(s)?tf(s):Dn(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ze(e)||Ne(e))return e}const Qd=/;(?![^(]*\))/g,Zd=/:([^]+)/,ef=/\/\*[^]*?\*\//g;function tf(e){const t={};return e.replace(ef,"").split(Qd).forEach(n=>{if(n){const s=n.split(Zd);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ie(e){let t="";if(ze(e))t=e;else if(ge(e))for(let n=0;n<e.length;n++){const s=ie(e[n]);s&&(t+=s+" ")}else if(Ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const nf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",sf=pl(nf);function qi(e){return!!e||e===""}function rf(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=hl(e[s],t[s]);return n}function hl(e,t){if(e===t)return!0;let n=zl(e),s=zl(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Pt(e),s=Pt(t),n||s)return e===t;if(n=ge(e),s=ge(t),n||s)return n&&s?rf(e,t):!1;if(n=Ne(e),s=Ne(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const l in e){const a=e.hasOwnProperty(l),i=t.hasOwnProperty(l);if(a&&!i||!a&&i||!hl(e[l],t[l]))return!1}}return String(e)===String(t)}const zi=e=>!!(e&&e.__v_isRef===!0),F=e=>ze(e)?e:e==null?"":ge(e)||Ne(e)&&(e.toString===Wi||!be(e.toString))?zi(e)?F(e.value):JSON.stringify(e,Ji,2):String(e),Ji=(e,t)=>zi(t)?Ji(e,t.value):qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[mo(s,o)+" =>"]=r,n),{})}:Ki(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>mo(n))}:Pt(t)?mo(t):Ne(t)&&!ge(t)&&!Bi(t)?String(t):t,mo=(e,t="")=>{var n;return Pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ht;class Yi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ht,!t&&ht&&(this.index=(ht.scopes||(ht.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=ht;try{return ht=this,t()}finally{ht=n}}}on(){++this._on===1&&(this.prevScope=ht,ht=this)}off(){this._on>0&&--this._on===0&&(ht=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 of(e){return new Yi(e)}function lf(){return ht}let Ue;const ho=new WeakSet;class Xi{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,ht&&ht.active&&ht.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ho.has(this)&&(ho.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Yl(this),ec(this);const t=Ue,n=Rt;Ue=this,Rt=!0;try{return this.fn()}finally{tc(this),Ue=t,Rt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vl(t);this.deps=this.depsTail=void 0,Yl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ho.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){No(this)&&this.run()}get dirty(){return No(this)}}let Qi=0,ws,Ts;function Zi(e,t=!1){if(e.flags|=8,t){e.next=Ts,Ts=e;return}e.next=ws,ws=e}function bl(){Qi++}function yl(){if(--Qi>0)return;if(Ts){let t=Ts;for(Ts=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ws;){let t=ws;for(ws=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 ec(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tc(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),vl(s),af(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function No(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(nc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function nc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ms)||(e.globalVersion=Ms,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!No(e))))return;e.flags|=2;const t=e.dep,n=Ue,s=Rt;Ue=e,Rt=!0;try{ec(e);const r=e.fn(e._value);(t.version===0||pn(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Ue=n,Rt=s,tc(e),e.flags&=-3}}function vl(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)vl(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function af(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Rt=!0;const sc=[];function nn(){sc.push(Rt),Rt=!1}function sn(){const e=sc.pop();Rt=e===void 0?!0:e}function Yl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ue;Ue=void 0;try{t()}finally{Ue=n}}}let Ms=0;class cf{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 xl{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(!Ue||!Rt||Ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ue)n=this.activeLink=new cf(Ue,this),Ue.deps?(n.prevDep=Ue.depsTail,Ue.depsTail.nextDep=n,Ue.depsTail=n):Ue.deps=Ue.depsTail=n,rc(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=Ue.depsTail,n.nextDep=void 0,Ue.depsTail.nextDep=n,Ue.depsTail=n,Ue.deps===n&&(Ue.deps=s)}return n}trigger(t){this.version++,Ms++,this.notify(t)}notify(t){bl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{yl()}}}function rc(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)rc(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Sr=new WeakMap,In=Symbol(""),Oo=Symbol(""),Ls=Symbol("");function ot(e,t,n){if(Rt&&Ue){let s=Sr.get(e);s||Sr.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new xl),r.map=s,r.key=n),r.track()}}function Qt(e,t,n,s,r,o){const l=Sr.get(e);if(!l){Ms++;return}const a=i=>{i&&i.trigger()};if(bl(),t==="clear")l.forEach(a);else{const i=ge(e),c=i&&Br(n);if(i&&n==="length"){const u=Number(s);l.forEach((d,g)=>{(g==="length"||g===Ls||!Pt(g)&&g>=u)&&a(d)})}else switch((n!==void 0||l.has(void 0))&&a(l.get(n)),c&&a(l.get(Ls)),t){case"add":i?c&&a(l.get("length")):(a(l.get(In)),qn(e)&&a(l.get(Oo)));break;case"delete":i||(a(l.get(In)),qn(e)&&a(l.get(Oo)));break;case"set":qn(e)&&a(l.get(In));break}}yl()}function uf(e,t){const n=Sr.get(e);return n&&n.get(t)}function jn(e){const t=Re(e);return t===e?t:(ot(t,"iterate",Ls),_t(e)?t:t.map($t))}function qr(e){return ot(e=Re(e),"iterate",Ls),e}function un(e,t){return rn(e)?Qn(An(e)?$t(t):t):$t(t)}const df={__proto__:null,[Symbol.iterator](){return bo(this,Symbol.iterator,e=>un(this,e))},concat(...e){return jn(this).concat(...e.map(t=>ge(t)?jn(t):t))},entries(){return bo(this,"entries",e=>(e[1]=un(this,e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(s=>un(this,s)),arguments)},find(e,t){return Ht(this,"find",e,t,n=>un(this,n),arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,n=>un(this,n),arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return yo(this,"includes",e)},indexOf(...e){return yo(this,"indexOf",e)},join(e){return jn(this).join(e)},lastIndexOf(...e){return yo(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return cs(this,"pop")},push(...e){return cs(this,"push",e)},reduce(e,...t){return Xl(this,"reduce",e,t)},reduceRight(e,...t){return Xl(this,"reduceRight",e,t)},shift(){return cs(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return cs(this,"splice",e)},toReversed(){return jn(this).toReversed()},toSorted(e){return jn(this).toSorted(e)},toSpliced(...e){return jn(this).toSpliced(...e)},unshift(...e){return cs(this,"unshift",e)},values(){return bo(this,"values",e=>un(this,e))}};function bo(e,t,n){const s=qr(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 ff=Array.prototype;function Ht(e,t,n,s,r,o){const l=qr(e),a=l!==e&&!_t(e),i=l[t];if(i!==ff[t]){const d=i.apply(e,o);return a?$t(d):d}let c=n;l!==e&&(a?c=function(d,g){return n.call(this,un(e,d),g,e)}:n.length>2&&(c=function(d,g){return n.call(this,d,g,e)}));const u=i.call(l,c,s);return a&&r?r(u):u}function Xl(e,t,n,s){const r=qr(e);let o=n;return r!==e&&(_t(e)?n.length>3&&(o=function(l,a,i){return n.call(this,l,a,i,e)}):o=function(l,a,i){return n.call(this,l,un(e,a),i,e)}),r[t](o,...s)}function yo(e,t,n){const s=Re(e);ot(s,"iterate",Ls);const r=s[t](...n);return(r===-1||r===!1)&&zr(n[0])?(n[0]=Re(n[0]),s[t](...n)):r}function cs(e,t,n=[]){nn(),bl();const s=Re(e)[t].apply(e,n);return yl(),sn(),s}const pf=pl("__proto__,__v_isRef,__isVue"),oc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pt));function gf(e){Pt(e)||(e=String(e));const t=Re(this);return ot(t,"has",e),t.hasOwnProperty(e)}class lc{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?kf:uc:o?cc:ic).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const l=ge(t);if(!r){let i;if(l&&(i=df[n]))return i;if(n==="hasOwnProperty")return gf}const a=Reflect.get(t,n,Ce(t)?t:s);if((Pt(n)?oc.has(n):pf(n))||(r||ot(t,"get",n),o))return a;if(Ce(a)){const i=l&&Br(n)?a:a.value;return r&&Ne(i)?Do(i):i}return Ne(a)?r?Do(a):wl(a):a}}class ac extends lc{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const l=ge(t)&&Br(n);if(!this._isShallow){const c=rn(o);if(!_t(s)&&!rn(s)&&(o=Re(o),s=Re(s)),!l&&Ce(o)&&!Ce(s))return c||(o.value=s),!0}const a=l?Number(n)<t.length:Ae(t,n),i=Reflect.set(t,n,s,Ce(t)?t:r);return t===Re(r)&&(a?pn(s,o)&&Qt(t,"set",n,s):Qt(t,"add",n,s)),i}deleteProperty(t,n){const s=Ae(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Qt(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Pt(n)||!oc.has(n))&&ot(t,"has",n),s}ownKeys(t){return ot(t,"iterate",ge(t)?"length":In),Reflect.ownKeys(t)}}class mf extends lc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const hf=new ac,bf=new mf,yf=new ac(!0);const Fo=e=>e,ar=e=>Reflect.getPrototypeOf(e);function vf(e,t,n){return function(...s){const r=this.__v_raw,o=Re(r),l=qn(o),a=e==="entries"||e===Symbol.iterator&&l,i=e==="keys"&&l,c=r[e](...s),u=n?Fo:t?Qn:$t;return!t&&ot(o,"iterate",i?Oo:In),et(Object.create(c),{next(){const{value:d,done:g}=c.next();return g?{value:d,done:g}:{value:a?[u(d[0]),u(d[1])]:u(d),done:g}}})}}function ir(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xf(e,t){const n={get(r){const o=this.__v_raw,l=Re(o),a=Re(r);e||(pn(r,a)&&ot(l,"get",r),ot(l,"get",a));const{has:i}=ar(l),c=t?Fo:e?Qn:$t;if(i.call(l,r))return c(o.get(r));if(i.call(l,a))return c(o.get(a));o!==l&&o.get(r)},get size(){const r=this.__v_raw;return!e&&ot(Re(r),"iterate",In),r.size},has(r){const o=this.__v_raw,l=Re(o),a=Re(r);return e||(pn(r,a)&&ot(l,"has",r),ot(l,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const l=this,a=l.__v_raw,i=Re(a),c=t?Fo:e?Qn:$t;return!e&&ot(i,"iterate",In),a.forEach((u,d)=>r.call(o,c(u),c(d),l))}};return et(n,e?{add:ir("add"),set:ir("set"),delete:ir("delete"),clear:ir("clear")}:{add(r){!t&&!_t(r)&&!rn(r)&&(r=Re(r));const o=Re(this);return ar(o).has.call(o,r)||(o.add(r),Qt(o,"add",r,r)),this},set(r,o){!t&&!_t(o)&&!rn(o)&&(o=Re(o));const l=Re(this),{has:a,get:i}=ar(l);let c=a.call(l,r);c||(r=Re(r),c=a.call(l,r));const u=i.call(l,r);return l.set(r,o),c?pn(o,u)&&Qt(l,"set",r,o):Qt(l,"add",r,o),this},delete(r){const o=Re(this),{has:l,get:a}=ar(o);let i=l.call(o,r);i||(r=Re(r),i=l.call(o,r)),a&&a.call(o,r);const c=o.delete(r);return i&&Qt(o,"delete",r,void 0),c},clear(){const r=Re(this),o=r.size!==0,l=r.clear();return o&&Qt(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=vf(r,e,t)}),n}function _l(e,t){const n=xf(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Ae(n,r)&&r in s?n:s,r,o)}const _f={get:_l(!1,!1)},wf={get:_l(!1,!0)},Tf={get:_l(!0,!1)};const ic=new WeakMap,cc=new WeakMap,uc=new WeakMap,kf=new WeakMap;function Cf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sf(e){return e.__v_skip||!Object.isExtensible(e)?0:Cf(qd(e))}function wl(e){return rn(e)?e:Tl(e,!1,hf,_f,ic)}function Ef(e){return Tl(e,!1,yf,wf,cc)}function Do(e){return Tl(e,!0,bf,Tf,uc)}function Tl(e,t,n,s,r){if(!Ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Sf(e);if(o===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function An(e){return rn(e)?An(e.__v_raw):!!(e&&e.__v_isReactive)}function rn(e){return!!(e&&e.__v_isReadonly)}function _t(e){return!!(e&&e.__v_isShallow)}function zr(e){return e?!!e.__v_raw:!1}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Rf(e){return!Ae(e,"__v_skip")&&Object.isExtensible(e)&&Gi(e,"__v_skip",!0),e}const $t=e=>Ne(e)?wl(e):e,Qn=e=>Ne(e)?Do(e):e;function Ce(e){return e?e.__v_isRef===!0:!1}function ee(e){return dc(e,!1)}function Pf(e){return dc(e,!0)}function dc(e,t){return Ce(e)?e:new $f(e,t)}class $f{constructor(t,n){this.dep=new xl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:$t(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)||rn(t);t=s?t:Re(t),pn(t,n)&&(this._rawValue=t,this._value=s?t:$t(t),this.dep.trigger())}}function C(e){return Ce(e)?e.value:e}const Mf={get:(e,t,n)=>t==="__v_raw"?e:C(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ce(r)&&!Ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function fc(e){return An(e)?e:new Proxy(e,Mf)}function Lf(e){const t=ge(e)?new Array(e.length):{};for(const n in e)t[n]=Af(e,n);return t}class If{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Re(t);let r=!0,o=t;if(!ge(t)||!Br(String(n)))do r=!zr(o)||_t(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=C(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ce(this._raw[this._key])){const n=this._object[this._key];if(Ce(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return uf(this._raw,this._key)}}function Af(e,t,n){return new If(e,t,n)}class Nf{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new xl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ms-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Zi(this,!0),!0}get value(){const t=this.dep.track();return nc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Of(e,t,n=!1){let s,r;return be(e)?s=e:(s=e.get,r=e.set),new Nf(s,r,n)}const cr={},Er=new WeakMap;let $n;function Ff(e,t=!1,n=$n){if(n){let s=Er.get(n);s||Er.set(n,s=[]),s.push(e)}}function Df(e,t,n=Ve){const{immediate:s,deep:r,once:o,scheduler:l,augmentJob:a,call:i}=n,c=h=>r?h:_t(h)||r===!1||r===0?Zt(h,1):Zt(h);let u,d,g,f,m=!1,y=!1;if(Ce(e)?(d=()=>e.value,m=_t(e)):An(e)?(d=()=>c(e),m=!0):ge(e)?(y=!0,m=e.some(h=>An(h)||_t(h)),d=()=>e.map(h=>{if(Ce(h))return h.value;if(An(h))return c(h);if(be(h))return i?i(h,2):h()})):be(e)?t?d=i?()=>i(e,2):e:d=()=>{if(g){nn();try{g()}finally{sn()}}const h=$n;$n=u;try{return i?i(e,3,[f]):e(f)}finally{$n=h}}:d=Ut,t&&r){const h=d,P=r===!0?1/0:r;d=()=>Zt(h(),P)}const A=lf(),b=()=>{u.stop(),A&&A.active&&ml(A.effects,u)};if(o&&t){const h=t;t=(...P)=>{h(...P),b()}}let E=y?new Array(e.length).fill(cr):cr;const w=h=>{if(!(!(u.flags&1)||!u.dirty&&!h))if(t){const P=u.run();if(r||m||(y?P.some((S,I)=>pn(S,E[I])):pn(P,E))){g&&g();const S=$n;$n=u;try{const I=[P,E===cr?void 0:y&&E[0]===cr?[]:E,f];E=P,i?i(t,3,I):t(...I)}finally{$n=S}}}else u.run()};return a&&a(w),u=new Xi(d),u.scheduler=l?()=>l(w,!1):w,f=h=>Ff(h,!1,u),g=u.onStop=()=>{const h=Er.get(u);if(h){if(i)i(h,4);else for(const P of h)P();Er.delete(u)}},t?s?w(!0):E=u.run():l?l(w.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Zt(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--,Ce(e))Zt(e.value,t,n);else if(ge(e))for(let s=0;s<e.length;s++)Zt(e[s],t,n);else if(Ki(e)||qn(e))e.forEach(s=>{Zt(s,t,n)});else if(Bi(e)){for(const s in e)Zt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Zt(e[s],t,n)}return e}function qs(e,t,n,s){try{return s?e(...s):e()}catch(r){zs(r,t,n)}}function Mt(e,t,n,s){if(be(e)){const r=qs(e,t,n,s);return r&&ji(r)&&r.catch(o=>{zs(o,t,n)}),r}if(ge(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Mt(e[o],t,n,s));return r}}function zs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||Ve;if(t){let a=t.parent;const i=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,i,c)===!1)return}a=a.parent}if(o){nn(),qs(o,null,10,[e,i,c]),sn();return}}Vf(e,n,r,s,l)}function Vf(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const pt=[];let Ft=-1;const zn=[];let dn=null,Bn=0;const pc=Promise.resolve();let Rr=null;function ks(e){const t=Rr||pc;return e?t.then(this?e.bind(this):e):t}function Uf(e){let t=Ft+1,n=pt.length;for(;t<n;){const s=t+n>>>1,r=pt[s],o=Is(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function kl(e){if(!(e.flags&1)){const t=Is(e),n=pt[pt.length-1];!n||!(e.flags&2)&&t>=Is(n)?pt.push(e):pt.splice(Uf(t),0,e),e.flags|=1,gc()}}function gc(){Rr||(Rr=pc.then(hc))}function Kf(e){ge(e)?zn.push(...e):dn&&e.id===-1?dn.splice(Bn+1,0,e):e.flags&1||(zn.push(e),e.flags|=1),gc()}function Ql(e,t,n=Ft+1){for(;n<pt.length;n++){const s=pt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;pt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function mc(e){if(zn.length){const t=[...new Set(zn)].sort((n,s)=>Is(n)-Is(s));if(zn.length=0,dn){dn.push(...t);return}for(dn=t,Bn=0;Bn<dn.length;Bn++){const n=dn[Bn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}dn=null,Bn=0}}const Is=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hc(e){try{for(Ft=0;Ft<pt.length;Ft++){const t=pt[Ft];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),qs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ft<pt.length;Ft++){const t=pt[Ft];t&&(t.flags&=-2)}Ft=-1,pt.length=0,mc(),Rr=null,(pt.length||zn.length)&&hc()}}let it=null,bc=null;function Pr(e){const t=it;return it=e,bc=e&&e.type.__scopeId||null,t}function ue(e,t=it,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lr(-1);const o=Pr(t);let l;try{l=e(...r)}finally{Pr(o),s._d&&Lr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function vo(e,t){if(it===null)return e;const n=Qr(it),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,l,a,i=Ve]=t[r];o&&(be(o)&&(o={mounted:o,updated:o}),o.deep&&Zt(l),s.push({dir:o,instance:n,value:l,oldValue:void 0,arg:a,modifiers:i}))}return e}function kn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let l=0;l<r.length;l++){const a=r[l];o&&(a.oldValue=o[l].value);let i=a.dir[s];i&&(nn(),Mt(i,n,8,[e.el,a,e,t]),sn())}}function jf(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 Cs(e,t,n=!1){const s=Xs();if(s||Yn){let r=Yn?Yn._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&&be(t)?t.call(s&&s.proxy):t}}const Wf=Symbol.for("v-scx"),Bf=()=>Cs(Wf);function ct(e,t,n){return yc(e,t,n)}function yc(e,t,n=Ve){const{immediate:s,deep:r,flush:o,once:l}=n,a=et({},n),i=t&&s||!t&&o!=="post";let c;if(es){if(o==="sync"){const f=Bf();c=f.__watcherHandles||(f.__watcherHandles=[])}else if(!i){const f=()=>{};return f.stop=Ut,f.resume=Ut,f.pause=Ut,f}}const u=at;a.call=(f,m,y)=>Mt(f,u,m,y);let d=!1;o==="post"?a.scheduler=f=>{rt(f,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(f,m)=>{m?f():kl(f)}),a.augmentJob=f=>{t&&(f.flags|=4),d&&(f.flags|=2,u&&(f.id=u.uid,f.i=u))};const g=Df(e,t,a);return es&&(c?c.push(g):i&&g()),g}function Hf(e,t,n){const s=this.proxy,r=ze(e)?e.includes(".")?vc(s,e):()=>s[e]:e.bind(s,s);let o;be(t)?o=t:(o=t.handler,n=t);const l=Qs(this),a=yc(r,o.bind(s),n);return l(),a}function vc(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 xc=Symbol("_vte"),_c=e=>e.__isTeleport,Ss=e=>e&&(e.disabled||e.disabled===""),Zl=e=>e&&(e.defer||e.defer===""),ea=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ta=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Vo=(e,t)=>{const n=e&&e.to;return ze(n)?t?t(n):null:n},wc={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,l,a,i,c){const{mc:u,pc:d,pbc:g,o:{insert:f,querySelector:m,createText:y,createComment:A}}=c,b=Ss(t.props);let{shapeFlag:E,children:w,dynamicChildren:h}=t;if(e==null){const P=t.el=y(""),S=t.anchor=y("");f(P,n,s),f(S,n,s);const I=(z,Z)=>{E&16&&u(w,z,Z,r,o,l,a,i)},K=()=>{const z=t.target=Vo(t.props,m),Z=Uo(z,t,y,f);z&&(l!=="svg"&&ea(z)?l="svg":l!=="mathml"&&ta(z)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(z),b||(I(z,Z),_r(t,!1)))};b&&(I(n,S),_r(t,!0)),Zl(t.props)?(t.el.__isMounted=!1,rt(()=>{K(),delete t.el.__isMounted},o)):K()}else{if(Zl(t.props)&&e.el.__isMounted===!1){rt(()=>{wc.process(e,t,n,s,r,o,l,a,i,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,S=t.target=e.target,I=t.targetAnchor=e.targetAnchor,K=Ss(e.props),z=K?n:S,Z=K?P:I;if(l==="svg"||ea(S)?l="svg":(l==="mathml"||ta(S))&&(l="mathml"),h?(g(e.dynamicChildren,h,z,r,o,l,a),Pl(e,t,!0)):i||d(e,t,z,Z,r,o,l,a,!1),b)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ur(t,n,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const se=t.target=Vo(t.props,m);se&&ur(t,se,null,c,0)}else K&&ur(t,S,I,c,1);_r(t,b)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:l,children:a,anchor:i,targetStart:c,targetAnchor:u,target:d,props:g}=e;if(d&&(r(c),r(u)),o&&r(i),l&16){const f=o||!Ss(g);for(let m=0;m<a.length;m++){const y=a[m];s(y,t,n,f,!!y.dynamicChildren)}}},move:ur,hydrate:Gf};function ur(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:l,anchor:a,shapeFlag:i,children:c,props:u}=e,d=o===2;if(d&&s(l,t,n),(!d||Ss(u))&&i&16)for(let g=0;g<c.length;g++)r(c[g],t,n,2);d&&s(a,t,n)}function Gf(e,t,n,s,r,o,{o:{nextSibling:l,parentNode:a,querySelector:i,insert:c,createText:u}},d){function g(A,b){let E=b;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,A._lpa=t.targetAnchor&&l(t.targetAnchor);break}}E=l(E)}}function f(A,b){b.anchor=d(l(A),b,a(A),n,s,r,o)}const m=t.target=Vo(t.props,i),y=Ss(t.props);if(m){const A=m._lpa||m.firstChild;t.shapeFlag&16&&(y?(f(e,t),g(m,A),t.targetAnchor||Uo(m,t,u,c,a(e)===m?e:null)):(t.anchor=l(e),g(m,A),t.targetAnchor||Uo(m,t,u,c),d(A&&l(A),t,m,n,s,r,o))),_r(t,y)}else y&&t.shapeFlag&16&&(f(e,t),t.targetStart=e,t.targetAnchor=l(e));return t.anchor&&l(t.anchor)}const qf=wc;function _r(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Uo(e,t,n,s,r=null){const o=t.targetStart=n(""),l=t.targetAnchor=n("");return o[xc]=l,e&&(s(o,e,r),s(l,e,r)),l}const Dt=Symbol("_leaveCb"),us=Symbol("_enterCb");function zf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return rs(()=>{e.isMounted=!0}),Vn(()=>{e.isUnmounting=!0}),e}const Ct=[Function,Array],Tc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ct,onEnter:Ct,onAfterEnter:Ct,onEnterCancelled:Ct,onBeforeLeave:Ct,onLeave:Ct,onAfterLeave:Ct,onLeaveCancelled:Ct,onBeforeAppear:Ct,onAppear:Ct,onAfterAppear:Ct,onAppearCancelled:Ct},kc=e=>{const t=e.subTree;return t.component?kc(t.component):t},Jf={name:"BaseTransition",props:Tc,setup(e,{slots:t}){const n=Xs(),s=zf();return()=>{const r=t.default&&Ec(t.default(),!0);if(!r||!r.length)return;const o=Cc(r),l=Re(e),{mode:a}=l;if(s.isLeaving)return xo(o);const i=na(o);if(!i)return xo(o);let c=Ko(i,l,s,n,d=>c=d);i.type!==lt&&As(i,c);let u=n.subTree&&na(n.subTree);if(u&&u.type!==lt&&!Mn(u,i)&&kc(n).type!==lt){let d=Ko(u,l,s,n);if(As(u,d),a==="out-in"&&i.type!==lt)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},xo(o);a==="in-out"&&i.type!==lt?d.delayLeave=(g,f,m)=>{const y=Sc(s,u);y[String(u.key)]=u,g[Dt]=()=>{f(),g[Dt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Cc(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==lt){t=n;break}}return t}const Yf=Jf;function Sc(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 Ko(e,t,n,s,r){const{appear:o,mode:l,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:g,onLeave:f,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:A,onAppear:b,onAfterAppear:E,onAppearCancelled:w}=t,h=String(e.key),P=Sc(n,e),S=(z,Z)=>{z&&Mt(z,s,9,Z)},I=(z,Z)=>{const se=Z[1];S(z,Z),ge(z)?z.every(J=>J.length<=1)&&se():z.length<=1&&se()},K={mode:l,persisted:a,beforeEnter(z){let Z=i;if(!n.isMounted)if(o)Z=A||i;else return;z[Dt]&&z[Dt](!0);const se=P[h];se&&Mn(e,se)&&se.el[Dt]&&se.el[Dt](),S(Z,[z])},enter(z){let Z=c,se=u,J=d;if(!n.isMounted)if(o)Z=b||c,se=E||u,J=w||d;else return;let fe=!1;z[us]=Y=>{fe||(fe=!0,Y?S(J,[z]):S(se,[z]),K.delayedLeave&&K.delayedLeave(),z[us]=void 0)};const ne=z[us].bind(null,!1);Z?I(Z,[z,ne]):ne()},leave(z,Z){const se=String(e.key);if(z[us]&&z[us](!0),n.isUnmounting)return Z();S(g,[z]);let J=!1;z[Dt]=ne=>{J||(J=!0,Z(),ne?S(y,[z]):S(m,[z]),z[Dt]=void 0,P[se]===e&&delete P[se])};const fe=z[Dt].bind(null,!1);P[se]=e,f?I(f,[z,fe]):fe()},clone(z){const Z=Ko(z,t,n,s,r);return r&&r(Z),Z}};return K}function xo(e){if(Js(e))return e=hn(e),e.children=null,e}function na(e){if(!Js(e))return _c(e.type)&&e.children?Cc(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&&be(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 Ec(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let l=e[o];const a=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===me?(l.patchFlag&128&&r++,s=s.concat(Ec(l.children,t,a))):(t||l.type!==lt)&&s.push(a!=null?hn(l,{key:a}):l)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function je(e,t){return be(e)?et({name:e.name},t,{setup:e}):e}function Cl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function sa(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const $r=new WeakMap;function Es(e,t,n,s,r=!1){if(ge(e)){e.forEach((y,A)=>Es(y,t&&(ge(t)?t[A]:t),n,s,r));return}if(Jn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Es(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Qr(s.component):s.el,l=r?null:o,{i:a,r:i}=e,c=t&&t.r,u=a.refs===Ve?a.refs={}:a.refs,d=a.setupState,g=Re(d),f=d===Ve?Ui:y=>sa(u,y)?!1:Ae(g,y),m=(y,A)=>!(A&&sa(u,A));if(c!=null&&c!==i){if(ra(t),ze(c))u[c]=null,f(c)&&(d[c]=null);else if(Ce(c)){const y=t;m(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(be(i))qs(i,a,12,[l,u]);else{const y=ze(i),A=Ce(i);if(y||A){const b=()=>{if(e.f){const E=y?f(i)?d[i]:u[i]:m()||!e.k?i.value:u[e.k];if(r)ge(E)&&ml(E,o);else if(ge(E))E.includes(o)||E.push(o);else if(y)u[i]=[o],f(i)&&(d[i]=u[i]);else{const w=[o];m(i,e.k)&&(i.value=w),e.k&&(u[e.k]=w)}}else y?(u[i]=l,f(i)&&(d[i]=l)):A&&(m(i,e.k)&&(i.value=l),e.k&&(u[e.k]=l))};if(l){const E=()=>{b(),$r.delete(e)};E.id=-1,$r.set(e,E),rt(E,n)}else ra(e),b()}}}function ra(e){const t=$r.get(e);t&&(t.flags|=8,$r.delete(e))}const oa=e=>e.nodeType===8;Gr().requestIdleCallback;Gr().cancelIdleCallback;function Xf(e,t){if(oa(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(oa(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Jn=e=>!!e.type.__asyncLoader;function Qf(e){be(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:o,timeout:l,suspensible:a=!0,onError:i}=e;let c=null,u,d=0;const g=()=>(d++,c=null,f()),f=()=>{let m;return c||(m=c=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),i)return new Promise((A,b)=>{i(y,()=>A(g()),()=>b(y),d+1)});throw y}).then(y=>m!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),u=y,y)))};return je({name:"AsyncComponentWrapper",__asyncLoader:f,__asyncHydrate(m,y,A){let b=!1;(y.bu||(y.bu=[])).push(()=>b=!0);const E=()=>{b||A()},w=o?()=>{const h=o(E,P=>Xf(m,P));h&&(y.bum||(y.bum=[])).push(h)}:E;u?w():f().then(()=>!y.isUnmounted&&w())},get __asyncResolved(){return u},setup(){const m=at;if(Cl(m),u)return()=>dr(u,m);const y=w=>{c=null,zs(w,m,13,!s)};if(a&&m.suspense||es)return f().then(w=>()=>dr(w,m)).catch(w=>(y(w),()=>s?Q(s,{error:w}):null));const A=ee(!1),b=ee(),E=ee(!!r);return r&&setTimeout(()=>{E.value=!1},r),l!=null&&setTimeout(()=>{if(!A.value&&!b.value){const w=new Error(`Async component timed out after ${l}ms.`);y(w),b.value=w}},l),f().then(()=>{A.value=!0,m.parent&&Js(m.parent.vnode)&&m.parent.update()}).catch(w=>{y(w),b.value=w}),()=>{if(A.value&&u)return dr(u,m);if(b.value&&s)return Q(s,{error:b.value});if(n&&!E.value)return dr(n,m)}}})}function dr(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,l=Q(e,s,r);return l.ref=n,l.ce=o,delete t.vnode.ce,l}const Js=e=>e.type.__isKeepAlive;function Zf(e,t){Rc(e,"a",t)}function ep(e,t){Rc(e,"da",t)}function Rc(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(Jr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Js(r.parent.vnode)&&tp(s,t,n,r),r=r.parent}}function tp(e,t,n,s){const r=Jr(t,e,s,!0);Sl(()=>{ml(s[t],r)},n)}function Jr(e,t,n=at,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{nn();const a=Qs(n),i=Mt(t,n,e,l);return a(),sn(),i});return s?r.unshift(o):r.push(o),o}}const ln=e=>(t,n=at)=>{(!es||e==="sp")&&Jr(e,(...s)=>t(...s),n)},np=ln("bm"),rs=ln("m"),sp=ln("bu"),rp=ln("u"),Vn=ln("bum"),Sl=ln("um"),op=ln("sp"),lp=ln("rtg"),ap=ln("rtc");function ip(e,t=at){Jr("ec",e,t)}const cp=Symbol.for("v-ndc");function Fe(e,t,n,s){let r;const o=n,l=ge(e);if(l||ze(e)){const a=l&&An(e);let i=!1,c=!1;a&&(i=!_t(e),c=rn(e),e=qr(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(i?c?Qn($t(e[u])):$t(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(Ne(e))if(e[Symbol.iterator])r=Array.from(e,(a,i)=>t(a,i,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let i=0,c=a.length;i<c;i++){const u=a[i];r[i]=t(e[u],u,i,o)}}else r=[];return r}function Zn(e,t,n={},s,r){if(it.ce||it.parent&&Jn(it.parent)&&it.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),L(),ut(me,null,[Q("slot",n,s)],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),L();const l=o&&Pc(o(n)),a=n.key||l&&l.key,i=ut(me,{key:(a&&!Pt(a)?a:`_${t}`)+(!l&&s?"_fb":"")},l||[],l&&e._===1?64:-2);return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),o&&o._c&&(o._d=!0),i}function Pc(e){return e.some(t=>Os(t)?!(t.type===lt||t.type===me&&!Pc(t.children)):!0)?e:null}const jo=e=>e?zc(e)?Qr(e):jo(e.parent):null,Rs=et(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=>jo(e.parent),$root:e=>jo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Mc(e),$forceUpdate:e=>e.f||(e.f=()=>{kl(e.update)}),$nextTick:e=>e.n||(e.n=ks.bind(e.proxy)),$watch:e=>Hf.bind(e)}),_o=(e,t)=>e!==Ve&&!e.__isScriptSetup&&Ae(e,t),up={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:l,type:a,appContext:i}=e;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(_o(s,t))return l[t]=1,s[t];if(r!==Ve&&Ae(r,t))return l[t]=2,r[t];if(Ae(o,t))return l[t]=3,o[t];if(n!==Ve&&Ae(n,t))return l[t]=4,n[t];Wo&&(l[t]=0)}}const c=Rs[t];let u,d;if(c)return t==="$attrs"&&ot(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ve&&Ae(n,t))return l[t]=4,n[t];if(d=i.config.globalProperties,Ae(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return _o(r,t)?(r[t]=n,!0):s!==Ve&&Ae(s,t)?(s[t]=n,!0):Ae(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}},a){let i;return!!(n[a]||e!==Ve&&a[0]!=="$"&&Ae(e,a)||_o(t,a)||Ae(o,a)||Ae(s,a)||Ae(Rs,a)||Ae(r.config.globalProperties,a)||(i=l.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ae(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yr(){return dp().attrs}function dp(e){const t=Xs();return t.setupContext||(t.setupContext=Yc(t))}function la(e){return ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Wo=!0;function fp(e){const t=Mc(e),n=e.proxy,s=e.ctx;Wo=!1,t.beforeCreate&&aa(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:l,watch:a,provide:i,inject:c,created:u,beforeMount:d,mounted:g,beforeUpdate:f,updated:m,activated:y,deactivated:A,beforeDestroy:b,beforeUnmount:E,destroyed:w,unmounted:h,render:P,renderTracked:S,renderTriggered:I,errorCaptured:K,serverPrefetch:z,expose:Z,inheritAttrs:se,components:J,directives:fe,filters:ne}=t;if(c&&pp(c,s,null),l)for(const W in l){const G=l[W];be(G)&&(s[W]=G.bind(n))}if(r){const W=r.call(n,n);Ne(W)&&(e.data=wl(W))}if(Wo=!0,o)for(const W in o){const G=o[W],oe=be(G)?G.bind(n,n):be(G.get)?G.get.bind(n,n):Ut,Te=!be(G)&&be(G.set)?G.set.bind(n):Ut,ve=j({get:oe,set:Te});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>ve.value,set:pe=>ve.value=pe})}if(a)for(const W in a)$c(a[W],s,n,W);if(i){const W=be(i)?i.call(n):i;Reflect.ownKeys(W).forEach(G=>{jf(G,W[G])})}u&&aa(u,e,"c");function B(W,G){ge(G)?G.forEach(oe=>W(oe.bind(n))):G&&W(G.bind(n))}if(B(np,d),B(rs,g),B(sp,f),B(rp,m),B(Zf,y),B(ep,A),B(ip,K),B(ap,S),B(lp,I),B(Vn,E),B(Sl,h),B(op,z),ge(Z))if(Z.length){const W=e.exposed||(e.exposed={});Z.forEach(G=>{Object.defineProperty(W,G,{get:()=>n[G],set:oe=>n[G]=oe,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===Ut&&(e.render=P),se!=null&&(e.inheritAttrs=se),J&&(e.components=J),fe&&(e.directives=fe),z&&Cl(e)}function pp(e,t,n=Ut){ge(e)&&(e=Bo(e));for(const s in e){const r=e[s];let o;Ne(r)?"default"in r?o=Cs(r.from||s,r.default,!0):o=Cs(r.from||s):o=Cs(r),Ce(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[s]=o}}function aa(e,t,n){Mt(ge(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function $c(e,t,n,s){let r=s.includes(".")?vc(n,s):()=>n[s];if(ze(e)){const o=t[e];be(o)&&ct(r,o)}else if(be(e))ct(r,e.bind(n));else if(Ne(e))if(ge(e))e.forEach(o=>$c(o,t,n,s));else{const o=be(e.handler)?e.handler.bind(n):t[e.handler];be(o)&&ct(r,o,e)}}function Mc(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,a=o.get(t);let i;return a?i=a:!r.length&&!n&&!s?i=t:(i={},r.length&&r.forEach(c=>Mr(i,c,l,!0)),Mr(i,t,l)),Ne(t)&&o.set(t,i),i}function Mr(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Mr(e,o,n,!0),r&&r.forEach(l=>Mr(e,l,n,!0));for(const l in t)if(!(s&&l==="expose")){const a=gp[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const gp={data:ia,props:ca,emits:ca,methods:bs,computed:bs,beforeCreate:ft,created:ft,beforeMount:ft,mounted:ft,beforeUpdate:ft,updated:ft,beforeDestroy:ft,beforeUnmount:ft,destroyed:ft,unmounted:ft,activated:ft,deactivated:ft,errorCaptured:ft,serverPrefetch:ft,components:bs,directives:bs,watch:hp,provide:ia,inject:mp};function ia(e,t){return t?e?function(){return et(be(e)?e.call(this,this):e,be(t)?t.call(this,this):t)}:t:e}function mp(e,t){return bs(Bo(e),Bo(t))}function Bo(e){if(ge(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ft(e,t){return e?[...new Set([].concat(e,t))]:t}function bs(e,t){return e?et(Object.create(null),e,t):t}function ca(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:et(Object.create(null),la(e),la(t??{})):t}function hp(e,t){if(!e)return t;if(!t)return e;const n=et(Object.create(null),e);for(const s in t)n[s]=ft(e[s],t[s]);return n}function Lc(){return{app:null,config:{isNativeTag:Ui,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 bp=0;function yp(e,t){return function(s,r=null){be(s)||(s=et({},s)),r!=null&&!Ne(r)&&(r=null);const o=Lc(),l=new WeakSet,a=[];let i=!1;const c=o.app={_uid:bp++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:qp,get config(){return o.config},set config(u){},use(u,...d){return l.has(u)||(u&&be(u.install)?(l.add(u),u.install(c,...d)):be(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,g){if(!i){const f=c._ceVNode||Q(s,r);return f.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(f,u,g),i=!0,c._container=u,u.__vue_app__=c,Qr(f.component)}},onUnmount(u){a.push(u)},unmount(){i&&(Mt(a,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=Yn;Yn=c;try{return u()}finally{Yn=d}}};return c}}let Yn=null;const vp=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mn(t)}Modifiers`]||e[`${yn(t)}Modifiers`];function xp(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ve;let r=n;const o=t.startsWith("update:"),l=o&&vp(s,t.slice(7));l&&(l.trim&&(r=n.map(u=>ze(u)?u.trim():u)),l.number&&(r=n.map(Yd)));let a,i=s[a=po(t)]||s[a=po(mn(t))];!i&&o&&(i=s[a=po(yn(t))]),i&&Mt(i,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Mt(c,e,6,r)}}const _p=new WeakMap;function Ic(e,t,n=!1){const s=n?_p:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let l={},a=!1;if(!be(e)){const i=c=>{const u=Ic(c,t,!0);u&&(a=!0,et(l,u))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!o&&!a?(Ne(e)&&s.set(e,null),null):(ge(o)?o.forEach(i=>l[i]=null):et(l,o),Ne(e)&&s.set(e,l),l)}function Xr(e,t){return!e||!Wr(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ae(e,t[0].toLowerCase()+t.slice(1))||Ae(e,yn(t))||Ae(e,t))}function ua(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:l,attrs:a,emit:i,render:c,renderCache:u,props:d,data:g,setupState:f,ctx:m,inheritAttrs:y}=e,A=Pr(e);let b,E;try{if(n.shapeFlag&4){const h=r||s,P=h;b=Vt(c.call(P,h,u,d,f,g,m)),E=a}else{const h=t;b=Vt(h.length>1?h(d,{attrs:a,slots:l,emit:i}):h(d,null)),E=t.props?a:wp(a)}}catch(h){Ps.length=0,zs(h,e,1),b=Q(lt)}let w=b;if(E&&y!==!1){const h=Object.keys(E),{shapeFlag:P}=w;h.length&&P&7&&(o&&h.some(gl)&&(E=Tp(E,o)),w=hn(w,E,!1,!0))}return n.dirs&&(w=hn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&As(w,n.transition),b=w,Pr(A),b}const wp=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wr(n))&&((t||(t={}))[n]=e[n]);return t},Tp=(e,t)=>{const n={};for(const s in e)(!gl(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function kp(e,t,n){const{props:s,children:r,component:o}=e,{props:l,children:a,patchFlag:i}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return s?da(s,l,c):!!l;if(i&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const g=u[d];if(Ac(l,s,g)&&!Xr(c,g))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===l?!1:s?l?da(s,l,c):!0:!!l;return!1}function da(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(Ac(t,e,o)&&!Xr(n,o))return!0}return!1}function Ac(e,t,n){const s=e[n],r=t[n];return n==="style"&&Ne(s)&&Ne(r)?!hl(s,r):s!==r}function Cp({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 Nc={},Oc=()=>Object.create(Nc),Fc=e=>Object.getPrototypeOf(e)===Nc;function Sp(e,t,n,s=!1){const r={},o=Oc();e.propsDefaults=Object.create(null),Dc(e,t,r,o);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=s?r:Ef(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Ep(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:l}}=e,a=Re(r),[i]=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 g=u[d];if(Xr(e.emitsOptions,g))continue;const f=t[g];if(i)if(Ae(o,g))f!==o[g]&&(o[g]=f,c=!0);else{const m=mn(g);r[m]=Ho(i,a,m,f,e,!1)}else f!==o[g]&&(o[g]=f,c=!0)}}}else{Dc(e,t,r,o)&&(c=!0);let u;for(const d in a)(!t||!Ae(t,d)&&((u=yn(d))===d||!Ae(t,u)))&&(i?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=Ho(i,a,d,void 0,e,!0)):delete r[d]);if(o!==a)for(const d in o)(!t||!Ae(t,d))&&(delete o[d],c=!0)}c&&Qt(e.attrs,"set","")}function Dc(e,t,n,s){const[r,o]=e.propsOptions;let l=!1,a;if(t)for(let i in t){if(_s(i))continue;const c=t[i];let u;r&&Ae(r,u=mn(i))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Xr(e.emitsOptions,i)||(!(i in s)||c!==s[i])&&(s[i]=c,l=!0)}if(o){const i=Re(n),c=a||Ve;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Ho(r,i,d,c[d],e,!Ae(c,d))}}return l}function Ho(e,t,n,s,r,o){const l=e[n];if(l!=null){const a=Ae(l,"default");if(a&&s===void 0){const i=l.default;if(l.type!==Function&&!l.skipFactory&&be(i)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=Qs(r);s=c[n]=i.call(null,t),u()}}else s=i;r.ce&&r.ce._setProp(n,s)}l[0]&&(o&&!a?s=!1:l[1]&&(s===""||s===yn(n))&&(s=!0))}return s}const Rp=new WeakMap;function Vc(e,t,n=!1){const s=n?Rp:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,l={},a=[];let i=!1;if(!be(e)){const u=d=>{i=!0;const[g,f]=Vc(d,t,!0);et(l,g),f&&a.push(...f)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!i)return Ne(e)&&s.set(e,Gn),Gn;if(ge(o))for(let u=0;u<o.length;u++){const d=mn(o[u]);fa(d)&&(l[d]=Ve)}else if(o)for(const u in o){const d=mn(u);if(fa(d)){const g=o[u],f=l[d]=ge(g)||be(g)?{type:g}:et({},g),m=f.type;let y=!1,A=!0;if(ge(m))for(let b=0;b<m.length;++b){const E=m[b],w=be(E)&&E.name;if(w==="Boolean"){y=!0;break}else w==="String"&&(A=!1)}else y=be(m)&&m.name==="Boolean";f[0]=y,f[1]=A,(y||Ae(f,"default"))&&a.push(d)}}const c=[l,a];return Ne(e)&&s.set(e,c),c}function fa(e){return e[0]!=="$"&&!_s(e)}const El=e=>e==="_"||e==="_ctx"||e==="$stable",Rl=e=>ge(e)?e.map(Vt):[Vt(e)],Pp=(e,t,n)=>{if(t._n)return t;const s=ue((...r)=>Rl(t(...r)),n);return s._c=!1,s},Uc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(El(r))continue;const o=e[r];if(be(o))t[r]=Pp(r,o,s);else if(o!=null){const l=Rl(o);t[r]=()=>l}}},Kc=(e,t)=>{const n=Rl(t);e.slots.default=()=>n},jc=(e,t,n)=>{for(const s in t)(n||!El(s))&&(e[s]=t[s])},$p=(e,t,n)=>{const s=e.slots=Oc();if(e.vnode.shapeFlag&32){const r=t._;r?(jc(s,t,n),n&&Gi(s,"_",r,!0)):Uc(t,s)}else t&&Kc(e,t)},Mp=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,l=Ve;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:jc(r,t,n):(o=!t.$stable,Uc(t,r)),l=t}else t&&(Kc(e,t),l={default:1});if(o)for(const a in r)!El(a)&&l[a]==null&&delete r[a]},rt=Op;function Lp(e){return Ip(e)}function Ip(e,t){const n=Gr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:l,createText:a,createComment:i,setText:c,setElementText:u,parentNode:d,nextSibling:g,setScopeId:f=Ut,insertStaticContent:m}=e,y=(T,$,D,V=null,U=null,H=null,v=void 0,p=null,R=!!$.dynamicChildren)=>{if(T===$)return;T&&!Mn(T,$)&&(V=_e(T),pe(T,U,H,!0),T=null),$.patchFlag===-2&&(R=!1,$.dynamicChildren=null);const{type:M,ref:X,shapeFlag:q}=$;switch(M){case Ys:A(T,$,D,V);break;case lt:b(T,$,D,V);break;case To:T==null&&E($,D,V,v);break;case me:J(T,$,D,V,U,H,v,p,R);break;default:q&1?P(T,$,D,V,U,H,v,p,R):q&6?fe(T,$,D,V,U,H,v,p,R):(q&64||q&128)&&M.process(T,$,D,V,U,H,v,p,R,We)}X!=null&&U?Es(X,T&&T.ref,H,$||T,!$):X==null&&T&&T.ref!=null&&Es(T.ref,null,H,T,!0)},A=(T,$,D,V)=>{if(T==null)s($.el=a($.children),D,V);else{const U=$.el=T.el;$.children!==T.children&&c(U,$.children)}},b=(T,$,D,V)=>{T==null?s($.el=i($.children||""),D,V):$.el=T.el},E=(T,$,D,V)=>{[T.el,T.anchor]=m(T.children,$,D,V,T.el,T.anchor)},w=({el:T,anchor:$},D,V)=>{let U;for(;T&&T!==$;)U=g(T),s(T,D,V),T=U;s($,D,V)},h=({el:T,anchor:$})=>{let D;for(;T&&T!==$;)D=g(T),r(T),T=D;r($)},P=(T,$,D,V,U,H,v,p,R)=>{if($.type==="svg"?v="svg":$.type==="math"&&(v="mathml"),T==null)S($,D,V,U,H,v,p,R);else{const M=T.el&&T.el._isVueCE?T.el:null;try{M&&M._beginPatch(),z(T,$,U,H,v,p,R)}finally{M&&M._endPatch()}}},S=(T,$,D,V,U,H,v,p)=>{let R,M;const{props:X,shapeFlag:q,transition:_,dirs:k}=T;if(R=T.el=l(T.type,H,X&&X.is,X),q&8?u(R,T.children):q&16&&K(T.children,R,null,V,U,wo(T,H),v,p),k&&kn(T,null,V,"created"),I(R,T,T.scopeId,v,V),X){for(const te in X)te!=="value"&&!_s(te)&&o(R,te,null,X[te],H,V);"value"in X&&o(R,"value",null,X.value,H),(M=X.onVnodeBeforeMount)&&At(M,V,T)}k&&kn(T,null,V,"beforeMount");const O=Ap(U,_);O&&_.beforeEnter(R),s(R,$,D),((M=X&&X.onVnodeMounted)||O||k)&&rt(()=>{M&&At(M,V,T),O&&_.enter(R),k&&kn(T,null,V,"mounted")},U)},I=(T,$,D,V,U)=>{if(D&&f(T,D),V)for(let H=0;H<V.length;H++)f(T,V[H]);if(U){let H=U.subTree;if($===H||Hc(H.type)&&(H.ssContent===$||H.ssFallback===$)){const v=U.vnode;I(T,v,v.scopeId,v.slotScopeIds,U.parent)}}},K=(T,$,D,V,U,H,v,p,R=0)=>{for(let M=R;M<T.length;M++){const X=T[M]=p?Yt(T[M]):Vt(T[M]);y(null,X,$,D,V,U,H,v,p)}},z=(T,$,D,V,U,H,v)=>{const p=$.el=T.el;let{patchFlag:R,dynamicChildren:M,dirs:X}=$;R|=T.patchFlag&16;const q=T.props||Ve,_=$.props||Ve;let k;if(D&&Cn(D,!1),(k=_.onVnodeBeforeUpdate)&&At(k,D,$,T),X&&kn($,T,D,"beforeUpdate"),D&&Cn(D,!0),(q.innerHTML&&_.innerHTML==null||q.textContent&&_.textContent==null)&&u(p,""),M?Z(T.dynamicChildren,M,p,D,V,wo($,U),H):v||G(T,$,p,null,D,V,wo($,U),H,!1),R>0){if(R&16)se(p,q,_,D,U);else if(R&2&&q.class!==_.class&&o(p,"class",null,_.class,U),R&4&&o(p,"style",q.style,_.style,U),R&8){const O=$.dynamicProps;for(let te=0;te<O.length;te++){const ce=O[te],Je=q[ce],Ge=_[ce];(Ge!==Je||ce==="value")&&o(p,ce,Je,Ge,U,D)}}R&1&&T.children!==$.children&&u(p,$.children)}else!v&&M==null&&se(p,q,_,D,U);((k=_.onVnodeUpdated)||X)&&rt(()=>{k&&At(k,D,$,T),X&&kn($,T,D,"updated")},V)},Z=(T,$,D,V,U,H,v)=>{for(let p=0;p<$.length;p++){const R=T[p],M=$[p],X=R.el&&(R.type===me||!Mn(R,M)||R.shapeFlag&198)?d(R.el):D;y(R,M,X,null,V,U,H,v,!0)}},se=(T,$,D,V,U)=>{if($!==D){if($!==Ve)for(const H in $)!_s(H)&&!(H in D)&&o(T,H,$[H],null,U,V);for(const H in D){if(_s(H))continue;const v=D[H],p=$[H];v!==p&&H!=="value"&&o(T,H,p,v,U,V)}"value"in D&&o(T,"value",$.value,D.value,U)}},J=(T,$,D,V,U,H,v,p,R)=>{const M=$.el=T?T.el:a(""),X=$.anchor=T?T.anchor:a("");let{patchFlag:q,dynamicChildren:_,slotScopeIds:k}=$;k&&(p=p?p.concat(k):k),T==null?(s(M,D,V),s(X,D,V),K($.children||[],D,X,U,H,v,p,R)):q>0&&q&64&&_&&T.dynamicChildren&&T.dynamicChildren.length===_.length?(Z(T.dynamicChildren,_,D,U,H,v,p),($.key!=null||U&&$===U.subTree)&&Pl(T,$,!0)):G(T,$,D,X,U,H,v,p,R)},fe=(T,$,D,V,U,H,v,p,R)=>{$.slotScopeIds=p,T==null?$.shapeFlag&512?U.ctx.activate($,D,V,v,R):ne($,D,V,U,H,v,R):Y(T,$,R)},ne=(T,$,D,V,U,H,v)=>{const p=T.component=jp(T,V,U);if(Js(T)&&(p.ctx.renderer=We),Wp(p,!1,v),p.asyncDep){if(U&&U.registerDep(p,B,v),!T.el){const R=p.subTree=Q(lt);b(null,R,$,D),T.placeholder=R.el}}else B(p,T,$,D,U,H,v)},Y=(T,$,D)=>{const V=$.component=T.component;if(kp(T,$,D))if(V.asyncDep&&!V.asyncResolved){W(V,$,D);return}else V.next=$,V.update();else $.el=T.el,V.vnode=$},B=(T,$,D,V,U,H,v)=>{const p=()=>{if(T.isMounted){let{next:q,bu:_,u:k,parent:O,vnode:te}=T;{const yt=Wc(T);if(yt){q&&(q.el=te.el,W(T,q,v)),yt.asyncDep.then(()=>{rt(()=>{T.isUnmounted||M()},U)});return}}let ce=q,Je;Cn(T,!1),q?(q.el=te.el,W(T,q,v)):q=te,_&&go(_),(Je=q.props&&q.props.onVnodeBeforeUpdate)&&At(Je,O,q,te),Cn(T,!0);const Ge=ua(T),gt=T.subTree;T.subTree=Ge,y(gt,Ge,d(gt.el),_e(gt),T,U,H),q.el=Ge.el,ce===null&&Cp(T,Ge.el),k&&rt(k,U),(Je=q.props&&q.props.onVnodeUpdated)&&rt(()=>At(Je,O,q,te),U)}else{let q;const{el:_,props:k}=$,{bm:O,m:te,parent:ce,root:Je,type:Ge}=T,gt=Jn($);Cn(T,!1),O&&go(O),!gt&&(q=k&&k.onVnodeBeforeMount)&&At(q,ce,$),Cn(T,!0);{Je.ce&&Je.ce._hasShadowRoot()&&Je.ce._injectChildStyle(Ge);const yt=T.subTree=ua(T);y(null,yt,D,V,T,U,H),$.el=yt.el}if(te&&rt(te,U),!gt&&(q=k&&k.onVnodeMounted)){const yt=$;rt(()=>At(q,ce,yt),U)}($.shapeFlag&256||ce&&Jn(ce.vnode)&&ce.vnode.shapeFlag&256)&&T.a&&rt(T.a,U),T.isMounted=!0,$=D=V=null}};T.scope.on();const R=T.effect=new Xi(p);T.scope.off();const M=T.update=R.run.bind(R),X=T.job=R.runIfDirty.bind(R);X.i=T,X.id=T.uid,R.scheduler=()=>kl(X),Cn(T,!0),M()},W=(T,$,D)=>{$.component=T;const V=T.vnode.props;T.vnode=$,T.next=null,Ep(T,$.props,V,D),Mp(T,$.children,D),nn(),Ql(T),sn()},G=(T,$,D,V,U,H,v,p,R=!1)=>{const M=T&&T.children,X=T?T.shapeFlag:0,q=$.children,{patchFlag:_,shapeFlag:k}=$;if(_>0){if(_&128){Te(M,q,D,V,U,H,v,p,R);return}else if(_&256){oe(M,q,D,V,U,H,v,p,R);return}}k&8?(X&16&&Me(M,U,H),q!==M&&u(D,q)):X&16?k&16?Te(M,q,D,V,U,H,v,p,R):Me(M,U,H,!0):(X&8&&u(D,""),k&16&&K(q,D,V,U,H,v,p,R))},oe=(T,$,D,V,U,H,v,p,R)=>{T=T||Gn,$=$||Gn;const M=T.length,X=$.length,q=Math.min(M,X);let _;for(_=0;_<q;_++){const k=$[_]=R?Yt($[_]):Vt($[_]);y(T[_],k,D,null,U,H,v,p,R)}M>X?Me(T,U,H,!0,!1,q):K($,D,V,U,H,v,p,R,q)},Te=(T,$,D,V,U,H,v,p,R)=>{let M=0;const X=$.length;let q=T.length-1,_=X-1;for(;M<=q&&M<=_;){const k=T[M],O=$[M]=R?Yt($[M]):Vt($[M]);if(Mn(k,O))y(k,O,D,null,U,H,v,p,R);else break;M++}for(;M<=q&&M<=_;){const k=T[q],O=$[_]=R?Yt($[_]):Vt($[_]);if(Mn(k,O))y(k,O,D,null,U,H,v,p,R);else break;q--,_--}if(M>q){if(M<=_){const k=_+1,O=k<X?$[k].el:V;for(;M<=_;)y(null,$[M]=R?Yt($[M]):Vt($[M]),D,O,U,H,v,p,R),M++}}else if(M>_)for(;M<=q;)pe(T[M],U,H,!0),M++;else{const k=M,O=M,te=new Map;for(M=O;M<=_;M++){const dt=$[M]=R?Yt($[M]):Vt($[M]);dt.key!=null&&te.set(dt.key,M)}let ce,Je=0;const Ge=_-O+1;let gt=!1,yt=0;const wn=new Array(Ge);for(M=0;M<Ge;M++)wn[M]=0;for(M=k;M<=q;M++){const dt=T[M];if(Je>=Ge){pe(dt,U,H,!0);continue}let kt;if(dt.key!=null)kt=te.get(dt.key);else for(ce=O;ce<=_;ce++)if(wn[ce-O]===0&&Mn(dt,$[ce])){kt=ce;break}kt===void 0?pe(dt,U,H,!0):(wn[kt-O]=M+1,kt>=yt?yt=kt:gt=!0,y(dt,$[kt],D,null,U,H,v,p,R),Je++)}const tr=gt?Np(wn):Gn;for(ce=tr.length-1,M=Ge-1;M>=0;M--){const dt=O+M,kt=$[dt],nr=$[dt+1],sr=dt+1<X?nr.el||Bc(nr):V;wn[M]===0?y(null,kt,D,sr,U,H,v,p,R):gt&&(ce<0||M!==tr[ce]?ve(kt,D,sr,2):ce--)}}},ve=(T,$,D,V,U=null)=>{const{el:H,type:v,transition:p,children:R,shapeFlag:M}=T;if(M&6){ve(T.component.subTree,$,D,V);return}if(M&128){T.suspense.move($,D,V);return}if(M&64){v.move(T,$,D,We);return}if(v===me){s(H,$,D);for(let q=0;q<R.length;q++)ve(R[q],$,D,V);s(T.anchor,$,D);return}if(v===To){w(T,$,D);return}if(V!==2&&M&1&&p)if(V===0)p.beforeEnter(H),s(H,$,D),rt(()=>p.enter(H),U);else{const{leave:q,delayLeave:_,afterLeave:k}=p,O=()=>{T.ctx.isUnmounted?r(H):s(H,$,D)},te=()=>{H._isLeaving&&H[Dt](!0),q(H,()=>{O(),k&&k()})};_?_(H,O,te):te()}else s(H,$,D)},pe=(T,$,D,V=!1,U=!1)=>{const{type:H,props:v,ref:p,children:R,dynamicChildren:M,shapeFlag:X,patchFlag:q,dirs:_,cacheIndex:k}=T;if(q===-2&&(U=!1),p!=null&&(nn(),Es(p,null,D,T,!0),sn()),k!=null&&($.renderCache[k]=void 0),X&256){$.ctx.deactivate(T);return}const O=X&1&&_,te=!Jn(T);let ce;if(te&&(ce=v&&v.onVnodeBeforeUnmount)&&At(ce,$,T),X&6)$e(T.component,D,V);else{if(X&128){T.suspense.unmount(D,V);return}O&&kn(T,null,$,"beforeUnmount"),X&64?T.type.remove(T,$,D,We,V):M&&!M.hasOnce&&(H!==me||q>0&&q&64)?Me(M,$,D,!1,!0):(H===me&&q&384||!U&&X&16)&&Me(R,$,D),V&&he(T)}(te&&(ce=v&&v.onVnodeUnmounted)||O)&&rt(()=>{ce&&At(ce,$,T),O&&kn(T,null,$,"unmounted")},D)},he=T=>{const{type:$,el:D,anchor:V,transition:U}=T;if($===me){xe(D,V);return}if($===To){h(T);return}const H=()=>{r(D),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(T.shapeFlag&1&&U&&!U.persisted){const{leave:v,delayLeave:p}=U,R=()=>v(D,H);p?p(T.el,H,R):R()}else H()},xe=(T,$)=>{let D;for(;T!==$;)D=g(T),r(T),T=D;r($)},$e=(T,$,D)=>{const{bum:V,scope:U,job:H,subTree:v,um:p,m:R,a:M}=T;pa(R),pa(M),V&&go(V),U.stop(),H&&(H.flags|=8,pe(v,T,$,D)),p&&rt(p,$),rt(()=>{T.isUnmounted=!0},$)},Me=(T,$,D,V=!1,U=!1,H=0)=>{for(let v=H;v<T.length;v++)pe(T[v],$,D,V,U)},_e=T=>{if(T.shapeFlag&6)return _e(T.component.subTree);if(T.shapeFlag&128)return T.suspense.next();const $=g(T.anchor||T.el),D=$&&$[xc];return D?g(D):$};let Oe=!1;const He=(T,$,D)=>{let V;T==null?$._vnode&&(pe($._vnode,null,null,!0),V=$._vnode.component):y($._vnode||null,T,$,null,null,null,D),$._vnode=T,Oe||(Oe=!0,Ql(V),mc(),Oe=!1)},We={p:y,um:pe,m:ve,r:he,mt:ne,mc:K,pc:G,pbc:Z,n:_e,o:e};return{render:He,hydrate:void 0,createApp:yp(He)}}function wo({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 Cn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ap(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pl(e,t,n=!1){const s=e.children,r=t.children;if(ge(s)&&ge(r))for(let o=0;o<s.length;o++){const l=s[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=Yt(r[o]),a.el=l.el),!n&&a.patchFlag!==-2&&Pl(l,a)),a.type===Ys&&(a.patchFlag===-1&&(a=r[o]=Yt(a)),a.el=l.el),a.type===lt&&!a.el&&(a.el=l.el)}}function Np(e){const t=e.slice(),n=[0];let s,r,o,l,a;const i=e.length;for(s=0;s<i;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;)a=o+l>>1,e[n[a]]<c?o=a+1:l=a;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 Wc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wc(t)}function pa(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Bc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Bc(t.subTree):null}const Hc=e=>e.__isSuspense;function Op(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):Kf(e)}const me=Symbol.for("v-fgt"),Ys=Symbol.for("v-txt"),lt=Symbol.for("v-cmt"),To=Symbol.for("v-stc"),Ps=[];let xt=null;function L(e=!1){Ps.push(xt=e?null:[])}function Fp(){Ps.pop(),xt=Ps[Ps.length-1]||null}let Ns=1;function Lr(e,t=!1){Ns+=e,e<0&&xt&&t&&(xt.hasOnce=!0)}function Gc(e){return e.dynamicChildren=Ns>0?xt||Gn:null,Fp(),Ns>0&&xt&&xt.push(e),e}function N(e,t,n,s,r,o){return Gc(x(e,t,n,s,r,o,!0))}function ut(e,t,n,s,r){return Gc(Q(e,t,n,s,r,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function Mn(e,t){return e.type===t.type&&e.key===t.key}const qc=({key:e})=>e??null,wr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ze(e)||Ce(e)||be(e)?{i:it,r:e,k:t,f:!!n}:e:null);function x(e,t=null,n=null,s=0,r=null,o=e===me?0:1,l=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qc(t),ref:t&&wr(t),scopeId:bc,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:it};return a?($l(i,n),o&128&&e.normalize(i)):n&&(i.shapeFlag|=ze(n)?8:16),Ns>0&&!l&&xt&&(i.patchFlag>0||o&6)&&i.patchFlag!==32&&xt.push(i),i}const Q=Dp;function Dp(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===cp)&&(e=lt),Os(e)){const a=hn(e,t,!0);return n&&$l(a,n),Ns>0&&!o&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag=-2,a}if(Gp(e)&&(e=e.__vccOpts),t){t=Vp(t);let{class:a,style:i}=t;a&&!ze(a)&&(t.class=ie(a)),Ne(i)&&(zr(i)&&!ge(i)&&(i=et({},i)),t.style=Dn(i))}const l=ze(e)?1:Hc(e)?128:_c(e)?64:Ne(e)?4:be(e)?2:0;return x(e,t,n,s,r,l,o,!0)}function Vp(e){return e?zr(e)||Fc(e)?et({},e):e:null}function hn(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:l,children:a,transition:i}=e,c=t?on(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&qc(c),ref:t&&t.ref?n&&o?ge(o)?o.concat(wr(t)):[o,wr(t)]:wr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hn(e.ssContent),ssFallback:e.ssFallback&&hn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&s&&As(u,i.clone(u)),u}function Ee(e=" ",t=0){return Q(Ys,null,e,t)}function de(e="",t=!1){return t?(L(),ut(lt,null,e)):Q(lt,null,e)}function Vt(e){return e==null||typeof e=="boolean"?Q(lt):ge(e)?Q(me,null,e.slice()):Os(e)?Yt(e):Q(Ys,null,String(e))}function Yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hn(e)}function $l(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),$l(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Fc(t)?t._ctx=it:r===3&&it&&(it.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else be(t)?(t={default:t,_ctx:it},n=32):(t=String(t),s&64?(n=16,t=[Ee(t)]):n=8);e.children=t,e.shapeFlag|=n}function on(...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=ie([t.class,s.class]));else if(r==="style")t.style=Dn([t.style,s.style]);else if(Wr(r)){const o=t[r],l=s[r];l&&o!==l&&!(ge(o)&&o.includes(l))&&(t[r]=o?[].concat(o,l):l)}else r!==""&&(t[r]=s[r])}return t}function At(e,t,n,s=null){Mt(e,t,7,[n,s])}const Up=Lc();let Kp=0;function jp(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Up,o={uid:Kp++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yi(!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:Vc(s,r),emitsOptions:Ic(s,r),emit:null,emitted:null,propsDefaults:Ve,inheritAttrs:s.inheritAttrs,ctx:Ve,data:Ve,props:Ve,attrs:Ve,slots:Ve,refs:Ve,setupState:Ve,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=xp.bind(null,o),e.ce&&e.ce(o),o}let at=null;const Xs=()=>at||it;let Ir,Go;{const e=Gr(),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)}};Ir=t("__VUE_INSTANCE_SETTERS__",n=>at=n),Go=t("__VUE_SSR_SETTERS__",n=>es=n)}const Qs=e=>{const t=at;return Ir(e),e.scope.on(),()=>{e.scope.off(),Ir(t)}},ga=()=>{at&&at.scope.off(),Ir(null)};function zc(e){return e.vnode.shapeFlag&4}let es=!1;function Wp(e,t=!1,n=!1){t&&Go(t);const{props:s,children:r}=e.vnode,o=zc(e);Sp(e,s,o,t),$p(e,r,n||t);const l=o?Bp(e,t):void 0;return t&&Go(!1),l}function Bp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,up);const{setup:s}=n;if(s){nn();const r=e.setupContext=s.length>1?Yc(e):null,o=Qs(e),l=qs(s,e,0,[e.props,r]),a=ji(l);if(sn(),o(),(a||e.sp)&&!Jn(e)&&Cl(e),a){if(l.then(ga,ga),t)return l.then(i=>{ma(e,i)}).catch(i=>{zs(i,e,0)});e.asyncDep=l}else ma(e,l)}else Jc(e)}function ma(e,t,n){be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ne(t)&&(e.setupState=fc(t)),Jc(e)}function Jc(e,t,n){const s=e.type;e.render||(e.render=s.render||Ut);{const r=Qs(e);nn();try{fp(e)}finally{sn(),r()}}}const Hp={get(e,t){return ot(e,"get",""),e[t]}};function Yc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hp),slots:e.slots,emit:e.emit,expose:t}}function Qr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fc(Rf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Rs)return Rs[n](e)},has(t,n){return n in t||n in Rs}})):e.proxy}function Gp(e){return be(e)&&"__vccOpts"in e}const j=(e,t)=>Of(e,t,es);function Ml(e,t,n){try{Lr(-1);const s=arguments.length;return s===2?Ne(t)&&!ge(t)?Os(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Os(n)&&(n=[n]),Q(e,t,n))}finally{Lr(1)}}const qp="3.5.28";let qo;const ha=typeof window<"u"&&window.trustedTypes;if(ha)try{qo=ha.createPolicy("vue",{createHTML:e=>e})}catch{}const Xc=qo?e=>qo.createHTML(e):e=>e,zp="http://www.w3.org/2000/svg",Jp="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,ba=Jt&&Jt.createElement("template"),Yp={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"?Jt.createElementNS(zp,e):t==="mathml"?Jt.createElementNS(Jp,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.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{ba.innerHTML=Xc(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=ba.content;if(s==="svg"||s==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},an="transition",ds="animation",Fs=Symbol("_vtc"),Qc={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},Xp=et({},Tc,Qc),Qp=e=>(e.displayName="Transition",e.props=Xp,e),Zp=Qp((e,{slots:t})=>Ml(Yf,eg(e),t)),Sn=(e,t=[])=>{ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},ya=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function eg(e){const t={};for(const J in e)J in Qc||(t[J]=e[J]);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:a=`${n}-enter-to`,appearFromClass:i=o,appearActiveClass:c=l,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=tg(r),y=m&&m[0],A=m&&m[1],{onBeforeEnter:b,onEnter:E,onEnterCancelled:w,onLeave:h,onLeaveCancelled:P,onBeforeAppear:S=b,onAppear:I=E,onAppearCancelled:K=w}=t,z=(J,fe,ne,Y)=>{J._enterCancelled=Y,En(J,fe?u:a),En(J,fe?c:l),ne&&ne()},Z=(J,fe)=>{J._isLeaving=!1,En(J,d),En(J,f),En(J,g),fe&&fe()},se=J=>(fe,ne)=>{const Y=J?I:E,B=()=>z(fe,J,ne);Sn(Y,[fe,B]),va(()=>{En(fe,J?i:o),Gt(fe,J?u:a),ya(Y)||xa(fe,s,y,B)})};return et(t,{onBeforeEnter(J){Sn(b,[J]),Gt(J,o),Gt(J,l)},onBeforeAppear(J){Sn(S,[J]),Gt(J,i),Gt(J,c)},onEnter:se(!1),onAppear:se(!0),onLeave(J,fe){J._isLeaving=!0;const ne=()=>Z(J,fe);Gt(J,d),J._enterCancelled?(Gt(J,g),Ta(J)):(Ta(J),Gt(J,g)),va(()=>{J._isLeaving&&(En(J,d),Gt(J,f),ya(h)||xa(J,s,A,ne))}),Sn(h,[J,ne])},onEnterCancelled(J){z(J,!1,void 0,!0),Sn(w,[J])},onAppearCancelled(J){z(J,!0,void 0,!0),Sn(K,[J])},onLeaveCancelled(J){Z(J),Sn(P,[J])}})}function tg(e){if(e==null)return null;if(Ne(e))return[ko(e.enter),ko(e.leave)];{const t=ko(e);return[t,t]}}function ko(e){return Xd(e)}function Gt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Fs]||(e[Fs]=new Set)).add(t)}function En(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 va(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ng=0;function xa(e,t,n,s){const r=e._endId=++ng,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:l,timeout:a,propCount:i}=sg(e,t);if(!l)return s();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,g),o()},g=f=>{f.target===e&&++u>=i&&d()};setTimeout(()=>{u<i&&d()},a+1),e.addEventListener(c,g)}function sg(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),r=s(`${an}Delay`),o=s(`${an}Duration`),l=_a(r,o),a=s(`${ds}Delay`),i=s(`${ds}Duration`),c=_a(a,i);let u=null,d=0,g=0;t===an?l>0&&(u=an,d=l,g=o.length):t===ds?c>0&&(u=ds,d=c,g=i.length):(d=Math.max(l,c),u=d>0?l>c?an:ds:null,g=u?u===an?o.length:i.length:0);const f=u===an&&/\b(?:transform|all)(?:,|$)/.test(s(`${an}Property`).toString());return{type:u,timeout:d,propCount:g,hasTransform:f}}function _a(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>wa(n)+wa(e[s])))}function wa(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ta(e){return(e?e.ownerDocument:document).body.offsetHeight}function rg(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 Ar=Symbol("_vod"),Zc=Symbol("_vsh"),Co={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ar]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):fs(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),fs(e,!0),s.enter(e)):s.leave(e,()=>{fs(e,!1)}):fs(e,t))},beforeUnmount(e,{value:t}){fs(e,t)}};function fs(e,t){e.style.display=t?e[Ar]:"none",e[Zc]=!t}const og=Symbol(""),lg=/(?:^|;)\s*display\s*:/;function ag(e,t,n){const s=e.style,r=ze(n);let o=!1;if(n&&!r){if(t)if(ze(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();n[a]==null&&Tr(s,a,"")}else for(const l in t)n[l]==null&&Tr(s,l,"");for(const l in n)l==="display"&&(o=!0),Tr(s,l,n[l])}else if(r){if(t!==n){const l=s[og];l&&(n+=";"+l),s.cssText=n,o=lg.test(n)}}else t&&e.removeAttribute("style");Ar in e&&(e[Ar]=o?s.display:"",e[Zc]&&(s.display="none"))}const ka=/\s*!important$/;function Tr(e,t,n){if(ge(n))n.forEach(s=>Tr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ig(e,t);ka.test(n)?e.setProperty(yn(s),n.replace(ka,""),"important"):e[s]=n}}const Ca=["Webkit","Moz","ms"],So={};function ig(e,t){const n=So[t];if(n)return n;let s=mn(t);if(s!=="filter"&&s in e)return So[t]=s;s=Hi(s);for(let r=0;r<Ca.length;r++){const o=Ca[r]+s;if(o in e)return So[t]=o}return t}const Sa="http://www.w3.org/1999/xlink";function Ea(e,t,n,s,r,o=sf(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Sa,t.slice(6,t.length)):e.setAttributeNS(Sa,t,n):n==null||o&&!qi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Pt(n)?String(n):n)}function Ra(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Xc(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,i=n==null?e.type==="checkbox"?"on":"":String(n);(a!==i||!("_value"in e))&&(e.value=i),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=qi(n):n==null&&a==="string"?(n="",l=!0):a==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(r||t)}function cg(e,t,n,s){e.addEventListener(t,n,s)}function ug(e,t,n,s){e.removeEventListener(t,n,s)}const Pa=Symbol("_vei");function dg(e,t,n,s,r=null){const o=e[Pa]||(e[Pa]={}),l=o[t];if(s&&l)l.value=s;else{const[a,i]=fg(t);if(s){const c=o[t]=mg(s,r);cg(e,a,c,i)}else l&&(ug(e,a,l,i),o[t]=void 0)}}const $a=/(?:Once|Passive|Capture)$/;function fg(e){let t;if($a.test(e)){t={};let s;for(;s=e.match($a);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):yn(e.slice(2)),t]}let Eo=0;const pg=Promise.resolve(),gg=()=>Eo||(pg.then(()=>Eo=0),Eo=Date.now());function mg(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Mt(hg(s,n.value),t,5,[s])};return n.value=e,n.attached=gg(),n}function hg(e,t){if(ge(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 Ma=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bg=(e,t,n,s,r,o)=>{const l=r==="svg";t==="class"?rg(e,s,l):t==="style"?ag(e,n,s):Wr(t)?gl(t)||dg(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yg(e,t,s,l))?(Ra(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ea(e,t,s,l,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ze(s))?Ra(e,mn(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ea(e,t,s,l))};function yg(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ma(t)&&be(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 Ma(t)&&ze(n)?!1:t in e}const vg=["ctrl","shift","alt","meta"],xg={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)=>vg.some(n=>e[`${n}Key`]&&!t.includes(n))},ys=(e,t)=>{if(!e)return e;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 a=xg[t[l]];if(a&&a(r,t))return}return e(r,...o)}))},_g={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wg=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const o=yn(r.key);if(t.some(l=>l===o||_g[l]===o))return e(r)}))},Tg=et({patchProp:bg},Yp);let La;function kg(){return La||(La=Lp(Tg))}const Cg=((...e)=>{const t=kg().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Eg(s);if(!r)return;const o=t._component;!be(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,Sg(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function Sg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Eg(e){return ze(e)?document.querySelector(e):e}function Rg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Nr=typeof window<"u",vn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Pg=(e,t,n)=>$g({l:e,k:t,s:n}),$g=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ye=e=>typeof e=="number"&&isFinite(e),Mg=e=>Ll(e)==="[object Date]",ts=e=>Ll(e)==="[object RegExp]",Zr=e=>Se(e)&&Object.keys(e).length===0,Ze=Object.assign,Lg=Object.create,De=(e=null)=>Lg(e);let Ia;const Ln=()=>Ia||(Ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:De());function Aa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Na(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ig(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${Na(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${Na(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript&#58;")}),e}const Ag=Object.prototype.hasOwnProperty;function Et(e,t){return Ag.call(e,t)}const qe=Array.isArray,Be=e=>typeof e=="function",re=e=>typeof e=="string",Pe=e=>typeof e=="boolean",Le=e=>e!==null&&typeof e=="object",Ng=e=>Le(e)&&Be(e.then)&&Be(e.catch),eu=Object.prototype.toString,Ll=e=>eu.call(e),Se=e=>Ll(e)==="[object Object]",Og=e=>e==null?"":qe(e)||Se(e)&&e.toString===eu?JSON.stringify(e,null,2):String(e);function Il(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const fr=e=>!Le(e)||qe(e);function kr(e,t){if(fr(e)||fr(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__"&&(Le(s[o])&&!Le(r[o])&&(r[o]=Array.isArray(s[o])?[]:De()),fr(r[o])||fr(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}function Fg(e,t,n){return{line:e,column:t,offset:n}}function zo(e,t,n){return{start:e,end:t}}const Ie={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},Dg=17;function eo(e,t,n={}){const{domain:s,messages:r,args:o}=n,l=e,a=new SyntaxError(String(l));return a.code=e,t&&(a.location=t),a.domain=s,a}function Vg(e){throw e}const Nt=" ",Ug="\r",st=`
3
+ `,Kg="\u2028",jg="\u2029";function Wg(e){const t=e;let n=0,s=1,r=1,o=0;const l=I=>t[I]===Ug&&t[I+1]===st,a=I=>t[I]===st,i=I=>t[I]===jg,c=I=>t[I]===Kg,u=I=>l(I)||a(I)||i(I)||c(I),d=()=>n,g=()=>s,f=()=>r,m=()=>o,y=I=>l(I)||i(I)||c(I)?st:t[I],A=()=>y(n),b=()=>y(n+o);function E(){return o=0,u(n)&&(s++,r=0),l(n)&&n++,n++,r++,t[n]}function w(){return l(n+o)&&o++,o++,t[n+o]}function h(){n=0,s=1,r=1,o=0}function P(I=0){o=I}function S(){const I=n+o;for(;I!==n;)E();o=0}return{index:d,line:g,column:f,peekOffset:m,charAt:y,currentChar:A,currentPeek:b,next:E,peek:w,reset:h,resetPeek:P,skipToPeek:S}}const qt=void 0,Bg=".",Oa="'",Hg="tokenizer";function Gg(e,t={}){const n=t.location!==!1,s=Wg(e),r=()=>s.index(),o=()=>Fg(s.line(),s.column(),s.index()),l=o(),a=r(),i={currentType:13,offset:a,startLoc:l,endLoc:l,lastType:13,lastOffset:a,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},c=()=>i,{onError:u}=t;function d(v,p,R,...M){const X=c();if(p.column+=R,p.offset+=R,u){const q=n?zo(X.startLoc,p):null,_=eo(v,q,{domain:Hg,args:M});u(_)}}function g(v,p,R){v.endLoc=o(),v.currentType=p;const M={type:p};return n&&(M.loc=zo(v.startLoc,v.endLoc)),R!=null&&(M.value=R),M}const f=v=>g(v,13);function m(v,p){return v.currentChar()===p?(v.next(),p):(d(Ie.EXPECTED_TOKEN,o(),0,p),"")}function y(v){let p="";for(;v.currentPeek()===Nt||v.currentPeek()===st;)p+=v.currentPeek(),v.peek();return p}function A(v){const p=y(v);return v.skipToPeek(),p}function b(v){if(v===qt)return!1;const p=v.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function E(v){if(v===qt)return!1;const p=v.charCodeAt(0);return p>=48&&p<=57}function w(v,p){const{currentType:R}=p;if(R!==2)return!1;y(v);const M=b(v.currentPeek());return v.resetPeek(),M}function h(v,p){const{currentType:R}=p;if(R!==2)return!1;y(v);const M=v.currentPeek()==="-"?v.peek():v.currentPeek(),X=E(M);return v.resetPeek(),X}function P(v,p){const{currentType:R}=p;if(R!==2)return!1;y(v);const M=v.currentPeek()===Oa;return v.resetPeek(),M}function S(v,p){const{currentType:R}=p;if(R!==7)return!1;y(v);const M=v.currentPeek()===".";return v.resetPeek(),M}function I(v,p){const{currentType:R}=p;if(R!==8)return!1;y(v);const M=b(v.currentPeek());return v.resetPeek(),M}function K(v,p){const{currentType:R}=p;if(!(R===7||R===11))return!1;y(v);const M=v.currentPeek()===":";return v.resetPeek(),M}function z(v,p){const{currentType:R}=p;if(R!==9)return!1;const M=()=>{const q=v.currentPeek();return q==="{"?b(v.peek()):q==="@"||q==="|"||q===":"||q==="."||q===Nt||!q?!1:q===st?(v.peek(),M()):se(v,!1)},X=M();return v.resetPeek(),X}function Z(v){y(v);const p=v.currentPeek()==="|";return v.resetPeek(),p}function se(v,p=!0){const R=(X=!1,q="")=>{const _=v.currentPeek();return _==="{"||_==="@"||!_?X:_==="|"?!(q===Nt||q===st):_===Nt?(v.peek(),R(!0,Nt)):_===st?(v.peek(),R(!0,st)):!0},M=R();return p&&v.resetPeek(),M}function J(v,p){const R=v.currentChar();return R===qt?qt:p(R)?(v.next(),R):null}function fe(v){const p=v.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function ne(v){return J(v,fe)}function Y(v){const p=v.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function B(v){return J(v,Y)}function W(v){const p=v.charCodeAt(0);return p>=48&&p<=57}function G(v){return J(v,W)}function oe(v){const p=v.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Te(v){return J(v,oe)}function ve(v){let p="",R="";for(;p=G(v);)R+=p;return R}function pe(v){let p="";for(;;){const R=v.currentChar();if(R==="{"||R==="}"||R==="@"||R==="|"||!R)break;if(R===Nt||R===st)if(se(v))p+=R,v.next();else{if(Z(v))break;p+=R,v.next()}else p+=R,v.next()}return p}function he(v){A(v);let p="",R="";for(;p=B(v);)R+=p;const M=v.currentChar();if(M&&M!=="}"&&M!==qt&&M!==Nt&&M!==st&&M!==" "){const X=We(v);return d(Ie.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,R+X),R+X}return v.currentChar()===qt&&d(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),R}function xe(v){A(v);let p="";return v.currentChar()==="-"?(v.next(),p+=`-${ve(v)}`):p+=ve(v),v.currentChar()===qt&&d(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),p}function $e(v){return v!==Oa&&v!==st}function Me(v){A(v),m(v,"'");let p="",R="";for(;p=J(v,$e);)p==="\\"?R+=_e(v):R+=p;const M=v.currentChar();return M===st||M===qt?(d(Ie.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),M===st&&(v.next(),m(v,"'")),R):(m(v,"'"),R)}function _e(v){const p=v.currentChar();switch(p){case"\\":case"'":return v.next(),`\\${p}`;case"u":return Oe(v,p,4);case"U":return Oe(v,p,6);default:return d(Ie.UNKNOWN_ESCAPE_SEQUENCE,o(),0,p),""}}function Oe(v,p,R){m(v,p);let M="";for(let X=0;X<R;X++){const q=Te(v);if(!q){d(Ie.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${p}${M}${v.currentChar()}`);break}M+=q}return`\\${p}${M}`}function He(v){return v!=="{"&&v!=="}"&&v!==Nt&&v!==st}function We(v){A(v);let p="",R="";for(;p=J(v,He);)R+=p;return R}function nt(v){let p="",R="";for(;p=ne(v);)R+=p;return R}function T(v){const p=R=>{const M=v.currentChar();return M==="{"||M==="@"||M==="|"||M==="("||M===")"||!M||M===Nt?R:(R+=M,v.next(),p(R))};return p("")}function $(v){A(v);const p=m(v,"|");return A(v),p}function D(v,p){let R=null;switch(v.currentChar()){case"{":return p.braceNest>=1&&d(Ie.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),v.next(),R=g(p,2,"{"),A(v),p.braceNest++,R;case"}":return p.braceNest>0&&p.currentType===2&&d(Ie.EMPTY_PLACEHOLDER,o(),0),v.next(),R=g(p,3,"}"),p.braceNest--,p.braceNest>0&&A(v),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),R;case"@":return p.braceNest>0&&d(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),R=V(v,p)||f(p),p.braceNest=0,R;default:{let X=!0,q=!0,_=!0;if(Z(v))return p.braceNest>0&&d(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),R=g(p,1,$(v)),p.braceNest=0,p.inLinked=!1,R;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return d(Ie.UNTERMINATED_CLOSING_BRACE,o(),0),p.braceNest=0,U(v,p);if(X=w(v,p))return R=g(p,4,he(v)),A(v),R;if(q=h(v,p))return R=g(p,5,xe(v)),A(v),R;if(_=P(v,p))return R=g(p,6,Me(v)),A(v),R;if(!X&&!q&&!_)return R=g(p,12,We(v)),d(Ie.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,R.value),A(v),R;break}}return R}function V(v,p){const{currentType:R}=p;let M=null;const X=v.currentChar();switch((R===7||R===8||R===11||R===9)&&(X===st||X===Nt)&&d(Ie.INVALID_LINKED_FORMAT,o(),0),X){case"@":return v.next(),M=g(p,7,"@"),p.inLinked=!0,M;case".":return A(v),v.next(),g(p,8,".");case":":return A(v),v.next(),g(p,9,":");default:return Z(v)?(M=g(p,1,$(v)),p.braceNest=0,p.inLinked=!1,M):S(v,p)||K(v,p)?(A(v),V(v,p)):I(v,p)?(A(v),g(p,11,nt(v))):z(v,p)?(A(v),X==="{"?D(v,p)||M:g(p,10,T(v))):(R===7&&d(Ie.INVALID_LINKED_FORMAT,o(),0),p.braceNest=0,p.inLinked=!1,U(v,p))}}function U(v,p){let R={type:13};if(p.braceNest>0)return D(v,p)||f(p);if(p.inLinked)return V(v,p)||f(p);switch(v.currentChar()){case"{":return D(v,p)||f(p);case"}":return d(Ie.UNBALANCED_CLOSING_BRACE,o(),0),v.next(),g(p,3,"}");case"@":return V(v,p)||f(p);default:{if(Z(v))return R=g(p,1,$(v)),p.braceNest=0,p.inLinked=!1,R;if(se(v))return g(p,0,pe(v));break}}return R}function H(){const{currentType:v,offset:p,startLoc:R,endLoc:M}=i;return i.lastType=v,i.lastOffset=p,i.lastStartLoc=R,i.lastEndLoc=M,i.offset=r(),i.startLoc=o(),s.currentChar()===qt?g(i,13):U(s,i)}return{nextToken:H,currentOffset:r,currentPosition:o,context:c}}const qg="parser",zg=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Jg(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 Yg(e={}){const t=e.location!==!1,{onError:n}=e;function s(b,E,w,h,...P){const S=b.currentPosition();if(S.offset+=h,S.column+=h,n){const I=t?zo(w,S):null,K=eo(E,I,{domain:qg,args:P});n(K)}}function r(b,E,w){const h={type:b};return t&&(h.start=E,h.end=E,h.loc={start:w,end:w}),h}function o(b,E,w,h){t&&(b.end=E,b.loc&&(b.loc.end=w))}function l(b,E){const w=b.context(),h=r(3,w.offset,w.startLoc);return h.value=E,o(h,b.currentOffset(),b.currentPosition()),h}function a(b,E){const w=b.context(),{lastOffset:h,lastStartLoc:P}=w,S=r(5,h,P);return S.index=parseInt(E,10),b.nextToken(),o(S,b.currentOffset(),b.currentPosition()),S}function i(b,E){const w=b.context(),{lastOffset:h,lastStartLoc:P}=w,S=r(4,h,P);return S.key=E,b.nextToken(),o(S,b.currentOffset(),b.currentPosition()),S}function c(b,E){const w=b.context(),{lastOffset:h,lastStartLoc:P}=w,S=r(9,h,P);return S.value=E.replace(zg,Jg),b.nextToken(),o(S,b.currentOffset(),b.currentPosition()),S}function u(b){const E=b.nextToken(),w=b.context(),{lastOffset:h,lastStartLoc:P}=w,S=r(8,h,P);return E.type!==11?(s(b,Ie.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),S.value="",o(S,h,P),{nextConsumeToken:E,node:S}):(E.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ot(E)),S.value=E.value||"",o(S,b.currentOffset(),b.currentPosition()),{node:S})}function d(b,E){const w=b.context(),h=r(7,w.offset,w.startLoc);return h.value=E,o(h,b.currentOffset(),b.currentPosition()),h}function g(b){const E=b.context(),w=r(6,E.offset,E.startLoc);let h=b.nextToken();if(h.type===8){const P=u(b);w.modifier=P.node,h=P.nextConsumeToken||b.nextToken()}switch(h.type!==9&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(h)),h=b.nextToken(),h.type===2&&(h=b.nextToken()),h.type){case 10:h.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(h)),w.key=d(b,h.value||"");break;case 4:h.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(h)),w.key=i(b,h.value||"");break;case 5:h.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(h)),w.key=a(b,h.value||"");break;case 6:h.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(h)),w.key=c(b,h.value||"");break;default:{s(b,Ie.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const P=b.context(),S=r(7,P.offset,P.startLoc);return S.value="",o(S,P.offset,P.startLoc),w.key=S,o(w,P.offset,P.startLoc),{nextConsumeToken:h,node:w}}}return o(w,b.currentOffset(),b.currentPosition()),{node:w}}function f(b){const E=b.context(),w=E.currentType===1?b.currentOffset():E.offset,h=E.currentType===1?E.endLoc:E.startLoc,P=r(2,w,h);P.items=[];let S=null;do{const z=S||b.nextToken();switch(S=null,z.type){case 0:z.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(z)),P.items.push(l(b,z.value||""));break;case 5:z.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(z)),P.items.push(a(b,z.value||""));break;case 4:z.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(z)),P.items.push(i(b,z.value||""));break;case 6:z.value==null&&s(b,Ie.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Ot(z)),P.items.push(c(b,z.value||""));break;case 7:{const Z=g(b);P.items.push(Z.node),S=Z.nextConsumeToken||null;break}}}while(E.currentType!==13&&E.currentType!==1);const I=E.currentType===1?E.lastOffset:b.currentOffset(),K=E.currentType===1?E.lastEndLoc:b.currentPosition();return o(P,I,K),P}function m(b,E,w,h){const P=b.context();let S=h.items.length===0;const I=r(1,E,w);I.cases=[],I.cases.push(h);do{const K=f(b);S||(S=K.items.length===0),I.cases.push(K)}while(P.currentType!==13);return S&&s(b,Ie.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(I,b.currentOffset(),b.currentPosition()),I}function y(b){const E=b.context(),{offset:w,startLoc:h}=E,P=f(b);return E.currentType===13?P:m(b,w,h,P)}function A(b){const E=Gg(b,Ze({},e)),w=E.context(),h=r(0,w.offset,w.startLoc);return t&&h.loc&&(h.loc.source=b),h.body=y(E),e.onCacheKey&&(h.cacheKey=e.onCacheKey(b)),w.currentType!==13&&s(E,Ie.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,b[w.offset]||""),o(h,E.currentOffset(),E.currentPosition()),h}return{parse:A}}function Ot(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 Xg(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function Fa(e,t){for(let n=0;n<e.length;n++)Al(e[n],t)}function Al(e,t){switch(e.type){case 1:Fa(e.cases,t),t.helper("plural");break;case 2:Fa(e.items,t);break;case 6:{Al(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 Qg(e,t={}){const n=Xg(e);n.helper("normalize"),e.body&&Al(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Zg(e){const t=e.body;return t.type===2?Da(t):t.cases.forEach(n=>Da(n)),e}function Da(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=Il(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 Hn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Hn(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++)Hn(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++)Hn(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;Hn(t.key),t.k=t.key,delete t.key,t.modifier&&(Hn(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 em(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 a=()=>l;function i(y,A){l.code+=y}function c(y,A=!0){const b=A?s:"";i(r?b+" ".repeat(y):b)}function u(y=!0){const A=++l.indentLevel;y&&c(A)}function d(y=!0){const A=--l.indentLevel;y&&c(A)}function g(){c(l.indentLevel)}return{context:a,push:i,indent:u,deindent:d,newline:g,helper:y=>`_${y}`,needIndent:()=>l.needIndent}}function tm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ns(e,t.key),t.modifier?(e.push(", "),ns(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function nm(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&&(ns(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function sm(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&&(ns(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function rm(e,t){t.body?ns(e,t.body):e.push("null")}function ns(e,t){const{helper:n}=e;switch(t.type){case 0:rm(e,t);break;case 1:sm(e,t);break;case 2:nm(e,t);break;case 6:tm(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 om=(e,t={})=>{const n=re(t.mode)?t.mode:"normal",s=re(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
+ `,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],a=em(e,{filename:s,breakLineCode:r,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),l.length>0&&(a.push(`const { ${Il(l.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),ns(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:i,map:c}=a.context();return{ast:e,code:i,map:c?c.toJSON():void 0}};function lm(e,t={}){const n=Ze({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,a=Yg(n).parse(e);return s?(o&&Zg(a),r&&Hn(a),{ast:a,code:""}):(Qg(a,n),om(a,n))}function am(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ln().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ln().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Kt(e){return Le(e)&&Nl(e)===0&&(Et(e,"b")||Et(e,"body"))}const tu=["b","body"];function im(e){return xn(e,tu)}const nu=["c","cases"];function cm(e){return xn(e,nu,[])}const su=["s","static"];function um(e){return xn(e,su)}const ru=["i","items"];function dm(e){return xn(e,ru,[])}const ou=["t","type"];function Nl(e){return xn(e,ou)}const lu=["v","value"];function pr(e,t){const n=xn(e,lu);if(n!=null)return n;throw Ds(t)}const au=["m","modifier"];function fm(e){return xn(e,au)}const iu=["k","key"];function pm(e){const t=xn(e,iu);if(t)return t;throw Ds(6)}function xn(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if(Et(e,r)&&e[r]!=null)return e[r]}return n}const cu=[...tu,...nu,...su,...ru,...iu,...au,...lu,...ou];function Ds(e){return new Error(`unhandled node type: ${e}`)}function Ro(e){return n=>gm(n,e)}function gm(e,t){const n=im(t);if(n==null)throw Ds(0);if(Nl(n)===1){const o=cm(n);return e.plural(o.reduce((l,a)=>[...l,Va(e,a)],[]))}else return Va(e,n)}function Va(e,t){const n=um(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=dm(t).reduce((r,o)=>[...r,Jo(e,o)],[]);return e.normalize(s)}}function Jo(e,t){const n=Nl(t);switch(n){case 3:return pr(t,n);case 9:return pr(t,n);case 4:{const s=t;if(Et(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(Et(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Ds(n)}case 5:{const s=t;if(Et(s,"i")&&Ye(s.i))return e.interpolate(e.list(s.i));if(Et(s,"index")&&Ye(s.index))return e.interpolate(e.list(s.index));throw Ds(n)}case 6:{const s=t,r=fm(s),o=pm(s);return e.linked(Jo(e,o),r?Jo(e,r):void 0,e.type)}case 7:return pr(t,n);case 8:return pr(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const mm=e=>e;let gr=De();function hm(e,t={}){let n=!1;const s=t.onError||Vg;return t.onError=r=>{n=!0,s(r)},{...lm(e,t),detectError:n}}function bm(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&re(e)){Pe(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||mm)(e),r=gr[s];if(r)return r;const{ast:o,detectError:l}=hm(e,{...t,location:!1,jit:!0}),a=Ro(o);return l?a:gr[s]=a}else{const n=e.cacheKey;if(n){const s=gr[n];return s||(gr[n]=Ro(e))}else return Ro(e)}}let Vs=null;function ym(e){Vs=e}function vm(e,t,n){Vs&&Vs.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const xm=_m("function:translate");function _m(e){return t=>Vs&&Vs.emit(e,t)}const en={INVALID_ARGUMENT:Dg,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},wm=24;function tn(e){return eo(e,null,void 0)}function Ol(e,t){return t.locale!=null?Ua(t.locale):Ua(e.locale)}let Po;function Ua(e){if(re(e))return e;if(Be(e)){if(e.resolvedOnce&&Po!=null)return Po;if(e.constructor.name==="Function"){const t=e();if(Ng(t))throw tn(en.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Po=t}else throw tn(en.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw tn(en.NOT_SUPPORT_LOCALE_TYPE)}function Tm(e,t,n){return[...new Set([n,...qe(t)?t:Le(t)?Object.keys(t):re(t)?[t]:[n]])]}function uu(e,t,n){const s=re(n)?n:Us,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let l=[n];for(;qe(l);)l=Ka(o,l,t);const a=qe(t)||!Se(t)?t:t.default?t.default:null;l=re(a)?[a]:a,qe(l)&&Ka(o,l,!1),r.__localeChainCache.set(s,o)}return o}function Ka(e,t,n){let s=!0;for(let r=0;r<t.length&&Pe(s);r++){const o=t[r];re(o)&&(s=km(e,t[r],n))}return s}function km(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=Cm(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function Cm(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),(qe(n)||Se(n))&&n[r]&&(s=n[r])}return s}const _n=[];_n[0]={w:[0],i:[3,0],"[":[4],o:[7]};_n[1]={w:[1],".":[2],"[":[4],o:[7]};_n[2]={w:[2],i:[3,0],0:[3,0]};_n[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};_n[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};_n[5]={"'":[4,0],o:8,l:[5,0]};_n[6]={'"':[4,0],o:8,l:[6,0]};const Sm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Em(e){return Sm.test(e)}function Rm(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 Pm(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 $m(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Em(t)?Rm(t):"*"+t}function Mm(e){const t=[];let n=-1,s=0,r=0,o,l,a,i,c,u,d;const g=[];g[0]=()=>{l===void 0?l=a:l+=a},g[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},g[2]=()=>{g[0](),r++},g[3]=()=>{if(r>0)r--,s=4,g[0]();else{if(r=0,l===void 0||(l=$m(l),l===!1))return!1;g[1]()}};function f(){const m=e[n+1];if(s===5&&m==="'"||s===6&&m==='"')return n++,a="\\"+m,g[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&f())){if(i=Pm(o),d=_n[s],c=d[i]||d.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=g[c[1]],u&&(a=o,u()===!1))))return;if(s===7)return t}}const ja=new Map;function Lm(e,t){return Le(e)?e[t]:null}function Im(e,t){if(!Le(e))return null;let n=ja.get(t);if(n||(n=Mm(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const l=n[o];if(cu.includes(l)&&Kt(r))return null;const a=r[l];if(a===void 0||Be(r))return null;r=a,o++}return r}const Am="11.2.8",to=-1,Us="en-US",Wa="",Ba=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Nm(){return{upper:(e,t)=>t==="text"&&re(e)?e.toUpperCase():t==="vnode"&&Le(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&re(e)?e.toLowerCase():t==="vnode"&&Le(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&re(e)?Ba(e):t==="vnode"&&Le(e)&&"__v_isVNode"in e?Ba(e.children):e}}let du;function Om(e){du=e}let fu;function Fm(e){fu=e}let pu;function Dm(e){pu=e}let gu=null;const Vm=e=>{gu=e},Um=()=>gu;let mu=null;const Ha=e=>{mu=e},Km=()=>mu;let Ga=0;function jm(e={}){const t=Be(e.onWarn)?e.onWarn:Rg,n=re(e.version)?e.version:Am,s=re(e.locale)||Be(e.locale)?e.locale:Us,r=Be(s)?Us:s,o=qe(e.fallbackLocale)||Se(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,l=Se(e.messages)?e.messages:$o(r),a=Se(e.datetimeFormats)?e.datetimeFormats:$o(r),i=Se(e.numberFormats)?e.numberFormats:$o(r),c=Ze(De(),e.modifiers,Nm()),u=e.pluralRules||De(),d=Be(e.missing)?e.missing:null,g=Pe(e.missingWarn)||ts(e.missingWarn)?e.missingWarn:!0,f=Pe(e.fallbackWarn)||ts(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,y=!!e.unresolving,A=Be(e.postTranslation)?e.postTranslation:null,b=Se(e.processor)?e.processor:null,E=Pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,h=Be(e.messageCompiler)?e.messageCompiler:du,P=Be(e.messageResolver)?e.messageResolver:fu||Lm,S=Be(e.localeFallbacker)?e.localeFallbacker:pu||Tm,I=Le(e.fallbackContext)?e.fallbackContext:void 0,K=e,z=Le(K.__datetimeFormatters)?K.__datetimeFormatters:new Map,Z=Le(K.__numberFormatters)?K.__numberFormatters:new Map,se=Le(K.__meta)?K.__meta:{};Ga++;const J={version:n,cid:Ga,locale:s,fallbackLocale:o,messages:l,modifiers:c,pluralRules:u,missing:d,missingWarn:g,fallbackWarn:f,fallbackFormat:m,unresolving:y,postTranslation:A,processor:b,warnHtmlMessage:E,escapeParameter:w,messageCompiler:h,messageResolver:P,localeFallbacker:S,fallbackContext:I,onWarn:t,__meta:se};return J.datetimeFormats=a,J.numberFormats=i,J.__datetimeFormatters=z,J.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&vm(J,n,se),J}const $o=e=>({[e]:De()});function Fl(e,t,n,s,r){const{missing:o,onWarn:l}=e;if(o!==null){const a=o(e,n,t,r);return re(a)?a:t}else return t}function ps(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Wm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Bm(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Wm(e,t[s]))return!0;return!1}function qa(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:a}=e,[i,c,u,d]=Yo(...t),g=Pe(u.missingWarn)?u.missingWarn:e.missingWarn;Pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,m=Ol(e,u),y=l(e,r,m);if(!re(i)||i==="")return new Intl.DateTimeFormat(m,d).format(c);let A={},b,E=null;const w="datetime format";for(let S=0;S<y.length&&(b=y[S],A=n[b]||{},E=A[i],!Se(E));S++)Fl(e,i,b,g,w);if(!Se(E)||!re(b))return s?to:i;let h=`${b}__${i}`;Zr(d)||(h=`${h}__${JSON.stringify(d)}`);let P=a.get(h);return P||(P=new Intl.DateTimeFormat(b,Ze({},E,d)),a.set(h,P)),f?P.formatToParts(c):P.format(c)}const hu=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Yo(...e){const[t,n,s,r]=e,o=De();let l=De(),a;if(re(t)){const i=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!i)throw tn(en.INVALID_ISO_DATE_ARGUMENT);const c=i[3]?i[3].trim().startsWith("T")?`${i[1].trim()}${i[3].trim()}`:`${i[1].trim()}T${i[3].trim()}`:i[1].trim();a=new Date(c);try{a.toISOString()}catch{throw tn(en.INVALID_ISO_DATE_ARGUMENT)}}else if(Mg(t)){if(isNaN(t.getTime()))throw tn(en.INVALID_DATE_ARGUMENT);a=t}else if(Ye(t))a=t;else throw tn(en.INVALID_ARGUMENT);return re(n)?o.key=n:Se(n)&&Object.keys(n).forEach(i=>{hu.includes(i)?l[i]=n[i]:o[i]=n[i]}),re(s)?o.locale=s:Se(s)&&(l=s),Se(r)&&(l=r),[o.key||"",a,o,l]}function za(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function Ja(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:a}=e,[i,c,u,d]=Xo(...t),g=Pe(u.missingWarn)?u.missingWarn:e.missingWarn;Pe(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,m=Ol(e,u),y=l(e,r,m);if(!re(i)||i==="")return new Intl.NumberFormat(m,d).format(c);let A={},b,E=null;const w="number format";for(let S=0;S<y.length&&(b=y[S],A=n[b]||{},E=A[i],!Se(E));S++)Fl(e,i,b,g,w);if(!Se(E)||!re(b))return s?to:i;let h=`${b}__${i}`;Zr(d)||(h=`${h}__${JSON.stringify(d)}`);let P=a.get(h);return P||(P=new Intl.NumberFormat(b,Ze({},E,d)),a.set(h,P)),f?P.formatToParts(c):P.format(c)}const bu=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Xo(...e){const[t,n,s,r]=e,o=De();let l=De();if(!Ye(t))throw tn(en.INVALID_ARGUMENT);const a=t;return re(n)?o.key=n:Se(n)&&Object.keys(n).forEach(i=>{bu.includes(i)?l[i]=n[i]:o[i]=n[i]}),re(s)?o.locale=s:Se(s)&&(l=s),Se(r)&&(l=r),[o.key||"",a,o,l]}function Ya(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Hm=e=>e,Gm=e=>"",qm="text",zm=e=>e.length===0?"":Il(e),Jm=Og;function Xa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ym(e){const t=Ye(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ye(e.named.count)||Ye(e.named.n))?Ye(e.named.count)?e.named.count:Ye(e.named.n)?e.named.n:t:t}function Xm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Qm(e={}){const t=e.locale,n=Ym(e),s=Le(e.pluralRules)&&re(t)&&Be(e.pluralRules[t])?e.pluralRules[t]:Xa,r=Le(e.pluralRules)&&re(t)&&Be(e.pluralRules[t])?Xa:void 0,o=b=>b[s(n,b.length,r)],l=e.list||[],a=b=>l[b],i=e.named||De();Ye(e.pluralIndex)&&Xm(n,i);const c=b=>i[b];function u(b,E){const w=Be(e.messages)?e.messages(b,!!E):Le(e.messages)?e.messages[b]:!1;return w||(e.parent?e.parent.message(b):Gm)}const d=b=>e.modifiers?e.modifiers[b]:Hm,g=Se(e.processor)&&Be(e.processor.normalize)?e.processor.normalize:zm,f=Se(e.processor)&&Be(e.processor.interpolate)?e.processor.interpolate:Jm,m=Se(e.processor)&&re(e.processor.type)?e.processor.type:qm,A={list:a,named:c,plural:o,linked:(b,...E)=>{const[w,h]=E;let P="text",S="";E.length===1?Le(w)?(S=w.modifier||S,P=w.type||P):re(w)&&(S=w||S):E.length===2&&(re(w)&&(S=w||S),re(h)&&(P=h||P));const I=u(b,!0)(A),K=P==="vnode"&&qe(I)&&S?I[0]:I;return S?d(S)(K,P):K},message:u,type:m,interpolate:f,normalize:g,values:Ze(De(),l,i)};return A}const Qa=()=>"",St=e=>Be(e);function Za(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:l,messages:a}=e,[i,c]=Qo(...t),u=Pe(c.missingWarn)?c.missingWarn:e.missingWarn,d=Pe(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=Pe(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,m=re(c.default)||Pe(c.default)?Pe(c.default)?o?i:()=>i:c.default:n?o?i:()=>i:null,y=n||m!=null&&(re(m)||Be(m)),A=Ol(e,c);g&&Zm(c);let[b,E,w]=f?[i,A,a[A]||De()]:yu(e,i,A,l,d,u),h=b,P=i;if(!f&&!(re(h)||Kt(h)||St(h))&&y&&(h=m,P=h),!f&&(!(re(h)||Kt(h)||St(h))||!re(E)))return r?to:i;let S=!1;const I=()=>{S=!0},K=St(h)?h:vu(e,i,E,h,P,I);if(S)return h;const z=nh(e,E,w,c),Z=Qm(z),se=eh(e,K,Z);let J=s?s(se,i):se;if(g&&re(J)&&(J=Ig(J)),__INTLIFY_PROD_DEVTOOLS__){const fe={timestamp:Date.now(),key:re(i)?i:St(h)?h.key:"",locale:E||(St(h)?h.locale:""),format:re(h)?h:St(h)?h.source:"",message:J};fe.meta=Ze({},e.__meta,Um()||{}),xm(fe)}return J}function Zm(e){qe(e.list)?e.list=e.list.map(t=>re(t)?Aa(t):t):Le(e.named)&&Object.keys(e.named).forEach(t=>{re(e.named[t])&&(e.named[t]=Aa(e.named[t]))})}function yu(e,t,n,s,r,o){const{messages:l,onWarn:a,messageResolver:i,localeFallbacker:c}=e,u=c(e,s,n);let d=De(),g,f=null;const m="translate";for(let y=0;y<u.length&&(g=u[y],d=l[g]||De(),(f=i(d,t))===null&&(f=d[t]),!(re(f)||Kt(f)||St(f)));y++)if(!Bm(g,u)){const A=Fl(e,t,g,o,m);A!==t&&(f=A)}return[f,g,d]}function vu(e,t,n,s,r,o){const{messageCompiler:l,warnHtmlMessage:a}=e;if(St(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 i=l(s,th(e,n,r,s,a,o));return i.locale=n,i.key=t,i.source=s,i}function eh(e,t,n){return t(n)}function Qo(...e){const[t,n,s]=e,r=De();if(!re(t)&&!Ye(t)&&!St(t)&&!Kt(t))throw tn(en.INVALID_ARGUMENT);const o=Ye(t)?String(t):(St(t),t);return Ye(n)?r.plural=n:re(n)?r.default=n:Se(n)&&!Zr(n)?r.named=n:qe(n)&&(r.list=n),Ye(s)?r.plural=s:re(s)?r.default=s:Se(s)&&Ze(r,s),[o,r]}function th(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:l=>{throw o&&o(l),l},onCacheKey:l=>Pg(t,n,l)}}function nh(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:l,fallbackLocale:a,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,g={locale:t,modifiers:r,pluralRules:o,messages:(f,m)=>{let y=l(n,f);if(y==null&&(u||m)){const[,,A]=yu(u||e,f,t,a,i,c);y=l(A,f)}if(re(y)||Kt(y)){let A=!1;const E=vu(e,f,t,y,f,()=>{A=!0});return A?Qa:E}else return St(y)?y:Qa}};return e.processor&&(g.processor=e.processor),s.list&&(g.list=s.list),s.named&&(g.named=s.named),Ye(s.plural)&&(g.pluralIndex=s.plural),g}am();const sh="11.2.8";function rh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ln().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ln().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ln().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ln().__INTLIFY_PROD_DEVTOOLS__=!1)}const bt={UNEXPECTED_RETURN_TYPE:wm,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 Tt(e,...t){return eo(e,null,void 0)}const Zo=vn("__translateVNode"),el=vn("__datetimeParts"),tl=vn("__numberParts"),xu=vn("__setPluralRules"),_u=vn("__injectWithOption"),nl=vn("__dispose");function Ks(e){if(!Le(e)||Kt(e))return e;for(const t in e)if(Et(e,t))if(!t.includes("."))Le(e[t])&&Ks(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]]=De()),!Le(r[n[l]])){o=!0;break}r=r[n[l]]}if(o||(Kt(r)?cu.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!Kt(r)){const l=r[n[s]];Le(l)&&Ks(l)}}return e}function Dl(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,l=Se(n)?n:qe(s)?De():{[e]:De()};if(qe(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:i,resource:c}=a;i?(l[i]=l[i]||De(),kr(c,l[i])):kr(c,l)}else re(a)&&kr(JSON.parse(a),l)}),r==null&&o)for(const a in l)Et(l,a)&&Ks(l[a]);return l}function wu(e){return e.type}function Tu(e,t,n){let s=Le(t.messages)?t.messages:De();"__i18nGlobal"in n&&(s=Dl(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Le(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(Le(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function ei(e){return Q(Ys,null,e,0)}function js(){return Xs()}const ti="__INTLIFY_META__",ni=()=>[],oh=()=>!1;let si=0;function ri(e){return((t,n,s,r)=>e(n,s,js()||void 0,r))}const lh=()=>{const e=js();let t=null;return e&&(t=wu(e)[ti])?{[ti]:t}:null};function Vl(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=Nr?ee:Pf;let l=Pe(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&l?t.locale.value:re(e.locale)?e.locale:Us),i=o(t&&l?t.fallbackLocale.value:re(e.fallbackLocale)||qe(e.fallbackLocale)||Se(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=o(Dl(a.value,e)),u=o(Se(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),d=o(Se(e.numberFormats)?e.numberFormats:{[a.value]:{}});let g=t?t.missingWarn:Pe(e.missingWarn)||ts(e.missingWarn)?e.missingWarn:!0,f=t?t.fallbackWarn:Pe(e.fallbackWarn)||ts(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:Pe(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,A=Be(e.missing)?e.missing:null,b=Be(e.missing)?ri(e.missing):null,E=Be(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:Pe(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter;const P=t?t.modifiers:Se(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,I;I=(()=>{s&&Ha(null);const _={version:sh,locale:a.value,fallbackLocale:i.value,messages:c.value,modifiers:P,pluralRules:S,missing:b===null?void 0:b,missingWarn:g,fallbackWarn:f,fallbackFormat:y,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:w,escapeParameter:h,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};_.datetimeFormats=u.value,_.numberFormats=d.value,_.__datetimeFormatters=Se(I)?I.__datetimeFormatters:void 0,_.__numberFormatters=Se(I)?I.__numberFormatters:void 0;const k=jm(_);return s&&Ha(k),k})(),ps(I,a.value,i.value);function z(){return[a.value,i.value,c.value,u.value,d.value]}const Z=j({get:()=>a.value,set:_=>{I.locale=_,a.value=_}}),se=j({get:()=>i.value,set:_=>{I.fallbackLocale=_,i.value=_,ps(I,a.value,_)}}),J=j(()=>c.value),fe=j(()=>u.value),ne=j(()=>d.value);function Y(){return Be(E)?E:null}function B(_){E=_,I.postTranslation=_}function W(){return A}function G(_){_!==null&&(b=ri(_)),A=_,I.missing=b}const oe=(_,k,O,te,ce,Je)=>{z();let Ge;try{__INTLIFY_PROD_DEVTOOLS__,s||(I.fallbackContext=t?Km():void 0),Ge=_(I)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(I.fallbackContext=void 0)}if(O!=="translate exists"&&Ye(Ge)&&Ge===to||O==="translate exists"&&!Ge){const[gt,yt]=k();return t&&m?te(t):ce(gt)}else{if(Je(Ge))return Ge;throw Tt(bt.UNEXPECTED_RETURN_TYPE)}};function Te(..._){return oe(k=>Reflect.apply(Za,null,[k,..._]),()=>Qo(..._),"translate",k=>Reflect.apply(k.t,k,[..._]),k=>k,k=>re(k))}function ve(..._){const[k,O,te]=_;if(te&&!Le(te))throw Tt(bt.INVALID_ARGUMENT);return Te(k,O,Ze({resolvedMessage:!0},te||{}))}function pe(..._){return oe(k=>Reflect.apply(qa,null,[k,..._]),()=>Yo(..._),"datetime format",k=>Reflect.apply(k.d,k,[..._]),()=>Wa,k=>re(k)||qe(k))}function he(..._){return oe(k=>Reflect.apply(Ja,null,[k,..._]),()=>Xo(..._),"number format",k=>Reflect.apply(k.n,k,[..._]),()=>Wa,k=>re(k)||qe(k))}function xe(_){return _.map(k=>re(k)||Ye(k)||Pe(k)?ei(String(k)):k)}const Me={normalize:xe,interpolate:_=>_,type:"vnode"};function _e(..._){return oe(k=>{let O;const te=k;try{te.processor=Me,O=Reflect.apply(Za,null,[te,..._])}finally{te.processor=null}return O},()=>Qo(..._),"translate",k=>k[Zo](..._),k=>[ei(k)],k=>qe(k))}function Oe(..._){return oe(k=>Reflect.apply(Ja,null,[k,..._]),()=>Xo(..._),"number format",k=>k[tl](..._),ni,k=>re(k)||qe(k))}function He(..._){return oe(k=>Reflect.apply(qa,null,[k,..._]),()=>Yo(..._),"datetime format",k=>k[el](..._),ni,k=>re(k)||qe(k))}function We(_){S=_,I.pluralRules=S}function nt(_,k){return oe(()=>{if(!_)return!1;const O=re(k)?k:a.value,te=D(O),ce=I.messageResolver(te,_);return Kt(ce)||St(ce)||re(ce)},()=>[_],"translate exists",O=>Reflect.apply(O.te,O,[_,k]),oh,O=>Pe(O))}function T(_){let k=null;const O=uu(I,i.value,a.value);for(let te=0;te<O.length;te++){const ce=c.value[O[te]]||{},Je=I.messageResolver(ce,_);if(Je!=null){k=Je;break}}return k}function $(_){const k=T(_);return k??(t?t.tm(_)||{}:{})}function D(_){return c.value[_]||{}}function V(_,k){if(r){const O={[_]:k};for(const te in O)Et(O,te)&&Ks(O[te]);k=O[_]}c.value[_]=k,I.messages=c.value}function U(_,k){c.value[_]=c.value[_]||{};const O={[_]:k};if(r)for(const te in O)Et(O,te)&&Ks(O[te]);k=O[_],kr(k,c.value[_]),I.messages=c.value}function H(_){return u.value[_]||{}}function v(_,k){u.value[_]=k,I.datetimeFormats=u.value,za(I,_,k)}function p(_,k){u.value[_]=Ze(u.value[_]||{},k),I.datetimeFormats=u.value,za(I,_,k)}function R(_){return d.value[_]||{}}function M(_,k){d.value[_]=k,I.numberFormats=d.value,Ya(I,_,k)}function X(_,k){d.value[_]=Ze(d.value[_]||{},k),I.numberFormats=d.value,Ya(I,_,k)}si++,t&&Nr&&(ct(t.locale,_=>{l&&(a.value=_,I.locale=_,ps(I,a.value,i.value))}),ct(t.fallbackLocale,_=>{l&&(i.value=_,I.fallbackLocale=_,ps(I,a.value,i.value))}));const q={id:si,locale:Z,fallbackLocale:se,get inheritLocale(){return l},set inheritLocale(_){l=_,_&&t&&(a.value=t.locale.value,i.value=t.fallbackLocale.value,ps(I,a.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:J,get modifiers(){return P},get pluralRules(){return S||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(_){g=_,I.missingWarn=g},get fallbackWarn(){return f},set fallbackWarn(_){f=_,I.fallbackWarn=f},get fallbackRoot(){return m},set fallbackRoot(_){m=_},get fallbackFormat(){return y},set fallbackFormat(_){y=_,I.fallbackFormat=y},get warnHtmlMessage(){return w},set warnHtmlMessage(_){w=_,I.warnHtmlMessage=_},get escapeParameter(){return h},set escapeParameter(_){h=_,I.escapeParameter=_},t:Te,getLocaleMessage:D,setLocaleMessage:V,mergeLocaleMessage:U,getPostTranslationHandler:Y,setPostTranslationHandler:B,getMissingHandler:W,setMissingHandler:G,[xu]:We};return q.datetimeFormats=fe,q.numberFormats=ne,q.rt=ve,q.te=nt,q.tm=$,q.d=pe,q.n=he,q.getDateTimeFormat=H,q.setDateTimeFormat=v,q.mergeDateTimeFormat=p,q.getNumberFormat=R,q.setNumberFormat=M,q.mergeNumberFormat=X,q[_u]=n,q[Zo]=_e,q[el]=He,q[tl]=Oe,q}function ah(e){const t=re(e.locale)?e.locale:Us,n=re(e.fallbackLocale)||qe(e.fallbackLocale)||Se(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Be(e.missing)?e.missing:void 0,r=Pe(e.silentTranslationWarn)||ts(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Pe(e.silentFallbackWarn)||ts(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,l=Pe(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,i=Se(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Be(e.postTranslation)?e.postTranslation:void 0,d=re(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,g=!!e.escapeParameterHtml,f=Pe(e.sync)?e.sync:!0;let m=e.messages;if(Se(e.sharedMessages)){const P=e.sharedMessages;m=Object.keys(P).reduce((I,K)=>{const z=I[K]||(I[K]={});return Ze(z,P[K]),I},m||{})}const{__i18n:y,__root:A,__injectWithOption:b}=e,E=e.datetimeFormats,w=e.numberFormats,h=e.flatJson;return{locale:t,fallbackLocale:n,messages:m,flatJson:h,datetimeFormats:E,numberFormats:w,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:l,fallbackFormat:a,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:f,__i18n:y,__root:A,__injectWithOption:b}}function sl(e={}){const t=Vl(ah(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 Pe(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=Pe(r)?!r:r},get silentFallbackWarn(){return Pe(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=Pe(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 ih(e,t,n){return{beforeCreate(){const s=js();if(!s)throw Tt(bt.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=oi(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=sl(o);const l=this.$i18n;l.__extender&&(l.__disposer=l.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=oi(e,r);else{this.$i18n=sl({__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&&Tu(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=js();if(!s)throw Tt(bt.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 oi(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[xu](t.pluralizationRules||e.pluralizationRules);const n=Dl(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 Ul={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ch({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===me?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},De())}function ku(){return me}const uh=je({name:"i18n-t",props:Ze({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ye(e)||!isNaN(e)}},Ul),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||tt({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d[0]!=="_"),l=De();e.locale&&(l.locale=e.locale),e.plural!==void 0&&(l.plural=re(e.plural)?+e.plural:e.plural);const a=ch(t,o),i=r[Zo](e.keypath,a,l),c=Ze(De(),s),u=re(e.tag)||Le(e.tag)?e.tag:ku();return Ml(u,c,i)}}}),li=uh;function dh(e){return qe(e)&&!re(e[0])}function Cu(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const l={part:!0};let a=De();e.locale&&(l.locale=e.locale),re(e.format)?l.key=e.format:Le(e.format)&&(re(e.format.key)&&(l.key=e.format.key),a=Object.keys(e.format).reduce((g,f)=>n.includes(f)?Ze(De(),g,{[f]:e.format[f]}):g,De()));const i=s(e.value,l,a);let c=[l.key];qe(i)?c=i.map((g,f)=>{const m=r[g.type],y=m?m({[g.type]:g.value,index:f,parts:i}):[g.value];return dh(y)&&(y[0].key=`${g.type}-${f}`),y}):re(i)&&(c=[i]);const u=Ze(De(),o),d=re(e.tag)||Le(e.tag)?e.tag:ku();return Ml(d,u,c)}}const fh=je({name:"i18n-n",props:Ze({value:{type:Number,required:!0},format:{type:[String,Object]}},Ul),setup(e,t){const n=e.i18n||tt({useScope:e.scope,__useComponent:!0});return Cu(e,t,bu,(...s)=>n[tl](...s))}}),ai=fh;function ph(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 gh(e){const t=l=>{const{instance:a,value:i}=l;if(!a||!a.$)throw Tt(bt.UNEXPECTED_ERROR);const c=ph(e,a.$),u=ii(i);return[Reflect.apply(c.t,c,[...ci(u)]),c]};return{created:(l,a)=>{const[i,c]=t(a);Nr&&e.global===c&&(l.__i18nWatcher=ct(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),l.__composer=c,l.textContent=i},unmounted:l=>{Nr&&l.__i18nWatcher&&(l.__i18nWatcher(),l.__i18nWatcher=void 0,delete l.__i18nWatcher),l.__composer&&(l.__composer=void 0,delete l.__composer)},beforeUpdate:(l,{value:a})=>{if(l.__composer){const i=l.__composer,c=ii(a);l.textContent=Reflect.apply(i.t,i,[...ci(c)])}},getSSRProps:l=>{const[a]=t(l);return{textContent:a}}}}function ii(e){if(re(e))return{path:e};if(Se(e)){if(!("path"in e))throw Tt(bt.REQUIRED_VALUE,"path");return e}else throw Tt(bt.INVALID_VALUE)}function ci(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,l={},a=s||{};return re(n)&&(l.locale=n),Ye(r)&&(l.plural=r),Ye(o)&&(l.plural=o),[t,a,l]}function mh(e,t,...n){const s=Se(n[0])?n[0]:{};(!Pe(s.globalInstall)||s.globalInstall)&&([li.name,"I18nT"].forEach(o=>e.component(o,li)),[ai.name,"I18nN"].forEach(o=>e.component(o,ai)),[di.name,"I18nD"].forEach(o=>e.component(o,di))),e.directive("t",gh(t))}const hh=vn("global-vue-i18n");function bh(e={}){const t=__VUE_I18N_LEGACY_API__&&Pe(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Pe(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=yh(e,t),l=vn("");function a(d){return s.get(d)||null}function i(d,g){s.set(d,g)}function c(d){s.delete(d)}const u={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(d,...g){if(d.__VUE_I18N_SYMBOL__=l,d.provide(d.__VUE_I18N_SYMBOL__,u),Se(g[0])){const y=g[0];u.__composerExtend=y.__composerExtend,u.__vueI18nExtend=y.__vueI18nExtend}let f=null;!t&&n&&(f=Sh(d,u.global)),__VUE_I18N_FULL_INSTALL__&&mh(d,u,...g),__VUE_I18N_LEGACY_API__&&t&&d.mixin(ih(o,o.__composer,u));const m=d.unmount;d.unmount=()=>{f&&f(),u.dispose(),m()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:a,__setInstance:i,__deleteInstance:c};return u}function tt(e={}){const t=js();if(t==null)throw Tt(bt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Tt(bt.NOT_INSTALLED);const n=vh(t),s=_h(n),r=wu(t),o=xh(e,r);if(o==="global")return Tu(s,e,r),s;if(o==="parent"){let i=wh(n,t,e.__useComponent);return i==null&&(i=s),i}const l=n;let a=l.__getInstance(t);if(a==null){const i=Ze({},e);"__i18n"in r&&(i.__i18n=r.__i18n),s&&(i.__root=s),a=Vl(i),l.__composerExtend&&(a[nl]=l.__composerExtend(a)),kh(l,t,a),l.__setInstance(t,a)}return a}function yh(e,t){const n=of(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>sl(e)):n.run(()=>Vl(e));if(s==null)throw Tt(bt.UNEXPECTED_ERROR);return[n,s]}function vh(e){const t=Cs(e.isCE?hh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Tt(e.isCE?bt.NOT_INSTALLED_WITH_PROVIDE:bt.UNEXPECTED_ERROR);return t}function xh(e,t){return Zr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function _h(e){return e.mode==="composition"?e.global:e.global.__composer}function wh(e,t,n=!1){let s=null;const r=t.root;let o=Th(t,n);for(;o!=null;){const l=e;if(e.mode==="composition")s=l.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=l.__getInstance(o);a!=null&&(s=a.__composer,n&&s&&!s[_u]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Th(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function kh(e,t,n){rs(()=>{},t),Sl(()=>{const s=n;e.__deleteInstance(t);const r=s[nl];r&&(r(),delete s[nl])},t)}const Ch=["locale","fallbackLocale","availableLocales"],ui=["t","rt","d","n","tm","te"];function Sh(e,t){const n=Object.create(null);return Ch.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw Tt(bt.UNEXPECTED_ERROR);const l=Ce(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,l)}),e.config.globalProperties.$i18n=n,ui.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Tt(bt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,ui.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Eh=je({name:"i18n-d",props:Ze({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ul),setup(e,t){const n=e.i18n||tt({useScope:e.scope,__useComponent:!0});return Cu(e,t,hu,(...s)=>n[el](...s))}}),di=Eh;rh();Om(bm);Fm(Im);Dm(uu);if(__INTLIFY_PROD_DEVTOOLS__){const e=Ln();e.__INTLIFY__=!0,ym(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Rh(e){const t=e.endsWith("/")&&e!=="/"?e.slice(0,-1):e;return t==="/"?"":t.endsWith("/index.html")?t.slice(0,-11):t}function Or(e){return e.replace(/\\/g,"/")}function Ph(e){return e.startsWith("/")||/^[a-z]:\//i.test(e)}function $h(e){return Or(e).replace(/\/+$/,"")}function Mh(e){return Or(e).trim()}function Un(e,t,n={}){const s=Mh(e);if(!s)return null;if(Ph(s))return!n.allowAbsoluteWithoutRoot&&!t?.trim()?null:`vscode://file/${encodeURI(s)}`;if(!t?.trim())return null;const r=$h(t);if(!r)return null;const o=s.replace(/^\/+/,"");return`vscode://file/${encodeURI(`${r}/${o}`)}`}function Zs(e,t,n){const s=Un(e,t,n);return s?(window.location.href=s,!0):!1}var Lh=/\s+/g,Ih=e=>typeof e!="string"||!e?e:e.replace(Lh," ").trim(),Fr=(...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,a=o.length;l<a;l++){const i=o[l];s[i]&&t.push(i)}}};for(let s=0,r=e.length;s<r;s++){const o=e[s];o!=null&&n(o)}return t.length>0?Ih(t.join(" ")):void 0},fi=e=>e===!1?"false":e===!0?"true":e===0?"0":e,mt=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Ah=(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},Nh=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const s=t[n];n in e?e[n]=Fr(e[n],s):e[n]=s}return e},Su=(e,t)=>{for(let n=0;n<e.length;n++){const s=e[n];Array.isArray(s)?Su(s,t):s&&t.push(s)}},Eu=(...e)=>{const t=[];Su(e,t);const n=[];for(let s=0;s<t.length;s++)t[s]&&n.push(t[s]);return n},rl=(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]=Eu(o,r):typeof r=="object"&&typeof o=="object"&&r&&o?n[s]=rl(r,o):n[s]=o+" "+r}else n[s]=r}for(const s in t)s in e||(n[s]=t[s]);return n},Oh={twMerge:!0,twMergeConfig:{}};function Fh(){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 Xt=Fh(),Dh=e=>{const t=(s,r)=>{const{extend:o=null,slots:l={},variants:a={},compoundVariants:i=[],compoundSlots:c=[],defaultVariants:u={}}=s,d={...Oh,...r},g=o?.base?Fr(o.base,s?.base):s?.base,f=o?.variants&&!mt(o.variants)?rl(a,o.variants):a,m=o?.defaultVariants&&!mt(o.defaultVariants)?{...o.defaultVariants,...u}:u;!mt(d.twMergeConfig)&&!Ah(d.twMergeConfig,Xt.cachedTwMergeConfig)&&(Xt.didTwMergeConfigChange=!0,Xt.cachedTwMergeConfig=d.twMergeConfig);const y=mt(o?.slots),A=mt(l)?{}:{base:Fr(s?.base,y&&o?.base),...l},b=y?A:Nh({...o?.slots},mt(A)?{base:s?.base}:A),E=mt(o?.compoundVariants)?i:Eu(o?.compoundVariants,i),w=P=>{if(mt(f)&&mt(l)&&y)return e(g,P?.class,P?.className)(d);if(E&&!Array.isArray(E))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof E}`);if(c&&!Array.isArray(c))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);const S=(ne,Y=f,B=null,W=null)=>{const G=Y[ne];if(!G||mt(G))return null;const oe=W?.[ne]??P?.[ne];if(oe===null)return null;const Te=fi(oe);if(typeof Te=="object")return null;const ve=m?.[ne],pe=Te??fi(ve);return G[pe||"false"]},I=()=>{if(!f)return null;const ne=Object.keys(f),Y=[];for(let B=0;B<ne.length;B++){const W=S(ne[B],f);W&&Y.push(W)}return Y},K=(ne,Y)=>{if(!f||typeof f!="object")return null;const B=[];for(const W in f){const G=S(W,f,ne,Y),oe=ne==="base"&&typeof G=="string"?G:G&&G[ne];oe&&B.push(oe)}return B},z={};for(const ne in P){const Y=P[ne];Y!==void 0&&(z[ne]=Y)}const Z=(ne,Y)=>{const B=typeof P?.[ne]=="object"?{[ne]:P[ne]?.initial}:{};return{...m,...z,...B,...Y}},se=(ne=[],Y)=>{const B=[],W=ne.length;for(let G=0;G<W;G++){const{class:oe,className:Te,...ve}=ne[G];let pe=!0;const he=Z(null,Y);for(const xe in ve){const $e=ve[xe],Me=he[xe];if(Array.isArray($e)){if(!$e.includes(Me)){pe=!1;break}}else{if(($e==null||$e===!1)&&(Me==null||Me===!1))continue;if(Me!==$e){pe=!1;break}}}pe&&(oe&&B.push(oe),Te&&B.push(Te))}return B},J=ne=>{const Y=se(E,ne);if(!Array.isArray(Y))return Y;const B={},W=e;for(let G=0;G<Y.length;G++){const oe=Y[G];if(typeof oe=="string")B.base=W(B.base,oe)(d);else if(typeof oe=="object")for(const Te in oe)B[Te]=W(B[Te],oe[Te])(d)}return B},fe=ne=>{if(c.length<1)return null;const Y={},B=Z(null,ne);for(let W=0;W<c.length;W++){const{slots:G=[],class:oe,className:Te,...ve}=c[W];if(!mt(ve)){let pe=!0;for(const he in ve){const xe=B[he],$e=ve[he];if(xe===void 0||(Array.isArray($e)?!$e.includes(xe):$e!==xe)){pe=!1;break}}if(!pe)continue}for(let pe=0;pe<G.length;pe++){const he=G[pe];Y[he]||(Y[he]=[]),Y[he].push([oe,Te])}}return Y};if(!mt(l)||!y){const ne={};if(typeof b=="object"&&!mt(b)){const Y=e;for(const B in b)ne[B]=W=>{const G=J(W),oe=fe(W);return Y(b[B],K(B,W),G?G[B]:void 0,oe?oe[B]:void 0,W?.class,W?.className)(d)}}return ne}return e(g,I(),se(E),P?.class,P?.className)(d)},h=()=>{if(!(!f||typeof f!="object"))return Object.keys(f)};return w.variantKeys=h(),w.extend=o,w.base=g,w.slots=b,w.variants=f,w.defaultVariants=m,w.compoundSlots=c,w.compoundVariants=E,w};return{tv:t,createTV:s=>(r,o)=>t(r,o?rl(s,o):s)}};const Vh=(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},Uh=(e,t)=>({classGroupId:e,validator:t}),Ru=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Dr="-",pi=[],Kh="arbitrary..",jh=e=>{const t=Bh(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Wh(l);const a=l.split(Dr),i=a[0]===""&&a.length>1?1:0;return Pu(a,i,t)},getConflictingClassGroupIds:(l,a)=>{if(a){const i=s[l],c=n[l];return i?c?Vh(c,i):i:c||pi}return n[l]||pi}}},Pu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const c=Pu(e,t+1,o);if(c)return c}const l=n.validators;if(l===null)return;const a=t===0?e.join(Dr):e.slice(t).join(Dr),i=l.length;for(let c=0;c<i;c++){const u=l[c];if(u.validator(a))return u.classGroupId}},Wh=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?Kh+s:void 0})(),Bh=e=>{const{theme:t,classGroups:n}=e;return Hh(n,t)},Hh=(e,t)=>{const n=Ru();for(const s in e){const r=e[s];Kl(r,n,s,t)}return n},Kl=(e,t,n,s)=>{const r=e.length;for(let o=0;o<r;o++){const l=e[o];Gh(l,t,n,s)}},Gh=(e,t,n,s)=>{if(typeof e=="string"){qh(e,t,n);return}if(typeof e=="function"){zh(e,t,n,s);return}Jh(e,t,n,s)},qh=(e,t,n)=>{const s=e===""?t:$u(t,e);s.classGroupId=n},zh=(e,t,n,s)=>{if(Yh(e)){Kl(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Uh(n,e))},Jh=(e,t,n,s)=>{const r=Object.entries(e),o=r.length;for(let l=0;l<o;l++){const[a,i]=r[l];Kl(i,$u(t,a),n,s)}},$u=(e,t)=>{let n=e;const s=t.split(Dr),r=s.length;for(let o=0;o<r;o++){const l=s[o];let a=n.nextPart.get(l);a||(a=Ru(),n.nextPart.set(l,a)),n=a}return n},Yh=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xh=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)}}},ol="!",gi=":",Qh=[],mi=(e,t,n,s,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:r}),Zh=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=r=>{const o=[];let l=0,a=0,i=0,c;const u=r.length;for(let y=0;y<u;y++){const A=r[y];if(l===0&&a===0){if(A===gi){o.push(r.slice(i,y)),i=y+1;continue}if(A==="/"){c=y;continue}}A==="["?l++:A==="]"?l--:A==="("?a++:A===")"&&a--}const d=o.length===0?r:r.slice(i);let g=d,f=!1;d.endsWith(ol)?(g=d.slice(0,-1),f=!0):d.startsWith(ol)&&(g=d.slice(1),f=!0);const m=c&&c>i?c-i:void 0;return mi(o,f,g,m)};if(t){const r=t+gi,o=s;s=l=>l.startsWith(r)?o(l.slice(r.length)):mi(Qh,!1,l,void 0,!0)}if(n){const r=s;s=o=>n({className:o,parseClassName:r})}return s},eb=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],a=l[0]==="[",i=t.has(l);a||i?(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}},tb=e=>({cache:Xh(e.cacheSize),parseClassName:Zh(e),sortModifiers:eb(e),...jh(e)}),nb=/\s+/,sb=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:o}=t,l=[],a=e.trim().split(nb);let i="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:g,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:y}=n(u);if(d){i=u+(i.length>0?" "+i:i);continue}let A=!!y,b=s(A?m.substring(0,y):m);if(!b){if(!A){i=u+(i.length>0?" "+i:i);continue}if(b=s(m),!b){i=u+(i.length>0?" "+i:i);continue}A=!1}const E=g.length===0?"":g.length===1?g[0]:o(g).join(":"),w=f?E+ol:E,h=w+b;if(l.indexOf(h)>-1)continue;l.push(h);const P=r(b,A);for(let S=0;S<P.length;++S){const I=P[S];l.push(w+I)}i=u+(i.length>0?" "+i:i)}return i},rb=(...e)=>{let t=0,n,s,r="";for(;t<e.length;)(n=e[t++])&&(s=Mu(n))&&(r&&(r+=" "),r+=s);return r},Mu=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Mu(e[s]))&&(n&&(n+=" "),n+=t);return n},ll=(e,...t)=>{let n,s,r,o;const l=i=>{const c=t.reduce((u,d)=>d(u),e());return n=tb(c),s=n.cache.get,r=n.cache.set,o=a,a(i)},a=i=>{const c=s(i);if(c)return c;const u=sb(i,n);return r(i,u),u};return o=l,(...i)=>o(rb(...i))},ob=[],Xe=e=>{const t=n=>n[e]||ob;return t.isThemeGetter=!0,t},Lu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lb=/^\d+\/\d+$/,ab=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ib=/\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$/,cb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ub=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,db=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wn=e=>lb.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),cn=e=>!!e&&Number.isInteger(Number(e)),Mo=e=>e.endsWith("%")&&we(e.slice(0,-1)),zt=e=>ab.test(e),fb=()=>!0,pb=e=>ib.test(e)&&!cb.test(e),Au=()=>!1,gb=e=>ub.test(e),mb=e=>db.test(e),hb=e=>!le(e)&&!ae(e),bb=e=>os(e,Fu,Au),le=e=>Lu.test(e),Rn=e=>os(e,Du,pb),Lo=e=>os(e,wb,we),hi=e=>os(e,Nu,Au),yb=e=>os(e,Ou,mb),mr=e=>os(e,Vu,gb),ae=e=>Iu.test(e),gs=e=>ls(e,Du),vb=e=>ls(e,Tb),bi=e=>ls(e,Nu),xb=e=>ls(e,Fu),_b=e=>ls(e,Ou),hr=e=>ls(e,Vu,!0),os=(e,t,n)=>{const s=Lu.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},ls=(e,t,n=!1)=>{const s=Iu.exec(e);return s?s[1]?t(s[1]):n:!1},Nu=e=>e==="position"||e==="percentage",Ou=e=>e==="image"||e==="url",Fu=e=>e==="length"||e==="size"||e==="bg-size",Du=e=>e==="length",wb=e=>e==="number",Tb=e=>e==="family-name",Vu=e=>e==="shadow",al=()=>{const e=Xe("color"),t=Xe("font"),n=Xe("text"),s=Xe("font-weight"),r=Xe("tracking"),o=Xe("leading"),l=Xe("breakpoint"),a=Xe("container"),i=Xe("spacing"),c=Xe("radius"),u=Xe("shadow"),d=Xe("inset-shadow"),g=Xe("text-shadow"),f=Xe("drop-shadow"),m=Xe("blur"),y=Xe("perspective"),A=Xe("aspect"),b=Xe("ease"),E=Xe("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...h(),ae,le],S=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],K=()=>[ae,le,i],z=()=>[Wn,"full","auto",...K()],Z=()=>[cn,"none","subgrid",ae,le],se=()=>["auto",{span:["full",cn,ae,le]},cn,ae,le],J=()=>[cn,"auto",ae,le],fe=()=>["auto","min","max","fr",ae,le],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...K()],W=()=>[Wn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],G=()=>[e,ae,le],oe=()=>[...h(),bi,hi,{position:[ae,le]}],Te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",xb,bb,{size:[ae,le]}],pe=()=>[Mo,gs,Rn],he=()=>["","none","full",c,ae,le],xe=()=>["",we,gs,Rn],$e=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[we,Mo,bi,hi],Oe=()=>["","none",m,ae,le],He=()=>["none",we,ae,le],We=()=>["none",we,ae,le],nt=()=>[we,ae,le],T=()=>[Wn,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zt],breakpoint:[zt],color:[fb],container:[zt],"drop-shadow":[zt],ease:["in","out","in-out"],font:[hb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zt],shadow:[zt],spacing:["px",we],text:[zt],"text-shadow":[zt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wn,le,ae,A]}],container:["container"],columns:[{columns:[we,le,ae,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],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:[cn,"auto",ae,le]}],basis:[{basis:[Wn,"full","auto",a,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Wn,"auto","initial","none",le]}],grow:[{grow:["",we,ae,le]}],shrink:[{shrink:["",we,ae,le]}],order:[{order:[cn,"first","last","none",ae,le]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[a,"screen",...W()]}],"min-w":[{"min-w":[a,"screen","none",...W()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[l]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",n,gs,Rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ae,Lo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mo,le]}],"font-family":[{font:[vb,le,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,ae,le]}],"line-clamp":[{"line-clamp":[we,"none",ae,Lo]}],leading:[{leading:[o,...K()]}],"list-image":[{"list-image":["none",ae,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ae,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$e(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ae,Rn]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[we,"auto",ae,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae,le]}],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",ae,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:Te()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},cn,ae,le],radial:["",ae,le],conic:[cn,ae,le]},_b,yb]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:pe()}],"gradient-via-pos":[{via:pe()}],"gradient-to-pos":[{to:pe()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:xe()}],"border-w-x":[{"border-x":xe()}],"border-w-y":[{"border-y":xe()}],"border-w-s":[{"border-s":xe()}],"border-w-e":[{"border-e":xe()}],"border-w-t":[{"border-t":xe()}],"border-w-r":[{"border-r":xe()}],"border-w-b":[{"border-b":xe()}],"border-w-l":[{"border-l":xe()}],"divide-x":[{"divide-x":xe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":xe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$e(),"hidden","none"]}],"divide-style":[{divide:[...$e(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...$e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ae,le]}],"outline-w":[{outline:["",we,gs,Rn]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",u,hr,mr]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",d,hr,mr]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[we,Rn]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":xe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",g,hr,mr]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[we,ae,le]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[ae,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"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":h()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:Te()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ae,le]}],filter:[{filter:["","none",ae,le]}],blur:[{blur:Oe()}],brightness:[{brightness:[we,ae,le]}],contrast:[{contrast:[we,ae,le]}],"drop-shadow":[{"drop-shadow":["","none",f,hr,mr]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",we,ae,le]}],"hue-rotate":[{"hue-rotate":[we,ae,le]}],invert:[{invert:["",we,ae,le]}],saturate:[{saturate:[we,ae,le]}],sepia:[{sepia:["",we,ae,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ae,le]}],"backdrop-blur":[{"backdrop-blur":Oe()}],"backdrop-brightness":[{"backdrop-brightness":[we,ae,le]}],"backdrop-contrast":[{"backdrop-contrast":[we,ae,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ae,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ae,le]}],"backdrop-invert":[{"backdrop-invert":["",we,ae,le]}],"backdrop-opacity":[{"backdrop-opacity":[we,ae,le]}],"backdrop-saturate":[{"backdrop-saturate":[we,ae,le]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ae,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ae,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ae,le]}],ease:[{ease:["linear","initial",b,ae,le]}],delay:[{delay:[we,ae,le]}],animate:[{animate:["none",E,ae,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ae,le]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:We()}],"scale-x":[{"scale-x":We()}],"scale-y":[{"scale-y":We()}],"scale-z":[{"scale-z":We()}],"scale-3d":["scale-3d"],skew:[{skew:nt()}],"skew-x":[{"skew-x":nt()}],"skew-y":[{"skew-y":nt()}],transform:[{transform:[ae,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:T()}],"translate-x":[{"translate-x":T()}],"translate-y":[{"translate-y":T()}],"translate-z":[{"translate-z":T()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"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",ae,le]}],"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":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"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",ae,le]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[we,gs,Rn,Lo]}],stroke:[{stroke:["none",...G()]}],"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"]}},kb=(e,{cacheSize:t,prefix:n,experimentalParseClassName:s,extend:r={},override:o={}})=>(vs(e,"cacheSize",t),vs(e,"prefix",n),vs(e,"experimentalParseClassName",s),br(e.theme,o.theme),br(e.classGroups,o.classGroups),br(e.conflictingClassGroups,o.conflictingClassGroups),br(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),vs(e,"orderSensitiveModifiers",o.orderSensitiveModifiers),yr(e.theme,r.theme),yr(e.classGroups,r.classGroups),yr(e.conflictingClassGroups,r.conflictingClassGroups),yr(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Uu(e,r,"orderSensitiveModifiers"),e),vs=(e,t,n)=>{n!==void 0&&(e[t]=n)},br=(e,t)=>{if(t)for(const n in t)vs(e,n,t[n])},yr=(e,t)=>{if(t)for(const n in t)Uu(e,t,n)},Uu=(e,t,n)=>{const s=t[n];s!==void 0&&(e[n]=e[n]?e[n].concat(s):s)},Cb=(e,...t)=>typeof e=="function"?ll(al,e,...t):ll(()=>kb(al(),e),...t),Sb=ll(al);var Eb=e=>mt(e)?Sb:Cb({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),Ku=(e,t)=>{const n=Fr(e);return!n||!(t?.twMerge??!0)?n:((!Xt.cachedTwMerge||Xt.didTwMergeConfigChange)&&(Xt.didTwMergeConfigChange=!1,Xt.cachedTwMerge=Eb(Xt.cachedTwMergeConfig)),Xt.cachedTwMerge(n)||void 0)},Rb=(...e)=>Ku(e,{}),Pb=(...e)=>t=>Ku(e,t),{tv:Ws}=Dh(Pb);function no(...e){return Rb(...e)}const Ke=je({__name:"UiPill",props:{tone:{default:"strong"},size:{default:"md"},caps:{type:Boolean,default:!0},tracking:{default:"wide"}},setup(e){const t=e,n=Ws({base:"inline-flex items-center gap-1.5 rounded",variants:{size:{xxs:"px-1.5 py-0.5 text-[0.7rem]",xs:"px-2 py-0.5 text-[0.7rem]",sm:"px-2 py-0.5 text-[0.7rem]",md:"px-2.5 py-1 text-[0.75rem]",lg:"px-3 py-1 text-[0.8rem]"},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:"",false:""},tracking:{wide:"",tight:"",none:""}},defaultVariants:{size:"md",tone:"strong",caps:!1,tracking:"none"}}),s=Yr(),r=j(()=>{const a=t.caps?t.tracking:"none";return no(n({size:t.size,tone:t.tone,caps:t.caps,tracking:a}),s.class)}),o=j(()=>{const{class:a,style:i,...c}=s;return c}),l=j(()=>s.style);return(a,i)=>(L(),N("span",on(o.value,{class:r.value,style:l.value}),[Zn(a.$slots,"default")],16))}}),$b={class:"flex min-h-0 flex-col gap-4"},Mb={class:"rounded border p-5 border-pg-border bg-pg-surface-card"},Lb={class:"flex flex-wrap items-center justify-between gap-3"},Ib={class:"flex flex-col gap-1"},Ab={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Nb={class:"text-lg font-display text-pg-text-strong"},Ob={class:"mt-4 grid gap-3 text-sm text-pg-text-soft"},Fb={class:"flex items-center gap-2"},Db={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Vb={class:"flex items-center gap-2"},Ub={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Kb={class:"flex min-h-0 flex-1 flex-col gap-3"},jb={key:0,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Wb={key:0,class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Bb={class:"flex items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Hb={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},Gb={class:"flex flex-wrap items-center justify-between gap-2"},qb={class:"flex flex-wrap items-center gap-2"},zb={class:"text-[0.75rem] font-semibold text-pg-text"},Jb=["aria-label","title","onClick"],Yb={class:"mt-1 text-[0.7rem] text-pg-text-muted"},Xb={key:1,class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},Qb={class:"flex items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Zb={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},ey={class:"flex flex-wrap items-center justify-between gap-2"},ty={class:"flex flex-wrap items-center gap-2"},ny={class:"text-[0.75rem] font-semibold text-pg-text"},sy=["aria-label","title","onClick"],ry={class:"mt-1 text-[0.7rem] text-pg-text-muted"},oy={key:2,class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},ly={class:"flex items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},ay={class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},iy={class:"flex flex-wrap items-center justify-between gap-2"},cy={class:"text-[0.75rem] font-semibold text-pg-text"},uy=["aria-label","title","onClick"],dy=je({__name:"ConfigDetail",props:{selected:{},impacted:{},isDisabled:{type:Boolean},workspaceRoot:{}},setup(e){const t=e,{t:n}=tt(),s=j(()=>{const d=t.selected.file.replace(/\\/g,"/"),g=d.lastIndexOf("/");return g<0?"/":d.slice(0,g)||"/"}),r=j(()=>s.value==="/"?"/**":`${s.value}/**`),o=j(()=>{const d=[],g=[],f=[];for(const m of t.impacted)m.kind==="disabled"?g.push(m):m.kind==="ignored"?f.push(m):d.push(m);return{active:d,disabled:g,ignored:f}}),l=j(()=>t.impacted.length),a=d=>`method-${d.toLowerCase()}`;function i(d){return d.url?d.url:d.file}function c(d){return Un(d,t.workspaceRoot)}function u(d){Zs(d,t.workspaceRoot)}return(d,g)=>(L(),N("section",$b,[x("div",Mb,[x("div",Lb,[x("div",Ib,[x("span",Ab,F(C(n)("configPanel.title")),1),x("span",Nb,F(t.selected.file),1)]),Q(Ke,{tone:"chip",size:"sm",caps:!1},{default:ue(()=>[Ee(F(t.isDisabled?C(n)("configPanel.statusDisabled"):C(n)("configPanel.statusEnabled")),1)]),_:1})]),x("div",Ob,[x("div",Fb,[x("span",Db,F(C(n)("configPanel.scope")),1),x("span",null,F(r.value),1)]),x("div",Vb,[x("span",Ub,F(C(n)("configPanel.impacted")),1),Q(Ke,{tone:"chip",size:"sm",caps:!1},{default:ue(()=>[Ee(F(l.value),1)]),_:1})])])]),x("div",Kb,[l.value===0?(L(),N("div",jb,F(C(n)("configPanel.emptyImpacts")),1)):(L(),N(me,{key:1},[o.value.active.length>0?(L(),N("div",Wb,[x("div",Bb,[x("span",null,F(C(n)("configPanel.active")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(o.value.active.length),1)]),_:1})]),x("div",Hb,[(L(!0),N(me,null,Fe(o.value.active,f=>(L(),N("div",{key:`active-${f.file}-${f.method??""}-${f.url??""}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",Gb,[x("div",qb,[f.method?(L(),N("span",{key:0,class:ie(["rounded border px-2 py-1 text-[0.55rem] tracking-[0.08em]",a(f.method)])},F(f.method),3)):de("",!0),x("span",zb,F(i(f)),1)]),c(f.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 ${f.file} in VS Code`,title:C(n)("detail.openInVscode"),onClick:m=>u(f.file)},[...g[0]||(g[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Jb)):de("",!0)]),x("div",Yb,F(f.file),1)]))),128))])])):de("",!0),o.value.disabled.length>0?(L(),N("div",Xb,[x("div",Qb,[x("span",null,F(C(n)("configPanel.disabled")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(o.value.disabled.length),1)]),_:1})]),x("div",Zb,[(L(!0),N(me,null,Fe(o.value.disabled,f=>(L(),N("div",{key:`disabled-${f.file}-${f.method??""}-${f.url??""}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",ey,[x("div",ty,[f.method?(L(),N("span",{key:0,class:ie(["rounded border px-2 py-1 text-[0.55rem] tracking-[0.08em]",a(f.method)])},F(f.method),3)):de("",!0),x("span",ny,F(i(f)),1)]),c(f.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 ${f.file} in VS Code`,title:C(n)("detail.openInVscode"),onClick:m=>u(f.file)},[...g[1]||(g[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,sy)):de("",!0)]),x("div",ry,F(f.file),1)]))),128))])])):de("",!0),o.value.ignored.length>0?(L(),N("div",oy,[x("div",ly,[x("span",null,F(C(n)("configPanel.ignored")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(o.value.ignored.length),1)]),_:1})]),x("div",ay,[(L(!0),N(me,null,Fe(o.value.ignored,f=>(L(),N("div",{key:`ignored-${f.file}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",iy,[x("span",cy,F(i(f)),1),c(f.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 ${f.file} in VS Code`,title:C(n)("detail.openInVscode"),onClick:m=>u(f.file)},[...g[2]||(g[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,uy)):de("",!0)])]))),128))])])):de("",!0)],64))])]))}}),fy="modulepreload",py=function(e,t){return new URL(e,t).href},yi={},gy=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const l=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),i=a?.nonce||a?.getAttribute("nonce");r=c(n.map(u=>{if(u=py(u,s),u in yi)return;yi[u]=!0;const d=u.endsWith(".css"),g=d?'[rel="stylesheet"]':"";if(s)for(let m=l.length-1;m>=0;m--){const y=l[m];if(y.href===u&&(!d||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${g}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":fy,d||(f.as="script"),f.crossOrigin="",f.href=u,i&&f.setAttribute("nonce",i),document.head.appendChild(f),d)return new Promise((m,y)=>{f.addEventListener("load",m),f.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return r.then(l=>{for(const a of l||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},Vr=Math.min,Nn=Math.max,Ur=Math.round,vr=Math.floor,jt=e=>({x:e,y:e}),my={left:"right",right:"left",bottom:"top",top:"bottom"},hy={start:"end",end:"start"};function vi(e,t,n){return Nn(e,Vr(t,n))}function so(e,t){return typeof e=="function"?e(t):e}function On(e){return e.split("-")[0]}function ro(e){return e.split("-")[1]}function ju(e){return e==="x"?"y":"x"}function Wu(e){return e==="y"?"height":"width"}const by=new Set(["top","bottom"]);function fn(e){return by.has(On(e))?"y":"x"}function Bu(e){return ju(fn(e))}function yy(e,t,n){n===void 0&&(n=!1);const s=ro(e),r=Bu(e),o=Wu(r);let l=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Kr(l)),[l,Kr(l)]}function vy(e){const t=Kr(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>hy[t])}const xi=["left","right"],_i=["right","left"],xy=["top","bottom"],_y=["bottom","top"];function wy(e,t,n){switch(e){case"top":case"bottom":return n?t?_i:xi:t?xi:_i;case"left":case"right":return t?xy:_y;default:return[]}}function Ty(e,t,n,s){const r=ro(e);let o=wy(On(e),n==="start",s);return r&&(o=o.map(l=>l+"-"+r),t&&(o=o.concat(o.map(il)))),o}function Kr(e){return e.replace(/left|right|bottom|top/g,t=>my[t])}function ky(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cy(e){return typeof e!="number"?ky(e):{top:e,right:e,bottom:e,left:e}}function jr(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function wi(e,t,n){let{reference:s,floating:r}=e;const o=fn(t),l=Bu(t),a=Wu(l),i=On(t),c=o==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,g=s[a]/2-r[a]/2;let f;switch(i){case"top":f={x:u,y:s.y-r.height};break;case"bottom":f={x:u,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:d};break;case"left":f={x:s.x-r.width,y:d};break;default:f={x:s.x,y:s.y}}switch(ro(t)){case"start":f[l]-=g*(n&&c?-1:1);break;case"end":f[l]+=g*(n&&c?-1:1);break}return f}async function Sy(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:o,rects:l,elements:a,strategy:i}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=so(t,e),m=Cy(f),A=a[g?d==="floating"?"reference":"floating":d],b=jr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(A)))==null||n?A:A.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:i})),E=d==="floating"?{x:s,y:r,width:l.floating.width,height:l.floating.height}:l.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),h=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},P=jr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:w,strategy:i}):E);return{top:(b.top-P.top+m.top)/h.y,bottom:(P.bottom-b.bottom+m.bottom)/h.y,left:(b.left-P.left+m.left)/h.x,right:(P.right-b.right+m.right)/h.x}}const Ey=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),i=await(l.isRTL==null?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=wi(c,s,i),g=s,f={},m=0;for(let A=0;A<a.length;A++){var y;const{name:b,fn:E}=a[A],{x:w,y:h,data:P,reset:S}=await E({x:u,y:d,initialPlacement:s,placement:g,strategy:r,middlewareData:f,rects:c,platform:{...l,detectOverflow:(y=l.detectOverflow)!=null?y:Sy},elements:{reference:e,floating:t}});u=w??u,d=h??d,f={...f,[b]:{...f[b],...P}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(g=S.placement),S.rects&&(c=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:d}=wi(c,g,i)),A=-1)}return{x:u,y:d,placement:g,strategy:r,middlewareData:f}},Ry=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:o,rects:l,initialPlacement:a,platform:i,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...A}=so(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=On(r),E=fn(a),w=On(a)===a,h=await(i.isRTL==null?void 0:i.isRTL(c.floating)),P=g||(w||!y?[Kr(a)]:vy(a)),S=m!=="none";!g&&S&&P.push(...Ty(a,y,m,h));const I=[a,...P],K=await i.detectOverflow(t,A),z=[];let Z=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&z.push(K[b]),d){const ne=yy(r,l,h);z.push(K[ne[0]],K[ne[1]])}if(Z=[...Z,{placement:r,overflows:z}],!z.every(ne=>ne<=0)){var se,J;const ne=(((se=o.flip)==null?void 0:se.index)||0)+1,Y=I[ne];if(Y&&(!(d==="alignment"?E!==fn(Y):!1)||Z.every(G=>fn(G.placement)===E?G.overflows[0]>0:!0)))return{data:{index:ne,overflows:Z},reset:{placement:Y}};let B=(J=Z.filter(W=>W.overflows[0]<=0).sort((W,G)=>W.overflows[1]-G.overflows[1])[0])==null?void 0:J.placement;if(!B)switch(f){case"bestFit":{var fe;const W=(fe=Z.filter(G=>{if(S){const oe=fn(G.placement);return oe===E||oe==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(oe=>oe>0).reduce((oe,Te)=>oe+Te,0)]).sort((G,oe)=>G[1]-oe[1])[0])==null?void 0:fe[0];W&&(B=W);break}case"initialPlacement":B=a;break}if(r!==B)return{reset:{placement:B}}}return{}}}},Py=new Set(["left","top"]);async function $y(e,t){const{placement:n,platform:s,elements:r}=e,o=await(s.isRTL==null?void 0:s.isRTL(r.floating)),l=On(n),a=ro(n),i=fn(n)==="y",c=Py.has(l)?-1:1,u=o&&i?-1:1,d=so(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),i?{x:f*u,y:g*c}:{x:g*c,y:f*u}}const My=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:o,placement:l,middlewareData:a}=t,i=await $y(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+i.x,y:o+i.y,data:{...i,placement:l}}}}},Ly=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r,platform:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:i={fn:b=>{let{x:E,y:w}=b;return{x:E,y:w}}},...c}=so(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),g=fn(On(r)),f=ju(g);let m=u[f],y=u[g];if(l){const b=f==="y"?"top":"left",E=f==="y"?"bottom":"right",w=m+d[b],h=m-d[E];m=vi(w,m,h)}if(a){const b=g==="y"?"top":"left",E=g==="y"?"bottom":"right",w=y+d[b],h=y-d[E];y=vi(w,y,h)}const A=i.fn({...t,[f]:m,[g]:y});return{...A,data:{x:A.x-n,y:A.y-s,enabled:{[f]:l,[g]:a}}}}}};function oo(){return typeof window<"u"}function as(e){return Hu(e)?(e.nodeName||"").toLowerCase():"#document"}function wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Hu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hu(e){return oo()?e instanceof Node||e instanceof wt(e).Node:!1}function Lt(e){return oo()?e instanceof Element||e instanceof wt(e).Element:!1}function Wt(e){return oo()?e instanceof HTMLElement||e instanceof wt(e).HTMLElement:!1}function Ti(e){return!oo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof wt(e).ShadowRoot}const Iy=new Set(["inline","contents"]);function er(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!Iy.has(r)}const Ay=new Set(["table","td","th"]);function Ny(e){return Ay.has(as(e))}const Oy=[":popover-open",":modal"];function lo(e){return Oy.some(t=>{try{return e.matches(t)}catch{return!1}})}const Fy=["transform","translate","scale","rotate","perspective"],Dy=["transform","translate","scale","rotate","perspective","filter"],Vy=["paint","layout","strict","content"];function jl(e){const t=Wl(),n=Lt(e)?It(e):e;return Fy.some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Dy.some(s=>(n.willChange||"").includes(s))||Vy.some(s=>(n.contain||"").includes(s))}function Uy(e){let t=bn(e);for(;Wt(t)&&!ss(t);){if(jl(t))return t;if(lo(t))return null;t=bn(t)}return null}function Wl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ky=new Set(["html","body","#document"]);function ss(e){return Ky.has(as(e))}function It(e){return wt(e).getComputedStyle(e)}function ao(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bn(e){if(as(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ti(e)&&e.host||Bt(e);return Ti(t)?t.host:t}function Gu(e){const t=bn(e);return ss(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wt(t)&&er(t)?t:Gu(t)}function Bs(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Gu(e),o=r===((s=e.ownerDocument)==null?void 0:s.body),l=wt(r);if(o){const a=cl(l);return t.concat(l,l.visualViewport||[],er(r)?r:[],a&&n?Bs(a):[])}return t.concat(r,Bs(r,[],n))}function cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qu(e){const t=It(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=Wt(e),o=r?e.offsetWidth:n,l=r?e.offsetHeight:s,a=Ur(n)!==o||Ur(s)!==l;return a&&(n=o,s=l),{width:n,height:s,$:a}}function Bl(e){return Lt(e)?e:e.contextElement}function Xn(e){const t=Bl(e);if(!Wt(t))return jt(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:o}=qu(t);let l=(o?Ur(n.width):n.width)/s,a=(o?Ur(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const jy=jt(0);function zu(e){const t=wt(e);return!Wl()||!t.visualViewport?jy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wy(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wt(e)?!1:t}function Fn(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=Bl(e);let l=jt(1);t&&(s?Lt(s)&&(l=Xn(s)):l=Xn(e));const a=Wy(o,n,s)?zu(o):jt(0);let i=(r.left+a.x)/l.x,c=(r.top+a.y)/l.y,u=r.width/l.x,d=r.height/l.y;if(o){const g=wt(o),f=s&&Lt(s)?wt(s):s;let m=g,y=cl(m);for(;y&&s&&f!==m;){const A=Xn(y),b=y.getBoundingClientRect(),E=It(y),w=b.left+(y.clientLeft+parseFloat(E.paddingLeft))*A.x,h=b.top+(y.clientTop+parseFloat(E.paddingTop))*A.y;i*=A.x,c*=A.y,u*=A.x,d*=A.y,i+=w,c+=h,m=wt(y),y=cl(m)}}return jr({width:u,height:d,x:i,y:c})}function io(e,t){const n=ao(e).scrollLeft;return t?t.left+n:Fn(Bt(e)).left+n}function Ju(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-io(e,n),r=n.top+t.scrollTop;return{x:s,y:r}}function By(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const o=r==="fixed",l=Bt(s),a=t?lo(t.floating):!1;if(s===l||a&&o)return n;let i={scrollLeft:0,scrollTop:0},c=jt(1);const u=jt(0),d=Wt(s);if((d||!d&&!o)&&((as(s)!=="body"||er(l))&&(i=ao(s)),Wt(s))){const f=Fn(s);c=Xn(s),u.x=f.x+s.clientLeft,u.y=f.y+s.clientTop}const g=l&&!d&&!o?Ju(l,i):jt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-i.scrollLeft*c.x+u.x+g.x,y:n.y*c.y-i.scrollTop*c.y+u.y+g.y}}function Hy(e){return Array.from(e.getClientRects())}function Gy(e){const t=Bt(e),n=ao(e),s=e.ownerDocument.body,r=Nn(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=Nn(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let l=-n.scrollLeft+io(e);const a=-n.scrollTop;return It(s).direction==="rtl"&&(l+=Nn(t.clientWidth,s.clientWidth)-r),{width:r,height:o,x:l,y:a}}const ki=25;function qy(e,t){const n=wt(e),s=Bt(e),r=n.visualViewport;let o=s.clientWidth,l=s.clientHeight,a=0,i=0;if(r){o=r.width,l=r.height;const u=Wl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,i=r.offsetTop)}const c=io(s);if(c<=0){const u=s.ownerDocument,d=u.body,g=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(s.clientWidth-d.clientWidth-f);m<=ki&&(o-=m)}else c<=ki&&(o+=c);return{width:o,height:l,x:a,y:i}}const zy=new Set(["absolute","fixed"]);function Jy(e,t){const n=Fn(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,o=Wt(e)?Xn(e):jt(1),l=e.clientWidth*o.x,a=e.clientHeight*o.y,i=r*o.x,c=s*o.y;return{width:l,height:a,x:i,y:c}}function Ci(e,t,n){let s;if(t==="viewport")s=qy(e,n);else if(t==="document")s=Gy(Bt(e));else if(Lt(t))s=Jy(t,n);else{const r=zu(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return jr(s)}function Yu(e,t){const n=bn(e);return n===t||!Lt(n)||ss(n)?!1:It(n).position==="fixed"||Yu(n,t)}function Yy(e,t){const n=t.get(e);if(n)return n;let s=Bs(e,[],!1).filter(a=>Lt(a)&&as(a)!=="body"),r=null;const o=It(e).position==="fixed";let l=o?bn(e):e;for(;Lt(l)&&!ss(l);){const a=It(l),i=jl(l);!i&&a.position==="fixed"&&(r=null),(o?!i&&!r:!i&&a.position==="static"&&!!r&&zy.has(r.position)||er(l)&&!i&&Yu(e,l))?s=s.filter(u=>u!==l):r=a,l=bn(l)}return t.set(e,s),s}function Xy(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const l=[...n==="clippingAncestors"?lo(t)?[]:Yy(t,this._c):[].concat(n),s],a=l[0],i=l.reduce((c,u)=>{const d=Ci(t,u,r);return c.top=Nn(d.top,c.top),c.right=Vr(d.right,c.right),c.bottom=Vr(d.bottom,c.bottom),c.left=Nn(d.left,c.left),c},Ci(t,a,r));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}}function Qy(e){const{width:t,height:n}=qu(e);return{width:t,height:n}}function Zy(e,t,n){const s=Wt(t),r=Bt(t),o=n==="fixed",l=Fn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const i=jt(0);function c(){i.x=io(r)}if(s||!s&&!o)if((as(t)!=="body"||er(r))&&(a=ao(t)),s){const f=Fn(t,!0,o,t);i.x=f.x+t.clientLeft,i.y=f.y+t.clientTop}else r&&c();o&&!s&&r&&c();const u=r&&!s&&!o?Ju(r,a):jt(0),d=l.left+a.scrollLeft-i.x-u.x,g=l.top+a.scrollTop-i.y-u.y;return{x:d,y:g,width:l.width,height:l.height}}function Io(e){return It(e).position==="static"}function Si(e,t){if(!Wt(e)||It(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Bt(e)===n&&(n=n.ownerDocument.body),n}function Xu(e,t){const n=wt(e);if(lo(e))return n;if(!Wt(e)){let r=bn(e);for(;r&&!ss(r);){if(Lt(r)&&!Io(r))return r;r=bn(r)}return n}let s=Si(e,t);for(;s&&Ny(s)&&Io(s);)s=Si(s,t);return s&&ss(s)&&Io(s)&&!jl(s)?n:s||Uy(e)||n}const ev=async function(e){const t=this.getOffsetParent||Xu,n=this.getDimensions,s=await n(e.floating);return{reference:Zy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function tv(e){return It(e).direction==="rtl"}const nv={convertOffsetParentRelativeRectToViewportRelativeRect:By,getDocumentElement:Bt,getClippingRect:Xy,getOffsetParent:Xu,getElementRects:ev,getClientRects:Hy,getDimensions:Qy,getScale:Xn,isElement:Lt,isRTL:tv};function Qu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sv(e,t){let n=null,s;const r=Bt(e);function o(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function l(a,i){a===void 0&&(a=!1),i===void 0&&(i=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:g,height:f}=c;if(a||t(),!g||!f)return;const m=vr(d),y=vr(r.clientWidth-(u+g)),A=vr(r.clientHeight-(d+f)),b=vr(u),w={rootMargin:-m+"px "+-y+"px "+-A+"px "+-b+"px",threshold:Nn(0,Vr(1,i))||1};let h=!0;function P(S){const I=S[0].intersectionRatio;if(I!==i){if(!h)return l();I?l(!1,I):s=setTimeout(()=>{l(!1,1e-7)},1e3)}I===1&&!Qu(c,e.getBoundingClientRect())&&l(),h=!1}try{n=new IntersectionObserver(P,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(P,w)}n.observe(e)}return l(!0),o}function Zu(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:i=!1}=s,c=Bl(e),u=r||o?[...c?Bs(c):[],...Bs(t)]:[];u.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&a?sv(c,n):null;let g=-1,f=null;l&&(f=new ResizeObserver(b=>{let[E]=b;E&&E.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=f)==null||w.observe(t)})),n()}),c&&!i&&f.observe(c),f.observe(t));let m,y=i?Fn(e):null;i&&A();function A(){const b=Fn(e);y&&!Qu(y,b)&&n(),y=b,m=requestAnimationFrame(A)}return n(),()=>{var b;u.forEach(E=>{r&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d?.(),(b=f)==null||b.disconnect(),f=null,i&&cancelAnimationFrame(m)}}const ed=My,td=Ly,nd=Ry,sd=(e,t,n)=>{const s=new Map,r={platform:nv,...n},o={...r.platform,_c:s};return Ey(e,t,{...r,platform:o})};function Pn(e){return/^[\w./:@=&?%-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`}function rv(e){const t=["curl"],n=e.method.toUpperCase();n!=="GET"&&t.push(`-X ${n}`);const s=new URL(e.url,"http://localhost");e.authType==="apikey"&&e.authKeyLocation==="query"&&e.authKeyName&&e.authKeyValue&&s.searchParams.set(e.authKeyName,e.authKeyValue),t.push(Pn(s.toString()));const r={...e.headers};e.authType==="bearer"&&e.authToken?r.Authorization=`Bearer ${e.authToken}`:e.authType==="basic"&&(e.authUsername||e.authPassword)?r.Authorization=`Basic ${btoa(`${e.authUsername}:${e.authPassword}`)}`:e.authType==="apikey"&&e.authKeyLocation==="header"&&e.authKeyName&&e.authKeyValue?r[e.authKeyName]=e.authKeyValue:e.authType==="custom"&&e.authCustomName&&(r[e.authCustomName]=e.authCustomValue);for(const[o,l]of Object.entries(r))t.push(`-H ${Pn(`${o}: ${l}`)}`);if(n!=="GET"&&n!=="HEAD"&&e.bodyType!=="none"){const o=e.bodyText.trim();if(e.bodyType==="raw"&&o){if(!r["Content-Type"]){const l=ov(e.rawType);t.push(`-H ${Pn(`Content-Type: ${l}`)}`)}t.push(`-d ${Pn(o)}`)}else if(e.bodyType==="form-urlencoded"&&o)r["Content-Type"]||t.push(`-H ${Pn("Content-Type: application/x-www-form-urlencoded")}`),t.push(`--data-urlencode ${Pn(o)}`);else if(e.bodyType==="form-data"&&o)for(const l of o.split(`
5
+ `))l.indexOf("=")>0&&t.push(`-F ${Pn(l.trim())}`)}return t.join(` \\
6
+ `)}function ov(e){switch(e){case"json":return"application/json";case"javascript":return"application/javascript";case"html":return"text/html";case"xml":return"text/xml";default:return"text/plain"}}function ms(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}function lv(e){const t=e.method.toUpperCase(),n=new URL(e.url,"http://localhost");e.authType==="apikey"&&e.authKeyLocation==="query"&&e.authKeyName&&e.authKeyValue&&n.searchParams.set(e.authKeyName,e.authKeyValue);const s={...e.headers};e.authType==="bearer"&&e.authToken?s.Authorization=`Bearer ${e.authToken}`:e.authType==="basic"&&(e.authUsername||e.authPassword)?s.Authorization=`Basic ${btoa(`${e.authUsername}:${e.authPassword}`)}`:e.authType==="apikey"&&e.authKeyLocation==="header"&&e.authKeyName&&e.authKeyValue?s[e.authKeyName]=e.authKeyValue:e.authType==="custom"&&e.authCustomName&&(s[e.authCustomName]=e.authCustomValue);let r;if(t!=="GET"&&t!=="HEAD"&&e.bodyType!=="none"){const a=e.bodyText.trim();e.bodyType==="raw"&&a?(s["Content-Type"]||(s["Content-Type"]=av(e.rawType)),r=a):e.bodyType==="form-urlencoded"&&a&&(s["Content-Type"]||(s["Content-Type"]="application/x-www-form-urlencoded"),r=a)}const o=[`fetch(${ms(n.toString())}`," {"];o.push(` method: ${ms(t)},`);const l=Object.entries(s);if(l.length>0){o.push(" headers: {");for(const[a,i]of l)o.push(` ${ms(a)}: ${ms(i)},`);o.push(" },")}return r!==void 0&&(s["Content-Type"]==="application/json"?o.push(` body: JSON.stringify(${r}),`):o.push(` body: ${ms(r)},`)),o.push(" }"),o.push(")"),o.join(`
7
+ `)}function av(e){switch(e){case"json":return"application/json";case"javascript":return"application/javascript";case"html":return"text/html";case"xml":return"text/xml";default:return"text/plain"}}function $s(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 iv(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)))}const rd="mokup.playground.detailPanels.v2",od="mokup.playground.detailPanels",xs={configChain:!1,middlewares:!1},Hs=ee(xs);let Ei=!1;function cv(){if(typeof window>"u")return xs;const e=t=>{if(!t)return null;try{const n=JSON.parse(t);return{...xs,...n}}catch{return null}};try{return e(localStorage.getItem(rd))??e(localStorage.getItem(od))??xs}catch{return xs}}function uv(e){if(!(typeof window>"u"))try{localStorage.setItem(rd,JSON.stringify(e)),localStorage.setItem(od,JSON.stringify(e))}catch{}}function ld(){Ei||typeof window>"u"||(Hs.value=cv(),Ei=!0)}function Ri(e,t){ld();const n={...Hs.value,[e]:t};Hs.value=n,uv(n)}function ad(e){return ld(),{isOpen:j(()=>Hs.value[e]),toggle:()=>Ri(e,!Hs.value[e]),setOpen:r=>Ri(e,r)}}const dv=["aria-expanded"],fv={class:"flex flex-wrap items-center gap-2"},pv={key:0,class:"flex flex-col gap-2 border-t px-4 py-3 text-xs border-pg-border text-pg-text-soft"},gv={class:"rounded border px-2 py-0.5 text-[0.55rem] tracking-[0.08em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},mv={class:"text-[0.7rem] text-pg-text-subtle"},hv=["title","onClick"],bv={key:1,class:"border-t px-4 py-3 text-xs border-pg-border text-pg-text-muted"},Pi="pg-config-chain-panel",yv=je({__name:"RouteDetailConfigChain",props:{configChain:{},configStatusMap:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=tt(),{isOpen:s,toggle:r}=ad("configChain"),o=j(()=>(t.configChain??[]).map((a,i)=>({file:a,order:i+1,disabled:t.configStatusMap.get(a)==="disabled",editorUrl:Un(a,t.workspaceRoot)})));function l(a){Zs(a,t.workspaceRoot)}return(a,i)=>(L(),N("div",null,[x("button",{type:"button",class:"group flex w-full items-center justify-between px-4 py-3 text-[0.6rem] tracking-[0.08em] transition text-pg-text-muted hover:text-pg-text-soft","aria-expanded":C(s),"aria-controls":Pi,onClick:i[0]||(i[0]=(...c)=>C(r)&&C(r)(...c))},[x("span",fv,[x("span",null,F(C(n)("detail.configChain")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(o.value.length),1)]),_:1})]),x("span",{class:ie(["i-[carbon--chevron-down] h-4 w-4 transition",C(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,dv),C(s)?(L(),N("div",{key:0,id:Pi},[o.value.length>0?(L(),N("div",pv,[(L(!0),N(me,null,Fe(o.value,c=>(L(),N("div",{key:`config-${c.order}-${c.file}`,class:"flex flex-wrap items-center gap-2"},[x("span",gv,F(c.order),1),x("span",mv,F(c.file),1),c.editorUrl?(L(),N("button",{key:0,type:"button",class:"inline-flex items-center rounded border px-1.5 py-0.5 text-[0.55rem] tracking-[0.08em] transition border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",title:C(n)("detail.openInVscode"),onClick:u=>l(c.file)},[...i[1]||(i[1]=[x("span",{class:"i-[carbon--launch] h-3 w-3","aria-hidden":"true"},null,-1)])],8,hv)):de("",!0),c.disabled?(L(),ut(Ke,{key:1,tone:"strong",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(C(n)("configPanel.statusDisabled")),1)]),_:1})):de("",!0)]))),128))])):(L(),N("div",bv,F(C(n)("detail.configChainEmpty")),1))])):de("",!0)]))}}),vv=["aria-expanded"],xv={class:"flex flex-wrap items-center gap-2"},_v={key:0,class:"flex flex-col gap-2"},wv={class:"flex flex-wrap items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Tv={class:"flex flex-wrap gap-2"},kv=["href","title"],Cv={key:1,class:"flex flex-col gap-2"},Sv={class:"flex flex-wrap items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Ev={class:"flex flex-wrap gap-2"},Rv=["href","title"],Pv={key:2,class:"flex flex-col gap-2"},$v={class:"flex flex-wrap items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Mv={class:"flex flex-wrap gap-2"},Lv=["href","title"],$i="pg-middlewares-panel",Iv=je({__name:"RouteDetailMiddlewares",props:{selected:{},workspaceRoot:{}},setup(e){const t=e,{t:n}=tt(),{isOpen:s,toggle:r}=ad("middlewares");function o(f){const m=f.trim();return m?Un(m,t.workspaceRoot,{allowAbsoluteWithoutRoot:!0})??"":""}const l=j(()=>t.selected.preMiddlewares??[]),a=j(()=>t.selected.normalMiddlewares?t.selected.normalMiddlewares:t.selected.preMiddlewares||t.selected.postMiddlewares?[]:t.selected.middlewares??[]),i=j(()=>t.selected.postMiddlewares??[]),c=j(()=>t.selected.preMiddlewareCount??l.value.length),u=j(()=>t.selected.normalMiddlewareCount??a.value.length),d=j(()=>t.selected.postMiddlewareCount??i.value.length),g=j(()=>t.selected.middlewareCount??c.value+u.value+d.value);return(f,m)=>(L(),N("div",null,[x("button",{type:"button",class:"group flex w-full items-center justify-between px-4 py-3 text-[0.6rem] tracking-[0.08em] transition text-pg-text-muted hover:text-pg-text-soft","aria-expanded":C(s),"aria-controls":$i,onClick:m[0]||(m[0]=(...y)=>C(r)&&C(r)(...y))},[x("span",xv,[x("span",null,F(C(n)("detail.middlewares")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(g.value),1)]),_:1})]),x("span",{class:ie(["i-[carbon--chevron-down] h-4 w-4 transition",C(s)?"rotate-0":"-rotate-90"]),"aria-hidden":"true"},null,2)],8,vv),C(s)&&(l.value.length>0||a.value.length>0||i.value.length>0)?(L(),N("div",{key:0,id:$i,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",_v,[x("div",wv,[x("span",null,F(C(n)("detail.middlewarePre")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(c.value),1)]),_:1})]),x("div",Tv,[(L(!0),N(me,null,Fe(l.value,y=>(L(),N("span",{key:`pre-${y}`,class:"inline-flex items-center gap-2 rounded border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[Ee(F(y)+" ",1),o(y)?(L(),N("a",{key:0,href:o(y),class:"text-pg-text-soft transition hover:text-pg-text",title:C(n)("detail.openInVscode")},[...m[1]||(m[1]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,kv)):de("",!0)]))),128))])])):de("",!0),a.value.length>0?(L(),N("div",Cv,[x("div",Sv,[x("span",null,F(C(n)("detail.middlewareNormal")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(u.value),1)]),_:1})]),x("div",Ev,[(L(!0),N(me,null,Fe(a.value,y=>(L(),N("span",{key:`normal-${y}`,class:"inline-flex items-center gap-2 rounded border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[Ee(F(y)+" ",1),o(y)?(L(),N("a",{key:0,href:o(y),class:"text-pg-text-soft transition hover:text-pg-text",title:C(n)("detail.openInVscode")},[...m[2]||(m[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Rv)):de("",!0)]))),128))])])):de("",!0),i.value.length>0?(L(),N("div",Pv,[x("div",$v,[x("span",null,F(C(n)("detail.middlewarePost")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(d.value),1)]),_:1})]),x("div",Mv,[(L(!0),N(me,null,Fe(i.value,y=>(L(),N("span",{key:`post-${y}`,class:"inline-flex items-center gap-2 rounded border px-3 py-1 text-[0.6rem] border-pg-border bg-pg-surface-strong"},[Ee(F(y)+" ",1),o(y)?(L(),N("a",{key:0,href:o(y),class:"text-pg-text-soft transition hover:text-pg-text",title:C(n)("detail.openInVscode")},[...m[3]||(m[3]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Lv)):de("",!0)]))),128))])])):de("",!0)])):de("",!0)]))}}),Qe=je({__name:"UiField",props:{label:{},dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Ws({base:"flex flex-col text-pg-text-muted",variants:{dense:{true:"gap-1",false:"gap-1.5"}},defaultVariants:{dense:!1}}),s=Ws({base:"text-pg-text-muted",variants:{dense:{true:"text-[0.55rem] tracking-[0.1em]",false:"text-[0.65rem] tracking-[0.08em]"}},defaultVariants:{dense:!1}}),r=Yr(),o=j(()=>no(n({dense:t.dense}),r.class)),l=j(()=>s({dense:t.dense})),a=j(()=>{const{class:c,style:u,...d}=r;return d}),i=j(()=>r.style);return(c,u)=>(L(),N("div",on(a.value,{class:o.value,style:i.value}),[x("span",{class:ie(l.value)},F(t.label),3),Zn(c.$slots,"default")],16))}}),vt=je({__name:"UiTextInput",props:{dense:{type:Boolean,default:!1}},setup(e){const t=e,n=Ws({base:"rounded 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=Yr(),r=j(()=>no(n({dense:t.dense}),s.class)),o=j(()=>{const{class:a,style:i,...c}=s;return c}),l=j(()=>s.style);return(a,i)=>(L(),N("input",on(o.value,{class:r.value,style:l.value}),null,16))}}),Av={class:"rounded border border-pg-border bg-pg-surface-card"},Nv={class:"flex flex-col gap-3 px-4 py-4"},Ov={class:"flex flex-wrap items-center gap-2"},Fv={class:"relative"},Dv=["aria-expanded","onKeydown"],Vv=["disabled","aria-busy"],Uv={key:0,class:"i-[carbon--circle-dash] h-3.5 w-3.5 animate-spin","aria-hidden":"true"},Kv={class:"text-[0.65rem] text-pg-text-subtle"},jv={class:"border-t border-pg-border"},Wv={class:"flex flex-wrap items-center gap-5 px-4 pt-2 text-[0.65rem] tracking-[0.1em]",role:"tablist"},Bv=["aria-selected"],Hv=["aria-selected"],Gv=["aria-selected"],qv=["aria-selected"],zv=["aria-selected"],Jv=["aria-selected"],Yv={class:"border-t px-4 py-4 border-pg-border"},Xv={class:"flex flex-col gap-4"},Qv={class:"mb-1.5 text-[0.55rem] tracking-[0.1em] text-pg-text-muted"},Zv={key:0,class:"rounded border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},ex={key:1,class:"grid gap-3 lg:grid-cols-2"},tx={class:"flex items-center gap-2 text-[0.55rem] tracking-[0.08em] text-pg-text-muted"},nx={class:"rounded border px-2 py-0.5 text-[0.5rem] tracking-[0.08em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},sx={key:0,class:"flex flex-col gap-4"},rx={class:"flex flex-wrap items-center gap-4 text-[0.65rem] tracking-[0.08em] text-pg-text-muted"},ox=["checked","onChange"],lx={key:0,class:"grid gap-3 lg:grid-cols-2"},ax={key:1,class:"grid gap-3 lg:grid-cols-2"},ix={key:2,class:"grid gap-3 lg:grid-cols-3"},cx={class:"relative"},ux=["value"],dx={value:"header"},fx={value:"query"},px={key:3,class:"grid gap-3 lg:grid-cols-2"},gx={key:1},mx={key:2},hx={class:"flex flex-wrap items-center gap-4 text-[0.65rem] tracking-[0.08em] text-pg-text-muted"},bx=["disabled","checked","onChange"],yx={key:0,class:"mt-3 flex flex-wrap items-center gap-3"},vx={class:"relative"},xx=["value"],_x=["value"],wx={key:0,class:"flex items-center gap-2 rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] border-pg-border bg-pg-surface-strong text-pg-text-muted"},Tx=["checked"],kx={key:1,class:"mt-3 rounded border px-4 py-3 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},Cx={key:2,class:"mt-2"},Sx={class:"flex flex-wrap items-center gap-3"},Ex={class:"flex items-center gap-2 rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] border-pg-border bg-pg-surface-card text-pg-text-muted"},Rx={key:4,class:"mt-4"},Px={class:"mt-2 flex flex-col gap-2"},$x={class:"flex flex-col gap-2 lg:flex-row lg:items-center"},Mx={class:"flex items-center gap-2 rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] border-pg-border bg-pg-surface-card text-pg-text-muted"},Lx=["onChange"],Ix=["onClick"],Ax={class:"rounded border border-pg-border bg-pg-surface-strong"},Nx={class:"rounded border border-pg-border bg-pg-surface-strong"},Mi="playground-copy-menu",Ox='{ "q": "alpha", "page": 1 }',Fx='{ "x-mokup": "playground" }',Dx='{ "name": "Ada" }',Vx="Hello Mokup",Ux="export const data = { ok: true }",Kx='<div class="card">Hello</div>',jx="<note>Hello</note>",Li=`title=alpha
8
+ count=3`,Wx=je({__name:"PostmanRequestView",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},rawType:{},rawValidate:{type:Boolean},multipartFiles:{},binaryFile:{},authType:{},authToken:{},authUsername:{},authPassword:{},authKeyName:{},authKeyValue:{},authKeyLocation:{},authCustomName:{},authCustomValue:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:rawType","update:rawValidate","update:multipartFiles","update:binaryFile","update:authType","update:authToken","update:authUsername","update:authPassword","update:authKeyName","update:authKeyValue","update:authKeyLocation","update:authCustomName","update:authCustomValue","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,r=Qf({loader:()=>gy(()=>import("./UiCodeEditor.js"),__vite__mapDeps([0,1]),import.meta.url),suspensible:!1}),{t:o}=tt(),{bodyType:l}=Lf(n),a=j(()=>`method-${n.selected.method.toLowerCase()}`),i=j(()=>{const _=n.selected.configChain;return _!==void 0?{configChain:_}:{}}),c=ee("params"),u=ee(!1),d=new Map;let g=null,f=0;const m=j(()=>new Set(n.missingParams)),y=j(()=>n.missingParams.length>0),A=j(()=>n.routeParams.some(_=>_.required)),b=j(()=>{switch(n.rawType){case"text":return o("detail.rawTypeText");case"javascript":return o("detail.rawTypeJavascript");case"html":return o("detail.rawTypeHtml");case"xml":return o("detail.rawTypeXml");default:return o("detail.rawTypeJson")}}),E=j(()=>{switch(l.value){case"none":return o("detail.bodyTypeNone");case"form-data":return o("detail.bodyTypeFormData");case"form-urlencoded":return o("detail.bodyTypeFormUrlencoded");case"raw":return`${o("detail.bodyTypeRaw")} · ${b.value}`;case"binary":return o("detail.bodyTypeBinary");default:return o("detail.bodyTypeNone")}}),w=j(()=>[{value:"none",label:o("detail.authTypeNone")},{value:"bearer",label:o("detail.authTypeBearer")},{value:"basic",label:o("detail.authTypeBasic")},{value:"apikey",label:o("detail.authTypeApiKey")},{value:"custom",label:o("detail.authTypeCustom")}]),h=j(()=>[{value:"none",label:o("detail.bodyTypeNone")},{value:"form-data",label:o("detail.bodyTypeFormData")},{value:"form-urlencoded",label:o("detail.bodyTypeFormUrlencoded")},{value:"raw",label:o("detail.bodyTypeRaw")},{value:"binary",label:o("detail.bodyTypeBinary")},{value:"graphql",label:o("detail.bodyTypeGraphql"),disabled:!0}]),P=j(()=>[{value:"text",label:o("detail.rawTypeText")},{value:"javascript",label:o("detail.rawTypeJavascript")},{value:"json",label:o("detail.rawTypeJson")},{value:"html",label:o("detail.rawTypeHtml")},{value:"xml",label:o("detail.rawTypeXml")}]);function S(_){return _.kind==="param"?o("detail.paramPlaceholder"):o("detail.paramPlaceholderCatchall")}function I(_,k){if(!k){d.delete(_);return}d.set(_,k)}function K(){g&&(clearTimeout(g),g=null),u.value=!1,!(typeof window>"u")&&window.requestAnimationFrame(()=>{u.value=!0,g=window.setTimeout(()=>{u.value=!1,g=null},1400)})}function z(){const[_]=n.missingParams;if(!_)return;const k=d.get(_);if(!k)return;k.scrollIntoView({behavior:"smooth",block:"center"}),k.querySelector("input")?.focus()}ct(()=>n.selected?.url??"",()=>{c.value="params"},{immediate:!0}),ct(()=>n.missingPulse,async(_,k)=>{_===k||!y.value||(c.value="params",await ks(),z(),K())}),ct(()=>n.missingParams.length,_=>{_===0&&(u.value=!1)}),Vn(()=>{g&&(clearTimeout(g),g=null),G(),oe(),document.removeEventListener("pointerdown",Me),document.removeEventListener("keydown",_e),Y&&(clearTimeout(Y),Y=null)});const Z=ee(!1),se=ee(null),J=ee(null),fe=ee({left:"0px",top:"0px"}),ne=ee("");let Y=null,B=null,W=null;function G(){B&&(clearTimeout(B),B=null)}function oe(){W&&(W(),W=null)}async function Te(){const _=se.value,k=J.value;if(!_||!k)return;const{x:O,y:te}=await sd(_,k,{placement:"bottom-end",strategy:"fixed",middleware:[ed(6),nd({padding:8}),td({padding:8})]});fe.value={left:`${Math.round(O)}px`,top:`${Math.round(te)}px`}}function ve(){G(),Z.value=!0}function pe(_={}){G(),Z.value=!1,_.focusButton&&ks(()=>{se.value?.focus()})}function he(){if(Z.value){pe();return}ve()}function xe(){G(),B=setTimeout(()=>{B=null,pe()},120)}function $e(){G(),Z.value=!0}function Me(_){const k=_.target;if(!k)return;const O=se.value,te=J.value;O?.contains(k)||te?.contains(k)||pe()}function _e(_){_.key==="Escape"&&pe({focusButton:!0})}ct(Z,_=>{if(_){document.addEventListener("pointerdown",Me),document.addEventListener("keydown",_e),ks().then(()=>{if(!Z.value)return;const k=se.value,O=J.value;!k||!O||(Te(),oe(),W=Zu(k,O,()=>{Te()}))});return}oe(),document.removeEventListener("pointerdown",Me),document.removeEventListener("keydown",_e)});function Oe(){const _=$s(n.headersText),k={};if(_.value&&typeof _.value=="object")for(const[O,te]of Object.entries(_.value))k[O]=String(te);return{method:n.selected.method,url:n.requestUrl,headers:k,bodyType:n.bodyType,rawType:n.rawType,bodyText:n.bodyText,authType:n.authType,authToken:n.authToken,authUsername:n.authUsername,authPassword:n.authPassword,authKeyName:n.authKeyName,authKeyValue:n.authKeyValue,authKeyLocation:n.authKeyLocation,authCustomName:n.authCustomName,authCustomValue:n.authCustomValue}}function He(_,k){navigator.clipboard.writeText(_),ne.value=k,pe(),Y&&clearTimeout(Y),Y=setTimeout(()=>{ne.value="",Y=null},2e3)}function We(){He(n.requestUrl,"url")}function nt(){He(rv(Oe()),"curl")}function T(){He(lv(Oe()),"fetch")}function $(){switch(n.bodyType){case"raw":switch(n.rawType){case"text":return o("detail.bodyPlaceholderRawText",{sample:Vx});case"javascript":return o("detail.bodyPlaceholderRawJavascript",{sample:Ux});case"html":return o("detail.bodyPlaceholderRawHtml",{sample:Kx});case"xml":return o("detail.bodyPlaceholderRawXml",{sample:jx});default:return o("detail.bodyPlaceholderRawJson",{json:Dx})}case"form-data":return o("detail.bodyPlaceholderFormData",{sample:Li});case"form-urlencoded":return o("detail.bodyPlaceholderFormUrlencoded",{sample:Li});default:return""}}const D=j(()=>n.bodyType==="raw"&&n.rawType==="json"?"json":"text");function V(){return f+=1,{id:`multipart-${f}`,name:"",files:[]}}function U(){s("update:multipartFiles",[...n.multipartFiles,V()])}function H(_){s("update:multipartFiles",n.multipartFiles.filter(k=>k.id!==_))}function v(_,k){s("update:multipartFiles",n.multipartFiles.map(O=>O.id===_?{...O,name:k}:O))}function p(_,k){const O=k.target,te=Array.from(O?.files??[]);s("update:multipartFiles",n.multipartFiles.map(ce=>ce.id===_?{...ce,files:te}:ce))}function R(_){return _.files.length===0?o("detail.bodyMultipartChoose"):o("detail.bodyMultipartCount",{count:_.files.length})}function M(_){const k=_.target,[O]=Array.from(k?.files??[]);s("update:binaryFile",O??null)}function X(){s("update:binaryFile",null)}function q(_){return _?_<1024?`${_} B`:_<1024*1024?`${(_/1024).toFixed(1)} KB`:`${(_/(1024*1024)).toFixed(1)} MB`:"0 B"}return(_,k)=>(L(),N("section",Av,[x("div",Nv,[x("div",Ov,[x("span",{class:ie(["inline-flex h-9 w-[96px] flex-none items-center justify-center rounded border px-3 text-[0.65rem] tracking-[0.1em] border-pg-border bg-pg-surface-strong text-pg-text",a.value])},F(n.selected.method.toUpperCase()),3),Q(vt,{value:n.requestUrl,readonly:"",class:"h-9 min-w-[220px] flex-1"},null,8,["value"]),x("div",Fv,[x("button",{ref_key:"copyMenuButtonRef",ref:se,class:"inline-flex h-9 items-center gap-2 rounded px-4 text-[0.65rem] tracking-[0.1em] transition border border-pg-border bg-pg-surface-strong text-pg-text-muted hover:text-pg-text-soft",type:"button","aria-expanded":Z.value?"true":"false","aria-controls":Mi,"aria-haspopup":"menu",onMouseenter:$e,onMouseleave:xe,onClick:he,onKeydown:wg(ys(ve,["prevent"]),["down"])},[x("span",{class:ie(["h-3.5 w-3.5",ne.value?"i-[carbon--checkmark]":"i-[carbon--copy]"]),"aria-hidden":"true"},null,2),Ee(" "+F(ne.value?C(o)("detail.copyMenuDone"):C(o)("detail.copyMenu"))+" ",1),k[20]||(k[20]=x("span",{class:"i-[carbon--chevron-down] h-3 w-3","aria-hidden":"true"},null,-1))],40,Dv),Z.value?(L(),N("div",{key:0,id:Mi,ref_key:"copyMenuPanelRef",ref:J,class:"z-20 min-w-[160px] rounded border py-1 border-pg-border bg-pg-surface-card shadow-sm",style:Dn([{position:"fixed"},fe.value]),role:"menu",onMouseenter:$e,onMouseleave:xe},[x("button",{class:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-[0.65rem] tracking-[0.08em] transition text-pg-text-soft hover:bg-pg-hover-strong",type:"button",role:"menuitem",onClick:We},[k[21]||(k[21]=x("span",{class:"i-[carbon--link] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),Ee(" "+F(C(o)("detail.copyUrl")),1)]),x("button",{class:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-[0.65rem] tracking-[0.08em] transition text-pg-text-soft hover:bg-pg-hover-strong",type:"button",role:"menuitem",onClick:nt},[k[22]||(k[22]=x("span",{class:"i-[carbon--terminal] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),Ee(" "+F(C(o)("detail.copyCurl")),1)]),x("button",{class:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-[0.65rem] tracking-[0.08em] transition text-pg-text-soft hover:bg-pg-hover-strong",type:"button",role:"menuitem",onClick:T},[k[23]||(k[23]=x("span",{class:"i-[carbon--code] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),Ee(" "+F(C(o)("detail.copyFetch")),1)])],36)):de("",!0)]),x("button",{class:"inline-flex h-9 items-center gap-2 rounded px-4 text-[0.65rem] tracking-[0.1em] transition disabled:cursor-not-allowed disabled:opacity-70 bg-pg-accent text-pg-on-accent","data-testid":"playground-run",disabled:n.isSwRegistering,"aria-busy":n.isSwRegistering,onClick:k[0]||(k[0]=O=>s("run"))},[n.isSwRegistering?(L(),N("span",Uv)):de("",!0),Ee(" "+F(C(o)("detail.run")),1)],8,Vv)]),x("div",Kv,F(n.selected.file),1)]),x("div",jv,[x("div",Wv,[x("button",{type:"button",role:"tab","aria-selected":c.value==="params",class:ie(["border-b-2 pb-2 transition",[c.value==="params"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft",y.value?"pg-tab-missing":"",u.value&&y.value?"pg-pulse":""]]),onClick:k[1]||(k[1]=O=>c.value="params")},[x("span",null,F(C(o)("detail.params")),1),A.value?(L(),ut(Ke,{key:0,size:"xxs",tone:"chip",caps:!1,class:"ml-2"},{default:ue(()=>[Ee(F(C(o)("detail.badgeRequired")),1)]),_:1})):de("",!0)],10,Bv),x("button",{type:"button",role:"tab","aria-selected":c.value==="auth",class:ie(["border-b-2 pb-2 transition",c.value==="auth"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:k[2]||(k[2]=O=>c.value="auth")},F(C(o)("detail.auth")),11,Hv),x("button",{type:"button",role:"tab","aria-selected":c.value==="headers",class:ie(["border-b-2 pb-2 transition",c.value==="headers"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:k[3]||(k[3]=O=>c.value="headers")},F(C(o)("detail.headers")),11,Gv),x("button",{type:"button",role:"tab","aria-selected":c.value==="body",class:ie(["border-b-2 pb-2 transition",c.value==="body"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:k[4]||(k[4]=O=>c.value="body")},[Ee(F(C(o)("detail.body"))+" ",1),Q(Ke,{size:"xxs",tone:"chip",caps:!1,class:"ml-2"},{default:ue(()=>[Ee(F(E.value),1)]),_:1})],10,qv),x("button",{type:"button",role:"tab","aria-selected":c.value==="config",class:ie(["border-b-2 pb-2 transition",c.value==="config"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:k[5]||(k[5]=O=>c.value="config")},F(C(o)("detail.configChain")),11,zv),x("button",{type:"button",role:"tab","aria-selected":c.value==="middlewares",class:ie(["border-b-2 pb-2 transition",c.value==="middlewares"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:k[6]||(k[6]=O=>c.value="middlewares")},F(C(o)("detail.middlewares")),11,Jv)]),x("div",Yv,[vo(x("div",Xv,[x("div",null,[x("div",Qv,F(C(o)("detail.params")),1),n.routeParams.length===0?(L(),N("div",Zv,F(C(o)("detail.emptyParams")),1)):(L(),N("div",ex,[(L(!0),N(me,null,Fe(n.routeParams,O=>(L(),N("label",{key:O.id,ref_for:!0,ref:te=>I(O.name,te),class:"flex flex-col gap-1.5 text-[0.65rem] tracking-[0.08em] text-pg-text-muted"},[x("span",tx,[x("span",null,F(O.name),1),x("span",nx,F(O.token),1)]),Q(vt,{value:n.paramValues[O.name]??"",placeholder:S(O),class:ie([m.value.has(O.name)?"pg-input-missing":"",u.value&&m.value.has(O.name)?"pg-pulse":""]),onInput:te=>s("update:param-value",O.name,te.target?.value??"")},null,8,["value","placeholder","class","onInput"])]))),128))]))]),Q(Qe,{label:C(o)("detail.query")},{default:ue(()=>[Q(C(r),{"model-value":n.queryText,language:"json",rows:4,"format-label":C(o)("detail.formatJson"),placeholder:C(o)("detail.queryPlaceholder",{json:Ox}),"onUpdate:modelValue":k[7]||(k[7]=O=>s("update:queryText",O))},null,8,["model-value","format-label","placeholder"])]),_:1},8,["label"])],512),[[Co,c.value==="params"]]),c.value==="auth"?(L(),N("div",sx,[Q(Qe,{label:C(o)("detail.authType")},{default:ue(()=>[x("div",rx,[(L(!0),N(me,null,Fe(w.value,O=>(L(),N("label",{key:O.value,class:"inline-flex items-center gap-2 rounded border px-3 py-1 transition border-pg-border bg-pg-surface-strong text-pg-text-soft"},[x("input",{class:"h-3.5 w-3.5 rounded border-pg-border text-pg-accent",type:"radio",name:"authType",checked:n.authType===O.value,onChange:te=>s("update:authType",O.value)},null,40,ox),x("span",null,F(O.label),1)]))),128))])]),_:1},8,["label"]),n.authType==="bearer"?(L(),N("div",lx,[Q(Qe,{label:C(o)("detail.authTypeBearerToken")},{default:ue(()=>[Q(vt,{value:n.authToken,placeholder:"eyJhbGciOiJIUzI1NiIs...",onInput:k[8]||(k[8]=O=>s("update:authToken",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"])])):n.authType==="basic"?(L(),N("div",ax,[Q(Qe,{label:C(o)("detail.authTypeBasicUsername")},{default:ue(()=>[Q(vt,{value:n.authUsername,placeholder:"admin",onInput:k[9]||(k[9]=O=>s("update:authUsername",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Qe,{label:C(o)("detail.authTypeBasicPassword")},{default:ue(()=>[Q(vt,{value:n.authPassword,type:"password",placeholder:"••••••••",onInput:k[10]||(k[10]=O=>s("update:authPassword",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"])])):n.authType==="apikey"?(L(),N("div",ix,[Q(Qe,{label:C(o)("detail.authTypeApiKeyName")},{default:ue(()=>[Q(vt,{value:n.authKeyName,placeholder:"X-API-Key",onInput:k[11]||(k[11]=O=>s("update:authKeyName",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Qe,{label:C(o)("detail.authTypeApiKeyValue")},{default:ue(()=>[Q(vt,{value:n.authKeyValue,placeholder:"sk_live_...",onInput:k[12]||(k[12]=O=>s("update:authKeyValue",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Qe,{label:C(o)("detail.authTypeApiKeyLocation")},{default:ue(()=>[x("div",cx,[x("select",{class:"w-full appearance-none rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",value:n.authKeyLocation,onChange:k[13]||(k[13]=O=>s("update:authKeyLocation",O.target?.value))},[x("option",dx,F(C(o)("detail.authTypeApiKeyLocationHeader")),1),x("option",fx,F(C(o)("detail.authTypeApiKeyLocationQuery")),1)],40,ux),k[24]||(k[24]=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"])])):n.authType==="custom"?(L(),N("div",px,[Q(Qe,{label:C(o)("detail.authTypeCustomName")},{default:ue(()=>[Q(vt,{value:n.authCustomName,placeholder:"X-Custom-Auth",onInput:k[14]||(k[14]=O=>s("update:authCustomName",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"]),Q(Qe,{label:C(o)("detail.authTypeCustomValue")},{default:ue(()=>[Q(vt,{value:n.authCustomValue,placeholder:"value",onInput:k[15]||(k[15]=O=>s("update:authCustomValue",O.target?.value??""))},null,8,["value"])]),_:1},8,["label"])])):de("",!0)])):c.value==="headers"?(L(),N("div",gx,[Q(Qe,{label:C(o)("detail.headers")},{default:ue(()=>[Q(C(r),{"model-value":n.headersText,language:"json",rows:4,"format-label":C(o)("detail.formatJson"),placeholder:C(o)("detail.headersPlaceholder",{json:Fx}),"onUpdate:modelValue":k[16]||(k[16]=O=>s("update:headersText",O))},null,8,["model-value","format-label","placeholder"])]),_:1},8,["label"])])):c.value==="body"?(L(),N("div",mx,[Q(Qe,{label:C(o)("detail.bodyType")},{default:ue(()=>[x("div",hx,[(L(!0),N(me,null,Fe(h.value,O=>(L(),N("label",{key:O.value,class:ie(["inline-flex items-center gap-2 rounded border px-3 py-1 transition border-pg-border bg-pg-surface-strong",O.disabled?"opacity-60 cursor-not-allowed":"text-pg-text-soft"])},[x("input",{class:"h-3.5 w-3.5 rounded border-pg-border text-pg-accent",type:"radio",name:"bodyType",disabled:O.disabled,checked:n.bodyType===O.value,onChange:te=>O.disabled?null:s("update:bodyType",O.value)},null,40,bx),x("span",null,F(O.label),1)],2))),128))])]),_:1},8,["label"]),n.bodyType==="raw"?(L(),N("div",yx,[Q(Qe,{label:C(o)("detail.rawType"),class:"flex-1 min-w-[200px]"},{default:ue(()=>[x("div",vx,[x("select",{class:"w-full appearance-none rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] outline-none transition border-pg-border bg-pg-surface-strong text-pg-text focus:border-pg-accent",value:n.rawType,onChange:k[17]||(k[17]=O=>s("update:rawType",O.target?.value))},[(L(!0),N(me,null,Fe(P.value,O=>(L(),N("option",{key:O.value,value:O.value},F(O.label),9,_x))),128))],40,xx),k[25]||(k[25]=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"]),n.rawType==="json"?(L(),N("label",wx,[x("input",{type:"checkbox",class:"h-4 w-4 rounded border-pg-border text-pg-accent",checked:n.rawValidate,onChange:k[18]||(k[18]=O=>s("update:rawValidate",O.target?.checked??!0))},null,40,Tx),x("span",null,F(C(o)("detail.rawValidate")),1)])):de("",!0)])):de("",!0),n.bodyType==="none"?(L(),N("div",kx,F(C(o)("detail.bodyNoneHint")),1)):n.bodyType==="binary"?(L(),N("div",Cx,[Q(Qe,{label:C(o)("detail.bodyBinaryFile")},{default:ue(()=>[x("div",Sx,[x("label",Ex,[x("input",{class:"sr-only",type:"file",onChange:M},null,32),x("span",null,F(n.binaryFile?C(o)("detail.bodyBinarySelected",{name:n.binaryFile.name,size:q(n.binaryFile.size)}):C(o)("detail.bodyBinaryChoose")),1)]),n.binaryFile?(L(),N("button",{key:0,class:"rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] transition border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",type:"button",onClick:X},F(C(o)("detail.bodyBinaryRemove")),1)):de("",!0)])]),_:1},8,["label"])])):(L(),ut(Qe,{key:3,label:C(o)("detail.body")},{default:ue(()=>[Q(C(r),{"model-value":n.bodyText,language:D.value,rows:6,"format-label":C(o)("detail.formatJson"),placeholder:$(),"onUpdate:modelValue":k[19]||(k[19]=O=>s("update:bodyText",O))},null,8,["model-value","language","format-label","placeholder"])]),_:1},8,["label"])),n.bodyType==="form-data"?(L(),N("div",Rx,[Q(Qe,{label:C(o)("detail.bodyMultipartFiles")},{default:ue(()=>[x("div",Px,[(L(!0),N(me,null,Fe(n.multipartFiles,O=>(L(),N("div",{key:O.id,class:"rounded border p-3 border-pg-border bg-pg-surface-strong"},[x("div",$x,[Q(vt,{class:"flex-1",value:O.name,placeholder:C(o)("detail.bodyMultipartField"),onInput:te=>v(O.id,te.target?.value??"")},null,8,["value","placeholder","onInput"]),x("label",Mx,[x("input",{class:"sr-only",type:"file",multiple:"",onChange:te=>p(O.id,te)},null,40,Lx),x("span",null,F(R(O)),1)]),x("button",{class:"rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] transition border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",type:"button",onClick:te=>H(O.id)},F(C(o)("detail.bodyMultipartRemove")),9,Ix)])]))),128)),x("button",{class:"w-full rounded border px-3 py-2 text-[0.7rem] tracking-[0.08em] transition border-dashed border-pg-border bg-pg-surface-card text-pg-text-muted hover:text-pg-text-soft",type:"button",onClick:U},F(C(o)("detail.bodyMultipartAdd")),1)])]),_:1},8,["label"])])):de("",!0)])):de("",!0),vo(x("div",Ax,[Q(yv,on(i.value,{"config-status-map":n.configStatusMap,"workspace-root":n.workspaceRoot}),null,16,["config-status-map","workspace-root"])],512),[[Co,c.value==="config"]]),vo(x("div",Nx,[Q(Iv,{selected:n.selected,"workspace-root":n.workspaceRoot},null,8,["selected","workspace-root"])],512),[[Co,c.value==="middlewares"]])])])]))}}),Bx={class:"flex min-h-[240px] flex-1 flex-col rounded border border-pg-border bg-pg-surface-card"},Hx={class:"flex flex-wrap items-center justify-between gap-2 border-b px-4 py-3 text-[0.65rem] tracking-[0.08em] border-pg-border text-pg-text-muted"},Gx={class:"flex flex-wrap items-center gap-3 text-[0.65rem] normal-case tracking-normal text-pg-text-subtle"},qx={class:"flex flex-wrap items-center gap-4 border-b px-4 pt-2 text-[0.65rem] tracking-[0.1em] border-pg-border",role:"tablist"},zx=["aria-selected"],Jx=["aria-selected"],Yx=["aria-selected"],Xx={class:"flex-1 min-h-0 overflow-auto p-4"},Qx={key:0,class:"flex h-full flex-col gap-3"},Zx={class:"flex flex-wrap items-center gap-3 text-[0.6rem] tracking-[0.1em] text-pg-text-muted"},e_=["disabled"],t_={class:"flex-1"},n_={key:0,class:"min-h-[160px] rounded border p-4 text-xs border-pg-border bg-pg-surface-strong text-pg-text","data-testid":"playground-response"},s_={key:1,class:"min-h-[160px] rounded border p-4 text-xs border-pg-border bg-pg-surface-strong text-pg-text"},r_={key:2,class:"min-h-[160px] rounded border p-4 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},o_=["srcdoc","title"],l_={key:1,class:"min-h-[160px] rounded border p-4 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},a_={key:0},i_={key:1,class:"flex flex-col gap-2 text-xs text-pg-text-soft"},c_={class:"rounded border px-2 py-0.5 text-[0.55rem] tracking-[0.08em] border-pg-border bg-pg-surface-card text-pg-text-soft"},u_={class:"text-pg-text"},d_={key:2,class:"min-h-[160px] rounded border p-4 text-sm border-pg-border bg-pg-surface-strong text-pg-text-muted"},f_=je({__name:"PostmanResponseView",props:{responseRaw:{},responsePretty:{},responseHeaders:{},responseContentType:{},responseStatus:{},responseTime:{}},setup(e){const t=e,{t:n}=tt(),s=ee("body"),r=ee("pretty"),o=j(()=>t.responseStatus||n("response.idle")),l=j(()=>t.responseTime||n("response.waiting")),a=j(()=>{const f=t.responseRaw??"";if(!f)return n("response.size",{size:"0 B"});const m=typeof TextEncoder>"u"?f.length:new TextEncoder().encode(f).length,y=m<1024?`${m} B`:m<1024*1024?`${(m/1024).toFixed(1)} KB`:`${(m/(1024*1024)).toFixed(1)} MB`;return n("response.size",{size:y})}),i=j(()=>t.responsePretty||n("response.empty")),c=j(()=>t.responseRaw||t.responsePretty||n("response.empty")),u=j(()=>Object.entries(t.responseHeaders)),d=j(()=>t.responseContentType.toLowerCase().includes("text/html")),g=j(()=>t.responseRaw||t.responsePretty);return ct(d,f=>{!f&&r.value==="preview"&&(r.value="pretty")}),(f,m)=>(L(),N("section",Bx,[x("div",Hx,[x("span",null,F(C(n)("detail.responseLabel")),1),x("span",Gx,[x("span",null,F(o.value),1),x("span",null,F(l.value),1),x("span",null,F(a.value),1)])]),x("div",qx,[x("button",{type:"button",role:"tab","aria-selected":s.value==="body",class:ie(["border-b-2 pb-2 transition",s.value==="body"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:m[0]||(m[0]=y=>s.value="body")},F(C(n)("response.bodyTab")),11,zx),x("button",{type:"button",role:"tab","aria-selected":s.value==="headers",class:ie(["border-b-2 pb-2 transition",s.value==="headers"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:m[1]||(m[1]=y=>s.value="headers")},F(C(n)("response.headersTab")),11,Jx),x("button",{type:"button",role:"tab","aria-selected":s.value==="cookies",class:ie(["border-b-2 pb-2 transition",s.value==="cookies"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:m[2]||(m[2]=y=>s.value="cookies")},F(C(n)("response.cookiesTab")),11,Yx)]),x("div",Xx,[s.value==="body"?(L(),N("div",Qx,[x("div",Zx,[x("button",{type:"button",class:ie(["rounded border px-3 py-1 transition border-pg-border",r.value==="pretty"?"bg-pg-hover text-pg-text-strong":"text-pg-text-muted hover:text-pg-text-soft"]),onClick:m[3]||(m[3]=y=>r.value="pretty")},F(C(n)("response.prettyTab")),3),x("button",{type:"button",class:ie(["rounded border px-3 py-1 transition border-pg-border",r.value==="raw"?"bg-pg-hover text-pg-text-strong":"text-pg-text-muted hover:text-pg-text-soft"]),onClick:m[4]||(m[4]=y=>r.value="raw")},F(C(n)("response.rawTab")),3),x("button",{type:"button",class:ie(["rounded border px-3 py-1 transition border-pg-border disabled:cursor-not-allowed disabled:opacity-60",r.value==="preview"?"bg-pg-hover text-pg-text-strong":"text-pg-text-muted hover:text-pg-text-soft"]),disabled:!d.value,onClick:m[5]||(m[5]=y=>r.value="preview")},F(C(n)("response.previewTab")),11,e_)]),x("div",t_,[r.value==="pretty"?(L(),N("pre",n_,F(i.value),1)):r.value==="raw"?(L(),N("pre",s_,F(c.value),1)):r.value==="preview"&&!d.value?(L(),N("div",r_,F(C(n)("response.previewEmpty")),1)):(L(),N("iframe",{key:3,class:"min-h-[160px] w-full rounded border bg-white",srcdoc:g.value,sandbox:"",title:C(n)("response.previewTab")},null,8,o_))])])):s.value==="headers"?(L(),N("div",l_,[u.value.length===0?(L(),N("div",a_,F(C(n)("response.headersEmpty")),1)):(L(),N("div",i_,[(L(!0),N(me,null,Fe(u.value,([y,A])=>(L(),N("div",{key:y,class:"flex flex-wrap items-center gap-2"},[x("span",c_,F(y),1),x("span",u_,F(A),1)]))),128))]))])):(L(),N("div",d_,F(C(n)("response.cookiesEmpty")),1))])]))}}),p_={class:"flex min-h-0 flex-col gap-4"},g_={key:0,class:"flex h-full flex-col items-center justify-center gap-3 rounded border p-6 text-center border-pg-border bg-pg-surface-card text-pg-text-muted"},m_={class:"text-xl font-display text-pg-text-strong"},h_={class:"text-sm"},b_={key:1,class:"relative flex min-h-0 h-full flex-col gap-4"},y_=je({__name:"RouteDetail",props:{selected:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},rawType:{},rawValidate:{type:Boolean},multipartFiles:{},binaryFile:{},authType:{},authToken:{},authUsername:{},authPassword:{},authKeyName:{},authKeyValue:{},authKeyLocation:{},authCustomName:{},authCustomValue:{},responseRaw:{},responsePretty:{},responseHeaders:{},responseContentType:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:rawType","update:rawValidate","update:multipartFiles","update:binaryFile","update:authType","update:authToken","update:authUsername","update:authPassword","update:authKeyName","update:authKeyValue","update:authKeyLocation","update:authCustomName","update:authCustomValue","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=tt();return(o,l)=>(L(),N("section",p_,[n.selected?(L(),N("div",b_,[Q(Wx,{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,"raw-type":n.rawType,"raw-validate":n.rawValidate,"multipart-files":n.multipartFiles,"binary-file":n.binaryFile,"auth-type":n.authType,"auth-token":n.authToken,"auth-username":n.authUsername,"auth-password":n.authPassword,"auth-key-name":n.authKeyName,"auth-key-value":n.authKeyValue,"auth-key-location":n.authKeyLocation,"auth-custom-name":n.authCustomName,"auth-custom-value":n.authCustomValue,"is-sw-registering":n.isSwRegistering,"config-status-map":n.configStatusMap,"onUpdate:queryText":l[0]||(l[0]=a=>s("update:queryText",a)),"onUpdate:headersText":l[1]||(l[1]=a=>s("update:headersText",a)),"onUpdate:bodyText":l[2]||(l[2]=a=>s("update:bodyText",a)),"onUpdate:bodyType":l[3]||(l[3]=a=>s("update:bodyType",a)),"onUpdate:rawType":l[4]||(l[4]=a=>s("update:rawType",a)),"onUpdate:rawValidate":l[5]||(l[5]=a=>s("update:rawValidate",a)),"onUpdate:multipartFiles":l[6]||(l[6]=a=>s("update:multipartFiles",a)),"onUpdate:binaryFile":l[7]||(l[7]=a=>s("update:binaryFile",a)),"onUpdate:authType":l[8]||(l[8]=a=>s("update:authType",a)),"onUpdate:authToken":l[9]||(l[9]=a=>s("update:authToken",a)),"onUpdate:authUsername":l[10]||(l[10]=a=>s("update:authUsername",a)),"onUpdate:authPassword":l[11]||(l[11]=a=>s("update:authPassword",a)),"onUpdate:authKeyName":l[12]||(l[12]=a=>s("update:authKeyName",a)),"onUpdate:authKeyValue":l[13]||(l[13]=a=>s("update:authKeyValue",a)),"onUpdate:authKeyLocation":l[14]||(l[14]=a=>s("update:authKeyLocation",a)),"onUpdate:authCustomName":l[15]||(l[15]=a=>s("update:authCustomName",a)),"onUpdate:authCustomValue":l[16]||(l[16]=a=>s("update:authCustomValue",a)),"onUpdate:paramValue":l[17]||(l[17]=(a,i)=>s("update:param-value",a,i)),onRun:l[18]||(l[18]=a=>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","raw-type","raw-validate","multipart-files","binary-file","auth-type","auth-token","auth-username","auth-password","auth-key-name","auth-key-value","auth-key-location","auth-custom-name","auth-custom-value","is-sw-registering","config-status-map"]),Q(f_,{"response-raw":n.responseRaw,"response-pretty":n.responsePretty,"response-headers":n.responseHeaders,"response-content-type":n.responseContentType,"response-status":n.responseStatus,"response-time":n.responseTime},null,8,["response-raw","response-pretty","response-headers","response-content-type","response-status","response-time"])])):(L(),N("div",g_,[x("p",m_,F(C(r)("detail.selectTitle")),1),x("p",h_,F(C(r)("detail.selectHint")),1)]))]))}}),v_={class:"flex min-h-0 flex-col gap-4"},x_={class:"rounded border p-5 border-pg-border bg-pg-surface-card"},__={class:"flex flex-wrap items-center justify-between gap-3"},w_={class:"flex flex-col gap-1"},T_={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},k_={class:"flex flex-wrap items-center gap-2"},C_={class:"text-lg font-display text-pg-text-strong"},S_={class:"text-xs text-pg-text-subtle"},E_={class:"flex items-center gap-2"},R_=["aria-label","title"],P_={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},$_={class:"flex items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},M_={key:0,class:"mt-3 flex flex-col gap-2 text-sm text-pg-text-soft"},L_={class:"flex flex-wrap items-start justify-between gap-3"},I_={class:"flex flex-col gap-1"},A_={class:"flex flex-wrap items-center gap-2"},N_={class:"text-[0.85rem] font-semibold text-pg-text"},O_={key:0,class:"text-[0.75rem] text-pg-text-muted"},F_={key:1,class:"text-[0.7rem] text-pg-text-subtle"},D_=["aria-label","title","onClick"],V_={key:1,class:"mt-3 text-xs text-pg-text-muted"},U_={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},K_={class:"flex items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},j_={key:0,class:"mt-3 flex flex-col gap-2 text-xs text-pg-text-soft"},W_={class:"rounded border px-2 py-0.5 text-[0.55rem] tracking-[0.08em] border-pg-border bg-pg-surface-strong text-pg-text-soft"},B_={class:"text-[0.7rem] text-pg-text-subtle"},H_={key:1,class:"mt-3 text-xs text-pg-text-muted"},G_={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},q_={class:"flex items-center gap-2 text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},z_={key:0,class:"mt-3 flex flex-col gap-3 text-sm text-pg-text-soft"},J_={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},Y_={class:"mt-1 text-[0.75rem] text-pg-text-soft"},X_={class:"whitespace-pre-wrap"},Q_={key:1,class:"mt-3 text-xs text-pg-text-muted"},Z_={class:"rounded border p-4 border-pg-border bg-pg-surface-soft"},ew={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},tw={class:"mt-3 grid gap-2 text-sm text-pg-text-soft"},nw={key:0,class:"flex items-center gap-2"},sw={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},rw={key:1,class:"flex items-center gap-2"},ow={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},lw={class:"flex items-center gap-2"},aw={class:"text-[0.6rem] tracking-[0.08em] text-pg-text-muted"},iw={class:"text-pg-text-subtle"},Ii=je({__name:"RouteDetailInactive",props:{mode:{},selected:{},workspaceRoot:{},configStatusMap:{}},setup(e){const t=e,{t:n}=tt(),s=j(()=>t.mode==="ignored"?n("inactive.titleIgnored"):n("inactive.titleDisabled")),r=j(()=>t.mode==="ignored"?n(`ignored.reason.${t.selected.reason}`):n(`disabled.reason.${t.selected.reason}`)),o=j(()=>t.selected.file),l=j(()=>t.mode==="disabled"?t.selected.method:void 0),a=j(()=>t.mode==="disabled"?t.selected.url:void 0),i=j(()=>a.value??o.value);function c(w){return w?`method-${w.toLowerCase()}`:""}const u=j(()=>t.selected.decisionChain??[]),d=j(()=>t.selected.configChain??[]),g=j(()=>d.value.map((w,h)=>({file:w,order:h+1,disabled:t.configStatusMap.get(w)==="disabled"})));function f(w){return Array.isArray(w)?w.join(", "):w&&typeof w=="object"?JSON.stringify(w,null,2):String(w)}const m=j(()=>t.selected.effectiveConfig??{}),y=j(()=>{const w=[],h=m.value;return typeof h.enabled=="boolean"&&w.push({key:"enabled",label:n("inactive.config.enabled"),value:String(h.enabled)}),typeof h.status=="number"&&w.push({key:"status",label:n("inactive.config.status"),value:String(h.status)}),typeof h.delay=="number"&&w.push({key:"delay",label:n("inactive.config.delay"),value:`${h.delay}ms`}),typeof h.ignorePrefix<"u"&&w.push({key:"ignorePrefix",label:n("inactive.config.ignorePrefix"),value:f(h.ignorePrefix)}),typeof h.include<"u"&&w.push({key:"include",label:n("inactive.config.include"),value:f(h.include)}),typeof h.exclude<"u"&&w.push({key:"exclude",label:n("inactive.config.exclude"),value:f(h.exclude)}),h.headers&&Object.keys(h.headers).length>0&&w.push({key:"headers",label:n("inactive.config.headers"),value:f(h.headers)}),w});function A(w){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")}[w.step]??w.step}function b(w){return Un(w,t.workspaceRoot)}function E(w){Zs(w,t.workspaceRoot)}return(w,h)=>(L(),N("section",v_,[x("div",x_,[x("div",__,[x("div",w_,[x("span",T_,F(s.value),1),x("div",k_,[l.value?(L(),N("span",{key:0,class:ie(["rounded border px-3 py-1 text-[0.6rem] tracking-[0.08em]",c(l.value)])},F(l.value),3)):de("",!0),x("span",C_,F(i.value),1)]),x("span",S_,F(o.value),1)]),x("div",E_,[Q(Ke,{tone:"chip",size:"sm",caps:!1},{default:ue(()=>[Ee(F(r.value),1)]),_:1}),b(o.value)?(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 ${o.value} in VS Code`,title:C(n)("detail.openInVscode"),onClick:h[0]||(h[0]=P=>E(o.value))},[...h[1]||(h[1]=[x("span",{class:"i-[carbon--launch] h-4 w-4","aria-hidden":"true"},null,-1)])],8,R_)):de("",!0)])])]),x("div",P_,[x("div",$_,[x("span",null,F(C(n)("inactive.decisionChain")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(u.value.length),1)]),_:1})]),u.value.length>0?(L(),N("div",M_,[(L(!0),N(me,null,Fe(u.value,(P,S)=>(L(),N("div",{key:`decision-${S}-${P.step}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",L_,[x("div",I_,[x("div",A_,[x("span",{class:ie(["rounded border px-2 py-0.5 text-[0.55rem] tracking-[0.08em]",P.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"])},F(P.result==="pass"?C(n)("inactive.pass"):C(n)("inactive.fail")),3),x("span",N_,F(A(P)),1)]),P.detail?(L(),N("span",O_,F(P.detail),1)):de("",!0),P.source?(L(),N("span",F_,F(P.source),1)):de("",!0)]),P.source&&b(P.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 ${P.source} in VS Code`,title:C(n)("detail.openInVscode"),onClick:I=>E(P.source)},[...h[2]||(h[2]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,D_)):de("",!0)])]))),128))])):(L(),N("div",V_,F(C(n)("inactive.decisionChainEmpty")),1))]),x("div",U_,[x("div",K_,[x("span",null,F(C(n)("detail.configChain")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(g.value.length),1)]),_:1})]),g.value.length>0?(L(),N("div",j_,[(L(!0),N(me,null,Fe(g.value,P=>(L(),N("div",{key:`config-${P.order}-${P.file}`,class:"flex flex-wrap items-center gap-2"},[x("span",W_,F(P.order),1),x("span",B_,F(P.file),1),P.disabled?(L(),ut(Ke,{key:0,tone:"strong",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(C(n)("configPanel.statusDisabled")),1)]),_:1})):de("",!0)]))),128))])):(L(),N("div",H_,F(C(n)("detail.configChainEmpty")),1))]),x("div",G_,[x("div",q_,[x("span",null,F(C(n)("inactive.effectiveConfig")),1),Q(Ke,{tone:"chip",size:"xxs",caps:!1},{default:ue(()=>[Ee(F(y.value.length),1)]),_:1})]),y.value.length>0?(L(),N("div",z_,[(L(!0),N(me,null,Fe(y.value,P=>(L(),N("div",{key:`config-entry-${P.key}`,class:"rounded border px-3 py-2 border-pg-border bg-pg-surface-card"},[x("div",J_,F(P.label),1),x("div",Y_,[x("code",X_,F(P.value),1)])]))),128))])):(L(),N("div",Q_,F(C(n)("inactive.effectiveConfigEmpty")),1))]),x("div",Z_,[x("div",ew,F(C(n)("inactive.routeSummary")),1),x("div",tw,[l.value?(L(),N("div",nw,[x("span",sw,F(C(n)("inactive.summaryMethod")),1),x("span",null,F(l.value),1)])):de("",!0),a.value?(L(),N("div",rw,[x("span",ow,F(C(n)("inactive.summaryPath")),1),x("span",null,F(a.value),1)])):de("",!0),x("div",lw,[x("span",aw,F(C(n)("inactive.summaryFile")),1),x("span",iw,F(o.value),1)])])])]))}}),cw={key:4,class:"flex h-full flex-col items-center justify-center gap-3 rounded border p-6 text-center border-pg-border bg-pg-surface-card text-pg-text-muted"},uw={class:"text-xl font-display text-pg-text-strong"},dw={class:"text-sm"},fw=je({__name:"PlaygroundContent",props:{selected:{},selectedDisabled:{},selectedIgnored:{},selectedConfig:{},requestUrl:{},workspaceRoot:{},routeParams:{},paramValues:{},missingParams:{},missingPulse:{},queryText:{},headersText:{},bodyText:{},bodyType:{},rawType:{},rawValidate:{type:Boolean},multipartFiles:{},binaryFile:{},authType:{},authToken:{},authUsername:{},authPassword:{},authKeyName:{},authKeyValue:{},authKeyLocation:{},authCustomName:{},authCustomValue:{},responseRaw:{},responsePretty:{},responseHeaders:{},responseContentType:{},responseStatus:{},responseTime:{},isSwRegistering:{type:Boolean},routeMode:{},enabledMode:{},disabledMode:{},configImpactRoutes:{},configStatusMap:{}},emits:["update:queryText","update:headersText","update:bodyText","update:bodyType","update:rawType","update:rawValidate","update:multipartFiles","update:binaryFile","update:authType","update:authToken","update:authUsername","update:authPassword","update:authKeyName","update:authKeyValue","update:authKeyLocation","update:authCustomName","update:authCustomValue","update:param-value","run"],setup(e,{emit:t}){const n=e,s=t,{t:r}=tt(),o=j(()=>n.routeMode==="active"&&n.enabledMode==="api"),l=j(()=>n.routeMode==="disabled"&&n.disabledMode==="api"),a=j(()=>n.routeMode==="ignored"),i=j(()=>n.selectedConfig?n.configStatusMap.get(n.selectedConfig.file)??"enabled":"enabled"),c=j(()=>n.routeMode==="disabled"?r("states.disabledTitle"):n.routeMode==="ignored"?r("states.ignoredTitle"):r("states.configTitle")),u=j(()=>n.routeMode==="disabled"?r("states.disabledHint"):n.routeMode==="ignored"?r("states.ignoredHint"):r("states.configHint")),d=j({get:()=>n.queryText,set:Y=>s("update:queryText",Y)}),g=j({get:()=>n.headersText,set:Y=>s("update:headersText",Y)}),f=j({get:()=>n.bodyText,set:Y=>s("update:bodyText",Y)}),m=j({get:()=>n.bodyType,set:Y=>s("update:bodyType",Y)}),y=j({get:()=>n.rawType,set:Y=>s("update:rawType",Y)}),A=j({get:()=>n.rawValidate,set:Y=>s("update:rawValidate",Y)}),b=j({get:()=>n.multipartFiles,set:Y=>s("update:multipartFiles",Y)}),E=j({get:()=>n.binaryFile,set:Y=>s("update:binaryFile",Y)}),w=j({get:()=>n.authType,set:Y=>s("update:authType",Y)}),h=j({get:()=>n.authToken,set:Y=>s("update:authToken",Y)}),P=j({get:()=>n.authUsername,set:Y=>s("update:authUsername",Y)}),S=j({get:()=>n.authPassword,set:Y=>s("update:authPassword",Y)}),I=j({get:()=>n.authKeyName,set:Y=>s("update:authKeyName",Y)}),K=j({get:()=>n.authKeyValue,set:Y=>s("update:authKeyValue",Y)}),z=j({get:()=>n.authKeyLocation,set:Y=>s("update:authKeyLocation",Y)}),Z=j({get:()=>n.authCustomName,set:Y=>s("update:authCustomName",Y)}),se=j({get:()=>n.authCustomValue,set:Y=>s("update:authCustomValue",Y)}),J=j(()=>n.workspaceRoot??"");function fe(Y,B){s("update:param-value",Y,B)}function ne(){s("run")}return(Y,B)=>o.value?(L(),ut(y_,{key:0,queryText:d.value,"onUpdate:queryText":B[0]||(B[0]=W=>d.value=W),headersText:g.value,"onUpdate:headersText":B[1]||(B[1]=W=>g.value=W),bodyText:f.value,"onUpdate:bodyText":B[2]||(B[2]=W=>f.value=W),bodyType:m.value,"onUpdate:bodyType":B[3]||(B[3]=W=>m.value=W),rawType:y.value,"onUpdate:rawType":B[4]||(B[4]=W=>y.value=W),rawValidate:A.value,"onUpdate:rawValidate":B[5]||(B[5]=W=>A.value=W),multipartFiles:b.value,"onUpdate:multipartFiles":B[6]||(B[6]=W=>b.value=W),binaryFile:E.value,"onUpdate:binaryFile":B[7]||(B[7]=W=>E.value=W),authType:w.value,"onUpdate:authType":B[8]||(B[8]=W=>w.value=W),authToken:h.value,"onUpdate:authToken":B[9]||(B[9]=W=>h.value=W),authUsername:P.value,"onUpdate:authUsername":B[10]||(B[10]=W=>P.value=W),authPassword:S.value,"onUpdate:authPassword":B[11]||(B[11]=W=>S.value=W),authKeyName:I.value,"onUpdate:authKeyName":B[12]||(B[12]=W=>I.value=W),authKeyValue:K.value,"onUpdate:authKeyValue":B[13]||(B[13]=W=>K.value=W),authKeyLocation:z.value,"onUpdate:authKeyLocation":B[14]||(B[14]=W=>z.value=W),authCustomName:Z.value,"onUpdate:authCustomName":B[15]||(B[15]=W=>Z.value=W),authCustomValue:se.value,"onUpdate:authCustomValue":B[16]||(B[16]=W=>se.value=W),selected:n.selected,"request-url":n.requestUrl,"workspace-root":J.value,"response-raw":n.responseRaw,"response-pretty":n.responsePretty,"response-headers":n.responseHeaders,"response-content-type":n.responseContentType,"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":fe,onRun:ne},null,8,["queryText","headersText","bodyText","bodyType","rawType","rawValidate","multipartFiles","binaryFile","authType","authToken","authUsername","authPassword","authKeyName","authKeyValue","authKeyLocation","authCustomName","authCustomValue","selected","request-url","workspace-root","response-raw","response-pretty","response-headers","response-content-type","response-status","response-time","is-sw-registering","route-params","param-values","missing-params","missing-pulse","config-status-map"])):l.value&&n.selectedDisabled?(L(),ut(Ii,{key:1,mode:"disabled",selected:n.selectedDisabled,"workspace-root":J.value,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):a.value&&n.selectedIgnored?(L(),ut(Ii,{key:2,mode:"ignored",selected:n.selectedIgnored,"workspace-root":J.value,"config-status-map":n.configStatusMap},null,8,["selected","workspace-root","config-status-map"])):n.selectedConfig?(L(),ut(dy,{key:3,selected:n.selectedConfig,impacted:n.configImpactRoutes,"is-disabled":i.value==="disabled","workspace-root":J.value},null,8,["selected","impacted","is-disabled","workspace-root"])):(L(),N("div",cw,[x("p",uw,F(c.value),1),x("p",dw,F(u.value),1)]))}}),id="mokup.playground.theme";function cd(){try{const e=localStorage.getItem(id);if(e==="system"||e==="light"||e==="dark")return e}catch{}return null}function pw(e){try{localStorage.setItem(id,e)}catch{}}function gw(e){return e==="system"?"light":e==="light"?"dark":"system"}function ud(e,t){return e==="dark"?"dark":e==="light"?"light":t?"dark":"light"}function Cr(e,t){const n=ud(e,t);return document.documentElement.dataset.theme=n,document.documentElement.style.colorScheme=n,n}function mw(){const e=cd()??"system",t=window.matchMedia("(prefers-color-scheme: dark)").matches;return Cr(e,t),e}function hw(){const e=ee("system"),t=ee(!1);let n=null;const s=j(()=>ud(e.value,t.value)),r=()=>{n&&(t.value=n.matches,e.value==="system"&&Cr(e.value,t.value))};function o(a){e.value=a,pw(a),Cr(a,t.value)}function l(){o(gw(e.value))}return rs(()=>{n=window.matchMedia("(prefers-color-scheme: dark)"),t.value=n.matches,e.value=cd()??"system",Cr(e.value,t.value),n.addEventListener("change",r)}),Vn(()=>{n?.removeEventListener("change",r),n=null}),{themeMode:e,effectiveTheme:s,setThemeMode:o,cycleThemeMode:l}}const bw={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",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar"},theme:{system:"System",light:"Light",dark:"Dark"},filters:{search:"Search",base:"Base",searchPlaceholder:"Search method:post path:/users file:auth"},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:"Send",copyMenu:"Copy",copyMenuDone:"Copied",copyUrl:"Copy URL",copyCurl:"Copy cURL",copyFetch:"Copy fetch",info:"Info",infoTitle:"Route info",infoMethod:"Method",infoPath:"Path",infoFile:"File",infoType:"Type",infoStatus:"Status",infoDelay:"Delay",params:"Params",auth:"Auth",bodyTypeNone:"none",bodyTypeFormData:"form-data",bodyTypeFormUrlencoded:"x-www-form-urlencoded",bodyTypeRaw:"raw",bodyTypeBinary:"binary",bodyTypeGraphql:"GraphQL",rawType:"raw type",rawTypeText:"text",rawTypeJavascript:"javascript",rawTypeJson:"json",rawTypeHtml:"html",rawTypeXml:"xml",rawTypeWxml:"wxml",rawValidate:"Validate JSON",formatJson:"Format JSON",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}",bodyPlaceholderRawText:"{sample}",bodyPlaceholderRawJavascript:"{sample}",bodyPlaceholderRawJson:"{json}",bodyPlaceholderRawHtml:"{sample}",bodyPlaceholderRawXml:"{sample}",bodyPlaceholderRawWxml:"{sample}",bodyPlaceholderFormData:"{sample}",bodyPlaceholderFormUrlencoded:"{sample}",bodyMultipartFiles:"Files",bodyMultipartField:"Field name",bodyMultipartChoose:"Choose files",bodyMultipartAdd:"Add file field",bodyMultipartRemove:"Remove",bodyMultipartCount:"{count} files",paramPlaceholder:"value",paramPlaceholderCatchall:"path/segments",authPlaceholder:"Auth configuration is not available yet.",authType:"Auth type",authTypeNone:"No Auth",authTypeBearer:"Bearer Token",authTypeBearerToken:"Token",authTypeBasic:"Basic Auth",authTypeBasicUsername:"Username",authTypeBasicPassword:"Password",authTypeApiKey:"API Key",authTypeApiKeyName:"Key name",authTypeApiKeyValue:"Key value",authTypeApiKeyLocation:"Add to",authTypeApiKeyLocationHeader:"Header",authTypeApiKeyLocationQuery:"Query Params",authTypeCustom:"Custom Header",authTypeCustomName:"Header name",authTypeCustomValue:"Header value",bodyNoneHint:"This request has no body.",bodyBinaryFile:"Binary file",bodyBinaryChoose:"Choose file",bodyBinarySelected:"{name} ({size})",bodyBinaryRemove:"Remove file"},response:{idle:"Idle",empty:"No response yet.",waiting:"Waiting for response...",loading:"Loading...",error:"Error",emptyPayload:"[empty response]",bodyTab:"Body",headersTab:"Headers",cookiesTab:"Cookies",prettyTab:"Pretty",rawTab:"Raw",previewTab:"Preview",previewEmpty:"Preview not available.",headersEmpty:"No response headers.",cookiesEmpty:"No cookies.",size:"Size: {size}"},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"}}},yw={header:{title:"接口调试台",subtitle:"查看 Mock 接口、构造请求并验证响应,无需离开开发服务器。",refresh:"刷新",routes:"{count} 条接口",calls:"已调用 {count} 次",mode:"模式:{mode}",modeSw:"SW",modeSwRegistering:"SW 注册中",modeServer:"服务端",languageToggle:"语言",themeToggle:"主题"},controls:{more:"更多",collapseSidebar:"收起侧边栏",expandSidebar:"展开侧边栏"},theme:{system:"跟随系统",light:"亮色",dark:"暗色"},filters:{search:"搜索",base:"基路径",searchPlaceholder:"例如 method:post path:/users file:auth"},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:"发送",copyMenu:"复制",copyMenuDone:"已复制",copyUrl:"复制 URL",copyCurl:"复制 cURL",copyFetch:"复制 fetch",info:"信息",infoTitle:"路由信息",infoMethod:"方法",infoPath:"路径",infoFile:"文件",infoType:"类型",infoStatus:"状态码",infoDelay:"延迟",params:"路径参数",auth:"鉴权",bodyTypeNone:"none",bodyTypeFormData:"form-data",bodyTypeFormUrlencoded:"x-www-form-urlencoded",bodyTypeRaw:"raw",bodyTypeBinary:"binary",bodyTypeGraphql:"GraphQL",rawType:"raw 类型",rawTypeText:"text",rawTypeJavascript:"javascript",rawTypeJson:"json",rawTypeHtml:"html",rawTypeXml:"xml",rawTypeWxml:"wxml",rawValidate:"校验 JSON",formatJson:"格式化 JSON",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}",bodyPlaceholderRawText:"{sample}",bodyPlaceholderRawJavascript:"{sample}",bodyPlaceholderRawJson:"{json}",bodyPlaceholderRawHtml:"{sample}",bodyPlaceholderRawXml:"{sample}",bodyPlaceholderRawWxml:"{sample}",bodyPlaceholderFormData:"{sample}",bodyPlaceholderFormUrlencoded:"{sample}",bodyMultipartFiles:"文件",bodyMultipartField:"字段名",bodyMultipartChoose:"选择文件",bodyMultipartAdd:"新增文件字段",bodyMultipartRemove:"移除",bodyMultipartCount:"{count} 个文件",paramPlaceholder:"填写值",paramPlaceholderCatchall:"路径片段",authPlaceholder:"暂无鉴权配置。",authType:"鉴权类型",authTypeNone:"无鉴权",authTypeBearer:"Bearer Token",authTypeBearerToken:"Token",authTypeBasic:"Basic 认证",authTypeBasicUsername:"用户名",authTypeBasicPassword:"密码",authTypeApiKey:"API Key",authTypeApiKeyName:"Key 名称",authTypeApiKeyValue:"Key 值",authTypeApiKeyLocation:"添加到",authTypeApiKeyLocationHeader:"请求头",authTypeApiKeyLocationQuery:"查询参数",authTypeCustom:"自定义请求头",authTypeCustomName:"请求头名称",authTypeCustomValue:"请求头值",bodyNoneHint:"该请求不包含请求体。",bodyBinaryFile:"二进制文件",bodyBinaryChoose:"选择文件",bodyBinarySelected:"{name}({size})",bodyBinaryRemove:"移除文件"},response:{idle:"空闲",empty:"暂无响应。",waiting:"等待响应...",loading:"请求中...",error:"错误",emptyPayload:"[空响应]",bodyTab:"响应体",headersTab:"响应头",cookiesTab:"Cookies",prettyTab:"Pretty",rawTab:"Raw",previewTab:"Preview",previewEmpty:"暂无可预览内容。",headersEmpty:"暂无响应头。",cookiesEmpty:"暂无 Cookies。",size:"大小:{size}"},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:"响应头"}}},dd="mokup.playground.locale",vw={"en-US":bw,"zh-CN":yw};function xw(){try{const e=localStorage.getItem(dd);if(e==="en-US"||e==="zh-CN")return e}catch{}return null}function _w(e){try{localStorage.setItem(dd,e)}catch{}}const ww=bh({legacy:!1,locale:xw()??"en-US",fallbackLocale:"en-US",messages:vw}),Tw=["type"],gn=je({__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=Ws({base:"inline-flex items-center gap-1.5 rounded border text-[0.75rem] transition",variants:{size:{xs:"px-2 py-0.5",sm:"px-2 py-1",md:"px-2.5 py-1",lg:"px-3 py-1.5"},tone:{strong:"border-pg-border bg-pg-surface-strong text-pg-text-soft hover:bg-pg-hover-strong",card:"border-pg-border bg-pg-surface-card text-pg-text-soft hover:bg-pg-hover-strong"},active:{true:"border-pg-accent bg-pg-accent text-pg-on-accent hover:border-pg-accent hover:bg-pg-accent hover:text-pg-on-accent"}},defaultVariants:{size:"md",tone:"strong"}}),r=Yr(),o=j(()=>no(s({size:n.size,tone:n.tone,active:n.active}),r.class)),l=j(()=>{const{class:c,style:u,...d}=r;return d}),a=j(()=>r.style),i=ee(null);return t({el:i}),(c,u)=>(L(),N("button",on({ref_key:"buttonRef",ref:i},l.value,{type:n.type,class:o.value,style:a.value}),[Zn(c.$slots,"default")],16,Tw))}}),kw={class:"flex flex-none flex-wrap items-center justify-between gap-2 rounded-t border px-3 py-1.5 text-xs border-pg-border bg-pg-surface-card text-pg-text-soft"},Cw={class:"flex flex-wrap items-center gap-2"},Sw={class:"flex flex-wrap items-center gap-2"},Ew=je({__name:"PlaygroundHeader",props:{visibleCount:{},totalCount:{},requestMode:{}},emits:["refresh"],setup(e,{emit:t}){const n=e,s=t,{locale:r,t:o}=tt(),{themeMode:l,effectiveTheme:a,cycleThemeMode:i}=hw(),c=j(()=>a.value==="dark"?"i-[carbon--moon]":"i-[carbon--sun]"),u=j(()=>o(`theme.${l.value}`)),d=j(()=>r.value==="zh-CN"?"中文":"EN"),g=j(()=>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")})),f=j(()=>n.requestMode==="sw-registering"?"i-[carbon--time]":n.requestMode==="sw"?"i-[carbon--network-3]":"i-[carbon--bare-metal-server]");function m(){const A=r.value==="en-US"?"zh-CN":"en-US";r.value=A,_w(A)}function y(){s("refresh")}return(A,b)=>(L(),N("div",kw,[x("div",Cw,[Q(Ke,{tone:"strong",size:"xs"},{default:ue(()=>[b[0]||(b[0]=x("span",{class:"i-[carbon--map] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,F(C(o)("header.routes",{count:e.visibleCount})),1)]),_:1}),Q(Ke,{tone:"strong",size:"xs"},{default:ue(()=>[b[1]||(b[1]=x("span",{class:"i-[carbon--activity] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,F(C(o)("header.calls",{count:e.totalCount})),1)]),_:1}),Q(Ke,{tone:"strong",size:"xs"},{default:ue(()=>[x("span",{class:ie([f.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),x("span",null,F(g.value),1)]),_:1})]),x("div",Sw,[Q(gn,{size:"xs",title:C(o)("header.languageToggle"),onClick:m},{default:ue(()=>[b[2]||(b[2]=x("span",{class:"i-[carbon--language] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,F(d.value),1)]),_:1},8,["title"]),Q(gn,{size:"xs",title:C(o)("header.themeToggle"),onClick:C(i)},{default:ue(()=>[x("span",{class:ie([c.value,"h-3.5 w-3.5"]),"aria-hidden":"true"},null,2),x("span",null,F(u.value),1)]),_:1},8,["title","onClick"]),Q(gn,{size:"xs",onClick:y},{default:ue(()=>[b[3]||(b[3]=x("span",{class:"i-[carbon--rotate] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,F(C(o)("header.refresh")),1)]),_:1})])]))}});function Rw(e){switch(e.toLowerCase()){case"method":case"m":return"method";case"path":case"url":case"route":return"path";case"file":case"f":return"file";case"group":case"g":return"group";case"reason":case"r":return"reason";default:return null}}function fd(e){const t=e.trim();if(!t)return[];const n=[];for(const s of t.split(/\s+/)){if(!s)continue;const r=s.match(/^([a-z]+)(:|=)(.+)$/i);if(!r){n.push({field:"text",value:s.toLowerCase()});continue}const o=r[1],l=r[3];if(!o||!l){n.push({field:"text",value:s.toLowerCase()});continue}const a=l.trim();if(!a){n.push({field:"text",value:s.toLowerCase()});continue}const i=Rw(o);if(!i){n.push({field:"text",value:s.toLowerCase()});continue}n.push({field:i,value:a.toLowerCase()})}return n}function Pw(e){const t=fd(e).map(n=>n.value).filter(Boolean);return[...new Set(t)]}function pd(e,t){if(!e)return[{text:"",highlight:!1}];if(!t.length)return[{text:e,highlight:!1}];const n=e.toLowerCase(),s=[];for(const a of t){if(!a)continue;let i=0;for(;i<n.length;){const c=n.indexOf(a,i);if(c===-1)break;s.push([c,c+a.length]),i=c+a.length}}if(!s.length)return[{text:e,highlight:!1}];s.sort((a,i)=>a[0]-i[0]||a[1]-i[1]);const r=[];for(const[a,i]of s){const c=r[r.length-1];!c||a>c[1]?r.push([a,i]):c[1]=Math.max(c[1],i)}const o=[];let l=0;for(const[a,i]of r)l<a&&o.push({text:e.slice(l,a),highlight:!1}),o.push({text:e.slice(a,i),highlight:!0}),l=i;return l<e.length&&o.push({text:e.slice(l),highlight:!1}),o}const $w={class:"flex flex-col gap-0","data-testid":"playground-tree",role:"tree"},Mw=["aria-expanded","aria-selected"],Lw=["title","onClick"],Iw={class:"flex min-w-0 flex-1 flex-col gap-1"},Aw=["aria-label","onClick"],Nw=je({__name:"RouteTree",props:{rows:{},workspaceRoot:{},getRouteCount:{type:Function},highlightTokens:{}},emits:["toggle","select"],setup(e,{emit:t}){const n=e,s=t;function r(d,g){const f=`method-${d.toLowerCase()}`;return g?`${f} ${f}-strong`:f}function o(d){return d?Un(d.file,n.workspaceRoot):null}function l(d){d&&Zs(d.file,n.workspaceRoot)}function a(d){if(d.kind==="folder"){s("toggle",d.id);return}s("select",d)}function i(d){return d&&n.getRouteCount?n.getRouteCount(d):0}function c(d){return`${d*12}px`}function u(d){return pd(d,n.highlightTokens??[])}return(d,g)=>(L(),N("div",$w,[(L(!0),N(me,null,Fe(e.rows,f=>(L(),N("div",{key:f.id,role:"treeitem","aria-expanded":f.kind==="folder"?f.expanded:void 0,"aria-selected":f.selected,class:ie(["group flex min-h-[28px] items-center gap-2 rounded border border-transparent px-2 py-0.5 text-left transition text-pg-text-soft hover:bg-pg-hover-strong",f.selected?"bg-pg-accent/16 text-pg-text-strong border-pg-accent/50 font-semibold shadow-[inset_3px_0_0_0_var(--color-pg-accent)]":""]),"data-testid":"playground-tree-row"},[x("button",{class:"flex min-w-0 flex-1 items-start gap-2 text-left",type:"button",title:f.title,onClick:m=>a(f)},[x("div",Iw,[x("div",{class:"flex items-center gap-2",style:Dn({paddingLeft:c(f.depth)})},[x("span",{class:ie(["flex h-3.5 w-3.5 items-center justify-center",f.selected?"text-pg-accent":"text-pg-text-subtle"])},[f.kind==="folder"?(L(),N("span",{key:0,class:ie([f.expanded?"i-[carbon--chevron-down]":"i-[carbon--chevron-right]","h-3.5 w-3.5"]),"aria-hidden":"true"},null,2)):de("",!0)],2),f.kind==="route"&&f.route?(L(),N("span",{key:0,class:ie(["rounded border px-1.5 py-0.5 text-[0.5rem] tracking-[0.08em] leading-none transition group-hover:brightness-105",r(f.route.method,f.selected)])},F(f.route.method),3)):de("",!0),x("span",{class:ie(["text-[0.8rem] text-pg-text-strong",f.kind==="folder"?"font-semibold":"font-medium"])},[(L(!0),N(me,null,Fe(u(f.label),(m,y)=>(L(),N("span",{key:`${f.id}-label-${y}`,class:ie(m.highlight?"pg-highlight":"")},F(m.text),3))),128))],2)],4)]),f.kind==="route"&&f.route&&i(f.route)>0?(L(),ut(Ke,{key:0,tone:"chip",size:"xxs",caps:!1,class:"ml-auto"},{default:ue(()=>[Ee(F(i(f.route)),1)]),_:2},1024)):de("",!0)],8,Lw),f.kind==="route"&&f.route&&o(f.route)?(L(),N("button",{key:0,class:ie(["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",f.selected?"text-pg-on-accent-soft":""]),type:"button","aria-label":`Open ${f.route.file} in VS Code`,onClick:m=>l(f.route)},[...g[0]||(g[0]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],10,Aw)):de("",!0)],10,Mw))),128))]))}}),Ow={class:"flex-1 min-h-0 overflow-auto"},Fw={key:0,class:"rounded border px-4 py-3 text-sm border-pg-danger-border bg-pg-danger-bg text-pg-danger-text"},Dw={key:1,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Vw={key:0,class:"mb-2 inline-flex items-center gap-2 rounded border px-2.5 py-1 text-xs border-pg-border bg-pg-surface-soft text-pg-text-muted"},Uw={key:1,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Kw={key:2,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},jw={key:3,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Ww={key:4,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},Bw={key:5,class:"flex flex-col gap-0.5"},Hw=["onClick"],Gw={class:"flex flex-wrap items-center justify-between gap-2"},qw={class:"flex flex-col gap-1"},zw={class:"text-[0.78rem] font-medium text-pg-text-strong"},Jw={key:0,class:"text-[0.7rem] text-pg-text-muted"},Yw={class:"flex items-center gap-2"},Xw={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},Qw=["aria-label","title","onClick"],Zw={key:6,class:"rounded border px-4 py-6 text-sm border-pg-border bg-pg-surface-soft text-pg-text-muted"},eT={key:7,class:"flex flex-col gap-0.5"},tT=["onClick"],nT={class:"flex flex-wrap items-center justify-between gap-2"},sT={class:"flex flex-col gap-1"},rT={class:"text-[0.75rem] font-medium text-pg-text-strong"},oT={class:"flex items-center gap-2"},lT={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},aT=["aria-label","title","onClick"],iT={key:8,class:"flex flex-col gap-0.5"},cT=["onClick"],uT={class:"flex flex-wrap items-center justify-between gap-2"},dT={class:"flex flex-col gap-1"},fT={class:"text-[0.75rem] font-medium text-pg-text-strong"},pT={class:"flex items-center gap-2"},gT={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},mT=["aria-label","title","onClick"],hT={key:9,class:"flex flex-col gap-0.5"},bT=["onClick"],yT={class:"flex flex-wrap items-center justify-between gap-2"},vT={class:"flex flex-col gap-1"},xT={class:"text-[0.75rem] font-medium text-pg-text-strong"},_T={class:"flex items-center gap-2"},wT={key:0,class:"flex h-6 w-6 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent","aria-hidden":"true"},TT=["aria-label","title","onClick"],xr="relative bg-pg-accent/12 text-pg-text-strong font-semibold shadow-[inset_4px_0_0_0_var(--color-pg-accent)]",kT=je({__name:"PlaygroundSidebarBody",props:{search:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},error:{},loading:{type:Boolean},hasCachedData:{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}=tt(),o=j(()=>Pw(n.search)),l=j(()=>{const h={rows:n.treeRows};return n.workspaceRoot&&n.workspaceRoot.trim()&&(h.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(h.getRouteCount=n.getRouteCount),h});function a(h){return r(`disabled.reason.${h??"unknown"}`)}function i(h){return r(`ignored.reason.${h??"unknown"}`)}function c(h){return h?h.toLowerCase():""}function u(h){return h.toLowerCase()}function d(h){return pd(h,o.value)}function g(h){return h.method&&h.url?`${h.method} ${c(h.url)}`:c(h.url)||h.file}function f(h){return Un(h,n.workspaceRoot)}function m(h){Zs(h,n.workspaceRoot)}function y(h){h.route&&s("select-route",h.route)}function A(h){return n.selectedConfig?.file===h.file}function b(h){if(!h)return"";const P=(h.method??"").toUpperCase(),S=h.url??"";return`${h.file}|${h.reason}|${P}|${S}`}function E(h){const P=b(n.selectedDisabled);return P?b(h)===P:!1}function w(h){return n.selectedIgnored?.file===h.file&&n.selectedIgnored?.reason===h.reason}return(h,P)=>(L(),N("div",Ow,[n.error?(L(),N("div",Fw,F(n.error),1)):n.loading&&!n.hasCachedData?(L(),N("div",Dw,F(C(r)("states.loadingRoutes")),1)):(L(),N(me,{key:2},[n.loading&&n.hasCachedData?(L(),N("div",Vw,[P[1]||(P[1]=x("span",{class:"i-[carbon--renew] h-3 w-3 animate-spin","aria-hidden":"true"},null,-1)),x("span",null,F(C(r)("states.loadingRoutes")),1)])):de("",!0),n.routeMode==="disabled"&&n.disabledMode==="api"&&!n.disabledFiltered.length?(L(),N("div",Uw,F(C(r)("states.emptyDisabledRoutes")),1)):n.routeMode==="ignored"&&!n.ignoredFiltered.length?(L(),N("div",Kw,F(C(r)("states.emptyIgnoredRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="api"&&!n.filtered.length?(L(),N("div",jw,F(C(r)("states.emptyRoutes")),1)):n.routeMode==="active"&&n.enabledMode==="config"&&!n.configFiltered.length?(L(),N("div",Ww,F(C(r)("states.emptyConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="api"?(L(),N("div",Bw,[(L(!0),N(me,null,Fe(n.disabledFiltered,S=>(L(),N("button",{key:`${S.file}-${S.reason}-${S.method??""}-${S.url??""}`,class:ie(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",E(S)?xr:""]),type:"button",onClick:I=>s("select-disabled-route",S)},[x("div",Gw,[x("div",qw,[x("span",zw,[(L(!0),N(me,null,Fe(d(g(S)),(I,K)=>(L(),N("span",{key:`${S.file}-label-${K}`,class:ie(I.highlight?"pg-highlight":"")},F(I.text),3))),128))]),S.method&&S.url?(L(),N("span",Jw,[(L(!0),N(me,null,Fe(d(S.file),(I,K)=>(L(),N("span",{key:`${S.file}-file-${K}`,class:ie(I.highlight?"pg-highlight":"")},F(I.text),3))),128))])):de("",!0)]),x("div",Yw,[E(S)?(L(),N("span",Xw,[...P[2]||(P[2]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):de("",!0),Q(Ke,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:ue(()=>[Ee(F(a(S.reason)),1)]),_:2},1024),f(S.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 ${S.file} in VS Code`,title:C(r)("detail.openInVscode"),onClick:ys(I=>m(S.file),["stop"])},[...P[3]||(P[3]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,Qw)):de("",!0)])])],10,Hw))),128))])):n.routeMode==="disabled"&&n.disabledMode==="config"&&!n.disabledConfigFiltered.length?(L(),N("div",Zw,F(C(r)("states.emptyDisabledConfigFiles")),1)):n.routeMode==="disabled"&&n.disabledMode==="config"?(L(),N("div",eT,[(L(!0),N(me,null,Fe(n.disabledConfigFiltered,S=>(L(),N("button",{key:S.file,class:ie(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",A(S)?xr:""]),type:"button",onClick:I=>s("select-config",S)},[x("div",nT,[x("div",sT,[x("span",rT,[(L(!0),N(me,null,Fe(d(u(S.file)),(I,K)=>(L(),N("span",{key:`${S.file}-disabled-${K}`,class:ie(I.highlight?"pg-highlight":"")},F(I.text),3))),128))])]),x("div",oT,[A(S)?(L(),N("span",lT,[...P[4]||(P[4]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):de("",!0),Q(Ke,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:ue(()=>[Ee(F(C(r)("enabled.configLabel")),1)]),_:1}),f(S.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 ${S.file} in VS Code`,title:C(r)("detail.openInVscode"),onClick:ys(I=>m(S.file),["stop"])},[...P[5]||(P[5]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,aT)):de("",!0)])])],10,tT))),128))])):n.routeMode==="ignored"?(L(),N("div",iT,[(L(!0),N(me,null,Fe(n.ignoredFiltered,S=>(L(),N("button",{key:`${S.file}-${S.reason}`,class:ie(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",w(S)?xr:""]),type:"button",onClick:I=>s("select-ignored-route",S)},[x("div",uT,[x("div",dT,[x("span",fT,[(L(!0),N(me,null,Fe(d(S.file),(I,K)=>(L(),N("span",{key:`${S.file}-ignored-${K}`,class:ie(I.highlight?"pg-highlight":"")},F(I.text),3))),128))])]),x("div",pT,[w(S)?(L(),N("span",gT,[...P[6]||(P[6]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):de("",!0),Q(Ke,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:ue(()=>[Ee(F(i(S.reason)),1)]),_:2},1024),f(S.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 ${S.file} in VS Code`,title:C(r)("detail.openInVscode"),onClick:ys(I=>m(S.file),["stop"])},[...P[7]||(P[7]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,mT)):de("",!0)])])],10,cT))),128))])):n.routeMode==="active"&&n.enabledMode==="config"?(L(),N("div",hT,[(L(!0),N(me,null,Fe(n.configFiltered,S=>(L(),N("button",{key:S.file,class:ie(["rounded border px-3 py-1 text-left text-xs transition border-pg-border bg-pg-surface-soft text-pg-text-soft hover:bg-pg-hover-strong hover:text-pg-text",A(S)?xr:""]),type:"button",onClick:I=>s("select-config",S)},[x("div",yT,[x("div",vT,[x("span",xT,[(L(!0),N(me,null,Fe(d(u(S.file)),(I,K)=>(L(),N("span",{key:`${S.file}-config-${K}`,class:ie(I.highlight?"pg-highlight":"")},F(I.text),3))),128))])]),x("div",_T,[A(S)?(L(),N("span",wT,[...P[8]||(P[8]=[x("span",{class:"i-[carbon--checkmark] h-3.5 w-3.5"},null,-1)])])):de("",!0),Q(Ke,{tone:"card",size:"sm",caps:!1,tracking:"none"},{default:ue(()=>[Ee(F(C(r)("enabled.configLabel")),1)]),_:1}),f(S.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 ${S.file} in VS Code`,title:C(r)("detail.openInVscode"),onClick:ys(I=>m(S.file),["stop"])},[...P[9]||(P[9]=[x("span",{class:"i-[carbon--launch] h-3.5 w-3.5","aria-hidden":"true"},null,-1)])],8,TT)):de("",!0)])])],10,bT))),128))])):(L(),ut(Nw,on({key:10},l.value,{"highlight-tokens":o.value,onToggle:P[0]||(P[0]=S=>s("toggle",S)),onSelect:y}),null,16,["highlight-tokens"]))],64))]))}}),CT=je({__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 a=l.target;s("update:search",a?.value??"")}const{t:o}=tt();return(l,a)=>(L(),N("section",{class:ie(["grid",n.compact?"gap-2":"gap-3"])},[Q(Qe,{label:C(o)("filters.search"),dense:n.compact},{default:ue(()=>[Q(vt,{value:e.search,type:"search",dense:n.compact,placeholder:C(o)("filters.searchPlaceholder"),"data-testid":"playground-search",class:ie(n.compact?"h-[34px]":""),onInput:r},null,8,["value","dense","placeholder","class"])]),_:1},8,["label","dense"]),n.showBase?(L(),ut(Qe,{key:0,label:C(o)("filters.base"),dense:n.compact},{default:ue(()=>[Q(vt,{value:e.basePath,readonly:"",dense:n.compact},null,8,["value","dense"])]),_:1},8,["label","dense"])):de("",!0)],2))}}),ST={class:"flex flex-wrap items-center gap-2"},ET=je({__name:"PlaygroundTabs",props:{groups:{},activeGroup:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:s}=tt();return(r,o)=>(L(),N("section",ST,[Q(gn,{size:"md",active:e.activeGroup==="all",onClick:o[0]||(o[0]=l=>n("select","all"))},{default:ue(()=>[Ee(F(C(s)("tabs.overview")),1)]),_:1},8,["active"]),(L(!0),N(me,null,Fe(e.groups,l=>(L(),ut(gn,{key:l.key,size:"md",active:e.activeGroup===l.key,onClick:a=>n("select",l.key)},{default:ue(()=>[Ee(F(l.label),1)]),_:2},1032,["active","onClick"]))),128))]))}}),RT={class:"flex items-center gap-2"},PT=je({__name:"TreeModeToggle",props:{treeMode:{}},emits:["update:treeMode"],setup(e,{emit:t}){const n=t;function s(o){n("update:treeMode",o)}const{t:r}=tt();return(o,l)=>(L(),N("div",RT,[Q(gn,{size:"sm",active:e.treeMode==="file",onClick:l[0]||(l[0]=a=>s("file"))},{default:ue(()=>[l[2]||(l[2]=x("span",{class:"i-[carbon--document] h-4 w-4","aria-hidden":"true"},null,-1)),x("span",null,F(C(r)("tree.file")),1)]),_:1},8,["active"]),Q(gn,{size:"sm",active:e.treeMode==="route",onClick:l[1]||(l[1]=a=>s("route"))},{default:ue(()=>[l[3]||(l[3]=x("span",{class:"i-[carbon--link] h-4 w-4","aria-hidden":"true"},null,-1)),x("span",null,F(C(r)("tree.route")),1)]),_:1},8,["active"])]))}}),$T={class:"contents"},MT=["role"],LT=je({__name:"UiFloatingMenu",props:{placement:{default:"bottom-start"},strategy:{default:"fixed"},offset:{default:6},shiftPadding:{default:8},flipPadding:{default:8},panelClass:{default:""},panelRole:{default:"menu"}},setup(e){const t=e,n=`pg-floating-menu-${Math.random().toString(36).slice(2,10)}`,s=ee(!1),r=ee(null),o=ee(null),l=ee({position:t.strategy,left:"0px",top:"0px"});let a=null;function i(b){if(!b)return null;if(b instanceof HTMLElement)return b;const E=b,w=E.el?.value;return w instanceof HTMLElement?w:E.$el instanceof HTMLElement?E.$el:null}function c(b){r.value=i(b)}function u(){a&&(a(),a=null)}async function d(){const b=r.value,E=o.value;if(!b||!E)return;const{x:w,y:h}=await sd(b,E,{placement:t.placement,strategy:t.strategy,middleware:[ed(t.offset),nd({padding:t.flipPadding}),td({padding:t.shiftPadding})]});l.value={position:t.strategy,left:`${Math.round(w)}px`,top:`${Math.round(h)}px`}}function g(){s.value=!0}function f(){s.value=!1}function m(){if(s.value){f();return}g()}function y(b){if(!s.value)return;const E=b.target;E&&(r.value?.contains(E)||o.value?.contains(E)||f())}function A(b){b.key==="Escape"&&f()}return ct(s,b=>{if(b){document.addEventListener("pointerdown",y),document.addEventListener("keydown",A),ks().then(()=>{!s.value||!r.value||!o.value||(d(),u(),a=Zu(r.value,o.value,()=>{d()}))});return}u(),document.removeEventListener("pointerdown",y),document.removeEventListener("keydown",A)}),Vn(()=>{u(),document.removeEventListener("pointerdown",y),document.removeEventListener("keydown",A)}),(b,E)=>(L(),N("div",$T,[Zn(b.$slots,"trigger",{isOpen:s.value,panelId:n,open:g,close:f,toggle:m,setReference:c}),(L(),ut(qf,{to:"body"},[s.value?(L(),N("div",{key:0,id:n,ref_key:"floatingEl",ref:o,class:ie(t.panelClass),style:Dn(l.value),role:t.panelRole},[Zn(b.$slots,"default",{close:f})],14,MT)):de("",!0)]))]))}}),IT={class:"relative"},AT={class:"flex items-end gap-2"},NT={class:"flex items-center gap-2"},OT={class:"grid gap-3"},FT={class:"mt-2 flex items-center gap-5 border-b border-pg-border text-[0.65rem] tracking-[0.1em]"},DT={key:0,class:"mt-1.5 flex items-center gap-4 text-[0.6rem] tracking-[0.08em]"},VT={key:1,class:"mt-1.5 flex items-center gap-4 text-[0.6rem] tracking-[0.08em]"},UT=je({__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}=tt(),o=j({get:()=>n.search,set:a=>s("update:search",a)}),l=j(()=>n.basePath||"/");return(a,i)=>(L(),N("div",IT,[x("div",AT,[Q(CT,{search:o.value,"onUpdate:search":i[0]||(i[0]=c=>o.value=c),"base-path":l.value,"show-base":!1,compact:!0,class:"flex-1"},null,8,["search","base-path"]),x("div",NT,[Q(LT,{placement:"bottom-start",offset:8,"panel-class":"z-30 mt-1 w-[min(420px,calc(100vw-2rem))] rounded border p-2 border-pg-border bg-pg-surface-panel shadow-md"},{trigger:ue(({isOpen:c,panelId:u,toggle:d,setReference:g})=>[Q(gn,{ref:g,size:"sm",class:"h-[34px]","aria-expanded":c,"aria-haspopup":"menu","aria-controls":u,onClick:d},{default:ue(()=>[i[10]||(i[10]=x("span",{class:"i-[carbon--settings-adjust] h-3.5 w-3.5","aria-hidden":"true"},null,-1)),x("span",null,F(C(r)("controls.more")),1)]),_:1},8,["aria-expanded","aria-controls","onClick"])]),default:ue(()=>[x("div",OT,[Q(Qe,{label:C(r)("filters.base"),dense:""},{default:ue(()=>[Q(vt,{value:l.value,readonly:"",dense:""},null,8,["value"])]),_:1},8,["label"]),Q(ET,{groups:n.groups,"active-group":n.activeGroup,onSelect:i[1]||(i[1]=c=>s("select-group",c))},null,8,["groups","active-group"]),Q(PT,{"tree-mode":n.treeMode,"onUpdate:treeMode":i[2]||(i[2]=c=>s("update:treeMode",c))},null,8,["tree-mode"])])]),_:1}),Zn(a.$slots,"actions")])]),x("div",FT,[x("button",{type:"button",class:ie(["border-b-2 pb-1.5 transition",n.routeMode==="active"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[3]||(i[3]=c=>s("set-route-mode","active"))},F(C(r)("disabled.active",{count:n.activeTotal})),3),x("button",{type:"button",class:ie(["border-b-2 pb-1.5 transition",n.routeMode==="disabled"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[4]||(i[4]=c=>s("set-route-mode","disabled"))},F(C(r)("disabled.disabled",{count:n.disabledTotal})),3),x("button",{type:"button",class:ie(["border-b-2 pb-1.5 transition",n.routeMode==="ignored"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[5]||(i[5]=c=>s("set-route-mode","ignored"))},F(C(r)("disabled.ignored",{count:n.ignoredTotal})),3)]),n.routeMode==="active"?(L(),N("div",DT,[x("button",{type:"button",class:ie(["border-b pb-1 transition",n.enabledMode==="api"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[6]||(i[6]=c=>s("set-enabled-mode","api"))},F(C(r)("enabled.api",{count:n.apiTotal})),3),x("button",{type:"button",class:ie(["border-b pb-1 transition",n.enabledMode==="config"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[7]||(i[7]=c=>s("set-enabled-mode","config"))},F(C(r)("enabled.config",{count:n.configTotal})),3)])):n.routeMode==="disabled"?(L(),N("div",VT,[x("button",{type:"button",class:ie(["border-b pb-1 transition",n.disabledMode==="api"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[8]||(i[8]=c=>s("set-disabled-mode","api"))},F(C(r)("enabled.api",{count:n.disabledApiTotal})),3),x("button",{type:"button",class:ie(["border-b pb-1 transition",n.disabledMode==="config"?"border-pg-accent text-pg-text-strong":"border-transparent text-pg-text-muted hover:text-pg-text-soft"]),onClick:i[9]||(i[9]=c=>s("set-disabled-mode","config"))},F(C(r)("enabled.config",{count:n.disabledConfigTotal})),3)])):de("",!0)]))}}),KT={key:0,class:"flex min-h-0 flex-1 flex-col gap-1"},jT=["aria-label","title"],WT={key:1,class:"flex min-h-0 flex-1 flex-col items-center gap-1 py-1"},BT=["aria-label","title"],HT={class:"flex flex-col items-center gap-1"},GT=["title"],qT=["title"],zT=["title"],JT={key:0,class:"flex flex-col items-center gap-1"},YT=["title"],XT=["title"],QT={class:"flex flex-col items-center gap-1 text-pg-text-muted"},ZT={class:"rounded border px-1.5 py-0.5 text-[0.6rem] tracking-[0.08em] border-pg-border bg-pg-surface-strong"},e1={key:0,class:"flex h-7 w-7 items-center justify-center rounded border border-pg-accent/40 bg-pg-accent/10 text-pg-accent"},t1=je({__name:"PlaygroundSidebar",props:{collapsed:{type:Boolean},search:{},basePath:{},groups:{},activeGroup:{},treeMode:{},routeMode:{},enabledMode:{},disabledMode:{},selectedConfig:{},selectedDisabled:{},selectedIgnored:{},activeTotal:{},apiTotal:{},disabledTotal:{},ignoredTotal:{},configTotal:{},disabledApiTotal:{},disabledConfigTotal:{},error:{},loading:{type:Boolean},hasCachedData:{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-collapse","toggle","select-route","select-disabled-route","select-ignored-route","select-config"],setup(e,{emit:t}){const n=e,s=t,{t:r}=tt(),o=j(()=>{const f="flex min-h-0 w-full max-w-none flex-col overflow-hidden border-b border-pg-border bg-pg-surface-soft lg:flex-none lg:border-b-0 lg:border-r";return n.collapsed?`${f} p-1 lg:w-[72px] lg:min-w-[72px] lg:max-w-[72px]`:`${f} gap-1 p-2 lg:w-[var(--left-width)] lg:min-w-[240px] lg:max-w-[560px]`}),l=j(()=>{const f=(n.activeGroup||"all").toUpperCase();return f.length>6?`${f.slice(0,6)}…`:f}),a=j(()=>n.search.trim().length>0),i=j(()=>(n.routeMode==="disabled"?n.disabledMode:n.enabledMode)==="api"),c=j(()=>(n.routeMode==="disabled"?n.disabledMode:n.enabledMode)==="config"),u=j(()=>{const f={search:n.search,groups:n.groups,activeGroup:n.activeGroup,treeMode:n.treeMode,routeMode:n.routeMode,enabledMode:n.enabledMode,disabledMode:n.disabledMode,activeTotal:n.activeTotal,apiTotal:n.apiTotal,disabledTotal:n.disabledTotal,ignoredTotal:n.ignoredTotal,configTotal:n.configTotal,disabledApiTotal:n.disabledApiTotal,disabledConfigTotal:n.disabledConfigTotal};return n.basePath!==void 0?{...f,basePath:n.basePath}:f}),d=j(()=>{const m={...{search:n.search,routeMode:n.routeMode,enabledMode:n.enabledMode,disabledMode:n.disabledMode,loading:n.loading,hasCachedData:n.hasCachedData,filtered:n.filtered,disabledFiltered:n.disabledFiltered,ignoredFiltered:n.ignoredFiltered,configFiltered:n.configFiltered,disabledConfigFiltered:n.disabledConfigFiltered,treeRows:n.treeRows}};return n.selectedConfig!==void 0&&(m.selectedConfig=n.selectedConfig),n.selectedDisabled!==void 0&&(m.selectedDisabled=n.selectedDisabled),n.selectedIgnored!==void 0&&(m.selectedIgnored=n.selectedIgnored),n.error!==void 0&&(m.error=n.error),n.workspaceRoot!==void 0&&(m.workspaceRoot=n.workspaceRoot),n.getRouteCount&&(m.getRouteCount=n.getRouteCount),m});function g(f){if(n.routeMode==="disabled"){s("set-disabled-mode",f);return}s("set-enabled-mode",f)}return(f,m)=>(L(),N("aside",{class:ie(o.value)},[n.collapsed?(L(),N("div",WT,[x("button",{class:"flex h-7 w-7 items-center justify-center rounded border transition border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":C(r)("controls.expandSidebar"),title:C(r)("controls.expandSidebar"),onClick:m[12]||(m[12]=y=>s("toggle-collapse"))},[...m[19]||(m[19]=[x("span",{class:"i-[carbon--chevron-right] h-4 w-4","aria-hidden":"true"},null,-1)])],8,BT),x("div",HT,[x("button",{class:ie(["flex h-8 w-8 items-center justify-center rounded border transition",n.routeMode==="active"?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:C(r)("disabled.active",{count:n.activeTotal}),onClick:m[13]||(m[13]=y=>s("set-route-mode","active"))},[...m[20]||(m[20]=[x("span",{class:"i-[carbon--checkmark-filled] h-4 w-4","aria-hidden":"true"},null,-1)])],10,GT),x("button",{class:ie(["flex h-8 w-8 items-center justify-center rounded border transition",n.routeMode==="disabled"?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:C(r)("disabled.disabled",{count:n.disabledTotal}),onClick:m[14]||(m[14]=y=>s("set-route-mode","disabled"))},[...m[21]||(m[21]=[x("span",{class:"i-[carbon--close-filled] h-4 w-4","aria-hidden":"true"},null,-1)])],10,qT),x("button",{class:ie(["flex h-8 w-8 items-center justify-center rounded border transition",n.routeMode==="ignored"?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:C(r)("disabled.ignored",{count:n.ignoredTotal}),onClick:m[15]||(m[15]=y=>s("set-route-mode","ignored"))},[...m[22]||(m[22]=[x("span",{class:"i-[carbon--view-off] h-4 w-4","aria-hidden":"true"},null,-1)])],10,zT)]),m[26]||(m[26]=x("div",{class:"h-px w-8 bg-pg-border"},null,-1)),n.routeMode!=="ignored"?(L(),N("div",JT,[x("button",{class:ie(["flex h-8 w-8 items-center justify-center rounded border transition",i.value?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:n.routeMode==="disabled"?C(r)("enabled.api",{count:n.disabledApiTotal}):C(r)("enabled.api",{count:n.apiTotal}),onClick:m[16]||(m[16]=y=>g("api"))},[...m[23]||(m[23]=[x("span",{class:"i-[carbon--api] h-4 w-4","aria-hidden":"true"},null,-1)])],10,YT),x("button",{class:ie(["flex h-8 w-8 items-center justify-center rounded border transition",c.value?"border-pg-accent bg-pg-accent/15 text-pg-accent":"border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft"]),type:"button",title:n.routeMode==="disabled"?C(r)("enabled.config",{count:n.disabledConfigTotal}):C(r)("enabled.config",{count:n.configTotal}),onClick:m[17]||(m[17]=y=>g("config"))},[...m[24]||(m[24]=[x("span",{class:"i-[carbon--settings] h-4 w-4","aria-hidden":"true"},null,-1)])],10,XT)])):de("",!0),m[27]||(m[27]=x("div",{class:"h-px w-8 bg-pg-border"},null,-1)),x("div",QT,[x("span",ZT,F(l.value),1),a.value?(L(),N("span",e1,[...m[25]||(m[25]=[x("span",{class:"i-[carbon--search] h-4 w-4","aria-hidden":"true"},null,-1)])])):de("",!0)])])):(L(),N("div",KT,[Q(UT,on(u.value,{"onUpdate:search":m[1]||(m[1]=y=>s("update:search",y)),onSelectGroup:m[2]||(m[2]=y=>s("select-group",y)),onSetRouteMode:m[3]||(m[3]=y=>s("set-route-mode",y)),onSetEnabledMode:m[4]||(m[4]=y=>s("set-enabled-mode",y)),onSetDisabledMode:m[5]||(m[5]=y=>s("set-disabled-mode",y)),"onUpdate:treeMode":m[6]||(m[6]=y=>s("update:treeMode",y))}),{actions:ue(()=>[x("button",{class:"flex h-[34px] w-[34px] items-center justify-center rounded border transition border-pg-border bg-pg-surface-strong text-pg-text-muted hover:bg-pg-hover-strong hover:text-pg-text-soft",type:"button","aria-label":C(r)("controls.collapseSidebar"),title:C(r)("controls.collapseSidebar"),onClick:m[0]||(m[0]=y=>s("toggle-collapse"))},[...m[18]||(m[18]=[x("span",{class:"i-[carbon--chevron-left] h-4 w-4","aria-hidden":"true"},null,-1)])],8,jT)]),_:1},16),Q(kT,on(d.value,{onToggle:m[7]||(m[7]=y=>s("toggle",y)),onSelectRoute:m[8]||(m[8]=y=>s("select-route",y)),onSelectDisabledRoute:m[9]||(m[9]=y=>s("select-disabled-route",y)),onSelectIgnoredRoute:m[10]||(m[10]=y=>s("select-ignored-route",y)),onSelectConfig:m[11]||(m[11]=y=>s("select-config",y))}),null,16)]))],2))}});function n1(e){const t=j(()=>e.routeMode.value==="disabled"),n=j(()=>e.routeMode.value==="ignored"),s=j(()=>e.routes.value.length+e.configCount.value),r=j(()=>e.routes.value.length),o=j(()=>e.disabledCount.value+e.disabledConfigCount.value),l=j(()=>e.ignoredCount.value),a=j(()=>e.configCount.value),i=j(()=>e.disabledConfigCount.value),c=j(()=>e.disabledCount.value),u=j(()=>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:a,disabledConfigTotal:i,disabledApiTotal:c,visibleCount:u}}function s1(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 a(c){e.selectRoute(null),e.selectConfig(null),e.selectIgnoredRoute(null),e.selectDisabledRoute(c)}function i(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:a,handleSelectIgnored:i}}new Set(".\\+*[^]$()");const Ao=/^[\w-]+$/,r1=/^\[([^\]/]+)\]$/,o1=/^\[\.\.\.([^\]/]+)\]$/,l1=/^\[\[\.\.\.([^\]/]+)\]\]$/,a1=/^\([^)]+\)$/;function i1(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 c1(e){return e.map(i1)}function gd(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 u1(e){return gd(e).split("/").filter(Boolean)}function ul(e){const t=[],n=[],s=gd(e),r=u1(s),o=[],l=new Set;for(let a=0;a<r.length;a+=1){const i=r[a];if(!i)continue;if(a1.test(i)){t.push(`Route groups are not supported: ${i}`);continue}const c=i.match(l1);if(c){const g=c[1];if(!g){t.push(`Invalid optional catch-all param name "${i}"`);continue}if(!Ao.test(g)){t.push(`Invalid optional catch-all param name "${g}"`);continue}if(a!==r.length-1){t.push(`Optional catch-all "${i}" must be the last segment`);continue}l.has(g)&&n.push(`Duplicate param name "${g}"`),l.add(g),o.push({type:"optional-catchall",name:g});continue}const u=i.match(o1);if(u){const g=u[1];if(!g){t.push(`Invalid catch-all param name "${i}"`);continue}if(!Ao.test(g)){t.push(`Invalid catch-all param name "${g}"`);continue}if(a!==r.length-1){t.push(`Catch-all "${i}" must be the last segment`);continue}l.has(g)&&n.push(`Duplicate param name "${g}"`),l.add(g),o.push({type:"catchall",name:g});continue}const d=i.match(r1);if(d){const g=d[1];if(!g){t.push(`Invalid param name "${i}"`);continue}if(!Ao.test(g)){t.push(`Invalid param name "${g}"`);continue}l.has(g)&&n.push(`Duplicate param name "${g}"`),l.add(g),o.push({type:"param",name:g});continue}if(i.includes("[")||i.includes("]")||i.includes("(")||i.includes(")")){t.push(`Invalid route segment "${i}"`);continue}o.push({type:"static",value:i})}return{template:s,tokens:o,score:c1(o),errors:t,warnings:n}}function dl(e,t){return e==="catchall"?`[...${t}]`:e==="optional-catchall"?`[[...${t}]]`:`[${t}]`}function d1(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:dl(r,s.name),required:r!=="optional-catchall"})}return t}function md(e){const t=e.trim().replace(/^\/+|\/+$/g,"");return t?t.split("/").filter(Boolean):[]}function f1(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 a=md(l).map(encodeURIComponent);if(a.length===0){o.type!=="optional-catchall"&&s.add(o.name);continue}n.push(...a)}return{path:n.length>0?`/${n.join("/")}`:"/",missing:[...s]}}function p1(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(dl(s.type,s.name));continue}if(s.type==="param"){n.push(encodeURIComponent(r));continue}const o=md(r).map(encodeURIComponent);if(o.length===0){s.type!=="optional-catchall"&&n.push(dl(s.type,s.name));continue}n.push(...o)}return n.length>0?`/${n.join("/")}`:"/"}function g1(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 Ai(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,...a]=o.split("="),i=(l??"").trim();if(!i)continue;const c=a.join("=").trim();s.push([i,c])}return s}function m1(e){const t=e.responseText,n=e.responseRaw??t??{value:""},s=e.responsePretty??t??{value:""},r=e.responseHeaders??{value:{}},o=e.responseContentType??{value:""},l=d=>{n.value=d,t&&t!==n&&(t.value=d)},a=d=>{s.value=d,t&&t!==s&&(t.value=d)},i=d=>{switch(d){case"javascript":return"application/javascript; charset=utf-8";case"json":return"application/json; charset=utf-8";case"html":return"text/html; charset=utf-8";case"xml":return"text/xml; charset=utf-8";default:return"text/plain; charset=utf-8"}};return{resetResponse:()=>{l(""),a(e.t("response.empty")),r.value={},o.value="",e.responseStatus.value=e.t("response.idle"),e.responseTime.value=""},runRequest:async()=>{if(!e.selected.value)return;const d=e.routeTokens.value.length>0?e.routeTokens.value:ul(e.selected.value.url).tokens,g=f1(d,e.paramValues.value);if(g.missing.length>0){e.onMissingParams?.(g.missing);const S=e.t("errors.routeParams",{params:g.missing.join(", ")});l(""),a(S),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}const f=e.getRouteKey(e.selected.value),m=$s(e.queryText.value);if(m.error){const S=e.t("errors.queryJson",{message:m.error});l(""),a(S),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}const y=$s(e.headersText.value);if(y.error){const S=e.t("errors.headersJson",{message:y.error});l(""),a(S),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}const A=new URL(g.path,window.location.origin);m.value&&iv(A,m.value);const b={};if(y.value)for(const[S,I]of Object.entries(y.value))typeof I>"u"||(b[S]=Array.isArray(I)?I.join(","):String(I));const E=e.authType?.value??"none";if(E==="bearer"){const S=e.authToken?.value??"";S&&(b.Authorization=`Bearer ${S}`)}else if(E==="basic"){const S=e.authUsername?.value??"",I=e.authPassword?.value??"";(S||I)&&(b.Authorization=`Basic ${btoa(`${S}:${I}`)}`)}else if(E==="apikey"){const S=e.authKeyName?.value??"",I=e.authKeyValue?.value??"",K=e.authKeyLocation?.value??"header";S&&I&&(K==="query"?A.searchParams.set(S,I):b[S]=I)}else if(E==="custom"){const S=e.authCustomName?.value??"",I=e.authCustomValue?.value??"";S&&(b[S]=I)}const w={method:e.selected.value.method,headers:b,cache:"no-store"},h=e.selected.value.method.toUpperCase();if(h!=="GET"&&h!=="HEAD"){const S=e.bodyText.value;if(e.bodyType.value==="raw"){const I=S.trim();if(e.rawType.value==="json"&&e.rawValidate.value){const K=$s(S);if(K.error){const z=e.t("errors.bodyJson",{message:K.error});l(""),a(z),r.value={},o.value="",e.responseStatus.value=e.t("response.error"),e.responseTime.value="";return}}I&&(w.body=S,b["Content-Type"]||(b["Content-Type"]=i(e.rawType.value)))}else if(e.bodyType.value==="form-urlencoded"){const I=Ai(S);if(I.length>0){const K=new URLSearchParams;for(const[z,Z]of I)K.append(z,Z);w.body=K.toString(),b["Content-Type"]||(b["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8")}}else if(e.bodyType.value==="form-data"){const I=Ai(S),K=(e.multipartFiles?.value??[]).map(z=>({name:z.name.trim(),files:z.files})).filter(z=>z.name.length>0&&z.files.length>0);if(I.length>0||K.length>0){const z=new FormData;for(const[Z,se]of I)z.append(Z,se);for(const Z of K)for(const se of Z.files)z.append(Z.name,se);w.body=z}}else if(e.bodyType.value==="binary"){const I=e.binaryFile?.value??null;I&&(w.body=I,b["Content-Type"]||(b["Content-Type"]=I.type||"application/octet-stream"))}}e.responseStatus.value=e.t("response.loading"),e.responseTime.value="",l(""),a(e.t("response.waiting")),r.value={},o.value="",await e.ensureSwReady();const P=performance.now();try{const S=await fetch(A.toString(),w);e.isServerCounts.value||(e.routeCounts.value[f]=(e.routeCounts.value[f]??0)+1);const I=Math.round(performance.now()-P);e.responseTime.value=`${I}ms`,e.responseStatus.value=`${S.status} ${S.statusText}`;const K={};typeof S.headers?.forEach=="function"&&S.headers.forEach((se,J)=>{K[J]=se}),r.value=K;const z=S.headers.get("content-type")??"";o.value=z;const Z=await S.text();if(l(Z),z.includes("application/json"))try{a(JSON.stringify(JSON.parse(Z),null,2))}catch{a(Z||e.t("response.emptyPayload"))}else a(Z||e.t("response.emptyPayload"))}catch(S){e.responseStatus.value=e.t("response.error");const I=S instanceof Error?S.message:String(S);l(""),a(I),r.value={},o.value=""}}}}function hd(e){try{return new URL(e).pathname.includes("mokup-sw")}catch{return e.includes("mokup-sw")}}function Ni(e){return[e.active?.scriptURL,e.waiting?.scriptURL,e.installing?.scriptURL].filter(n=>typeof n=="string").some(n=>hd(n))}function h1(e){return!!e&&hd(e.scriptURL)}async function b1(){if(typeof window>"u"||!("serviceWorker"in navigator))return null;try{const e=await navigator.serviceWorker.getRegistration();if(e&&Ni(e))return e}catch{}try{return(await navigator.serviceWorker.getRegistrations()).find(Ni)??null}catch{return null}}function y1(){return!1}function v1(e){if(!y1())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 x1(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 hs=null;function _1(e,t={}){const{t:n}=tt(),s=ee(""),r=ee(""),o=ee(""),l=ee("none"),a=ee("json"),i=ee(!0),c=ee(null),u=ee([]),d=ee("none"),g=ee(""),f=ee(""),m=ee(""),y=ee(""),A=ee(""),b=ee("header"),E=ee(""),w=ee(""),h=ee(""),P=ee(n("response.empty")),S=P,I=ee({}),K=ee(""),z=ee(n("response.idle")),Z=ee(""),se=ee(!1),J=ee(!1),fe=j(()=>se.value&&!J.value),ne=ee({}),Y=j(()=>Object.values(ne.value).reduce((V,U)=>V+U,0)),B=ee(!1),W=ee(null),G=ee(""),oe=ee([]),Te=ee([]),ve=ee({}),pe=ee([]),he=ee(0),xe=j(()=>{if(!e.value)return"";const V=oe.value.length>0?oe.value:ul(e.value.url).tokens,U=p1(V,ve.value),H=$s(s.value);return H.error||!H.value?U:`${U}${g1(H.value)}`});function $e(V){return`${V.method} ${V.url}`}function Me(V){return ne.value[$e(V)]??0}function _e(V){if(typeof V.data!="string")return;const U=x1(V.data);if(U){if(U.type==="snapshot"){ne.value={...U.perRoute};return}ne.value[U.routeKey]=(ne.value[U.routeKey]??0)+1}}function Oe(){W.value&&(W.value.close(),W.value=null),G.value="",B.value=!1}function He(V){if(typeof window>"u")return;const U=v1(V);if(!(!U||G.value===U)){Oe(),G.value=U;try{const H=new WebSocket(U);W.value=H,H.addEventListener("open",()=>{B.value=!0}),H.addEventListener("message",_e),H.addEventListener("close",()=>{W.value===H&&Oe()}),H.addEventListener("error",()=>{W.value===H&&Oe()})}catch{Oe()}}}function We(V,U){ve.value={...ve.value,[V]:U},U.trim()&&pe.value.includes(V)&&(pe.value=pe.value.filter(H=>H!==V))}function nt(V){if(pe.value=[],he.value=0,!V){oe.value=[],Te.value=[],ve.value={};return}const U=ul(V.url);oe.value=U.tokens;const H=d1(U.tokens),v={};for(const p of H)v[p.name]=ve.value[p.name]??"";Te.value=H,ve.value=v}async function T(){if(J.value)return!0;if(typeof window>"u"||!("serviceWorker"in navigator))return!1;let V=null;hs||(V=navigator.serviceWorker.ready.then(()=>{J.value=!0}).catch(()=>{hs=null}));const U=navigator.serviceWorker.controller;if(h1(U))return se.value=!0,J.value=!0,!0;if(!se.value){if(!await b1())return!1;se.value=!0}return!hs&&V&&(hs=V),await hs,J.value}typeof window<"u"&&"serviceWorker"in navigator&&T().catch(()=>{}),t.basePath&&ct(t.basePath,V=>{V&&He(V)},{immediate:!0}),Xs()&&Vn(()=>{Oe()});const{resetResponse:$,runRequest:D}=m1({t:n,selected:e,routeTokens:oe,paramValues:ve,queryText:s,headersText:r,bodyText:o,bodyType:l,rawType:a,rawValidate:i,multipartFiles:u,binaryFile:c,authType:d,authToken:g,authUsername:f,authPassword:m,authKeyName:y,authKeyValue:A,authKeyLocation:b,authCustomName:E,authCustomValue:w,responseRaw:h,responsePretty:P,responseText:S,responseHeaders:I,responseContentType:K,responseStatus:z,responseTime:Z,routeCounts:ne,isServerCounts:B,ensureSwReady:T,getRouteKey:$e,onMissingParams:V=>{pe.value=[...V],he.value+=1}});return ct(e,()=>{$(),nt(e.value)}),{queryText:s,headersText:r,bodyText:o,bodyType:l,rawType:a,rawValidate:i,multipartFiles:u,binaryFile:c,authType:d,authToken:g,authUsername:f,authPassword:m,authKeyName:y,authKeyValue:A,authKeyLocation:b,authCustomName:E,authCustomValue:w,responseRaw:h,responsePretty:P,responseText:S,responseHeaders:I,responseContentType:K,responseStatus:z,responseTime:Z,resetResponse:$,runRequest:D,isSwMode:se,isSwRegistering:fe,routeParams:Te,paramValues:ve,missingParams:pe,missingPulse:he,setParamValue:We,requestUrl:xe,routeCounts:ne,totalCount:Y,getRouteCount:Me}}const fl="mokup.playground.lastSelectedRoute";function w1(){try{const e=localStorage.getItem(fl);return e&&e.trim()?e:null}catch{}return null}function Oi(e){try{e&&e.trim()?localStorage.setItem(fl,e):localStorage.removeItem(fl)}catch{}}function Fi(e){const{selectedFile:t,routes:n,disabledRoutes:s,ignoredRoutes:r}=e;if(!t)return[];const o=a=>!!a?.includes(t),l=[];for(const a of n)if(o(a.configChain)){const i={kind:"active",file:a.file};a.method&&(i.method=a.method),a.url&&(i.url=a.url),l.push(i)}for(const a of s)if(o(a.configChain)){const i={kind:"disabled",file:a.file};a.method&&(i.method=a.method),a.url&&(i.url=a.url),l.push(i)}for(const a of r)o(a.configChain)&&l.push({kind:"ignored",file:a.file});return l}function T1(){const e=ee([]),t=ee([]),n=ee([]),s=ee([]),r=ee([]),o=ee([]),l=ee([]),a=ee([]),i=ee(null),c=ee(null),u=ee(null),d=ee(null),g=ee([]),f=ee("all"),m=ee(!1),y=ee(""),A=ee(""),b=ee(""),E=ee(""),w=j(()=>A.value.trim().toLowerCase()),h=j(()=>fd(A.value)),P=j(()=>o.value.length),S=j(()=>t.value.length),I=j(()=>n.value.length),K=j(()=>s.value.length),z=j(()=>r.value.length),Z=j(()=>{const p=new Map;for(const R of s.value)p.set(R.file,"enabled");for(const R of r.value)p.set(R.file,"disabled");return p}),se=j(()=>`${b.value||""}/routes`),J=p=>`${p.method} ${p.url}`,fe=p=>`${p.file}|${p.reason}|${p.method??""}|${p.url??""}`,ne=p=>`${p.file}|${p.reason}`,Y=ee(w1()??"");function B(p){return(p??"").toLowerCase()}function W(p,R){return p.includes(R)}function G(p,R){const M=B(p.method),X=B(p.url),q=B(p.file),_=B(p.groupKey??p.group),k=`${M} ${X} ${q} ${_}`;return R.every(O=>{const te=O.value;switch(O.field){case"method":return W(M,te);case"path":return W(X,te);case"file":return W(q,te);case"group":return W(_,te);case"reason":return!1;default:return W(k,te)}})}function oe(p,R){const M=B(p.file),X=B(p.groupKey??p.group),q=`${M} ${X}`;return R.every(_=>{const k=_.value;switch(_.field){case"file":return W(M,k);case"group":return W(X,k);case"text":return W(q,k);default:return!1}})}function Te(p,R){const M=B(p.method),X=B(p.url),q=B(p.file),_=B(p.groupKey??p.group),k=B(p.reason),O=`${M} ${X} ${q} ${_} ${k}`;return R.every(te=>{const ce=te.value;switch(te.field){case"method":return W(M,ce);case"path":return W(X,ce);case"file":return W(q,ce);case"group":return W(_,ce);case"reason":return W(k,ce);default:return W(O,ce)}})}function ve(p,R){const M=B(p.file),X=B(p.groupKey??p.group),q=B(p.reason),_=`${M} ${X} ${q}`;return R.every(k=>{const O=k.value;switch(k.field){case"file":return W(M,O);case"group":return W(X,O);case"reason":return W(q,O);case"text":return W(_,O);default:return!1}})}function pe(p,R){return p?R.find(M=>J(M)===p)??null:null}function he(){return f.value==="all"?e.value:e.value.filter(p=>p.groupKey===f.value)}function xe(){const p=h.value,R=he();o.value=p.length?R.filter(M=>G(M,p)):[...R]}function $e(){return f.value==="all"?s.value:s.value.filter(p=>p.groupKey===f.value)}function Me(){const p=h.value,R=$e();l.value=p.length?R.filter(M=>oe(M,p)):[...R]}function _e(){return f.value==="all"?r.value:r.value.filter(p=>p.groupKey===f.value)}function Oe(){const p=h.value,R=_e();a.value=p.length?R.filter(M=>oe(M,p)):[...R]}const He=j(()=>{const p=h.value;return p.length?t.value.filter(R=>Te(R,p)):[...t.value]}),We=j(()=>{const p=h.value;return p.length?n.value.filter(R=>ve(R,p)):[...n.value]});function nt(p){f.value=p,xe(),Me(),Oe(),!(i.value&&o.value.some(M=>J(M)===J(i.value)))&&(i.value=pe(Y.value,o.value))}function T(p){i.value=p}function $(p){c.value=p}function D(p){u.value=p}function V(p){d.value=p}function U(p){b.value=Rh(p)}async function H(){m.value=!0,y.value="";const p=Y.value,R=c.value?fe(c.value):"",M=u.value?ne(u.value):"",X=f.value,q=d.value?.file??"";try{const _=await fetch(se.value);if(!_.ok)throw new Error(`Failed to load routes: ${_.status}`);const k=await _.json();e.value=k.routes??[],t.value=k.disabled??[],n.value=k.ignored??[],s.value=k.configs??[],r.value=k.disabledConfigs??[],g.value=k.groups??[],E.value=k.root??"",X!=="all"&&(g.value.some(ce=>ce.key===X)||(f.value="all")),xe(),Me(),Oe();const O=p?pe(p,o.value):null;if(p&&!O&&(pe(p,e.value)||(Y.value="",Oi(null))),i.value=O,R){const te=t.value.find(ce=>fe(ce)===R);c.value=te??t.value[0]??null}else c.value=t.value[0]??null;if(M){const te=n.value.find(ce=>ne(ce)===M);u.value=te??n.value[0]??null}else u.value=n.value[0]??null;if(q){const te=s.value.find(ce=>ce.file===q)??r.value.find(ce=>ce.file===q)??null;d.value=te}}catch(_){y.value=_ instanceof Error?_.message:String(_)}finally{m.value=!1}}ct(A,()=>{xe(),Me(),Oe()}),ct(i,p=>{if(p){const R=J(p);Y.value=R,Oi(R)}});const v=j(()=>{const p=d.value?.file,R={routes:e.value,disabledRoutes:t.value,ignoredRoutes:n.value};return Fi(p?{...R,selectedFile:p}:R)});return{routes:e,disabledRoutes:t,ignoredRoutes:n,configFiles:s,disabledConfigFiles:r,disabledFiltered:He,ignoredFiltered:We,configFiltered:l,disabledConfigFiltered:a,filtered:o,selected:i,selectedConfig:d,selectedDisabled:c,selectedIgnored:u,groups:g,activeGroup:f,loading:m,error:y,search:A,basePath:b,workspaceRoot:E,searchTerm:w,routeCount:P,disabledCount:S,ignoredCount:I,configCount:K,disabledConfigCount:z,configStatusMap:Z,routeKey:J,lastSelectedKey:Y,loadRoutes:H,setActiveGroup:nt,selectRoute:T,selectDisabledRoute:$,selectIgnoredRoute:D,selectConfig:V,setBasePath:U,configImpactRoutes:v}}function k1(e,t){if(t==="file")return Or(e.file).split("/").filter(Boolean);const n=Or(e.url),s=n.startsWith("/")?n.slice(1):n;return s?s.split("/").filter(Boolean):[]}function bd(e,t){const n={id:`${t}:root`,label:"",kind:"folder",path:"",children:[]};for(const s of e){const r=k1(s,t);if(r.length===0){const a=`${t}:route:${s.method} ${s.url}|${s.file}`;n.children.push({id:a,label:"/",kind:"route",path:"/",route:s,children:[]});continue}let o=n;const l=r.length;for(let a=0;a<l;a+=1){const i=r[a]??"";if(!i)continue;if(a===l-1){const f=`${t}:route:${s.method} ${s.url}|${s.file}`;o.children.push({id:f,label:i,kind:"route",path:r.join("/"),route:s,children:[]});continue}o.map||(o.map=new Map);const u=r.slice(0,a+1).join("/"),d=o.map.get(u);if(d){o=d;continue}const g={id:`${t}:folder:${u}`,label:i,kind:"folder",path:u,children:[]};o.map.set(u,g),o.children.push(g),o=g}}return n}function Hl(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"&&Hl(t);return e}function yd(e,t){for(const n of e.children)n.kind==="folder"&&(t.push(n.id),yd(n,t))}function C1(e,t){const n=bd(e,t);Hl(n);const s=[];return yd(n,s),s}function vd(e,t,n,s,r,o,l){for(const a of e.children){const i=a.kind==="folder"?a.path:n==="file"?a.route?.file??a.label:a.route?.url??a.label,c=a.kind==="folder"?r(a.id):!1,u={id:a.id,label:a.label,kind:a.kind,depth:t,title:i,expanded:c,selected:a.route?l(a.route)===o:!1};a.route&&(u.route=a.route),s.push(u),a.kind==="folder"&&c&&vd(a,t+1,n,s,r,o,l)}}function S1(e){const t=[];return vd(e.root,0,e.mode,t,e.isExpanded,e.selectedKey,e.getRouteKey),t}function E1(e){const t=ee("file"),n=ee(new Set),s=ee(new Set),r=ee(!1),o=ee(!1);function l(){return"mokup.playground.treeMode"}function a(w){return`mokup.playground.treeExpanded.${w}`}function i(w){try{const h=localStorage.getItem(a(w));if(!h)return{set:new Set,hasValue:!1};const P=JSON.parse(h);return Array.isArray(P)?{set:new Set(P.filter(S=>typeof S=="string")),hasValue:!0}:{set:new Set,hasValue:!1}}catch{return{set:new Set,hasValue:!1}}}function c(w,h){try{localStorage.setItem(a(w),JSON.stringify([...h]))}catch{}}function u(w){try{localStorage.setItem(l(),w)}catch{}}function d(){return t.value==="file"?n.value:s.value}function g(w,h){w==="file"?n.value=h:s.value=h}function f(w){return w==="file"?r.value:o.value}function m(w,h){w==="file"?r.value=h:o.value=h}function y(w){return e.searchTerm.value||!f(t.value)?!0:d().has(w)}function A(w){const h=t.value;if(!f(h)){const S=new Set(C1(e.routes.value,h));g(h,S),m(h,!0)}const P=new Set(d());P.has(w)?P.delete(w):P.add(w),g(h,P),m(h,!0),c(h,P)}function b(w){t.value=w,u(w)}const E=j(()=>{const w=t.value,h=bd(e.routes.value,w);return Hl(h),S1({root:h,mode:w,isExpanded:y,selectedKey:e.selectedKey.value,getRouteKey:e.getRouteKey})});return rs(()=>{try{const w=localStorage.getItem(l());(w==="file"||w==="route")&&(t.value=w);const h=i("file");n.value=h.set,r.value=h.hasValue;const P=i("route");s.value=P.set,o.value=P.hasValue}catch{}}),{treeMode:t,treeRows:E,toggleExpanded:A,setTreeMode:b}}function R1(e){const t=ee(e.defaultWidth),n=ee(!1);let s=0,r=0;const o=j(()=>({"--left-width":`${t.value}px`}));function l(d){return Math.min(e.maxWidth,Math.max(e.minWidth,d))}function a(d){if(!n.value)return;const g=d.clientX-s;t.value=l(r+g)}function i(){n.value&&(n.value=!1,window.removeEventListener("pointermove",a),window.removeEventListener("pointerup",i),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",a),window.addEventListener("pointerup",i))}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:i}}const P1={class:"h-screen overflow-hidden pg-app-bg","data-testid":"playground-app"},$1={key:0,class:"pointer-events-none fixed inset-x-0 top-5 z-50 flex justify-center px-4"},M1={class:"flex h-full w-full flex-col"},L1={class:"flex min-h-0 flex-1 flex-col overflow-hidden"},I1={class:"flex flex-1 flex-col overflow-hidden bg-pg-surface-shell"},A1={class:"flex min-h-0 flex-1 flex-col overflow-hidden p-4 lg:p-6"},N1={class:"mt-3 flex-1 min-h-0 overflow-auto"},Di="mokup.playground.sidebarCollapsed",Vi=72,O1=je({__name:"App",setup(e){const{routes:t,disabledRoutes:n,ignoredRoutes:s,configFiles:r,disabledConfigFiles:o,filtered:l,disabledFiltered:a,ignoredFiltered:i,configFiltered:c,disabledConfigFiltered:u,selected:d,selectedDisabled:g,selectedIgnored:f,selectedConfig:m,groups:y,activeGroup:A,loading:b,error:E,search:w,basePath:h,workspaceRoot:P,searchTerm:S,routeCount:I,disabledCount:K,ignoredCount:z,configCount:Z,disabledConfigCount:se,configStatusMap:J,routeKey:fe,lastSelectedKey:ne,loadRoutes:Y,setActiveGroup:B,selectRoute:W,selectDisabledRoute:G,selectIgnoredRoute:oe,selectConfig:Te,setBasePath:ve,configImpactRoutes:pe}=T1(),{queryText:he,headersText:xe,bodyText:$e,bodyType:Me,rawType:_e,rawValidate:Oe,multipartFiles:He,binaryFile:We,authType:nt,authToken:T,authUsername:$,authPassword:D,authKeyName:V,authKeyValue:U,authKeyLocation:H,authCustomName:v,authCustomValue:p,responseRaw:R,responsePretty:M,responseHeaders:X,responseContentType:q,responseStatus:_,responseTime:k,runRequest:O,isSwMode:te,isSwRegistering:ce,routeParams:Je,paramValues:Ge,missingParams:gt,missingPulse:yt,setParamValue:wn,requestUrl:tr,totalCount:dt,getRouteCount:kt}=_1(d,{basePath:h}),nr=j(()=>d.value?fe(d.value):""),sr=j(()=>t.value.length>0||n.value.length>0||s.value.length>0||r.value.length>0||o.value.length>0),xd=j(()=>te.value?ce.value?"sw-registering":"sw":"server"),rr=ee("active"),or=ee("api"),lr=ee("api"),{activeTotal:_d,apiTotal:wd,disabledTotal:Td,ignoredTotal:kd,configTotal:Cd,disabledConfigTotal:Sd,disabledApiTotal:Ed,visibleCount:Rd}=n1({routes:t,configCount:Z,disabledCount:K,ignoredCount:z,disabledConfigCount:se,routeCount:I,disabledFiltered:a,ignoredFiltered:i,configFiltered:c,disabledConfigFiltered:u,routeMode:rr,enabledMode:or,disabledMode:lr}),{setRouteMode:Pd,setEnabledMode:$d,setDisabledMode:Md,handleSelectRoute:Ld,handleSelectConfig:Id,handleSelectDisabled:Ad,handleSelectIgnored:Nd}=s1({routeMode:rr,enabledMode:or,disabledMode:lr,selected:d,selectedDisabled:g,selectedIgnored:f,selectedConfig:m,filtered:l,disabledFiltered:a,ignoredFiltered:i,lastSelectedKey:ne,getRouteKey:fe,selectRoute:W,selectDisabledRoute:G,selectIgnoredRoute:oe,selectConfig:Te}),{splitStyle:Od,isDragging:Gl,handleDragStart:ql,restoreSplitWidth:Fd,stopDrag:Dd,splitWidth:is}=R1({storageKey:"mokup:playground:split-width",defaultWidth:320,minWidth:240,maxWidth:560}),{treeMode:Vd,treeRows:Ud,toggleExpanded:Kd,setTreeMode:jd}=E1({routes:l,selectedKey:nr,searchTerm:S,getRouteKey:fe}),co=ee(!1),Kn=ee(null),Tn=ee(!1),uo=ee(320);function fo(){Y().catch(()=>{})}function Wd(){Kn.value&&window.clearTimeout(Kn.value),co.value=!0,Kn.value=window.setTimeout(()=>{co.value=!1,Kn.value=null},2e3)}function Bd(){Tn.value?(Tn.value=!1,is.value=uo.value):(uo.value=is.value,Tn.value=!0,is.value=Vi),localStorage.setItem(Di,String(Tn.value))}return rs(()=>{ve(window.location.pathname),Fd(),uo.value=is.value,localStorage.getItem(Di)==="true"&&(Tn.value=!0,is.value=Vi),window.__MOKUP_PLAYGROUND__={reloadRoutes:fo,notifyHotReload:Wd},fo()}),Vn(()=>{Dd(),Kn.value&&window.clearTimeout(Kn.value)}),(Hd,ye)=>(L(),N("div",P1,[Q(Zp,{name:"pg-hot-toast"},{default:ue(()=>[co.value?(L(),N("div",$1,[...ye[19]||(ye[19]=[x("div",{class:"pg-hot-toast inline-flex items-center gap-2 rounded border border-pg-border bg-pg-surface-panel px-4 py-2 text-sm font-medium text-pg-text"},[x("span",{class:"i-[carbon--checkmark-filled] h-4 w-4 text-pg-accent","aria-hidden":"true"}),Ee(" Hot reload complete ")],-1)])])):de("",!0)]),_:1}),x("div",M1,[x("main",L1,[x("div",I1,[x("div",{class:ie(["flex min-h-0 flex-1 flex-col lg:flex-row",C(Gl)?"select-none":""]),style:Dn(C(Od))},[Q(t1,{search:C(w),"onUpdate:search":ye[0]||(ye[0]=ke=>Ce(w)?w.value=ke:null),collapsed:Tn.value,"base-path":C(h),groups:C(y),"active-group":C(A),"tree-mode":C(Vd),"route-mode":rr.value,"enabled-mode":or.value,"disabled-mode":lr.value,"selected-config":C(m),"selected-disabled":C(g),"selected-ignored":C(f),"active-total":C(_d),"api-total":C(wd),"disabled-total":C(Td),"ignored-total":C(kd),"config-total":C(Cd),"disabled-api-total":C(Ed),"disabled-config-total":C(Sd),error:C(E),loading:C(b),"has-cached-data":sr.value,filtered:C(l),"disabled-filtered":C(a),"ignored-filtered":C(i),"config-filtered":C(c),"disabled-config-filtered":C(u),"tree-rows":C(Ud),"workspace-root":C(P),"get-route-count":C(kt),onToggleCollapse:Bd,onSelectGroup:C(B),onSetRouteMode:C(Pd),onSetEnabledMode:C($d),onSetDisabledMode:C(Md),onToggle:C(Kd),onSelectRoute:C(Ld),onSelectDisabledRoute:C(Ad),onSelectIgnoredRoute:C(Nd),onSelectConfig:C(Id),"onUpdate:treeMode":C(jd)},null,8,["search","collapsed","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","has-cached-data","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"]),Tn.value?de("",!0):(L(),N("div",{key:0,class:ie(["pg-sash-zone relative hidden w-0 flex-none lg:flex",C(Gl)?"pg-sash-active":""]),onPointerdown:ye[1]||(ye[1]=(...ke)=>C(ql)&&C(ql)(...ke))},[...ye[20]||(ye[20]=[x("div",{class:"pg-sash",role:"separator","aria-label":"Resize panels"},null,-1)])],34)),x("section",A1,[Q(Ew,{"visible-count":C(Rd),"total-count":C(dt),"request-mode":xd.value,onRefresh:fo},null,8,["visible-count","total-count","request-mode"]),x("div",N1,[Q(fw,{queryText:C(he),"onUpdate:queryText":ye[2]||(ye[2]=ke=>Ce(he)?he.value=ke:null),headersText:C(xe),"onUpdate:headersText":ye[3]||(ye[3]=ke=>Ce(xe)?xe.value=ke:null),bodyText:C($e),"onUpdate:bodyText":ye[4]||(ye[4]=ke=>Ce($e)?$e.value=ke:null),bodyType:C(Me),"onUpdate:bodyType":ye[5]||(ye[5]=ke=>Ce(Me)?Me.value=ke:null),rawType:C(_e),"onUpdate:rawType":ye[6]||(ye[6]=ke=>Ce(_e)?_e.value=ke:null),rawValidate:C(Oe),"onUpdate:rawValidate":ye[7]||(ye[7]=ke=>Ce(Oe)?Oe.value=ke:null),multipartFiles:C(He),"onUpdate:multipartFiles":ye[8]||(ye[8]=ke=>Ce(He)?He.value=ke:null),binaryFile:C(We),"onUpdate:binaryFile":ye[9]||(ye[9]=ke=>Ce(We)?We.value=ke:null),authType:C(nt),"onUpdate:authType":ye[10]||(ye[10]=ke=>Ce(nt)?nt.value=ke:null),authToken:C(T),"onUpdate:authToken":ye[11]||(ye[11]=ke=>Ce(T)?T.value=ke:null),authUsername:C($),"onUpdate:authUsername":ye[12]||(ye[12]=ke=>Ce($)?$.value=ke:null),authPassword:C(D),"onUpdate:authPassword":ye[13]||(ye[13]=ke=>Ce(D)?D.value=ke:null),authKeyName:C(V),"onUpdate:authKeyName":ye[14]||(ye[14]=ke=>Ce(V)?V.value=ke:null),authKeyValue:C(U),"onUpdate:authKeyValue":ye[15]||(ye[15]=ke=>Ce(U)?U.value=ke:null),authKeyLocation:C(H),"onUpdate:authKeyLocation":ye[16]||(ye[16]=ke=>Ce(H)?H.value=ke:null),authCustomName:C(v),"onUpdate:authCustomName":ye[17]||(ye[17]=ke=>Ce(v)?v.value=ke:null),authCustomValue:C(p),"onUpdate:authCustomValue":ye[18]||(ye[18]=ke=>Ce(p)?p.value=ke:null),selected:C(d),"selected-disabled":C(g),"selected-ignored":C(f),"selected-config":C(m),"request-url":C(tr),"workspace-root":C(P),"response-raw":C(R),"response-pretty":C(M),"response-headers":C(X),"response-content-type":C(q),"response-status":C(_),"response-time":C(k),"is-sw-registering":C(ce),"route-params":C(Je),"param-values":C(Ge),"missing-params":C(gt),"missing-pulse":C(yt),"route-mode":rr.value,"enabled-mode":or.value,"disabled-mode":lr.value,"config-impact-routes":C(pe),"config-status-map":C(J),"onUpdate:paramValue":C(wn),onRun:C(O)},null,8,["queryText","headersText","bodyText","bodyType","rawType","rawValidate","multipartFiles","binaryFile","authType","authToken","authUsername","authPassword","authKeyName","authKeyValue","authKeyLocation","authCustomName","authCustomValue","selected","selected-disabled","selected-ignored","selected-config","request-url","workspace-root","response-raw","response-pretty","response-headers","response-content-type","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)])])])]))}});mw();Cg(O1).use(ww).mount("#app");export{Vn as a,L as b,N as c,je as d,de as e,x as f,vo as g,j as h,no as i,on as m,rs as o,ee as r,F as t,Yr as u,Co as v,ct as w};