sova-devtools 0.1.7

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