adonisjs-server-stats 1.11.4 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +550 -468
- package/dist/react/style.css +1 -1
- package/dist/src/edge/client-vue/dashboard.js +2 -2
- package/dist/src/edge/client-vue/debug-panel-deferred.js +1 -1
- package/dist/src/provider/server_stats_provider.d.ts +8 -0
- package/dist/src/provider/server_stats_provider.js +16 -6
- package/dist/src/routes/dashboard_routes.d.ts +1 -0
- package/dist/src/routes/dashboard_routes.js +7 -0
- package/dist/src/routes/debug_routes.d.ts +1 -0
- package/dist/src/routes/debug_routes.js +7 -0
- package/dist/src/routes/register_routes.d.ts +2 -0
- package/dist/src/routes/register_routes.js +2 -0
- package/dist/src/styles/dashboard.css +19 -18
- package/dist/src/styles/debug-panel.css +2 -0
- package/dist/src/styles/stats-bar.css +1 -0
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";function pn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Me={},Wt=[],ht=()=>{},hl=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,gn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},bi=Object.prototype.hasOwnProperty,Ce=(e,t)=>bi.call(e,t),pe=Array.isArray,Jt=e=>vs(e)==="[object Map]",pl=e=>vs(e)==="[object Set]",vl=e=>vs(e)==="[object Date]",ve=e=>typeof e=="function",Fe=e=>typeof e=="string",it=e=>typeof e=="symbol",Ee=e=>e!==null&&typeof e=="object",gl=e=>(Ee(e)||ve(e))&&ve(e.then)&&ve(e.catch),yl=Object.prototype.toString,vs=e=>yl.call(e),_i=e=>vs(e).slice(8,-1),ml=e=>vs(e)==="[object Object]",yn=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gs=pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Os=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},xi=/-\w/g,tt=Os(e=>e.replace(xi,t=>t.slice(1).toUpperCase())),wi=/\B([A-Z])/g,Pt=Os(e=>e.replace(wi,"-$1").toLowerCase()),Ds=Os(e=>e.charAt(0).toUpperCase()+e.slice(1)),mn=Os(e=>e?`on${Ds(e)}`:""),Rt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},bl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},$i=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ki=e=>{const t=Fe(e)?Number(e):NaN;return isNaN(t)?e:t};let _l;const Is=()=>_l||(_l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],i=Fe(l)?Ei(l):Ke(l);if(i)for(const o in i)t[o]=i[o]}return t}else if(Fe(e)||Ee(e))return e}const Si=/;(?![^(]*\))/g,Ci=/:([^]+)/,Ti=/\/\*[^]*?\*\//g;function Ei(e){const t={};return e.replace(Ti,"").split(Si).forEach(s=>{if(s){const l=s.split(Ci);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function L(e){let t="";if(Fe(e))t=e;else if(pe(e))for(let s=0;s<e.length;s++){const l=L(e[s]);l&&(t+=l+" ")}else if(Ee(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Pi=pn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function xl(e){return!!e||e===""}function Ri(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=_n(e[l],t[l]);return s}function _n(e,t){if(e===t)return!0;let s=vl(e),l=vl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=it(e),l=it(t),s||l)return e===t;if(s=pe(e),l=pe(t),s||l)return s&&l?Ri(e,t):!1;if(s=Ee(e),l=Ee(t),s||l){if(!s||!l)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const r=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(r&&!c||!r&&c||!_n(e[a],t[a]))return!1}}return String(e)===String(t)}const wl=e=>!!(e&&e.__v_isRef===!0),h=e=>Fe(e)?e:e==null?"":pe(e)||Ee(e)&&(e.toString===yl||!ve(e.toString))?wl(e)?h(e.value):JSON.stringify(e,$l,2):String(e),$l=(e,t)=>wl(t)?$l(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,i],o)=>(s[xn(l,o)+" =>"]=i,s),{})}:pl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>xn(s))}:it(t)?xn(t):Ee(t)&&!pe(t)&&!ml(t)?String(t):t,xn=(e,t="")=>{var s;return it(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Mi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=Qe;try{return Qe=this,t()}finally{Qe=s}}}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){this._on>0&&--this._on===0&&(Qe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Ai(){return Qe}let Ae;const wn=new WeakSet;class kl{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,Qe&&Qe.active&&Qe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,wn.has(this)&&(wn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Cl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ml(this),Tl(this);const t=Ae,s=at;Ae=this,at=!0;try{return this.fn()}finally{El(this),Ae=t,at=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Cn(t);this.deps=this.depsTail=void 0,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?wn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Sn(this)&&this.run()}get dirty(){return Sn(this)}}let Sl=0,ys,ms;function Cl(e,t=!1){if(e.flags|=8,t){e.next=ms,ms=e;return}e.next=ys,ys=e}function $n(){Sl++}function kn(){if(--Sl>0)return;if(ms){let t=ms;for(ms=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ys;){let t=ys;for(ys=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function Tl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function El(e){let t,s=e.depsTail,l=s;for(;l;){const i=l.prevDep;l.version===-1?(l===s&&(s=i),Cn(l),Li(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=s}function Sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Pl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Pl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bs)||(e.globalVersion=bs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sn(e))))return;e.flags|=2;const t=e.dep,s=Ae,l=at;Ae=e,at=!0;try{Tl(e);const i=e.fn(e._value);(t.version===0||Rt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ae=s,at=l,El(e),e.flags&=-3}}function Cn(e,t=!1){const{dep:s,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Cn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Li(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let at=!0;const Rl=[];function pt(){Rl.push(at),at=!1}function vt(){const e=Rl.pop();at=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Ae;Ae=void 0;try{t()}finally{Ae=s}}}let bs=0;class Fi{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Tn{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(!Ae||!at||Ae===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ae)s=this.activeLink=new Fi(Ae,this),Ae.deps?(s.prevDep=Ae.depsTail,Ae.depsTail.nextDep=s,Ae.depsTail=s):Ae.deps=Ae.depsTail=s,Al(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Ae.depsTail,s.nextDep=void 0,Ae.depsTail.nextDep=s,Ae.depsTail=s,Ae.deps===s&&(Ae.deps=l)}return s}trigger(t){this.version++,bs++,this.notify(t)}notify(t){$n();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{kn()}}}function Al(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Al(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const En=new WeakMap,Ht=Symbol(""),Pn=Symbol(""),_s=Symbol("");function Ue(e,t,s){if(at&&Ae){let l=En.get(e);l||En.set(e,l=new Map);let i=l.get(s);i||(l.set(s,i=new Tn),i.map=l,i.key=s),i.track()}}function xt(e,t,s,l,i,o){const a=En.get(e);if(!a){bs++;return}const r=c=>{c&&c.trigger()};if($n(),t==="clear")a.forEach(r);else{const c=pe(e),g=c&&yn(s);if(c&&s==="length"){const p=Number(l);a.forEach((m,v)=>{(v==="length"||v===_s||!it(v)&&v>=p)&&r(m)})}else switch((s!==void 0||a.has(void 0))&&r(a.get(s)),g&&r(a.get(_s)),t){case"add":c?g&&r(a.get("length")):(r(a.get(Ht)),Jt(e)&&r(a.get(Pn)));break;case"delete":c||(r(a.get(Ht)),Jt(e)&&r(a.get(Pn)));break;case"set":Jt(e)&&r(a.get(Ht));break}}kn()}function Qt(e){const t=$e(e);return t===e?t:(Ue(t,"iterate",_s),st(e)?t:t.map(rt))}function Bs(e){return Ue(e=$e(e),"iterate",_s),e}function Mt(e,t){return $t(e)?Yt(Ut(e)?rt(t):t):rt(t)}const Oi={__proto__:null,[Symbol.iterator](){return Rn(this,Symbol.iterator,e=>Mt(this,e))},concat(...e){return Qt(this).concat(...e.map(t=>pe(t)?Qt(t):t))},entries(){return Rn(this,"entries",e=>(e[1]=Mt(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,s=>s.map(l=>Mt(this,l)),arguments)},find(e,t){return wt(this,"find",e,t,s=>Mt(this,s),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,s=>Mt(this,s),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return Qt(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return xs(this,"pop")},push(...e){return xs(this,"push",e)},reduce(e,...t){return Ll(this,"reduce",e,t)},reduceRight(e,...t){return Ll(this,"reduceRight",e,t)},shift(){return xs(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return xs(this,"splice",e)},toReversed(){return Qt(this).toReversed()},toSorted(e){return Qt(this).toSorted(e)},toSpliced(...e){return Qt(this).toSpliced(...e)},unshift(...e){return xs(this,"unshift",e)},values(){return Rn(this,"values",e=>Mt(this,e))}};function Rn(e,t,s){const l=Bs(e),i=l[t]();return l!==e&&!st(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const Di=Array.prototype;function wt(e,t,s,l,i,o){const a=Bs(e),r=a!==e&&!st(e),c=a[t];if(c!==Di[t]){const m=c.apply(e,o);return r?rt(m):m}let g=s;a!==e&&(r?g=function(m,v){return s.call(this,Mt(e,m),v,e)}:s.length>2&&(g=function(m,v){return s.call(this,m,v,e)}));const p=c.call(a,g,l);return r&&i?i(p):p}function Ll(e,t,s,l){const i=Bs(e);let o=s;return i!==e&&(st(e)?s.length>3&&(o=function(a,r,c){return s.call(this,a,r,c,e)}):o=function(a,r,c){return s.call(this,a,Mt(e,r),c,e)}),i[t](o,...l)}function Mn(e,t,s){const l=$e(e);Ue(l,"iterate",_s);const i=l[t](...s);return(i===-1||i===!1)&&Fn(s[0])?(s[0]=$e(s[0]),l[t](...s)):i}function xs(e,t,s=[]){pt(),$n();const l=$e(e)[t].apply(e,s);return kn(),vt(),l}const Ii=pn("__proto__,__v_isRef,__isVue"),Fl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Bi(e){it(e)||(e=String(e));const t=$e(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Ol{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(i?o?Hl:jl:o?Nl:Bl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const a=pe(t);if(!i){let c;if(a&&(c=Oi[s]))return c;if(s==="hasOwnProperty")return Bi}const r=Reflect.get(t,s,je(t)?t:l);if((it(s)?Fl.has(s):Ii(s))||(i||Ue(t,"get",s),o))return r;if(je(r)){const c=a&&yn(s)?r:r.value;return i&&Ee(c)?Ln(c):c}return Ee(r)?i?Ln(r):Gt(r):r}}class Dl extends Ol{constructor(t=!1){super(!1,t)}set(t,s,l,i){let o=t[s];const a=pe(t)&&yn(s);if(!this._isShallow){const g=$t(o);if(!st(l)&&!$t(l)&&(o=$e(o),l=$e(l)),!a&&je(o)&&!je(l))return g||(o.value=l),!0}const r=a?Number(s)<t.length:Ce(t,s),c=Reflect.set(t,s,l,je(t)?t:i);return t===$e(i)&&(r?Rt(l,o)&&xt(t,"set",s,l):xt(t,"add",s,l)),c}deleteProperty(t,s){const l=Ce(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&l&&xt(t,"delete",s,void 0),i}has(t,s){const l=Reflect.has(t,s);return(!it(s)||!Fl.has(s))&&Ue(t,"has",s),l}ownKeys(t){return Ue(t,"iterate",pe(t)?"length":Ht),Reflect.ownKeys(t)}}class Il extends Ol{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Ni=new Dl,ji=new Il,Hi=new Dl(!0),Ui=new Il(!0),An=e=>e,Ns=e=>Reflect.getPrototypeOf(e);function qi(e,t,s){return function(...l){const i=this.__v_raw,o=$e(i),a=Jt(o),r=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,g=i[e](...l),p=s?An:t?Yt:rt;return!t&&Ue(o,"iterate",c?Pn:Ht),Ne(Object.create(g),{next(){const{value:m,done:v}=g.next();return v?{value:m,done:v}:{value:r?[p(m[0]),p(m[1])]:p(m),done:v}}})}}function js(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ki(e,t){const s={get(i){const o=this.__v_raw,a=$e(o),r=$e(i);e||(Rt(i,r)&&Ue(a,"get",i),Ue(a,"get",r));const{has:c}=Ns(a),g=t?An:e?Yt:rt;if(c.call(a,i))return g(o.get(i));if(c.call(a,r))return g(o.get(r));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&Ue($e(i),"iterate",Ht),i.size},has(i){const o=this.__v_raw,a=$e(o),r=$e(i);return e||(Rt(i,r)&&Ue(a,"has",i),Ue(a,"has",r)),i===r?o.has(i):o.has(i)||o.has(r)},forEach(i,o){const a=this,r=a.__v_raw,c=$e(r),g=t?An:e?Yt:rt;return!e&&Ue(c,"iterate",Ht),r.forEach((p,m)=>i.call(o,g(p),g(m),a))}};return Ne(s,e?{add:js("add"),set:js("set"),delete:js("delete"),clear:js("clear")}:{add(i){!t&&!st(i)&&!$t(i)&&(i=$e(i));const o=$e(this);return Ns(o).has.call(o,i)||(o.add(i),xt(o,"add",i,i)),this},set(i,o){!t&&!st(o)&&!$t(o)&&(o=$e(o));const a=$e(this),{has:r,get:c}=Ns(a);let g=r.call(a,i);g||(i=$e(i),g=r.call(a,i));const p=c.call(a,i);return a.set(i,o),g?Rt(o,p)&&xt(a,"set",i,o):xt(a,"add",i,o),this},delete(i){const o=$e(this),{has:a,get:r}=Ns(o);let c=a.call(o,i);c||(i=$e(i),c=a.call(o,i)),r&&r.call(o,i);const g=o.delete(i);return c&&xt(o,"delete",i,void 0),g},clear(){const i=$e(this),o=i.size!==0,a=i.clear();return o&&xt(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=qi(i,e,t)}),s}function Hs(e,t){const s=Ki(e,t);return(l,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Ce(s,i)&&i in l?s:l,i,o)}const Vi={get:Hs(!1,!1)},zi={get:Hs(!1,!0)},Wi={get:Hs(!0,!1)},Ji={get:Hs(!0,!0)},Bl=new WeakMap,Nl=new WeakMap,jl=new WeakMap,Hl=new WeakMap;function Qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Gi(e){return e.__v_skip||!Object.isExtensible(e)?0:Qi(_i(e))}function Gt(e){return $t(e)?e:Us(e,!1,Ni,Vi,Bl)}function Yi(e){return Us(e,!1,Hi,zi,Nl)}function Ln(e){return Us(e,!0,ji,Wi,jl)}function q1(e){return Us(e,!0,Ui,Ji,Hl)}function Us(e,t,s,l,i){if(!Ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Gi(e);if(o===0)return e;const a=i.get(e);if(a)return a;const r=new Proxy(e,o===2?l:s);return i.set(e,r),r}function Ut(e){return $t(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Fn(e){return e?!!e.__v_raw:!1}function $e(e){const t=e&&e.__v_raw;return t?$e(t):e}function Xi(e){return!Ce(e,"__v_skip")&&Object.isExtensible(e)&&bl(e,"__v_skip",!0),e}const rt=e=>Ee(e)?Gt(e):e,Yt=e=>Ee(e)?Ln(e):e;function je(e){return e?e.__v_isRef===!0:!1}function K(e){return Zi(e,!1)}function Zi(e,t){return je(e)?e:new ea(e,t)}class ea{constructor(t,s){this.dep=new Tn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$e(t),this._value=s?t:rt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||$t(t);t=l?t:$e(t),Rt(t,s)&&(this._rawValue=t,this._value=l?t:rt(t),this.dep.trigger())}}function x(e){return je(e)?e.value:e}const ta={get:(e,t,s)=>t==="__v_raw"?e:x(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const i=e[t];return je(i)&&!je(s)?(i.value=s,!0):Reflect.set(e,t,s,l)}};function Ul(e){return Ut(e)?e:new Proxy(e,ta)}class sa{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Tn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return Cl(this,!0),!0}get value(){const t=this.dep.track();return Pl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function na(e,t,s=!1){let l,i;return ve(e)?l=e:(l=e.get,i=e.set),new sa(l,i,s)}const qs={},Ks=new WeakMap;let qt;function la(e,t=!1,s=qt){if(s){let l=Ks.get(s);l||Ks.set(s,l=[]),l.push(e)}}function oa(e,t,s=Me){const{immediate:l,deep:i,once:o,scheduler:a,augmentJob:r,call:c}=s,g=w=>i?w:st(w)||i===!1||i===0?At(w,1):At(w);let p,m,v,_,C=!1,$=!1;if(je(e)?(m=()=>e.value,C=st(e)):Ut(e)?(m=()=>g(e),C=!0):pe(e)?($=!0,C=e.some(w=>Ut(w)||st(w)),m=()=>e.map(w=>{if(je(w))return w.value;if(Ut(w))return g(w);if(ve(w))return c?c(w,2):w()})):ve(e)?t?m=c?()=>c(e,2):e:m=()=>{if(v){pt();try{v()}finally{vt()}}const w=qt;qt=p;try{return c?c(e,3,[_]):e(_)}finally{qt=w}}:m=ht,t&&i){const w=m,S=i===!0?1/0:i;m=()=>At(w(),S)}const T=Ai(),F=()=>{p.stop(),T&&T.active&&gn(T.effects,p)};if(o&&t){const w=t;t=(...S)=>{w(...S),F()}}let R=$?new Array(e.length).fill(qs):qs;const y=w=>{if(!(!(p.flags&1)||!p.dirty&&!w))if(t){const S=p.run();if(i||C||($?S.some((W,te)=>Rt(W,R[te])):Rt(S,R))){v&&v();const W=qt;qt=p;try{const te=[S,R===qs?void 0:$&&R[0]===qs?[]:R,_];R=S,c?c(t,3,te):t(...te)}finally{qt=W}}}else p.run()};return r&&r(y),p=new kl(m),p.scheduler=a?()=>a(y,!1):y,_=w=>la(w,!1,p),v=p.onStop=()=>{const w=Ks.get(p);if(w){if(c)c(w,4);else for(const S of w)S();Ks.delete(p)}},t?l?y(!0):R=p.run():a?a(y.bind(null,!0),!0):p.run(),F.pause=p.pause.bind(p),F.resume=p.resume.bind(p),F.stop=F,F}function At(e,t=1/0,s){if(t<=0||!Ee(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))At(e.value,t,s);else if(pe(e))for(let l=0;l<e.length;l++)At(e[l],t,s);else if(pl(e)||Jt(e))e.forEach(l=>{At(l,t,s)});else if(ml(e)){for(const l in e)At(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&At(e[l],t,s)}return e}const ws=[];let On=!1;function K1(e,...t){if(On)return;On=!0,pt();const s=ws.length?ws[ws.length-1].component:null,l=s&&s.appContext.config.warnHandler,i=ia();if(l)Xt(l,s,11,[e+t.map(o=>{var a,r;return(r=(a=o.toString)==null?void 0:a.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,i.map(({vnode:o})=>`at <${Ho(s,o.type)}>`).join(`
|
|
2
2
|
`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
|
|
3
3
|
`,...aa(i)),console.warn(...o)}vt(),On=!1}function ia(){let e=ws[ws.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const l=e.component&&e.component.parent;e=l&&l.vnode}return t}function aa(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
|
|
4
|
-
`],...ra(s))}),t}function ra({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,i=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[i,...ua(e.props),o]:[i+o]}function ua(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...ql(l,e[l]))}),s.length>3&&t.push(" ..."),t}function ql(e,t,s){return Fe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=ql(e,$e(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$e(t),s?t:[`${e}=`,t])}function Xt(e,t,s,l){try{return l?e(...l):e()}catch(i){Zt(i,t,s)}}function gt(e,t,s,l){if(ve(e)){const i=Xt(e,t,s,l);return i&&gl(i)&&i.catch(o=>{Zt(o,t,s)}),i}if(pe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(gt(e[o],t,s,l));return i}}function Zt(e,t,s,l=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Me;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const p=r.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,c,g)===!1)return}r=r.parent}if(o){pt(),Xt(o,null,10,[e,c,g]),vt();return}}ca(e,s,i,l,a)}function ca(e,t,s,l=!0,i=!1){if(i)throw e;console.error(e)}const Ve=[];let yt=-1;const es=[];let Lt=null,ts=0;const Kl=Promise.resolve();let Vs=null;function Dn(e){const t=Vs||Kl;return e?t.then(this?e.bind(this):e):t}function da(e){let t=yt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,i=Ve[l],o=$s(i);o<e||o===e&&i.flags&2?t=l+1:s=l}return t}function In(e){if(!(e.flags&1)){const t=$s(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=$s(s)?Ve.push(e):Ve.splice(da(t),0,e),e.flags|=1,Vl()}}function Vl(){Vs||(Vs=Kl.then(Jl))}function Bn(e){pe(e)?es.push(...e):Lt&&e.id===-1?Lt.splice(ts+1,0,e):e.flags&1||(es.push(e),e.flags|=1),Vl()}function zl(e,t,s=yt+1){for(;s<Ve.length;s++){const l=Ve[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Wl(e){if(es.length){const t=[...new Set(es)].sort((s,l)=>$s(s)-$s(l));if(es.length=0,Lt){Lt.push(...t);return}for(Lt=t,ts=0;ts<Lt.length;ts++){const s=Lt[ts];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Lt=null,ts=0}}const $s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(yt=0;yt<Ve.length;yt++){const t=Ve[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<Ve.length;yt++){const t=Ve[yt];t&&(t.flags&=-2)}yt=-1,Ve.length=0,Wl(),Vs=null,(Ve.length||es.length)&&Jl()}}let ze=null,Ql=null;function zs(e){const t=ze;return ze=e,Ql=e&&e.type.__scopeId||null,t}function ss(e,t=ze,s){if(!t||e._n)return e;const l=(...i)=>{l._d&&en(-1);const o=zs(t);let a;try{a=e(...i)}finally{zs(o),l._d&&en(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Kt(e,t,s,l){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const r=i[a];o&&(r.oldValue=o[a].value);let c=r.dir[l];c&&(pt(),gt(c,s,8,[e.el,r,e,t]),vt())}}function ns(e,t){if(He){let s=He.provides;const l=He.parent&&He.parent.provides;l===s&&(s=He.provides=Object.create(l)),s[e]=t}}function de(e,t,s=!1){const l=mr();if(l||os){let i=os?os._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&ve(t)?t.call(l&&l.proxy):t}}const fa=Symbol.for("v-scx"),ha=()=>de(fa);function ut(e,t,s){return Gl(e,t,s)}function Gl(e,t,s=Me){const{immediate:l,deep:i,flush:o,once:a}=s,r=Ne({},s),c=t&&l||!t&&o!=="post";let g;if(cs){if(o==="sync"){const _=ha();g=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=ht,_.resume=ht,_.pause=ht,_}}const p=He;r.call=(_,C,$)=>gt(_,p,C,$);let m=!1;o==="post"?r.scheduler=_=>{Je(_,p&&p.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(_,C)=>{C?_():In(_)}),r.augmentJob=_=>{t&&(_.flags|=4),m&&(_.flags|=2,p&&(_.id=p.uid,_.i=p))};const v=oa(e,t,r);return cs&&(g?g.push(v):c&&v()),v}function pa(e,t,s){const l=this.proxy,i=Fe(e)?e.includes(".")?Yl(l,e):()=>l[e]:e.bind(l,l);let o;ve(t)?o=t:(o=t.handler,s=t);const a=Ps(this),r=Gl(i,o.bind(l),s);return a(),r}function Yl(e,t){const s=t.split(".");return()=>{let l=e;for(let i=0;i<s.length&&l;i++)l=l[s[i]];return l}}const va=Symbol("_vte"),ga=e=>e.__isTeleport,ya=Symbol("_leaveCb");function Nn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oe(e,t){return ve(e)?Ne({name:e.name},t,{setup:e}):e}function jn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ws=new WeakMap;function ks(e,t,s,l,i=!1){if(pe(e)){e.forEach(($,T)=>ks($,t&&(pe(t)?t[T]:t),s,l,i));return}if(ls(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ks(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?tl(l.component):l.el,a=i?null:o,{i:r,r:c}=e,g=t&&t.r,p=r.refs===Me?r.refs={}:r.refs,m=r.setupState,v=$e(m),_=m===Me?hl:$=>Xl(p,$)?!1:Ce(v,$),C=($,T)=>!(T&&Xl(p,T));if(g!=null&&g!==c){if(Zl(t),Fe(g))p[g]=null,_(g)&&(m[g]=null);else if(je(g)){const $=t;C(g,$.k)&&(g.value=null),$.k&&(p[$.k]=null)}}if(ve(c))Xt(c,r,12,[a,p]);else{const $=Fe(c),T=je(c);if($||T){const F=()=>{if(e.f){const R=$?_(c)?m[c]:p[c]:C()||!e.k?c.value:p[e.k];if(i)pe(R)&&gn(R,o);else if(pe(R))R.includes(o)||R.push(o);else if($)p[c]=[o],_(c)&&(m[c]=p[c]);else{const y=[o];C(c,e.k)&&(c.value=y),e.k&&(p[e.k]=y)}}else $?(p[c]=a,_(c)&&(m[c]=a)):T&&(C(c,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const R=()=>{F(),Ws.delete(e)};R.id=-1,Ws.set(e,R),Je(R,s)}else Zl(e),F()}}}function Zl(e){const t=Ws.get(e);t&&(t.flags|=8,Ws.delete(e))}const eo=e=>e.nodeType===8;Is().requestIdleCallback,Is().cancelIdleCallback;function ma(e,t){if(eo(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(eo(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ls=e=>!!e.type.__asyncLoader;function ct(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:i=200,hydrate:o,timeout:a,suspensible:r=!0,onError:c}=e;let g=null,p,m=0;const v=()=>(m++,g=null,_()),_=()=>{let C;return g||(C=g=t().catch($=>{if($=$ instanceof Error?$:new Error(String($)),c)return new Promise((T,F)=>{c($,()=>T(v()),()=>F($),m+1)});throw $}).then($=>C!==g&&g?g:($&&($.__esModule||$[Symbol.toStringTag]==="Module")&&($=$.default),p=$,$)))};return Oe({name:"AsyncComponentWrapper",__asyncLoader:_,__asyncHydrate(C,$,T){let F=!1;($.bu||($.bu=[])).push(()=>F=!0);const R=()=>{F||T()},y=o?()=>{const w=o(R,S=>ma(C,S));w&&($.bum||($.bum=[])).push(w)}:R;p?y():_().then(()=>!$.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const C=He;if(jn(C),p)return()=>Js(p,C);const $=y=>{g=null,Zt(y,C,13,!l)};if(r&&C.suspense||cs)return _().then(y=>()=>Js(y,C)).catch(y=>($(y),()=>l?me(l,{error:y}):null));const T=K(!1),F=K(),R=K(!!i);return i&&setTimeout(()=>{R.value=!1},i),a!=null&&setTimeout(()=>{if(!T.value&&!F.value){const y=new Error(`Async component timed out after ${a}ms.`);$(y),F.value=y}},a),_().then(()=>{T.value=!0,C.parent&&Hn(C.parent.vnode)&&C.parent.update()}).catch(y=>{$(y),F.value=y}),()=>{if(T.value&&p)return Js(p,C);if(F.value&&l)return me(l,{error:F.value});if(s&&!R.value)return Js(s,C)}}})}function Js(e,t){const{ref:s,props:l,children:i,ce:o}=t.vnode,a=me(e,l,i);return a.ref=s,a.ce=o,delete t.vnode.ce,a}const Hn=e=>e.type.__isKeepAlive;function ba(e,t){to(e,"a",t)}function _a(e,t){to(e,"da",t)}function to(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qs(t,l,s),s){let i=s.parent;for(;i&&i.parent;)Hn(i.parent.vnode)&&xa(l,t,s,i),i=i.parent}}function xa(e,t,s,l){const i=Qs(t,e,l,!0);St(()=>{gn(l[t],i)},s)}function Qs(e,t,s=He,l=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...a)=>{pt();const r=Ps(s),c=gt(t,s,e,a);return r(),vt(),c});return l?i.unshift(o):i.push(o),o}}const kt=e=>(t,s=He)=>{(!cs||e==="sp")&&Qs(e,(...l)=>t(...l),s)},wa=kt("bm"),Ft=kt("m"),$a=kt("bu"),ka=kt("u"),so=kt("bum"),St=kt("um"),Sa=kt("sp"),Ca=kt("rtg"),Ta=kt("rtc");function Ea(e,t=He){Qs("ec",e,t)}const Pa="components",no=Symbol.for("v-ndc");function Ra(e){return Fe(e)?Ma(Pa,e,!1)||e:e||no}function Ma(e,t,s=!0,l=!1){const i=ze||He;if(i){const o=i.type;{const r=jo(o,!1);if(r&&(r===t||r===tt(t)||r===Ds(tt(t))))return o}const a=lo(i[e]||o[e],t)||lo(i.appContext[e],t);return!a&&l?o:a}}function lo(e,t){return e&&(e[t]||e[tt(t)]||e[Ds(tt(t))])}function ye(e,t,s,l){let i;const o=s,a=pe(e);if(a||Fe(e)){const r=a&&Ut(e);let c=!1,g=!1;r&&(c=!st(e),g=$t(e),e=Bs(e)),i=new Array(e.length);for(let p=0,m=e.length;p<m;p++)i[p]=t(c?g?Yt(rt(e[p])):rt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if(Ee(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const p=r[c];i[c]=t(e[p],p,c,o)}}else i=[];return i}function Aa(e,t,s={},l,i){if(ze.ce||ze.parent&&ls(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return u(),Xe(q,null,[me("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const a=o&&oo(o(s)),r=s.key||a&&a.key,c=Xe(q,{key:(r&&!it(r)?r:`_${t}`)+(!a&&l?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function oo(e){return e.some(t=>rs(t)?!(t.type===dt||t.type===q&&!oo(t.children)):!0)?e:null}const Un=e=>e?Bo(e)?tl(e):Un(e.parent):null,Ss=Ne(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=>Un(e.parent),$root:e=>Un(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>uo(e),$forceUpdate:e=>e.f||(e.f=()=>{In(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>pa.bind(e)}),qn=(e,t)=>e!==Me&&!e.__isScriptSetup&&Ce(e,t),La={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:i,props:o,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(qn(l,t))return a[t]=1,l[t];if(i!==Me&&Ce(i,t))return a[t]=2,i[t];if(Ce(o,t))return a[t]=3,o[t];if(s!==Me&&Ce(s,t))return a[t]=4,s[t];Kn&&(a[t]=0)}}const g=Ss[t];let p,m;if(g)return t==="$attrs"&&Ue(e.attrs,"get",""),g(e);if((p=r.__cssModules)&&(p=p[t]))return p;if(s!==Me&&Ce(s,t))return a[t]=4,s[t];if(m=c.config.globalProperties,Ce(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:i,ctx:o}=e;return qn(i,t)?(i[t]=s,!0):l!==Me&&Ce(l,t)?(l[t]=s,!0):Ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:i,props:o,type:a}},r){let c;return!!(s[r]||e!==Me&&r[0]!=="$"&&Ce(e,r)||qn(t,r)||Ce(o,r)||Ce(l,r)||Ce(Ss,r)||Ce(i.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ce(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function io(e){return pe(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Kn=!0;function Fa(e){const t=uo(e),s=e.proxy,l=e.ctx;Kn=!1,t.beforeCreate&&ao(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:r,provide:c,inject:g,created:p,beforeMount:m,mounted:v,beforeUpdate:_,updated:C,activated:$,deactivated:T,beforeDestroy:F,beforeUnmount:R,destroyed:y,unmounted:w,render:S,renderTracked:W,renderTriggered:te,errorCaptured:se,serverPrefetch:ee,expose:ge,inheritAttrs:Te,components:_e,directives:Pe,filters:ke}=t;if(g&&Oa(g,l,null),a)for(const j in a){const k=a[j];ve(k)&&(l[j]=k.bind(s))}if(i){const j=i.call(s,s);Ee(j)&&(e.data=Gt(j))}if(Kn=!0,o)for(const j in o){const k=o[j],E=ve(k)?k.bind(s,s):ve(k.get)?k.get.bind(s,s):ht,M=!ve(k)&&ve(k.set)?k.set.bind(s):ht,X=H({get:E,set:M});Object.defineProperty(l,j,{enumerable:!0,configurable:!0,get:()=>X.value,set:ue=>X.value=ue})}if(r)for(const j in r)ro(r[j],l,s,j);if(c){const j=ve(c)?c.call(s):c;Reflect.ownKeys(j).forEach(k=>{ns(k,j[k])})}p&&ao(p,e,"c");function J(j,k){pe(k)?k.forEach(E=>j(E.bind(s))):k&&j(k.bind(s))}if(J(wa,m),J(Ft,v),J($a,_),J(ka,C),J(ba,$),J(_a,T),J(Ea,se),J(Ta,W),J(Ca,te),J(so,R),J(St,w),J(Sa,ee),pe(ge))if(ge.length){const j=e.exposed||(e.exposed={});ge.forEach(k=>{Object.defineProperty(j,k,{get:()=>s[k],set:E=>s[k]=E,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===ht&&(e.render=S),Te!=null&&(e.inheritAttrs=Te),_e&&(e.components=_e),Pe&&(e.directives=Pe),ee&&jn(e)}function Oa(e,t,s=ht){pe(e)&&(e=Vn(e));for(const l in e){const i=e[l];let o;Ee(i)?"default"in i?o=de(i.from||l,i.default,!0):o=de(i.from||l):o=de(i),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[l]=o}}function ao(e,t,s){gt(pe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function ro(e,t,s,l){let i=l.includes(".")?Yl(s,l):()=>s[l];if(Fe(e)){const o=t[e];ve(o)&&ut(i,o)}else if(ve(e))ut(i,e.bind(s));else if(Ee(e))if(pe(e))e.forEach(o=>ro(o,t,s,l));else{const o=ve(e.handler)?e.handler.bind(s):t[e.handler];ve(o)&&ut(i,o,e)}}function uo(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,r=o.get(t);let c;return r?c=r:!i.length&&!s&&!l?c=t:(c={},i.length&&i.forEach(g=>Gs(c,g,a,!0)),Gs(c,t,a)),Ee(t)&&o.set(t,c),c}function Gs(e,t,s,l=!1){const{mixins:i,extends:o}=t;o&&Gs(e,o,s,!0),i&&i.forEach(a=>Gs(e,a,s,!0));for(const a in t)if(!(l&&a==="expose")){const r=Da[a]||s&&s[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Da={data:co,props:fo,emits:fo,methods:Cs,computed:Cs,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:Cs,directives:Cs,watch:Ba,provide:co,inject:Ia};function co(e,t){return t?e?function(){return Ne(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Ia(e,t){return Cs(Vn(e),Vn(t))}function Vn(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function Cs(e,t){return e?Ne(Object.create(null),e,t):t}function fo(e,t){return e?pe(e)&&pe(t)?[...new Set([...e,...t])]:Ne(Object.create(null),io(e),io(t??{})):t}function Ba(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const l in t)s[l]=We(e[l],t[l]);return s}function ho(){return{app:null,config:{isNativeTag:hl,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 Na=0;function ja(e,t){return function(l,i=null){ve(l)||(l=Ne({},l)),i!=null&&!Ee(i)&&(i=null);const o=ho(),a=new WeakSet,r=[];let c=!1;const g=o.app={_uid:Na++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Cr,get config(){return o.config},set config(p){},use(p,...m){return a.has(p)||(p&&ve(p.install)?(a.add(p),p.install(g,...m)):ve(p)&&(a.add(p),p(g,...m))),g},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),g},component(p,m){return m?(o.components[p]=m,g):o.components[p]},directive(p,m){return m?(o.directives[p]=m,g):o.directives[p]},mount(p,m,v){if(!c){const _=g._ceVNode||me(l,i);return _.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(_,p,v),c=!0,g._container=p,p.__vue_app__=g,tl(_.component)}},onUnmount(p){r.push(p)},unmount(){c&&(gt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,m){return o.provides[p]=m,g},runWithContext(p){const m=os;os=g;try{return p()}finally{os=m}}};return g}}let os=null;const Ha=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Ua(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Me;let i=s;const o=t.startsWith("update:"),a=o&&Ha(l,t.slice(7));a&&(a.trim&&(i=s.map(p=>Fe(p)?p.trim():p)),a.number&&(i=s.map($i)));let r,c=l[r=mn(t)]||l[r=mn(tt(t))];!c&&o&&(c=l[r=mn(Pt(t))]),c&>(c,e,6,i);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,gt(g,e,6,i)}}const qa=new WeakMap;function po(e,t,s=!1){const l=s?qa:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const o=e.emits;let a={},r=!1;if(!ve(e)){const c=g=>{const p=po(g,t,!0);p&&(r=!0,Ne(a,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Ee(e)&&l.set(e,null),null):(pe(o)?o.forEach(c=>a[c]=null):Ne(a,o),Ee(e)&&l.set(e,a),a)}function Ys(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,Pt(t))||Ce(e,t))}function V1(){}function vo(e){const{type:t,vnode:s,proxy:l,withProxy:i,propsOptions:[o],slots:a,attrs:r,emit:c,render:g,renderCache:p,props:m,data:v,setupState:_,ctx:C,inheritAttrs:$}=e,T=zs(e);let F,R;try{if(s.shapeFlag&4){const w=i||l,S=w;F=ft(g.call(S,w,p,m,_,v,C)),R=r}else{const w=t;F=ft(w.length>1?w(m,{attrs:r,slots:a,emit:c}):w(m,null)),R=t.props?r:Va(r)}}catch(w){Es.length=0,Zt(w,e,1),F=me(dt)}let y=F;if(R&&$!==!1){const w=Object.keys(R),{shapeFlag:S}=y;w.length&&S&7&&(o&&w.some(vn)&&(R=za(R,o)),y=us(y,R,!1,!0))}return s.dirs&&(y=us(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&Nn(y,s.transition),F=y,zs(T),F}function Ka(e,t=!0){let s;for(let l=0;l<e.length;l++){const i=e[l];if(rs(i)){if(i.type!==dt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Va=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},za=(e,t)=>{const s={};for(const l in e)(!vn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Wa(e,t,s){const{props:l,children:i,component:o}=e,{props:a,children:r,patchFlag:c}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?go(l,a,g):!!a;if(c&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const v=p[m];if(yo(a,l,v)&&!Ys(g,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===a?!1:l?a?go(l,a,g):!0:!!a;return!1}function go(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const o=l[i];if(yo(t,e,o)&&!Ys(s,o))return!0}return!1}function yo(e,t,s){const l=e[s],i=t[s];return s==="style"&&Ee(l)&&Ee(i)?!_n(l,i):l!==i}function zn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const mo={},bo=()=>Object.create(mo),_o=e=>Object.getPrototypeOf(e)===mo;function Ja(e,t,s,l=!1){const i={},o=bo();e.propsDefaults=Object.create(null),xo(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);s?e.props=l?i:Yi(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Qa(e,t,s,l){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,r=$e(i),[c]=e.propsOptions;let g=!1;if((l||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let v=p[m];if(Ys(e.emitsOptions,v))continue;const _=t[v];if(c)if(Ce(o,v))_!==o[v]&&(o[v]=_,g=!0);else{const C=tt(v);i[C]=Wn(c,r,C,_,e,!1)}else _!==o[v]&&(o[v]=_,g=!0)}}}else{xo(e,t,i,o)&&(g=!0);let p;for(const m in r)(!t||!Ce(t,m)&&((p=Pt(m))===m||!Ce(t,p)))&&(c?s&&(s[m]!==void 0||s[p]!==void 0)&&(i[m]=Wn(c,r,m,void 0,e,!0)):delete i[m]);if(o!==r)for(const m in o)(!t||!Ce(t,m))&&(delete o[m],g=!0)}g&&xt(e.attrs,"set","")}function xo(e,t,s,l){const[i,o]=e.propsOptions;let a=!1,r;if(t)for(let c in t){if(gs(c))continue;const g=t[c];let p;i&&Ce(i,p=tt(c))?!o||!o.includes(p)?s[p]=g:(r||(r={}))[p]=g:Ys(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,a=!0)}if(o){const c=$e(s),g=r||Me;for(let p=0;p<o.length;p++){const m=o[p];s[m]=Wn(i,c,m,g[m],e,!Ce(g,m))}}return a}function Wn(e,t,s,l,i,o){const a=e[s];if(a!=null){const r=Ce(a,"default");if(r&&l===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&ve(c)){const{propsDefaults:g}=i;if(s in g)l=g[s];else{const p=Ps(i);l=g[s]=c.call(null,t),p()}}else l=c;i.ce&&i.ce._setProp(s,l)}a[0]&&(o&&!r?l=!1:a[1]&&(l===""||l===Pt(s))&&(l=!0))}return l}const Ga=new WeakMap;function wo(e,t,s=!1){const l=s?Ga:t.propsCache,i=l.get(e);if(i)return i;const o=e.props,a={},r=[];let c=!1;if(!ve(e)){const p=m=>{c=!0;const[v,_]=wo(m,t,!0);Ne(a,v),_&&r.push(..._)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Ee(e)&&l.set(e,Wt),Wt;if(pe(o))for(let p=0;p<o.length;p++){const m=tt(o[p]);$o(m)&&(a[m]=Me)}else if(o)for(const p in o){const m=tt(p);if($o(m)){const v=o[p],_=a[m]=pe(v)||ve(v)?{type:v}:Ne({},v),C=_.type;let $=!1,T=!0;if(pe(C))for(let F=0;F<C.length;++F){const R=C[F],y=ve(R)&&R.name;if(y==="Boolean"){$=!0;break}else y==="String"&&(T=!1)}else $=ve(C)&&C.name==="Boolean";_[0]=$,_[1]=T,($||Ce(_,"default"))&&r.push(m)}}const g=[a,r];return Ee(e)&&l.set(e,g),g}function $o(e){return e[0]!=="$"&&!gs(e)}const Jn=e=>e==="_"||e==="_ctx"||e==="$stable",Qn=e=>pe(e)?e.map(ft):[ft(e)],Ya=(e,t,s)=>{if(t._n)return t;const l=ss((...i)=>Qn(t(...i)),s);return l._c=!1,l},ko=(e,t,s)=>{const l=e._ctx;for(const i in e){if(Jn(i))continue;const o=e[i];if(ve(o))t[i]=Ya(i,o,l);else if(o!=null){const a=Qn(o);t[i]=()=>a}}},So=(e,t)=>{const s=Qn(t);e.slots.default=()=>s},Co=(e,t,s)=>{for(const l in t)(s||!Jn(l))&&(e[l]=t[l])},Xa=(e,t,s)=>{const l=e.slots=bo();if(e.vnode.shapeFlag&32){const i=t._;i?(Co(l,t,s),s&&bl(l,"_",i,!0)):ko(t,l)}else t&&So(e,t)},Za=(e,t,s)=>{const{vnode:l,slots:i}=e;let o=!0,a=Me;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:Co(i,t,s):(o=!t.$stable,ko(t,i)),a=t}else t&&(So(e,t),a={default:1});if(o)for(const r in i)!Jn(r)&&a[r]==null&&delete i[r]},Je=ur;function er(e){return tr(e)}function tr(e,t){const s=Is();s.__VUE__=!0;const{insert:l,remove:i,patchProp:o,createElement:a,createText:r,createComment:c,setText:g,setElementText:p,parentNode:m,nextSibling:v,setScopeId:_=ht,insertStaticContent:C}=e,$=(f,b,P,N=null,O=null,D=null,Q=void 0,z=null,I=!!b.dynamicChildren)=>{if(f===b)return;f&&!Ot(f,b)&&(N=ie(f),ue(f,O,D,!0),f=null),b.patchFlag===-2&&(I=!1,b.dynamicChildren=null);const{type:B,ref:ce,shapeFlag:Z}=b;switch(B){case Xs:T(f,b,P,N);break;case dt:F(f,b,P,N);break;case Zs:f==null&&R(b,P,N,Q);break;case q:_e(f,b,P,N,O,D,Q,z,I);break;default:Z&1?S(f,b,P,N,O,D,Q,z,I):Z&6?Pe(f,b,P,N,O,D,Q,z,I):(Z&64||Z&128)&&B.process(f,b,P,N,O,D,Q,z,I,Et)}ce!=null&&O?ks(ce,f&&f.ref,D,b||f,!b):ce==null&&f&&f.ref!=null&&ks(f.ref,null,D,f,!0)},T=(f,b,P,N)=>{if(f==null)l(b.el=r(b.children),P,N);else{const O=b.el=f.el;b.children!==f.children&&g(O,b.children)}},F=(f,b,P,N)=>{f==null?l(b.el=c(b.children||""),P,N):b.el=f.el},R=(f,b,P,N)=>{[f.el,f.anchor]=C(f.children,b,P,N,f.el,f.anchor)},y=({el:f,anchor:b},P,N)=>{let O;for(;f&&f!==b;)O=v(f),l(f,P,N),f=O;l(b,P,N)},w=({el:f,anchor:b})=>{let P;for(;f&&f!==b;)P=v(f),i(f),f=P;i(b)},S=(f,b,P,N,O,D,Q,z,I)=>{if(b.type==="svg"?Q="svg":b.type==="math"&&(Q="mathml"),f==null)W(b,P,N,O,D,Q,z,I);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),ee(f,b,O,D,Q,z,I)}finally{B&&B._endPatch()}}},W=(f,b,P,N,O,D,Q,z)=>{let I,B;const{props:ce,shapeFlag:Z,transition:ae,dirs:he}=f;if(I=f.el=a(f.type,D,ce&&ce.is,ce),Z&8?p(I,f.children):Z&16&&se(f.children,I,null,N,O,Gn(f,D),Q,z),he&&Kt(f,null,N,"created"),te(I,f,f.scopeId,Q,N),ce){for(const Re in ce)Re!=="value"&&!gs(Re)&&o(I,Re,null,ce[Re],D,N);"value"in ce&&o(I,"value",null,ce.value,D),(B=ce.onVnodeBeforeMount)&&mt(B,N,f)}he&&Kt(f,null,N,"beforeMount");const xe=sr(O,ae);xe&&ae.beforeEnter(I),l(I,b,P),((B=ce&&ce.onVnodeMounted)||xe||he)&&Je(()=>{B&&mt(B,N,f),xe&&ae.enter(I),he&&Kt(f,null,N,"mounted")},O)},te=(f,b,P,N,O)=>{if(P&&_(f,P),N)for(let D=0;D<N.length;D++)_(f,N[D]);if(O){let D=O.subTree;if(b===D||Mo(D.type)&&(D.ssContent===b||D.ssFallback===b)){const Q=O.vnode;te(f,Q,Q.scopeId,Q.slotScopeIds,O.parent)}}},se=(f,b,P,N,O,D,Q,z,I=0)=>{for(let B=I;B<f.length;B++){const ce=f[B]=z?Ct(f[B]):ft(f[B]);$(null,ce,b,P,N,O,D,Q,z)}},ee=(f,b,P,N,O,D,Q)=>{const z=b.el=f.el;let{patchFlag:I,dynamicChildren:B,dirs:ce}=b;I|=f.patchFlag&16;const Z=f.props||Me,ae=b.props||Me;let he;if(P&&Vt(P,!1),(he=ae.onVnodeBeforeUpdate)&&mt(he,P,b,f),ce&&Kt(b,f,P,"beforeUpdate"),P&&Vt(P,!0),(Z.innerHTML&&ae.innerHTML==null||Z.textContent&&ae.textContent==null)&&p(z,""),B?ge(f.dynamicChildren,B,z,P,N,Gn(b,O),D):Q||k(f,b,z,null,P,N,Gn(b,O),D,!1),I>0){if(I&16)Te(z,Z,ae,P,O);else if(I&2&&Z.class!==ae.class&&o(z,"class",null,ae.class,O),I&4&&o(z,"style",Z.style,ae.style,O),I&8){const xe=b.dynamicProps;for(let Re=0;Re<xe.length;Re++){const Se=xe[Re],qe=Z[Se],Be=ae[Se];(Be!==qe||Se==="value")&&o(z,Se,qe,Be,O,P)}}I&1&&f.children!==b.children&&p(z,b.children)}else!Q&&B==null&&Te(z,Z,ae,P,O);((he=ae.onVnodeUpdated)||ce)&&Je(()=>{he&&mt(he,P,b,f),ce&&Kt(b,f,P,"updated")},N)},ge=(f,b,P,N,O,D,Q)=>{for(let z=0;z<b.length;z++){const I=f[z],B=b[z],ce=I.el&&(I.type===q||!Ot(I,B)||I.shapeFlag&198)?m(I.el):P;$(I,B,ce,null,N,O,D,Q,!0)}},Te=(f,b,P,N,O)=>{if(b!==P){if(b!==Me)for(const D in b)!gs(D)&&!(D in P)&&o(f,D,b[D],null,O,N);for(const D in P){if(gs(D))continue;const Q=P[D],z=b[D];Q!==z&&D!=="value"&&o(f,D,z,Q,O,N)}"value"in P&&o(f,"value",b.value,P.value,O)}},_e=(f,b,P,N,O,D,Q,z,I)=>{const B=b.el=f?f.el:r(""),ce=b.anchor=f?f.anchor:r("");let{patchFlag:Z,dynamicChildren:ae,slotScopeIds:he}=b;he&&(z=z?z.concat(he):he),f==null?(l(B,P,N),l(ce,P,N),se(b.children||[],P,ce,O,D,Q,z,I)):Z>0&&Z&64&&ae&&f.dynamicChildren&&f.dynamicChildren.length===ae.length?(ge(f.dynamicChildren,ae,P,O,D,Q,z),(b.key!=null||O&&b===O.subTree)&&To(f,b,!0)):k(f,b,P,ce,O,D,Q,z,I)},Pe=(f,b,P,N,O,D,Q,z,I)=>{b.slotScopeIds=z,f==null?b.shapeFlag&512?O.ctx.activate(b,P,N,Q,I):ke(b,P,N,O,D,Q,I):we(f,b,I)},ke=(f,b,P,N,O,D,Q)=>{const z=f.component=yr(f,N,O);if(Hn(f)&&(z.ctx.renderer=Et),br(z,!1,Q),z.asyncDep){if(O&&O.registerDep(z,J,Q),!f.el){const I=z.subTree=me(dt);F(null,I,b,P),f.placeholder=I.el}}else J(z,f,b,P,O,D,Q)},we=(f,b,P)=>{const N=b.component=f.component;if(Wa(f,b,P))if(N.asyncDep&&!N.asyncResolved){j(N,b,P);return}else N.next=b,N.update();else b.el=f.el,N.vnode=b},J=(f,b,P,N,O,D,Q)=>{const z=()=>{if(f.isMounted){let{next:Z,bu:ae,u:he,parent:xe,vnode:Re}=f;{const Ye=Eo(f);if(Ye){Z&&(Z.el=Re.el,j(f,Z,Q)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},O)});return}}let Se=Z,qe;Vt(f,!1),Z?(Z.el=Re.el,j(f,Z,Q)):Z=Re,ae&&bn(ae),(qe=Z.props&&Z.props.onVnodeBeforeUpdate)&&mt(qe,xe,Z,Re),Vt(f,!0);const Be=vo(f),Ze=f.subTree;f.subTree=Be,$(Ze,Be,m(Ze.el),ie(Ze),f,O,D),Z.el=Be.el,Se===null&&zn(f,Be.el),he&&Je(he,O),(qe=Z.props&&Z.props.onVnodeUpdated)&&Je(()=>mt(qe,xe,Z,Re),O)}else{let Z;const{el:ae,props:he}=b,{bm:xe,m:Re,parent:Se,root:qe,type:Be}=f,Ze=ls(b);Vt(f,!1),xe&&bn(xe),!Ze&&(Z=he&&he.onVnodeBeforeMount)&&mt(Z,Se,b),Vt(f,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Be);const Ye=f.subTree=vo(f);$(null,Ye,P,N,f,O,D),b.el=Ye.el}if(Re&&Je(Re,O),!Ze&&(Z=he&&he.onVnodeMounted)){const Ye=b;Je(()=>mt(Z,Se,Ye),O)}(b.shapeFlag&256||Se&&ls(Se.vnode)&&Se.vnode.shapeFlag&256)&&f.a&&Je(f.a,O),f.isMounted=!0,b=P=N=null}};f.scope.on();const I=f.effect=new kl(z);f.scope.off();const B=f.update=I.run.bind(I),ce=f.job=I.runIfDirty.bind(I);ce.i=f,ce.id=f.uid,I.scheduler=()=>In(ce),Vt(f,!0),B()},j=(f,b,P)=>{b.component=f;const N=f.vnode.props;f.vnode=b,f.next=null,Qa(f,b.props,N,P),Za(f,b.children,P),pt(),zl(f),vt()},k=(f,b,P,N,O,D,Q,z,I=!1)=>{const B=f&&f.children,ce=f?f.shapeFlag:0,Z=b.children,{patchFlag:ae,shapeFlag:he}=b;if(ae>0){if(ae&128){M(B,Z,P,N,O,D,Q,z,I);return}else if(ae&256){E(B,Z,P,N,O,D,Q,z,I);return}}he&8?(ce&16&&V(B,O,D),Z!==B&&p(P,Z)):ce&16?he&16?M(B,Z,P,N,O,D,Q,z,I):V(B,O,D,!0):(ce&8&&p(P,""),he&16&&se(Z,P,N,O,D,Q,z,I))},E=(f,b,P,N,O,D,Q,z,I)=>{f=f||Wt,b=b||Wt;const B=f.length,ce=b.length,Z=Math.min(B,ce);let ae;for(ae=0;ae<Z;ae++){const he=b[ae]=I?Ct(b[ae]):ft(b[ae]);$(f[ae],he,P,null,O,D,Q,z,I)}B>ce?V(f,O,D,!0,!1,Z):se(b,P,N,O,D,Q,z,I,Z)},M=(f,b,P,N,O,D,Q,z,I)=>{let B=0;const ce=b.length;let Z=f.length-1,ae=ce-1;for(;B<=Z&&B<=ae;){const he=f[B],xe=b[B]=I?Ct(b[B]):ft(b[B]);if(Ot(he,xe))$(he,xe,P,null,O,D,Q,z,I);else break;B++}for(;B<=Z&&B<=ae;){const he=f[Z],xe=b[ae]=I?Ct(b[ae]):ft(b[ae]);if(Ot(he,xe))$(he,xe,P,null,O,D,Q,z,I);else break;Z--,ae--}if(B>Z){if(B<=ae){const he=ae+1,xe=he<ce?b[he].el:N;for(;B<=ae;)$(null,b[B]=I?Ct(b[B]):ft(b[B]),P,xe,O,D,Q,z,I),B++}}else if(B>ae)for(;B<=Z;)ue(f[B],O,D,!0),B++;else{const he=B,xe=B,Re=new Map;for(B=xe;B<=ae;B++){const ne=b[B]=I?Ct(b[B]):ft(b[B]);ne.key!=null&&Re.set(ne.key,B)}let Se,qe=0;const Be=ae-xe+1;let Ze=!1,Ye=0;const G=new Array(Be);for(B=0;B<Be;B++)G[B]=0;for(B=he;B<=Z;B++){const ne=f[B];if(qe>=Be){ue(ne,O,D,!0);continue}let fe;if(ne.key!=null)fe=Re.get(ne.key);else for(Se=xe;Se<=ae;Se++)if(G[Se-xe]===0&&Ot(ne,b[Se])){fe=Se;break}fe===void 0?ue(ne,O,D,!0):(G[fe-xe]=B+1,fe>=Ye?Ye=fe:Ze=!0,$(ne,b[fe],P,null,O,D,Q,z,I),qe++)}const A=Ze?nr(G):Wt;for(Se=A.length-1,B=Be-1;B>=0;B--){const ne=xe+B,fe=b[ne],ot=b[ne+1],et=ne+1<ce?ot.el||Ro(ot):N;G[B]===0?$(null,fe,P,et,O,D,Q,z,I):Ze&&(Se<0||B!==A[Se]?X(fe,P,et,2):Se--)}}},X=(f,b,P,N,O=null)=>{const{el:D,type:Q,transition:z,children:I,shapeFlag:B}=f;if(B&6){X(f.component.subTree,b,P,N);return}if(B&128){f.suspense.move(b,P,N);return}if(B&64){Q.move(f,b,P,Et);return}if(Q===q){l(D,b,P);for(let Z=0;Z<I.length;Z++)X(I[Z],b,P,N);l(f.anchor,b,P);return}if(Q===Zs){y(f,b,P);return}if(N!==2&&B&1&&z)if(N===0)z.beforeEnter(D),l(D,b,P),Je(()=>z.enter(D),O);else{const{leave:Z,delayLeave:ae,afterLeave:he}=z,xe=()=>{f.ctx.isUnmounted?i(D):l(D,b,P)},Re=()=>{D._isLeaving&&D[ya](!0),Z(D,()=>{xe(),he&&he()})};ae?ae(D,xe,Re):Re()}else l(D,b,P)},ue=(f,b,P,N=!1,O=!1)=>{const{type:D,props:Q,ref:z,children:I,dynamicChildren:B,shapeFlag:ce,patchFlag:Z,dirs:ae,cacheIndex:he}=f;if(Z===-2&&(O=!1),z!=null&&(pt(),ks(z,null,P,f,!0),vt()),he!=null&&(b.renderCache[he]=void 0),ce&256){b.ctx.deactivate(f);return}const xe=ce&1&&ae,Re=!ls(f);let Se;if(Re&&(Se=Q&&Q.onVnodeBeforeUnmount)&&mt(Se,b,f),ce&6)oe(f.component,P,N);else{if(ce&128){f.suspense.unmount(P,N);return}xe&&Kt(f,null,b,"beforeUnmount"),ce&64?f.type.remove(f,b,P,Et,N):B&&!B.hasOnce&&(D!==q||Z>0&&Z&64)?V(B,b,P,!1,!0):(D===q&&Z&384||!O&&ce&16)&&V(I,b,P),N&&le(f)}(Re&&(Se=Q&&Q.onVnodeUnmounted)||xe)&&Je(()=>{Se&&mt(Se,b,f),xe&&Kt(f,null,b,"unmounted")},P)},le=f=>{const{type:b,el:P,anchor:N,transition:O}=f;if(b===q){U(P,N);return}if(b===Zs){w(f);return}const D=()=>{i(P),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:Q,delayLeave:z}=O,I=()=>Q(P,D);z?z(f.el,D,I):I()}else D()},U=(f,b)=>{let P;for(;f!==b;)P=v(f),i(f),f=P;i(b)},oe=(f,b,P)=>{const{bum:N,scope:O,job:D,subTree:Q,um:z,m:I,a:B}=f;Po(I),Po(B),N&&bn(N),O.stop(),D&&(D.flags|=8,ue(Q,f,b,P)),z&&Je(z,b),Je(()=>{f.isUnmounted=!0},b)},V=(f,b,P,N=!1,O=!1,D=0)=>{for(let Q=D;Q<f.length;Q++)ue(f[Q],b,P,N,O)},ie=f=>{if(f.shapeFlag&6)return ie(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const b=v(f.anchor||f.el),P=b&&b[va];return P?v(P):b};let De=!1;const fn=(f,b,P)=>{let N;f==null?b._vnode&&(ue(b._vnode,null,null,!0),N=b._vnode.component):$(b._vnode||null,f,b,null,null,null,P),b._vnode=f,De||(De=!0,zl(N),Wl(),De=!1)},Et={p:$,um:ue,m:X,r:le,mt:ke,mc:se,pc:k,pbc:ge,n:ie,o:e};return{render:fn,hydrate:void 0,createApp:ja(fn)}}function Gn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Vt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function sr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function To(e,t,s=!1){const l=e.children,i=t.children;if(pe(l)&&pe(i))for(let o=0;o<l.length;o++){const a=l[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=Ct(i[o]),r.el=a.el),!s&&r.patchFlag!==-2&&To(a,r)),r.type===Xs&&(r.patchFlag===-1&&(r=i[o]=Ct(r)),r.el=a.el),r.type===dt&&!r.el&&(r.el=a.el)}}function nr(e){const t=e.slice(),s=[0];let l,i,o,a,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(i=s[s.length-1],e[i]<g){t[l]=i,s.push(l);continue}for(o=0,a=s.length-1;o<a;)r=o+a>>1,e[s[r]]<g?o=r+1:a=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,a=s[o-1];o-- >0;)s[o]=a,a=t[a];return s}function Eo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Eo(t)}function Po(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ro(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ro(t.subTree):null}const Mo=e=>e.__isSuspense;let Yn=0;const lr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,i,o,a,r,c,g){if(e==null)or(t,s,l,i,o,a,r,c,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ir(e,t,s,l,i,a,r,c,g)}},hydrate:ar,normalize:rr};function Ts(e,t){const s=e.props&&e.props[t];ve(s)&&s()}function or(e,t,s,l,i,o,a,r,c){const{p:g,o:{createElement:p}}=c,m=p("div"),v=e.suspense=Ao(e,i,l,t,m,s,o,a,r,c);g(null,v.pendingBranch=e.ssContent,m,null,l,v,o,a),v.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,a),is(v,e.ssFallback)):v.resolve(!1,!0)}function ir(e,t,s,l,i,o,a,r,{p:c,um:g,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,_=t.ssFallback,{activeBranch:C,pendingBranch:$,isInFallback:T,isHydrating:F}=m;if($)m.pendingBranch=v,Ot($,v)?(c($,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0?m.resolve():T&&(F||(c(C,_,s,l,i,null,o,a,r),is(m,_)))):(m.pendingId=Yn++,F?(m.isHydrating=!1,m.activeBranch=$):g($,i,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),T?(c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0?m.resolve():(c(C,_,s,l,i,null,o,a,r),is(m,_))):C&&Ot(C,v)?(c(C,v,s,l,i,m,o,a,r),m.resolve(!0)):(c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0&&m.resolve()));else if(C&&Ot(C,v))c(C,v,s,l,i,m,o,a,r),is(m,v);else if(Ts(t,"onPending"),m.pendingBranch=v,v.shapeFlag&512?m.pendingId=v.component.suspenseId:m.pendingId=Yn++,c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0)m.resolve();else{const{timeout:R,pendingId:y}=m;R>0?setTimeout(()=>{m.pendingId===y&&m.fallback(_)},R):R===0&&m.fallback(_)}}function Ao(e,t,s,l,i,o,a,r,c,g,p=!1){const{p:m,m:v,um:_,n:C,o:{parentNode:$,remove:T}}=g;let F;const R=cr(e);R&&t&&t.pendingBranch&&(F=t.pendingId,t.deps++);const y=e.props?ki(e.props.timeout):void 0,w=o,S={vnode:e,parent:t,parentComponent:s,namespace:a,container:l,hiddenContainer:i,deps:0,pendingId:Yn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(W=!1,te=!1){const{vnode:se,activeBranch:ee,pendingBranch:ge,pendingId:Te,effects:_e,parentComponent:Pe,container:ke,isInFallback:we}=S;let J=!1;S.isHydrating?S.isHydrating=!1:W||(J=ee&&ge.transition&&ge.transition.mode==="out-in",J&&(ee.transition.afterLeave=()=>{Te===S.pendingId&&(v(ge,ke,o===w?C(ee):o,0),Bn(_e),we&&se.ssFallback&&(se.ssFallback.el=null))}),ee&&($(ee.el)===ke&&(o=C(ee)),_(ee,Pe,S,!0),!J&&we&&se.ssFallback&&Je(()=>se.ssFallback.el=null,S)),J||v(ge,ke,o,0)),is(S,ge),S.pendingBranch=null,S.isInFallback=!1;let j=S.parent,k=!1;for(;j;){if(j.pendingBranch){j.effects.push(..._e),k=!0;break}j=j.parent}!k&&!J&&Bn(_e),S.effects=[],R&&t&&t.pendingBranch&&F===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ts(se,"onResolve")},fallback(W){if(!S.pendingBranch)return;const{vnode:te,activeBranch:se,parentComponent:ee,container:ge,namespace:Te}=S;Ts(te,"onFallback");const _e=C(se),Pe=()=>{S.isInFallback&&(m(null,W,ge,_e,ee,null,Te,r,c),is(S,W))},ke=W.transition&&W.transition.mode==="out-in";ke&&(se.transition.afterLeave=Pe),S.isInFallback=!0,_(se,ee,null,!0),ke||Pe()},move(W,te,se){S.activeBranch&&v(S.activeBranch,W,te,se),S.container=W},next(){return S.activeBranch&&C(S.activeBranch)},registerDep(W,te,se){const ee=!!S.pendingBranch;ee&&S.deps++;const ge=W.vnode.el;W.asyncDep.catch(Te=>{Zt(Te,W,0)}).then(Te=>{if(W.isUnmounted||S.isUnmounted||S.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:_e}=W;el(W,Te),ge&&(_e.el=ge);const Pe=!ge&&W.subTree.el;te(W,_e,$(ge||W.subTree.el),ge?null:C(W.subTree),S,a,se),Pe&&(_e.placeholder=null,T(Pe)),zn(W,_e.el),ee&&--S.deps===0&&S.resolve()})},unmount(W,te){S.isUnmounted=!0,S.activeBranch&&_(S.activeBranch,s,W,te),S.pendingBranch&&_(S.pendingBranch,s,W,te)}};return S}function ar(e,t,s,l,i,o,a,r,c){const g=t.suspense=Ao(t,l,s,e.parentNode,document.createElement("div"),null,i,o,a,r,!0),p=c(e,g.pendingBranch=t.ssContent,s,g,o,a);return g.deps===0&&g.resolve(!1,!0),p}function rr(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Lo(l?s.default:s),e.ssFallback=l?Lo(s.fallback):me(dt)}function Lo(e){let t;if(ve(e)){const s=as&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ge,Fo())}return pe(e)&&(e=Ka(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ur(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):Bn(e)}function is(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,l&&l.subTree===s&&(l.vnode.el=i,zn(l,i))}function cr(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const q=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),Zs=Symbol.for("v-stc"),Es=[];let Ge=null;function u(e=!1){Es.push(Ge=e?null:[])}function Fo(){Es.pop(),Ge=Es[Es.length-1]||null}let as=1;function en(e,t=!1){as+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Oo(e){return e.dynamicChildren=as>0?Ge||Wt:null,Fo(),as>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,i,o){return Oo(n(e,t,s,l,i,o,!0))}function Xe(e,t,s,l,i){return Oo(me(e,t,s,l,i,!0))}function rs(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const Do=({key:e})=>e??null,tn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||je(e)||ve(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,i=null,o=e===q?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Do(t),ref:t&&tn(t),scopeId:Ql,slotScopeIds:null,children:s,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:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return r?(Xn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Fe(s)?8:16),as>0&&!a&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const me=dr;function dr(e,t=null,s=null,l=0,i=null,o=!1){if((!e||e===no)&&(e=dt),rs(e)){const r=us(e,t,!0);return s&&Xn(r,s),as>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(Sr(e)&&(e=e.__vccOpts),t){t=fr(t);let{class:r,style:c}=t;r&&!Fe(r)&&(t.class=L(r)),Ee(c)&&(Fn(c)&&!pe(c)&&(c=Ne({},c)),t.style=Ke(c))}const a=Fe(e)?1:Mo(e)?128:ga(e)?64:Ee(e)?4:ve(e)?2:0;return n(e,t,s,l,i,a,o,!0)}function fr(e){return e?Fn(e)||_o(e)?Ne({},e):e:null}function us(e,t,s=!1,l=!1){const{props:i,ref:o,patchFlag:a,children:r,transition:c}=e,g=t?pr(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Do(g),ref:t&&t.ref?s&&o?pe(o)?o.concat(tn(t)):[o,tn(t)]:tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Nn(p,c.clone(p)),p}function be(e=" ",t=0){return me(Xs,null,e,t)}function hr(e,t){const s=me(Zs,null,e);return s.staticCount=t,s}function Y(e="",t=!1){return t?(u(),Xe(dt,null,e)):me(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?me(dt):pe(e)?me(q,null,e.slice()):rs(e)?Ct(e):me(Xs,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function Xn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(pe(t))s=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),Xn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!_o(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[be(t)]):s=8);e.children=t,e.shapeFlag|=s}function pr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=L([t.class,l.class]));else if(i==="style")t.style=Ke([t.style,l.style]);else if(Fs(i)){const o=t[i],a=l[i];a&&o!==a&&!(pe(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=l[i])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const vr=ho();let gr=0;function yr(e,t,s){const l=e.type,i=(t?t.appContext:e.appContext)||vr,o={uid:gr++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Mi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wo(l,i),emitsOptions:po(l,i),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:l.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:s,suspenseId:s?s.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=Ua.bind(null,o),e.ce&&e.ce(o),o}let He=null;const mr=()=>He||ze;let sn,Zn;{const e=Is(),t=(s,l)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(l),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};sn=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Zn=t("__VUE_SSR_SETTERS__",s=>cs=s)}const Ps=e=>{const t=He;return sn(e),e.scope.on(),()=>{e.scope.off(),sn(t)}},Io=()=>{He&&He.scope.off(),sn(null)};function Bo(e){return e.vnode.shapeFlag&4}let cs=!1;function br(e,t=!1,s=!1){t&&Zn(t);const{props:l,children:i}=e.vnode,o=Bo(e);Ja(e,l,o,t),Xa(e,i,s||t);const a=o?_r(e,t):void 0;return t&&Zn(!1),a}function _r(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,La);const{setup:l}=s;if(l){pt();const i=e.setupContext=l.length>1?wr(e):null,o=Ps(e),a=Xt(l,e,0,[e.props,i]),r=gl(a);if(vt(),o(),(r||e.sp)&&!ls(e)&&jn(e),r){if(a.then(Io,Io),t)return a.then(c=>{el(e,c)}).catch(c=>{Zt(c,e,0)});e.asyncDep=a}else el(e,a)}else No(e)}function el(e,t,s){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Ul(t)),No(e)}function No(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const i=Ps(e);pt();try{Fa(e)}finally{vt(),i()}}}const xr={get(e,t){return Ue(e,"get",""),e[t]}};function wr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xr),slots:e.slots,emit:e.emit,expose:t}}function tl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ul(Xi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}const $r=/(?:^|[-_])\w/g,kr=e=>e.replace($r,t=>t.toUpperCase()).replace(/[-_]/g,"");function jo(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=jo(t);if(!l&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(l=i[1])}if(!l&&e){const i=o=>{for(const a in o)if(o[a]===t)return a};l=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return l?kr(l):s?"App":"Anonymous"}function Sr(e){return ve(e)&&"__vccOpts"in e}const H=(e,t)=>na(e,t,cs);function ds(e,t,s){try{en(-1);const l=arguments.length;return l===2?Ee(t)&&!pe(t)?rs(t)?me(e,null,[t]):me(e,t):me(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&rs(s)&&(s=[s]),me(e,t,s))}finally{en(1)}}const Cr="3.5.29";let sl;const Uo=typeof window<"u"&&window.trustedTypes;if(Uo)try{sl=Uo.createPolicy("vue",{createHTML:e=>e})}catch{}const qo=sl?e=>sl.createHTML(e):e=>e,Tr="http://www.w3.org/2000/svg",Er="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,Ko=Tt&&Tt.createElement("template"),Pr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const i=t==="svg"?Tt.createElementNS(Tr,e):t==="mathml"?Tt.createElementNS(Er,e):s?Tt.createElement(e,{is:s}):Tt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,i,o){const a=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Ko.innerHTML=qo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ko.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Rr=Symbol("_vtc");function Mr(e,t,s){const l=e[Rr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vo=Symbol("_vod"),Ar=Symbol("_vsh"),Lr=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function Or(e,t,s){const l=e.style,i=Fe(s);let o=!1;if(s&&!i){if(t)if(Fe(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();s[r]==null&&nn(l,r,"")}else for(const a in t)s[a]==null&&nn(l,a,"");for(const a in s)a==="display"&&(o=!0),nn(l,a,s[a])}else if(i){if(t!==s){const a=l[Lr];a&&(s+=";"+a),l.cssText=s,o=Fr.test(s)}}else t&&e.removeAttribute("style");Vo in e&&(e[Vo]=o?l.display:"",e[Ar]&&(l.display="none"))}const zo=/\s*!important$/;function nn(e,t,s){if(pe(s))s.forEach(l=>nn(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Dr(e,t);zo.test(s)?e.setProperty(Pt(l),s.replace(zo,""),"important"):e[l]=s}}const Wo=["Webkit","Moz","ms"],nl={};function Dr(e,t){const s=nl[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return nl[t]=l;l=Ds(l);for(let i=0;i<Wo.length;i++){const o=Wo[i]+l;if(o in e)return nl[t]=o}return t}const Jo="http://www.w3.org/1999/xlink";function Qo(e,t,s,l,i,o=Pi(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Jo,t.slice(6,t.length)):e.setAttributeNS(Jo,t,s):s==null||o&&!xl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":it(s)?String(s):s)}function Go(e,t,s,l,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(r!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=xl(s):s==null&&r==="string"?(s="",a=!0):r==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(i||t)}function Ir(e,t,s,l){e.addEventListener(t,s,l)}function Br(e,t,s,l){e.removeEventListener(t,s,l)}const Yo=Symbol("_vei");function Nr(e,t,s,l,i=null){const o=e[Yo]||(e[Yo]={}),a=o[t];if(l&&a)a.value=l;else{const[r,c]=jr(t);if(l){const g=o[t]=qr(l,i);Ir(e,r,g,c)}else a&&(Br(e,r,a,c),o[t]=void 0)}}const Xo=/(?:Once|Passive|Capture)$/;function jr(e){let t;if(Xo.test(e)){t={};let l;for(;l=e.match(Xo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let ll=0;const Hr=Promise.resolve(),Ur=()=>ll||(Hr.then(()=>ll=0),ll=Date.now());function qr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Kr(l,s.value),t,5,[l])};return s.value=e,s.attached=Ur(),s}function Kr(e,t){if(pe(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const Zo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vr=(e,t,s,l,i,o)=>{const a=i==="svg";t==="class"?Mr(e,l,a):t==="style"?Or(e,s,l):Fs(t)?vn(t)||Nr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zr(e,t,l,a))?(Go(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qo(e,t,l,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Fe(l))?Go(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Qo(e,t,l,a))};function zr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zo(t)&&ve(s));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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Zo(t)&&Fe(s)?!1:t in e}const Wr=["ctrl","shift","alt","meta"],Jr={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)=>Wr.some(s=>e[`${s}Key`]&&!t.includes(s))},nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((i,...o)=>{for(let a=0;a<t.length;a++){const r=Jr[t[a]];if(r&&r(i,t))return}return e(i,...o)}))},Qr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(i=>{if(!("key"in i))return;const o=Pt(i.key);if(t.some(a=>a===o||Qr[a]===o))return e(i)}))},Gr=Ne({patchProp:Vr},Pr);let ei;function Yr(){return ei||(ei=er(Gr))}const Xr=((...e)=>{const t=Yr().createApp(...e),{mount:s}=t;return t.mount=l=>{const i=eu(l);if(!i)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=s(i,!1,Zr(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t});function Zr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eu(e){return Fe(e)?document.querySelector(e):e}function tu(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(i){return l},beforeUnsubscribe(i){return l}}}async function su(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function nu(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const a=await su();if(!a)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new a(tu(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(a){e.onError?.(a)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function lu(e){let t=!1;const s=nu({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class ln extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ou extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class ol{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const i={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:i,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new ln(o.status);if(!o.ok){const a=await o.text().catch(()=>"");throw new ou(o.status,a)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const on="ss-dash-theme",il="ss-theme-change";function Ms(){if(typeof window>"u")return"light";const e=localStorage.getItem(on);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function iu(e){typeof window>"u"||(localStorage.setItem(on,e),window.dispatchEvent(new CustomEvent(il,{detail:e})))}function au(){const t=Ms()==="dark"?"light":"dark";return iu(t),t}function ti(e){if(typeof window>"u")return()=>{};const t=o=>{const a=o.detail;(a==="dark"||a==="light")&&e(a)},s=o=>{if(o.key===on){const a=o.newValue;e(a==="dark"||a==="light"?a:Ms())}},l=window.matchMedia("(prefers-color-scheme: dark)"),i=o=>{localStorage.getItem(on)||e(o.matches?"dark":"light")};return window.addEventListener(il,t),window.addEventListener("storage",s),l.addEventListener("change",i),()=>{window.removeEventListener(il,t),window.removeEventListener("storage",s),l.removeEventListener("change",i)}}const ru={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function uu(e){return{...ru,...e}}let cu=0;function du(){return`ss-grad-${cu++}`}function fu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let i=1;i<e.length;i++){const o=e[i];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function hu(e,t){if(e.length<2)return null;const s=uu(t),l=fu(e),i=l.max-l.min||1,o=s.width-s.padding*2,a=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let $=0;$<c;$++){const T=r+$/(c-1)*o,F=r+a-(e[$]-l.min)/i*a;g[$]=`${T.toFixed(1)},${F.toFixed(1)}`}const p=g.join(" "),m=(r+o).toFixed(1),v=(r+a).toFixed(1),_=r.toFixed(1),C=`M${g[0]} `+g.slice(1).map($=>`L${$}`).join(" ")+` L${m},${v} L${_},${v} Z`;return{points:p,areaPath:C,gradientId:du(),options:s,stats:l}}const pu=5e3,si=1e4,ni=100,vu=500;function gu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function yu(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(a=>s(a,30)),i=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+i+"]";return o.length>t?"["+e.length+" items]":o}function mu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const i=[];for(let c=0;c<Math.min(l.length,4);c++)i.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",a="{ "+i.join(", ")+o+" }";return a.length<=t?a:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function bu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${i}m`:i>0?`${i}m ${t%60}s`:`${t}s`}function Dt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function li(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function It(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function _u(e){return e>vu?"very-slow":e>ni?"slow":"normal"}function al(e,t="ss-dash"){const s=_u(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function an(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?gu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?yu(e,t,an):typeof e=="object"?mu(e,t,an):String(e)}function xu(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function wu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const $u=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function ku(e){const t=new URLSearchParams,s=e;for(const{key:l,param:i,isNumeric:o}of $u){const a=s[l];(o?a!=null:a)&&t.set(i,String(a))}if(e.filters)for(const[l,i]of Object.entries(e.filters))i&&t.set(l,i);return t.toString()}function Su(e,t,s=2){if(t<=1)return[1];const l=[],i=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),i>2&&l.push("...");for(let a=i;a<=o;a++)l.push(a);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Cu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],oi="/admin/api/debug",ii={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Tu(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Cu)t[l]=s?.[l]??!1;return t}async function Eu(e,t=oi){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Pu(e){const{baseUrl:t="",debugEndpoint:s=oi,authToken:l}=e,i=new ol({baseUrl:t,authToken:l});try{const o=await Eu(i,s);return Tu(o)}catch{return ii}}const Ru={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Mu(e){return Ru[e]||`/${e}`}class ai{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const i=Mu(t),o=s?`${this.basePath}${i}?${s}`:`${this.basePath}${i}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}function Au(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Lu(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Fu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new ol({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ai(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const i=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(i)}catch(i){if(this.shouldIgnoreError(i,s.signal,l))return;this.handleFetchError(i,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const i=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(i,l):await this.client.delete(i);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Lu(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return ku({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Au(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof ln){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?pu:si;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Le={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Ou="ss-col-resize",ri="ss-resizing";function Du(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function i(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let a=function(c){c.preventDefault(),c.stopPropagation(),i();const g=c.clientX,p=o.offsetWidth;r.classList.add(ri),r.setPointerCapture(c.pointerId);function m(_){const C=_.clientX-g,$=Math.max(30,p+C);o.style.width=$+"px"}function v(){r.classList.remove(ri),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",v)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",v)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=Ou,o.appendChild(r),r.addEventListener("pointerdown",a),s.push(()=>{r.removeEventListener("pointerdown",a),r.remove()})}return()=>{for(const o of s)o()}}function Iu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function ui(e){const t={};for(const[s,l]of Object.entries(e))Nu.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Bu=["all","error","warn","info","debug"];function rn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function ci(e){return e.msg||e.message||JSON.stringify(e)}function Bt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Nt(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function di(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const Nu=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){const t=Iu(e.data);if(t){const s=ui(t);if(s)return s}}return ui(e)}const ju=["all","active","waiting","delayed","completed","failed"];function Hu(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function Uu(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function qu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function Ku(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function Vu(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function rl(e,t,s,l=0){return e[t]??e[s]??l}function zu(e){return{method:e.method||"",url:e.url||"",statusCode:rl(e,"status_code","statusCode"),totalDuration:rl(e,"total_duration","totalDuration")||e.duration||0,spanCount:rl(e,"span_count","spanCount"),spans:Ku(e.spans),warnings:Vu(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const Wu=["password","secret","token","key","credential","auth"];function Ju(e){const t=e.toLowerCase();return Wu.some(s=>t.includes(s))}function Qu(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Gu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Yu(e){return Gu[e]||e}const Xu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Zu(e){return Xu[e]||e}function ec(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function tc(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function sc(e){return Object.entries(e).map(([t,s])=>({key:t,value:Qu(s),secret:Ju(t)}))}function nc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const lc=["healthy","active","connected","available","ready"],oc=["errored","unavailable"];function ic(e){return lc.includes(e)?"ok":oc.includes(e)?"err":""}function Ie(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function un(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!Ie(e)}function cn(e,t=""){if(!un(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const i=t?`${t}.${l}`:l,o=e[l];un(o)?s.push(...cn(o,i)):s.push({path:i,value:o})}return s}function ac(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function fi(e){if(e==null||typeof e!="object"||Array.isArray(e)||Ie(e))return 1;let t=0;for(const s of Object.keys(e))t+=fi(e[s]);return t}function rc(e){if(!un(e))return[];const t=[];for(const s of Object.keys(e))un(e[s])&&t.push(s);return t}function uc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function cc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,i=K({...ii}),o=K(!0);return Ft(async()=>{i.value=await Pu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:i,loading:o}}function hi(){const e=K(Ms());let t=null;function s(i){e.value=i}function l(){const i=au();return e.value=i,i}return Ft(()=>{e.value=Ms(),t=ti(s)}),St(()=>{t?.()}),{theme:e,toggleTheme:l}}function dc(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function fc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function ul(e){try{return await e()}catch{return null}}function hc(e){return{fetchGroupedQueries:()=>ul(()=>e.fetchGroupedQueries()),explainQuery:t=>ul(()=>e.explainQuery(t)),fetchEmailPreview:async t=>(await ul(()=>e.fetchEmailPreview(t)))?.html||null}}function pc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function vc(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof ln&&(t.value=!0),null}}}}function As(e,t,s){const l=t(),i=fc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(i).length>0?i:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function gc(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function yc(e,t,s){return{async mutate(l,i="post",o){return e.mutate(l,i,o)},refresh(){As(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function mc(e,t,s,l){ut(t,()=>{s.pagination.page=1;for(const i of Object.keys(s.filter))i==="search"?s.filter.search="":delete s.filter[i];s.sort.column="",s.data.value=null,e.setSection(t()),As(e,t,s)}),l&&ut(l,()=>{As(e,t,s),e.handleRefreshSignal()})}function bc(e){return{data:K(null),loading:K(!1),error:K(null),isUnauthorized:K(!1),timeRange:K("1h"),pagination:Gt({page:1,perPage:e,total:0,totalPages:1}),filter:Gt({search:""}),sort:Gt({column:"",direction:"desc"})}}function _c(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function lt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:i,perPage:o=50,refreshKey:a}=t,r=bc(o),c=new Fu({baseUrl:s,endpoint:l,authToken:i,section:e(),perPage:o,callbacks:dc(r)}),g=c.getApi(),m=gc(r,()=>{As(c,e,r),c.fetch(!1)}),v=yc(c,e,r),_={...vc(g,r.isUnauthorized),...hc(g),...pc(g)};return mc(c,e,r,a),Ft(()=>{As(c,e,r),c.start()}),St(()=>{c.stop()}),_c(r,m,v,_)}const xc=["title","aria-label"],wc=["viewBox","innerHTML"],$c=["viewBox","innerHTML"],kc=Oe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=hi(),i=H(()=>s.value==="dark"),o=H(()=>i.value?"Switch to light theme":"Switch to dark theme"),a=H(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:L(a.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>x(l)&&x(l)(...g))},[i.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Le).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).sun.elements.join("")},null,8,wc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Le).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).moon.elements.join("")},null,8,$c))],10,xc))}}),Sc=["data-theme"],Cc={class:"ss-dash-header"},Tc={class:"ss-dash-header-center"},Ec={class:"ss-dash-header-right"},Pc=["href"],Rc={class:"ss-dash-body"},Mc={class:"ss-dash-nav"},Ac=["data-ss-section","onClick","title"],Lc={class:"ss-dash-nav-icon"},Fc=["viewBox","innerHTML"],Oc={class:"ss-dash-nav-label"},Dc={key:0,class:"ss-dash-nav-sep"},Ic=["onClick","title"],Bc={class:"ss-dash-nav-icon"},Nc=["viewBox","innerHTML"],jc={class:"ss-dash-nav-label"},Hc=["title"],Uc=["viewBox","innerHTML"],qc=["viewBox","innerHTML"],Kc={class:"ss-dash-main"},Vc=["id"],zc={class:"ss-dash-pane-inner"},Wc={key:1,class:"ss-dash-empty"},Jc=Oe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ct(()=>Promise.resolve().then(()=>sh)),s=ct(()=>Promise.resolve().then(()=>np)),l=ct(()=>Promise.resolve().then(()=>Bp)),i=ct(()=>Promise.resolve().then(()=>Vp)),o=ct(()=>Promise.resolve().then(()=>ev)),a=ct(()=>Promise.resolve().then(()=>$v)),r=ct(()=>Promise.resolve().then(()=>jv)),c=ct(()=>Promise.resolve().then(()=>ag)),g=ct(()=>Promise.resolve().then(()=>Mg)),p=ct(()=>Promise.resolve().then(()=>i1)),m=ct(()=>Promise.resolve().then(()=>H1)),v=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],_=e,{theme:C}=hi(),{features:$}=cc({baseUrl:_.baseUrl,debugEndpoint:_.debugEndpoint,authToken:_.authToken}),T=K("overview"),F=K(!1),R=K(!1),y=K(0);ns("ss-refresh-key",y),ns("ss-base-url",_.baseUrl),ns("ss-dashboard-endpoint",_.dashboardEndpoint),ns("ss-debug-endpoint",_.debugEndpoint),ns("ss-auth-token",_.authToken),typeof window<"u"&&(F.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let w=null;function S(){if(w&&(w(),w=null),!_.channelName)return;w=lu({baseUrl:_.baseUrl,channelName:_.channelName,authToken:_.authToken,onMessage:()=>{y.value+=1},onConnect:()=>{R.value=!0},onDisconnect:()=>{R.value=!1},onError:()=>{R.value=!1}}).unsubscribe}Ft(()=>{S()}),St(()=>{w&&(w(),w=null)});const W=H(()=>$.value.customPanes||[]);function te(k){const E=k.replace("#","").split("?")[0];return E&&[...v,...W.value.map(X=>X.id)].includes(E)?E:"overview"}function se(){const k=te(window.location.hash);k!==T.value&&(T.value=k)}Ft(()=>{if(typeof window>"u")return;const k=te(window.location.hash);(k!=="overview"||window.location.hash)&&(T.value=k),window.addEventListener("hashchange",se)}),St(()=>{window.removeEventListener("hashchange",se)}),ut(T,k=>{typeof window<"u"&&(window.location.hash=k)});function ee(){F.value=!F.value,localStorage.setItem("ss-dash-sidebar",F.value?"collapsed":"expanded")}function ge(k){k!==T.value&&(T.value=k)}const Te=H(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:$.value.cache},{id:"jobs",label:"Jobs",visible:$.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),_e=H(()=>Te.value.filter(k=>k.visible)),{data:Pe}=lt(()=>"overview",{baseUrl:_.baseUrl,dashboardEndpoint:_.dashboardEndpoint,authToken:_.authToken,refreshKey:y}),ke=H(()=>Pe.value),we=H(()=>{const k={};if(!ke.value)return k;if(ke.value.totalRequests>0&&(k.requests={count:ke.value.totalRequests}),ke.value.queryStats?.total>0&&(k.queries={count:ke.value.queryStats.total}),ke.value.logLevelBreakdown){const E=ke.value.logLevelBreakdown,M=E.error+E.warn+E.info+E.debug;M>0&&(k.logs={count:M})}return k}),J={overview:t,requests:s,queries:l,events:i,routes:o,logs:a,emails:r,cache:c,jobs:g,config:p,internals:m},j=H(()=>J[T.value]||null);return(k,E)=>(u(),d("div",{class:"ss-dash","data-theme":x(C),id:"ss-dash"},[n("div",Cc,[E[0]||(E[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",Tc,[n("span",{class:L(["ss-dash-live-dot",{"ss-dash-connected":R.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:L(["ss-dash-live-label",{"ss-dash-connected":R.value}]),id:"ss-dash-live-label"},h(R.value?"Live":"Polling"),3)]),n("div",Ec,[me(kc,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Pc)):Y("",!0)])]),n("div",Rc,[n("div",{class:L(["ss-dash-sidebar",{"ss-dash-collapsed":F.value}]),id:"ss-dash-sidebar"},[n("nav",Mc,[(u(!0),d(q,null,ye(_e.value,M=>(u(),d("button",{key:M.id,type:"button",class:L(["ss-dash-nav-item",{"ss-dash-active":T.value===M.id}]),"data-ss-section":M.id,onClick:X=>ge(M.id),title:F.value?M.label:void 0},[n("span",Lc,[(u(),d("svg",{width:"20",height:"20",viewBox:(x(Le)[M.id]||x(Le).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(x(Le)[M.id]||x(Le).config).elements.join("")},null,8,Fc))]),n("span",Oc,h(M.label),1),we.value[M.id]&&we.value[M.id].count>0?(u(),d("span",{key:0,class:L(["ss-dash-nav-badge",we.value[M.id].variant||""])},h(we.value[M.id].count),3)):Y("",!0)],10,Ac))),128)),W.value.length>0?(u(),d("div",Dc)):Y("",!0),(u(!0),d(q,null,ye(W.value,M=>(u(),d("button",{key:M.id,type:"button",class:L(["ss-dash-nav-item",{"ss-dash-active":T.value===M.id}]),onClick:X=>ge(M.id),title:F.value?M.label:void 0},[n("span",Bc,[(u(),d("svg",{width:"20",height:"20",viewBox:x(Le)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le)["custom-pane"].elements.join("")},null,8,Nc))]),n("span",jc,h(M.label),1)],10,Ic))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:ee,title:F.value?"Expand sidebar":"Collapse sidebar"},[F.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Le)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Le)["chevron-right"].elements.join("")},null,8,Uc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Le)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Le)["chevron-left"].elements.join("")},null,8,qc))],8,Hc)],2),n("div",Kc,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${T.value}`},[n("div",zc,[(u(),Xe(lr,null,{fallback:ss(()=>[...E[1]||(E[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:ss(()=>[j.value?(u(),Xe(Ra(j.value),{key:0})):(u(),d("div",Wc,"Unknown section"))]),_:1}))])],8,Vc)])])],8,Sc))}});function Qc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Gc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ms()),ti(e)}const fs=Qc("ss-dash-config");Gc();const pi=document.getElementById("ss-dash");pi&&Xr(Jc,{baseUrl:fs.baseUrl,dashboardEndpoint:fs.dashboardEndpoint,debugEndpoint:fs.debugEndpoint,authToken:fs.authToken,backUrl:fs.backUrl,channelName:fs.channelName}).mount(pi);const Yc=["width","height","viewBox"],Xc=["id"],Zc=["stop-color"],ed=["stop-color"],td=["d","fill"],sd=["d","stroke"],nd=["x","y"],dn=Oe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=H(()=>hu(t.data,{width:t.width,height:t.height,color:t.color})),l=H(()=>s.value!==null),i=H(()=>`sg-${t.color.replace("#","")}`);return(o,a)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ke({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(q,{key:0},[n("defs",null,[n("linearGradient",{id:i.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Zc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,ed)],8,Xc)]),n("path",{d:s.value.areaPath,fill:`url(#${i.value})`},null,8,td),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,sd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,nd))],8,Yc))],4))}}),ld={class:"ss-dash-btn-group"},od=["onClick"],id=Oe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(i,o)=>(u(),d("div",ld,[(u(),d(q,null,ye(l,a=>n("button",{key:a.value,type:"button",class:L(`ss-dash-btn ${e.modelValue===a.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",a.value)},h(a.label),11,od)),64))]))}}),ad={class:"ss-dash-overview"},rd={key:0,class:"ss-dash-empty"},ud={class:"ss-dash-cards"},cd={class:"ss-dash-card"},dd={class:"ss-dash-sparkline"},fd={class:"ss-dash-card"},hd={class:"ss-dash-sparkline"},pd={class:"ss-dash-card"},vd={class:"ss-dash-sparkline"},gd={class:"ss-dash-card"},yd={class:"ss-dash-sparkline"},md={class:"ss-dash-chart-container"},bd={class:"ss-dash-chart-header"},_d={class:"ss-dash-chart",id:"ss-dash-chart-area"},xd={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},wd=["viewBox"],$d=["id"],kd=["id"],Sd=["x1","y1","x2","y2"],Cd=["x","y"],Td=["d","fill"],Ed=["d"],Pd=["d","fill"],Rd=["d"],Md=["x","y","width","height","data-idx","onMouseenter"],Ad=["cx","cy","r","data-idx","opacity"],Ld=["cx","cy","r","data-idx","opacity"],Fd=["x","y"],Od={key:0,style:{color:"var(--ss-red-fg)"}},Dd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Id={key:0,class:"ss-dash-chart-legend-item"},Bd={class:"ss-dash-secondary-cards"},Nd={class:"ss-dash-secondary-card"},jd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Hd={key:1,class:"ss-dash-secondary-list"},Ud=["href"],qd=["title"],Kd={class:"ss-dash-secondary-card"},Vd={class:"ss-dash-secondary-list"},zd={class:"ss-dash-secondary-list-value"},Wd={class:"ss-dash-secondary-list-value"},Jd={class:"ss-dash-secondary-list-value"},Qd={class:"ss-dash-secondary-card"},Gd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Yd={key:1,class:"ss-dash-secondary-list"},Xd=["href"],Zd=["title"],ef=["title"],tf={class:"ss-dash-secondary-card"},sf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},nf={key:1,class:"ss-dash-secondary-list"},lf=["href"],of={class:"ss-dash-secondary-list-value"},af={class:"ss-dash-secondary-card"},rf={class:"ss-dash-secondary-list"},uf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},cf={class:"ss-dash-secondary-list-value"},df={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},ff={class:"ss-dash-secondary-list-value"},hf={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},pf={class:"ss-dash-secondary-card"},vf={class:"ss-dash-secondary-list"},gf={href:"#logs?level=error",class:"ss-dash-widget-row-link"},yf={class:"ss-dash-secondary-list-value"},mf={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},bf={class:"ss-dash-secondary-list-value"},_f={href:"#logs?level=info",class:"ss-dash-widget-row-link"},xf={class:"ss-dash-secondary-list-value"},wf={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},$f={class:"ss-dash-secondary-list-value"},kf={key:0,class:"ss-dash-secondary-card"},Sf={class:"ss-dash-secondary-list"},Cf={href:"#cache",class:"ss-dash-widget-row-link"},Tf={class:"ss-dash-secondary-list-value"},Ef={href:"#cache",class:"ss-dash-widget-row-link"},Pf={class:"ss-dash-secondary-list-value"},Rf={href:"#cache",class:"ss-dash-widget-row-link"},Mf={class:"ss-dash-secondary-list-value"},Af={key:1,class:"ss-dash-secondary-card"},Lf={class:"ss-dash-secondary-list"},Ff={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Of={class:"ss-dash-secondary-list-value"},Df={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},If={class:"ss-dash-secondary-list-value"},Bf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},Nf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},jf={class:"ss-dash-secondary-list-value"},Hf={class:"ss-dash-secondary-card"},Uf={class:"ss-dash-secondary-list"},qf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},Kf={class:"ss-dash-secondary-list-value"},Vf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},zf={class:"ss-dash-secondary-list-value"},Wf={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},Jf={class:"ss-dash-secondary-list-value"},Qf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Gf={class:"ss-dash-secondary-list-value"},Yf={class:"ss-dash-secondary-card"},Xf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Zf={key:1,class:"ss-dash-secondary-list"},eh=["href"],th=["title"],cl=220,vi=120,sh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,i]of t)s[l]=i;return s})(Oe({__name:"OverviewSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),a=K("1h"),{data:r,loading:c}=lt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),{data:g,setTimeRange:p}=lt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t});ut(a,G=>{p(G)});const m=H(()=>r.value),v=H(()=>m.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),_=H(()=>v.value),C=H(()=>v.value.avgResponseTime||Number(_.value.avg_response_time)||0),$=H(()=>v.value.p95ResponseTime||Number(_.value.p95_response_time)||0),T=H(()=>v.value.requestsPerMinute||Number(_.value.requests_per_minute)||0),F=H(()=>v.value.errorRate||Number(_.value.error_rate)||0),R=H(()=>v.value.totalRequests||Number(_.value.total_requests)||0),y=H(()=>R.value>0),w=H(()=>g.value?.buckets||[]),S=H(()=>v.value.sparklines?.avgResponseTime??w.value.map(G=>G.avgDuration??0)),W=H(()=>v.value.sparklines?.p95ResponseTime??w.value.map(G=>G.p95Duration??0)),te=H(()=>v.value.sparklines?.requestsPerMinute??w.value.map(G=>G.requestCount??0)),se=H(()=>v.value.sparklines?.errorRate??w.value.map(G=>G.errorCount??0)),ee=H(()=>`ss-cg-total-${o}`),ge=H(()=>`ss-cg-error-${o}`);function Te(G,A){if(G<=0)return[0];const ne=G/A,fe=Math.pow(10,Math.floor(Math.log10(ne))),ot=ne/fe;let et;ot<=1?et=fe:ot<=2?et=2*fe:ot<=5?et=5*fe:et=10*fe;const hn=[];for(let fl=et;fl<=G+et*.5;fl+=et)hn.push(Math.round(fl));return hn.length===0&&hn.push(Math.ceil(G)),hn}function _e(G){try{return new Date(G).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Pe(G){if(G.length===0)return"";if(G.length===1)return`M${G[0].x},${G[0].y}`;let A=`M${G[0].x.toFixed(1)},${G[0].y.toFixed(1)}`;for(let ne=0;ne<G.length-1;ne++){const fe=G[ne],ot=G[ne+1],et=(fe.x+ot.x)/2;A+=` C${et.toFixed(1)},${fe.y.toFixed(1)} ${et.toFixed(1)},${ot.y.toFixed(1)} ${ot.x.toFixed(1)},${ot.y.toFixed(1)}`}return A}function ke(G){return al(G,"ss-dash")}const we=K(null),J=K(0);let j=null;ut(we,G=>{j?.disconnect(),j=null,G&&(J.value=G.clientWidth,j=new ResizeObserver(A=>{for(const ne of A)J.value=ne.contentRect.width}),j.observe(G))}),St(()=>{j?.disconnect()});const k={top:12,right:12,bottom:28,left:38},E=H(()=>J.value||600),M=H(()=>E.value-k.left-k.right),X=H(()=>cl-k.top-k.bottom),ue=H(()=>k.top+X.value),le=H(()=>w.value.map(G=>{const A=G;return(G.requestCount??0)+(Number(A.request_count)||0)||G.total||0})),U=H(()=>w.value.map(G=>{const A=G;return(G.errorCount??0)+(Number(A.error_count)||0)})),oe=H(()=>Math.max(...le.value,1)),V=H(()=>Math.ceil(oe.value*1.1)),ie=H(()=>U.value.some(G=>G>0)),De=H(()=>Te(V.value,4)),fn=H(()=>De.value.length>0?De.value[De.value.length-1]:V.value);function Et(G){return k.left+G/Math.max(w.value.length-1,1)*M.value}function ps(G){return k.top+X.value-G/(fn.value||1)*X.value}const f=H(()=>w.value.map((G,A)=>({x:Et(A),y:ps(le.value[A])}))),b=H(()=>w.value.map((G,A)=>({x:Et(A),y:ps(U.value[A])}))),P=H(()=>Pe(f.value)),N=H(()=>ie.value?Pe(b.value):""),O=H(()=>f.value.length>1?`${P.value} L${f.value[f.value.length-1].x.toFixed(1)},${ue.value} L${f.value[0].x.toFixed(1)},${ue.value} Z`:""),D=H(()=>ie.value&&b.value.length>1?`${N.value} L${b.value[b.value.length-1].x.toFixed(1)},${ue.value} L${b.value[0].x.toFixed(1)},${ue.value} Z`:""),Q=H(()=>Math.min(10,w.value.length)),z=H(()=>Math.max(1,Math.ceil(w.value.length/Q.value))),I=K({visible:!1,x:0,idx:-1});function B(G){const A=f.value[G].x;I.value={visible:!0,x:A,idx:G}}function ce(){I.value={visible:!1,x:0,idx:-1}}const Z=H(()=>I.value.visible?Math.max(vi/2,Math.min(I.value.x,E.value-vi/2)):0),ae=H(()=>M.value/(w.value.length||1));function he(G){return G%z.value===0||G===w.value.length-1}function xe(){return y.value?C.value>500?"ss-dash-red":C.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Re(){return y.value?$.value>500?"ss-dash-red":$.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Se(){return y.value?"ss-dash-accent":"ss-dash-dim"}function qe(){return y.value?F.value>5?"ss-dash-red":F.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(G){return G.url||G.pattern||"-"}function Ze(G){return G.name||G.eventName||G.event_name||G.event||""}function Ye(G){return G.sqlNormalized||G.normalizedSql||G.sql_normalized||G.sql||"-"}return(G,A)=>(u(),d("div",ad,[x(c)&&!m.value?(u(),d("div",rd,"Loading overview...")):(u(),d(q,{key:1},[n("div",ud,[n("div",cd,[A[1]||(A[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:L(["ss-dash-card-value",xe()])},h(y.value?x(Dt)(C.value):"-"),3),n("div",dd,[me(dn,{data:S.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",fd,[A[2]||(A[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:L(["ss-dash-card-value",Re()])},h(y.value?x(Dt)($.value):"-"),3),n("div",hd,[me(dn,{data:W.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",pd,[A[3]||(A[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:L(["ss-dash-card-value",Se()])},h(y.value?T.value.toFixed(1):"-"),3),n("div",vd,[me(dn,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",gd,[A[4]||(A[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:L(["ss-dash-card-value",qe()])},h(y.value?`${F.value.toFixed(1)}%`:"-"),3),n("div",yd,[me(dn,{data:se.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",md,[n("div",bd,[A[5]||(A[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),me(id,{"model-value":a.value,"onUpdate:modelValue":A[0]||(A[0]=ne=>a.value=ne)},null,8,["model-value"])]),n("div",_d,[w.value.length===0?(u(),d("div",xd," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:we,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${E.value} ${cl}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:ee.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[6]||(A[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,$d),n("linearGradient",{id:ge.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[7]||(A[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,kd)]),(u(!0),d(q,null,ye(De.value,ne=>(u(),d("g",{key:`ytick-${ne}`},[n("line",{x1:k.left,y1:ps(ne),x2:E.value-k.right,y2:ps(ne),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Sd),n("text",{x:k.left-6,y:ps(ne),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ne),9,Cd)]))),128)),O.value?(u(),d("path",{key:0,d:O.value,fill:`url(#${ee.value})`},null,8,Td)):Y("",!0),P.value?(u(),d("path",{key:1,d:P.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Ed)):Y("",!0),D.value?(u(),d("path",{key:2,d:D.value,fill:`url(#${ge.value})`},null,8,Pd)):Y("",!0),N.value?(u(),d("path",{key:3,d:N.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,Rd)):Y("",!0),(u(!0),d(q,null,ye(w.value,(ne,fe)=>(u(),d("g",{key:fe},[n("rect",{x:f.value[fe].x-ae.value/2,y:k.top,width:ae.value,height:X.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":fe,onMouseenter:ot=>B(fe),onMouseleave:ce},null,40,Md),le.value[fe]>0?(u(),d("circle",{key:0,cx:f.value[fe].x,cy:f.value[fe].y,r:I.value.visible&&I.value.idx===fe?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":fe,opacity:I.value.visible&&I.value.idx!==fe?.3:1},null,8,Ad)):Y("",!0),U.value[fe]>0?(u(),d("circle",{key:1,cx:f.value[fe].x,cy:b.value[fe].y,r:I.value.visible&&I.value.idx===fe?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":fe,opacity:I.value.visible&&I.value.idx!==fe?.3:1},null,8,Ld)):Y("",!0)]))),128)),(u(!0),d(q,null,ye(w.value,(ne,fe)=>(u(),d(q,{key:`xlabel-${fe}`},[he(fe)&&_e(ne.bucket)?(u(),d("text",{key:0,x:Et(fe),y:cl-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(_e(ne.bucket)),9,Fd)):Y("",!0)],64))),128))],8,wd)),I.value.visible&&I.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:Z.value+"px",top:k.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(_e(w.value[I.value.idx].bucket)),1),n("div",null,"Requests: "+h(le.value[I.value.idx]),1),U.value[I.value.idx]>0?(u(),d("div",Od," Errors: "+h(U.value[I.value.idx]),1)):Y("",!0)],4)):Y("",!0)],512))]),n("div",Dd,[A[9]||(A[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),be(" Requests ")],-1)),w.value.some(ne=>(ne.errorCount??0)>0)?(u(),d("span",Id,[...A[8]||(A[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),be(" Errors ",-1)])])):Y("",!0)])]),n("div",Bd,[n("div",Nd,[A[10]||(A[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),v.value.slowestEndpoints.length===0?(u(),d("div",jd," No data yet ")):(u(),d("ul",Hd,[(u(!0),d(q,null,ye(v.value.slowestEndpoints.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#requests?url=${encodeURIComponent(Be(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(ne)},h(Be(ne)),9,qd),n("span",{class:L(["ss-dash-secondary-list-value","ss-dash-duration",ke(ne.avgDuration)])},h(x(Dt)(ne.avgDuration)),3)],8,Ud)]))),128))]))]),n("div",Kd,[A[14]||(A[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",Vd,[n("li",null,[A[11]||(A[11]=n("span",null,"Total Queries",-1)),n("span",zd,h(v.value.queryStats.total),1)]),n("li",null,[A[12]||(A[12]=n("span",null,"Avg Duration",-1)),n("span",Wd,h(x(Dt)(v.value.queryStats.avgDuration)),1)]),n("li",null,[A[13]||(A[13]=n("span",null,"Queries / Request",-1)),n("span",Jd,h(v.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Qd,[A[15]||(A[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),v.value.recentErrors.length===0?(u(),d("div",Gd," No recent errors ")):(u(),d("ul",Yd,[(u(!0),d(q,null,ye(v.value.recentErrors,(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#logs?id=${ne.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ne.message},h(ne.message),9,Zd),ne.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:x(It)(ne.timestamp)},h(x(bt)(ne.timestamp)),9,ef)):Y("",!0)],8,Xd)]))),128))]))]),n("div",tf,[A[16]||(A[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),v.value.topEvents.length===0?(u(),d("div",sf," No events yet ")):(u(),d("ul",nf,[(u(!0),d(q,null,ye(v.value.topEvents.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#events?event_name=${encodeURIComponent(Ze(ne))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Ze(ne)),1),n("span",of,h(ne.count),1)],8,lf)]))),128))]))]),n("div",af,[A[20]||(A[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",rf,[n("li",null,[n("a",uf,[A[17]||(A[17]=n("span",null,"Sent",-1)),n("span",cf,h(v.value.emailActivity.sent),1)])]),n("li",null,[n("a",df,[A[18]||(A[18]=n("span",null,"Queued",-1)),n("span",ff,h(v.value.emailActivity.queued),1)])]),n("li",null,[n("a",hf,[A[19]||(A[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.emailActivity.failed),5)])])])]),n("div",pf,[A[25]||(A[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",vf,[n("li",null,[n("a",gf,[A[21]||(A[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",yf,h(v.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",mf,[A[22]||(A[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",bf,h(v.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",_f,[A[23]||(A[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",xf,h(v.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",wf,[A[24]||(A[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",$f,h(v.value.logLevelBreakdown.debug),1)])])])]),v.value.cacheStats&&v.value.cacheStats.available?(u(),d("div",kf,[A[29]||(A[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Sf,[n("li",null,[n("a",Cf,[A[26]||(A[26]=n("span",null,"Keys",-1)),n("span",Tf,h(v.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Ef,[A[27]||(A[27]=n("span",null,"Hit Rate",-1)),n("span",Pf,h(v.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",Rf,[A[28]||(A[28]=n("span",null,"Memory",-1)),n("span",Mf,h(v.value.cacheStats.memoryUsedHuman),1)])])])])):Y("",!0),v.value.jobQueueStatus&&v.value.jobQueueStatus.available?(u(),d("div",Af,[A[34]||(A[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",Lf,[n("li",null,[n("a",Ff,[A[30]||(A[30]=n("span",null,"Active",-1)),n("span",Of,h(v.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",Df,[A[31]||(A[31]=n("span",null,"Waiting",-1)),n("span",If,h(v.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Bf,[A[32]||(A[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",Nf,[A[33]||(A[33]=n("span",null,"Completed",-1)),n("span",jf,h(v.value.jobQueueStatus.completed),1)])])])])):Y("",!0),n("div",Hf,[A[39]||(A[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",Uf,[n("li",null,[n("a",qf,[A[35]||(A[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",Kf,h(v.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",Vf,[A[36]||(A[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",zf,h(v.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",Wf,[A[37]||(A[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",Jf,h(v.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Qf,[A[38]||(A[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Gf,h(v.value.statusDistribution["5xx"]),1)])])])]),n("div",Yf,[A[40]||(A[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),v.value.slowestQueries.length===0?(u(),d("div",Xf," No query data yet ")):(u(),d("ul",Zf,[(u(!0),d(q,null,ye(v.value.slowestQueries.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ne)},h(Ye(ne)),9,th),n("span",{class:L(["ss-dash-secondary-list-value","ss-dash-duration",ke(ne.avgDuration)])},h(x(Dt)(ne.avgDuration)),3)],8,eh)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-6c6eb892"]])},Symbol.toStringTag,{value:"Module"}));function dl(e="",t){let s=null;return function(){return s||(s=new ol({baseUrl:e,authToken:t})),s}}function zt(e){const t=K(null);let s=null;function l(){s&&s(),s=null,Dn(()=>{t.value&&(s=Du(t.value))})}return e&&ut(e,l),Ft(l),so(()=>{s&&s(),s=null}),{tableRef:t}}const nh={class:"ss-dash-filter-bar"},lh={key:0,class:"ss-dash-summary"},oh={class:"ss-dash-search-wrapper"},ih=["viewBox","innerHTML"],ah=["value","placeholder"],rh={key:1,class:"ss-dash-filter-controls"},jt=Oe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function i(){s("update:modelValue",""),s("clear")}return(o,a)=>(u(),d("div",nh,[e.summary?(u(),d("span",lh,h(e.summary),1)):Y("",!0),n("div",oh,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:x(Le).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).search.elements.join("")},null,8,ih)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,ah),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:i}," × ")):Y("",!0)]),o.$slots.default?(u(),d("div",rh,[Aa(o.$slots,"default")])):Y("",!0)]))}}),uh={key:0,class:"ss-dash-pagination"},ch={class:"ss-dash-page-info"},dh={class:"ss-dash-pagination-controls"},fh=["disabled"],hh={key:0,class:"ss-dash-page-ellipsis"},ph=["onClick"],vh=["disabled"],hs=Oe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,i=H(()=>Su(s.page,s.lastPage));return(o,a)=>e.lastPage>1?(u(),d("div",uh,[n("span",ch," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",dh,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:a[0]||(a[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,fh),(u(!0),d(q,null,ye(i.value,(r,c)=>(u(),d(q,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",hh,"...")):(u(),d("button",{key:1,type:"button",class:L(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},h(r),11,ph))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:a[1]||(a[1]=r=>l("pageChange",e.page+1))}," Next » ",8,vh)])])):Y("",!0)}}),gh={key:0,class:"ss-dash-empty"},yh={class:"ss-dash-tl-legend"},mh=["title"],bh={class:"ss-dash-tl-track"},_h=["title"],xh={class:"ss-dash-tl-dur"},wh={key:0,class:"ss-dash-tl-warnings"},$h={class:"ss-dash-tl-warnings-title"},gi=Oe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},i=H(()=>t.spans||[]),o=H(()=>[...i.value].sort((_,C)=>_.startOffset-C.startOffset)),a=H(()=>{const _={};for(const C of o.value)_[C.id]=C.parentId?(_[C.parentId]||0)+1:0;return _});function r(_){const C=t.totalDuration||1;return`${_.startOffset/C*100}%`}function c(_){const C=t.totalDuration||1;return`${Math.max(_.duration/C*100,.5)}%`}function g(_){return _.length>50?_.slice(0,50)+"...":_}function p(_){return _==="db"?"DB":_}function m(_){return _==="db"?"purple":_==="mail"?"green":_==="event"?"amber":_==="view"?"blue":"muted"}function v(_){const C=_.metadata?Object.entries(_.metadata).filter(([,$])=>$!=null).map(([$,T])=>`${$}=${T}`).join(", "):"";return C?`${_.label} (${_.duration.toFixed(2)}ms)
|
|
5
|
-
${C}`:`${_.label} (${_.duration.toFixed(2)}ms)`}return(_,C)=>i.value.length===0?(u(),d("div",gh,"No spans recorded")):(u(),d("div",{key:1,class:L(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",yh,[(u(),d(q,null,ye(l,($,T)=>n("div",{key:T,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[T]||s.custom})},null,4),n("span",null,h($),1)])),64))]),(u(!0),d(q,null,ye(o.value,$=>(u(),d("div",{key:$.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:v($),style:Ke({paddingLeft:8+(a.value[$.id]||0)*16+"px"})},[n("span",{class:L(`ss-dash-badge ss-dash-badge-${m($.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p($.category)),3),be(" "+h(g($.label)),1)],12,mh),n("div",bh,[n("div",{class:L(`ss-dash-tl-bar ss-dash-tl-bar-${$.category||"custom"}`),style:Ke({left:r($),width:c($)}),title:v($)},null,14,_h)]),n("span",xh,h($.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",wh,[n("div",$h,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(q,null,ye(e.warnings,($,T)=>(u(),d("div",{key:T,class:"ss-dash-tl-warning"},h($),1))),128))])):Y("",!0)],2))}}),Ls=Oe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=K(t.defaultExpanded),l=H(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return an(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return an(t.value,t.maxLen||100)}),i=H(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function a(){navigator.clipboard?.writeText(i.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:L(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:L(`${t.classPrefix}-data-cell`)},[s.value?Y("",!0):(u(),d("span",{key:0,class:L(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:L(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:L(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:nt(a,["stop"])}," Copy ",2),n("pre",null,h(i.value),1)],2)):Y("",!0)],2))}}),kh={key:0},Sh={class:"ss-related-logs-title"},Ch={class:"ss-related-logs-count"},Th={style:{overflow:"auto"}},Eh=["onClick"],Ph=["title"],Rh=["title"],Mh={key:1,class:"ss-log-reqid-empty"},Ah={key:3,style:{width:"14px"}},Lh={class:"ss-log-msg"},Fh={key:0,class:"ss-log-detail"},Oh=Oe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=K(null);function s(l,i){i&&(t.value=t.value===l?null:l)}return(l,i)=>e.logs.length>0?(u(),d("div",kh,[n("div",Sh,[i[0]||(i[0]=be(" Related Logs ",-1)),n("span",Ch,"("+h(e.logs.length)+")",1)]),n("div",Th,[(u(!0),d(q,null,ye(e.logs,(o,a)=>(u(),d(q,{key:o.id||a},[n("div",{class:L(["ss-log-entry",x(_t)(o)?"ss-log-entry-expandable":""]),onClick:r=>s(a,!!x(_t)(o))},[n("span",{class:L(["ss-log-level",x(di)(x(rn)(o),"ss-log-level")])},h(x(rn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:x(Bt)(o)?x(It)(x(Bt)(o)):""},h(x(Bt)(o)?x(bt)(x(Bt)(o)):"-"),9,Ph),x(Nt)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:x(Nt)(o)},h(x(Nt)(o).slice(0,8)),9,Rh)):(u(),d("span",Mh,"--")),x(_t)(o)?(u(),d("span",{key:2,class:L(["ss-log-expand-icon",t.value===a?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Ah)),n("span",Lh,h(x(ci)(o)),1)],10,Eh),t.value===a&&x(_t)(o)?(u(),d("div",Fh,[me(Ls,{value:x(_t)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):Y("",!0)],64))),128))])])):Y("",!0)}});function Dh(e){const{container:t,handle:s,topPane:l,bottomPane:i,storageKey:o,minHeight:a=60}=e;if(o){const c=localStorage.getItem(o);if(c){const g=parseFloat(c);g>0&&g<1&&(l.style.flex=`${g}`,i.style.flex=`${1-g}`)}}function r(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,m=c.clientY,v=l.getBoundingClientRect().height;function _($){const T=$.clientY-m;let F=v+T;const R=p-a-s.offsetHeight;F=Math.max(a,Math.min(F,R));const y=F/(p-s.offsetHeight);l.style.flex=`${y}`,i.style.flex=`${1-y}`}function C(){if(s.removeEventListener("pointermove",_),s.removeEventListener("pointerup",C),o){const $=t.getBoundingClientRect().height-s.offsetHeight;if($>0){const T=l.getBoundingClientRect().height/$;localStorage.setItem(o,String(T))}}}s.addEventListener("pointermove",_),s.addEventListener("pointerup",C)}return s.addEventListener("pointerdown",r),()=>{s.removeEventListener("pointerdown",r)}}const Ih={class:"ss-dash-tl-detail-header"},Bh={style:{color:"var(--ss-text)"}},Nh={class:"ss-dash-tl-meta"},jh={class:"ss-dash-tl-detail-header"},Hh={key:0,class:"ss-dash-empty"},Uh={key:1,class:"ss-dash-empty"},qh={class:"ss-dash-table-wrap"},Kh={key:0,class:"ss-dash-sort-arrow"},Vh={key:0,class:"ss-dash-sort-arrow"},zh={key:0,class:"ss-dash-sort-arrow"},Wh={key:0,class:"ss-dash-sort-arrow"},Jh={key:0,class:"ss-dash-sort-arrow"},Qh=["onClick"],Gh={style:{color:"var(--ss-dim)"}},Yh=["title"],Xh={style:{color:"var(--ss-muted)","text-align":"center"}},Zh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},ep={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},tp=["title"],sp={key:1,class:"ss-dash-empty"},np=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RequestsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,sort:g,goToPage:p,setSearch:m,setSort:v}=lt(()=>"requests",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),_=K(""),C=K(null),$=K(!1),T=K(null),F=H(()=>{if(!o.value)return[];const we=o.value;return we.data||we.requests||o.value||[]}),R=dl(i,l);async function y(we){const J=we.id;$.value=!0;try{const j=s||"/__stats/api",E=await R().fetch(`${j}/requests/${J}`),M=E.trace,X=M?{...E,...M,logs:E.logs}:E;T.value=zu(X),C.value=we}catch{}finally{$.value=!1}}function w(){C.value=null,T.value=null}function S(we){_.value=we,m(we)}function W(we){v(we)}function te(we){return al(we,"ss-dash")}const{tableRef:se}=zt(()=>F.value),ee=K(null),ge=K(null),Te=K(null),_e=K(null);let Pe=null;const ke=H(()=>T.value?T.value.logs||[]:[]);return ut([()=>C.value,()=>T.value],async()=>{Pe?.(),Pe=null,T.value&&ke.value.length>0&&(await Dn(),ee.value&&ge.value&&Te.value&&_e.value&&(Pe=Dh({container:ee.value,handle:ge.value,topPane:Te.value,bottomPane:_e.value,storageKey:"ss-requests-split"})))}),St(()=>{Pe?.()}),(we,J)=>(u(),d("div",null,[T.value&&C.value?(u(),d(q,{key:0},[n("div",Ih,[n("button",{type:"button",class:"ss-dash-btn",onClick:w}," ← Back to Requests "),n("span",{class:L(`ss-dash-method ss-dash-method-${(T.value.method||"").toLowerCase()}`)},h(T.value.method),3),n("span",Bh,h(T.value.url),1),n("span",{class:L(`ss-dash-status ss-dash-status-${Math.floor((T.value.statusCode||200)/100)}xx`)},h(T.value.statusCode),3),n("span",Nh,h(T.value.totalDuration.toFixed(1))+"ms · "+h(T.value.spanCount)+" spans ",1)]),ke.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:ee,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:Te,class:"ss-dash-split-top"},[me(gi,{spans:T.value.spans,"total-duration":T.value.totalDuration,warnings:T.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:ge,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:_e,class:"ss-dash-split-bottom"},[me(Oh,{logs:ke.value},null,8,["logs"])],512)],512)):(u(),Xe(gi,{key:1,spans:T.value.spans,"total-duration":T.value.totalDuration,warnings:T.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):$.value?(u(),d(q,{key:1},[n("div",jh,[n("button",{type:"button",class:"ss-dash-btn",onClick:J[0]||(J[0]=j=>$.value=!1)}," ← Back to Requests ")]),J[6]||(J[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(q,{key:2},[me(jt,{"model-value":_.value,placeholder:"Filter requests...",summary:`${x(c).total??0} requests`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),x(r)?(u(),d("div",Hh,"Failed to load requests")):Y("",!0),x(a)&&!x(o)?(u(),d("div",Uh,"Loading requests...")):(u(),d(q,{key:2},[n("div",qh,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:se,class:"ss-dash-table"},[J[15]||(J[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[J[12]||(J[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:J[1]||(J[1]=j=>W("method"))},[J[7]||(J[7]=be(" Method ",-1)),x(g).column==="method"?(u(),d("span",Kh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[2]||(J[2]=j=>W("url"))},[J[8]||(J[8]=be(" URL ",-1)),x(g).column==="url"?(u(),d("span",Vh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[3]||(J[3]=j=>W("statusCode"))},[J[9]||(J[9]=be(" Status ",-1)),x(g).column==="statusCode"?(u(),d("span",zh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[4]||(J[4]=j=>W("duration"))},[J[10]||(J[10]=be(" Duration ",-1)),x(g).column==="duration"?(u(),d("span",Wh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),J[13]||(J[13]=n("th",null,"Spans",-1)),J[14]||(J[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:J[5]||(J[5]=j=>W("createdAt"))},[J[11]||(J[11]=be(" Time ",-1)),x(g).column==="createdAt"?(u(),d("span",Jh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)])])]),n("tbody",null,[(u(!0),d(q,null,ye(F.value,j=>(u(),d("tr",{key:j.id,class:"ss-dash-clickable",onClick:k=>y(j)},[n("td",null,[n("span",Gh,h(j.id),1)]),n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${(j.method||"").toLowerCase()}`)},h(j.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:j.url},h(j.url),9,Yh)]),n("td",null,[n("span",{class:L(`ss-dash-status ss-dash-status-${Math.floor((j.status_code||j.statusCode||200)/100)}xx`)},h(j.status_code||j.statusCode),3)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${te(j.total_duration||j.totalDuration||j.duration||0)}`)},h((j.total_duration||j.totalDuration||j.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",Xh,h(j.span_count||j.spanCount||0),1)]),n("td",null,[(j.warning_count||j.warningCount||0)>0?(u(),d("span",Zh,h(j.warning_count||j.warningCount||0),1)):(u(),d("span",ep,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(j.createdAt||j.created_at||j.timestamp||"")},h(x(bt)(j.createdAt||j.created_at||j.timestamp||"")),9,tp)])],8,Qh))),128))])],512)):(u(),d("div",sp,"No requests recorded yet"))]),x(c).totalPages>1?(u(),Xe(hs,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lp={class:"ss-dash-btn-group"},op={key:0,class:"ss-dash-empty"},ip={key:1,class:"ss-dash-table-wrap"},ap={key:0,class:"ss-dash-sort-arrow"},rp={key:0,class:"ss-dash-sort-arrow"},up={key:0,class:"ss-dash-sort-arrow"},cp=["onClick","onKeydown"],dp={key:0,class:"ss-dash-dup"},fp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},hp={class:"ss-dash-duration"},pp={class:"ss-dash-duration"},vp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},gp={key:1,class:"ss-dash-empty"},yp={class:"ss-dash-table-wrap"},mp={key:0,class:"ss-dash-sort-arrow"},bp={key:0,class:"ss-dash-sort-arrow"},_p={style:{color:"var(--ss-dim)"}},xp=["onClick","onKeydown"],wp={key:0,class:"ss-dash-dup"},$p=["title"],kp={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Sp=["title"],Cp=["disabled","onClick"],Tp={key:0,class:"ss-dash-explain-row"},Ep={colspan:"8",class:"ss-dash-explain"},Pp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Rp={style:{flex:"1"}},Mp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Ap={key:0},Lp={key:1,class:"ss-dash-explain-result"},Fp={key:2,class:"ss-dash-explain-result"},Op={key:3,class:"ss-dash-explain-result"},Dp={key:1,class:"ss-dash-empty"};function yi(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",i=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",a=e["Index Name"]||"",r=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&r.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&r.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&r.push(`width=${e["Plan Width"]}`),e.Filter&&r.push(`filter: ${e.Filter}`),e["Index Cond"]&&r.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&r.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&r.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const g=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];r.push(`sort: ${g}`)}const c=e.Plans||[];return ds("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[ds("div",{class:"ss-dash-explain-node-header"},[ds("span",{class:"ss-dash-explain-node-type"},l),i?[" on ",ds("strong",null,i)]:null,o||null,a?[" using ",ds("em",null,a)]:null]),r.length>0?ds("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...c.map((g,p)=>yi(g,t+1))])}const mi=Oe({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>yi(e.node,e.depth)}}),Ip=Oe({...{components:{ExplainPlanNode:mi}},__name:"QueriesSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),o=K("list"),a=K(null),r=K(null),c=K(null),g=H(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:p,loading:m,pagination:v,sort:_,goToPage:C,setSearch:$,setSort:T,explainQuery:F}=lt(()=>g.value,{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),R=K(""),y=H(()=>p.value?o.value==="grouped"?p.value.groups||[]:p.value.data||p.value||[]:[]),w=H(()=>o.value!=="grouped"?y.value:y.value.map(k=>{const E={...k};return(E.sqlNormalized===null||E.sqlNormalized===void 0&&(k.sql_normalized||k.pattern))&&(E.sqlNormalized=k.sql_normalized||k.pattern||""),(E.count===null||E.count===void 0)&&k.total_count!==null&&k.total_count!==void 0&&(E.count=k.total_count),(E.avgDuration===null||E.avgDuration===void 0)&&k.avg_duration!==null&&k.avg_duration!==void 0&&(E.avgDuration=k.avg_duration),(E.maxDuration===null||E.maxDuration===void 0)&&k.max_duration!==null&&k.max_duration!==void 0&&(E.maxDuration=k.max_duration),(E.minDuration===null||E.minDuration===void 0)&&k.min_duration!==null&&k.min_duration!==void 0&&(E.minDuration=k.min_duration),(E.totalDuration===null||E.totalDuration===void 0)&&k.total_duration!==null&&k.total_duration!==void 0&&(E.totalDuration=k.total_duration),(E.percentOfTotal===null||E.percentOfTotal===void 0)&&k.pct_time!==null&&k.pct_time!==void 0&&(E.percentOfTotal=k.pct_time),E})),S=H(()=>{const k=new Map;for(const E of w.value){const M=E.sqlNormalized||E.sql||E.sql_text||"";k.set(M,(k.get(M)||0)+1)}return k}),W=H(()=>{const k=v.total??w.value.length;let E=0,M=0,X=0,ue=0;for(const le of w.value){const U=le.duration||0;X+=U,ue++,U>ni&&E++}for(const le of S.value.values())le>1&&(M+=le);return{total:k,slow:E,duplicates:M,avgDuration:ue>0?X/ue:0}}),te=H(()=>{if(o.value==="grouped")return`${w.value.length} query patterns`;const k=[`${W.value.total} queries`];return W.value.slow>0&&k.push(`${W.value.slow} slow`),W.value.duplicates>0&&k.push(`${W.value.duplicates} dup`),k.push(`avg ${(W.value.avgDuration||0).toFixed(1)}ms`),k.join(", ")});function se(k){R.value=k,$(k)}function ee(k){k!==o.value&&(o.value=k,a.value=null,r.value=null,c.value=null)}function ge(k){T(k)}async function Te(k){if(r.value&&r.value.queryId===k){r.value=null;return}c.value=k;try{const E=await F(k);E&&E.error?r.value={queryId:k,plan:[],error:E.error,message:E.message}:r.value={queryId:k,plan:E?.plan||E?.rows||[]}}catch(E){r.value={queryId:k,plan:[],error:E instanceof Error?E.message:String(E)}}finally{c.value=null}}function _e(k){return al(k,"ss-dash")}function Pe(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?[]:Object.keys(k[0])}function ke(k,E){if(!k||typeof k!="object")return"-";const M=k[E];return M!=null?String(M):"-"}function we(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?!1:"Plan"in k[0]}function J(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?{}:k[0].Plan}const{tableRef:j}=zt(()=>w.value);return(k,E)=>(u(),d("div",null,[me(jt,{"model-value":R.value,placeholder:"Filter queries...",summary:te.value,"onUpdate:modelValue":se},{default:ss(()=>[n("div",lp,[n("button",{type:"button",class:L(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:E[0]||(E[0]=M=>ee("list"))}," List ",2),n("button",{type:"button",class:L(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:E[1]||(E[1]=M=>ee("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),x(m)&&!x(p)?(u(),d("div",op,"Loading queries...")):o.value==="grouped"?(u(),d("div",ip,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[E[11]||(E[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:E[2]||(E[2]=M=>ge("count"))},[E[8]||(E[8]=be(" Count ",-1)),x(_).column==="count"?(u(),d("span",ap,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:E[3]||(E[3]=M=>ge("avgDuration"))},[E[9]||(E[9]=be(" Avg ",-1)),x(_).column==="avgDuration"?(u(),d("span",rp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[12]||(E[12]=n("th",null,"Min",-1)),E[13]||(E[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:E[4]||(E[4]=M=>ge("totalDuration"))},[E[10]||(E[10]=be(" Total ",-1)),x(_).column==="totalDuration"?(u(),d("span",up,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[14]||(E[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(u(!0),d(q,null,ye(w.value,(M,X)=>(u(),d("tr",{key:X},[n("td",null,[n("span",{class:L(`ss-dash-sql ${a.value===M.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(ue=>a.value=a.value===M.sqlNormalized?null:M.sqlNormalized,["stop"]),onKeydown:Rs(ue=>a.value=a.value===M.sqlNormalized?null:M.sqlNormalized,["enter"])},h(M.sqlNormalized),43,cp),(M.count||0)>=3?(u(),d("span",dp,"DUP")):Y("",!0)]),n("td",null,[n("span",fp,h(M.count||0),1)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.avgDuration||0)}`)},h((M.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",hp,h((M.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.maxDuration||0)}`)},h((M.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",pp,h((M.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",vp,h((M.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",gp,"No queries recorded"))])):(u(),d(q,{key:2},[n("div",yp,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[E[24]||(E[24]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"70px"}}),n("col",{style:{width:"60px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"70px"}})],-1)),n("thead",null,[n("tr",null,[E[17]||(E[17]=n("th",null,"#",-1)),E[18]||(E[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:E[5]||(E[5]=M=>ge("duration"))},[E[15]||(E[15]=be(" Duration ",-1)),x(_).column==="duration"?(u(),d("span",mp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[19]||(E[19]=n("th",null,"Method",-1)),E[20]||(E[20]=n("th",null,"Model",-1)),E[21]||(E[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:E[6]||(E[6]=M=>ge("createdAt"))},[E[16]||(E[16]=be(" Time ",-1)),x(_).column==="createdAt"?(u(),d("span",bp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[22]||(E[22]=n("th",null,null,-1))])]),n("tbody",null,[(u(!0),d(q,null,ye(w.value,M=>(u(),d(q,{key:M.id},[n("tr",null,[n("td",null,[n("span",_p,h(M.id),1)]),n("td",null,[n("div",null,[n("span",{class:L(`ss-dash-sql ${a.value===M.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(X=>a.value=a.value===M.id?null:M.id,["stop"]),onKeydown:Rs(X=>a.value=a.value===M.id?null:M.id,["enter"])},h(M.sql||M.sql_text||""),43,xp),(S.value.get((M.sqlNormalized||M.sql||M.sql_text)??"")??0)>1?(u(),d("span",wp," ×"+h(S.value.get((M.sqlNormalized||M.sql||M.sql_text)??"")),1)):Y("",!0)])]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.duration||0)}`)},h((M.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${(M.method||M.sql_method||"").toLowerCase()}`)},h(M.method||M.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:M.model},h(M.model||"-"),9,$p)]),n("td",null,[n("span",kp,h(M.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(M.createdAt||M.created_at||M.timestamp||"")},h(x(bt)(M.createdAt||M.created_at||M.timestamp||"")),9,Sp)]),n("td",null,[(M.method||M.sql_method||"")==="select"?(u(),d("button",{key:0,type:"button",class:L(`ss-dash-explain-btn${r.value?.queryId===M.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:c.value===M.id,onClick:nt(X=>Te(M.id),["stop"])},h(c.value===M.id?"...":"EXPLAIN"),11,Cp)):Y("",!0)])]),r.value&&r.value.queryId===M.id?(u(),d("tr",Tp,[n("td",Ep,[n("div",Pp,[n("div",Rp,[r.value.error?(u(),d("div",Mp,[E[23]||(E[23]=n("strong",null,"Error:",-1)),be(" "+h(r.value.error)+" ",1),r.value.message?(u(),d("br",Ap)):Y("",!0),be(" "+h(r.value.message),1)])):we()?(u(),d("div",Lp,[me(x(mi),{node:J(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(u(),d("div",Fp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(q,null,ye(Pe(),X=>(u(),d("th",{key:X},h(X),1))),128))])]),n("tbody",null,[(u(!0),d(q,null,ye(r.value.plan,(X,ue)=>(u(),d("tr",{key:ue},[(u(!0),d(q,null,ye(Pe(),le=>(u(),d("td",{key:le},h(ke(X,le)),1))),128))]))),128))])])])):(u(),d("div",Op,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:E[7]||(E[7]=X=>r.value=null)}," Close ")])])])):Y("",!0)],64))),128))])],512)):(u(),d("div",Dp,"No queries recorded"))]),x(v).totalPages>1?(u(),Xe(hs,{key:0,page:x(v).page,"last-page":x(v).totalPages,total:x(v).total,onPageChange:x(C)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}}),Bp=Object.freeze(Object.defineProperty({__proto__:null,default:Ip},Symbol.toStringTag,{value:"Module"})),Np={key:0,class:"ss-dash-empty"},jp={class:"ss-dash-table-wrap"},Hp={style:{color:"var(--ss-dim)"}},Up=["title"],qp=["title"],Kp={key:1,class:"ss-dash-empty"},Vp=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EventsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g}=lt(()=>"events",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=K(""),m=H(()=>{if(!o.value)return[];const C=o.value;return C.data||C.events||o.value||[]});function v(C){p.value=C,g(C)}const{tableRef:_}=zt(()=>m.value);return(C,$)=>(u(),d("div",null,[me(jt,{"model-value":p.value,placeholder:"Filter events...",summary:`${x(r).total??0} events`,"onUpdate:modelValue":v},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Np,"Loading events...")):(u(),d(q,{key:1},[n("div",jp,[m.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:_,class:"ss-dash-table"},[$[0]||($[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),$[1]||($[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(m.value,T=>(u(),d("tr",{key:T.id},[n("td",null,[n("span",Hp,h(T.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:T.event_name||T.eventName||T.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.event_name||T.eventName||T.event||""),9,Up)]),n("td",null,[me(Ls,{value:T.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(T.createdAt||T.created_at||T.timestamp)},h(x(bt)(T.createdAt||T.created_at||T.timestamp)),9,qp)])]))),128))])],512)):(u(),d("div",Kp,"No events recorded yet"))]),x(r).totalPages>1?(u(),Xe(hs,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),zp={key:0,class:"ss-dash-empty"},Wp={key:1,class:"ss-dash-empty"},Jp={key:2,class:"ss-dash-table-wrap"},Qp=["title"],Gp=["title"],Yp=["title"],Xp=["title"],Zp={key:1,class:"ss-dash-empty"},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RoutesSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,setSearch:c}=lt(()=>"routes",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=K(""),p=H(()=>{if(!o.value)return[];const _=o.value;return Array.isArray(_)?_:Array.isArray(_.routes)?_.routes:Array.isArray(_.data)?_.data:[]});function m(_){g.value=_,c(_)}const{tableRef:v}=zt(()=>p.value);return(_,C)=>(u(),d("div",null,[me(jt,{"model-value":g.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),x(r)?(u(),d("div",zp,"Failed to load routes")):x(a)&&!x(o)?(u(),d("div",Wp,"Loading routes...")):(u(),d("div",Jp,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:v,class:"ss-dash-table"},[C[0]||(C[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),C[1]||(C[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(p.value,($,T)=>(u(),d("tr",{key:$.pattern||T},[n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${($.method||"").toLowerCase()}`)},h($.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.pattern},h($.pattern),9,Qp)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.name||"-"},h($.name||"-"),9,Gp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.handler},h($.handler),9,Yp)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.middleware?.length?$.middleware.join(", "):"-"},h($.middleware?.length?$.middleware.join(", "):"-"),9,Xp)])]))),128))])],512)):(u(),d("div",Zp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),tv={class:"ss-dash-log-filters"},sv=["onClick"],nv=["value"],lv={class:"ss-dash-structured-search"},ov=["value"],iv=["value"],av=["value"],rv={key:0,class:"ss-dash-filter-chips"},uv={key:0,class:"ss-dash-filter-chip"},cv={key:1,class:"ss-dash-filter-chip"},dv=["onClick"],fv={key:1,class:"ss-dash-empty"},hv={key:2,class:"ss-dash-empty"},pv={key:3,class:"ss-dash-empty"},vv={key:4,class:"ss-dash-log-entries"},gv=["onClick"],yv=["title"],mv=["title","onClick","onKeydown"],bv={key:1,class:"ss-dash-log-reqid-empty"},_v={key:3,style:{width:"14px"}},xv={class:"ss-dash-log-msg"},wv={key:0,class:"ss-dash-log-detail"},$v=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"LogsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,filter:g,goToPage:p,setSearch:m,setFilter:v,refresh:_}=lt(()=>"logs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=K(""),$=K("all"),T=K(""),F=K(""),R=K(null),y=K([]),w=K("level"),S=K("equals"),W=K(""),te=H(()=>{if(!o.value)return[];const X=o.value;return X.data||X.logs||o.value||[]}),se=H(()=>$.value!=="all"||T.value!==""||y.value.length>0);function ee(X,ue){ue&&(R.value=R.value===X?null:X)}function ge(X){C.value=X,m(X)}function Te(X){$.value=X,X==="all"?v("level",""):v("level",X)}function _e(X){T.value=X,F.value=X,v("request_id",X)}function Pe(){const X=F.value.trim();T.value=X,v("request_id",X)}function ke(){T.value="",F.value="",v("request_id","")}function we(){$.value="all",v("level","")}function J(){const X=g;for(const ue of Object.keys(X))(ue.startsWith("filter_field_")||ue.startsWith("filter_op_")||ue.startsWith("filter_value_"))&&delete X[ue];y.value.forEach((ue,le)=>{X[`filter_field_${le}`]=ue.field,X[`filter_op_${le}`]=ue.operator,X[`filter_value_${le}`]=ue.value}),c.page=1,_()}function j(){const X=W.value.trim();X&&(y.value.push({field:w.value,operator:S.value,value:X}),W.value="",J())}function k(X){y.value.splice(X,1),J()}function E(X){return X.target.value}function M(X){return X.target.value}return(X,ue)=>(u(),d("div",null,[me(jt,{"model-value":C.value,placeholder:"Search logs...",summary:`${x(c).total??0} logs`,"onUpdate:modelValue":ge},{default:ss(()=>[n("div",tv,[(u(!0),d(q,null,ye(x(Bu),le=>(u(),d("button",{key:le,type:"button",class:L(`ss-dash-log-filter ${$.value===le?"ss-dash-active":""}`),onClick:U=>Te(le)},h(le),11,sv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:F.value,onInput:ue[0]||(ue[0]=le=>F.value=E(le)),onKeydown:Rs(Pe,["enter"])},null,40,nv),F.value||T.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:ke}," Clear ")):Y("",!0)])]),_:1},8,["model-value","summary"]),n("div",lv,[n("select",{class:"ss-dash-filter-select",value:w.value,onChange:ue[1]||(ue[1]=le=>w.value=M(le))},[...ue[4]||(ue[4]=[hr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,ov),n("select",{class:"ss-dash-filter-select",value:S.value,onChange:ue[2]||(ue[2]=le=>S.value=M(le))},[...ue[5]||(ue[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,iv),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:W.value,onInput:ue[3]||(ue[3]=le=>W.value=E(le)),onKeydown:Rs(j,["enter"])},null,40,av),n("button",{type:"button",class:"ss-dash-btn",onClick:j},"Add")]),se.value?(u(),d("div",rv,[$.value!=="all"?(u(),d("span",uv,[be(" level: "+h($.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):Y("",!0),T.value?(u(),d("span",cv,[be(" requestId: "+h(T.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ke}," × ")])):Y("",!0),(u(!0),d(q,null,ye(y.value,(le,U)=>(u(),d("span",{key:U,class:"ss-dash-filter-chip"},[be(h(le.field)+" "+h(le.operator)+' "'+h(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:oe=>k(U)}," × ",8,dv)]))),128))])):Y("",!0),x(r)?(u(),d("div",fv,"Failed to load logs")):x(a)&&!x(o)?(u(),d("div",hv,"Loading logs...")):te.value.length===0?(u(),d("div",pv," No log entries"+h(T.value?` matching request ${T.value}`:$.value!=="all"?` for ${$.value}`:""),1)):(u(),d("div",vv,[(u(!0),d(q,null,ye(te.value,(le,U)=>(u(),d(q,{key:String(le.id||U)},[n("div",{class:L(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!x(_t)(le)}]),onClick:oe=>ee(U,!!x(_t)(le))},[n("span",{class:L(`ss-dash-log-level ${x(di)(x(rn)(le),"ss-dash-log-level")}`)},h(x(rn)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:x(Bt)(le)?x(It)(x(Bt)(le)):""},h(x(Bt)(le)?x(bt)(x(Bt)(le)):"-"),9,yv),x(Nt)(le)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:x(Nt)(le),role:"button",tabindex:"0",onClick:nt(oe=>_e(x(Nt)(le)),["stop"]),onKeydown:Rs(nt(oe=>_e(x(Nt)(le)),["stop"]),["enter"])},h(x(Nt)(le).slice(0,8)),41,mv)):(u(),d("span",bv,"--")),x(_t)(le)?(u(),d("span",{key:2,class:L(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":R.value===U}])},"▶",2)):(u(),d("span",_v)),n("span",xv,h(x(ci)(le)),1)],10,gv),R.value===U&&x(_t)(le)?(u(),d("div",wv,[me(Ls,{value:x(_t)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):Y("",!0)],64))),128))])),x(c).totalPages>1?(u(),Xe(hs,{key:5,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),kv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Sv={class:"ss-dash-email-preview-header"},Cv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Tv=["srcdoc"],Ev={key:0,class:"ss-dash-empty"},Pv={class:"ss-dash-table-wrap"},Rv=["onClick"],Mv={style:{color:"var(--ss-dim)"}},Av=["title"],Lv=["title"],Fv=["title"],Ov={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Dv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Iv=["title"],Bv=["title"],Nv={key:1,class:"ss-dash-empty"},jv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EmailsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:p}=lt(()=>"emails",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=K(""),v=K(null),_=K(null),C=H(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function $(y){m.value=y,g(y)}async function T(y){if(y.html){v.value=y.id,_.value=y.html;return}const w=await p(y.id);v.value=y.id,_.value=w}function F(){v.value=null,_.value=null}const{tableRef:R}=zt(()=>C.value);return(y,w)=>(u(),d("div",null,[v.value&&_.value?(u(),d("div",kv,[n("div",Sv,[n("div",Cv,[C.value.find(S=>S.id===v.value)?(u(),d(q,{key:0},[w[4]||(w[4]=n("strong",null,"Subject:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.subject)+" | ",1),w[5]||(w[5]=n("strong",null,"From:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.from_addr||C.value.find(S=>S.id===v.value)?.from)+" | ",1),w[6]||(w[6]=n("strong",null,"To:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.to_addr||C.value.find(S=>S.id===v.value)?.to)+" ",1),C.value.find(S=>S.id===v.value)?.cc||C.value.find(S=>S.id===v.value)?.cc_addr?(u(),d(q,{key:0},[w[0]||(w[0]=be(" | ",-1)),w[1]||(w[1]=n("strong",null,"CC:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.cc||C.value.find(S=>S.id===v.value)?.cc_addr),1)],64)):Y("",!0),w[7]||(w[7]=be(" | ",-1)),w[8]||(w[8]=n("strong",null,"Status:",-1)),n("span",{class:L(`ss-dash-badge ss-dash-email-status-${C.value.find(S=>S.id===v.value)?.status}`)},h(C.value.find(S=>S.id===v.value)?.status),3),C.value.find(S=>S.id===v.value)?.mailer?(u(),d(q,{key:1},[w[2]||(w[2]=be(" | ",-1)),w[3]||(w[3]=n("strong",null,"Mailer:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.mailer),1)],64)):Y("",!0)],64)):Y("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:F}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:_.value,title:"Email preview",sandbox:""},null,8,Tv)])):(u(),d(q,{key:1},[me(jt,{"model-value":m.value,placeholder:"Filter emails...",summary:`${x(r).total??0} emails`,"onUpdate:modelValue":$},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Ev,"Loading emails...")):(u(),d(q,{key:1},[n("div",Pv,[C.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:R,class:"ss-dash-table"},[w[9]||(w[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),w[10]||(w[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(C.value,S=>(u(),d("tr",{key:S.id,class:"ss-dash-clickable ss-dash-email-row",onClick:W=>T(S)},[n("td",null,[n("span",Mv,h(S.id),1)]),n("td",null,[n("span",{title:S.from_addr||S.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.from_addr||S.from||""),9,Av)]),n("td",null,[n("span",{title:S.to_addr||S.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.to_addr||S.to||""),9,Lv)]),n("td",null,[n("span",{title:S.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.subject||""),9,Fv)]),n("td",null,[n("span",{class:L(`ss-dash-badge ss-dash-email-status-${S.status||""}`)},h(S.status),3)]),n("td",null,[(S.attachment_count||S.attachmentCount||0)>0?(u(),d("span",Ov,h(S.attachment_count||S.attachmentCount||0),1)):(u(),d("span",Dv,"-"))]),n("td",null,[n("span",{title:S.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.mailer||""),9,Iv)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(It)(S.createdAt||S.created_at||S.timestamp)},h(x(bt)(S.createdAt||S.created_at||S.timestamp)),9,Bv)])],8,Rv))),128))])],512)):(u(),d("div",Nv,"No emails captured yet"))]),x(r).totalPages>1?(u(),Xe(hs,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Hv={key:0,class:"ss-dash-cache-stats"},Uv={class:"ss-dash-cache-stat"},qv={class:"ss-dash-cache-stat-value"},Kv={class:"ss-dash-cache-stat"},Vv={class:"ss-dash-cache-stat-value"},zv={class:"ss-dash-cache-stat"},Wv={class:"ss-dash-cache-stat-value"},Jv={class:"ss-dash-cache-stat"},Qv={class:"ss-dash-cache-stat-value"},Gv={key:1,class:"ss-dash-empty"},Yv={key:2,class:"ss-dash-empty"},Xv={key:3,class:"ss-dash-table-wrap"},Zv=["onClick"],eg=["title"],tg={style:{color:"var(--ss-muted)"}},sg=["onClick"],ng={key:1,class:"ss-dash-empty"},lg={key:4,class:"ss-dash-cache-detail"},og={key:0,class:"ss-dash-empty"},ig={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},ag=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"CacheSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,setSearch:r,mutate:c}=lt(()=>"cache",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=dl(i||"",l),p=new ai(g(),s||"/__stats/api"),m=K(""),v=K(null),_=K(null),C=K(!1),$=K(null),T=H(()=>o.value),F=H(()=>T.value?.keys||T.value?.data||[]);function R(W){m.value=W,r(W)}async function y(W){if(confirm(`Delete cache key "${W}"?`))try{await c(`cache/${encodeURIComponent(W)}`,"delete"),v.value===W&&(v.value=null,_.value=null,$.value=null)}catch{}}const{tableRef:w}=zt(()=>F.value);async function S(W){if(v.value===W){v.value=null,_.value=null,$.value=null;return}v.value=W,_.value=null,$.value=null,C.value=!0;try{const te=await p.fetchCacheKey(W);_.value=te.value!==void 0?te.value:te.data!==void 0?te.data:te,$.value=null}catch{_.value=null,$.value="Failed to fetch key value"}finally{C.value=!1}}return(W,te)=>(u(),d("div",null,[T.value?.available&&T.value?.stats?(u(),d("div",Hv,[n("div",Uv,[te[0]||(te[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",qv,h((T.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",Kv,[te[1]||(te[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",Vv,h(T.value.stats.hits??0),1)]),n("div",zv,[te[2]||(te[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",Wv,h(T.value.stats.misses??0),1)]),n("div",Jv,[te[3]||(te[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",Qv,h(T.value.stats.totalKeys||T.value.stats.keyCount||F.value.length||0),1)])])):Y("",!0),me(jt,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${F.value.length} keys`,"onUpdate:modelValue":R},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Gv,"Loading cache...")):!T.value||!T.value.available?(u(),d("div",Yv," Cache inspector not available ")):(u(),d("div",Xv,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:w,class:"ss-dash-table"},[te[4]||(te[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,se=>(u(),d("tr",{key:se.key,class:"ss-dash-clickable",onClick:ee=>S(se.key)},[n("td",null,[n("span",{title:se.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(se.key),9,eg)]),n("td",null,[n("span",tg,h(se.type),1)]),n("td",null,h(se.size!==null&&se.size!==void 0&&se.size>0?x(wu)(se.size):"-"),1),n("td",null,h(se.ttl>0?x(xu)(se.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:nt(ee=>y(se.key),["stop"])}," Delete ",8,sg)])],8,Zv))),128))])],512)):(u(),d("div",ng,"No cache keys found"))])),v.value?(u(),d("div",lg,[n("h4",null,"Key: "+h(v.value),1),C.value?(u(),d("div",og,"Loading value...")):$.value?(u(),d("div",ig,h($.value),1)):(u(),Xe(Ls,{key:2,value:_.value},null,8,["value"]))])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),rg={key:0,class:"ss-dash-job-stats"},ug={class:"ss-dash-job-stat"},cg={class:"ss-dash-job-stat-value"},dg={class:"ss-dash-job-stat"},fg={class:"ss-dash-job-stat-value"},hg={class:"ss-dash-job-stat"},pg={class:"ss-dash-job-stat-value"},vg={class:"ss-dash-job-stat"},gg={class:"ss-dash-job-stat-value"},yg={class:"ss-dash-job-stat"},mg={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},bg={class:"ss-dash-btn-group"},_g=["onClick"],xg={key:1,class:"ss-dash-empty"},wg={key:2,class:"ss-dash-empty"},$g={class:"ss-dash-table-wrap"},kg={style:{color:"var(--ss-dim)"}},Sg=["title"],Cg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Tg={class:"ss-dash-duration"},Eg=["title"],Pg=["disabled","onClick"],Rg={key:1,class:"ss-dash-empty"},Mg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"JobsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,goToPage:g,setSearch:p,setFilter:m,refresh:v,mutate:_}=lt(()=>"jobs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=K(""),$=K("all"),T=K({}),F=H(()=>Uu(o.value)),R=H(()=>qu(o.value));function y(te){C.value=te,p(te)}function w(te){$.value=te,te==="all"?m("status",""):m("status",te)}const{tableRef:S}=zt(()=>F.value);async function W(te){T.value[te]="pending";try{await _(`jobs/${te}/retry`),T.value[te]="success",setTimeout(()=>{delete T.value[te],v()},1e3)}catch{delete T.value[te]}}return(te,se)=>(u(),d("div",null,[R.value?(u(),d("div",rg,[n("div",ug,[se[0]||(se[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",cg,h(R.value.active??0),1)]),n("div",dg,[se[1]||(se[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",fg,h(R.value.waiting??0),1)]),n("div",hg,[se[2]||(se[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",pg,h(R.value.delayed??0),1)]),n("div",vg,[se[3]||(se[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",gg,h(R.value.completed??0),1)]),n("div",yg,[se[4]||(se[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",mg,h(R.value.failed??0),1)])])):Y("",!0),me(jt,{"model-value":C.value,placeholder:"Filter jobs...",summary:`${x(c).total||F.value.length} jobs`,"onUpdate:modelValue":y},{default:ss(()=>[n("div",bg,[(u(!0),d(q,null,ye(x(ju),ee=>(u(),d("button",{key:ee,type:"button",class:L(`ss-dash-btn ${$.value===ee?"ss-dash-active":""}`),onClick:ge=>w(ee)},h(ee.charAt(0).toUpperCase()+ee.slice(1)),11,_g))),128))])]),_:1},8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",xg,"Loading jobs...")):x(r)?(u(),d("div",wg,"Jobs/Queue not available")):(u(),d(q,{key:3},[n("div",$g,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:S,class:"ss-dash-table"},[se[5]||(se[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),se[6]||(se[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,ee=>(u(),d("tr",{key:ee.id},[n("td",null,[n("span",kg,h(ee.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:ee.name},h(ee.name),9,Sg)]),n("td",null,[n("span",{class:L(`ss-dash-badge ss-dash-badge-${x(Hu)(ee.status)}`)},h(ee.status),3)]),n("td",null,[me(Ls,{value:ee.payload||ee.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Cg,h(ee.attempts||ee.attemptsMade||0),1)]),n("td",null,[n("span",Tg,h(ee.duration!==null&&ee.duration!==void 0?x(Dt)(ee.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(It)(ee.timestamp||ee.createdAt||ee.processedAt||ee.created_at)},h(x(bt)(ee.timestamp||ee.createdAt||ee.processedAt||ee.created_at)),9,Eg)]),n("td",null,[ee.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:T.value[ee.id]==="pending"||T.value[ee.id]==="success",onClick:nt(ge=>W(ee.id),["stop"])},h(T.value[ee.id]==="pending"?"...":T.value[ee.id]==="success"?"OK":"Retry"),9,Pg)):Y("",!0)])]))),128))])],512)):(u(),d("div",Rg,"No jobs found"))]),x(c).totalPages>1?(u(),Xe(hs,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(g)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Ag={style:{position:"relative",flex:1}},Lg=["value"],Fg=["title","onClick"],Og=["viewBox","innerHTML"],Dg=["viewBox","innerHTML"],Ig=["onClick"],Bg={key:0},Ng=["title","onClick"],jg=["viewBox","innerHTML"],Hg=["viewBox","innerHTML"],Ug=["onClick"],qg={key:0},Kg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},Vg=["onClick"],zg=["title"],Wg=["title"],Jg=["title","onClick"],Qg=["viewBox","innerHTML"],Gg=["viewBox","innerHTML"],Yg=["onClick"],Xg=["title","onClick"],Zg=["viewBox","innerHTML"],e1=["viewBox","innerHTML"],t1={key:1,style:{color:"var(--ss-dim)"}},s1={key:3,style:{color:"var(--ss-amber-fg)"}},n1={key:4,style:{color:"var(--ss-purple-fg)"}},l1={key:5},o1=["onClick"],re="ss-dash",i1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"ConfigSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),{data:o,loading:a}=lt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),r=K(""),c=K(""),g=K("app"),p=K(new Set),m=K("Copy JSON"),v=K(new Set),_=K(new Map);let C=null;function $(U){r.value=U,C&&clearTimeout(C),C=setTimeout(()=>{c.value=U},200)}function T(U){return U.target.value}const F=H(()=>o.value??null),R=H(()=>{const U=F.value?.env??{},oe=c.value.toLowerCase();return Object.entries(U).filter(([V,ie])=>{if(!oe)return!0;const De=Ie(ie)?ie.display:ie==null?"":String(ie);return V.toLowerCase().includes(oe)||De.toLowerCase().includes(oe)})}),y=H(()=>{const U=F.value?.app??{},oe=c.value.toLowerCase();return cn(U,"").filter(ie=>{const De=Ie(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(oe)||De.toLowerCase().includes(oe)})}),w=H(()=>{const U=F.value?.app??{};return cn(U,"").length}),S=H(()=>{const U=F.value?.app;return!U||typeof U!="object"||Array.isArray(U)||Ie(U)?[]:Object.keys(U)});function W(U){const oe=new Set(p.value);oe.has(U)?oe.delete(U):oe.add(U),p.value=oe}function te(){if(!F.value)return;const U=g.value==="app"?F.value.app:F.value.env;if(!U)return;const oe=rc(U);p.value=new Set(oe)}function se(){p.value=new Set}function ee(){if(!F.value)return;const U=g.value==="app"?F.value.app:F.value.env;navigator.clipboard?.writeText(JSON.stringify(U,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function ge(U){const oe=new Set(v.value);oe.has(U)?oe.delete(U):oe.add(U),v.value=oe}function Te(U,oe){_.value.set(U,oe)}function _e(U,oe,V){V.stopPropagation(),uc(U,_.value.get(oe)??null,re)}function Pe(U){return U!==null&&typeof U=="object"&&!Array.isArray(U)&&!Ie(U)}function ke(U,oe){return cn(U,oe)}function we(U,oe){return U.indexOf(oe+".")===0?U.slice(oe.length+1):U}function J(U){return ac(U)}function j(U){return Ie(U)?U.display:U==null?"null":String(U)}function k(U){const oe=F.value?.app;return!oe||typeof oe!="object"?null:oe[U]??null}function E(U,oe){return Ie(U)?oe?U.value:U.display:""}function M(){r.value="",c.value=""}function X(U){return Ie(U)?U.display:""}const ue=H(()=>Le.eye.elements.join("")),le=H(()=>Le["eye-off"].elements.join(""));return(U,oe)=>(u(),d("div",null,[n("div",{class:L(`${re}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:L(`${re}-config-tab${g.value==="app"?` ${re}-active`:""}`),onClick:oe[0]||(oe[0]=V=>g.value="app")}," App Config ",2),n("button",{type:"button",class:L(`${re}-config-tab${g.value==="env"?` ${re}-active`:""}`),onClick:oe[1]||(oe[1]=V=>g.value="env")}," Env ",2),n("div",Ag,[n("input",{type:"text",class:L(`${re}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:oe[2]||(oe[2]=V=>$(T(V)))},null,42,Lg),r.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:M}," × ")):Y("",!0)]),g.value==="app"&&!c.value?(u(),d(q,{key:0},[n("button",{type:"button",class:L(`${re}-btn`),onClick:te},"Expand All",2),n("button",{type:"button",class:L(`${re}-btn`),onClick:se},"Collapse All",2)],64)):Y("",!0),n("button",{type:"button",class:L(`${re}-btn`),onClick:ee},h(m.value),3)],2),x(a)&&!x(o)?(u(),d("div",{key:0,class:L(`${re}-empty`)},"Loading config...",2)):F.value?g.value==="env"?(u(),d("div",{key:2,class:L(`${re}-config-table-wrap`)},[n("table",{class:L(`${re}-table ${re}-config-env-table`)},[oe[4]||(oe[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(R.value,([V,ie])=>(u(),d("tr",{key:V},[n("td",{class:L(`${re}-env-key`)},[n("span",{class:L(`${re}-config-key`)},h(V),3)],2),n("td",{class:L(`${re}-env-val`)},[x(Ie)(ie)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie,v.value.has(V))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(De=>ge(V),["stop"])},[v.value.has(V)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Og)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Dg))],10,Fg)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`)},h(j(ie)),3))],2),n("td",null,[x(Ie)(ie)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:De=>Te(`env-${V}`,De),onClick:De=>_e(`${V}=${j(ie)}`,`env-${V}`,De)}," ⎘ ",10,Ig))])]))),128)),R.value.length===0?(u(),d("tr",Bg,[...oe[3]||(oe[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):Y("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:L(`${re}-config-table-wrap`)},[n("table",{class:L(`${re}-table`)},[oe[6]||(oe[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(y.value,V=>(u(),d("tr",{key:V.path},[n("td",null,[n("span",{class:L(`${re}-config-key`),style:{whiteSpace:"nowrap"}},h(V.path),3)]),n("td",null,[x(Ie)(V.value)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(V.value,v.value.has(V.path))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>ge(V.path),["stop"])},[v.value.has(V.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,jg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Hg))],10,Ng)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`),style:Ke({wordBreak:"break-all",color:J(V.value).color})},h(J(V.value).text),7))]),n("td",null,[x(Ie)(V.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>Te(`search-${V.path}`,ie),onClick:ie=>_e(`${V.path}: ${x(Ie)(V.value)?X(V.value):J(V.value).text}`,`search-${V.path}`,ie)}," ⎘ ",10,Ug))])]))),128)),y.value.length===0?(u(),d("tr",qg,[...oe[5]||(oe[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):Y("",!0)])],2),n("div",Kg,h(y.value.length)+" of "+h(w.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:L(`${re}-config-table-wrap`)},[n("div",{class:L(`${re}-config-sections`)},[(u(!0),d(q,null,ye(S.value,V=>(u(),d("div",{key:V,class:L(`${re}-config-section`)},[Pe(k(V))?(u(),d(q,{key:0},[n("div",{class:L(`${re}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>W(V)},[n("span",{class:L(`${re}-config-toggle`)},h(p.value.has(V)?"▼":"▶"),3),n("span",{class:L(`${re}-config-key`)},h(V),3),n("span",{class:L(`${re}-config-count`)},h(x(fi)(k(V)))+" entries ",3)],10,Vg),p.value.has(V)?(u(),d("div",{key:0,class:L(`${re}-config-section-body`)},[n("table",{class:L(`${re}-table ${re}-config-inner-table`)},[oe[7]||(oe[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(ke(k(V),V),ie=>(u(),d("tr",{key:ie.path},[n("td",{title:we(ie.path,V)},[n("span",{class:L(`${re}-config-key`)},h(we(ie.path,V)),3)],8,zg),n("td",{title:x(Ie)(ie.value)?X(ie.value):J(ie.value).text},[x(Ie)(ie.value)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie.value,v.value.has(ie.path))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(De=>ge(ie.path),["stop"])},[v.value.has(ie.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Qg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Gg))],10,Jg)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`),style:Ke({color:J(ie.value).color})},h(J(ie.value).text),7))],8,Wg),n("td",null,[x(Ie)(ie.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:De=>Te(`inner-${ie.path}`,De),onClick:De=>_e(`${ie.path}: ${J(ie.value).text}`,`inner-${ie.path}`,De)}," ⎘ ",10,Yg))])]))),128))])],2)],2)):Y("",!0)],64)):(u(),d("div",{key:1,class:L(`${re}-config-section-header ${re}-config-leaf`),style:{cursor:"default"}},[n("span",{class:L(`${re}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:L(`${re}-config-key`)},h(V),3),n("span",{class:L(`${re}-config-val`),style:{marginLeft:"8px"}},[x(Ie)(k(V))?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(k(V),v.value.has(V))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>ge(V),["stop"])},[v.value.has(V)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Zg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,e1))],10,Xg)],2)):k(V)===null||k(V)===void 0?(u(),d("span",t1,"null")):typeof k(V)=="boolean"?(u(),d("span",{key:2,style:Ke({color:k(V)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(k(V))),5)):typeof k(V)=="number"?(u(),d("span",s1,h(String(k(V))),1)):Array.isArray(k(V))?(u(),d("span",n1,h(J(k(V)).text),1)):(u(),d("span",l1,h(String(k(V))),1))],2),x(Ie)(k(V))?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>Te(`leaf-${V}`,ie),onClick:ie=>_e(`${V}: ${J(k(V)).text}`,`leaf-${V}`,ie)}," ⎘ ",10,o1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:L(`${re}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),a1={key:0,class:"ss-dash-empty"},r1={key:1,class:"ss-dash-empty"},u1={key:2,class:"ss-dash-empty"},c1={class:"ss-dash-info-cards"},d1={class:"ss-dash-info-card-label"},f1={class:"ss-dash-info-card-value"},h1={key:0,class:"ss-dash-empty"},p1={key:1,class:"ss-dash-table"},v1={style:{"font-family":"monospace","font-size":"11px"}},g1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},y1={style:{color:"var(--ss-dim)","margin-left":"4px"}},m1={style:{"font-size":"11px"}},b1=["onClick"],_1=["onClick"],x1={key:2,class:"ss-dash-empty"},w1={key:3,class:"ss-dash-table"},$1={class:"ss-dash-bar"},k1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},S1={key:4,class:"ss-dash-empty"},C1={key:5,class:"ss-dash-table"},T1={style:{color:"var(--ss-dim)"}},E1={key:6,class:"ss-dash-empty"},P1={key:7,class:"ss-dash-table"},R1={style:{color:"var(--ss-dim)","font-size":"11px"}},M1={class:"ss-dash-table"},A1={style:{"font-family":"monospace","font-size":"11px"}},L1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},F1={style:{"font-family":"monospace","font-size":"11px"}},O1={class:"ss-dash-table"},D1={class:"ss-dash-table"},I1={style:{"font-family":"monospace","font-size":"11px"}},B1={style:{"font-family":"monospace","font-size":"11px"}},N1={style:{"font-family":"monospace","font-size":"11px"}},j1={style:{"font-size":"11px"}},H1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"InternalsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-debug-endpoint","/admin/api/debug"),i=de("ss-auth-token",void 0),o=K(null),a=K(!0),r=K(null),c=K(new Set),g=dl(s,i);let p=null;async function m(){try{const R=await g().fetch(`${l}/diagnostics`);o.value=R,r.value=null,a.value=!1}catch(R){if(R instanceof ln){r.value=R,a.value=!1,p&&(clearInterval(p),p=null);return}r.value=R instanceof Error?R:new Error(String(R)),a.value=!1}}Ft(()=>{a.value=!0,r.value=null,m(),p=setInterval(m,si)}),St(()=>{p&&clearInterval(p)}),ut(t,()=>{m()});function v(R){c.value.has(R)?c.value.delete(R):c.value.add(R)}function _(R){const y=ic(R);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function C(R){return R.debounceMs!==void 0?`${Dt(R.debounceMs)} (debounce)`:R.intervalMs!==void 0?Dt(R.intervalMs):"-"}const $=H(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([R,y])=>({name:R.charAt(0).toUpperCase()+R.slice(1),...y,percent:nc(y.current,y.max)})):[]),T=H(()=>o.value?.timers?Object.entries(o.value.timers).map(([R,y])=>({key:R,label:Yu(R),...y,interval:C(y)})):[]),F=H(()=>{if(!o.value)return[];const R=[];if(o.value.transmit&&R.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,w]of Object.entries(o.value.integrations))R.push({key:y,label:Zu(y),status:ec(w),details:tc(y,w)});return R});return(R,y)=>(u(),d("div",null,[a.value&&!o.value?(u(),d("div",a1,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",r1,"Error: "+h(r.value.message),1)):o.value?(u(),d(q,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",c1,[(u(!0),d(q,null,ye([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:x(bu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],w=>(u(),d("div",{key:w.label,class:"ss-dash-info-card"},[n("span",d1,h(w.label),1),n("span",f1,h(w.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",p1,[y[4]||(y[4]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(o.value.collectors,w=>(u(),d("tr",{key:w.name},[n("td",null,[n("span",v1,h(w.name),1),w.label&&w.label!==w.name?(u(),d("span",g1,h(w.label),1)):Y("",!0)]),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.status)])},null,2),be(" "+h(w.status),1)]),n("td",{style:Ke(w.lastError?{color:"var(--ss-red-fg)"}:{})},[w.lastError?(u(),d(q,{key:0},[be(h(w.lastError)+" ",1),n("span",y1,h(x(bt)(w.lastErrorAt??0)),1)],64)):(u(),d(q,{key:1},[be("-")],64))],4),n("td",m1,[Object.keys(w.config||{}).length?(u(!0),d(q,{key:0},ye(x(sc)(w.config),S=>(u(),d("span",{key:S.key,style:{"margin-right":"8px"}},[be(h(S.key)+"=",1),S.secret&&!c.value.has(`collector-${w.name}-${S.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:W=>v(`collector-${w.name}-${S.key}`)},"••••••••",8,b1)):(u(),d(q,{key:1},[n("span",null,h(S.value),1),S.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:W=>v(`collector-${w.name}-${S.key}`)}," Hide ",8,_1)):Y("",!0)],64))]))),128)):(u(),d(q,{key:1},[be("-")],64))])]))),128))])])):(u(),d("div",h1,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),$.value.length?(u(),d("table",w1,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye($.value,w=>(u(),d("tr",{key:w.name},[n("td",null,h(w.name),1),n("td",null,h(w.current.toLocaleString())+" / "+h(w.max.toLocaleString()),1),n("td",null,[n("div",$1,[n("div",k1,[n("div",{class:L(["ss-dash-bar-fill",w.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:w.percent+"%"})},null,6)]),n("span",{class:L(["ss-dash-bar-pct",w.percent>=100?"ss-dash-bar-pct-warn":""])},h(w.percent)+"%",3)])])]))),128))])])):(u(),d("div",x1,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),T.value.length?(u(),d("table",C1,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(T.value,w=>(u(),d("tr",{key:w.key},[n("td",null,h(w.label),1),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.active?"active":"inactive")])},null,2),be(" "+h(w.active?"active":"inactive"),1)]),n("td",T1,h(w.interval),1)]))),128))])])):(u(),d("div",S1,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),F.value.length?(u(),d("table",P1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,w=>(u(),d("tr",{key:w.key},[n("td",null,h(w.label),1),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.status)])},null,2),be(" "+h(w.status),1)]),n("td",R1,h(w.details),1)]))),128))])])):(u(),d("div",E1,"No integration data")),o.value.storage?(u(),d(q,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",M1,[y[14]||(y[14]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[8]||(y[8]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:L(["ss-dash-dot",_(o.value.storage.ready?"ready":"unavailable")])},null,2),be(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",A1,h(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,h(x(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",L1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(o.value.storage.tables,w=>(u(),d("tr",{key:w.name},[n("td",F1,h(w.name),1),n("td",null,h(w.rowCount.toLocaleString()),1)]))),128))])])):Y("",!0)],64)):Y("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",O1,[y[24]||(y[24]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[17]||(y[17]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",D1,[y[40]||(y[40]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[25]||(y[25]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",I1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",B1,[c.value.has("cfg-debugEndpoint")?(u(),d(q,{key:1},[be(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=w=>v("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=w=>v("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",N1,[c.value.has("cfg-dbPath")?(u(),d(q,{key:1},[be(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=w=>v("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=w=>v("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",j1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",u1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
4
|
+
`],...ra(s))}),t}function ra({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,i=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[i,...ua(e.props),o]:[i+o]}function ua(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...ql(l,e[l]))}),s.length>3&&t.push(" ..."),t}function ql(e,t,s){return Fe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=ql(e,$e(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$e(t),s?t:[`${e}=`,t])}function Xt(e,t,s,l){try{return l?e(...l):e()}catch(i){Zt(i,t,s)}}function gt(e,t,s,l){if(ve(e)){const i=Xt(e,t,s,l);return i&&gl(i)&&i.catch(o=>{Zt(o,t,s)}),i}if(pe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(gt(e[o],t,s,l));return i}}function Zt(e,t,s,l=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Me;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const p=r.ec;if(p){for(let m=0;m<p.length;m++)if(p[m](e,c,g)===!1)return}r=r.parent}if(o){pt(),Xt(o,null,10,[e,c,g]),vt();return}}ca(e,s,i,l,a)}function ca(e,t,s,l=!0,i=!1){if(i)throw e;console.error(e)}const Ve=[];let yt=-1;const es=[];let Lt=null,ts=0;const Kl=Promise.resolve();let Vs=null;function Dn(e){const t=Vs||Kl;return e?t.then(this?e.bind(this):e):t}function da(e){let t=yt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,i=Ve[l],o=$s(i);o<e||o===e&&i.flags&2?t=l+1:s=l}return t}function In(e){if(!(e.flags&1)){const t=$s(e),s=Ve[Ve.length-1];!s||!(e.flags&2)&&t>=$s(s)?Ve.push(e):Ve.splice(da(t),0,e),e.flags|=1,Vl()}}function Vl(){Vs||(Vs=Kl.then(Jl))}function Bn(e){pe(e)?es.push(...e):Lt&&e.id===-1?Lt.splice(ts+1,0,e):e.flags&1||(es.push(e),e.flags|=1),Vl()}function zl(e,t,s=yt+1){for(;s<Ve.length;s++){const l=Ve[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Ve.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Wl(e){if(es.length){const t=[...new Set(es)].sort((s,l)=>$s(s)-$s(l));if(es.length=0,Lt){Lt.push(...t);return}for(Lt=t,ts=0;ts<Lt.length;ts++){const s=Lt[ts];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Lt=null,ts=0}}const $s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(yt=0;yt<Ve.length;yt++){const t=Ve[yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yt<Ve.length;yt++){const t=Ve[yt];t&&(t.flags&=-2)}yt=-1,Ve.length=0,Wl(),Vs=null,(Ve.length||es.length)&&Jl()}}let ze=null,Ql=null;function zs(e){const t=ze;return ze=e,Ql=e&&e.type.__scopeId||null,t}function ss(e,t=ze,s){if(!t||e._n)return e;const l=(...i)=>{l._d&&en(-1);const o=zs(t);let a;try{a=e(...i)}finally{zs(o),l._d&&en(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Kt(e,t,s,l){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const r=i[a];o&&(r.oldValue=o[a].value);let c=r.dir[l];c&&(pt(),gt(c,s,8,[e.el,r,e,t]),vt())}}function ns(e,t){if(He){let s=He.provides;const l=He.parent&&He.parent.provides;l===s&&(s=He.provides=Object.create(l)),s[e]=t}}function de(e,t,s=!1){const l=mr();if(l||os){let i=os?os._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&ve(t)?t.call(l&&l.proxy):t}}const fa=Symbol.for("v-scx"),ha=()=>de(fa);function ut(e,t,s){return Gl(e,t,s)}function Gl(e,t,s=Me){const{immediate:l,deep:i,flush:o,once:a}=s,r=Ne({},s),c=t&&l||!t&&o!=="post";let g;if(cs){if(o==="sync"){const _=ha();g=_.__watcherHandles||(_.__watcherHandles=[])}else if(!c){const _=()=>{};return _.stop=ht,_.resume=ht,_.pause=ht,_}}const p=He;r.call=(_,C,$)=>gt(_,p,C,$);let m=!1;o==="post"?r.scheduler=_=>{Je(_,p&&p.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(_,C)=>{C?_():In(_)}),r.augmentJob=_=>{t&&(_.flags|=4),m&&(_.flags|=2,p&&(_.id=p.uid,_.i=p))};const v=oa(e,t,r);return cs&&(g?g.push(v):c&&v()),v}function pa(e,t,s){const l=this.proxy,i=Fe(e)?e.includes(".")?Yl(l,e):()=>l[e]:e.bind(l,l);let o;ve(t)?o=t:(o=t.handler,s=t);const a=Ps(this),r=Gl(i,o.bind(l),s);return a(),r}function Yl(e,t){const s=t.split(".");return()=>{let l=e;for(let i=0;i<s.length&&l;i++)l=l[s[i]];return l}}const va=Symbol("_vte"),ga=e=>e.__isTeleport,ya=Symbol("_leaveCb");function Nn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oe(e,t){return ve(e)?Ne({name:e.name},t,{setup:e}):e}function jn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ws=new WeakMap;function ks(e,t,s,l,i=!1){if(pe(e)){e.forEach(($,T)=>ks($,t&&(pe(t)?t[T]:t),s,l,i));return}if(ls(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&ks(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?tl(l.component):l.el,a=i?null:o,{i:r,r:c}=e,g=t&&t.r,p=r.refs===Me?r.refs={}:r.refs,m=r.setupState,v=$e(m),_=m===Me?hl:$=>Xl(p,$)?!1:Ce(v,$),C=($,T)=>!(T&&Xl(p,T));if(g!=null&&g!==c){if(Zl(t),Fe(g))p[g]=null,_(g)&&(m[g]=null);else if(je(g)){const $=t;C(g,$.k)&&(g.value=null),$.k&&(p[$.k]=null)}}if(ve(c))Xt(c,r,12,[a,p]);else{const $=Fe(c),T=je(c);if($||T){const F=()=>{if(e.f){const R=$?_(c)?m[c]:p[c]:C()||!e.k?c.value:p[e.k];if(i)pe(R)&&gn(R,o);else if(pe(R))R.includes(o)||R.push(o);else if($)p[c]=[o],_(c)&&(m[c]=p[c]);else{const y=[o];C(c,e.k)&&(c.value=y),e.k&&(p[e.k]=y)}}else $?(p[c]=a,_(c)&&(m[c]=a)):T&&(C(c,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const R=()=>{F(),Ws.delete(e)};R.id=-1,Ws.set(e,R),Je(R,s)}else Zl(e),F()}}}function Zl(e){const t=Ws.get(e);t&&(t.flags|=8,Ws.delete(e))}const eo=e=>e.nodeType===8;Is().requestIdleCallback,Is().cancelIdleCallback;function ma(e,t){if(eo(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(eo(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ls=e=>!!e.type.__asyncLoader;function ct(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:i=200,hydrate:o,timeout:a,suspensible:r=!0,onError:c}=e;let g=null,p,m=0;const v=()=>(m++,g=null,_()),_=()=>{let C;return g||(C=g=t().catch($=>{if($=$ instanceof Error?$:new Error(String($)),c)return new Promise((T,F)=>{c($,()=>T(v()),()=>F($),m+1)});throw $}).then($=>C!==g&&g?g:($&&($.__esModule||$[Symbol.toStringTag]==="Module")&&($=$.default),p=$,$)))};return Oe({name:"AsyncComponentWrapper",__asyncLoader:_,__asyncHydrate(C,$,T){let F=!1;($.bu||($.bu=[])).push(()=>F=!0);const R=()=>{F||T()},y=o?()=>{const w=o(R,S=>ma(C,S));w&&($.bum||($.bum=[])).push(w)}:R;p?y():_().then(()=>!$.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const C=He;if(jn(C),p)return()=>Js(p,C);const $=y=>{g=null,Zt(y,C,13,!l)};if(r&&C.suspense||cs)return _().then(y=>()=>Js(y,C)).catch(y=>($(y),()=>l?me(l,{error:y}):null));const T=K(!1),F=K(),R=K(!!i);return i&&setTimeout(()=>{R.value=!1},i),a!=null&&setTimeout(()=>{if(!T.value&&!F.value){const y=new Error(`Async component timed out after ${a}ms.`);$(y),F.value=y}},a),_().then(()=>{T.value=!0,C.parent&&Hn(C.parent.vnode)&&C.parent.update()}).catch(y=>{$(y),F.value=y}),()=>{if(T.value&&p)return Js(p,C);if(F.value&&l)return me(l,{error:F.value});if(s&&!R.value)return Js(s,C)}}})}function Js(e,t){const{ref:s,props:l,children:i,ce:o}=t.vnode,a=me(e,l,i);return a.ref=s,a.ce=o,delete t.vnode.ce,a}const Hn=e=>e.type.__isKeepAlive;function ba(e,t){to(e,"a",t)}function _a(e,t){to(e,"da",t)}function to(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qs(t,l,s),s){let i=s.parent;for(;i&&i.parent;)Hn(i.parent.vnode)&&xa(l,t,s,i),i=i.parent}}function xa(e,t,s,l){const i=Qs(t,e,l,!0);St(()=>{gn(l[t],i)},s)}function Qs(e,t,s=He,l=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...a)=>{pt();const r=Ps(s),c=gt(t,s,e,a);return r(),vt(),c});return l?i.unshift(o):i.push(o),o}}const kt=e=>(t,s=He)=>{(!cs||e==="sp")&&Qs(e,(...l)=>t(...l),s)},wa=kt("bm"),Ft=kt("m"),$a=kt("bu"),ka=kt("u"),so=kt("bum"),St=kt("um"),Sa=kt("sp"),Ca=kt("rtg"),Ta=kt("rtc");function Ea(e,t=He){Qs("ec",e,t)}const Pa="components",no=Symbol.for("v-ndc");function Ra(e){return Fe(e)?Ma(Pa,e,!1)||e:e||no}function Ma(e,t,s=!0,l=!1){const i=ze||He;if(i){const o=i.type;{const r=jo(o,!1);if(r&&(r===t||r===tt(t)||r===Ds(tt(t))))return o}const a=lo(i[e]||o[e],t)||lo(i.appContext[e],t);return!a&&l?o:a}}function lo(e,t){return e&&(e[t]||e[tt(t)]||e[Ds(tt(t))])}function ye(e,t,s,l){let i;const o=s,a=pe(e);if(a||Fe(e)){const r=a&&Ut(e);let c=!1,g=!1;r&&(c=!st(e),g=$t(e),e=Bs(e)),i=new Array(e.length);for(let p=0,m=e.length;p<m;p++)i[p]=t(c?g?Yt(rt(e[p])):rt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if(Ee(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const p=r[c];i[c]=t(e[p],p,c,o)}}else i=[];return i}function Aa(e,t,s={},l,i){if(ze.ce||ze.parent&&ls(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return u(),Xe(q,null,[me("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const a=o&&oo(o(s)),r=s.key||a&&a.key,c=Xe(q,{key:(r&&!it(r)?r:`_${t}`)+(!a&&l?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function oo(e){return e.some(t=>rs(t)?!(t.type===dt||t.type===q&&!oo(t.children)):!0)?e:null}const Un=e=>e?Bo(e)?tl(e):Un(e.parent):null,Ss=Ne(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=>Un(e.parent),$root:e=>Un(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>uo(e),$forceUpdate:e=>e.f||(e.f=()=>{In(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>pa.bind(e)}),qn=(e,t)=>e!==Me&&!e.__isScriptSetup&&Ce(e,t),La={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:i,props:o,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(qn(l,t))return a[t]=1,l[t];if(i!==Me&&Ce(i,t))return a[t]=2,i[t];if(Ce(o,t))return a[t]=3,o[t];if(s!==Me&&Ce(s,t))return a[t]=4,s[t];Kn&&(a[t]=0)}}const g=Ss[t];let p,m;if(g)return t==="$attrs"&&Ue(e.attrs,"get",""),g(e);if((p=r.__cssModules)&&(p=p[t]))return p;if(s!==Me&&Ce(s,t))return a[t]=4,s[t];if(m=c.config.globalProperties,Ce(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:i,ctx:o}=e;return qn(i,t)?(i[t]=s,!0):l!==Me&&Ce(l,t)?(l[t]=s,!0):Ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:i,props:o,type:a}},r){let c;return!!(s[r]||e!==Me&&r[0]!=="$"&&Ce(e,r)||qn(t,r)||Ce(o,r)||Ce(l,r)||Ce(Ss,r)||Ce(i.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ce(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function io(e){return pe(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Kn=!0;function Fa(e){const t=uo(e),s=e.proxy,l=e.ctx;Kn=!1,t.beforeCreate&&ao(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:r,provide:c,inject:g,created:p,beforeMount:m,mounted:v,beforeUpdate:_,updated:C,activated:$,deactivated:T,beforeDestroy:F,beforeUnmount:R,destroyed:y,unmounted:w,render:S,renderTracked:W,renderTriggered:te,errorCaptured:se,serverPrefetch:ee,expose:ge,inheritAttrs:Te,components:_e,directives:Pe,filters:ke}=t;if(g&&Oa(g,l,null),a)for(const j in a){const k=a[j];ve(k)&&(l[j]=k.bind(s))}if(i){const j=i.call(s,s);Ee(j)&&(e.data=Gt(j))}if(Kn=!0,o)for(const j in o){const k=o[j],E=ve(k)?k.bind(s,s):ve(k.get)?k.get.bind(s,s):ht,M=!ve(k)&&ve(k.set)?k.set.bind(s):ht,X=H({get:E,set:M});Object.defineProperty(l,j,{enumerable:!0,configurable:!0,get:()=>X.value,set:ue=>X.value=ue})}if(r)for(const j in r)ro(r[j],l,s,j);if(c){const j=ve(c)?c.call(s):c;Reflect.ownKeys(j).forEach(k=>{ns(k,j[k])})}p&&ao(p,e,"c");function J(j,k){pe(k)?k.forEach(E=>j(E.bind(s))):k&&j(k.bind(s))}if(J(wa,m),J(Ft,v),J($a,_),J(ka,C),J(ba,$),J(_a,T),J(Ea,se),J(Ta,W),J(Ca,te),J(so,R),J(St,w),J(Sa,ee),pe(ge))if(ge.length){const j=e.exposed||(e.exposed={});ge.forEach(k=>{Object.defineProperty(j,k,{get:()=>s[k],set:E=>s[k]=E,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===ht&&(e.render=S),Te!=null&&(e.inheritAttrs=Te),_e&&(e.components=_e),Pe&&(e.directives=Pe),ee&&jn(e)}function Oa(e,t,s=ht){pe(e)&&(e=Vn(e));for(const l in e){const i=e[l];let o;Ee(i)?"default"in i?o=de(i.from||l,i.default,!0):o=de(i.from||l):o=de(i),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[l]=o}}function ao(e,t,s){gt(pe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function ro(e,t,s,l){let i=l.includes(".")?Yl(s,l):()=>s[l];if(Fe(e)){const o=t[e];ve(o)&&ut(i,o)}else if(ve(e))ut(i,e.bind(s));else if(Ee(e))if(pe(e))e.forEach(o=>ro(o,t,s,l));else{const o=ve(e.handler)?e.handler.bind(s):t[e.handler];ve(o)&&ut(i,o,e)}}function uo(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,r=o.get(t);let c;return r?c=r:!i.length&&!s&&!l?c=t:(c={},i.length&&i.forEach(g=>Gs(c,g,a,!0)),Gs(c,t,a)),Ee(t)&&o.set(t,c),c}function Gs(e,t,s,l=!1){const{mixins:i,extends:o}=t;o&&Gs(e,o,s,!0),i&&i.forEach(a=>Gs(e,a,s,!0));for(const a in t)if(!(l&&a==="expose")){const r=Da[a]||s&&s[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Da={data:co,props:fo,emits:fo,methods:Cs,computed:Cs,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:Cs,directives:Cs,watch:Ba,provide:co,inject:Ia};function co(e,t){return t?e?function(){return Ne(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Ia(e,t){return Cs(Vn(e),Vn(t))}function Vn(e){if(pe(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function Cs(e,t){return e?Ne(Object.create(null),e,t):t}function fo(e,t){return e?pe(e)&&pe(t)?[...new Set([...e,...t])]:Ne(Object.create(null),io(e),io(t??{})):t}function Ba(e,t){if(!e)return t;if(!t)return e;const s=Ne(Object.create(null),e);for(const l in t)s[l]=We(e[l],t[l]);return s}function ho(){return{app:null,config:{isNativeTag:hl,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 Na=0;function ja(e,t){return function(l,i=null){ve(l)||(l=Ne({},l)),i!=null&&!Ee(i)&&(i=null);const o=ho(),a=new WeakSet,r=[];let c=!1;const g=o.app={_uid:Na++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Cr,get config(){return o.config},set config(p){},use(p,...m){return a.has(p)||(p&&ve(p.install)?(a.add(p),p.install(g,...m)):ve(p)&&(a.add(p),p(g,...m))),g},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),g},component(p,m){return m?(o.components[p]=m,g):o.components[p]},directive(p,m){return m?(o.directives[p]=m,g):o.directives[p]},mount(p,m,v){if(!c){const _=g._ceVNode||me(l,i);return _.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(_,p,v),c=!0,g._container=p,p.__vue_app__=g,tl(_.component)}},onUnmount(p){r.push(p)},unmount(){c&&(gt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,m){return o.provides[p]=m,g},runWithContext(p){const m=os;os=g;try{return p()}finally{os=m}}};return g}}let os=null;const Ha=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Ua(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Me;let i=s;const o=t.startsWith("update:"),a=o&&Ha(l,t.slice(7));a&&(a.trim&&(i=s.map(p=>Fe(p)?p.trim():p)),a.number&&(i=s.map($i)));let r,c=l[r=mn(t)]||l[r=mn(tt(t))];!c&&o&&(c=l[r=mn(Pt(t))]),c&>(c,e,6,i);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,gt(g,e,6,i)}}const qa=new WeakMap;function po(e,t,s=!1){const l=s?qa:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const o=e.emits;let a={},r=!1;if(!ve(e)){const c=g=>{const p=po(g,t,!0);p&&(r=!0,Ne(a,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Ee(e)&&l.set(e,null),null):(pe(o)?o.forEach(c=>a[c]=null):Ne(a,o),Ee(e)&&l.set(e,a),a)}function Ys(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,Pt(t))||Ce(e,t))}function V1(){}function vo(e){const{type:t,vnode:s,proxy:l,withProxy:i,propsOptions:[o],slots:a,attrs:r,emit:c,render:g,renderCache:p,props:m,data:v,setupState:_,ctx:C,inheritAttrs:$}=e,T=zs(e);let F,R;try{if(s.shapeFlag&4){const w=i||l,S=w;F=ft(g.call(S,w,p,m,_,v,C)),R=r}else{const w=t;F=ft(w.length>1?w(m,{attrs:r,slots:a,emit:c}):w(m,null)),R=t.props?r:Va(r)}}catch(w){Es.length=0,Zt(w,e,1),F=me(dt)}let y=F;if(R&&$!==!1){const w=Object.keys(R),{shapeFlag:S}=y;w.length&&S&7&&(o&&w.some(vn)&&(R=za(R,o)),y=us(y,R,!1,!0))}return s.dirs&&(y=us(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&Nn(y,s.transition),F=y,zs(T),F}function Ka(e,t=!0){let s;for(let l=0;l<e.length;l++){const i=e[l];if(rs(i)){if(i.type!==dt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const Va=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},za=(e,t)=>{const s={};for(const l in e)(!vn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Wa(e,t,s){const{props:l,children:i,component:o}=e,{props:a,children:r,patchFlag:c}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?go(l,a,g):!!a;if(c&8){const p=t.dynamicProps;for(let m=0;m<p.length;m++){const v=p[m];if(yo(a,l,v)&&!Ys(g,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===a?!1:l?a?go(l,a,g):!0:!!a;return!1}function go(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const o=l[i];if(yo(t,e,o)&&!Ys(s,o))return!0}return!1}function yo(e,t,s){const l=e[s],i=t[s];return s==="style"&&Ee(l)&&Ee(i)?!_n(l,i):l!==i}function zn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const mo={},bo=()=>Object.create(mo),_o=e=>Object.getPrototypeOf(e)===mo;function Ja(e,t,s,l=!1){const i={},o=bo();e.propsDefaults=Object.create(null),xo(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);s?e.props=l?i:Yi(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Qa(e,t,s,l){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,r=$e(i),[c]=e.propsOptions;let g=!1;if((l||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let m=0;m<p.length;m++){let v=p[m];if(Ys(e.emitsOptions,v))continue;const _=t[v];if(c)if(Ce(o,v))_!==o[v]&&(o[v]=_,g=!0);else{const C=tt(v);i[C]=Wn(c,r,C,_,e,!1)}else _!==o[v]&&(o[v]=_,g=!0)}}}else{xo(e,t,i,o)&&(g=!0);let p;for(const m in r)(!t||!Ce(t,m)&&((p=Pt(m))===m||!Ce(t,p)))&&(c?s&&(s[m]!==void 0||s[p]!==void 0)&&(i[m]=Wn(c,r,m,void 0,e,!0)):delete i[m]);if(o!==r)for(const m in o)(!t||!Ce(t,m))&&(delete o[m],g=!0)}g&&xt(e.attrs,"set","")}function xo(e,t,s,l){const[i,o]=e.propsOptions;let a=!1,r;if(t)for(let c in t){if(gs(c))continue;const g=t[c];let p;i&&Ce(i,p=tt(c))?!o||!o.includes(p)?s[p]=g:(r||(r={}))[p]=g:Ys(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,a=!0)}if(o){const c=$e(s),g=r||Me;for(let p=0;p<o.length;p++){const m=o[p];s[m]=Wn(i,c,m,g[m],e,!Ce(g,m))}}return a}function Wn(e,t,s,l,i,o){const a=e[s];if(a!=null){const r=Ce(a,"default");if(r&&l===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&ve(c)){const{propsDefaults:g}=i;if(s in g)l=g[s];else{const p=Ps(i);l=g[s]=c.call(null,t),p()}}else l=c;i.ce&&i.ce._setProp(s,l)}a[0]&&(o&&!r?l=!1:a[1]&&(l===""||l===Pt(s))&&(l=!0))}return l}const Ga=new WeakMap;function wo(e,t,s=!1){const l=s?Ga:t.propsCache,i=l.get(e);if(i)return i;const o=e.props,a={},r=[];let c=!1;if(!ve(e)){const p=m=>{c=!0;const[v,_]=wo(m,t,!0);Ne(a,v),_&&r.push(..._)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Ee(e)&&l.set(e,Wt),Wt;if(pe(o))for(let p=0;p<o.length;p++){const m=tt(o[p]);$o(m)&&(a[m]=Me)}else if(o)for(const p in o){const m=tt(p);if($o(m)){const v=o[p],_=a[m]=pe(v)||ve(v)?{type:v}:Ne({},v),C=_.type;let $=!1,T=!0;if(pe(C))for(let F=0;F<C.length;++F){const R=C[F],y=ve(R)&&R.name;if(y==="Boolean"){$=!0;break}else y==="String"&&(T=!1)}else $=ve(C)&&C.name==="Boolean";_[0]=$,_[1]=T,($||Ce(_,"default"))&&r.push(m)}}const g=[a,r];return Ee(e)&&l.set(e,g),g}function $o(e){return e[0]!=="$"&&!gs(e)}const Jn=e=>e==="_"||e==="_ctx"||e==="$stable",Qn=e=>pe(e)?e.map(ft):[ft(e)],Ya=(e,t,s)=>{if(t._n)return t;const l=ss((...i)=>Qn(t(...i)),s);return l._c=!1,l},ko=(e,t,s)=>{const l=e._ctx;for(const i in e){if(Jn(i))continue;const o=e[i];if(ve(o))t[i]=Ya(i,o,l);else if(o!=null){const a=Qn(o);t[i]=()=>a}}},So=(e,t)=>{const s=Qn(t);e.slots.default=()=>s},Co=(e,t,s)=>{for(const l in t)(s||!Jn(l))&&(e[l]=t[l])},Xa=(e,t,s)=>{const l=e.slots=bo();if(e.vnode.shapeFlag&32){const i=t._;i?(Co(l,t,s),s&&bl(l,"_",i,!0)):ko(t,l)}else t&&So(e,t)},Za=(e,t,s)=>{const{vnode:l,slots:i}=e;let o=!0,a=Me;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:Co(i,t,s):(o=!t.$stable,ko(t,i)),a=t}else t&&(So(e,t),a={default:1});if(o)for(const r in i)!Jn(r)&&a[r]==null&&delete i[r]},Je=ur;function er(e){return tr(e)}function tr(e,t){const s=Is();s.__VUE__=!0;const{insert:l,remove:i,patchProp:o,createElement:a,createText:r,createComment:c,setText:g,setElementText:p,parentNode:m,nextSibling:v,setScopeId:_=ht,insertStaticContent:C}=e,$=(f,b,P,N=null,O=null,D=null,Q=void 0,z=null,I=!!b.dynamicChildren)=>{if(f===b)return;f&&!Ot(f,b)&&(N=ie(f),ue(f,O,D,!0),f=null),b.patchFlag===-2&&(I=!1,b.dynamicChildren=null);const{type:B,ref:ce,shapeFlag:Z}=b;switch(B){case Xs:T(f,b,P,N);break;case dt:F(f,b,P,N);break;case Zs:f==null&&R(b,P,N,Q);break;case q:_e(f,b,P,N,O,D,Q,z,I);break;default:Z&1?S(f,b,P,N,O,D,Q,z,I):Z&6?Pe(f,b,P,N,O,D,Q,z,I):(Z&64||Z&128)&&B.process(f,b,P,N,O,D,Q,z,I,Et)}ce!=null&&O?ks(ce,f&&f.ref,D,b||f,!b):ce==null&&f&&f.ref!=null&&ks(f.ref,null,D,f,!0)},T=(f,b,P,N)=>{if(f==null)l(b.el=r(b.children),P,N);else{const O=b.el=f.el;b.children!==f.children&&g(O,b.children)}},F=(f,b,P,N)=>{f==null?l(b.el=c(b.children||""),P,N):b.el=f.el},R=(f,b,P,N)=>{[f.el,f.anchor]=C(f.children,b,P,N,f.el,f.anchor)},y=({el:f,anchor:b},P,N)=>{let O;for(;f&&f!==b;)O=v(f),l(f,P,N),f=O;l(b,P,N)},w=({el:f,anchor:b})=>{let P;for(;f&&f!==b;)P=v(f),i(f),f=P;i(b)},S=(f,b,P,N,O,D,Q,z,I)=>{if(b.type==="svg"?Q="svg":b.type==="math"&&(Q="mathml"),f==null)W(b,P,N,O,D,Q,z,I);else{const B=f.el&&f.el._isVueCE?f.el:null;try{B&&B._beginPatch(),ee(f,b,O,D,Q,z,I)}finally{B&&B._endPatch()}}},W=(f,b,P,N,O,D,Q,z)=>{let I,B;const{props:ce,shapeFlag:Z,transition:ae,dirs:he}=f;if(I=f.el=a(f.type,D,ce&&ce.is,ce),Z&8?p(I,f.children):Z&16&&se(f.children,I,null,N,O,Gn(f,D),Q,z),he&&Kt(f,null,N,"created"),te(I,f,f.scopeId,Q,N),ce){for(const Re in ce)Re!=="value"&&!gs(Re)&&o(I,Re,null,ce[Re],D,N);"value"in ce&&o(I,"value",null,ce.value,D),(B=ce.onVnodeBeforeMount)&&mt(B,N,f)}he&&Kt(f,null,N,"beforeMount");const xe=sr(O,ae);xe&&ae.beforeEnter(I),l(I,b,P),((B=ce&&ce.onVnodeMounted)||xe||he)&&Je(()=>{B&&mt(B,N,f),xe&&ae.enter(I),he&&Kt(f,null,N,"mounted")},O)},te=(f,b,P,N,O)=>{if(P&&_(f,P),N)for(let D=0;D<N.length;D++)_(f,N[D]);if(O){let D=O.subTree;if(b===D||Mo(D.type)&&(D.ssContent===b||D.ssFallback===b)){const Q=O.vnode;te(f,Q,Q.scopeId,Q.slotScopeIds,O.parent)}}},se=(f,b,P,N,O,D,Q,z,I=0)=>{for(let B=I;B<f.length;B++){const ce=f[B]=z?Ct(f[B]):ft(f[B]);$(null,ce,b,P,N,O,D,Q,z)}},ee=(f,b,P,N,O,D,Q)=>{const z=b.el=f.el;let{patchFlag:I,dynamicChildren:B,dirs:ce}=b;I|=f.patchFlag&16;const Z=f.props||Me,ae=b.props||Me;let he;if(P&&Vt(P,!1),(he=ae.onVnodeBeforeUpdate)&&mt(he,P,b,f),ce&&Kt(b,f,P,"beforeUpdate"),P&&Vt(P,!0),(Z.innerHTML&&ae.innerHTML==null||Z.textContent&&ae.textContent==null)&&p(z,""),B?ge(f.dynamicChildren,B,z,P,N,Gn(b,O),D):Q||k(f,b,z,null,P,N,Gn(b,O),D,!1),I>0){if(I&16)Te(z,Z,ae,P,O);else if(I&2&&Z.class!==ae.class&&o(z,"class",null,ae.class,O),I&4&&o(z,"style",Z.style,ae.style,O),I&8){const xe=b.dynamicProps;for(let Re=0;Re<xe.length;Re++){const Se=xe[Re],qe=Z[Se],Be=ae[Se];(Be!==qe||Se==="value")&&o(z,Se,qe,Be,O,P)}}I&1&&f.children!==b.children&&p(z,b.children)}else!Q&&B==null&&Te(z,Z,ae,P,O);((he=ae.onVnodeUpdated)||ce)&&Je(()=>{he&&mt(he,P,b,f),ce&&Kt(b,f,P,"updated")},N)},ge=(f,b,P,N,O,D,Q)=>{for(let z=0;z<b.length;z++){const I=f[z],B=b[z],ce=I.el&&(I.type===q||!Ot(I,B)||I.shapeFlag&198)?m(I.el):P;$(I,B,ce,null,N,O,D,Q,!0)}},Te=(f,b,P,N,O)=>{if(b!==P){if(b!==Me)for(const D in b)!gs(D)&&!(D in P)&&o(f,D,b[D],null,O,N);for(const D in P){if(gs(D))continue;const Q=P[D],z=b[D];Q!==z&&D!=="value"&&o(f,D,z,Q,O,N)}"value"in P&&o(f,"value",b.value,P.value,O)}},_e=(f,b,P,N,O,D,Q,z,I)=>{const B=b.el=f?f.el:r(""),ce=b.anchor=f?f.anchor:r("");let{patchFlag:Z,dynamicChildren:ae,slotScopeIds:he}=b;he&&(z=z?z.concat(he):he),f==null?(l(B,P,N),l(ce,P,N),se(b.children||[],P,ce,O,D,Q,z,I)):Z>0&&Z&64&&ae&&f.dynamicChildren&&f.dynamicChildren.length===ae.length?(ge(f.dynamicChildren,ae,P,O,D,Q,z),(b.key!=null||O&&b===O.subTree)&&To(f,b,!0)):k(f,b,P,ce,O,D,Q,z,I)},Pe=(f,b,P,N,O,D,Q,z,I)=>{b.slotScopeIds=z,f==null?b.shapeFlag&512?O.ctx.activate(b,P,N,Q,I):ke(b,P,N,O,D,Q,I):we(f,b,I)},ke=(f,b,P,N,O,D,Q)=>{const z=f.component=yr(f,N,O);if(Hn(f)&&(z.ctx.renderer=Et),br(z,!1,Q),z.asyncDep){if(O&&O.registerDep(z,J,Q),!f.el){const I=z.subTree=me(dt);F(null,I,b,P),f.placeholder=I.el}}else J(z,f,b,P,O,D,Q)},we=(f,b,P)=>{const N=b.component=f.component;if(Wa(f,b,P))if(N.asyncDep&&!N.asyncResolved){j(N,b,P);return}else N.next=b,N.update();else b.el=f.el,N.vnode=b},J=(f,b,P,N,O,D,Q)=>{const z=()=>{if(f.isMounted){let{next:Z,bu:ae,u:he,parent:xe,vnode:Re}=f;{const Ye=Eo(f);if(Ye){Z&&(Z.el=Re.el,j(f,Z,Q)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||B()},O)});return}}let Se=Z,qe;Vt(f,!1),Z?(Z.el=Re.el,j(f,Z,Q)):Z=Re,ae&&bn(ae),(qe=Z.props&&Z.props.onVnodeBeforeUpdate)&&mt(qe,xe,Z,Re),Vt(f,!0);const Be=vo(f),Ze=f.subTree;f.subTree=Be,$(Ze,Be,m(Ze.el),ie(Ze),f,O,D),Z.el=Be.el,Se===null&&zn(f,Be.el),he&&Je(he,O),(qe=Z.props&&Z.props.onVnodeUpdated)&&Je(()=>mt(qe,xe,Z,Re),O)}else{let Z;const{el:ae,props:he}=b,{bm:xe,m:Re,parent:Se,root:qe,type:Be}=f,Ze=ls(b);Vt(f,!1),xe&&bn(xe),!Ze&&(Z=he&&he.onVnodeBeforeMount)&&mt(Z,Se,b),Vt(f,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Be);const Ye=f.subTree=vo(f);$(null,Ye,P,N,f,O,D),b.el=Ye.el}if(Re&&Je(Re,O),!Ze&&(Z=he&&he.onVnodeMounted)){const Ye=b;Je(()=>mt(Z,Se,Ye),O)}(b.shapeFlag&256||Se&&ls(Se.vnode)&&Se.vnode.shapeFlag&256)&&f.a&&Je(f.a,O),f.isMounted=!0,b=P=N=null}};f.scope.on();const I=f.effect=new kl(z);f.scope.off();const B=f.update=I.run.bind(I),ce=f.job=I.runIfDirty.bind(I);ce.i=f,ce.id=f.uid,I.scheduler=()=>In(ce),Vt(f,!0),B()},j=(f,b,P)=>{b.component=f;const N=f.vnode.props;f.vnode=b,f.next=null,Qa(f,b.props,N,P),Za(f,b.children,P),pt(),zl(f),vt()},k=(f,b,P,N,O,D,Q,z,I=!1)=>{const B=f&&f.children,ce=f?f.shapeFlag:0,Z=b.children,{patchFlag:ae,shapeFlag:he}=b;if(ae>0){if(ae&128){M(B,Z,P,N,O,D,Q,z,I);return}else if(ae&256){E(B,Z,P,N,O,D,Q,z,I);return}}he&8?(ce&16&&V(B,O,D),Z!==B&&p(P,Z)):ce&16?he&16?M(B,Z,P,N,O,D,Q,z,I):V(B,O,D,!0):(ce&8&&p(P,""),he&16&&se(Z,P,N,O,D,Q,z,I))},E=(f,b,P,N,O,D,Q,z,I)=>{f=f||Wt,b=b||Wt;const B=f.length,ce=b.length,Z=Math.min(B,ce);let ae;for(ae=0;ae<Z;ae++){const he=b[ae]=I?Ct(b[ae]):ft(b[ae]);$(f[ae],he,P,null,O,D,Q,z,I)}B>ce?V(f,O,D,!0,!1,Z):se(b,P,N,O,D,Q,z,I,Z)},M=(f,b,P,N,O,D,Q,z,I)=>{let B=0;const ce=b.length;let Z=f.length-1,ae=ce-1;for(;B<=Z&&B<=ae;){const he=f[B],xe=b[B]=I?Ct(b[B]):ft(b[B]);if(Ot(he,xe))$(he,xe,P,null,O,D,Q,z,I);else break;B++}for(;B<=Z&&B<=ae;){const he=f[Z],xe=b[ae]=I?Ct(b[ae]):ft(b[ae]);if(Ot(he,xe))$(he,xe,P,null,O,D,Q,z,I);else break;Z--,ae--}if(B>Z){if(B<=ae){const he=ae+1,xe=he<ce?b[he].el:N;for(;B<=ae;)$(null,b[B]=I?Ct(b[B]):ft(b[B]),P,xe,O,D,Q,z,I),B++}}else if(B>ae)for(;B<=Z;)ue(f[B],O,D,!0),B++;else{const he=B,xe=B,Re=new Map;for(B=xe;B<=ae;B++){const ne=b[B]=I?Ct(b[B]):ft(b[B]);ne.key!=null&&Re.set(ne.key,B)}let Se,qe=0;const Be=ae-xe+1;let Ze=!1,Ye=0;const G=new Array(Be);for(B=0;B<Be;B++)G[B]=0;for(B=he;B<=Z;B++){const ne=f[B];if(qe>=Be){ue(ne,O,D,!0);continue}let fe;if(ne.key!=null)fe=Re.get(ne.key);else for(Se=xe;Se<=ae;Se++)if(G[Se-xe]===0&&Ot(ne,b[Se])){fe=Se;break}fe===void 0?ue(ne,O,D,!0):(G[fe-xe]=B+1,fe>=Ye?Ye=fe:Ze=!0,$(ne,b[fe],P,null,O,D,Q,z,I),qe++)}const A=Ze?nr(G):Wt;for(Se=A.length-1,B=Be-1;B>=0;B--){const ne=xe+B,fe=b[ne],ot=b[ne+1],et=ne+1<ce?ot.el||Ro(ot):N;G[B]===0?$(null,fe,P,et,O,D,Q,z,I):Ze&&(Se<0||B!==A[Se]?X(fe,P,et,2):Se--)}}},X=(f,b,P,N,O=null)=>{const{el:D,type:Q,transition:z,children:I,shapeFlag:B}=f;if(B&6){X(f.component.subTree,b,P,N);return}if(B&128){f.suspense.move(b,P,N);return}if(B&64){Q.move(f,b,P,Et);return}if(Q===q){l(D,b,P);for(let Z=0;Z<I.length;Z++)X(I[Z],b,P,N);l(f.anchor,b,P);return}if(Q===Zs){y(f,b,P);return}if(N!==2&&B&1&&z)if(N===0)z.beforeEnter(D),l(D,b,P),Je(()=>z.enter(D),O);else{const{leave:Z,delayLeave:ae,afterLeave:he}=z,xe=()=>{f.ctx.isUnmounted?i(D):l(D,b,P)},Re=()=>{D._isLeaving&&D[ya](!0),Z(D,()=>{xe(),he&&he()})};ae?ae(D,xe,Re):Re()}else l(D,b,P)},ue=(f,b,P,N=!1,O=!1)=>{const{type:D,props:Q,ref:z,children:I,dynamicChildren:B,shapeFlag:ce,patchFlag:Z,dirs:ae,cacheIndex:he}=f;if(Z===-2&&(O=!1),z!=null&&(pt(),ks(z,null,P,f,!0),vt()),he!=null&&(b.renderCache[he]=void 0),ce&256){b.ctx.deactivate(f);return}const xe=ce&1&&ae,Re=!ls(f);let Se;if(Re&&(Se=Q&&Q.onVnodeBeforeUnmount)&&mt(Se,b,f),ce&6)oe(f.component,P,N);else{if(ce&128){f.suspense.unmount(P,N);return}xe&&Kt(f,null,b,"beforeUnmount"),ce&64?f.type.remove(f,b,P,Et,N):B&&!B.hasOnce&&(D!==q||Z>0&&Z&64)?V(B,b,P,!1,!0):(D===q&&Z&384||!O&&ce&16)&&V(I,b,P),N&&le(f)}(Re&&(Se=Q&&Q.onVnodeUnmounted)||xe)&&Je(()=>{Se&&mt(Se,b,f),xe&&Kt(f,null,b,"unmounted")},P)},le=f=>{const{type:b,el:P,anchor:N,transition:O}=f;if(b===q){U(P,N);return}if(b===Zs){w(f);return}const D=()=>{i(P),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(f.shapeFlag&1&&O&&!O.persisted){const{leave:Q,delayLeave:z}=O,I=()=>Q(P,D);z?z(f.el,D,I):I()}else D()},U=(f,b)=>{let P;for(;f!==b;)P=v(f),i(f),f=P;i(b)},oe=(f,b,P)=>{const{bum:N,scope:O,job:D,subTree:Q,um:z,m:I,a:B}=f;Po(I),Po(B),N&&bn(N),O.stop(),D&&(D.flags|=8,ue(Q,f,b,P)),z&&Je(z,b),Je(()=>{f.isUnmounted=!0},b)},V=(f,b,P,N=!1,O=!1,D=0)=>{for(let Q=D;Q<f.length;Q++)ue(f[Q],b,P,N,O)},ie=f=>{if(f.shapeFlag&6)return ie(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const b=v(f.anchor||f.el),P=b&&b[va];return P?v(P):b};let De=!1;const fn=(f,b,P)=>{let N;f==null?b._vnode&&(ue(b._vnode,null,null,!0),N=b._vnode.component):$(b._vnode||null,f,b,null,null,null,P),b._vnode=f,De||(De=!0,zl(N),Wl(),De=!1)},Et={p:$,um:ue,m:X,r:le,mt:ke,mc:se,pc:k,pbc:ge,n:ie,o:e};return{render:fn,hydrate:void 0,createApp:ja(fn)}}function Gn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Vt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function sr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function To(e,t,s=!1){const l=e.children,i=t.children;if(pe(l)&&pe(i))for(let o=0;o<l.length;o++){const a=l[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=Ct(i[o]),r.el=a.el),!s&&r.patchFlag!==-2&&To(a,r)),r.type===Xs&&(r.patchFlag===-1&&(r=i[o]=Ct(r)),r.el=a.el),r.type===dt&&!r.el&&(r.el=a.el)}}function nr(e){const t=e.slice(),s=[0];let l,i,o,a,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(i=s[s.length-1],e[i]<g){t[l]=i,s.push(l);continue}for(o=0,a=s.length-1;o<a;)r=o+a>>1,e[s[r]]<g?o=r+1:a=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,a=s[o-1];o-- >0;)s[o]=a,a=t[a];return s}function Eo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Eo(t)}function Po(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ro(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ro(t.subTree):null}const Mo=e=>e.__isSuspense;let Yn=0;const lr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,i,o,a,r,c,g){if(e==null)or(t,s,l,i,o,a,r,c,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ir(e,t,s,l,i,a,r,c,g)}},hydrate:ar,normalize:rr};function Ts(e,t){const s=e.props&&e.props[t];ve(s)&&s()}function or(e,t,s,l,i,o,a,r,c){const{p:g,o:{createElement:p}}=c,m=p("div"),v=e.suspense=Ao(e,i,l,t,m,s,o,a,r,c);g(null,v.pendingBranch=e.ssContent,m,null,l,v,o,a),v.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,a),is(v,e.ssFallback)):v.resolve(!1,!0)}function ir(e,t,s,l,i,o,a,r,{p:c,um:g,o:{createElement:p}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,_=t.ssFallback,{activeBranch:C,pendingBranch:$,isInFallback:T,isHydrating:F}=m;if($)m.pendingBranch=v,Ot($,v)?(c($,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0?m.resolve():T&&(F||(c(C,_,s,l,i,null,o,a,r),is(m,_)))):(m.pendingId=Yn++,F?(m.isHydrating=!1,m.activeBranch=$):g($,i,m),m.deps=0,m.effects.length=0,m.hiddenContainer=p("div"),T?(c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0?m.resolve():(c(C,_,s,l,i,null,o,a,r),is(m,_))):C&&Ot(C,v)?(c(C,v,s,l,i,m,o,a,r),m.resolve(!0)):(c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0&&m.resolve()));else if(C&&Ot(C,v))c(C,v,s,l,i,m,o,a,r),is(m,v);else if(Ts(t,"onPending"),m.pendingBranch=v,v.shapeFlag&512?m.pendingId=v.component.suspenseId:m.pendingId=Yn++,c(null,v,m.hiddenContainer,null,i,m,o,a,r),m.deps<=0)m.resolve();else{const{timeout:R,pendingId:y}=m;R>0?setTimeout(()=>{m.pendingId===y&&m.fallback(_)},R):R===0&&m.fallback(_)}}function Ao(e,t,s,l,i,o,a,r,c,g,p=!1){const{p:m,m:v,um:_,n:C,o:{parentNode:$,remove:T}}=g;let F;const R=cr(e);R&&t&&t.pendingBranch&&(F=t.pendingId,t.deps++);const y=e.props?ki(e.props.timeout):void 0,w=o,S={vnode:e,parent:t,parentComponent:s,namespace:a,container:l,hiddenContainer:i,deps:0,pendingId:Yn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(W=!1,te=!1){const{vnode:se,activeBranch:ee,pendingBranch:ge,pendingId:Te,effects:_e,parentComponent:Pe,container:ke,isInFallback:we}=S;let J=!1;S.isHydrating?S.isHydrating=!1:W||(J=ee&&ge.transition&&ge.transition.mode==="out-in",J&&(ee.transition.afterLeave=()=>{Te===S.pendingId&&(v(ge,ke,o===w?C(ee):o,0),Bn(_e),we&&se.ssFallback&&(se.ssFallback.el=null))}),ee&&($(ee.el)===ke&&(o=C(ee)),_(ee,Pe,S,!0),!J&&we&&se.ssFallback&&Je(()=>se.ssFallback.el=null,S)),J||v(ge,ke,o,0)),is(S,ge),S.pendingBranch=null,S.isInFallback=!1;let j=S.parent,k=!1;for(;j;){if(j.pendingBranch){j.effects.push(..._e),k=!0;break}j=j.parent}!k&&!J&&Bn(_e),S.effects=[],R&&t&&t.pendingBranch&&F===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ts(se,"onResolve")},fallback(W){if(!S.pendingBranch)return;const{vnode:te,activeBranch:se,parentComponent:ee,container:ge,namespace:Te}=S;Ts(te,"onFallback");const _e=C(se),Pe=()=>{S.isInFallback&&(m(null,W,ge,_e,ee,null,Te,r,c),is(S,W))},ke=W.transition&&W.transition.mode==="out-in";ke&&(se.transition.afterLeave=Pe),S.isInFallback=!0,_(se,ee,null,!0),ke||Pe()},move(W,te,se){S.activeBranch&&v(S.activeBranch,W,te,se),S.container=W},next(){return S.activeBranch&&C(S.activeBranch)},registerDep(W,te,se){const ee=!!S.pendingBranch;ee&&S.deps++;const ge=W.vnode.el;W.asyncDep.catch(Te=>{Zt(Te,W,0)}).then(Te=>{if(W.isUnmounted||S.isUnmounted||S.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:_e}=W;el(W,Te),ge&&(_e.el=ge);const Pe=!ge&&W.subTree.el;te(W,_e,$(ge||W.subTree.el),ge?null:C(W.subTree),S,a,se),Pe&&(_e.placeholder=null,T(Pe)),zn(W,_e.el),ee&&--S.deps===0&&S.resolve()})},unmount(W,te){S.isUnmounted=!0,S.activeBranch&&_(S.activeBranch,s,W,te),S.pendingBranch&&_(S.pendingBranch,s,W,te)}};return S}function ar(e,t,s,l,i,o,a,r,c){const g=t.suspense=Ao(t,l,s,e.parentNode,document.createElement("div"),null,i,o,a,r,!0),p=c(e,g.pendingBranch=t.ssContent,s,g,o,a);return g.deps===0&&g.resolve(!1,!0),p}function rr(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Lo(l?s.default:s),e.ssFallback=l?Lo(s.fallback):me(dt)}function Lo(e){let t;if(ve(e)){const s=as&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ge,Fo())}return pe(e)&&(e=Ka(e)),e=ft(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ur(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):Bn(e)}function is(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,l&&l.subTree===s&&(l.vnode.el=i,zn(l,i))}function cr(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const q=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),Zs=Symbol.for("v-stc"),Es=[];let Ge=null;function u(e=!1){Es.push(Ge=e?null:[])}function Fo(){Es.pop(),Ge=Es[Es.length-1]||null}let as=1;function en(e,t=!1){as+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Oo(e){return e.dynamicChildren=as>0?Ge||Wt:null,Fo(),as>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,i,o){return Oo(n(e,t,s,l,i,o,!0))}function Xe(e,t,s,l,i){return Oo(me(e,t,s,l,i,!0))}function rs(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const Do=({key:e})=>e??null,tn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||je(e)||ve(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,i=null,o=e===q?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Do(t),ref:t&&tn(t),scopeId:Ql,slotScopeIds:null,children:s,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:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return r?(Xn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Fe(s)?8:16),as>0&&!a&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const me=dr;function dr(e,t=null,s=null,l=0,i=null,o=!1){if((!e||e===no)&&(e=dt),rs(e)){const r=us(e,t,!0);return s&&Xn(r,s),as>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(Sr(e)&&(e=e.__vccOpts),t){t=fr(t);let{class:r,style:c}=t;r&&!Fe(r)&&(t.class=L(r)),Ee(c)&&(Fn(c)&&!pe(c)&&(c=Ne({},c)),t.style=Ke(c))}const a=Fe(e)?1:Mo(e)?128:ga(e)?64:Ee(e)?4:ve(e)?2:0;return n(e,t,s,l,i,a,o,!0)}function fr(e){return e?Fn(e)||_o(e)?Ne({},e):e:null}function us(e,t,s=!1,l=!1){const{props:i,ref:o,patchFlag:a,children:r,transition:c}=e,g=t?pr(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Do(g),ref:t&&t.ref?s&&o?pe(o)?o.concat(tn(t)):[o,tn(t)]:tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==q?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&us(e.ssContent),ssFallback:e.ssFallback&&us(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Nn(p,c.clone(p)),p}function be(e=" ",t=0){return me(Xs,null,e,t)}function hr(e,t){const s=me(Zs,null,e);return s.staticCount=t,s}function Y(e="",t=!1){return t?(u(),Xe(dt,null,e)):me(dt,null,e)}function ft(e){return e==null||typeof e=="boolean"?me(dt):pe(e)?me(q,null,e.slice()):rs(e)?Ct(e):me(Xs,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:us(e)}function Xn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(pe(t))s=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),Xn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!_o(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[be(t)]):s=8);e.children=t,e.shapeFlag|=s}function pr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=L([t.class,l.class]));else if(i==="style")t.style=Ke([t.style,l.style]);else if(Fs(i)){const o=t[i],a=l[i];a&&o!==a&&!(pe(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=l[i])}return t}function mt(e,t,s,l=null){gt(e,t,7,[s,l])}const vr=ho();let gr=0;function yr(e,t,s){const l=e.type,i=(t?t.appContext:e.appContext)||vr,o={uid:gr++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Mi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wo(l,i),emitsOptions:po(l,i),emit:null,emitted:null,propsDefaults:Me,inheritAttrs:l.inheritAttrs,ctx:Me,data:Me,props:Me,attrs:Me,slots:Me,refs:Me,setupState:Me,setupContext:null,suspense:s,suspenseId:s?s.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=Ua.bind(null,o),e.ce&&e.ce(o),o}let He=null;const mr=()=>He||ze;let sn,Zn;{const e=Is(),t=(s,l)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(l),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};sn=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Zn=t("__VUE_SSR_SETTERS__",s=>cs=s)}const Ps=e=>{const t=He;return sn(e),e.scope.on(),()=>{e.scope.off(),sn(t)}},Io=()=>{He&&He.scope.off(),sn(null)};function Bo(e){return e.vnode.shapeFlag&4}let cs=!1;function br(e,t=!1,s=!1){t&&Zn(t);const{props:l,children:i}=e.vnode,o=Bo(e);Ja(e,l,o,t),Xa(e,i,s||t);const a=o?_r(e,t):void 0;return t&&Zn(!1),a}function _r(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,La);const{setup:l}=s;if(l){pt();const i=e.setupContext=l.length>1?wr(e):null,o=Ps(e),a=Xt(l,e,0,[e.props,i]),r=gl(a);if(vt(),o(),(r||e.sp)&&!ls(e)&&jn(e),r){if(a.then(Io,Io),t)return a.then(c=>{el(e,c)}).catch(c=>{Zt(c,e,0)});e.asyncDep=a}else el(e,a)}else No(e)}function el(e,t,s){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ee(t)&&(e.setupState=Ul(t)),No(e)}function No(e,t,s){const l=e.type;e.render||(e.render=l.render||ht);{const i=Ps(e);pt();try{Fa(e)}finally{vt(),i()}}}const xr={get(e,t){return Ue(e,"get",""),e[t]}};function wr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,xr),slots:e.slots,emit:e.emit,expose:t}}function tl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ul(Xi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}const $r=/(?:^|[-_])\w/g,kr=e=>e.replace($r,t=>t.toUpperCase()).replace(/[-_]/g,"");function jo(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=jo(t);if(!l&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(l=i[1])}if(!l&&e){const i=o=>{for(const a in o)if(o[a]===t)return a};l=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return l?kr(l):s?"App":"Anonymous"}function Sr(e){return ve(e)&&"__vccOpts"in e}const H=(e,t)=>na(e,t,cs);function ds(e,t,s){try{en(-1);const l=arguments.length;return l===2?Ee(t)&&!pe(t)?rs(t)?me(e,null,[t]):me(e,t):me(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&rs(s)&&(s=[s]),me(e,t,s))}finally{en(1)}}const Cr="3.5.29";let sl;const Uo=typeof window<"u"&&window.trustedTypes;if(Uo)try{sl=Uo.createPolicy("vue",{createHTML:e=>e})}catch{}const qo=sl?e=>sl.createHTML(e):e=>e,Tr="http://www.w3.org/2000/svg",Er="http://www.w3.org/1998/Math/MathML",Tt=typeof document<"u"?document:null,Ko=Tt&&Tt.createElement("template"),Pr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const i=t==="svg"?Tt.createElementNS(Tr,e):t==="mathml"?Tt.createElementNS(Er,e):s?Tt.createElement(e,{is:s}):Tt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,i,o){const a=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Ko.innerHTML=qo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ko.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Rr=Symbol("_vtc");function Mr(e,t,s){const l=e[Rr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vo=Symbol("_vod"),Ar=Symbol("_vsh"),Lr=Symbol(""),Fr=/(?:^|;)\s*display\s*:/;function Or(e,t,s){const l=e.style,i=Fe(s);let o=!1;if(s&&!i){if(t)if(Fe(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();s[r]==null&&nn(l,r,"")}else for(const a in t)s[a]==null&&nn(l,a,"");for(const a in s)a==="display"&&(o=!0),nn(l,a,s[a])}else if(i){if(t!==s){const a=l[Lr];a&&(s+=";"+a),l.cssText=s,o=Fr.test(s)}}else t&&e.removeAttribute("style");Vo in e&&(e[Vo]=o?l.display:"",e[Ar]&&(l.display="none"))}const zo=/\s*!important$/;function nn(e,t,s){if(pe(s))s.forEach(l=>nn(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Dr(e,t);zo.test(s)?e.setProperty(Pt(l),s.replace(zo,""),"important"):e[l]=s}}const Wo=["Webkit","Moz","ms"],nl={};function Dr(e,t){const s=nl[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return nl[t]=l;l=Ds(l);for(let i=0;i<Wo.length;i++){const o=Wo[i]+l;if(o in e)return nl[t]=o}return t}const Jo="http://www.w3.org/1999/xlink";function Qo(e,t,s,l,i,o=Pi(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Jo,t.slice(6,t.length)):e.setAttributeNS(Jo,t,s):s==null||o&&!xl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":it(s)?String(s):s)}function Go(e,t,s,l,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(r!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=xl(s):s==null&&r==="string"?(s="",a=!0):r==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(i||t)}function Ir(e,t,s,l){e.addEventListener(t,s,l)}function Br(e,t,s,l){e.removeEventListener(t,s,l)}const Yo=Symbol("_vei");function Nr(e,t,s,l,i=null){const o=e[Yo]||(e[Yo]={}),a=o[t];if(l&&a)a.value=l;else{const[r,c]=jr(t);if(l){const g=o[t]=qr(l,i);Ir(e,r,g,c)}else a&&(Br(e,r,a,c),o[t]=void 0)}}const Xo=/(?:Once|Passive|Capture)$/;function jr(e){let t;if(Xo.test(e)){t={};let l;for(;l=e.match(Xo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let ll=0;const Hr=Promise.resolve(),Ur=()=>ll||(Hr.then(()=>ll=0),ll=Date.now());function qr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;gt(Kr(l,s.value),t,5,[l])};return s.value=e,s.attached=Ur(),s}function Kr(e,t){if(pe(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const Zo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vr=(e,t,s,l,i,o)=>{const a=i==="svg";t==="class"?Mr(e,l,a):t==="style"?Or(e,s,l):Fs(t)?vn(t)||Nr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zr(e,t,l,a))?(Go(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qo(e,t,l,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Fe(l))?Go(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Qo(e,t,l,a))};function zr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zo(t)&&ve(s));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 i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Zo(t)&&Fe(s)?!1:t in e}const Wr=["ctrl","shift","alt","meta"],Jr={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)=>Wr.some(s=>e[`${s}Key`]&&!t.includes(s))},nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((i,...o)=>{for(let a=0;a<t.length;a++){const r=Jr[t[a]];if(r&&r(i,t))return}return e(i,...o)}))},Qr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(i=>{if(!("key"in i))return;const o=Pt(i.key);if(t.some(a=>a===o||Qr[a]===o))return e(i)}))},Gr=Ne({patchProp:Vr},Pr);let ei;function Yr(){return ei||(ei=er(Gr))}const Xr=((...e)=>{const t=Yr().createApp(...e),{mount:s}=t;return t.mount=l=>{const i=eu(l);if(!i)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=s(i,!1,Zr(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t});function Zr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eu(e){return Fe(e)?document.querySelector(e):e}function tu(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(i){return l},beforeUnsubscribe(i){return l}}}async function su(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function nu(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const a=await su();if(!a)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new a(tu(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(a){e.onError?.(a)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function lu(e){let t=!1;const s=nu({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class ln extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ou extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class ol{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const i={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:i,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new ln(o.status);if(!o.ok){const a=await o.text().catch(()=>"");throw new ou(o.status,a)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const on="ss-dash-theme",il="ss-theme-change";function Ms(){if(typeof window>"u")return"light";const e=localStorage.getItem(on);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function iu(e){typeof window>"u"||(localStorage.setItem(on,e),window.dispatchEvent(new CustomEvent(il,{detail:e})))}function au(){const t=Ms()==="dark"?"light":"dark";return iu(t),t}function ti(e){if(typeof window>"u")return()=>{};const t=o=>{const a=o.detail;(a==="dark"||a==="light")&&e(a)},s=o=>{if(o.key===on){const a=o.newValue;e(a==="dark"||a==="light"?a:Ms())}},l=window.matchMedia("(prefers-color-scheme: dark)"),i=o=>{localStorage.getItem(on)||e(o.matches?"dark":"light")};return window.addEventListener(il,t),window.addEventListener("storage",s),l.addEventListener("change",i),()=>{window.removeEventListener(il,t),window.removeEventListener("storage",s),l.removeEventListener("change",i)}}const ru={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function uu(e){return{...ru,...e}}let cu=0;function du(){return`ss-grad-${cu++}`}function fu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let i=1;i<e.length;i++){const o=e[i];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function hu(e,t){if(e.length<2)return null;const s=uu(t),l=fu(e),i=l.max-l.min||1,o=s.width-s.padding*2,a=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let $=0;$<c;$++){const T=r+$/(c-1)*o,F=r+a-(e[$]-l.min)/i*a;g[$]=`${T.toFixed(1)},${F.toFixed(1)}`}const p=g.join(" "),m=(r+o).toFixed(1),v=(r+a).toFixed(1),_=r.toFixed(1),C=`M${g[0]} `+g.slice(1).map($=>`L${$}`).join(" ")+` L${m},${v} L${_},${v} Z`;return{points:p,areaPath:C,gradientId:du(),options:s,stats:l}}const pu=5e3,si=1e4,ni=100,vu=500;function gu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function yu(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(a=>s(a,30)),i=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+i+"]";return o.length>t?"["+e.length+" items]":o}function mu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const i=[];for(let c=0;c<Math.min(l.length,4);c++)i.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",a="{ "+i.join(", ")+o+" }";return a.length<=t?a:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function bu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${i}m`:i>0?`${i}m ${t%60}s`:`${t}s`}function Dt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function li(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function It(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function bt(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function _u(e){return e>vu?"very-slow":e>ni?"slow":"normal"}function al(e,t="ss-dash"){const s=_u(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function an(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?gu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?yu(e,t,an):typeof e=="object"?mu(e,t,an):String(e)}function xu(e){return e<0?"no expiry":e<60?`${e}s`:e<3600?`${Math.floor(e/60)}m`:e<86400?`${Math.floor(e/3600)}h`:`${Math.floor(e/86400)}d`}function wu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const $u=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function ku(e){const t=new URLSearchParams,s=e;for(const{key:l,param:i,isNumeric:o}of $u){const a=s[l];(o?a!=null:a)&&t.set(i,String(a))}if(e.filters)for(const[l,i]of Object.entries(e.filters))i&&t.set(l,i);return t.toString()}function Su(e,t,s=2){if(t<=1)return[1];const l=[],i=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),i>2&&l.push("...");for(let a=i;a<=o;a++)l.push(a);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Cu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],oi="/admin/api/debug",ii={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Tu(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Cu)t[l]=s?.[l]??!1;return t}async function Eu(e,t=oi){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Pu(e){const{baseUrl:t="",debugEndpoint:s=oi,authToken:l}=e,i=new ol({baseUrl:t,authToken:l});try{const o=await Eu(i,s);return Tu(o)}catch{return ii}}const Ru={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Mu(e){return Ru[e]||`/${e}`}class ai{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const i=Mu(t),o=s?`${this.basePath}${i}?${s}`:`${this.basePath}${i}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}function Au(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Lu(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Fu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new ol({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ai(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const i=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(i)}catch(i){if(this.shouldIgnoreError(i,s.signal,l))return;this.handleFetchError(i,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const i=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(i,l):await this.client.delete(i);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Lu(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return ku({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Au(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof ln){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?pu:si;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Le={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},Ou="ss-col-resize",ri="ss-resizing";function Du(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function i(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let a=function(c){c.preventDefault(),c.stopPropagation(),i();const g=c.clientX,p=o.offsetWidth;r.classList.add(ri),r.setPointerCapture(c.pointerId);function m(_){const C=_.clientX-g,$=Math.max(30,p+C);o.style.width=$+"px"}function v(){r.classList.remove(ri),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",v)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",v)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=Ou,o.appendChild(r),r.addEventListener("pointerdown",a),s.push(()=>{r.removeEventListener("pointerdown",a),r.remove()})}return()=>{for(const o of s)o()}}function Iu(e){const{container:t,handle:s,topPane:l,bottomPane:i,storageKey:o,minHeight:a=60}=e;if(o){const c=localStorage.getItem(o);if(c){const g=parseFloat(c);g>0&&g<1&&(l.style.flex=`${g}`,i.style.flex=`${1-g}`)}}function r(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,m=c.clientY,v=l.getBoundingClientRect().height;function _($){const T=$.clientY-m;let F=v+T;const R=p-a-s.offsetHeight;F=Math.max(a,Math.min(F,R));const y=F/(p-s.offsetHeight);l.style.flex=`${y}`,i.style.flex=`${1-y}`}function C(){if(s.removeEventListener("pointermove",_),s.removeEventListener("pointerup",C),o){const $=t.getBoundingClientRect().height-s.offsetHeight;if($>0){const T=l.getBoundingClientRect().height/$;localStorage.setItem(o,String(T))}}}s.addEventListener("pointermove",_),s.addEventListener("pointerup",C)}return s.addEventListener("pointerdown",r),()=>{s.removeEventListener("pointerdown",r)}}function Bu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function ui(e){const t={};for(const[s,l]of Object.entries(e))ju.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Nu=["all","error","warn","info","debug"];function rn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function ci(e){return e.msg||e.message||JSON.stringify(e)}function Bt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Nt(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function di(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const ju=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function _t(e){if(e.data){const t=Bu(e.data);if(t){const s=ui(t);if(s)return s}}return ui(e)}const Hu=["all","active","waiting","delayed","completed","failed"];function Uu(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function qu(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function Ku(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function Vu(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function zu(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function rl(e,t,s,l=0){return e[t]??e[s]??l}function Wu(e){return{method:e.method||"",url:e.url||"",statusCode:rl(e,"status_code","statusCode"),totalDuration:rl(e,"total_duration","totalDuration")||e.duration||0,spanCount:rl(e,"span_count","spanCount"),spans:Vu(e.spans),warnings:zu(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const Ju=["password","secret","token","key","credential","auth"];function Qu(e){const t=e.toLowerCase();return Ju.some(s=>t.includes(s))}function Gu(e){if(e==null)return"-";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e))return e.join(", ")||"-";try{return JSON.stringify(e)}catch{return String(e)}}const Yu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Xu(e){return Yu[e]||e}const Zu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function ec(e){return Zu[e]||e}function tc(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function sc(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function nc(e){return Object.entries(e).map(([t,s])=>({key:t,value:Gu(s),secret:Qu(t)}))}function lc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const oc=["healthy","active","connected","available","ready"],ic=["errored","unavailable"];function ac(e){return oc.includes(e)?"ok":ic.includes(e)?"err":""}function Ie(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function un(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!Ie(e)}function cn(e,t=""){if(!un(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const i=t?`${t}.${l}`:l,o=e[l];un(o)?s.push(...cn(o,i)):s.push({path:i,value:o})}return s}function rc(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function fi(e){if(e==null||typeof e!="object"||Array.isArray(e)||Ie(e))return 1;let t=0;for(const s of Object.keys(e))t+=fi(e[s]);return t}function uc(e){if(!un(e))return[];const t=[];for(const s of Object.keys(e))un(e[s])&&t.push(s);return t}function cc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function dc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,i=K({...ii}),o=K(!0);return Ft(async()=>{i.value=await Pu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:i,loading:o}}function hi(){const e=K(Ms());let t=null;function s(i){e.value=i}function l(){const i=au();return e.value=i,i}return Ft(()=>{e.value=Ms(),t=ti(s)}),St(()=>{t?.()}),{theme:e,toggleTheme:l}}function fc(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function hc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function ul(e){try{return await e()}catch{return null}}function pc(e){return{fetchGroupedQueries:()=>ul(()=>e.fetchGroupedQueries()),explainQuery:t=>ul(()=>e.explainQuery(t)),fetchEmailPreview:async t=>(await ul(()=>e.fetchEmailPreview(t)))?.html||null}}function vc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function gc(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof ln&&(t.value=!0),null}}}}function As(e,t,s){const l=t(),i=hc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(i).length>0?i:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function yc(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function mc(e,t,s){return{async mutate(l,i="post",o){return e.mutate(l,i,o)},refresh(){As(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function bc(e,t,s,l){ut(t,()=>{s.pagination.page=1;for(const i of Object.keys(s.filter))i==="search"?s.filter.search="":delete s.filter[i];s.sort.column="",s.data.value=null,e.setSection(t()),As(e,t,s)}),l&&ut(l,()=>{As(e,t,s),e.handleRefreshSignal()})}function _c(e){return{data:K(null),loading:K(!1),error:K(null),isUnauthorized:K(!1),timeRange:K("1h"),pagination:Gt({page:1,perPage:e,total:0,totalPages:1}),filter:Gt({search:""}),sort:Gt({column:"",direction:"desc"})}}function xc(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function lt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:i,perPage:o=50,refreshKey:a}=t,r=_c(o),c=new Fu({baseUrl:s,endpoint:l,authToken:i,section:e(),perPage:o,callbacks:fc(r)}),g=c.getApi(),m=yc(r,()=>{As(c,e,r),c.fetch(!1)}),v=mc(c,e,r),_={...gc(g,r.isUnauthorized),...pc(g),...vc(g)};return bc(c,e,r,a),Ft(()=>{As(c,e,r),c.start()}),St(()=>{c.stop()}),xc(r,m,v,_)}const wc=["title","aria-label"],$c=["viewBox","innerHTML"],kc=["viewBox","innerHTML"],Sc=Oe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=hi(),i=H(()=>s.value==="dark"),o=H(()=>i.value?"Switch to light theme":"Switch to dark theme"),a=H(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:L(a.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>x(l)&&x(l)(...g))},[i.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Le).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).sun.elements.join("")},null,8,$c)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Le).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).moon.elements.join("")},null,8,kc))],10,wc))}}),Cc=["data-theme"],Tc={class:"ss-dash-header"},Ec={class:"ss-dash-header-center"},Pc={class:"ss-dash-header-right"},Rc=["href"],Mc={class:"ss-dash-body"},Ac={class:"ss-dash-nav"},Lc=["data-ss-section","onClick","title"],Fc={class:"ss-dash-nav-icon"},Oc=["viewBox","innerHTML"],Dc={class:"ss-dash-nav-label"},Ic={key:0,class:"ss-dash-nav-sep"},Bc=["onClick","title"],Nc={class:"ss-dash-nav-icon"},jc=["viewBox","innerHTML"],Hc={class:"ss-dash-nav-label"},Uc=["title"],qc=["viewBox","innerHTML"],Kc=["viewBox","innerHTML"],Vc={class:"ss-dash-main"},zc=["id"],Wc={class:"ss-dash-pane-inner"},Jc={key:1,class:"ss-dash-empty"},Qc=Oe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ct(()=>Promise.resolve().then(()=>nh)),s=ct(()=>Promise.resolve().then(()=>np)),l=ct(()=>Promise.resolve().then(()=>Bp)),i=ct(()=>Promise.resolve().then(()=>Vp)),o=ct(()=>Promise.resolve().then(()=>ev)),a=ct(()=>Promise.resolve().then(()=>$v)),r=ct(()=>Promise.resolve().then(()=>jv)),c=ct(()=>Promise.resolve().then(()=>ag)),g=ct(()=>Promise.resolve().then(()=>Mg)),p=ct(()=>Promise.resolve().then(()=>i1)),m=ct(()=>Promise.resolve().then(()=>H1)),v=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],_=e,{theme:C}=hi(),{features:$}=dc({baseUrl:_.baseUrl,debugEndpoint:_.debugEndpoint,authToken:_.authToken}),T=K("overview"),F=K(!1),R=K(!1),y=K(0);ns("ss-refresh-key",y),ns("ss-base-url",_.baseUrl),ns("ss-dashboard-endpoint",_.dashboardEndpoint),ns("ss-debug-endpoint",_.debugEndpoint),ns("ss-auth-token",_.authToken),typeof window<"u"&&(F.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let w=null;function S(){if(w&&(w(),w=null),!_.channelName)return;w=lu({baseUrl:_.baseUrl,channelName:_.channelName,authToken:_.authToken,onMessage:()=>{y.value+=1},onConnect:()=>{R.value=!0},onDisconnect:()=>{R.value=!1},onError:()=>{R.value=!1}}).unsubscribe}Ft(()=>{S()}),St(()=>{w&&(w(),w=null)});const W=H(()=>$.value.customPanes||[]);function te(k){const E=k.replace("#","").split("?")[0];return E&&[...v,...W.value.map(X=>X.id)].includes(E)?E:"overview"}function se(){const k=te(window.location.hash);k!==T.value&&(T.value=k)}Ft(()=>{if(typeof window>"u")return;const k=te(window.location.hash);(k!=="overview"||window.location.hash)&&(T.value=k),window.addEventListener("hashchange",se)}),St(()=>{window.removeEventListener("hashchange",se)}),ut(T,k=>{typeof window<"u"&&(window.location.hash=k)});function ee(){F.value=!F.value,localStorage.setItem("ss-dash-sidebar",F.value?"collapsed":"expanded")}function ge(k){k!==T.value&&(T.value=k)}const Te=H(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:$.value.cache},{id:"jobs",label:"Jobs",visible:$.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),_e=H(()=>Te.value.filter(k=>k.visible)),{data:Pe}=lt(()=>"overview",{baseUrl:_.baseUrl,dashboardEndpoint:_.dashboardEndpoint,authToken:_.authToken,refreshKey:y}),ke=H(()=>Pe.value),we=H(()=>{const k={};if(!ke.value)return k;if(ke.value.totalRequests>0&&(k.requests={count:ke.value.totalRequests}),ke.value.queryStats?.total>0&&(k.queries={count:ke.value.queryStats.total}),ke.value.logLevelBreakdown){const E=ke.value.logLevelBreakdown,M=E.error+E.warn+E.info+E.debug;M>0&&(k.logs={count:M})}return k}),J={overview:t,requests:s,queries:l,events:i,routes:o,logs:a,emails:r,cache:c,jobs:g,config:p,internals:m},j=H(()=>J[T.value]||null);return(k,E)=>(u(),d("div",{class:"ss-dash","data-theme":x(C),id:"ss-dash"},[n("div",Tc,[E[0]||(E[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",Ec,[n("span",{class:L(["ss-dash-live-dot",{"ss-dash-connected":R.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:L(["ss-dash-live-label",{"ss-dash-connected":R.value}]),id:"ss-dash-live-label"},h(R.value?"Live":"Polling"),3)]),n("div",Pc,[me(Sc,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Rc)):Y("",!0)])]),n("div",Mc,[n("div",{class:L(["ss-dash-sidebar",{"ss-dash-collapsed":F.value}]),id:"ss-dash-sidebar"},[n("nav",Ac,[(u(!0),d(q,null,ye(_e.value,M=>(u(),d("button",{key:M.id,type:"button",class:L(["ss-dash-nav-item",{"ss-dash-active":T.value===M.id}]),"data-ss-section":M.id,onClick:X=>ge(M.id),title:F.value?M.label:void 0},[n("span",Fc,[(u(),d("svg",{width:"20",height:"20",viewBox:(x(Le)[M.id]||x(Le).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(x(Le)[M.id]||x(Le).config).elements.join("")},null,8,Oc))]),n("span",Dc,h(M.label),1),we.value[M.id]&&we.value[M.id].count>0?(u(),d("span",{key:0,class:L(["ss-dash-nav-badge",we.value[M.id].variant||""])},h(we.value[M.id].count),3)):Y("",!0)],10,Lc))),128)),W.value.length>0?(u(),d("div",Ic)):Y("",!0),(u(!0),d(q,null,ye(W.value,M=>(u(),d("button",{key:M.id,type:"button",class:L(["ss-dash-nav-item",{"ss-dash-active":T.value===M.id}]),onClick:X=>ge(M.id),title:F.value?M.label:void 0},[n("span",Nc,[(u(),d("svg",{width:"20",height:"20",viewBox:x(Le)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le)["custom-pane"].elements.join("")},null,8,jc))]),n("span",Hc,h(M.label),1)],10,Bc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:ee,title:F.value?"Expand sidebar":"Collapse sidebar"},[F.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Le)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Le)["chevron-right"].elements.join("")},null,8,qc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Le)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Le)["chevron-left"].elements.join("")},null,8,Kc))],8,Uc)],2),n("div",Vc,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${T.value}`},[n("div",Wc,[(u(),Xe(lr,null,{fallback:ss(()=>[...E[1]||(E[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:ss(()=>[j.value?(u(),Xe(Ra(j.value),{key:0})):(u(),d("div",Jc,"Unknown section"))]),_:1}))])],8,zc)])])],8,Cc))}});function Gc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Yc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ms()),ti(e)}const fs=Gc("ss-dash-config");Yc();const pi=document.getElementById("ss-dash");pi&&Xr(Qc,{baseUrl:fs.baseUrl,dashboardEndpoint:fs.dashboardEndpoint,debugEndpoint:fs.debugEndpoint,authToken:fs.authToken,backUrl:fs.backUrl,channelName:fs.channelName}).mount(pi);const Xc=["width","height","viewBox"],Zc=["id"],ed=["stop-color"],td=["stop-color"],sd=["d","fill"],nd=["d","stroke"],ld=["x","y"],dn=Oe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=H(()=>hu(t.data,{width:t.width,height:t.height,color:t.color})),l=H(()=>s.value!==null),i=H(()=>`sg-${t.color.replace("#","")}`);return(o,a)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ke({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(q,{key:0},[n("defs",null,[n("linearGradient",{id:i.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,ed),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,td)],8,Zc)]),n("path",{d:s.value.areaPath,fill:`url(#${i.value})`},null,8,sd),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,nd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,ld))],8,Xc))],4))}}),od={class:"ss-dash-btn-group"},id=["onClick"],ad=Oe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(i,o)=>(u(),d("div",od,[(u(),d(q,null,ye(l,a=>n("button",{key:a.value,type:"button",class:L(`ss-dash-btn ${e.modelValue===a.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",a.value)},h(a.label),11,id)),64))]))}}),rd={class:"ss-dash-overview"},ud={key:0,class:"ss-dash-empty"},cd={class:"ss-dash-cards"},dd={class:"ss-dash-card"},fd={class:"ss-dash-sparkline"},hd={class:"ss-dash-card"},pd={class:"ss-dash-sparkline"},vd={class:"ss-dash-card"},gd={class:"ss-dash-sparkline"},yd={class:"ss-dash-card"},md={class:"ss-dash-sparkline"},bd={class:"ss-dash-chart-container"},_d={class:"ss-dash-chart-header"},xd={class:"ss-dash-chart",id:"ss-dash-chart-area"},wd={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},$d=["viewBox"],kd=["id"],Sd=["id"],Cd=["x1","y1","x2","y2"],Td=["x","y"],Ed=["d","fill"],Pd=["d"],Rd=["d","fill"],Md=["d"],Ad=["x","y","width","height","data-idx","onMouseenter"],Ld=["cx","cy","r","data-idx","opacity"],Fd=["cx","cy","r","data-idx","opacity"],Od=["x","y"],Dd={key:0,style:{color:"var(--ss-red-fg)"}},Id={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Bd={key:0,class:"ss-dash-chart-legend-item"},Nd={class:"ss-dash-secondary-cards"},jd={class:"ss-dash-secondary-card"},Hd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Ud={key:1,class:"ss-dash-secondary-list"},qd=["href"],Kd=["title"],Vd={class:"ss-dash-secondary-card"},zd={class:"ss-dash-secondary-list"},Wd={class:"ss-dash-secondary-list-value"},Jd={class:"ss-dash-secondary-list-value"},Qd={class:"ss-dash-secondary-list-value"},Gd={class:"ss-dash-secondary-card"},Yd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Xd={key:1,class:"ss-dash-secondary-list"},Zd=["href"],ef=["title"],tf=["title"],sf={class:"ss-dash-secondary-card"},nf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},lf={key:1,class:"ss-dash-secondary-list"},of=["href"],af={class:"ss-dash-secondary-list-value"},rf={class:"ss-dash-secondary-card"},uf={class:"ss-dash-secondary-list"},cf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},df={class:"ss-dash-secondary-list-value"},ff={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},hf={class:"ss-dash-secondary-list-value"},pf={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},vf={class:"ss-dash-secondary-card"},gf={class:"ss-dash-secondary-list"},yf={href:"#logs?level=error",class:"ss-dash-widget-row-link"},mf={class:"ss-dash-secondary-list-value"},bf={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},_f={class:"ss-dash-secondary-list-value"},xf={href:"#logs?level=info",class:"ss-dash-widget-row-link"},wf={class:"ss-dash-secondary-list-value"},$f={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},Sf={key:0,class:"ss-dash-secondary-card"},Cf={class:"ss-dash-secondary-list"},Tf={href:"#cache",class:"ss-dash-widget-row-link"},Ef={class:"ss-dash-secondary-list-value"},Pf={href:"#cache",class:"ss-dash-widget-row-link"},Rf={class:"ss-dash-secondary-list-value"},Mf={href:"#cache",class:"ss-dash-widget-row-link"},Af={class:"ss-dash-secondary-list-value"},Lf={key:1,class:"ss-dash-secondary-card"},Ff={class:"ss-dash-secondary-list"},Of={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Df={class:"ss-dash-secondary-list-value"},If={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},Bf={class:"ss-dash-secondary-list-value"},Nf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},jf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},Hf={class:"ss-dash-secondary-list-value"},Uf={class:"ss-dash-secondary-card"},qf={class:"ss-dash-secondary-list"},Kf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},Vf={class:"ss-dash-secondary-list-value"},zf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},Wf={class:"ss-dash-secondary-list-value"},Jf={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},Qf={class:"ss-dash-secondary-list-value"},Gf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Yf={class:"ss-dash-secondary-list-value"},Xf={class:"ss-dash-secondary-card"},Zf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},eh={key:1,class:"ss-dash-secondary-list"},th=["href"],sh=["title"],cl=220,vi=120,nh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,i]of t)s[l]=i;return s})(Oe({__name:"OverviewSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),a=K("1h"),{data:r,loading:c}=lt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),{data:g,setTimeRange:p}=lt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t});ut(a,G=>{p(G)});const m=H(()=>r.value),v=H(()=>m.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),_=H(()=>v.value),C=H(()=>v.value.avgResponseTime||Number(_.value.avg_response_time)||0),$=H(()=>v.value.p95ResponseTime||Number(_.value.p95_response_time)||0),T=H(()=>v.value.requestsPerMinute||Number(_.value.requests_per_minute)||0),F=H(()=>v.value.errorRate||Number(_.value.error_rate)||0),R=H(()=>v.value.totalRequests||Number(_.value.total_requests)||0),y=H(()=>R.value>0),w=H(()=>g.value?.buckets||[]),S=H(()=>v.value.sparklines?.avgResponseTime??w.value.map(G=>G.avgDuration??0)),W=H(()=>v.value.sparklines?.p95ResponseTime??w.value.map(G=>G.p95Duration??0)),te=H(()=>v.value.sparklines?.requestsPerMinute??w.value.map(G=>G.requestCount??0)),se=H(()=>v.value.sparklines?.errorRate??w.value.map(G=>G.errorCount??0)),ee=H(()=>`ss-cg-total-${o}`),ge=H(()=>`ss-cg-error-${o}`);function Te(G,A){if(G<=0)return[0];const ne=G/A,fe=Math.pow(10,Math.floor(Math.log10(ne))),ot=ne/fe;let et;ot<=1?et=fe:ot<=2?et=2*fe:ot<=5?et=5*fe:et=10*fe;const hn=[];for(let fl=et;fl<=G+et*.5;fl+=et)hn.push(Math.round(fl));return hn.length===0&&hn.push(Math.ceil(G)),hn}function _e(G){try{return new Date(G).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Pe(G){if(G.length===0)return"";if(G.length===1)return`M${G[0].x},${G[0].y}`;let A=`M${G[0].x.toFixed(1)},${G[0].y.toFixed(1)}`;for(let ne=0;ne<G.length-1;ne++){const fe=G[ne],ot=G[ne+1],et=(fe.x+ot.x)/2;A+=` C${et.toFixed(1)},${fe.y.toFixed(1)} ${et.toFixed(1)},${ot.y.toFixed(1)} ${ot.x.toFixed(1)},${ot.y.toFixed(1)}`}return A}function ke(G){return al(G,"ss-dash")}const we=K(null),J=K(0);let j=null;ut(we,G=>{j?.disconnect(),j=null,G&&(J.value=G.clientWidth,j=new ResizeObserver(A=>{for(const ne of A)J.value=ne.contentRect.width}),j.observe(G))}),St(()=>{j?.disconnect()});const k={top:12,right:12,bottom:28,left:38},E=H(()=>J.value||600),M=H(()=>E.value-k.left-k.right),X=H(()=>cl-k.top-k.bottom),ue=H(()=>k.top+X.value),le=H(()=>w.value.map(G=>{const A=G;return(G.requestCount??0)+(Number(A.request_count)||0)||G.total||0})),U=H(()=>w.value.map(G=>{const A=G;return(G.errorCount??0)+(Number(A.error_count)||0)})),oe=H(()=>Math.max(...le.value,1)),V=H(()=>Math.ceil(oe.value*1.1)),ie=H(()=>U.value.some(G=>G>0)),De=H(()=>Te(V.value,4)),fn=H(()=>De.value.length>0?De.value[De.value.length-1]:V.value);function Et(G){return k.left+G/Math.max(w.value.length-1,1)*M.value}function ps(G){return k.top+X.value-G/(fn.value||1)*X.value}const f=H(()=>w.value.map((G,A)=>({x:Et(A),y:ps(le.value[A])}))),b=H(()=>w.value.map((G,A)=>({x:Et(A),y:ps(U.value[A])}))),P=H(()=>Pe(f.value)),N=H(()=>ie.value?Pe(b.value):""),O=H(()=>f.value.length>1?`${P.value} L${f.value[f.value.length-1].x.toFixed(1)},${ue.value} L${f.value[0].x.toFixed(1)},${ue.value} Z`:""),D=H(()=>ie.value&&b.value.length>1?`${N.value} L${b.value[b.value.length-1].x.toFixed(1)},${ue.value} L${b.value[0].x.toFixed(1)},${ue.value} Z`:""),Q=H(()=>Math.min(10,w.value.length)),z=H(()=>Math.max(1,Math.ceil(w.value.length/Q.value))),I=K({visible:!1,x:0,idx:-1});function B(G){const A=f.value[G].x;I.value={visible:!0,x:A,idx:G}}function ce(){I.value={visible:!1,x:0,idx:-1}}const Z=H(()=>I.value.visible?Math.max(vi/2,Math.min(I.value.x,E.value-vi/2)):0),ae=H(()=>M.value/(w.value.length||1));function he(G){return G%z.value===0||G===w.value.length-1}function xe(){return y.value?C.value>500?"ss-dash-red":C.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Re(){return y.value?$.value>500?"ss-dash-red":$.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Se(){return y.value?"ss-dash-accent":"ss-dash-dim"}function qe(){return y.value?F.value>5?"ss-dash-red":F.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(G){return G.url||G.pattern||"-"}function Ze(G){return G.name||G.eventName||G.event_name||G.event||""}function Ye(G){return G.sqlNormalized||G.normalizedSql||G.sql_normalized||G.sql||"-"}return(G,A)=>(u(),d("div",rd,[x(c)&&!m.value?(u(),d("div",ud,"Loading overview...")):(u(),d(q,{key:1},[n("div",cd,[n("div",dd,[A[1]||(A[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:L(["ss-dash-card-value",xe()])},h(y.value?x(Dt)(C.value):"-"),3),n("div",fd,[me(dn,{data:S.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",hd,[A[2]||(A[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:L(["ss-dash-card-value",Re()])},h(y.value?x(Dt)($.value):"-"),3),n("div",pd,[me(dn,{data:W.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",vd,[A[3]||(A[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:L(["ss-dash-card-value",Se()])},h(y.value?T.value.toFixed(1):"-"),3),n("div",gd,[me(dn,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",yd,[A[4]||(A[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:L(["ss-dash-card-value",qe()])},h(y.value?`${F.value.toFixed(1)}%`:"-"),3),n("div",md,[me(dn,{data:se.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",bd,[n("div",_d,[A[5]||(A[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),me(ad,{"model-value":a.value,"onUpdate:modelValue":A[0]||(A[0]=ne=>a.value=ne)},null,8,["model-value"])]),n("div",xd,[w.value.length===0?(u(),d("div",wd," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:we,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${E.value} ${cl}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:ee.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[6]||(A[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,kd),n("linearGradient",{id:ge.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[7]||(A[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,Sd)]),(u(!0),d(q,null,ye(De.value,ne=>(u(),d("g",{key:`ytick-${ne}`},[n("line",{x1:k.left,y1:ps(ne),x2:E.value-k.right,y2:ps(ne),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Cd),n("text",{x:k.left-6,y:ps(ne),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ne),9,Td)]))),128)),O.value?(u(),d("path",{key:0,d:O.value,fill:`url(#${ee.value})`},null,8,Ed)):Y("",!0),P.value?(u(),d("path",{key:1,d:P.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Pd)):Y("",!0),D.value?(u(),d("path",{key:2,d:D.value,fill:`url(#${ge.value})`},null,8,Rd)):Y("",!0),N.value?(u(),d("path",{key:3,d:N.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,Md)):Y("",!0),(u(!0),d(q,null,ye(w.value,(ne,fe)=>(u(),d("g",{key:fe},[n("rect",{x:f.value[fe].x-ae.value/2,y:k.top,width:ae.value,height:X.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":fe,onMouseenter:ot=>B(fe),onMouseleave:ce},null,40,Ad),le.value[fe]>0?(u(),d("circle",{key:0,cx:f.value[fe].x,cy:f.value[fe].y,r:I.value.visible&&I.value.idx===fe?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":fe,opacity:I.value.visible&&I.value.idx!==fe?.3:1},null,8,Ld)):Y("",!0),U.value[fe]>0?(u(),d("circle",{key:1,cx:f.value[fe].x,cy:b.value[fe].y,r:I.value.visible&&I.value.idx===fe?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":fe,opacity:I.value.visible&&I.value.idx!==fe?.3:1},null,8,Fd)):Y("",!0)]))),128)),(u(!0),d(q,null,ye(w.value,(ne,fe)=>(u(),d(q,{key:`xlabel-${fe}`},[he(fe)&&_e(ne.bucket)?(u(),d("text",{key:0,x:Et(fe),y:cl-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(_e(ne.bucket)),9,Od)):Y("",!0)],64))),128))],8,$d)),I.value.visible&&I.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:Z.value+"px",top:k.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(_e(w.value[I.value.idx].bucket)),1),n("div",null,"Requests: "+h(le.value[I.value.idx]),1),U.value[I.value.idx]>0?(u(),d("div",Dd," Errors: "+h(U.value[I.value.idx]),1)):Y("",!0)],4)):Y("",!0)],512))]),n("div",Id,[A[9]||(A[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),be(" Requests ")],-1)),w.value.some(ne=>(ne.errorCount??0)>0)?(u(),d("span",Bd,[...A[8]||(A[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),be(" Errors ",-1)])])):Y("",!0)])]),n("div",Nd,[n("div",jd,[A[10]||(A[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),v.value.slowestEndpoints.length===0?(u(),d("div",Hd," No data yet ")):(u(),d("ul",Ud,[(u(!0),d(q,null,ye(v.value.slowestEndpoints.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#requests?url=${encodeURIComponent(Be(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(ne)},h(Be(ne)),9,Kd),n("span",{class:L(["ss-dash-secondary-list-value","ss-dash-duration",ke(ne.avgDuration)])},h(x(Dt)(ne.avgDuration)),3)],8,qd)]))),128))]))]),n("div",Vd,[A[14]||(A[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",zd,[n("li",null,[A[11]||(A[11]=n("span",null,"Total Queries",-1)),n("span",Wd,h(v.value.queryStats.total),1)]),n("li",null,[A[12]||(A[12]=n("span",null,"Avg Duration",-1)),n("span",Jd,h(x(Dt)(v.value.queryStats.avgDuration)),1)]),n("li",null,[A[13]||(A[13]=n("span",null,"Queries / Request",-1)),n("span",Qd,h(v.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Gd,[A[15]||(A[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),v.value.recentErrors.length===0?(u(),d("div",Yd," No recent errors ")):(u(),d("ul",Xd,[(u(!0),d(q,null,ye(v.value.recentErrors,(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#logs?id=${ne.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ne.message},h(ne.message),9,ef),ne.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:x(It)(ne.timestamp)},h(x(bt)(ne.timestamp)),9,tf)):Y("",!0)],8,Zd)]))),128))]))]),n("div",sf,[A[16]||(A[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),v.value.topEvents.length===0?(u(),d("div",nf," No events yet ")):(u(),d("ul",lf,[(u(!0),d(q,null,ye(v.value.topEvents.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#events?event_name=${encodeURIComponent(Ze(ne))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Ze(ne)),1),n("span",af,h(ne.count),1)],8,of)]))),128))]))]),n("div",rf,[A[20]||(A[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",uf,[n("li",null,[n("a",cf,[A[17]||(A[17]=n("span",null,"Sent",-1)),n("span",df,h(v.value.emailActivity.sent),1)])]),n("li",null,[n("a",ff,[A[18]||(A[18]=n("span",null,"Queued",-1)),n("span",hf,h(v.value.emailActivity.queued),1)])]),n("li",null,[n("a",pf,[A[19]||(A[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.emailActivity.failed),5)])])])]),n("div",vf,[A[25]||(A[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",gf,[n("li",null,[n("a",yf,[A[21]||(A[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",mf,h(v.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",bf,[A[22]||(A[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",_f,h(v.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",xf,[A[23]||(A[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",wf,h(v.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",$f,[A[24]||(A[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",kf,h(v.value.logLevelBreakdown.debug),1)])])])]),v.value.cacheStats&&v.value.cacheStats.available?(u(),d("div",Sf,[A[29]||(A[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Cf,[n("li",null,[n("a",Tf,[A[26]||(A[26]=n("span",null,"Keys",-1)),n("span",Ef,h(v.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Pf,[A[27]||(A[27]=n("span",null,"Hit Rate",-1)),n("span",Rf,h(v.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",Mf,[A[28]||(A[28]=n("span",null,"Memory",-1)),n("span",Af,h(v.value.cacheStats.memoryUsedHuman),1)])])])])):Y("",!0),v.value.jobQueueStatus&&v.value.jobQueueStatus.available?(u(),d("div",Lf,[A[34]||(A[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",Ff,[n("li",null,[n("a",Of,[A[30]||(A[30]=n("span",null,"Active",-1)),n("span",Df,h(v.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",If,[A[31]||(A[31]=n("span",null,"Waiting",-1)),n("span",Bf,h(v.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Nf,[A[32]||(A[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(v.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",jf,[A[33]||(A[33]=n("span",null,"Completed",-1)),n("span",Hf,h(v.value.jobQueueStatus.completed),1)])])])])):Y("",!0),n("div",Uf,[A[39]||(A[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",qf,[n("li",null,[n("a",Kf,[A[35]||(A[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",Vf,h(v.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",zf,[A[36]||(A[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",Wf,h(v.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",Jf,[A[37]||(A[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",Qf,h(v.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Gf,[A[38]||(A[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Yf,h(v.value.statusDistribution["5xx"]),1)])])])]),n("div",Xf,[A[40]||(A[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),v.value.slowestQueries.length===0?(u(),d("div",Zf," No query data yet ")):(u(),d("ul",eh,[(u(!0),d(q,null,ye(v.value.slowestQueries.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ne)},h(Ye(ne)),9,sh),n("span",{class:L(["ss-dash-secondary-list-value","ss-dash-duration",ke(ne.avgDuration)])},h(x(Dt)(ne.avgDuration)),3)],8,th)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-6c6eb892"]])},Symbol.toStringTag,{value:"Module"}));function dl(e="",t){let s=null;return function(){return s||(s=new ol({baseUrl:e,authToken:t})),s}}function zt(e){const t=K(null);let s=null;function l(){s&&s(),s=null,Dn(()=>{t.value&&(s=Du(t.value))})}return e&&ut(e,l),Ft(l),so(()=>{s&&s(),s=null}),{tableRef:t}}const lh={class:"ss-dash-filter-bar"},oh={key:0,class:"ss-dash-summary"},ih={class:"ss-dash-search-wrapper"},ah=["viewBox","innerHTML"],rh=["value","placeholder"],uh={key:1,class:"ss-dash-filter-controls"},jt=Oe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function i(){s("update:modelValue",""),s("clear")}return(o,a)=>(u(),d("div",lh,[e.summary?(u(),d("span",oh,h(e.summary),1)):Y("",!0),n("div",ih,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:x(Le).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Le).search.elements.join("")},null,8,ah)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,rh),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:i}," × ")):Y("",!0)]),o.$slots.default?(u(),d("div",uh,[Aa(o.$slots,"default")])):Y("",!0)]))}}),ch={key:0,class:"ss-dash-pagination"},dh={class:"ss-dash-page-info"},fh={class:"ss-dash-pagination-controls"},hh=["disabled"],ph={key:0,class:"ss-dash-page-ellipsis"},vh=["onClick"],gh=["disabled"],hs=Oe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,i=H(()=>Su(s.page,s.lastPage));return(o,a)=>e.lastPage>1?(u(),d("div",ch,[n("span",dh," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",fh,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:a[0]||(a[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,hh),(u(!0),d(q,null,ye(i.value,(r,c)=>(u(),d(q,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",ph,"...")):(u(),d("button",{key:1,type:"button",class:L(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},h(r),11,vh))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:a[1]||(a[1]=r=>l("pageChange",e.page+1))}," Next » ",8,gh)])])):Y("",!0)}}),yh={key:0,class:"ss-dash-empty"},mh={class:"ss-dash-tl-legend"},bh=["title"],_h={class:"ss-dash-tl-track"},xh=["title"],wh={class:"ss-dash-tl-dur"},$h={key:0,class:"ss-dash-tl-warnings"},kh={class:"ss-dash-tl-warnings-title"},gi=Oe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},i=H(()=>t.spans||[]),o=H(()=>[...i.value].sort((_,C)=>_.startOffset-C.startOffset)),a=H(()=>{const _={};for(const C of o.value)_[C.id]=C.parentId?(_[C.parentId]||0)+1:0;return _});function r(_){const C=t.totalDuration||1;return`${_.startOffset/C*100}%`}function c(_){const C=t.totalDuration||1;return`${Math.max(_.duration/C*100,.5)}%`}function g(_){return _.length>50?_.slice(0,50)+"...":_}function p(_){return _==="db"?"DB":_}function m(_){return _==="db"?"purple":_==="mail"?"green":_==="event"?"amber":_==="view"?"blue":"muted"}function v(_){const C=_.metadata?Object.entries(_.metadata).filter(([,$])=>$!=null).map(([$,T])=>`${$}=${T}`).join(", "):"";return C?`${_.label} (${_.duration.toFixed(2)}ms)
|
|
5
|
+
${C}`:`${_.label} (${_.duration.toFixed(2)}ms)`}return(_,C)=>i.value.length===0?(u(),d("div",yh,"No spans recorded")):(u(),d("div",{key:1,class:L(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",mh,[(u(),d(q,null,ye(l,($,T)=>n("div",{key:T,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[T]||s.custom})},null,4),n("span",null,h($),1)])),64))]),(u(!0),d(q,null,ye(o.value,$=>(u(),d("div",{key:$.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:v($),style:Ke({paddingLeft:8+(a.value[$.id]||0)*16+"px"})},[n("span",{class:L(`ss-dash-badge ss-dash-badge-${m($.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p($.category)),3),be(" "+h(g($.label)),1)],12,bh),n("div",_h,[n("div",{class:L(`ss-dash-tl-bar ss-dash-tl-bar-${$.category||"custom"}`),style:Ke({left:r($),width:c($)}),title:v($)},null,14,xh)]),n("span",wh,h($.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",$h,[n("div",kh,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(q,null,ye(e.warnings,($,T)=>(u(),d("div",{key:T,class:"ss-dash-tl-warning"},h($),1))),128))])):Y("",!0)],2))}}),Ls=Oe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=K(t.defaultExpanded),l=H(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return an(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return an(t.value,t.maxLen||100)}),i=H(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function a(){navigator.clipboard?.writeText(i.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:L(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:L(`${t.classPrefix}-data-cell`)},[s.value?Y("",!0):(u(),d("span",{key:0,class:L(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:L(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:L(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:nt(a,["stop"])}," Copy ",2),n("pre",null,h(i.value),1)],2)):Y("",!0)],2))}}),Sh={key:0},Ch={class:"ss-related-logs-title"},Th={class:"ss-related-logs-count"},Eh={style:{overflow:"auto"}},Ph=["onClick"],Rh=["title"],Mh=["title"],Ah={key:1,class:"ss-log-reqid-empty"},Lh={key:3,style:{width:"14px"}},Fh={class:"ss-log-msg"},Oh={key:0,class:"ss-log-detail"},Dh=Oe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=K(null);function s(l,i){i&&(t.value=t.value===l?null:l)}return(l,i)=>e.logs.length>0?(u(),d("div",Sh,[n("div",Ch,[i[0]||(i[0]=be(" Related Logs ",-1)),n("span",Th,"("+h(e.logs.length)+")",1)]),n("div",Eh,[(u(!0),d(q,null,ye(e.logs,(o,a)=>(u(),d(q,{key:o.id||a},[n("div",{class:L(["ss-log-entry",x(_t)(o)?"ss-log-entry-expandable":""]),onClick:r=>s(a,!!x(_t)(o))},[n("span",{class:L(["ss-log-level",x(di)(x(rn)(o),"ss-log-level")])},h(x(rn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:x(Bt)(o)?x(It)(x(Bt)(o)):""},h(x(Bt)(o)?x(bt)(x(Bt)(o)):"-"),9,Rh),x(Nt)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:x(Nt)(o)},h(x(Nt)(o).slice(0,8)),9,Mh)):(u(),d("span",Ah,"--")),x(_t)(o)?(u(),d("span",{key:2,class:L(["ss-log-expand-icon",t.value===a?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Lh)),n("span",Fh,h(x(ci)(o)),1)],10,Ph),t.value===a&&x(_t)(o)?(u(),d("div",Oh,[me(Ls,{value:x(_t)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):Y("",!0)],64))),128))])])):Y("",!0)}}),Ih={class:"ss-dash-tl-detail-header"},Bh={style:{color:"var(--ss-text)"}},Nh={class:"ss-dash-tl-meta"},jh={class:"ss-dash-tl-detail-header"},Hh={key:0,class:"ss-dash-empty"},Uh={key:1,class:"ss-dash-empty"},qh={class:"ss-dash-table-wrap"},Kh={key:0,class:"ss-dash-sort-arrow"},Vh={key:0,class:"ss-dash-sort-arrow"},zh={key:0,class:"ss-dash-sort-arrow"},Wh={key:0,class:"ss-dash-sort-arrow"},Jh={key:0,class:"ss-dash-sort-arrow"},Qh=["onClick"],Gh={style:{color:"var(--ss-dim)"}},Yh=["title"],Xh={style:{color:"var(--ss-muted)","text-align":"center"}},Zh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},ep={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},tp=["title"],sp={key:1,class:"ss-dash-empty"},np=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RequestsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,sort:g,goToPage:p,setSearch:m,setSort:v}=lt(()=>"requests",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),_=K(""),C=K(null),$=K(!1),T=K(null),F=H(()=>{if(!o.value)return[];const we=o.value;return we.data||we.requests||o.value||[]}),R=dl(i,l);async function y(we){const J=we.id;$.value=!0;try{const j=s||"/__stats/api",E=await R().fetch(`${j}/requests/${J}`),M=E.trace,X=M?{...E,...M,logs:E.logs}:E;T.value=Wu(X),C.value=we}catch{}finally{$.value=!1}}function w(){C.value=null,T.value=null}function S(we){_.value=we,m(we)}function W(we){v(we)}function te(we){return al(we,"ss-dash")}const{tableRef:se}=zt(()=>F.value),ee=K(null),ge=K(null),Te=K(null),_e=K(null);let Pe=null;const ke=H(()=>T.value?T.value.logs||[]:[]);return ut([()=>C.value,()=>T.value],async()=>{Pe?.(),Pe=null,T.value&&ke.value.length>0&&(await Dn(),ee.value&&ge.value&&Te.value&&_e.value&&(Pe=Iu({container:ee.value,handle:ge.value,topPane:Te.value,bottomPane:_e.value,storageKey:"ss-requests-split"})))}),St(()=>{Pe?.()}),(we,J)=>(u(),d("div",null,[T.value&&C.value?(u(),d(q,{key:0},[n("div",Ih,[n("button",{type:"button",class:"ss-dash-btn",onClick:w}," ← Back to Requests "),n("span",{class:L(`ss-dash-method ss-dash-method-${(T.value.method||"").toLowerCase()}`)},h(T.value.method),3),n("span",Bh,h(T.value.url),1),n("span",{class:L(`ss-dash-status ss-dash-status-${Math.floor((T.value.statusCode||200)/100)}xx`)},h(T.value.statusCode),3),n("span",Nh,h(T.value.totalDuration.toFixed(1))+"ms · "+h(T.value.spanCount)+" spans ",1)]),ke.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:ee,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:Te,class:"ss-dash-split-top"},[me(gi,{spans:T.value.spans,"total-duration":T.value.totalDuration,warnings:T.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:ge,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:_e,class:"ss-dash-split-bottom"},[me(Dh,{logs:ke.value},null,8,["logs"])],512)],512)):(u(),Xe(gi,{key:1,spans:T.value.spans,"total-duration":T.value.totalDuration,warnings:T.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):$.value?(u(),d(q,{key:1},[n("div",jh,[n("button",{type:"button",class:"ss-dash-btn",onClick:J[0]||(J[0]=j=>$.value=!1)}," ← Back to Requests ")]),J[6]||(J[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(q,{key:2},[me(jt,{"model-value":_.value,placeholder:"Filter requests...",summary:`${x(c).total??0} requests`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),x(r)?(u(),d("div",Hh,"Failed to load requests")):Y("",!0),x(a)&&!x(o)?(u(),d("div",Uh,"Loading requests...")):(u(),d(q,{key:2},[n("div",qh,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:se,class:"ss-dash-table"},[J[15]||(J[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[J[12]||(J[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:J[1]||(J[1]=j=>W("method"))},[J[7]||(J[7]=be(" Method ",-1)),x(g).column==="method"?(u(),d("span",Kh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[2]||(J[2]=j=>W("url"))},[J[8]||(J[8]=be(" URL ",-1)),x(g).column==="url"?(u(),d("span",Vh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[3]||(J[3]=j=>W("statusCode"))},[J[9]||(J[9]=be(" Status ",-1)),x(g).column==="statusCode"?(u(),d("span",zh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:J[4]||(J[4]=j=>W("duration"))},[J[10]||(J[10]=be(" Duration ",-1)),x(g).column==="duration"?(u(),d("span",Wh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),J[13]||(J[13]=n("th",null,"Spans",-1)),J[14]||(J[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:J[5]||(J[5]=j=>W("createdAt"))},[J[11]||(J[11]=be(" Time ",-1)),x(g).column==="createdAt"?(u(),d("span",Jh,h(x(g).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)])])]),n("tbody",null,[(u(!0),d(q,null,ye(F.value,j=>(u(),d("tr",{key:j.id,class:"ss-dash-clickable",onClick:k=>y(j)},[n("td",null,[n("span",Gh,h(j.id),1)]),n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${(j.method||"").toLowerCase()}`)},h(j.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:j.url},h(j.url),9,Yh)]),n("td",null,[n("span",{class:L(`ss-dash-status ss-dash-status-${Math.floor((j.status_code||j.statusCode||200)/100)}xx`)},h(j.status_code||j.statusCode),3)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${te(j.total_duration||j.totalDuration||j.duration||0)}`)},h((j.total_duration||j.totalDuration||j.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",Xh,h(j.span_count||j.spanCount||0),1)]),n("td",null,[(j.warning_count||j.warningCount||0)>0?(u(),d("span",Zh,h(j.warning_count||j.warningCount||0),1)):(u(),d("span",ep,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(j.createdAt||j.created_at||j.timestamp||"")},h(x(bt)(j.createdAt||j.created_at||j.timestamp||"")),9,tp)])],8,Qh))),128))])],512)):(u(),d("div",sp,"No requests recorded yet"))]),x(c).totalPages>1?(u(),Xe(hs,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lp={class:"ss-dash-btn-group"},op={key:0,class:"ss-dash-empty"},ip={key:1,class:"ss-dash-table-wrap"},ap={key:0,class:"ss-dash-sort-arrow"},rp={key:0,class:"ss-dash-sort-arrow"},up={key:0,class:"ss-dash-sort-arrow"},cp=["onClick","onKeydown"],dp={key:0,class:"ss-dash-dup"},fp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},hp={class:"ss-dash-duration"},pp={class:"ss-dash-duration"},vp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},gp={key:1,class:"ss-dash-empty"},yp={class:"ss-dash-table-wrap"},mp={key:0,class:"ss-dash-sort-arrow"},bp={key:0,class:"ss-dash-sort-arrow"},_p={style:{color:"var(--ss-dim)"}},xp=["onClick","onKeydown"],wp={key:0,class:"ss-dash-dup"},$p=["title"],kp={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Sp=["title"],Cp=["disabled","onClick"],Tp={key:0,class:"ss-dash-explain-row"},Ep={colspan:"8",class:"ss-dash-explain"},Pp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Rp={style:{flex:"1"}},Mp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Ap={key:0},Lp={key:1,class:"ss-dash-explain-result"},Fp={key:2,class:"ss-dash-explain-result"},Op={key:3,class:"ss-dash-explain-result"},Dp={key:1,class:"ss-dash-empty"};function yi(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",i=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",a=e["Index Name"]||"",r=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&r.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&r.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&r.push(`width=${e["Plan Width"]}`),e.Filter&&r.push(`filter: ${e.Filter}`),e["Index Cond"]&&r.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&r.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&r.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const g=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];r.push(`sort: ${g}`)}const c=e.Plans||[];return ds("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[ds("div",{class:"ss-dash-explain-node-header"},[ds("span",{class:"ss-dash-explain-node-type"},l),i?[" on ",ds("strong",null,i)]:null,o||null,a?[" using ",ds("em",null,a)]:null]),r.length>0?ds("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...c.map((g,p)=>yi(g,t+1))])}const mi=Oe({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>yi(e.node,e.depth)}}),Ip=Oe({...{components:{ExplainPlanNode:mi}},__name:"QueriesSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),o=K("list"),a=K(null),r=K(null),c=K(null),g=H(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:p,loading:m,pagination:v,sort:_,goToPage:C,setSearch:$,setSort:T,explainQuery:F}=lt(()=>g.value,{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),R=K(""),y=H(()=>p.value?o.value==="grouped"?p.value.groups||[]:p.value.data||p.value||[]:[]),w=H(()=>o.value!=="grouped"?y.value:y.value.map(k=>{const E={...k};return(E.sqlNormalized===null||E.sqlNormalized===void 0&&(k.sql_normalized||k.pattern))&&(E.sqlNormalized=k.sql_normalized||k.pattern||""),(E.count===null||E.count===void 0)&&k.total_count!==null&&k.total_count!==void 0&&(E.count=k.total_count),(E.avgDuration===null||E.avgDuration===void 0)&&k.avg_duration!==null&&k.avg_duration!==void 0&&(E.avgDuration=k.avg_duration),(E.maxDuration===null||E.maxDuration===void 0)&&k.max_duration!==null&&k.max_duration!==void 0&&(E.maxDuration=k.max_duration),(E.minDuration===null||E.minDuration===void 0)&&k.min_duration!==null&&k.min_duration!==void 0&&(E.minDuration=k.min_duration),(E.totalDuration===null||E.totalDuration===void 0)&&k.total_duration!==null&&k.total_duration!==void 0&&(E.totalDuration=k.total_duration),(E.percentOfTotal===null||E.percentOfTotal===void 0)&&k.pct_time!==null&&k.pct_time!==void 0&&(E.percentOfTotal=k.pct_time),E})),S=H(()=>{const k=new Map;for(const E of w.value){const M=E.sqlNormalized||E.sql||E.sql_text||"";k.set(M,(k.get(M)||0)+1)}return k}),W=H(()=>{const k=v.total??w.value.length;let E=0,M=0,X=0,ue=0;for(const le of w.value){const U=le.duration||0;X+=U,ue++,U>ni&&E++}for(const le of S.value.values())le>1&&(M+=le);return{total:k,slow:E,duplicates:M,avgDuration:ue>0?X/ue:0}}),te=H(()=>{if(o.value==="grouped")return`${w.value.length} query patterns`;const k=[`${W.value.total} queries`];return W.value.slow>0&&k.push(`${W.value.slow} slow`),W.value.duplicates>0&&k.push(`${W.value.duplicates} dup`),k.push(`avg ${(W.value.avgDuration||0).toFixed(1)}ms`),k.join(", ")});function se(k){R.value=k,$(k)}function ee(k){k!==o.value&&(o.value=k,a.value=null,r.value=null,c.value=null)}function ge(k){T(k)}async function Te(k){if(r.value&&r.value.queryId===k){r.value=null;return}c.value=k;try{const E=await F(k);E&&E.error?r.value={queryId:k,plan:[],error:E.error,message:E.message}:r.value={queryId:k,plan:E?.plan||E?.rows||[]}}catch(E){r.value={queryId:k,plan:[],error:E instanceof Error?E.message:String(E)}}finally{c.value=null}}function _e(k){return al(k,"ss-dash")}function Pe(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?[]:Object.keys(k[0])}function ke(k,E){if(!k||typeof k!="object")return"-";const M=k[E];return M!=null?String(M):"-"}function we(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?!1:"Plan"in k[0]}function J(){const k=r.value?.plan;return!k||k.length===0||typeof k[0]!="object"||!k[0]?{}:k[0].Plan}const{tableRef:j}=zt(()=>w.value);return(k,E)=>(u(),d("div",null,[me(jt,{"model-value":R.value,placeholder:"Filter queries...",summary:te.value,"onUpdate:modelValue":se},{default:ss(()=>[n("div",lp,[n("button",{type:"button",class:L(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:E[0]||(E[0]=M=>ee("list"))}," List ",2),n("button",{type:"button",class:L(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:E[1]||(E[1]=M=>ee("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),x(m)&&!x(p)?(u(),d("div",op,"Loading queries...")):o.value==="grouped"?(u(),d("div",ip,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[E[11]||(E[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:E[2]||(E[2]=M=>ge("count"))},[E[8]||(E[8]=be(" Count ",-1)),x(_).column==="count"?(u(),d("span",ap,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),n("th",{class:"ss-dash-sortable",onClick:E[3]||(E[3]=M=>ge("avgDuration"))},[E[9]||(E[9]=be(" Avg ",-1)),x(_).column==="avgDuration"?(u(),d("span",rp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[12]||(E[12]=n("th",null,"Min",-1)),E[13]||(E[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:E[4]||(E[4]=M=>ge("totalDuration"))},[E[10]||(E[10]=be(" Total ",-1)),x(_).column==="totalDuration"?(u(),d("span",up,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[14]||(E[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(u(!0),d(q,null,ye(w.value,(M,X)=>(u(),d("tr",{key:X},[n("td",null,[n("span",{class:L(`ss-dash-sql ${a.value===M.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(ue=>a.value=a.value===M.sqlNormalized?null:M.sqlNormalized,["stop"]),onKeydown:Rs(ue=>a.value=a.value===M.sqlNormalized?null:M.sqlNormalized,["enter"])},h(M.sqlNormalized),43,cp),(M.count||0)>=3?(u(),d("span",dp,"DUP")):Y("",!0)]),n("td",null,[n("span",fp,h(M.count||0),1)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.avgDuration||0)}`)},h((M.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",hp,h((M.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.maxDuration||0)}`)},h((M.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",pp,h((M.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",vp,h((M.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",gp,"No queries recorded"))])):(u(),d(q,{key:2},[n("div",yp,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:j,class:"ss-dash-table"},[E[24]||(E[24]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"70px"}}),n("col",{style:{width:"60px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"90px"}}),n("col",{style:{width:"70px"}})],-1)),n("thead",null,[n("tr",null,[E[17]||(E[17]=n("th",null,"#",-1)),E[18]||(E[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:E[5]||(E[5]=M=>ge("duration"))},[E[15]||(E[15]=be(" Duration ",-1)),x(_).column==="duration"?(u(),d("span",mp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[19]||(E[19]=n("th",null,"Method",-1)),E[20]||(E[20]=n("th",null,"Model",-1)),E[21]||(E[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:E[6]||(E[6]=M=>ge("createdAt"))},[E[16]||(E[16]=be(" Time ",-1)),x(_).column==="createdAt"?(u(),d("span",bp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):Y("",!0)]),E[22]||(E[22]=n("th",null,null,-1))])]),n("tbody",null,[(u(!0),d(q,null,ye(w.value,M=>(u(),d(q,{key:M.id},[n("tr",null,[n("td",null,[n("span",_p,h(M.id),1)]),n("td",null,[n("div",null,[n("span",{class:L(`ss-dash-sql ${a.value===M.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:nt(X=>a.value=a.value===M.id?null:M.id,["stop"]),onKeydown:Rs(X=>a.value=a.value===M.id?null:M.id,["enter"])},h(M.sql||M.sql_text||""),43,xp),(S.value.get((M.sqlNormalized||M.sql||M.sql_text)??"")??0)>1?(u(),d("span",wp," ×"+h(S.value.get((M.sqlNormalized||M.sql||M.sql_text)??"")),1)):Y("",!0)])]),n("td",null,[n("span",{class:L(`ss-dash-duration ${_e(M.duration||0)}`)},h((M.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${(M.method||M.sql_method||"").toLowerCase()}`)},h(M.method||M.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:M.model},h(M.model||"-"),9,$p)]),n("td",null,[n("span",kp,h(M.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(M.createdAt||M.created_at||M.timestamp||"")},h(x(bt)(M.createdAt||M.created_at||M.timestamp||"")),9,Sp)]),n("td",null,[(M.method||M.sql_method||"")==="select"?(u(),d("button",{key:0,type:"button",class:L(`ss-dash-explain-btn${r.value?.queryId===M.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:c.value===M.id,onClick:nt(X=>Te(M.id),["stop"])},h(c.value===M.id?"...":"EXPLAIN"),11,Cp)):Y("",!0)])]),r.value&&r.value.queryId===M.id?(u(),d("tr",Tp,[n("td",Ep,[n("div",Pp,[n("div",Rp,[r.value.error?(u(),d("div",Mp,[E[23]||(E[23]=n("strong",null,"Error:",-1)),be(" "+h(r.value.error)+" ",1),r.value.message?(u(),d("br",Ap)):Y("",!0),be(" "+h(r.value.message),1)])):we()?(u(),d("div",Lp,[me(x(mi),{node:J(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(u(),d("div",Fp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(q,null,ye(Pe(),X=>(u(),d("th",{key:X},h(X),1))),128))])]),n("tbody",null,[(u(!0),d(q,null,ye(r.value.plan,(X,ue)=>(u(),d("tr",{key:ue},[(u(!0),d(q,null,ye(Pe(),le=>(u(),d("td",{key:le},h(ke(X,le)),1))),128))]))),128))])])])):(u(),d("div",Op,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:E[7]||(E[7]=X=>r.value=null)}," Close ")])])])):Y("",!0)],64))),128))])],512)):(u(),d("div",Dp,"No queries recorded"))]),x(v).totalPages>1?(u(),Xe(hs,{key:0,page:x(v).page,"last-page":x(v).totalPages,total:x(v).total,onPageChange:x(C)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}}),Bp=Object.freeze(Object.defineProperty({__proto__:null,default:Ip},Symbol.toStringTag,{value:"Module"})),Np={key:0,class:"ss-dash-empty"},jp={class:"ss-dash-table-wrap"},Hp={style:{color:"var(--ss-dim)"}},Up=["title"],qp=["title"],Kp={key:1,class:"ss-dash-empty"},Vp=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EventsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g}=lt(()=>"events",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=K(""),m=H(()=>{if(!o.value)return[];const C=o.value;return C.data||C.events||o.value||[]});function v(C){p.value=C,g(C)}const{tableRef:_}=zt(()=>m.value);return(C,$)=>(u(),d("div",null,[me(jt,{"model-value":p.value,placeholder:"Filter events...",summary:`${x(r).total??0} events`,"onUpdate:modelValue":v},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Np,"Loading events...")):(u(),d(q,{key:1},[n("div",jp,[m.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:_,class:"ss-dash-table"},[$[0]||($[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),$[1]||($[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(m.value,T=>(u(),d("tr",{key:T.id},[n("td",null,[n("span",Hp,h(T.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:T.event_name||T.eventName||T.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(T.event_name||T.eventName||T.event||""),9,Up)]),n("td",null,[me(Ls,{value:T.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(It)(T.createdAt||T.created_at||T.timestamp)},h(x(bt)(T.createdAt||T.created_at||T.timestamp)),9,qp)])]))),128))])],512)):(u(),d("div",Kp,"No events recorded yet"))]),x(r).totalPages>1?(u(),Xe(hs,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),zp={key:0,class:"ss-dash-empty"},Wp={key:1,class:"ss-dash-empty"},Jp={key:2,class:"ss-dash-table-wrap"},Qp=["title"],Gp=["title"],Yp=["title"],Xp=["title"],Zp={key:1,class:"ss-dash-empty"},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RoutesSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,setSearch:c}=lt(()=>"routes",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=K(""),p=H(()=>{if(!o.value)return[];const _=o.value;return Array.isArray(_)?_:Array.isArray(_.routes)?_.routes:Array.isArray(_.data)?_.data:[]});function m(_){g.value=_,c(_)}const{tableRef:v}=zt(()=>p.value);return(_,C)=>(u(),d("div",null,[me(jt,{"model-value":g.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),x(r)?(u(),d("div",zp,"Failed to load routes")):x(a)&&!x(o)?(u(),d("div",Wp,"Loading routes...")):(u(),d("div",Jp,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:v,class:"ss-dash-table"},[C[0]||(C[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),C[1]||(C[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(p.value,($,T)=>(u(),d("tr",{key:$.pattern||T},[n("td",null,[n("span",{class:L(`ss-dash-method ss-dash-method-${($.method||"").toLowerCase()}`)},h($.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.pattern},h($.pattern),9,Qp)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.name||"-"},h($.name||"-"),9,Gp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.handler},h($.handler),9,Yp)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:$.middleware?.length?$.middleware.join(", "):"-"},h($.middleware?.length?$.middleware.join(", "):"-"),9,Xp)])]))),128))])],512)):(u(),d("div",Zp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),tv={class:"ss-dash-log-filters"},sv=["onClick"],nv=["value"],lv={class:"ss-dash-structured-search"},ov=["value"],iv=["value"],av=["value"],rv={key:0,class:"ss-dash-filter-chips"},uv={key:0,class:"ss-dash-filter-chip"},cv={key:1,class:"ss-dash-filter-chip"},dv=["onClick"],fv={key:1,class:"ss-dash-empty"},hv={key:2,class:"ss-dash-empty"},pv={key:3,class:"ss-dash-empty"},vv={key:4,class:"ss-dash-log-entries"},gv=["onClick"],yv=["title"],mv=["title","onClick","onKeydown"],bv={key:1,class:"ss-dash-log-reqid-empty"},_v={key:3,style:{width:"14px"}},xv={class:"ss-dash-log-msg"},wv={key:0,class:"ss-dash-log-detail"},$v=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"LogsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,filter:g,goToPage:p,setSearch:m,setFilter:v,refresh:_}=lt(()=>"logs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=K(""),$=K("all"),T=K(""),F=K(""),R=K(null),y=K([]),w=K("level"),S=K("equals"),W=K(""),te=H(()=>{if(!o.value)return[];const X=o.value;return X.data||X.logs||o.value||[]}),se=H(()=>$.value!=="all"||T.value!==""||y.value.length>0);function ee(X,ue){ue&&(R.value=R.value===X?null:X)}function ge(X){C.value=X,m(X)}function Te(X){$.value=X,X==="all"?v("level",""):v("level",X)}function _e(X){T.value=X,F.value=X,v("request_id",X)}function Pe(){const X=F.value.trim();T.value=X,v("request_id",X)}function ke(){T.value="",F.value="",v("request_id","")}function we(){$.value="all",v("level","")}function J(){const X=g;for(const ue of Object.keys(X))(ue.startsWith("filter_field_")||ue.startsWith("filter_op_")||ue.startsWith("filter_value_"))&&delete X[ue];y.value.forEach((ue,le)=>{X[`filter_field_${le}`]=ue.field,X[`filter_op_${le}`]=ue.operator,X[`filter_value_${le}`]=ue.value}),c.page=1,_()}function j(){const X=W.value.trim();X&&(y.value.push({field:w.value,operator:S.value,value:X}),W.value="",J())}function k(X){y.value.splice(X,1),J()}function E(X){return X.target.value}function M(X){return X.target.value}return(X,ue)=>(u(),d("div",null,[me(jt,{"model-value":C.value,placeholder:"Search logs...",summary:`${x(c).total??0} logs`,"onUpdate:modelValue":ge},{default:ss(()=>[n("div",tv,[(u(!0),d(q,null,ye(x(Nu),le=>(u(),d("button",{key:le,type:"button",class:L(`ss-dash-log-filter ${$.value===le?"ss-dash-active":""}`),onClick:U=>Te(le)},h(le),11,sv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:F.value,onInput:ue[0]||(ue[0]=le=>F.value=E(le)),onKeydown:Rs(Pe,["enter"])},null,40,nv),F.value||T.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:ke}," Clear ")):Y("",!0)])]),_:1},8,["model-value","summary"]),n("div",lv,[n("select",{class:"ss-dash-filter-select",value:w.value,onChange:ue[1]||(ue[1]=le=>w.value=M(le))},[...ue[4]||(ue[4]=[hr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,ov),n("select",{class:"ss-dash-filter-select",value:S.value,onChange:ue[2]||(ue[2]=le=>S.value=M(le))},[...ue[5]||(ue[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,iv),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:W.value,onInput:ue[3]||(ue[3]=le=>W.value=E(le)),onKeydown:Rs(j,["enter"])},null,40,av),n("button",{type:"button",class:"ss-dash-btn",onClick:j},"Add")]),se.value?(u(),d("div",rv,[$.value!=="all"?(u(),d("span",uv,[be(" level: "+h($.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):Y("",!0),T.value?(u(),d("span",cv,[be(" requestId: "+h(T.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ke}," × ")])):Y("",!0),(u(!0),d(q,null,ye(y.value,(le,U)=>(u(),d("span",{key:U,class:"ss-dash-filter-chip"},[be(h(le.field)+" "+h(le.operator)+' "'+h(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:oe=>k(U)}," × ",8,dv)]))),128))])):Y("",!0),x(r)?(u(),d("div",fv,"Failed to load logs")):x(a)&&!x(o)?(u(),d("div",hv,"Loading logs...")):te.value.length===0?(u(),d("div",pv," No log entries"+h(T.value?` matching request ${T.value}`:$.value!=="all"?` for ${$.value}`:""),1)):(u(),d("div",vv,[(u(!0),d(q,null,ye(te.value,(le,U)=>(u(),d(q,{key:String(le.id||U)},[n("div",{class:L(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!x(_t)(le)}]),onClick:oe=>ee(U,!!x(_t)(le))},[n("span",{class:L(`ss-dash-log-level ${x(di)(x(rn)(le),"ss-dash-log-level")}`)},h(x(rn)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:x(Bt)(le)?x(It)(x(Bt)(le)):""},h(x(Bt)(le)?x(bt)(x(Bt)(le)):"-"),9,yv),x(Nt)(le)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:x(Nt)(le),role:"button",tabindex:"0",onClick:nt(oe=>_e(x(Nt)(le)),["stop"]),onKeydown:Rs(nt(oe=>_e(x(Nt)(le)),["stop"]),["enter"])},h(x(Nt)(le).slice(0,8)),41,mv)):(u(),d("span",bv,"--")),x(_t)(le)?(u(),d("span",{key:2,class:L(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":R.value===U}])},"▶",2)):(u(),d("span",_v)),n("span",xv,h(x(ci)(le)),1)],10,gv),R.value===U&&x(_t)(le)?(u(),d("div",wv,[me(Ls,{value:x(_t)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):Y("",!0)],64))),128))])),x(c).totalPages>1?(u(),Xe(hs,{key:5,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),kv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Sv={class:"ss-dash-email-preview-header"},Cv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Tv=["srcdoc"],Ev={key:0,class:"ss-dash-empty"},Pv={class:"ss-dash-table-wrap"},Rv=["onClick"],Mv={style:{color:"var(--ss-dim)"}},Av=["title"],Lv=["title"],Fv=["title"],Ov={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Dv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Iv=["title"],Bv=["title"],Nv={key:1,class:"ss-dash-empty"},jv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EmailsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:p}=lt(()=>"emails",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=K(""),v=K(null),_=K(null),C=H(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function $(y){m.value=y,g(y)}async function T(y){if(y.html){v.value=y.id,_.value=y.html;return}const w=await p(y.id);v.value=y.id,_.value=w}function F(){v.value=null,_.value=null}const{tableRef:R}=zt(()=>C.value);return(y,w)=>(u(),d("div",null,[v.value&&_.value?(u(),d("div",kv,[n("div",Sv,[n("div",Cv,[C.value.find(S=>S.id===v.value)?(u(),d(q,{key:0},[w[4]||(w[4]=n("strong",null,"Subject:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.subject)+" | ",1),w[5]||(w[5]=n("strong",null,"From:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.from_addr||C.value.find(S=>S.id===v.value)?.from)+" | ",1),w[6]||(w[6]=n("strong",null,"To:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.to_addr||C.value.find(S=>S.id===v.value)?.to)+" ",1),C.value.find(S=>S.id===v.value)?.cc||C.value.find(S=>S.id===v.value)?.cc_addr?(u(),d(q,{key:0},[w[0]||(w[0]=be(" | ",-1)),w[1]||(w[1]=n("strong",null,"CC:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.cc||C.value.find(S=>S.id===v.value)?.cc_addr),1)],64)):Y("",!0),w[7]||(w[7]=be(" | ",-1)),w[8]||(w[8]=n("strong",null,"Status:",-1)),n("span",{class:L(`ss-dash-badge ss-dash-email-status-${C.value.find(S=>S.id===v.value)?.status}`)},h(C.value.find(S=>S.id===v.value)?.status),3),C.value.find(S=>S.id===v.value)?.mailer?(u(),d(q,{key:1},[w[2]||(w[2]=be(" | ",-1)),w[3]||(w[3]=n("strong",null,"Mailer:",-1)),be(" "+h(C.value.find(S=>S.id===v.value)?.mailer),1)],64)):Y("",!0)],64)):Y("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:F}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:_.value,title:"Email preview",sandbox:""},null,8,Tv)])):(u(),d(q,{key:1},[me(jt,{"model-value":m.value,placeholder:"Filter emails...",summary:`${x(r).total??0} emails`,"onUpdate:modelValue":$},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Ev,"Loading emails...")):(u(),d(q,{key:1},[n("div",Pv,[C.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:R,class:"ss-dash-table"},[w[9]||(w[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),w[10]||(w[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(C.value,S=>(u(),d("tr",{key:S.id,class:"ss-dash-clickable ss-dash-email-row",onClick:W=>T(S)},[n("td",null,[n("span",Mv,h(S.id),1)]),n("td",null,[n("span",{title:S.from_addr||S.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.from_addr||S.from||""),9,Av)]),n("td",null,[n("span",{title:S.to_addr||S.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.to_addr||S.to||""),9,Lv)]),n("td",null,[n("span",{title:S.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.subject||""),9,Fv)]),n("td",null,[n("span",{class:L(`ss-dash-badge ss-dash-email-status-${S.status||""}`)},h(S.status),3)]),n("td",null,[(S.attachment_count||S.attachmentCount||0)>0?(u(),d("span",Ov,h(S.attachment_count||S.attachmentCount||0),1)):(u(),d("span",Dv,"-"))]),n("td",null,[n("span",{title:S.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.mailer||""),9,Iv)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(It)(S.createdAt||S.created_at||S.timestamp)},h(x(bt)(S.createdAt||S.created_at||S.timestamp)),9,Bv)])],8,Rv))),128))])],512)):(u(),d("div",Nv,"No emails captured yet"))]),x(r).totalPages>1?(u(),Xe(hs,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Hv={key:0,class:"ss-dash-cache-stats"},Uv={class:"ss-dash-cache-stat"},qv={class:"ss-dash-cache-stat-value"},Kv={class:"ss-dash-cache-stat"},Vv={class:"ss-dash-cache-stat-value"},zv={class:"ss-dash-cache-stat"},Wv={class:"ss-dash-cache-stat-value"},Jv={class:"ss-dash-cache-stat"},Qv={class:"ss-dash-cache-stat-value"},Gv={key:1,class:"ss-dash-empty"},Yv={key:2,class:"ss-dash-empty"},Xv={key:3,class:"ss-dash-table-wrap"},Zv=["onClick"],eg=["title"],tg={style:{color:"var(--ss-muted)"}},sg=["onClick"],ng={key:1,class:"ss-dash-empty"},lg={key:4,class:"ss-dash-cache-detail"},og={key:0,class:"ss-dash-empty"},ig={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},ag=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"CacheSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,setSearch:r,mutate:c}=lt(()=>"cache",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=dl(i||"",l),p=new ai(g(),s||"/__stats/api"),m=K(""),v=K(null),_=K(null),C=K(!1),$=K(null),T=H(()=>o.value),F=H(()=>T.value?.keys||T.value?.data||[]);function R(W){m.value=W,r(W)}async function y(W){if(confirm(`Delete cache key "${W}"?`))try{await c(`cache/${encodeURIComponent(W)}`,"delete"),v.value===W&&(v.value=null,_.value=null,$.value=null)}catch{}}const{tableRef:w}=zt(()=>F.value);async function S(W){if(v.value===W){v.value=null,_.value=null,$.value=null;return}v.value=W,_.value=null,$.value=null,C.value=!0;try{const te=await p.fetchCacheKey(W);_.value=te.value!==void 0?te.value:te.data!==void 0?te.data:te,$.value=null}catch{_.value=null,$.value="Failed to fetch key value"}finally{C.value=!1}}return(W,te)=>(u(),d("div",null,[T.value?.available&&T.value?.stats?(u(),d("div",Hv,[n("div",Uv,[te[0]||(te[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",qv,h((T.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",Kv,[te[1]||(te[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",Vv,h(T.value.stats.hits??0),1)]),n("div",zv,[te[2]||(te[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",Wv,h(T.value.stats.misses??0),1)]),n("div",Jv,[te[3]||(te[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",Qv,h(T.value.stats.totalKeys||T.value.stats.keyCount||F.value.length||0),1)])])):Y("",!0),me(jt,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${F.value.length} keys`,"onUpdate:modelValue":R},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Gv,"Loading cache...")):!T.value||!T.value.available?(u(),d("div",Yv," Cache inspector not available ")):(u(),d("div",Xv,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:w,class:"ss-dash-table"},[te[4]||(te[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,se=>(u(),d("tr",{key:se.key,class:"ss-dash-clickable",onClick:ee=>S(se.key)},[n("td",null,[n("span",{title:se.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(se.key),9,eg)]),n("td",null,[n("span",tg,h(se.type),1)]),n("td",null,h(se.size!==null&&se.size!==void 0&&se.size>0?x(wu)(se.size):"-"),1),n("td",null,h(se.ttl>0?x(xu)(se.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:nt(ee=>y(se.key),["stop"])}," Delete ",8,sg)])],8,Zv))),128))])],512)):(u(),d("div",ng,"No cache keys found"))])),v.value?(u(),d("div",lg,[n("h4",null,"Key: "+h(v.value),1),C.value?(u(),d("div",og,"Loading value...")):$.value?(u(),d("div",ig,h($.value),1)):(u(),Xe(Ls,{key:2,value:_.value},null,8,["value"]))])):Y("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),rg={key:0,class:"ss-dash-job-stats"},ug={class:"ss-dash-job-stat"},cg={class:"ss-dash-job-stat-value"},dg={class:"ss-dash-job-stat"},fg={class:"ss-dash-job-stat-value"},hg={class:"ss-dash-job-stat"},pg={class:"ss-dash-job-stat-value"},vg={class:"ss-dash-job-stat"},gg={class:"ss-dash-job-stat-value"},yg={class:"ss-dash-job-stat"},mg={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},bg={class:"ss-dash-btn-group"},_g=["onClick"],xg={key:1,class:"ss-dash-empty"},wg={key:2,class:"ss-dash-empty"},$g={class:"ss-dash-table-wrap"},kg={style:{color:"var(--ss-dim)"}},Sg=["title"],Cg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Tg={class:"ss-dash-duration"},Eg=["title"],Pg=["disabled","onClick"],Rg={key:1,class:"ss-dash-empty"},Mg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"JobsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,goToPage:g,setSearch:p,setFilter:m,refresh:v,mutate:_}=lt(()=>"jobs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),C=K(""),$=K("all"),T=K({}),F=H(()=>qu(o.value)),R=H(()=>Ku(o.value));function y(te){C.value=te,p(te)}function w(te){$.value=te,te==="all"?m("status",""):m("status",te)}const{tableRef:S}=zt(()=>F.value);async function W(te){T.value[te]="pending";try{await _(`jobs/${te}/retry`),T.value[te]="success",setTimeout(()=>{delete T.value[te],v()},1e3)}catch{delete T.value[te]}}return(te,se)=>(u(),d("div",null,[R.value?(u(),d("div",rg,[n("div",ug,[se[0]||(se[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",cg,h(R.value.active??0),1)]),n("div",dg,[se[1]||(se[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",fg,h(R.value.waiting??0),1)]),n("div",hg,[se[2]||(se[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",pg,h(R.value.delayed??0),1)]),n("div",vg,[se[3]||(se[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",gg,h(R.value.completed??0),1)]),n("div",yg,[se[4]||(se[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",mg,h(R.value.failed??0),1)])])):Y("",!0),me(jt,{"model-value":C.value,placeholder:"Filter jobs...",summary:`${x(c).total||F.value.length} jobs`,"onUpdate:modelValue":y},{default:ss(()=>[n("div",bg,[(u(!0),d(q,null,ye(x(Hu),ee=>(u(),d("button",{key:ee,type:"button",class:L(`ss-dash-btn ${$.value===ee?"ss-dash-active":""}`),onClick:ge=>w(ee)},h(ee.charAt(0).toUpperCase()+ee.slice(1)),11,_g))),128))])]),_:1},8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",xg,"Loading jobs...")):x(r)?(u(),d("div",wg,"Jobs/Queue not available")):(u(),d(q,{key:3},[n("div",$g,[F.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:S,class:"ss-dash-table"},[se[5]||(se[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),se[6]||(se[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,ee=>(u(),d("tr",{key:ee.id},[n("td",null,[n("span",kg,h(ee.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:ee.name},h(ee.name),9,Sg)]),n("td",null,[n("span",{class:L(`ss-dash-badge ss-dash-badge-${x(Uu)(ee.status)}`)},h(ee.status),3)]),n("td",null,[me(Ls,{value:ee.payload||ee.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Cg,h(ee.attempts||ee.attemptsMade||0),1)]),n("td",null,[n("span",Tg,h(ee.duration!==null&&ee.duration!==void 0?x(Dt)(ee.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(It)(ee.timestamp||ee.createdAt||ee.processedAt||ee.created_at)},h(x(bt)(ee.timestamp||ee.createdAt||ee.processedAt||ee.created_at)),9,Eg)]),n("td",null,[ee.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:T.value[ee.id]==="pending"||T.value[ee.id]==="success",onClick:nt(ge=>W(ee.id),["stop"])},h(T.value[ee.id]==="pending"?"...":T.value[ee.id]==="success"?"OK":"Retry"),9,Pg)):Y("",!0)])]))),128))])],512)):(u(),d("div",Rg,"No jobs found"))]),x(c).totalPages>1?(u(),Xe(hs,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(g)},null,8,["page","last-page","total","onPageChange"])):Y("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Ag={style:{position:"relative",flex:1}},Lg=["value"],Fg=["title","onClick"],Og=["viewBox","innerHTML"],Dg=["viewBox","innerHTML"],Ig=["onClick"],Bg={key:0},Ng=["title","onClick"],jg=["viewBox","innerHTML"],Hg=["viewBox","innerHTML"],Ug=["onClick"],qg={key:0},Kg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},Vg=["onClick"],zg=["title"],Wg=["title"],Jg=["title","onClick"],Qg=["viewBox","innerHTML"],Gg=["viewBox","innerHTML"],Yg=["onClick"],Xg=["title","onClick"],Zg=["viewBox","innerHTML"],e1=["viewBox","innerHTML"],t1={key:1,style:{color:"var(--ss-dim)"}},s1={key:3,style:{color:"var(--ss-amber-fg)"}},n1={key:4,style:{color:"var(--ss-purple-fg)"}},l1={key:5},o1=["onClick"],re="ss-dash",i1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"ConfigSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),{data:o,loading:a}=lt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),r=K(""),c=K(""),g=K("app"),p=K(new Set),m=K("Copy JSON"),v=K(new Set),_=K(new Map);let C=null;function $(U){r.value=U,C&&clearTimeout(C),C=setTimeout(()=>{c.value=U},200)}function T(U){return U.target.value}const F=H(()=>o.value??null),R=H(()=>{const U=F.value?.env??{},oe=c.value.toLowerCase();return Object.entries(U).filter(([V,ie])=>{if(!oe)return!0;const De=Ie(ie)?ie.display:ie==null?"":String(ie);return V.toLowerCase().includes(oe)||De.toLowerCase().includes(oe)})}),y=H(()=>{const U=F.value?.app??{},oe=c.value.toLowerCase();return cn(U,"").filter(ie=>{const De=Ie(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(oe)||De.toLowerCase().includes(oe)})}),w=H(()=>{const U=F.value?.app??{};return cn(U,"").length}),S=H(()=>{const U=F.value?.app;return!U||typeof U!="object"||Array.isArray(U)||Ie(U)?[]:Object.keys(U)});function W(U){const oe=new Set(p.value);oe.has(U)?oe.delete(U):oe.add(U),p.value=oe}function te(){if(!F.value)return;const U=g.value==="app"?F.value.app:F.value.env;if(!U)return;const oe=uc(U);p.value=new Set(oe)}function se(){p.value=new Set}function ee(){if(!F.value)return;const U=g.value==="app"?F.value.app:F.value.env;navigator.clipboard?.writeText(JSON.stringify(U,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function ge(U){const oe=new Set(v.value);oe.has(U)?oe.delete(U):oe.add(U),v.value=oe}function Te(U,oe){_.value.set(U,oe)}function _e(U,oe,V){V.stopPropagation(),cc(U,_.value.get(oe)??null,re)}function Pe(U){return U!==null&&typeof U=="object"&&!Array.isArray(U)&&!Ie(U)}function ke(U,oe){return cn(U,oe)}function we(U,oe){return U.indexOf(oe+".")===0?U.slice(oe.length+1):U}function J(U){return rc(U)}function j(U){return Ie(U)?U.display:U==null?"null":String(U)}function k(U){const oe=F.value?.app;return!oe||typeof oe!="object"?null:oe[U]??null}function E(U,oe){return Ie(U)?oe?U.value:U.display:""}function M(){r.value="",c.value=""}function X(U){return Ie(U)?U.display:""}const ue=H(()=>Le.eye.elements.join("")),le=H(()=>Le["eye-off"].elements.join(""));return(U,oe)=>(u(),d("div",null,[n("div",{class:L(`${re}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:L(`${re}-config-tab${g.value==="app"?` ${re}-active`:""}`),onClick:oe[0]||(oe[0]=V=>g.value="app")}," App Config ",2),n("button",{type:"button",class:L(`${re}-config-tab${g.value==="env"?` ${re}-active`:""}`),onClick:oe[1]||(oe[1]=V=>g.value="env")}," Env ",2),n("div",Ag,[n("input",{type:"text",class:L(`${re}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:oe[2]||(oe[2]=V=>$(T(V)))},null,42,Lg),r.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:M}," × ")):Y("",!0)]),g.value==="app"&&!c.value?(u(),d(q,{key:0},[n("button",{type:"button",class:L(`${re}-btn`),onClick:te},"Expand All",2),n("button",{type:"button",class:L(`${re}-btn`),onClick:se},"Collapse All",2)],64)):Y("",!0),n("button",{type:"button",class:L(`${re}-btn`),onClick:ee},h(m.value),3)],2),x(a)&&!x(o)?(u(),d("div",{key:0,class:L(`${re}-empty`)},"Loading config...",2)):F.value?g.value==="env"?(u(),d("div",{key:2,class:L(`${re}-config-table-wrap`)},[n("table",{class:L(`${re}-table ${re}-config-env-table`)},[oe[4]||(oe[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(R.value,([V,ie])=>(u(),d("tr",{key:V},[n("td",{class:L(`${re}-env-key`)},[n("span",{class:L(`${re}-config-key`)},h(V),3)],2),n("td",{class:L(`${re}-env-val`)},[x(Ie)(ie)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie,v.value.has(V))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(De=>ge(V),["stop"])},[v.value.has(V)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Og)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Dg))],10,Fg)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`)},h(j(ie)),3))],2),n("td",null,[x(Ie)(ie)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:De=>Te(`env-${V}`,De),onClick:De=>_e(`${V}=${j(ie)}`,`env-${V}`,De)}," ⎘ ",10,Ig))])]))),128)),R.value.length===0?(u(),d("tr",Bg,[...oe[3]||(oe[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):Y("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:L(`${re}-config-table-wrap`)},[n("table",{class:L(`${re}-table`)},[oe[6]||(oe[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(y.value,V=>(u(),d("tr",{key:V.path},[n("td",null,[n("span",{class:L(`${re}-config-key`),style:{whiteSpace:"nowrap"}},h(V.path),3)]),n("td",null,[x(Ie)(V.value)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(V.value,v.value.has(V.path))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>ge(V.path),["stop"])},[v.value.has(V.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,jg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Hg))],10,Ng)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`),style:Ke({wordBreak:"break-all",color:J(V.value).color})},h(J(V.value).text),7))]),n("td",null,[x(Ie)(V.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>Te(`search-${V.path}`,ie),onClick:ie=>_e(`${V.path}: ${x(Ie)(V.value)?X(V.value):J(V.value).text}`,`search-${V.path}`,ie)}," ⎘ ",10,Ug))])]))),128)),y.value.length===0?(u(),d("tr",qg,[...oe[5]||(oe[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):Y("",!0)])],2),n("div",Kg,h(y.value.length)+" of "+h(w.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:L(`${re}-config-table-wrap`)},[n("div",{class:L(`${re}-config-sections`)},[(u(!0),d(q,null,ye(S.value,V=>(u(),d("div",{key:V,class:L(`${re}-config-section`)},[Pe(k(V))?(u(),d(q,{key:0},[n("div",{class:L(`${re}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>W(V)},[n("span",{class:L(`${re}-config-toggle`)},h(p.value.has(V)?"▼":"▶"),3),n("span",{class:L(`${re}-config-key`)},h(V),3),n("span",{class:L(`${re}-config-count`)},h(x(fi)(k(V)))+" entries ",3)],10,Vg),p.value.has(V)?(u(),d("div",{key:0,class:L(`${re}-config-section-body`)},[n("table",{class:L(`${re}-table ${re}-config-inner-table`)},[oe[7]||(oe[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(ke(k(V),V),ie=>(u(),d("tr",{key:ie.path},[n("td",{title:we(ie.path,V)},[n("span",{class:L(`${re}-config-key`)},h(we(ie.path,V)),3)],8,zg),n("td",{title:x(Ie)(ie.value)?X(ie.value):J(ie.value).text},[x(Ie)(ie.value)?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(ie.value,v.value.has(ie.path))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(De=>ge(ie.path),["stop"])},[v.value.has(ie.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Qg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,Gg))],10,Jg)],2)):(u(),d("span",{key:1,class:L(`${re}-config-val`),style:Ke({color:J(ie.value).color})},h(J(ie.value).text),7))],8,Wg),n("td",null,[x(Ie)(ie.value)?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),title:"Copy",ref_for:!0,ref:De=>Te(`inner-${ie.path}`,De),onClick:De=>_e(`${ie.path}: ${J(ie.value).text}`,`inner-${ie.path}`,De)}," ⎘ ",10,Yg))])]))),128))])],2)],2)):Y("",!0)],64)):(u(),d("div",{key:1,class:L(`${re}-config-section-header ${re}-config-leaf`),style:{cursor:"default"}},[n("span",{class:L(`${re}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:L(`${re}-config-key`)},h(V),3),n("span",{class:L(`${re}-config-val`),style:{marginLeft:"8px"}},[x(Ie)(k(V))?(u(),d("span",{key:0,class:L(`${re}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(E(k(V),v.value.has(V))),1),n("button",{type:"button",class:L(`${re}-btn`),title:v.value.has(V)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:nt(ie=>ge(V),["stop"])},[v.value.has(V)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Le)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Zg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Le).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ue.value},null,8,e1))],10,Xg)],2)):k(V)===null||k(V)===void 0?(u(),d("span",t1,"null")):typeof k(V)=="boolean"?(u(),d("span",{key:2,style:Ke({color:k(V)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(k(V))),5)):typeof k(V)=="number"?(u(),d("span",s1,h(String(k(V))),1)):Array.isArray(k(V))?(u(),d("span",n1,h(J(k(V)).text),1)):(u(),d("span",l1,h(String(k(V))),1))],2),x(Ie)(k(V))?Y("",!0):(u(),d("button",{key:0,type:"button",class:L(`${re}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>Te(`leaf-${V}`,ie),onClick:ie=>_e(`${V}: ${J(k(V)).text}`,`leaf-${V}`,ie)}," ⎘ ",10,o1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:L(`${re}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),a1={key:0,class:"ss-dash-empty"},r1={key:1,class:"ss-dash-empty"},u1={key:2,class:"ss-dash-empty"},c1={class:"ss-dash-info-cards"},d1={class:"ss-dash-info-card-label"},f1={class:"ss-dash-info-card-value"},h1={key:0,class:"ss-dash-empty"},p1={key:1,class:"ss-dash-table"},v1={style:{"font-family":"monospace","font-size":"11px"}},g1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},y1={style:{color:"var(--ss-dim)","margin-left":"4px"}},m1={style:{"font-size":"11px"}},b1=["onClick"],_1=["onClick"],x1={key:2,class:"ss-dash-empty"},w1={key:3,class:"ss-dash-table"},$1={class:"ss-dash-bar"},k1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},S1={key:4,class:"ss-dash-empty"},C1={key:5,class:"ss-dash-table"},T1={style:{color:"var(--ss-dim)"}},E1={key:6,class:"ss-dash-empty"},P1={key:7,class:"ss-dash-table"},R1={style:{color:"var(--ss-dim)","font-size":"11px"}},M1={class:"ss-dash-table"},A1={style:{"font-family":"monospace","font-size":"11px"}},L1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},F1={style:{"font-family":"monospace","font-size":"11px"}},O1={class:"ss-dash-table"},D1={class:"ss-dash-table"},I1={style:{"font-family":"monospace","font-size":"11px"}},B1={style:{"font-family":"monospace","font-size":"11px"}},N1={style:{"font-family":"monospace","font-size":"11px"}},j1={style:{"font-size":"11px"}},H1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"InternalsSection",setup(e){const t=de("ss-refresh-key",K(0)),s=de("ss-base-url",""),l=de("ss-debug-endpoint","/admin/api/debug"),i=de("ss-auth-token",void 0),o=K(null),a=K(!0),r=K(null),c=K(new Set),g=dl(s,i);let p=null;async function m(){try{const R=await g().fetch(`${l}/diagnostics`);o.value=R,r.value=null,a.value=!1}catch(R){if(R instanceof ln){r.value=R,a.value=!1,p&&(clearInterval(p),p=null);return}r.value=R instanceof Error?R:new Error(String(R)),a.value=!1}}Ft(()=>{a.value=!0,r.value=null,m(),p=setInterval(m,si)}),St(()=>{p&&clearInterval(p)}),ut(t,()=>{m()});function v(R){c.value.has(R)?c.value.delete(R):c.value.add(R)}function _(R){const y=ac(R);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function C(R){return R.debounceMs!==void 0?`${Dt(R.debounceMs)} (debounce)`:R.intervalMs!==void 0?Dt(R.intervalMs):"-"}const $=H(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([R,y])=>({name:R.charAt(0).toUpperCase()+R.slice(1),...y,percent:lc(y.current,y.max)})):[]),T=H(()=>o.value?.timers?Object.entries(o.value.timers).map(([R,y])=>({key:R,label:Xu(R),...y,interval:C(y)})):[]),F=H(()=>{if(!o.value)return[];const R=[];if(o.value.transmit&&R.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,w]of Object.entries(o.value.integrations))R.push({key:y,label:ec(y),status:tc(w),details:sc(y,w)});return R});return(R,y)=>(u(),d("div",null,[a.value&&!o.value?(u(),d("div",a1,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",r1,"Error: "+h(r.value.message),1)):o.value?(u(),d(q,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",c1,[(u(!0),d(q,null,ye([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:x(bu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],w=>(u(),d("div",{key:w.label,class:"ss-dash-info-card"},[n("span",d1,h(w.label),1),n("span",f1,h(w.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",p1,[y[4]||(y[4]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(o.value.collectors,w=>(u(),d("tr",{key:w.name},[n("td",null,[n("span",v1,h(w.name),1),w.label&&w.label!==w.name?(u(),d("span",g1,h(w.label),1)):Y("",!0)]),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.status)])},null,2),be(" "+h(w.status),1)]),n("td",{style:Ke(w.lastError?{color:"var(--ss-red-fg)"}:{})},[w.lastError?(u(),d(q,{key:0},[be(h(w.lastError)+" ",1),n("span",y1,h(x(bt)(w.lastErrorAt??0)),1)],64)):(u(),d(q,{key:1},[be("-")],64))],4),n("td",m1,[Object.keys(w.config||{}).length?(u(!0),d(q,{key:0},ye(x(nc)(w.config),S=>(u(),d("span",{key:S.key,style:{"margin-right":"8px"}},[be(h(S.key)+"=",1),S.secret&&!c.value.has(`collector-${w.name}-${S.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:W=>v(`collector-${w.name}-${S.key}`)},"••••••••",8,b1)):(u(),d(q,{key:1},[n("span",null,h(S.value),1),S.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:W=>v(`collector-${w.name}-${S.key}`)}," Hide ",8,_1)):Y("",!0)],64))]))),128)):(u(),d(q,{key:1},[be("-")],64))])]))),128))])])):(u(),d("div",h1,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),$.value.length?(u(),d("table",w1,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye($.value,w=>(u(),d("tr",{key:w.name},[n("td",null,h(w.name),1),n("td",null,h(w.current.toLocaleString())+" / "+h(w.max.toLocaleString()),1),n("td",null,[n("div",$1,[n("div",k1,[n("div",{class:L(["ss-dash-bar-fill",w.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:w.percent+"%"})},null,6)]),n("span",{class:L(["ss-dash-bar-pct",w.percent>=100?"ss-dash-bar-pct-warn":""])},h(w.percent)+"%",3)])])]))),128))])])):(u(),d("div",x1,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),T.value.length?(u(),d("table",C1,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(T.value,w=>(u(),d("tr",{key:w.key},[n("td",null,h(w.label),1),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.active?"active":"inactive")])},null,2),be(" "+h(w.active?"active":"inactive"),1)]),n("td",T1,h(w.interval),1)]))),128))])])):(u(),d("div",S1,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),F.value.length?(u(),d("table",P1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(F.value,w=>(u(),d("tr",{key:w.key},[n("td",null,h(w.label),1),n("td",null,[n("span",{class:L(["ss-dash-dot",_(w.status)])},null,2),be(" "+h(w.status),1)]),n("td",R1,h(w.details),1)]))),128))])])):(u(),d("div",E1,"No integration data")),o.value.storage?(u(),d(q,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",M1,[y[14]||(y[14]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[8]||(y[8]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:L(["ss-dash-dot",_(o.value.storage.ready?"ready":"unavailable")])},null,2),be(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",A1,h(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,h(x(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",L1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(q,null,ye(o.value.storage.tables,w=>(u(),d("tr",{key:w.name},[n("td",F1,h(w.name),1),n("td",null,h(w.rowCount.toLocaleString()),1)]))),128))])])):Y("",!0)],64)):Y("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",O1,[y[24]||(y[24]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[17]||(y[17]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",D1,[y[40]||(y[40]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[25]||(y[25]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",I1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",B1,[c.value.has("cfg-debugEndpoint")?(u(),d(q,{key:1},[be(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=w=>v("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=w=>v("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",N1,[c.value.has("cfg-dbPath")?(u(),d(q,{key:1},[be(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=w=>v("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=w=>v("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",j1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",u1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|