adonisjs-server-stats 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/core/log-utils.d.ts +14 -0
  2. package/dist/react/{CacheSection-D5J5moz7.js → CacheSection-xH75hwXu.js} +1 -1
  3. package/dist/react/{CacheTab-F1MkWSZl.js → CacheTab-DYmsZJJ1.js} +1 -1
  4. package/dist/react/{ConfigSection-DerLBu4o.js → ConfigSection-D8BO1Ry9.js} +1 -1
  5. package/dist/react/{ConfigTab-Bsj7v9JW.js → ConfigTab-CcN-tfjv.js} +1 -1
  6. package/dist/react/{CustomPaneTab-gzdtDEvz.js → CustomPaneTab-D7_o3Ec6.js} +1 -1
  7. package/dist/react/{EmailsSection-ndH3cvJk.js → EmailsSection-BzlsTdPs.js} +1 -1
  8. package/dist/react/{EmailsTab-DVPHRx0L.js → EmailsTab-Uh2CQY3o.js} +1 -1
  9. package/dist/react/{EventsSection-ClIByDSk.js → EventsSection-CGQWiIdV.js} +1 -1
  10. package/dist/react/{EventsTab-CCzWEKrk.js → EventsTab-CC6DQzEm.js} +1 -1
  11. package/dist/react/{JobsSection-CVMyAs7O.js → JobsSection-D7AHQmZi.js} +1 -1
  12. package/dist/react/{JobsTab-CATUyb9V.js → JobsTab-B3Lfdqed.js} +1 -1
  13. package/dist/react/LogsSection-Cly1dpvS.js +227 -0
  14. package/dist/react/LogsTab-BbYK-iyh.js +103 -0
  15. package/dist/react/{OverviewSection-ae5AO2RG.js → OverviewSection-CkBGFEWq.js} +1 -1
  16. package/dist/react/{QueriesSection-DFFr9Tbb.js → QueriesSection-CfCpnNUD.js} +1 -1
  17. package/dist/react/{QueriesTab-GrHRAREt.js → QueriesTab-DbBmAqzO.js} +1 -1
  18. package/dist/react/{RequestsSection-DtwnJOnM.js → RequestsSection-Cb5a6MlT.js} +1 -1
  19. package/dist/react/{RoutesSection-F7nANhF0.js → RoutesSection-CRqF-cNM.js} +1 -1
  20. package/dist/react/{RoutesTab-rugjhCPH.js → RoutesTab-Bwreij3e.js} +1 -1
  21. package/dist/react/{TimelineSection-F5ThmTdy.js → TimelineSection-B2y06kRE.js} +1 -1
  22. package/dist/react/{TimelineTab-Dvpf-I5C.js → TimelineTab-6hthfdBB.js} +1 -1
  23. package/dist/react/{index-DDzo1bZk.js → index-CecA4IdQ.js} +394 -393
  24. package/dist/react/index.js +1 -1
  25. package/dist/react/react/components/shared/JsonViewer.d.ts +2 -1
  26. package/dist/react/style.css +1 -1
  27. package/dist/src/edge/client/dashboard.js +2 -2
  28. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  29. package/dist/src/edge/client-vue/dashboard.js +4 -4
  30. package/dist/src/edge/client-vue/debug-panel-deferred.js +3 -3
  31. package/dist/src/styles/components.css +81 -0
  32. package/dist/vue/{CacheSection-DDvJ7bs2.js → CacheSection-Cx-hj09X.js} +2 -2
  33. package/dist/vue/{ConfigSection-GTCrvsPr.js → ConfigSection-CMXyryf6.js} +1 -1
  34. package/dist/vue/{EmailsSection-Ct5vsLCc.js → EmailsSection-DgKl9xGT.js} +1 -1
  35. package/dist/vue/{EventsSection-CRVhtagq.js → EventsSection-BNMCAim1.js} +2 -2
  36. package/dist/vue/{EventsTab-DQ4Nd6AK.js → EventsTab-BBM7olXF.js} +1 -1
  37. package/dist/vue/{JobsSection-B_wH2Co7.js → JobsSection-CCMgMlxd.js} +2 -2
  38. package/dist/vue/{JobsTab-BCvhOARO.js → JobsTab-WFnxPdN7.js} +1 -1
  39. package/dist/vue/{JsonViewer.vue_vue_type_script_setup_true_lang-Vsqar1zx.js → JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js} +25 -23
  40. package/dist/vue/LogsSection-CvOnTxUu.js +252 -0
  41. package/dist/vue/LogsTab-Bg3o0Mm6.js +147 -0
  42. package/dist/vue/{OverviewSection-BqSwuMKH.js → OverviewSection-CHgaKtUR.js} +1 -1
  43. package/dist/vue/{QueriesSection-D4Fs0YH6.js → QueriesSection-BnHRD98z.js} +1 -1
  44. package/dist/vue/{RequestsSection-B0A5SKcM.js → RequestsSection-B-uSlM0f.js} +1 -1
  45. package/dist/vue/{RoutesSection-Ys5dTzvF.js → RoutesSection-BrceOcKQ.js} +1 -1
  46. package/dist/vue/{TimelineSection-D38iHB08.js → TimelineSection-CfvnA2Oo.js} +1 -1
  47. package/dist/vue/components/shared/JsonViewer.vue.d.ts +3 -0
  48. package/dist/vue/{index-Bj6pm5g3.js → index-oLxS08vN.js} +2 -2
  49. package/dist/vue/index.js +1 -1
  50. package/dist/vue/style.css +1 -1
  51. package/package.json +1 -1
  52. package/dist/react/LogsSection-hAsLaKOC.js +0 -212
  53. package/dist/react/LogsTab-QouH4NPQ.js +0 -88
  54. package/dist/vue/LogsSection-C4NRFOpA.js +0 -227
  55. package/dist/vue/LogsTab-DpEQ7euu.js +0 -122
@@ -1,5 +1,5 @@
1
- (function(){"use strict";function dn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ee={},Vt=[],dt=()=>{},rl=()=>!1,As=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,hn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},pa=Object.prototype.hasOwnProperty,ke=(e,t)=>pa.call(e,t),pe=Array.isArray,zt=e=>fs(e)==="[object Map]",ul=e=>fs(e)==="[object Set]",cl=e=>fs(e)==="[object Date]",ve=e=>typeof e=="function",Oe=e=>typeof e=="string",at=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",dl=e=>(Se(e)||ve(e))&&ve(e.then)&&ve(e.catch),fl=Object.prototype.toString,fs=e=>fl.call(e),va=e=>fs(e).slice(8,-1),hl=e=>fs(e)==="[object Object]",pn=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=dn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ms=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ga=/-\w/g,st=Ms(e=>e.replace(ga,t=>t.slice(1).toUpperCase())),ya=/\B([A-Z])/g,Et=Ms(e=>e.replace(ya,"-$1").toLowerCase()),Rs=Ms(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=Ms(e=>e?`on${Rs(e)}`:""),Pt=(e,t)=>!Object.is(e,t),gn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},pl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},ma=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ba=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let vl;const Ls=()=>vl||(vl=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],a=Oe(l)?$a(l):Ke(l);if(a)for(const o in a)t[o]=a[o]}return t}else if(Oe(e)||Se(e))return e}const _a=/;(?![^(]*\))/g,xa=/:([^]+)/,wa=/\/\*[^]*?\*\//g;function $a(e){const t={};return e.replace(wa,"").split(_a).forEach(s=>{if(s){const l=s.split(xa);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function F(e){let t="";if(Oe(e))t=e;else if(pe(e))for(let s=0;s<e.length;s++){const l=F(e[s]);l&&(t+=l+" ")}else if(Se(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const ka=dn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function gl(e){return!!e||e===""}function Sa(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=yn(e[l],t[l]);return s}function yn(e,t){if(e===t)return!0;let s=cl(e),l=cl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=at(e),l=at(t),s||l)return e===t;if(s=pe(e),l=pe(t),s||l)return s&&l?Sa(e,t):!1;if(s=Se(e),l=Se(t),s||l){if(!s||!l)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const r=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(r&&!c||!r&&c||!yn(e[i],t[i]))return!1}}return String(e)===String(t)}const yl=e=>!!(e&&e.__v_isRef===!0),f=e=>Oe(e)?e:e==null?"":pe(e)||Se(e)&&(e.toString===fl||!ve(e.toString))?yl(e)?f(e.value):JSON.stringify(e,ml,2):String(e),ml=(e,t)=>yl(t)?ml(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,a],o)=>(s[mn(l,o)+" =>"]=a,s),{})}:ul(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>mn(s))}:at(t)?mn(t):Se(t)&&!pe(t)&&!hl(t)?String(t):t,mn=(e,t="")=>{var s;return at(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Ca{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 a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Ta(){return Qe}let Pe;const bn=new WeakSet;class bl{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,bn.has(this)&&(bn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||xl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Cl(this),wl(this);const t=Pe,s=it;Pe=this,it=!0;try{return this.fn()}finally{$l(this),Pe=t,it=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)$n(t);this.deps=this.depsTail=void 0,Cl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?bn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){wn(this)&&this.run()}get dirty(){return wn(this)}}let _l=0,ps,vs;function xl(e,t=!1){if(e.flags|=8,t){e.next=vs,vs=e;return}e.next=ps,ps=e}function _n(){_l++}function xn(){if(--_l>0)return;if(vs){let t=vs;for(vs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ps;){let t=ps;for(ps=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 wl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $l(e){let t,s=e.depsTail,l=s;for(;l;){const a=l.prevDep;l.version===-1?(l===s&&(s=a),$n(l),Ea(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=a}e.deps=t,e.depsTail=s}function wn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(kl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function kl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gs)||(e.globalVersion=gs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!wn(e))))return;e.flags|=2;const t=e.dep,s=Pe,l=it;Pe=e,it=!0;try{wl(e);const a=e.fn(e._value);(t.version===0||Pt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Pe=s,it=l,$l(e),e.flags&=-3}}function $n(e,t=!1){const{dep:s,prevSub:l,nextSub:a}=e;if(l&&(l.nextSub=a,e.prevSub=void 0),a&&(a.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)$n(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ea(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let it=!0;const Sl=[];function ft(){Sl.push(it),it=!1}function ht(){const e=Sl.pop();it=e===void 0?!0:e}function Cl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Pe;Pe=void 0;try{t()}finally{Pe=s}}}let gs=0;class Pa{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 kn{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(!Pe||!it||Pe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Pe)s=this.activeLink=new Pa(Pe,this),Pe.deps?(s.prevDep=Pe.depsTail,Pe.depsTail.nextDep=s,Pe.depsTail=s):Pe.deps=Pe.depsTail=s,Tl(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=Pe.depsTail,s.nextDep=void 0,Pe.depsTail.nextDep=s,Pe.depsTail=s,Pe.deps===s&&(Pe.deps=l)}return s}trigger(t){this.version++,gs++,this.notify(t)}notify(t){_n();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{xn()}}}function Tl(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)Tl(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Sn=new WeakMap,Nt=Symbol(""),Cn=Symbol(""),ys=Symbol("");function Ue(e,t,s){if(it&&Pe){let l=Sn.get(e);l||Sn.set(e,l=new Map);let a=l.get(s);a||(l.set(s,a=new kn),a.map=l,a.key=s),a.track()}}function _t(e,t,s,l,a,o){const i=Sn.get(e);if(!i){gs++;return}const r=c=>{c&&c.trigger()};if(_n(),t==="clear")i.forEach(r);else{const c=pe(e),g=c&&pn(s);if(c&&s==="length"){const v=Number(l);i.forEach((m,p)=>{(p==="length"||p===ys||!at(p)&&p>=v)&&r(m)})}else switch((s!==void 0||i.has(void 0))&&r(i.get(s)),g&&r(i.get(ys)),t){case"add":c?g&&r(i.get("length")):(r(i.get(Nt)),zt(e)&&r(i.get(Cn)));break;case"delete":c||(r(i.get(Nt)),zt(e)&&r(i.get(Cn)));break;case"set":zt(e)&&r(i.get(Nt));break}}xn()}function Wt(e){const t=we(e);return t===e?t:(Ue(t,"iterate",ys),nt(e)?t:t.map(rt))}function Os(e){return Ue(e=we(e),"iterate",ys),e}function At(e,t){return wt(e)?Qt(jt(e)?rt(t):t):rt(t)}const Aa={__proto__:null,[Symbol.iterator](){return Tn(this,Symbol.iterator,e=>At(this,e))},concat(...e){return Wt(this).concat(...e.map(t=>pe(t)?Wt(t):t))},entries(){return Tn(this,"entries",e=>(e[1]=At(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,s=>s.map(l=>At(this,l)),arguments)},find(e,t){return xt(this,"find",e,t,s=>At(this,s),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,s=>At(this,s),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return En(this,"includes",e)},indexOf(...e){return En(this,"indexOf",e)},join(e){return Wt(this).join(e)},lastIndexOf(...e){return En(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return ms(this,"pop")},push(...e){return ms(this,"push",e)},reduce(e,...t){return El(this,"reduce",e,t)},reduceRight(e,...t){return El(this,"reduceRight",e,t)},shift(){return ms(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return ms(this,"splice",e)},toReversed(){return Wt(this).toReversed()},toSorted(e){return Wt(this).toSorted(e)},toSpliced(...e){return Wt(this).toSpliced(...e)},unshift(...e){return ms(this,"unshift",e)},values(){return Tn(this,"values",e=>At(this,e))}};function Tn(e,t,s){const l=Os(e),a=l[t]();return l!==e&&!nt(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=s(o.value)),o}),a}const Ma=Array.prototype;function xt(e,t,s,l,a,o){const i=Os(e),r=i!==e&&!nt(e),c=i[t];if(c!==Ma[t]){const m=c.apply(e,o);return r?rt(m):m}let g=s;i!==e&&(r?g=function(m,p){return s.call(this,At(e,m),p,e)}:s.length>2&&(g=function(m,p){return s.call(this,m,p,e)}));const v=c.call(i,g,l);return r&&a?a(v):v}function El(e,t,s,l){const a=Os(e);let o=s;return a!==e&&(nt(e)?s.length>3&&(o=function(i,r,c){return s.call(this,i,r,c,e)}):o=function(i,r,c){return s.call(this,i,At(e,r),c,e)}),a[t](o,...l)}function En(e,t,s){const l=we(e);Ue(l,"iterate",ys);const a=l[t](...s);return(a===-1||a===!1)&&Mn(s[0])?(s[0]=we(s[0]),l[t](...s)):a}function ms(e,t,s=[]){ft(),_n();const l=we(e)[t].apply(e,s);return xn(),ht(),l}const Ra=dn("__proto__,__v_isRef,__isVue"),Pl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(at));function La(e){at(e)||(e=String(e));const t=we(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Al{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!a;if(s==="__v_isReadonly")return a;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(a?o?Dl:Fl:o?Ol:Ll).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const i=pe(t);if(!a){let c;if(i&&(c=Aa[s]))return c;if(s==="hasOwnProperty")return La}const r=Reflect.get(t,s,je(t)?t:l);if((at(s)?Pl.has(s):Ra(s))||(a||Ue(t,"get",s),o))return r;if(je(r)){const c=i&&pn(s)?r:r.value;return a&&Se(c)?An(c):c}return Se(r)?a?An(r):Jt(r):r}}class Ml extends Al{constructor(t=!1){super(!1,t)}set(t,s,l,a){let o=t[s];const i=pe(t)&&pn(s);if(!this._isShallow){const g=wt(o);if(!nt(l)&&!wt(l)&&(o=we(o),l=we(l)),!i&&je(o)&&!je(l))return g||(o.value=l),!0}const r=i?Number(s)<t.length:ke(t,s),c=Reflect.set(t,s,l,je(t)?t:a);return t===we(a)&&(r?Pt(l,o)&&_t(t,"set",s,l):_t(t,"add",s,l)),c}deleteProperty(t,s){const l=ke(t,s);t[s];const a=Reflect.deleteProperty(t,s);return a&&l&&_t(t,"delete",s,void 0),a}has(t,s){const l=Reflect.has(t,s);return(!at(s)||!Pl.has(s))&&Ue(t,"has",s),l}ownKeys(t){return Ue(t,"iterate",pe(t)?"length":Nt),Reflect.ownKeys(t)}}class Rl extends Al{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Oa=new Ml,Fa=new Rl,Da=new Ml(!0),Ia=new Rl(!0),Pn=e=>e,Fs=e=>Reflect.getPrototypeOf(e);function Ba(e,t,s){return function(...l){const a=this.__v_raw,o=we(a),i=zt(o),r=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,g=a[e](...l),v=s?Pn:t?Qt:rt;return!t&&Ue(o,"iterate",c?Cn:Nt),Ne(Object.create(g),{next(){const{value:m,done:p}=g.next();return p?{value:m,done:p}:{value:r?[v(m[0]),v(m[1])]:v(m),done:p}}})}}function Ds(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Na(e,t){const s={get(a){const o=this.__v_raw,i=we(o),r=we(a);e||(Pt(a,r)&&Ue(i,"get",a),Ue(i,"get",r));const{has:c}=Fs(i),g=t?Pn:e?Qt:rt;if(c.call(i,a))return g(o.get(a));if(c.call(i,r))return g(o.get(r));o!==i&&o.get(a)},get size(){const a=this.__v_raw;return!e&&Ue(we(a),"iterate",Nt),a.size},has(a){const o=this.__v_raw,i=we(o),r=we(a);return e||(Pt(a,r)&&Ue(i,"has",a),Ue(i,"has",r)),a===r?o.has(a):o.has(a)||o.has(r)},forEach(a,o){const i=this,r=i.__v_raw,c=we(r),g=t?Pn:e?Qt:rt;return!e&&Ue(c,"iterate",Nt),r.forEach((v,m)=>a.call(o,g(v),g(m),i))}};return Ne(s,e?{add:Ds("add"),set:Ds("set"),delete:Ds("delete"),clear:Ds("clear")}:{add(a){!t&&!nt(a)&&!wt(a)&&(a=we(a));const o=we(this);return Fs(o).has.call(o,a)||(o.add(a),_t(o,"add",a,a)),this},set(a,o){!t&&!nt(o)&&!wt(o)&&(o=we(o));const i=we(this),{has:r,get:c}=Fs(i);let g=r.call(i,a);g||(a=we(a),g=r.call(i,a));const v=c.call(i,a);return i.set(a,o),g?Pt(o,v)&&_t(i,"set",a,o):_t(i,"add",a,o),this},delete(a){const o=we(this),{has:i,get:r}=Fs(o);let c=i.call(o,a);c||(a=we(a),c=i.call(o,a)),r&&r.call(o,a);const g=o.delete(a);return c&&_t(o,"delete",a,void 0),g},clear(){const a=we(this),o=a.size!==0,i=a.clear();return o&&_t(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{s[a]=Ba(a,e,t)}),s}function Is(e,t){const s=Na(e,t);return(l,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?l:Reflect.get(ke(s,a)&&a in l?s:l,a,o)}const ja={get:Is(!1,!1)},Ha={get:Is(!1,!0)},Ua={get:Is(!0,!1)},qa={get:Is(!0,!0)},Ll=new WeakMap,Ol=new WeakMap,Fl=new WeakMap,Dl=new WeakMap;function Ka(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Va(e){return e.__v_skip||!Object.isExtensible(e)?0:Ka(va(e))}function Jt(e){return wt(e)?e:Bs(e,!1,Oa,ja,Ll)}function za(e){return Bs(e,!1,Da,Ha,Ol)}function An(e){return Bs(e,!0,Fa,Ua,Fl)}function v1(e){return Bs(e,!0,Ia,qa,Dl)}function Bs(e,t,s,l,a){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Va(e);if(o===0)return e;const i=a.get(e);if(i)return i;const r=new Proxy(e,o===2?l:s);return a.set(e,r),r}function jt(e){return wt(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function nt(e){return!!(e&&e.__v_isShallow)}function Mn(e){return e?!!e.__v_raw:!1}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function Wa(e){return!ke(e,"__v_skip")&&Object.isExtensible(e)&&pl(e,"__v_skip",!0),e}const rt=e=>Se(e)?Jt(e):e,Qt=e=>Se(e)?An(e):e;function je(e){return e?e.__v_isRef===!0:!1}function J(e){return Ja(e,!1)}function Ja(e,t){return je(e)?e:new Qa(e,t)}class Qa{constructor(t,s){this.dep=new kn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:we(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||nt(t)||wt(t);t=l?t:we(t),Pt(t,s)&&(this._rawValue=t,this._value=l?t:rt(t),this.dep.trigger())}}function k(e){return je(e)?e.value:e}const Ga={get:(e,t,s)=>t==="__v_raw"?e:k(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const a=e[t];return je(a)&&!je(s)?(a.value=s,!0):Reflect.set(e,t,s,l)}};function Il(e){return jt(e)?e:new Proxy(e,Ga)}class Ya{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new kn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return xl(this,!0),!0}get value(){const t=this.dep.track();return kl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Xa(e,t,s=!1){let l,a;return ve(e)?l=e:(l=e.get,a=e.set),new Ya(l,a,s)}const Ns={},js=new WeakMap;let Ht;function Za(e,t=!1,s=Ht){if(s){let l=js.get(s);l||js.set(s,l=[]),l.push(e)}}function ei(e,t,s=Ee){const{immediate:l,deep:a,once:o,scheduler:i,augmentJob:r,call:c}=s,g=$=>a?$:nt($)||a===!1||a===0?Mt($,1):Mt($);let v,m,p,x,w=!1,_=!1;if(je(e)?(m=()=>e.value,w=nt(e)):jt(e)?(m=()=>g(e),w=!0):pe(e)?(_=!0,w=e.some($=>jt($)||nt($)),m=()=>e.map($=>{if(je($))return $.value;if(jt($))return g($);if(ve($))return c?c($,2):$()})):ve(e)?t?m=c?()=>c(e,2):e:m=()=>{if(p){ft();try{p()}finally{ht()}}const $=Ht;Ht=v;try{return c?c(e,3,[x]):e(x)}finally{Ht=$}}:m=dt,t&&a){const $=m,T=a===!0?1/0:a;m=()=>Mt($(),T)}const P=Ta(),R=()=>{v.stop(),P&&P.active&&hn(P.effects,v)};if(o&&t){const $=t;t=(...T)=>{$(...T),R()}}let M=_?new Array(e.length).fill(Ns):Ns;const y=$=>{if(!(!(v.flags&1)||!v.dirty&&!$))if(t){const T=v.run();if(a||w||(_?T.some((Q,V)=>Pt(Q,M[V])):Pt(T,M))){p&&p();const Q=Ht;Ht=v;try{const V=[T,M===Ns?void 0:_&&M[0]===Ns?[]:M,x];M=T,c?c(t,3,V):t(...V)}finally{Ht=Q}}}else v.run()};return r&&r(y),v=new bl(m),v.scheduler=i?()=>i(y,!1):y,x=$=>Za($,!1,v),p=v.onStop=()=>{const $=js.get(v);if($){if(c)c($,4);else for(const T of $)T();js.delete(v)}},t?l?y(!0):M=v.run():i?i(y.bind(null,!0),!0):v.run(),R.pause=v.pause.bind(v),R.resume=v.resume.bind(v),R.stop=R,R}function Mt(e,t=1/0,s){if(t<=0||!Se(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Mt(e.value,t,s);else if(pe(e))for(let l=0;l<e.length;l++)Mt(e[l],t,s);else if(ul(e)||zt(e))e.forEach(l=>{Mt(l,t,s)});else if(hl(e)){for(const l in e)Mt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Mt(e[l],t,s)}return e}const bs=[];let Rn=!1;function g1(e,...t){if(Rn)return;Rn=!0,ft();const s=bs.length?bs[bs.length-1].component:null,l=s&&s.appContext.config.warnHandler,a=ti();if(l)Gt(l,s,11,[e+t.map(o=>{var i,r;return(r=(i=o.toString)==null?void 0:i.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,a.map(({vnode:o})=>`at <${Io(s,o.type)}>`).join(`
1
+ (function(){"use strict";function hn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Ee={},Vt=[],ft=()=>{},ul=()=>!1,Ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pn=e=>e.startsWith("onUpdate:"),Ne=Object.assign,vn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},ga=Object.prototype.hasOwnProperty,Se=(e,t)=>ga.call(e,t),ge=Array.isArray,zt=e=>fs(e)==="[object Map]",cl=e=>fs(e)==="[object Set]",dl=e=>fs(e)==="[object Date]",ye=e=>typeof e=="function",Oe=e=>typeof e=="string",it=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",fl=e=>(Ce(e)||ye(e))&&ye(e.then)&&ye(e.catch),hl=Object.prototype.toString,fs=e=>hl.call(e),ya=e=>fs(e).slice(8,-1),pl=e=>fs(e)==="[object Object]",gn=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hs=hn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ma=/-\w/g,st=Rs(e=>e.replace(ma,t=>t.slice(1).toUpperCase())),ba=/\B([A-Z])/g,Et=Rs(e=>e.replace(ba,"-$1").toLowerCase()),Ls=Rs(e=>e.charAt(0).toUpperCase()+e.slice(1)),yn=Rs(e=>e?`on${Ls(e)}`:""),Pt=(e,t)=>!Object.is(e,t),mn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},vl=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},_a=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xa=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let gl;const Os=()=>gl||(gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ke(e){if(ge(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],a=Oe(l)?Sa(l):Ke(l);if(a)for(const o in a)t[o]=a[o]}return t}else if(Oe(e)||Ce(e))return e}const wa=/;(?![^(]*\))/g,$a=/:([^]+)/,ka=/\/\*[^]*?\*\//g;function Sa(e){const t={};return e.replace(ka,"").split(wa).forEach(s=>{if(s){const l=s.split($a);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function D(e){let t="";if(Oe(e))t=e;else if(ge(e))for(let s=0;s<e.length;s++){const l=D(e[s]);l&&(t+=l+" ")}else if(Ce(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ca=hn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function yl(e){return!!e||e===""}function Ta(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=bn(e[l],t[l]);return s}function bn(e,t){if(e===t)return!0;let s=dl(e),l=dl(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=ge(e),l=ge(t),s||l)return s&&l?Ta(e,t):!1;if(s=Ce(e),l=Ce(t),s||l){if(!s||!l)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const i in e){const r=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(r&&!c||!r&&c||!bn(e[i],t[i]))return!1}}return String(e)===String(t)}const ml=e=>!!(e&&e.__v_isRef===!0),f=e=>Oe(e)?e:e==null?"":ge(e)||Ce(e)&&(e.toString===hl||!ye(e.toString))?ml(e)?f(e.value):JSON.stringify(e,bl,2):String(e),bl=(e,t)=>ml(t)?bl(e,t.value):zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,a],o)=>(s[_n(l,o)+" =>"]=a,s),{})}:cl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>_n(s))}:it(t)?_n(t):Ce(t)&&!ge(t)&&!pl(t)?String(t):t,_n=(e,t="")=>{var s;return it(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Qe;class Ea{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 a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Pa(){return Qe}let Pe;const xn=new WeakSet;class _l{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,xn.has(this)&&(xn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Tl(this),$l(this);const t=Pe,s=rt;Pe=this,rt=!0;try{return this.fn()}finally{kl(this),Pe=t,rt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Sn(t);this.deps=this.depsTail=void 0,Tl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){kn(this)&&this.run()}get dirty(){return kn(this)}}let xl=0,ps,vs;function wl(e,t=!1){if(e.flags|=8,t){e.next=vs,vs=e;return}e.next=ps,ps=e}function wn(){xl++}function $n(){if(--xl>0)return;if(vs){let t=vs;for(vs=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ps;){let t=ps;for(ps=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 $l(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kl(e){let t,s=e.depsTail,l=s;for(;l;){const a=l.prevDep;l.version===-1?(l===s&&(s=a),Sn(l),Aa(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=a}e.deps=t,e.depsTail=s}function kn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Sl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Sl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gs)||(e.globalVersion=gs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!kn(e))))return;e.flags|=2;const t=e.dep,s=Pe,l=rt;Pe=e,rt=!0;try{$l(e);const a=e.fn(e._value);(t.version===0||Pt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Pe=s,rt=l,kl(e),e.flags&=-3}}function Sn(e,t=!1){const{dep:s,prevSub:l,nextSub:a}=e;if(l&&(l.nextSub=a,e.prevSub=void 0),a&&(a.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)Sn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Aa(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let rt=!0;const Cl=[];function ht(){Cl.push(rt),rt=!1}function pt(){const e=Cl.pop();rt=e===void 0?!0:e}function Tl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Pe;Pe=void 0;try{t()}finally{Pe=s}}}let gs=0;class Ma{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 Cn{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(!Pe||!rt||Pe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Pe)s=this.activeLink=new Ma(Pe,this),Pe.deps?(s.prevDep=Pe.depsTail,Pe.depsTail.nextDep=s,Pe.depsTail=s):Pe.deps=Pe.depsTail=s,El(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=Pe.depsTail,s.nextDep=void 0,Pe.depsTail.nextDep=s,Pe.depsTail=s,Pe.deps===s&&(Pe.deps=l)}return s}trigger(t){this.version++,gs++,this.notify(t)}notify(t){wn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{$n()}}}function El(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)El(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Tn=new WeakMap,Nt=Symbol(""),En=Symbol(""),ys=Symbol("");function Ue(e,t,s){if(rt&&Pe){let l=Tn.get(e);l||Tn.set(e,l=new Map);let a=l.get(s);a||(l.set(s,a=new Cn),a.map=l,a.key=s),a.track()}}function _t(e,t,s,l,a,o){const i=Tn.get(e);if(!i){gs++;return}const r=c=>{c&&c.trigger()};if(wn(),t==="clear")i.forEach(r);else{const c=ge(e),g=c&&gn(s);if(c&&s==="length"){const v=Number(l);i.forEach((m,p)=>{(p==="length"||p===ys||!it(p)&&p>=v)&&r(m)})}else switch((s!==void 0||i.has(void 0))&&r(i.get(s)),g&&r(i.get(ys)),t){case"add":c?g&&r(i.get("length")):(r(i.get(Nt)),zt(e)&&r(i.get(En)));break;case"delete":c||(r(i.get(Nt)),zt(e)&&r(i.get(En)));break;case"set":zt(e)&&r(i.get(Nt));break}}$n()}function Wt(e){const t=$e(e);return t===e?t:(Ue(t,"iterate",ys),nt(e)?t:t.map(ut))}function Ds(e){return Ue(e=$e(e),"iterate",ys),e}function At(e,t){return wt(e)?Qt(jt(e)?ut(t):t):ut(t)}const Ra={__proto__:null,[Symbol.iterator](){return Pn(this,Symbol.iterator,e=>At(this,e))},concat(...e){return Wt(this).concat(...e.map(t=>ge(t)?Wt(t):t))},entries(){return Pn(this,"entries",e=>(e[1]=At(this,e[1]),e))},every(e,t){return xt(this,"every",e,t,void 0,arguments)},filter(e,t){return xt(this,"filter",e,t,s=>s.map(l=>At(this,l)),arguments)},find(e,t){return xt(this,"find",e,t,s=>At(this,s),arguments)},findIndex(e,t){return xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xt(this,"findLast",e,t,s=>At(this,s),arguments)},findLastIndex(e,t){return xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xt(this,"forEach",e,t,void 0,arguments)},includes(...e){return An(this,"includes",e)},indexOf(...e){return An(this,"indexOf",e)},join(e){return Wt(this).join(e)},lastIndexOf(...e){return An(this,"lastIndexOf",e)},map(e,t){return xt(this,"map",e,t,void 0,arguments)},pop(){return ms(this,"pop")},push(...e){return ms(this,"push",e)},reduce(e,...t){return Pl(this,"reduce",e,t)},reduceRight(e,...t){return Pl(this,"reduceRight",e,t)},shift(){return ms(this,"shift")},some(e,t){return xt(this,"some",e,t,void 0,arguments)},splice(...e){return ms(this,"splice",e)},toReversed(){return Wt(this).toReversed()},toSorted(e){return Wt(this).toSorted(e)},toSpliced(...e){return Wt(this).toSpliced(...e)},unshift(...e){return ms(this,"unshift",e)},values(){return Pn(this,"values",e=>At(this,e))}};function Pn(e,t,s){const l=Ds(e),a=l[t]();return l!==e&&!nt(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=s(o.value)),o}),a}const La=Array.prototype;function xt(e,t,s,l,a,o){const i=Ds(e),r=i!==e&&!nt(e),c=i[t];if(c!==La[t]){const m=c.apply(e,o);return r?ut(m):m}let g=s;i!==e&&(r?g=function(m,p){return s.call(this,At(e,m),p,e)}:s.length>2&&(g=function(m,p){return s.call(this,m,p,e)}));const v=c.call(i,g,l);return r&&a?a(v):v}function Pl(e,t,s,l){const a=Ds(e);let o=s;return a!==e&&(nt(e)?s.length>3&&(o=function(i,r,c){return s.call(this,i,r,c,e)}):o=function(i,r,c){return s.call(this,i,At(e,r),c,e)}),a[t](o,...l)}function An(e,t,s){const l=$e(e);Ue(l,"iterate",ys);const a=l[t](...s);return(a===-1||a===!1)&&Ln(s[0])?(s[0]=$e(s[0]),l[t](...s)):a}function ms(e,t,s=[]){ht(),wn();const l=$e(e)[t].apply(e,s);return $n(),pt(),l}const Oa=hn("__proto__,__v_isRef,__isVue"),Al=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(it));function Da(e){it(e)||(e=String(e));const t=$e(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Ml{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!a;if(s==="__v_isReadonly")return a;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(a?o?Il:Fl:o?Dl:Ol).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const i=ge(t);if(!a){let c;if(i&&(c=Ra[s]))return c;if(s==="hasOwnProperty")return Da}const r=Reflect.get(t,s,je(t)?t:l);if((it(s)?Al.has(s):Oa(s))||(a||Ue(t,"get",s),o))return r;if(je(r)){const c=i&&gn(s)?r:r.value;return a&&Ce(c)?Rn(c):c}return Ce(r)?a?Rn(r):Jt(r):r}}class Rl extends Ml{constructor(t=!1){super(!1,t)}set(t,s,l,a){let o=t[s];const i=ge(t)&&gn(s);if(!this._isShallow){const g=wt(o);if(!nt(l)&&!wt(l)&&(o=$e(o),l=$e(l)),!i&&je(o)&&!je(l))return g||(o.value=l),!0}const r=i?Number(s)<t.length:Se(t,s),c=Reflect.set(t,s,l,je(t)?t:a);return t===$e(a)&&(r?Pt(l,o)&&_t(t,"set",s,l):_t(t,"add",s,l)),c}deleteProperty(t,s){const l=Se(t,s);t[s];const a=Reflect.deleteProperty(t,s);return a&&l&&_t(t,"delete",s,void 0),a}has(t,s){const l=Reflect.has(t,s);return(!it(s)||!Al.has(s))&&Ue(t,"has",s),l}ownKeys(t){return Ue(t,"iterate",ge(t)?"length":Nt),Reflect.ownKeys(t)}}class Ll extends Ml{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Fa=new Rl,Ia=new Ll,Ba=new Rl(!0),Na=new Ll(!0),Mn=e=>e,Fs=e=>Reflect.getPrototypeOf(e);function ja(e,t,s){return function(...l){const a=this.__v_raw,o=$e(a),i=zt(o),r=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,g=a[e](...l),v=s?Mn:t?Qt:ut;return!t&&Ue(o,"iterate",c?En:Nt),Ne(Object.create(g),{next(){const{value:m,done:p}=g.next();return p?{value:m,done:p}:{value:r?[v(m[0]),v(m[1])]:v(m),done:p}}})}}function Is(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ha(e,t){const s={get(a){const o=this.__v_raw,i=$e(o),r=$e(a);e||(Pt(a,r)&&Ue(i,"get",a),Ue(i,"get",r));const{has:c}=Fs(i),g=t?Mn:e?Qt:ut;if(c.call(i,a))return g(o.get(a));if(c.call(i,r))return g(o.get(r));o!==i&&o.get(a)},get size(){const a=this.__v_raw;return!e&&Ue($e(a),"iterate",Nt),a.size},has(a){const o=this.__v_raw,i=$e(o),r=$e(a);return e||(Pt(a,r)&&Ue(i,"has",a),Ue(i,"has",r)),a===r?o.has(a):o.has(a)||o.has(r)},forEach(a,o){const i=this,r=i.__v_raw,c=$e(r),g=t?Mn:e?Qt:ut;return!e&&Ue(c,"iterate",Nt),r.forEach((v,m)=>a.call(o,g(v),g(m),i))}};return Ne(s,e?{add:Is("add"),set:Is("set"),delete:Is("delete"),clear:Is("clear")}:{add(a){!t&&!nt(a)&&!wt(a)&&(a=$e(a));const o=$e(this);return Fs(o).has.call(o,a)||(o.add(a),_t(o,"add",a,a)),this},set(a,o){!t&&!nt(o)&&!wt(o)&&(o=$e(o));const i=$e(this),{has:r,get:c}=Fs(i);let g=r.call(i,a);g||(a=$e(a),g=r.call(i,a));const v=c.call(i,a);return i.set(a,o),g?Pt(o,v)&&_t(i,"set",a,o):_t(i,"add",a,o),this},delete(a){const o=$e(this),{has:i,get:r}=Fs(o);let c=i.call(o,a);c||(a=$e(a),c=i.call(o,a)),r&&r.call(o,a);const g=o.delete(a);return c&&_t(o,"delete",a,void 0),g},clear(){const a=$e(this),o=a.size!==0,i=a.clear();return o&&_t(a,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(a=>{s[a]=ja(a,e,t)}),s}function Bs(e,t){const s=Ha(e,t);return(l,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?l:Reflect.get(Se(s,a)&&a in l?s:l,a,o)}const Ua={get:Bs(!1,!1)},qa={get:Bs(!1,!0)},Ka={get:Bs(!0,!1)},Va={get:Bs(!0,!0)},Ol=new WeakMap,Dl=new WeakMap,Fl=new WeakMap,Il=new WeakMap;function za(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wa(e){return e.__v_skip||!Object.isExtensible(e)?0:za(ya(e))}function Jt(e){return wt(e)?e:Ns(e,!1,Fa,Ua,Ol)}function Ja(e){return Ns(e,!1,Ba,qa,Dl)}function Rn(e){return Ns(e,!0,Ia,Ka,Fl)}function _1(e){return Ns(e,!0,Na,Va,Il)}function Ns(e,t,s,l,a){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Wa(e);if(o===0)return e;const i=a.get(e);if(i)return i;const r=new Proxy(e,o===2?l:s);return a.set(e,r),r}function jt(e){return wt(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function nt(e){return!!(e&&e.__v_isShallow)}function Ln(e){return e?!!e.__v_raw:!1}function $e(e){const t=e&&e.__v_raw;return t?$e(t):e}function Qa(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&vl(e,"__v_skip",!0),e}const ut=e=>Ce(e)?Jt(e):e,Qt=e=>Ce(e)?Rn(e):e;function je(e){return e?e.__v_isRef===!0:!1}function Q(e){return Ga(e,!1)}function Ga(e,t){return je(e)?e:new Ya(e,t)}class Ya{constructor(t,s){this.dep=new Cn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:$e(t),this._value=s?t:ut(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||nt(t)||wt(t);t=l?t:$e(t),Pt(t,s)&&(this._rawValue=t,this._value=l?t:ut(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const Xa={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const a=e[t];return je(a)&&!je(s)?(a.value=s,!0):Reflect.set(e,t,s,l)}};function Bl(e){return jt(e)?e:new Proxy(e,Xa)}class Za{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Cn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Pe!==this)return wl(this,!0),!0}get value(){const t=this.dep.track();return Sl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ei(e,t,s=!1){let l,a;return ye(e)?l=e:(l=e.get,a=e.set),new Za(l,a,s)}const js={},Hs=new WeakMap;let Ht;function ti(e,t=!1,s=Ht){if(s){let l=Hs.get(s);l||Hs.set(s,l=[]),l.push(e)}}function si(e,t,s=Ee){const{immediate:l,deep:a,once:o,scheduler:i,augmentJob:r,call:c}=s,g=k=>a?k:nt(k)||a===!1||a===0?Mt(k,1):Mt(k);let v,m,p,x,$=!1,_=!1;if(je(e)?(m=()=>e.value,$=nt(e)):jt(e)?(m=()=>g(e),$=!0):ge(e)?(_=!0,$=e.some(k=>jt(k)||nt(k)),m=()=>e.map(k=>{if(je(k))return k.value;if(jt(k))return g(k);if(ye(k))return c?c(k,2):k()})):ye(e)?t?m=c?()=>c(e,2):e:m=()=>{if(p){ht();try{p()}finally{pt()}}const k=Ht;Ht=v;try{return c?c(e,3,[x]):e(x)}finally{Ht=k}}:m=ft,t&&a){const k=m,C=a===!0?1/0:a;m=()=>Mt(k(),C)}const E=Pa(),R=()=>{v.stop(),E&&E.active&&vn(E.effects,v)};if(o&&t){const k=t;t=(...C)=>{k(...C),R()}}let M=_?new Array(e.length).fill(js):js;const y=k=>{if(!(!(v.flags&1)||!v.dirty&&!k))if(t){const C=v.run();if(a||$||(_?C.some((J,W)=>Pt(J,M[W])):Pt(C,M))){p&&p();const J=Ht;Ht=v;try{const W=[C,M===js?void 0:_&&M[0]===js?[]:M,x];M=C,c?c(t,3,W):t(...W)}finally{Ht=J}}}else v.run()};return r&&r(y),v=new _l(m),v.scheduler=i?()=>i(y,!1):y,x=k=>ti(k,!1,v),p=v.onStop=()=>{const k=Hs.get(v);if(k){if(c)c(k,4);else for(const C of k)C();Hs.delete(v)}},t?l?y(!0):M=v.run():i?i(y.bind(null,!0),!0):v.run(),R.pause=v.pause.bind(v),R.resume=v.resume.bind(v),R.stop=R,R}function Mt(e,t=1/0,s){if(t<=0||!Ce(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Mt(e.value,t,s);else if(ge(e))for(let l=0;l<e.length;l++)Mt(e[l],t,s);else if(cl(e)||zt(e))e.forEach(l=>{Mt(l,t,s)});else if(pl(e)){for(const l in e)Mt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Mt(e[l],t,s)}return e}const bs=[];let On=!1;function x1(e,...t){if(On)return;On=!0,ht();const s=bs.length?bs[bs.length-1].component:null,l=s&&s.appContext.config.warnHandler,a=ni();if(l)Gt(l,s,11,[e+t.map(o=>{var i,r;return(r=(i=o.toString)==null?void 0:i.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,a.map(({vnode:o})=>`at <${Bo(s,o.type)}>`).join(`
2
2
  `),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
3
- `,...si(a)),console.warn(...o)}ht(),Rn=!1}function ti(){let e=bs[bs.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 si(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
4
- `],...ni(s))}),t}function ni({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,a=` at <${Io(e.component,e.type,l)}`,o=">"+s;return e.props?[a,...li(e.props),o]:[a+o]}function li(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Bl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Bl(e,t,s){return Oe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=Bl(e,we(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=we(t),s?t:[`${e}=`,t])}function Gt(e,t,s,l){try{return l?e(...l):e()}catch(a){Yt(a,t,s)}}function pt(e,t,s,l){if(ve(e)){const a=Gt(e,t,s,l);return a&&dl(a)&&a.catch(o=>{Yt(o,t,s)}),a}if(pe(e)){const a=[];for(let o=0;o<e.length;o++)a.push(pt(e[o],t,s,l));return a}}function Yt(e,t,s,l=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ee;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const v=r.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,c,g)===!1)return}r=r.parent}if(o){ft(),Gt(o,null,10,[e,c,g]),ht();return}}oi(e,s,a,l,i)}function oi(e,t,s,l=!0,a=!1){if(a)throw e;console.error(e)}const Ve=[];let vt=-1;const Xt=[];let Rt=null,Zt=0;const Nl=Promise.resolve();let Hs=null;function jl(e){const t=Hs||Nl;return e?t.then(this?e.bind(this):e):t}function ai(e){let t=vt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,a=Ve[l],o=_s(a);o<e||o===e&&a.flags&2?t=l+1:s=l}return t}function Ln(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(ai(t),0,e),e.flags|=1,Hl()}}function Hl(){Hs||(Hs=Nl.then(Kl))}function On(e){pe(e)?Xt.push(...e):Rt&&e.id===-1?Rt.splice(Zt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1),Hl()}function Ul(e,t,s=vt+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 ql(e){if(Xt.length){const t=[...new Set(Xt)].sort((s,l)=>_s(s)-_s(l));if(Xt.length=0,Rt){Rt.push(...t);return}for(Rt=t,Zt=0;Zt<Rt.length;Zt++){const s=Rt[Zt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Rt=null,Zt=0}}const _s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Kl(e){try{for(vt=0;vt<Ve.length;vt++){const t=Ve[vt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Gt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;vt<Ve.length;vt++){const t=Ve[vt];t&&(t.flags&=-2)}vt=-1,Ve.length=0,ql(),Hs=null,(Ve.length||Xt.length)&&Kl()}}let ze=null,Vl=null;function Us(e){const t=ze;return ze=e,Vl=e&&e.type.__scopeId||null,t}function es(e,t=ze,s){if(!t||e._n)return e;const l=(...a)=>{l._d&&Gs(-1);const o=Us(t);let i;try{i=e(...a)}finally{Us(o),l._d&&Gs(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function Ut(e,t,s,l){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const r=a[i];o&&(r.oldValue=o[i].value);let c=r.dir[l];c&&(ft(),pt(c,s,8,[e.el,r,e,t]),ht())}}function ts(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 re(e,t,s=!1){const l=hr();if(l||ns){let a=ns?ns._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return s&&ve(t)?t.call(l&&l.proxy):t}}const ii=Symbol.for("v-scx"),ri=()=>re(ii);function gt(e,t,s){return zl(e,t,s)}function zl(e,t,s=Ee){const{immediate:l,deep:a,flush:o,once:i}=s,r=Ne({},s),c=t&&l||!t&&o!=="post";let g;if(rs){if(o==="sync"){const x=ri();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=dt,x.resume=dt,x.pause=dt,x}}const v=He;r.call=(x,w,_)=>pt(x,v,w,_);let m=!1;o==="post"?r.scheduler=x=>{Je(x,v&&v.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(x,w)=>{w?x():Ln(x)}),r.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const p=ei(e,t,r);return rs&&(g?g.push(p):c&&p()),p}function ui(e,t,s){const l=this.proxy,a=Oe(e)?e.includes(".")?Wl(l,e):()=>l[e]:e.bind(l,l);let o;ve(t)?o=t:(o=t.handler,s=t);const i=Cs(this),r=zl(a,o.bind(l),s);return i(),r}function Wl(e,t){const s=t.split(".");return()=>{let l=e;for(let a=0;a<s.length&&l;a++)l=l[s[a]];return l}}const ci=Symbol("_vte"),di=e=>e.__isTeleport,fi=Symbol("_leaveCb");function Fn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fn(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 Fe(e,t){return ve(e)?Ne({name:e.name},t,{setup:e}):e}function Dn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Jl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const qs=new WeakMap;function xs(e,t,s,l,a=!1){if(pe(e)){e.forEach((_,P)=>xs(_,t&&(pe(t)?t[P]:t),s,l,a));return}if(ss(l)&&!a){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&xs(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?Yn(l.component):l.el,i=a?null:o,{i:r,r:c}=e,g=t&&t.r,v=r.refs===Ee?r.refs={}:r.refs,m=r.setupState,p=we(m),x=m===Ee?rl:_=>Jl(v,_)?!1:ke(p,_),w=(_,P)=>!(P&&Jl(v,P));if(g!=null&&g!==c){if(Ql(t),Oe(g))v[g]=null,x(g)&&(m[g]=null);else if(je(g)){const _=t;w(g,_.k)&&(g.value=null),_.k&&(v[_.k]=null)}}if(ve(c))Gt(c,r,12,[i,v]);else{const _=Oe(c),P=je(c);if(_||P){const R=()=>{if(e.f){const M=_?x(c)?m[c]:v[c]:w()||!e.k?c.value:v[e.k];if(a)pe(M)&&hn(M,o);else if(pe(M))M.includes(o)||M.push(o);else if(_)v[c]=[o],x(c)&&(m[c]=v[c]);else{const y=[o];w(c,e.k)&&(c.value=y),e.k&&(v[e.k]=y)}}else _?(v[c]=i,x(c)&&(m[c]=i)):P&&(w(c,e.k)&&(c.value=i),e.k&&(v[e.k]=i))};if(i){const M=()=>{R(),qs.delete(e)};M.id=-1,qs.set(e,M),Je(M,s)}else Ql(e),R()}}}function Ql(e){const t=qs.get(e);t&&(t.flags|=8,qs.delete(e))}const Gl=e=>e.nodeType===8;Ls().requestIdleCallback,Ls().cancelIdleCallback;function hi(e,t){if(Gl(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(Gl(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ss=e=>!!e.type.__asyncLoader;function lt(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:a=200,hydrate:o,timeout:i,suspensible:r=!0,onError:c}=e;let g=null,v,m=0;const p=()=>(m++,g=null,x()),x=()=>{let w;return g||(w=g=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((P,R)=>{c(_,()=>P(p()),()=>R(_),m+1)});throw _}).then(_=>w!==g&&g?g:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),v=_,_)))};return Fe({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate(w,_,P){let R=!1;(_.bu||(_.bu=[])).push(()=>R=!0);const M=()=>{R||P()},y=o?()=>{const $=o(M,T=>hi(w,T));$&&(_.bum||(_.bum=[])).push($)}:M;v?y():x().then(()=>!_.isUnmounted&&y())},get __asyncResolved(){return v},setup(){const w=He;if(Dn(w),v)return()=>Ks(v,w);const _=y=>{g=null,Yt(y,w,13,!l)};if(r&&w.suspense||rs)return x().then(y=>()=>Ks(y,w)).catch(y=>(_(y),()=>l?me(l,{error:y}):null));const P=J(!1),R=J(),M=J(!!a);return a&&setTimeout(()=>{M.value=!1},a),i!=null&&setTimeout(()=>{if(!P.value&&!R.value){const y=new Error(`Async component timed out after ${i}ms.`);_(y),R.value=y}},i),x().then(()=>{P.value=!0,w.parent&&In(w.parent.vnode)&&w.parent.update()}).catch(y=>{_(y),R.value=y}),()=>{if(P.value&&v)return Ks(v,w);if(R.value&&l)return me(l,{error:R.value});if(s&&!M.value)return Ks(s,w)}}})}function Ks(e,t){const{ref:s,props:l,children:a,ce:o}=t.vnode,i=me(e,l,a);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const In=e=>e.type.__isKeepAlive;function pi(e,t){Yl(e,"a",t)}function vi(e,t){Yl(e,"da",t)}function Yl(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let a=s;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Vs(t,l,s),s){let a=s.parent;for(;a&&a.parent;)In(a.parent.vnode)&&gi(l,t,s,a),a=a.parent}}function gi(e,t,s,l){const a=Vs(t,e,l,!0);Ot(()=>{hn(l[t],a)},s)}function Vs(e,t,s=He,l=!1){if(s){const a=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ft();const r=Cs(s),c=pt(t,s,e,i);return r(),ht(),c});return l?a.unshift(o):a.push(o),o}}const $t=e=>(t,s=He)=>{(!rs||e==="sp")&&Vs(e,(...l)=>t(...l),s)},yi=$t("bm"),Lt=$t("m"),mi=$t("bu"),bi=$t("u"),Xl=$t("bum"),Ot=$t("um"),_i=$t("sp"),xi=$t("rtg"),wi=$t("rtc");function $i(e,t=He){Vs("ec",e,t)}const ki="components",Zl=Symbol.for("v-ndc");function Si(e){return Oe(e)?Ci(ki,e,!1)||e:e||Zl}function Ci(e,t,s=!0,l=!1){const a=ze||He;if(a){const o=a.type;{const r=Do(o,!1);if(r&&(r===t||r===st(t)||r===Rs(st(t))))return o}const i=eo(a[e]||o[e],t)||eo(a.appContext[e],t);return!i&&l?o:i}}function eo(e,t){return e&&(e[t]||e[st(t)]||e[Rs(st(t))])}function ye(e,t,s,l){let a;const o=s,i=pe(e);if(i||Oe(e)){const r=i&&jt(e);let c=!1,g=!1;r&&(c=!nt(e),g=wt(e),e=Os(e)),a=new Array(e.length);for(let v=0,m=e.length;v<m;v++)a[v]=t(c?g?Qt(rt(e[v])):rt(e[v]):e[v],v,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let r=0;r<e;r++)a[r]=t(r+1,r,void 0,o)}else if(Se(e))if(e[Symbol.iterator])a=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);a=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const v=r[c];a[c]=t(e[v],v,c,o)}}else a=[];return a}function Ti(e,t,s={},l,a){if(ze.ce||ze.parent&&ss(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return u(),Xe(U,null,[me("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const i=o&&to(o(s)),r=s.key||i&&i.key,c=Xe(U,{key:(r&&!at(r)?r:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function to(e){return e.some(t=>as(t)?!(t.type===ut||t.type===U&&!to(t.children)):!0)?e:null}const Bn=e=>e?Oo(e)?Yn(e):Bn(e.parent):null,ws=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=>Bn(e.parent),$root:e=>Bn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>oo(e),$forceUpdate:e=>e.f||(e.f=()=>{Ln(e.update)}),$nextTick:e=>e.n||(e.n=jl.bind(e.proxy)),$watch:e=>ui.bind(e)}),Nn=(e,t)=>e!==Ee&&!e.__isScriptSetup&&ke(e,t),Ei={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:a,props:o,accessCache:i,type:r,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return l[t];case 2:return a[t];case 4:return s[t];case 3:return o[t]}else{if(Nn(l,t))return i[t]=1,l[t];if(a!==Ee&&ke(a,t))return i[t]=2,a[t];if(ke(o,t))return i[t]=3,o[t];if(s!==Ee&&ke(s,t))return i[t]=4,s[t];jn&&(i[t]=0)}}const g=ws[t];let v,m;if(g)return t==="$attrs"&&Ue(e.attrs,"get",""),g(e);if((v=r.__cssModules)&&(v=v[t]))return v;if(s!==Ee&&ke(s,t))return i[t]=4,s[t];if(m=c.config.globalProperties,ke(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:a,ctx:o}=e;return Nn(a,t)?(a[t]=s,!0):l!==Ee&&ke(l,t)?(l[t]=s,!0):ke(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:a,props:o,type:i}},r){let c;return!!(s[r]||e!==Ee&&r[0]!=="$"&&ke(e,r)||Nn(t,r)||ke(o,r)||ke(l,r)||ke(ws,r)||ke(a.config.globalProperties,r)||(c=i.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ke(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function so(e){return pe(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let jn=!0;function Pi(e){const t=oo(e),s=e.proxy,l=e.ctx;jn=!1,t.beforeCreate&&no(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:r,provide:c,inject:g,created:v,beforeMount:m,mounted:p,beforeUpdate:x,updated:w,activated:_,deactivated:P,beforeDestroy:R,beforeUnmount:M,destroyed:y,unmounted:$,render:T,renderTracked:Q,renderTriggered:V,errorCaptured:G,serverPrefetch:L,expose:K,inheritAttrs:se,components:be,directives:Me,filters:Le}=t;if(g&&Ai(g,l,null),i)for(const de in i){const E=i[de];ve(E)&&(l[de]=E.bind(s))}if(a){const de=a.call(s,s);Se(de)&&(e.data=Jt(de))}if(jn=!0,o)for(const de in o){const E=o[de],C=ve(E)?E.bind(s,s):ve(E.get)?E.get.bind(s,s):dt,S=!ve(E)&&ve(E.set)?E.set.bind(s):dt,H=q({get:C,set:S});Object.defineProperty(l,de,{enumerable:!0,configurable:!0,get:()=>H.value,set:ne=>H.value=ne})}if(r)for(const de in r)lo(r[de],l,s,de);if(c){const de=ve(c)?c.call(s):c;Reflect.ownKeys(de).forEach(E=>{ts(E,de[E])})}v&&no(v,e,"c");function ge(de,E){pe(E)?E.forEach(C=>de(C.bind(s))):E&&de(E.bind(s))}if(ge(yi,m),ge(Lt,p),ge(mi,x),ge(bi,w),ge(pi,_),ge(vi,P),ge($i,G),ge(wi,Q),ge(xi,V),ge(Xl,M),ge(Ot,$),ge(_i,L),pe(K))if(K.length){const de=e.exposed||(e.exposed={});K.forEach(E=>{Object.defineProperty(de,E,{get:()=>s[E],set:C=>s[E]=C,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===dt&&(e.render=T),se!=null&&(e.inheritAttrs=se),be&&(e.components=be),Me&&(e.directives=Me),L&&Dn(e)}function Ai(e,t,s=dt){pe(e)&&(e=Hn(e));for(const l in e){const a=e[l];let o;Se(a)?"default"in a?o=re(a.from||l,a.default,!0):o=re(a.from||l):o=re(a),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[l]=o}}function no(e,t,s){pt(pe(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function lo(e,t,s,l){let a=l.includes(".")?Wl(s,l):()=>s[l];if(Oe(e)){const o=t[e];ve(o)&&gt(a,o)}else if(ve(e))gt(a,e.bind(s));else if(Se(e))if(pe(e))e.forEach(o=>lo(o,t,s,l));else{const o=ve(e.handler)?e.handler.bind(s):t[e.handler];ve(o)&&gt(a,o,e)}}function oo(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,r=o.get(t);let c;return r?c=r:!a.length&&!s&&!l?c=t:(c={},a.length&&a.forEach(g=>zs(c,g,i,!0)),zs(c,t,i)),Se(t)&&o.set(t,c),c}function zs(e,t,s,l=!1){const{mixins:a,extends:o}=t;o&&zs(e,o,s,!0),a&&a.forEach(i=>zs(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const r=Mi[i]||s&&s[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Mi={data:ao,props:io,emits:io,methods:$s,computed:$s,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:$s,directives:$s,watch:Li,provide:ao,inject:Ri};function ao(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 Ri(e,t){return $s(Hn(e),Hn(t))}function Hn(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 $s(e,t){return e?Ne(Object.create(null),e,t):t}function io(e,t){return e?pe(e)&&pe(t)?[...new Set([...e,...t])]:Ne(Object.create(null),so(e),so(t??{})):t}function Li(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 ro(){return{app:null,config:{isNativeTag:rl,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 Oi=0;function Fi(e,t){return function(l,a=null){ve(l)||(l=Ne({},l)),a!=null&&!Se(a)&&(a=null);const o=ro(),i=new WeakSet,r=[];let c=!1;const g=o.app={_uid:Oi++,_component:l,_props:a,_container:null,_context:o,_instance:null,version:xr,get config(){return o.config},set config(v){},use(v,...m){return i.has(v)||(v&&ve(v.install)?(i.add(v),v.install(g,...m)):ve(v)&&(i.add(v),v(g,...m))),g},mixin(v){return o.mixins.includes(v)||o.mixins.push(v),g},component(v,m){return m?(o.components[v]=m,g):o.components[v]},directive(v,m){return m?(o.directives[v]=m,g):o.directives[v]},mount(v,m,p){if(!c){const x=g._ceVNode||me(l,a);return x.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(x,v,p),c=!0,g._container=v,v.__vue_app__=g,Yn(x.component)}},onUnmount(v){r.push(v)},unmount(){c&&(pt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(v,m){return o.provides[v]=m,g},runWithContext(v){const m=ns;ns=g;try{return v()}finally{ns=m}}};return g}}let ns=null;const Di=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Et(t)}Modifiers`];function Ii(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Ee;let a=s;const o=t.startsWith("update:"),i=o&&Di(l,t.slice(7));i&&(i.trim&&(a=s.map(v=>Oe(v)?v.trim():v)),i.number&&(a=s.map(ma)));let r,c=l[r=vn(t)]||l[r=vn(st(t))];!c&&o&&(c=l[r=vn(Et(t))]),c&&pt(c,e,6,a);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,pt(g,e,6,a)}}const Bi=new WeakMap;function uo(e,t,s=!1){const l=s?Bi:t.emitsCache,a=l.get(e);if(a!==void 0)return a;const o=e.emits;let i={},r=!1;if(!ve(e)){const c=g=>{const v=uo(g,t,!0);v&&(r=!0,Ne(i,v))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Se(e)&&l.set(e,null),null):(pe(o)?o.forEach(c=>i[c]=null):Ne(i,o),Se(e)&&l.set(e,i),i)}function Ws(e,t){return!e||!As(t)?!1:(t=t.slice(2).replace(/Once$/,""),ke(e,t[0].toLowerCase()+t.slice(1))||ke(e,Et(t))||ke(e,t))}function y1(){}function co(e){const{type:t,vnode:s,proxy:l,withProxy:a,propsOptions:[o],slots:i,attrs:r,emit:c,render:g,renderCache:v,props:m,data:p,setupState:x,ctx:w,inheritAttrs:_}=e,P=Us(e);let R,M;try{if(s.shapeFlag&4){const $=a||l,T=$;R=ct(g.call(T,$,v,m,x,p,w)),M=r}else{const $=t;R=ct($.length>1?$(m,{attrs:r,slots:i,emit:c}):$(m,null)),M=t.props?r:ji(r)}}catch($){Ss.length=0,Yt($,e,1),R=me(ut)}let y=R;if(M&&_!==!1){const $=Object.keys(M),{shapeFlag:T}=y;$.length&&T&7&&(o&&$.some(fn)&&(M=Hi(M,o)),y=is(y,M,!1,!0))}return s.dirs&&(y=is(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&Fn(y,s.transition),R=y,Us(P),R}function Ni(e,t=!0){let s;for(let l=0;l<e.length;l++){const a=e[l];if(as(a)){if(a.type!==ut||a.children==="v-if"){if(s)return;s=a}}else return}return s}const ji=e=>{let t;for(const s in e)(s==="class"||s==="style"||As(s))&&((t||(t={}))[s]=e[s]);return t},Hi=(e,t)=>{const s={};for(const l in e)(!fn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ui(e,t,s){const{props:l,children:a,component:o}=e,{props:i,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?fo(l,i,g):!!i;if(c&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const p=v[m];if(ho(i,l,p)&&!Ws(g,p))return!0}}}else return(a||r)&&(!r||!r.$stable)?!0:l===i?!1:l?i?fo(l,i,g):!0:!!i;return!1}function fo(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let a=0;a<l.length;a++){const o=l[a];if(ho(t,e,o)&&!Ws(s,o))return!0}return!1}function ho(e,t,s){const l=e[s],a=t[s];return s==="style"&&Se(l)&&Se(a)?!yn(l,a):l!==a}function Un({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 po={},vo=()=>Object.create(po),go=e=>Object.getPrototypeOf(e)===po;function qi(e,t,s,l=!1){const a={},o=vo();e.propsDefaults=Object.create(null),yo(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);s?e.props=l?a:za(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function Ki(e,t,s,l){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,r=we(a),[c]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let p=v[m];if(Ws(e.emitsOptions,p))continue;const x=t[p];if(c)if(ke(o,p))x!==o[p]&&(o[p]=x,g=!0);else{const w=st(p);a[w]=qn(c,r,w,x,e,!1)}else x!==o[p]&&(o[p]=x,g=!0)}}}else{yo(e,t,a,o)&&(g=!0);let v;for(const m in r)(!t||!ke(t,m)&&((v=Et(m))===m||!ke(t,v)))&&(c?s&&(s[m]!==void 0||s[v]!==void 0)&&(a[m]=qn(c,r,m,void 0,e,!0)):delete a[m]);if(o!==r)for(const m in o)(!t||!ke(t,m))&&(delete o[m],g=!0)}g&&_t(e.attrs,"set","")}function yo(e,t,s,l){const[a,o]=e.propsOptions;let i=!1,r;if(t)for(let c in t){if(hs(c))continue;const g=t[c];let v;a&&ke(a,v=st(c))?!o||!o.includes(v)?s[v]=g:(r||(r={}))[v]=g:Ws(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,i=!0)}if(o){const c=we(s),g=r||Ee;for(let v=0;v<o.length;v++){const m=o[v];s[m]=qn(a,c,m,g[m],e,!ke(g,m))}}return i}function qn(e,t,s,l,a,o){const i=e[s];if(i!=null){const r=ke(i,"default");if(r&&l===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&ve(c)){const{propsDefaults:g}=a;if(s in g)l=g[s];else{const v=Cs(a);l=g[s]=c.call(null,t),v()}}else l=c;a.ce&&a.ce._setProp(s,l)}i[0]&&(o&&!r?l=!1:i[1]&&(l===""||l===Et(s))&&(l=!0))}return l}const Vi=new WeakMap;function mo(e,t,s=!1){const l=s?Vi:t.propsCache,a=l.get(e);if(a)return a;const o=e.props,i={},r=[];let c=!1;if(!ve(e)){const v=m=>{c=!0;const[p,x]=mo(m,t,!0);Ne(i,p),x&&r.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!o&&!c)return Se(e)&&l.set(e,Vt),Vt;if(pe(o))for(let v=0;v<o.length;v++){const m=st(o[v]);bo(m)&&(i[m]=Ee)}else if(o)for(const v in o){const m=st(v);if(bo(m)){const p=o[v],x=i[m]=pe(p)||ve(p)?{type:p}:Ne({},p),w=x.type;let _=!1,P=!0;if(pe(w))for(let R=0;R<w.length;++R){const M=w[R],y=ve(M)&&M.name;if(y==="Boolean"){_=!0;break}else y==="String"&&(P=!1)}else _=ve(w)&&w.name==="Boolean";x[0]=_,x[1]=P,(_||ke(x,"default"))&&r.push(m)}}const g=[i,r];return Se(e)&&l.set(e,g),g}function bo(e){return e[0]!=="$"&&!hs(e)}const Kn=e=>e==="_"||e==="_ctx"||e==="$stable",Vn=e=>pe(e)?e.map(ct):[ct(e)],zi=(e,t,s)=>{if(t._n)return t;const l=es((...a)=>Vn(t(...a)),s);return l._c=!1,l},_o=(e,t,s)=>{const l=e._ctx;for(const a in e){if(Kn(a))continue;const o=e[a];if(ve(o))t[a]=zi(a,o,l);else if(o!=null){const i=Vn(o);t[a]=()=>i}}},xo=(e,t)=>{const s=Vn(t);e.slots.default=()=>s},wo=(e,t,s)=>{for(const l in t)(s||!Kn(l))&&(e[l]=t[l])},Wi=(e,t,s)=>{const l=e.slots=vo();if(e.vnode.shapeFlag&32){const a=t._;a?(wo(l,t,s),s&&pl(l,"_",a,!0)):_o(t,l)}else t&&xo(e,t)},Ji=(e,t,s)=>{const{vnode:l,slots:a}=e;let o=!0,i=Ee;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:wo(a,t,s):(o=!t.$stable,_o(t,a)),i=t}else t&&(xo(e,t),i={default:1});if(o)for(const r in a)!Kn(r)&&i[r]==null&&delete a[r]},Je=lr;function Qi(e){return Gi(e)}function Gi(e,t){const s=Ls();s.__VUE__=!0;const{insert:l,remove:a,patchProp:o,createElement:i,createText:r,createComment:c,setText:g,setElementText:v,parentNode:m,nextSibling:p,setScopeId:x=dt,insertStaticContent:w}=e,_=(h,b,A,j=null,D=null,I=null,Y=void 0,W=null,B=!!b.dynamicChildren)=>{if(h===b)return;h&&!Ft(h,b)&&(j=oe(h),ne(h,D,I,!0),h=null),b.patchFlag===-2&&(B=!1,b.dynamicChildren=null);const{type:N,ref:ce,shapeFlag:ee}=b;switch(N){case Js:P(h,b,A,j);break;case ut:R(h,b,A,j);break;case Qs:h==null&&M(b,A,j,Y);break;case U:be(h,b,A,j,D,I,Y,W,B);break;default:ee&1?T(h,b,A,j,D,I,Y,W,B):ee&6?Me(h,b,A,j,D,I,Y,W,B):(ee&64||ee&128)&&N.process(h,b,A,j,D,I,Y,W,B,Tt)}ce!=null&&D?xs(ce,h&&h.ref,I,b||h,!b):ce==null&&h&&h.ref!=null&&xs(h.ref,null,I,h,!0)},P=(h,b,A,j)=>{if(h==null)l(b.el=r(b.children),A,j);else{const D=b.el=h.el;b.children!==h.children&&g(D,b.children)}},R=(h,b,A,j)=>{h==null?l(b.el=c(b.children||""),A,j):b.el=h.el},M=(h,b,A,j)=>{[h.el,h.anchor]=w(h.children,b,A,j,h.el,h.anchor)},y=({el:h,anchor:b},A,j)=>{let D;for(;h&&h!==b;)D=p(h),l(h,A,j),h=D;l(b,A,j)},$=({el:h,anchor:b})=>{let A;for(;h&&h!==b;)A=p(h),a(h),h=A;a(b)},T=(h,b,A,j,D,I,Y,W,B)=>{if(b.type==="svg"?Y="svg":b.type==="math"&&(Y="mathml"),h==null)Q(b,A,j,D,I,Y,W,B);else{const N=h.el&&h.el._isVueCE?h.el:null;try{N&&N._beginPatch(),L(h,b,D,I,Y,W,B)}finally{N&&N._endPatch()}}},Q=(h,b,A,j,D,I,Y,W)=>{let B,N;const{props:ce,shapeFlag:ee,transition:ae,dirs:he}=h;if(B=h.el=i(h.type,I,ce&&ce.is,ce),ee&8?v(B,h.children):ee&16&&G(h.children,B,null,j,D,zn(h,I),Y,W),he&&Ut(h,null,j,"created"),V(B,h,h.scopeId,Y,j),ce){for(const Ce in ce)Ce!=="value"&&!hs(Ce)&&o(B,Ce,null,ce[Ce],I,j);"value"in ce&&o(B,"value",null,ce.value,I),(N=ce.onVnodeBeforeMount)&&yt(N,j,h)}he&&Ut(h,null,j,"beforeMount");const xe=Yi(D,ae);xe&&ae.beforeEnter(B),l(B,b,A),((N=ce&&ce.onVnodeMounted)||xe||he)&&Je(()=>{N&&yt(N,j,h),xe&&ae.enter(B),he&&Ut(h,null,j,"mounted")},D)},V=(h,b,A,j,D)=>{if(A&&x(h,A),j)for(let I=0;I<j.length;I++)x(h,j[I]);if(D){let I=D.subTree;if(b===I||To(I.type)&&(I.ssContent===b||I.ssFallback===b)){const Y=D.vnode;V(h,Y,Y.scopeId,Y.slotScopeIds,D.parent)}}},G=(h,b,A,j,D,I,Y,W,B=0)=>{for(let N=B;N<h.length;N++){const ce=h[N]=W?kt(h[N]):ct(h[N]);_(null,ce,b,A,j,D,I,Y,W)}},L=(h,b,A,j,D,I,Y)=>{const W=b.el=h.el;let{patchFlag:B,dynamicChildren:N,dirs:ce}=b;B|=h.patchFlag&16;const ee=h.props||Ee,ae=b.props||Ee;let he;if(A&&qt(A,!1),(he=ae.onVnodeBeforeUpdate)&&yt(he,A,b,h),ce&&Ut(b,h,A,"beforeUpdate"),A&&qt(A,!0),(ee.innerHTML&&ae.innerHTML==null||ee.textContent&&ae.textContent==null)&&v(W,""),N?K(h.dynamicChildren,N,W,A,j,zn(b,D),I):Y||E(h,b,W,null,A,j,zn(b,D),I,!1),B>0){if(B&16)se(W,ee,ae,A,D);else if(B&2&&ee.class!==ae.class&&o(W,"class",null,ae.class,D),B&4&&o(W,"style",ee.style,ae.style,D),B&8){const xe=b.dynamicProps;for(let Ce=0;Ce<xe.length;Ce++){const $e=xe[Ce],qe=ee[$e],Be=ae[$e];(Be!==qe||$e==="value")&&o(W,$e,qe,Be,D,A)}}B&1&&h.children!==b.children&&v(W,b.children)}else!Y&&N==null&&se(W,ee,ae,A,D);((he=ae.onVnodeUpdated)||ce)&&Je(()=>{he&&yt(he,A,b,h),ce&&Ut(b,h,A,"updated")},j)},K=(h,b,A,j,D,I,Y)=>{for(let W=0;W<b.length;W++){const B=h[W],N=b[W],ce=B.el&&(B.type===U||!Ft(B,N)||B.shapeFlag&198)?m(B.el):A;_(B,N,ce,null,j,D,I,Y,!0)}},se=(h,b,A,j,D)=>{if(b!==A){if(b!==Ee)for(const I in b)!hs(I)&&!(I in A)&&o(h,I,b[I],null,D,j);for(const I in A){if(hs(I))continue;const Y=A[I],W=b[I];Y!==W&&I!=="value"&&o(h,I,W,Y,D,j)}"value"in A&&o(h,"value",b.value,A.value,D)}},be=(h,b,A,j,D,I,Y,W,B)=>{const N=b.el=h?h.el:r(""),ce=b.anchor=h?h.anchor:r("");let{patchFlag:ee,dynamicChildren:ae,slotScopeIds:he}=b;he&&(W=W?W.concat(he):he),h==null?(l(N,A,j),l(ce,A,j),G(b.children||[],A,ce,D,I,Y,W,B)):ee>0&&ee&64&&ae&&h.dynamicChildren&&h.dynamicChildren.length===ae.length?(K(h.dynamicChildren,ae,A,D,I,Y,W),(b.key!=null||D&&b===D.subTree)&&$o(h,b,!0)):E(h,b,A,ce,D,I,Y,W,B)},Me=(h,b,A,j,D,I,Y,W,B)=>{b.slotScopeIds=W,h==null?b.shapeFlag&512?D.ctx.activate(b,A,j,Y,B):Le(b,A,j,D,I,Y,B):Re(h,b,B)},Le=(h,b,A,j,D,I,Y)=>{const W=h.component=fr(h,j,D);if(In(h)&&(W.ctx.renderer=Tt),pr(W,!1,Y),W.asyncDep){if(D&&D.registerDep(W,ge,Y),!h.el){const B=W.subTree=me(ut);R(null,B,b,A),h.placeholder=B.el}}else ge(W,h,b,A,D,I,Y)},Re=(h,b,A)=>{const j=b.component=h.component;if(Ui(h,b,A))if(j.asyncDep&&!j.asyncResolved){de(j,b,A);return}else j.next=b,j.update();else b.el=h.el,j.vnode=b},ge=(h,b,A,j,D,I,Y)=>{const W=()=>{if(h.isMounted){let{next:ee,bu:ae,u:he,parent:xe,vnode:Ce}=h;{const Ye=ko(h);if(Ye){ee&&(ee.el=Ce.el,de(h,ee,Y)),Ye.asyncDep.then(()=>{Je(()=>{h.isUnmounted||N()},D)});return}}let $e=ee,qe;qt(h,!1),ee?(ee.el=Ce.el,de(h,ee,Y)):ee=Ce,ae&&gn(ae),(qe=ee.props&&ee.props.onVnodeBeforeUpdate)&&yt(qe,xe,ee,Ce),qt(h,!0);const Be=co(h),et=h.subTree;h.subTree=Be,_(et,Be,m(et.el),oe(et),h,D,I),ee.el=Be.el,$e===null&&Un(h,Be.el),he&&Je(he,D),(qe=ee.props&&ee.props.onVnodeUpdated)&&Je(()=>yt(qe,xe,ee,Ce),D)}else{let ee;const{el:ae,props:he}=b,{bm:xe,m:Ce,parent:$e,root:qe,type:Be}=h,et=ss(b);qt(h,!1),xe&&gn(xe),!et&&(ee=he&&he.onVnodeBeforeMount)&&yt(ee,$e,b),qt(h,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Be);const Ye=h.subTree=co(h);_(null,Ye,A,j,h,D,I),b.el=Ye.el}if(Ce&&Je(Ce,D),!et&&(ee=he&&he.onVnodeMounted)){const Ye=b;Je(()=>yt(ee,$e,Ye),D)}(b.shapeFlag&256||$e&&ss($e.vnode)&&$e.vnode.shapeFlag&256)&&h.a&&Je(h.a,D),h.isMounted=!0,b=A=j=null}};h.scope.on();const B=h.effect=new bl(W);h.scope.off();const N=h.update=B.run.bind(B),ce=h.job=B.runIfDirty.bind(B);ce.i=h,ce.id=h.uid,B.scheduler=()=>Ln(ce),qt(h,!0),N()},de=(h,b,A)=>{b.component=h;const j=h.vnode.props;h.vnode=b,h.next=null,Ki(h,b.props,j,A),Ji(h,b.children,A),ft(),Ul(h),ht()},E=(h,b,A,j,D,I,Y,W,B=!1)=>{const N=h&&h.children,ce=h?h.shapeFlag:0,ee=b.children,{patchFlag:ae,shapeFlag:he}=b;if(ae>0){if(ae&128){S(N,ee,A,j,D,I,Y,W,B);return}else if(ae&256){C(N,ee,A,j,D,I,Y,W,B);return}}he&8?(ce&16&&z(N,D,I),ee!==N&&v(A,ee)):ce&16?he&16?S(N,ee,A,j,D,I,Y,W,B):z(N,D,I,!0):(ce&8&&v(A,""),he&16&&G(ee,A,j,D,I,Y,W,B))},C=(h,b,A,j,D,I,Y,W,B)=>{h=h||Vt,b=b||Vt;const N=h.length,ce=b.length,ee=Math.min(N,ce);let ae;for(ae=0;ae<ee;ae++){const he=b[ae]=B?kt(b[ae]):ct(b[ae]);_(h[ae],he,A,null,D,I,Y,W,B)}N>ce?z(h,D,I,!0,!1,ee):G(b,A,j,D,I,Y,W,B,ee)},S=(h,b,A,j,D,I,Y,W,B)=>{let N=0;const ce=b.length;let ee=h.length-1,ae=ce-1;for(;N<=ee&&N<=ae;){const he=h[N],xe=b[N]=B?kt(b[N]):ct(b[N]);if(Ft(he,xe))_(he,xe,A,null,D,I,Y,W,B);else break;N++}for(;N<=ee&&N<=ae;){const he=h[ee],xe=b[ae]=B?kt(b[ae]):ct(b[ae]);if(Ft(he,xe))_(he,xe,A,null,D,I,Y,W,B);else break;ee--,ae--}if(N>ee){if(N<=ae){const he=ae+1,xe=he<ce?b[he].el:j;for(;N<=ae;)_(null,b[N]=B?kt(b[N]):ct(b[N]),A,xe,D,I,Y,W,B),N++}}else if(N>ae)for(;N<=ee;)ne(h[N],D,I,!0),N++;else{const he=N,xe=N,Ce=new Map;for(N=xe;N<=ae;N++){const le=b[N]=B?kt(b[N]):ct(b[N]);le.key!=null&&Ce.set(le.key,N)}let $e,qe=0;const Be=ae-xe+1;let et=!1,Ye=0;const Z=new Array(Be);for(N=0;N<Be;N++)Z[N]=0;for(N=he;N<=ee;N++){const le=h[N];if(qe>=Be){ne(le,D,I,!0);continue}let fe;if(le.key!=null)fe=Ce.get(le.key);else for($e=xe;$e<=ae;$e++)if(Z[$e-xe]===0&&Ft(le,b[$e])){fe=$e;break}fe===void 0?ne(le,D,I,!0):(Z[fe-xe]=N+1,fe>=Ye?Ye=fe:et=!0,_(le,b[fe],A,null,D,I,Y,W,B),qe++)}const O=et?Xi(Z):Vt;for($e=O.length-1,N=Be-1;N>=0;N--){const le=xe+N,fe=b[le],ot=b[le+1],tt=le+1<ce?ot.el||Co(ot):j;Z[N]===0?_(null,fe,A,tt,D,I,Y,W,B):et&&($e<0||N!==O[$e]?H(fe,A,tt,2):$e--)}}},H=(h,b,A,j,D=null)=>{const{el:I,type:Y,transition:W,children:B,shapeFlag:N}=h;if(N&6){H(h.component.subTree,b,A,j);return}if(N&128){h.suspense.move(b,A,j);return}if(N&64){Y.move(h,b,A,Tt);return}if(Y===U){l(I,b,A);for(let ee=0;ee<B.length;ee++)H(B[ee],b,A,j);l(h.anchor,b,A);return}if(Y===Qs){y(h,b,A);return}if(j!==2&&N&1&&W)if(j===0)W.beforeEnter(I),l(I,b,A),Je(()=>W.enter(I),D);else{const{leave:ee,delayLeave:ae,afterLeave:he}=W,xe=()=>{h.ctx.isUnmounted?a(I):l(I,b,A)},Ce=()=>{I._isLeaving&&I[fi](!0),ee(I,()=>{xe(),he&&he()})};ae?ae(I,xe,Ce):Ce()}else l(I,b,A)},ne=(h,b,A,j=!1,D=!1)=>{const{type:I,props:Y,ref:W,children:B,dynamicChildren:N,shapeFlag:ce,patchFlag:ee,dirs:ae,cacheIndex:he}=h;if(ee===-2&&(D=!1),W!=null&&(ft(),xs(W,null,A,h,!0),ht()),he!=null&&(b.renderCache[he]=void 0),ce&256){b.ctx.deactivate(h);return}const xe=ce&1&&ae,Ce=!ss(h);let $e;if(Ce&&($e=Y&&Y.onVnodeBeforeUnmount)&&yt($e,b,h),ce&6)ie(h.component,A,j);else{if(ce&128){h.suspense.unmount(A,j);return}xe&&Ut(h,null,b,"beforeUnmount"),ce&64?h.type.remove(h,b,A,Tt,j):N&&!N.hasOnce&&(I!==U||ee>0&&ee&64)?z(N,b,A,!1,!0):(I===U&&ee&384||!D&&ce&16)&&z(B,b,A),j&&Te(h)}(Ce&&($e=Y&&Y.onVnodeUnmounted)||xe)&&Je(()=>{$e&&yt($e,b,h),xe&&Ut(h,null,b,"unmounted")},A)},Te=h=>{const{type:b,el:A,anchor:j,transition:D}=h;if(b===U){X(A,j);return}if(b===Qs){$(h);return}const I=()=>{a(A),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(h.shapeFlag&1&&D&&!D.persisted){const{leave:Y,delayLeave:W}=D,B=()=>Y(A,I);W?W(h.el,I,B):B()}else I()},X=(h,b)=>{let A;for(;h!==b;)A=p(h),a(h),h=A;a(b)},ie=(h,b,A)=>{const{bum:j,scope:D,job:I,subTree:Y,um:W,m:B,a:N}=h;So(B),So(N),j&&gn(j),D.stop(),I&&(I.flags|=8,ne(Y,h,b,A)),W&&Je(W,b),Je(()=>{h.isUnmounted=!0},b)},z=(h,b,A,j=!1,D=!1,I=0)=>{for(let Y=I;Y<h.length;Y++)ne(h[Y],b,A,j,D)},oe=h=>{if(h.shapeFlag&6)return oe(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const b=p(h.anchor||h.el),A=b&&b[ci];return A?p(A):b};let Ie=!1;const un=(h,b,A)=>{let j;h==null?b._vnode&&(ne(b._vnode,null,null,!0),j=b._vnode.component):_(b._vnode||null,h,b,null,null,null,A),b._vnode=h,Ie||(Ie=!0,Ul(j),ql(),Ie=!1)},Tt={p:_,um:ne,m:H,r:Te,mt:Le,mc:G,pc:E,pbc:K,n:oe,o:e};return{render:un,hydrate:void 0,createApp:Fi(un)}}function zn({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 qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $o(e,t,s=!1){const l=e.children,a=t.children;if(pe(l)&&pe(a))for(let o=0;o<l.length;o++){const i=l[o];let r=a[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=a[o]=kt(a[o]),r.el=i.el),!s&&r.patchFlag!==-2&&$o(i,r)),r.type===Js&&(r.patchFlag===-1&&(r=a[o]=kt(r)),r.el=i.el),r.type===ut&&!r.el&&(r.el=i.el)}}function Xi(e){const t=e.slice(),s=[0];let l,a,o,i,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(a=s[s.length-1],e[a]<g){t[l]=a,s.push(l);continue}for(o=0,i=s.length-1;o<i;)r=o+i>>1,e[s[r]]<g?o=r+1:i=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function ko(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ko(t)}function So(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Co(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Co(t.subTree):null}const To=e=>e.__isSuspense;let Wn=0;const Zi={name:"Suspense",__isSuspense:!0,process(e,t,s,l,a,o,i,r,c,g){if(e==null)er(t,s,l,a,o,i,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}tr(e,t,s,l,a,i,r,c,g)}},hydrate:sr,normalize:nr};function ks(e,t){const s=e.props&&e.props[t];ve(s)&&s()}function er(e,t,s,l,a,o,i,r,c){const{p:g,o:{createElement:v}}=c,m=v("div"),p=e.suspense=Eo(e,a,l,t,m,s,o,i,r,c);g(null,p.pendingBranch=e.ssContent,m,null,l,p,o,i),p.deps>0?(ks(e,"onPending"),ks(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,i),ls(p,e.ssFallback)):p.resolve(!1,!0)}function tr(e,t,s,l,a,o,i,r,{p:c,um:g,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const p=t.ssContent,x=t.ssFallback,{activeBranch:w,pendingBranch:_,isInFallback:P,isHydrating:R}=m;if(_)m.pendingBranch=p,Ft(_,p)?(c(_,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():P&&(R||(c(w,x,s,l,a,null,o,i,r),ls(m,x)))):(m.pendingId=Wn++,R?(m.isHydrating=!1,m.activeBranch=_):g(_,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),P?(c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():(c(w,x,s,l,a,null,o,i,r),ls(m,x))):w&&Ft(w,p)?(c(w,p,s,l,a,m,o,i,r),m.resolve(!0)):(c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0&&m.resolve()));else if(w&&Ft(w,p))c(w,p,s,l,a,m,o,i,r),ls(m,p);else if(ks(t,"onPending"),m.pendingBranch=p,p.shapeFlag&512?m.pendingId=p.component.suspenseId:m.pendingId=Wn++,c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0)m.resolve();else{const{timeout:M,pendingId:y}=m;M>0?setTimeout(()=>{m.pendingId===y&&m.fallback(x)},M):M===0&&m.fallback(x)}}function Eo(e,t,s,l,a,o,i,r,c,g,v=!1){const{p:m,m:p,um:x,n:w,o:{parentNode:_,remove:P}}=g;let R;const M=or(e);M&&t&&t.pendingBranch&&(R=t.pendingId,t.deps++);const y=e.props?ba(e.props.timeout):void 0,$=o,T={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:a,deps:0,pendingId:Wn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(Q=!1,V=!1){const{vnode:G,activeBranch:L,pendingBranch:K,pendingId:se,effects:be,parentComponent:Me,container:Le,isInFallback:Re}=T;let ge=!1;T.isHydrating?T.isHydrating=!1:Q||(ge=L&&K.transition&&K.transition.mode==="out-in",ge&&(L.transition.afterLeave=()=>{se===T.pendingId&&(p(K,Le,o===$?w(L):o,0),On(be),Re&&G.ssFallback&&(G.ssFallback.el=null))}),L&&(_(L.el)===Le&&(o=w(L)),x(L,Me,T,!0),!ge&&Re&&G.ssFallback&&Je(()=>G.ssFallback.el=null,T)),ge||p(K,Le,o,0)),ls(T,K),T.pendingBranch=null,T.isInFallback=!1;let de=T.parent,E=!1;for(;de;){if(de.pendingBranch){de.effects.push(...be),E=!0;break}de=de.parent}!E&&!ge&&On(be),T.effects=[],M&&t&&t.pendingBranch&&R===t.pendingId&&(t.deps--,t.deps===0&&!V&&t.resolve()),ks(G,"onResolve")},fallback(Q){if(!T.pendingBranch)return;const{vnode:V,activeBranch:G,parentComponent:L,container:K,namespace:se}=T;ks(V,"onFallback");const be=w(G),Me=()=>{T.isInFallback&&(m(null,Q,K,be,L,null,se,r,c),ls(T,Q))},Le=Q.transition&&Q.transition.mode==="out-in";Le&&(G.transition.afterLeave=Me),T.isInFallback=!0,x(G,L,null,!0),Le||Me()},move(Q,V,G){T.activeBranch&&p(T.activeBranch,Q,V,G),T.container=Q},next(){return T.activeBranch&&w(T.activeBranch)},registerDep(Q,V,G){const L=!!T.pendingBranch;L&&T.deps++;const K=Q.vnode.el;Q.asyncDep.catch(se=>{Yt(se,Q,0)}).then(se=>{if(Q.isUnmounted||T.isUnmounted||T.pendingId!==Q.suspenseId)return;Q.asyncResolved=!0;const{vnode:be}=Q;Gn(Q,se),K&&(be.el=K);const Me=!K&&Q.subTree.el;V(Q,be,_(K||Q.subTree.el),K?null:w(Q.subTree),T,i,G),Me&&(be.placeholder=null,P(Me)),Un(Q,be.el),L&&--T.deps===0&&T.resolve()})},unmount(Q,V){T.isUnmounted=!0,T.activeBranch&&x(T.activeBranch,s,Q,V),T.pendingBranch&&x(T.pendingBranch,s,Q,V)}};return T}function sr(e,t,s,l,a,o,i,r,c){const g=t.suspense=Eo(t,l,s,e.parentNode,document.createElement("div"),null,a,o,i,r,!0),v=c(e,g.pendingBranch=t.ssContent,s,g,o,i);return g.deps===0&&g.resolve(!1,!0),v}function nr(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Po(l?s.default:s),e.ssFallback=l?Po(s.fallback):me(ut)}function Po(e){let t;if(ve(e)){const s=os&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ge,Ao())}return pe(e)&&(e=Ni(e)),e=ct(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function lr(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):On(e)}function ls(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;s.el=a,l&&l.subTree===s&&(l.vnode.el=a,Un(l,a))}function or(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const U=Symbol.for("v-fgt"),Js=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),Qs=Symbol.for("v-stc"),Ss=[];let Ge=null;function u(e=!1){Ss.push(Ge=e?null:[])}function Ao(){Ss.pop(),Ge=Ss[Ss.length-1]||null}let os=1;function Gs(e,t=!1){os+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Mo(e){return e.dynamicChildren=os>0?Ge||Vt:null,Ao(),os>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,a,o){return Mo(n(e,t,s,l,a,o,!0))}function Xe(e,t,s,l,a){return Mo(me(e,t,s,l,a,!0))}function as(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const Ro=({key:e})=>e??null,Ys=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||je(e)||ve(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,a=null,o=e===U?0:1,i=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ro(t),ref:t&&Ys(t),scopeId:Vl,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:a,dynamicChildren:null,appContext:null,ctx:ze};return r?(Jn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Oe(s)?8:16),os>0&&!i&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const me=ar;function ar(e,t=null,s=null,l=0,a=null,o=!1){if((!e||e===Zl)&&(e=ut),as(e)){const r=is(e,t,!0);return s&&Jn(r,s),os>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(_r(e)&&(e=e.__vccOpts),t){t=ir(t);let{class:r,style:c}=t;r&&!Oe(r)&&(t.class=F(r)),Se(c)&&(Mn(c)&&!pe(c)&&(c=Ne({},c)),t.style=Ke(c))}const i=Oe(e)?1:To(e)?128:di(e)?64:Se(e)?4:ve(e)?2:0;return n(e,t,s,l,a,i,o,!0)}function ir(e){return e?Mn(e)||go(e)?Ne({},e):e:null}function is(e,t,s=!1,l=!1){const{props:a,ref:o,patchFlag:i,children:r,transition:c}=e,g=t?ur(a||{},t):a,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Ro(g),ref:t&&t.ref?s&&o?pe(o)?o.concat(Ys(t)):[o,Ys(t)]:Ys(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!==U?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&is(e.ssContent),ssFallback:e.ssFallback&&is(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Fn(v,c.clone(v)),v}function _e(e=" ",t=0){return me(Js,null,e,t)}function rr(e,t){const s=me(Qs,null,e);return s.staticCount=t,s}function te(e="",t=!1){return t?(u(),Xe(ut,null,e)):me(ut,null,e)}function ct(e){return e==null||typeof e=="boolean"?me(ut):pe(e)?me(U,null,e.slice()):as(e)?kt(e):me(Js,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:is(e)}function Jn(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 a=t.default;a&&(a._c&&(a._d=!1),Jn(e,a()),a._c&&(a._d=!0));return}else{s=32;const a=t._;!a&&!go(t)?t._ctx=ze:a===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=[_e(t)]):s=8);e.children=t,e.shapeFlag|=s}function ur(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const a in l)if(a==="class")t.class!==l.class&&(t.class=F([t.class,l.class]));else if(a==="style")t.style=Ke([t.style,l.style]);else if(As(a)){const o=t[a],i=l[a];i&&o!==i&&!(pe(o)&&o.includes(i))&&(t[a]=o?[].concat(o,i):i)}else a!==""&&(t[a]=l[a])}return t}function yt(e,t,s,l=null){pt(e,t,7,[s,l])}const cr=ro();let dr=0;function fr(e,t,s){const l=e.type,a=(t?t.appContext:e.appContext)||cr,o={uid:dr++,vnode:e,type:l,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ca(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:mo(l,a),emitsOptions:uo(l,a),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:l.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,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=Ii.bind(null,o),e.ce&&e.ce(o),o}let He=null;const hr=()=>He||ze;let Xs,Qn;{const e=Ls(),t=(s,l)=>{let a;return(a=e[s])||(a=e[s]=[]),a.push(l),o=>{a.length>1?a.forEach(i=>i(o)):a[0](o)}};Xs=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Qn=t("__VUE_SSR_SETTERS__",s=>rs=s)}const Cs=e=>{const t=He;return Xs(e),e.scope.on(),()=>{e.scope.off(),Xs(t)}},Lo=()=>{He&&He.scope.off(),Xs(null)};function Oo(e){return e.vnode.shapeFlag&4}let rs=!1;function pr(e,t=!1,s=!1){t&&Qn(t);const{props:l,children:a}=e.vnode,o=Oo(e);qi(e,l,o,t),Wi(e,a,s||t);const i=o?vr(e,t):void 0;return t&&Qn(!1),i}function vr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ei);const{setup:l}=s;if(l){ft();const a=e.setupContext=l.length>1?yr(e):null,o=Cs(e),i=Gt(l,e,0,[e.props,a]),r=dl(i);if(ht(),o(),(r||e.sp)&&!ss(e)&&Dn(e),r){if(i.then(Lo,Lo),t)return i.then(c=>{Gn(e,c)}).catch(c=>{Yt(c,e,0)});e.asyncDep=i}else Gn(e,i)}else Fo(e)}function Gn(e,t,s){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Il(t)),Fo(e)}function Fo(e,t,s){const l=e.type;e.render||(e.render=l.render||dt);{const a=Cs(e);ft();try{Pi(e)}finally{ht(),a()}}}const gr={get(e,t){return Ue(e,"get",""),e[t]}};function yr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,gr),slots:e.slots,emit:e.emit,expose:t}}function Yn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Il(Wa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in ws)return ws[s](e)},has(t,s){return s in t||s in ws}})):e.proxy}const mr=/(?:^|[-_])\w/g,br=e=>e.replace(mr,t=>t.toUpperCase()).replace(/[-_]/g,"");function Do(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Io(e,t,s=!1){let l=Do(t);if(!l&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(l=a[1])}if(!l&&e){const a=o=>{for(const i in o)if(o[i]===t)return i};l=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return l?br(l):s?"App":"Anonymous"}function _r(e){return ve(e)&&"__vccOpts"in e}const q=(e,t)=>Xa(e,t,rs);function us(e,t,s){try{Gs(-1);const l=arguments.length;return l===2?Se(t)&&!pe(t)?as(t)?me(e,null,[t]):me(e,t):me(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&as(s)&&(s=[s]),me(e,t,s))}finally{Gs(1)}}const xr="3.5.29";let Xn;const Bo=typeof window<"u"&&window.trustedTypes;if(Bo)try{Xn=Bo.createPolicy("vue",{createHTML:e=>e})}catch{}const No=Xn?e=>Xn.createHTML(e):e=>e,wr="http://www.w3.org/2000/svg",$r="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,jo=St&&St.createElement("template"),kr={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 a=t==="svg"?St.createElementNS(wr,e):t==="mathml"?St.createElementNS($r,e):s?St.createElement(e,{is:s}):St.createElement(e);return e==="select"&&l&&l.multiple!=null&&a.setAttribute("multiple",l.multiple),a},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,a,o){const i=s?s.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),s),!(a===o||!(a=a.nextSibling)););else{jo.innerHTML=No(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=jo.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[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Sr=Symbol("_vtc");function Cr(e,t,s){const l=e[Sr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Ho=Symbol("_vod"),Tr=Symbol("_vsh"),Er=Symbol(""),Pr=/(?:^|;)\s*display\s*:/;function Ar(e,t,s){const l=e.style,a=Oe(s);let o=!1;if(s&&!a){if(t)if(Oe(t))for(const i of t.split(";")){const r=i.slice(0,i.indexOf(":")).trim();s[r]==null&&Zs(l,r,"")}else for(const i in t)s[i]==null&&Zs(l,i,"");for(const i in s)i==="display"&&(o=!0),Zs(l,i,s[i])}else if(a){if(t!==s){const i=l[Er];i&&(s+=";"+i),l.cssText=s,o=Pr.test(s)}}else t&&e.removeAttribute("style");Ho in e&&(e[Ho]=o?l.display:"",e[Tr]&&(l.display="none"))}const Uo=/\s*!important$/;function Zs(e,t,s){if(pe(s))s.forEach(l=>Zs(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Mr(e,t);Uo.test(s)?e.setProperty(Et(l),s.replace(Uo,""),"important"):e[l]=s}}const qo=["Webkit","Moz","ms"],Zn={};function Mr(e,t){const s=Zn[t];if(s)return s;let l=st(t);if(l!=="filter"&&l in e)return Zn[t]=l;l=Rs(l);for(let a=0;a<qo.length;a++){const o=qo[a]+l;if(o in e)return Zn[t]=o}return t}const Ko="http://www.w3.org/1999/xlink";function Vo(e,t,s,l,a,o=ka(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Ko,t.slice(6,t.length)):e.setAttributeNS(Ko,t,s):s==null||o&&!gl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":at(s)?String(s):s)}function zo(e,t,s,l,a){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?No(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 i=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=gl(s):s==null&&r==="string"?(s="",i=!0):r==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(a||t)}function Rr(e,t,s,l){e.addEventListener(t,s,l)}function Lr(e,t,s,l){e.removeEventListener(t,s,l)}const Wo=Symbol("_vei");function Or(e,t,s,l,a=null){const o=e[Wo]||(e[Wo]={}),i=o[t];if(l&&i)i.value=l;else{const[r,c]=Fr(t);if(l){const g=o[t]=Br(l,a);Rr(e,r,g,c)}else i&&(Lr(e,r,i,c),o[t]=void 0)}}const Jo=/(?:Once|Passive|Capture)$/;function Fr(e){let t;if(Jo.test(e)){t={};let l;for(;l=e.match(Jo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Et(e.slice(2)),t]}let el=0;const Dr=Promise.resolve(),Ir=()=>el||(Dr.then(()=>el=0),el=Date.now());function Br(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;pt(Nr(l,s.value),t,5,[l])};return s.value=e,s.attached=Ir(),s}function Nr(e,t){if(pe(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>a=>!a._stopped&&l&&l(a))}else return t}const Qo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,jr=(e,t,s,l,a,o)=>{const i=a==="svg";t==="class"?Cr(e,l,i):t==="style"?Ar(e,s,l):As(t)?fn(t)||Or(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hr(e,t,l,i))?(zo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vo(e,t,l,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Oe(l))?zo(e,st(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Vo(e,t,l,i))};function Hr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Qo(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 a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Qo(t)&&Oe(s)?!1:t in e}const Ur=["ctrl","shift","alt","meta"],qr={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)=>Ur.some(s=>e[`${s}Key`]&&!t.includes(s))},mt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((a,...o)=>{for(let i=0;i<t.length;i++){const r=qr[t[i]];if(r&&r(a,t))return}return e(a,...o)}))},Kr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ts=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(a=>{if(!("key"in a))return;const o=Et(a.key);if(t.some(i=>i===o||Kr[i]===o))return e(a)}))},Vr=Ne({patchProp:jr},kr);let Go;function zr(){return Go||(Go=Qi(Vr))}const Wr=((...e)=>{const t=zr().createApp(...e),{mount:s}=t;return t.mount=l=>{const a=Qr(l);if(!a)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=s(a,!1,Jr(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t});function Jr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qr(e){return Oe(e)?document.querySelector(e):e}async function Gr(){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 Yr(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const i=await Gr();if(!i)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new i({baseUrl:e.baseUrl||window.location.origin,...e.authToken?{beforeSubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}},beforeUnsubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}}}:{}}),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(i){e.onError&&e.onError(i)}},unsubscribe:async()=>{l=!0;try{s&&(await s.delete(),s=null),t&&(t=null)}catch{}}}}function Xr(e){let t=!1;const s=Yr({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 en extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class Zr extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class tl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const a={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:a,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 en(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new Zr(o.status,i)}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 tn="ss-dash-theme",sl="ss-theme-change";function Es(){if(typeof window>"u")return"light";const e=localStorage.getItem(tn);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function eu(e){typeof window>"u"||(localStorage.setItem(tn,e),window.dispatchEvent(new CustomEvent(sl,{detail:e})))}function tu(){const t=Es()==="dark"?"light":"dark";return eu(t),t}function Yo(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===tn){const i=o.newValue;e(i==="dark"||i==="light"?i:Es())}},l=window.matchMedia("(prefers-color-scheme: dark)"),a=o=>{localStorage.getItem(tn)||e(o.matches?"dark":"light")};return window.addEventListener(sl,t),window.addEventListener("storage",s),l.addEventListener("change",a),()=>{window.removeEventListener(sl,t),window.removeEventListener("storage",s),l.removeEventListener("change",a)}}const su={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function nu(e){return{...su,...e}}let lu=0;function ou(){return`ss-grad-${lu++}`}function au(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let a=1;a<e.length;a++){const o=e[a];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function iu(e,t){if(e.length<2)return null;const s=nu(t),l=au(e),a=l.max-l.min||1,o=s.width-s.padding*2,i=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let _=0;_<c;_++){const P=r+_/(c-1)*o,R=r+i-(e[_]-l.min)/a*i;g[_]=`${P.toFixed(1)},${R.toFixed(1)}`}const v=g.join(" "),m=(r+o).toFixed(1),p=(r+i).toFixed(1),x=r.toFixed(1),w=`M${g[0]} `+g.slice(1).map(_=>`L${_}`).join(" ")+` L${m},${p} L${x},${p} Z`;return{points:v,areaPath:w,gradientId:ou(),options:s,stats:l}}const ru=5e3,Xo=1e4,Zo=100,uu=500;function cu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),a=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${a}m`:a>0?`${a}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 ea(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(ea(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(ea(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 sn(e){return e>uu?"very-slow":e>Zo?"slow":"normal"}function nn(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const l="["+e.slice(0,3).map(a=>nn(a,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return l.length>t?"["+e.length+" items]":l}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const l=[];for(let o=0;o<Math.min(s.length,4);o++)l.push(s[o]+": "+nn(e[s[o]],30));const a="{ "+l.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return a.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":a}return String(e)}function du(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 fu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function hu(e){const t=new URLSearchParams;if(e.page!==null&&e.page!==void 0&&t.set("page",String(e.page)),e.perPage!==null&&e.perPage!==void 0&&t.set("perPage",String(e.perPage)),e.search&&t.set("search",e.search),e.sort&&t.set("sort",e.sort),e.sortDir&&t.set("direction",e.sortDir),e.timeRange&&t.set("range",e.timeRange),e.filters)for(const[s,l]of Object.entries(e.filters))l&&t.set(s,l);return t.toString()}function pu(e,t,s=2){if(t<=1)return[1];const l=[],a=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),a>2&&l.push("...");for(let i=a;i<=o;i++)l.push(i);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const ta="/admin/api/debug",sa={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 vu(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function gu(e,t=ta){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function yu(e){const{baseUrl:t="",debugEndpoint:s=ta,authToken:l}=e,a=new tl({baseUrl:t,authToken:l});try{const o=await gu(a,s);return vu(o)}catch{return sa}}const mu={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function bu(e){return mu[e]||`/${e}`}class na{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const a=bu(t),o=s?`${this.basePath}${a}?${s}`:`${this.basePath}${a}`;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`)}}class _u{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 tl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new na(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(t&&this.explicitFetchPending)return;this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId,a=this.section;if(!a)return;const o=this.filters,i=this.sort?this.sort.replace(/[A-Z]/g,c=>"_"+c.toLowerCase()):void 0,r=hu({page:this.page,perPage:this.perPage,search:this.search,sort:i,sortDir:this.sort?this.sortDir:void 0,filters:o&&Object.keys(o).length>0?o:void 0,timeRange:a.startsWith("overview")?this.timeRange:void 0});t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0);try{const c=await this.api.fetchSection(a,r||void 0,{signal:s.signal});if(l!==this.fetchId||this.stopped)return;if(c&&typeof c=="object"&&c.data!==void 0&&c.meta!==void 0){const g=c;this.callbacks.onData(g.data),this.callbacks.onPagination(g.meta)}else this.callbacks.onData(c),this.callbacks.onPagination(null);this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}catch(c){if(c instanceof DOMException&&c.name==="AbortError"||s.signal.aborted||l!==this.fetchId||this.stopped)return;if(c instanceof en){this.callbacks.onError(c),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}t||(this.callbacks.onError(c instanceof Error?c:new Error(String(c))),this.callbacks.onLoading(!1))}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 a=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(a,l):await this.client.delete(a);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}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?ru:Xo;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Ae={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"/>']}},xu="ss-col-resize",la="ss-resizing";function wu(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function a(){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 i=function(c){c.preventDefault(),c.stopPropagation(),a();const g=c.clientX,v=o.offsetWidth;r.classList.add(la),r.setPointerCapture(c.pointerId);function m(x){const w=x.clientX-g,_=Math.max(30,v+w);o.style.width=_+"px"}function p(){r.classList.remove(la),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",p)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",p)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=xu,o.appendChild(r),r.addEventListener("pointerdown",i),s.push(()=>{r.removeEventListener("pointerdown",i),r.remove()})}return()=>{for(const o of s)o()}}const $u=["all","error","warn","info","debug"];function oa(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function ku(e){return e.msg||e.message||JSON.stringify(e)}function ln(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ps(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 Su(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 Cu=["all","active","waiting","delayed","completed","failed"];function Tu(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 Eu(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function Pu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function nl(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function aa(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ll(e,t,s,l=0){return e[t]??e[s]??l}function Au(e){return{method:e.method||"",url:e.url||"",statusCode:ll(e,"status_code","statusCode"),totalDuration:ll(e,"total_duration","totalDuration")||e.duration||0,spanCount:ll(e,"span_count","spanCount"),spans:nl(e.spans),warnings:aa(e.warnings)}}const Mu=["password","secret","token","key","credential","auth"];function Ru(e){const t=e.toLowerCase();return Mu.some(s=>t.includes(s))}function Lu(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 Ou={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Fu(e){return Ou[e]||e}const Du={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Iu(e){return Du[e]||e}function Bu(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Nu(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 ju(e){return Object.entries(e).map(([t,s])=>({key:t,value:Lu(s),secret:Ru(t)}))}function Hu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Uu=["healthy","active","connected","available","ready"],qu=["errored","unavailable"];function Ku(e){return Uu.includes(e)?"ok":qu.includes(e)?"err":""}function De(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function on(e,t=""){if(typeof e!="object"||e===null||e===void 0)return[{path:t,value:e}];if(Array.isArray(e)||De(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const a=t?`${t}.${l}`:l,o=e[l];typeof o=="object"&&o!==null&&!Array.isArray(o)&&!De(o)?s.push(...on(o,a)):s.push({path:a,value:o})}return s}function Vu(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 ia(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return 1;let t=0;for(const s of Object.keys(e))t+=ia(e[s]);return t}function zu(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return[];const t=[];for(const s of Object.keys(e)){const l=e[s];l!==null&&typeof l=="object"&&!Array.isArray(l)&&!De(l)&&t.push(s)}return t}function Wu(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 Ju(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,a=J({...sa}),o=J(!0);return Lt(async()=>{a.value=await yu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:a,loading:o}}function ra(){const e=J(Es());let t=null;function s(a){e.value=a}function l(){const a=tu();return e.value=a,a}return Lt(()=>{e.value=Es(),t=Yo(s)}),Ot(()=>{t?.()}),{theme:e,toggleTheme:l}}function Ze(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:a,perPage:o=50,refreshKey:i}=t,r=J(null),c=J(!1),g=J(null),v=J(!1),m=J("1h"),p=Jt({page:1,perPage:o,total:0,totalPages:1}),x=Jt({search:""}),w=Jt({column:"",direction:"desc"}),_=new _u({baseUrl:s,endpoint:l,authToken:a,section:e(),perPage:o,callbacks:{onData:S=>{P=S},onPagination:S=>{S?(p.total=S.total,p.totalPages=S.lastPage??(Math.ceil(S.total/p.perPage)||1),r.value={data:P,meta:S}):r.value=P},onLoading:S=>{c.value=S},onError:S=>{g.value=S},onUnauthorized:()=>{v.value=!0}}});let P=null;const R=_.getApi();async function M(S){try{return await R.fetchChart(S)}catch(H){return H instanceof en&&(v.value=!0),null}}async function y(){try{return await R.fetchGroupedQueries()}catch{return null}}async function $(S){try{return await R.explainQuery(S)}catch{return null}}async function T(S){try{return await R.retryJob(S),!0}catch{return!1}}async function Q(S){try{return await R.deleteCacheKey(S),!0}catch{return!1}}async function V(S){try{return(await R.fetchEmailPreview(S))?.html||null}catch{return null}}function G(S){p.page=S,C()}function L(S){x.search=S,p.page=1,C()}function K(S,H){x[S]=H,p.page=1,C()}function se(S,H){w.column===S&&!H?w.direction=w.direction==="asc"?"desc":"asc":(w.column=S,w.direction=H||"desc"),C()}function be(S){m.value=S,C()}async function Me(S,H="post",ne){return _.mutate(S,H,ne)}function Le(){E(),_.fetch(!0)}function Re(){_.start()}function ge(){_.stop()}function de(){const S={};for(const[H,ne]of Object.entries(x))H!=="search"&&ne!==""&&ne!==void 0&&ne!==null&&(S[H]=String(ne));return S}function E(){const S=e(),H=de();_.configure({page:p.page,perPage:p.perPage,search:x.search||void 0,sort:w.column||void 0,sortDir:w.column?w.direction:void 0,filters:Object.keys(H).length>0?H:void 0,timeRange:S.startsWith("overview")?m.value:void 0})}function C(){E(),_.fetch(!1)}return gt(e,()=>{p.page=1;for(const S of Object.keys(x))S==="search"?x.search="":delete x[S];w.column="",r.value=null,_.setSection(e()),E()}),i&&gt(i,()=>{E(),_.handleRefreshSignal()}),Lt(()=>{E(),_.start()}),Ot(()=>{_.stop()}),{data:r,loading:c,error:g,isUnauthorized:v,pagination:p,filter:x,sort:w,timeRange:m,goToPage:G,setSearch:L,setFilter:K,setSort:se,setTimeRange:be,refresh:Le,startRefresh:Re,stopRefresh:ge,mutate:Me,fetchChart:M,fetchGroupedQueries:y,explainQuery:$,retryJob:T,deleteCacheKey:Q,fetchEmailPreview:V}}const Qu=["title","aria-label"],Gu=["viewBox","innerHTML"],Yu=["viewBox","innerHTML"],Xu=Fe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=ra(),a=q(()=>s.value==="dark"),o=q(()=>a.value?"Switch to light theme":"Switch to dark theme"),i=q(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:F(i.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>k(l)&&k(l)(...g))},[a.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:k(Ae).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:k(Ae).sun.elements.join("")},null,8,Gu)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:k(Ae).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:k(Ae).moon.elements.join("")},null,8,Yu))],10,Qu))}}),Zu=["data-theme"],ec={class:"ss-dash-header"},tc={class:"ss-dash-header-center"},sc={class:"ss-dash-header-right"},nc=["href"],lc={class:"ss-dash-body"},oc={class:"ss-dash-nav"},ac=["data-ss-section","onClick","title"],ic={class:"ss-dash-nav-icon"},rc=["viewBox","innerHTML"],uc={class:"ss-dash-nav-label"},cc={key:0,class:"ss-dash-nav-sep"},dc=["onClick","title"],fc={class:"ss-dash-nav-icon"},hc=["viewBox","innerHTML"],pc={class:"ss-dash-nav-label"},vc=["title"],gc=["viewBox","innerHTML"],yc=["viewBox","innerHTML"],mc={class:"ss-dash-main"},bc=["id"],_c={class:"ss-dash-pane-inner"},xc={key:1,class:"ss-dash-empty"},wc=Fe({__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=lt(()=>Promise.resolve().then(()=>Af)),s=lt(()=>Promise.resolve().then(()=>mh)),l=lt(()=>Promise.resolve().then(()=>Zh)),a=lt(()=>Promise.resolve().then(()=>ap)),o=lt(()=>Promise.resolve().then(()=>vp)),i=lt(()=>Promise.resolve().then(()=>Fp)),r=lt(()=>Promise.resolve().then(()=>Xp)),c=lt(()=>Promise.resolve().then(()=>fv)),g=lt(()=>Promise.resolve().then(()=>Lv)),v=lt(()=>Promise.resolve().then(()=>ng)),m=lt(()=>Promise.resolve().then(()=>Rg)),p=lt(()=>Promise.resolve().then(()=>h1)),x=["overview","requests","queries","events","routes","logs","emails","timeline","cache","jobs","config","internals"],w=e,{theme:_}=ra(),{features:P}=Ju({baseUrl:w.baseUrl,debugEndpoint:w.debugEndpoint,authToken:w.authToken}),R=J("overview"),M=J(!1),y=J(!1),$=J(0);ts("ss-refresh-key",$),ts("ss-base-url",w.baseUrl),ts("ss-dashboard-endpoint",w.dashboardEndpoint),ts("ss-debug-endpoint",w.debugEndpoint),ts("ss-auth-token",w.authToken),typeof window<"u"&&(M.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let T=null;function Q(){if(T&&(T(),T=null),!w.channelName)return;T=Xr({baseUrl:w.baseUrl,channelName:w.channelName,authToken:w.authToken,onMessage:()=>{$.value+=1},onConnect:()=>{y.value=!0},onDisconnect:()=>{y.value=!1},onError:()=>{y.value=!1}}).unsubscribe}Lt(()=>{Q()}),Ot(()=>{T&&(T(),T=null)});const V=q(()=>P.value.customPanes||[]);function G(S){const H=S.replace("#","").split("?")[0];return H&&[...x,...V.value.map(Te=>Te.id)].includes(H)?H:"overview"}function L(){const S=G(window.location.hash);S!==R.value&&(R.value=S)}Lt(()=>{if(typeof window>"u")return;const S=G(window.location.hash);(S!=="overview"||window.location.hash)&&(R.value=S),window.addEventListener("hashchange",L)}),Ot(()=>{window.removeEventListener("hashchange",L)}),gt(R,S=>{typeof window<"u"&&(window.location.hash=S)});function K(){M.value=!M.value,localStorage.setItem("ss-dash-sidebar",M.value?"collapsed":"expanded")}function se(S){S!==R.value&&(R.value=S)}const be=q(()=>[{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:"timeline",label:"Timeline",visible:P.value.tracing},{id:"cache",label:"Cache",visible:P.value.cache},{id:"jobs",label:"Jobs",visible:P.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),Me=q(()=>be.value.filter(S=>S.visible)),{data:Le}=Ze(()=>"overview",{baseUrl:w.baseUrl,dashboardEndpoint:w.dashboardEndpoint,authToken:w.authToken,refreshKey:$}),Re=q(()=>Le.value),ge=q(()=>{const S={};if(!Re.value)return S;if(Re.value.totalRequests>0&&(S.requests={count:Re.value.totalRequests}),Re.value.queryStats?.total>0&&(S.queries={count:Re.value.queryStats.total}),Re.value.logLevelBreakdown){const H=Re.value.logLevelBreakdown,ne=H.error+H.warn+H.info+H.debug;ne>0&&(S.logs={count:ne})}return S}),de={overview:t,requests:s,queries:l,events:a,routes:o,logs:i,emails:r,timeline:c,cache:g,jobs:v,config:m,internals:p},E=q(()=>de[R.value]||null);function C(S){return S==="timeline"?"dashboard-timeline":S}return(S,H)=>(u(),d("div",{class:"ss-dash","data-theme":k(_),id:"ss-dash"},[n("div",ec,[H[0]||(H[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:F(["ss-dash-live-dot",{"ss-dash-connected":y.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:F(["ss-dash-live-label",{"ss-dash-connected":y.value}]),id:"ss-dash-live-label"},f(y.value?"Live":"Polling"),3)]),n("div",sc,[me(Xu,{"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,nc)):te("",!0)])]),n("div",lc,[n("div",{class:F(["ss-dash-sidebar",{"ss-dash-collapsed":M.value}]),id:"ss-dash-sidebar"},[n("nav",oc,[(u(!0),d(U,null,ye(Me.value,ne=>(u(),d("button",{key:ne.id,type:"button",class:F(["ss-dash-nav-item",{"ss-dash-active":R.value===ne.id}]),"data-ss-section":ne.id,onClick:Te=>se(ne.id),title:M.value?ne.label:void 0},[n("span",ic,[(u(),d("svg",{width:"20",height:"20",viewBox:(k(Ae)[C(ne.id)]||k(Ae).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(k(Ae)[C(ne.id)]||k(Ae).config).elements.join("")},null,8,rc))]),n("span",uc,f(ne.label),1),ge.value[ne.id]&&ge.value[ne.id].count>0?(u(),d("span",{key:0,class:F(["ss-dash-nav-badge",ge.value[ne.id].variant||""])},f(ge.value[ne.id].count),3)):te("",!0)],10,ac))),128)),V.value.length>0?(u(),d("div",cc)):te("",!0),(u(!0),d(U,null,ye(V.value,ne=>(u(),d("button",{key:ne.id,type:"button",class:F(["ss-dash-nav-item",{"ss-dash-active":R.value===ne.id}]),onClick:Te=>se(ne.id),title:M.value?ne.label:void 0},[n("span",fc,[(u(),d("svg",{width:"20",height:"20",viewBox:k(Ae)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:k(Ae)["custom-pane"].elements.join("")},null,8,hc))]),n("span",pc,f(ne.label),1)],10,dc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:K,title:M.value?"Expand sidebar":"Collapse sidebar"},[M.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:k(Ae)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:k(Ae)["chevron-right"].elements.join("")},null,8,gc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:k(Ae)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:k(Ae)["chevron-left"].elements.join("")},null,8,yc))],8,vc)],2),n("div",mc,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${R.value}`},[n("div",_c,[(u(),Xe(Zi,null,{fallback:es(()=>[...H[1]||(H[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:es(()=>[E.value?(u(),Xe(Si(E.value),{key:0})):(u(),d("div",xc,"Unknown section"))]),_:1}))])],8,bc)])])],8,Zu))}});function $c(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function kc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Es()),Yo(e)}const cs=$c("ss-dash-config");kc();const ua=document.getElementById("ss-dash");ua&&Wr(wc,{baseUrl:cs.baseUrl,dashboardEndpoint:cs.dashboardEndpoint,debugEndpoint:cs.debugEndpoint,authToken:cs.authToken,backUrl:cs.backUrl,channelName:cs.channelName}).mount(ua);const Sc=["width","height","viewBox"],Cc=["id"],Tc=["stop-color"],Ec=["stop-color"],Pc=["d","fill"],Ac=["d","stroke"],Mc=["x","y"],an=Fe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=q(()=>iu(t.data,{width:t.width,height:t.height,color:t.color})),l=q(()=>s.value!==null),a=q(()=>`sg-${t.color.replace("#","")}`);return(o,i)=>(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(U,{key:0},[n("defs",null,[n("linearGradient",{id:a.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Tc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Ec)],8,Cc)]),n("path",{d:s.value.areaPath,fill:`url(#${a.value})`},null,8,Pc),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,Ac)],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,Mc))],8,Sc))],4))}}),Rc={class:"ss-dash-btn-group"},Lc=["onClick"],Oc=Fe({__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(a,o)=>(u(),d("div",Rc,[(u(),d(U,null,ye(l,i=>n("button",{key:i.value,type:"button",class:F(`ss-dash-btn ${e.modelValue===i.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",i.value)},f(i.label),11,Lc)),64))]))}}),Fc={class:"ss-dash-overview"},Dc={key:0,class:"ss-dash-empty"},Ic={class:"ss-dash-cards"},Bc={class:"ss-dash-card"},Nc={class:"ss-dash-sparkline"},jc={class:"ss-dash-card"},Hc={class:"ss-dash-sparkline"},Uc={class:"ss-dash-card"},qc={class:"ss-dash-sparkline"},Kc={class:"ss-dash-card"},Vc={class:"ss-dash-sparkline"},zc={class:"ss-dash-chart-container"},Wc={class:"ss-dash-chart-header"},Jc={class:"ss-dash-chart",id:"ss-dash-chart-area"},Qc={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Gc=["viewBox"],Yc=["id"],Xc=["id"],Zc=["x1","y1","x2","y2"],ed=["x","y"],td=["d","fill"],sd=["d"],nd=["d","fill"],ld=["d"],od=["x","y","width","height","data-idx","onMouseenter"],ad=["cx","cy","r","data-idx","opacity"],id=["cx","cy","r","data-idx","opacity"],rd=["x","y"],ud={key:0,style:{color:"var(--ss-red-fg)"}},cd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},dd={key:0,class:"ss-dash-chart-legend-item"},fd={class:"ss-dash-secondary-cards"},hd={class:"ss-dash-secondary-card"},pd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},vd={key:1,class:"ss-dash-secondary-list"},gd=["href"],yd=["title"],md={class:"ss-dash-secondary-card"},bd={class:"ss-dash-secondary-list"},_d={class:"ss-dash-secondary-list-value"},xd={class:"ss-dash-secondary-list-value"},wd={class:"ss-dash-secondary-list-value"},$d={class:"ss-dash-secondary-card"},kd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Sd={key:1,class:"ss-dash-secondary-list"},Cd=["href"],Td=["title"],Ed=["title"],Pd={class:"ss-dash-secondary-card"},Ad={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Md={key:1,class:"ss-dash-secondary-list"},Rd=["href"],Ld={class:"ss-dash-secondary-list-value"},Od={class:"ss-dash-secondary-card"},Fd={class:"ss-dash-secondary-list"},Dd={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Id={class:"ss-dash-secondary-list-value"},Bd={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Nd={class:"ss-dash-secondary-list-value"},jd={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Hd={class:"ss-dash-secondary-card"},Ud={class:"ss-dash-secondary-list"},qd={href:"#logs?level=error",class:"ss-dash-widget-row-link"},Kd={class:"ss-dash-secondary-list-value"},Vd={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},zd={class:"ss-dash-secondary-list-value"},Wd={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Jd={class:"ss-dash-secondary-list-value"},Qd={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Gd={class:"ss-dash-secondary-list-value"},Yd={key:0,class:"ss-dash-secondary-card"},Xd={class:"ss-dash-secondary-list"},Zd={href:"#cache",class:"ss-dash-widget-row-link"},ef={class:"ss-dash-secondary-list-value"},tf={href:"#cache",class:"ss-dash-widget-row-link"},sf={class:"ss-dash-secondary-list-value"},nf={href:"#cache",class:"ss-dash-widget-row-link"},lf={class:"ss-dash-secondary-list-value"},of={key:1,class:"ss-dash-secondary-card"},af={class:"ss-dash-secondary-list"},rf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},uf={class:"ss-dash-secondary-list-value"},cf={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},df={class:"ss-dash-secondary-list-value"},ff={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},hf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},pf={class:"ss-dash-secondary-list-value"},vf={class:"ss-dash-secondary-card"},gf={class:"ss-dash-secondary-list"},yf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},mf={class:"ss-dash-secondary-list-value"},bf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},_f={class:"ss-dash-secondary-list-value"},xf={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},wf={class:"ss-dash-secondary-list-value"},$f={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},Sf={class:"ss-dash-secondary-card"},Cf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Tf={key:1,class:"ss-dash-secondary-list"},Ef=["href"],Pf=["title"],ol=220,ca=120,Af=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,a]of t)s[l]=a;return s})(Fe({__name:"OverviewSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-base-url",""),l=re("ss-dashboard-endpoint","/__stats/api"),a=re("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),i=J("1h"),{data:r,loading:c}=Ze(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),{data:g,setTimeRange:v}=Ze(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});gt(i,Z=>{v(Z)});const m=q(()=>r.value),p=q(()=>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:[]}),x=q(()=>p.value),w=q(()=>p.value.avgResponseTime||Number(x.value.avg_response_time)||0),_=q(()=>p.value.p95ResponseTime||Number(x.value.p95_response_time)||0),P=q(()=>p.value.requestsPerMinute||Number(x.value.requests_per_minute)||0),R=q(()=>p.value.errorRate||Number(x.value.error_rate)||0),M=q(()=>p.value.totalRequests||Number(x.value.total_requests)||0),y=q(()=>M.value>0),$=q(()=>g.value?.buckets||[]),T=q(()=>p.value.sparklines?.avgResponseTime??$.value.map(Z=>Z.avgDuration??0)),Q=q(()=>p.value.sparklines?.p95ResponseTime??$.value.map(Z=>Z.p95Duration??0)),V=q(()=>p.value.sparklines?.requestsPerMinute??$.value.map(Z=>Z.requestCount??0)),G=q(()=>p.value.sparklines?.errorRate??$.value.map(Z=>Z.errorCount??0)),L=q(()=>`ss-cg-total-${o}`),K=q(()=>`ss-cg-error-${o}`);function se(Z,O){if(Z<=0)return[0];const le=Z/O,fe=Math.pow(10,Math.floor(Math.log10(le))),ot=le/fe;let tt;ot<=1?tt=fe:ot<=2?tt=2*fe:ot<=5?tt=5*fe:tt=10*fe;const cn=[];for(let il=tt;il<=Z+tt*.5;il+=tt)cn.push(Math.round(il));return cn.length===0&&cn.push(Math.ceil(Z)),cn}function be(Z){try{return new Date(Z).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Me(Z){if(Z.length===0)return"";if(Z.length===1)return`M${Z[0].x},${Z[0].y}`;let O=`M${Z[0].x.toFixed(1)},${Z[0].y.toFixed(1)}`;for(let le=0;le<Z.length-1;le++){const fe=Z[le],ot=Z[le+1],tt=(fe.x+ot.x)/2;O+=` C${tt.toFixed(1)},${fe.y.toFixed(1)} ${tt.toFixed(1)},${ot.y.toFixed(1)} ${ot.x.toFixed(1)},${ot.y.toFixed(1)}`}return O}function Le(Z){const O=sn(Z);return O==="very-slow"?"ss-dash-very-slow":O==="slow"?"ss-dash-slow":""}const Re=J(null),ge=J(0);let de=null;gt(Re,Z=>{de?.disconnect(),de=null,Z&&(ge.value=Z.clientWidth,de=new ResizeObserver(O=>{for(const le of O)ge.value=le.contentRect.width}),de.observe(Z))}),Ot(()=>{de?.disconnect()});const E={top:12,right:12,bottom:28,left:38},C=q(()=>ge.value||600),S=q(()=>C.value-E.left-E.right),H=q(()=>ol-E.top-E.bottom),ne=q(()=>E.top+H.value),Te=q(()=>$.value.map(Z=>{const O=Z;return(Z.requestCount??0)+(Number(O.request_count)||0)||Z.total||0})),X=q(()=>$.value.map(Z=>{const O=Z;return(Z.errorCount??0)+(Number(O.error_count)||0)})),ie=q(()=>Math.max(...Te.value,1)),z=q(()=>Math.ceil(ie.value*1.1)),oe=q(()=>X.value.some(Z=>Z>0)),Ie=q(()=>se(z.value,4)),un=q(()=>Ie.value.length>0?Ie.value[Ie.value.length-1]:z.value);function Tt(Z){return E.left+Z/Math.max($.value.length-1,1)*S.value}function ds(Z){return E.top+H.value-Z/(un.value||1)*H.value}const h=q(()=>$.value.map((Z,O)=>({x:Tt(O),y:ds(Te.value[O])}))),b=q(()=>$.value.map((Z,O)=>({x:Tt(O),y:ds(X.value[O])}))),A=q(()=>Me(h.value)),j=q(()=>oe.value?Me(b.value):""),D=q(()=>h.value.length>1?`${A.value} L${h.value[h.value.length-1].x.toFixed(1)},${ne.value} L${h.value[0].x.toFixed(1)},${ne.value} Z`:""),I=q(()=>oe.value&&b.value.length>1?`${j.value} L${b.value[b.value.length-1].x.toFixed(1)},${ne.value} L${b.value[0].x.toFixed(1)},${ne.value} Z`:""),Y=q(()=>Math.min(10,$.value.length)),W=q(()=>Math.max(1,Math.ceil($.value.length/Y.value))),B=J({visible:!1,x:0,idx:-1});function N(Z){const O=h.value[Z].x;B.value={visible:!0,x:O,idx:Z}}function ce(){B.value={visible:!1,x:0,idx:-1}}const ee=q(()=>B.value.visible?Math.max(ca/2,Math.min(B.value.x,C.value-ca/2)):0),ae=q(()=>S.value/($.value.length||1));function he(Z){return Z%W.value===0||Z===$.value.length-1}function xe(){return y.value?w.value>500?"ss-dash-red":w.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ce(){return y.value?_.value>500?"ss-dash-red":_.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function $e(){return y.value?"ss-dash-accent":"ss-dash-dim"}function qe(){return y.value?R.value>5?"ss-dash-red":R.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(Z){return Z.url||Z.pattern||"-"}function et(Z){return Z.name||Z.eventName||Z.event_name||Z.event||""}function Ye(Z){return Z.sqlNormalized||Z.normalizedSql||Z.sql_normalized||Z.sql||"-"}return(Z,O)=>(u(),d("div",Fc,[k(c)&&!m.value?(u(),d("div",Dc,"Loading overview...")):(u(),d(U,{key:1},[n("div",Ic,[n("div",Bc,[O[1]||(O[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:F(["ss-dash-card-value",xe()])},f(y.value?k(Dt)(w.value):"-"),3),n("div",Nc,[me(an,{data:T.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",jc,[O[2]||(O[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:F(["ss-dash-card-value",Ce()])},f(y.value?k(Dt)(_.value):"-"),3),n("div",Hc,[me(an,{data:Q.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Uc,[O[3]||(O[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:F(["ss-dash-card-value",$e()])},f(y.value?P.value.toFixed(1):"-"),3),n("div",qc,[me(an,{data:V.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Kc,[O[4]||(O[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:F(["ss-dash-card-value",qe()])},f(y.value?`${R.value.toFixed(1)}%`:"-"),3),n("div",Vc,[me(an,{data:G.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",zc,[n("div",Wc,[O[5]||(O[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),me(Oc,{"model-value":i.value,"onUpdate:modelValue":O[0]||(O[0]=le=>i.value=le)},null,8,["model-value"])]),n("div",Jc,[$.value.length===0?(u(),d("div",Qc," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:Re,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${C.value} ${ol}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:L.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[6]||(O[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,Yc),n("linearGradient",{id:K.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[7]||(O[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,Xc)]),(u(!0),d(U,null,ye(Ie.value,le=>(u(),d("g",{key:`ytick-${le}`},[n("line",{x1:E.left,y1:ds(le),x2:C.value-E.right,y2:ds(le),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Zc),n("text",{x:E.left-6,y:ds(le),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},f(le),9,ed)]))),128)),D.value?(u(),d("path",{key:0,d:D.value,fill:`url(#${L.value})`},null,8,td)):te("",!0),A.value?(u(),d("path",{key:1,d:A.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,sd)):te("",!0),I.value?(u(),d("path",{key:2,d:I.value,fill:`url(#${K.value})`},null,8,nd)):te("",!0),j.value?(u(),d("path",{key:3,d:j.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,ld)):te("",!0),(u(!0),d(U,null,ye($.value,(le,fe)=>(u(),d("g",{key:fe},[n("rect",{x:h.value[fe].x-ae.value/2,y:E.top,width:ae.value,height:H.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":fe,onMouseenter:ot=>N(fe),onMouseleave:ce},null,40,od),Te.value[fe]>0?(u(),d("circle",{key:0,cx:h.value[fe].x,cy:h.value[fe].y,r:B.value.visible&&B.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:B.value.visible&&B.value.idx!==fe?.3:1},null,8,ad)):te("",!0),X.value[fe]>0?(u(),d("circle",{key:1,cx:h.value[fe].x,cy:b.value[fe].y,r:B.value.visible&&B.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:B.value.visible&&B.value.idx!==fe?.3:1},null,8,id)):te("",!0)]))),128)),(u(!0),d(U,null,ye($.value,(le,fe)=>(u(),d(U,{key:`xlabel-${fe}`},[he(fe)&&be(le.bucket)?(u(),d("text",{key:0,x:Tt(fe),y:ol-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},f(be(le.bucket)),9,rd)):te("",!0)],64))),128))],8,Gc)),B.value.visible&&B.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:ee.value+"px",top:E.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,f(be($.value[B.value.idx].bucket)),1),n("div",null,"Requests: "+f(Te.value[B.value.idx]),1),X.value[B.value.idx]>0?(u(),d("div",ud," Errors: "+f(X.value[B.value.idx]),1)):te("",!0)],4)):te("",!0)],512))]),n("div",cd,[O[9]||(O[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),_e(" Requests ")],-1)),$.value.some(le=>(le.errorCount??0)>0)?(u(),d("span",dd,[...O[8]||(O[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),_e(" Errors ",-1)])])):te("",!0)])]),n("div",fd,[n("div",hd,[O[10]||(O[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),p.value.slowestEndpoints.length===0?(u(),d("div",pd," No data yet ")):(u(),d("ul",vd,[(u(!0),d(U,null,ye(p.value.slowestEndpoints.slice(0,5),(le,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#requests?url=${encodeURIComponent(Be(le))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(le)},f(Be(le)),9,yd),n("span",{class:F(["ss-dash-secondary-list-value","ss-dash-duration",Le(le.avgDuration)])},f(k(Dt)(le.avgDuration)),3)],8,gd)]))),128))]))]),n("div",md,[O[14]||(O[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",bd,[n("li",null,[O[11]||(O[11]=n("span",null,"Total Queries",-1)),n("span",_d,f(p.value.queryStats.total),1)]),n("li",null,[O[12]||(O[12]=n("span",null,"Avg Duration",-1)),n("span",xd,f(k(Dt)(p.value.queryStats.avgDuration)),1)]),n("li",null,[O[13]||(O[13]=n("span",null,"Queries / Request",-1)),n("span",wd,f(p.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",$d,[O[15]||(O[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),p.value.recentErrors.length===0?(u(),d("div",kd," No recent errors ")):(u(),d("ul",Sd,[(u(!0),d(U,null,ye(p.value.recentErrors,(le,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#logs?id=${le.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:le.message},f(le.message),9,Td),le.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:k(It)(le.timestamp)},f(k(bt)(le.timestamp)),9,Ed)):te("",!0)],8,Cd)]))),128))]))]),n("div",Pd,[O[16]||(O[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),p.value.topEvents.length===0?(u(),d("div",Ad," No events yet ")):(u(),d("ul",Md,[(u(!0),d(U,null,ye(p.value.topEvents.slice(0,5),(le,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#events?event_name=${encodeURIComponent(et(le))}`,class:"ss-dash-widget-row-link"},[n("span",null,f(et(le)),1),n("span",Ld,f(le.count),1)],8,Rd)]))),128))]))]),n("div",Od,[O[20]||(O[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",Fd,[n("li",null,[n("a",Dd,[O[17]||(O[17]=n("span",null,"Sent",-1)),n("span",Id,f(p.value.emailActivity.sent),1)])]),n("li",null,[n("a",Bd,[O[18]||(O[18]=n("span",null,"Queued",-1)),n("span",Nd,f(p.value.emailActivity.queued),1)])]),n("li",null,[n("a",jd,[O[19]||(O[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(p.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},f(p.value.emailActivity.failed),5)])])])]),n("div",Hd,[O[25]||(O[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Ud,[n("li",null,[n("a",qd,[O[21]||(O[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",Kd,f(p.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Vd,[O[22]||(O[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",zd,f(p.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Wd,[O[23]||(O[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Jd,f(p.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",Qd,[O[24]||(O[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Gd,f(p.value.logLevelBreakdown.debug),1)])])])]),p.value.cacheStats&&p.value.cacheStats.available?(u(),d("div",Yd,[O[29]||(O[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Xd,[n("li",null,[n("a",Zd,[O[26]||(O[26]=n("span",null,"Keys",-1)),n("span",ef,f(p.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",tf,[O[27]||(O[27]=n("span",null,"Hit Rate",-1)),n("span",sf,f(p.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",nf,[O[28]||(O[28]=n("span",null,"Memory",-1)),n("span",lf,f(p.value.cacheStats.memoryUsedHuman),1)])])])])):te("",!0),p.value.jobQueueStatus&&p.value.jobQueueStatus.available?(u(),d("div",of,[O[34]||(O[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",af,[n("li",null,[n("a",rf,[O[30]||(O[30]=n("span",null,"Active",-1)),n("span",uf,f(p.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",cf,[O[31]||(O[31]=n("span",null,"Waiting",-1)),n("span",df,f(p.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",ff,[O[32]||(O[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(p.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},f(p.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",hf,[O[33]||(O[33]=n("span",null,"Completed",-1)),n("span",pf,f(p.value.jobQueueStatus.completed),1)])])])])):te("",!0),n("div",vf,[O[39]||(O[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",gf,[n("li",null,[n("a",yf,[O[35]||(O[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",mf,f(p.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",bf,[O[36]||(O[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",_f,f(p.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",xf,[O[37]||(O[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",wf,f(p.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",$f,[O[38]||(O[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",kf,f(p.value.statusDistribution["5xx"]),1)])])])]),n("div",Sf,[O[40]||(O[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),p.value.slowestQueries.length===0?(u(),d("div",Cf," No query data yet ")):(u(),d("ul",Tf,[(u(!0),d(U,null,ye(p.value.slowestQueries.slice(0,5),(le,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(le))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(le)},f(Ye(le)),9,Pf),n("span",{class:F(["ss-dash-secondary-list-value","ss-dash-duration",Le(le.avgDuration)])},f(k(Dt)(le.avgDuration)),3)],8,Ef)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-1e96b18b"]])},Symbol.toStringTag,{value:"Module"}));function rn(e="",t){let s=null;return function(){return s||(s=new tl({baseUrl:e,authToken:t})),s}}function Bt(e){const t=J(null);let s=null;function l(){s&&s(),s=null,jl(()=>{t.value&&(s=wu(t.value))})}return e&&gt(e,l),Lt(l),Xl(()=>{s&&s(),s=null}),{tableRef:t}}const Mf={class:"ss-dash-filter-bar"},Rf={key:0,class:"ss-dash-summary"},Lf={class:"ss-dash-search-wrapper"},Of=["viewBox","innerHTML"],Ff=["value","placeholder"],Df={key:1,class:"ss-dash-filter-controls"},Ct=Fe({__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 a(){s("update:modelValue",""),s("clear")}return(o,i)=>(u(),d("div",Mf,[e.summary?(u(),d("span",Rf,f(e.summary),1)):te("",!0),n("div",Lf,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:k(Ae).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:k(Ae).search.elements.join("")},null,8,Of)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,Ff),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:a}," × ")):te("",!0)]),o.$slots.default?(u(),d("div",Df,[Ti(o.$slots,"default")])):te("",!0)]))}}),If={key:0,class:"ss-dash-pagination"},Bf={class:"ss-dash-page-info"},Nf={class:"ss-dash-pagination-controls"},jf=["disabled"],Hf={key:0,class:"ss-dash-page-ellipsis"},Uf=["onClick"],qf=["disabled"],Kt=Fe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,a=q(()=>pu(s.page,s.lastPage));return(o,i)=>e.lastPage>1?(u(),d("div",If,[n("span",Bf," Page "+f(e.page)+" of "+f(e.lastPage)+" ("+f(e.total)+" total) ",1),n("div",Nf,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:i[0]||(i[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,jf),(u(!0),d(U,null,ye(a.value,(r,c)=>(u(),d(U,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",Hf,"...")):(u(),d("button",{key:1,type:"button",class:F(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},f(r),11,Uf))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:i[1]||(i[1]=r=>l("pageChange",e.page+1))}," Next » ",8,qf)])])):te("",!0)}}),Kf={key:0,class:"ss-dash-empty"},Vf={class:"ss-dash-tl-legend"},zf=["title"],Wf={class:"ss-dash-tl-track"},Jf=["title"],Qf={class:"ss-dash-tl-dur"},Gf={key:0,class:"ss-dash-tl-warnings"},Yf={class:"ss-dash-tl-warnings-title"},da=Fe({__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"},a=q(()=>t.spans||[]),o=q(()=>[...a.value].sort((x,w)=>x.startOffset-w.startOffset)),i=q(()=>{const x={};for(const w of o.value)x[w.id]=w.parentId?(x[w.parentId]||0)+1:0;return x});function r(x){const w=t.totalDuration||1;return`${x.startOffset/w*100}%`}function c(x){const w=t.totalDuration||1;return`${Math.max(x.duration/w*100,.5)}%`}function g(x){return x.length>50?x.slice(0,50)+"...":x}function v(x){return x==="db"?"DB":x}function m(x){return x==="db"?"purple":x==="mail"?"green":x==="event"?"amber":x==="view"?"blue":"muted"}function p(x){const w=x.metadata?Object.entries(x.metadata).filter(([,_])=>_!=null).map(([_,P])=>`${_}=${P}`).join(", "):"";return w?`${x.label} (${x.duration.toFixed(2)}ms)
5
- ${w}`:`${x.label} (${x.duration.toFixed(2)}ms)`}return(x,w)=>a.value.length===0?(u(),d("div",Kf,"No spans recorded")):(u(),d("div",{key:1,class:F(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Vf,[(u(),d(U,null,ye(l,(_,P)=>n("div",{key:P,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[P]||s.custom})},null,4),n("span",null,f(_),1)])),64))]),(u(!0),d(U,null,ye(o.value,_=>(u(),d("div",{key:_.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:p(_),style:Ke({paddingLeft:8+(i.value[_.id]||0)*16+"px"})},[n("span",{class:F(`ss-dash-badge ss-dash-badge-${m(_.category)}`),style:{"font-size":"9px","margin-right":"4px"}},f(v(_.category)),3),_e(" "+f(g(_.label)),1)],12,zf),n("div",Wf,[n("div",{class:F(`ss-dash-tl-bar ss-dash-tl-bar-${_.category||"custom"}`),style:Ke({left:r(_),width:c(_)}),title:p(_)},null,14,Jf)]),n("span",Qf,f(_.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Gf,[n("div",Yf,"Warnings ("+f(e.warnings.length)+")",1),(u(!0),d(U,null,ye(e.warnings,(_,P)=>(u(),d("div",{key:P,class:"ss-dash-tl-warning"},f(_),1))),128))])):te("",!0)],2))}}),Xf={class:"ss-dash-tl-detail-header"},Zf={style:{color:"var(--ss-text)"}},eh={class:"ss-dash-tl-meta"},th={class:"ss-dash-tl-detail-header"},sh={key:0,class:"ss-dash-empty"},nh={key:1,class:"ss-dash-empty"},lh={class:"ss-dash-table-wrap"},oh={key:0,class:"ss-dash-sort-arrow"},ah={key:0,class:"ss-dash-sort-arrow"},ih={key:0,class:"ss-dash-sort-arrow"},rh={key:0,class:"ss-dash-sort-arrow"},uh={key:0,class:"ss-dash-sort-arrow"},ch=["onClick"],dh={style:{color:"var(--ss-dim)"}},fh=["title"],hh={style:{color:"var(--ss-muted)","text-align":"center"}},ph={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},vh={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},gh=["title"],yh={key:1,class:"ss-dash-empty"},mh=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"RequestsSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,sort:g,goToPage:v,setSearch:m,setSort:p}=Ze(()=>"requests",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),x=J(""),w=J(null),_=J(!1),P=J(null),R=q(()=>{if(!o.value)return[];const L=o.value;return L.data||L.requests||o.value||[]}),M=rn(a,l);async function y(L){const K=L.id;_.value=!0;try{const se=s||"/__stats/api",be=await M().fetch(`${se}/requests/${K}`);P.value=Au(be),w.value=L}catch{}finally{_.value=!1}}function $(){w.value=null,P.value=null}function T(L){x.value=L,m(L)}function Q(L){p(L)}function V(L){const K=sn(L);return K==="very-slow"?"ss-dash-very-slow":K==="slow"?"ss-dash-slow":""}const{tableRef:G}=Bt(()=>R.value);return(L,K)=>(u(),d("div",null,[P.value&&w.value?(u(),d(U,{key:0},[n("div",Xf,[n("button",{type:"button",class:"ss-dash-btn",onClick:$}," ← Back to Requests "),n("span",{class:F(`ss-dash-method ss-dash-method-${(P.value.method||"").toLowerCase()}`)},f(P.value.method),3),n("span",Zf,f(P.value.url),1),n("span",{class:F(`ss-dash-status ss-dash-status-${Math.floor((P.value.statusCode||200)/100)}xx`)},f(P.value.statusCode),3),n("span",eh,f(P.value.totalDuration.toFixed(1))+"ms · "+f(P.value.spanCount)+" spans ",1)]),me(da,{spans:P.value.spans,"total-duration":P.value.totalDuration,warnings:P.value.warnings},null,8,["spans","total-duration","warnings"])],64)):_.value?(u(),d(U,{key:1},[n("div",th,[n("button",{type:"button",class:"ss-dash-btn",onClick:K[0]||(K[0]=se=>_.value=!1)}," ← Back to Requests ")]),K[6]||(K[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(U,{key:2},[me(Ct,{"model-value":x.value,placeholder:"Filter requests...",summary:`${k(c).total??0} requests`,"onUpdate:modelValue":T},null,8,["model-value","summary"]),k(r)?(u(),d("div",sh,"Failed to load requests")):te("",!0),k(i)&&!k(o)?(u(),d("div",nh,"Loading requests...")):(u(),d(U,{key:2},[n("div",lh,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:G,class:"ss-dash-table"},[K[15]||(K[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,[K[12]||(K[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:K[1]||(K[1]=se=>Q("method"))},[K[7]||(K[7]=_e(" Method ",-1)),k(g).column==="method"?(u(),d("span",oh,f(k(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:K[2]||(K[2]=se=>Q("url"))},[K[8]||(K[8]=_e(" URL ",-1)),k(g).column==="url"?(u(),d("span",ah,f(k(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:K[3]||(K[3]=se=>Q("statusCode"))},[K[9]||(K[9]=_e(" Status ",-1)),k(g).column==="statusCode"?(u(),d("span",ih,f(k(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:K[4]||(K[4]=se=>Q("duration"))},[K[10]||(K[10]=_e(" Duration ",-1)),k(g).column==="duration"?(u(),d("span",rh,f(k(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),K[13]||(K[13]=n("th",null,"Spans",-1)),K[14]||(K[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:K[5]||(K[5]=se=>Q("createdAt"))},[K[11]||(K[11]=_e(" Time ",-1)),k(g).column==="createdAt"?(u(),d("span",uh,f(k(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)])])]),n("tbody",null,[(u(!0),d(U,null,ye(R.value,se=>(u(),d("tr",{key:se.id,class:"ss-dash-clickable",onClick:be=>y(se)},[n("td",null,[n("span",dh,f(se.id),1)]),n("td",null,[n("span",{class:F(`ss-dash-method ss-dash-method-${(se.method||"").toLowerCase()}`)},f(se.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:se.url},f(se.url),9,fh)]),n("td",null,[n("span",{class:F(`ss-dash-status ss-dash-status-${Math.floor((se.status_code||se.statusCode||200)/100)}xx`)},f(se.status_code||se.statusCode),3)]),n("td",null,[n("span",{class:F(`ss-dash-duration ${V(se.total_duration||se.totalDuration||se.duration||0)}`)},f((se.total_duration||se.totalDuration||se.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",hh,f(se.span_count||se.spanCount||0),1)]),n("td",null,[(se.warning_count||se.warningCount||0)>0?(u(),d("span",ph,f(se.warning_count||se.warningCount||0),1)):(u(),d("span",vh,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:k(It)(se.createdAt||se.created_at||se.timestamp||"")},f(k(bt)(se.createdAt||se.created_at||se.timestamp||"")),9,gh)])],8,ch))),128))])],512)):(u(),d("div",yh,"No requests recorded yet"))]),k(c).totalPages>1?(u(),Xe(Kt,{key:0,page:k(c).page,"last-page":k(c).totalPages,total:k(c).total,onPageChange:k(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),bh={class:"ss-dash-btn-group"},_h={key:0,class:"ss-dash-empty"},xh={key:1,class:"ss-dash-table-wrap"},wh={key:0,class:"ss-dash-sort-arrow"},$h={key:0,class:"ss-dash-sort-arrow"},kh={key:0,class:"ss-dash-sort-arrow"},Sh=["onClick","onKeydown"],Ch={key:0,class:"ss-dash-dup"},Th={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Eh={class:"ss-dash-duration"},Ph={class:"ss-dash-duration"},Ah={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Mh={key:1,class:"ss-dash-empty"},Rh={class:"ss-dash-table-wrap"},Lh={key:0,class:"ss-dash-sort-arrow"},Oh={key:0,class:"ss-dash-sort-arrow"},Fh={style:{color:"var(--ss-dim)"}},Dh=["onClick","onKeydown"],Ih={key:0,class:"ss-dash-dup"},Bh=["title"],Nh={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},jh=["title"],Hh=["disabled","onClick"],Uh={key:0,class:"ss-dash-explain-row"},qh={colspan:"8",class:"ss-dash-explain"},Kh={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Vh={style:{flex:"1"}},zh={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Wh={key:0},Jh={key:1,class:"ss-dash-explain-result"},Qh={key:2,class:"ss-dash-explain-result"},Gh={key:3,class:"ss-dash-explain-result"},Yh={key:1,class:"ss-dash-empty"};function fa(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",a=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",i=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 us("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[us("div",{class:"ss-dash-explain-node-header"},[us("span",{class:"ss-dash-explain-node-type"},l),a?[" on ",us("strong",null,a)]:null,o||null,i?[" using ",us("em",null,i)]:null]),r.length>0?us("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...c.map((g,v)=>fa(g,t+1))])}const ha=Fe({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>fa(e.node,e.depth)}}),Xh=Fe({...{components:{ExplainPlanNode:ha}},__name:"QueriesSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),o=J("list"),i=J(null),r=J(null),c=J(null),g=q(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:v,loading:m,pagination:p,sort:x,goToPage:w,setSearch:_,setSort:P,explainQuery:R}=Ze(()=>g.value,{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),M=J(""),y=q(()=>v.value?o.value==="grouped"?v.value.groups||[]:v.value.data||v.value||[]:[]),$=q(()=>o.value!=="grouped"?y.value:y.value.map(E=>{const C={...E};return(C.sqlNormalized===null||C.sqlNormalized===void 0&&(E.sql_normalized||E.pattern))&&(C.sqlNormalized=E.sql_normalized||E.pattern||""),(C.count===null||C.count===void 0)&&E.total_count!==null&&E.total_count!==void 0&&(C.count=E.total_count),(C.avgDuration===null||C.avgDuration===void 0)&&E.avg_duration!==null&&E.avg_duration!==void 0&&(C.avgDuration=E.avg_duration),(C.maxDuration===null||C.maxDuration===void 0)&&E.max_duration!==null&&E.max_duration!==void 0&&(C.maxDuration=E.max_duration),(C.minDuration===null||C.minDuration===void 0)&&E.min_duration!==null&&E.min_duration!==void 0&&(C.minDuration=E.min_duration),(C.totalDuration===null||C.totalDuration===void 0)&&E.total_duration!==null&&E.total_duration!==void 0&&(C.totalDuration=E.total_duration),(C.percentOfTotal===null||C.percentOfTotal===void 0)&&E.pct_time!==null&&E.pct_time!==void 0&&(C.percentOfTotal=E.pct_time),C})),T=q(()=>{const E=new Map;for(const C of $.value){const S=C.sqlNormalized||C.sql||C.sql_text||"";E.set(S,(E.get(S)||0)+1)}return E}),Q=q(()=>{const E=p.total??$.value.length;let C=0,S=0,H=0,ne=0;for(const Te of $.value){const X=Te.duration||0;H+=X,ne++,X>Zo&&C++}for(const Te of T.value.values())Te>1&&(S+=Te);return{total:E,slow:C,duplicates:S,avgDuration:ne>0?H/ne:0}}),V=q(()=>{if(o.value==="grouped")return`${$.value.length} query patterns`;const E=[`${Q.value.total} queries`];return Q.value.slow>0&&E.push(`${Q.value.slow} slow`),Q.value.duplicates>0&&E.push(`${Q.value.duplicates} dup`),E.push(`avg ${(Q.value.avgDuration||0).toFixed(1)}ms`),E.join(", ")});function G(E){M.value=E,_(E)}function L(E){E!==o.value&&(o.value=E,i.value=null,r.value=null,c.value=null)}function K(E){P(E)}async function se(E){if(r.value&&r.value.queryId===E){r.value=null;return}c.value=E;try{const C=await R(E);C&&C.error?r.value={queryId:E,plan:[],error:C.error,message:C.message}:r.value={queryId:E,plan:C?.plan||C?.rows||[]}}catch(C){r.value={queryId:E,plan:[],error:C instanceof Error?C.message:String(C)}}finally{c.value=null}}function be(E){const C=sn(E);return C==="very-slow"?"ss-dash-very-slow":C==="slow"?"ss-dash-slow":""}function Me(){const E=r.value?.plan;return!E||E.length===0||typeof E[0]!="object"||!E[0]?[]:Object.keys(E[0])}function Le(E,C){if(!E||typeof E!="object")return"-";const S=E[C];return S!=null?String(S):"-"}function Re(){const E=r.value?.plan;return!E||E.length===0||typeof E[0]!="object"||!E[0]?!1:"Plan"in E[0]}function ge(){const E=r.value?.plan;return!E||E.length===0||typeof E[0]!="object"||!E[0]?{}:E[0].Plan}const{tableRef:de}=Bt(()=>$.value);return(E,C)=>(u(),d("div",null,[me(Ct,{"model-value":M.value,placeholder:"Filter queries...",summary:V.value,"onUpdate:modelValue":G},{default:es(()=>[n("div",bh,[n("button",{type:"button",class:F(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:C[0]||(C[0]=S=>L("list"))}," List ",2),n("button",{type:"button",class:F(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:C[1]||(C[1]=S=>L("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),k(m)&&!k(v)?(u(),d("div",_h,"Loading queries...")):o.value==="grouped"?(u(),d("div",xh,[$.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:de,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[C[11]||(C[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:C[2]||(C[2]=S=>K("count"))},[C[8]||(C[8]=_e(" Count ",-1)),k(x).column==="count"?(u(),d("span",wh,f(k(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:C[3]||(C[3]=S=>K("avgDuration"))},[C[9]||(C[9]=_e(" Avg ",-1)),k(x).column==="avgDuration"?(u(),d("span",$h,f(k(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),C[12]||(C[12]=n("th",null,"Min",-1)),C[13]||(C[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:C[4]||(C[4]=S=>K("totalDuration"))},[C[10]||(C[10]=_e(" Total ",-1)),k(x).column==="totalDuration"?(u(),d("span",kh,f(k(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),C[14]||(C[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(u(!0),d(U,null,ye($.value,(S,H)=>(u(),d("tr",{key:H},[n("td",null,[n("span",{class:F(`ss-dash-sql ${i.value===S.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:mt(ne=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["stop"]),onKeydown:Ts(ne=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["enter"])},f(S.sqlNormalized),43,Sh),(S.count||0)>=3?(u(),d("span",Ch,"DUP")):te("",!0)]),n("td",null,[n("span",Th,f(S.count||0),1)]),n("td",null,[n("span",{class:F(`ss-dash-duration ${be(S.avgDuration||0)}`)},f((S.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Eh,f((S.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:F(`ss-dash-duration ${be(S.maxDuration||0)}`)},f((S.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Ph,f((S.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Ah,f((S.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Mh,"No queries recorded"))])):(u(),d(U,{key:2},[n("div",Rh,[$.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:de,class:"ss-dash-table"},[C[24]||(C[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,[C[17]||(C[17]=n("th",null,"#",-1)),C[18]||(C[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:C[5]||(C[5]=S=>K("duration"))},[C[15]||(C[15]=_e(" Duration ",-1)),k(x).column==="duration"?(u(),d("span",Lh,f(k(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),C[19]||(C[19]=n("th",null,"Method",-1)),C[20]||(C[20]=n("th",null,"Model",-1)),C[21]||(C[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:C[6]||(C[6]=S=>K("createdAt"))},[C[16]||(C[16]=_e(" Time ",-1)),k(x).column==="createdAt"?(u(),d("span",Oh,f(k(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),C[22]||(C[22]=n("th",null,null,-1))])]),n("tbody",null,[(u(!0),d(U,null,ye($.value,S=>(u(),d(U,{key:S.id},[n("tr",null,[n("td",null,[n("span",Fh,f(S.id),1)]),n("td",null,[n("div",null,[n("span",{class:F(`ss-dash-sql ${i.value===S.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:mt(H=>i.value=i.value===S.id?null:S.id,["stop"]),onKeydown:Ts(H=>i.value=i.value===S.id?null:S.id,["enter"])},f(S.sql||S.sql_text||""),43,Dh),(T.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")??0)>1?(u(),d("span",Ih," ×"+f(T.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")),1)):te("",!0)])]),n("td",null,[n("span",{class:F(`ss-dash-duration ${be(S.duration||0)}`)},f((S.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:F(`ss-dash-method ss-dash-method-${(S.method||S.sql_method||"").toLowerCase()}`)},f(S.method||S.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:S.model},f(S.model||"-"),9,Bh)]),n("td",null,[n("span",Nh,f(S.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:k(It)(S.createdAt||S.created_at||S.timestamp||"")},f(k(bt)(S.createdAt||S.created_at||S.timestamp||"")),9,jh)]),n("td",null,[(S.method||S.sql_method||"")==="select"?(u(),d("button",{key:0,type:"button",class:F(`ss-dash-explain-btn${r.value?.queryId===S.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:c.value===S.id,onClick:mt(H=>se(S.id),["stop"])},f(c.value===S.id?"...":"EXPLAIN"),11,Hh)):te("",!0)])]),r.value&&r.value.queryId===S.id?(u(),d("tr",Uh,[n("td",qh,[n("div",Kh,[n("div",Vh,[r.value.error?(u(),d("div",zh,[C[23]||(C[23]=n("strong",null,"Error:",-1)),_e(" "+f(r.value.error)+" ",1),r.value.message?(u(),d("br",Wh)):te("",!0),_e(" "+f(r.value.message),1)])):Re()?(u(),d("div",Jh,[me(k(ha),{node:ge(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(u(),d("div",Qh,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(U,null,ye(Me(),H=>(u(),d("th",{key:H},f(H),1))),128))])]),n("tbody",null,[(u(!0),d(U,null,ye(r.value.plan,(H,ne)=>(u(),d("tr",{key:ne},[(u(!0),d(U,null,ye(Me(),Te=>(u(),d("td",{key:Te},f(Le(H,Te)),1))),128))]))),128))])])])):(u(),d("div",Gh,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:C[7]||(C[7]=H=>r.value=null)}," Close ")])])])):te("",!0)],64))),128))])],512)):(u(),d("div",Yh,"No queries recorded"))]),k(p).totalPages>1?(u(),Xe(Kt,{key:0,page:k(p).page,"last-page":k(p).totalPages,total:k(p).total,onPageChange:k(w)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}}),Zh=Object.freeze(Object.defineProperty({__proto__:null,default:Xh},Symbol.toStringTag,{value:"Module"})),al=Fe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"}},setup(e){const t=e,s=J(!1),l=q(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return nn(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return nn(t.value,t.maxLen||100)}),a=q(()=>{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 i(){navigator.clipboard?.writeText(a.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:F(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:F(`${t.classPrefix}-data-cell`)},[n("span",{class:F(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},f(l.value),35),s.value?(u(),d("div",{key:0,class:F(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:F(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:mt(i,["stop"])}," Copy ",2),n("pre",null,f(a.value),1)],2)):te("",!0)],2))}}),ep={key:0,class:"ss-dash-empty"},tp={class:"ss-dash-table-wrap"},sp={style:{color:"var(--ss-dim)"}},np=["title"],lp=["title"],op={key:1,class:"ss-dash-empty"},ap=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"EventsSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:c,setSearch:g}=Ze(()=>"events",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),v=J(""),m=q(()=>{if(!o.value)return[];const w=o.value;return w.data||w.events||o.value||[]});function p(w){v.value=w,g(w)}const{tableRef:x}=Bt(()=>m.value);return(w,_)=>(u(),d("div",null,[me(Ct,{"model-value":v.value,placeholder:"Filter events...",summary:`${k(r).total??0} events`,"onUpdate:modelValue":p},null,8,["model-value","summary"]),k(i)&&!k(o)?(u(),d("div",ep,"Loading events...")):(u(),d(U,{key:1},[n("div",tp,[m.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:x,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(U,null,ye(m.value,P=>(u(),d("tr",{key:P.id},[n("td",null,[n("span",sp,f(P.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:P.event_name||P.eventName||P.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(P.event_name||P.eventName||P.event||""),9,np)]),n("td",null,[me(al,{value:P.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:k(It)(P.createdAt||P.created_at||P.timestamp)},f(k(bt)(P.createdAt||P.created_at||P.timestamp)),9,lp)])]))),128))])],512)):(u(),d("div",op,"No events recorded yet"))]),k(r).totalPages>1?(u(),Xe(Kt,{key:0,page:k(r).page,"last-page":k(r).totalPages,total:k(r).total,onPageChange:k(c)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),ip={key:0,class:"ss-dash-empty"},rp={key:1,class:"ss-dash-empty"},up={key:2,class:"ss-dash-table-wrap"},cp=["title"],dp=["title"],fp=["title"],hp=["title"],pp={key:1,class:"ss-dash-empty"},vp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"RoutesSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,error:r,setSearch:c}=Ze(()=>"routes",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=J(""),v=q(()=>{if(!o.value)return[];const x=o.value;return Array.isArray(x)?x:Array.isArray(x.routes)?x.routes:Array.isArray(x.data)?x.data:[]});function m(x){g.value=x,c(x)}const{tableRef:p}=Bt(()=>v.value);return(x,w)=>(u(),d("div",null,[me(Ct,{"model-value":g.value,placeholder:"Filter routes...",summary:`${v.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),k(r)?(u(),d("div",ip,"Failed to load routes")):k(i)&&!k(o)?(u(),d("div",rp,"Loading routes...")):(u(),d("div",up,[v.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:p,class:"ss-dash-table"},[w[0]||(w[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),w[1]||(w[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(U,null,ye(v.value,(_,P)=>(u(),d("tr",{key:_.pattern||P},[n("td",null,[n("span",{class:F(`ss-dash-method ss-dash-method-${(_.method||"").toLowerCase()}`)},f(_.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.pattern},f(_.pattern),9,cp)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.name||"-"},f(_.name||"-"),9,dp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.handler},f(_.handler),9,fp)]),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(", "):"-"},f(_.middleware?.length?_.middleware.join(", "):"-"),9,hp)])]))),128))])],512)):(u(),d("div",pp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),gp={class:"ss-dash-log-filters"},yp=["onClick"],mp=["value"],bp={class:"ss-dash-structured-search"},_p=["value"],xp=["value"],wp=["value"],$p={key:0,class:"ss-dash-filter-chips"},kp={key:0,class:"ss-dash-filter-chip"},Sp={key:1,class:"ss-dash-filter-chip"},Cp=["onClick"],Tp={key:1,class:"ss-dash-empty"},Ep={key:2,class:"ss-dash-empty"},Pp={key:3,class:"ss-dash-empty"},Ap={key:4,class:"ss-dash-log-entries"},Mp=["title"],Rp=["title","onClick","onKeydown"],Lp={key:1,class:"ss-dash-log-reqid-empty"},Op={class:"ss-dash-log-msg"},Fp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"LogsSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,filter:g,goToPage:v,setSearch:m,setFilter:p,refresh:x}=Ze(()=>"logs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),w=J(""),_=J("all"),P=J(""),R=J(""),M=J([]),y=J("level"),$=J("equals"),T=J(""),Q=q(()=>{if(!o.value)return[];const C=o.value;return C.data||C.logs||o.value||[]}),V=q(()=>_.value!=="all"||P.value!==""||M.value.length>0);function G(C){w.value=C,m(C)}function L(C){_.value=C,C==="all"?p("level",""):p("level",C)}function K(C){P.value=C,R.value=C,p("request_id",C)}function se(){const C=R.value.trim();P.value=C,p("request_id",C)}function be(){P.value="",R.value="",p("request_id","")}function Me(){_.value="all",p("level","")}function Le(){const C=g;for(const S of Object.keys(C))(S.startsWith("filter_field_")||S.startsWith("filter_op_")||S.startsWith("filter_value_"))&&delete C[S];M.value.forEach((S,H)=>{C[`filter_field_${H}`]=S.field,C[`filter_op_${H}`]=S.operator,C[`filter_value_${H}`]=S.value}),c.page=1,x()}function Re(){const C=T.value.trim();C&&(M.value.push({field:y.value,operator:$.value,value:C}),T.value="",Le())}function ge(C){M.value.splice(C,1),Le()}function de(C){return C.target.value}function E(C){return C.target.value}return(C,S)=>(u(),d("div",null,[me(Ct,{"model-value":w.value,placeholder:"Search logs...",summary:`${k(c).total??0} logs`,"onUpdate:modelValue":G},{default:es(()=>[n("div",gp,[(u(!0),d(U,null,ye(k($u),H=>(u(),d("button",{key:H,type:"button",class:F(`ss-dash-log-filter ${_.value===H?"ss-dash-active":""}`),onClick:ne=>L(H)},f(H),11,yp))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:R.value,onInput:S[0]||(S[0]=H=>R.value=de(H)),onKeydown:Ts(se,["enter"])},null,40,mp),R.value||P.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:be}," Clear ")):te("",!0)])]),_:1},8,["model-value","summary"]),n("div",bp,[n("select",{class:"ss-dash-filter-select",value:y.value,onChange:S[1]||(S[1]=H=>y.value=E(H))},[...S[4]||(S[4]=[rr('<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,_p),n("select",{class:"ss-dash-filter-select",value:$.value,onChange:S[2]||(S[2]=H=>$.value=E(H))},[...S[5]||(S[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,xp),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:T.value,onInput:S[3]||(S[3]=H=>T.value=de(H)),onKeydown:Ts(Re,["enter"])},null,40,wp),n("button",{type:"button",class:"ss-dash-btn",onClick:Re},"Add")]),V.value?(u(),d("div",$p,[_.value!=="all"?(u(),d("span",kp,[_e(" level: "+f(_.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Me}," × ")])):te("",!0),P.value?(u(),d("span",Sp,[_e(" requestId: "+f(P.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:be}," × ")])):te("",!0),(u(!0),d(U,null,ye(M.value,(H,ne)=>(u(),d("span",{key:ne,class:"ss-dash-filter-chip"},[_e(f(H.field)+" "+f(H.operator)+' "'+f(H.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Te=>ge(ne)}," × ",8,Cp)]))),128))])):te("",!0),k(r)?(u(),d("div",Tp,"Failed to load logs")):k(i)&&!k(o)?(u(),d("div",Ep,"Loading logs...")):Q.value.length===0?(u(),d("div",Pp," No log entries"+f(P.value?` matching request ${P.value}`:_.value!=="all"?` for ${_.value}`:""),1)):(u(),d("div",Ap,[(u(!0),d(U,null,ye(Q.value,(H,ne)=>(u(),d("div",{key:String(H.id||ne),class:"ss-dash-log-entry"},[n("span",{class:F(`ss-dash-log-level ${k(Su)(k(oa)(H),"ss-dash-log-level")}`)},f(k(oa)(H).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:k(ln)(H)?k(It)(k(ln)(H)):""},f(k(ln)(H)?k(bt)(k(ln)(H)):"-"),9,Mp),k(Ps)(H)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:k(Ps)(H),role:"button",tabindex:"0",onClick:Te=>K(k(Ps)(H)),onKeydown:Ts(Te=>K(k(Ps)(H)),["enter"])},f(k(Ps)(H).slice(0,8)),41,Rp)):(u(),d("span",Lp,"--")),n("span",Op,f(k(ku)(H)),1)]))),128))])),k(c).totalPages>1?(u(),Xe(Kt,{key:5,page:k(c).page,"last-page":k(c).totalPages,total:k(c).total,onPageChange:k(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Dp={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Ip={class:"ss-dash-email-preview-header"},Bp={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Np=["srcdoc"],jp={key:0,class:"ss-dash-empty"},Hp={class:"ss-dash-table-wrap"},Up=["onClick"],qp={style:{color:"var(--ss-dim)"}},Kp=["title"],Vp=["title"],zp=["title"],Wp={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Jp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Qp=["title"],Gp=["title"],Yp={key:1,class:"ss-dash-empty"},Xp=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"EmailsSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:v}=Ze(()=>"emails",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=J(""),p=J(null),x=J(null),w=q(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function _(y){m.value=y,g(y)}async function P(y){if(y.html){p.value=y.id,x.value=y.html;return}const $=await v(y.id);p.value=y.id,x.value=$}function R(){p.value=null,x.value=null}const{tableRef:M}=Bt(()=>w.value);return(y,$)=>(u(),d("div",null,[p.value&&x.value?(u(),d("div",Dp,[n("div",Ip,[n("div",Bp,[w.value.find(T=>T.id===p.value)?(u(),d(U,{key:0},[$[4]||($[4]=n("strong",null,"Subject:",-1)),_e(" "+f(w.value.find(T=>T.id===p.value)?.subject)+"   |  ",1),$[5]||($[5]=n("strong",null,"From:",-1)),_e(" "+f(w.value.find(T=>T.id===p.value)?.from_addr||w.value.find(T=>T.id===p.value)?.from)+"   |  ",1),$[6]||($[6]=n("strong",null,"To:",-1)),_e(" "+f(w.value.find(T=>T.id===p.value)?.to_addr||w.value.find(T=>T.id===p.value)?.to)+" ",1),w.value.find(T=>T.id===p.value)?.cc||w.value.find(T=>T.id===p.value)?.cc_addr?(u(),d(U,{key:0},[$[0]||($[0]=_e("   |  ",-1)),$[1]||($[1]=n("strong",null,"CC:",-1)),_e(" "+f(w.value.find(T=>T.id===p.value)?.cc||w.value.find(T=>T.id===p.value)?.cc_addr),1)],64)):te("",!0),$[7]||($[7]=_e("   |  ",-1)),$[8]||($[8]=n("strong",null,"Status:",-1)),n("span",{class:F(`ss-dash-badge ss-dash-email-status-${w.value.find(T=>T.id===p.value)?.status}`)},f(w.value.find(T=>T.id===p.value)?.status),3),w.value.find(T=>T.id===p.value)?.mailer?(u(),d(U,{key:1},[$[2]||($[2]=_e("   |  ",-1)),$[3]||($[3]=n("strong",null,"Mailer:",-1)),_e(" "+f(w.value.find(T=>T.id===p.value)?.mailer),1)],64)):te("",!0)],64)):te("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:R}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:x.value,title:"Email preview",sandbox:""},null,8,Np)])):(u(),d(U,{key:1},[me(Ct,{"model-value":m.value,placeholder:"Filter emails...",summary:`${k(r).total??0} emails`,"onUpdate:modelValue":_},null,8,["model-value","summary"]),k(i)&&!k(o)?(u(),d("div",jp,"Loading emails...")):(u(),d(U,{key:1},[n("div",Hp,[w.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:M,class:"ss-dash-table"},[$[9]||($[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)),$[10]||($[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(U,null,ye(w.value,T=>(u(),d("tr",{key:T.id,class:"ss-dash-clickable ss-dash-email-row",onClick:Q=>P(T)},[n("td",null,[n("span",qp,f(T.id),1)]),n("td",null,[n("span",{title:T.from_addr||T.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(T.from_addr||T.from||""),9,Kp)]),n("td",null,[n("span",{title:T.to_addr||T.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(T.to_addr||T.to||""),9,Vp)]),n("td",null,[n("span",{title:T.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(T.subject||""),9,zp)]),n("td",null,[n("span",{class:F(`ss-dash-badge ss-dash-email-status-${T.status||""}`)},f(T.status),3)]),n("td",null,[(T.attachment_count||T.attachmentCount||0)>0?(u(),d("span",Wp,f(T.attachment_count||T.attachmentCount||0),1)):(u(),d("span",Jp,"-"))]),n("td",null,[n("span",{title:T.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(T.mailer||""),9,Qp)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:k(It)(T.createdAt||T.created_at||T.timestamp)},f(k(bt)(T.createdAt||T.created_at||T.timestamp)),9,Gp)])],8,Up))),128))])],512)):(u(),d("div",Yp,"No emails captured yet"))]),k(r).totalPages>1?(u(),Xe(Kt,{key:0,page:k(r).page,"last-page":k(r).totalPages,total:k(r).total,onPageChange:k(c)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Zp={key:0,class:"ss-dash-empty"},ev={class:"ss-dash-tl-detail-header"},tv={style:{color:"var(--ss-text)"}},sv={class:"ss-dash-tl-meta"},nv={key:0,class:"ss-dash-empty"},lv={key:1,class:"ss-dash-empty"},ov={class:"ss-dash-table-wrap"},av=["onClick"],iv={style:{color:"var(--ss-dim)"}},rv=["title"],uv={style:{color:"var(--ss-muted)","text-align":"center"}},cv=["title"],dv={key:1,class:"ss-dash-empty"},fv=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"TimelineSection",props:{tracingEnabled:{type:Boolean,default:!0}},setup(e){const t=e,s=re("ss-refresh-key",J(0)),l=re("ss-dashboard-endpoint","/__stats/api"),a=re("ss-auth-token",void 0),o=re("ss-base-url",""),{data:i,loading:r,error:c,pagination:g,goToPage:v,setSearch:m}=Ze(()=>"traces",{baseUrl:o,dashboardEndpoint:l,authToken:a,refreshKey:s}),p=J(""),x=J(null),w=J(null),_=J(!1),P=q(()=>{if(!i.value)return[];const V=i.value;return V.data||V.traces||i.value||[]}),R=rn(o,a);async function M(V){x.value=V,_.value=!0,w.value=null;try{const G=l||"/__stats/api",L=await R().fetch(`${G}/traces/${V}`);w.value=L}catch{}finally{_.value=!1}}function y(){x.value=null,w.value=null}function $(V){p.value=V,m(V)}function T(V){const G=sn(V);return G==="very-slow"?"ss-dash-very-slow":G==="slow"?"ss-dash-slow":""}const{tableRef:Q}=Bt(()=>P.value);return(V,G)=>(u(),d("div",null,[t.tracingEnabled?x.value&&w.value?(u(),d(U,{key:1},[n("div",ev,[n("button",{type:"button",class:"ss-dash-btn",onClick:y},"← Back"),n("span",{class:F(`ss-dash-method ss-dash-method-${(w.value.method||"").toLowerCase()}`)},f(w.value.method),3),n("span",tv,f(w.value.url),1),n("span",{class:F(`ss-dash-status ss-dash-status-${Math.floor((w.value.status_code||w.value.statusCode||0)/100)}xx`)},f(w.value.status_code||w.value.statusCode||0),3),n("span",sv,f((w.value.total_duration||w.value.totalDuration||0).toFixed(1))+"ms · "+f(w.value.spanCount??k(nl)(w.value.spans).length)+" spans ",1)]),me(da,{spans:k(nl)(w.value.spans),"total-duration":w.value.total_duration||w.value.totalDuration||0,warnings:k(aa)(w.value.warnings)},null,8,["spans","total-duration","warnings"])],64)):x.value&&_.value?(u(),d(U,{key:2},[n("div",{class:"ss-dash-tl-detail-header"},[n("button",{type:"button",class:"ss-dash-btn",onClick:y},"← Back")]),G[0]||(G[0]=n("div",{class:"ss-dash-empty"},"Loading trace detail...",-1))],64)):(u(),d(U,{key:3},[me(Ct,{"model-value":p.value,placeholder:"Filter traces...",summary:`${k(g).total??0} traces`,"onUpdate:modelValue":$},null,8,["model-value","summary"]),k(c)?(u(),d("div",nv,"Failed to load traces")):te("",!0),k(r)&&!k(i)?(u(),d("div",lv,"Loading traces...")):(u(),d(U,{key:2},[n("div",ov,[P.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Q,class:"ss-dash-table"},[G[1]||(G[1]=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:"80px"}})],-1)),G[2]||(G[2]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Method"),n("th",null,"URL"),n("th",null,"Status"),n("th",null,"Duration"),n("th",null,"Spans"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(U,null,ye(P.value,L=>(u(),d("tr",{key:L.id,class:"ss-dash-clickable",onClick:K=>M(L.id)},[n("td",null,[n("span",iv,f(L.id),1)]),n("td",null,[n("span",{class:F(`ss-dash-method ss-dash-method-${(L.method||"").toLowerCase()}`)},f(L.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:L.url},f(L.url),9,rv)]),n("td",null,[n("span",{class:F(`ss-dash-status ss-dash-status-${Math.floor((L.statusCode||L.status_code||0)/100)}xx`)},f(L.statusCode||L.status_code||0),3)]),n("td",null,[n("span",{class:F(`ss-dash-duration ${T(L.totalDuration||L.total_duration||0)}`)},f((L.totalDuration||L.total_duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",uv,f(L.spanCount||L.span_count||0),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:k(It)(L.createdAt||L.created_at||L.timestamp)},f(k(bt)(L.createdAt||L.created_at||L.timestamp)),9,cv)])],8,av))),128))])],512)):(u(),d("div",dv,"No traces recorded"))]),k(g).totalPages>1?(u(),Xe(Kt,{key:0,page:k(g).page,"last-page":k(g).totalPages,total:k(g).total,onPageChange:k(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64)):(u(),d("div",Zp," Tracing is not enabled. Enable tracing in your server-stats config to use the timeline. "))]))}})},Symbol.toStringTag,{value:"Module"})),hv={key:0,class:"ss-dash-cache-stats"},pv={class:"ss-dash-cache-stat"},vv={class:"ss-dash-cache-stat-value"},gv={class:"ss-dash-cache-stat"},yv={class:"ss-dash-cache-stat-value"},mv={class:"ss-dash-cache-stat"},bv={class:"ss-dash-cache-stat-value"},_v={class:"ss-dash-cache-stat"},xv={class:"ss-dash-cache-stat-value"},wv={key:1,class:"ss-dash-empty"},$v={key:2,class:"ss-dash-empty"},kv={key:3,class:"ss-dash-table-wrap"},Sv=["onClick"],Cv=["title"],Tv={style:{color:"var(--ss-muted)"}},Ev=["onClick"],Pv={key:1,class:"ss-dash-empty"},Av={key:4,class:"ss-dash-cache-detail"},Mv={key:0,class:"ss-dash-empty"},Rv={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},Lv=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"CacheSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,setSearch:r,mutate:c}=Ze(()=>"cache",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=rn(a||"",l),v=new na(g(),s||"/__stats/api"),m=J(""),p=J(null),x=J(null),w=J(!1),_=J(null),P=q(()=>o.value),R=q(()=>P.value?.keys||P.value?.data||[]);function M(Q){m.value=Q,r(Q)}async function y(Q){if(confirm(`Delete cache key "${Q}"?`))try{await c(`cache/${encodeURIComponent(Q)}`,"delete"),p.value===Q&&(p.value=null,x.value=null,_.value=null)}catch{}}const{tableRef:$}=Bt(()=>R.value);async function T(Q){if(p.value===Q){p.value=null,x.value=null,_.value=null;return}p.value=Q,x.value=null,_.value=null,w.value=!0;try{const V=await v.fetchCacheKey(Q);x.value=V.value!==void 0?V.value:V.data!==void 0?V.data:V,_.value=null}catch{x.value=null,_.value="Failed to fetch key value"}finally{w.value=!1}}return(Q,V)=>(u(),d("div",null,[P.value?.available&&P.value?.stats?(u(),d("div",hv,[n("div",pv,[V[0]||(V[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",vv,f((P.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",gv,[V[1]||(V[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",yv,f(P.value.stats.hits??0),1)]),n("div",mv,[V[2]||(V[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",bv,f(P.value.stats.misses??0),1)]),n("div",_v,[V[3]||(V[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",xv,f(P.value.stats.totalKeys||P.value.stats.keyCount||R.value.length||0),1)])])):te("",!0),me(Ct,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${R.value.length} keys`,"onUpdate:modelValue":M},null,8,["model-value","summary"]),k(i)&&!k(o)?(u(),d("div",wv,"Loading cache...")):!P.value||!P.value.available?(u(),d("div",$v," Cache inspector not available ")):(u(),d("div",kv,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:$,class:"ss-dash-table"},[V[4]||(V[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(U,null,ye(R.value,G=>(u(),d("tr",{key:G.key,class:"ss-dash-clickable",onClick:L=>T(G.key)},[n("td",null,[n("span",{title:G.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(G.key),9,Cv)]),n("td",null,[n("span",Tv,f(G.type),1)]),n("td",null,f(G.size!==null&&G.size!==void 0&&G.size>0?k(fu)(G.size):"-"),1),n("td",null,f(G.ttl>0?k(du)(G.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:mt(L=>y(G.key),["stop"])}," Delete ",8,Ev)])],8,Sv))),128))])],512)):(u(),d("div",Pv,"No cache keys found"))])),p.value?(u(),d("div",Av,[n("h4",null,"Key: "+f(p.value),1),w.value?(u(),d("div",Mv,"Loading value...")):_.value?(u(),d("div",Rv,f(_.value),1)):(u(),Xe(al,{key:2,value:x.value},null,8,["value"]))])):te("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Ov={key:0,class:"ss-dash-job-stats"},Fv={class:"ss-dash-job-stat"},Dv={class:"ss-dash-job-stat-value"},Iv={class:"ss-dash-job-stat"},Bv={class:"ss-dash-job-stat-value"},Nv={class:"ss-dash-job-stat"},jv={class:"ss-dash-job-stat-value"},Hv={class:"ss-dash-job-stat"},Uv={class:"ss-dash-job-stat-value"},qv={class:"ss-dash-job-stat"},Kv={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Vv={class:"ss-dash-btn-group"},zv=["onClick"],Wv={key:1,class:"ss-dash-empty"},Jv={key:2,class:"ss-dash-empty"},Qv={class:"ss-dash-table-wrap"},Gv={style:{color:"var(--ss-dim)"}},Yv=["title"],Xv={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Zv={class:"ss-dash-duration"},eg=["title"],tg=["disabled","onClick"],sg={key:1,class:"ss-dash-empty"},ng=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"JobsSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-dashboard-endpoint","/__stats/api"),l=re("ss-auth-token",void 0),a=re("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,goToPage:g,setSearch:v,setFilter:m,refresh:p,mutate:x}=Ze(()=>"jobs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),w=J(""),_=J("all"),P=J({}),R=q(()=>Eu(o.value)),M=q(()=>Pu(o.value));function y(V){w.value=V,v(V)}function $(V){_.value=V,V==="all"?m("status",""):m("status",V)}const{tableRef:T}=Bt(()=>R.value);async function Q(V){P.value[V]="pending";try{await x(`jobs/${V}/retry`),P.value[V]="success",setTimeout(()=>{delete P.value[V],p()},1e3)}catch{delete P.value[V]}}return(V,G)=>(u(),d("div",null,[M.value?(u(),d("div",Ov,[n("div",Fv,[G[0]||(G[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Dv,f(M.value.active??0),1)]),n("div",Iv,[G[1]||(G[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Bv,f(M.value.waiting??0),1)]),n("div",Nv,[G[2]||(G[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",jv,f(M.value.delayed??0),1)]),n("div",Hv,[G[3]||(G[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Uv,f(M.value.completed??0),1)]),n("div",qv,[G[4]||(G[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Kv,f(M.value.failed??0),1)])])):te("",!0),me(Ct,{"model-value":w.value,placeholder:"Filter jobs...",summary:`${k(c).total||R.value.length} jobs`,"onUpdate:modelValue":y},{default:es(()=>[n("div",Vv,[(u(!0),d(U,null,ye(k(Cu),L=>(u(),d("button",{key:L,type:"button",class:F(`ss-dash-btn ${_.value===L?"ss-dash-active":""}`),onClick:K=>$(L)},f(L.charAt(0).toUpperCase()+L.slice(1)),11,zv))),128))])]),_:1},8,["model-value","summary"]),k(i)&&!k(o)?(u(),d("div",Wv,"Loading jobs...")):k(r)?(u(),d("div",Jv,"Jobs/Queue not available")):(u(),d(U,{key:3},[n("div",Qv,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:T,class:"ss-dash-table"},[G[5]||(G[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)),G[6]||(G[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(U,null,ye(R.value,L=>(u(),d("tr",{key:L.id},[n("td",null,[n("span",Gv,f(L.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:L.name},f(L.name),9,Yv)]),n("td",null,[n("span",{class:F(`ss-dash-badge ss-dash-badge-${k(Tu)(L.status)}`)},f(L.status),3)]),n("td",null,[me(al,{value:L.payload||L.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Xv,f(L.attempts||L.attemptsMade||0),1)]),n("td",null,[n("span",Zv,f(L.duration!==null&&L.duration!==void 0?k(Dt)(L.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:k(It)(L.timestamp||L.createdAt||L.processedAt||L.created_at)},f(k(bt)(L.timestamp||L.createdAt||L.processedAt||L.created_at)),9,eg)]),n("td",null,[L.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:P.value[L.id]==="pending"||P.value[L.id]==="success",onClick:mt(K=>Q(L.id),["stop"])},f(P.value[L.id]==="pending"?"...":P.value[L.id]==="success"?"OK":"Retry"),9,tg)):te("",!0)])]))),128))])],512)):(u(),d("div",sg,"No jobs found"))]),k(c).totalPages>1?(u(),Xe(Kt,{key:0,page:k(c).page,"last-page":k(c).totalPages,total:k(c).total,onPageChange:k(g)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),lg={style:{position:"relative",flex:1}},og=["value"],ag=["title","onClick"],ig=["viewBox","innerHTML"],rg=["viewBox","innerHTML"],ug=["onClick"],cg={key:0},dg=["title","onClick"],fg=["viewBox","innerHTML"],hg=["viewBox","innerHTML"],pg=["onClick"],vg={key:0},gg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},yg=["onClick"],mg=["title"],bg=["title"],_g=["title","onClick"],xg=["viewBox","innerHTML"],wg=["viewBox","innerHTML"],$g=["onClick"],kg=["title","onClick"],Sg=["viewBox","innerHTML"],Cg=["viewBox","innerHTML"],Tg={key:1,style:{color:"var(--ss-dim)"}},Eg={key:3,style:{color:"var(--ss-amber-fg)"}},Pg={key:4,style:{color:"var(--ss-purple-fg)"}},Ag={key:5},Mg=["onClick"],ue="ss-dash",Rg=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"ConfigSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-base-url",""),l=re("ss-dashboard-endpoint","/__stats/api"),a=re("ss-auth-token",void 0),{data:o,loading:i}=Ze(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),r=J(""),c=J(""),g=J("app"),v=J(new Set),m=J("Copy JSON"),p=J(new Set),x=J(new Map);let w=null;function _(X){r.value=X,w&&clearTimeout(w),w=setTimeout(()=>{c.value=X},200)}function P(X){return X.target.value}const R=q(()=>o.value??null),M=q(()=>{const X=R.value?.env??{},ie=c.value.toLowerCase();return Object.entries(X).filter(([z,oe])=>{if(!ie)return!0;const Ie=De(oe)?oe.display:oe==null?"":String(oe);return z.toLowerCase().includes(ie)||Ie.toLowerCase().includes(ie)})}),y=q(()=>{const X=R.value?.app??{},ie=c.value.toLowerCase();return on(X,"").filter(oe=>{const Ie=De(oe.value)?oe.value.display:oe.value===null||oe.value===void 0?"":String(oe.value);return oe.path.toLowerCase().includes(ie)||Ie.toLowerCase().includes(ie)})}),$=q(()=>{const X=R.value?.app??{};return on(X,"").length}),T=q(()=>{const X=R.value?.app;return!X||typeof X!="object"||Array.isArray(X)||De(X)?[]:Object.keys(X)});function Q(X){const ie=new Set(v.value);ie.has(X)?ie.delete(X):ie.add(X),v.value=ie}function V(){if(!R.value)return;const X=g.value==="app"?R.value.app:R.value.env;if(!X)return;const ie=zu(X);v.value=new Set(ie)}function G(){v.value=new Set}function L(){if(!R.value)return;const X=g.value==="app"?R.value.app:R.value.env;navigator.clipboard?.writeText(JSON.stringify(X,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function K(X){const ie=new Set(p.value);ie.has(X)?ie.delete(X):ie.add(X),p.value=ie}function se(X,ie){x.value.set(X,ie)}function be(X,ie,z){z.stopPropagation(),Wu(X,x.value.get(ie)??null,ue)}function Me(X){return X!==null&&typeof X=="object"&&!Array.isArray(X)&&!De(X)}function Le(X,ie){return on(X,ie)}function Re(X,ie){return X.indexOf(ie+".")===0?X.slice(ie.length+1):X}function ge(X){return Vu(X)}function de(X){return De(X)?X.display:X==null?"null":String(X)}function E(X){const ie=R.value?.app;return!ie||typeof ie!="object"?null:ie[X]??null}function C(X,ie){return De(X)?ie?X.value:X.display:""}function S(){r.value="",c.value=""}function H(X){return De(X)?X.display:""}const ne=q(()=>Ae.eye.elements.join("")),Te=q(()=>Ae["eye-off"].elements.join(""));return(X,ie)=>(u(),d("div",null,[n("div",{class:F(`${ue}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:F(`${ue}-config-tab${g.value==="app"?` ${ue}-active`:""}`),onClick:ie[0]||(ie[0]=z=>g.value="app")}," App Config ",2),n("button",{type:"button",class:F(`${ue}-config-tab${g.value==="env"?` ${ue}-active`:""}`),onClick:ie[1]||(ie[1]=z=>g.value="env")}," Env ",2),n("div",lg,[n("input",{type:"text",class:F(`${ue}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:ie[2]||(ie[2]=z=>_(P(z)))},null,42,og),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:S}," × ")):te("",!0)]),g.value==="app"&&!c.value?(u(),d(U,{key:0},[n("button",{type:"button",class:F(`${ue}-btn`),onClick:V},"Expand All",2),n("button",{type:"button",class:F(`${ue}-btn`),onClick:G},"Collapse All",2)],64)):te("",!0),n("button",{type:"button",class:F(`${ue}-btn`),onClick:L},f(m.value),3)],2),k(i)&&!k(o)?(u(),d("div",{key:0,class:F(`${ue}-empty`)},"Loading config...",2)):R.value?g.value==="env"?(u(),d("div",{key:2,class:F(`${ue}-config-table-wrap`)},[n("table",{class:F(`${ue}-table ${ue}-config-env-table`)},[ie[4]||(ie[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(U,null,ye(M.value,([z,oe])=>(u(),d("tr",{key:z},[n("td",{class:F(`${ue}-env-key`)},[n("span",{class:F(`${ue}-config-key`)},f(z),3)],2),n("td",{class:F(`${ue}-env-val`)},[k(De)(oe)?(u(),d("span",{key:0,class:F(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(C(oe,p.value.has(z))),1),n("button",{type:"button",class:F(`${ue}-btn`),title:p.value.has(z)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:mt(Ie=>K(z),["stop"])},[p.value.has(z)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:k(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:Te.value},null,8,ig)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:k(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ne.value},null,8,rg))],10,ag)],2)):(u(),d("span",{key:1,class:F(`${ue}-config-val`)},f(de(oe)),3))],2),n("td",null,[k(De)(oe)?te("",!0):(u(),d("button",{key:0,type:"button",class:F(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>se(`env-${z}`,Ie),onClick:Ie=>be(`${z}=${de(oe)}`,`env-${z}`,Ie)}," ⎘ ",10,ug))])]))),128)),M.value.length===0?(u(),d("tr",cg,[...ie[3]||(ie[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):te("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:F(`${ue}-config-table-wrap`)},[n("table",{class:F(`${ue}-table`)},[ie[6]||(ie[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(U,null,ye(y.value,z=>(u(),d("tr",{key:z.path},[n("td",null,[n("span",{class:F(`${ue}-config-key`),style:{whiteSpace:"nowrap"}},f(z.path),3)]),n("td",null,[k(De)(z.value)?(u(),d("span",{key:0,class:F(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(C(z.value,p.value.has(z.path))),1),n("button",{type:"button",class:F(`${ue}-btn`),title:p.value.has(z.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:mt(oe=>K(z.path),["stop"])},[p.value.has(z.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:k(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:Te.value},null,8,fg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:k(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ne.value},null,8,hg))],10,dg)],2)):(u(),d("span",{key:1,class:F(`${ue}-config-val`),style:Ke({wordBreak:"break-all",color:ge(z.value).color})},f(ge(z.value).text),7))]),n("td",null,[k(De)(z.value)?te("",!0):(u(),d("button",{key:0,type:"button",class:F(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:oe=>se(`search-${z.path}`,oe),onClick:oe=>be(`${z.path}: ${k(De)(z.value)?H(z.value):ge(z.value).text}`,`search-${z.path}`,oe)}," ⎘ ",10,pg))])]))),128)),y.value.length===0?(u(),d("tr",vg,[...ie[5]||(ie[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):te("",!0)])],2),n("div",gg,f(y.value.length)+" of "+f($.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:F(`${ue}-config-table-wrap`)},[n("div",{class:F(`${ue}-config-sections`)},[(u(!0),d(U,null,ye(T.value,z=>(u(),d("div",{key:z,class:F(`${ue}-config-section`)},[Me(E(z))?(u(),d(U,{key:0},[n("div",{class:F(`${ue}-config-section-header`),style:{cursor:"pointer"},onClick:oe=>Q(z)},[n("span",{class:F(`${ue}-config-toggle`)},f(v.value.has(z)?"▼":"▶"),3),n("span",{class:F(`${ue}-config-key`)},f(z),3),n("span",{class:F(`${ue}-config-count`)},f(k(ia)(E(z)))+" entries ",3)],10,yg),v.value.has(z)?(u(),d("div",{key:0,class:F(`${ue}-config-section-body`)},[n("table",{class:F(`${ue}-table ${ue}-config-inner-table`)},[ie[7]||(ie[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(U,null,ye(Le(E(z),z),oe=>(u(),d("tr",{key:oe.path},[n("td",{title:Re(oe.path,z)},[n("span",{class:F(`${ue}-config-key`)},f(Re(oe.path,z)),3)],8,mg),n("td",{title:k(De)(oe.value)?H(oe.value):ge(oe.value).text},[k(De)(oe.value)?(u(),d("span",{key:0,class:F(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(C(oe.value,p.value.has(oe.path))),1),n("button",{type:"button",class:F(`${ue}-btn`),title:p.value.has(oe.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:mt(Ie=>K(oe.path),["stop"])},[p.value.has(oe.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:k(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:Te.value},null,8,xg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:k(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ne.value},null,8,wg))],10,_g)],2)):(u(),d("span",{key:1,class:F(`${ue}-config-val`),style:Ke({color:ge(oe.value).color})},f(ge(oe.value).text),7))],8,bg),n("td",null,[k(De)(oe.value)?te("",!0):(u(),d("button",{key:0,type:"button",class:F(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>se(`inner-${oe.path}`,Ie),onClick:Ie=>be(`${oe.path}: ${ge(oe.value).text}`,`inner-${oe.path}`,Ie)}," ⎘ ",10,$g))])]))),128))])],2)],2)):te("",!0)],64)):(u(),d("div",{key:1,class:F(`${ue}-config-section-header ${ue}-config-leaf`),style:{cursor:"default"}},[n("span",{class:F(`${ue}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:F(`${ue}-config-key`)},f(z),3),n("span",{class:F(`${ue}-config-val`),style:{marginLeft:"8px"}},[k(De)(E(z))?(u(),d("span",{key:0,class:F(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(C(E(z),p.value.has(z))),1),n("button",{type:"button",class:F(`${ue}-btn`),title:p.value.has(z)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:mt(oe=>K(z),["stop"])},[p.value.has(z)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:k(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:Te.value},null,8,Sg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:k(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:ne.value},null,8,Cg))],10,kg)],2)):E(z)===null||E(z)===void 0?(u(),d("span",Tg,"null")):typeof E(z)=="boolean"?(u(),d("span",{key:2,style:Ke({color:E(z)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},f(String(E(z))),5)):typeof E(z)=="number"?(u(),d("span",Eg,f(String(E(z))),1)):Array.isArray(E(z))?(u(),d("span",Pg,f(ge(E(z)).text),1)):(u(),d("span",Ag,f(String(E(z))),1))],2),k(De)(E(z))?te("",!0):(u(),d("button",{key:0,type:"button",class:F(`${ue}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:oe=>se(`leaf-${z}`,oe),onClick:oe=>be(`${z}: ${ge(E(z)).text}`,`leaf-${z}`,oe)}," ⎘ ",10,Mg))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:F(`${ue}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),Lg={key:0,class:"ss-dash-empty"},Og={key:1,class:"ss-dash-empty"},Fg={key:2,class:"ss-dash-empty"},Dg={class:"ss-dash-info-cards"},Ig={class:"ss-dash-info-card-label"},Bg={class:"ss-dash-info-card-value"},Ng={key:0,class:"ss-dash-empty"},jg={key:1,class:"ss-dash-table"},Hg={style:{"font-family":"monospace","font-size":"11px"}},Ug={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},qg={style:{color:"var(--ss-dim)","margin-left":"4px"}},Kg={style:{"font-size":"11px"}},Vg=["onClick"],zg=["onClick"],Wg={key:2,class:"ss-dash-empty"},Jg={key:3,class:"ss-dash-table"},Qg={class:"ss-dash-bar"},Gg={class:"ss-dash-bar-track",style:{"max-width":"120px"}},Yg={key:4,class:"ss-dash-empty"},Xg={key:5,class:"ss-dash-table"},Zg={style:{color:"var(--ss-dim)"}},e1={key:6,class:"ss-dash-empty"},t1={key:7,class:"ss-dash-table"},s1={style:{color:"var(--ss-dim)","font-size":"11px"}},n1={class:"ss-dash-table"},l1={style:{"font-family":"monospace","font-size":"11px"}},o1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},a1={style:{"font-family":"monospace","font-size":"11px"}},i1={class:"ss-dash-table"},r1={class:"ss-dash-table"},u1={style:{"font-family":"monospace","font-size":"11px"}},c1={style:{"font-family":"monospace","font-size":"11px"}},d1={style:{"font-family":"monospace","font-size":"11px"}},f1={style:{"font-size":"11px"}},h1=Object.freeze(Object.defineProperty({__proto__:null,default:Fe({__name:"InternalsSection",setup(e){const t=re("ss-refresh-key",J(0)),s=re("ss-base-url",""),l=re("ss-debug-endpoint","/admin/api/debug"),a=re("ss-auth-token",void 0),o=J(null),i=J(!0),r=J(null),c=J(new Set),g=rn(s,a);let v=null;async function m(){try{const M=await g().fetch(`${l}/diagnostics`);o.value=M,r.value=null,i.value=!1}catch(M){if(M instanceof en){r.value=M,i.value=!1,v&&(clearInterval(v),v=null);return}r.value=M instanceof Error?M:new Error(String(M)),i.value=!1}}Lt(()=>{i.value=!0,r.value=null,m(),v=setInterval(m,Xo)}),Ot(()=>{v&&clearInterval(v)}),gt(t,()=>{m()});function p(M){c.value.has(M)?c.value.delete(M):c.value.add(M)}function x(M){const y=Ku(M);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function w(M){return M.debounceMs!==void 0?`${Dt(M.debounceMs)} (debounce)`:M.intervalMs!==void 0?Dt(M.intervalMs):"-"}const _=q(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([M,y])=>({name:M.charAt(0).toUpperCase()+M.slice(1),...y,percent:Hu(y.current,y.max)})):[]),P=q(()=>o.value?.timers?Object.entries(o.value.timers).map(([M,y])=>({key:M,label:Fu(M),...y,interval:w(y)})):[]),R=q(()=>{if(!o.value)return[];const M=[];if(o.value.transmit&&M.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,$]of Object.entries(o.value.integrations))M.push({key:y,label:Iu(y),status:Bu($),details:Nu(y,$)});return M});return(M,y)=>(u(),d("div",null,[i.value&&!o.value?(u(),d("div",Lg,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",Og,"Error: "+f(r.value.message),1)):o.value?(u(),d(U,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",Dg,[(u(!0),d(U,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:k(cu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],$=>(u(),d("div",{key:$.label,class:"ss-dash-info-card"},[n("span",Ig,f($.label),1),n("span",Bg,f($.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",jg,[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(U,null,ye(o.value.collectors,$=>(u(),d("tr",{key:$.name},[n("td",null,[n("span",Hg,f($.name),1),$.label&&$.label!==$.name?(u(),d("span",Ug,f($.label),1)):te("",!0)]),n("td",null,[n("span",{class:F(["ss-dash-dot",x($.status)])},null,2),_e(" "+f($.status),1)]),n("td",{style:Ke($.lastError?{color:"var(--ss-red-fg)"}:{})},[$.lastError?(u(),d(U,{key:0},[_e(f($.lastError)+" ",1),n("span",qg,f(k(bt)($.lastErrorAt??0)),1)],64)):(u(),d(U,{key:1},[_e("-")],64))],4),n("td",Kg,[Object.keys($.config||{}).length?(u(!0),d(U,{key:0},ye(k(ju)($.config),T=>(u(),d("span",{key:T.key,style:{"margin-right":"8px"}},[_e(f(T.key)+"=",1),T.secret&&!c.value.has(`collector-${$.name}-${T.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:Q=>p(`collector-${$.name}-${T.key}`)},"••••••••",8,Vg)):(u(),d(U,{key:1},[n("span",null,f(T.value),1),T.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:Q=>p(`collector-${$.name}-${T.key}`)}," Hide ",8,zg)):te("",!0)],64))]))),128)):(u(),d(U,{key:1},[_e("-")],64))])]))),128))])])):(u(),d("div",Ng,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),_.value.length?(u(),d("table",Jg,[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(U,null,ye(_.value,$=>(u(),d("tr",{key:$.name},[n("td",null,f($.name),1),n("td",null,f($.current.toLocaleString())+" / "+f($.max.toLocaleString()),1),n("td",null,[n("div",Qg,[n("div",Gg,[n("div",{class:F(["ss-dash-bar-fill",$.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:$.percent+"%"})},null,6)]),n("span",{class:F(["ss-dash-bar-pct",$.percent>=100?"ss-dash-bar-pct-warn":""])},f($.percent)+"%",3)])])]))),128))])])):(u(),d("div",Wg,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),P.value.length?(u(),d("table",Xg,[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(U,null,ye(P.value,$=>(u(),d("tr",{key:$.key},[n("td",null,f($.label),1),n("td",null,[n("span",{class:F(["ss-dash-dot",x($.active?"active":"inactive")])},null,2),_e(" "+f($.active?"active":"inactive"),1)]),n("td",Zg,f($.interval),1)]))),128))])])):(u(),d("div",Yg,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),R.value.length?(u(),d("table",t1,[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(U,null,ye(R.value,$=>(u(),d("tr",{key:$.key},[n("td",null,f($.label),1),n("td",null,[n("span",{class:F(["ss-dash-dot",x($.status)])},null,2),_e(" "+f($.status),1)]),n("td",s1,f($.details),1)]))),128))])])):(u(),d("div",e1,"No integration data")),o.value.storage?(u(),d(U,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",n1,[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:F(["ss-dash-dot",x(o.value.storage.ready?"ready":"unavailable")])},null,2),_e(" "+f(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",l1,f(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,f(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,f(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,f(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,f(k(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",o1,[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(U,null,ye(o.value.storage.tables,$=>(u(),d("tr",{key:$.name},[n("td",a1,f($.name),1),n("td",null,f($.rowCount.toLocaleString()),1)]))),128))])])):te("",!0)],64)):te("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",i1,[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,f(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,f(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,f(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,f(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,f(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,f(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,f(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",r1,[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,f(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,f(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,f(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",u1,f(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",c1,[c.value.has("cfg-debugEndpoint")?(u(),d(U,{key:1},[_e(f(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]=$=>p("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=$=>p("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,f(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,f(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,f(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,f(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,f(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,f(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",d1,[c.value.has("cfg-dbPath")?(u(),d(U,{key:1},[_e(f(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]=$=>p("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=$=>p("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,f(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",f1,f(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,f(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",Fg,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
3
+ `,...li(a)),console.warn(...o)}pt(),On=!1}function ni(){let e=bs[bs.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 li(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
4
+ `],...oi(s))}),t}function oi({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,a=` at <${Bo(e.component,e.type,l)}`,o=">"+s;return e.props?[a,...ai(e.props),o]:[a+o]}function ai(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Nl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Nl(e,t,s){return Oe(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=Nl(e,$e(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ye(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$e(t),s?t:[`${e}=`,t])}function Gt(e,t,s,l){try{return l?e(...l):e()}catch(a){Yt(a,t,s)}}function vt(e,t,s,l){if(ye(e)){const a=Gt(e,t,s,l);return a&&fl(a)&&a.catch(o=>{Yt(o,t,s)}),a}if(ge(e)){const a=[];for(let o=0;o<e.length;o++)a.push(vt(e[o],t,s,l));return a}}function Yt(e,t,s,l=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Ee;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const v=r.ec;if(v){for(let m=0;m<v.length;m++)if(v[m](e,c,g)===!1)return}r=r.parent}if(o){ht(),Gt(o,null,10,[e,c,g]),pt();return}}ii(e,s,a,l,i)}function ii(e,t,s,l=!0,a=!1){if(a)throw e;console.error(e)}const Ve=[];let gt=-1;const Xt=[];let Rt=null,Zt=0;const jl=Promise.resolve();let Us=null;function Hl(e){const t=Us||jl;return e?t.then(this?e.bind(this):e):t}function ri(e){let t=gt+1,s=Ve.length;for(;t<s;){const l=t+s>>>1,a=Ve[l],o=_s(a);o<e||o===e&&a.flags&2?t=l+1:s=l}return t}function Dn(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(ri(t),0,e),e.flags|=1,Ul()}}function Ul(){Us||(Us=jl.then(Vl))}function Fn(e){ge(e)?Xt.push(...e):Rt&&e.id===-1?Rt.splice(Zt+1,0,e):e.flags&1||(Xt.push(e),e.flags|=1),Ul()}function ql(e,t,s=gt+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 Kl(e){if(Xt.length){const t=[...new Set(Xt)].sort((s,l)=>_s(s)-_s(l));if(Xt.length=0,Rt){Rt.push(...t);return}for(Rt=t,Zt=0;Zt<Rt.length;Zt++){const s=Rt[Zt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Rt=null,Zt=0}}const _s=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vl(e){try{for(gt=0;gt<Ve.length;gt++){const t=Ve[gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Gt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;gt<Ve.length;gt++){const t=Ve[gt];t&&(t.flags&=-2)}gt=-1,Ve.length=0,Kl(),Us=null,(Ve.length||Xt.length)&&Vl()}}let ze=null,zl=null;function qs(e){const t=ze;return ze=e,zl=e&&e.type.__scopeId||null,t}function es(e,t=ze,s){if(!t||e._n)return e;const l=(...a)=>{l._d&&Ys(-1);const o=qs(t);let i;try{i=e(...a)}finally{qs(o),l._d&&Ys(1)}return i};return l._n=!0,l._c=!0,l._d=!0,l}function Ut(e,t,s,l){const a=e.dirs,o=t&&t.dirs;for(let i=0;i<a.length;i++){const r=a[i];o&&(r.oldValue=o[i].value);let c=r.dir[l];c&&(ht(),vt(c,s,8,[e.el,r,e,t]),pt())}}function ts(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 ue(e,t,s=!1){const l=vr();if(l||ns){let a=ns?ns._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return s&&ye(t)?t.call(l&&l.proxy):t}}const ui=Symbol.for("v-scx"),ci=()=>ue(ui);function yt(e,t,s){return Wl(e,t,s)}function Wl(e,t,s=Ee){const{immediate:l,deep:a,flush:o,once:i}=s,r=Ne({},s),c=t&&l||!t&&o!=="post";let g;if(rs){if(o==="sync"){const x=ci();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=ft,x.resume=ft,x.pause=ft,x}}const v=He;r.call=(x,$,_)=>vt(x,v,$,_);let m=!1;o==="post"?r.scheduler=x=>{Je(x,v&&v.suspense)}:o!=="sync"&&(m=!0,r.scheduler=(x,$)=>{$?x():Dn(x)}),r.augmentJob=x=>{t&&(x.flags|=4),m&&(x.flags|=2,v&&(x.id=v.uid,x.i=v))};const p=si(e,t,r);return rs&&(g?g.push(p):c&&p()),p}function di(e,t,s){const l=this.proxy,a=Oe(e)?e.includes(".")?Jl(l,e):()=>l[e]:e.bind(l,l);let o;ye(t)?o=t:(o=t.handler,s=t);const i=Cs(this),r=Wl(a,o.bind(l),s);return i(),r}function Jl(e,t){const s=t.split(".");return()=>{let l=e;for(let a=0;a<s.length&&l;a++)l=l[s[a]];return l}}const fi=Symbol("_vte"),hi=e=>e.__isTeleport,pi=Symbol("_leaveCb");function In(e,t){e.shapeFlag&6&&e.component?(e.transition=t,In(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 De(e,t){return ye(e)?Ne({name:e.name},t,{setup:e}):e}function Bn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ql(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ks=new WeakMap;function xs(e,t,s,l,a=!1){if(ge(e)){e.forEach((_,E)=>xs(_,t&&(ge(t)?t[E]:t),s,l,a));return}if(ss(l)&&!a){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&xs(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?Zn(l.component):l.el,i=a?null:o,{i:r,r:c}=e,g=t&&t.r,v=r.refs===Ee?r.refs={}:r.refs,m=r.setupState,p=$e(m),x=m===Ee?ul:_=>Ql(v,_)?!1:Se(p,_),$=(_,E)=>!(E&&Ql(v,E));if(g!=null&&g!==c){if(Gl(t),Oe(g))v[g]=null,x(g)&&(m[g]=null);else if(je(g)){const _=t;$(g,_.k)&&(g.value=null),_.k&&(v[_.k]=null)}}if(ye(c))Gt(c,r,12,[i,v]);else{const _=Oe(c),E=je(c);if(_||E){const R=()=>{if(e.f){const M=_?x(c)?m[c]:v[c]:$()||!e.k?c.value:v[e.k];if(a)ge(M)&&vn(M,o);else if(ge(M))M.includes(o)||M.push(o);else if(_)v[c]=[o],x(c)&&(m[c]=v[c]);else{const y=[o];$(c,e.k)&&(c.value=y),e.k&&(v[e.k]=y)}}else _?(v[c]=i,x(c)&&(m[c]=i)):E&&($(c,e.k)&&(c.value=i),e.k&&(v[e.k]=i))};if(i){const M=()=>{R(),Ks.delete(e)};M.id=-1,Ks.set(e,M),Je(M,s)}else Gl(e),R()}}}function Gl(e){const t=Ks.get(e);t&&(t.flags|=8,Ks.delete(e))}const Yl=e=>e.nodeType===8;Os().requestIdleCallback,Os().cancelIdleCallback;function vi(e,t){if(Yl(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(Yl(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const ss=e=>!!e.type.__asyncLoader;function lt(e){ye(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:a=200,hydrate:o,timeout:i,suspensible:r=!0,onError:c}=e;let g=null,v,m=0;const p=()=>(m++,g=null,x()),x=()=>{let $;return g||($=g=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((E,R)=>{c(_,()=>E(p()),()=>R(_),m+1)});throw _}).then(_=>$!==g&&g?g:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),v=_,_)))};return De({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate($,_,E){let R=!1;(_.bu||(_.bu=[])).push(()=>R=!0);const M=()=>{R||E()},y=o?()=>{const k=o(M,C=>vi($,C));k&&(_.bum||(_.bum=[])).push(k)}:M;v?y():x().then(()=>!_.isUnmounted&&y())},get __asyncResolved(){return v},setup(){const $=He;if(Bn($),v)return()=>Vs(v,$);const _=y=>{g=null,Yt(y,$,13,!l)};if(r&&$.suspense||rs)return x().then(y=>()=>Vs(y,$)).catch(y=>(_(y),()=>l?be(l,{error:y}):null));const E=Q(!1),R=Q(),M=Q(!!a);return a&&setTimeout(()=>{M.value=!1},a),i!=null&&setTimeout(()=>{if(!E.value&&!R.value){const y=new Error(`Async component timed out after ${i}ms.`);_(y),R.value=y}},i),x().then(()=>{E.value=!0,$.parent&&Nn($.parent.vnode)&&$.parent.update()}).catch(y=>{_(y),R.value=y}),()=>{if(E.value&&v)return Vs(v,$);if(R.value&&l)return be(l,{error:R.value});if(s&&!M.value)return Vs(s,$)}}})}function Vs(e,t){const{ref:s,props:l,children:a,ce:o}=t.vnode,i=be(e,l,a);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const Nn=e=>e.type.__isKeepAlive;function gi(e,t){Xl(e,"a",t)}function yi(e,t){Xl(e,"da",t)}function Xl(e,t,s=He){const l=e.__wdc||(e.__wdc=()=>{let a=s;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(zs(t,l,s),s){let a=s.parent;for(;a&&a.parent;)Nn(a.parent.vnode)&&mi(l,t,s,a),a=a.parent}}function mi(e,t,s,l){const a=zs(t,e,l,!0);Ot(()=>{vn(l[t],a)},s)}function zs(e,t,s=He,l=!1){if(s){const a=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ht();const r=Cs(s),c=vt(t,s,e,i);return r(),pt(),c});return l?a.unshift(o):a.push(o),o}}const $t=e=>(t,s=He)=>{(!rs||e==="sp")&&zs(e,(...l)=>t(...l),s)},bi=$t("bm"),Lt=$t("m"),_i=$t("bu"),xi=$t("u"),Zl=$t("bum"),Ot=$t("um"),wi=$t("sp"),$i=$t("rtg"),ki=$t("rtc");function Si(e,t=He){zs("ec",e,t)}const Ci="components",eo=Symbol.for("v-ndc");function Ti(e){return Oe(e)?Ei(Ci,e,!1)||e:e||eo}function Ei(e,t,s=!0,l=!1){const a=ze||He;if(a){const o=a.type;{const r=Io(o,!1);if(r&&(r===t||r===st(t)||r===Ls(st(t))))return o}const i=to(a[e]||o[e],t)||to(a.appContext[e],t);return!i&&l?o:i}}function to(e,t){return e&&(e[t]||e[st(t)]||e[Ls(st(t))])}function me(e,t,s,l){let a;const o=s,i=ge(e);if(i||Oe(e)){const r=i&&jt(e);let c=!1,g=!1;r&&(c=!nt(e),g=wt(e),e=Ds(e)),a=new Array(e.length);for(let v=0,m=e.length;v<m;v++)a[v]=t(c?g?Qt(ut(e[v])):ut(e[v]):e[v],v,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let r=0;r<e;r++)a[r]=t(r+1,r,void 0,o)}else if(Ce(e))if(e[Symbol.iterator])a=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);a=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const v=r[c];a[c]=t(e[v],v,c,o)}}else a=[];return a}function Pi(e,t,s={},l,a){if(ze.ce||ze.parent&&ss(ze.parent)&&ze.parent.ce){const g=Object.keys(s).length>0;return u(),Xe(U,null,[be("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const i=o&&so(o(s)),r=s.key||i&&i.key,c=Xe(U,{key:(r&&!it(r)?r:`_${t}`)+(!i&&l?"_fb":"")},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function so(e){return e.some(t=>as(t)?!(t.type===ct||t.type===U&&!so(t.children)):!0)?e:null}const jn=e=>e?Do(e)?Zn(e):jn(e.parent):null,ws=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=>jn(e.parent),$root:e=>jn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{Dn(e.update)}),$nextTick:e=>e.n||(e.n=Hl.bind(e.proxy)),$watch:e=>di.bind(e)}),Hn=(e,t)=>e!==Ee&&!e.__isScriptSetup&&Se(e,t),Ai={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:a,props:o,accessCache:i,type:r,appContext:c}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return l[t];case 2:return a[t];case 4:return s[t];case 3:return o[t]}else{if(Hn(l,t))return i[t]=1,l[t];if(a!==Ee&&Se(a,t))return i[t]=2,a[t];if(Se(o,t))return i[t]=3,o[t];if(s!==Ee&&Se(s,t))return i[t]=4,s[t];Un&&(i[t]=0)}}const g=ws[t];let v,m;if(g)return t==="$attrs"&&Ue(e.attrs,"get",""),g(e);if((v=r.__cssModules)&&(v=v[t]))return v;if(s!==Ee&&Se(s,t))return i[t]=4,s[t];if(m=c.config.globalProperties,Se(m,t))return m[t]},set({_:e},t,s){const{data:l,setupState:a,ctx:o}=e;return Hn(a,t)?(a[t]=s,!0):l!==Ee&&Se(l,t)?(l[t]=s,!0):Se(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:a,props:o,type:i}},r){let c;return!!(s[r]||e!==Ee&&r[0]!=="$"&&Se(e,r)||Hn(t,r)||Se(o,r)||Se(l,r)||Se(ws,r)||Se(a.config.globalProperties,r)||(c=i.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Se(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function no(e){return ge(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Un=!0;function Mi(e){const t=ao(e),s=e.proxy,l=e.ctx;Un=!1,t.beforeCreate&&lo(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:i,watch:r,provide:c,inject:g,created:v,beforeMount:m,mounted:p,beforeUpdate:x,updated:$,activated:_,deactivated:E,beforeDestroy:R,beforeUnmount:M,destroyed:y,unmounted:k,render:C,renderTracked:J,renderTriggered:W,errorCaptured:X,serverPrefetch:L,expose:V,inheritAttrs:ne,components:_e,directives:Me,filters:Le}=t;if(g&&Ri(g,l,null),i)for(const fe in i){const T=i[fe];ye(T)&&(l[fe]=T.bind(s))}if(a){const fe=a.call(s,s);Ce(fe)&&(e.data=Jt(fe))}if(Un=!0,o)for(const fe in o){const T=o[fe],A=ye(T)?T.bind(s,s):ye(T.get)?T.get.bind(s,s):ft,S=!ye(T)&&ye(T.set)?T.set.bind(s):ft,H=q({get:A,set:S});Object.defineProperty(l,fe,{enumerable:!0,configurable:!0,get:()=>H.value,set:z=>H.value=z})}if(r)for(const fe in r)oo(r[fe],l,s,fe);if(c){const fe=ye(c)?c.call(s):c;Reflect.ownKeys(fe).forEach(T=>{ts(T,fe[T])})}v&&lo(v,e,"c");function pe(fe,T){ge(T)?T.forEach(A=>fe(A.bind(s))):T&&fe(T.bind(s))}if(pe(bi,m),pe(Lt,p),pe(_i,x),pe(xi,$),pe(gi,_),pe(yi,E),pe(Si,X),pe(ki,J),pe($i,W),pe(Zl,M),pe(Ot,k),pe(wi,L),ge(V))if(V.length){const fe=e.exposed||(e.exposed={});V.forEach(T=>{Object.defineProperty(fe,T,{get:()=>s[T],set:A=>s[T]=A,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===ft&&(e.render=C),ne!=null&&(e.inheritAttrs=ne),_e&&(e.components=_e),Me&&(e.directives=Me),L&&Bn(e)}function Ri(e,t,s=ft){ge(e)&&(e=qn(e));for(const l in e){const a=e[l];let o;Ce(a)?"default"in a?o=ue(a.from||l,a.default,!0):o=ue(a.from||l):o=ue(a),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[l]=o}}function lo(e,t,s){vt(ge(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function oo(e,t,s,l){let a=l.includes(".")?Jl(s,l):()=>s[l];if(Oe(e)){const o=t[e];ye(o)&&yt(a,o)}else if(ye(e))yt(a,e.bind(s));else if(Ce(e))if(ge(e))e.forEach(o=>oo(o,t,s,l));else{const o=ye(e.handler)?e.handler.bind(s):t[e.handler];ye(o)&&yt(a,o,e)}}function ao(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,r=o.get(t);let c;return r?c=r:!a.length&&!s&&!l?c=t:(c={},a.length&&a.forEach(g=>Ws(c,g,i,!0)),Ws(c,t,i)),Ce(t)&&o.set(t,c),c}function Ws(e,t,s,l=!1){const{mixins:a,extends:o}=t;o&&Ws(e,o,s,!0),a&&a.forEach(i=>Ws(e,i,s,!0));for(const i in t)if(!(l&&i==="expose")){const r=Li[i]||s&&s[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Li={data:io,props:ro,emits:ro,methods:$s,computed:$s,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:$s,directives:$s,watch:Di,provide:io,inject:Oi};function io(e,t){return t?e?function(){return Ne(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function Oi(e,t){return $s(qn(e),qn(t))}function qn(e){if(ge(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 $s(e,t){return e?Ne(Object.create(null),e,t):t}function ro(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ne(Object.create(null),no(e),no(t??{})):t}function Di(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 uo(){return{app:null,config:{isNativeTag:ul,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 Fi=0;function Ii(e,t){return function(l,a=null){ye(l)||(l=Ne({},l)),a!=null&&!Ce(a)&&(a=null);const o=uo(),i=new WeakSet,r=[];let c=!1;const g=o.app={_uid:Fi++,_component:l,_props:a,_container:null,_context:o,_instance:null,version:$r,get config(){return o.config},set config(v){},use(v,...m){return i.has(v)||(v&&ye(v.install)?(i.add(v),v.install(g,...m)):ye(v)&&(i.add(v),v(g,...m))),g},mixin(v){return o.mixins.includes(v)||o.mixins.push(v),g},component(v,m){return m?(o.components[v]=m,g):o.components[v]},directive(v,m){return m?(o.directives[v]=m,g):o.directives[v]},mount(v,m,p){if(!c){const x=g._ceVNode||be(l,a);return x.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(x,v,p),c=!0,g._container=v,v.__vue_app__=g,Zn(x.component)}},onUnmount(v){r.push(v)},unmount(){c&&(vt(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(v,m){return o.provides[v]=m,g},runWithContext(v){const m=ns;ns=g;try{return v()}finally{ns=m}}};return g}}let ns=null;const Bi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Et(t)}Modifiers`];function Ni(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Ee;let a=s;const o=t.startsWith("update:"),i=o&&Bi(l,t.slice(7));i&&(i.trim&&(a=s.map(v=>Oe(v)?v.trim():v)),i.number&&(a=s.map(_a)));let r,c=l[r=yn(t)]||l[r=yn(st(t))];!c&&o&&(c=l[r=yn(Et(t))]),c&&vt(c,e,6,a);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,vt(g,e,6,a)}}const ji=new WeakMap;function co(e,t,s=!1){const l=s?ji:t.emitsCache,a=l.get(e);if(a!==void 0)return a;const o=e.emits;let i={},r=!1;if(!ye(e)){const c=g=>{const v=co(g,t,!0);v&&(r=!0,Ne(i,v))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Ce(e)&&l.set(e,null),null):(ge(o)?o.forEach(c=>i[c]=null):Ne(i,o),Ce(e)&&l.set(e,i),i)}function Js(e,t){return!e||!Ms(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Et(t))||Se(e,t))}function w1(){}function fo(e){const{type:t,vnode:s,proxy:l,withProxy:a,propsOptions:[o],slots:i,attrs:r,emit:c,render:g,renderCache:v,props:m,data:p,setupState:x,ctx:$,inheritAttrs:_}=e,E=qs(e);let R,M;try{if(s.shapeFlag&4){const k=a||l,C=k;R=dt(g.call(C,k,v,m,x,p,$)),M=r}else{const k=t;R=dt(k.length>1?k(m,{attrs:r,slots:i,emit:c}):k(m,null)),M=t.props?r:Ui(r)}}catch(k){Ss.length=0,Yt(k,e,1),R=be(ct)}let y=R;if(M&&_!==!1){const k=Object.keys(M),{shapeFlag:C}=y;k.length&&C&7&&(o&&k.some(pn)&&(M=qi(M,o)),y=is(y,M,!1,!0))}return s.dirs&&(y=is(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&In(y,s.transition),R=y,qs(E),R}function Hi(e,t=!0){let s;for(let l=0;l<e.length;l++){const a=e[l];if(as(a)){if(a.type!==ct||a.children==="v-if"){if(s)return;s=a}}else return}return s}const Ui=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ms(s))&&((t||(t={}))[s]=e[s]);return t},qi=(e,t)=>{const s={};for(const l in e)(!pn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Ki(e,t,s){const{props:l,children:a,component:o}=e,{props:i,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?ho(l,i,g):!!i;if(c&8){const v=t.dynamicProps;for(let m=0;m<v.length;m++){const p=v[m];if(po(i,l,p)&&!Js(g,p))return!0}}}else return(a||r)&&(!r||!r.$stable)?!0:l===i?!1:l?i?ho(l,i,g):!0:!!i;return!1}function ho(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let a=0;a<l.length;a++){const o=l[a];if(po(t,e,o)&&!Js(s,o))return!0}return!1}function po(e,t,s){const l=e[s],a=t[s];return s==="style"&&Ce(l)&&Ce(a)?!bn(l,a):l!==a}function Kn({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 vo={},go=()=>Object.create(vo),yo=e=>Object.getPrototypeOf(e)===vo;function Vi(e,t,s,l=!1){const a={},o=go();e.propsDefaults=Object.create(null),mo(e,t,a,o);for(const i in e.propsOptions[0])i in a||(a[i]=void 0);s?e.props=l?a:Ja(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function zi(e,t,s,l){const{props:a,attrs:o,vnode:{patchFlag:i}}=e,r=$e(a),[c]=e.propsOptions;let g=!1;if((l||i>0)&&!(i&16)){if(i&8){const v=e.vnode.dynamicProps;for(let m=0;m<v.length;m++){let p=v[m];if(Js(e.emitsOptions,p))continue;const x=t[p];if(c)if(Se(o,p))x!==o[p]&&(o[p]=x,g=!0);else{const $=st(p);a[$]=Vn(c,r,$,x,e,!1)}else x!==o[p]&&(o[p]=x,g=!0)}}}else{mo(e,t,a,o)&&(g=!0);let v;for(const m in r)(!t||!Se(t,m)&&((v=Et(m))===m||!Se(t,v)))&&(c?s&&(s[m]!==void 0||s[v]!==void 0)&&(a[m]=Vn(c,r,m,void 0,e,!0)):delete a[m]);if(o!==r)for(const m in o)(!t||!Se(t,m))&&(delete o[m],g=!0)}g&&_t(e.attrs,"set","")}function mo(e,t,s,l){const[a,o]=e.propsOptions;let i=!1,r;if(t)for(let c in t){if(hs(c))continue;const g=t[c];let v;a&&Se(a,v=st(c))?!o||!o.includes(v)?s[v]=g:(r||(r={}))[v]=g:Js(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,i=!0)}if(o){const c=$e(s),g=r||Ee;for(let v=0;v<o.length;v++){const m=o[v];s[m]=Vn(a,c,m,g[m],e,!Se(g,m))}}return i}function Vn(e,t,s,l,a,o){const i=e[s];if(i!=null){const r=Se(i,"default");if(r&&l===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&ye(c)){const{propsDefaults:g}=a;if(s in g)l=g[s];else{const v=Cs(a);l=g[s]=c.call(null,t),v()}}else l=c;a.ce&&a.ce._setProp(s,l)}i[0]&&(o&&!r?l=!1:i[1]&&(l===""||l===Et(s))&&(l=!0))}return l}const Wi=new WeakMap;function bo(e,t,s=!1){const l=s?Wi:t.propsCache,a=l.get(e);if(a)return a;const o=e.props,i={},r=[];let c=!1;if(!ye(e)){const v=m=>{c=!0;const[p,x]=bo(m,t,!0);Ne(i,p),x&&r.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!o&&!c)return Ce(e)&&l.set(e,Vt),Vt;if(ge(o))for(let v=0;v<o.length;v++){const m=st(o[v]);_o(m)&&(i[m]=Ee)}else if(o)for(const v in o){const m=st(v);if(_o(m)){const p=o[v],x=i[m]=ge(p)||ye(p)?{type:p}:Ne({},p),$=x.type;let _=!1,E=!0;if(ge($))for(let R=0;R<$.length;++R){const M=$[R],y=ye(M)&&M.name;if(y==="Boolean"){_=!0;break}else y==="String"&&(E=!1)}else _=ye($)&&$.name==="Boolean";x[0]=_,x[1]=E,(_||Se(x,"default"))&&r.push(m)}}const g=[i,r];return Ce(e)&&l.set(e,g),g}function _o(e){return e[0]!=="$"&&!hs(e)}const zn=e=>e==="_"||e==="_ctx"||e==="$stable",Wn=e=>ge(e)?e.map(dt):[dt(e)],Ji=(e,t,s)=>{if(t._n)return t;const l=es((...a)=>Wn(t(...a)),s);return l._c=!1,l},xo=(e,t,s)=>{const l=e._ctx;for(const a in e){if(zn(a))continue;const o=e[a];if(ye(o))t[a]=Ji(a,o,l);else if(o!=null){const i=Wn(o);t[a]=()=>i}}},wo=(e,t)=>{const s=Wn(t);e.slots.default=()=>s},$o=(e,t,s)=>{for(const l in t)(s||!zn(l))&&(e[l]=t[l])},Qi=(e,t,s)=>{const l=e.slots=go();if(e.vnode.shapeFlag&32){const a=t._;a?($o(l,t,s),s&&vl(l,"_",a,!0)):xo(t,l)}else t&&wo(e,t)},Gi=(e,t,s)=>{const{vnode:l,slots:a}=e;let o=!0,i=Ee;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:$o(a,t,s):(o=!t.$stable,xo(t,a)),i=t}else t&&(wo(e,t),i={default:1});if(o)for(const r in a)!zn(r)&&i[r]==null&&delete a[r]},Je=ar;function Yi(e){return Xi(e)}function Xi(e,t){const s=Os();s.__VUE__=!0;const{insert:l,remove:a,patchProp:o,createElement:i,createText:r,createComment:c,setText:g,setElementText:v,parentNode:m,nextSibling:p,setScopeId:x=ft,insertStaticContent:$}=e,_=(h,b,P,j=null,F=null,I=null,Z=void 0,Y=null,B=!!b.dynamicChildren)=>{if(h===b)return;h&&!Dt(h,b)&&(j=ie(h),z(h,F,I,!0),h=null),b.patchFlag===-2&&(B=!1,b.dynamicChildren=null);const{type:N,ref:de,shapeFlag:se}=b;switch(N){case Qs:E(h,b,P,j);break;case ct:R(h,b,P,j);break;case Gs:h==null&&M(b,P,j,Z);break;case U:_e(h,b,P,j,F,I,Z,Y,B);break;default:se&1?C(h,b,P,j,F,I,Z,Y,B):se&6?Me(h,b,P,j,F,I,Z,Y,B):(se&64||se&128)&&N.process(h,b,P,j,F,I,Z,Y,B,Tt)}de!=null&&F?xs(de,h&&h.ref,I,b||h,!b):de==null&&h&&h.ref!=null&&xs(h.ref,null,I,h,!0)},E=(h,b,P,j)=>{if(h==null)l(b.el=r(b.children),P,j);else{const F=b.el=h.el;b.children!==h.children&&g(F,b.children)}},R=(h,b,P,j)=>{h==null?l(b.el=c(b.children||""),P,j):b.el=h.el},M=(h,b,P,j)=>{[h.el,h.anchor]=$(h.children,b,P,j,h.el,h.anchor)},y=({el:h,anchor:b},P,j)=>{let F;for(;h&&h!==b;)F=p(h),l(h,P,j),h=F;l(b,P,j)},k=({el:h,anchor:b})=>{let P;for(;h&&h!==b;)P=p(h),a(h),h=P;a(b)},C=(h,b,P,j,F,I,Z,Y,B)=>{if(b.type==="svg"?Z="svg":b.type==="math"&&(Z="mathml"),h==null)J(b,P,j,F,I,Z,Y,B);else{const N=h.el&&h.el._isVueCE?h.el:null;try{N&&N._beginPatch(),L(h,b,F,I,Z,Y,B)}finally{N&&N._endPatch()}}},J=(h,b,P,j,F,I,Z,Y)=>{let B,N;const{props:de,shapeFlag:se,transition:re,dirs:ve}=h;if(B=h.el=i(h.type,I,de&&de.is,de),se&8?v(B,h.children):se&16&&X(h.children,B,null,j,F,Jn(h,I),Z,Y),ve&&Ut(h,null,j,"created"),W(B,h,h.scopeId,Z,j),de){for(const Te in de)Te!=="value"&&!hs(Te)&&o(B,Te,null,de[Te],I,j);"value"in de&&o(B,"value",null,de.value,I),(N=de.onVnodeBeforeMount)&&mt(N,j,h)}ve&&Ut(h,null,j,"beforeMount");const we=Zi(F,re);we&&re.beforeEnter(B),l(B,b,P),((N=de&&de.onVnodeMounted)||we||ve)&&Je(()=>{N&&mt(N,j,h),we&&re.enter(B),ve&&Ut(h,null,j,"mounted")},F)},W=(h,b,P,j,F)=>{if(P&&x(h,P),j)for(let I=0;I<j.length;I++)x(h,j[I]);if(F){let I=F.subTree;if(b===I||Eo(I.type)&&(I.ssContent===b||I.ssFallback===b)){const Z=F.vnode;W(h,Z,Z.scopeId,Z.slotScopeIds,F.parent)}}},X=(h,b,P,j,F,I,Z,Y,B=0)=>{for(let N=B;N<h.length;N++){const de=h[N]=Y?kt(h[N]):dt(h[N]);_(null,de,b,P,j,F,I,Z,Y)}},L=(h,b,P,j,F,I,Z)=>{const Y=b.el=h.el;let{patchFlag:B,dynamicChildren:N,dirs:de}=b;B|=h.patchFlag&16;const se=h.props||Ee,re=b.props||Ee;let ve;if(P&&qt(P,!1),(ve=re.onVnodeBeforeUpdate)&&mt(ve,P,b,h),de&&Ut(b,h,P,"beforeUpdate"),P&&qt(P,!0),(se.innerHTML&&re.innerHTML==null||se.textContent&&re.textContent==null)&&v(Y,""),N?V(h.dynamicChildren,N,Y,P,j,Jn(b,F),I):Z||T(h,b,Y,null,P,j,Jn(b,F),I,!1),B>0){if(B&16)ne(Y,se,re,P,F);else if(B&2&&se.class!==re.class&&o(Y,"class",null,re.class,F),B&4&&o(Y,"style",se.style,re.style,F),B&8){const we=b.dynamicProps;for(let Te=0;Te<we.length;Te++){const ke=we[Te],qe=se[ke],Be=re[ke];(Be!==qe||ke==="value")&&o(Y,ke,qe,Be,F,P)}}B&1&&h.children!==b.children&&v(Y,b.children)}else!Z&&N==null&&ne(Y,se,re,P,F);((ve=re.onVnodeUpdated)||de)&&Je(()=>{ve&&mt(ve,P,b,h),de&&Ut(b,h,P,"updated")},j)},V=(h,b,P,j,F,I,Z)=>{for(let Y=0;Y<b.length;Y++){const B=h[Y],N=b[Y],de=B.el&&(B.type===U||!Dt(B,N)||B.shapeFlag&198)?m(B.el):P;_(B,N,de,null,j,F,I,Z,!0)}},ne=(h,b,P,j,F)=>{if(b!==P){if(b!==Ee)for(const I in b)!hs(I)&&!(I in P)&&o(h,I,b[I],null,F,j);for(const I in P){if(hs(I))continue;const Z=P[I],Y=b[I];Z!==Y&&I!=="value"&&o(h,I,Y,Z,F,j)}"value"in P&&o(h,"value",b.value,P.value,F)}},_e=(h,b,P,j,F,I,Z,Y,B)=>{const N=b.el=h?h.el:r(""),de=b.anchor=h?h.anchor:r("");let{patchFlag:se,dynamicChildren:re,slotScopeIds:ve}=b;ve&&(Y=Y?Y.concat(ve):ve),h==null?(l(N,P,j),l(de,P,j),X(b.children||[],P,de,F,I,Z,Y,B)):se>0&&se&64&&re&&h.dynamicChildren&&h.dynamicChildren.length===re.length?(V(h.dynamicChildren,re,P,F,I,Z,Y),(b.key!=null||F&&b===F.subTree)&&ko(h,b,!0)):T(h,b,P,de,F,I,Z,Y,B)},Me=(h,b,P,j,F,I,Z,Y,B)=>{b.slotScopeIds=Y,h==null?b.shapeFlag&512?F.ctx.activate(b,P,j,Z,B):Le(b,P,j,F,I,Z,B):Re(h,b,B)},Le=(h,b,P,j,F,I,Z)=>{const Y=h.component=pr(h,j,F);if(Nn(h)&&(Y.ctx.renderer=Tt),gr(Y,!1,Z),Y.asyncDep){if(F&&F.registerDep(Y,pe,Z),!h.el){const B=Y.subTree=be(ct);R(null,B,b,P),h.placeholder=B.el}}else pe(Y,h,b,P,F,I,Z)},Re=(h,b,P)=>{const j=b.component=h.component;if(Ki(h,b,P))if(j.asyncDep&&!j.asyncResolved){fe(j,b,P);return}else j.next=b,j.update();else b.el=h.el,j.vnode=b},pe=(h,b,P,j,F,I,Z)=>{const Y=()=>{if(h.isMounted){let{next:se,bu:re,u:ve,parent:we,vnode:Te}=h;{const Ye=So(h);if(Ye){se&&(se.el=Te.el,fe(h,se,Z)),Ye.asyncDep.then(()=>{Je(()=>{h.isUnmounted||N()},F)});return}}let ke=se,qe;qt(h,!1),se?(se.el=Te.el,fe(h,se,Z)):se=Te,re&&mn(re),(qe=se.props&&se.props.onVnodeBeforeUpdate)&&mt(qe,we,se,Te),qt(h,!0);const Be=fo(h),et=h.subTree;h.subTree=Be,_(et,Be,m(et.el),ie(et),h,F,I),se.el=Be.el,ke===null&&Kn(h,Be.el),ve&&Je(ve,F),(qe=se.props&&se.props.onVnodeUpdated)&&Je(()=>mt(qe,we,se,Te),F)}else{let se;const{el:re,props:ve}=b,{bm:we,m:Te,parent:ke,root:qe,type:Be}=h,et=ss(b);qt(h,!1),we&&mn(we),!et&&(se=ve&&ve.onVnodeBeforeMount)&&mt(se,ke,b),qt(h,!0);{qe.ce&&qe.ce._hasShadowRoot()&&qe.ce._injectChildStyle(Be);const Ye=h.subTree=fo(h);_(null,Ye,P,j,h,F,I),b.el=Ye.el}if(Te&&Je(Te,F),!et&&(se=ve&&ve.onVnodeMounted)){const Ye=b;Je(()=>mt(se,ke,Ye),F)}(b.shapeFlag&256||ke&&ss(ke.vnode)&&ke.vnode.shapeFlag&256)&&h.a&&Je(h.a,F),h.isMounted=!0,b=P=j=null}};h.scope.on();const B=h.effect=new _l(Y);h.scope.off();const N=h.update=B.run.bind(B),de=h.job=B.runIfDirty.bind(B);de.i=h,de.id=h.uid,B.scheduler=()=>Dn(de),qt(h,!0),N()},fe=(h,b,P)=>{b.component=h;const j=h.vnode.props;h.vnode=b,h.next=null,zi(h,b.props,j,P),Gi(h,b.children,P),ht(),ql(h),pt()},T=(h,b,P,j,F,I,Z,Y,B=!1)=>{const N=h&&h.children,de=h?h.shapeFlag:0,se=b.children,{patchFlag:re,shapeFlag:ve}=b;if(re>0){if(re&128){S(N,se,P,j,F,I,Z,Y,B);return}else if(re&256){A(N,se,P,j,F,I,Z,Y,B);return}}ve&8?(de&16&&G(N,F,I),se!==N&&v(P,se)):de&16?ve&16?S(N,se,P,j,F,I,Z,Y,B):G(N,F,I,!0):(de&8&&v(P,""),ve&16&&X(se,P,j,F,I,Z,Y,B))},A=(h,b,P,j,F,I,Z,Y,B)=>{h=h||Vt,b=b||Vt;const N=h.length,de=b.length,se=Math.min(N,de);let re;for(re=0;re<se;re++){const ve=b[re]=B?kt(b[re]):dt(b[re]);_(h[re],ve,P,null,F,I,Z,Y,B)}N>de?G(h,F,I,!0,!1,se):X(b,P,j,F,I,Z,Y,B,se)},S=(h,b,P,j,F,I,Z,Y,B)=>{let N=0;const de=b.length;let se=h.length-1,re=de-1;for(;N<=se&&N<=re;){const ve=h[N],we=b[N]=B?kt(b[N]):dt(b[N]);if(Dt(ve,we))_(ve,we,P,null,F,I,Z,Y,B);else break;N++}for(;N<=se&&N<=re;){const ve=h[se],we=b[re]=B?kt(b[re]):dt(b[re]);if(Dt(ve,we))_(ve,we,P,null,F,I,Z,Y,B);else break;se--,re--}if(N>se){if(N<=re){const ve=re+1,we=ve<de?b[ve].el:j;for(;N<=re;)_(null,b[N]=B?kt(b[N]):dt(b[N]),P,we,F,I,Z,Y,B),N++}}else if(N>re)for(;N<=se;)z(h[N],F,I,!0),N++;else{const ve=N,we=N,Te=new Map;for(N=we;N<=re;N++){const oe=b[N]=B?kt(b[N]):dt(b[N]);oe.key!=null&&Te.set(oe.key,N)}let ke,qe=0;const Be=re-we+1;let et=!1,Ye=0;const ee=new Array(Be);for(N=0;N<Be;N++)ee[N]=0;for(N=ve;N<=se;N++){const oe=h[N];if(qe>=Be){z(oe,F,I,!0);continue}let he;if(oe.key!=null)he=Te.get(oe.key);else for(ke=we;ke<=re;ke++)if(ee[ke-we]===0&&Dt(oe,b[ke])){he=ke;break}he===void 0?z(oe,F,I,!0):(ee[he-we]=N+1,he>=Ye?Ye=he:et=!0,_(oe,b[he],P,null,F,I,Z,Y,B),qe++)}const O=et?er(ee):Vt;for(ke=O.length-1,N=Be-1;N>=0;N--){const oe=we+N,he=b[oe],at=b[oe+1],tt=oe+1<de?at.el||To(at):j;ee[N]===0?_(null,he,P,tt,F,I,Z,Y,B):et&&(ke<0||N!==O[ke]?H(he,P,tt,2):ke--)}}},H=(h,b,P,j,F=null)=>{const{el:I,type:Z,transition:Y,children:B,shapeFlag:N}=h;if(N&6){H(h.component.subTree,b,P,j);return}if(N&128){h.suspense.move(b,P,j);return}if(N&64){Z.move(h,b,P,Tt);return}if(Z===U){l(I,b,P);for(let se=0;se<B.length;se++)H(B[se],b,P,j);l(h.anchor,b,P);return}if(Z===Gs){y(h,b,P);return}if(j!==2&&N&1&&Y)if(j===0)Y.beforeEnter(I),l(I,b,P),Je(()=>Y.enter(I),F);else{const{leave:se,delayLeave:re,afterLeave:ve}=Y,we=()=>{h.ctx.isUnmounted?a(I):l(I,b,P)},Te=()=>{I._isLeaving&&I[pi](!0),se(I,()=>{we(),ve&&ve()})};re?re(I,we,Te):Te()}else l(I,b,P)},z=(h,b,P,j=!1,F=!1)=>{const{type:I,props:Z,ref:Y,children:B,dynamicChildren:N,shapeFlag:de,patchFlag:se,dirs:re,cacheIndex:ve}=h;if(se===-2&&(F=!1),Y!=null&&(ht(),xs(Y,null,P,h,!0),pt()),ve!=null&&(b.renderCache[ve]=void 0),de&256){b.ctx.deactivate(h);return}const we=de&1&&re,Te=!ss(h);let ke;if(Te&&(ke=Z&&Z.onVnodeBeforeUnmount)&&mt(ke,b,h),de&6)ae(h.component,P,j);else{if(de&128){h.suspense.unmount(P,j);return}we&&Ut(h,null,b,"beforeUnmount"),de&64?h.type.remove(h,b,P,Tt,j):N&&!N.hasOnce&&(I!==U||se>0&&se&64)?G(N,b,P,!1,!0):(I===U&&se&384||!F&&de&16)&&G(B,b,P),j&&le(h)}(Te&&(ke=Z&&Z.onVnodeUnmounted)||we)&&Je(()=>{ke&&mt(ke,b,h),we&&Ut(h,null,b,"unmounted")},P)},le=h=>{const{type:b,el:P,anchor:j,transition:F}=h;if(b===U){K(P,j);return}if(b===Gs){k(h);return}const I=()=>{a(P),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(h.shapeFlag&1&&F&&!F.persisted){const{leave:Z,delayLeave:Y}=F,B=()=>Z(P,I);Y?Y(h.el,I,B):B()}else I()},K=(h,b)=>{let P;for(;h!==b;)P=p(h),a(h),h=P;a(b)},ae=(h,b,P)=>{const{bum:j,scope:F,job:I,subTree:Z,um:Y,m:B,a:N}=h;Co(B),Co(N),j&&mn(j),F.stop(),I&&(I.flags|=8,z(Z,h,b,P)),Y&&Je(Y,b),Je(()=>{h.isUnmounted=!0},b)},G=(h,b,P,j=!1,F=!1,I=0)=>{for(let Z=I;Z<h.length;Z++)z(h[Z],b,P,j,F)},ie=h=>{if(h.shapeFlag&6)return ie(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const b=p(h.anchor||h.el),P=b&&b[fi];return P?p(P):b};let Ie=!1;const dn=(h,b,P)=>{let j;h==null?b._vnode&&(z(b._vnode,null,null,!0),j=b._vnode.component):_(b._vnode||null,h,b,null,null,null,P),b._vnode=h,Ie||(Ie=!0,ql(j),Kl(),Ie=!1)},Tt={p:_,um:z,m:H,r:le,mt:Le,mc:X,pc:T,pbc:V,n:ie,o:e};return{render:dn,hydrate:void 0,createApp:Ii(dn)}}function Jn({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 qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ko(e,t,s=!1){const l=e.children,a=t.children;if(ge(l)&&ge(a))for(let o=0;o<l.length;o++){const i=l[o];let r=a[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=a[o]=kt(a[o]),r.el=i.el),!s&&r.patchFlag!==-2&&ko(i,r)),r.type===Qs&&(r.patchFlag===-1&&(r=a[o]=kt(r)),r.el=i.el),r.type===ct&&!r.el&&(r.el=i.el)}}function er(e){const t=e.slice(),s=[0];let l,a,o,i,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(a=s[s.length-1],e[a]<g){t[l]=a,s.push(l);continue}for(o=0,i=s.length-1;o<i;)r=o+i>>1,e[s[r]]<g?o=r+1:i=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}function Co(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function To(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?To(t.subTree):null}const Eo=e=>e.__isSuspense;let Qn=0;const tr={name:"Suspense",__isSuspense:!0,process(e,t,s,l,a,o,i,r,c,g){if(e==null)sr(t,s,l,a,o,i,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}nr(e,t,s,l,a,i,r,c,g)}},hydrate:lr,normalize:or};function ks(e,t){const s=e.props&&e.props[t];ye(s)&&s()}function sr(e,t,s,l,a,o,i,r,c){const{p:g,o:{createElement:v}}=c,m=v("div"),p=e.suspense=Po(e,a,l,t,m,s,o,i,r,c);g(null,p.pendingBranch=e.ssContent,m,null,l,p,o,i),p.deps>0?(ks(e,"onPending"),ks(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,i),ls(p,e.ssFallback)):p.resolve(!1,!0)}function nr(e,t,s,l,a,o,i,r,{p:c,um:g,o:{createElement:v}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const p=t.ssContent,x=t.ssFallback,{activeBranch:$,pendingBranch:_,isInFallback:E,isHydrating:R}=m;if(_)m.pendingBranch=p,Dt(_,p)?(c(_,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():E&&(R||(c($,x,s,l,a,null,o,i,r),ls(m,x)))):(m.pendingId=Qn++,R?(m.isHydrating=!1,m.activeBranch=_):g(_,a,m),m.deps=0,m.effects.length=0,m.hiddenContainer=v("div"),E?(c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0?m.resolve():(c($,x,s,l,a,null,o,i,r),ls(m,x))):$&&Dt($,p)?(c($,p,s,l,a,m,o,i,r),m.resolve(!0)):(c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0&&m.resolve()));else if($&&Dt($,p))c($,p,s,l,a,m,o,i,r),ls(m,p);else if(ks(t,"onPending"),m.pendingBranch=p,p.shapeFlag&512?m.pendingId=p.component.suspenseId:m.pendingId=Qn++,c(null,p,m.hiddenContainer,null,a,m,o,i,r),m.deps<=0)m.resolve();else{const{timeout:M,pendingId:y}=m;M>0?setTimeout(()=>{m.pendingId===y&&m.fallback(x)},M):M===0&&m.fallback(x)}}function Po(e,t,s,l,a,o,i,r,c,g,v=!1){const{p:m,m:p,um:x,n:$,o:{parentNode:_,remove:E}}=g;let R;const M=ir(e);M&&t&&t.pendingBranch&&(R=t.pendingId,t.deps++);const y=e.props?xa(e.props.timeout):void 0,k=o,C={vnode:e,parent:t,parentComponent:s,namespace:i,container:l,hiddenContainer:a,deps:0,pendingId:Qn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!v,isHydrating:v,isUnmounted:!1,effects:[],resolve(J=!1,W=!1){const{vnode:X,activeBranch:L,pendingBranch:V,pendingId:ne,effects:_e,parentComponent:Me,container:Le,isInFallback:Re}=C;let pe=!1;C.isHydrating?C.isHydrating=!1:J||(pe=L&&V.transition&&V.transition.mode==="out-in",pe&&(L.transition.afterLeave=()=>{ne===C.pendingId&&(p(V,Le,o===k?$(L):o,0),Fn(_e),Re&&X.ssFallback&&(X.ssFallback.el=null))}),L&&(_(L.el)===Le&&(o=$(L)),x(L,Me,C,!0),!pe&&Re&&X.ssFallback&&Je(()=>X.ssFallback.el=null,C)),pe||p(V,Le,o,0)),ls(C,V),C.pendingBranch=null,C.isInFallback=!1;let fe=C.parent,T=!1;for(;fe;){if(fe.pendingBranch){fe.effects.push(..._e),T=!0;break}fe=fe.parent}!T&&!pe&&Fn(_e),C.effects=[],M&&t&&t.pendingBranch&&R===t.pendingId&&(t.deps--,t.deps===0&&!W&&t.resolve()),ks(X,"onResolve")},fallback(J){if(!C.pendingBranch)return;const{vnode:W,activeBranch:X,parentComponent:L,container:V,namespace:ne}=C;ks(W,"onFallback");const _e=$(X),Me=()=>{C.isInFallback&&(m(null,J,V,_e,L,null,ne,r,c),ls(C,J))},Le=J.transition&&J.transition.mode==="out-in";Le&&(X.transition.afterLeave=Me),C.isInFallback=!0,x(X,L,null,!0),Le||Me()},move(J,W,X){C.activeBranch&&p(C.activeBranch,J,W,X),C.container=J},next(){return C.activeBranch&&$(C.activeBranch)},registerDep(J,W,X){const L=!!C.pendingBranch;L&&C.deps++;const V=J.vnode.el;J.asyncDep.catch(ne=>{Yt(ne,J,0)}).then(ne=>{if(J.isUnmounted||C.isUnmounted||C.pendingId!==J.suspenseId)return;J.asyncResolved=!0;const{vnode:_e}=J;Xn(J,ne),V&&(_e.el=V);const Me=!V&&J.subTree.el;W(J,_e,_(V||J.subTree.el),V?null:$(J.subTree),C,i,X),Me&&(_e.placeholder=null,E(Me)),Kn(J,_e.el),L&&--C.deps===0&&C.resolve()})},unmount(J,W){C.isUnmounted=!0,C.activeBranch&&x(C.activeBranch,s,J,W),C.pendingBranch&&x(C.pendingBranch,s,J,W)}};return C}function lr(e,t,s,l,a,o,i,r,c){const g=t.suspense=Po(t,l,s,e.parentNode,document.createElement("div"),null,a,o,i,r,!0),v=c(e,g.pendingBranch=t.ssContent,s,g,o,i);return g.deps===0&&g.resolve(!1,!0),v}function or(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ao(l?s.default:s),e.ssFallback=l?Ao(s.fallback):be(ct)}function Ao(e){let t;if(ye(e)){const s=os&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ge,Mo())}return ge(e)&&(e=Hi(e)),e=dt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function ar(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):Fn(e)}function ls(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;s.el=a,l&&l.subTree===s&&(l.vnode.el=a,Kn(l,a))}function ir(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const U=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Gs=Symbol.for("v-stc"),Ss=[];let Ge=null;function u(e=!1){Ss.push(Ge=e?null:[])}function Mo(){Ss.pop(),Ge=Ss[Ss.length-1]||null}let os=1;function Ys(e,t=!1){os+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function Ro(e){return e.dynamicChildren=os>0?Ge||Vt:null,Mo(),os>0&&Ge&&Ge.push(e),e}function d(e,t,s,l,a,o){return Ro(n(e,t,s,l,a,o,!0))}function Xe(e,t,s,l,a){return Ro(be(e,t,s,l,a,!0))}function as(e){return e?e.__v_isVNode===!0:!1}function Dt(e,t){return e.type===t.type&&e.key===t.key}const Lo=({key:e})=>e??null,Xs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Oe(e)||je(e)||ye(e)?{i:ze,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,a=null,o=e===U?0:1,i=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lo(t),ref:t&&Xs(t),scopeId:zl,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:a,dynamicChildren:null,appContext:null,ctx:ze};return r?(Gn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Oe(s)?8:16),os>0&&!i&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const be=rr;function rr(e,t=null,s=null,l=0,a=null,o=!1){if((!e||e===eo)&&(e=ct),as(e)){const r=is(e,t,!0);return s&&Gn(r,s),os>0&&!o&&Ge&&(r.shapeFlag&6?Ge[Ge.indexOf(e)]=r:Ge.push(r)),r.patchFlag=-2,r}if(wr(e)&&(e=e.__vccOpts),t){t=ur(t);let{class:r,style:c}=t;r&&!Oe(r)&&(t.class=D(r)),Ce(c)&&(Ln(c)&&!ge(c)&&(c=Ne({},c)),t.style=Ke(c))}const i=Oe(e)?1:Eo(e)?128:hi(e)?64:Ce(e)?4:ye(e)?2:0;return n(e,t,s,l,a,i,o,!0)}function ur(e){return e?Ln(e)||yo(e)?Ne({},e):e:null}function is(e,t,s=!1,l=!1){const{props:a,ref:o,patchFlag:i,children:r,transition:c}=e,g=t?dr(a||{},t):a,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Lo(g),ref:t&&t.ref?s&&o?ge(o)?o.concat(Xs(t)):[o,Xs(t)]:Xs(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!==U?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&is(e.ssContent),ssFallback:e.ssFallback&&is(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&In(v,c.clone(v)),v}function xe(e=" ",t=0){return be(Qs,null,e,t)}function cr(e,t){const s=be(Gs,null,e);return s.staticCount=t,s}function te(e="",t=!1){return t?(u(),Xe(ct,null,e)):be(ct,null,e)}function dt(e){return e==null||typeof e=="boolean"?be(ct):ge(e)?be(U,null,e.slice()):as(e)?kt(e):be(Qs,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:is(e)}function Gn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(ge(t))s=16;else if(typeof t=="object")if(l&65){const a=t.default;a&&(a._c&&(a._d=!1),Gn(e,a()),a._c&&(a._d=!0));return}else{s=32;const a=t._;!a&&!yo(t)?t._ctx=ze:a===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:ze},s=32):(t=String(t),l&64?(s=16,t=[xe(t)]):s=8);e.children=t,e.shapeFlag|=s}function dr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const a in l)if(a==="class")t.class!==l.class&&(t.class=D([t.class,l.class]));else if(a==="style")t.style=Ke([t.style,l.style]);else if(Ms(a)){const o=t[a],i=l[a];i&&o!==i&&!(ge(o)&&o.includes(i))&&(t[a]=o?[].concat(o,i):i)}else a!==""&&(t[a]=l[a])}return t}function mt(e,t,s,l=null){vt(e,t,7,[s,l])}const fr=uo();let hr=0;function pr(e,t,s){const l=e.type,a=(t?t.appContext:e.appContext)||fr,o={uid:hr++,vnode:e,type:l,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ea(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:bo(l,a),emitsOptions:co(l,a),emit:null,emitted:null,propsDefaults:Ee,inheritAttrs:l.inheritAttrs,ctx:Ee,data:Ee,props:Ee,attrs:Ee,slots:Ee,refs:Ee,setupState:Ee,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=Ni.bind(null,o),e.ce&&e.ce(o),o}let He=null;const vr=()=>He||ze;let Zs,Yn;{const e=Os(),t=(s,l)=>{let a;return(a=e[s])||(a=e[s]=[]),a.push(l),o=>{a.length>1?a.forEach(i=>i(o)):a[0](o)}};Zs=t("__VUE_INSTANCE_SETTERS__",s=>He=s),Yn=t("__VUE_SSR_SETTERS__",s=>rs=s)}const Cs=e=>{const t=He;return Zs(e),e.scope.on(),()=>{e.scope.off(),Zs(t)}},Oo=()=>{He&&He.scope.off(),Zs(null)};function Do(e){return e.vnode.shapeFlag&4}let rs=!1;function gr(e,t=!1,s=!1){t&&Yn(t);const{props:l,children:a}=e.vnode,o=Do(e);Vi(e,l,o,t),Qi(e,a,s||t);const i=o?yr(e,t):void 0;return t&&Yn(!1),i}function yr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ai);const{setup:l}=s;if(l){ht();const a=e.setupContext=l.length>1?br(e):null,o=Cs(e),i=Gt(l,e,0,[e.props,a]),r=fl(i);if(pt(),o(),(r||e.sp)&&!ss(e)&&Bn(e),r){if(i.then(Oo,Oo),t)return i.then(c=>{Xn(e,c)}).catch(c=>{Yt(c,e,0)});e.asyncDep=i}else Xn(e,i)}else Fo(e)}function Xn(e,t,s){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=Bl(t)),Fo(e)}function Fo(e,t,s){const l=e.type;e.render||(e.render=l.render||ft);{const a=Cs(e);ht();try{Mi(e)}finally{pt(),a()}}}const mr={get(e,t){return Ue(e,"get",""),e[t]}};function br(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,mr),slots:e.slots,emit:e.emit,expose:t}}function Zn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bl(Qa(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in ws)return ws[s](e)},has(t,s){return s in t||s in ws}})):e.proxy}const _r=/(?:^|[-_])\w/g,xr=e=>e.replace(_r,t=>t.toUpperCase()).replace(/[-_]/g,"");function Io(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Bo(e,t,s=!1){let l=Io(t);if(!l&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(l=a[1])}if(!l&&e){const a=o=>{for(const i in o)if(o[i]===t)return i};l=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return l?xr(l):s?"App":"Anonymous"}function wr(e){return ye(e)&&"__vccOpts"in e}const q=(e,t)=>ei(e,t,rs);function us(e,t,s){try{Ys(-1);const l=arguments.length;return l===2?Ce(t)&&!ge(t)?as(t)?be(e,null,[t]):be(e,t):be(e,null,t):(l>3?s=Array.prototype.slice.call(arguments,2):l===3&&as(s)&&(s=[s]),be(e,t,s))}finally{Ys(1)}}const $r="3.5.29";let el;const No=typeof window<"u"&&window.trustedTypes;if(No)try{el=No.createPolicy("vue",{createHTML:e=>e})}catch{}const jo=el?e=>el.createHTML(e):e=>e,kr="http://www.w3.org/2000/svg",Sr="http://www.w3.org/1998/Math/MathML",St=typeof document<"u"?document:null,Ho=St&&St.createElement("template"),Cr={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 a=t==="svg"?St.createElementNS(kr,e):t==="mathml"?St.createElementNS(Sr,e):s?St.createElement(e,{is:s}):St.createElement(e);return e==="select"&&l&&l.multiple!=null&&a.setAttribute("multiple",l.multiple),a},createText:e=>St.createTextNode(e),createComment:e=>St.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>St.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,a,o){const i=s?s.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),s),!(a===o||!(a=a.nextSibling)););else{Ho.innerHTML=jo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ho.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[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Tr=Symbol("_vtc");function Er(e,t,s){const l=e[Tr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Uo=Symbol("_vod"),Pr=Symbol("_vsh"),Ar=Symbol(""),Mr=/(?:^|;)\s*display\s*:/;function Rr(e,t,s){const l=e.style,a=Oe(s);let o=!1;if(s&&!a){if(t)if(Oe(t))for(const i of t.split(";")){const r=i.slice(0,i.indexOf(":")).trim();s[r]==null&&en(l,r,"")}else for(const i in t)s[i]==null&&en(l,i,"");for(const i in s)i==="display"&&(o=!0),en(l,i,s[i])}else if(a){if(t!==s){const i=l[Ar];i&&(s+=";"+i),l.cssText=s,o=Mr.test(s)}}else t&&e.removeAttribute("style");Uo in e&&(e[Uo]=o?l.display:"",e[Pr]&&(l.display="none"))}const qo=/\s*!important$/;function en(e,t,s){if(ge(s))s.forEach(l=>en(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Lr(e,t);qo.test(s)?e.setProperty(Et(l),s.replace(qo,""),"important"):e[l]=s}}const Ko=["Webkit","Moz","ms"],tl={};function Lr(e,t){const s=tl[t];if(s)return s;let l=st(t);if(l!=="filter"&&l in e)return tl[t]=l;l=Ls(l);for(let a=0;a<Ko.length;a++){const o=Ko[a]+l;if(o in e)return tl[t]=o}return t}const Vo="http://www.w3.org/1999/xlink";function zo(e,t,s,l,a,o=Ca(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Vo,t.slice(6,t.length)):e.setAttributeNS(Vo,t,s):s==null||o&&!yl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":it(s)?String(s):s)}function Wo(e,t,s,l,a){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?jo(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 i=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=yl(s):s==null&&r==="string"?(s="",i=!0):r==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(a||t)}function Or(e,t,s,l){e.addEventListener(t,s,l)}function Dr(e,t,s,l){e.removeEventListener(t,s,l)}const Jo=Symbol("_vei");function Fr(e,t,s,l,a=null){const o=e[Jo]||(e[Jo]={}),i=o[t];if(l&&i)i.value=l;else{const[r,c]=Ir(t);if(l){const g=o[t]=jr(l,a);Or(e,r,g,c)}else i&&(Dr(e,r,i,c),o[t]=void 0)}}const Qo=/(?:Once|Passive|Capture)$/;function Ir(e){let t;if(Qo.test(e)){t={};let l;for(;l=e.match(Qo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Et(e.slice(2)),t]}let sl=0;const Br=Promise.resolve(),Nr=()=>sl||(Br.then(()=>sl=0),sl=Date.now());function jr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;vt(Hr(l,s.value),t,5,[l])};return s.value=e,s.attached=Nr(),s}function Hr(e,t){if(ge(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>a=>!a._stopped&&l&&l(a))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ur=(e,t,s,l,a,o)=>{const i=a==="svg";t==="class"?Er(e,l,i):t==="style"?Rr(e,s,l):Ms(t)?pn(t)||Fr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qr(e,t,l,i))?(Wo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zo(e,t,l,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Oe(l))?Wo(e,st(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),zo(e,t,l,i))};function qr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&ye(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 a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Go(t)&&Oe(s)?!1:t in e}const Kr=["ctrl","shift","alt","meta"],Vr={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)=>Kr.some(s=>e[`${s}Key`]&&!t.includes(s))},ot=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((a,...o)=>{for(let i=0;i<t.length;i++){const r=Vr[t[i]];if(r&&r(a,t))return}return e(a,...o)}))},zr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ts=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(a=>{if(!("key"in a))return;const o=Et(a.key);if(t.some(i=>i===o||zr[i]===o))return e(a)}))},Wr=Ne({patchProp:Ur},Cr);let Yo;function Jr(){return Yo||(Yo=Yi(Wr))}const Qr=((...e)=>{const t=Jr().createApp(...e),{mount:s}=t;return t.mount=l=>{const a=Yr(l);if(!a)return;const o=t._component;!ye(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const i=s(a,!1,Gr(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),i},t});function Gr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Yr(e){return Oe(e)?document.querySelector(e):e}async function Xr(){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 Zr(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const i=await Xr();if(!i)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new i({baseUrl:e.baseUrl||window.location.origin,...e.authToken?{beforeSubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}},beforeUnsubscribe(r){return{headers:{Authorization:`Bearer ${e.authToken}`}}}}:{}}),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(i){e.onError&&e.onError(i)}},unsubscribe:async()=>{l=!0;try{s&&(await s.delete(),s=null),t&&(t=null)}catch{}}}}function eu(e){let t=!1;const s=Zr({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 tn extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class tu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class nl{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const a={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:a,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 tn(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new tu(o.status,i)}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 sn="ss-dash-theme",ll="ss-theme-change";function Es(){if(typeof window>"u")return"light";const e=localStorage.getItem(sn);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function su(e){typeof window>"u"||(localStorage.setItem(sn,e),window.dispatchEvent(new CustomEvent(ll,{detail:e})))}function nu(){const t=Es()==="dark"?"light":"dark";return su(t),t}function Xo(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===sn){const i=o.newValue;e(i==="dark"||i==="light"?i:Es())}},l=window.matchMedia("(prefers-color-scheme: dark)"),a=o=>{localStorage.getItem(sn)||e(o.matches?"dark":"light")};return window.addEventListener(ll,t),window.addEventListener("storage",s),l.addEventListener("change",a),()=>{window.removeEventListener(ll,t),window.removeEventListener("storage",s),l.removeEventListener("change",a)}}const lu={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function ou(e){return{...lu,...e}}let au=0;function iu(){return`ss-grad-${au++}`}function ru(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let a=1;a<e.length;a++){const o=e[a];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function uu(e,t){if(e.length<2)return null;const s=ou(t),l=ru(e),a=l.max-l.min||1,o=s.width-s.padding*2,i=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let _=0;_<c;_++){const E=r+_/(c-1)*o,R=r+i-(e[_]-l.min)/a*i;g[_]=`${E.toFixed(1)},${R.toFixed(1)}`}const v=g.join(" "),m=(r+o).toFixed(1),p=(r+i).toFixed(1),x=r.toFixed(1),$=`M${g[0]} `+g.slice(1).map(_=>`L${_}`).join(" ")+` L${m},${p} L${x},${p} Z`;return{points:v,areaPath:$,gradientId:iu(),options:s,stats:l}}const cu=5e3,Zo=1e4,ea=100,du=500;function fu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),a=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${a}m`:a>0?`${a}m ${t%60}s`:`${t}s`}function Ft(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function ta(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(ta(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(ta(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 nn(e){return e>du?"very-slow":e>ea?"slow":"normal"}function ln(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const l="["+e.slice(0,3).map(a=>ln(a,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return l.length>t?"["+e.length+" items]":l}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const l=[];for(let o=0;o<Math.min(s.length,4);o++)l.push(s[o]+": "+ln(e[s[o]],30));const a="{ "+l.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return a.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":a}return String(e)}function hu(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 pu(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}function vu(e){const t=new URLSearchParams;if(e.page!==null&&e.page!==void 0&&t.set("page",String(e.page)),e.perPage!==null&&e.perPage!==void 0&&t.set("perPage",String(e.perPage)),e.search&&t.set("search",e.search),e.sort&&t.set("sort",e.sort),e.sortDir&&t.set("direction",e.sortDir),e.timeRange&&t.set("range",e.timeRange),e.filters)for(const[s,l]of Object.entries(e.filters))l&&t.set(s,l);return t.toString()}function gu(e,t,s=2){if(t<=1)return[1];const l=[],a=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),a>2&&l.push("...");for(let i=a;i<=o;i++)l.push(i);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const sa="/admin/api/debug",na={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 yu(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function mu(e,t=sa){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function bu(e){const{baseUrl:t="",debugEndpoint:s=sa,authToken:l}=e,a=new nl({baseUrl:t,authToken:l});try{const o=await mu(a,s);return yu(o)}catch{return na}}const _u={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function xu(e){return _u[e]||`/${e}`}class la{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const a=xu(t),o=s?`${this.basePath}${a}?${s}`:`${this.basePath}${a}`;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`)}}class wu{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 nl({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new la(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(t&&this.explicitFetchPending)return;this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId,a=this.section;if(!a)return;const o=this.filters,i=this.sort?this.sort.replace(/[A-Z]/g,c=>"_"+c.toLowerCase()):void 0,r=vu({page:this.page,perPage:this.perPage,search:this.search,sort:i,sortDir:this.sort?this.sortDir:void 0,filters:o&&Object.keys(o).length>0?o:void 0,timeRange:a.startsWith("overview")?this.timeRange:void 0});t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0);try{const c=await this.api.fetchSection(a,r||void 0,{signal:s.signal});if(l!==this.fetchId||this.stopped)return;if(c&&typeof c=="object"&&c.data!==void 0&&c.meta!==void 0){const g=c;this.callbacks.onData(g.data),this.callbacks.onPagination(g.meta)}else this.callbacks.onData(c),this.callbacks.onPagination(null);this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}catch(c){if(c instanceof DOMException&&c.name==="AbortError"||s.signal.aborted||l!==this.fetchId||this.stopped)return;if(c instanceof tn){this.callbacks.onError(c),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}t||(this.callbacks.onError(c instanceof Error?c:new Error(String(c))),this.callbacks.onLoading(!1))}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 a=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(a,l):await this.client.delete(a);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}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?cu:Zo;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Ae={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"/>']}},$u="ss-col-resize",oa="ss-resizing";function ku(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function a(){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 i=function(c){c.preventDefault(),c.stopPropagation(),a();const g=c.clientX,v=o.offsetWidth;r.classList.add(oa),r.setPointerCapture(c.pointerId);function m(x){const $=x.clientX-g,_=Math.max(30,v+$);o.style.width=_+"px"}function p(){r.classList.remove(oa),r.removeEventListener("pointermove",m),r.removeEventListener("pointerup",p)}r.addEventListener("pointermove",m),r.addEventListener("pointerup",p)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=$u,o.appendChild(r),r.addEventListener("pointerdown",i),s.push(()=>{r.removeEventListener("pointerdown",i),r.remove()})}return()=>{for(const o of s)o()}}const Su=["all","error","warn","info","debug"];function aa(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Cu(e){return e.msg||e.message||JSON.stringify(e)}function on(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ps(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 Tu(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 ia=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 As(e){if(e.data){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const l={};for(const[a,o]of Object.entries(s))ia.has(a)||(l[a]=o);if(Object.keys(l).length>0)return l}}const t={};for(const[s,l]of Object.entries(e))ia.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const Eu=["all","active","waiting","delayed","completed","failed"];function Pu(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 Au(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function Mu(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function ol(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ra(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function al(e,t,s,l=0){return e[t]??e[s]??l}function Ru(e){return{method:e.method||"",url:e.url||"",statusCode:al(e,"status_code","statusCode"),totalDuration:al(e,"total_duration","totalDuration")||e.duration||0,spanCount:al(e,"span_count","spanCount"),spans:ol(e.spans),warnings:ra(e.warnings)}}const Lu=["password","secret","token","key","credential","auth"];function Ou(e){const t=e.toLowerCase();return Lu.some(s=>t.includes(s))}function Du(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 Fu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Iu(e){return Fu[e]||e}const Bu={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Nu(e){return Bu[e]||e}function ju(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Hu(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 Uu(e){return Object.entries(e).map(([t,s])=>({key:t,value:Du(s),secret:Ou(t)}))}function qu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Ku=["healthy","active","connected","available","ready"],Vu=["errored","unavailable"];function zu(e){return Ku.includes(e)?"ok":Vu.includes(e)?"err":""}function Fe(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function an(e,t=""){if(typeof e!="object"||e===null||e===void 0)return[{path:t,value:e}];if(Array.isArray(e)||Fe(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const a=t?`${t}.${l}`:l,o=e[l];typeof o=="object"&&o!==null&&!Array.isArray(o)&&!Fe(o)?s.push(...an(o,a)):s.push({path:a,value:o})}return s}function Wu(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 ua(e){if(e==null||typeof e!="object"||Array.isArray(e)||Fe(e))return 1;let t=0;for(const s of Object.keys(e))t+=ua(e[s]);return t}function Ju(e){if(e==null||typeof e!="object"||Array.isArray(e)||Fe(e))return[];const t=[];for(const s of Object.keys(e)){const l=e[s];l!==null&&typeof l=="object"&&!Array.isArray(l)&&!Fe(l)&&t.push(s)}return t}function Qu(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 Gu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,a=Q({...na}),o=Q(!0);return Lt(async()=>{a.value=await bu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:a,loading:o}}function ca(){const e=Q(Es());let t=null;function s(a){e.value=a}function l(){const a=nu();return e.value=a,a}return Lt(()=>{e.value=Es(),t=Xo(s)}),Ot(()=>{t?.()}),{theme:e,toggleTheme:l}}function Ze(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:a,perPage:o=50,refreshKey:i}=t,r=Q(null),c=Q(!1),g=Q(null),v=Q(!1),m=Q("1h"),p=Jt({page:1,perPage:o,total:0,totalPages:1}),x=Jt({search:""}),$=Jt({column:"",direction:"desc"}),_=new wu({baseUrl:s,endpoint:l,authToken:a,section:e(),perPage:o,callbacks:{onData:S=>{E=S},onPagination:S=>{S?(p.total=S.total,p.totalPages=S.lastPage??(Math.ceil(S.total/p.perPage)||1),r.value={data:E,meta:S}):r.value=E},onLoading:S=>{c.value=S},onError:S=>{g.value=S},onUnauthorized:()=>{v.value=!0}}});let E=null;const R=_.getApi();async function M(S){try{return await R.fetchChart(S)}catch(H){return H instanceof tn&&(v.value=!0),null}}async function y(){try{return await R.fetchGroupedQueries()}catch{return null}}async function k(S){try{return await R.explainQuery(S)}catch{return null}}async function C(S){try{return await R.retryJob(S),!0}catch{return!1}}async function J(S){try{return await R.deleteCacheKey(S),!0}catch{return!1}}async function W(S){try{return(await R.fetchEmailPreview(S))?.html||null}catch{return null}}function X(S){p.page=S,A()}function L(S){x.search=S,p.page=1,A()}function V(S,H){x[S]=H,p.page=1,A()}function ne(S,H){$.column===S&&!H?$.direction=$.direction==="asc"?"desc":"asc":($.column=S,$.direction=H||"desc"),A()}function _e(S){m.value=S,A()}async function Me(S,H="post",z){return _.mutate(S,H,z)}function Le(){T(),_.fetch(!0)}function Re(){_.start()}function pe(){_.stop()}function fe(){const S={};for(const[H,z]of Object.entries(x))H!=="search"&&z!==""&&z!==void 0&&z!==null&&(S[H]=String(z));return S}function T(){const S=e(),H=fe();_.configure({page:p.page,perPage:p.perPage,search:x.search||void 0,sort:$.column||void 0,sortDir:$.column?$.direction:void 0,filters:Object.keys(H).length>0?H:void 0,timeRange:S.startsWith("overview")?m.value:void 0})}function A(){T(),_.fetch(!1)}return yt(e,()=>{p.page=1;for(const S of Object.keys(x))S==="search"?x.search="":delete x[S];$.column="",r.value=null,_.setSection(e()),T()}),i&&yt(i,()=>{T(),_.handleRefreshSignal()}),Lt(()=>{T(),_.start()}),Ot(()=>{_.stop()}),{data:r,loading:c,error:g,isUnauthorized:v,pagination:p,filter:x,sort:$,timeRange:m,goToPage:X,setSearch:L,setFilter:V,setSort:ne,setTimeRange:_e,refresh:Le,startRefresh:Re,stopRefresh:pe,mutate:Me,fetchChart:M,fetchGroupedQueries:y,explainQuery:k,retryJob:C,deleteCacheKey:J,fetchEmailPreview:W}}const Yu=["title","aria-label"],Xu=["viewBox","innerHTML"],Zu=["viewBox","innerHTML"],ec=De({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=ca(),a=q(()=>s.value==="dark"),o=q(()=>a.value?"Switch to light theme":"Switch to dark theme"),i=q(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:D(i.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>w(l)&&w(l)(...g))},[a.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Ae).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae).sun.elements.join("")},null,8,Xu)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Ae).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae).moon.elements.join("")},null,8,Zu))],10,Yu))}}),tc=["data-theme"],sc={class:"ss-dash-header"},nc={class:"ss-dash-header-center"},lc={class:"ss-dash-header-right"},oc=["href"],ac={class:"ss-dash-body"},ic={class:"ss-dash-nav"},rc=["data-ss-section","onClick","title"],uc={class:"ss-dash-nav-icon"},cc=["viewBox","innerHTML"],dc={class:"ss-dash-nav-label"},fc={key:0,class:"ss-dash-nav-sep"},hc=["onClick","title"],pc={class:"ss-dash-nav-icon"},vc=["viewBox","innerHTML"],gc={class:"ss-dash-nav-label"},yc=["title"],mc=["viewBox","innerHTML"],bc=["viewBox","innerHTML"],_c={class:"ss-dash-main"},xc=["id"],wc={class:"ss-dash-pane-inner"},$c={key:1,class:"ss-dash-empty"},kc=De({__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=lt(()=>Promise.resolve().then(()=>Rf)),s=lt(()=>Promise.resolve().then(()=>_h)),l=lt(()=>Promise.resolve().then(()=>tp)),a=lt(()=>Promise.resolve().then(()=>rp)),o=lt(()=>Promise.resolve().then(()=>yp)),i=lt(()=>Promise.resolve().then(()=>jp)),r=lt(()=>Promise.resolve().then(()=>nv)),c=lt(()=>Promise.resolve().then(()=>yv)),g=lt(()=>Promise.resolve().then(()=>Bv)),v=lt(()=>Promise.resolve().then(()=>rg)),m=lt(()=>Promise.resolve().then(()=>Ig)),p=lt(()=>Promise.resolve().then(()=>m1)),x=["overview","requests","queries","events","routes","logs","emails","timeline","cache","jobs","config","internals"],$=e,{theme:_}=ca(),{features:E}=Gu({baseUrl:$.baseUrl,debugEndpoint:$.debugEndpoint,authToken:$.authToken}),R=Q("overview"),M=Q(!1),y=Q(!1),k=Q(0);ts("ss-refresh-key",k),ts("ss-base-url",$.baseUrl),ts("ss-dashboard-endpoint",$.dashboardEndpoint),ts("ss-debug-endpoint",$.debugEndpoint),ts("ss-auth-token",$.authToken),typeof window<"u"&&(M.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let C=null;function J(){if(C&&(C(),C=null),!$.channelName)return;C=eu({baseUrl:$.baseUrl,channelName:$.channelName,authToken:$.authToken,onMessage:()=>{k.value+=1},onConnect:()=>{y.value=!0},onDisconnect:()=>{y.value=!1},onError:()=>{y.value=!1}}).unsubscribe}Lt(()=>{J()}),Ot(()=>{C&&(C(),C=null)});const W=q(()=>E.value.customPanes||[]);function X(S){const H=S.replace("#","").split("?")[0];return H&&[...x,...W.value.map(le=>le.id)].includes(H)?H:"overview"}function L(){const S=X(window.location.hash);S!==R.value&&(R.value=S)}Lt(()=>{if(typeof window>"u")return;const S=X(window.location.hash);(S!=="overview"||window.location.hash)&&(R.value=S),window.addEventListener("hashchange",L)}),Ot(()=>{window.removeEventListener("hashchange",L)}),yt(R,S=>{typeof window<"u"&&(window.location.hash=S)});function V(){M.value=!M.value,localStorage.setItem("ss-dash-sidebar",M.value?"collapsed":"expanded")}function ne(S){S!==R.value&&(R.value=S)}const _e=q(()=>[{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:"timeline",label:"Timeline",visible:E.value.tracing},{id:"cache",label:"Cache",visible:E.value.cache},{id:"jobs",label:"Jobs",visible:E.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),Me=q(()=>_e.value.filter(S=>S.visible)),{data:Le}=Ze(()=>"overview",{baseUrl:$.baseUrl,dashboardEndpoint:$.dashboardEndpoint,authToken:$.authToken,refreshKey:k}),Re=q(()=>Le.value),pe=q(()=>{const S={};if(!Re.value)return S;if(Re.value.totalRequests>0&&(S.requests={count:Re.value.totalRequests}),Re.value.queryStats?.total>0&&(S.queries={count:Re.value.queryStats.total}),Re.value.logLevelBreakdown){const H=Re.value.logLevelBreakdown,z=H.error+H.warn+H.info+H.debug;z>0&&(S.logs={count:z})}return S}),fe={overview:t,requests:s,queries:l,events:a,routes:o,logs:i,emails:r,timeline:c,cache:g,jobs:v,config:m,internals:p},T=q(()=>fe[R.value]||null);function A(S){return S==="timeline"?"dashboard-timeline":S}return(S,H)=>(u(),d("div",{class:"ss-dash","data-theme":w(_),id:"ss-dash"},[n("div",sc,[H[0]||(H[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",nc,[n("span",{class:D(["ss-dash-live-dot",{"ss-dash-connected":y.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:D(["ss-dash-live-label",{"ss-dash-connected":y.value}]),id:"ss-dash-live-label"},f(y.value?"Live":"Polling"),3)]),n("div",lc,[be(ec,{"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,oc)):te("",!0)])]),n("div",ac,[n("div",{class:D(["ss-dash-sidebar",{"ss-dash-collapsed":M.value}]),id:"ss-dash-sidebar"},[n("nav",ic,[(u(!0),d(U,null,me(Me.value,z=>(u(),d("button",{key:z.id,type:"button",class:D(["ss-dash-nav-item",{"ss-dash-active":R.value===z.id}]),"data-ss-section":z.id,onClick:le=>ne(z.id),title:M.value?z.label:void 0},[n("span",uc,[(u(),d("svg",{width:"20",height:"20",viewBox:(w(Ae)[A(z.id)]||w(Ae).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(Ae)[A(z.id)]||w(Ae).config).elements.join("")},null,8,cc))]),n("span",dc,f(z.label),1),pe.value[z.id]&&pe.value[z.id].count>0?(u(),d("span",{key:0,class:D(["ss-dash-nav-badge",pe.value[z.id].variant||""])},f(pe.value[z.id].count),3)):te("",!0)],10,rc))),128)),W.value.length>0?(u(),d("div",fc)):te("",!0),(u(!0),d(U,null,me(W.value,z=>(u(),d("button",{key:z.id,type:"button",class:D(["ss-dash-nav-item",{"ss-dash-active":R.value===z.id}]),onClick:le=>ne(z.id),title:M.value?z.label:void 0},[n("span",pc,[(u(),d("svg",{width:"20",height:"20",viewBox:w(Ae)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae)["custom-pane"].elements.join("")},null,8,vc))]),n("span",gc,f(z.label),1)],10,hc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:V,title:M.value?"Expand sidebar":"Collapse sidebar"},[M.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(Ae)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Ae)["chevron-right"].elements.join("")},null,8,mc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(Ae)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(Ae)["chevron-left"].elements.join("")},null,8,bc))],8,yc)],2),n("div",_c,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${R.value}`},[n("div",wc,[(u(),Xe(tr,null,{fallback:es(()=>[...H[1]||(H[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:es(()=>[T.value?(u(),Xe(Ti(T.value),{key:0})):(u(),d("div",$c,"Unknown section"))]),_:1}))])],8,xc)])])],8,tc))}});function Sc(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function Cc(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Es()),Xo(e)}const cs=Sc("ss-dash-config");Cc();const da=document.getElementById("ss-dash");da&&Qr(kc,{baseUrl:cs.baseUrl,dashboardEndpoint:cs.dashboardEndpoint,debugEndpoint:cs.debugEndpoint,authToken:cs.authToken,backUrl:cs.backUrl,channelName:cs.channelName}).mount(da);const Tc=["width","height","viewBox"],Ec=["id"],Pc=["stop-color"],Ac=["stop-color"],Mc=["d","fill"],Rc=["d","stroke"],Lc=["x","y"],rn=De({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=q(()=>uu(t.data,{width:t.width,height:t.height,color:t.color})),l=q(()=>s.value!==null),a=q(()=>`sg-${t.color.replace("#","")}`);return(o,i)=>(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(U,{key:0},[n("defs",null,[n("linearGradient",{id:a.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,Pc),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,Ac)],8,Ec)]),n("path",{d:s.value.areaPath,fill:`url(#${a.value})`},null,8,Mc),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,Rc)],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,Lc))],8,Tc))],4))}}),Oc={class:"ss-dash-btn-group"},Dc=["onClick"],Fc=De({__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(a,o)=>(u(),d("div",Oc,[(u(),d(U,null,me(l,i=>n("button",{key:i.value,type:"button",class:D(`ss-dash-btn ${e.modelValue===i.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",i.value)},f(i.label),11,Dc)),64))]))}}),Ic={class:"ss-dash-overview"},Bc={key:0,class:"ss-dash-empty"},Nc={class:"ss-dash-cards"},jc={class:"ss-dash-card"},Hc={class:"ss-dash-sparkline"},Uc={class:"ss-dash-card"},qc={class:"ss-dash-sparkline"},Kc={class:"ss-dash-card"},Vc={class:"ss-dash-sparkline"},zc={class:"ss-dash-card"},Wc={class:"ss-dash-sparkline"},Jc={class:"ss-dash-chart-container"},Qc={class:"ss-dash-chart-header"},Gc={class:"ss-dash-chart",id:"ss-dash-chart-area"},Yc={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Xc=["viewBox"],Zc=["id"],ed=["id"],td=["x1","y1","x2","y2"],sd=["x","y"],nd=["d","fill"],ld=["d"],od=["d","fill"],ad=["d"],id=["x","y","width","height","data-idx","onMouseenter"],rd=["cx","cy","r","data-idx","opacity"],ud=["cx","cy","r","data-idx","opacity"],cd=["x","y"],dd={key:0,style:{color:"var(--ss-red-fg)"}},fd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},hd={key:0,class:"ss-dash-chart-legend-item"},pd={class:"ss-dash-secondary-cards"},vd={class:"ss-dash-secondary-card"},gd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},yd={key:1,class:"ss-dash-secondary-list"},md=["href"],bd=["title"],_d={class:"ss-dash-secondary-card"},xd={class:"ss-dash-secondary-list"},wd={class:"ss-dash-secondary-list-value"},$d={class:"ss-dash-secondary-list-value"},kd={class:"ss-dash-secondary-list-value"},Sd={class:"ss-dash-secondary-card"},Cd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Td={key:1,class:"ss-dash-secondary-list"},Ed=["href"],Pd=["title"],Ad=["title"],Md={class:"ss-dash-secondary-card"},Rd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Ld={key:1,class:"ss-dash-secondary-list"},Od=["href"],Dd={class:"ss-dash-secondary-list-value"},Fd={class:"ss-dash-secondary-card"},Id={class:"ss-dash-secondary-list"},Bd={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Nd={class:"ss-dash-secondary-list-value"},jd={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Hd={class:"ss-dash-secondary-list-value"},Ud={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},qd={class:"ss-dash-secondary-card"},Kd={class:"ss-dash-secondary-list"},Vd={href:"#logs?level=error",class:"ss-dash-widget-row-link"},zd={class:"ss-dash-secondary-list-value"},Wd={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Jd={class:"ss-dash-secondary-list-value"},Qd={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Gd={class:"ss-dash-secondary-list-value"},Yd={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Xd={class:"ss-dash-secondary-list-value"},Zd={key:0,class:"ss-dash-secondary-card"},ef={class:"ss-dash-secondary-list"},tf={href:"#cache",class:"ss-dash-widget-row-link"},sf={class:"ss-dash-secondary-list-value"},nf={href:"#cache",class:"ss-dash-widget-row-link"},lf={class:"ss-dash-secondary-list-value"},of={href:"#cache",class:"ss-dash-widget-row-link"},af={class:"ss-dash-secondary-list-value"},rf={key:1,class:"ss-dash-secondary-card"},uf={class:"ss-dash-secondary-list"},cf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},df={class:"ss-dash-secondary-list-value"},ff={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},hf={class:"ss-dash-secondary-list-value"},pf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},vf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},gf={class:"ss-dash-secondary-list-value"},yf={class:"ss-dash-secondary-card"},mf={class:"ss-dash-secondary-list"},bf={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},_f={class:"ss-dash-secondary-list-value"},xf={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},wf={class:"ss-dash-secondary-list-value"},$f={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},Sf={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},Cf={class:"ss-dash-secondary-list-value"},Tf={class:"ss-dash-secondary-card"},Ef={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},Pf={key:1,class:"ss-dash-secondary-list"},Af=["href"],Mf=["title"],il=220,fa=120,Rf=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,a]of t)s[l]=a;return s})(De({__name:"OverviewSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-base-url",""),l=ue("ss-dashboard-endpoint","/__stats/api"),a=ue("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),i=Q("1h"),{data:r,loading:c}=Ze(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),{data:g,setTimeRange:v}=Ze(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});yt(i,ee=>{v(ee)});const m=q(()=>r.value),p=q(()=>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:[]}),x=q(()=>p.value),$=q(()=>p.value.avgResponseTime||Number(x.value.avg_response_time)||0),_=q(()=>p.value.p95ResponseTime||Number(x.value.p95_response_time)||0),E=q(()=>p.value.requestsPerMinute||Number(x.value.requests_per_minute)||0),R=q(()=>p.value.errorRate||Number(x.value.error_rate)||0),M=q(()=>p.value.totalRequests||Number(x.value.total_requests)||0),y=q(()=>M.value>0),k=q(()=>g.value?.buckets||[]),C=q(()=>p.value.sparklines?.avgResponseTime??k.value.map(ee=>ee.avgDuration??0)),J=q(()=>p.value.sparklines?.p95ResponseTime??k.value.map(ee=>ee.p95Duration??0)),W=q(()=>p.value.sparklines?.requestsPerMinute??k.value.map(ee=>ee.requestCount??0)),X=q(()=>p.value.sparklines?.errorRate??k.value.map(ee=>ee.errorCount??0)),L=q(()=>`ss-cg-total-${o}`),V=q(()=>`ss-cg-error-${o}`);function ne(ee,O){if(ee<=0)return[0];const oe=ee/O,he=Math.pow(10,Math.floor(Math.log10(oe))),at=oe/he;let tt;at<=1?tt=he:at<=2?tt=2*he:at<=5?tt=5*he:tt=10*he;const fn=[];for(let rl=tt;rl<=ee+tt*.5;rl+=tt)fn.push(Math.round(rl));return fn.length===0&&fn.push(Math.ceil(ee)),fn}function _e(ee){try{return new Date(ee).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Me(ee){if(ee.length===0)return"";if(ee.length===1)return`M${ee[0].x},${ee[0].y}`;let O=`M${ee[0].x.toFixed(1)},${ee[0].y.toFixed(1)}`;for(let oe=0;oe<ee.length-1;oe++){const he=ee[oe],at=ee[oe+1],tt=(he.x+at.x)/2;O+=` C${tt.toFixed(1)},${he.y.toFixed(1)} ${tt.toFixed(1)},${at.y.toFixed(1)} ${at.x.toFixed(1)},${at.y.toFixed(1)}`}return O}function Le(ee){const O=nn(ee);return O==="very-slow"?"ss-dash-very-slow":O==="slow"?"ss-dash-slow":""}const Re=Q(null),pe=Q(0);let fe=null;yt(Re,ee=>{fe?.disconnect(),fe=null,ee&&(pe.value=ee.clientWidth,fe=new ResizeObserver(O=>{for(const oe of O)pe.value=oe.contentRect.width}),fe.observe(ee))}),Ot(()=>{fe?.disconnect()});const T={top:12,right:12,bottom:28,left:38},A=q(()=>pe.value||600),S=q(()=>A.value-T.left-T.right),H=q(()=>il-T.top-T.bottom),z=q(()=>T.top+H.value),le=q(()=>k.value.map(ee=>{const O=ee;return(ee.requestCount??0)+(Number(O.request_count)||0)||ee.total||0})),K=q(()=>k.value.map(ee=>{const O=ee;return(ee.errorCount??0)+(Number(O.error_count)||0)})),ae=q(()=>Math.max(...le.value,1)),G=q(()=>Math.ceil(ae.value*1.1)),ie=q(()=>K.value.some(ee=>ee>0)),Ie=q(()=>ne(G.value,4)),dn=q(()=>Ie.value.length>0?Ie.value[Ie.value.length-1]:G.value);function Tt(ee){return T.left+ee/Math.max(k.value.length-1,1)*S.value}function ds(ee){return T.top+H.value-ee/(dn.value||1)*H.value}const h=q(()=>k.value.map((ee,O)=>({x:Tt(O),y:ds(le.value[O])}))),b=q(()=>k.value.map((ee,O)=>({x:Tt(O),y:ds(K.value[O])}))),P=q(()=>Me(h.value)),j=q(()=>ie.value?Me(b.value):""),F=q(()=>h.value.length>1?`${P.value} L${h.value[h.value.length-1].x.toFixed(1)},${z.value} L${h.value[0].x.toFixed(1)},${z.value} Z`:""),I=q(()=>ie.value&&b.value.length>1?`${j.value} L${b.value[b.value.length-1].x.toFixed(1)},${z.value} L${b.value[0].x.toFixed(1)},${z.value} Z`:""),Z=q(()=>Math.min(10,k.value.length)),Y=q(()=>Math.max(1,Math.ceil(k.value.length/Z.value))),B=Q({visible:!1,x:0,idx:-1});function N(ee){const O=h.value[ee].x;B.value={visible:!0,x:O,idx:ee}}function de(){B.value={visible:!1,x:0,idx:-1}}const se=q(()=>B.value.visible?Math.max(fa/2,Math.min(B.value.x,A.value-fa/2)):0),re=q(()=>S.value/(k.value.length||1));function ve(ee){return ee%Y.value===0||ee===k.value.length-1}function we(){return y.value?$.value>500?"ss-dash-red":$.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Te(){return y.value?_.value>500?"ss-dash-red":_.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function ke(){return y.value?"ss-dash-accent":"ss-dash-dim"}function qe(){return y.value?R.value>5?"ss-dash-red":R.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Be(ee){return ee.url||ee.pattern||"-"}function et(ee){return ee.name||ee.eventName||ee.event_name||ee.event||""}function Ye(ee){return ee.sqlNormalized||ee.normalizedSql||ee.sql_normalized||ee.sql||"-"}return(ee,O)=>(u(),d("div",Ic,[w(c)&&!m.value?(u(),d("div",Bc,"Loading overview...")):(u(),d(U,{key:1},[n("div",Nc,[n("div",jc,[O[1]||(O[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:D(["ss-dash-card-value",we()])},f(y.value?w(Ft)($.value):"-"),3),n("div",Hc,[be(rn,{data:C.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Uc,[O[2]||(O[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:D(["ss-dash-card-value",Te()])},f(y.value?w(Ft)(_.value):"-"),3),n("div",qc,[be(rn,{data:J.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Kc,[O[3]||(O[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:D(["ss-dash-card-value",ke()])},f(y.value?E.value.toFixed(1):"-"),3),n("div",Vc,[be(rn,{data:W.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",zc,[O[4]||(O[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:D(["ss-dash-card-value",qe()])},f(y.value?`${R.value.toFixed(1)}%`:"-"),3),n("div",Wc,[be(rn,{data:X.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Jc,[n("div",Qc,[O[5]||(O[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),be(Fc,{"model-value":i.value,"onUpdate:modelValue":O[0]||(O[0]=oe=>i.value=oe)},null,8,["model-value"])]),n("div",Gc,[k.value.length===0?(u(),d("div",Yc," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:Re,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${A.value} ${il}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:L.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[6]||(O[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,Zc),n("linearGradient",{id:V.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...O[7]||(O[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,ed)]),(u(!0),d(U,null,me(Ie.value,oe=>(u(),d("g",{key:`ytick-${oe}`},[n("line",{x1:T.left,y1:ds(oe),x2:A.value-T.right,y2:ds(oe),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,td),n("text",{x:T.left-6,y:ds(oe),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},f(oe),9,sd)]))),128)),F.value?(u(),d("path",{key:0,d:F.value,fill:`url(#${L.value})`},null,8,nd)):te("",!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,ld)):te("",!0),I.value?(u(),d("path",{key:2,d:I.value,fill:`url(#${V.value})`},null,8,od)):te("",!0),j.value?(u(),d("path",{key:3,d:j.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,ad)):te("",!0),(u(!0),d(U,null,me(k.value,(oe,he)=>(u(),d("g",{key:he},[n("rect",{x:h.value[he].x-re.value/2,y:T.top,width:re.value,height:H.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":he,onMouseenter:at=>N(he),onMouseleave:de},null,40,id),le.value[he]>0?(u(),d("circle",{key:0,cx:h.value[he].x,cy:h.value[he].y,r:B.value.visible&&B.value.idx===he?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":he,opacity:B.value.visible&&B.value.idx!==he?.3:1},null,8,rd)):te("",!0),K.value[he]>0?(u(),d("circle",{key:1,cx:h.value[he].x,cy:b.value[he].y,r:B.value.visible&&B.value.idx===he?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":he,opacity:B.value.visible&&B.value.idx!==he?.3:1},null,8,ud)):te("",!0)]))),128)),(u(!0),d(U,null,me(k.value,(oe,he)=>(u(),d(U,{key:`xlabel-${he}`},[ve(he)&&_e(oe.bucket)?(u(),d("text",{key:0,x:Tt(he),y:il-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},f(_e(oe.bucket)),9,cd)):te("",!0)],64))),128))],8,Xc)),B.value.visible&&B.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ke({left:se.value+"px",top:T.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,f(_e(k.value[B.value.idx].bucket)),1),n("div",null,"Requests: "+f(le.value[B.value.idx]),1),K.value[B.value.idx]>0?(u(),d("div",dd," Errors: "+f(K.value[B.value.idx]),1)):te("",!0)],4)):te("",!0)],512))]),n("div",fd,[O[9]||(O[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),xe(" Requests ")],-1)),k.value.some(oe=>(oe.errorCount??0)>0)?(u(),d("span",hd,[...O[8]||(O[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),xe(" Errors ",-1)])])):te("",!0)])]),n("div",pd,[n("div",vd,[O[10]||(O[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),p.value.slowestEndpoints.length===0?(u(),d("div",gd," No data yet ")):(u(),d("ul",yd,[(u(!0),d(U,null,me(p.value.slowestEndpoints.slice(0,5),(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#requests?url=${encodeURIComponent(Be(oe))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Be(oe)},f(Be(oe)),9,bd),n("span",{class:D(["ss-dash-secondary-list-value","ss-dash-duration",Le(oe.avgDuration)])},f(w(Ft)(oe.avgDuration)),3)],8,md)]))),128))]))]),n("div",_d,[O[14]||(O[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",xd,[n("li",null,[O[11]||(O[11]=n("span",null,"Total Queries",-1)),n("span",wd,f(p.value.queryStats.total),1)]),n("li",null,[O[12]||(O[12]=n("span",null,"Avg Duration",-1)),n("span",$d,f(w(Ft)(p.value.queryStats.avgDuration)),1)]),n("li",null,[O[13]||(O[13]=n("span",null,"Queries / Request",-1)),n("span",kd,f(p.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",Sd,[O[15]||(O[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),p.value.recentErrors.length===0?(u(),d("div",Cd," No recent errors ")):(u(),d("ul",Td,[(u(!0),d(U,null,me(p.value.recentErrors,(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#logs?id=${oe.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:oe.message},f(oe.message),9,Pd),oe.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(It)(oe.timestamp)},f(w(bt)(oe.timestamp)),9,Ad)):te("",!0)],8,Ed)]))),128))]))]),n("div",Md,[O[16]||(O[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),p.value.topEvents.length===0?(u(),d("div",Rd," No events yet ")):(u(),d("ul",Ld,[(u(!0),d(U,null,me(p.value.topEvents.slice(0,5),(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#events?event_name=${encodeURIComponent(et(oe))}`,class:"ss-dash-widget-row-link"},[n("span",null,f(et(oe)),1),n("span",Dd,f(oe.count),1)],8,Od)]))),128))]))]),n("div",Fd,[O[20]||(O[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",Id,[n("li",null,[n("a",Bd,[O[17]||(O[17]=n("span",null,"Sent",-1)),n("span",Nd,f(p.value.emailActivity.sent),1)])]),n("li",null,[n("a",jd,[O[18]||(O[18]=n("span",null,"Queued",-1)),n("span",Hd,f(p.value.emailActivity.queued),1)])]),n("li",null,[n("a",Ud,[O[19]||(O[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(p.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},f(p.value.emailActivity.failed),5)])])])]),n("div",qd,[O[25]||(O[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Kd,[n("li",null,[n("a",Vd,[O[21]||(O[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",zd,f(p.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Wd,[O[22]||(O[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Jd,f(p.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Qd,[O[23]||(O[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Gd,f(p.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",Yd,[O[24]||(O[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Xd,f(p.value.logLevelBreakdown.debug),1)])])])]),p.value.cacheStats&&p.value.cacheStats.available?(u(),d("div",Zd,[O[29]||(O[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",ef,[n("li",null,[n("a",tf,[O[26]||(O[26]=n("span",null,"Keys",-1)),n("span",sf,f(p.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",nf,[O[27]||(O[27]=n("span",null,"Hit Rate",-1)),n("span",lf,f(p.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",of,[O[28]||(O[28]=n("span",null,"Memory",-1)),n("span",af,f(p.value.cacheStats.memoryUsedHuman),1)])])])])):te("",!0),p.value.jobQueueStatus&&p.value.jobQueueStatus.available?(u(),d("div",rf,[O[34]||(O[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",uf,[n("li",null,[n("a",cf,[O[30]||(O[30]=n("span",null,"Active",-1)),n("span",df,f(p.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",ff,[O[31]||(O[31]=n("span",null,"Waiting",-1)),n("span",hf,f(p.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",pf,[O[32]||(O[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ke(p.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},f(p.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",vf,[O[33]||(O[33]=n("span",null,"Completed",-1)),n("span",gf,f(p.value.jobQueueStatus.completed),1)])])])])):te("",!0),n("div",yf,[O[39]||(O[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",mf,[n("li",null,[n("a",bf,[O[35]||(O[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",_f,f(p.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",xf,[O[36]||(O[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",wf,f(p.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",$f,[O[37]||(O[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",kf,f(p.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",Sf,[O[38]||(O[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",Cf,f(p.value.statusDistribution["5xx"]),1)])])])]),n("div",Tf,[O[40]||(O[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),p.value.slowestQueries.length===0?(u(),d("div",Ef," No query data yet ")):(u(),d("ul",Pf,[(u(!0),d(U,null,me(p.value.slowestQueries.slice(0,5),(oe,he)=>(u(),d("li",{key:he},[n("a",{href:`#queries?pattern=${encodeURIComponent(Ye(oe))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(oe)},f(Ye(oe)),9,Mf),n("span",{class:D(["ss-dash-secondary-list-value","ss-dash-duration",Le(oe.avgDuration)])},f(w(Ft)(oe.avgDuration)),3)],8,Af)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-1e96b18b"]])},Symbol.toStringTag,{value:"Module"}));function un(e="",t){let s=null;return function(){return s||(s=new nl({baseUrl:e,authToken:t})),s}}function Bt(e){const t=Q(null);let s=null;function l(){s&&s(),s=null,Hl(()=>{t.value&&(s=ku(t.value))})}return e&&yt(e,l),Lt(l),Zl(()=>{s&&s(),s=null}),{tableRef:t}}const Lf={class:"ss-dash-filter-bar"},Of={key:0,class:"ss-dash-summary"},Df={class:"ss-dash-search-wrapper"},Ff=["viewBox","innerHTML"],If=["value","placeholder"],Bf={key:1,class:"ss-dash-filter-controls"},Ct=De({__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 a(){s("update:modelValue",""),s("clear")}return(o,i)=>(u(),d("div",Lf,[e.summary?(u(),d("span",Of,f(e.summary),1)):te("",!0),n("div",Df,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:w(Ae).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(Ae).search.elements.join("")},null,8,Ff)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,If),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:a}," × ")):te("",!0)]),o.$slots.default?(u(),d("div",Bf,[Pi(o.$slots,"default")])):te("",!0)]))}}),Nf={key:0,class:"ss-dash-pagination"},jf={class:"ss-dash-page-info"},Hf={class:"ss-dash-pagination-controls"},Uf=["disabled"],qf={key:0,class:"ss-dash-page-ellipsis"},Kf=["onClick"],Vf=["disabled"],Kt=De({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,a=q(()=>gu(s.page,s.lastPage));return(o,i)=>e.lastPage>1?(u(),d("div",Nf,[n("span",jf," Page "+f(e.page)+" of "+f(e.lastPage)+" ("+f(e.total)+" total) ",1),n("div",Hf,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:i[0]||(i[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,Uf),(u(!0),d(U,null,me(a.value,(r,c)=>(u(),d(U,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",qf,"...")):(u(),d("button",{key:1,type:"button",class:D(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},f(r),11,Kf))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:i[1]||(i[1]=r=>l("pageChange",e.page+1))}," Next » ",8,Vf)])])):te("",!0)}}),zf={key:0,class:"ss-dash-empty"},Wf={class:"ss-dash-tl-legend"},Jf=["title"],Qf={class:"ss-dash-tl-track"},Gf=["title"],Yf={class:"ss-dash-tl-dur"},Xf={key:0,class:"ss-dash-tl-warnings"},Zf={class:"ss-dash-tl-warnings-title"},ha=De({__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"},a=q(()=>t.spans||[]),o=q(()=>[...a.value].sort((x,$)=>x.startOffset-$.startOffset)),i=q(()=>{const x={};for(const $ of o.value)x[$.id]=$.parentId?(x[$.parentId]||0)+1:0;return x});function r(x){const $=t.totalDuration||1;return`${x.startOffset/$*100}%`}function c(x){const $=t.totalDuration||1;return`${Math.max(x.duration/$*100,.5)}%`}function g(x){return x.length>50?x.slice(0,50)+"...":x}function v(x){return x==="db"?"DB":x}function m(x){return x==="db"?"purple":x==="mail"?"green":x==="event"?"amber":x==="view"?"blue":"muted"}function p(x){const $=x.metadata?Object.entries(x.metadata).filter(([,_])=>_!=null).map(([_,E])=>`${_}=${E}`).join(", "):"";return $?`${x.label} (${x.duration.toFixed(2)}ms)
5
+ ${$}`:`${x.label} (${x.duration.toFixed(2)}ms)`}return(x,$)=>a.value.length===0?(u(),d("div",zf,"No spans recorded")):(u(),d("div",{key:1,class:D(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Wf,[(u(),d(U,null,me(l,(_,E)=>n("div",{key:E,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ke({background:s[E]||s.custom})},null,4),n("span",null,f(_),1)])),64))]),(u(!0),d(U,null,me(o.value,_=>(u(),d("div",{key:_.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:p(_),style:Ke({paddingLeft:8+(i.value[_.id]||0)*16+"px"})},[n("span",{class:D(`ss-dash-badge ss-dash-badge-${m(_.category)}`),style:{"font-size":"9px","margin-right":"4px"}},f(v(_.category)),3),xe(" "+f(g(_.label)),1)],12,Jf),n("div",Qf,[n("div",{class:D(`ss-dash-tl-bar ss-dash-tl-bar-${_.category||"custom"}`),style:Ke({left:r(_),width:c(_)}),title:p(_)},null,14,Gf)]),n("span",Yf,f(_.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Xf,[n("div",Zf,"Warnings ("+f(e.warnings.length)+")",1),(u(!0),d(U,null,me(e.warnings,(_,E)=>(u(),d("div",{key:E,class:"ss-dash-tl-warning"},f(_),1))),128))])):te("",!0)],2))}}),eh={class:"ss-dash-tl-detail-header"},th={style:{color:"var(--ss-text)"}},sh={class:"ss-dash-tl-meta"},nh={class:"ss-dash-tl-detail-header"},lh={key:0,class:"ss-dash-empty"},oh={key:1,class:"ss-dash-empty"},ah={class:"ss-dash-table-wrap"},ih={key:0,class:"ss-dash-sort-arrow"},rh={key:0,class:"ss-dash-sort-arrow"},uh={key:0,class:"ss-dash-sort-arrow"},ch={key:0,class:"ss-dash-sort-arrow"},dh={key:0,class:"ss-dash-sort-arrow"},fh=["onClick"],hh={style:{color:"var(--ss-dim)"}},ph=["title"],vh={style:{color:"var(--ss-muted)","text-align":"center"}},gh={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},yh={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},mh=["title"],bh={key:1,class:"ss-dash-empty"},_h=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"RequestsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,sort:g,goToPage:v,setSearch:m,setSort:p}=Ze(()=>"requests",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),x=Q(""),$=Q(null),_=Q(!1),E=Q(null),R=q(()=>{if(!o.value)return[];const L=o.value;return L.data||L.requests||o.value||[]}),M=un(a,l);async function y(L){const V=L.id;_.value=!0;try{const ne=s||"/__stats/api",_e=await M().fetch(`${ne}/requests/${V}`);E.value=Ru(_e),$.value=L}catch{}finally{_.value=!1}}function k(){$.value=null,E.value=null}function C(L){x.value=L,m(L)}function J(L){p(L)}function W(L){const V=nn(L);return V==="very-slow"?"ss-dash-very-slow":V==="slow"?"ss-dash-slow":""}const{tableRef:X}=Bt(()=>R.value);return(L,V)=>(u(),d("div",null,[E.value&&$.value?(u(),d(U,{key:0},[n("div",eh,[n("button",{type:"button",class:"ss-dash-btn",onClick:k}," ← Back to Requests "),n("span",{class:D(`ss-dash-method ss-dash-method-${(E.value.method||"").toLowerCase()}`)},f(E.value.method),3),n("span",th,f(E.value.url),1),n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor((E.value.statusCode||200)/100)}xx`)},f(E.value.statusCode),3),n("span",sh,f(E.value.totalDuration.toFixed(1))+"ms · "+f(E.value.spanCount)+" spans ",1)]),be(ha,{spans:E.value.spans,"total-duration":E.value.totalDuration,warnings:E.value.warnings},null,8,["spans","total-duration","warnings"])],64)):_.value?(u(),d(U,{key:1},[n("div",nh,[n("button",{type:"button",class:"ss-dash-btn",onClick:V[0]||(V[0]=ne=>_.value=!1)}," ← Back to Requests ")]),V[6]||(V[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(U,{key:2},[be(Ct,{"model-value":x.value,placeholder:"Filter requests...",summary:`${w(c).total??0} requests`,"onUpdate:modelValue":C},null,8,["model-value","summary"]),w(r)?(u(),d("div",lh,"Failed to load requests")):te("",!0),w(i)&&!w(o)?(u(),d("div",oh,"Loading requests...")):(u(),d(U,{key:2},[n("div",ah,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:X,class:"ss-dash-table"},[V[15]||(V[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,[V[12]||(V[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:V[1]||(V[1]=ne=>J("method"))},[V[7]||(V[7]=xe(" Method ",-1)),w(g).column==="method"?(u(),d("span",ih,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[2]||(V[2]=ne=>J("url"))},[V[8]||(V[8]=xe(" URL ",-1)),w(g).column==="url"?(u(),d("span",rh,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[3]||(V[3]=ne=>J("statusCode"))},[V[9]||(V[9]=xe(" Status ",-1)),w(g).column==="statusCode"?(u(),d("span",uh,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:V[4]||(V[4]=ne=>J("duration"))},[V[10]||(V[10]=xe(" Duration ",-1)),w(g).column==="duration"?(u(),d("span",ch,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),V[13]||(V[13]=n("th",null,"Spans",-1)),V[14]||(V[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:V[5]||(V[5]=ne=>J("createdAt"))},[V[11]||(V[11]=xe(" Time ",-1)),w(g).column==="createdAt"?(u(),d("span",dh,f(w(g).direction==="asc"?" ▲":" ▼"),1)):te("",!0)])])]),n("tbody",null,[(u(!0),d(U,null,me(R.value,ne=>(u(),d("tr",{key:ne.id,class:"ss-dash-clickable",onClick:_e=>y(ne)},[n("td",null,[n("span",hh,f(ne.id),1)]),n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(ne.method||"").toLowerCase()}`)},f(ne.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:ne.url},f(ne.url),9,ph)]),n("td",null,[n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor((ne.status_code||ne.statusCode||200)/100)}xx`)},f(ne.status_code||ne.statusCode),3)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${W(ne.total_duration||ne.totalDuration||ne.duration||0)}`)},f((ne.total_duration||ne.totalDuration||ne.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",vh,f(ne.span_count||ne.spanCount||0),1)]),n("td",null,[(ne.warning_count||ne.warningCount||0)>0?(u(),d("span",gh,f(ne.warning_count||ne.warningCount||0),1)):(u(),d("span",yh,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(ne.createdAt||ne.created_at||ne.timestamp||"")},f(w(bt)(ne.createdAt||ne.created_at||ne.timestamp||"")),9,mh)])],8,fh))),128))])],512)):(u(),d("div",bh,"No requests recorded yet"))]),w(c).totalPages>1?(u(),Xe(Kt,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),xh={class:"ss-dash-btn-group"},wh={key:0,class:"ss-dash-empty"},$h={key:1,class:"ss-dash-table-wrap"},kh={key:0,class:"ss-dash-sort-arrow"},Sh={key:0,class:"ss-dash-sort-arrow"},Ch={key:0,class:"ss-dash-sort-arrow"},Th=["onClick","onKeydown"],Eh={key:0,class:"ss-dash-dup"},Ph={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Ah={class:"ss-dash-duration"},Mh={class:"ss-dash-duration"},Rh={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Lh={key:1,class:"ss-dash-empty"},Oh={class:"ss-dash-table-wrap"},Dh={key:0,class:"ss-dash-sort-arrow"},Fh={key:0,class:"ss-dash-sort-arrow"},Ih={style:{color:"var(--ss-dim)"}},Bh=["onClick","onKeydown"],Nh={key:0,class:"ss-dash-dup"},jh=["title"],Hh={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Uh=["title"],qh=["disabled","onClick"],Kh={key:0,class:"ss-dash-explain-row"},Vh={colspan:"8",class:"ss-dash-explain"},zh={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Wh={style:{flex:"1"}},Jh={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Qh={key:0},Gh={key:1,class:"ss-dash-explain-result"},Yh={key:2,class:"ss-dash-explain-result"},Xh={key:3,class:"ss-dash-explain-result"},Zh={key:1,class:"ss-dash-empty"};function pa(e,t){if(!e)return null;const s=t*20,l=e["Node Type"]||"Unknown",a=e["Relation Name"]||"",o=e.Alias&&e.Alias!==e["Relation Name"]?` (${e.Alias})`:"",i=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 us("div",{class:"ss-dash-explain-node",style:{marginLeft:`${s}px`}},[us("div",{class:"ss-dash-explain-node-header"},[us("span",{class:"ss-dash-explain-node-type"},l),a?[" on ",us("strong",null,a)]:null,o||null,i?[" using ",us("em",null,i)]:null]),r.length>0?us("div",{class:"ss-dash-explain-metrics"},r.join(" · ")):null,...c.map((g,v)=>pa(g,t+1))])}const va=De({name:"ExplainPlanNode",props:{node:{type:Object,required:!0},depth:{type:Number,default:0}},setup(e){return()=>pa(e.node,e.depth)}}),ep=De({...{components:{ExplainPlanNode:va}},__name:"QueriesSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),o=Q("list"),i=Q(null),r=Q(null),c=Q(null),g=q(()=>o.value==="grouped"?"queries/grouped":"queries"),{data:v,loading:m,pagination:p,sort:x,goToPage:$,setSearch:_,setSort:E,explainQuery:R}=Ze(()=>g.value,{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),M=Q(""),y=q(()=>v.value?o.value==="grouped"?v.value.groups||[]:v.value.data||v.value||[]:[]),k=q(()=>o.value!=="grouped"?y.value:y.value.map(T=>{const A={...T};return(A.sqlNormalized===null||A.sqlNormalized===void 0&&(T.sql_normalized||T.pattern))&&(A.sqlNormalized=T.sql_normalized||T.pattern||""),(A.count===null||A.count===void 0)&&T.total_count!==null&&T.total_count!==void 0&&(A.count=T.total_count),(A.avgDuration===null||A.avgDuration===void 0)&&T.avg_duration!==null&&T.avg_duration!==void 0&&(A.avgDuration=T.avg_duration),(A.maxDuration===null||A.maxDuration===void 0)&&T.max_duration!==null&&T.max_duration!==void 0&&(A.maxDuration=T.max_duration),(A.minDuration===null||A.minDuration===void 0)&&T.min_duration!==null&&T.min_duration!==void 0&&(A.minDuration=T.min_duration),(A.totalDuration===null||A.totalDuration===void 0)&&T.total_duration!==null&&T.total_duration!==void 0&&(A.totalDuration=T.total_duration),(A.percentOfTotal===null||A.percentOfTotal===void 0)&&T.pct_time!==null&&T.pct_time!==void 0&&(A.percentOfTotal=T.pct_time),A})),C=q(()=>{const T=new Map;for(const A of k.value){const S=A.sqlNormalized||A.sql||A.sql_text||"";T.set(S,(T.get(S)||0)+1)}return T}),J=q(()=>{const T=p.total??k.value.length;let A=0,S=0,H=0,z=0;for(const le of k.value){const K=le.duration||0;H+=K,z++,K>ea&&A++}for(const le of C.value.values())le>1&&(S+=le);return{total:T,slow:A,duplicates:S,avgDuration:z>0?H/z:0}}),W=q(()=>{if(o.value==="grouped")return`${k.value.length} query patterns`;const T=[`${J.value.total} queries`];return J.value.slow>0&&T.push(`${J.value.slow} slow`),J.value.duplicates>0&&T.push(`${J.value.duplicates} dup`),T.push(`avg ${(J.value.avgDuration||0).toFixed(1)}ms`),T.join(", ")});function X(T){M.value=T,_(T)}function L(T){T!==o.value&&(o.value=T,i.value=null,r.value=null,c.value=null)}function V(T){E(T)}async function ne(T){if(r.value&&r.value.queryId===T){r.value=null;return}c.value=T;try{const A=await R(T);A&&A.error?r.value={queryId:T,plan:[],error:A.error,message:A.message}:r.value={queryId:T,plan:A?.plan||A?.rows||[]}}catch(A){r.value={queryId:T,plan:[],error:A instanceof Error?A.message:String(A)}}finally{c.value=null}}function _e(T){const A=nn(T);return A==="very-slow"?"ss-dash-very-slow":A==="slow"?"ss-dash-slow":""}function Me(){const T=r.value?.plan;return!T||T.length===0||typeof T[0]!="object"||!T[0]?[]:Object.keys(T[0])}function Le(T,A){if(!T||typeof T!="object")return"-";const S=T[A];return S!=null?String(S):"-"}function Re(){const T=r.value?.plan;return!T||T.length===0||typeof T[0]!="object"||!T[0]?!1:"Plan"in T[0]}function pe(){const T=r.value?.plan;return!T||T.length===0||typeof T[0]!="object"||!T[0]?{}:T[0].Plan}const{tableRef:fe}=Bt(()=>k.value);return(T,A)=>(u(),d("div",null,[be(Ct,{"model-value":M.value,placeholder:"Filter queries...",summary:W.value,"onUpdate:modelValue":X},{default:es(()=>[n("div",xh,[n("button",{type:"button",class:D(`ss-dash-btn ${o.value==="list"?"ss-dash-active":""}`),onClick:A[0]||(A[0]=S=>L("list"))}," List ",2),n("button",{type:"button",class:D(`ss-dash-btn ${o.value==="grouped"?"ss-dash-active":""}`),onClick:A[1]||(A[1]=S=>L("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(m)&&!w(v)?(u(),d("div",wh,"Loading queries...")):o.value==="grouped"?(u(),d("div",$h,[k.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:fe,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[A[11]||(A[11]=n("th",null,"Pattern",-1)),n("th",{class:"ss-dash-sortable",onClick:A[2]||(A[2]=S=>V("count"))},[A[8]||(A[8]=xe(" Count ",-1)),w(x).column==="count"?(u(),d("span",kh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),n("th",{class:"ss-dash-sortable",onClick:A[3]||(A[3]=S=>V("avgDuration"))},[A[9]||(A[9]=xe(" Avg ",-1)),w(x).column==="avgDuration"?(u(),d("span",Sh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[12]||(A[12]=n("th",null,"Min",-1)),A[13]||(A[13]=n("th",null,"Max",-1)),n("th",{class:"ss-dash-sortable",onClick:A[4]||(A[4]=S=>V("totalDuration"))},[A[10]||(A[10]=xe(" Total ",-1)),w(x).column==="totalDuration"?(u(),d("span",Ch,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[14]||(A[14]=n("th",null,"% Time",-1))])]),n("tbody",null,[(u(!0),d(U,null,me(k.value,(S,H)=>(u(),d("tr",{key:H},[n("td",null,[n("span",{class:D(`ss-dash-sql ${i.value===S.sqlNormalized?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:ot(z=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["stop"]),onKeydown:Ts(z=>i.value=i.value===S.sqlNormalized?null:S.sqlNormalized,["enter"])},f(S.sqlNormalized),43,Th),(S.count||0)>=3?(u(),d("span",Eh,"DUP")):te("",!0)]),n("td",null,[n("span",Ph,f(S.count||0),1)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${_e(S.avgDuration||0)}`)},f((S.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Ah,f((S.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${_e(S.maxDuration||0)}`)},f((S.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Mh,f((S.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Rh,f((S.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Lh,"No queries recorded"))])):(u(),d(U,{key:2},[n("div",Oh,[k.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:fe,class:"ss-dash-table"},[A[24]||(A[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,[A[17]||(A[17]=n("th",null,"#",-1)),A[18]||(A[18]=n("th",null,"SQL",-1)),n("th",{class:"ss-dash-sortable",onClick:A[5]||(A[5]=S=>V("duration"))},[A[15]||(A[15]=xe(" Duration ",-1)),w(x).column==="duration"?(u(),d("span",Dh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[19]||(A[19]=n("th",null,"Method",-1)),A[20]||(A[20]=n("th",null,"Model",-1)),A[21]||(A[21]=n("th",null,"Connection",-1)),n("th",{class:"ss-dash-sortable",onClick:A[6]||(A[6]=S=>V("createdAt"))},[A[16]||(A[16]=xe(" Time ",-1)),w(x).column==="createdAt"?(u(),d("span",Fh,f(w(x).direction==="asc"?" ▲":" ▼"),1)):te("",!0)]),A[22]||(A[22]=n("th",null,null,-1))])]),n("tbody",null,[(u(!0),d(U,null,me(k.value,S=>(u(),d(U,{key:S.id},[n("tr",null,[n("td",null,[n("span",Ih,f(S.id),1)]),n("td",null,[n("div",null,[n("span",{class:D(`ss-dash-sql ${i.value===S.id?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:ot(H=>i.value=i.value===S.id?null:S.id,["stop"]),onKeydown:Ts(H=>i.value=i.value===S.id?null:S.id,["enter"])},f(S.sql||S.sql_text||""),43,Bh),(C.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")??0)>1?(u(),d("span",Nh," ×"+f(C.value.get((S.sqlNormalized||S.sql||S.sql_text)??"")),1)):te("",!0)])]),n("td",null,[n("span",{class:D(`ss-dash-duration ${_e(S.duration||0)}`)},f((S.duration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(S.method||S.sql_method||"").toLowerCase()}`)},f(S.method||S.sql_method||""),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:S.model},f(S.model||"-"),9,jh)]),n("td",null,[n("span",Hh,f(S.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(S.createdAt||S.created_at||S.timestamp||"")},f(w(bt)(S.createdAt||S.created_at||S.timestamp||"")),9,Uh)]),n("td",null,[(S.method||S.sql_method||"")==="select"?(u(),d("button",{key:0,type:"button",class:D(`ss-dash-explain-btn${r.value?.queryId===S.id&&!r.value?.error?" ss-dash-explain-btn-active":""}`),disabled:c.value===S.id,onClick:ot(H=>ne(S.id),["stop"])},f(c.value===S.id?"...":"EXPLAIN"),11,qh)):te("",!0)])]),r.value&&r.value.queryId===S.id?(u(),d("tr",Kh,[n("td",Vh,[n("div",zh,[n("div",Wh,[r.value.error?(u(),d("div",Jh,[A[23]||(A[23]=n("strong",null,"Error:",-1)),xe(" "+f(r.value.error)+" ",1),r.value.message?(u(),d("br",Qh)):te("",!0),xe(" "+f(r.value.message),1)])):Re()?(u(),d("div",Gh,[be(w(va),{node:pe(),depth:0},null,8,["node"])])):r.value.plan&&r.value.plan.length>0&&typeof r.value.plan[0]=="object"?(u(),d("div",Yh,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(U,null,me(Me(),H=>(u(),d("th",{key:H},f(H),1))),128))])]),n("tbody",null,[(u(!0),d(U,null,me(r.value.plan,(H,z)=>(u(),d("tr",{key:z},[(u(!0),d(U,null,me(Me(),le=>(u(),d("td",{key:le},f(Le(H,le)),1))),128))]))),128))])])])):(u(),d("div",Xh,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:A[7]||(A[7]=H=>r.value=null)}," Close ")])])])):te("",!0)],64))),128))])],512)):(u(),d("div",Zh,"No queries recorded"))]),w(p).totalPages>1?(u(),Xe(Kt,{key:0,page:w(p).page,"last-page":w(p).totalPages,total:w(p).total,onPageChange:w($)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}}),tp=Object.freeze(Object.defineProperty({__proto__:null,default:ep},Symbol.toStringTag,{value:"Module"})),cn=De({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=Q(t.defaultExpanded),l=q(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return ln(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return ln(t.value,t.maxLen||100)}),a=q(()=>{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 i(){navigator.clipboard?.writeText(a.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:D(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:D(`${t.classPrefix}-data-cell`)},[s.value?te("",!0):(u(),d("span",{key:0,class:D(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},f(l.value),35)),s.value?(u(),d("div",{key:1,class:D(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:D(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:ot(i,["stop"])}," Copy ",2),n("pre",null,f(a.value),1)],2)):te("",!0)],2))}}),sp={key:0,class:"ss-dash-empty"},np={class:"ss-dash-table-wrap"},lp={style:{color:"var(--ss-dim)"}},op=["title"],ap=["title"],ip={key:1,class:"ss-dash-empty"},rp=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"EventsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:c,setSearch:g}=Ze(()=>"events",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),v=Q(""),m=q(()=>{if(!o.value)return[];const $=o.value;return $.data||$.events||o.value||[]});function p($){v.value=$,g($)}const{tableRef:x}=Bt(()=>m.value);return($,_)=>(u(),d("div",null,[be(Ct,{"model-value":v.value,placeholder:"Filter events...",summary:`${w(r).total??0} events`,"onUpdate:modelValue":p},null,8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",sp,"Loading events...")):(u(),d(U,{key:1},[n("div",np,[m.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:x,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(U,null,me(m.value,E=>(u(),d("tr",{key:E.id},[n("td",null,[n("span",lp,f(E.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:E.event_name||E.eventName||E.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(E.event_name||E.eventName||E.event||""),9,op)]),n("td",null,[be(cn,{value:E.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(E.createdAt||E.created_at||E.timestamp)},f(w(bt)(E.createdAt||E.created_at||E.timestamp)),9,ap)])]))),128))])],512)):(u(),d("div",ip,"No events recorded yet"))]),w(r).totalPages>1?(u(),Xe(Kt,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),up={key:0,class:"ss-dash-empty"},cp={key:1,class:"ss-dash-empty"},dp={key:2,class:"ss-dash-table-wrap"},fp=["title"],hp=["title"],pp=["title"],vp=["title"],gp={key:1,class:"ss-dash-empty"},yp=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"RoutesSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,setSearch:c}=Ze(()=>"routes",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=Q(""),v=q(()=>{if(!o.value)return[];const x=o.value;return Array.isArray(x)?x:Array.isArray(x.routes)?x.routes:Array.isArray(x.data)?x.data:[]});function m(x){g.value=x,c(x)}const{tableRef:p}=Bt(()=>v.value);return(x,$)=>(u(),d("div",null,[be(Ct,{"model-value":g.value,placeholder:"Filter routes...",summary:`${v.value.length} routes`,"onUpdate:modelValue":m},null,8,["model-value","summary"]),w(r)?(u(),d("div",up,"Failed to load routes")):w(i)&&!w(o)?(u(),d("div",cp,"Loading routes...")):(u(),d("div",dp,[v.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:p,class:"ss-dash-table"},[$[0]||($[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),$[1]||($[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(U,null,me(v.value,(_,E)=>(u(),d("tr",{key:_.pattern||E},[n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(_.method||"").toLowerCase()}`)},f(_.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.pattern},f(_.pattern),9,fp)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.name||"-"},f(_.name||"-"),9,hp)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.handler},f(_.handler),9,pp)]),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(", "):"-"},f(_.middleware?.length?_.middleware.join(", "):"-"),9,vp)])]))),128))])],512)):(u(),d("div",gp,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),mp={class:"ss-dash-log-filters"},bp=["onClick"],_p=["value"],xp={class:"ss-dash-structured-search"},wp=["value"],$p=["value"],kp=["value"],Sp={key:0,class:"ss-dash-filter-chips"},Cp={key:0,class:"ss-dash-filter-chip"},Tp={key:1,class:"ss-dash-filter-chip"},Ep=["onClick"],Pp={key:1,class:"ss-dash-empty"},Ap={key:2,class:"ss-dash-empty"},Mp={key:3,class:"ss-dash-empty"},Rp={key:4,class:"ss-dash-log-entries"},Lp=["onClick"],Op=["title"],Dp=["title","onClick","onKeydown"],Fp={key:1,class:"ss-dash-log-reqid-empty"},Ip={key:3,style:{width:"14px"}},Bp={class:"ss-dash-log-msg"},Np={key:0,class:"ss-dash-log-detail"},jp=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"LogsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,filter:g,goToPage:v,setSearch:m,setFilter:p,refresh:x}=Ze(()=>"logs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=Q(""),_=Q("all"),E=Q(""),R=Q(""),M=Q(null),y=Q([]),k=Q("level"),C=Q("equals"),J=Q(""),W=q(()=>{if(!o.value)return[];const H=o.value;return H.data||H.logs||o.value||[]}),X=q(()=>_.value!=="all"||E.value!==""||y.value.length>0);function L(H,z){z&&(M.value=M.value===H?null:H)}function V(H){$.value=H,m(H)}function ne(H){_.value=H,H==="all"?p("level",""):p("level",H)}function _e(H){E.value=H,R.value=H,p("request_id",H)}function Me(){const H=R.value.trim();E.value=H,p("request_id",H)}function Le(){E.value="",R.value="",p("request_id","")}function Re(){_.value="all",p("level","")}function pe(){const H=g;for(const z of Object.keys(H))(z.startsWith("filter_field_")||z.startsWith("filter_op_")||z.startsWith("filter_value_"))&&delete H[z];y.value.forEach((z,le)=>{H[`filter_field_${le}`]=z.field,H[`filter_op_${le}`]=z.operator,H[`filter_value_${le}`]=z.value}),c.page=1,x()}function fe(){const H=J.value.trim();H&&(y.value.push({field:k.value,operator:C.value,value:H}),J.value="",pe())}function T(H){y.value.splice(H,1),pe()}function A(H){return H.target.value}function S(H){return H.target.value}return(H,z)=>(u(),d("div",null,[be(Ct,{"model-value":$.value,placeholder:"Search logs...",summary:`${w(c).total??0} logs`,"onUpdate:modelValue":V},{default:es(()=>[n("div",mp,[(u(!0),d(U,null,me(w(Su),le=>(u(),d("button",{key:le,type:"button",class:D(`ss-dash-log-filter ${_.value===le?"ss-dash-active":""}`),onClick:K=>ne(le)},f(le),11,bp))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:R.value,onInput:z[0]||(z[0]=le=>R.value=A(le)),onKeydown:Ts(Me,["enter"])},null,40,_p),R.value||E.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:Le}," Clear ")):te("",!0)])]),_:1},8,["model-value","summary"]),n("div",xp,[n("select",{class:"ss-dash-filter-select",value:k.value,onChange:z[1]||(z[1]=le=>k.value=S(le))},[...z[4]||(z[4]=[cr('<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,wp),n("select",{class:"ss-dash-filter-select",value:C.value,onChange:z[2]||(z[2]=le=>C.value=S(le))},[...z[5]||(z[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,$p),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:J.value,onInput:z[3]||(z[3]=le=>J.value=A(le)),onKeydown:Ts(fe,["enter"])},null,40,kp),n("button",{type:"button",class:"ss-dash-btn",onClick:fe},"Add")]),X.value?(u(),d("div",Sp,[_.value!=="all"?(u(),d("span",Cp,[xe(" level: "+f(_.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Re}," × ")])):te("",!0),E.value?(u(),d("span",Tp,[xe(" requestId: "+f(E.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Le}," × ")])):te("",!0),(u(!0),d(U,null,me(y.value,(le,K)=>(u(),d("span",{key:K,class:"ss-dash-filter-chip"},[xe(f(le.field)+" "+f(le.operator)+' "'+f(le.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:ae=>T(K)}," × ",8,Ep)]))),128))])):te("",!0),w(r)?(u(),d("div",Pp,"Failed to load logs")):w(i)&&!w(o)?(u(),d("div",Ap,"Loading logs...")):W.value.length===0?(u(),d("div",Mp," No log entries"+f(E.value?` matching request ${E.value}`:_.value!=="all"?` for ${_.value}`:""),1)):(u(),d("div",Rp,[(u(!0),d(U,null,me(W.value,(le,K)=>(u(),d(U,{key:String(le.id||K)},[n("div",{class:D(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(As)(le)}]),onClick:ae=>L(K,!!w(As)(le))},[n("span",{class:D(`ss-dash-log-level ${w(Tu)(w(aa)(le),"ss-dash-log-level")}`)},f(w(aa)(le).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(on)(le)?w(It)(w(on)(le)):""},f(w(on)(le)?w(bt)(w(on)(le)):"-"),9,Op),w(Ps)(le)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Ps)(le),role:"button",tabindex:"0",onClick:ot(ae=>_e(w(Ps)(le)),["stop"]),onKeydown:Ts(ot(ae=>_e(w(Ps)(le)),["stop"]),["enter"])},f(w(Ps)(le).slice(0,8)),41,Dp)):(u(),d("span",Fp,"--")),w(As)(le)?(u(),d("span",{key:2,class:D(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":M.value===K}])},"▶",2)):(u(),d("span",Ip)),n("span",Bp,f(w(Cu)(le)),1)],10,Lp),M.value===K&&w(As)(le)?(u(),d("div",Np,[be(cn,{value:w(As)(le),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):te("",!0)],64))),128))])),w(c).totalPages>1?(u(),Xe(Kt,{key:5,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Hp={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},Up={class:"ss-dash-email-preview-header"},qp={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Kp=["srcdoc"],Vp={key:0,class:"ss-dash-empty"},zp={class:"ss-dash-table-wrap"},Wp=["onClick"],Jp={style:{color:"var(--ss-dim)"}},Qp=["title"],Gp=["title"],Yp=["title"],Xp={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Zp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},ev=["title"],tv=["title"],sv={key:1,class:"ss-dash-empty"},nv=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"EmailsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:v}=Ze(()=>"emails",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),m=Q(""),p=Q(null),x=Q(null),$=q(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function _(y){m.value=y,g(y)}async function E(y){if(y.html){p.value=y.id,x.value=y.html;return}const k=await v(y.id);p.value=y.id,x.value=k}function R(){p.value=null,x.value=null}const{tableRef:M}=Bt(()=>$.value);return(y,k)=>(u(),d("div",null,[p.value&&x.value?(u(),d("div",Hp,[n("div",Up,[n("div",qp,[$.value.find(C=>C.id===p.value)?(u(),d(U,{key:0},[k[4]||(k[4]=n("strong",null,"Subject:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.subject)+"   |  ",1),k[5]||(k[5]=n("strong",null,"From:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.from_addr||$.value.find(C=>C.id===p.value)?.from)+"   |  ",1),k[6]||(k[6]=n("strong",null,"To:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.to_addr||$.value.find(C=>C.id===p.value)?.to)+" ",1),$.value.find(C=>C.id===p.value)?.cc||$.value.find(C=>C.id===p.value)?.cc_addr?(u(),d(U,{key:0},[k[0]||(k[0]=xe("   |  ",-1)),k[1]||(k[1]=n("strong",null,"CC:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.cc||$.value.find(C=>C.id===p.value)?.cc_addr),1)],64)):te("",!0),k[7]||(k[7]=xe("   |  ",-1)),k[8]||(k[8]=n("strong",null,"Status:",-1)),n("span",{class:D(`ss-dash-badge ss-dash-email-status-${$.value.find(C=>C.id===p.value)?.status}`)},f($.value.find(C=>C.id===p.value)?.status),3),$.value.find(C=>C.id===p.value)?.mailer?(u(),d(U,{key:1},[k[2]||(k[2]=xe("   |  ",-1)),k[3]||(k[3]=n("strong",null,"Mailer:",-1)),xe(" "+f($.value.find(C=>C.id===p.value)?.mailer),1)],64)):te("",!0)],64)):te("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:R}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:x.value,title:"Email preview",sandbox:""},null,8,Kp)])):(u(),d(U,{key:1},[be(Ct,{"model-value":m.value,placeholder:"Filter emails...",summary:`${w(r).total??0} emails`,"onUpdate:modelValue":_},null,8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",Vp,"Loading emails...")):(u(),d(U,{key:1},[n("div",zp,[$.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:M,class:"ss-dash-table"},[k[9]||(k[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)),k[10]||(k[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(U,null,me($.value,C=>(u(),d("tr",{key:C.id,class:"ss-dash-clickable ss-dash-email-row",onClick:J=>E(C)},[n("td",null,[n("span",Jp,f(C.id),1)]),n("td",null,[n("span",{title:C.from_addr||C.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.from_addr||C.from||""),9,Qp)]),n("td",null,[n("span",{title:C.to_addr||C.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.to_addr||C.to||""),9,Gp)]),n("td",null,[n("span",{title:C.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.subject||""),9,Yp)]),n("td",null,[n("span",{class:D(`ss-dash-badge ss-dash-email-status-${C.status||""}`)},f(C.status),3)]),n("td",null,[(C.attachment_count||C.attachmentCount||0)>0?(u(),d("span",Xp,f(C.attachment_count||C.attachmentCount||0),1)):(u(),d("span",Zp,"-"))]),n("td",null,[n("span",{title:C.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(C.mailer||""),9,ev)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(C.createdAt||C.created_at||C.timestamp)},f(w(bt)(C.createdAt||C.created_at||C.timestamp)),9,tv)])],8,Wp))),128))])],512)):(u(),d("div",sv,"No emails captured yet"))]),w(r).totalPages>1?(u(),Xe(Kt,{key:0,page:w(r).page,"last-page":w(r).totalPages,total:w(r).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lv={key:0,class:"ss-dash-empty"},ov={class:"ss-dash-tl-detail-header"},av={style:{color:"var(--ss-text)"}},iv={class:"ss-dash-tl-meta"},rv={key:0,class:"ss-dash-empty"},uv={key:1,class:"ss-dash-empty"},cv={class:"ss-dash-table-wrap"},dv=["onClick"],fv={style:{color:"var(--ss-dim)"}},hv=["title"],pv={style:{color:"var(--ss-muted)","text-align":"center"}},vv=["title"],gv={key:1,class:"ss-dash-empty"},yv=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"TimelineSection",props:{tracingEnabled:{type:Boolean,default:!0}},setup(e){const t=e,s=ue("ss-refresh-key",Q(0)),l=ue("ss-dashboard-endpoint","/__stats/api"),a=ue("ss-auth-token",void 0),o=ue("ss-base-url",""),{data:i,loading:r,error:c,pagination:g,goToPage:v,setSearch:m}=Ze(()=>"traces",{baseUrl:o,dashboardEndpoint:l,authToken:a,refreshKey:s}),p=Q(""),x=Q(null),$=Q(null),_=Q(!1),E=q(()=>{if(!i.value)return[];const W=i.value;return W.data||W.traces||i.value||[]}),R=un(o,a);async function M(W){x.value=W,_.value=!0,$.value=null;try{const X=l||"/__stats/api",L=await R().fetch(`${X}/traces/${W}`);$.value=L}catch{}finally{_.value=!1}}function y(){x.value=null,$.value=null}function k(W){p.value=W,m(W)}function C(W){const X=nn(W);return X==="very-slow"?"ss-dash-very-slow":X==="slow"?"ss-dash-slow":""}const{tableRef:J}=Bt(()=>E.value);return(W,X)=>(u(),d("div",null,[t.tracingEnabled?x.value&&$.value?(u(),d(U,{key:1},[n("div",ov,[n("button",{type:"button",class:"ss-dash-btn",onClick:y},"← Back"),n("span",{class:D(`ss-dash-method ss-dash-method-${($.value.method||"").toLowerCase()}`)},f($.value.method),3),n("span",av,f($.value.url),1),n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor(($.value.status_code||$.value.statusCode||0)/100)}xx`)},f($.value.status_code||$.value.statusCode||0),3),n("span",iv,f(($.value.total_duration||$.value.totalDuration||0).toFixed(1))+"ms · "+f($.value.spanCount??w(ol)($.value.spans).length)+" spans ",1)]),be(ha,{spans:w(ol)($.value.spans),"total-duration":$.value.total_duration||$.value.totalDuration||0,warnings:w(ra)($.value.warnings)},null,8,["spans","total-duration","warnings"])],64)):x.value&&_.value?(u(),d(U,{key:2},[n("div",{class:"ss-dash-tl-detail-header"},[n("button",{type:"button",class:"ss-dash-btn",onClick:y},"← Back")]),X[0]||(X[0]=n("div",{class:"ss-dash-empty"},"Loading trace detail...",-1))],64)):(u(),d(U,{key:3},[be(Ct,{"model-value":p.value,placeholder:"Filter traces...",summary:`${w(g).total??0} traces`,"onUpdate:modelValue":k},null,8,["model-value","summary"]),w(c)?(u(),d("div",rv,"Failed to load traces")):te("",!0),w(r)&&!w(i)?(u(),d("div",uv,"Loading traces...")):(u(),d(U,{key:2},[n("div",cv,[E.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:J,class:"ss-dash-table"},[X[1]||(X[1]=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:"80px"}})],-1)),X[2]||(X[2]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Method"),n("th",null,"URL"),n("th",null,"Status"),n("th",null,"Duration"),n("th",null,"Spans"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(U,null,me(E.value,L=>(u(),d("tr",{key:L.id,class:"ss-dash-clickable",onClick:V=>M(L.id)},[n("td",null,[n("span",fv,f(L.id),1)]),n("td",null,[n("span",{class:D(`ss-dash-method ss-dash-method-${(L.method||"").toLowerCase()}`)},f(L.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:L.url},f(L.url),9,hv)]),n("td",null,[n("span",{class:D(`ss-dash-status ss-dash-status-${Math.floor((L.statusCode||L.status_code||0)/100)}xx`)},f(L.statusCode||L.status_code||0),3)]),n("td",null,[n("span",{class:D(`ss-dash-duration ${C(L.totalDuration||L.total_duration||0)}`)},f((L.totalDuration||L.total_duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",pv,f(L.spanCount||L.span_count||0),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(It)(L.createdAt||L.created_at||L.timestamp)},f(w(bt)(L.createdAt||L.created_at||L.timestamp)),9,vv)])],8,dv))),128))])],512)):(u(),d("div",gv,"No traces recorded"))]),w(g).totalPages>1?(u(),Xe(Kt,{key:0,page:w(g).page,"last-page":w(g).totalPages,total:w(g).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))],64)):(u(),d("div",lv," Tracing is not enabled. Enable tracing in your server-stats config to use the timeline. "))]))}})},Symbol.toStringTag,{value:"Module"})),mv={key:0,class:"ss-dash-cache-stats"},bv={class:"ss-dash-cache-stat"},_v={class:"ss-dash-cache-stat-value"},xv={class:"ss-dash-cache-stat"},wv={class:"ss-dash-cache-stat-value"},$v={class:"ss-dash-cache-stat"},kv={class:"ss-dash-cache-stat-value"},Sv={class:"ss-dash-cache-stat"},Cv={class:"ss-dash-cache-stat-value"},Tv={key:1,class:"ss-dash-empty"},Ev={key:2,class:"ss-dash-empty"},Pv={key:3,class:"ss-dash-table-wrap"},Av=["onClick"],Mv=["title"],Rv={style:{color:"var(--ss-muted)"}},Lv=["onClick"],Ov={key:1,class:"ss-dash-empty"},Dv={key:4,class:"ss-dash-cache-detail"},Fv={key:0,class:"ss-dash-empty"},Iv={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"CacheSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,setSearch:r,mutate:c}=Ze(()=>"cache",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=un(a||"",l),v=new la(g(),s||"/__stats/api"),m=Q(""),p=Q(null),x=Q(null),$=Q(!1),_=Q(null),E=q(()=>o.value),R=q(()=>E.value?.keys||E.value?.data||[]);function M(J){m.value=J,r(J)}async function y(J){if(confirm(`Delete cache key "${J}"?`))try{await c(`cache/${encodeURIComponent(J)}`,"delete"),p.value===J&&(p.value=null,x.value=null,_.value=null)}catch{}}const{tableRef:k}=Bt(()=>R.value);async function C(J){if(p.value===J){p.value=null,x.value=null,_.value=null;return}p.value=J,x.value=null,_.value=null,$.value=!0;try{const W=await v.fetchCacheKey(J);x.value=W.value!==void 0?W.value:W.data!==void 0?W.data:W,_.value=null}catch{x.value=null,_.value="Failed to fetch key value"}finally{$.value=!1}}return(J,W)=>(u(),d("div",null,[E.value?.available&&E.value?.stats?(u(),d("div",mv,[n("div",bv,[W[0]||(W[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",_v,f((E.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",xv,[W[1]||(W[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",wv,f(E.value.stats.hits??0),1)]),n("div",$v,[W[2]||(W[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",kv,f(E.value.stats.misses??0),1)]),n("div",Sv,[W[3]||(W[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",Cv,f(E.value.stats.totalKeys||E.value.stats.keyCount||R.value.length||0),1)])])):te("",!0),be(Ct,{"model-value":m.value,placeholder:"Filter cache keys...",summary:`${R.value.length} keys`,"onUpdate:modelValue":M},null,8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",Tv,"Loading cache...")):!E.value||!E.value.available?(u(),d("div",Ev," Cache inspector not available ")):(u(),d("div",Pv,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:k,class:"ss-dash-table"},[W[4]||(W[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(U,null,me(R.value,X=>(u(),d("tr",{key:X.key,class:"ss-dash-clickable",onClick:L=>C(X.key)},[n("td",null,[n("span",{title:X.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},f(X.key),9,Mv)]),n("td",null,[n("span",Rv,f(X.type),1)]),n("td",null,f(X.size!==null&&X.size!==void 0&&X.size>0?w(pu)(X.size):"-"),1),n("td",null,f(X.ttl>0?w(hu)(X.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:ot(L=>y(X.key),["stop"])}," Delete ",8,Lv)])],8,Av))),128))])],512)):(u(),d("div",Ov,"No cache keys found"))])),p.value?(u(),d("div",Dv,[n("h4",null,"Key: "+f(p.value),1),$.value?(u(),d("div",Fv,"Loading value...")):_.value?(u(),d("div",Iv,f(_.value),1)):(u(),Xe(cn,{key:2,value:x.value},null,8,["value"]))])):te("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Nv={key:0,class:"ss-dash-job-stats"},jv={class:"ss-dash-job-stat"},Hv={class:"ss-dash-job-stat-value"},Uv={class:"ss-dash-job-stat"},qv={class:"ss-dash-job-stat-value"},Kv={class:"ss-dash-job-stat"},Vv={class:"ss-dash-job-stat-value"},zv={class:"ss-dash-job-stat"},Wv={class:"ss-dash-job-stat-value"},Jv={class:"ss-dash-job-stat"},Qv={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Gv={class:"ss-dash-btn-group"},Yv=["onClick"],Xv={key:1,class:"ss-dash-empty"},Zv={key:2,class:"ss-dash-empty"},eg={class:"ss-dash-table-wrap"},tg={style:{color:"var(--ss-dim)"}},sg=["title"],ng={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},lg={class:"ss-dash-duration"},og=["title"],ag=["disabled","onClick"],ig={key:1,class:"ss-dash-empty"},rg=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"JobsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-dashboard-endpoint","/__stats/api"),l=ue("ss-auth-token",void 0),a=ue("ss-base-url",""),{data:o,loading:i,error:r,pagination:c,goToPage:g,setSearch:v,setFilter:m,refresh:p,mutate:x}=Ze(()=>"jobs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=Q(""),_=Q("all"),E=Q({}),R=q(()=>Au(o.value)),M=q(()=>Mu(o.value));function y(W){$.value=W,v(W)}function k(W){_.value=W,W==="all"?m("status",""):m("status",W)}const{tableRef:C}=Bt(()=>R.value);async function J(W){E.value[W]="pending";try{await x(`jobs/${W}/retry`),E.value[W]="success",setTimeout(()=>{delete E.value[W],p()},1e3)}catch{delete E.value[W]}}return(W,X)=>(u(),d("div",null,[M.value?(u(),d("div",Nv,[n("div",jv,[X[0]||(X[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Hv,f(M.value.active??0),1)]),n("div",Uv,[X[1]||(X[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",qv,f(M.value.waiting??0),1)]),n("div",Kv,[X[2]||(X[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Vv,f(M.value.delayed??0),1)]),n("div",zv,[X[3]||(X[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Wv,f(M.value.completed??0),1)]),n("div",Jv,[X[4]||(X[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Qv,f(M.value.failed??0),1)])])):te("",!0),be(Ct,{"model-value":$.value,placeholder:"Filter jobs...",summary:`${w(c).total||R.value.length} jobs`,"onUpdate:modelValue":y},{default:es(()=>[n("div",Gv,[(u(!0),d(U,null,me(w(Eu),L=>(u(),d("button",{key:L,type:"button",class:D(`ss-dash-btn ${_.value===L?"ss-dash-active":""}`),onClick:V=>k(L)},f(L.charAt(0).toUpperCase()+L.slice(1)),11,Yv))),128))])]),_:1},8,["model-value","summary"]),w(i)&&!w(o)?(u(),d("div",Xv,"Loading jobs...")):w(r)?(u(),d("div",Zv,"Jobs/Queue not available")):(u(),d(U,{key:3},[n("div",eg,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:C,class:"ss-dash-table"},[X[5]||(X[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)),X[6]||(X[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(U,null,me(R.value,L=>(u(),d("tr",{key:L.id},[n("td",null,[n("span",tg,f(L.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:L.name},f(L.name),9,sg)]),n("td",null,[n("span",{class:D(`ss-dash-badge ss-dash-badge-${w(Pu)(L.status)}`)},f(L.status),3)]),n("td",null,[be(cn,{value:L.payload||L.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",ng,f(L.attempts||L.attemptsMade||0),1)]),n("td",null,[n("span",lg,f(L.duration!==null&&L.duration!==void 0?w(Ft)(L.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(It)(L.timestamp||L.createdAt||L.processedAt||L.created_at)},f(w(bt)(L.timestamp||L.createdAt||L.processedAt||L.created_at)),9,og)]),n("td",null,[L.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:E.value[L.id]==="pending"||E.value[L.id]==="success",onClick:ot(V=>J(L.id),["stop"])},f(E.value[L.id]==="pending"?"...":E.value[L.id]==="success"?"OK":"Retry"),9,ag)):te("",!0)])]))),128))])],512)):(u(),d("div",ig,"No jobs found"))]),w(c).totalPages>1?(u(),Xe(Kt,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(g)},null,8,["page","last-page","total","onPageChange"])):te("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),ug={style:{position:"relative",flex:1}},cg=["value"],dg=["title","onClick"],fg=["viewBox","innerHTML"],hg=["viewBox","innerHTML"],pg=["onClick"],vg={key:0},gg=["title","onClick"],yg=["viewBox","innerHTML"],mg=["viewBox","innerHTML"],bg=["onClick"],_g={key:0},xg={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},wg=["onClick"],$g=["title"],kg=["title"],Sg=["title","onClick"],Cg=["viewBox","innerHTML"],Tg=["viewBox","innerHTML"],Eg=["onClick"],Pg=["title","onClick"],Ag=["viewBox","innerHTML"],Mg=["viewBox","innerHTML"],Rg={key:1,style:{color:"var(--ss-dim)"}},Lg={key:3,style:{color:"var(--ss-amber-fg)"}},Og={key:4,style:{color:"var(--ss-purple-fg)"}},Dg={key:5},Fg=["onClick"],ce="ss-dash",Ig=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"ConfigSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-base-url",""),l=ue("ss-dashboard-endpoint","/__stats/api"),a=ue("ss-auth-token",void 0),{data:o,loading:i}=Ze(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),r=Q(""),c=Q(""),g=Q("app"),v=Q(new Set),m=Q("Copy JSON"),p=Q(new Set),x=Q(new Map);let $=null;function _(K){r.value=K,$&&clearTimeout($),$=setTimeout(()=>{c.value=K},200)}function E(K){return K.target.value}const R=q(()=>o.value??null),M=q(()=>{const K=R.value?.env??{},ae=c.value.toLowerCase();return Object.entries(K).filter(([G,ie])=>{if(!ae)return!0;const Ie=Fe(ie)?ie.display:ie==null?"":String(ie);return G.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),y=q(()=>{const K=R.value?.app??{},ae=c.value.toLowerCase();return an(K,"").filter(ie=>{const Ie=Fe(ie.value)?ie.value.display:ie.value===null||ie.value===void 0?"":String(ie.value);return ie.path.toLowerCase().includes(ae)||Ie.toLowerCase().includes(ae)})}),k=q(()=>{const K=R.value?.app??{};return an(K,"").length}),C=q(()=>{const K=R.value?.app;return!K||typeof K!="object"||Array.isArray(K)||Fe(K)?[]:Object.keys(K)});function J(K){const ae=new Set(v.value);ae.has(K)?ae.delete(K):ae.add(K),v.value=ae}function W(){if(!R.value)return;const K=g.value==="app"?R.value.app:R.value.env;if(!K)return;const ae=Ju(K);v.value=new Set(ae)}function X(){v.value=new Set}function L(){if(!R.value)return;const K=g.value==="app"?R.value.app:R.value.env;navigator.clipboard?.writeText(JSON.stringify(K,null,2)).then(()=>{m.value="Copied!",setTimeout(()=>{m.value="Copy JSON"},1500)}).catch(()=>{})}function V(K){const ae=new Set(p.value);ae.has(K)?ae.delete(K):ae.add(K),p.value=ae}function ne(K,ae){x.value.set(K,ae)}function _e(K,ae,G){G.stopPropagation(),Qu(K,x.value.get(ae)??null,ce)}function Me(K){return K!==null&&typeof K=="object"&&!Array.isArray(K)&&!Fe(K)}function Le(K,ae){return an(K,ae)}function Re(K,ae){return K.indexOf(ae+".")===0?K.slice(ae.length+1):K}function pe(K){return Wu(K)}function fe(K){return Fe(K)?K.display:K==null?"null":String(K)}function T(K){const ae=R.value?.app;return!ae||typeof ae!="object"?null:ae[K]??null}function A(K,ae){return Fe(K)?ae?K.value:K.display:""}function S(){r.value="",c.value=""}function H(K){return Fe(K)?K.display:""}const z=q(()=>Ae.eye.elements.join("")),le=q(()=>Ae["eye-off"].elements.join(""));return(K,ae)=>(u(),d("div",null,[n("div",{class:D(`${ce}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:D(`${ce}-config-tab${g.value==="app"?` ${ce}-active`:""}`),onClick:ae[0]||(ae[0]=G=>g.value="app")}," App Config ",2),n("button",{type:"button",class:D(`${ce}-config-tab${g.value==="env"?` ${ce}-active`:""}`),onClick:ae[1]||(ae[1]=G=>g.value="env")}," Env ",2),n("div",ug,[n("input",{type:"text",class:D(`${ce}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:ae[2]||(ae[2]=G=>_(E(G)))},null,42,cg),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:S}," × ")):te("",!0)]),g.value==="app"&&!c.value?(u(),d(U,{key:0},[n("button",{type:"button",class:D(`${ce}-btn`),onClick:W},"Expand All",2),n("button",{type:"button",class:D(`${ce}-btn`),onClick:X},"Collapse All",2)],64)):te("",!0),n("button",{type:"button",class:D(`${ce}-btn`),onClick:L},f(m.value),3)],2),w(i)&&!w(o)?(u(),d("div",{key:0,class:D(`${ce}-empty`)},"Loading config...",2)):R.value?g.value==="env"?(u(),d("div",{key:2,class:D(`${ce}-config-table-wrap`)},[n("table",{class:D(`${ce}-table ${ce}-config-env-table`)},[ae[4]||(ae[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(U,null,me(M.value,([G,ie])=>(u(),d("tr",{key:G},[n("td",{class:D(`${ce}-env-key`)},[n("span",{class:D(`${ce}-config-key`)},f(G),3)],2),n("td",{class:D(`${ce}-env-val`)},[w(Fe)(ie)?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(ie,p.value.has(G))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(G)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(Ie=>V(G),["stop"])},[p.value.has(G)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,fg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,hg))],10,dg)],2)):(u(),d("span",{key:1,class:D(`${ce}-config-val`)},f(fe(ie)),3))],2),n("td",null,[w(Fe)(ie)?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>ne(`env-${G}`,Ie),onClick:Ie=>_e(`${G}=${fe(ie)}`,`env-${G}`,Ie)}," ⎘ ",10,pg))])]))),128)),M.value.length===0?(u(),d("tr",vg,[...ae[3]||(ae[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):te("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:D(`${ce}-config-table-wrap`)},[n("table",{class:D(`${ce}-table`)},[ae[6]||(ae[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(U,null,me(y.value,G=>(u(),d("tr",{key:G.path},[n("td",null,[n("span",{class:D(`${ce}-config-key`),style:{whiteSpace:"nowrap"}},f(G.path),3)]),n("td",null,[w(Fe)(G.value)?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(G.value,p.value.has(G.path))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(G.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(ie=>V(G.path),["stop"])},[p.value.has(G.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,yg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,mg))],10,gg)],2)):(u(),d("span",{key:1,class:D(`${ce}-config-val`),style:Ke({wordBreak:"break-all",color:pe(G.value).color})},f(pe(G.value).text),7))]),n("td",null,[w(Fe)(G.value)?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ie=>ne(`search-${G.path}`,ie),onClick:ie=>_e(`${G.path}: ${w(Fe)(G.value)?H(G.value):pe(G.value).text}`,`search-${G.path}`,ie)}," ⎘ ",10,bg))])]))),128)),y.value.length===0?(u(),d("tr",_g,[...ae[5]||(ae[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):te("",!0)])],2),n("div",xg,f(y.value.length)+" of "+f(k.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:D(`${ce}-config-table-wrap`)},[n("div",{class:D(`${ce}-config-sections`)},[(u(!0),d(U,null,me(C.value,G=>(u(),d("div",{key:G,class:D(`${ce}-config-section`)},[Me(T(G))?(u(),d(U,{key:0},[n("div",{class:D(`${ce}-config-section-header`),style:{cursor:"pointer"},onClick:ie=>J(G)},[n("span",{class:D(`${ce}-config-toggle`)},f(v.value.has(G)?"▼":"▶"),3),n("span",{class:D(`${ce}-config-key`)},f(G),3),n("span",{class:D(`${ce}-config-count`)},f(w(ua)(T(G)))+" entries ",3)],10,wg),v.value.has(G)?(u(),d("div",{key:0,class:D(`${ce}-config-section-body`)},[n("table",{class:D(`${ce}-table ${ce}-config-inner-table`)},[ae[7]||(ae[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(U,null,me(Le(T(G),G),ie=>(u(),d("tr",{key:ie.path},[n("td",{title:Re(ie.path,G)},[n("span",{class:D(`${ce}-config-key`)},f(Re(ie.path,G)),3)],8,$g),n("td",{title:w(Fe)(ie.value)?H(ie.value):pe(ie.value).text},[w(Fe)(ie.value)?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(ie.value,p.value.has(ie.path))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(ie.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(Ie=>V(ie.path),["stop"])},[p.value.has(ie.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Cg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,Tg))],10,Sg)],2)):(u(),d("span",{key:1,class:D(`${ce}-config-val`),style:Ke({color:pe(ie.value).color})},f(pe(ie.value).text),7))],8,kg),n("td",null,[w(Fe)(ie.value)?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Ie=>ne(`inner-${ie.path}`,Ie),onClick:Ie=>_e(`${ie.path}: ${pe(ie.value).text}`,`inner-${ie.path}`,Ie)}," ⎘ ",10,Eg))])]))),128))])],2)],2)):te("",!0)],64)):(u(),d("div",{key:1,class:D(`${ce}-config-section-header ${ce}-config-leaf`),style:{cursor:"default"}},[n("span",{class:D(`${ce}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:D(`${ce}-config-key`)},f(G),3),n("span",{class:D(`${ce}-config-val`),style:{marginLeft:"8px"}},[w(Fe)(T(G))?(u(),d("span",{key:0,class:D(`${ce}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,f(A(T(G),p.value.has(G))),1),n("button",{type:"button",class:D(`${ce}-btn`),title:p.value.has(G)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:ot(ie=>V(G),["stop"])},[p.value.has(G)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:w(Ae)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:le.value},null,8,Ag)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:w(Ae).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:z.value},null,8,Mg))],10,Pg)],2)):T(G)===null||T(G)===void 0?(u(),d("span",Rg,"null")):typeof T(G)=="boolean"?(u(),d("span",{key:2,style:Ke({color:T(G)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},f(String(T(G))),5)):typeof T(G)=="number"?(u(),d("span",Lg,f(String(T(G))),1)):Array.isArray(T(G))?(u(),d("span",Og,f(pe(T(G)).text),1)):(u(),d("span",Dg,f(String(T(G))),1))],2),w(Fe)(T(G))?te("",!0):(u(),d("button",{key:0,type:"button",class:D(`${ce}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ie=>ne(`leaf-${G}`,ie),onClick:ie=>_e(`${G}: ${pe(T(G)).text}`,`leaf-${G}`,ie)}," ⎘ ",10,Fg))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:D(`${ce}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),Bg={key:0,class:"ss-dash-empty"},Ng={key:1,class:"ss-dash-empty"},jg={key:2,class:"ss-dash-empty"},Hg={class:"ss-dash-info-cards"},Ug={class:"ss-dash-info-card-label"},qg={class:"ss-dash-info-card-value"},Kg={key:0,class:"ss-dash-empty"},Vg={key:1,class:"ss-dash-table"},zg={style:{"font-family":"monospace","font-size":"11px"}},Wg={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},Jg={style:{color:"var(--ss-dim)","margin-left":"4px"}},Qg={style:{"font-size":"11px"}},Gg=["onClick"],Yg=["onClick"],Xg={key:2,class:"ss-dash-empty"},Zg={key:3,class:"ss-dash-table"},e1={class:"ss-dash-bar"},t1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},s1={key:4,class:"ss-dash-empty"},n1={key:5,class:"ss-dash-table"},l1={style:{color:"var(--ss-dim)"}},o1={key:6,class:"ss-dash-empty"},a1={key:7,class:"ss-dash-table"},i1={style:{color:"var(--ss-dim)","font-size":"11px"}},r1={class:"ss-dash-table"},u1={style:{"font-family":"monospace","font-size":"11px"}},c1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},d1={style:{"font-family":"monospace","font-size":"11px"}},f1={class:"ss-dash-table"},h1={class:"ss-dash-table"},p1={style:{"font-family":"monospace","font-size":"11px"}},v1={style:{"font-family":"monospace","font-size":"11px"}},g1={style:{"font-family":"monospace","font-size":"11px"}},y1={style:{"font-size":"11px"}},m1=Object.freeze(Object.defineProperty({__proto__:null,default:De({__name:"InternalsSection",setup(e){const t=ue("ss-refresh-key",Q(0)),s=ue("ss-base-url",""),l=ue("ss-debug-endpoint","/admin/api/debug"),a=ue("ss-auth-token",void 0),o=Q(null),i=Q(!0),r=Q(null),c=Q(new Set),g=un(s,a);let v=null;async function m(){try{const M=await g().fetch(`${l}/diagnostics`);o.value=M,r.value=null,i.value=!1}catch(M){if(M instanceof tn){r.value=M,i.value=!1,v&&(clearInterval(v),v=null);return}r.value=M instanceof Error?M:new Error(String(M)),i.value=!1}}Lt(()=>{i.value=!0,r.value=null,m(),v=setInterval(m,Zo)}),Ot(()=>{v&&clearInterval(v)}),yt(t,()=>{m()});function p(M){c.value.has(M)?c.value.delete(M):c.value.add(M)}function x(M){const y=zu(M);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function $(M){return M.debounceMs!==void 0?`${Ft(M.debounceMs)} (debounce)`:M.intervalMs!==void 0?Ft(M.intervalMs):"-"}const _=q(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([M,y])=>({name:M.charAt(0).toUpperCase()+M.slice(1),...y,percent:qu(y.current,y.max)})):[]),E=q(()=>o.value?.timers?Object.entries(o.value.timers).map(([M,y])=>({key:M,label:Iu(M),...y,interval:$(y)})):[]),R=q(()=>{if(!o.value)return[];const M=[];if(o.value.transmit&&M.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,k]of Object.entries(o.value.integrations))M.push({key:y,label:Nu(y),status:ju(k),details:Hu(y,k)});return M});return(M,y)=>(u(),d("div",null,[i.value&&!o.value?(u(),d("div",Bg,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",Ng,"Error: "+f(r.value.message),1)):o.value?(u(),d(U,{key:3},[y[41]||(y[41]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",Hg,[(u(!0),d(U,null,me([{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:w(fu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],k=>(u(),d("div",{key:k.label,class:"ss-dash-info-card"},[n("span",Ug,f(k.label),1),n("span",qg,f(k.value),1)]))),128))]),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",Vg,[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(U,null,me(o.value.collectors,k=>(u(),d("tr",{key:k.name},[n("td",null,[n("span",zg,f(k.name),1),k.label&&k.label!==k.name?(u(),d("span",Wg,f(k.label),1)):te("",!0)]),n("td",null,[n("span",{class:D(["ss-dash-dot",x(k.status)])},null,2),xe(" "+f(k.status),1)]),n("td",{style:Ke(k.lastError?{color:"var(--ss-red-fg)"}:{})},[k.lastError?(u(),d(U,{key:0},[xe(f(k.lastError)+" ",1),n("span",Jg,f(w(bt)(k.lastErrorAt??0)),1)],64)):(u(),d(U,{key:1},[xe("-")],64))],4),n("td",Qg,[Object.keys(k.config||{}).length?(u(!0),d(U,{key:0},me(w(Uu)(k.config),C=>(u(),d("span",{key:C.key,style:{"margin-right":"8px"}},[xe(f(C.key)+"=",1),C.secret&&!c.value.has(`collector-${k.name}-${C.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:J=>p(`collector-${k.name}-${C.key}`)},"••••••••",8,Gg)):(u(),d(U,{key:1},[n("span",null,f(C.value),1),C.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:J=>p(`collector-${k.name}-${C.key}`)}," Hide ",8,Yg)):te("",!0)],64))]))),128)):(u(),d(U,{key:1},[xe("-")],64))])]))),128))])])):(u(),d("div",Kg,"No collectors")),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),_.value.length?(u(),d("table",Zg,[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(U,null,me(_.value,k=>(u(),d("tr",{key:k.name},[n("td",null,f(k.name),1),n("td",null,f(k.current.toLocaleString())+" / "+f(k.max.toLocaleString()),1),n("td",null,[n("div",e1,[n("div",t1,[n("div",{class:D(["ss-dash-bar-fill",k.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ke({width:k.percent+"%"})},null,6)]),n("span",{class:D(["ss-dash-bar-pct",k.percent>=100?"ss-dash-bar-pct-warn":""])},f(k.percent)+"%",3)])])]))),128))])])):(u(),d("div",Xg,"No buffer data")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),E.value.length?(u(),d("table",n1,[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(U,null,me(E.value,k=>(u(),d("tr",{key:k.key},[n("td",null,f(k.label),1),n("td",null,[n("span",{class:D(["ss-dash-dot",x(k.active?"active":"inactive")])},null,2),xe(" "+f(k.active?"active":"inactive"),1)]),n("td",l1,f(k.interval),1)]))),128))])])):(u(),d("div",s1,"No timer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),R.value.length?(u(),d("table",a1,[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(U,null,me(R.value,k=>(u(),d("tr",{key:k.key},[n("td",null,f(k.label),1),n("td",null,[n("span",{class:D(["ss-dash-dot",x(k.status)])},null,2),xe(" "+f(k.status),1)]),n("td",i1,f(k.details),1)]))),128))])])):(u(),d("div",o1,"No integration data")),o.value.storage?(u(),d(U,{key:8},[y[16]||(y[16]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",r1,[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:D(["ss-dash-dot",x(o.value.storage.ready?"ready":"unavailable")])},null,2),xe(" "+f(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[9]||(y[9]=n("td",null,"DB Path",-1)),n("td",u1,f(o.value.storage.dbPath),1)]),n("tr",null,[y[10]||(y[10]=n("td",null,"File Size",-1)),n("td",null,f(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"WAL Size",-1)),n("td",null,f(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"Retention",-1)),n("td",null,f(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Last Cleanup",-1)),n("td",null,f(w(bt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",c1,[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(U,null,me(o.value.storage.tables,k=>(u(),d("tr",{key:k.name},[n("td",d1,f(k.name),1),n("td",null,f(k.rowCount.toLocaleString()),1)]))),128))])])):te("",!0)],64)):te("",!0),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",f1,[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,f(o.value.config?.intervalMs),1)]),n("tr",null,[y[18]||(y[18]=n("td",null,"transport",-1)),n("td",null,f(o.value.config?.transport),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"channelName",-1)),n("td",null,f(o.value.config?.channelName),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"endpoint",-1)),n("td",null,f(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,f(o.value.config?.skipInTest),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"onStats callback",-1)),n("td",null,f(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"shouldShow callback",-1)),n("td",null,f(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[47]||(y[47]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",h1,[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,f(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[26]||(y[26]=n("td",null,"tracing",-1)),n("td",null,f(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"dashboard",-1)),n("td",null,f(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboardPath",-1)),n("td",p1,f(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"debugEndpoint",-1)),n("td",v1,[c.value.has("cfg-debugEndpoint")?(u(),d(U,{key:1},[xe(f(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]=k=>p("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=k=>p("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[30]||(y[30]=n("td",null,"maxQueries",-1)),n("td",null,f(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxEvents",-1)),n("td",null,f(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEmails",-1)),n("td",null,f(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxTraces",-1)),n("td",null,f(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,f(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"retentionDays",-1)),n("td",null,f(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"dbPath",-1)),n("td",g1,[c.value.has("cfg-dbPath")?(u(),d(U,{key:1},[xe(f(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]=k=>p("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=k=>p("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[37]||(y[37]=n("td",null,"persistDebugData",-1)),n("td",null,f(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[38]||(y[38]=n("td",null,"excludeFromTracing",-1)),n("td",y1,f(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"customPanes",-1)),n("td",null,f(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",jg,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();