sova-devtools 0.1.4

In-app DevTools bar for Sova (HTML inject, SSE timeline, request snapshots)
Documentation
1
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 i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).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 _r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ne={},tn=[],mt=()=>{},qo=()=>!1,ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hs=e=>e.startsWith("onUpdate:"),Ae=Object.assign,br=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ol=Object.prototype.hasOwnProperty,oe=(e,t)=>Ol.call(e,t),q=Array.isArray,nn=e=>Vn(e)==="[object Map]",Ko=e=>Vn(e)==="[object Set]",Ur=e=>Vn(e)==="[object Date]",z=e=>typeof e=="function",ge=e=>typeof e=="string",Ze=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",zo=e=>(ce(e)||z(e))&&z(e.then)&&z(e.catch),Wo=Object.prototype.toString,Vn=e=>Wo.call(e),Pl=e=>Vn(e).slice(8,-1),Go=e=>Vn(e)==="[object Object]",ps=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bn=_r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ms=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Nl=/-\w/g,He=ms(e=>e.replace(Nl,t=>t.slice(1).toUpperCase())),$l=/\B([A-Z])/g,Ht=ms(e=>e.replace($l,"-$1").toLowerCase()),gs=ms(e=>e.charAt(0).toUpperCase()+e.slice(1)),Os=ms(e=>e?`on${gs(e)}`:""),Ne=(e,t)=>!Object.is(e,t),Gn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Jo=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},yr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qr;const vs=()=>qr||(qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vt(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ge(s)?Vl(s):vt(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ge(e)||ce(e))return e}const Il=/;(?![^(]*\))/g,Ll=/:([^]+)/,Dl=/\/\*[^]*?\*\//g;function Vl(e){const t={};return e.replace(Dl,"").split(Il).forEach(n=>{if(n){const s=n.split(Ll);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xe(e){let t="";if(ge(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const s=xe(e[n]);s&&(t+=s+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const jl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Fl=_r(jl);function Yo(e){return!!e||e===""}function Hl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=xr(e[s],t[s]);return n}function xr(e,t){if(e===t)return!0;let n=Ur(e),s=Ur(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ze(e),s=Ze(t),n||s)return e===t;if(n=q(e),s=q(t),n||s)return n&&s?Hl(e,t):!1;if(n=ce(e),s=ce(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 i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!xr(e[i],t[i]))return!1}}return String(e)===String(t)}const Qo=e=>!!(e&&e.__v_isRef===!0),G=e=>ge(e)?e:e==null?"":q(e)||ce(e)&&(e.toString===Wo||!z(e.toString))?Qo(e)?G(e.value):JSON.stringify(e,Xo,2):String(e),Xo=(e,t)=>Qo(t)?Xo(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Ps(s,o)+" =>"]=r,n),{})}:Ko(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ps(n))}:Ze(t)?Ps(t):ce(t)&&!q(t)&&!Go(t)?String(t):t,Ps=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ke;class Zo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ke&&(ke.active?(this.parent=ke,this.index=(ke.scopes||(ke.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[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){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=ke;try{return ke=this,t()}finally{ke=n}}}on(){++this._on===1&&(this.prevScope=ke,ke=this)}off(){if(this._on>0&&--this._on===0){if(ke===this)ke=this.prevScope;else{let t=ke;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.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){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[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 ei(e){return new Zo(e)}function ti(){return ke}function Bl(e,t=!1){ke&&ke.cleanups.push(e)}let he;const Ns=new WeakSet;class ni{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,ke&&(ke.active?ke.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ri(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Kr(this),oi(this);const t=he,n=rt;he=this,rt=!0;try{return this.fn()}finally{ii(this),he=t,rt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Er(t);this.deps=this.depsTail=void 0,Kr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ys(this)&&this.run()}get dirty(){return Ys(this)}}let si=0,yn,xn;function ri(e,t=!1){if(e.flags|=8,t){e.next=xn,xn=e;return}e.next=yn,yn=e}function wr(){si++}function Sr(){if(--si>0)return;if(xn){let t=xn;for(xn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;yn;){let t=yn;for(yn=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 oi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ii(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Er(s),Ul(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(li(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function li(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===An)||(e.globalVersion=An,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ys(e))))return;e.flags|=2;const t=e.dep,n=he,s=rt;he=e,rt=!0;try{oi(e);const r=e.fn(e._value);(t.version===0||Ne(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{he=n,rt=s,ii(e),e.flags&=-3}}function Er(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)Er(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ul(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 ai=[];function Mt(){ai.push(rt),rt=!1}function Ot(){const e=ai.pop();rt=e===void 0?!0:e}function Kr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let An=0;class ql{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 _s{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||!rt||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new ql(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,ci(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++,An++,this.notify(t)}notify(t){wr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Sr()}}}function ci(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)ci(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ts=new WeakMap,zt=Symbol(""),Qs=Symbol(""),Tn=Symbol("");function je(e,t,n){if(rt&&he){let s=ts.get(e);s||ts.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new _s),r.map=s,r.key=n),r.track()}}function Ct(e,t,n,s,r,o){const i=ts.get(e);if(!i){An++;return}const l=a=>{a&&a.trigger()};if(wr(),t==="clear")i.forEach(l);else{const a=q(e),c=a&&ps(n);if(a&&n==="length"){const u=Number(s);i.forEach((d,p)=>{(p==="length"||p===Tn||!Ze(p)&&p>=u)&&l(d)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(Tn)),t){case"add":a?c&&l(i.get("length")):(l(i.get(zt)),nn(e)&&l(i.get(Qs)));break;case"delete":a||(l(i.get(zt)),nn(e)&&l(i.get(Qs)));break;case"set":nn(e)&&l(i.get(zt));break}}Sr()}function Kl(e,t){const n=ts.get(e);return n&&n.get(t)}function Jt(e){const t=te(e);return t===e?t:(je(t,"iterate",Tn),Qe(e)?t:t.map(ot))}function bs(e){return je(e=te(e),"iterate",Tn),e}function ht(e,t){return Pt(e)?ln(At(e)?ot(t):t):ot(t)}const zl={__proto__:null,[Symbol.iterator](){return $s(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return Jt(this).concat(...e.map(t=>q(t)?Jt(t):t))},entries(){return $s(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return wt(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Is(this,"includes",e)},indexOf(...e){return Is(this,"indexOf",e)},join(e){return Jt(this).join(e)},lastIndexOf(...e){return Is(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return zr(this,"reduce",e,t)},reduceRight(e,...t){return zr(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return hn(this,"splice",e)},toReversed(){return Jt(this).toReversed()},toSorted(e){return Jt(this).toSorted(e)},toSpliced(...e){return Jt(this).toSpliced(...e)},unshift(...e){return hn(this,"unshift",e)},values(){return $s(this,"values",e=>ht(this,e))}};function $s(e,t,n){const s=bs(e),r=s[t]();return s!==e&&!Qe(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Wl=Array.prototype;function wt(e,t,n,s,r,o){const i=bs(e),l=i!==e&&!Qe(e),a=i[t];if(a!==Wl[t]){const d=a.apply(e,o);return l?ot(d):d}let c=n;i!==e&&(l?c=function(d,p){return n.call(this,ht(e,d),p,e)}:n.length>2&&(c=function(d,p){return n.call(this,d,p,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function zr(e,t,n,s){const r=bs(e),o=r!==e&&!Qe(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(c,u,d){return l&&(l=!1,c=ht(e,c)),n.call(this,c,ht(e,u),d,e)}):n.length>3&&(i=function(c,u,d){return n.call(this,c,u,d,e)}));const a=r[t](i,...s);return l?ht(e,a):a}function Is(e,t,n){const s=te(e);je(s,"iterate",Tn);const r=s[t](...n);return(r===-1||r===!1)&&ys(n[0])?(n[0]=te(n[0]),s[t](...n)):r}function hn(e,t,n=[]){Mt(),wr();const s=te(e)[t].apply(e,n);return Sr(),Ot(),s}const Gl=_r("__proto__,__v_isRef,__isVue"),ui=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function Jl(e){Ze(e)||(e=String(e));const t=te(this);return je(t,"has",e),t.hasOwnProperty(e)}class fi{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?oa:mi:o?pi:hi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=q(t);if(!r){let a;if(i&&(a=zl[n]))return a;if(n==="hasOwnProperty")return Jl}const l=Reflect.get(t,n,be(t)?t:s);if((Ze(n)?ui.has(n):Gl(n))||(r||je(t,"get",n),o))return l;if(be(l)){const a=i&&ps(n)?l:l.value;return r&&ce(a)?Zs(a):a}return ce(l)?r?Zs(l):jn(l):l}}class di extends fi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=q(t)&&ps(n);if(!this._isShallow){const c=Pt(o);if(!Qe(s)&&!Pt(s)&&(o=te(o),s=te(s)),!i&&be(o)&&!be(s))return c||(o.value=s),!0}const l=i?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,s,be(t)?t:r);return t===te(r)&&a&&(l?Ne(s,o)&&Ct(t,"set",n,s):Ct(t,"add",n,s)),a}deleteProperty(t,n){const s=oe(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ct(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ze(n)||!ui.has(n))&&je(t,"has",n),s}ownKeys(t){return je(t,"iterate",q(t)?"length":zt),Reflect.ownKeys(t)}}class Yl extends fi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ql=new di,Xl=new Yl,Zl=new di(!0);const Xs=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function ea(e,t,n){return function(...s){const r=this.__v_raw,o=te(r),i=nn(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?Xs:t?ln:ot;return!t&&je(o,"iterate",a?Qs:zt),Ae(Object.create(c),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}}})}}function Un(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ta(e,t){const n={get(r){const o=this.__v_raw,i=te(o),l=te(r);e||(Ne(r,l)&&je(i,"get",r),je(i,"get",l));const{has:a}=Bn(i),c=t?Xs:e?ln:ot;if(a.call(i,r))return c(o.get(r));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&je(te(r),"iterate",zt),r.size},has(r){const o=this.__v_raw,i=te(o),l=te(r);return e||(Ne(r,l)&&je(i,"has",r),je(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=te(l),c=t?Xs:e?ln:ot;return!e&&je(a,"iterate",zt),l.forEach((u,d)=>r.call(o,c(u),c(d),i))}};return Ae(n,e?{add:Un("add"),set:Un("set"),delete:Un("delete"),clear:Un("clear")}:{add(r){const o=te(this),i=Bn(o),l=te(r),a=!t&&!Qe(r)&&!Pt(r)?l:r;return i.has.call(o,a)||Ne(r,a)&&i.has.call(o,r)||Ne(l,a)&&i.has.call(o,l)||(o.add(a),Ct(o,"add",a,a)),this},set(r,o){!t&&!Qe(o)&&!Pt(o)&&(o=te(o));const i=te(this),{has:l,get:a}=Bn(i);let c=l.call(i,r);c||(r=te(r),c=l.call(i,r));const u=a.call(i,r);return i.set(r,o),c?Ne(o,u)&&Ct(i,"set",r,o):Ct(i,"add",r,o),this},delete(r){const o=te(this),{has:i,get:l}=Bn(o);let a=i.call(o,r);a||(r=te(r),a=i.call(o,r)),l&&l.call(o,r);const c=o.delete(r);return a&&Ct(o,"delete",r,void 0),c},clear(){const r=te(this),o=r.size!==0,i=r.clear();return o&&Ct(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ea(r,e,t)}),n}function kr(e,t){const n=ta(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(oe(n,r)&&r in s?n:s,r,o)}const na={get:kr(!1,!1)},sa={get:kr(!1,!0)},ra={get:kr(!0,!1)};const hi=new WeakMap,pi=new WeakMap,mi=new WeakMap,oa=new WeakMap;function ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jn(e){return Pt(e)?e:Cr(e,!1,Ql,na,hi)}function gi(e){return Cr(e,!1,Zl,sa,pi)}function Zs(e){return Cr(e,!0,Xl,ra,mi)}function Cr(e,t,n,s,r){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=ia(Pl(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function At(e){return Pt(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function Pt(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function ys(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function Rr(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&Jo(e,"__v_skip",!0),e}const ot=e=>ce(e)?jn(e):e,ln=e=>ce(e)?Zs(e):e;function be(e){return e?e.__v_isRef===!0:!1}function ae(e){return vi(e,!1)}function la(e){return vi(e,!0)}function vi(e,t){return be(e)?e:new aa(e,t)}class aa{constructor(t,n){this.dep=new _s,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:ot(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Qe(t)||Pt(t);t=s?t:te(t),Ne(t,n)&&(this._rawValue=t,this._value=s?t:ot(t),this.dep.trigger())}}function _(e){return be(e)?e.value:e}const ca={get:(e,t,n)=>t==="__v_raw"?e:_(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function _i(e){return At(e)?e:new Proxy(e,ca)}class ua{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new _s,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function fa(e){return new ua(e)}function da(e){const t=q(e)?new Array(e.length):{};for(const n in e)t[n]=pa(e,n);return t}class ha{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Ze(n)?n:String(n),this._raw=te(t);let r=!0,o=t;if(!q(t)||Ze(this._key)||!ps(this._key))do r=!ys(o)||Qe(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&&be(this._raw[this._key])){const n=this._object[this._key];if(be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Kl(this._raw,this._key)}}function pa(e,t,n){return new ha(e,t,n)}class ma{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _s(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=An-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 ri(this,!0),!0}get value(){const t=this.dep.track();return li(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ga(e,t,n=!1){let s,r;return z(e)?s=e:(s=e.get,r=e.set),new ma(s,r,n)}const qn={},ns=new WeakMap;let qt;function va(e,t=!1,n=qt){if(n){let s=ns.get(n);s||ns.set(n,s=[]),s.push(e)}}function _a(e,t,n=ne){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,c=D=>r?D:Qe(D)||r===!1||r===0?Rt(D,1):Rt(D);let u,d,p,v,T=!1,k=!1;if(be(e)?(d=()=>e.value,T=Qe(e)):At(e)?(d=()=>c(e),T=!0):q(e)?(k=!0,T=e.some(D=>At(D)||Qe(D)),d=()=>e.map(D=>{if(be(D))return D.value;if(At(D))return c(D);if(z(D))return a?a(D,2):D()})):z(e)?t?d=a?()=>a(e,2):e:d=()=>{if(p){Mt();try{p()}finally{Ot()}}const D=qt;qt=u;try{return a?a(e,3,[v]):e(v)}finally{qt=D}}:d=mt,t&&r){const D=d,J=r===!0?1/0:r;d=()=>Rt(D(),J)}const j=ti(),H=()=>{u.stop(),j&&j.active&&br(j.effects,u)};if(o&&t){const D=t;t=(...J)=>{const ve=D(...J);return H(),ve}}let N=k?new Array(e.length).fill(qn):qn;const V=D=>{if(!(!(u.flags&1)||!u.dirty&&!D))if(t){const J=u.run();if(D||r||T||(k?J.some((ve,re)=>Ne(ve,N[re])):Ne(J,N))){p&&p();const ve=qt;qt=u;try{const re=[J,N===qn?void 0:k&&N[0]===qn?[]:N,v];N=J,a?a(t,3,re):t(...re)}finally{qt=ve}}}else u.run()};return l&&l(V),u=new ni(d),u.scheduler=i?()=>i(V,!1):V,v=D=>va(D,!1,u),p=u.onStop=()=>{const D=ns.get(u);if(D){if(a)a(D,4);else for(const J of D)J();ns.delete(u)}},t?s?V(!0):N=u.run():i?i(V.bind(null,!0),!0):u.run(),H.pause=u.pause.bind(u),H.resume=u.resume.bind(u),H.stop=H,H}function Rt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))Rt(e.value,t,n);else if(q(e))for(let s=0;s<e.length;s++)Rt(e[s],t,n);else if(Ko(e)||nn(e))e.forEach(s=>{Rt(s,t,n)});else if(Go(e)){for(const s in e)Rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Rt(e[s],t,n)}return e}function Fn(e,t,n,s){try{return s?e(...s):e()}catch(r){xs(r,t,n)}}function it(e,t,n,s){if(z(e)){const r=Fn(e,t,n,s);return r&&zo(r)&&r.catch(o=>{xs(o,t,n)}),r}if(q(e)){const r=[];for(let o=0;o<e.length;o++)r.push(it(e[o],t,n,s));return r}}function xs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ne;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,a,c)===!1)return}l=l.parent}if(o){Mt(),Fn(o,null,10,[e,a,c]),Ot();return}}ba(e,n,r,s,i)}function ba(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ke=[];let dt=-1;const sn=[];let Dt=null,Xt=0;const bi=Promise.resolve();let ss=null;function Ar(e){const t=ss||bi;return e?t.then(this?e.bind(this):e):t}function ya(e){let t=dt+1,n=Ke.length;for(;t<n;){const s=t+n>>>1,r=Ke[s],o=Mn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Tr(e){if(!(e.flags&1)){const t=Mn(e),n=Ke[Ke.length-1];!n||!(e.flags&2)&&t>=Mn(n)?Ke.push(e):Ke.splice(ya(t),0,e),e.flags|=1,yi()}}function yi(){ss||(ss=bi.then(wi))}function xa(e){if(!q(e))Dt&&e.id===-1?Dt.splice(Xt+1,0,e):e.flags&1||(sn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)sn.push(e[t]);yi()}function Wr(e,t,n=dt+1){for(;n<Ke.length;n++){const s=Ke[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ke.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function xi(e){if(sn.length){const t=[...new Set(sn)].sort((n,s)=>Mn(n)-Mn(s));if(sn.length=0,Dt){for(let n=0;n<t.length;n++)Dt.push(t[n]);return}for(Dt=t,Xt=0;Xt<Dt.length;Xt++){const n=Dt[Xt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Dt=null,Xt=0}}const Mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wi(e){try{for(dt=0;dt<Ke.length;dt++){const t=Ke[dt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;dt<Ke.length;dt++){const t=Ke[dt];t&&(t.flags&=-2)}dt=-1,Ke.length=0,xi(),ss=null,(Ke.length||sn.length)&&wi()}}let $e=null,Si=null;function rs(e){const t=$e;return $e=e,Si=e&&e.type.__scopeId||null,t}function Ce(e,t=$e,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&as(-1);const o=rs(t),i=Tt.length;let l;try{l=e(...r)}finally{for(let a=Tt.length;a>i;a--)Ir();rs(o),s._d&&as(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Ei(e,t){if($e===null)return e;const n=Rs($e),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=ne]=t[r];o&&(z(o)&&(o={mounted:o,updated:o}),o.deep&&Rt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Bt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(Mt(),it(a,n,8,[e.el,l,e,t]),Ot())}}function Jn(e,t){if(Fe){let n=Fe.provides;const s=Fe.parent&&Fe.parent.provides;s===n&&(n=Fe.provides=Object.create(s)),n[e]=t}}function Xe(e,t,n=!1){const s=Lr();if(s||Wt){let r=Wt?Wt._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&&z(t)?t.call(s&&s.proxy):t}}function wa(){return!!(Lr()||Wt)}const Sa=Symbol.for("v-scx"),Ea=()=>Xe(Sa);function ka(e,t){return Mr(e,null,{flush:"sync"})}function jt(e,t,n){return Mr(e,t,n)}function Mr(e,t,n=ne){const{immediate:s,deep:r,flush:o,once:i}=n,l=Ae({},n),a=t&&s||!t&&o!=="post";let c;if($n){if(o==="sync"){const v=Ea();c=v.__watcherHandles||(v.__watcherHandles=[])}else if(!a){const v=()=>{};return v.stop=mt,v.resume=mt,v.pause=mt,v}}const u=Fe;l.call=(v,T,k)=>it(v,u,T,k);let d=!1;o==="post"?l.scheduler=v=>{We(v,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(v,T)=>{T?v():Tr(v)}),l.augmentJob=v=>{t&&(v.flags|=4),d&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const p=_a(e,t,l);return $n&&(c?c.push(p):a&&p()),p}function Ca(e,t,n){const s=this.proxy,r=ge(e)?e.includes(".")?ki(s,e):()=>s[e]:e.bind(s,s);let o;z(t)?o=t:(o=t.handler,n=t);const i=Hn(this),l=Mr(r,o.bind(s),n);return i(),l}function ki(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 Ra=Symbol("_vte"),ws=e=>e.__isTeleport,Ls=Symbol("_leaveCb");function Aa(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_t){t=n;break}}return t}function Ci(e){if(!Pr(e))return ws(e.type)&&e.children?Aa(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&z(n.default))return n.default()}}function Or(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Or(ws(n.type)&&Ci(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function le(e,t){return z(e)?Ae({name:e.name},t,{setup:e}):e}function Ri(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const os=new WeakMap;function wn(e,t,n,s,r=!1){if(q(e)){e.forEach((k,j)=>wn(k,t&&(q(t)?t[j]:t),n,s,r));return}if(rn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&wn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Rs(s.component):s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ne?l.refs={}:l.refs,d=l.setupState,p=te(d),v=d===ne?qo:k=>Gr(u,k)?!1:oe(p,k),T=(k,j)=>!(j&&Gr(u,j));if(c!=null&&c!==a){if(Jr(t),ge(c))u[c]=null,v(c)&&(d[c]=null);else if(be(c)){const k=t;T(c,k.k)&&(c.value=null),k.k&&(u[k.k]=null)}}if(z(a))Fn(a,l,12,[i,u]);else{const k=ge(a),j=be(a);if(k||j){const H=()=>{if(e.f){const N=k?v(a)?d[a]:u[a]:T()||!e.k?a.value:u[e.k];if(r)q(N)&&br(N,o);else if(q(N))N.includes(o)||N.push(o);else if(k)u[a]=[o],v(a)&&(d[a]=u[a]);else{const V=[o];T(a,e.k)&&(a.value=V),e.k&&(u[e.k]=V)}}else k?(u[a]=i,v(a)&&(d[a]=i)):j&&(T(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const N=()=>{H(),os.delete(e)};N.id=-1,os.set(e,N),We(N,n)}else Jr(e),H()}}}function Jr(e){const t=os.get(e);t&&(t.flags|=8,os.delete(e))}vs().requestIdleCallback;vs().cancelIdleCallback;const rn=e=>!!e.type.__asyncLoader,Pr=e=>e.type.__isKeepAlive;function Ta(e,t){Ai(e,"a",t)}function Ma(e,t){Ai(e,"da",t)}function Ai(e,t,n=Fe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ss(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Pr(r.parent.vnode)&&Oa(s,t,n,r),r=r.parent}}function Oa(e,t,n,s){const r=Ss(t,e,s,!0);Mi(()=>{br(s[t],r)},n)}function Ss(e,t,n=Fe,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Mt();const l=Hn(n),a=it(t,n,e,i);return l(),Ot(),a});return s?r.unshift(o):r.push(o),o}}const Nt=e=>(t,n=Fe)=>{(!$n||e==="sp")&&Ss(e,(...s)=>t(...s),n)},Pa=Nt("bm"),Es=Nt("m"),Na=Nt("bu"),$a=Nt("u"),Ti=Nt("bum"),Mi=Nt("um"),Ia=Nt("sp"),La=Nt("rtg"),Da=Nt("rtc");function Va(e,t=Fe){Ss("ec",e,t)}const Oi="components";function ja(e,t){return Ni(Oi,e,!0,t)||e}const Pi=Symbol.for("v-ndc");function Fa(e){return ge(e)?Ni(Oi,e,!1)||e:e||Pi}function Ni(e,t,n=!0,s=!1){const r=$e||Fe;if(r){const o=r.type;{const l=Ec(o,!1);if(l&&(l===t||l===He(t)||l===gs(He(t))))return o}const i=Yr(r[e]||o[e],t)||Yr(r.appContext[e],t);return!i&&s?o:i}}function Yr(e,t){return e&&(e[t]||e[He(t)]||e[gs(He(t))])}function Ie(e,t,n,s){let r;const o=n,i=q(e);if(i||ge(e)){const l=i&&At(e);let a=!1,c=!1;l&&(a=!Qe(e),c=Pt(e),e=bs(e)),r=new Array(e.length);for(let u=0,d=e.length;u<d;u++)r[u]=t(a?c?ln(ot(e[u])):ot(e[u]):e[u],u,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(ce(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function er(e,t,n,s,r,o){if(n==null&&(n={}),$e.ce||$e.parent&&rn($e.parent)&&$e.parent.ce){const c=n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),x(),se(ie,null,[I("slot",c,s&&s())],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=Tt.length;x();let a;try{const c=i&&$i(i(n)),u=n.key||o||c&&c.key;a=se(ie,{key:(u&&!Ze(u)?u:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let u=Tt.length;u>l;u--)Ir();throw c}finally{i&&i._c&&(i._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function $i(e){return e.some(t=>Pn(t)?!(t.type===_t||t.type===ie&&!$i(t.children)):!0)?e:null}const tr=e=>e?tl(e)?Rs(e):tr(e.parent):null,Sn=Ae(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=>tr(e.parent),$root:e=>tr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Li(e),$forceUpdate:e=>e.f||(e.f=()=>{Tr(e.update)}),$nextTick:e=>e.n||(e.n=Ar.bind(e.proxy)),$watch:e=>Ca.bind(e)}),Ds=(e,t)=>e!==ne&&!e.__isScriptSetup&&oe(e,t),Ha={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Ds(s,t))return i[t]=1,s[t];if(r!==ne&&oe(r,t))return i[t]=2,r[t];if(oe(o,t))return i[t]=3,o[t];if(n!==ne&&oe(n,t))return i[t]=4,n[t];nr&&(i[t]=0)}}const c=Sn[t];let u,d;if(c)return t==="$attrs"&&je(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ne&&oe(n,t))return i[t]=4,n[t];if(d=a.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Ds(r,t)?(r[t]=n,!0):s!==ne&&oe(s,t)?(s[t]=n,!0):oe(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:i}},l){let a;return!!(n[l]||e!==ne&&l[0]!=="$"&&oe(e,l)||Ds(t,l)||oe(o,l)||oe(s,l)||oe(Sn,l)||oe(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function is(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ba(e,t){return!e||!t?e||t:q(e)&&q(t)?e.concat(t):Ae({},is(e),is(t))}let nr=!0;function Ua(e){const t=Li(e),n=e.proxy,s=e.ctx;nr=!1,t.beforeCreate&&Qr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:v,updated:T,activated:k,deactivated:j,beforeDestroy:H,beforeUnmount:N,destroyed:V,unmounted:D,render:J,renderTracked:ve,renderTriggered:re,errorCaptured:Y,serverPrefetch:Q,expose:pe,inheritAttrs:Te,components:Be,directives:Ve,filters:bt}=t;if(c&&qa(c,s,null),i)for(const W in i){const ee=i[W];z(ee)&&(s[W]=ee.bind(n))}if(r){const W=r.call(n,n);ce(W)&&(e.data=jn(W))}if(nr=!0,o)for(const W in o){const ee=o[W],st=z(ee)?ee.bind(n,n):z(ee.get)?ee.get.bind(n,n):mt,Me=!z(ee)&&z(ee.set)?ee.set.bind(n):mt,et=L({get:st,set:Me});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>et.value,set:Oe=>et.value=Oe})}if(l)for(const W in l)Ii(l[W],s,n,W);if(a){const W=z(a)?a.call(n):a;Reflect.ownKeys(W).forEach(ee=>{Jn(ee,W[ee])})}u&&Qr(u,e,"c");function de(W,ee){q(ee)?ee.forEach(st=>W(st.bind(n))):ee&&W(ee.bind(n))}if(de(Pa,d),de(Es,p),de(Na,v),de($a,T),de(Ta,k),de(Ma,j),de(Va,Y),de(Da,ve),de(La,re),de(Ti,N),de(Mi,D),de(Ia,Q),q(pe))if(pe.length){const W=e.exposed||(e.exposed={});pe.forEach(ee=>{Object.defineProperty(W,ee,{get:()=>n[ee],set:st=>n[ee]=st,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===mt&&(e.render=J),Te!=null&&(e.inheritAttrs=Te),Be&&(e.components=Be),Ve&&(e.directives=Ve),Q&&Ri(e)}function qa(e,t,n=mt){q(e)&&(e=sr(e));for(const s in e){const r=e[s];let o;ce(r)?"default"in r?o=Xe(r.from||s,r.default,!0):o=Xe(r.from||s):o=Xe(r),be(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Qr(e,t,n){it(q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,s){let r=s.includes(".")?ki(n,s):()=>n[s];if(ge(e)){const o=t[e];z(o)&&jt(r,o)}else if(z(e))jt(r,e.bind(n));else if(ce(e))if(q(e))e.forEach(o=>Ii(o,t,n,s));else{const o=z(e.handler)?e.handler.bind(n):t[e.handler];z(o)&&jt(r,o,e)}}function Li(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>ls(a,c,i,!0)),ls(a,t,i)),ce(t)&&o.set(t,a),a}function ls(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ls(e,o,n,!0),r&&r.forEach(i=>ls(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Ka[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Ka={data:Xr,props:Zr,emits:Zr,methods:vn,computed:vn,beforeCreate:Ue,created:Ue,beforeMount:Ue,mounted:Ue,beforeUpdate:Ue,updated:Ue,beforeDestroy:Ue,beforeUnmount:Ue,destroyed:Ue,unmounted:Ue,activated:Ue,deactivated:Ue,errorCaptured:Ue,serverPrefetch:Ue,components:vn,directives:vn,watch:Wa,provide:Xr,inject:za};function Xr(e,t){return t?e?function(){return Ae(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function za(e,t){return vn(sr(e),sr(t))}function sr(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ue(e,t){return e?[...new Set([].concat(e,t))]:t}function vn(e,t){return e?Ae(Object.create(null),e,t):t}function Zr(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:Ae(Object.create(null),is(e),is(t??{})):t}function Wa(e,t){if(!e)return t;if(!t)return e;const n=Ae(Object.create(null),e);for(const s in t)n[s]=Ue(e[s],t[s]);return n}function Di(){return{app:null,config:{isNativeTag:qo,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 Ga=0;function Ja(e,t){return function(s,r=null){z(s)||(s=Ae({},s)),r!=null&&!ce(r)&&(r=null);const o=Di(),i=new WeakSet,l=[];let a=!1;const c=o.app={_uid:Ga++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cc,get config(){return o.config},set config(u){},use(u,...d){return i.has(u)||(u&&z(u.install)?(i.add(u),u.install(c,...d)):z(u)&&(i.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,p){if(!a){const v=c._ceVNode||I(s,r);return v.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(v,u,p),a=!0,c._container=u,u.__vue_app__=c,Rs(v.component)}},onUnmount(u){l.push(u)},unmount(){a&&(it(l,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=Wt;Wt=c;try{return u()}finally{Wt=d}}};return c}}let Wt=null;function Ya(e,t,n=ne){const s=Lr(),r=He(t),o=Ht(t),i=Vi(e,r),l=fa((a,c)=>{let u,d=ne,p;return ka(()=>{const v=e[r];Ne(u,v)&&(u=v,c())}),{get(){return a(),n.get?n.get(u):u},set(v){const T=n.set?n.set(v):v;if(!Ne(T,u)&&!(d!==ne&&Ne(v,d)))return;const k=s.vnode.props,j=!!(k&&(t in k||r in k||o in k)&&(`onUpdate:${t}`in k||`onUpdate:${r}`in k||`onUpdate:${o}`in k));j||(u=v,c()),s.emit(`update:${t}`,T),Ne(v,d)&&(Ne(v,T)&&!Ne(T,p)||j&&d!==ne&&!Ne(T,u))&&c(),d=v,p=T}}});return l[Symbol.iterator]=()=>{let a=0;return{next(){return a<2?{value:a++?i||ne:l,done:!1}:{done:!0}}}},l}const Vi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${He(t)}Modifiers`]||e[`${Ht(t)}Modifiers`];function Qa(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ne;let r=n;const o=t.startsWith("update:"),i=o&&Vi(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>ge(u)?u.trim():u)),i.number&&(r=n.map(yr)));let l,a=s[l=Os(t)]||s[l=Os(He(t))];!a&&o&&(a=s[l=Os(Ht(t))]),a&&it(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,it(c,e,6,r)}}const Xa=new WeakMap;function ji(e,t,n=!1){const s=n?Xa:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!z(e)){const a=c=>{const u=ji(c,t,!0);u&&(l=!0,Ae(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(ce(e)&&s.set(e,null),null):(q(o)?o.forEach(a=>i[a]=null):Ae(i,o),ce(e)&&s.set(e,i),i)}function ks(e,t){return!e||!ds(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,Ht(t))||oe(e,t))}function eo(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:d,data:p,setupState:v,ctx:T,inheritAttrs:k}=e,j=rs(e);let H,N;try{if(n.shapeFlag&4){const D=r||s,J=D;H=pt(c.call(J,D,u,d,v,p,T)),N=l}else{const D=t;H=pt(D.length>1?D(d,{attrs:l,slots:i,emit:a}):D(d,null)),N=t.props?l:Za(l)}}catch(D){Tt.length=0,xs(D,e,1),H=I(_t)}let V=H;if(N&&k!==!1){const D=Object.keys(N),{shapeFlag:J}=V;D.length&&J&7&&(o&&D.some(hs)&&(N=ec(N,o)),V=an(V,N,!1,!0))}if(n.dirs&&(V=an(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){const D=ws(V.type)&&Ci(V)||V;Or(D,n.transition)}return H=V,rs(j),H}const Za=e=>{let t;for(const n in e)(n==="class"||n==="style"||ds(n))&&((t||(t={}))[n]=e[n]);return t},ec=(e,t)=>{const n={};for(const s in e)(!hs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tc(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?to(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(Fi(i,s,p)&&!ks(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?to(s,i,c):!0:!!i;return!1}function to(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(Fi(t,e,o)&&!ks(n,o))return!0}return!1}function Fi(e,t,n){const s=e[n],r=t[n];return n==="style"&&ce(s)&&ce(r)?!xr(s,r):s!==r}function nc({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Hi={},Bi=()=>Object.create(Hi),Ui=e=>Object.getPrototypeOf(e)===Hi;function sc(e,t,n,s=!1){const r={},o=Bi();e.propsDefaults=Object.create(null),qi(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:gi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function rc(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=te(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(ks(e.emitsOptions,p))continue;const v=t[p];if(a)if(oe(o,p))v!==o[p]&&(o[p]=v,c=!0);else{const T=He(p);r[T]=rr(a,l,T,v,e,!1)}else v!==o[p]&&(o[p]=v,c=!0)}}}else{qi(e,t,r,o)&&(c=!0);let u;for(const d in l)(!t||!oe(t,d)&&((u=Ht(d))===d||!oe(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(r[d]=rr(a,l,d,void 0,e,!0)):delete r[d]);if(o!==l)for(const d in o)(!t||!oe(t,d))&&(delete o[d],c=!0)}c&&Ct(e.attrs,"set","")}function qi(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(bn(a))continue;const c=t[a];let u;r&&oe(r,u=He(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:ks(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,i=!0)}if(o){const a=te(n),c=l||ne;for(let u=0;u<o.length;u++){const d=o[u];n[d]=rr(r,a,d,c[d],e,!oe(c,d))}}return i}function rr(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=oe(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&z(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=Hn(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Ht(n))&&(s=!0))}return s}const oc=new WeakMap;function Ki(e,t,n=!1){const s=n?oc:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!z(e)){const u=d=>{a=!0;const[p,v]=Ki(d,t,!0);Ae(i,p),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return ce(e)&&s.set(e,tn),tn;if(q(o))for(let u=0;u<o.length;u++){const d=He(o[u]);no(d)&&(i[d]=ne)}else if(o)for(const u in o){const d=He(u);if(no(d)){const p=o[u],v=i[d]=q(p)||z(p)?{type:p}:Ae({},p),T=v.type;let k=!1,j=!0;if(q(T))for(let H=0;H<T.length;++H){const N=T[H],V=z(N)&&N.name;if(V==="Boolean"){k=!0;break}else V==="String"&&(j=!1)}else k=z(T)&&T.name==="Boolean";v[0]=k,v[1]=j,(k||oe(v,"default"))&&l.push(d)}}const c=[i,l];return ce(e)&&s.set(e,c),c}function no(e){return e[0]!=="$"&&!bn(e)}const Nr=e=>e==="_"||e==="_ctx"||e==="$stable",$r=e=>q(e)?e.map(pt):[pt(e)],ic=(e,t,n)=>{if(t._n)return t;const s=Ce((...r)=>$r(t(...r)),n);return s._c=!1,s},zi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Nr(r))continue;const o=e[r];if(z(o))t[r]=ic(r,o,s);else if(o!=null){const i=$r(o);t[r]=()=>i}}},Wi=(e,t)=>{const n=$r(t);e.slots.default=()=>n},Gi=(e,t,n)=>{for(const s in t)(n||!Nr(s))&&(e[s]=t[s])},lc=(e,t,n)=>{const s=e.slots=Bi();if(e.vnode.shapeFlag&32){const r=t._;r?(Gi(s,t,n),n&&Jo(s,"_",r,!0)):zi(t,s)}else t&&Wi(e,t)},ac=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ne;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Gi(r,t,n):(o=!t.$stable,zi(t,r)),i=t}else t&&(Wi(e,t),i={default:1});if(o)for(const l in r)!Nr(l)&&i[l]==null&&delete r[l]},We=hc;function cc(e){return uc(e)}function uc(e,t){const n=vs();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:v=mt,insertStaticContent:T}=e,k=(f,h,g,y=null,w=null,b=null,P=void 0,M=null,A=!!h.dynamicChildren)=>{if(f===h)return;f&&!pn(f,h)&&(y=m(f),Oe(f,w,b,!0),f=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:S,ref:U,shapeFlag:$}=h;switch(S){case Cs:j(f,h,g,y);break;case _t:H(f,h,g,y);break;case js:f==null&&N(h,g,y,P);break;case ie:Be(f,h,g,y,w,b,P,M,A);break;default:$&1?J(f,h,g,y,w,b,P,M,A):$&6?Ve(f,h,g,y,w,b,P,M,A):($&64||$&128)&&S.process(f,h,g,y,w,b,P,M,A,F)}U!=null&&w?wn(U,f&&f.ref,b,h||f,!h):U==null&&f&&f.ref!=null&&wn(f.ref,null,b,f,!0)},j=(f,h,g,y)=>{if(f==null)s(h.el=l(h.children),g,y);else{const w=h.el=f.el;h.children!==f.children&&c(w,h.children)}},H=(f,h,g,y)=>{f==null?s(h.el=a(h.children||""),g,y):h.el=f.el},N=(f,h,g,y)=>{[f.el,f.anchor]=T(f.children,h,g,y,f.el,f.anchor)},V=({el:f,anchor:h},g,y)=>{let w;for(;f&&f!==h;)w=p(f),s(f,g,y),f=w;s(h,g,y)},D=({el:f,anchor:h})=>{let g;for(;f&&f!==h;)g=p(f),r(f),f=g;r(h)},J=(f,h,g,y,w,b,P,M,A)=>{if(h.type==="svg"?P="svg":h.type==="math"&&(P="mathml"),f==null)ve(h,g,y,w,b,P,M,A);else{const S=f.el&&f.el._isVueCE?f.el:null;try{S&&S._beginPatch(),Q(f,h,w,b,P,M,A)}finally{S&&S._endPatch()}}},ve=(f,h,g,y,w,b,P,M)=>{let A,S;const{props:U,shapeFlag:$,transition:B,dirs:K}=f;if(A=f.el=i(f.type,b,U&&U.is,U),$&8?u(A,f.children):$&16&&Y(f.children,A,null,y,w,Vs(f,b),P,M),K&&Bt(f,null,y,"created"),re(A,f,f.scopeId,P,y),U){for(const fe in U)fe!=="value"&&!bn(fe)&&o(A,fe,null,U[fe],b,y);"value"in U&&o(A,"value",null,U.value,b),(S=U.onVnodeBeforeMount)&&ft(S,y,f)}K&&Bt(f,null,y,"beforeMount");const Z=fc(w,B);Z&&B.beforeEnter(A),s(A,h,g),((S=U&&U.onVnodeMounted)||Z||K)&&We(()=>{S&&ft(S,y,f),Z&&B.enter(A),K&&Bt(f,null,y,"mounted")},w)},re=(f,h,g,y,w)=>{if(g&&v(f,g),y)for(let b=0;b<y.length;b++)v(f,y[b]);if(w){let b=w.subTree;if(h===b||Xi(b.type)&&(b.ssContent===h||b.ssFallback===h)){const P=w.vnode;re(f,P,P.scopeId,P.slotScopeIds,w.parent)}}},Y=(f,h,g,y,w,b,P,M,A=0)=>{for(let S=A;S<f.length;S++){const U=f[S]=M?kt(f[S]):pt(f[S]);k(null,U,h,g,y,w,b,P,M)}},Q=(f,h,g,y,w,b,P)=>{const M=h.el=f.el;let{patchFlag:A,dynamicChildren:S,dirs:U}=h;A|=f.patchFlag&16;const $=f.props||ne,B=h.props||ne;let K;if(g&&Ut(g,!1),(K=B.onVnodeBeforeUpdate)&&ft(K,g,h,f),U&&Bt(h,f,g,"beforeUpdate"),g&&Ut(g,!0),S&&(!f.dynamicChildren||f.dynamicChildren.length!==S.length)&&(A=0,P=!1,S=null),($.innerHTML&&B.innerHTML==null||$.textContent&&B.textContent==null)&&u(M,""),S?pe(f.dynamicChildren,S,M,g,y,Vs(h,w),b):P||ee(f,h,M,null,g,y,Vs(h,w),b,!1),A>0){if(A&16)Te(M,$,B,g,w);else if(A&2&&$.class!==B.class&&o(M,"class",null,B.class,w),A&4&&o(M,"style",$.style,B.style,w),A&8){const Z=h.dynamicProps;for(let fe=0;fe<Z.length;fe++){const ue=Z[fe],Se=$[ue],Pe=B[ue];(Pe!==Se||ue==="value")&&o(M,ue,Se,Pe,w,g)}}A&1&&f.children!==h.children&&u(M,h.children)}else!P&&S==null&&Te(M,$,B,g,w);((K=B.onVnodeUpdated)||U)&&We(()=>{K&&ft(K,g,h,f),U&&Bt(h,f,g,"updated")},y)},pe=(f,h,g,y,w,b,P)=>{for(let M=0;M<h.length;M++){const A=f[M],S=h[M],U=A.el&&(A.type===ie||!pn(A,S)||A.shapeFlag&198)?d(A.el):g;k(A,S,U,null,y,w,b,P,!0)}},Te=(f,h,g,y,w)=>{if(h!==g){if(h!==ne)for(const b in h)!bn(b)&&!(b in g)&&o(f,b,h[b],null,w,y);for(const b in g){if(bn(b))continue;const P=g[b],M=h[b];P!==M&&b!=="value"&&o(f,b,M,P,w,y)}"value"in g&&o(f,"value",h.value,g.value,w)}},Be=(f,h,g,y,w,b,P,M,A)=>{const S=h.el=f?f.el:l(""),U=h.anchor=f?f.anchor:l("");let{patchFlag:$,dynamicChildren:B,slotScopeIds:K}=h;K&&(M=M?M.concat(K):K),f==null?(s(S,g,y),s(U,g,y),Y(h.children||[],g,U,w,b,P,M,A)):$>0&&$&64&&B&&f.dynamicChildren&&f.dynamicChildren.length===B.length?(pe(f.dynamicChildren,B,g,w,b,P,M),(h.key!=null||w&&h===w.subTree)&&Ji(f,h,!0)):ee(f,h,g,U,w,b,P,M,A)},Ve=(f,h,g,y,w,b,P,M,A)=>{h.slotScopeIds=M,f==null?h.shapeFlag&512?w.ctx.activate(h,g,y,P,A):bt(h,g,y,w,b,P,A):nt(f,h,A)},bt=(f,h,g,y,w,b,P)=>{const M=f.component=bc(f,y,w);if(Pr(f)&&(M.ctx.renderer=F),yc(M,!1,P),M.asyncDep){if(w&&w.registerDep(M,de,P),!f.el){const A=M.subTree=I(_t);H(null,A,h,g),f.placeholder=A.el}}else de(M,f,h,g,w,b,P)},nt=(f,h,g)=>{const y=h.component=f.component;if(tc(f,h,g))if(y.asyncDep&&!y.asyncResolved){W(y,h,g);return}else y.next=h,y.update();else h.el=f.el,y.vnode=h},de=(f,h,g,y,w,b,P)=>{const M=()=>{if(f.isMounted){let{next:$,bu:B,u:K,parent:Z,vnode:fe}=f;{const ct=Yi(f);if(ct){$&&($.el=fe.el,W(f,$,P)),ct.asyncDep.then(()=>{We(()=>{f.isUnmounted||S()},w)});return}}let ue=$,Se;Ut(f,!1),$?($.el=fe.el,W(f,$,P)):$=fe,B&&Gn(B),(Se=$.props&&$.props.onVnodeBeforeUpdate)&&ft(Se,Z,$,fe),Ut(f,!0);const Pe=eo(f),at=f.subTree;f.subTree=Pe,k(at,Pe,d(at.el),m(at),f,w,b),$.el=Pe.el,ue===null&&nc(f,Pe.el),K&&We(K,w),(Se=$.props&&$.props.onVnodeUpdated)&&We(()=>ft(Se,Z,$,fe),w)}else{let $;const{el:B,props:K}=h,{bm:Z,m:fe,parent:ue,root:Se,type:Pe}=f,at=rn(h);Ut(f,!1),Z&&Gn(Z),!at&&($=K&&K.onVnodeBeforeMount)&&ft($,ue,h),Ut(f,!0);{Se.ce&&Se.ce._hasShadowRoot()&&Se.ce._injectChildStyle(Pe,f.parent?f.parent.type:void 0);const ct=f.subTree=eo(f);k(null,ct,g,y,f,w,b),h.el=ct.el}if(fe&&We(fe,w),!at&&($=K&&K.onVnodeMounted)){const ct=h;We(()=>ft($,ue,ct),w)}(h.shapeFlag&256||ue&&rn(ue.vnode)&&ue.vnode.shapeFlag&256)&&f.a&&We(f.a,w),f.isMounted=!0,h=g=y=null}};f.scope.on();const A=f.effect=new ni(M);f.scope.off();const S=f.update=A.run.bind(A),U=f.job=A.runIfDirty.bind(A);U.i=f,U.id=f.uid,A.scheduler=()=>Tr(U),Ut(f,!0),S()},W=(f,h,g)=>{h.component=f;const y=f.vnode.props;f.vnode=h,f.next=null,rc(f,h.props,y,g),ac(f,h.children,g),Mt(),Wr(f),Ot()},ee=(f,h,g,y,w,b,P,M,A=!1)=>{const S=f&&f.children,U=f?f.shapeFlag:0,$=h.children,{patchFlag:B,shapeFlag:K}=h;if(B>0){if(B&128){Me(S,$,g,y,w,b,P,M,A);return}else if(B&256){st(S,$,g,y,w,b,P,M,A);return}}K&8?(U&16&&ze(S,w,b),$!==S&&u(g,$)):U&16?K&16?Me(S,$,g,y,w,b,P,M,A):ze(S,w,b,!0):(U&8&&u(g,""),K&16&&Y($,g,y,w,b,P,M,A))},st=(f,h,g,y,w,b,P,M,A)=>{f=f||tn,h=h||tn;const S=f.length,U=h.length,$=Math.min(S,U);let B;for(B=0;B<$;B++){const K=h[B]=A?kt(h[B]):pt(h[B]);k(f[B],K,g,null,w,b,P,M,A)}S>U?ze(f,w,b,!0,!1,$):Y(h,g,y,w,b,P,M,A,$)},Me=(f,h,g,y,w,b,P,M,A)=>{let S=0;const U=h.length;let $=f.length-1,B=U-1;for(;S<=$&&S<=B;){const K=f[S],Z=h[S]=A?kt(h[S]):pt(h[S]);if(pn(K,Z))k(K,Z,g,null,w,b,P,M,A);else break;S++}for(;S<=$&&S<=B;){const K=f[$],Z=h[B]=A?kt(h[B]):pt(h[B]);if(pn(K,Z))k(K,Z,g,null,w,b,P,M,A);else break;$--,B--}if(S>$){if(S<=B){const K=B+1,Z=K<U?h[K].el:y;for(;S<=B;)k(null,h[S]=A?kt(h[S]):pt(h[S]),g,Z,w,b,P,M,A),S++}}else if(S>B)for(;S<=$;)Oe(f[S],w,b,!0),S++;else{const K=S,Z=S,fe=new Map;for(S=Z;S<=B;S++){const Je=h[S]=A?kt(h[S]):pt(h[S]);Je.key!=null&&fe.set(Je.key,S)}let ue,Se=0;const Pe=B-Z+1;let at=!1,ct=0;const dn=new Array(Pe);for(S=0;S<Pe;S++)dn[S]=0;for(S=K;S<=$;S++){const Je=f[S];if(Se>=Pe){Oe(Je,w,b,!0);continue}let ut;if(Je.key!=null)ut=fe.get(Je.key);else for(ue=Z;ue<=B;ue++)if(dn[ue-Z]===0&&pn(Je,h[ue])){ut=ue;break}ut===void 0?Oe(Je,w,b,!0):(dn[ut-Z]=S+1,ut>=ct?ct=ut:at=!0,k(Je,h[ut],g,null,w,b,P,M,A),Se++)}const Fr=at?dc(dn):tn;for(ue=Fr.length-1,S=Pe-1;S>=0;S--){const Je=Z+S,ut=h[Je],Hr=h[Je+1],Br=Je+1<U?Hr.el||Qi(Hr):y;dn[S]===0?k(null,ut,g,Br,w,b,P,M,A):at&&(ue<0||S!==Fr[ue]?et(ut,g,Br,2):ue--)}}},et=(f,h,g,y,w=null)=>{const{el:b,type:P,transition:M,children:A,shapeFlag:S}=f;if(S&6){et(f.component.subTree,h,g,y);return}if(S&128){f.suspense.move(h,g,y);return}if(S&64){P.move(f,h,g,F);return}if(P===ie){s(b,h,g);for(let $=0;$<A.length;$++)et(A[$],h,g,y);s(f.anchor,h,g);return}if(P===js){V(f,h,g);return}if(y!==2&&S&1&&M)if(y===0)M.persisted&&!b[Ls]?s(b,h,g):(M.beforeEnter(b),s(b,h,g),We(()=>M.enter(b),w));else{const{leave:$,delayLeave:B,afterLeave:K}=M,Z=()=>{f.ctx.isUnmounted?r(b):s(b,h,g)},fe=()=>{const ue=b._isLeaving||!!b[Ls];b._isLeaving&&b[Ls](!0),M.persisted&&!ue?Z():$(b,()=>{Z(),K&&K()})};B?B(b,Z,fe):fe()}else s(b,h,g)},Oe=(f,h,g,y=!1,w=!1)=>{const{type:b,props:P,ref:M,children:A,dynamicChildren:S,shapeFlag:U,patchFlag:$,dirs:B,cacheIndex:K,memo:Z}=f;if($===-2&&(w=!1),M!=null&&(Mt(),wn(M,null,g,f,!0),Ot()),K!=null&&(h.renderCache[K]=void 0),U&256){h.ctx.deactivate(f);return}const fe=U&1&&B,ue=!rn(f);let Se;if(ue&&(Se=P&&P.onVnodeBeforeUnmount)&&ft(Se,h,f),U&6)xt(f.component,g,y);else{if(U&128){f.suspense.unmount(g,y);return}fe&&Bt(f,null,h,"beforeUnmount"),U&64?f.type.remove(f,h,g,F,y):S&&!S.hasOnce&&(b!==ie||$>0&&$&64)?ze(S,h,g,!1,!0):(b===ie&&$&384||!w&&U&16)&&ze(A,h,g),y&&yt(f)}const Pe=Z!=null&&K==null;(ue&&(Se=P&&P.onVnodeUnmounted)||fe||Pe)&&We(()=>{Se&&ft(Se,h,f),fe&&Bt(f,null,h,"unmounted"),Pe&&(f.el=null)},g)},yt=f=>{const{type:h,el:g,anchor:y,transition:w}=f;if(h===ie){$t(g,y);return}if(h===js){D(f);return}const b=()=>{r(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:P,delayLeave:M}=w,A=()=>P(g,b);M?M(f.el,b,A):A()}else b()},$t=(f,h)=>{let g;for(;f!==h;)g=p(f),r(f),f=g;r(h)},xt=(f,h,g)=>{const{bum:y,scope:w,job:b,subTree:P,um:M,m:A,a:S}=f;so(A),so(S),y&&Gn(y),w.stop(),b&&(b.flags|=8,Oe(P,f,h,g)),M&&We(M,h),We(()=>{f.isUnmounted=!0},h)},ze=(f,h,g,y=!1,w=!1,b=0)=>{for(let P=b;P<f.length;P++)Oe(f[P],h,g,y,w)},m=f=>{if(f.shapeFlag&6)return m(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),g=h&&h[Ra];return g?p(g):h};let C=!1;const E=(f,h,g)=>{let y;f==null?h._vnode&&(Oe(h._vnode,null,null,!0),y=h._vnode.component):k(h._vnode||null,f,h,null,null,null,g),h._vnode=f,C||(C=!0,Wr(y),xi(),C=!1)},F={p:k,um:Oe,m:et,r:yt,mt:bt,mc:Y,pc:ee,pbc:pe,n:m,o:e};return{render:E,hydrate:void 0,createApp:Ja(E)}}function Vs({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 Ut({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ji(e,t,n=!1){const s=e.children,r=t.children;if(q(s)&&q(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=kt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Ji(i,l)),l.type===Cs&&(l.patchFlag===-1&&(l=r[o]=kt(l)),l.el=i.el),l.type===_t&&!l.el&&(l.el=i.el)}}function dc(e){const t=e.slice(),n=[0];let s,r,o,i,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<c?o=l+1:i=l;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Yi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yi(t)}function so(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Qi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Qi(t.subTree):null}const Xi=e=>e.__isSuspense;function hc(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):xa(e)}const ie=Symbol.for("v-fgt"),Cs=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),js=Symbol.for("v-stc"),Tt=[];let Ye=null;function x(e=!1){Tt.push(Ye=e?null:[])}function Ir(){Tt.pop(),Ye=Tt[Tt.length-1]||null}let On=1;function as(e,t=!1){On+=e,e<0&&Ye&&t&&(Ye.hasOnce=!0)}function Zi(e){return e.dynamicChildren=On>0?Ye||tn:null,Ir(),On>0&&Ye&&Ye.push(e),e}function O(e,t,n,s,r,o){return Zi(R(e,t,n,s,r,o,!0))}function se(e,t,n,s,r){return Zi(I(e,t,n,s,r,!0))}function Pn(e){return e?e.__v_isVNode===!0:!1}function pn(e,t){return e.type===t.type&&e.key===t.key}const el=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||be(e)||z(e)?{i:$e,r:e,k:t,f:!!n}:e:null);function R(e,t=null,n=null,s=0,r=null,o=e===ie?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&el(t),ref:t&&Yn(t),scopeId:Si,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:$e};return l?(cs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=ge(n)?8:16),On>0&&!i&&Ye&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ye.push(a),a}const I=pc;function pc(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Pi)&&(e=_t),Pn(e)){const l=an(e,t,!0);return n&&cs(l,n),On>0&&!o&&Ye&&(l.shapeFlag&6?Ye[Ye.indexOf(e)]=l:Ye.push(l)),l.patchFlag=-2,l}if(kc(e)&&(e=e.__vccOpts),t){t=mc(t);let{class:l,style:a}=t;l&&!ge(l)&&(t.class=xe(l)),ce(a)&&(ys(a)&&!q(a)&&(a=Ae({},a)),t.style=vt(a))}const i=ge(e)?1:Xi(e)?128:ws(e)?64:ce(e)?4:z(e)?2:0;return R(e,t,n,s,r,i,o,!0)}function mc(e){return e?ys(e)||Ui(e)?Ae({},e):e:null}function an(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?gc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&el(c),ref:t&&t.ref?n&&o?q(o)?o.concat(Yn(t)):[o,Yn(t)]:Yn(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!==ie?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&an(e.ssContent),ssFallback:e.ssFallback&&an(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&Or(u,a.clone(u)),u}function Gt(e=" ",t=0){return I(Cs,null,e,t)}function ye(e="",t=!1){return t?(x(),se(_t,null,e)):I(_t,null,e)}function pt(e){return e==null||typeof e=="boolean"?I(_t):q(e)?I(ie,null,e.slice()):Pn(e)?kt(e):I(Cs,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:an(e)}function cs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),cs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ui(t)?t._ctx=$e:r===3&&$e&&($e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(z(t)){if(s&65){cs(e,{default:t});return}t={default:t,_ctx:$e},n=32}else t=String(t),s&64?(n=16,t=[Gt(t)]):n=8;e.children=t,e.shapeFlag|=n}function gc(...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=xe([t.class,s.class]));else if(r==="style")t.style=vt([t.style,s.style]);else if(ds(r)){const o=t[r],i=s[r];i&&o!==i&&!(q(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!hs(r)&&(t[r]=i)}else r!==""&&(t[r]=s[r])}return t}function ft(e,t,n,s=null){it(e,t,7,[n,s])}const vc=Di();let _c=0;function bc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||vc,o={uid:_c++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ki(s,r),emitsOptions:ji(s,r),emit:null,emitted:null,propsDefaults:ne,inheritAttrs:s.inheritAttrs,ctx:ne,data:ne,props:ne,attrs:ne,slots:ne,refs:ne,setupState:ne,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=Qa.bind(null,o),e.ce&&e.ce(o),o}let Fe=null;const Lr=()=>Fe||$e;let us,Nn;{const e=vs(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};us=t("__VUE_INSTANCE_SETTERS__",n=>Fe=n),Nn=t("__VUE_SSR_SETTERS__",n=>$n=n)}const Hn=e=>{const t=Fe;return us(e),e.scope.on(),()=>{e.scope.off(),us(t)}},ro=()=>{Fe&&Fe.scope.off(),us(null)};function tl(e){return e.vnode.shapeFlag&4}let $n=!1;function yc(e,t=!1,n=!1){t&&Nn(t);const{props:s,children:r}=e.vnode,o=tl(e);sc(e,s,o,t),lc(e,r,n||t);const i=o?xc(e,t):void 0;return t&&Nn(!1),i}function xc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ha);const{setup:s}=n;if(s){Mt();const r=e.setupContext=s.length>1?Sc(e):null,o=Hn(e),i=Fn(s,e,0,[e.props,r]),l=zo(i);if(Ot(),o(),(l||e.sp)&&!rn(e)&&Ri(e),l){if(i.then(ro,ro),t)return i.then(a=>{Nn(!0);try{oo(e,a,t)}finally{Nn(!1)}}).catch(a=>{xs(a,e,0)});e.asyncDep=i}else oo(e,i)}else nl(e)}function oo(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=_i(t)),nl(e)}function nl(e,t,n){const s=e.type;e.render||(e.render=s.render||mt);{const r=Hn(e);Mt();try{Ua(e)}finally{Ot(),r()}}}const wc={get(e,t){return je(e,"get",""),e[t]}};function Sc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,wc),slots:e.slots,emit:e.emit,expose:t}}function Rs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_i(Rr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sn)return Sn[n](e)},has(t,n){return n in t||n in Sn}})):e.proxy}function Ec(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function kc(e){return z(e)&&"__vccOpts"in e}const L=(e,t)=>ga(e,t,$n);function In(e,t,n){try{as(-1);const s=arguments.length;return s===2?ce(t)&&!q(t)?Pn(t)?I(e,null,[t]):I(e,t):I(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pn(n)&&(n=[n]),I(e,t,n))}finally{as(1)}}const Cc="3.5.41";let or;const io=typeof window<"u"&&window.trustedTypes;if(io)try{or=io.createPolicy("vue",{createHTML:e=>e})}catch{}const sl=or?e=>or.createHTML(e):e=>e,Rc="http://www.w3.org/2000/svg",Ac="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,lo=Et&&Et.createElement("template"),Tc={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"?Et.createElementNS(Rc,e):t==="mathml"?Et.createElementNS(Ac,e):n?Et.createElement(e,{is:n}):Et.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{lo.innerHTML=sl(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=lo.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mc=Symbol("_vtc");function Oc(e,t,n){const s=e[Mc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const fs=Symbol("_vod"),rl=Symbol("_vsh"),Pc={name:"show",beforeMount(e,{value:t},{transition:n}){e[fs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mn(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),mn(e,!0),s.enter(e)):s.leave(e,()=>{mn(e,!1)}):mn(e,t))},beforeUnmount(e,{value:t}){mn(e,t)}};function mn(e,t){e.style.display=t?e[fs]:"none",e[rl]=!t}const Nc=Symbol(""),$c=/(?:^|;)\s*display\s*:/;function Ic(e,t,n){const s=e.style,r=ge(n);let o=!1;if(n&&!r){if(t)if(ge(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&_n(s,l,"")}else for(const i in t)n[i]==null&&_n(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?Dc(e,i,!ge(t)&&t?t[i]:void 0,l)||_n(s,i,l):_n(s,i,"")}}else if(r){if(t!==n){const i=s[Nc];i&&(n+=";"+i),s.cssText=n,o=$c.test(n)}}else t&&e.removeAttribute("style");fs in e&&(e[fs]=o?s.display:"",e[rl]&&(s.display="none"))}const ao=/\s*!important$/;function _n(e,t,n){if(q(n))n.forEach(s=>_n(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Lc(e,t);ao.test(n)?e.setProperty(Ht(s),n.replace(ao,""),"important"):e[s]=n}}const co=["Webkit","Moz","ms"],Fs={};function Lc(e,t){const n=Fs[t];if(n)return n;let s=He(t);if(s!=="filter"&&s in e)return Fs[t]=s;s=gs(s);for(let r=0;r<co.length;r++){const o=co[r]+s;if(o in e)return Fs[t]=o}return t}function Dc(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ge(s)&&n===s}const uo="http://www.w3.org/1999/xlink";function fo(e,t,n,s,r,o=Fl(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(uo,t.slice(6,t.length)):e.setAttributeNS(uo,t,n):n==null||o&&!Yo(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ze(n)?String(n):n)}function ho(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?sl(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Yo(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Zt(e,t,n,s){e.addEventListener(t,n,s)}function Vc(e,t,n,s){e.removeEventListener(t,n,s)}const po=Symbol("_vei");function jc(e,t,n,s,r=null){const o=e[po]||(e[po]={}),i=o[t];if(s&&i)i.value=s;else{const[l,a]=Bc(t);if(s){const c=o[t]=Kc(s,r);Zt(e,l,c,a)}else i&&(Vc(e,l,i,a),o[t]=void 0)}}const Fc=/(Once|Passive|Capture)$/,Hc=/^on:?(?:Once|Passive|Capture)$/;function Bc(e){let t,n;for(;(n=e.match(Fc))&&!Hc.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Ht(e.slice(2)),t]}let Hs=0;const Uc=Promise.resolve(),qc=()=>Hs||(Uc.then(()=>Hs=0),Hs=Date.now());function Kc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(q(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),l=[s];for(let a=0;a<i.length&&!s._stopped;a++){const c=i[a];c&&it(c,t,5,l)}}else it(r,t,5,[s])};return n.value=e,n.attached=qc(),n}const mo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zc=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Oc(e,s,i):t==="style"?Ic(e,n,s):ds(t)?hs(t)||jc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wc(e,t,s,i))?(ho(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fo(e,t,s,i,o,t!=="value")):e._isVueCE&&(Gc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ge(s)))?ho(e,He(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fo(e,t,s,i))};function Wc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&mo(t)&&z(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 mo(t)&&ge(n)?!1:t in e}function Gc(e,t){const n=e._def.props;if(!n)return!1;const s=He(t);return Array.isArray(n)?n.some(r=>He(r)===s):Object.keys(n).some(r=>He(r)===s)}const go=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Gn(t,n):t};function Jc(e){e.target.composing=!0}function vo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Kn=Symbol("_assign"),zn=Symbol("_initialValue");function Bs(e,t,n){return t&&(e=e.trim()),n&&(e=yr(e)),e}const Yc={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[zn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[zn]=e.defaultValue.replace(/\r\n?/g,`
`))),e[Kn]=go(r);const o=s||r.props&&r.props.type==="number";Zt(e,t?"change":"input",i=>{i.target.composing||e[Kn](Bs(e.value,n,o))}),(n||o)&&Zt(e,"change",()=>{e.value=Bs(e.value,n,o)}),t||(Zt(e,"compositionstart",Jc),Zt(e,"compositionend",vo),Zt(e,"change",vo))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",o=e[zn];delete e[zn],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Kn](Bs(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[Kn]=go(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?yr(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a)}},Qc=["ctrl","shift","alt","meta"],Xc={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)=>Qc.some(n=>e[`${n}Key`]&&!t.includes(n))},ol=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i<t.length;i++){const l=Xc[t[i]];if(l&&l(r,t))return}return e(r,...o)}))},Zc=Ae({patchProp:zc},Tc);let _o;function eu(){return _o||(_o=cc(Zc))}const tu=((...e)=>{const t=eu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=su(s);if(!r)return;const o=t._component;!z(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,nu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function nu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function su(e){return ge(e)?document.querySelector(e):e}let il;const As=e=>il=e,ll=Symbol();function ir(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var En;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(En||(En={}));function ru(){const e=ei(!0),t=e.run(()=>ae({}));let n=[],s=[];const r=Rr({install(o){As(r),r._a=o,o.provide(ll,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const al=()=>{};function bo(e,t,n,s=al){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&ti()&&Bl(r),r}function Yt(e,...t){e.forEach(n=>{n(...t)})}const ou=e=>e(),yo=Symbol(),Us=Symbol();function lr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];ir(r)&&ir(s)&&e.hasOwnProperty(n)&&!be(s)&&!At(s)?e[n]=lr(r,s):e[n]=s}return e}const iu=Symbol();function lu(e){return!ir(e)||!Object.prototype.hasOwnProperty.call(e,iu)}const{assign:Lt}=Object;function au(e){return!!(be(e)&&e.effect)}function cu(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=r?r():{});const u=da(n.state.value[e]);return Lt(u,o,Object.keys(i||{}).reduce((d,p)=>(d[p]=Rr(L(()=>{As(n);const v=n._s.get(e);return i[p].call(v,v)})),d),{}))}return a=cl(e,c,t,n,s,!0),a}function cl(e,t,n={},s,r,o){let i;const l=Lt({actions:{}},n),a={deep:!0};let c,u,d=new Set,p=new Set,v;const T=s.state.value[e];!o&&!T&&(s.state.value[e]={});let k;function j(Y){let Q;c=u=!1,typeof Y=="function"?(Y(s.state.value[e]),Q={type:En.patchFunction,storeId:e,events:v}):(lr(s.state.value[e],Y),Q={type:En.patchObject,payload:Y,storeId:e,events:v});const pe=k=Symbol();Ar().then(()=>{k===pe&&(c=!0)}),u=!0,Yt(d,Q,s.state.value[e])}const H=o?function(){const{state:Q}=n,pe=Q?Q():{};this.$patch(Te=>{Lt(Te,pe)})}:al;function N(){i.stop(),d.clear(),p.clear(),s._s.delete(e)}const V=(Y,Q="")=>{if(yo in Y)return Y[Us]=Q,Y;const pe=function(){As(s);const Te=Array.from(arguments),Be=new Set,Ve=new Set;function bt(W){Be.add(W)}function nt(W){Ve.add(W)}Yt(p,{args:Te,name:pe[Us],store:J,after:bt,onError:nt});let de;try{de=Y.apply(this&&this.$id===e?this:J,Te)}catch(W){throw Yt(Ve,W),W}return de instanceof Promise?de.then(W=>(Yt(Be,W),W)).catch(W=>(Yt(Ve,W),Promise.reject(W))):(Yt(Be,de),de)};return pe[yo]=!0,pe[Us]=Q,pe},D={_p:s,$id:e,$onAction:bo.bind(null,p),$patch:j,$reset:H,$subscribe(Y,Q={}){const pe=bo(d,Y,Q.detached,()=>Te()),Te=i.run(()=>jt(()=>s.state.value[e],Be=>{(Q.flush==="sync"?u:c)&&Y({storeId:e,type:En.direct,events:v},Be)},Lt({},a,Q)));return pe},$dispose:N},J=jn(D);s._s.set(e,J);const re=(s._a&&s._a.runWithContext||ou)(()=>s._e.run(()=>(i=ei()).run(()=>t({action:V}))));for(const Y in re){const Q=re[Y];if(be(Q)&&!au(Q)||At(Q))o||(T&&lu(Q)&&(be(Q)?Q.value=T[Y]:lr(Q,T[Y])),s.state.value[e][Y]=Q);else if(typeof Q=="function"){const pe=V(Q,Y);re[Y]=pe,l.actions[Y]=Q}}return Lt(J,re),Lt(te(J),re),Object.defineProperty(J,"$state",{get:()=>s.state.value[e],set:Y=>{j(Q=>{Lt(Q,Y)})}}),s._p.forEach(Y=>{Lt(J,i.run(()=>Y({store:J,app:s._a,pinia:s,options:l})))}),T&&o&&n.hydrate&&n.hydrate(J.$state,T),c=!0,u=!0,J}function uu(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,l){const a=wa();return i=i||(a?Xe(ll,null):null),i&&As(i),i=il,i._s.has(e)||(r?cl(e,t,s,i):cu(e,s,i)),i._s.get(e)}return o.$id=e,o}const en=typeof document<"u";function ul(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ul(e.default)}const me=Object.assign;function qs(e,t){const n={};for(const s in t){const r=t[s];n[s]=lt(r)?r.map(e):e(r)}return n}const kn=()=>{},lt=Array.isArray;function xo(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const fl=/#/g,du=/&/g,hu=/\//g,pu=/=/g,mu=/\?/g,dl=/\+/g,gu=/%5B/g,vu=/%5D/g,hl=/%5E/g,_u=/%60/g,pl=/%7B/g,bu=/%7C/g,ml=/%7D/g,yu=/%20/g;function Dr(e){return e==null?"":encodeURI(""+e).replace(bu,"|").replace(gu,"[").replace(vu,"]")}function xu(e){return Dr(e).replace(pl,"{").replace(ml,"}").replace(hl,"^")}function ar(e){return Dr(e).replace(dl,"%2B").replace(yu,"+").replace(fl,"%23").replace(du,"%26").replace(_u,"`").replace(pl,"{").replace(ml,"}").replace(hl,"^")}function wu(e){return ar(e).replace(pu,"%3D")}function Su(e){return Dr(e).replace(fl,"%23").replace(mu,"%3F")}function Eu(e){return Su(e).replace(hu,"%2F")}function Ln(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const ku=/\/$/,Cu=e=>e.replace(ku,"");function Ks(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=Mu(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:Ln(i)}}function Ru(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Au(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&cn(t.matched[s],n.matched[r])&&gl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function cn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Tu(e[n],t[n]))return!1;return!0}function Tu(e,t){return lt(e)?wo(e,t):lt(t)?wo(t,e):e?.valueOf()===t?.valueOf()}function wo(e,t){return lt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Mu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let cr=(function(e){return e.pop="pop",e.push="push",e})({}),So=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const zs="";function Ou(e){if(!e)if(en){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Cu(e)}const Pu=/^[^#]+#/;function Nu(e,t){return e.replace(Pu,"#")+t}function $u(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Iu=()=>({left:window.scrollX,top:window.scrollY});function Lu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=$u(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Eo(e,t){return(history.state?history.state.position-t:-1)+e}const ur=new Map;function Du(e,t){ur.set(e,t)}function Vu(e){const t=ur.get(e);return ur.delete(e),t}function ju(e){return typeof e=="string"||e&&typeof e=="object"}function vl(e){return typeof e=="string"||typeof e=="symbol"}let _e=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const _l=Symbol("");_e.MATCHER_NOT_FOUND+"",_e.NAVIGATION_GUARD_REDIRECT+"",_e.NAVIGATION_ABORTED+"",_e.NAVIGATION_CANCELLED+"",_e.NAVIGATION_DUPLICATED+"";function un(e,t){return me(new Error,{type:e,[_l]:!0},t)}function St(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Fu=["params","query","hash"];function Hu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Fu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Bu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(dl," "),o=r.indexOf("="),i=Ln(o<0?r:r.slice(0,o)),l=o<0?null:Ln(r.slice(o+1));if(i in t){let a=t[i];lt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function ko(e){let t="";for(let n in e){const s=e[n];if(n=wu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(lt(s)?s.map(r=>r&&ar(r)):[s&&ar(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Uu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=lt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const qu=Symbol(""),Co=Symbol(""),Ts=Symbol(""),Vr=Symbol(""),fr=Symbol("");function gn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Vt(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=p=>{p===!1?a(un(_e.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?a(p):ju(p)?a(un(_e.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},u=o(()=>e.call(s&&s.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(p=>a(p))})}function Ws(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(ul(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Vt(c,n,s,i,l,r))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const d=fu(u)?u.default:u;i.mods[l]=u,i.components[l]=d;const p=(d.__vccOpts||d)[t];return p&&Vt(p,n,s,i,l,r)()}))}}return o}function Ku(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(c=>cn(c,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>cn(c,a))||r.push(a))}return[n,s,r]}function zu(e=""){let t=[],n=[[zs,{}]],s=0;e=Ou(e);function r(l,a={}){s++,s!==n.length&&n.splice(s),n.push([l,a])}function o(l,a,{direction:c,delta:u}){const d={direction:c,delta:u,type:cr.pop};for(const p of t)p(l,a,d)}const i={location:zs,state:{},base:e,createHref:Nu.bind(null,e),replace(l,a){n.splice(s--,1),r(l,a)},push(l,a){r(l,a)},listen(l){return t.push(l),()=>{const a=t.indexOf(l);a>-1&&t.splice(a,1)}},destroy(){t=[],n=[[zs,{}]],s=0},go(l,a=!0){const c=this.location,u=l<0?So.back:So.forward;s=Math.max(0,Math.min(s+l,n.length-1)),a&&o(this.location,c,{direction:u,delta:l})}};return Object.defineProperty(i,"location",{enumerable:!0,get:()=>n[s][0]}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>n[s][1]}),i}let Kt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ee=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ee||{});const Wu={type:Kt.Static,value:""},Gu=/[a-zA-Z0-9_]/;function Ju(e){if(!e)return[[]];if(e==="/")return[[Wu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=Ee.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function d(){c&&(n===Ee.Static?o.push({type:Kt.Static,value:c}):n===Ee.Param||n===Ee.ParamRegExp||n===Ee.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Kt.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==Ee.ParamRegExp){s=n,n=Ee.EscapeNext;continue}switch(n){case Ee.Static:a==="/"?(c&&d(),i()):a===":"?(d(),n=Ee.Param):p();break;case Ee.EscapeNext:p(),n=s;break;case Ee.Param:a==="("?n=Ee.ParamRegExp:Gu.test(a)?p():(d(),n=Ee.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case Ee.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=Ee.ParamRegExpEnd:u+=a;break;case Ee.ParamRegExpEnd:d(),n=Ee.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===Ee.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),r}const Ro="[^/]+?",Yu={sensitive:!1,strict:!1,start:!0,end:!0};var qe=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(qe||{});const Qu=/[.+*?^${}()[\]/\\]/g;function Xu(e,t){const n=me({},Yu,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[qe.Root];n.strict&&!c.length&&(r+="/");for(let d=0;d<c.length;d++){const p=c[d];let v=qe.Segment+(n.sensitive?qe.BonusCaseSensitive:0);if(p.type===Kt.Static)d||(r+="/"),r+=p.value.replace(Qu,"\\$&"),v+=qe.Static;else if(p.type===Kt.Param){const{value:T,repeatable:k,optional:j,regexp:H}=p;o.push({name:T,repeatable:k,optional:j});const N=H||Ro;if(N!==Ro){v+=qe.BonusCustomRegExp;try{`${N}`}catch(D){throw new Error(`Invalid custom RegExp for param "${T}" (${N}): `+D.message)}}let V=k?`((?:${N})(?:/(?:${N}))*)`:`(${N})`;d||(V=j&&c.length<2?`(?:/${V})`:"/"+V),j&&(V+="?"),r+=V,v+=qe.Dynamic,j&&(v+=qe.BonusOptional),k&&(v+=qe.BonusRepeatable),N===".*"&&(v+=qe.BonusWildcard)}u.push(v)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=qe.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(c){const u=c.match(i),d={};if(!u)return null;for(let p=1;p<u.length;p++){const v=u[p]||"",T=o[p-1];d[T.name]=v&&T.repeatable?v.split("/"):v}return d}function a(c){let u="",d=!1;for(const p of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const v of p)if(v.type===Kt.Static)u+=v.value;else if(v.type===Kt.Param){const{value:T,repeatable:k,optional:j}=v,H=T in c?c[T]:"";if(lt(H)&&!k)throw new Error(`Provided param "${T}" is an array but it is not repeatable (* or + modifiers)`);const N=lt(H)?H.join("/"):H;if(!N)if(j)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${T}"`);u+=N}}return u||"/"}return{re:i,score:s,keys:o,parse:l,stringify:a}}function Zu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===qe.Static+qe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===qe.Static+qe.Segment?1:-1:0}function bl(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Zu(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Ao(s))return 1;if(Ao(r))return-1}return r.length-s.length}function Ao(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ef={strict:!1,end:!0,sensitive:!1};function tf(e,t,n){const s=Xu(Ju(e.path),n),r=me(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function nf(e,t){const n=[],s=new Map;t=xo(ef,t);function r(d){return s.get(d)}function o(d,p,v){const T=!v,k=Mo(d);k.aliasOf=v&&v.record;const j=xo(t,d),H=[k];if("alias"in d){const D=typeof d.alias=="string"?[d.alias]:d.alias;for(const J of D)H.push(Mo(me({},k,{components:v?v.record.components:k.components,path:J,aliasOf:v?v.record:k})))}let N,V;for(const D of H){const{path:J}=D;if(p&&J[0]!=="/"){const ve=p.record.path,re=ve[ve.length-1]==="/"?"":"/";D.path=p.record.path+(J&&re+J)}if(N=tf(D,p,j),v?v.alias.push(N):(V=V||N,V!==N&&V.alias.push(N),T&&d.name&&!Oo(N)&&i(d.name)),yl(N)&&a(N),k.children){const ve=k.children;for(let re=0;re<ve.length;re++)o(ve[re],N,v&&v.children[re])}v=v||N}return V?()=>{i(V)}:kn}function i(d){if(vl(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function l(){return n}function a(d){const p=of(d,n);n.splice(p,0,d),d.record.name&&!Oo(d)&&s.set(d.record.name,d)}function c(d,p){let v,T={},k,j;if("name"in d&&d.name){if(v=s.get(d.name),!v)throw un(_e.MATCHER_NOT_FOUND,{location:d});j=v.record.name,T=me(To(p.params,v.keys.filter(V=>!V.optional).concat(v.parent?v.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),d.params&&To(d.params,v.keys.map(V=>V.name))),k=v.stringify(T)}else if(d.path!=null)k=d.path,v=n.find(V=>V.re.test(k)),v&&(T=v.parse(k),j=v.record.name);else{if(v=p.name?s.get(p.name):n.find(V=>V.re.test(p.path)),!v)throw un(_e.MATCHER_NOT_FOUND,{location:d,currentLocation:p});j=v.record.name,T=me({},p.params,d.params),k=v.stringify(T)}const H=[];let N=v;for(;N;)H.unshift(N.record),N=N.parent;return{name:j,path:k,params:T,matched:H,meta:rf(H)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function To(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Mo(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:sf(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function sf(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Oo(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rf(e){return e.reduce((t,n)=>me(t,n.meta),{})}function of(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;bl(e,t[o])<0?s=o:n=o+1}const r=lf(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function lf(e){let t=e;for(;t=t.parent;)if(yl(t)&&bl(e,t)===0)return t}function yl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Po(e){const t=Xe(Ts),n=Xe(Vr),s=L(()=>{const a=_(e.to);return t.resolve(a)}),r=L(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(cn.bind(null,u));if(p>-1)return p;const v=No(a[c-2]);return c>1&&No(u)===v&&d[d.length-1].path!==v?d.findIndex(cn.bind(null,a[c-2])):p}),o=L(()=>r.value>-1&&df(n.params,s.value.params)),i=L(()=>r.value>-1&&r.value===n.matched.length-1&&gl(n.params,s.value.params));function l(a={}){if(ff(a)){const c=t[_(e.replace)?"replace":"push"](_(e.to)).catch(kn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:L(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function af(e){return e.length===1?e[0]:e}const cf=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Po,setup(e,{slots:t}){const n=jn(Po(e)),{options:s}=Xe(Ts),r=L(()=>({[$o(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[$o(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&af(t.default(n));return e.custom?o:In("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),uf=cf;function ff(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function df(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!lt(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function No(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $o=(e,t,n)=>e??t??n,hf=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Xe(fr),r=L(()=>e.route||s.value),o=Xe(Co,0),i=L(()=>{let c=_(o);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),l=L(()=>r.value.matched[i.value]);Jn(Co,L(()=>i.value+1)),Jn(qu,l),Jn(fr,r);const a=ae();return jt(()=>[a.value,l.value,e.name],([c,u,d],[p,v,T])=>{u&&(u.instances[d]=c,v&&v!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!cn(u,v)||!p)&&(u.enterCallbacks[d]||[]).forEach(k=>k(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=l.value,p=d&&d.components[u];if(!p)return Io(n.default,{Component:p,route:c});const v=d.props[u],T=v?v===!0?c.params:typeof v=="function"?v(c):v:null,j=In(p,me({},T,t,{onVnodeUnmounted:H=>{H.component.isUnmounted&&(d.instances[u]=null)},ref:a}));return Io(n.default,{Component:j,route:c})||j}}});function Io(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pf=hf;function mf(e){const t=nf(e.routes,e),n=e.parseQuery||Bu,s=e.stringifyQuery||ko,r=e.history,o=gn(),i=gn(),l=gn(),a=la(It);let c=It;en&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=qs.bind(null,m=>""+m),d=qs.bind(null,Eu),p=qs.bind(null,Ln);function v(m,C){let E,F;return vl(m)?(E=t.getRecordMatcher(m),F=C):F=m,t.addRoute(F,E)}function T(m){const C=t.getRecordMatcher(m);C&&t.removeRoute(C)}function k(){return t.getRoutes().map(m=>m.record)}function j(m){return!!t.getRecordMatcher(m)}function H(m,C){if(C=me({},C||a.value),typeof m=="string"){const g=Ks(n,m,C.path),y=t.resolve({path:g.path},C),w=r.createHref(g.fullPath);return me(g,y,{params:p(y.params),hash:Ln(g.hash),redirectedFrom:void 0,href:w})}let E;if(m.path!=null)E=me({},m,{path:Ks(n,m.path,C.path).path});else{const g=me({},m.params);for(const y in g)g[y]==null&&delete g[y];E=me({},m,{params:d(g)}),C.params=d(C.params)}const F=t.resolve(E,C),X=m.hash||"";F.params=u(p(F.params));const f=Ru(s,me({},m,{hash:xu(X),path:F.path})),h=r.createHref(f);return me({fullPath:f,hash:X,query:s===ko?Uu(m.query):m.query||{}},F,{redirectedFrom:void 0,href:h})}function N(m){return typeof m=="string"?Ks(n,m,a.value.path):me({},m)}function V(m,C){if(c!==m)return un(_e.NAVIGATION_CANCELLED,{from:C,to:m})}function D(m){return re(m)}function J(m){return D(me(N(m),{replace:!0}))}function ve(m,C){const E=m.matched[m.matched.length-1];if(E&&E.redirect){const{redirect:F}=E;let X=typeof F=="function"?F(m,C):F;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=N(X):{path:X},X.params={}),me({query:m.query,hash:m.hash,params:X.path!=null?{}:m.params},X)}}function re(m,C){const E=c=H(m),F=a.value,X=m.state,f=m.force,h=m.replace===!0,g=ve(E,F);if(g)return re(me(N(g),{state:typeof g=="object"?me({},X,g.state):X,force:f,replace:h}),C||E);const y=E;y.redirectedFrom=C;let w;return!f&&Au(s,F,E)&&(w=un(_e.NAVIGATION_DUPLICATED,{to:y,from:F}),et(F,F,!0,!1)),(w?Promise.resolve(w):pe(y,F)).catch(b=>St(b)?St(b,_e.NAVIGATION_GUARD_REDIRECT)?b:Me(b):ee(b,y,F)).then(b=>{if(b){if(St(b,_e.NAVIGATION_GUARD_REDIRECT))return re(me({replace:h},N(b.to),{state:typeof b.to=="object"?me({},X,b.to.state):X,force:f}),C||y)}else b=Be(y,F,!0,h,X);return Te(y,F,b),b})}function Y(m,C){const E=V(m,C);return E?Promise.reject(E):Promise.resolve()}function Q(m){const C=$t.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(m):m()}function pe(m,C){let E;const[F,X,f]=Ku(m,C);E=Ws(F.reverse(),"beforeRouteLeave",m,C);for(const g of F)g.leaveGuards.forEach(y=>{E.push(Vt(y,m,C))});const h=Y.bind(null,m,C);return E.push(h),ze(E).then(()=>{E=[];for(const g of o.list())E.push(Vt(g,m,C));return E.push(h),ze(E)}).then(()=>{E=Ws(X,"beforeRouteUpdate",m,C);for(const g of X)g.updateGuards.forEach(y=>{E.push(Vt(y,m,C))});return E.push(h),ze(E)}).then(()=>{E=[];for(const g of f)if(g.beforeEnter)if(lt(g.beforeEnter))for(const y of g.beforeEnter)E.push(Vt(y,m,C));else E.push(Vt(g.beforeEnter,m,C));return E.push(h),ze(E)}).then(()=>(m.matched.forEach(g=>g.enterCallbacks={}),E=Ws(f,"beforeRouteEnter",m,C,Q),E.push(h),ze(E))).then(()=>{E=[];for(const g of i.list())E.push(Vt(g,m,C));return E.push(h),ze(E)}).catch(g=>St(g,_e.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function Te(m,C,E){l.list().forEach(F=>Q(()=>F(m,C,E)))}function Be(m,C,E,F,X){const f=V(m,C);if(f)return f;const h=C===It,g=en?history.state:{};E&&(F||h?r.replace(m.fullPath,me({scroll:h&&g&&g.scroll},X)):r.push(m.fullPath,X)),a.value=m,et(m,C,E,h),Me()}let Ve;function bt(){Ve||(Ve=r.listen((m,C,E)=>{if(!xt.listening)return;const F=H(m),X=ve(F,xt.currentRoute.value);if(X){re(me(X,{replace:!0,force:!0}),F).catch(kn);return}c=F;const f=a.value;en&&Du(Eo(f.fullPath,E.delta),Iu()),pe(F,f).catch(h=>St(h,_e.NAVIGATION_ABORTED|_e.NAVIGATION_CANCELLED)?h:St(h,_e.NAVIGATION_GUARD_REDIRECT)?(re(me(N(h.to),{force:!0}),F).then(g=>{St(g,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&!E.delta&&E.type===cr.pop&&r.go(-1,!1)}).catch(kn),Promise.reject()):(E.delta&&r.go(-E.delta,!1),ee(h,F,f))).then(h=>{h=h||Be(F,f,!1),h&&(E.delta&&!St(h,_e.NAVIGATION_CANCELLED)?r.go(-E.delta,!1):E.type===cr.pop&&St(h,_e.NAVIGATION_ABORTED|_e.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Te(F,f,h)}).catch(kn)}))}let nt=gn(),de=gn(),W;function ee(m,C,E){Me(m);const F=de.list();return F.length?F.forEach(X=>X(m,C,E)):console.error(m),Promise.reject(m)}function st(){return W&&a.value!==It?Promise.resolve():new Promise((m,C)=>{nt.add([m,C])})}function Me(m){return W||(W=!m,bt(),nt.list().forEach(([C,E])=>m?E(m):C()),nt.reset()),m}function et(m,C,E,F){const{scrollBehavior:X}=e;if(!en||!X)return Promise.resolve();const f=!E&&Vu(Eo(m.fullPath,0))||(F||!E)&&history.state&&history.state.scroll||null;return Ar().then(()=>X(m,C,f)).then(h=>h&&Lu(h)).catch(h=>ee(h,m,C))}const Oe=m=>r.go(m);let yt;const $t=new Set,xt={currentRoute:a,listening:!0,addRoute:v,removeRoute:T,clearRoutes:t.clearRoutes,hasRoute:j,getRoutes:k,resolve:H,options:e,push:D,replace:J,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:de.add,isReady:st,install(m){m.component("RouterLink",uf),m.component("RouterView",pf),m.config.globalProperties.$router=xt,Object.defineProperty(m.config.globalProperties,"$route",{enumerable:!0,get:()=>_(a)}),en&&!yt&&a.value===It&&(yt=!0,D(r.location).catch(F=>{}));const C={};for(const F in It)Object.defineProperty(C,F,{get:()=>a.value[F],enumerable:!0});m.provide(Ts,xt),m.provide(Vr,gi(C)),m.provide(fr,a);const E=m.unmount;$t.add(m),m.unmount=function(){$t.delete(m),$t.size<1&&(c=It,Ve&&Ve(),Ve=null,a.value=It,yt=!1,W=!1),E()}}};function ze(m){return m.reduce((C,E)=>C.then(()=>Q(E)),Promise.resolve())}return xt}function xl(){return Xe(Ts)}function gf(e){return Xe(Vr)}const Lo=e=>e==="";const vf=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const Do=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const _f=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const bf=e=>{const t=_f(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Qt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const yf=Symbol("lucide-icons");function xf(){return Xe(yf,{})}const wf=({name:e,iconNode:t,"icon-node":n,absoluteStrokeWidth:s,"absolute-stroke-width":r,strokeWidth:o,"stroke-width":i,size:l,color:a,...c},{slots:u})=>{const{size:d,color:p,strokeWidth:v=2,absoluteStrokeWidth:T=!1,class:k=""}=xf(),j=L(()=>{const H=Lo(s)||Lo(r)||s===!0||r===!0||T===!0,N=o||i||v||Qt["stroke-width"];return H?Number(N)*24/Number(l??d??Qt.width):N});return In("svg",{...Qt,...c,width:l??d??Qt.width,height:l??d??Qt.height,stroke:a??p??Qt.stroke,"stroke-width":j.value,class:vf("lucide",k,...e?[`lucide-${Do(bf(e))}-icon`,`lucide-${Do(e)}`]:["lucide-icon"])},[...(t??n??[]).map(H=>In(...H)),...u.default?[u.default()]:[]])};const we=(e,t)=>(n,{slots:s,attrs:r})=>In(wf,{...r,...n,iconNode:t,name:e},s.default?{default:s.default}:void 0);const Sf=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],dr=we("activity",Sf);const Ef=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],kf=we("check",Ef);const Cf=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Gs=we("clock",Cf);const Rf=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Af=we("copy",Rf);const Tf=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Qn=we("cpu",Tf);const Mf=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],on=we("database",Mf);const Of=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Pf=we("external-link",Of);const Nf=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],hr=we("file-braces",Nf);const $f=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Xn=we("hard-drive",$f);const If=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],Lf=we("inbox",If);const Df=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Zn=we("key-round",Df);const Vf=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],wl=we("list-tree",Vf);const jf=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],es=we("mail",jf);const Ff=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Hf=we("maximize-2",Ff);const Bf=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],Uf=we("minimize-2",Bf);const qf=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Cn=we("network",qf);const Kf=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],pr=we("scroll-text",Kf);const zf=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Wf=we("search",zf);const Gf=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Rn=we("server",Gf);const Jf=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Sl=we("triangle-alert",Jf);const Yf=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],mr=we("zap",Yf),Ft=le({__name:"Icon",props:{icon:{},size:{},stroke:{},class:{}},setup(e){return(t,n)=>(x(),se(Fa(e.icon),{size:e.size??14,"stroke-width":e.stroke??2,class:xe(["shrink-0",t.$props.class])},null,8,["size","stroke-width","class"]))}}),Qf={key:1,class:"text-[10px] uppercase tracking-wider text-[var(--dt-faint)]"},Ge=le({__name:"Chip",props:{label:{},value:{},icon:{},tone:{},active:{type:Boolean},compact:{type:Boolean}},emits:["click"],setup(e){return(t,n)=>(x(),O("button",{type:"button",class:xe(["inline-flex min-h-[var(--dt-touch)] items-center gap-1.5 border border-solid px-2.5 text-left transition-colors",[e.compact?"rounded-[4px] py-1":"rounded-[var(--dt-radius)] py-1.5",e.active?"border-[var(--dt-accent)] bg-[var(--dt-accent-dim)]":"border-[var(--dt-border)] bg-[var(--dt-surface)] hover:border-[var(--dt-border-strong)] hover:bg-[var(--dt-surface-2)]"]]),style:vt({borderLeftWidth:"3px",borderLeftColor:e.tone==="ok"?"var(--dt-ok)":e.tone==="warn"?"var(--dt-warn)":e.tone==="err"?"var(--dt-err)":e.tone==="info"?"var(--dt-info)":"var(--dt-border-strong)"}),onClick:n[0]||(n[0]=s=>t.$emit("click",s))},[e.icon?(x(),se(Ft,{key:0,icon:e.icon,size:13,class:"text-[var(--dt-muted)]"},null,8,["icon"])):ye("",!0),e.label?(x(),O("span",Qf,G(e.label),1)):ye("",!0),R("span",{class:xe(["dt-mono text-[12px] font-medium",{"text-[var(--dt-text)]":!e.tone||e.tone==="default","text-[var(--dt-ok)]":e.tone==="ok","text-[var(--dt-warn)]":e.tone==="warn","text-[var(--dt-err)]":e.tone==="err","text-[var(--dt-info)]":e.tone==="info"}])},G(e.value),3)],6))}}),Xf=["width","height","viewBox"],Zf=["d","stroke"],El=le({__name:"Sparkline",props:{values:{},width:{default:96},height:{default:22},stroke:{default:"var(--dt-accent)"}},setup(e){const t=e,n=L(()=>{const s=t.values.length?t.values:[0],r=Math.max(...s,1),o=Math.min(...s,0),i=Math.max(r-o,1e-6),l=s.length,a=t.width,c=t.height,u=2;return s.map((d,p)=>{const v=l===1?a/2:p/(l-1)*(a-u*2)+u,T=c-u-(d-o)/i*(c-u*2);return`${p===0?"M":"L"}${v.toFixed(1)},${T.toFixed(1)}`}).join(" ")});return(s,r)=>(x(),O("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,class:"block overflow-visible","aria-hidden":"true"},[R("path",{class:"dt-spark-path",d:n.value,fill:"none",stroke:e.stroke,"stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Zf)],8,Xf))}});async function Vo(e,t){if(!t)return null;const n=await fetch(`${e}/requests/${encodeURIComponent(t)}`);return n.ok?await n.json():null}async function jo(e){const t=await fetch(`${e}/requests`);return t.ok?await t.json():[]}async function ed(e){const t=await fetch(`${e}/config`);return t.ok?t.json():{}}async function td(e){const t=await fetch(`${e}/logs`);return t.ok?await t.json():[]}async function nd(e){const t=await fetch(`${e}/events/custom`);return t.ok?await t.json():[]}async function sd(e){const t=await fetch(`${e}/memory`);return t.ok?await t.json():[]}const kl="sova.devtools.v2",Cl="sova.devtools.spark",Rl="sova.devtools.panelH",rd="sova.devtools",od="sova-dt-panel-h",Fo={open:!1,tab:"request"};function Al(){try{const e=sessionStorage.getItem(kl);if(!e)return{...Fo};const t=JSON.parse(e);return{open:!!t.open,tab:t.tab||"request"}}catch{return{...Fo}}}function id(e){try{sessionStorage.setItem(kl,JSON.stringify(e))}catch{}}function ld(e){const t={...Al(),...e};return id(t),t}function Tl(){try{const e=sessionStorage.getItem(Cl);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(n=>typeof n=="number").slice(-40):[]}catch{return[]}}function gr(e){const t=[...Tl(),e].slice(-40);try{sessionStorage.setItem(Cl,JSON.stringify(t))}catch{}return t}function ad(){try{const e=Number(sessionStorage.getItem(Rl));if(Number.isFinite(e)&&e>=220&&e<=800)return e}catch{}return 420}function cd(e){try{sessionStorage.setItem(Rl,String(Math.round(e)))}catch{}}function gt(e){return e>=500?"err":e>=400?"warn":"ok"}function tt(e){return e==null||Number.isNaN(e)?"—":`${e.toFixed(1)}ms`}function Js(e){return e?.length?e.reduce((t,n)=>t+(n.duration_ms??0),0):0}const Ho="sova.devtools.fs";function ud(){const t=document.getElementById("sova-devtools")?.dataset??{},n=t.statusClass||"ok",r=new URLSearchParams(location.search).get("embed")==="1"||window!==window.top,o=t.shell==="1"||location.pathname.startsWith("/_devtools/app")||t.playground==="1";return{snap:t.snap||"",status:Number(t.status||0),statusClass:n==="warn"||n==="err"?n:"ok",ms:Number(t.ms||0),sql:Number(t.sql||0),errors:Number(t.errors||0),api:t.api||"/_devtools",events:t.events||"/_devtools/events",shell:o,embed:r}}function fd(e,t,n,s){t.value={...t.value,snap:e.snap,status:e.status,statusClass:e.statusClass,ms:e.ms,sql:e.sql,errors:e.errors},e.snap&&(n.value=e.snap),e.ms>0&&(s.value=gr(e.ms))}const De=uu("devtools",()=>{const e=Al(),t=ae(ud()),n=ae(document.getElementById("sova-devtools")?.dataset.playground==="1"),s=ae(t.value.embed||n.value?!0:e.open||t.value.shell),r=ae(e.tab),o=ae(t.value.snap),i=ae(null),l=ae([]),a=ae([]),c=ae(null),u=ae(!1),d=ae(null),p=ae(Tl()),v=ae(ad()),T=ae((()=>{try{return sessionStorage.getItem(Ho)==="1"}catch{return!1}})()),k=L(()=>t.value.api),j=L(()=>t.value.embed),H=L(()=>t.value.shell),N=L(()=>n.value),V=L(()=>Js(i.value?.queries)),D=L(()=>Js(i.value?.http)),J=L(()=>Js(i.value?.cache)),ve=L(()=>i.value?.logs.filter(m=>String(m.level).toUpperCase().includes("ERROR")).length??0),re=L(()=>{let m=0,C=0,E=0;for(const F of l.value.slice(0,50)){const X=gt(F.status);X==="ok"?m++:X==="warn"?C++:E++}return{ok:m,warn:C,err:E}}),Y=L(()=>{const m=l.value.slice(0,40).map(C=>C.duration_ms).reverse();return m.length?m:p.value}),Q=L(()=>{const m=i.value;return{request:0,timeline:l.value.length,db:m?.queries.length??0,cache:m?.cache?.length??0,logs:m?.logs.length||a.value.length,http:m?.http.length??0,mail:m?.mail.length??0,jobs:m?.jobs.length??0,auth:m?.auth?.session_keys?.length??0,config:0}}),pe=L(()=>T.value?Math.max(320,window.innerHeight-40):v.value);function Te(){n.value||ld({open:s.value,tab:r.value})}jt([s,r],Te);function Be(m){const C=Math.min(800,Math.max(220,m));if(v.value=C,cd(C),j.value&&window.parent!==window)try{window.parent.postMessage({type:od,height:C},"*")}catch{}}function Ve(){T.value=!T.value;try{sessionStorage.setItem(Ho,T.value?"1":"0")}catch{}}function bt(){j.value||n.value||(s.value=!s.value,s.value&&Me())}function nt(){j.value||n.value||(s.value=!1)}function de(m){r.value=m,Me()}function W(m){o.value=m,r.value="request",Me()}function ee(m){l.value=[m,...l.value].slice(0,100),p.value=gr(m.duration_ms)}function st(m){l.value=m.timeline,i.value=m.current,o.value=m.current.id,a.value=m.logs,c.value=m.config,t.value={...t.value,snap:m.current.id,status:m.current.status,statusClass:gt(m.current.status),ms:m.current.duration_ms,sql:m.current.queries.length,errors:m.current.logs.filter(C=>String(C.level).toUpperCase().includes("ERROR")).length},p.value=m.timeline.map(C=>C.duration_ms).reverse(),u.value=!1}async function Me(){if(!n.value&&!(!s.value&&!j.value)){u.value=!0,d.value=null;try{if(r.value==="timeline")l.value=await jo(k.value);else if(r.value==="config")c.value=await ed(k.value);else if(r.value==="logs"&&!o.value)a.value=await td(k.value);else if(o.value)i.value=await Vo(k.value,o.value);else{const m=await jo(k.value);l.value=m,m[0]&&(o.value=m[0].id,i.value=await Vo(k.value,m[0].id))}}catch(m){d.value=m instanceof Error?m.message:String(m)}finally{u.value=!1}}}function et(){if(!n.value)try{new BroadcastChannel(rd).addEventListener("message",C=>{const E=C.data;!E||typeof E!="object"||(E.type==="page"?(fd(E,t,o,p),(s.value||j.value)&&Me()):E.type==="ui"&&!j.value&&(s.value=E.open,E.tab&&(r.value=E.tab),s.value&&Me()))})}catch{}}const Oe=ae(null),yt=ae(null);function $t(){if(!n.value)try{const m=new EventSource(t.value.events);m.addEventListener("request.finished",C=>{try{const E=JSON.parse(C.data);E.meta&&(ee(E.meta),(s.value||j.value)&&r.value==="timeline"&&Me())}catch{}}),m.addEventListener("custom",C=>{try{const E=JSON.parse(C.data);E.event&&Oe.value?.(E.event)}catch{}}),m.addEventListener("memory.sample",C=>{try{const E=JSON.parse(C.data);E.sample&&yt.value?.(E.sample)}catch{}})}catch{}}function xt(m){m.key==="Escape"&&nt()}function ze(){t.value.ms>0&&!p.value.length&&(p.value=gr(t.value.ms)),et(),$t(),window.addEventListener("keydown",xt),n.value||Me()}return{mount:t,open:s,tab:r,snapId:o,current:i,timeline:l,globalLogs:a,config:c,loading:u,error:d,spark:p,sparkFromTimeline:Y,panelH:v,effectivePanelH:pe,fullscreen:T,isEmbed:j,isShell:H,isPlayground:N,sqlTotalMs:V,httpTotalMs:D,cacheTotalMs:J,logErrorCount:ve,statusBuckets:re,tabBadges:Q,toggle:bt,close:nt,setTab:de,openSnap:W,refresh:Me,setPanelH:Be,toggleFullscreen:Ve,loadMock:st,boot:ze,onCustomEvent:Oe,onMemorySample:yt}}),dd={class:"fixed inset-x-0 bottom-0 z-[var(--dt-z)] flex h-[var(--dt-bar-h)] select-none items-stretch gap-1.5 border-t border-[var(--dt-border-strong)] bg-[var(--dt-bg)] px-2 py-1 text-[var(--dt-text)]",role:"toolbar","aria-label":"Sova DevTools"},hd={class:"dt-scroll flex min-w-0 flex-1 items-center gap-1.5 overflow-x-auto"},pd={class:"ml-1 hidden items-center sm:flex"},md=["title"],gd="/_devtools/app",vd=le({__name:"Toolbar",setup(e){const t=De(),n=L(()=>{const i=t.mount;return i.status?gt(i.status):i.statusClass});function s(){t.toggle()}function r(i){i.stopPropagation(),window.open(gd,"_blank","noopener,noreferrer")}function o(i){i.stopPropagation(),t.toggleFullscreen()}return(i,l)=>(x(),O("div",dd,[R("button",{type:"button",class:"inline-flex min-h-[var(--dt-touch)] shrink-0 cursor-pointer items-center rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2.5 text-[13px] font-bold tracking-wide text-[var(--dt-accent)] hover:border-[var(--dt-border-strong)]",title:"Toggle panel",onClick:s}," Sova "),R("div",hd,[I(Ge,{label:"status",value:String(_(t).mount.status||"—"),tone:n.value,compact:"",onClick:s},null,8,["value","tone"]),I(Ge,{label:"time",value:_(t).mount.ms.toFixed(1)+"ms",compact:"",onClick:s},null,8,["value"]),I(Ge,{label:"sql",value:String(_(t).mount.sql),icon:_(on),tone:"info",compact:"",onClick:s},null,8,["value","icon"]),I(Ge,{label:"err",value:String(_(t).mount.errors),icon:_(Sl),tone:_(t).mount.errors?"err":"default",compact:"",onClick:s},null,8,["value","icon","tone"]),R("div",pd,[I(El,{values:_(t).sparkFromTimeline,width:72,height:16},null,8,["values"])])]),_(t).isShell?ye("",!0):(x(),O("button",{key:0,type:"button",class:"hidden min-h-[var(--dt-touch)] cursor-pointer items-center gap-1 rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2 text-[11px] text-[var(--dt-muted)] hover:text-[var(--dt-text)] sm:inline-flex",title:"Open in new tab",onClick:r},[I(Ft,{icon:_(Pf),size:12},null,8,["icon"]),l[0]||(l[0]=Gt(" Tab ",-1))])),R("button",{type:"button",class:"inline-flex min-h-[var(--dt-touch)] cursor-pointer items-center rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2 text-[var(--dt-muted)] hover:text-[var(--dt-text)]",title:_(t).fullscreen?"Exit fullscreen":"Fullscreen panel",onClick:o},[I(Ft,{icon:_(t).fullscreen?_(Uf):_(Hf),size:14},null,8,["icon"])],8,md)]))}}),jr=[{id:"request",label:"Request",icon:dr},{id:"timeline",label:"Timeline",icon:wl},{id:"db",label:"DB",icon:on},{id:"cache",label:"Cache",icon:Rn},{id:"logs",label:"Logs",icon:pr},{id:"http",label:"HTTP",icon:Cn},{id:"mail",label:"Mail",icon:es},{id:"jobs",label:"Jobs",icon:Xn},{id:"auth",label:"Auth",icon:Zn},{id:"events",label:"Events",icon:mr},{id:"memory",label:"Memory",icon:Qn},{id:"config",label:"Config",icon:hr}],_d={class:"dt-scroll flex shrink-0 items-stretch gap-0 overflow-x-auto scroll-smooth border-b border-[var(--dt-border)] bg-[var(--dt-surface)] px-1 snap-x",role:"tablist","aria-label":"DevTools tabs"},bd=["aria-selected","onClick"],yd={class:"whitespace-nowrap"},xd=le({__name:"TabNav",setup(e){const t=De(),n=xl();function s(r){t.setTab(r),n.push({name:r})}return(r,o)=>(x(),O("nav",_d,[(x(!0),O(ie,null,Ie(_(jr),i=>(x(),O("button",{key:i.id,type:"button",role:"tab","aria-selected":_(t).tab===i.id,class:xe(["relative inline-flex min-h-[var(--dt-touch)] snap-start cursor-pointer items-center gap-1.5 border-0 border-b-2 bg-transparent px-3 text-[12px] transition-colors",_(t).tab===i.id?"border-[var(--dt-accent)] text-[var(--dt-text)]":"border-transparent text-[var(--dt-muted)] hover:text-[var(--dt-text)]"]),onClick:ol(l=>s(i.id),["stop"])},[I(Ft,{icon:i.icon,size:13,class:xe(_(t).tab===i.id?"text-[var(--dt-accent)]":"text-current")},null,8,["icon","class"]),R("span",yd,G(i.label),1),_(t).tabBadges[i.id]?(x(),O("span",{key:0,class:xe(["dt-mono rounded px-1 text-[10px]",_(t).tab===i.id?"bg-[var(--dt-accent-dim)] text-[var(--dt-accent)]":"bg-[var(--dt-surface-2)] text-[var(--dt-faint)]"])},G(_(t).tabBadges[i.id]),3)):ye("",!0)],10,bd))),128))]))}}),wd={class:"flex flex-col gap-2 p-1"},Sd=le({__name:"Skeleton",props:{rows:{default:4},cols:{default:1}},setup(e){return(t,n)=>(x(),O("div",wd,[(x(!0),O(ie,null,Ie(e.rows,s=>(x(),O("div",{key:s,class:"grid gap-2",style:vt({gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`})},[(x(!0),O(ie,null,Ie(e.cols,r=>(x(),O("div",{key:r,class:"h-7 animate-pulse rounded-[var(--dt-radius)] bg-[var(--dt-surface-2)]"}))),128))],4))),128))]))}}),Ed={class:"flex min-h-[var(--dt-touch)] items-center gap-2 rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)] px-2.5 focus-within:border-[var(--dt-accent)]"},kd=["placeholder"],fn=le({__name:"SearchField",props:Ba({placeholder:{}},{modelValue:{default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ya(e,"modelValue");return(n,s)=>(x(),O("label",Ed,[I(Ft,{icon:_(Wf),size:14,class:"text-[var(--dt-faint)]"},null,8,["icon"]),Ei(R("input",{"onUpdate:modelValue":s[0]||(s[0]=r=>t.value=r),type:"search",class:"min-w-0 flex-1 border-0 bg-transparent py-2 text-[12px] text-[var(--dt-text)] outline-none placeholder:text-[var(--dt-faint)]",placeholder:e.placeholder||"Filter…"},null,8,kd),[[Yc,t.value]])]))}}),Cd={class:"flex h-full flex-col"},Rd={class:"shrink-0 border-b border-[var(--dt-border)] p-2"},Ad={class:"dt-scroll flex-1 overflow-auto",role:"listbox","aria-label":"Requests"},Td={key:0,class:"m-0 p-4 text-center text-[11px] text-[var(--dt-faint)]"},Md=["aria-selected","onClick"],Od={class:"flex items-center gap-2"},Pd={class:"dt-mono text-[10px] text-[var(--dt-accent)]"},Nd={class:"dt-mono ml-auto text-[10px] text-[var(--dt-muted)]"},$d=["title"],Id={class:"h-0.5 overflow-hidden rounded-sm bg-[var(--dt-bg)]"},Ld=le({__name:"RequestList",setup(e){const t=De(),n=ae(""),s=L(()=>Math.max(...t.timeline.map(o=>o.duration_ms),1)),r=L(()=>{const o=n.value.trim().toLowerCase();return o?t.timeline.filter(i=>i.path.toLowerCase().includes(o)||i.method.toLowerCase().includes(o)||String(i.status).includes(o)||i.id.toLowerCase().includes(o)):t.timeline});return(o,i)=>(x(),O("div",Cd,[R("div",Rd,[I(fn,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=l=>n.value=l),placeholder:"Filter requests…"},null,8,["modelValue"])]),R("div",Ad,[r.value.length?ye("",!0):(x(),O("p",Td," No requests ")),(x(!0),O(ie,null,Ie(r.value,l=>(x(),O("button",{key:l.id,type:"button",role:"option","aria-selected":_(t).snapId===l.id,class:xe(["flex w-full min-h-[var(--dt-touch)] cursor-pointer flex-col gap-1 border-0 border-b border-[var(--dt-border)] border-l-[3px] bg-transparent px-2.5 py-2 text-left transition-colors",_(t).snapId===l.id?"border-l-[var(--dt-accent)] bg-[var(--dt-accent-dim)]":"border-l-transparent hover:bg-[var(--dt-surface-2)]"]),onClick:a=>_(t).openSnap(l.id)},[R("div",Od,[R("span",{class:xe(["dt-mono text-[11px] font-semibold",{"text-[var(--dt-ok)]":_(gt)(l.status)==="ok","text-[var(--dt-warn)]":_(gt)(l.status)==="warn","text-[var(--dt-err)]":_(gt)(l.status)==="err"}])},G(l.status),3),R("span",Pd,G(l.method),1),R("span",Nd,G(l.duration_ms.toFixed(0))+"ms",1)]),R("div",{class:"truncate text-[11px] text-[var(--dt-text)]",title:l.path},G(l.path),9,$d),R("div",Id,[R("div",{class:"h-full rounded-sm bg-[var(--dt-accent)] opacity-70",style:vt({width:Math.min(100,l.duration_ms/s.value*100)+"%"})},null,4)])],10,Md))),128))])]))}}),Dd={class:"m-0 overflow-hidden rounded-[var(--dt-radius)] border border-[var(--dt-border)]"},Vd={class:"border-r border-[var(--dt-border)] bg-[var(--dt-surface-2)] px-3 py-2 text-[11px] text-[var(--dt-faint)]"},jd=["title"],Fd={class:"min-w-0 flex-1 truncate"},Hd=["onClick"],Dn=le({__name:"DefList",props:{items:{}},setup(e){async function t(n){try{await navigator.clipboard.writeText(n)}catch{}}return(n,s)=>(x(),O("dl",Dd,[(x(!0),O(ie,null,Ie(e.items,(r,o)=>(x(),O("div",{key:o,class:"grid grid-cols-[7.5rem_1fr] border-b border-[var(--dt-border)] last:border-b-0 sm:grid-cols-[9rem_1fr]"},[R("dt",Vd,G(r.label),1),R("dd",{class:xe(["m-0 flex min-w-0 items-center gap-2 px-3 py-2 text-[12px]",r.mono!==!1?"dt-mono":""]),title:r.value},[R("span",Fd,G(r.value),1),R("button",{type:"button",class:"shrink-0 cursor-pointer rounded border border-[var(--dt-border)] bg-[var(--dt-bg)] px-1.5 py-0.5 text-[10px] text-[var(--dt-muted)] hover:text-[var(--dt-text)]",title:"Copy",onClick:i=>t(r.value)}," copy ",8,Hd)],10,jd)]))),128))]))}}),Bd={class:"flex flex-col items-center justify-center gap-2 px-4 py-10 text-center"},Ud={class:"flex h-10 w-10 items-center justify-center rounded-full border border-[var(--dt-border)] bg-[var(--dt-surface)] text-[var(--dt-faint)]"},qd={class:"m-0 text-[13px] font-medium text-[var(--dt-muted)]"},Kd={key:0,class:"m-0 max-w-sm text-[11px] text-[var(--dt-faint)]"},Le=le({__name:"EmptyState",props:{title:{},hint:{},icon:{}},setup(e){const t=e,n=L(()=>t.icon??Lf);return(s,r)=>(x(),O("div",Bd,[R("div",Ud,[I(Ft,{icon:n.value,size:18},null,8,["icon"])]),R("p",qd,G(e.title),1),e.hint?(x(),O("p",Kd,G(e.hint),1)):ye("",!0)]))}}),zd={key:0,class:"flex min-h-9 items-center gap-2 border-b border-[var(--dt-border)] bg-[var(--dt-surface-2)] px-3 py-2"},Wd={key:1,class:"m-0 text-[12px] font-semibold tracking-wide"},Gd={key:2,class:"text-[11px] text-[var(--dt-faint)]"},Jd={class:"ml-auto flex items-center gap-2"},Yd={class:"p-3"},Re=le({__name:"Pane",props:{title:{},icon:{},hint:{},tone:{}},setup(e){return(t,n)=>(x(),O("section",{class:xe(["overflow-hidden rounded-[var(--dt-radius)] border bg-[var(--dt-surface)]",{"border-[var(--dt-border)]":!e.tone||e.tone==="default","border-[var(--dt-warn)]":e.tone==="warn","border-[var(--dt-err)]":e.tone==="err"}])},[e.title||t.$slots.actions?(x(),O("header",zd,[e.icon?(x(),se(Ft,{key:0,icon:e.icon,size:14,class:"text-[var(--dt-accent)]"},null,8,["icon"])):ye("",!0),e.title?(x(),O("h3",Wd,G(e.title),1)):ye("",!0),e.hint?(x(),O("span",Gd,G(e.hint),1)):ye("",!0),R("div",Jd,[er(t.$slots,"actions")])])):ye("",!0),R("div",Yd,[er(t.$slots,"default")])],2))}}),Qd={class:"flex flex-col gap-2"},Xd={class:"flex items-baseline justify-between"},Zd={class:"dt-mono text-[12px] text-[var(--dt-text)]"},eh={class:"relative h-3 overflow-hidden rounded-sm border border-[var(--dt-border)] bg-[var(--dt-bg)]"},th=["title"],nh={class:"flex flex-wrap gap-x-4 gap-y-1"},sh={class:"dt-mono text-[var(--dt-text)]"},rh=le({__name:"Waterfall",props:{totalMs:{},segments:{}},setup(e){const t=e,n=L(()=>{const s=Math.max(t.totalMs,.001);let r=0;return t.segments.map(o=>{const i=Math.max(o.ms,0),l=r/s*100,a=Math.min(i/s*100,100-l);return r+=i,{...o,ms:i,left:l,width:a}})});return(s,r)=>(x(),O("div",Qd,[R("div",Xd,[r[0]||(r[0]=R("span",{class:"text-[11px] text-[var(--dt-muted)]"},"Request waterfall",-1)),R("span",Zd,G(e.totalMs.toFixed(1))+"ms total",1)]),R("div",eh,[(x(!0),O(ie,null,Ie(n.value,(o,i)=>(x(),O("div",{key:i,class:"absolute top-0 h-full",style:vt({left:o.left+"%",width:Math.max(o.width,o.ms>0?.4:0)+"%",background:o.color||"var(--dt-accent)"}),title:`${o.label}: ${o.ms.toFixed(1)}ms`},null,12,th))),128))]),R("div",nh,[(x(!0),O(ie,null,Ie(n.value,(o,i)=>(x(),O("div",{key:"l"+i,class:"flex items-center gap-1.5 text-[11px] text-[var(--dt-muted)]"},[R("span",{class:"inline-block h-2 w-2 rounded-sm",style:vt({background:o.color||"var(--dt-accent)"})},null,4),R("span",null,G(o.label),1),R("span",sh,G(o.ms.toFixed(1))+"ms",1)]))),128))])]))}}),oh={key:1,class:"flex flex-col gap-3"},ih={class:"mb-3 flex flex-wrap gap-2"},lh={class:"grid grid-cols-2 gap-2 lg:grid-cols-5"},ah=le({__name:"RequestView",setup(e){const t=De(),n=L(()=>t.current),s=L(()=>n.value?gt(n.value.status):"ok"),r=L(()=>n.value?Math.max(0,n.value.duration_ms-t.sqlTotalMs-t.httpTotalMs-t.cacheTotalMs):0),o=L(()=>[{label:"SQL",ms:t.sqlTotalMs,color:"var(--dt-info)"},{label:"HTTP",ms:t.httpTotalMs,color:"var(--dt-warn)"},{label:"Cache",ms:t.cacheTotalMs,color:"var(--dt-ok)"},{label:"App / other",ms:r.value,color:"var(--dt-accent)"}]),i=L(()=>{if(!n.value)return[];const a=n.value.route,c=n.value.rate_limit;return[{label:"request_id",value:n.value.request_id},{label:"snap_id",value:n.value.id},{label:"path",value:n.value.path},{label:"route",value:a?.pattern||a?.path||"—"},{label:"locale",value:n.value.locale||"—"},{label:"csrf",value:n.value.csrf==null?"—":n.value.csrf?"present":"missing"},{label:"encoding",value:n.value.encoding||"—"},{label:"rate_limit",value:c?`${c.remaining??"?"}/${c.limit??"?"}${c.reset!=null?` reset=${c.reset}`:""}`:"—"},{label:"at_ms",value:String(n.value.at_ms)}]}),l=L(()=>(n.value?.route?.captures??[]).map(([c,u])=>({label:c,value:u})));return(a,c)=>n.value?(x(),O("div",oh,[I(Re,{title:"Overview",icon:_(dr)},{default:Ce(()=>[R("div",ih,[I(Ge,{value:n.value.method,tone:"info",label:"method"},null,8,["value"]),I(Ge,{value:String(n.value.status),tone:s.value,label:"status"},null,8,["value","tone"]),I(Ge,{value:_(tt)(n.value.duration_ms),label:"duration",icon:_(Gs)},null,8,["value","icon"])]),I(Dn,{items:i.value},null,8,["items"])]),_:1},8,["icon"]),l.value.length?(x(),se(Re,{key:0,title:"Route captures",hint:"MatchedRoute"},{default:Ce(()=>[I(Dn,{items:l.value},null,8,["items"])]),_:1})):ye("",!0),R("div",lh,[I(Ge,{class:"!flex w-full justify-start",label:"duration",value:_(tt)(n.value.duration_ms),icon:_(Gs),tone:n.value.duration_ms>500?"warn":"default"},null,8,["value","icon","tone"]),I(Ge,{class:"!flex w-full justify-start",label:"sql",value:`${n.value.queries.length} · ${_(tt)(_(t).sqlTotalMs)}`,icon:_(on),tone:"info"},null,8,["value","icon"]),I(Ge,{class:"!flex w-full justify-start",label:"cache",value:`${(n.value.cache??[]).length} · ${_(tt)(_(t).cacheTotalMs)}`,icon:_(Rn)},null,8,["value","icon"]),I(Ge,{class:"!flex w-full justify-start",label:"http",value:`${n.value.http.length} · ${_(tt)(_(t).httpTotalMs)}`,icon:_(Cn)},null,8,["value","icon"]),I(Ge,{class:"!flex w-full justify-start",label:"errors",value:String(_(t).logErrorCount),icon:_(Sl),tone:_(t).logErrorCount?"err":"ok"},null,8,["value","icon","tone"])]),I(Re,{title:"Timing waterfall",icon:_(Gs),hint:"measured spans"},{default:Ce(()=>[I(rh,{"total-ms":n.value.duration_ms,segments:o.value},null,8,["total-ms","segments"])]),_:1},8,["icon"])])):(x(),se(Le,{key:0,title:"No request selected",hint:"Pick a request from the list on the left.",icon:_(dr)},null,8,["icon"]))}}),ch={class:"flex items-center gap-3"},uh=["width","height"],fh=["cx","cy","r"],dh=["cx","cy","r","stroke","stroke-dasharray","stroke-dashoffset"],hh=["x","y"],ph={class:"flex flex-col gap-1 text-[11px] text-[var(--dt-muted)]"},mh={class:"flex items-center gap-1.5"},gh={class:"dt-mono text-[var(--dt-text)]"},vh={class:"flex items-center gap-1.5"},_h={class:"dt-mono text-[var(--dt-text)]"},bh={class:"flex items-center gap-1.5"},yh={class:"dt-mono text-[var(--dt-text)]"},xh=le({__name:"StatusDonut",props:{ok:{},warn:{},err:{},size:{default:72}},setup(e){const t=e,n=L(()=>Math.max(t.ok+t.warn+t.err,0)),s=L(()=>t.size/2-4),r=L(()=>t.size/2),o=L(()=>2*Math.PI*s.value),i=L(()=>{const l=n.value||1;let a=0;const c=(u,d)=>{const p=u/l*o.value,v=a;return a+=p,{color:d,dash:`${p} ${o.value-p}`,offset:-v}};return[c(t.ok,"var(--dt-ok)"),c(t.warn,"var(--dt-warn)"),c(t.err,"var(--dt-err)")]});return(l,a)=>(x(),O("div",ch,[(x(),O("svg",{width:e.size,height:e.size,class:"shrink-0","aria-hidden":"true"},[R("circle",{cx:r.value,cy:r.value,r:s.value,fill:"none",stroke:"var(--dt-border)","stroke-width":"6"},null,8,fh),(x(!0),O(ie,null,Ie(i.value,(c,u)=>(x(),O("circle",{key:u,cx:r.value,cy:r.value,r:s.value,fill:"none",stroke:c.color,"stroke-width":"6","stroke-linecap":"butt","stroke-dasharray":c.dash,"stroke-dashoffset":c.offset,"transform-origin":"center",style:vt({transform:"rotate(-90deg)",transformOrigin:`${r.value}px ${r.value}px`})},null,12,dh))),128)),R("text",{x:r.value,y:r.value,"text-anchor":"middle","dominant-baseline":"central",class:"dt-mono",fill:"var(--dt-text)","font-size":"12","font-weight":"500"},G(n.value),9,hh)],8,uh)),R("div",ph,[R("div",mh,[a[0]||(a[0]=R("span",{class:"h-2 w-2 rounded-sm bg-[var(--dt-ok)]"},null,-1)),a[1]||(a[1]=Gt(" 2xx ",-1)),R("span",gh,G(e.ok),1)]),R("div",vh,[a[2]||(a[2]=R("span",{class:"h-2 w-2 rounded-sm bg-[var(--dt-warn)]"},null,-1)),a[3]||(a[3]=Gt(" 4xx ",-1)),R("span",_h,G(e.warn),1)]),R("div",bh,[a[4]||(a[4]=R("span",{class:"h-2 w-2 rounded-sm bg-[var(--dt-err)]"},null,-1)),a[5]||(a[5]=Gt(" 5xx ",-1)),R("span",yh,G(e.err),1)])])]))}}),wh={class:"flex flex-col gap-3"},Sh={class:"grid gap-3 sm:grid-cols-2"},Eh={class:"flex items-center gap-3"},kh={class:"text-[11px] text-[var(--dt-faint)]"},Ch=le({__name:"TimelineView",setup(e){const t=De();return(n,s)=>(x(),O("div",wh,[R("div",Sh,[I(Re,{title:"Latency sparkline",icon:_(wl),hint:"recent"},{default:Ce(()=>[R("div",Eh,[I(El,{values:_(t).sparkFromTimeline,width:200,height:40},null,8,["values"]),R("span",kh,G(_(t).timeline.length)+" samples",1)])]),_:1},8,["icon"]),I(Re,{title:"Status mix",hint:"last 50"},{default:Ce(()=>[I(xh,{ok:_(t).statusBuckets.ok,warn:_(t).statusBuckets.warn,err:_(t).statusBuckets.err},null,8,["ok","warn","err"])]),_:1})]),I(Re,{title:"Hint"},{default:Ce(()=>[...s[0]||(s[0]=[R("p",{class:"m-0 text-[12px] text-[var(--dt-muted)]"}," Use the request list on the left to open a snapshot. Live SSE updates appear there in the running app. ",-1)])]),_:1})]))}}),Rh={class:"overflow-hidden rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)]"},Ah={class:"flex items-center gap-2 border-b border-[var(--dt-border)] bg-[var(--dt-surface-2)] px-3 py-1.5"},Th={class:"text-[10px] uppercase tracking-wider text-[var(--dt-faint)]"},Mh={class:"dt-mono text-[10px] text-[var(--dt-faint)]"},Oh={class:"dt-scroll m-0 max-h-48 overflow-auto p-3 dt-mono text-[11px] leading-relaxed text-[var(--dt-muted)] whitespace-pre-wrap break-all"},Ml=le({__name:"CodeBlock",props:{code:{},title:{default:"code"},language:{default:"text"}},setup(e){const t=e,n=ae(!1);async function s(){try{await navigator.clipboard.writeText(t.code),n.value=!0,setTimeout(()=>{n.value=!1},1200)}catch{}}return(r,o)=>(x(),O("div",Rh,[R("div",Ah,[R("span",Th,G(e.title),1),R("span",Mh,G(e.language),1),R("button",{type:"button",class:"ml-auto inline-flex min-h-7 cursor-pointer items-center gap-1 rounded border border-[var(--dt-border)] bg-[var(--dt-surface)] px-2 text-[10px] text-[var(--dt-muted)] hover:text-[var(--dt-text)]",onClick:s},[I(Ft,{icon:n.value?_(kf):_(Af),size:12},null,8,["icon"]),Gt(" "+G(n.value?"copied":"copy"),1)])]),R("pre",Oh,G(e.code),1)]))}});function vr(e){const t=e.replace(/\s+/g," ").trim().toLowerCase();let n=0;for(let s=0;s<t.length;s++)n=n*31+t.charCodeAt(s)|0;return String(n)}function Ph(e){const t=new Map;for(const n of e){const s=vr(n);t.set(s,(t.get(s)||0)+1)}return t}const Bo=50,Nh={key:2,class:"flex flex-col gap-3"},$h={class:"flex flex-col gap-3"},Ih={class:"mb-2 flex flex-wrap items-center gap-2"},Lh={class:"dt-mono text-[11px] text-[var(--dt-text)]"},Dh={key:0,class:"rounded border border-[var(--dt-border)] px-1.5 text-[10px] text-[var(--dt-faint)]"},Vh={key:1,class:"rounded border border-[var(--dt-warn)] px-1.5 text-[10px] text-[var(--dt-warn)]"},jh={key:2,class:"rounded border border-[var(--dt-err)] px-1.5 text-[10px] text-[var(--dt-err)]"},Fh=le({__name:"DbView",setup(e){const t=De(),n=ae(""),s=L(()=>t.current?.queries??[]),r=L(()=>Ph(s.value.map(i=>i.sql))),o=L(()=>{const i=n.value.trim().toLowerCase();return i?s.value.filter(l=>l.sql.toLowerCase().includes(i)):s.value});return(i,l)=>_(t).current?s.value.length?(x(),O("div",Nh,[I(fn,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=a=>n.value=a),placeholder:"Filter SQL…"},null,8,["modelValue"]),I(Re,{title:"Queries",icon:_(on),hint:`${o.value.length} · ${_(tt)(_(t).sqlTotalMs)}`},{default:Ce(()=>[R("div",$h,[(x(!0),O(ie,null,Ie(o.value,(a,c)=>(x(),O("div",{key:c,class:xe(["rounded-[var(--dt-radius)] border p-2",(a.duration_ms??0)>=_(Bo)?"border-[var(--dt-warn)]":"border-[var(--dt-border)]"])},[R("div",Ih,[R("span",Lh,G(_(tt)(a.duration_ms)),1),a.rows!=null?(x(),O("span",Dh,G(a.rows)+" rows",1)):ye("",!0),(a.duration_ms??0)>=_(Bo)?(x(),O("span",Vh,"slow")):ye("",!0),(r.value.get(_(vr)(a.sql))||0)>1?(x(),O("span",jh,"dup ×"+G(r.value.get(_(vr)(a.sql))),1)):ye("",!0)]),I(Ml,{code:a.sql,title:"sql",language:"sql"},null,8,["code"])],2))),128))])]),_:1},8,["icon","hint"])])):(x(),se(Le,{key:1,title:"No SQL on this request",hint:"Queries appear when the DB plugin reports timings.",icon:_(on)},null,8,["icon"])):(x(),se(Le,{key:0,title:"No snapshot",hint:"Select a request first.",icon:_(on)},null,8,["icon"]))}}),Hh={key:0,class:"m-0 text-[var(--dt-faint)]"},Bh={key:1,class:"overflow-auto rounded-[var(--dt-radius)] border border-[var(--dt-border)]"},Uh={class:"w-full border-collapse text-left"},qh={class:"bg-[var(--dt-surface-2)]"},Kh=["title","onDblclick"],Ms=le({__name:"DataTable",props:{headers:{},rows:{},monoCols:{}},setup(e){async function t(n){try{await navigator.clipboard.writeText(String(n??""))}catch{}}return(n,s)=>e.rows.length?(x(),O("div",Bh,[R("table",Uh,[R("thead",null,[R("tr",qh,[(x(!0),O(ie,null,Ie(e.headers,r=>(x(),O("th",{key:r,class:"sticky top-0 px-2.5 py-1.5 text-[10px] font-semibold uppercase tracking-wider text-[var(--dt-faint)]"},G(r),1))),128))])]),R("tbody",null,[(x(!0),O(ie,null,Ie(e.rows,(r,o)=>(x(),O("tr",{key:o,class:xe(["border-t border-[var(--dt-border)] transition-colors hover:bg-[var(--dt-surface)]",o%2===1?"bg-[color-mix(in_srgb,var(--dt-surface)_45%,transparent)]":""])},[(x(!0),O(ie,null,Ie(r,(i,l)=>(x(),O("td",{key:l,class:xe(["max-w-[28rem] truncate px-2.5 py-1.5 align-top text-[12px]",e.monoCols?.includes(l)?"dt-mono text-[11px]":""]),title:String(i??""),onDblclick:a=>t(i)},[er(n.$slots,"cell",{cell:i,col:l,row:r},()=>[Gt(G(i),1)])],42,Kh))),128))],2))),128))])])])):(x(),O("p",Hh,"— empty —"))}}),zh={key:2,class:"flex flex-col gap-3"},Wh=le({__name:"CacheView",setup(e){const t=De(),n=ae(""),s=L(()=>t.current?.cache??[]),r=L(()=>{const l=n.value.trim().toLowerCase();return l?s.value.filter(a=>a.op.toLowerCase().includes(l)||a.key.toLowerCase().includes(l)||a.backend.toLowerCase().includes(l)):s.value}),o=["op","backend","key","hit","bytes","ms","ok"],i=L(()=>r.value.map(l=>[l.op,l.backend,l.key,l.hit==null?"—":l.hit?"hit":"miss",l.bytes==null?"—":String(l.bytes),tt(l.duration_ms),l.ok==null?"—":l.ok?"ok":"err"]));return(l,a)=>_(t).current?s.value.length?(x(),O("div",zh,[I(fn,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=c=>n.value=c),placeholder:"Filter op / key / backend…"},null,8,["modelValue"]),I(Re,{title:"Cache & KV",icon:_(Rn),hint:`${r.value.length} · ${_(tt)(_(t).cacheTotalMs)}`},{default:Ce(()=>[I(Ms,{headers:o,rows:i.value,"mono-cols":[2]},null,8,["rows"])]),_:1},8,["icon","hint"])])):(x(),se(Le,{key:1,title:"No cache / KV ops",hint:"Store, Redis, and Cache calls appear when plugins emit sova.store / sova.redis traces.",icon:_(Rn)},null,8,["icon"])):(x(),se(Le,{key:0,title:"No snapshot",hint:"Select a request first.",icon:_(Rn)},null,8,["icon"]))}}),Gh={class:"flex flex-col gap-3"},Jh={class:"flex flex-col gap-2 sm:flex-row sm:items-center"},Yh={class:"flex flex-wrap gap-1"},Qh=["onClick"],Xh={class:"flex flex-col gap-2"},Zh={class:"flex flex-wrap items-center gap-2"},ep={class:"dt-mono text-[10px] text-[var(--dt-faint)]"},tp={key:0,class:"dt-mono ml-auto text-[10px] text-[var(--dt-faint)]"},np={class:"m-0 mt-1 text-[12px] text-[var(--dt-text)]"},sp=le({__name:"LogsView",setup(e){const t=De(),n=ae(""),s=ae("all"),r=L(()=>{const l=t.current?.logs;return l?.length?l:t.globalLogs}),o=L(()=>{let l=r.value;s.value!=="all"&&(l=l.filter(c=>String(c.level).toLowerCase().includes(s.value)));const a=n.value.trim().toLowerCase();return a&&(l=l.filter(c=>c.message.toLowerCase().includes(a)||c.target.toLowerCase().includes(a))),l}),i=[{id:"all",label:"All"},{id:"error",label:"Error"},{id:"warn",label:"Warn"},{id:"info",label:"Info"},{id:"debug",label:"Debug"}];return(l,a)=>(x(),O("div",Gh,[R("div",Jh,[I(fn,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=c=>n.value=c),placeholder:"Filter logs…",class:"flex-1"},null,8,["modelValue"]),R("div",Yh,[(x(),O(ie,null,Ie(i,c=>R("button",{key:c.id,type:"button",class:xe(["min-h-8 cursor-pointer rounded border px-2 text-[10px] uppercase",s.value===c.id?"border-[var(--dt-accent)] bg-[var(--dt-accent-dim)] text-[var(--dt-accent)]":"border-[var(--dt-border)] text-[var(--dt-faint)]"]),onClick:u=>s.value=c.id},G(c.label),11,Qh)),64))])]),r.value.length?(x(),se(Re,{key:1,title:"Logs",icon:_(pr),hint:`${o.value.length} / ${r.value.length}`},{default:Ce(()=>[R("div",Xh,[(x(!0),O(ie,null,Ie(o.value,(c,u)=>(x(),O("div",{key:u,class:"rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)] px-2.5 py-2"},[R("div",Zh,[R("span",{class:xe(["rounded border px-1.5 text-[10px] font-semibold uppercase",{"border-[var(--dt-err)] text-[var(--dt-err)]":String(c.level).toUpperCase().includes("ERROR"),"border-[var(--dt-warn)] text-[var(--dt-warn)]":String(c.level).toUpperCase().includes("WARN"),"border-[var(--dt-info)] text-[var(--dt-info)]":String(c.level).toUpperCase().includes("INFO"),"border-[var(--dt-border)] text-[var(--dt-muted)]":String(c.level).toUpperCase().includes("DEBUG")}])},G(c.level),3),R("span",ep,G(c.target),1),c.at_ms!=null?(x(),O("span",tp,G(c.at_ms),1)):ye("",!0)]),R("p",np,G(c.message),1)]))),128))])]),_:1},8,["icon","hint"])):(x(),se(Le,{key:0,title:"No log lines",hint:"Tracing output appears here.",icon:_(pr)},null,8,["icon"]))]))}}),rp={key:2,class:"flex flex-col gap-3"},op={class:"flex flex-col gap-2"},ip={class:"flex flex-wrap items-center gap-2"},lp={class:"dt-mono rounded border border-[var(--dt-border)] px-1.5 text-[10px] text-[var(--dt-accent)]"},ap={class:"dt-mono ml-auto text-[11px] text-[var(--dt-muted)]"},cp=["title"],up={key:0,class:"mt-1 rounded border border-[var(--dt-err)] px-2 py-1 text-[11px] text-[var(--dt-err)]"},fp=le({__name:"HttpView",setup(e){const t=De(),n=ae(""),s=L(()=>t.current?.http??[]),r=L(()=>{const o=n.value.trim().toLowerCase();return o?s.value.filter(i=>i.url.toLowerCase().includes(o)||i.method.toLowerCase().includes(o)||String(i.status??"").includes(o)||(i.error||"").toLowerCase().includes(o)):s.value});return(o,i)=>_(t).current?s.value.length?(x(),O("div",rp,[I(fn,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=l=>n.value=l),placeholder:"Filter HTTP…"},null,8,["modelValue"]),I(Re,{title:"Outbound",icon:_(Cn),hint:`${r.value.length} · ${_(tt)(_(t).httpTotalMs)}`},{default:Ce(()=>[R("div",op,[(x(!0),O(ie,null,Ie(r.value,(l,a)=>(x(),O("div",{key:a,class:"rounded-[var(--dt-radius)] border border-[var(--dt-border)] bg-[var(--dt-bg)] p-2.5"},[R("div",ip,[R("span",lp,G(l.method),1),l.status!=null?(x(),O("span",{key:0,class:xe(["dt-mono text-[11px]",{"text-[var(--dt-ok)]":_(gt)(l.status)==="ok","text-[var(--dt-warn)]":_(gt)(l.status)==="warn","text-[var(--dt-err)]":_(gt)(l.status)==="err"}])},G(l.status),3)):ye("",!0),R("span",ap,G(_(tt)(l.duration_ms)),1)]),R("div",{class:"mt-1 truncate text-[12px] text-[var(--dt-text)]",title:l.url},G(l.url),9,cp),l.error?(x(),O("div",up,G(l.error),1)):ye("",!0)]))),128))])]),_:1},8,["icon","hint"])])):(x(),se(Le,{key:1,title:"No outbound HTTP",hint:"Client calls for this request appear here.",icon:_(Cn)},null,8,["icon"])):(x(),se(Le,{key:0,title:"No snapshot",hint:"Select a request first.",icon:_(Cn)},null,8,["icon"]))}}),dp={key:2,class:"flex flex-col gap-3"},hp=le({__name:"MailView",setup(e){const t=De(),n=L(()=>t.current?.mail??[]);return(s,r)=>_(t).current?n.value.length?(x(),O("div",dp,[(x(!0),O(ie,null,Ie(n.value,(o,i)=>(x(),se(Re,{key:i,title:o.subject||"(no subject)",icon:_(es),hint:o.backend},{default:Ce(()=>[I(Dn,{items:[{label:"to",value:(o.to||[]).join(", ")||"—"},{label:"backend",value:o.backend},{label:"subject",value:o.subject,mono:!1}]},null,8,["items"])]),_:2},1032,["title","icon","hint"]))),128))])):(x(),se(Le,{key:1,title:"No mail recorded",hint:"Fake/SMTP sends on this request show up here.",icon:_(es)},null,8,["icon"])):(x(),se(Le,{key:0,title:"No snapshot",hint:"Select a request first.",icon:_(es)},null,8,["icon"]))}}),pp={key:2,class:"flex flex-col gap-3"},mp=le({__name:"JobsView",setup(e){const t=De(),n=L(()=>t.current?.jobs??[]),s=["name","status","detail","ms"],r=L(()=>n.value.map(o=>[o.name,o.status,o.detail||"—",tt(o.duration_ms)]));return(o,i)=>_(t).current?n.value.length?(x(),O("div",pp,[I(Re,{title:"Jobs",icon:_(Xn),hint:`${n.value.length}`},{default:Ce(()=>[I(Ms,{headers:s,rows:r.value,"mono-cols":[2]},null,8,["rows"])]),_:1},8,["icon","hint"])])):(x(),se(Le,{key:1,title:"No jobs",hint:"Task enqueue / worker events (sova.tasks) for this request.",icon:_(Xn)},null,8,["icon"])):(x(),se(Le,{key:0,title:"No snapshot",hint:"Select a request first.",icon:_(Xn)},null,8,["icon"]))}}),gp={key:1,class:"flex flex-col gap-3"},vp=le({__name:"AuthView",setup(e){const t=De(),n=L(()=>t.current?.auth??null),s=L(()=>(n.value?.session_keys??[]).map(([o,i])=>({label:o,value:i}))),r=L(()=>(n.value?.roles??[]).join(", ")||"—");return(o,i)=>_(t).current?(x(),O("div",gp,[I(Re,{title:"Identity",icon:_(Zn)},{default:Ce(()=>[I(Dn,{items:[{label:"session",value:n.value?.session_id||"—"},{label:"user",value:n.value?.user_id||"—"},{label:"email",value:n.value?.email||"—"},{label:"roles",value:r.value}]},null,8,["items"])]),_:1},8,["icon"]),s.value.length?(x(),se(Re,{key:1,title:"Session keys",hint:"redacted values"},{default:Ce(()=>[I(Dn,{items:s.value},null,8,["items"])]),_:1})):(x(),se(Le,{key:0,title:"No session keys",hint:"Session bag empty or redacted.",icon:_(Zn)},null,8,["icon"]))])):(x(),se(Le,{key:0,title:"No snapshot",hint:"Select a request first.",icon:_(Zn)},null,8,["icon"]))}}),_p={key:1,class:"flex flex-col gap-3"},bp={class:"mb-3 flex flex-wrap gap-2"},yp={key:0,class:"text-[12px] text-[var(--dt-faint)]"},xp=le({__name:"ConfigView",setup(e){const t=De(),n=L(()=>t.config),s=L(()=>n.value?.profile??"—"),r=L(()=>n.value?.features??[]),o=L(()=>JSON.stringify(t.config??{},null,2));return(i,l)=>_(t).config==null&&!_(t).isPlayground?(x(),se(Le,{key:0,title:"No config payload",hint:"Hub config endpoint returned empty.",icon:_(hr)},null,8,["icon"])):(x(),O("div",_p,[I(Re,{title:"Runtime",icon:_(hr),hint:s.value},{default:Ce(()=>[R("div",bp,[I(Ge,{label:"profile",value:s.value,tone:"info"},null,8,["value"]),(x(!0),O(ie,null,Ie(r.value,a=>(x(),se(Ge,{key:a,label:"feature",value:a,tone:"ok"},null,8,["value"]))),128)),r.value.length?ye("",!0):(x(),O("span",yp,"no optional DevTools features compiled in"))]),I(Ml,{code:o.value,title:"config",language:"json"},null,8,["code"])]),_:1},8,["icon","hint"])]))}}),wp={key:1,class:"flex flex-col gap-3"},Sp=le({__name:"EventsView",setup(e){const t=De(),n=ae([]),s=ae("");async function r(){n.value=await nd(t.mount.api)}Es(()=>{r(),t.onCustomEvent=a=>{n.value=[a,...n.value].slice(0,100)}});const o=L(()=>{const a=s.value.trim().toLowerCase();return a?n.value.filter(c=>c.kind.toLowerCase().includes(a)||JSON.stringify(c.payload).toLowerCase().includes(a)):n.value}),i=["kind","payload","time"],l=L(()=>o.value.map(a=>[a.kind,JSON.stringify(a.payload),new Date(a.ts_ms).toLocaleTimeString()]));return(a,c)=>n.value.length?(x(),O("div",wp,[I(fn,{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u),placeholder:"Filter kind / payload…"},null,8,["modelValue"]),I(Re,{title:"Events",icon:_(mr),hint:`${o.value.length}`},{default:Ce(()=>[I(Ms,{headers:i,rows:l.value,"mono-cols":[1]},null,8,["rows"])]),_:1},8,["icon","hint"])])):(x(),se(Le,{key:0,title:"No custom events",hint:"hub.emit(kind, payload) or auth/mail EventBus forwards appear here.",icon:_(mr)},null,8,["icon"]))}}),Ep={key:1,class:"flex flex-col gap-3"},kp={viewBox:"0 0 240 40",class:"h-10 w-full max-w-sm text-sky-500","aria-hidden":"true"},Cp=["points"],Rp=le({__name:"MemoryView",setup(e){const t=De(),n=ae([]);async function s(){n.value=await sd(t.mount.api)}Es(()=>{s(),t.onMemorySample=l=>{n.value=[l,...n.value].slice(0,120)}});const r=["time","rss"],o=L(()=>n.value.map(l=>[new Date(l.ts_ms).toLocaleTimeString(),l.rss_bytes==null?"—":`${(l.rss_bytes/1024/1024).toFixed(1)} MiB`])),i=L(()=>{const l=n.value.slice().reverse().map(v=>v.rss_bytes).filter(v=>v!=null);if(l.length<2)return"";const a=Math.min(...l),c=Math.max(...l),u=Math.max(c-a,1),d=240,p=40;return l.map((v,T)=>{const k=T/(l.length-1)*d,j=p-(v-a)/u*(p-4)-2;return`${k.toFixed(1)},${j.toFixed(1)}`}).join(" ")});return(l,a)=>n.value.length?(x(),O("div",Ep,[i.value?(x(),se(Re,{key:0,title:"RSS trend",icon:_(Qn)},{default:Ce(()=>[(x(),O("svg",kp,[R("polyline",{fill:"none",stroke:"currentColor","stroke-width":"1.5",points:i.value},null,8,Cp)]))]),_:1},8,["icon"])):ye("",!0),I(Re,{title:"Memory",icon:_(Qn),hint:`${n.value.length} samples`},{default:Ce(()=>[I(Ms,{headers:r,rows:o.value},null,8,["rows"])]),_:1},8,["icon","hint"])])):(x(),se(Le,{key:0,title:"No memory samples yet",hint:"RSS samples arrive every ~2s (Linux). Custom sampler keeps the feed alive on other OS.",icon:_(Qn)},null,8,["icon"]))}});jr.map(e=>({id:e.id,label:e.label}));const Ap=[{path:"/",redirect:"/request"},{path:"/request",name:"request",component:ah},{path:"/timeline",name:"timeline",component:Ch},{path:"/db",name:"db",component:Fh},{path:"/cache",name:"cache",component:Wh},{path:"/logs",name:"logs",component:sp},{path:"/http",name:"http",component:fp},{path:"/mail",name:"mail",component:hp},{path:"/jobs",name:"jobs",component:mp},{path:"/auth",name:"auth",component:vp},{path:"/events",name:"events",component:Sp},{path:"/memory",name:"memory",component:Rp},{path:"/config",name:"config",component:xp}],Wn=mf({history:zu(),routes:Ap});function Tp(e){return typeof e=="string"&&jr.some(t=>t.id===e)}const Mp={class:"flex min-h-0 flex-1 flex-col md:flex-row"},Op={class:"dt-scroll max-h-[40%] shrink-0 overflow-auto border-b border-[var(--dt-border)] md:max-h-none md:w-[min(32%,280px)] md:border-b-0 md:border-r"},Pp={class:"dt-scroll min-h-0 min-w-0 flex-1 overflow-auto p-3"},Np={key:1,class:"rounded-[var(--dt-radius)] border border-[var(--dt-err)] bg-[var(--dt-surface)] p-3 text-[var(--dt-err)]"},$p=le({__name:"App",setup(e){const t=De(),n=gf(),s=xl(),r=ae(!1);let o=0,i=0;jt(()=>n.name,p=>{Tp(p)&&t.tab!==p&&t.setTab(p)},{immediate:!0}),jt(()=>t.tab,p=>{n.name!==p&&s.push({name:p})});const l=L(()=>t.isEmbed||t.isPlayground?{height:"100%",maxHeight:"100%"}:{height:`${t.effectivePanelH}px`,maxHeight:"90dvh"}),a=L(()=>!t.fullscreen&&!t.isPlayground);function c(p){t.fullscreen||(r.value=!0,o=p.clientY,i=t.panelH,window.addEventListener("pointermove",u),window.addEventListener("pointerup",d))}function u(p){r.value&&t.setPanelH(i+(o-p.clientY))}function d(){r.value=!1,window.removeEventListener("pointermove",u),window.removeEventListener("pointerup",d)}return Es(()=>{t.isEmbed&&t.setPanelH(t.panelH)}),Ti(()=>{window.removeEventListener("pointermove",u),window.removeEventListener("pointerup",d)}),(p,v)=>{const T=ja("RouterView");return x(),O(ie,null,[_(t).isEmbed?ye("",!0):(x(),se(vd,{key:0})),Ei(R("div",{class:xe(["dt-panel-enter flex flex-col border-t border-[var(--dt-border-strong)] bg-[var(--dt-bg)] text-[var(--dt-text)]",_(t).isEmbed||_(t).isPlayground?"h-full min-h-0":"fixed inset-x-0 bottom-[var(--dt-bar-h)] z-[var(--dt-z)]"]),style:vt(l.value)},[a.value?(x(),O("div",{key:0,class:"group flex h-2.5 shrink-0 cursor-ns-resize items-center justify-center",title:"Drag to resize",onPointerdown:ol(c,["prevent"])},[R("span",{class:xe(["h-0.5 w-12 rounded-full bg-[var(--dt-border-strong)] transition-colors group-hover:bg-[var(--dt-accent)]",r.value?"!bg-[var(--dt-accent)]":""])},null,2)],32)):ye("",!0),I(xd),R("div",Mp,[R("aside",Op,[I(Ld)]),R("main",Pp,[_(t).loading?(x(),se(Sd,{key:0,rows:5,cols:2})):_(t).error?(x(),O("div",Np,G(_(t).error),1)):(x(),se(T,{key:2}))])])],6),[[Pc,_(t).open||_(t).isEmbed||_(t).isPlayground]])],64)}}}),Uo=document.getElementById("sova-devtools");if(Uo){const e=tu($p);e.use(ru()),e.use(Wn),e.mount(Uo);const t=De();Wn.isReady().then(()=>{t.tab&&Wn.currentRoute.value.name!==t.tab&&Wn.replace({name:t.tab}),t.boot()})}