adonisjs-server-stats 1.6.13 → 1.8.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.
- package/README.md +24 -8
- package/dist/core/index.js +248 -245
- package/dist/react/{CacheSection-DGxMDlWK.js → CacheSection-D5J5moz7.js} +1 -1
- package/dist/react/{CacheTab-CnVW5PLs.js → CacheTab-F1MkWSZl.js} +1 -1
- package/dist/react/{ConfigSection-DPcrfqXY.js → ConfigSection-DerLBu4o.js} +1 -1
- package/dist/react/{ConfigTab-BSWq_o2p.js → ConfigTab-Bsj7v9JW.js} +1 -1
- package/dist/react/{CustomPaneTab-xjkYwTvH.js → CustomPaneTab-gzdtDEvz.js} +1 -1
- package/dist/react/{EmailsSection-CSyTg1aX.js → EmailsSection-ndH3cvJk.js} +1 -1
- package/dist/react/{EmailsTab-Dh2YSa_f.js → EmailsTab-DVPHRx0L.js} +44 -22
- package/dist/react/{EventsSection-C1pbJDfW.js → EventsSection-ClIByDSk.js} +1 -1
- package/dist/react/{EventsTab-eCh02cdd.js → EventsTab-CCzWEKrk.js} +1 -1
- package/dist/react/{JobsSection-CLAin5vU.js → JobsSection-CVMyAs7O.js} +1 -1
- package/dist/react/{JobsTab-Dl5nrj2z.js → JobsTab-CATUyb9V.js} +1 -1
- package/dist/react/{LogsSection-C1p81fXO.js → LogsSection-hAsLaKOC.js} +1 -1
- package/dist/react/{LogsTab-D-kR7PjX.js → LogsTab-QouH4NPQ.js} +1 -1
- package/dist/react/{OverviewSection-nm3xdACz.js → OverviewSection-ae5AO2RG.js} +1 -1
- package/dist/react/{QueriesSection-DB12HMfQ.js → QueriesSection-DFFr9Tbb.js} +1 -1
- package/dist/react/{QueriesTab-fyBB1u_Y.js → QueriesTab-GrHRAREt.js} +1 -1
- package/dist/react/{RequestsSection-DTqB81ac.js → RequestsSection-DtwnJOnM.js} +1 -1
- package/dist/react/{RoutesSection-DJWa4NPV.js → RoutesSection-F7nANhF0.js} +1 -1
- package/dist/react/{RoutesTab-D3l8TOpu.js → RoutesTab-rugjhCPH.js} +1 -1
- package/dist/react/{TimelineSection-C4d-jRX1.js → TimelineSection-F5ThmTdy.js} +1 -1
- package/dist/react/{TimelineTab-C5TFaSmQ.js → TimelineTab-Dvpf-I5C.js} +1 -1
- package/dist/react/{index-UdTfSvtO.js → index-DDzo1bZk.js} +2 -2
- package/dist/react/index.js +1 -1
- package/dist/react/style.css +1 -1
- package/dist/src/controller/debug_controller.js +10 -9
- package/dist/src/dashboard/dashboard_store.js +10 -6
- package/dist/src/data/data_access.js +14 -2
- package/dist/src/debug/email_collector.d.ts +11 -1
- package/dist/src/debug/email_collector.js +32 -2
- package/dist/src/debug/event_collector.js +1 -1
- package/dist/src/debug/query_collector.js +1 -1
- package/dist/src/debug/trace_collector.js +1 -1
- package/dist/src/debug/types.d.ts +1 -1
- package/dist/src/edge/client/dashboard.js +2 -2
- package/dist/src/edge/client/debug-panel-deferred.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +4 -4
- package/dist/src/edge/client-vue/debug-panel-deferred.js +3 -3
- package/dist/src/provider/server_stats_provider.d.ts +31 -0
- package/dist/src/provider/server_stats_provider.js +244 -5
- package/dist/src/routes/register_routes.js +2 -2
- package/dist/src/styles/components.css +3 -0
- package/dist/vue/{CacheSection-C788Yfai.js → CacheSection-DDvJ7bs2.js} +1 -1
- package/dist/vue/{ConfigSection-CRzYxqW2.js → ConfigSection-GTCrvsPr.js} +1 -1
- package/dist/vue/{EmailsSection-C8JFMtW7.js → EmailsSection-Ct5vsLCc.js} +1 -1
- package/dist/vue/EmailsTab-CNyEODVB.js +177 -0
- package/dist/vue/{EventsSection-C4wXUgxG.js → EventsSection-CRVhtagq.js} +1 -1
- package/dist/vue/{JobsSection-CsKWTjgN.js → JobsSection-B_wH2Co7.js} +1 -1
- package/dist/vue/{LogsSection-BFVjSZ24.js → LogsSection-C4NRFOpA.js} +1 -1
- package/dist/vue/{OverviewSection-CbMdAido.js → OverviewSection-BqSwuMKH.js} +1 -1
- package/dist/vue/{QueriesSection-BPiv7u3r.js → QueriesSection-D4Fs0YH6.js} +1 -1
- package/dist/vue/{RequestsSection-LtImH4rD.js → RequestsSection-B0A5SKcM.js} +1 -1
- package/dist/vue/{RoutesSection-CrxOxmzx.js → RoutesSection-Ys5dTzvF.js} +1 -1
- package/dist/vue/{TimelineSection-DLxMW2J_.js → TimelineSection-D38iHB08.js} +1 -1
- package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +2 -0
- package/dist/vue/{index-qCQpBftQ.js → index-Bj6pm5g3.js} +56 -54
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/vue/EmailsTab-DhFhoNmU.js +0 -157
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";function Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const oe={},Tt=[],De=()=>{},jn=()=>!1,is=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hs=e=>e.startsWith("onUpdate:"),he=Object.assign,Vs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},jr=Object.prototype.hasOwnProperty,ne=(e,t)=>jr.call(e,t),z=Array.isArray,St=e=>Ft(e)==="[object Map]",Fn=e=>Ft(e)==="[object Set]",Nn=e=>Ft(e)==="[object Date]",W=e=>typeof e=="function",de=e=>typeof e=="string",je=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",Bn=e=>(le(e)||W(e))&&W(e.then)&&W(e.catch),Un=Object.prototype.toString,Ft=e=>Un.call(e),Fr=e=>Ft(e).slice(8,-1),Hn=e=>Ft(e)==="[object Object]",Ks=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),as=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Nr=/-\w/g,ot=as(e=>e.replace(Nr,t=>t.slice(1).toUpperCase())),Br=/\B([A-Z])/g,it=as(e=>e.replace(Br,"-$1").toLowerCase()),Vn=as(e=>e.charAt(0).toUpperCase()+e.slice(1)),zs=as(e=>e?`on${Vn(e)}`:""),at=(e,t)=>!Object.is(e,t),us=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Kn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ws=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zn;const cs=()=>zn||(zn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(z(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=de(n)?Kr(n):Et(n);if(l)for(const r in l)t[r]=l[r]}return t}else if(de(e)||le(e))return e}const Ur=/;(?![^(]*\))/g,Hr=/:([^]+)/,Vr=/\/\*[^]*?\*\//g;function Kr(e){const t={};return e.replace(Vr,"").split(Ur).forEach(s=>{if(s){const n=s.split(Hr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function V(e){let t="";if(de(e))t=e;else if(z(e))for(let s=0;s<e.length;s++){const n=V(e[s]);n&&(t+=n+" ")}else if(le(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const zr=Us("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Wn(e){return!!e||e===""}function Wr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=qs(e[n],t[n]);return s}function qs(e,t){if(e===t)return!0;let s=Nn(e),n=Nn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=je(e),n=je(t),s||n)return e===t;if(s=z(e),n=z(t),s||n)return s&&n?Wr(e,t):!1;if(s=le(e),n=le(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!qs(e[i],t[i]))return!1}}return String(e)===String(t)}const qn=e=>!!(e&&e.__v_isRef===!0),m=e=>de(e)?e:e==null?"":z(e)||le(e)&&(e.toString===Un||!W(e.toString))?qn(e)?m(e.value):JSON.stringify(e,Jn,2):String(e),Jn=(e,t)=>qn(t)?Jn(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],r)=>(s[Js(n,r)+" =>"]=l,s),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Js(s))}:je(t)?Js(t):le(t)&&!z(t)&&!Hn(t)?String(t):t,Js=(e,t="")=>{var s;return je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let ke;class qr{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=ke,!t&&ke&&(this.index=(ke.scopes||(ke.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=ke;try{return ke=this,t()}finally{ke=s}}}on(){++this._on===1&&(this.prevScope=ke,ke=this)}off(){this._on>0&&--this._on===0&&(ke=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Jr(){return ke}let ie;const Gs=new WeakSet;class Gn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ke&&ke.active&&ke.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gs.has(this)&&(Gs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sl(this),Xn(this);const t=ie,s=Oe;ie=this,Oe=!0;try{return this.fn()}finally{Zn(this),ie=t,Oe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zs(t);this.deps=this.depsTail=void 0,sl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xs(this)&&this.run()}get dirty(){return Xs(this)}}let Qn=0,Bt,Ut;function Yn(e,t=!1){if(e.flags|=8,t){e.next=Ut,Ut=e;return}e.next=Bt,Bt=e}function Qs(){Qn++}function Ys(){if(--Qn>0)return;if(Ut){let t=Ut;for(Ut=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Bt;){let t=Bt;for(Bt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Xn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zn(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),Zs(n),Gr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function Xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(el(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function el(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ht)||(e.globalVersion=Ht,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xs(e))))return;e.flags|=2;const t=e.dep,s=ie,n=Oe;ie=e,Oe=!0;try{Xn(e);const l=e.fn(e._value);(t.version===0||at(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{ie=s,Oe=n,Zn(e),e.flags&=-3}}function Zs(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Zs(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Gr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Oe=!0;const tl=[];function Fe(){tl.push(Oe),Oe=!1}function Ne(){const e=tl.pop();Oe=e===void 0?!0:e}function sl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ie;ie=void 0;try{t()}finally{ie=s}}}let Ht=0;class Qr{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 en{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(!ie||!Oe||ie===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ie)s=this.activeLink=new Qr(ie,this),ie.deps?(s.prevDep=ie.depsTail,ie.depsTail.nextDep=s,ie.depsTail=s):ie.deps=ie.depsTail=s,nl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ie.depsTail,s.nextDep=void 0,ie.depsTail.nextDep=s,ie.depsTail=s,ie.deps===s&&(ie.deps=n)}return s}trigger(t){this.version++,Ht++,this.notify(t)}notify(t){Qs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ys()}}}function nl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)nl(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const tn=new WeakMap,gt=Symbol(""),sn=Symbol(""),Vt=Symbol("");function ve(e,t,s){if(Oe&&ie){let n=tn.get(e);n||tn.set(e,n=new Map);let l=n.get(s);l||(n.set(s,l=new en),l.map=n,l.key=s),l.track()}}function Ze(e,t,s,n,l,r){const i=tn.get(e);if(!i){Ht++;return}const a=u=>{u&&u.trigger()};if(Qs(),t==="clear")i.forEach(a);else{const u=z(e),h=u&&Ks(s);if(u&&s==="length"){const c=Number(n);i.forEach((v,_)=>{(_==="length"||_===Vt||!je(_)&&_>=c)&&a(v)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),h&&a(i.get(Vt)),t){case"add":u?h&&a(i.get("length")):(a(i.get(gt)),St(e)&&a(i.get(sn)));break;case"delete":u||(a(i.get(gt)),St(e)&&a(i.get(sn)));break;case"set":St(e)&&a(i.get(gt));break}}Ys()}function At(e){const t=te(e);return t===e?t:(ve(t,"iterate",Vt),Ae(e)?t:t.map(Re))}function ds(e){return ve(e=te(e),"iterate",Vt),e}function ut(e,t){return tt(e)?Mt(bt(e)?Re(t):t):Re(t)}const Yr={__proto__:null,[Symbol.iterator](){return nn(this,Symbol.iterator,e=>ut(this,e))},concat(...e){return At(this).concat(...e.map(t=>z(t)?At(t):t))},entries(){return nn(this,"entries",e=>(e[1]=ut(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>ut(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>ut(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>ut(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return ln(this,"includes",e)},indexOf(...e){return ln(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return ln(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Kt(this,"pop")},push(...e){return Kt(this,"push",e)},reduce(e,...t){return ll(this,"reduce",e,t)},reduceRight(e,...t){return ll(this,"reduceRight",e,t)},shift(){return Kt(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Kt(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return Kt(this,"unshift",e)},values(){return nn(this,"values",e=>ut(this,e))}};function nn(e,t,s){const n=ds(e),l=n[t]();return n!==e&&!Ae(e)&&(l._next=l.next,l.next=()=>{const r=l._next();return r.done||(r.value=s(r.value)),r}),l}const Xr=Array.prototype;function et(e,t,s,n,l,r){const i=ds(e),a=i!==e&&!Ae(e),u=i[t];if(u!==Xr[t]){const v=u.apply(e,r);return a?Re(v):v}let h=s;i!==e&&(a?h=function(v,_){return s.call(this,ut(e,v),_,e)}:s.length>2&&(h=function(v,_){return s.call(this,v,_,e)}));const c=u.call(i,h,n);return a&&l?l(c):c}function ll(e,t,s,n){const l=ds(e);let r=s;return l!==e&&(Ae(e)?s.length>3&&(r=function(i,a,u){return s.call(this,i,a,u,e)}):r=function(i,a,u){return s.call(this,i,ut(e,a),u,e)}),l[t](r,...n)}function ln(e,t,s){const n=te(e);ve(n,"iterate",Vt);const l=n[t](...s);return(l===-1||l===!1)&&un(s[0])?(s[0]=te(s[0]),n[t](...s)):l}function Kt(e,t,s=[]){Fe(),Qs();const n=te(e)[t].apply(e,s);return Ys(),Ne(),n}const Zr=Us("__proto__,__v_isRef,__isVue"),rl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(je));function eo(e){je(e)||(e=String(e));const t=te(this);return ve(t,"has",e),t.hasOwnProperty(e)}class ol{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const l=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(l?r?fl:dl:r?cl:ul).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=z(t);if(!l){let u;if(i&&(u=Yr[s]))return u;if(s==="hasOwnProperty")return eo}const a=Reflect.get(t,s,pe(t)?t:n);if((je(s)?rl.has(s):Zr(s))||(l||ve(t,"get",s),r))return a;if(pe(a)){const u=i&&Ks(s)?a:a.value;return l&&le(u)?an(u):u}return le(a)?l?an(a):on(a):a}}class il extends ol{constructor(t=!1){super(!1,t)}set(t,s,n,l){let r=t[s];const i=z(t)&&Ks(s);if(!this._isShallow){const h=tt(r);if(!Ae(n)&&!tt(n)&&(r=te(r),n=te(n)),!i&&pe(r)&&!pe(n))return h||(r.value=n),!0}const a=i?Number(s)<t.length:ne(t,s),u=Reflect.set(t,s,n,pe(t)?t:l);return t===te(l)&&(a?at(n,r)&&Ze(t,"set",s,n):Ze(t,"add",s,n)),u}deleteProperty(t,s){const n=ne(t,s);t[s];const l=Reflect.deleteProperty(t,s);return l&&n&&Ze(t,"delete",s,void 0),l}has(t,s){const n=Reflect.has(t,s);return(!je(s)||!rl.has(s))&&ve(t,"has",s),n}ownKeys(t){return ve(t,"iterate",z(t)?"length":gt),Reflect.ownKeys(t)}}class al extends ol{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const to=new il,so=new al,no=new il(!0),lo=new al(!0),rn=e=>e,fs=e=>Reflect.getPrototypeOf(e);function ro(e,t,s){return function(...n){const l=this.__v_raw,r=te(l),i=St(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,h=l[e](...n),c=s?rn:t?Mt:Re;return!t&&ve(r,"iterate",u?sn:gt),he(Object.create(h),{next(){const{value:v,done:_}=h.next();return _?{value:v,done:_}:{value:a?[c(v[0]),c(v[1])]:c(v),done:_}}})}}function hs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function oo(e,t){const s={get(l){const r=this.__v_raw,i=te(r),a=te(l);e||(at(l,a)&&ve(i,"get",l),ve(i,"get",a));const{has:u}=fs(i),h=t?rn:e?Mt:Re;if(u.call(i,l))return h(r.get(l));if(u.call(i,a))return h(r.get(a));r!==i&&r.get(l)},get size(){const l=this.__v_raw;return!e&&ve(te(l),"iterate",gt),l.size},has(l){const r=this.__v_raw,i=te(r),a=te(l);return e||(at(l,a)&&ve(i,"has",l),ve(i,"has",a)),l===a?r.has(l):r.has(l)||r.has(a)},forEach(l,r){const i=this,a=i.__v_raw,u=te(a),h=t?rn:e?Mt:Re;return!e&&ve(u,"iterate",gt),a.forEach((c,v)=>l.call(r,h(c),h(v),i))}};return he(s,e?{add:hs("add"),set:hs("set"),delete:hs("delete"),clear:hs("clear")}:{add(l){!t&&!Ae(l)&&!tt(l)&&(l=te(l));const r=te(this);return fs(r).has.call(r,l)||(r.add(l),Ze(r,"add",l,l)),this},set(l,r){!t&&!Ae(r)&&!tt(r)&&(r=te(r));const i=te(this),{has:a,get:u}=fs(i);let h=a.call(i,l);h||(l=te(l),h=a.call(i,l));const c=u.call(i,l);return i.set(l,r),h?at(r,c)&&Ze(i,"set",l,r):Ze(i,"add",l,r),this},delete(l){const r=te(this),{has:i,get:a}=fs(r);let u=i.call(r,l);u||(l=te(l),u=i.call(r,l)),a&&a.call(r,l);const h=r.delete(l);return u&&Ze(r,"delete",l,void 0),h},clear(){const l=te(this),r=l.size!==0,i=l.clear();return r&&Ze(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=ro(l,e,t)}),s}function ps(e,t){const s=oo(e,t);return(n,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(ne(s,l)&&l in n?s:n,l,r)}const io={get:ps(!1,!1)},ao={get:ps(!1,!0)},uo={get:ps(!0,!1)},co={get:ps(!0,!0)},ul=new WeakMap,cl=new WeakMap,dl=new WeakMap,fl=new WeakMap;function fo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ho(e){return e.__v_skip||!Object.isExtensible(e)?0:fo(Fr(e))}function on(e){return tt(e)?e:gs(e,!1,to,io,ul)}function po(e){return gs(e,!1,no,ao,cl)}function an(e){return gs(e,!0,so,uo,dl)}function $h(e){return gs(e,!0,lo,co,fl)}function gs(e,t,s,n,l){if(!le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=ho(e);if(r===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,r===2?n:s);return l.set(e,a),a}function bt(e){return tt(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Ae(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function go(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&Kn(e,"__v_skip",!0),e}const Re=e=>le(e)?on(e):e,Mt=e=>le(e)?an(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function J(e){return bo(e,!1)}function bo(e,t){return pe(e)?e:new vo(e,t)}class vo{constructor(t,s){this.dep=new en,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:te(t),this._value=s?t:Re(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ae(t)||tt(t);t=n?t:te(t),at(t,s)&&(this._rawValue=t,this._value=n?t:Re(t),this.dep.trigger())}}function L(e){return pe(e)?e.value:e}const mo={get:(e,t,s)=>t==="__v_raw"?e:L(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const l=e[t];return pe(l)&&!pe(s)?(l.value=s,!0):Reflect.set(e,t,s,n)}};function hl(e){return bt(e)?e:new Proxy(e,mo)}class yo{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new en(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ht-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return el(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _o(e,t,s=!1){let n,l;return W(e)?n=e:(n=e.get,l=e.set),new yo(n,l,s)}const bs={},vs=new WeakMap;let vt;function xo(e,t=!1,s=vt){if(s){let n=vs.get(s);n||vs.set(s,n=[]),n.push(e)}}function wo(e,t,s=oe){const{immediate:n,deep:l,once:r,scheduler:i,augmentJob:a,call:u}=s,h=M=>l?M:Ae(M)||l===!1||l===0?st(M,1):st(M);let c,v,_,y,I=!1,k=!1;if(pe(e)?(v=()=>e.value,I=Ae(e)):bt(e)?(v=()=>h(e),I=!0):z(e)?(k=!0,I=e.some(M=>bt(M)||Ae(M)),v=()=>e.map(M=>{if(pe(M))return M.value;if(bt(M))return h(M);if(W(M))return u?u(M,2):M()})):W(e)?t?v=u?()=>u(e,2):e:v=()=>{if(_){Fe();try{_()}finally{Ne()}}const M=vt;vt=c;try{return u?u(e,3,[y]):e(y)}finally{vt=M}}:v=De,t&&l){const M=v,x=l===!0?1/0:l;v=()=>st(M(),x)}const K=Jr(),C=()=>{c.stop(),K&&K.active&&Vs(K.effects,c)};if(r&&t){const M=t;t=(...x)=>{M(...x),C()}}let g=k?new Array(e.length).fill(bs):bs;const w=M=>{if(!(!(c.flags&1)||!c.dirty&&!M))if(t){const x=c.run();if(l||I||(k?x.some((T,j)=>at(T,g[j])):at(x,g))){_&&_();const T=vt;vt=c;try{const j=[x,g===bs?void 0:k&&g[0]===bs?[]:g,y];g=x,u?u(t,3,j):t(...j)}finally{vt=T}}}else c.run()};return a&&a(w),c=new Gn(v),c.scheduler=i?()=>i(w,!1):w,y=M=>xo(M,!1,c),_=c.onStop=()=>{const M=vs.get(c);if(M){if(u)u(M,4);else for(const x of M)x();vs.delete(c)}},t?n?w(!0):g=c.run():i?i(w.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function st(e,t=1/0,s){if(t<=0||!le(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,pe(e))st(e.value,t,s);else if(z(e))for(let n=0;n<e.length;n++)st(e[n],t,s);else if(Fn(e)||St(e))e.forEach(n=>{st(n,t,s)});else if(Hn(e)){for(const n in e)st(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&st(e[n],t,s)}return e}const zt=[];let cn=!1;function Ch(e,...t){if(cn)return;cn=!0,Fe();const s=zt.length?zt[zt.length-1].component:null,n=s&&s.appContext.config.warnHandler,l=ko();if(n)Pt(n,s,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),s&&s.proxy,l.map(({vnode:r})=>`at <${rr(s,r.type)}>`).join(`
|
|
1
|
+
(function(){"use strict";function Us(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const oe={},Tt=[],De=()=>{},jn=()=>!1,is=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hs=e=>e.startsWith("onUpdate:"),he=Object.assign,Vs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Fr=Object.prototype.hasOwnProperty,ne=(e,t)=>Fr.call(e,t),z=Array.isArray,St=e=>Ft(e)==="[object Map]",Fn=e=>Ft(e)==="[object Set]",Nn=e=>Ft(e)==="[object Date]",W=e=>typeof e=="function",de=e=>typeof e=="string",je=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",Bn=e=>(le(e)||W(e))&&W(e.then)&&W(e.catch),Un=Object.prototype.toString,Ft=e=>Un.call(e),Nr=e=>Ft(e).slice(8,-1),Hn=e=>Ft(e)==="[object Object]",Ks=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),as=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Br=/-\w/g,ot=as(e=>e.replace(Br,t=>t.slice(1).toUpperCase())),Ur=/\B([A-Z])/g,it=as(e=>e.replace(Ur,"-$1").toLowerCase()),Vn=as(e=>e.charAt(0).toUpperCase()+e.slice(1)),zs=as(e=>e?`on${Vn(e)}`:""),at=(e,t)=>!Object.is(e,t),us=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Kn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Ws=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zn;const cs=()=>zn||(zn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(z(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=de(n)?zr(n):Et(n);if(l)for(const r in l)t[r]=l[r]}return t}else if(de(e)||le(e))return e}const Hr=/;(?![^(]*\))/g,Vr=/:([^]+)/,Kr=/\/\*[^]*?\*\//g;function zr(e){const t={};return e.replace(Kr,"").split(Hr).forEach(s=>{if(s){const n=s.split(Vr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function V(e){let t="";if(de(e))t=e;else if(z(e))for(let s=0;s<e.length;s++){const n=V(e[s]);n&&(t+=n+" ")}else if(le(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Wr=Us("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Wn(e){return!!e||e===""}function qr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=qs(e[n],t[n]);return s}function qs(e,t){if(e===t)return!0;let s=Nn(e),n=Nn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=je(e),n=je(t),s||n)return e===t;if(s=z(e),n=z(t),s||n)return s&&n?qr(e,t):!1;if(s=le(e),n=le(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!qs(e[i],t[i]))return!1}}return String(e)===String(t)}const qn=e=>!!(e&&e.__v_isRef===!0),m=e=>de(e)?e:e==null?"":z(e)||le(e)&&(e.toString===Un||!W(e.toString))?qn(e)?m(e.value):JSON.stringify(e,Jn,2):String(e),Jn=(e,t)=>qn(t)?Jn(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],r)=>(s[Js(n,r)+" =>"]=l,s),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Js(s))}:je(t)?Js(t):le(t)&&!z(t)&&!Hn(t)?String(t):t,Js=(e,t="")=>{var s;return je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let ke;class Jr{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=ke,!t&&ke&&(this.index=(ke.scopes||(ke.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=ke;try{return ke=this,t()}finally{ke=s}}}on(){++this._on===1&&(this.prevScope=ke,ke=this)}off(){this._on>0&&--this._on===0&&(ke=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Gr(){return ke}let ie;const Gs=new WeakSet;class Gn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ke&&ke.active&&ke.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gs.has(this)&&(Gs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Yn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sl(this),Xn(this);const t=ie,s=Oe;ie=this,Oe=!0;try{return this.fn()}finally{Zn(this),ie=t,Oe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zs(t);this.deps=this.depsTail=void 0,sl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xs(this)&&this.run()}get dirty(){return Xs(this)}}let Qn=0,Bt,Ut;function Yn(e,t=!1){if(e.flags|=8,t){e.next=Ut,Ut=e;return}e.next=Bt,Bt=e}function Qs(){Qn++}function Ys(){if(--Qn>0)return;if(Ut){let t=Ut;for(Ut=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Bt;){let t=Bt;for(Bt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Xn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zn(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),Zs(n),Qr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function Xs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(el(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function el(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ht)||(e.globalVersion=Ht,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xs(e))))return;e.flags|=2;const t=e.dep,s=ie,n=Oe;ie=e,Oe=!0;try{Xn(e);const l=e.fn(e._value);(t.version===0||at(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{ie=s,Oe=n,Zn(e),e.flags&=-3}}function Zs(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Zs(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Qr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Oe=!0;const tl=[];function Fe(){tl.push(Oe),Oe=!1}function Ne(){const e=tl.pop();Oe=e===void 0?!0:e}function sl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ie;ie=void 0;try{t()}finally{ie=s}}}let Ht=0;class Yr{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 en{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(!ie||!Oe||ie===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ie)s=this.activeLink=new Yr(ie,this),ie.deps?(s.prevDep=ie.depsTail,ie.depsTail.nextDep=s,ie.depsTail=s):ie.deps=ie.depsTail=s,nl(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ie.depsTail,s.nextDep=void 0,ie.depsTail.nextDep=s,ie.depsTail=s,ie.deps===s&&(ie.deps=n)}return s}trigger(t){this.version++,Ht++,this.notify(t)}notify(t){Qs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ys()}}}function nl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)nl(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const tn=new WeakMap,gt=Symbol(""),sn=Symbol(""),Vt=Symbol("");function ve(e,t,s){if(Oe&&ie){let n=tn.get(e);n||tn.set(e,n=new Map);let l=n.get(s);l||(n.set(s,l=new en),l.map=n,l.key=s),l.track()}}function Ze(e,t,s,n,l,r){const i=tn.get(e);if(!i){Ht++;return}const a=u=>{u&&u.trigger()};if(Qs(),t==="clear")i.forEach(a);else{const u=z(e),h=u&&Ks(s);if(u&&s==="length"){const c=Number(n);i.forEach((x,_)=>{(_==="length"||_===Vt||!je(_)&&_>=c)&&a(x)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),h&&a(i.get(Vt)),t){case"add":u?h&&a(i.get("length")):(a(i.get(gt)),St(e)&&a(i.get(sn)));break;case"delete":u||(a(i.get(gt)),St(e)&&a(i.get(sn)));break;case"set":St(e)&&a(i.get(gt));break}}Ys()}function At(e){const t=te(e);return t===e?t:(ve(t,"iterate",Vt),Ae(e)?t:t.map(Re))}function ds(e){return ve(e=te(e),"iterate",Vt),e}function ut(e,t){return tt(e)?Mt(bt(e)?Re(t):t):Re(t)}const Xr={__proto__:null,[Symbol.iterator](){return nn(this,Symbol.iterator,e=>ut(this,e))},concat(...e){return At(this).concat(...e.map(t=>z(t)?At(t):t))},entries(){return nn(this,"entries",e=>(e[1]=ut(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>ut(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>ut(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>ut(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return ln(this,"includes",e)},indexOf(...e){return ln(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return ln(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Kt(this,"pop")},push(...e){return Kt(this,"push",e)},reduce(e,...t){return ll(this,"reduce",e,t)},reduceRight(e,...t){return ll(this,"reduceRight",e,t)},shift(){return Kt(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Kt(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return Kt(this,"unshift",e)},values(){return nn(this,"values",e=>ut(this,e))}};function nn(e,t,s){const n=ds(e),l=n[t]();return n!==e&&!Ae(e)&&(l._next=l.next,l.next=()=>{const r=l._next();return r.done||(r.value=s(r.value)),r}),l}const Zr=Array.prototype;function et(e,t,s,n,l,r){const i=ds(e),a=i!==e&&!Ae(e),u=i[t];if(u!==Zr[t]){const x=u.apply(e,r);return a?Re(x):x}let h=s;i!==e&&(a?h=function(x,_){return s.call(this,ut(e,x),_,e)}:s.length>2&&(h=function(x,_){return s.call(this,x,_,e)}));const c=u.call(i,h,n);return a&&l?l(c):c}function ll(e,t,s,n){const l=ds(e);let r=s;return l!==e&&(Ae(e)?s.length>3&&(r=function(i,a,u){return s.call(this,i,a,u,e)}):r=function(i,a,u){return s.call(this,i,ut(e,a),u,e)}),l[t](r,...n)}function ln(e,t,s){const n=te(e);ve(n,"iterate",Vt);const l=n[t](...s);return(l===-1||l===!1)&&un(s[0])?(s[0]=te(s[0]),n[t](...s)):l}function Kt(e,t,s=[]){Fe(),Qs();const n=te(e)[t].apply(e,s);return Ys(),Ne(),n}const eo=Us("__proto__,__v_isRef,__isVue"),rl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(je));function to(e){je(e)||(e=String(e));const t=te(this);return ve(t,"has",e),t.hasOwnProperty(e)}class ol{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const l=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(l?r?fl:dl:r?cl:ul).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=z(t);if(!l){let u;if(i&&(u=Xr[s]))return u;if(s==="hasOwnProperty")return to}const a=Reflect.get(t,s,pe(t)?t:n);if((je(s)?rl.has(s):eo(s))||(l||ve(t,"get",s),r))return a;if(pe(a)){const u=i&&Ks(s)?a:a.value;return l&&le(u)?an(u):u}return le(a)?l?an(a):on(a):a}}class il extends ol{constructor(t=!1){super(!1,t)}set(t,s,n,l){let r=t[s];const i=z(t)&&Ks(s);if(!this._isShallow){const h=tt(r);if(!Ae(n)&&!tt(n)&&(r=te(r),n=te(n)),!i&&pe(r)&&!pe(n))return h||(r.value=n),!0}const a=i?Number(s)<t.length:ne(t,s),u=Reflect.set(t,s,n,pe(t)?t:l);return t===te(l)&&(a?at(n,r)&&Ze(t,"set",s,n):Ze(t,"add",s,n)),u}deleteProperty(t,s){const n=ne(t,s);t[s];const l=Reflect.deleteProperty(t,s);return l&&n&&Ze(t,"delete",s,void 0),l}has(t,s){const n=Reflect.has(t,s);return(!je(s)||!rl.has(s))&&ve(t,"has",s),n}ownKeys(t){return ve(t,"iterate",z(t)?"length":gt),Reflect.ownKeys(t)}}class al extends ol{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const so=new il,no=new al,lo=new il(!0),ro=new al(!0),rn=e=>e,fs=e=>Reflect.getPrototypeOf(e);function oo(e,t,s){return function(...n){const l=this.__v_raw,r=te(l),i=St(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,h=l[e](...n),c=s?rn:t?Mt:Re;return!t&&ve(r,"iterate",u?sn:gt),he(Object.create(h),{next(){const{value:x,done:_}=h.next();return _?{value:x,done:_}:{value:a?[c(x[0]),c(x[1])]:c(x),done:_}}})}}function hs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function io(e,t){const s={get(l){const r=this.__v_raw,i=te(r),a=te(l);e||(at(l,a)&&ve(i,"get",l),ve(i,"get",a));const{has:u}=fs(i),h=t?rn:e?Mt:Re;if(u.call(i,l))return h(r.get(l));if(u.call(i,a))return h(r.get(a));r!==i&&r.get(l)},get size(){const l=this.__v_raw;return!e&&ve(te(l),"iterate",gt),l.size},has(l){const r=this.__v_raw,i=te(r),a=te(l);return e||(at(l,a)&&ve(i,"has",l),ve(i,"has",a)),l===a?r.has(l):r.has(l)||r.has(a)},forEach(l,r){const i=this,a=i.__v_raw,u=te(a),h=t?rn:e?Mt:Re;return!e&&ve(u,"iterate",gt),a.forEach((c,x)=>l.call(r,h(c),h(x),i))}};return he(s,e?{add:hs("add"),set:hs("set"),delete:hs("delete"),clear:hs("clear")}:{add(l){!t&&!Ae(l)&&!tt(l)&&(l=te(l));const r=te(this);return fs(r).has.call(r,l)||(r.add(l),Ze(r,"add",l,l)),this},set(l,r){!t&&!Ae(r)&&!tt(r)&&(r=te(r));const i=te(this),{has:a,get:u}=fs(i);let h=a.call(i,l);h||(l=te(l),h=a.call(i,l));const c=u.call(i,l);return i.set(l,r),h?at(r,c)&&Ze(i,"set",l,r):Ze(i,"add",l,r),this},delete(l){const r=te(this),{has:i,get:a}=fs(r);let u=i.call(r,l);u||(l=te(l),u=i.call(r,l)),a&&a.call(r,l);const h=r.delete(l);return u&&Ze(r,"delete",l,void 0),h},clear(){const l=te(this),r=l.size!==0,i=l.clear();return r&&Ze(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=oo(l,e,t)}),s}function ps(e,t){const s=io(e,t);return(n,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(ne(s,l)&&l in n?s:n,l,r)}const ao={get:ps(!1,!1)},uo={get:ps(!1,!0)},co={get:ps(!0,!1)},fo={get:ps(!0,!0)},ul=new WeakMap,cl=new WeakMap,dl=new WeakMap,fl=new WeakMap;function ho(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function po(e){return e.__v_skip||!Object.isExtensible(e)?0:ho(Nr(e))}function on(e){return tt(e)?e:gs(e,!1,so,ao,ul)}function go(e){return gs(e,!1,lo,uo,cl)}function an(e){return gs(e,!0,no,co,dl)}function Th(e){return gs(e,!0,ro,fo,fl)}function gs(e,t,s,n,l){if(!le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=po(e);if(r===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,r===2?n:s);return l.set(e,a),a}function bt(e){return tt(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Ae(e){return!!(e&&e.__v_isShallow)}function un(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function bo(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&Kn(e,"__v_skip",!0),e}const Re=e=>le(e)?on(e):e,Mt=e=>le(e)?an(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function q(e){return vo(e,!1)}function vo(e,t){return pe(e)?e:new mo(e,t)}class mo{constructor(t,s){this.dep=new en,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:te(t),this._value=s?t:Re(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ae(t)||tt(t);t=n?t:te(t),at(t,s)&&(this._rawValue=t,this._value=n?t:Re(t),this.dep.trigger())}}function O(e){return pe(e)?e.value:e}const yo={get:(e,t,s)=>t==="__v_raw"?e:O(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const l=e[t];return pe(l)&&!pe(s)?(l.value=s,!0):Reflect.set(e,t,s,n)}};function hl(e){return bt(e)?e:new Proxy(e,yo)}class _o{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new en(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ht-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ie!==this)return Yn(this,!0),!0}get value(){const t=this.dep.track();return el(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xo(e,t,s=!1){let n,l;return W(e)?n=e:(n=e.get,l=e.set),new _o(n,l,s)}const bs={},vs=new WeakMap;let vt;function wo(e,t=!1,s=vt){if(s){let n=vs.get(s);n||vs.set(s,n=[]),n.push(e)}}function ko(e,t,s=oe){const{immediate:n,deep:l,once:r,scheduler:i,augmentJob:a,call:u}=s,h=P=>l?P:Ae(P)||l===!1||l===0?st(P,1):st(P);let c,x,_,g,S=!1,w=!1;if(pe(e)?(x=()=>e.value,S=Ae(e)):bt(e)?(x=()=>h(e),S=!0):z(e)?(w=!0,S=e.some(P=>bt(P)||Ae(P)),x=()=>e.map(P=>{if(pe(P))return P.value;if(bt(P))return h(P);if(W(P))return u?u(P,2):P()})):W(e)?t?x=u?()=>u(e,2):e:x=()=>{if(_){Fe();try{_()}finally{Ne()}}const P=vt;vt=c;try{return u?u(e,3,[g]):e(g)}finally{vt=P}}:x=De,t&&l){const P=x,y=l===!0?1/0:l;x=()=>st(P(),y)}const K=Gr(),C=()=>{c.stop(),K&&K.active&&Vs(K.effects,c)};if(r&&t){const P=t;t=(...y)=>{P(...y),C()}}let b=w?new Array(e.length).fill(bs):bs;const k=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(t){const y=c.run();if(l||S||(w?y.some((T,j)=>at(T,b[j])):at(y,b))){_&&_();const T=vt;vt=c;try{const j=[y,b===bs?void 0:w&&b[0]===bs?[]:b,g];b=y,u?u(t,3,j):t(...j)}finally{vt=T}}}else c.run()};return a&&a(k),c=new Gn(x),c.scheduler=i?()=>i(k,!1):k,g=P=>wo(P,!1,c),_=c.onStop=()=>{const P=vs.get(c);if(P){if(u)u(P,4);else for(const y of P)y();vs.delete(c)}},t?n?k(!0):b=c.run():i?i(k.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function st(e,t=1/0,s){if(t<=0||!le(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,pe(e))st(e.value,t,s);else if(z(e))for(let n=0;n<e.length;n++)st(e[n],t,s);else if(Fn(e)||St(e))e.forEach(n=>{st(n,t,s)});else if(Hn(e)){for(const n in e)st(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&st(e[n],t,s)}return e}const zt=[];let cn=!1;function Sh(e,...t){if(cn)return;cn=!0,Fe();const s=zt.length?zt[zt.length-1].component:null,n=s&&s.appContext.config.warnHandler,l=$o();if(n)Pt(n,s,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),s&&s.proxy,l.map(({vnode:r})=>`at <${rr(s,r.type)}>`).join(`
|
|
2
2
|
`),l]);else{const r=[`[Vue warn]: ${e}`,...t];l.length&&r.push(`
|
|
3
|
-
|
|
4
|
-
`],...Co(s))}),t}function Co({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${rr(e.component,e.type,n)}`,r=">"+s;return e.props?[l,...To(e.props),r]:[l+r]}function To(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...pl(n,e[n]))}),s.length>3&&t.push(" ..."),t}function pl(e,t,s){return de(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:pe(t)?(t=pl(e,te(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):W(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=te(t),s?t:[`${e}=`,t])}function Pt(e,t,s,n){try{return n?e(...n):e()}catch(l){Wt(l,t,s)}}function Be(e,t,s,n){if(W(e)){const l=Pt(e,t,s,n);return l&&Bn(l)&&l.catch(r=>{Wt(r,t,s)}),l}if(z(e)){const l=[];for(let r=0;r<e.length;r++)l.push(Be(e[r],t,s,n));return l}}function Wt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||oe;if(t){let a=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const c=a.ec;if(c){for(let v=0;v<c.length;v++)if(c[v](e,u,h)===!1)return}a=a.parent}if(r){Fe(),Pt(r,null,10,[e,u,h]),Ne();return}}So(e,s,l,n,i)}function So(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ye=[];let Ue=-1;const Lt=[];let ct=null,Ot=0;const gl=Promise.resolve();let ms=null;function bl(e){const t=ms||gl;return e?t.then(this?e.bind(this):e):t}function Eo(e){let t=Ue+1,s=ye.length;for(;t<s;){const n=t+s>>>1,l=ye[n],r=qt(l);r<e||r===e&&l.flags&2?t=n+1:s=n}return t}function dn(e){if(!(e.flags&1)){const t=qt(e),s=ye[ye.length-1];!s||!(e.flags&2)&&t>=qt(s)?ye.push(e):ye.splice(Eo(t),0,e),e.flags|=1,vl()}}function vl(){ms||(ms=gl.then(_l))}function Ao(e){z(e)?Lt.push(...e):ct&&e.id===-1?ct.splice(Ot+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1),vl()}function ml(e,t,s=Ue+1){for(;s<ye.length;s++){const n=ye[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ye.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function yl(e){if(Lt.length){const t=[...new Set(Lt)].sort((s,n)=>qt(s)-qt(n));if(Lt.length=0,ct){ct.push(...t);return}for(ct=t,Ot=0;Ot<ct.length;Ot++){const s=ct[Ot];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ct=null,Ot=0}}const qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _l(e){try{for(Ue=0;Ue<ye.length;Ue++){const t=ye[Ue];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ue<ye.length;Ue++){const t=ye[Ue];t&&(t.flags&=-2)}Ue=-1,ye.length=0,yl(),ms=null,(ye.length||Lt.length)&&_l()}}let Me=null,xl=null;function ys(e){const t=Me;return Me=e,xl=e&&e.type.__scopeId||null,t}function Mo(e,t=Me,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&As(-1);const r=ys(t);let i;try{i=e(...l)}finally{ys(r),n._d&&As(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function He(e,t){if(Me===null)return e;const s=Os(Me),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[r,i,a,u=oe]=t[l];r&&(W(r)&&(r={mounted:r,updated:r}),r.deep&&st(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function mt(e,t,s,n){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(Fe(),Be(u,s,8,[e.el,a,e,t]),Ne())}}function Po(e,t){if(me){let s=me.provides;const n=me.parent&&me.parent.provides;n===s&&(s=me.provides=Object.create(n)),s[e]=t}}function _s(e,t,s=!1){const n=Ai();if(n||Rt){let l=Rt?Rt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&W(t)?t.call(n&&n.proxy):t}}const Lo=Symbol.for("v-scx"),Oo=()=>_s(Lo);function dt(e,t,s){return wl(e,t,s)}function wl(e,t,s=oe){const{immediate:n,deep:l,flush:r,once:i}=s,a=he({},s),u=t&&n||!t&&r!=="post";let h;if(Dt){if(r==="sync"){const y=Oo();h=y.__watcherHandles||(y.__watcherHandles=[])}else if(!u){const y=()=>{};return y.stop=De,y.resume=De,y.pause=De,y}}const c=me;a.call=(y,I,k)=>Be(y,c,I,k);let v=!1;r==="post"?a.scheduler=y=>{$e(y,c&&c.suspense)}:r!=="sync"&&(v=!0,a.scheduler=(y,I)=>{I?y():dn(y)}),a.augmentJob=y=>{t&&(y.flags|=4),v&&(y.flags|=2,c&&(y.id=c.uid,y.i=c))};const _=wo(e,t,a);return Dt&&(h?h.push(_):u&&_()),_}function Ro(e,t,s){const n=this.proxy,l=de(e)?e.includes(".")?kl(n,e):()=>n[e]:e.bind(n,n);let r;W(t)?r=t:(r=t.handler,s=t);const i=ts(this),a=wl(l,r.bind(n),s);return i(),a}function kl(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Io=Symbol("_vte"),Do=e=>e.__isTeleport,jo=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 _e(e,t){return W(e)?he({name:e.name},t,{setup:e}):e}function hn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $l(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const xs=new WeakMap;function Jt(e,t,s,n,l=!1){if(z(e)){e.forEach((k,K)=>Jt(k,t&&(z(t)?t[K]:t),s,n,l));return}if(Gt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Jt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Os(n.component):n.el,i=l?null:r,{i:a,r:u}=e,h=t&&t.r,c=a.refs===oe?a.refs={}:a.refs,v=a.setupState,_=te(v),y=v===oe?jn:k=>$l(c,k)?!1:ne(_,k),I=(k,K)=>!(K&&$l(c,K));if(h!=null&&h!==u){if(Cl(t),de(h))c[h]=null,y(h)&&(v[h]=null);else if(pe(h)){const k=t;I(h,k.k)&&(h.value=null),k.k&&(c[k.k]=null)}}if(W(u))Pt(u,a,12,[i,c]);else{const k=de(u),K=pe(u);if(k||K){const C=()=>{if(e.f){const g=k?y(u)?v[u]:c[u]:I()||!e.k?u.value:c[e.k];if(l)z(g)&&Vs(g,r);else if(z(g))g.includes(r)||g.push(r);else if(k)c[u]=[r],y(u)&&(v[u]=c[u]);else{const w=[r];I(u,e.k)&&(u.value=w),e.k&&(c[e.k]=w)}}else k?(c[u]=i,y(u)&&(v[u]=i)):K&&(I(u,e.k)&&(u.value=i),e.k&&(c[e.k]=i))};if(i){const g=()=>{C(),xs.delete(e)};g.id=-1,xs.set(e,g),$e(g,s)}else Cl(e),C()}}}function Cl(e){const t=xs.get(e);t&&(t.flags|=8,xs.delete(e))}const Tl=e=>e.nodeType===8;cs().requestIdleCallback,cs().cancelIdleCallback;function Fo(e,t){if(Tl(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Tl(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Gt=e=>!!e.type.__asyncLoader;function Ie(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:r,timeout:i,suspensible:a=!0,onError:u}=e;let h=null,c,v=0;const _=()=>(v++,h=null,y()),y=()=>{let I;return h||(I=h=t().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),u)return new Promise((K,C)=>{u(k,()=>K(_()),()=>C(k),v+1)});throw k}).then(k=>I!==h&&h?h:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),c=k,k)))};return _e({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(I,k,K){let C=!1;(k.bu||(k.bu=[])).push(()=>C=!0);const g=()=>{C||K()},w=r?()=>{const M=r(g,x=>Fo(I,x));M&&(k.bum||(k.bum=[])).push(M)}:g;c?w():y().then(()=>!k.isUnmounted&&w())},get __asyncResolved(){return c},setup(){const I=me;if(hn(I),c)return()=>ws(c,I);const k=w=>{h=null,Wt(w,I,13,!n)};if(a&&I.suspense||Dt)return y().then(w=>()=>ws(w,I)).catch(w=>(k(w),()=>n?fe(n,{error:w}):null));const K=J(!1),C=J(),g=J(!!l);return l&&setTimeout(()=>{g.value=!1},l),i!=null&&setTimeout(()=>{if(!K.value&&!C.value){const w=new Error(`Async component timed out after ${i}ms.`);k(w),C.value=w}},i),y().then(()=>{K.value=!0,I.parent&&pn(I.parent.vnode)&&I.parent.update()}).catch(w=>{k(w),C.value=w}),()=>{if(K.value&&c)return ws(c,I);if(C.value&&n)return fe(n,{error:C.value});if(s&&!g.value)return ws(s,I)}}})}function ws(e,t){const{ref:s,props:n,children:l,ce:r}=t.vnode,i=fe(e,n,l);return i.ref=s,i.ce=r,delete t.vnode.ce,i}const pn=e=>e.type.__isKeepAlive;function No(e,t){Sl(e,"a",t)}function Bo(e,t){Sl(e,"da",t)}function Sl(e,t,s=me){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(ks(t,n,s),s){let l=s.parent;for(;l&&l.parent;)pn(l.parent.vnode)&&Uo(n,t,s,l),l=l.parent}}function Uo(e,t,s,n){const l=ks(t,e,n,!0);Cs(()=>{Vs(n[t],l)},s)}function ks(e,t,s=me,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Fe();const a=ts(s),u=Be(t,s,e,i);return a(),Ne(),u});return n?l.unshift(r):l.push(r),r}}const nt=e=>(t,s=me)=>{(!Dt||e==="sp")&&ks(e,(...n)=>t(...n),s)},Ho=nt("bm"),yt=nt("m"),Vo=nt("bu"),Ko=nt("u"),$s=nt("bum"),Cs=nt("um"),zo=nt("sp"),Wo=nt("rtg"),qo=nt("rtc");function Jo(e,t=me){ks("ec",e,t)}const Go=Symbol.for("v-ndc");function X(e,t,s,n){let l;const r=s,i=z(e);if(i||de(e)){const a=i&&bt(e);let u=!1,h=!1;a&&(u=!Ae(e),h=tt(e),e=ds(e)),l=new Array(e.length);for(let c=0,v=e.length;c<v;c++)l[c]=t(u?h?Mt(Re(e[c])):Re(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,r)}else if(le(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,h=a.length;u<h;u++){const c=a[u];l[u]=t(e[c],c,u,r)}}else l=[];return l}const gn=e=>e?sr(e)?Os(e):gn(e.parent):null,Qt=he(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=>gn(e.parent),$root:e=>gn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Pl(e),$forceUpdate:e=>e.f||(e.f=()=>{dn(e.update)}),$nextTick:e=>e.n||(e.n=bl.bind(e.proxy)),$watch:e=>Ro.bind(e)}),bn=(e,t)=>e!==oe&&!e.__isScriptSetup&&ne(e,t),Qo={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(bn(n,t))return i[t]=1,n[t];if(l!==oe&&ne(l,t))return i[t]=2,l[t];if(ne(r,t))return i[t]=3,r[t];if(s!==oe&&ne(s,t))return i[t]=4,s[t];vn&&(i[t]=0)}}const h=Qt[t];let c,v;if(h)return t==="$attrs"&&ve(e.attrs,"get",""),h(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(s!==oe&&ne(s,t))return i[t]=4,s[t];if(v=u.config.globalProperties,ne(v,t))return v[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return bn(l,t)?(l[t]=s,!0):n!==oe&&ne(n,t)?(n[t]=s,!0):ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:r,type:i}},a){let u;return!!(s[a]||e!==oe&&a[0]!=="$"&&ne(e,a)||bn(t,a)||ne(r,a)||ne(n,a)||ne(Qt,a)||ne(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ne(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function El(e){return z(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let vn=!0;function Yo(e){const t=Pl(e),s=e.proxy,n=e.ctx;vn=!1,t.beforeCreate&&Al(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:a,provide:u,inject:h,created:c,beforeMount:v,mounted:_,beforeUpdate:y,updated:I,activated:k,deactivated:K,beforeDestroy:C,beforeUnmount:g,destroyed:w,unmounted:M,render:x,renderTracked:T,renderTriggered:j,errorCaptured:B,serverPrefetch:Y,expose:ce,inheritAttrs:Le,components:Je,directives:kt,filters:$t}=t;if(h&&Xo(h,n,null),i)for(const Q in i){const ee=i[Q];W(ee)&&(n[Q]=ee.bind(s))}if(l){const Q=l.call(s,s);le(Q)&&(e.data=on(Q))}if(vn=!0,r)for(const Q in r){const ee=r[Q],be=W(ee)?ee.bind(s,s):W(ee.get)?ee.get.bind(s,s):De,ns=!W(ee)&&W(ee.set)?ee.set.bind(s):De,Ct=G({get:be,set:ns});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>Ct.value,set:Ge=>Ct.value=Ge})}if(a)for(const Q in a)Ml(a[Q],n,s,Q);if(u){const Q=W(u)?u.call(s):u;Reflect.ownKeys(Q).forEach(ee=>{Po(ee,Q[ee])})}c&&Al(c,e,"c");function ge(Q,ee){z(ee)?ee.forEach(be=>Q(be.bind(s))):ee&&Q(ee.bind(s))}if(ge(Ho,v),ge(yt,_),ge(Vo,y),ge(Ko,I),ge(No,k),ge(Bo,K),ge(Jo,B),ge(qo,T),ge(Wo,j),ge($s,g),ge(Cs,M),ge(zo,Y),z(ce))if(ce.length){const Q=e.exposed||(e.exposed={});ce.forEach(ee=>{Object.defineProperty(Q,ee,{get:()=>s[ee],set:be=>s[ee]=be,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===De&&(e.render=x),Le!=null&&(e.inheritAttrs=Le),Je&&(e.components=Je),kt&&(e.directives=kt),Y&&hn(e)}function Xo(e,t,s=De){z(e)&&(e=mn(e));for(const n in e){const l=e[n];let r;le(l)?"default"in l?r=_s(l.from||n,l.default,!0):r=_s(l.from||n):r=_s(l),pe(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Al(e,t,s){Be(z(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ml(e,t,s,n){let l=n.includes(".")?kl(s,n):()=>s[n];if(de(e)){const r=t[e];W(r)&&dt(l,r)}else if(W(e))dt(l,e.bind(s));else if(le(e))if(z(e))e.forEach(r=>Ml(r,t,s,n));else{const r=W(e.handler)?e.handler.bind(s):t[e.handler];W(r)&&dt(l,r,e)}}function Pl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(h=>Ts(u,h,i,!0)),Ts(u,t,i)),le(t)&&r.set(t,u),u}function Ts(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Ts(e,r,s,!0),l&&l.forEach(i=>Ts(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=Zo[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Zo={data:Ll,props:Ol,emits:Ol,methods:Yt,computed:Yt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Yt,directives:Yt,watch:ti,provide:Ll,inject:ei};function Ll(e,t){return t?e?function(){return he(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function ei(e,t){return Yt(mn(e),mn(t))}function mn(e){if(z(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Yt(e,t){return e?he(Object.create(null),e,t):t}function Ol(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:he(Object.create(null),El(e),El(t??{})):t}function ti(e,t){if(!e)return t;if(!t)return e;const s=he(Object.create(null),e);for(const n in t)s[n]=xe(e[n],t[n]);return s}function Rl(){return{app:null,config:{isNativeTag:jn,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 si=0;function ni(e,t){return function(n,l=null){W(n)||(n=he({},n)),l!=null&&!le(l)&&(l=null);const r=Rl(),i=new WeakSet,a=[];let u=!1;const h=r.app={_uid:si++,_component:n,_props:l,_container:null,_context:r,_instance:null,version:Ni,get config(){return r.config},set config(c){},use(c,...v){return i.has(c)||(c&&W(c.install)?(i.add(c),c.install(h,...v)):W(c)&&(i.add(c),c(h,...v))),h},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),h},component(c,v){return v?(r.components[c]=v,h):r.components[c]},directive(c,v){return v?(r.directives[c]=v,h):r.directives[c]},mount(c,v,_){if(!u){const y=h._ceVNode||fe(n,l);return y.appContext=r,_===!0?_="svg":_===!1&&(_=void 0),e(y,c,_),u=!0,h._container=c,c.__vue_app__=h,Os(y.component)}},onUnmount(c){a.push(c)},unmount(){u&&(Be(a,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(c,v){return r.provides[c]=v,h},runWithContext(c){const v=Rt;Rt=h;try{return c()}finally{Rt=v}}};return h}}let Rt=null;const li=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ot(t)}Modifiers`]||e[`${it(t)}Modifiers`];function ri(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||oe;let l=s;const r=t.startsWith("update:"),i=r&&li(n,t.slice(7));i&&(i.trim&&(l=s.map(c=>de(c)?c.trim():c)),i.number&&(l=s.map(Ws)));let a,u=n[a=zs(t)]||n[a=zs(ot(t))];!u&&r&&(u=n[a=zs(it(t))]),u&&Be(u,e,6,l);const h=n[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Be(h,e,6,l)}}const oi=new WeakMap;function Il(e,t,s=!1){const n=s?oi:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},a=!1;if(!W(e)){const u=h=>{const c=Il(h,t,!0);c&&(a=!0,he(i,c))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(le(e)&&n.set(e,null),null):(z(r)?r.forEach(u=>i[u]=null):he(i,r),le(e)&&n.set(e,i),i)}function Ss(e,t){return!e||!is(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,it(t))||ne(e,t))}function Th(){}function Dl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:a,emit:u,render:h,renderCache:c,props:v,data:_,setupState:y,ctx:I,inheritAttrs:k}=e,K=ys(e);let C,g;try{if(s.shapeFlag&4){const M=l||n,x=M;C=Ve(h.call(x,M,c,v,y,_,I)),g=a}else{const M=t;C=Ve(M.length>1?M(v,{attrs:a,slots:i,emit:u}):M(v,null)),g=t.props?a:ii(a)}}catch(M){Xt.length=0,Wt(M,e,1),C=fe(ft)}let w=C;if(g&&k!==!1){const M=Object.keys(g),{shapeFlag:x}=w;M.length&&x&7&&(r&&M.some(Hs)&&(g=ai(g,r)),w=It(w,g,!1,!0))}return s.dirs&&(w=It(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(s.dirs):s.dirs),s.transition&&fn(w,s.transition),C=w,ys(K),C}const ii=e=>{let t;for(const s in e)(s==="class"||s==="style"||is(s))&&((t||(t={}))[s]=e[s]);return t},ai=(e,t)=>{const s={};for(const n in e)(!Hs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function ui(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:a,patchFlag:u}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?jl(n,i,h):!!i;if(u&8){const c=t.dynamicProps;for(let v=0;v<c.length;v++){const _=c[v];if(Fl(i,n,_)&&!Ss(h,_))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?jl(n,i,h):!0:!!i;return!1}function jl(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let l=0;l<n.length;l++){const r=n[l];if(Fl(t,e,r)&&!Ss(s,r))return!0}return!1}function Fl(e,t,s){const n=e[s],l=t[s];return s==="style"&&le(n)&&le(l)?!qs(n,l):n!==l}function ci({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Nl={},Bl=()=>Object.create(Nl),Ul=e=>Object.getPrototypeOf(e)===Nl;function di(e,t,s,n=!1){const l={},r=Bl();e.propsDefaults=Object.create(null),Hl(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:po(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function fi(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,a=te(l),[u]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let v=0;v<c.length;v++){let _=c[v];if(Ss(e.emitsOptions,_))continue;const y=t[_];if(u)if(ne(r,_))y!==r[_]&&(r[_]=y,h=!0);else{const I=ot(_);l[I]=yn(u,a,I,y,e,!1)}else y!==r[_]&&(r[_]=y,h=!0)}}}else{Hl(e,t,l,r)&&(h=!0);let c;for(const v in a)(!t||!ne(t,v)&&((c=it(v))===v||!ne(t,c)))&&(u?s&&(s[v]!==void 0||s[c]!==void 0)&&(l[v]=yn(u,a,v,void 0,e,!0)):delete l[v]);if(r!==a)for(const v in r)(!t||!ne(t,v))&&(delete r[v],h=!0)}h&&Ze(e.attrs,"set","")}function Hl(e,t,s,n){const[l,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Nt(u))continue;const h=t[u];let c;l&&ne(l,c=ot(u))?!r||!r.includes(c)?s[c]=h:(a||(a={}))[c]=h:Ss(e.emitsOptions,u)||(!(u in n)||h!==n[u])&&(n[u]=h,i=!0)}if(r){const u=te(s),h=a||oe;for(let c=0;c<r.length;c++){const v=r[c];s[v]=yn(l,u,v,h[v],e,!ne(h,v))}}return i}function yn(e,t,s,n,l,r){const i=e[s];if(i!=null){const a=ne(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&W(u)){const{propsDefaults:h}=l;if(s in h)n=h[s];else{const c=ts(l);n=h[s]=u.call(null,t),c()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(r&&!a?n=!1:i[1]&&(n===""||n===it(s))&&(n=!0))}return n}const hi=new WeakMap;function Vl(e,t,s=!1){const n=s?hi:t.propsCache,l=n.get(e);if(l)return l;const r=e.props,i={},a=[];let u=!1;if(!W(e)){const c=v=>{u=!0;const[_,y]=Vl(v,t,!0);he(i,_),y&&a.push(...y)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!u)return le(e)&&n.set(e,Tt),Tt;if(z(r))for(let c=0;c<r.length;c++){const v=ot(r[c]);Kl(v)&&(i[v]=oe)}else if(r)for(const c in r){const v=ot(c);if(Kl(v)){const _=r[c],y=i[v]=z(_)||W(_)?{type:_}:he({},_),I=y.type;let k=!1,K=!0;if(z(I))for(let C=0;C<I.length;++C){const g=I[C],w=W(g)&&g.name;if(w==="Boolean"){k=!0;break}else w==="String"&&(K=!1)}else k=W(I)&&I.name==="Boolean";y[0]=k,y[1]=K,(k||ne(y,"default"))&&a.push(v)}}const h=[i,a];return le(e)&&n.set(e,h),h}function Kl(e){return e[0]!=="$"&&!Nt(e)}const _n=e=>e==="_"||e==="_ctx"||e==="$stable",xn=e=>z(e)?e.map(Ve):[Ve(e)],pi=(e,t,s)=>{if(t._n)return t;const n=Mo((...l)=>xn(t(...l)),s);return n._c=!1,n},zl=(e,t,s)=>{const n=e._ctx;for(const l in e){if(_n(l))continue;const r=e[l];if(W(r))t[l]=pi(l,r,n);else if(r!=null){const i=xn(r);t[l]=()=>i}}},Wl=(e,t)=>{const s=xn(t);e.slots.default=()=>s},ql=(e,t,s)=>{for(const n in t)(s||!_n(n))&&(e[n]=t[n])},gi=(e,t,s)=>{const n=e.slots=Bl();if(e.vnode.shapeFlag&32){const l=t._;l?(ql(n,t,s),s&&Kn(n,"_",l,!0)):zl(t,n)}else t&&Wl(e,t)},bi=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=oe;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:ql(l,t,s):(r=!t.$stable,zl(t,l)),i=t}else t&&(Wl(e,t),i={default:1});if(r)for(const a in l)!_n(a)&&i[a]==null&&delete l[a]},$e=xi;function vi(e){return mi(e)}function mi(e,t){const s=cs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:a,createComment:u,setText:h,setElementText:c,parentNode:v,nextSibling:_,setScopeId:y=De,insertStaticContent:I}=e,k=(d,b,$,P=null,S=null,E=null,F=void 0,D=null,O=!!b.dynamicChildren)=>{if(d===b)return;d&&!es(d,b)&&(P=Bs(d),Ge(d,S,E,!0),d=null),b.patchFlag===-2&&(O=!1,b.dynamicChildren=null);const{type:A,ref:H,shapeFlag:N}=b;switch(A){case Es:K(d,b,$,P);break;case ft:C(d,b,$,P);break;case kn:d==null&&g(b,$,P,F);break;case R:Je(d,b,$,P,S,E,F,D,O);break;default:N&1?x(d,b,$,P,S,E,F,D,O):N&6?kt(d,b,$,P,S,E,F,D,O):(N&64||N&128)&&A.process(d,b,$,P,S,E,F,D,O,rs)}H!=null&&S?Jt(H,d&&d.ref,E,b||d,!b):H==null&&d&&d.ref!=null&&Jt(d.ref,null,E,d,!0)},K=(d,b,$,P)=>{if(d==null)n(b.el=a(b.children),$,P);else{const S=b.el=d.el;b.children!==d.children&&h(S,b.children)}},C=(d,b,$,P)=>{d==null?n(b.el=u(b.children||""),$,P):b.el=d.el},g=(d,b,$,P)=>{[d.el,d.anchor]=I(d.children,b,$,P,d.el,d.anchor)},w=({el:d,anchor:b},$,P)=>{let S;for(;d&&d!==b;)S=_(d),n(d,$,P),d=S;n(b,$,P)},M=({el:d,anchor:b})=>{let $;for(;d&&d!==b;)$=_(d),l(d),d=$;l(b)},x=(d,b,$,P,S,E,F,D,O)=>{if(b.type==="svg"?F="svg":b.type==="math"&&(F="mathml"),d==null)T(b,$,P,S,E,F,D,O);else{const A=d.el&&d.el._isVueCE?d.el:null;try{A&&A._beginPatch(),Y(d,b,S,E,F,D,O)}finally{A&&A._endPatch()}}},T=(d,b,$,P,S,E,F,D)=>{let O,A;const{props:H,shapeFlag:N,transition:U,dirs:q}=d;if(O=d.el=i(d.type,E,H&&H.is,H),N&8?c(O,d.children):N&16&&B(d.children,O,null,P,S,wn(d,E),F,D),q&&mt(d,null,P,"created"),j(O,d,d.scopeId,F,P),H){for(const ue in H)ue!=="value"&&!Nt(ue)&&r(O,ue,null,H[ue],E,P);"value"in H&&r(O,"value",null,H.value,E),(A=H.onVnodeBeforeMount)&&Ke(A,P,d)}q&&mt(d,null,P,"beforeMount");const Z=yi(S,U);Z&&U.beforeEnter(O),n(O,b,$),((A=H&&H.onVnodeMounted)||Z||q)&&$e(()=>{A&&Ke(A,P,d),Z&&U.enter(O),q&&mt(d,null,P,"mounted")},S)},j=(d,b,$,P,S)=>{if($&&y(d,$),P)for(let E=0;E<P.length;E++)y(d,P[E]);if(S){let E=S.subTree;if(b===E||Xl(E.type)&&(E.ssContent===b||E.ssFallback===b)){const F=S.vnode;j(d,F,F.scopeId,F.slotScopeIds,S.parent)}}},B=(d,b,$,P,S,E,F,D,O=0)=>{for(let A=O;A<d.length;A++){const H=d[A]=D?lt(d[A]):Ve(d[A]);k(null,H,b,$,P,S,E,F,D)}},Y=(d,b,$,P,S,E,F)=>{const D=b.el=d.el;let{patchFlag:O,dynamicChildren:A,dirs:H}=b;O|=d.patchFlag&16;const N=d.props||oe,U=b.props||oe;let q;if($&&_t($,!1),(q=U.onVnodeBeforeUpdate)&&Ke(q,$,b,d),H&&mt(b,d,$,"beforeUpdate"),$&&_t($,!0),(N.innerHTML&&U.innerHTML==null||N.textContent&&U.textContent==null)&&c(D,""),A?ce(d.dynamicChildren,A,D,$,P,wn(b,S),E):F||ee(d,b,D,null,$,P,wn(b,S),E,!1),O>0){if(O&16)Le(D,N,U,$,S);else if(O&2&&N.class!==U.class&&r(D,"class",null,U.class,S),O&4&&r(D,"style",N.style,U.style,S),O&8){const Z=b.dynamicProps;for(let ue=0;ue<Z.length;ue++){const re=Z[ue],Ce=N[re],Te=U[re];(Te!==Ce||re==="value")&&r(D,re,Ce,Te,S,$)}}O&1&&d.children!==b.children&&c(D,b.children)}else!F&&A==null&&Le(D,N,U,$,S);((q=U.onVnodeUpdated)||H)&&$e(()=>{q&&Ke(q,$,b,d),H&&mt(b,d,$,"updated")},P)},ce=(d,b,$,P,S,E,F)=>{for(let D=0;D<b.length;D++){const O=d[D],A=b[D],H=O.el&&(O.type===R||!es(O,A)||O.shapeFlag&198)?v(O.el):$;k(O,A,H,null,P,S,E,F,!0)}},Le=(d,b,$,P,S)=>{if(b!==$){if(b!==oe)for(const E in b)!Nt(E)&&!(E in $)&&r(d,E,b[E],null,S,P);for(const E in $){if(Nt(E))continue;const F=$[E],D=b[E];F!==D&&E!=="value"&&r(d,E,D,F,S,P)}"value"in $&&r(d,"value",b.value,$.value,S)}},Je=(d,b,$,P,S,E,F,D,O)=>{const A=b.el=d?d.el:a(""),H=b.anchor=d?d.anchor:a("");let{patchFlag:N,dynamicChildren:U,slotScopeIds:q}=b;q&&(D=D?D.concat(q):q),d==null?(n(A,$,P),n(H,$,P),B(b.children||[],$,H,S,E,F,D,O)):N>0&&N&64&&U&&d.dynamicChildren&&d.dynamicChildren.length===U.length?(ce(d.dynamicChildren,U,$,S,E,F,D),(b.key!=null||S&&b===S.subTree)&&Jl(d,b,!0)):ee(d,b,$,H,S,E,F,D,O)},kt=(d,b,$,P,S,E,F,D,O)=>{b.slotScopeIds=D,d==null?b.shapeFlag&512?S.ctx.activate(b,$,P,F,O):$t(b,$,P,S,E,F,O):Ns(d,b,O)},$t=(d,b,$,P,S,E,F)=>{const D=d.component=Ei(d,P,S);if(pn(d)&&(D.ctx.renderer=rs),Mi(D,!1,F),D.asyncDep){if(S&&S.registerDep(D,ge,F),!d.el){const O=D.subTree=fe(ft);C(null,O,b,$),d.placeholder=O.el}}else ge(D,d,b,$,S,E,F)},Ns=(d,b,$)=>{const P=b.component=d.component;if(ui(d,b,$))if(P.asyncDep&&!P.asyncResolved){Q(P,b,$);return}else P.next=b,P.update();else b.el=d.el,P.vnode=b},ge=(d,b,$,P,S,E,F)=>{const D=()=>{if(d.isMounted){let{next:N,bu:U,u:q,parent:Z,vnode:ue}=d;{const Ye=Gl(d);if(Ye){N&&(N.el=ue.el,Q(d,N,F)),Ye.asyncDep.then(()=>{$e(()=>{d.isUnmounted||A()},S)});return}}let re=N,Ce;_t(d,!1),N?(N.el=ue.el,Q(d,N,F)):N=ue,U&&us(U),(Ce=N.props&&N.props.onVnodeBeforeUpdate)&&Ke(Ce,Z,N,ue),_t(d,!0);const Te=Dl(d),Qe=d.subTree;d.subTree=Te,k(Qe,Te,v(Qe.el),Bs(Qe),d,S,E),N.el=Te.el,re===null&&ci(d,Te.el),q&&$e(q,S),(Ce=N.props&&N.props.onVnodeUpdated)&&$e(()=>Ke(Ce,Z,N,ue),S)}else{let N;const{el:U,props:q}=b,{bm:Z,m:ue,parent:re,root:Ce,type:Te}=d,Qe=Gt(b);_t(d,!1),Z&&us(Z),!Qe&&(N=q&&q.onVnodeBeforeMount)&&Ke(N,re,b),_t(d,!0);{Ce.ce&&Ce.ce._hasShadowRoot()&&Ce.ce._injectChildStyle(Te);const Ye=d.subTree=Dl(d);k(null,Ye,$,P,d,S,E),b.el=Ye.el}if(ue&&$e(ue,S),!Qe&&(N=q&&q.onVnodeMounted)){const Ye=b;$e(()=>Ke(N,re,Ye),S)}(b.shapeFlag&256||re&&Gt(re.vnode)&&re.vnode.shapeFlag&256)&&d.a&&$e(d.a,S),d.isMounted=!0,b=$=P=null}};d.scope.on();const O=d.effect=new Gn(D);d.scope.off();const A=d.update=O.run.bind(O),H=d.job=O.runIfDirty.bind(O);H.i=d,H.id=d.uid,O.scheduler=()=>dn(H),_t(d,!0),A()},Q=(d,b,$)=>{b.component=d;const P=d.vnode.props;d.vnode=b,d.next=null,fi(d,b.props,P,$),bi(d,b.children,$),Fe(),ml(d),Ne()},ee=(d,b,$,P,S,E,F,D,O=!1)=>{const A=d&&d.children,H=d?d.shapeFlag:0,N=b.children,{patchFlag:U,shapeFlag:q}=b;if(U>0){if(U&128){ns(A,N,$,P,S,E,F,D,O);return}else if(U&256){be(A,N,$,P,S,E,F,D,O);return}}q&8?(H&16&&ls(A,S,E),N!==A&&c($,N)):H&16?q&16?ns(A,N,$,P,S,E,F,D,O):ls(A,S,E,!0):(H&8&&c($,""),q&16&&B(N,$,P,S,E,F,D,O))},be=(d,b,$,P,S,E,F,D,O)=>{d=d||Tt,b=b||Tt;const A=d.length,H=b.length,N=Math.min(A,H);let U;for(U=0;U<N;U++){const q=b[U]=O?lt(b[U]):Ve(b[U]);k(d[U],q,$,null,S,E,F,D,O)}A>H?ls(d,S,E,!0,!1,N):B(b,$,P,S,E,F,D,O,N)},ns=(d,b,$,P,S,E,F,D,O)=>{let A=0;const H=b.length;let N=d.length-1,U=H-1;for(;A<=N&&A<=U;){const q=d[A],Z=b[A]=O?lt(b[A]):Ve(b[A]);if(es(q,Z))k(q,Z,$,null,S,E,F,D,O);else break;A++}for(;A<=N&&A<=U;){const q=d[N],Z=b[U]=O?lt(b[U]):Ve(b[U]);if(es(q,Z))k(q,Z,$,null,S,E,F,D,O);else break;N--,U--}if(A>N){if(A<=U){const q=U+1,Z=q<H?b[q].el:P;for(;A<=U;)k(null,b[A]=O?lt(b[A]):Ve(b[A]),$,Z,S,E,F,D,O),A++}}else if(A>U)for(;A<=N;)Ge(d[A],S,E,!0),A++;else{const q=A,Z=A,ue=new Map;for(A=Z;A<=U;A++){const Ee=b[A]=O?lt(b[A]):Ve(b[A]);Ee.key!=null&&ue.set(Ee.key,A)}let re,Ce=0;const Te=U-Z+1;let Qe=!1,Ye=0;const os=new Array(Te);for(A=0;A<Te;A++)os[A]=0;for(A=q;A<=N;A++){const Ee=d[A];if(Ce>=Te){Ge(Ee,S,E,!0);continue}let Xe;if(Ee.key!=null)Xe=ue.get(Ee.key);else for(re=Z;re<=U;re++)if(os[re-Z]===0&&es(Ee,b[re])){Xe=re;break}Xe===void 0?Ge(Ee,S,E,!0):(os[Xe-Z]=A+1,Xe>=Ye?Ye=Xe:Qe=!0,k(Ee,b[Xe],$,null,S,E,F,D,O),Ce++)}const Rr=Qe?_i(os):Tt;for(re=Rr.length-1,A=Te-1;A>=0;A--){const Ee=Z+A,Xe=b[Ee],Ir=b[Ee+1],Dr=Ee+1<H?Ir.el||Yl(Ir):P;os[A]===0?k(null,Xe,$,Dr,S,E,F,D,O):Qe&&(re<0||A!==Rr[re]?Ct(Xe,$,Dr,2):re--)}}},Ct=(d,b,$,P,S=null)=>{const{el:E,type:F,transition:D,children:O,shapeFlag:A}=d;if(A&6){Ct(d.component.subTree,b,$,P);return}if(A&128){d.suspense.move(b,$,P);return}if(A&64){F.move(d,b,$,rs);return}if(F===R){n(E,b,$);for(let N=0;N<O.length;N++)Ct(O[N],b,$,P);n(d.anchor,b,$);return}if(F===kn){w(d,b,$);return}if(P!==2&&A&1&&D)if(P===0)D.beforeEnter(E),n(E,b,$),$e(()=>D.enter(E),S);else{const{leave:N,delayLeave:U,afterLeave:q}=D,Z=()=>{d.ctx.isUnmounted?l(E):n(E,b,$)},ue=()=>{E._isLeaving&&E[jo](!0),N(E,()=>{Z(),q&&q()})};U?U(E,Z,ue):ue()}else n(E,b,$)},Ge=(d,b,$,P=!1,S=!1)=>{const{type:E,props:F,ref:D,children:O,dynamicChildren:A,shapeFlag:H,patchFlag:N,dirs:U,cacheIndex:q}=d;if(N===-2&&(S=!1),D!=null&&(Fe(),Jt(D,null,$,d,!0),Ne()),q!=null&&(b.renderCache[q]=void 0),H&256){b.ctx.deactivate(d);return}const Z=H&1&&U,ue=!Gt(d);let re;if(ue&&(re=F&&F.onVnodeBeforeUnmount)&&Ke(re,b,d),H&6)wh(d.component,$,P);else{if(H&128){d.suspense.unmount($,P);return}Z&&mt(d,null,b,"beforeUnmount"),H&64?d.type.remove(d,b,$,rs,P):A&&!A.hasOnce&&(E!==R||N>0&&N&64)?ls(A,b,$,!1,!0):(E===R&&N&384||!S&&H&16)&&ls(O,b,$),P&&Lr(d)}(ue&&(re=F&&F.onVnodeUnmounted)||Z)&&$e(()=>{re&&Ke(re,b,d),Z&&mt(d,null,b,"unmounted")},$)},Lr=d=>{const{type:b,el:$,anchor:P,transition:S}=d;if(b===R){xh($,P);return}if(b===kn){M(d);return}const E=()=>{l($),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(d.shapeFlag&1&&S&&!S.persisted){const{leave:F,delayLeave:D}=S,O=()=>F($,E);D?D(d.el,E,O):O()}else E()},xh=(d,b)=>{let $;for(;d!==b;)$=_(d),l(d),d=$;l(b)},wh=(d,b,$)=>{const{bum:P,scope:S,job:E,subTree:F,um:D,m:O,a:A}=d;Ql(O),Ql(A),P&&us(P),S.stop(),E&&(E.flags|=8,Ge(F,d,b,$)),D&&$e(D,b),$e(()=>{d.isUnmounted=!0},b)},ls=(d,b,$,P=!1,S=!1,E=0)=>{for(let F=E;F<d.length;F++)Ge(d[F],b,$,P,S)},Bs=d=>{if(d.shapeFlag&6)return Bs(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const b=_(d.anchor||d.el),$=b&&b[Io];return $?_($):b};let Dn=!1;const Or=(d,b,$)=>{let P;d==null?b._vnode&&(Ge(b._vnode,null,null,!0),P=b._vnode.component):k(b._vnode||null,d,b,null,null,null,$),b._vnode=d,Dn||(Dn=!0,ml(P),yl(),Dn=!1)},rs={p:k,um:Ge,m:Ct,r:Lr,mt:$t,mc:B,pc:ee,pbc:ce,n:Bs,o:e};return{render:Or,hydrate:void 0,createApp:ni(Or)}}function wn({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 _t({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 Jl(e,t,s=!1){const n=e.children,l=t.children;if(z(n)&&z(l))for(let r=0;r<n.length;r++){const i=n[r];let a=l[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[r]=lt(l[r]),a.el=i.el),!s&&a.patchFlag!==-2&&Jl(i,a)),a.type===Es&&(a.patchFlag===-1&&(a=l[r]=lt(a)),a.el=i.el),a.type===ft&&!a.el&&(a.el=i.el)}}function _i(e){const t=e.slice(),s=[0];let n,l,r,i,a;const u=e.length;for(n=0;n<u;n++){const h=e[n];if(h!==0){if(l=s[s.length-1],e[l]<h){t[n]=l,s.push(n);continue}for(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<h?r=a+1:i=a;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Gl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gl(t)}function Ql(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yl(t.subTree):null}const Xl=e=>e.__isSuspense;function xi(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Ao(e)}const R=Symbol.for("v-fgt"),Es=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),kn=Symbol.for("v-stc"),Xt=[];let Se=null;function f(e=!1){Xt.push(Se=e?null:[])}function wi(){Xt.pop(),Se=Xt[Xt.length-1]||null}let Zt=1;function As(e,t=!1){Zt+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function Zl(e){return e.dynamicChildren=Zt>0?Se||Tt:null,wi(),Zt>0&&Se&&Se.push(e),e}function p(e,t,s,n,l,r){return Zl(o(e,t,s,n,l,r,!0))}function Pe(e,t,s,n,l){return Zl(fe(e,t,s,n,l,!0))}function Ms(e){return e?e.__v_isVNode===!0:!1}function es(e,t){return e.type===t.type&&e.key===t.key}const er=({key:e})=>e??null,Ps=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||pe(e)||W(e)?{i:Me,r:e,k:t,f:!!s}:e:null);function o(e,t=null,s=null,n=0,l=null,r=e===R?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&er(t),ref:t&&Ps(t),scopeId:xl,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:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Me};return a?($n(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=de(s)?8:16),Zt>0&&!i&&Se&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Se.push(u),u}const fe=ki;function ki(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===Go)&&(e=ft),Ms(e)){const a=It(e,t,!0);return s&&$n(a,s),Zt>0&&!r&&Se&&(a.shapeFlag&6?Se[Se.indexOf(e)]=a:Se.push(a)),a.patchFlag=-2,a}if(ji(e)&&(e=e.__vccOpts),t){t=$i(t);let{class:a,style:u}=t;a&&!de(a)&&(t.class=V(a)),le(u)&&(un(u)&&!z(u)&&(u=he({},u)),t.style=Et(u))}const i=de(e)?1:Xl(e)?128:Do(e)?64:le(e)?4:W(e)?2:0;return o(e,t,s,n,l,i,r,!0)}function $i(e){return e?un(e)||Ul(e)?he({},e):e:null}function It(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:a,transition:u}=e,h=t?Ci(l||{},t):l,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&er(h),ref:t&&t.ref?s&&r?z(r)?r.concat(Ps(t)):[r,Ps(t)]:Ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&fn(c,u.clone(c)),c}function se(e=" ",t=0){return fe(Es,null,e,t)}function ae(e="",t=!1){return t?(f(),Pe(ft,null,e)):fe(ft,null,e)}function Ve(e){return e==null||typeof e=="boolean"?fe(ft):z(e)?fe(R,null,e.slice()):Ms(e)?lt(e):fe(Es,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function $n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(z(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),$n(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Ul(t)?t._ctx=Me:l===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:Me},s=32):(t=String(t),n&64?(s=16,t=[se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Ci(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const l in n)if(l==="class")t.class!==n.class&&(t.class=V([t.class,n.class]));else if(l==="style")t.style=Et([t.style,n.style]);else if(is(l)){const r=t[l],i=n[l];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ke(e,t,s,n=null){Be(e,t,7,[s,n])}const Ti=Rl();let Si=0;function Ei(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Ti,r={uid:Si++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vl(n,l),emitsOptions:Il(n,l),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:n.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=ri.bind(null,r),e.ce&&e.ce(r),r}let me=null;const Ai=()=>me||Me;let Ls,Cn;{const e=cs(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",s=>me=s),Cn=t("__VUE_SSR_SETTERS__",s=>Dt=s)}const ts=e=>{const t=me;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},tr=()=>{me&&me.scope.off(),Ls(null)};function sr(e){return e.vnode.shapeFlag&4}let Dt=!1;function Mi(e,t=!1,s=!1){t&&Cn(t);const{props:n,children:l}=e.vnode,r=sr(e);di(e,n,r,t),gi(e,l,s||t);const i=r?Pi(e,t):void 0;return t&&Cn(!1),i}function Pi(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Qo);const{setup:n}=s;if(n){Fe();const l=e.setupContext=n.length>1?Oi(e):null,r=ts(e),i=Pt(n,e,0,[e.props,l]),a=Bn(i);if(Ne(),r(),(a||e.sp)&&!Gt(e)&&hn(e),a){if(i.then(tr,tr),t)return i.then(u=>{nr(e,u)}).catch(u=>{Wt(u,e,0)});e.asyncDep=i}else nr(e,i)}else lr(e)}function nr(e,t,s){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:le(t)&&(e.setupState=hl(t)),lr(e)}function lr(e,t,s){const n=e.type;e.render||(e.render=n.render||De);{const l=ts(e);Fe();try{Yo(e)}finally{Ne(),l()}}}const Li={get(e,t){return ve(e,"get",""),e[t]}};function Oi(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Li),slots:e.slots,emit:e.emit,expose:t}}function Os(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hl(go(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Qt)return Qt[s](e)},has(t,s){return s in t||s in Qt}})):e.proxy}const Ri=/(?:^|[-_])\w/g,Ii=e=>e.replace(Ri,t=>t.toUpperCase()).replace(/[-_]/g,"");function Di(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function rr(e,t,s=!1){let n=Di(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=r=>{for(const i in r)if(r[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Ii(n):s?"App":"Anonymous"}function ji(e){return W(e)&&"__vccOpts"in e}const G=(e,t)=>_o(e,t,Dt);function Fi(e,t,s){try{As(-1);const n=arguments.length;return n===2?le(t)&&!z(t)?Ms(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ms(s)&&(s=[s]),fe(e,t,s))}finally{As(1)}}const Ni="3.5.29";let Tn;const or=typeof window<"u"&&window.trustedTypes;if(or)try{Tn=or.createPolicy("vue",{createHTML:e=>e})}catch{}const ir=Tn?e=>Tn.createHTML(e):e=>e,Bi="http://www.w3.org/2000/svg",Ui="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,ar=rt&&rt.createElement("template"),Hi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?rt.createElementNS(Bi,e):t==="mathml"?rt.createElementNS(Ui,e):s?rt.createElement(e,{is:s}):rt.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,r){const i=s?s.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===r||!(l=l.nextSibling)););else{ar.innerHTML=ir(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=ar.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Vi=Symbol("_vtc");function Ki(e,t,s){const n=e[Vi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),zi=Symbol("_vsh"),Wi=Symbol(""),qi=/(?:^|;)\s*display\s*:/;function Ji(e,t,s){const n=e.style,l=de(s);let r=!1;if(s&&!l){if(t)if(de(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Rs(n,a,"")}else for(const i in t)s[i]==null&&Rs(n,i,"");for(const i in s)i==="display"&&(r=!0),Rs(n,i,s[i])}else if(l){if(t!==s){const i=n[Wi];i&&(s+=";"+i),n.cssText=s,r=qi.test(s)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=r?n.display:"",e[zi]&&(n.display="none"))}const cr=/\s*!important$/;function Rs(e,t,s){if(z(s))s.forEach(n=>Rs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Gi(e,t);cr.test(s)?e.setProperty(it(n),s.replace(cr,""),"important"):e[n]=s}}const dr=["Webkit","Moz","ms"],Sn={};function Gi(e,t){const s=Sn[t];if(s)return s;let n=ot(t);if(n!=="filter"&&n in e)return Sn[t]=n;n=Vn(n);for(let l=0;l<dr.length;l++){const r=dr[l]+n;if(r in e)return Sn[t]=r}return t}const fr="http://www.w3.org/1999/xlink";function hr(e,t,s,n,l,r=zr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(fr,t.slice(6,t.length)):e.setAttributeNS(fr,t,s):s==null||r&&!Wn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":je(s)?String(s):s)}function pr(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ir(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=Wn(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(l||t)}function jt(e,t,s,n){e.addEventListener(t,s,n)}function Qi(e,t,s,n){e.removeEventListener(t,s,n)}const gr=Symbol("_vei");function Yi(e,t,s,n,l=null){const r=e[gr]||(e[gr]={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=Xi(t);if(n){const h=r[t]=ta(n,l);jt(e,a,h,u)}else i&&(Qi(e,a,i,u),r[t]=void 0)}}const br=/(?:Once|Passive|Capture)$/;function Xi(e){let t;if(br.test(e)){t={};let n;for(;n=e.match(br);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):it(e.slice(2)),t]}let En=0;const Zi=Promise.resolve(),ea=()=>En||(Zi.then(()=>En=0),En=Date.now());function ta(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Be(sa(n,s.value),t,5,[n])};return s.value=e,s.attached=ea(),s}function sa(e,t){if(z(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>l=>!l._stopped&&n&&n(l))}else return t}const vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,na=(e,t,s,n,l,r)=>{const i=l==="svg";t==="class"?Ki(e,n,i):t==="style"?Ji(e,s,n):is(t)?Hs(t)||Yi(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):la(e,t,n,i))?(pr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hr(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!de(n))?pr(e,ot(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),hr(e,t,n,i))};function la(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&vr(t)&&W(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 l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return vr(t)&&de(s)?!1:t in e}const mr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?s=>us(t,s):t};function ra(e){e.target.composing=!0}function yr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const An=Symbol("_assign");function _r(e,t,s){return t&&(e=e.trim()),s&&(e=Ws(e)),e}const ze={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[An]=mr(l);const r=n||l.props&&l.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[An](_r(e.value,s,r))}),(s||r)&&jt(e,"change",()=>{e.value=_r(e.value,s,r)}),t||(jt(e,"compositionstart",ra),jt(e,"compositionend",yr),jt(e,"change",yr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:r}},i){if(e[An]=mr(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ws(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||l&&e.value.trim()===u)||(e.value=u))}},oa=["ctrl","shift","alt","meta"],ia={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)=>oa.some(s=>e[`${s}Key`]&&!t.includes(s))},Mn=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...r)=>{for(let i=0;i<t.length;i++){const a=ia[t[i]];if(a&&a(l,t))return}return e(l,...r)}))},aa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},xr=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const r=it(l.key);if(t.some(i=>i===r||aa[i]===r))return e(l)}))},ua=he({patchProp:na},Hi);let wr;function ca(){return wr||(wr=vi(ua))}const da=((...e)=>{const t=ca().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=ha(n);if(!l)return;const r=t._component;!W(r)&&!r.render&&!r.template&&(r.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,fa(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function fa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ha(e){return de(e)?document.querySelector(e):e}class Is extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class pa extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class Pn{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const l={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},r=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(r.status===401||r.status===403)throw new Is(r.status);if(!r.ok){const i=await r.text().catch(()=>"");throw new pa(r.status,i)}return r.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ga=3e3,ba=100,va=500,ma={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function ya(e){return ma[e]||`/${e}`}class kr{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new Pn({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??ga,this.callbacks={onData:t.onData,onLoading:t.onLoading,onError:t.onError,onUnauthorized:t.onUnauthorized}}start(t){this.stop(),this.currentTab=t,this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetchData(),this.timer=setInterval(()=>this.fetchData(),this.refreshInterval)}stop(){this.timer&&(clearInterval(this.timer),this.timer=null),this.abortController?.abort(),this.abortController=null}switchTab(t){this.start(t)}refresh(){this.currentTab&&this.fetchData()}async fetchCustomPane(t,s=!1){if(s&&this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.callbacks.onLoading(!0);try{const n=await this.client.fetch(t);this.callbacks.onData(n),this.callbacks.onError(null),s&&(this.fetchOnceCache[t]=n)}catch(n){if(n instanceof Is){this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n)))}finally{this.callbacks.onLoading(!1)}}cacheForTab(t,s){this.fetchOnceCache[t]=s}clearCache(){this.fetchOnceCache={}}async fetchData(){const t=this.currentTab;if(!t)return;if(this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const n=`${this.endpoint}${ya(t)}`,l=await this.client.fetch(n,{signal:s.signal});if(s.signal.aborted)return;this.callbacks.onData(l),this.callbacks.onError(null),this.callbacks.onLoading(!1)}catch(n){if(n instanceof DOMException&&n.name==="AbortError"||s.signal.aborted)return;if(n instanceof Is){this.callbacks.onError(n),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n))),this.callbacks.onLoading(!1)}}}const $r=new Set(["cache","jobs","config"]);function _a(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:r,refreshInterval:i}=t,a=J(null),u=J(!1),h=J(null),c=J(!1),v=new kr({baseUrl:s,endpoint:n,authToken:r,refreshInterval:i,onData:x=>{a.value=x},onLoading:x=>{u.value=x},onError:x=>{h.value=x},onUnauthorized:()=>{c.value=!0}});let _=null;function y(){return!_&&l&&(_=new kr({baseUrl:s,endpoint:l,authToken:r,refreshInterval:i,onData:x=>{a.value=x},onLoading:x=>{u.value=x},onError:x=>{h.value=x},onUnauthorized:()=>{c.value=!0}})),_}function I(){const x=e();if(x&&!x.startsWith("custom-"))if($r.has(x)&&l){const T=y();v.stop(),T.start(x)}else _?.stop(),v.start(x)}function k(){v.stop(),_?.stop()}async function K(x,T=!1){await v.fetchCustomPane(x,T)}function C(){I()}function g(){k()}function w(){const x=e();$r.has(x)&&l&&_?_.refresh():v.refresh()}function M(){a.value=null}return dt(e,()=>{M(),I()}),yt(()=>{C()}),Cs(()=>{k()}),{data:a,loading:u,error:h,isUnauthorized:c,refresh:w,clear:M,fetchCustomPane:K,startRefresh:C,stopRefresh:g}}const Ds="ss-dash-theme",Ln="ss-theme-change";function js(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ds);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function xa(e){typeof window>"u"||(localStorage.setItem(Ds,e),window.dispatchEvent(new CustomEvent(Ln,{detail:e})))}function wa(){const t=js()==="dark"?"light":"dark";return xa(t),t}function ka(e){if(typeof window>"u")return()=>{};const t=r=>{const i=r.detail;(i==="dark"||i==="light")&&e(i)},s=r=>{if(r.key===Ds){const i=r.newValue;e(i==="dark"||i==="light"?i:js())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=r=>{localStorage.getItem(Ds)||e(r.matches?"dark":"light")};return window.addEventListener(Ln,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(Ln,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function $a(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),l=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${l}m`:l>0?`${l}m ${t%60}s`:`${t}s`}function We(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function xt(e){if(!e)return"-";const t=typeof e=="string"?new Date(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 qe(e){if(!e)return"-";const t=typeof e=="string"?new Date(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 On(e){return e>va?"very-slow":e>ba?"slow":"normal"}function ss(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 n="["+e.slice(0,3).map(l=>ss(l,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return n.length>t?"["+e.length+" items]":n}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const n=[];for(let r=0;r<Math.min(s.length,4);r++)n.push(s[r]+": "+ss(e[s[r]],30));const l="{ "+n.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return l.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":l}return String(e)}function Cr(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 Ca(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Tr="/admin/api/debug",Sr={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 Ta(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 Sa(e,t=Tr){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Ea(e){const{baseUrl:t="",debugEndpoint:s=Tr,authToken:n}=e,l=new Pn({baseUrl:t,authToken:n});try{const r=await Sa(l,s);return Ta(r)}catch{return Sr}}const we={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"/>']}},Aa="ss-col-resize",Er="ss-resizing";function Ma(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let n=!1;function l(){if(!n){n=!0;for(const r of t)r.style.width=r.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const r of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const h=u.clientX,c=r.offsetWidth;a.classList.add(Er),a.setPointerCapture(u.pointerId);function v(y){const I=y.clientX-h,k=Math.max(30,c+I);r.style.width=k+"px"}function _(){a.classList.remove(Er),a.removeEventListener("pointermove",v),a.removeEventListener("pointerup",_)}a.addEventListener("pointermove",v),a.addEventListener("pointerup",_)};if(!r.textContent?.trim())continue;const a=document.createElement("div");a.className=Aa,r.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const r of s)r()}}const Pa=["all","error","warn","info","debug"];function Rn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Ar(e){return e.msg||e.message||JSON.stringify(e)}function Fs(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function ht(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 La(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`}}function Oa(e,t){return t==="all"?e:e.filter(s=>{const n=Rn(s);return t==="error"?n==="error"||n==="fatal":n===t})}function Ra(e,t){if(!t)return e;const s=t.toLowerCase();return e.filter(n=>n.sql.toLowerCase().includes(s)||n.model&&n.model.toLowerCase().includes(s)||n.method.toLowerCase().includes(s))}function Ia(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function Da(e,t){const s=e.filter(r=>r.duration>100).length,n=Object.values(t).filter(r=>r>1).length,l=e.length>0?e.reduce((r,i)=>r+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}const ja=["all","active","waiting","delayed","completed","failed"];function Fa(e,t="ss-dbg-job-status"){switch(e){case"completed":case"failed":case"active":case"waiting":case"delayed":return`${t}-${e}`;default:return"ss-dbg-badge-muted"}}const Na=["password","secret","token","key","credential","auth"];function Ba(e){const t=e.toLowerCase();return Na.some(s=>t.includes(s))}function Ua(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 Ha={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Va(e){return Ha[e]||e}const Ka={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function za(e){return Ka[e]||e}function Wa(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function qa(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 Ja(e){return Object.entries(e).map(([t,s])=>({key:t,value:Ua(s),secret:Ba(t)}))}function Ga(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Qa=["healthy","active","connected","available","ready"],Ya=["errored","unavailable"];function Xa(e){return Qa.includes(e)?"ok":Ya.includes(e)?"err":""}function Za(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function eu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(Za(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const tu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function su(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const r of l)r&&s.push(r)}return s}function nu(e){return su(e).some(s=>tu.has(s.toLowerCase()))}function lu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=J({...Sr}),r=J(!0);return yt(async()=>{l.value=await Ea({baseUrl:t,debugEndpoint:s,authToken:n}),r.value=!1}),{features:l,loading:r}}function Mr(){const e=J(js());let t=null;function s(l){e.value=l}function n(){const l=wa();return e.value=l,l}return yt(()=>{e.value=js(),t=ka(s)}),Cs(()=>{t?.()}),{theme:e,toggleTheme:n}}const ru=["title","aria-label"],ou=["viewBox","innerHTML"],iu=["viewBox","innerHTML"],au=_e({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Mr(),l=G(()=>s.value==="dark"),r=G(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=G(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(f(),p("button",{type:"button",class:V(i.value),title:r.value,"aria-label":r.value,onClick:u[0]||(u[0]=(...h)=>L(n)&&L(n)(...h))},[l.value?(f(),p("svg",{key:0,width:"16",height:"16",viewBox:L(we).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:L(we).sun.elements.join("")},null,8,ou)):(f(),p("svg",{key:1,width:"16",height:"16",viewBox:L(we).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:L(we).moon.elements.join("")},null,8,iu))],10,ru))}}),uu=["data-ss-theme"],cu={class:"ss-dbg-tabs"},du={class:"ss-dbg-tabs-scroll"},fu=["onClick"],hu=["viewBox","innerHTML"],pu={class:"ss-dbg-tabs-right"},gu=["title"],bu=["href"],vu=["viewBox","innerHTML"],mu={class:"ss-dbg-content"},yu={key:0,class:"ss-dbg-empty"},_u={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},xu=_e({__name:"DebugPanel",props:{dashboardPath:{default:"/__stats"},tracingEnabled:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},baseUrl:{default:""},debugEndpoint:{default:"/admin/api/debug"},authToken:{},className:{},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const s=Ie(()=>Promise.resolve().then(()=>Pu)),n=Ie(()=>Promise.resolve().then(()=>Uu)),l=Ie(()=>Promise.resolve().then(()=>oc)),r=Ie(()=>Promise.resolve().then(()=>pc)),i=Ie(()=>Promise.resolve().then(()=>Ec)),a=Ie(()=>Promise.resolve().then(()=>Zc)),u=Ie(()=>Promise.resolve().then(()=>kd)),h=Ie(()=>Promise.resolve().then(()=>zd)),c=Ie(()=>Promise.resolve().then(()=>Ef)),v=Ie(()=>Promise.resolve().then(()=>dh)),_=Ie(()=>Promise.resolve().then(()=>_h)),y=e,I=J(y.defaultOpen),k=J("queries"),{theme:K}=Mr(),{features:C}=lu({baseUrl:y.baseUrl,debugEndpoint:y.debugEndpoint,authToken:y.authToken}),g=y.dashboardPath?y.dashboardPath.replace(/\/+$/,"")+"/api":void 0,w=G(()=>k.value.startsWith("custom-")),M=G(()=>w.value||k.value==="internals"),{data:x,loading:T,error:j,isUnauthorized:B,startRefresh:Y,stopRefresh:ce}=_a(()=>k.value,{baseUrl:y.baseUrl,debugEndpoint:y.debugEndpoint,dashboardEndpoint:g,authToken:y.authToken}),Le=G(()=>{const Q=[{id:"queries",label:"Queries",icon:"Q"},{id:"events",label:"Events",icon:"E"},{id:"emails",label:"Emails",icon:"M"},{id:"routes",label:"Routes",icon:"R"},{id:"logs",label:"Logs",icon:"L"}];(C.value.tracing||y.tracingEnabled)&&Q.push({id:"timeline",label:"Timeline",icon:"T"}),C.value.cache&&Q.push({id:"cache",label:"Cache",icon:"C"}),C.value.queues&&Q.push({id:"jobs",label:"Jobs",icon:"J"}),Q.push({id:"config",label:"Config",icon:"G"}),Q.push({id:"internals",label:"Internals",icon:"I"});for(const ee of C.value.customPanes)Q.push({id:`custom-${ee.id}`,label:ee.label,icon:ee.label.charAt(0).toUpperCase()});return Q});function Je(Q){const ee=Q.replace("custom-","");return C.value.customPanes.find(be=>be.id===ee)}function kt(){I.value=!0,Y()}function $t(){I.value=!1,ce()}function Ns(){I.value?$t():kt()}function ge(Q){k.value=Q}return dt(I,Q=>{Q?Y():ce()}),t({toggle:Ns,open:kt,close:$t}),(Q,ee)=>L(B)?ae("",!0):(f(),p("div",{key:0,class:V(["ss-dbg-panel",{"ss-dbg-open":I.value}]),"data-ss-theme":L(K)},[o("div",cu,[o("div",du,[(f(!0),p(R,null,X(Le.value,be=>(f(),p("button",{key:be.id,type:"button",class:V(["ss-dbg-tab",{"ss-dbg-active":k.value===be.id}]),onClick:ns=>ge(be.id)},[L(we)[be.id]?(f(),p("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:L(we)[be.id].viewBox,innerHTML:L(we)[be.id].elements.join("")},null,8,hu)):ae("",!0),se(" "+m(be.label),1)],10,fu))),128))]),o("div",pu,[o("span",{class:V(["ss-dbg-conn-mode",e.isLive?"ss-dbg-conn-live":"ss-dbg-conn-polling"]),title:e.isLive?"Connected via Transmit (SSE) — real-time updates":"Polling every 3s"},m(e.isLive?"live":"polling"),11,gu),e.dashboardPath&&L(C).dashboard?(f(),p("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(f(),p("svg",{width:"14",height:"14",viewBox:L(we)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:L(we)["external-link"].elements.join("")},null,8,vu))],8,bu)):ae("",!0),fe(au),o("button",{type:"button",class:"ss-dbg-close",onClick:$t,title:"Close panel"}," × ")])]),o("div",mu,[L(T)&&!L(x)&&!M.value?(f(),p("div",yu,"Loading...")):L(j)&&!M.value?(f(),p("div",_u," Error: "+m(L(j).message),1)):(f(),p(R,{key:2},[k.value==="queries"?(f(),Pe(L(s),{key:0,data:L(x),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):k.value==="events"?(f(),Pe(L(n),{key:1,data:L(x),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):k.value==="emails"?(f(),Pe(L(l),{key:2,data:L(x),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):k.value==="routes"?(f(),Pe(L(r),{key:3,data:L(x)},null,8,["data"])):k.value==="logs"?(f(),Pe(L(i),{key:4,data:L(x),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):k.value==="timeline"?(f(),Pe(L(a),{key:5,data:L(x),"dashboard-path":e.dashboardPath,"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","base-url","debug-endpoint","auth-token"])):k.value==="cache"?(f(),Pe(L(u),{key:6,data:L(x)},null,8,["data"])):k.value==="jobs"?(f(),Pe(L(h),{key:7,data:L(x)},null,8,["data"])):k.value==="config"?(f(),Pe(L(c),{key:8,data:L(x)},null,8,["data"])):k.value==="internals"?(f(),Pe(L(v),{key:9,data:L(x),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):k.value.startsWith("custom-")?(f(),Pe(L(_),{key:10,pane:Je(k.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):ae("",!0)],64))])],10,uu))}});let wt=null;window.__ssDebugPanel={mount(e,t,s){wt&&wt.unmount(),wt=da({setup(){return()=>Fi(xu,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),wt.mount(e)},unmount(e){wt&&(wt.unmount(),wt=null)}};function pt(e){const t=J(null);let s=null;function n(){s&&s(),s=null,bl(()=>{t.value&&(s=Ma(t.value))})}return e&&dt(e,n),yt(n),$s(()=>{s&&s(),s=null}),{tableRef:t}}const wu={class:"ss-dbg-search-bar"},ku={class:"ss-dbg-summary"},$u={key:0,class:"ss-dbg-empty"},Cu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Tu=["onClick","onKeydown"],Su={key:0,class:"ss-dbg-dup"},Eu={key:1,class:"ss-dbg-dup"},Au={class:"ss-dbg-c-muted"},Mu=["title"],Pu=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=J(""),n=new Set,l=G(()=>{if(!t.data)return[];const y=t.data;return(Array.isArray(y)?y:y.queries)||[]}),r=G(()=>Ra(l.value,s.value)),i=G(()=>Ia(l.value)),a=G(()=>Da(l.value,i.value)),u=G(()=>{let y=`${r.value.length} queries`;return a.value.slowCount>0&&(y+=` | ${a.value.slowCount} slow`),a.value.dupCount>0&&(y+=` | ${a.value.dupCount} dup`),r.value.length>0&&(y+=` | avg ${We(a.value.avgDuration)}`),y});function h(y){n.has(y)?n.delete(y):n.add(y)}function c(y){return n.has(y)}function v(y){const I=On(y);return I==="very-slow"?"ss-dbg-very-slow":I==="slow"?"ss-dbg-slow":""}const{tableRef:_}=pt(()=>r.value);return(y,I)=>(f(),p("div",null,[o("div",wu,[He(o("input",{"onUpdate:modelValue":I[0]||(I[0]=k=>s.value=k),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[ze,s.value]]),o("span",ku,m(u.value),1)]),r.value.length===0?(f(),p("div",$u,"No queries captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:_,class:"ss-dbg-table"},[I[1]||(I[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"SQL"),o("th",null,"Duration"),o("th",null,"Method"),o("th",null,"Model"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(r.value,k=>(f(),p("tr",{key:k.id},[o("td",Cu,m(k.id),1),o("td",null,[o("span",{class:V(["ss-dbg-sql",{"ss-dbg-expanded":c(k.id)}]),role:"button",tabindex:"0",onClick:K=>h(k.id),onKeydown:xr(K=>h(k.id),["enter"])},m(k.sql),43,Tu),i.value[k.sql]>1?(f(),p("span",Su," x"+m(i.value[k.sql]),1)):ae("",!0),k.inTransaction?(f(),p("span",Eu," TXN")):ae("",!0)]),o("td",{class:V(["ss-dbg-duration",v(k.duration)])},m(L(We)(k.duration)),3),o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${k.method.toLowerCase()}`)},m(k.method),3)]),o("td",Au,m(k.model||"-"),1),o("td",{class:"ss-dbg-event-time",title:L(xt)(k.timestamp)},m(L(qe)(k.timestamp)),9,Mu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Pr=_e({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"}},setup(e){const t=e,s=J(!1),n=G(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return ss(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return ss(t.value,t.maxLen||100)}),l=G(()=>{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 r(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(f(),p("span",{key:0,class:V(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(f(),p("div",{key:1,class:V(`${t.classPrefix}-data-cell`)},[o("span",{class:V(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:r,onKeydown:u[0]||(u[0]=h=>h.key==="Enter"&&r())},m(n.value),35),s.value?(f(),p("div",{key:0,class:V(`${t.classPrefix}-data-full`),onClick:r},[o("button",{class:V(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Mn(i,["stop"])}," Copy ",2),o("pre",null,m(l.value),1)],2)):ae("",!0)],2))}}),Lu={class:"ss-dbg-search-bar"},Ou={class:"ss-dbg-summary"},Ru={key:0,class:"ss-dbg-empty"},Iu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Du={class:"ss-dbg-event-name"},ju=["href"],Fu=["viewBox","innerHTML"],Nu={class:"ss-dbg-event-data"},Bu=["title"],Uu=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=J(""),n=G(()=>{const i=t.data,a=i?(Array.isArray(i)?i:i.events)||[]:[];if(!s.value.trim())return a;const u=s.value.toLowerCase();return a.filter(h=>h.event.toLowerCase().includes(u)||h.data&&h.data.toLowerCase().includes(u))}),l=G(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:r}=pt(()=>n.value);return(i,a)=>(f(),p("div",null,[o("div",Lu,[He(o("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[ze,s.value]]),o("span",Ou,m(l.value),1)]),n.value.length===0?(f(),p("div",Ru,"No events captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:r,class:"ss-dbg-table"},[a[1]||(a[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Event"),o("th",null,"Data"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(n.value,u=>(f(),p("tr",{key:u.id},[o("td",Iu,m(u.id),1),o("td",Du,[se(m(u.event)+" ",1),e.dashboardPath?(f(),p("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(f(),p("svg",{width:"12",height:"12",viewBox:L(we)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:L(we)["open-external"].elements.join("")},null,8,Fu))],8,ju)):ae("",!0)]),o("td",Nu,[fe(Pr,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",{class:"ss-dbg-event-time",title:L(xt)(u.timestamp)},m(L(qe)(u.timestamp)),9,Bu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Hu={style:{position:"relative",height:"100%"}},Vu={key:0,class:"ss-dbg-email-preview"},Ku={class:"ss-dbg-email-preview-header"},zu={class:"ss-dbg-email-preview-meta"},Wu={key:0},qu=["srcdoc"],Ju={key:1,class:"ss-dbg-empty"},Gu={class:"ss-dbg-search-bar"},Qu={class:"ss-dbg-summary"},Yu={key:0,class:"ss-dbg-empty"},Xu=["onClick"],Zu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},ec=["title"],tc=["title"],sc={class:"ss-dbg-c-sql"},nc={class:"ss-dbg-c-muted"},lc={class:"ss-dbg-c-dim",style:{"text-align":"center"}},rc=["title"],oc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"EmailsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=J(""),n=J(null),l=G(()=>{const c=t.data,v=c?(Array.isArray(c)?c:c.emails)||[]:[];if(!s.value.trim())return v;const _=s.value.toLowerCase();return v.filter(y=>y.subject.toLowerCase().includes(_)||y.from.toLowerCase().includes(_)||y.to.toLowerCase().includes(_)||y.mailer&&y.mailer.toLowerCase().includes(_))}),r=G(()=>{const c=t.data;return`${(c?(Array.isArray(c)?c:c.emails)||[]:[]).length} emails`});function i(c){return{sent:"ss-dbg-email-status-sent",sending:"ss-dbg-email-status-sending",queued:"ss-dbg-email-status-queued",failed:"ss-dbg-email-status-failed"}[c]||""}function a(c){n.value=c}function u(){n.value=null}const{tableRef:h}=pt(()=>l.value);return(c,v)=>(f(),p("div",Hu,[n.value?(f(),p("div",Vu,[o("div",Ku,[o("div",zu,[o("div",null,[v[1]||(v[1]=o("strong",null,"From:",-1)),se(" "+m(n.value.from),1)]),o("div",null,[v[2]||(v[2]=o("strong",null,"To:",-1)),se(" "+m(n.value.to),1)]),n.value.cc?(f(),p("div",Wu,[v[3]||(v[3]=o("strong",null,"CC:",-1)),se(" "+m(n.value.cc),1)])):ae("",!0),o("div",null,[v[4]||(v[4]=o("strong",null,"Subject:",-1)),se(" "+m(n.value.subject),1)]),o("div",null,[v[5]||(v[5]=o("strong",null,"Status:",-1)),o("span",{class:V(["ss-dbg-email-status",i(n.value.status)])},m(n.value.status),3)])]),o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:u},"×")]),n.value.html?(f(),p("iframe",{key:0,class:"ss-dbg-email-iframe",srcdoc:n.value.html},null,8,qu)):(f(),p("div",Ju,"No HTML content"))])):ae("",!0),n.value?ae("",!0):(f(),p(R,{key:1},[o("div",Gu,[He(o("input",{"onUpdate:modelValue":v[0]||(v[0]=_=>s.value=_),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[ze,s.value]]),o("span",Qu,m(r.value),1)]),l.value.length===0?(f(),p("div",Yu,"No emails captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:h,class:"ss-dbg-table"},[v[6]||(v[6]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"From"),o("th",null,"To"),o("th",null,"Subject"),o("th",null,"Status"),o("th",null,"Mailer"),o("th",{title:"Attachments"},"📎"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(l.value,_=>(f(),p("tr",{key:_.id,class:"ss-dbg-email-row",onClick:y=>a(_)},[o("td",Zu,m(_.id),1),o("td",{class:"ss-dbg-c-secondary",title:_.from},m(_.from),9,ec),o("td",{class:"ss-dbg-c-secondary",title:_.to},m(_.to),9,tc),o("td",sc,m(_.subject),1),o("td",null,[o("span",{class:V(["ss-dbg-email-status",i(_.status)])},m(_.status),3)]),o("td",nc,m(_.mailer),1),o("td",lc,m(_.attachmentCount>0?_.attachmentCount:"-"),1),o("td",{class:"ss-dbg-event-time",title:L(xt)(_.timestamp)},m(L(qe)(_.timestamp)),9,rc)],8,Xu))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),ic={class:"ss-dbg-search-bar"},ac={class:"ss-dbg-summary"},uc={key:0,class:"ss-dbg-empty"},cc={class:"ss-dbg-c-text"},dc={class:"ss-dbg-c-muted"},fc={class:"ss-dbg-c-sql"},hc={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},pc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=J(""),n=G(()=>{const a=t.data,u=a?(Array.isArray(a)?a:a.routes)||[]:[];if(!s.value.trim())return u;const h=s.value.toLowerCase();return u.filter(c=>c.pattern.toLowerCase().includes(h)||c.handler.toLowerCase().includes(h)||c.method.toLowerCase().includes(h)||c.name&&c.name.toLowerCase().includes(h))}),l=G(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function r(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=pt(()=>n.value);return(a,u)=>(f(),p("div",null,[o("div",ic,[He(o("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>s.value=h),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[ze,s.value]]),o("span",ac,m(l.value),1)]),n.value.length===0?(f(),p("div",uc,"No routes found")):(f(),p("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=o("thead",null,[o("tr",null,[o("th",null,"Method"),o("th",null,"Pattern"),o("th",null,"Name"),o("th",null,"Handler"),o("th",null,"Middleware")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(n.value,(h,c)=>(f(),p("tr",{key:c,class:V({"ss-dbg-current-route":r(h)})},[o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${h.method.toLowerCase()}`)},m(h.method),3)]),o("td",cc,m(h.pattern),1),o("td",dc,m(h.name||"-"),1),o("td",fc,m(h.handler),1),o("td",hc,m(h.middleware.length>0?h.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),gc={class:"ss-dbg-log-filters"},bc=["onClick"],vc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},mc={class:"ss-dbg-search-bar"},yc={class:"ss-dbg-summary"},_c={key:0,class:"ss-dbg-empty"},xc={key:1},wc=["title"],kc=["title","onClick","onKeydown"],$c={key:1,class:"ss-dbg-log-reqid-empty"},Cc={class:"ss-dbg-log-msg"},Tc=["href"],Sc=["viewBox","innerHTML"],Ec=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=J("all"),r=J(""),i=J(""),a=G(()=>{const c=s.data;let v=c?(Array.isArray(c)?c:c.logs||c.entries)||[]:[];if(v=Oa(v,l.value),i.value.trim()){const _=i.value.trim().toLowerCase();v=v.filter(y=>{const I=ht(y);return I&&I.toLowerCase().includes(_)})}if(r.value.trim()){const _=r.value.trim().toLowerCase();v=v.filter(y=>Ar(y).toLowerCase().includes(_))}return v}),u=G(()=>{const c=s.data,v=c?(Array.isArray(c)?c:c.logs||c.entries)||[]:[];return`${a.value.length} of ${v.length} entries`});function h(c){i.value=c,n("filterByRequestId",c)}return(c,v)=>(f(),p("div",null,[o("div",gc,[(f(!0),p(R,null,X(L(Pa),_=>(f(),p("button",{key:_,type:"button",class:V(["ss-dbg-log-filter",{"ss-dbg-active":l.value===_}]),onClick:y=>l.value=_},m(_),11,bc))),128)),i.value?(f(),p("button",{key:0,type:"button",class:"ss-dbg-log-filter ss-dbg-active",onClick:v[0]||(v[0]=_=>i.value="")}," req: "+m(i.value.slice(0,8))+" x ",1)):ae("",!0),o("span",vc,m(a.value.length)+" entries",1)]),o("div",mc,[He(o("input",{"onUpdate:modelValue":v[1]||(v[1]=_=>r.value=_),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[ze,r.value]]),He(o("input",{"onUpdate:modelValue":v[2]||(v[2]=_=>i.value=_),class:"ss-dbg-search ss-dbg-reqid-input",placeholder:"Filter by request ID...",type:"text"},null,512),[[ze,i.value]]),o("span",yc,m(u.value),1)]),a.value.length===0?(f(),p("div",_c,"No log entries")):(f(),p("div",xc,[(f(!0),p(R,null,X(a.value,(_,y)=>(f(),p("div",{key:String(_.id||y),class:"ss-dbg-log-entry"},[o("span",{class:V(["ss-dbg-log-level",L(La)(L(Rn)(_))])},m(L(Rn)(_).toUpperCase()),3),o("span",{class:"ss-dbg-log-time",title:L(Fs)(_)?L(xt)(L(Fs)(_)):""},m(L(Fs)(_)?L(qe)(L(Fs)(_)):"-"),9,wc),L(ht)(_)?(f(),p("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:L(ht)(_),onClick:I=>h(L(ht)(_)),onKeydown:xr(I=>h(L(ht)(_)),["enter"])},m(L(ht)(_).slice(0,8)),41,kc)):(f(),p("span",$c,"-")),o("span",Cc,m(L(Ar)(_)),1),e.dashboardPath&&L(ht)(_)?(f(),p("a",{key:2,href:`${e.dashboardPath}#logs?requestId=${L(ht)(_)}`,target:"_blank",class:"ss-dbg-deeplink"},[(f(),p("svg",{viewBox:L(we)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:L(we)["open-external"].elements.join("")},null,8,Sc))],8,Tc)):ae("",!0)]))),128))]))]))}})},Symbol.toStringTag,{value:"Module"}));function In(e="",t){let s=null;return function(){return s||(s=new Pn({baseUrl:e,authToken:t})),s}}const Ac={key:0,class:"ss-dbg-empty"},Mc={class:"ss-dbg-empty"},Pc={class:"ss-dbg-tl-detail-header"},Lc={class:"ss-dbg-tl-detail-url"},Oc={class:"ss-dbg-tl-meta"},Rc={class:"ss-dbg-tl-legend"},Ic={id:"ss-dbg-tl-waterfall"},Dc={key:0,class:"ss-dbg-empty"},jc=["title"],Fc={class:"ss-dbg-tl-track"},Nc=["title"],Bc={class:"ss-dbg-tl-dur"},Uc={key:0,class:"ss-dbg-tl-warnings"},Hc={key:3,class:"ss-dbg-empty"},Vc={class:"ss-dbg-search-bar"},Kc={class:"ss-dbg-summary"},zc={key:0,class:"ss-dbg-empty"},Wc=["onClick"],qc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Jc={class:"ss-dbg-c-text"},Gc=["href"],Qc=["viewBox","innerHTML"],Yc={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Xc=["title"],Zc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=J(""),n=J(null),l=J(null),r=J(!1),i=J(null),a=In(t.baseUrl||"",t.authToken),u=G(()=>{const M=t.data;if(!M)return[];const x=Array.isArray(M)?M:M.traces||[];if(!s.value.trim())return x;const T=s.value.toLowerCase();return x.filter(j=>j.url.toLowerCase().includes(T)||j.method.toLowerCase().includes(T)||String(j.statusCode).includes(T))}),h={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"#525252"},c={request:"Request",middleware:"Middleware",db:"Database",view:"View",mail:"Mail",event:"Event",custom:"Custom"};function v(M){n.value===M.id?(n.value=null,l.value=null,i.value=null):(n.value=M.id,I(M.id))}function _(){n.value=null,l.value=null,i.value=null}let y=null;async function I(M){y&&y.abort(),y=new AbortController,r.value=!0,i.value=null,l.value=null;const x=t.debugEndpoint||"/admin/api/debug";try{const j=await a().get(`${x}/traces/${M}`);l.value=j}catch(T){if(T instanceof Error&&T.name==="AbortError")return;i.value=T instanceof Error?T.message:"Failed to load trace"}finally{r.value=!1}}const k=G(()=>l.value?.spans||[]),K=G(()=>l.value?.warnings||[]);function C(M,x){const T=x||1,j=T>0?M.startOffset/T*100:0,B=T>0?Math.max(M.duration/T*100,.5):.5;return{left:`${j}%`,width:`${B}%`,background:h[M.category]||h.custom}}const{tableRef:g}=pt(()=>u.value);$s(()=>{y&&y.abort()});function w(M){const x=On(M);return x==="very-slow"?"ss-dbg-very-slow":x==="slow"?"ss-dbg-slow":""}return(M,x)=>(f(),p("div",null,[n.value!==null?(f(),p(R,{key:0},[r.value?(f(),p("div",Ac,"Loading trace detail...")):i.value?(f(),p(R,{key:1},[o("div",{class:"ss-dbg-tl-detail-header"},[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:_},"← Back")]),o("div",Mc,"Error: "+m(i.value),1)],64)):l.value?(f(),p(R,{key:2},[o("div",Pc,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:_},"← Back"),o("span",{class:V(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),o("span",Lc,m(l.value.url),1),o("span",{class:V(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),o("span",Oc,m(L(We)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),o("div",Rc,[(f(),p(R,null,X(h,(T,j)=>o("span",{key:j,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:Et({background:T})},null,4),se(" "+m(c[j]||j),1)])),64))]),o("div",Ic,[k.value.length===0?(f(),p("div",Dc," No spans captured for this request ")):ae("",!0),(f(!0),p(R,null,X(k.value,T=>(f(),p("div",{key:T.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:T.label},m(T.label),9,jc),o("span",Fc,[o("span",{class:V(`ss-dbg-tl-bar ss-dbg-tl-bar-${T.category}`),style:Et(C(T,l.value.totalDuration)),title:`${T.label}: ${L(We)(T.duration)}`},null,14,Nc)]),o("span",Bc,m(L(We)(T.duration)),1)]))),128))]),K.value.length>0?(f(),p("div",Uc,[x[2]||(x[2]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(f(!0),p(R,null,X(K.value,(T,j)=>(f(),p("div",{key:j,class:"ss-dbg-tl-warning"},m(T),1))),128))])):ae("",!0)],64)):(f(),p("div",Hc,"Loading trace detail..."))],64)):(f(),p(R,{key:1},[o("div",Vc,[He(o("input",{"onUpdate:modelValue":x[0]||(x[0]=T=>s.value=T),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[ze,s.value]]),o("span",Kc,m(u.value.length)+" traces",1)]),u.value.length===0?(f(),p("div",zc,"No traces captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:g,class:"ss-dbg-table"},[x[3]||(x[3]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Method"),o("th",null,"URL"),o("th",null,"Status"),o("th",null,"Duration"),o("th",null,"Spans"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(u.value,T=>(f(),p("tr",{key:T.id,class:"ss-dbg-email-row",onClick:j=>v(T)},[o("td",qc,m(T.id),1),o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${T.method.toLowerCase()}`)},m(T.method),3)]),o("td",Jc,[se(m(T.url)+" ",1),e.dashboardPath?(f(),p("a",{key:0,href:`${e.dashboardPath}#timeline?id=${T.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:x[1]||(x[1]=Mn(()=>{},["stop"]))},[(f(),p("svg",{viewBox:L(we)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:L(we)["open-external"].elements.join("")},null,8,Qc))],8,Gc)):ae("",!0)]),o("td",null,[o("span",{class:V(`ss-dbg-status ss-dbg-status-${Math.floor(T.statusCode/100)}xx`)},m(T.statusCode),3)]),o("td",{class:V(["ss-dbg-duration",w(T.totalDuration)])},m(L(We)(T.totalDuration)),3),o("td",Yc,m(T.spanCount),1),o("td",{class:"ss-dbg-event-time",title:L(xt)(T.timestamp)},m(L(qe)(T.timestamp)),9,Xc)],8,Wc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),ed={class:"ss-dbg-cache-stats"},td={class:"ss-dbg-cache-stat"},sd={class:"ss-dbg-cache-stat-value"},nd={class:"ss-dbg-cache-stat"},ld={class:"ss-dbg-cache-stat-value"},rd={class:"ss-dbg-cache-stat"},od={class:"ss-dbg-cache-stat-value"},id={class:"ss-dbg-cache-stat"},ad={class:"ss-dbg-cache-stat-value"},ud={class:"ss-dbg-cache-stat"},cd={class:"ss-dbg-cache-stat-value"},dd={class:"ss-dbg-search-bar"},fd={class:"ss-dbg-summary"},hd={key:0,class:"ss-dbg-cache-detail"},pd={style:{"margin-top":"8px"}},gd={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},bd={key:0},vd={key:0,class:"ss-dbg-empty"},md=["onClick"],yd={class:"ss-dbg-c-sql"},_d={class:"ss-dbg-c-muted"},xd={class:"ss-dbg-c-dim"},wd={class:"ss-dbg-c-dim"},kd=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=J(""),n=J(null),l=G(()=>t.data||{}),r=G(()=>l.value.stats||{}),i=G(()=>{const u=l.value.keys||[];if(!s.value.trim())return u;const h=s.value.toLowerCase();return u.filter(c=>c.key.toLowerCase().includes(h))}),{tableRef:a}=pt(()=>i.value);return(u,h)=>(f(),p("div",null,[o("div",ed,[o("span",td,[h[2]||(h[2]=o("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),o("span",sd,m((r.value.hitRate||0).toFixed(0))+"%",1)]),o("span",nd,[h[3]||(h[3]=o("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),o("span",ld,m(r.value.totalHits||0),1)]),o("span",rd,[h[4]||(h[4]=o("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),o("span",od,m(r.value.totalMisses||0),1)]),o("span",id,[h[5]||(h[5]=o("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),o("span",ad,m(r.value.keyCount||0),1)]),o("span",ud,[h[6]||(h[6]=o("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),o("span",cd,m((r.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),o("div",dd,[He(o("input",{"onUpdate:modelValue":h[0]||(h[0]=c=>s.value=c),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[ze,s.value]]),o("span",fd,m(i.value.length)+" keys",1)]),n.value?(f(),p("div",hd,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:h[1]||(h[1]=c=>n.value=null)}," ← Back "),o("div",pd,[o("strong",null,m(n.value.key),1),o("span",gd,m(n.value.type)+" · TTL: "+m(L(Cr)(n.value.ttl)),1)]),n.value.value!==void 0?(f(),p("pre",bd,m(JSON.stringify(n.value.value,null,2)),1)):ae("",!0)])):(f(),p(R,{key:1},[i.value.length===0?(f(),p("div",vd,"No cache keys found")):(f(),p("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[h[7]||(h[7]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Type"),o("th",null,"TTL"),o("th",null,"Size")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(i.value,c=>(f(),p("tr",{key:c.key,class:"ss-dbg-email-row",onClick:v=>n.value=c},[o("td",yd,m(c.key),1),o("td",_d,m(c.type),1),o("td",xd,m(L(Cr)(c.ttl)),1),o("td",wd,m(L(Ca)(c.size)),1)],8,md))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),$d={class:"ss-dbg-job-stats-area"},Cd={class:"ss-dbg-job-stats"},Td={class:"ss-dbg-job-stat"},Sd={class:"ss-dbg-job-stat-value"},Ed={class:"ss-dbg-job-stat"},Ad={class:"ss-dbg-job-stat-value"},Md={class:"ss-dbg-job-stat"},Pd={class:"ss-dbg-job-stat-value"},Ld={class:"ss-dbg-job-stat"},Od={class:"ss-dbg-job-stat-value"},Rd={class:"ss-dbg-job-stat"},Id={class:"ss-dbg-job-stat-value ss-dbg-c-red"},Dd={class:"ss-dbg-log-filters"},jd=["onClick"],Fd={key:0,class:"ss-dbg-empty"},Nd={class:"ss-dbg-c-dim"},Bd={class:"ss-dbg-c-sql"},Ud={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Hd={class:"ss-dbg-duration"},Vd=["title"],Kd=["onClick"],zd=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=J("all"),r=G(()=>s.data||{}),i=G(()=>r.value.stats||r.value.overview||{}),a=G(()=>{const c=r.value.jobs||[];return l.value==="all"?c:c.filter(v=>v.status===l.value)});function u(c){n("retryJob",c)}const{tableRef:h}=pt(()=>a.value);return(c,v)=>(f(),p("div",null,[o("div",$d,[o("div",Cd,[o("span",Td,[v[0]||(v[0]=o("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),o("span",Sd,m(i.value.active??0),1)]),o("span",Ed,[v[1]||(v[1]=o("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),o("span",Ad,m(i.value.waiting??0),1)]),o("span",Md,[v[2]||(v[2]=o("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),o("span",Pd,m(i.value.delayed??0),1)]),o("span",Ld,[v[3]||(v[3]=o("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),o("span",Od,m(i.value.completed??0),1)]),o("span",Rd,[v[4]||(v[4]=o("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),o("span",Id,m(i.value.failed??0),1)])]),o("div",Dd,[(f(!0),p(R,null,X(L(ja),_=>(f(),p("button",{key:_,class:V(["ss-dbg-job-filter",{"ss-dbg-active":l.value===_}]),onClick:y=>l.value=_},m(_),11,jd))),128))])]),a.value.length===0?(f(),p("div",Fd,"No jobs found")):(f(),p("table",{key:1,ref_key:"tableRef",ref:h,class:"ss-dbg-table"},[v[5]||(v[5]=o("thead",null,[o("tr",null,[o("th",null,"ID"),o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Payload"),o("th",null,"Tries"),o("th",null,"Duration"),o("th",null,"Time"),o("th")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(a.value,_=>(f(),p("tr",{key:_.id},[o("td",Nd,m(_.id),1),o("td",Bd,m(_.name),1),o("td",null,[o("span",{class:V(`ss-dbg-badge ${L(Fa)(_.status)}`)},m(_.status),3)]),o("td",null,[fe(Pr,{value:_.payload||_.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",Ud,m(_.attempts),1),o("td",Hd,m(_.duration!==null?L(We)(_.duration):"-"),1),o("td",{class:"ss-dbg-event-time",title:L(xt)(_.timestamp||_.createdAt)},m(L(qe)(_.timestamp||_.createdAt)),9,Vd),o("td",null,[_.status==="failed"?(f(),p("button",{key:0,class:"ss-dbg-retry-btn",onClick:y=>u(_.id)}," Retry ",8,Kd)):ae("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Wd={key:0,class:"ss-dbg-empty"},qd={class:"ss-dbg-search-bar"},Jd={class:"ss-dbg-config-search-wrap"},Gd=["title"],Qd={class:"ss-dbg-summary"},Yd={key:0,class:"ss-dbg-empty"},Xd={key:1,class:"ss-dbg-config-sections"},Zd={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},ef={class:"ss-dbg-config-key"},tf={key:0,class:"ss-dbg-config-match"},sf={key:0,class:"ss-dbg-config-redacted"},nf={key:0,class:"ss-dbg-config-match"},lf=["onClick"],rf=["onClick"],of={class:"ss-dbg-config-toggle"},af={class:"ss-dbg-config-key"},uf={key:0,class:"ss-dbg-config-match"},cf={class:"ss-dbg-config-count"},df={key:0,class:"ss-dbg-config-table-wrap"},ff={class:"ss-dbg-table"},hf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},pf={key:0,class:"ss-dbg-config-match"},gf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},bf={key:0,class:"ss-dbg-redacted-wrap"},vf={key:0,class:"ss-dbg-config-match"},mf=["onClick"],yf={key:0,class:"ss-dbg-empty"},_f={key:1,class:"ss-dbg-config-table-wrap"},xf={class:"ss-dbg-table"},wf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},kf={key:0,class:"ss-dbg-config-match"},$f={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Cf={key:0,class:"ss-dbg-redacted-wrap"},Tf={key:0,class:"ss-dbg-config-match"},Sf=["onClick"],Ef=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=J("app"),n=J(""),l=J(""),r=J(!1),i=J(new Set),a=J(null);let u=null;dt(n,x=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=x.trim().toLowerCase()},200)});function h(x){return nu(x)}function c(x){if(x==null)return"null";if(typeof x=="boolean"||typeof x=="number")return String(x);if(typeof x=="string")return x;if(Array.isArray(x))return JSON.stringify(x);try{return JSON.stringify(x)}catch{return String(x)}}function v(x){return x==null?"ss-dbg-config-val-null":typeof x=="boolean"?x?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof x=="number"?"ss-dbg-config-val-number":Array.isArray(x)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function _(x,T){navigator.clipboard.writeText(x).then(()=>{a.value=T,setTimeout(()=>{a.value===T&&(a.value=null)},1500)})}function y(){const x=s.value==="app"?t.data?.app:t.data?.env;x&&_(JSON.stringify(x,null,2),"__all_json__")}function I(x,T){return eu(x,T,l.value)}function k(x){if(!l.value)return[{text:x,match:!1}];const T=l.value,j=x.toLowerCase(),B=[];let Y=0,ce=j.indexOf(T);for(;ce!==-1;)ce>Y&&B.push({text:x.slice(Y,ce),match:!1}),B.push({text:x.slice(ce,ce+T.length),match:!0}),Y=ce+T.length,ce=j.indexOf(T,Y);return Y<x.length&&B.push({text:x.slice(Y),match:!1}),B.length?B:[{text:x,match:!1}]}const K=G(()=>{const x=t.data?.app;if(!x)return[];const T=[];for(const[j,B]of Object.entries(x))if(B!==null&&typeof B=="object"&&!Array.isArray(B)){const ce=Object.entries(B).filter(([Le,Je])=>I(Le,Je)).map(([Le,Je])=>({key:Le,value:Je,fullKey:`${j}.${Le}`}));(ce.length>0||!l.value)&&T.push({key:j,entries:ce,isFlat:!1})}else I(j,B)&&T.push({key:j,entries:[{key:j,value:B,fullKey:j}],isFlat:!0});return T}),C=G(()=>{const x=t.data?.env;return x?Object.entries(x).filter(([T,j])=>I(T,j)).map(([T,j])=>({key:T,value:j})):[]});function g(x){i.value.has(x)?i.value.delete(x):i.value.add(x)}function w(){for(const x of K.value)x.isFlat||i.value.add(x.key)}function M(){i.value.clear()}return dt(l,x=>{if(x)for(const T of K.value)!T.isFlat&&T.entries.length>0&&i.value.add(T.key)}),(x,T)=>(f(),p("div",null,[e.data?(f(),p(R,{key:1},[o("div",qd,[o("button",{class:V(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:T[0]||(T[0]=j=>s.value="app")}," App Config ",2),o("button",{class:V(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:T[1]||(T[1]=j=>s.value="env")}," Environment ",2),o("div",Jd,[He(o("input",{"onUpdate:modelValue":T[2]||(T[2]=j=>n.value=j),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[ze,n.value]])]),s.value==="app"&&!l.value?(f(),p(R,{key:0},[o("button",{class:"ss-dbg-btn-clear",onClick:w},"Expand All"),o("button",{class:"ss-dbg-btn-clear",onClick:M},"Collapse All")],64)):ae("",!0),o("button",{class:V(["ss-dbg-btn-clear",{"ss-dbg-active":r.value}]),onClick:T[3]||(T[3]=j=>r.value=!r.value),title:r.value?"Hide redacted values":"Show redacted values"},m(r.value?"Hide Secrets":"Show Secrets"),11,Gd),o("button",{class:"ss-dbg-btn-clear",onClick:y,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),o("span",Qd,[s.value==="app"?(f(),p(R,{key:0},[se(m(K.value.length)+" sections ",1)],64)):(f(),p(R,{key:1},[se(m(C.value.length)+" variables ",1)],64))])]),s.value==="app"?(f(),p(R,{key:0},[K.value.length===0?(f(),p("div",Yd,m(l.value?"No matching config entries":"No app config data"),1)):(f(),p("div",Xd,[(f(!0),p(R,null,X(K.value,j=>(f(),p("div",{key:j.key,class:"ss-dbg-config-section"},[j.isFlat?(f(),p("div",Zd,[o("span",ef,[(f(!0),p(R,null,X(k(j.key),(B,Y)=>(f(),p(R,{key:Y},[B.match?(f(),p("span",tf,m(B.text),1)):(f(),p(R,{key:1},[se(m(B.text),1)],64))],64))),128))]),T[7]||(T[7]=o("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),h(j.key)&&!r.value?(f(),p("span",sf,[...T[6]||(T[6]=[o("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(f(),p("span",{key:1,class:V(v(j.entries[0].value))},[(f(!0),p(R,null,X(k(c(j.entries[0].value)),(B,Y)=>(f(),p(R,{key:Y},[B.match?(f(),p("span",nf,m(B.text),1)):(f(),p(R,{key:1},[se(m(B.text),1)],64))],64))),128))],2)),o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===j.key}]),onClick:Mn(B=>_(c(j.entries[0].value),j.key),["stop"]),title:"Copy value"},m(a.value===j.key?"✓":"⎘"),11,lf)])):(f(),p(R,{key:1},[o("div",{class:"ss-dbg-config-section-header",onClick:B=>g(j.key)},[o("span",of,m(i.value.has(j.key)?"▼":"▶"),1),o("span",af,[(f(!0),p(R,null,X(k(j.key),(B,Y)=>(f(),p(R,{key:Y},[B.match?(f(),p("span",uf,m(B.text),1)):(f(),p(R,{key:1},[se(m(B.text),1)],64))],64))),128))]),o("span",cf,m(j.entries.length)+" keys",1)],8,rf),i.value.has(j.key)?(f(),p("div",df,[o("table",ff,[T[9]||(T[9]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(f(!0),p(R,null,X(j.entries,B=>(f(),p("tr",{key:B.fullKey},[o("td",hf,[(f(!0),p(R,null,X(k(B.key),(Y,ce)=>(f(),p(R,{key:ce},[Y.match?(f(),p("span",pf,m(Y.text),1)):(f(),p(R,{key:1},[se(m(Y.text),1)],64))],64))),128))]),o("td",gf,[h(B.key)&&!r.value?(f(),p("span",bf,[T[8]||(T[8]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:T[4]||(T[4]=Y=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(f(),p("span",{key:1,class:V(v(B.value))},[(f(!0),p(R,null,X(k(c(B.value)),(Y,ce)=>(f(),p(R,{key:ce},[Y.match?(f(),p("span",vf,m(Y.text),1)):(f(),p(R,{key:1},[se(m(Y.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===B.fullKey}]),onClick:Y=>_(c(B.value),B.fullKey),title:"Copy value"},m(a.value===B.fullKey?"✓":"⎘"),11,mf)])]))),128))])])])):ae("",!0)],64))]))),128))]))],64)):(f(),p(R,{key:1},[C.value.length===0?(f(),p("div",yf,m(l.value?"No matching environment variables":"No environment data"),1)):(f(),p("div",_f,[o("table",xf,[T[11]||(T[11]=o("thead",null,[o("tr",null,[o("th",null,"Variable"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(f(!0),p(R,null,X(C.value,j=>(f(),p("tr",{key:j.key},[o("td",wf,[(f(!0),p(R,null,X(k(j.key),(B,Y)=>(f(),p(R,{key:Y},[B.match?(f(),p("span",kf,m(B.text),1)):(f(),p(R,{key:1},[se(m(B.text),1)],64))],64))),128))]),o("td",$f,[h(j.key)&&!r.value?(f(),p("span",Cf,[T[10]||(T[10]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:T[5]||(T[5]=B=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(f(),p("span",{key:1,class:V(v(j.value))},[(f(!0),p(R,null,X(k(c(j.value)),(B,Y)=>(f(),p(R,{key:Y},[B.match?(f(),p("span",Tf,m(B.text),1)):(f(),p(R,{key:1},[se(m(B.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${j.key}`}]),onClick:B=>_(c(j.value),`env-${j.key}`),title:"Copy value"},m(a.value===`env-${j.key}`?"✓":"⎘"),11,Sf)])]))),128))])])]))],64))],64)):(f(),p("div",Wd,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),Af={key:0,class:"ss-dbg-empty"},Mf={key:1,class:"ss-dbg-empty"},Pf={key:2,class:"ss-dbg-empty"},Lf={class:"ss-dbg-info-cards"},Of={class:"ss-dbg-info-card-label"},Rf={class:"ss-dbg-info-card-value"},If={key:0,class:"ss-dbg-empty"},Df={key:1,class:"ss-dbg-table"},jf={style:{"font-family":"monospace","font-size":"11px"}},Ff={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},Nf={class:"ss-dbg-c-red"},Bf={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},Uf={style:{"font-size":"11px"}},Hf=["onClick"],Vf=["onClick"],Kf={key:2,class:"ss-dbg-empty"},zf={key:3,class:"ss-dbg-table"},Wf={class:"ss-dbg-bar"},qf={class:"ss-dbg-bar-track"},Jf={key:4,class:"ss-dbg-empty"},Gf={key:5,class:"ss-dbg-table"},Qf={class:"ss-dbg-c-dim"},Yf={key:6,class:"ss-dbg-empty"},Xf={key:7,class:"ss-dbg-table"},Zf={class:"ss-dbg-c-dim"},eh={class:"ss-dbg-table"},th={style:{"font-family":"monospace","font-size":"11px"}},sh={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},nh={style:{"font-family":"monospace","font-size":"11px"}},lh={class:"ss-dbg-table"},rh={class:"ss-dbg-table"},oh={style:{"font-family":"monospace","font-size":"11px"}},ih={style:{"font-family":"monospace","font-size":"11px"}},ah={style:{"font-family":"monospace","font-size":"11px"}},uh={style:{"font-size":"11px"}},ch=3e3,dh=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=J(null),n=J(!0),l=J(null);let r=null;const i=In(t.baseUrl||"",t.authToken);async function a(){const C=t.debugEndpoint||"/admin/api/debug";try{const w=await i().get(`${C}/diagnostics`);s.value=w,l.value=null,n.value=!1}catch(g){if(g instanceof Is){l.value=g,n.value=!1,r&&(clearInterval(r),r=null);return}l.value=g instanceof Error?g:new Error(String(g)),n.value=!1}}yt(()=>{n.value=!0,l.value=null,a(),r=setInterval(a,ch)}),$s(()=>{r&&(clearInterval(r),r=null)});const u=J(new Set);function h(C){u.value.has(C)?u.value.delete(C):u.value.add(C)}function c(C){const g=Xa(C);return g==="ok"?"ss-dbg-dot-ok":g==="err"?"ss-dbg-dot-err":""}function v(C){return C.debounceMs!==void 0?`${We(C.debounceMs)} (debounce)`:C.intervalMs!==void 0?We(C.intervalMs):"-"}const _=G(()=>s.value||t.data||null),y=G(()=>_.value||{}),I=G(()=>y.value.buffers?Object.entries(y.value.buffers).map(([C,g])=>({name:C.charAt(0).toUpperCase()+C.slice(1),...g,percent:Ga(g.current,g.max)})):[]),k=G(()=>y.value.timers?Object.entries(y.value.timers).map(([C,g])=>({key:C,label:Va(C),...g,interval:v(g)})):[]),K=G(()=>{if(!y.value)return[];const C=[];if(y.value.transmit&&C.push({key:"transmit",label:"Transmit (SSE)",status:y.value.transmit.available?"connected":"unavailable",details:y.value.transmit.available?`Channels: ${y.value.transmit.channels.join(", ")}`:"Not installed"}),y.value.integrations)for(const[g,w]of Object.entries(y.value.integrations))C.push({key:g,label:za(g),status:Wa(w),details:qa(g,w)});return C});return(C,g)=>(f(),p("div",null,[n.value&&!_.value?(f(),p("div",Af,"Loading diagnostics...")):l.value?(f(),p("div",Mf,"Error: "+m(l.value.message),1)):_.value?(f(),p(R,{key:3},[g[41]||(g[41]=o("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),o("div",Lf,[(f(!0),p(R,null,X([{label:"Version",value:y.value.package?.version||"-"},{label:"Node.js",value:y.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:y.value.package?.adonisVersion||"-"},{label:"Uptime",value:L($a)(y.value.package?.uptime)},{label:"Renderer",value:y.value.devToolbar?.renderer||"preact"}],w=>(f(),p("div",{key:w.label,class:"ss-dbg-info-card"},[o("span",Of,m(w.label),1),o("span",Rf,m(w.value),1)]))),128))]),g[42]||(g[42]=o("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),y.value.collectors?.length?(f(),p("table",Df,[g[4]||(g[4]=o("thead",null,[o("tr",null,[o("th",null,"Collector"),o("th",null,"Status"),o("th",null,"Last Error"),o("th",null,"Config")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(y.value.collectors,w=>(f(),p("tr",{key:w.name},[o("td",null,[o("span",jf,m(w.name),1),w.label&&w.label!==w.name?(f(),p("span",Ff,m(w.label),1)):ae("",!0)]),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(w.status)])},null,2),se(" "+m(w.status),1)]),o("td",Nf,[w.lastError?(f(),p(R,{key:0},[se(m(w.lastError)+" ",1),o("span",Bf,m(L(qe)(w.lastErrorAt??0)),1)],64)):(f(),p(R,{key:1},[se("-")],64))]),o("td",Uf,[Object.keys(w.config||{}).length?(f(!0),p(R,{key:0},X(L(Ja)(w.config),M=>(f(),p("span",{key:M.key,style:{"margin-right":"8px"}},[se(m(M.key)+"=",1),M.secret&&!u.value.has(`collector-${w.name}-${M.key}`)?(f(),p("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:x=>h(`collector-${w.name}-${M.key}`)},"••••••••",8,Hf)):(f(),p(R,{key:1},[o("span",null,m(M.value),1),M.secret?(f(),p("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:x=>h(`collector-${w.name}-${M.key}`)}," Hide ",8,Vf)):ae("",!0)],64))]))),128)):(f(),p(R,{key:1},[se("-")],64))])]))),128))])])):(f(),p("div",If,"No collectors")),g[43]||(g[43]=o("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),I.value.length?(f(),p("table",zf,[g[5]||(g[5]=o("thead",null,[o("tr",null,[o("th",null,"Buffer"),o("th",null,"Usage"),o("th",null,"Fill %")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(I.value,w=>(f(),p("tr",{key:w.name},[o("td",null,m(w.name),1),o("td",null,m(w.current.toLocaleString())+" / "+m(w.max.toLocaleString()),1),o("td",null,[o("div",Wf,[o("div",qf,[o("div",{class:V(["ss-dbg-bar-fill",w.percent>=100?"ss-dbg-bar-fill-warn":""]),style:Et({width:w.percent+"%"})},null,6)]),o("span",{class:V(["ss-dbg-bar-pct",w.percent>=100?"ss-dbg-bar-pct-warn":""])},m(w.percent)+"%",3)])])]))),128))])])):(f(),p("div",Kf,"No buffer data")),g[44]||(g[44]=o("div",{class:"ss-dbg-internals-title"},"Timers",-1)),k.value.length?(f(),p("table",Gf,[g[6]||(g[6]=o("thead",null,[o("tr",null,[o("th",null,"Timer"),o("th",null,"Status"),o("th",null,"Interval")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(k.value,w=>(f(),p("tr",{key:w.key},[o("td",null,m(w.label),1),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(w.active?"active":"inactive")])},null,2),se(" "+m(w.active?"active":"inactive"),1)]),o("td",Qf,m(w.interval),1)]))),128))])])):(f(),p("div",Jf,"No timer data")),g[45]||(g[45]=o("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),K.value.length?(f(),p("table",Xf,[g[7]||(g[7]=o("thead",null,[o("tr",null,[o("th",null,"Integration"),o("th",null,"Status"),o("th",null,"Details")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(K.value,w=>(f(),p("tr",{key:w.key},[o("td",null,m(w.label),1),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(w.status)])},null,2),se(" "+m(w.status),1)]),o("td",Zf,m(w.details),1)]))),128))])])):(f(),p("div",Yf,"No integration data")),y.value.storage?(f(),p(R,{key:8},[g[16]||(g[16]=o("div",{class:"ss-dbg-internals-title"},"Storage",-1)),o("table",eh,[g[14]||(g[14]=o("thead",null,[o("tr",null,[o("th",null,"Metric"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[g[8]||(g[8]=o("td",null,"Status",-1)),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(y.value.storage.ready?"ready":"unavailable")])},null,2),se(" "+m(y.value.storage.ready?"ready":"not ready"),1)])]),o("tr",null,[g[9]||(g[9]=o("td",null,"DB Path",-1)),o("td",th,m(y.value.storage.dbPath),1)]),o("tr",null,[g[10]||(g[10]=o("td",null,"File Size",-1)),o("td",null,m(y.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[g[11]||(g[11]=o("td",null,"WAL Size",-1)),o("td",null,m(y.value.storage.walSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[g[12]||(g[12]=o("td",null,"Retention",-1)),o("td",null,m(y.value.storage.retentionDays)+" days",1)]),o("tr",null,[g[13]||(g[13]=o("td",null,"Last Cleanup",-1)),o("td",null,m(L(qe)(y.value.storage.lastCleanupAt??0)),1)])])]),y.value.storage.tables?.length?(f(),p("table",sh,[g[15]||(g[15]=o("thead",null,[o("tr",null,[o("th",null,"Table"),o("th",null,"Rows")])],-1)),o("tbody",null,[(f(!0),p(R,null,X(y.value.storage.tables,w=>(f(),p("tr",{key:w.name},[o("td",nh,m(w.name),1),o("td",null,m(w.rowCount.toLocaleString()),1)]))),128))])])):ae("",!0)],64)):ae("",!0),g[46]||(g[46]=o("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),o("table",lh,[g[24]||(g[24]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[g[17]||(g[17]=o("td",null,"intervalMs",-1)),o("td",null,m(y.value.config?.intervalMs),1)]),o("tr",null,[g[18]||(g[18]=o("td",null,"transport",-1)),o("td",null,m(y.value.config?.transport),1)]),o("tr",null,[g[19]||(g[19]=o("td",null,"channelName",-1)),o("td",null,m(y.value.config?.channelName),1)]),o("tr",null,[g[20]||(g[20]=o("td",null,"endpoint",-1)),o("td",null,m(y.value.config?.endpoint===!1?"false":y.value.config?.endpoint),1)]),o("tr",null,[g[21]||(g[21]=o("td",null,"skipInTest",-1)),o("td",null,m(y.value.config?.skipInTest),1)]),o("tr",null,[g[22]||(g[22]=o("td",null,"onStats callback",-1)),o("td",null,m(y.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),o("tr",null,[g[23]||(g[23]=o("td",null,"shouldShow callback",-1)),o("td",null,m(y.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),g[47]||(g[47]=o("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),o("table",rh,[g[40]||(g[40]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[g[25]||(g[25]=o("td",null,"enabled",-1)),o("td",null,m(y.value.devToolbar?.enabled),1)]),o("tr",null,[g[26]||(g[26]=o("td",null,"tracing",-1)),o("td",null,m(y.value.devToolbar?.tracing),1)]),o("tr",null,[g[27]||(g[27]=o("td",null,"dashboard",-1)),o("td",null,m(y.value.devToolbar?.dashboard),1)]),o("tr",null,[g[28]||(g[28]=o("td",null,"dashboardPath",-1)),o("td",oh,m(y.value.devToolbar?.dashboardPath),1)]),o("tr",null,[g[29]||(g[29]=o("td",null,"debugEndpoint",-1)),o("td",ih,[u.value.has("cfg-debugEndpoint")?(f(),p(R,{key:1},[se(m(y.value.devToolbar?.debugEndpoint)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:g[1]||(g[1]=w=>h("cfg-debugEndpoint"))}," Hide ")],64)):(f(),p("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:g[0]||(g[0]=w=>h("cfg-debugEndpoint"))},"••••••••"))])]),o("tr",null,[g[30]||(g[30]=o("td",null,"maxQueries",-1)),o("td",null,m(y.value.devToolbar?.maxQueries),1)]),o("tr",null,[g[31]||(g[31]=o("td",null,"maxEvents",-1)),o("td",null,m(y.value.devToolbar?.maxEvents),1)]),o("tr",null,[g[32]||(g[32]=o("td",null,"maxEmails",-1)),o("td",null,m(y.value.devToolbar?.maxEmails),1)]),o("tr",null,[g[33]||(g[33]=o("td",null,"maxTraces",-1)),o("td",null,m(y.value.devToolbar?.maxTraces),1)]),o("tr",null,[g[34]||(g[34]=o("td",null,"slowQueryThresholdMs",-1)),o("td",null,m(y.value.devToolbar?.slowQueryThresholdMs),1)]),o("tr",null,[g[35]||(g[35]=o("td",null,"retentionDays",-1)),o("td",null,m(y.value.devToolbar?.retentionDays),1)]),o("tr",null,[g[36]||(g[36]=o("td",null,"dbPath",-1)),o("td",ah,[u.value.has("cfg-dbPath")?(f(),p(R,{key:1},[se(m(y.value.devToolbar?.dbPath)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:g[3]||(g[3]=w=>h("cfg-dbPath"))}," Hide ")],64)):(f(),p("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:g[2]||(g[2]=w=>h("cfg-dbPath"))},"••••••••"))])]),o("tr",null,[g[37]||(g[37]=o("td",null,"persistDebugData",-1)),o("td",null,m(y.value.devToolbar?.persistDebugData),1)]),o("tr",null,[g[38]||(g[38]=o("td",null,"excludeFromTracing",-1)),o("td",uh,m(y.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),o("tr",null,[g[39]||(g[39]=o("td",null,"customPanes",-1)),o("td",null,m(y.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(f(),p("div",Pf,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),fh={key:0,class:"ss-dbg-search-bar"},hh=["placeholder"],ph={class:"ss-dbg-summary"},gh={key:1,class:"ss-dbg-empty"},bh={key:2,class:"ss-dbg-empty"},vh=["onClick"],mh={key:0,class:"ss-dbg-c-dim"},yh=["title"],_h=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=J([]),n=J(!1),l=J(""),r=In(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const C=await r().fetch(t.pane.endpoint),w=(t.pane.dataKey||t.pane.id).split(".");let M=C;for(const x of w)M=M?.[x];s.value=Array.isArray(M)?M:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=G(()=>{if(!l.value.trim())return s.value;const C=l.value.toLowerCase(),g=t.pane.columns.filter(w=>w.searchable).map(w=>w.key);return g.length===0?s.value:s.value.filter(w=>g.some(M=>{const x=w[M];return x==null?!1:String(x).toLowerCase().includes(C)}))});function h(C,g){if(C==null)return"-";switch(g.format||"text"){case"time":return typeof C=="number"?qe(C):String(C);case"timeAgo":return qe(C);case"duration":return We(typeof C=="number"?C:parseFloat(String(C)));case"method":return String(C);case"json":{let M=C;if(typeof C=="string")try{M=JSON.parse(C)}catch{}return ss(M,80)}case"badge":return String(C);default:return String(C)}}function c(C,g){if(g.format==="time"||g.format==="timeAgo")return xt(C)}function v(C){return C==null}function _(C){const g=typeof C=="number"?C:parseFloat(String(C));if(isNaN(g))return"ss-dbg-duration";const w=On(g);return w==="very-slow"?"ss-dbg-duration ss-dbg-very-slow":w==="slow"?"ss-dbg-duration ss-dbg-slow":"ss-dbg-duration"}function y(C,g){if(g.format==="badge"&&g.badgeColorMap){const w=String(C).toLowerCase();return g.badgeColorMap[w]||"muted"}return""}function I(C){return`ss-dbg-method ss-dbg-method-${String(C).toLowerCase()}`}function k(){s.value=[]}const{tableRef:K}=pt(()=>u.value);return yt(()=>{a()}),(C,g)=>(f(),p("div",null,[e.pane.search?(f(),p("div",fh,[He(o("input",{"onUpdate:modelValue":g[0]||(g[0]=w=>l.value=w),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,hh),[[ze,l.value]]),o("span",ph,m(u.value.length)+" items",1),e.pane.clearable?(f(),p("button",{key:0,class:"ss-dbg-btn-clear",onClick:k},"Clear")):ae("",!0)])):ae("",!0),n.value?(f(),p("div",gh,"Loading...")):u.value.length===0?(f(),p("div",bh,"No data")):(f(),p("table",{key:3,ref_key:"tableRef",ref:K,class:"ss-dbg-table"},[o("thead",null,[o("tr",null,[(f(!0),p(R,null,X(e.pane.columns,w=>(f(),p("th",{key:w.key},m(w.label),1))),128))])]),o("tbody",null,[(f(!0),p(R,null,X(u.value,(w,M)=>(f(),p("tr",{key:String(w.id??M)},[(f(!0),p(R,null,X(e.pane.columns,x=>(f(),p("td",{key:x.key,class:V({"ss-dbg-filterable":x.filterable}),onClick:T=>x.filterable?l.value=String(w[x.key]):void 0},[v(w[x.key])?(f(),p("span",mh,"-")):x.format==="time"||x.format==="timeAgo"?(f(),p("span",{key:1,class:"ss-dbg-event-time",title:c(w[x.key],x)},m(h(w[x.key],x)),9,yh)):x.format==="duration"?(f(),p("span",{key:2,class:V(_(w[x.key]))},m(h(w[x.key],x)),3)):x.format==="method"?(f(),p("span",{key:3,class:V(I(w[x.key]))},m(h(w[x.key],x)),3)):x.format==="badge"?(f(),p("span",{key:4,class:V(`ss-dbg-badge ss-dbg-badge-${y(w[x.key],x)}`)},m(h(w[x.key],x)),3)):(f(),p(R,{key:5},[se(m(h(w[x.key],x)),1)],64))],10,vh))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
3
|
+
`,...Co(l)),console.warn(...r)}Ne(),cn=!1}function $o(){let e=zt[zt.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 n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Co(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
|
|
4
|
+
`],...To(s))}),t}function To({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${rr(e.component,e.type,n)}`,r=">"+s;return e.props?[l,...So(e.props),r]:[l+r]}function So(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...pl(n,e[n]))}),s.length>3&&t.push(" ..."),t}function pl(e,t,s){return de(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:pe(t)?(t=pl(e,te(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):W(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=te(t),s?t:[`${e}=`,t])}function Pt(e,t,s,n){try{return n?e(...n):e()}catch(l){Wt(l,t,s)}}function Be(e,t,s,n){if(W(e)){const l=Pt(e,t,s,n);return l&&Bn(l)&&l.catch(r=>{Wt(r,t,s)}),l}if(z(e)){const l=[];for(let r=0;r<e.length;r++)l.push(Be(e[r],t,s,n));return l}}function Wt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||oe;if(t){let a=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const c=a.ec;if(c){for(let x=0;x<c.length;x++)if(c[x](e,u,h)===!1)return}a=a.parent}if(r){Fe(),Pt(r,null,10,[e,u,h]),Ne();return}}Eo(e,s,l,n,i)}function Eo(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ye=[];let Ue=-1;const Lt=[];let ct=null,Ot=0;const gl=Promise.resolve();let ms=null;function bl(e){const t=ms||gl;return e?t.then(this?e.bind(this):e):t}function Ao(e){let t=Ue+1,s=ye.length;for(;t<s;){const n=t+s>>>1,l=ye[n],r=qt(l);r<e||r===e&&l.flags&2?t=n+1:s=n}return t}function dn(e){if(!(e.flags&1)){const t=qt(e),s=ye[ye.length-1];!s||!(e.flags&2)&&t>=qt(s)?ye.push(e):ye.splice(Ao(t),0,e),e.flags|=1,vl()}}function vl(){ms||(ms=gl.then(_l))}function Mo(e){z(e)?Lt.push(...e):ct&&e.id===-1?ct.splice(Ot+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1),vl()}function ml(e,t,s=Ue+1){for(;s<ye.length;s++){const n=ye[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ye.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function yl(e){if(Lt.length){const t=[...new Set(Lt)].sort((s,n)=>qt(s)-qt(n));if(Lt.length=0,ct){ct.push(...t);return}for(ct=t,Ot=0;Ot<ct.length;Ot++){const s=ct[Ot];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ct=null,Ot=0}}const qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _l(e){try{for(Ue=0;Ue<ye.length;Ue++){const t=ye[Ue];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ue<ye.length;Ue++){const t=ye[Ue];t&&(t.flags&=-2)}Ue=-1,ye.length=0,yl(),ms=null,(ye.length||Lt.length)&&_l()}}let Me=null,xl=null;function ys(e){const t=Me;return Me=e,xl=e&&e.type.__scopeId||null,t}function Po(e,t=Me,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&As(-1);const r=ys(t);let i;try{i=e(...l)}finally{ys(r),n._d&&As(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function He(e,t){if(Me===null)return e;const s=Os(Me),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[r,i,a,u=oe]=t[l];r&&(W(r)&&(r={mounted:r,updated:r}),r.deep&&st(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function mt(e,t,s,n){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(Fe(),Be(u,s,8,[e.el,a,e,t]),Ne())}}function Lo(e,t){if(me){let s=me.provides;const n=me.parent&&me.parent.provides;n===s&&(s=me.provides=Object.create(n)),s[e]=t}}function _s(e,t,s=!1){const n=Mi();if(n||Rt){let l=Rt?Rt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&W(t)?t.call(n&&n.proxy):t}}const Oo=Symbol.for("v-scx"),Ro=()=>_s(Oo);function dt(e,t,s){return wl(e,t,s)}function wl(e,t,s=oe){const{immediate:n,deep:l,flush:r,once:i}=s,a=he({},s),u=t&&n||!t&&r!=="post";let h;if(Dt){if(r==="sync"){const g=Ro();h=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=De,g.resume=De,g.pause=De,g}}const c=me;a.call=(g,S,w)=>Be(g,c,S,w);let x=!1;r==="post"?a.scheduler=g=>{$e(g,c&&c.suspense)}:r!=="sync"&&(x=!0,a.scheduler=(g,S)=>{S?g():dn(g)}),a.augmentJob=g=>{t&&(g.flags|=4),x&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const _=ko(e,t,a);return Dt&&(h?h.push(_):u&&_()),_}function Io(e,t,s){const n=this.proxy,l=de(e)?e.includes(".")?kl(n,e):()=>n[e]:e.bind(n,n);let r;W(t)?r=t:(r=t.handler,s=t);const i=ts(this),a=wl(l,r.bind(n),s);return i(),a}function kl(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Do=Symbol("_vte"),jo=e=>e.__isTeleport,Fo=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 _e(e,t){return W(e)?he({name:e.name},t,{setup:e}):e}function hn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $l(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const xs=new WeakMap;function Jt(e,t,s,n,l=!1){if(z(e)){e.forEach((w,K)=>Jt(w,t&&(z(t)?t[K]:t),s,n,l));return}if(Gt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Jt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Os(n.component):n.el,i=l?null:r,{i:a,r:u}=e,h=t&&t.r,c=a.refs===oe?a.refs={}:a.refs,x=a.setupState,_=te(x),g=x===oe?jn:w=>$l(c,w)?!1:ne(_,w),S=(w,K)=>!(K&&$l(c,K));if(h!=null&&h!==u){if(Cl(t),de(h))c[h]=null,g(h)&&(x[h]=null);else if(pe(h)){const w=t;S(h,w.k)&&(h.value=null),w.k&&(c[w.k]=null)}}if(W(u))Pt(u,a,12,[i,c]);else{const w=de(u),K=pe(u);if(w||K){const C=()=>{if(e.f){const b=w?g(u)?x[u]:c[u]:S()||!e.k?u.value:c[e.k];if(l)z(b)&&Vs(b,r);else if(z(b))b.includes(r)||b.push(r);else if(w)c[u]=[r],g(u)&&(x[u]=c[u]);else{const k=[r];S(u,e.k)&&(u.value=k),e.k&&(c[e.k]=k)}}else w?(c[u]=i,g(u)&&(x[u]=i)):K&&(S(u,e.k)&&(u.value=i),e.k&&(c[e.k]=i))};if(i){const b=()=>{C(),xs.delete(e)};b.id=-1,xs.set(e,b),$e(b,s)}else Cl(e),C()}}}function Cl(e){const t=xs.get(e);t&&(t.flags|=8,xs.delete(e))}const Tl=e=>e.nodeType===8;cs().requestIdleCallback,cs().cancelIdleCallback;function No(e,t){if(Tl(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Tl(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Gt=e=>!!e.type.__asyncLoader;function Ie(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:r,timeout:i,suspensible:a=!0,onError:u}=e;let h=null,c,x=0;const _=()=>(x++,h=null,g()),g=()=>{let S;return h||(S=h=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),u)return new Promise((K,C)=>{u(w,()=>K(_()),()=>C(w),x+1)});throw w}).then(w=>S!==h&&h?h:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),c=w,w)))};return _e({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(S,w,K){let C=!1;(w.bu||(w.bu=[])).push(()=>C=!0);const b=()=>{C||K()},k=r?()=>{const P=r(b,y=>No(S,y));P&&(w.bum||(w.bum=[])).push(P)}:b;c?k():g().then(()=>!w.isUnmounted&&k())},get __asyncResolved(){return c},setup(){const S=me;if(hn(S),c)return()=>ws(c,S);const w=k=>{h=null,Wt(k,S,13,!n)};if(a&&S.suspense||Dt)return g().then(k=>()=>ws(k,S)).catch(k=>(w(k),()=>n?fe(n,{error:k}):null));const K=q(!1),C=q(),b=q(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!K.value&&!C.value){const k=new Error(`Async component timed out after ${i}ms.`);w(k),C.value=k}},i),g().then(()=>{K.value=!0,S.parent&&pn(S.parent.vnode)&&S.parent.update()}).catch(k=>{w(k),C.value=k}),()=>{if(K.value&&c)return ws(c,S);if(C.value&&n)return fe(n,{error:C.value});if(s&&!b.value)return ws(s,S)}}})}function ws(e,t){const{ref:s,props:n,children:l,ce:r}=t.vnode,i=fe(e,n,l);return i.ref=s,i.ce=r,delete t.vnode.ce,i}const pn=e=>e.type.__isKeepAlive;function Bo(e,t){Sl(e,"a",t)}function Uo(e,t){Sl(e,"da",t)}function Sl(e,t,s=me){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(ks(t,n,s),s){let l=s.parent;for(;l&&l.parent;)pn(l.parent.vnode)&&Ho(n,t,s,l),l=l.parent}}function Ho(e,t,s,n){const l=ks(t,e,n,!0);Cs(()=>{Vs(n[t],l)},s)}function ks(e,t,s=me,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Fe();const a=ts(s),u=Be(t,s,e,i);return a(),Ne(),u});return n?l.unshift(r):l.push(r),r}}const nt=e=>(t,s=me)=>{(!Dt||e==="sp")&&ks(e,(...n)=>t(...n),s)},Vo=nt("bm"),yt=nt("m"),Ko=nt("bu"),zo=nt("u"),$s=nt("bum"),Cs=nt("um"),Wo=nt("sp"),qo=nt("rtg"),Jo=nt("rtc");function Go(e,t=me){ks("ec",e,t)}const Qo=Symbol.for("v-ndc");function X(e,t,s,n){let l;const r=s,i=z(e);if(i||de(e)){const a=i&&bt(e);let u=!1,h=!1;a&&(u=!Ae(e),h=tt(e),e=ds(e)),l=new Array(e.length);for(let c=0,x=e.length;c<x;c++)l[c]=t(u?h?Mt(Re(e[c])):Re(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,r)}else if(le(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,h=a.length;u<h;u++){const c=a[u];l[u]=t(e[c],c,u,r)}}else l=[];return l}const gn=e=>e?sr(e)?Os(e):gn(e.parent):null,Qt=he(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=>gn(e.parent),$root:e=>gn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Pl(e),$forceUpdate:e=>e.f||(e.f=()=>{dn(e.update)}),$nextTick:e=>e.n||(e.n=bl.bind(e.proxy)),$watch:e=>Io.bind(e)}),bn=(e,t)=>e!==oe&&!e.__isScriptSetup&&ne(e,t),Yo={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(bn(n,t))return i[t]=1,n[t];if(l!==oe&&ne(l,t))return i[t]=2,l[t];if(ne(r,t))return i[t]=3,r[t];if(s!==oe&&ne(s,t))return i[t]=4,s[t];vn&&(i[t]=0)}}const h=Qt[t];let c,x;if(h)return t==="$attrs"&&ve(e.attrs,"get",""),h(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(s!==oe&&ne(s,t))return i[t]=4,s[t];if(x=u.config.globalProperties,ne(x,t))return x[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return bn(l,t)?(l[t]=s,!0):n!==oe&&ne(n,t)?(n[t]=s,!0):ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:r,type:i}},a){let u;return!!(s[a]||e!==oe&&a[0]!=="$"&&ne(e,a)||bn(t,a)||ne(r,a)||ne(n,a)||ne(Qt,a)||ne(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ne(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function El(e){return z(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let vn=!0;function Xo(e){const t=Pl(e),s=e.proxy,n=e.ctx;vn=!1,t.beforeCreate&&Al(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:a,provide:u,inject:h,created:c,beforeMount:x,mounted:_,beforeUpdate:g,updated:S,activated:w,deactivated:K,beforeDestroy:C,beforeUnmount:b,destroyed:k,unmounted:P,render:y,renderTracked:T,renderTriggered:j,errorCaptured:B,serverPrefetch:Y,expose:ce,inheritAttrs:Le,components:Je,directives:kt,filters:$t}=t;if(h&&Zo(h,n,null),i)for(const Q in i){const ee=i[Q];W(ee)&&(n[Q]=ee.bind(s))}if(l){const Q=l.call(s,s);le(Q)&&(e.data=on(Q))}if(vn=!0,r)for(const Q in r){const ee=r[Q],be=W(ee)?ee.bind(s,s):W(ee.get)?ee.get.bind(s,s):De,ns=!W(ee)&&W(ee.set)?ee.set.bind(s):De,Ct=G({get:be,set:ns});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>Ct.value,set:Ge=>Ct.value=Ge})}if(a)for(const Q in a)Ml(a[Q],n,s,Q);if(u){const Q=W(u)?u.call(s):u;Reflect.ownKeys(Q).forEach(ee=>{Lo(ee,Q[ee])})}c&&Al(c,e,"c");function ge(Q,ee){z(ee)?ee.forEach(be=>Q(be.bind(s))):ee&&Q(ee.bind(s))}if(ge(Vo,x),ge(yt,_),ge(Ko,g),ge(zo,S),ge(Bo,w),ge(Uo,K),ge(Go,B),ge(Jo,T),ge(qo,j),ge($s,b),ge(Cs,P),ge(Wo,Y),z(ce))if(ce.length){const Q=e.exposed||(e.exposed={});ce.forEach(ee=>{Object.defineProperty(Q,ee,{get:()=>s[ee],set:be=>s[ee]=be,enumerable:!0})})}else e.exposed||(e.exposed={});y&&e.render===De&&(e.render=y),Le!=null&&(e.inheritAttrs=Le),Je&&(e.components=Je),kt&&(e.directives=kt),Y&&hn(e)}function Zo(e,t,s=De){z(e)&&(e=mn(e));for(const n in e){const l=e[n];let r;le(l)?"default"in l?r=_s(l.from||n,l.default,!0):r=_s(l.from||n):r=_s(l),pe(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Al(e,t,s){Be(z(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ml(e,t,s,n){let l=n.includes(".")?kl(s,n):()=>s[n];if(de(e)){const r=t[e];W(r)&&dt(l,r)}else if(W(e))dt(l,e.bind(s));else if(le(e))if(z(e))e.forEach(r=>Ml(r,t,s,n));else{const r=W(e.handler)?e.handler.bind(s):t[e.handler];W(r)&&dt(l,r,e)}}function Pl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(h=>Ts(u,h,i,!0)),Ts(u,t,i)),le(t)&&r.set(t,u),u}function Ts(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Ts(e,r,s,!0),l&&l.forEach(i=>Ts(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=ei[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const ei={data:Ll,props:Ol,emits:Ol,methods:Yt,computed:Yt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Yt,directives:Yt,watch:si,provide:Ll,inject:ti};function Ll(e,t){return t?e?function(){return he(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function ti(e,t){return Yt(mn(e),mn(t))}function mn(e){if(z(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Yt(e,t){return e?he(Object.create(null),e,t):t}function Ol(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:he(Object.create(null),El(e),El(t??{})):t}function si(e,t){if(!e)return t;if(!t)return e;const s=he(Object.create(null),e);for(const n in t)s[n]=xe(e[n],t[n]);return s}function Rl(){return{app:null,config:{isNativeTag:jn,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 ni=0;function li(e,t){return function(n,l=null){W(n)||(n=he({},n)),l!=null&&!le(l)&&(l=null);const r=Rl(),i=new WeakSet,a=[];let u=!1;const h=r.app={_uid:ni++,_component:n,_props:l,_container:null,_context:r,_instance:null,version:Bi,get config(){return r.config},set config(c){},use(c,...x){return i.has(c)||(c&&W(c.install)?(i.add(c),c.install(h,...x)):W(c)&&(i.add(c),c(h,...x))),h},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),h},component(c,x){return x?(r.components[c]=x,h):r.components[c]},directive(c,x){return x?(r.directives[c]=x,h):r.directives[c]},mount(c,x,_){if(!u){const g=h._ceVNode||fe(n,l);return g.appContext=r,_===!0?_="svg":_===!1&&(_=void 0),e(g,c,_),u=!0,h._container=c,c.__vue_app__=h,Os(g.component)}},onUnmount(c){a.push(c)},unmount(){u&&(Be(a,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(c,x){return r.provides[c]=x,h},runWithContext(c){const x=Rt;Rt=h;try{return c()}finally{Rt=x}}};return h}}let Rt=null;const ri=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ot(t)}Modifiers`]||e[`${it(t)}Modifiers`];function oi(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||oe;let l=s;const r=t.startsWith("update:"),i=r&&ri(n,t.slice(7));i&&(i.trim&&(l=s.map(c=>de(c)?c.trim():c)),i.number&&(l=s.map(Ws)));let a,u=n[a=zs(t)]||n[a=zs(ot(t))];!u&&r&&(u=n[a=zs(it(t))]),u&&Be(u,e,6,l);const h=n[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Be(h,e,6,l)}}const ii=new WeakMap;function Il(e,t,s=!1){const n=s?ii:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},a=!1;if(!W(e)){const u=h=>{const c=Il(h,t,!0);c&&(a=!0,he(i,c))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(le(e)&&n.set(e,null),null):(z(r)?r.forEach(u=>i[u]=null):he(i,r),le(e)&&n.set(e,i),i)}function Ss(e,t){return!e||!is(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,it(t))||ne(e,t))}function Eh(){}function Dl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:a,emit:u,render:h,renderCache:c,props:x,data:_,setupState:g,ctx:S,inheritAttrs:w}=e,K=ys(e);let C,b;try{if(s.shapeFlag&4){const P=l||n,y=P;C=Ve(h.call(y,P,c,x,g,_,S)),b=a}else{const P=t;C=Ve(P.length>1?P(x,{attrs:a,slots:i,emit:u}):P(x,null)),b=t.props?a:ai(a)}}catch(P){Xt.length=0,Wt(P,e,1),C=fe(ft)}let k=C;if(b&&w!==!1){const P=Object.keys(b),{shapeFlag:y}=k;P.length&&y&7&&(r&&P.some(Hs)&&(b=ui(b,r)),k=It(k,b,!1,!0))}return s.dirs&&(k=It(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(s.dirs):s.dirs),s.transition&&fn(k,s.transition),C=k,ys(K),C}const ai=e=>{let t;for(const s in e)(s==="class"||s==="style"||is(s))&&((t||(t={}))[s]=e[s]);return t},ui=(e,t)=>{const s={};for(const n in e)(!Hs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function ci(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:a,patchFlag:u}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?jl(n,i,h):!!i;if(u&8){const c=t.dynamicProps;for(let x=0;x<c.length;x++){const _=c[x];if(Fl(i,n,_)&&!Ss(h,_))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?jl(n,i,h):!0:!!i;return!1}function jl(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let l=0;l<n.length;l++){const r=n[l];if(Fl(t,e,r)&&!Ss(s,r))return!0}return!1}function Fl(e,t,s){const n=e[s],l=t[s];return s==="style"&&le(n)&&le(l)?!qs(n,l):n!==l}function di({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Nl={},Bl=()=>Object.create(Nl),Ul=e=>Object.getPrototypeOf(e)===Nl;function fi(e,t,s,n=!1){const l={},r=Bl();e.propsDefaults=Object.create(null),Hl(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:go(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function hi(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,a=te(l),[u]=e.propsOptions;let h=!1;if((n||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let x=0;x<c.length;x++){let _=c[x];if(Ss(e.emitsOptions,_))continue;const g=t[_];if(u)if(ne(r,_))g!==r[_]&&(r[_]=g,h=!0);else{const S=ot(_);l[S]=yn(u,a,S,g,e,!1)}else g!==r[_]&&(r[_]=g,h=!0)}}}else{Hl(e,t,l,r)&&(h=!0);let c;for(const x in a)(!t||!ne(t,x)&&((c=it(x))===x||!ne(t,c)))&&(u?s&&(s[x]!==void 0||s[c]!==void 0)&&(l[x]=yn(u,a,x,void 0,e,!0)):delete l[x]);if(r!==a)for(const x in r)(!t||!ne(t,x))&&(delete r[x],h=!0)}h&&Ze(e.attrs,"set","")}function Hl(e,t,s,n){const[l,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Nt(u))continue;const h=t[u];let c;l&&ne(l,c=ot(u))?!r||!r.includes(c)?s[c]=h:(a||(a={}))[c]=h:Ss(e.emitsOptions,u)||(!(u in n)||h!==n[u])&&(n[u]=h,i=!0)}if(r){const u=te(s),h=a||oe;for(let c=0;c<r.length;c++){const x=r[c];s[x]=yn(l,u,x,h[x],e,!ne(h,x))}}return i}function yn(e,t,s,n,l,r){const i=e[s];if(i!=null){const a=ne(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&W(u)){const{propsDefaults:h}=l;if(s in h)n=h[s];else{const c=ts(l);n=h[s]=u.call(null,t),c()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(r&&!a?n=!1:i[1]&&(n===""||n===it(s))&&(n=!0))}return n}const pi=new WeakMap;function Vl(e,t,s=!1){const n=s?pi:t.propsCache,l=n.get(e);if(l)return l;const r=e.props,i={},a=[];let u=!1;if(!W(e)){const c=x=>{u=!0;const[_,g]=Vl(x,t,!0);he(i,_),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!u)return le(e)&&n.set(e,Tt),Tt;if(z(r))for(let c=0;c<r.length;c++){const x=ot(r[c]);Kl(x)&&(i[x]=oe)}else if(r)for(const c in r){const x=ot(c);if(Kl(x)){const _=r[c],g=i[x]=z(_)||W(_)?{type:_}:he({},_),S=g.type;let w=!1,K=!0;if(z(S))for(let C=0;C<S.length;++C){const b=S[C],k=W(b)&&b.name;if(k==="Boolean"){w=!0;break}else k==="String"&&(K=!1)}else w=W(S)&&S.name==="Boolean";g[0]=w,g[1]=K,(w||ne(g,"default"))&&a.push(x)}}const h=[i,a];return le(e)&&n.set(e,h),h}function Kl(e){return e[0]!=="$"&&!Nt(e)}const _n=e=>e==="_"||e==="_ctx"||e==="$stable",xn=e=>z(e)?e.map(Ve):[Ve(e)],gi=(e,t,s)=>{if(t._n)return t;const n=Po((...l)=>xn(t(...l)),s);return n._c=!1,n},zl=(e,t,s)=>{const n=e._ctx;for(const l in e){if(_n(l))continue;const r=e[l];if(W(r))t[l]=gi(l,r,n);else if(r!=null){const i=xn(r);t[l]=()=>i}}},Wl=(e,t)=>{const s=xn(t);e.slots.default=()=>s},ql=(e,t,s)=>{for(const n in t)(s||!_n(n))&&(e[n]=t[n])},bi=(e,t,s)=>{const n=e.slots=Bl();if(e.vnode.shapeFlag&32){const l=t._;l?(ql(n,t,s),s&&Kn(n,"_",l,!0)):zl(t,n)}else t&&Wl(e,t)},vi=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=oe;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:ql(l,t,s):(r=!t.$stable,zl(t,l)),i=t}else t&&(Wl(e,t),i={default:1});if(r)for(const a in l)!_n(a)&&i[a]==null&&delete l[a]},$e=wi;function mi(e){return yi(e)}function yi(e,t){const s=cs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:a,createComment:u,setText:h,setElementText:c,parentNode:x,nextSibling:_,setScopeId:g=De,insertStaticContent:S}=e,w=(d,v,$,L=null,E=null,A=null,F=void 0,D=null,R=!!v.dynamicChildren)=>{if(d===v)return;d&&!es(d,v)&&(L=Bs(d),Ge(d,E,A,!0),d=null),v.patchFlag===-2&&(R=!1,v.dynamicChildren=null);const{type:M,ref:H,shapeFlag:N}=v;switch(M){case Es:K(d,v,$,L);break;case ft:C(d,v,$,L);break;case kn:d==null&&b(v,$,L,F);break;case I:Je(d,v,$,L,E,A,F,D,R);break;default:N&1?y(d,v,$,L,E,A,F,D,R):N&6?kt(d,v,$,L,E,A,F,D,R):(N&64||N&128)&&M.process(d,v,$,L,E,A,F,D,R,rs)}H!=null&&E?Jt(H,d&&d.ref,A,v||d,!v):H==null&&d&&d.ref!=null&&Jt(d.ref,null,A,d,!0)},K=(d,v,$,L)=>{if(d==null)n(v.el=a(v.children),$,L);else{const E=v.el=d.el;v.children!==d.children&&h(E,v.children)}},C=(d,v,$,L)=>{d==null?n(v.el=u(v.children||""),$,L):v.el=d.el},b=(d,v,$,L)=>{[d.el,d.anchor]=S(d.children,v,$,L,d.el,d.anchor)},k=({el:d,anchor:v},$,L)=>{let E;for(;d&&d!==v;)E=_(d),n(d,$,L),d=E;n(v,$,L)},P=({el:d,anchor:v})=>{let $;for(;d&&d!==v;)$=_(d),l(d),d=$;l(v)},y=(d,v,$,L,E,A,F,D,R)=>{if(v.type==="svg"?F="svg":v.type==="math"&&(F="mathml"),d==null)T(v,$,L,E,A,F,D,R);else{const M=d.el&&d.el._isVueCE?d.el:null;try{M&&M._beginPatch(),Y(d,v,E,A,F,D,R)}finally{M&&M._endPatch()}}},T=(d,v,$,L,E,A,F,D)=>{let R,M;const{props:H,shapeFlag:N,transition:U,dirs:J}=d;if(R=d.el=i(d.type,A,H&&H.is,H),N&8?c(R,d.children):N&16&&B(d.children,R,null,L,E,wn(d,A),F,D),J&&mt(d,null,L,"created"),j(R,d,d.scopeId,F,L),H){for(const ue in H)ue!=="value"&&!Nt(ue)&&r(R,ue,null,H[ue],A,L);"value"in H&&r(R,"value",null,H.value,A),(M=H.onVnodeBeforeMount)&&Ke(M,L,d)}J&&mt(d,null,L,"beforeMount");const Z=_i(E,U);Z&&U.beforeEnter(R),n(R,v,$),((M=H&&H.onVnodeMounted)||Z||J)&&$e(()=>{M&&Ke(M,L,d),Z&&U.enter(R),J&&mt(d,null,L,"mounted")},E)},j=(d,v,$,L,E)=>{if($&&g(d,$),L)for(let A=0;A<L.length;A++)g(d,L[A]);if(E){let A=E.subTree;if(v===A||Xl(A.type)&&(A.ssContent===v||A.ssFallback===v)){const F=E.vnode;j(d,F,F.scopeId,F.slotScopeIds,E.parent)}}},B=(d,v,$,L,E,A,F,D,R=0)=>{for(let M=R;M<d.length;M++){const H=d[M]=D?lt(d[M]):Ve(d[M]);w(null,H,v,$,L,E,A,F,D)}},Y=(d,v,$,L,E,A,F)=>{const D=v.el=d.el;let{patchFlag:R,dynamicChildren:M,dirs:H}=v;R|=d.patchFlag&16;const N=d.props||oe,U=v.props||oe;let J;if($&&_t($,!1),(J=U.onVnodeBeforeUpdate)&&Ke(J,$,v,d),H&&mt(v,d,$,"beforeUpdate"),$&&_t($,!0),(N.innerHTML&&U.innerHTML==null||N.textContent&&U.textContent==null)&&c(D,""),M?ce(d.dynamicChildren,M,D,$,L,wn(v,E),A):F||ee(d,v,D,null,$,L,wn(v,E),A,!1),R>0){if(R&16)Le(D,N,U,$,E);else if(R&2&&N.class!==U.class&&r(D,"class",null,U.class,E),R&4&&r(D,"style",N.style,U.style,E),R&8){const Z=v.dynamicProps;for(let ue=0;ue<Z.length;ue++){const re=Z[ue],Ce=N[re],Te=U[re];(Te!==Ce||re==="value")&&r(D,re,Ce,Te,E,$)}}R&1&&d.children!==v.children&&c(D,v.children)}else!F&&M==null&&Le(D,N,U,$,E);((J=U.onVnodeUpdated)||H)&&$e(()=>{J&&Ke(J,$,v,d),H&&mt(v,d,$,"updated")},L)},ce=(d,v,$,L,E,A,F)=>{for(let D=0;D<v.length;D++){const R=d[D],M=v[D],H=R.el&&(R.type===I||!es(R,M)||R.shapeFlag&198)?x(R.el):$;w(R,M,H,null,L,E,A,F,!0)}},Le=(d,v,$,L,E)=>{if(v!==$){if(v!==oe)for(const A in v)!Nt(A)&&!(A in $)&&r(d,A,v[A],null,E,L);for(const A in $){if(Nt(A))continue;const F=$[A],D=v[A];F!==D&&A!=="value"&&r(d,A,D,F,E,L)}"value"in $&&r(d,"value",v.value,$.value,E)}},Je=(d,v,$,L,E,A,F,D,R)=>{const M=v.el=d?d.el:a(""),H=v.anchor=d?d.anchor:a("");let{patchFlag:N,dynamicChildren:U,slotScopeIds:J}=v;J&&(D=D?D.concat(J):J),d==null?(n(M,$,L),n(H,$,L),B(v.children||[],$,H,E,A,F,D,R)):N>0&&N&64&&U&&d.dynamicChildren&&d.dynamicChildren.length===U.length?(ce(d.dynamicChildren,U,$,E,A,F,D),(v.key!=null||E&&v===E.subTree)&&Jl(d,v,!0)):ee(d,v,$,H,E,A,F,D,R)},kt=(d,v,$,L,E,A,F,D,R)=>{v.slotScopeIds=D,d==null?v.shapeFlag&512?E.ctx.activate(v,$,L,F,R):$t(v,$,L,E,A,F,R):Ns(d,v,R)},$t=(d,v,$,L,E,A,F)=>{const D=d.component=Ai(d,L,E);if(pn(d)&&(D.ctx.renderer=rs),Pi(D,!1,F),D.asyncDep){if(E&&E.registerDep(D,ge,F),!d.el){const R=D.subTree=fe(ft);C(null,R,v,$),d.placeholder=R.el}}else ge(D,d,v,$,E,A,F)},Ns=(d,v,$)=>{const L=v.component=d.component;if(ci(d,v,$))if(L.asyncDep&&!L.asyncResolved){Q(L,v,$);return}else L.next=v,L.update();else v.el=d.el,L.vnode=v},ge=(d,v,$,L,E,A,F)=>{const D=()=>{if(d.isMounted){let{next:N,bu:U,u:J,parent:Z,vnode:ue}=d;{const Ye=Gl(d);if(Ye){N&&(N.el=ue.el,Q(d,N,F)),Ye.asyncDep.then(()=>{$e(()=>{d.isUnmounted||M()},E)});return}}let re=N,Ce;_t(d,!1),N?(N.el=ue.el,Q(d,N,F)):N=ue,U&&us(U),(Ce=N.props&&N.props.onVnodeBeforeUpdate)&&Ke(Ce,Z,N,ue),_t(d,!0);const Te=Dl(d),Qe=d.subTree;d.subTree=Te,w(Qe,Te,x(Qe.el),Bs(Qe),d,E,A),N.el=Te.el,re===null&&di(d,Te.el),J&&$e(J,E),(Ce=N.props&&N.props.onVnodeUpdated)&&$e(()=>Ke(Ce,Z,N,ue),E)}else{let N;const{el:U,props:J}=v,{bm:Z,m:ue,parent:re,root:Ce,type:Te}=d,Qe=Gt(v);_t(d,!1),Z&&us(Z),!Qe&&(N=J&&J.onVnodeBeforeMount)&&Ke(N,re,v),_t(d,!0);{Ce.ce&&Ce.ce._hasShadowRoot()&&Ce.ce._injectChildStyle(Te);const Ye=d.subTree=Dl(d);w(null,Ye,$,L,d,E,A),v.el=Ye.el}if(ue&&$e(ue,E),!Qe&&(N=J&&J.onVnodeMounted)){const Ye=v;$e(()=>Ke(N,re,Ye),E)}(v.shapeFlag&256||re&&Gt(re.vnode)&&re.vnode.shapeFlag&256)&&d.a&&$e(d.a,E),d.isMounted=!0,v=$=L=null}};d.scope.on();const R=d.effect=new Gn(D);d.scope.off();const M=d.update=R.run.bind(R),H=d.job=R.runIfDirty.bind(R);H.i=d,H.id=d.uid,R.scheduler=()=>dn(H),_t(d,!0),M()},Q=(d,v,$)=>{v.component=d;const L=d.vnode.props;d.vnode=v,d.next=null,hi(d,v.props,L,$),vi(d,v.children,$),Fe(),ml(d),Ne()},ee=(d,v,$,L,E,A,F,D,R=!1)=>{const M=d&&d.children,H=d?d.shapeFlag:0,N=v.children,{patchFlag:U,shapeFlag:J}=v;if(U>0){if(U&128){ns(M,N,$,L,E,A,F,D,R);return}else if(U&256){be(M,N,$,L,E,A,F,D,R);return}}J&8?(H&16&&ls(M,E,A),N!==M&&c($,N)):H&16?J&16?ns(M,N,$,L,E,A,F,D,R):ls(M,E,A,!0):(H&8&&c($,""),J&16&&B(N,$,L,E,A,F,D,R))},be=(d,v,$,L,E,A,F,D,R)=>{d=d||Tt,v=v||Tt;const M=d.length,H=v.length,N=Math.min(M,H);let U;for(U=0;U<N;U++){const J=v[U]=R?lt(v[U]):Ve(v[U]);w(d[U],J,$,null,E,A,F,D,R)}M>H?ls(d,E,A,!0,!1,N):B(v,$,L,E,A,F,D,R,N)},ns=(d,v,$,L,E,A,F,D,R)=>{let M=0;const H=v.length;let N=d.length-1,U=H-1;for(;M<=N&&M<=U;){const J=d[M],Z=v[M]=R?lt(v[M]):Ve(v[M]);if(es(J,Z))w(J,Z,$,null,E,A,F,D,R);else break;M++}for(;M<=N&&M<=U;){const J=d[N],Z=v[U]=R?lt(v[U]):Ve(v[U]);if(es(J,Z))w(J,Z,$,null,E,A,F,D,R);else break;N--,U--}if(M>N){if(M<=U){const J=U+1,Z=J<H?v[J].el:L;for(;M<=U;)w(null,v[M]=R?lt(v[M]):Ve(v[M]),$,Z,E,A,F,D,R),M++}}else if(M>U)for(;M<=N;)Ge(d[M],E,A,!0),M++;else{const J=M,Z=M,ue=new Map;for(M=Z;M<=U;M++){const Ee=v[M]=R?lt(v[M]):Ve(v[M]);Ee.key!=null&&ue.set(Ee.key,M)}let re,Ce=0;const Te=U-Z+1;let Qe=!1,Ye=0;const os=new Array(Te);for(M=0;M<Te;M++)os[M]=0;for(M=J;M<=N;M++){const Ee=d[M];if(Ce>=Te){Ge(Ee,E,A,!0);continue}let Xe;if(Ee.key!=null)Xe=ue.get(Ee.key);else for(re=Z;re<=U;re++)if(os[re-Z]===0&&es(Ee,v[re])){Xe=re;break}Xe===void 0?Ge(Ee,E,A,!0):(os[Xe-Z]=M+1,Xe>=Ye?Ye=Xe:Qe=!0,w(Ee,v[Xe],$,null,E,A,F,D,R),Ce++)}const Ir=Qe?xi(os):Tt;for(re=Ir.length-1,M=Te-1;M>=0;M--){const Ee=Z+M,Xe=v[Ee],Dr=v[Ee+1],jr=Ee+1<H?Dr.el||Yl(Dr):L;os[M]===0?w(null,Xe,$,jr,E,A,F,D,R):Qe&&(re<0||M!==Ir[re]?Ct(Xe,$,jr,2):re--)}}},Ct=(d,v,$,L,E=null)=>{const{el:A,type:F,transition:D,children:R,shapeFlag:M}=d;if(M&6){Ct(d.component.subTree,v,$,L);return}if(M&128){d.suspense.move(v,$,L);return}if(M&64){F.move(d,v,$,rs);return}if(F===I){n(A,v,$);for(let N=0;N<R.length;N++)Ct(R[N],v,$,L);n(d.anchor,v,$);return}if(F===kn){k(d,v,$);return}if(L!==2&&M&1&&D)if(L===0)D.beforeEnter(A),n(A,v,$),$e(()=>D.enter(A),E);else{const{leave:N,delayLeave:U,afterLeave:J}=D,Z=()=>{d.ctx.isUnmounted?l(A):n(A,v,$)},ue=()=>{A._isLeaving&&A[Fo](!0),N(A,()=>{Z(),J&&J()})};U?U(A,Z,ue):ue()}else n(A,v,$)},Ge=(d,v,$,L=!1,E=!1)=>{const{type:A,props:F,ref:D,children:R,dynamicChildren:M,shapeFlag:H,patchFlag:N,dirs:U,cacheIndex:J}=d;if(N===-2&&(E=!1),D!=null&&(Fe(),Jt(D,null,$,d,!0),Ne()),J!=null&&(v.renderCache[J]=void 0),H&256){v.ctx.deactivate(d);return}const Z=H&1&&U,ue=!Gt(d);let re;if(ue&&(re=F&&F.onVnodeBeforeUnmount)&&Ke(re,v,d),H&6)$h(d.component,$,L);else{if(H&128){d.suspense.unmount($,L);return}Z&&mt(d,null,v,"beforeUnmount"),H&64?d.type.remove(d,v,$,rs,L):M&&!M.hasOnce&&(A!==I||N>0&&N&64)?ls(M,v,$,!1,!0):(A===I&&N&384||!E&&H&16)&&ls(R,v,$),L&&Or(d)}(ue&&(re=F&&F.onVnodeUnmounted)||Z)&&$e(()=>{re&&Ke(re,v,d),Z&&mt(d,null,v,"unmounted")},$)},Or=d=>{const{type:v,el:$,anchor:L,transition:E}=d;if(v===I){kh($,L);return}if(v===kn){P(d);return}const A=()=>{l($),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(d.shapeFlag&1&&E&&!E.persisted){const{leave:F,delayLeave:D}=E,R=()=>F($,A);D?D(d.el,A,R):R()}else A()},kh=(d,v)=>{let $;for(;d!==v;)$=_(d),l(d),d=$;l(v)},$h=(d,v,$)=>{const{bum:L,scope:E,job:A,subTree:F,um:D,m:R,a:M}=d;Ql(R),Ql(M),L&&us(L),E.stop(),A&&(A.flags|=8,Ge(F,d,v,$)),D&&$e(D,v),$e(()=>{d.isUnmounted=!0},v)},ls=(d,v,$,L=!1,E=!1,A=0)=>{for(let F=A;F<d.length;F++)Ge(d[F],v,$,L,E)},Bs=d=>{if(d.shapeFlag&6)return Bs(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const v=_(d.anchor||d.el),$=v&&v[Do];return $?_($):v};let Dn=!1;const Rr=(d,v,$)=>{let L;d==null?v._vnode&&(Ge(v._vnode,null,null,!0),L=v._vnode.component):w(v._vnode||null,d,v,null,null,null,$),v._vnode=d,Dn||(Dn=!0,ml(L),yl(),Dn=!1)},rs={p:w,um:Ge,m:Ct,r:Or,mt:$t,mc:B,pc:ee,pbc:ce,n:Bs,o:e};return{render:Rr,hydrate:void 0,createApp:li(Rr)}}function wn({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 _t({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function _i(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jl(e,t,s=!1){const n=e.children,l=t.children;if(z(n)&&z(l))for(let r=0;r<n.length;r++){const i=n[r];let a=l[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[r]=lt(l[r]),a.el=i.el),!s&&a.patchFlag!==-2&&Jl(i,a)),a.type===Es&&(a.patchFlag===-1&&(a=l[r]=lt(a)),a.el=i.el),a.type===ft&&!a.el&&(a.el=i.el)}}function xi(e){const t=e.slice(),s=[0];let n,l,r,i,a;const u=e.length;for(n=0;n<u;n++){const h=e[n];if(h!==0){if(l=s[s.length-1],e[l]<h){t[n]=l,s.push(n);continue}for(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<h?r=a+1:i=a;h<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Gl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gl(t)}function Ql(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Yl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Yl(t.subTree):null}const Xl=e=>e.__isSuspense;function wi(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Mo(e)}const I=Symbol.for("v-fgt"),Es=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),kn=Symbol.for("v-stc"),Xt=[];let Se=null;function f(e=!1){Xt.push(Se=e?null:[])}function ki(){Xt.pop(),Se=Xt[Xt.length-1]||null}let Zt=1;function As(e,t=!1){Zt+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function Zl(e){return e.dynamicChildren=Zt>0?Se||Tt:null,ki(),Zt>0&&Se&&Se.push(e),e}function p(e,t,s,n,l,r){return Zl(o(e,t,s,n,l,r,!0))}function Pe(e,t,s,n,l){return Zl(fe(e,t,s,n,l,!0))}function Ms(e){return e?e.__v_isVNode===!0:!1}function es(e,t){return e.type===t.type&&e.key===t.key}const er=({key:e})=>e??null,Ps=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||pe(e)||W(e)?{i:Me,r:e,k:t,f:!!s}:e:null);function o(e,t=null,s=null,n=0,l=null,r=e===I?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&er(t),ref:t&&Ps(t),scopeId:xl,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:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Me};return a?($n(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=de(s)?8:16),Zt>0&&!i&&Se&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Se.push(u),u}const fe=$i;function $i(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===Qo)&&(e=ft),Ms(e)){const a=It(e,t,!0);return s&&$n(a,s),Zt>0&&!r&&Se&&(a.shapeFlag&6?Se[Se.indexOf(e)]=a:Se.push(a)),a.patchFlag=-2,a}if(Fi(e)&&(e=e.__vccOpts),t){t=Ci(t);let{class:a,style:u}=t;a&&!de(a)&&(t.class=V(a)),le(u)&&(un(u)&&!z(u)&&(u=he({},u)),t.style=Et(u))}const i=de(e)?1:Xl(e)?128:jo(e)?64:le(e)?4:W(e)?2:0;return o(e,t,s,n,l,i,r,!0)}function Ci(e){return e?un(e)||Ul(e)?he({},e):e:null}function It(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:a,transition:u}=e,h=t?Ti(l||{},t):l,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&er(h),ref:t&&t.ref?s&&r?z(r)?r.concat(Ps(t)):[r,Ps(t)]:Ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==I?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&fn(c,u.clone(c)),c}function se(e=" ",t=0){return fe(Es,null,e,t)}function ae(e="",t=!1){return t?(f(),Pe(ft,null,e)):fe(ft,null,e)}function Ve(e){return e==null||typeof e=="boolean"?fe(ft):z(e)?fe(I,null,e.slice()):Ms(e)?lt(e):fe(Es,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function $n(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(z(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),$n(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Ul(t)?t._ctx=Me:l===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:Me},s=32):(t=String(t),n&64?(s=16,t=[se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Ti(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const l in n)if(l==="class")t.class!==n.class&&(t.class=V([t.class,n.class]));else if(l==="style")t.style=Et([t.style,n.style]);else if(is(l)){const r=t[l],i=n[l];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ke(e,t,s,n=null){Be(e,t,7,[s,n])}const Si=Rl();let Ei=0;function Ai(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Si,r={uid:Ei++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Jr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vl(n,l),emitsOptions:Il(n,l),emit:null,emitted:null,propsDefaults:oe,inheritAttrs:n.inheritAttrs,ctx:oe,data:oe,props:oe,attrs:oe,slots:oe,refs:oe,setupState:oe,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=oi.bind(null,r),e.ce&&e.ce(r),r}let me=null;const Mi=()=>me||Me;let Ls,Cn;{const e=cs(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",s=>me=s),Cn=t("__VUE_SSR_SETTERS__",s=>Dt=s)}const ts=e=>{const t=me;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},tr=()=>{me&&me.scope.off(),Ls(null)};function sr(e){return e.vnode.shapeFlag&4}let Dt=!1;function Pi(e,t=!1,s=!1){t&&Cn(t);const{props:n,children:l}=e.vnode,r=sr(e);fi(e,n,r,t),bi(e,l,s||t);const i=r?Li(e,t):void 0;return t&&Cn(!1),i}function Li(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Yo);const{setup:n}=s;if(n){Fe();const l=e.setupContext=n.length>1?Ri(e):null,r=ts(e),i=Pt(n,e,0,[e.props,l]),a=Bn(i);if(Ne(),r(),(a||e.sp)&&!Gt(e)&&hn(e),a){if(i.then(tr,tr),t)return i.then(u=>{nr(e,u)}).catch(u=>{Wt(u,e,0)});e.asyncDep=i}else nr(e,i)}else lr(e)}function nr(e,t,s){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:le(t)&&(e.setupState=hl(t)),lr(e)}function lr(e,t,s){const n=e.type;e.render||(e.render=n.render||De);{const l=ts(e);Fe();try{Xo(e)}finally{Ne(),l()}}}const Oi={get(e,t){return ve(e,"get",""),e[t]}};function Ri(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Oi),slots:e.slots,emit:e.emit,expose:t}}function Os(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(hl(bo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Qt)return Qt[s](e)},has(t,s){return s in t||s in Qt}})):e.proxy}const Ii=/(?:^|[-_])\w/g,Di=e=>e.replace(Ii,t=>t.toUpperCase()).replace(/[-_]/g,"");function ji(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function rr(e,t,s=!1){let n=ji(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=r=>{for(const i in r)if(r[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Di(n):s?"App":"Anonymous"}function Fi(e){return W(e)&&"__vccOpts"in e}const G=(e,t)=>xo(e,t,Dt);function Ni(e,t,s){try{As(-1);const n=arguments.length;return n===2?le(t)&&!z(t)?Ms(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ms(s)&&(s=[s]),fe(e,t,s))}finally{As(1)}}const Bi="3.5.29";let Tn;const or=typeof window<"u"&&window.trustedTypes;if(or)try{Tn=or.createPolicy("vue",{createHTML:e=>e})}catch{}const ir=Tn?e=>Tn.createHTML(e):e=>e,Ui="http://www.w3.org/2000/svg",Hi="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,ar=rt&&rt.createElement("template"),Vi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?rt.createElementNS(Ui,e):t==="mathml"?rt.createElementNS(Hi,e):s?rt.createElement(e,{is:s}):rt.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,r){const i=s?s.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===r||!(l=l.nextSibling)););else{ar.innerHTML=ir(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=ar.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,s)}return[i?i.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ki=Symbol("_vtc");function zi(e,t,s){const n=e[Ki];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),Wi=Symbol("_vsh"),qi=Symbol(""),Ji=/(?:^|;)\s*display\s*:/;function Gi(e,t,s){const n=e.style,l=de(s);let r=!1;if(s&&!l){if(t)if(de(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Rs(n,a,"")}else for(const i in t)s[i]==null&&Rs(n,i,"");for(const i in s)i==="display"&&(r=!0),Rs(n,i,s[i])}else if(l){if(t!==s){const i=n[qi];i&&(s+=";"+i),n.cssText=s,r=Ji.test(s)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=r?n.display:"",e[Wi]&&(n.display="none"))}const cr=/\s*!important$/;function Rs(e,t,s){if(z(s))s.forEach(n=>Rs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Qi(e,t);cr.test(s)?e.setProperty(it(n),s.replace(cr,""),"important"):e[n]=s}}const dr=["Webkit","Moz","ms"],Sn={};function Qi(e,t){const s=Sn[t];if(s)return s;let n=ot(t);if(n!=="filter"&&n in e)return Sn[t]=n;n=Vn(n);for(let l=0;l<dr.length;l++){const r=dr[l]+n;if(r in e)return Sn[t]=r}return t}const fr="http://www.w3.org/1999/xlink";function hr(e,t,s,n,l,r=Wr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(fr,t.slice(6,t.length)):e.setAttributeNS(fr,t,s):s==null||r&&!Wn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":je(s)?String(s):s)}function pr(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ir(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=Wn(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(l||t)}function jt(e,t,s,n){e.addEventListener(t,s,n)}function Yi(e,t,s,n){e.removeEventListener(t,s,n)}const gr=Symbol("_vei");function Xi(e,t,s,n,l=null){const r=e[gr]||(e[gr]={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=Zi(t);if(n){const h=r[t]=sa(n,l);jt(e,a,h,u)}else i&&(Yi(e,a,i,u),r[t]=void 0)}}const br=/(?:Once|Passive|Capture)$/;function Zi(e){let t;if(br.test(e)){t={};let n;for(;n=e.match(br);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):it(e.slice(2)),t]}let En=0;const ea=Promise.resolve(),ta=()=>En||(ea.then(()=>En=0),En=Date.now());function sa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Be(na(n,s.value),t,5,[n])};return s.value=e,s.attached=ta(),s}function na(e,t){if(z(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>l=>!l._stopped&&n&&n(l))}else return t}const vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,la=(e,t,s,n,l,r)=>{const i=l==="svg";t==="class"?zi(e,n,i):t==="style"?Gi(e,s,n):is(t)?Hs(t)||Xi(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ra(e,t,n,i))?(pr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hr(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!de(n))?pr(e,ot(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),hr(e,t,n,i))};function ra(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&vr(t)&&W(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 l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return vr(t)&&de(s)?!1:t in e}const mr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?s=>us(t,s):t};function oa(e){e.target.composing=!0}function yr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const An=Symbol("_assign");function _r(e,t,s){return t&&(e=e.trim()),s&&(e=Ws(e)),e}const ze={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[An]=mr(l);const r=n||l.props&&l.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[An](_r(e.value,s,r))}),(s||r)&&jt(e,"change",()=>{e.value=_r(e.value,s,r)}),t||(jt(e,"compositionstart",oa),jt(e,"compositionend",yr),jt(e,"change",yr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:r}},i){if(e[An]=mr(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ws(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||l&&e.value.trim()===u)||(e.value=u))}},ia=["ctrl","shift","alt","meta"],aa={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)=>ia.some(s=>e[`${s}Key`]&&!t.includes(s))},Mn=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...r)=>{for(let i=0;i<t.length;i++){const a=aa[t[i]];if(a&&a(l,t))return}return e(l,...r)}))},ua={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},xr=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const r=it(l.key);if(t.some(i=>i===r||ua[i]===r))return e(l)}))},ca=he({patchProp:la},Vi);let wr;function da(){return wr||(wr=mi(ca))}const fa=((...e)=>{const t=da().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=pa(n);if(!l)return;const r=t._component;!W(r)&&!r.render&&!r.template&&(r.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,ha(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function ha(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pa(e){return de(e)?document.querySelector(e):e}class Is extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ga extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class Pn{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const l={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},r=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(r.status===401||r.status===403)throw new Is(r.status);if(!r.ok){const i=await r.text().catch(()=>"");throw new ga(r.status,i)}return r.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ba=3e3,va=100,ma=500,ya={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function _a(e){return ya[e]||`/${e}`}class kr{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new Pn({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??ba,this.callbacks={onData:t.onData,onLoading:t.onLoading,onError:t.onError,onUnauthorized:t.onUnauthorized}}start(t){this.stop(),this.currentTab=t,this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetchData(),this.timer=setInterval(()=>this.fetchData(),this.refreshInterval)}stop(){this.timer&&(clearInterval(this.timer),this.timer=null),this.abortController?.abort(),this.abortController=null}switchTab(t){this.start(t)}refresh(){this.currentTab&&this.fetchData()}async fetchCustomPane(t,s=!1){if(s&&this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.callbacks.onLoading(!0);try{const n=await this.client.fetch(t);this.callbacks.onData(n),this.callbacks.onError(null),s&&(this.fetchOnceCache[t]=n)}catch(n){if(n instanceof Is){this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n)))}finally{this.callbacks.onLoading(!1)}}cacheForTab(t,s){this.fetchOnceCache[t]=s}clearCache(){this.fetchOnceCache={}}async fetchData(){const t=this.currentTab;if(!t)return;if(this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const n=`${this.endpoint}${_a(t)}`,l=await this.client.fetch(n,{signal:s.signal});if(s.signal.aborted)return;this.callbacks.onData(l),this.callbacks.onError(null),this.callbacks.onLoading(!1)}catch(n){if(n instanceof DOMException&&n.name==="AbortError"||s.signal.aborted)return;if(n instanceof Is){this.callbacks.onError(n),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n))),this.callbacks.onLoading(!1)}}}const $r=new Set(["cache","jobs","config"]);function xa(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:r,refreshInterval:i}=t,a=q(null),u=q(!1),h=q(null),c=q(!1),x=new kr({baseUrl:s,endpoint:n,authToken:r,refreshInterval:i,onData:y=>{a.value=y},onLoading:y=>{u.value=y},onError:y=>{h.value=y},onUnauthorized:()=>{c.value=!0}});let _=null;function g(){return!_&&l&&(_=new kr({baseUrl:s,endpoint:l,authToken:r,refreshInterval:i,onData:y=>{a.value=y},onLoading:y=>{u.value=y},onError:y=>{h.value=y},onUnauthorized:()=>{c.value=!0}})),_}function S(){const y=e();if(y&&!y.startsWith("custom-"))if($r.has(y)&&l){const T=g();x.stop(),T.start(y)}else _?.stop(),x.start(y)}function w(){x.stop(),_?.stop()}async function K(y,T=!1){await x.fetchCustomPane(y,T)}function C(){S()}function b(){w()}function k(){const y=e();$r.has(y)&&l&&_?_.refresh():x.refresh()}function P(){a.value=null}return dt(e,()=>{P(),S()}),yt(()=>{C()}),Cs(()=>{w()}),{data:a,loading:u,error:h,isUnauthorized:c,refresh:k,clear:P,fetchCustomPane:K,startRefresh:C,stopRefresh:b}}const Ds="ss-dash-theme",Ln="ss-theme-change";function js(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ds);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function wa(e){typeof window>"u"||(localStorage.setItem(Ds,e),window.dispatchEvent(new CustomEvent(Ln,{detail:e})))}function ka(){const t=js()==="dark"?"light":"dark";return wa(t),t}function $a(e){if(typeof window>"u")return()=>{};const t=r=>{const i=r.detail;(i==="dark"||i==="light")&&e(i)},s=r=>{if(r.key===Ds){const i=r.newValue;e(i==="dark"||i==="light"?i:js())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=r=>{localStorage.getItem(Ds)||e(r.matches?"dark":"light")};return window.addEventListener(Ln,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(Ln,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Ca(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),l=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${l}m`:l>0?`${l}m ${t%60}s`:`${t}s`}function We(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Cr(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function xt(e){if(!e)return"-";const t=typeof e=="string"?new Date(Cr(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 qe(e){if(!e)return"-";const t=typeof e=="string"?new Date(Cr(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 On(e){return e>ma?"very-slow":e>va?"slow":"normal"}function ss(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 n="["+e.slice(0,3).map(l=>ss(l,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return n.length>t?"["+e.length+" items]":n}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const n=[];for(let r=0;r<Math.min(s.length,4);r++)n.push(s[r]+": "+ss(e[s[r]],30));const l="{ "+n.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return l.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":l}return String(e)}function Tr(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 Ta(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Sr="/admin/api/debug",Er={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 Sa(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 Ea(e,t=Sr){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Aa(e){const{baseUrl:t="",debugEndpoint:s=Sr,authToken:n}=e,l=new Pn({baseUrl:t,authToken:n});try{const r=await Ea(l,s);return Sa(r)}catch{return Er}}const we={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"/>']}},Ma="ss-col-resize",Ar="ss-resizing";function Pa(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let n=!1;function l(){if(!n){n=!0;for(const r of t)r.style.width=r.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const r of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const h=u.clientX,c=r.offsetWidth;a.classList.add(Ar),a.setPointerCapture(u.pointerId);function x(g){const S=g.clientX-h,w=Math.max(30,c+S);r.style.width=w+"px"}function _(){a.classList.remove(Ar),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",_)}a.addEventListener("pointermove",x),a.addEventListener("pointerup",_)};if(!r.textContent?.trim())continue;const a=document.createElement("div");a.className=Ma,r.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const r of s)r()}}const La=["all","error","warn","info","debug"];function Rn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Mr(e){return e.msg||e.message||JSON.stringify(e)}function Fs(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function ht(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 Oa(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`}}function Ra(e,t){return t==="all"?e:e.filter(s=>{const n=Rn(s);return t==="error"?n==="error"||n==="fatal":n===t})}function Ia(e,t){if(!t)return e;const s=t.toLowerCase();return e.filter(n=>n.sql.toLowerCase().includes(s)||n.model&&n.model.toLowerCase().includes(s)||n.method.toLowerCase().includes(s))}function Da(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function ja(e,t){const s=e.filter(r=>r.duration>100).length,n=Object.values(t).filter(r=>r>1).length,l=e.length>0?e.reduce((r,i)=>r+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}const Fa=["all","active","waiting","delayed","completed","failed"];function Na(e,t="ss-dbg-job-status"){switch(e){case"completed":case"failed":case"active":case"waiting":case"delayed":return`${t}-${e}`;default:return"ss-dbg-badge-muted"}}const Ba=["password","secret","token","key","credential","auth"];function Ua(e){const t=e.toLowerCase();return Ba.some(s=>t.includes(s))}function Ha(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 Va={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Ka(e){return Va[e]||e}const za={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Wa(e){return za[e]||e}function qa(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Ja(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 Ga(e){return Object.entries(e).map(([t,s])=>({key:t,value:Ha(s),secret:Ua(t)}))}function Qa(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Ya=["healthy","active","connected","available","ready"],Xa=["errored","unavailable"];function Za(e){return Ya.includes(e)?"ok":Xa.includes(e)?"err":""}function eu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function tu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(eu(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const su=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function nu(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const r of l)r&&s.push(r)}return s}function lu(e){return nu(e).some(s=>su.has(s.toLowerCase()))}function ru(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=q({...Er}),r=q(!0);return yt(async()=>{l.value=await Aa({baseUrl:t,debugEndpoint:s,authToken:n}),r.value=!1}),{features:l,loading:r}}function Pr(){const e=q(js());let t=null;function s(l){e.value=l}function n(){const l=ka();return e.value=l,l}return yt(()=>{e.value=js(),t=$a(s)}),Cs(()=>{t?.()}),{theme:e,toggleTheme:n}}const ou=["title","aria-label"],iu=["viewBox","innerHTML"],au=["viewBox","innerHTML"],uu=_e({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Pr(),l=G(()=>s.value==="dark"),r=G(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=G(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(f(),p("button",{type:"button",class:V(i.value),title:r.value,"aria-label":r.value,onClick:u[0]||(u[0]=(...h)=>O(n)&&O(n)(...h))},[l.value?(f(),p("svg",{key:0,width:"16",height:"16",viewBox:O(we).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:O(we).sun.elements.join("")},null,8,iu)):(f(),p("svg",{key:1,width:"16",height:"16",viewBox:O(we).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:O(we).moon.elements.join("")},null,8,au))],10,ou))}}),cu=["data-ss-theme"],du={class:"ss-dbg-tabs"},fu={class:"ss-dbg-tabs-scroll"},hu=["onClick"],pu=["viewBox","innerHTML"],gu={class:"ss-dbg-tabs-right"},bu=["title"],vu=["href"],mu=["viewBox","innerHTML"],yu={class:"ss-dbg-content"},_u={key:0,class:"ss-dbg-empty"},xu={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},wu=_e({__name:"DebugPanel",props:{dashboardPath:{default:"/__stats"},tracingEnabled:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},baseUrl:{default:""},debugEndpoint:{default:"/admin/api/debug"},authToken:{},className:{},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const s=Ie(()=>Promise.resolve().then(()=>Lu)),n=Ie(()=>Promise.resolve().then(()=>Hu)),l=Ie(()=>Promise.resolve().then(()=>ac)),r=Ie(()=>Promise.resolve().then(()=>bc)),i=Ie(()=>Promise.resolve().then(()=>Mc)),a=Ie(()=>Promise.resolve().then(()=>td)),u=Ie(()=>Promise.resolve().then(()=>Cd)),h=Ie(()=>Promise.resolve().then(()=>qd)),c=Ie(()=>Promise.resolve().then(()=>Mf)),x=Ie(()=>Promise.resolve().then(()=>hh)),_=Ie(()=>Promise.resolve().then(()=>wh)),g=e,S=q(g.defaultOpen),w=q("queries"),{theme:K}=Pr(),{features:C}=ru({baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,authToken:g.authToken}),b=g.dashboardPath?g.dashboardPath.replace(/\/+$/,"")+"/api":void 0,k=G(()=>w.value.startsWith("custom-")),P=G(()=>k.value||w.value==="internals"),{data:y,loading:T,error:j,isUnauthorized:B,startRefresh:Y,stopRefresh:ce}=xa(()=>w.value,{baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,dashboardEndpoint:b,authToken:g.authToken}),Le=G(()=>{const Q=[{id:"queries",label:"Queries",icon:"Q"},{id:"events",label:"Events",icon:"E"},{id:"emails",label:"Emails",icon:"M"},{id:"routes",label:"Routes",icon:"R"},{id:"logs",label:"Logs",icon:"L"}];(C.value.tracing||g.tracingEnabled)&&Q.push({id:"timeline",label:"Timeline",icon:"T"}),C.value.cache&&Q.push({id:"cache",label:"Cache",icon:"C"}),C.value.queues&&Q.push({id:"jobs",label:"Jobs",icon:"J"}),Q.push({id:"config",label:"Config",icon:"G"}),Q.push({id:"internals",label:"Internals",icon:"I"});for(const ee of C.value.customPanes)Q.push({id:`custom-${ee.id}`,label:ee.label,icon:ee.label.charAt(0).toUpperCase()});return Q});function Je(Q){const ee=Q.replace("custom-","");return C.value.customPanes.find(be=>be.id===ee)}function kt(){S.value=!0,Y()}function $t(){S.value=!1,ce()}function Ns(){S.value?$t():kt()}function ge(Q){w.value=Q}return dt(S,Q=>{Q?Y():ce()}),t({toggle:Ns,open:kt,close:$t}),(Q,ee)=>O(B)?ae("",!0):(f(),p("div",{key:0,class:V(["ss-dbg-panel",{"ss-dbg-open":S.value}]),"data-ss-theme":O(K)},[o("div",du,[o("div",fu,[(f(!0),p(I,null,X(Le.value,be=>(f(),p("button",{key:be.id,type:"button",class:V(["ss-dbg-tab",{"ss-dbg-active":w.value===be.id}]),onClick:ns=>ge(be.id)},[O(we)[be.id]?(f(),p("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:O(we)[be.id].viewBox,innerHTML:O(we)[be.id].elements.join("")},null,8,pu)):ae("",!0),se(" "+m(be.label),1)],10,hu))),128))]),o("div",gu,[o("span",{class:V(["ss-dbg-conn-mode",e.isLive?"ss-dbg-conn-live":"ss-dbg-conn-polling"]),title:e.isLive?"Connected via Transmit (SSE) — real-time updates":"Polling every 3s"},m(e.isLive?"live":"polling"),11,bu),e.dashboardPath&&O(C).dashboard?(f(),p("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(f(),p("svg",{width:"14",height:"14",viewBox:O(we)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:O(we)["external-link"].elements.join("")},null,8,mu))],8,vu)):ae("",!0),fe(uu),o("button",{type:"button",class:"ss-dbg-close",onClick:$t,title:"Close panel"}," × ")])]),o("div",yu,[O(T)&&!O(y)&&!P.value?(f(),p("div",_u,"Loading...")):O(j)&&!P.value?(f(),p("div",xu," Error: "+m(O(j).message),1)):(f(),p(I,{key:2},[w.value==="queries"?(f(),Pe(O(s),{key:0,data:O(y),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):w.value==="events"?(f(),Pe(O(n),{key:1,data:O(y),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):w.value==="emails"?(f(),Pe(O(l),{key:2,data:O(y),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):w.value==="routes"?(f(),Pe(O(r),{key:3,data:O(y)},null,8,["data"])):w.value==="logs"?(f(),Pe(O(i),{key:4,data:O(y),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):w.value==="timeline"?(f(),Pe(O(a),{key:5,data:O(y),"dashboard-path":e.dashboardPath,"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","base-url","debug-endpoint","auth-token"])):w.value==="cache"?(f(),Pe(O(u),{key:6,data:O(y)},null,8,["data"])):w.value==="jobs"?(f(),Pe(O(h),{key:7,data:O(y)},null,8,["data"])):w.value==="config"?(f(),Pe(O(c),{key:8,data:O(y)},null,8,["data"])):w.value==="internals"?(f(),Pe(O(x),{key:9,data:O(y),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):w.value.startsWith("custom-")?(f(),Pe(O(_),{key:10,pane:Je(w.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):ae("",!0)],64))])],10,cu))}});let wt=null;window.__ssDebugPanel={mount(e,t,s){wt&&wt.unmount(),wt=fa({setup(){return()=>Ni(wu,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),wt.mount(e)},unmount(e){wt&&(wt.unmount(),wt=null)}};function pt(e){const t=q(null);let s=null;function n(){s&&s(),s=null,bl(()=>{t.value&&(s=Pa(t.value))})}return e&&dt(e,n),yt(n),$s(()=>{s&&s(),s=null}),{tableRef:t}}const ku={class:"ss-dbg-search-bar"},$u={class:"ss-dbg-summary"},Cu={key:0,class:"ss-dbg-empty"},Tu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Su=["onClick","onKeydown"],Eu={key:0,class:"ss-dbg-dup"},Au={key:1,class:"ss-dbg-dup"},Mu={class:"ss-dbg-c-muted"},Pu=["title"],Lu=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=q(""),n=new Set,l=G(()=>{if(!t.data)return[];const g=t.data;return(Array.isArray(g)?g:g.queries)||[]}),r=G(()=>Ia(l.value,s.value)),i=G(()=>Da(l.value)),a=G(()=>ja(l.value,i.value)),u=G(()=>{let g=`${r.value.length} queries`;return a.value.slowCount>0&&(g+=` | ${a.value.slowCount} slow`),a.value.dupCount>0&&(g+=` | ${a.value.dupCount} dup`),r.value.length>0&&(g+=` | avg ${We(a.value.avgDuration)}`),g});function h(g){n.has(g)?n.delete(g):n.add(g)}function c(g){return n.has(g)}function x(g){const S=On(g);return S==="very-slow"?"ss-dbg-very-slow":S==="slow"?"ss-dbg-slow":""}const{tableRef:_}=pt(()=>r.value);return(g,S)=>(f(),p("div",null,[o("div",ku,[He(o("input",{"onUpdate:modelValue":S[0]||(S[0]=w=>s.value=w),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[ze,s.value]]),o("span",$u,m(u.value),1)]),r.value.length===0?(f(),p("div",Cu,"No queries captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:_,class:"ss-dbg-table"},[S[1]||(S[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"SQL"),o("th",null,"Duration"),o("th",null,"Method"),o("th",null,"Model"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(r.value,w=>(f(),p("tr",{key:w.id},[o("td",Tu,m(w.id),1),o("td",null,[o("span",{class:V(["ss-dbg-sql",{"ss-dbg-expanded":c(w.id)}]),role:"button",tabindex:"0",onClick:K=>h(w.id),onKeydown:xr(K=>h(w.id),["enter"])},m(w.sql),43,Su),i.value[w.sql]>1?(f(),p("span",Eu," x"+m(i.value[w.sql]),1)):ae("",!0),w.inTransaction?(f(),p("span",Au," TXN")):ae("",!0)]),o("td",{class:V(["ss-dbg-duration",x(w.duration)])},m(O(We)(w.duration)),3),o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${w.method.toLowerCase()}`)},m(w.method),3)]),o("td",Mu,m(w.model||"-"),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(w.timestamp)},m(O(qe)(w.timestamp)),9,Pu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Lr=_e({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"}},setup(e){const t=e,s=q(!1),n=G(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return ss(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return ss(t.value,t.maxLen||100)}),l=G(()=>{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 r(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(f(),p("span",{key:0,class:V(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(f(),p("div",{key:1,class:V(`${t.classPrefix}-data-cell`)},[o("span",{class:V(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:r,onKeydown:u[0]||(u[0]=h=>h.key==="Enter"&&r())},m(n.value),35),s.value?(f(),p("div",{key:0,class:V(`${t.classPrefix}-data-full`),onClick:r},[o("button",{class:V(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Mn(i,["stop"])}," Copy ",2),o("pre",null,m(l.value),1)],2)):ae("",!0)],2))}}),Ou={class:"ss-dbg-search-bar"},Ru={class:"ss-dbg-summary"},Iu={key:0,class:"ss-dbg-empty"},Du={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},ju={class:"ss-dbg-event-name"},Fu=["href"],Nu=["viewBox","innerHTML"],Bu={class:"ss-dbg-event-data"},Uu=["title"],Hu=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=q(""),n=G(()=>{const i=t.data,a=i?(Array.isArray(i)?i:i.events)||[]:[];if(!s.value.trim())return a;const u=s.value.toLowerCase();return a.filter(h=>h.event.toLowerCase().includes(u)||h.data&&h.data.toLowerCase().includes(u))}),l=G(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:r}=pt(()=>n.value);return(i,a)=>(f(),p("div",null,[o("div",Ou,[He(o("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[ze,s.value]]),o("span",Ru,m(l.value),1)]),n.value.length===0?(f(),p("div",Iu,"No events captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:r,class:"ss-dbg-table"},[a[1]||(a[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Event"),o("th",null,"Data"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(n.value,u=>(f(),p("tr",{key:u.id},[o("td",Du,m(u.id),1),o("td",ju,[se(m(u.event)+" ",1),e.dashboardPath?(f(),p("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(f(),p("svg",{width:"12",height:"12",viewBox:O(we)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:O(we)["open-external"].elements.join("")},null,8,Nu))],8,Fu)):ae("",!0)]),o("td",Bu,[fe(Lr,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",{class:"ss-dbg-event-time",title:O(xt)(u.timestamp)},m(O(qe)(u.timestamp)),9,Uu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Vu={style:{position:"relative",height:"100%"}},Ku={key:0,class:"ss-dbg-email-preview"},zu={class:"ss-dbg-email-preview-header"},Wu={class:"ss-dbg-email-preview-meta"},qu={key:0},Ju={key:0,class:"ss-dbg-empty"},Gu=["srcdoc"],Qu={key:2,class:"ss-dbg-empty"},Yu={class:"ss-dbg-search-bar"},Xu={class:"ss-dbg-summary"},Zu={key:0,class:"ss-dbg-empty"},ec=["onClick"],tc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},sc=["title"],nc=["title"],lc={class:"ss-dbg-c-sql"},rc={class:"ss-dbg-c-muted"},oc={class:"ss-dbg-c-dim",style:{"text-align":"center"}},ic=["title"],ac=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"EmailsTab",props:{data:{},dashboardPath:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=q(""),n=q(null),l=q(null),r=q(!1),i=G(()=>{const _=t.data,g=_?(Array.isArray(_)?_:_.emails)||[]:[];if(!s.value.trim())return g;const S=s.value.toLowerCase();return g.filter(w=>w.subject.toLowerCase().includes(S)||w.from.toLowerCase().includes(S)||w.to.toLowerCase().includes(S)||w.mailer&&w.mailer.toLowerCase().includes(S))}),a=G(()=>{const _=t.data;return`${(_?(Array.isArray(_)?_:_.emails)||[]:[]).length} emails`});function u(_){return{sent:"ss-dbg-email-status-sent",sending:"ss-dbg-email-status-sending",queueing:"ss-dbg-email-status-queued",queued:"ss-dbg-email-status-queued",failed:"ss-dbg-email-status-failed"}[_]||""}async function h(_){if(n.value=_,l.value=_.html||null,!l.value&&_.id){r.value=!0;try{const g=t.debugEndpoint||"/admin/api/debug",S={};t.authToken&&(S.Authorization=`Bearer ${t.authToken}`);const w=await fetch(`${g}/emails/${_.id}/preview`,{headers:S,credentials:t.authToken?"omit":"include"});w.ok&&(l.value=await w.text())}catch{}finally{r.value=!1}}}function c(){n.value=null,l.value=null,r.value=!1}const{tableRef:x}=pt(()=>i.value);return(_,g)=>(f(),p("div",Vu,[n.value?(f(),p("div",Ku,[o("div",zu,[o("div",Wu,[o("div",null,[g[1]||(g[1]=o("strong",null,"From:",-1)),se(" "+m(n.value.from),1)]),o("div",null,[g[2]||(g[2]=o("strong",null,"To:",-1)),se(" "+m(n.value.to),1)]),n.value.cc?(f(),p("div",qu,[g[3]||(g[3]=o("strong",null,"CC:",-1)),se(" "+m(n.value.cc),1)])):ae("",!0),o("div",null,[g[4]||(g[4]=o("strong",null,"Subject:",-1)),se(" "+m(n.value.subject),1)]),o("div",null,[g[5]||(g[5]=o("strong",null,"Status:",-1)),o("span",{class:V(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:c},"×")]),r.value?(f(),p("div",Ju,"Loading preview...")):l.value?(f(),p("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,Gu)):(f(),p("div",Qu,"No HTML content"))])):ae("",!0),n.value?ae("",!0):(f(),p(I,{key:1},[o("div",Yu,[He(o("input",{"onUpdate:modelValue":g[0]||(g[0]=S=>s.value=S),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[ze,s.value]]),o("span",Xu,m(a.value),1)]),i.value.length===0?(f(),p("div",Zu,"No emails captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:x,class:"ss-dbg-table"},[g[6]||(g[6]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"From"),o("th",null,"To"),o("th",null,"Subject"),o("th",null,"Status"),o("th",null,"Mailer"),o("th",{title:"Attachments"},"📎"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(i.value,S=>(f(),p("tr",{key:S.id,class:"ss-dbg-email-row",onClick:w=>h(S)},[o("td",tc,m(S.id),1),o("td",{class:"ss-dbg-c-secondary",title:S.from},m(S.from),9,sc),o("td",{class:"ss-dbg-c-secondary",title:S.to},m(S.to),9,nc),o("td",lc,m(S.subject),1),o("td",null,[o("span",{class:V(["ss-dbg-email-status",u(S.status)])},m(S.status),3)]),o("td",rc,m(S.mailer),1),o("td",oc,m(S.attachmentCount>0?S.attachmentCount:"-"),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(S.timestamp)},m(O(qe)(S.timestamp)),9,ic)],8,ec))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),uc={class:"ss-dbg-search-bar"},cc={class:"ss-dbg-summary"},dc={key:0,class:"ss-dbg-empty"},fc={class:"ss-dbg-c-text"},hc={class:"ss-dbg-c-muted"},pc={class:"ss-dbg-c-sql"},gc={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},bc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=q(""),n=G(()=>{const a=t.data,u=a?(Array.isArray(a)?a:a.routes)||[]:[];if(!s.value.trim())return u;const h=s.value.toLowerCase();return u.filter(c=>c.pattern.toLowerCase().includes(h)||c.handler.toLowerCase().includes(h)||c.method.toLowerCase().includes(h)||c.name&&c.name.toLowerCase().includes(h))}),l=G(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function r(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=pt(()=>n.value);return(a,u)=>(f(),p("div",null,[o("div",uc,[He(o("input",{"onUpdate:modelValue":u[0]||(u[0]=h=>s.value=h),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[ze,s.value]]),o("span",cc,m(l.value),1)]),n.value.length===0?(f(),p("div",dc,"No routes found")):(f(),p("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=o("thead",null,[o("tr",null,[o("th",null,"Method"),o("th",null,"Pattern"),o("th",null,"Name"),o("th",null,"Handler"),o("th",null,"Middleware")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(n.value,(h,c)=>(f(),p("tr",{key:c,class:V({"ss-dbg-current-route":r(h)})},[o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${h.method.toLowerCase()}`)},m(h.method),3)]),o("td",fc,m(h.pattern),1),o("td",hc,m(h.name||"-"),1),o("td",pc,m(h.handler),1),o("td",gc,m(h.middleware.length>0?h.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),vc={class:"ss-dbg-log-filters"},mc=["onClick"],yc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},_c={class:"ss-dbg-search-bar"},xc={class:"ss-dbg-summary"},wc={key:0,class:"ss-dbg-empty"},kc={key:1},$c=["title"],Cc=["title","onClick","onKeydown"],Tc={key:1,class:"ss-dbg-log-reqid-empty"},Sc={class:"ss-dbg-log-msg"},Ec=["href"],Ac=["viewBox","innerHTML"],Mc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=q("all"),r=q(""),i=q(""),a=G(()=>{const c=s.data;let x=c?(Array.isArray(c)?c:c.logs||c.entries)||[]:[];if(x=Ra(x,l.value),i.value.trim()){const _=i.value.trim().toLowerCase();x=x.filter(g=>{const S=ht(g);return S&&S.toLowerCase().includes(_)})}if(r.value.trim()){const _=r.value.trim().toLowerCase();x=x.filter(g=>Mr(g).toLowerCase().includes(_))}return x}),u=G(()=>{const c=s.data,x=c?(Array.isArray(c)?c:c.logs||c.entries)||[]:[];return`${a.value.length} of ${x.length} entries`});function h(c){i.value=c,n("filterByRequestId",c)}return(c,x)=>(f(),p("div",null,[o("div",vc,[(f(!0),p(I,null,X(O(La),_=>(f(),p("button",{key:_,type:"button",class:V(["ss-dbg-log-filter",{"ss-dbg-active":l.value===_}]),onClick:g=>l.value=_},m(_),11,mc))),128)),i.value?(f(),p("button",{key:0,type:"button",class:"ss-dbg-log-filter ss-dbg-active",onClick:x[0]||(x[0]=_=>i.value="")}," req: "+m(i.value.slice(0,8))+" x ",1)):ae("",!0),o("span",yc,m(a.value.length)+" entries",1)]),o("div",_c,[He(o("input",{"onUpdate:modelValue":x[1]||(x[1]=_=>r.value=_),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[ze,r.value]]),He(o("input",{"onUpdate:modelValue":x[2]||(x[2]=_=>i.value=_),class:"ss-dbg-search ss-dbg-reqid-input",placeholder:"Filter by request ID...",type:"text"},null,512),[[ze,i.value]]),o("span",xc,m(u.value),1)]),a.value.length===0?(f(),p("div",wc,"No log entries")):(f(),p("div",kc,[(f(!0),p(I,null,X(a.value,(_,g)=>(f(),p("div",{key:String(_.id||g),class:"ss-dbg-log-entry"},[o("span",{class:V(["ss-dbg-log-level",O(Oa)(O(Rn)(_))])},m(O(Rn)(_).toUpperCase()),3),o("span",{class:"ss-dbg-log-time",title:O(Fs)(_)?O(xt)(O(Fs)(_)):""},m(O(Fs)(_)?O(qe)(O(Fs)(_)):"-"),9,$c),O(ht)(_)?(f(),p("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:O(ht)(_),onClick:S=>h(O(ht)(_)),onKeydown:xr(S=>h(O(ht)(_)),["enter"])},m(O(ht)(_).slice(0,8)),41,Cc)):(f(),p("span",Tc,"-")),o("span",Sc,m(O(Mr)(_)),1),e.dashboardPath&&O(ht)(_)?(f(),p("a",{key:2,href:`${e.dashboardPath}#logs?requestId=${O(ht)(_)}`,target:"_blank",class:"ss-dbg-deeplink"},[(f(),p("svg",{viewBox:O(we)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:O(we)["open-external"].elements.join("")},null,8,Ac))],8,Ec)):ae("",!0)]))),128))]))]))}})},Symbol.toStringTag,{value:"Module"}));function In(e="",t){let s=null;return function(){return s||(s=new Pn({baseUrl:e,authToken:t})),s}}const Pc={key:0,class:"ss-dbg-empty"},Lc={class:"ss-dbg-empty"},Oc={class:"ss-dbg-tl-detail-header"},Rc={class:"ss-dbg-tl-detail-url"},Ic={class:"ss-dbg-tl-meta"},Dc={class:"ss-dbg-tl-legend"},jc={id:"ss-dbg-tl-waterfall"},Fc={key:0,class:"ss-dbg-empty"},Nc=["title"],Bc={class:"ss-dbg-tl-track"},Uc=["title"],Hc={class:"ss-dbg-tl-dur"},Vc={key:0,class:"ss-dbg-tl-warnings"},Kc={key:3,class:"ss-dbg-empty"},zc={class:"ss-dbg-search-bar"},Wc={class:"ss-dbg-summary"},qc={key:0,class:"ss-dbg-empty"},Jc=["onClick"],Gc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Qc={class:"ss-dbg-c-text"},Yc=["href"],Xc=["viewBox","innerHTML"],Zc={class:"ss-dbg-c-muted",style:{"text-align":"center"}},ed=["title"],td=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=q(""),n=q(null),l=q(null),r=q(!1),i=q(null),a=In(t.baseUrl||"",t.authToken),u=G(()=>{const P=t.data;if(!P)return[];const y=Array.isArray(P)?P:P.traces||[];if(!s.value.trim())return y;const T=s.value.toLowerCase();return y.filter(j=>j.url.toLowerCase().includes(T)||j.method.toLowerCase().includes(T)||String(j.statusCode).includes(T))}),h={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"#525252"},c={request:"Request",middleware:"Middleware",db:"Database",view:"View",mail:"Mail",event:"Event",custom:"Custom"};function x(P){n.value===P.id?(n.value=null,l.value=null,i.value=null):(n.value=P.id,S(P.id))}function _(){n.value=null,l.value=null,i.value=null}let g=null;async function S(P){g&&g.abort(),g=new AbortController,r.value=!0,i.value=null,l.value=null;const y=t.debugEndpoint||"/admin/api/debug";try{const j=await a().get(`${y}/traces/${P}`);l.value=j}catch(T){if(T instanceof Error&&T.name==="AbortError")return;i.value=T instanceof Error?T.message:"Failed to load trace"}finally{r.value=!1}}const w=G(()=>l.value?.spans||[]),K=G(()=>l.value?.warnings||[]);function C(P,y){const T=y||1,j=T>0?P.startOffset/T*100:0,B=T>0?Math.max(P.duration/T*100,.5):.5;return{left:`${j}%`,width:`${B}%`,background:h[P.category]||h.custom}}const{tableRef:b}=pt(()=>u.value);$s(()=>{g&&g.abort()});function k(P){const y=On(P);return y==="very-slow"?"ss-dbg-very-slow":y==="slow"?"ss-dbg-slow":""}return(P,y)=>(f(),p("div",null,[n.value!==null?(f(),p(I,{key:0},[r.value?(f(),p("div",Pc,"Loading trace detail...")):i.value?(f(),p(I,{key:1},[o("div",{class:"ss-dbg-tl-detail-header"},[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:_},"← Back")]),o("div",Lc,"Error: "+m(i.value),1)],64)):l.value?(f(),p(I,{key:2},[o("div",Oc,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:_},"← Back"),o("span",{class:V(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),o("span",Rc,m(l.value.url),1),o("span",{class:V(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),o("span",Ic,m(O(We)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),o("div",Dc,[(f(),p(I,null,X(h,(T,j)=>o("span",{key:j,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:Et({background:T})},null,4),se(" "+m(c[j]||j),1)])),64))]),o("div",jc,[w.value.length===0?(f(),p("div",Fc," No spans captured for this request ")):ae("",!0),(f(!0),p(I,null,X(w.value,T=>(f(),p("div",{key:T.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:T.label},m(T.label),9,Nc),o("span",Bc,[o("span",{class:V(`ss-dbg-tl-bar ss-dbg-tl-bar-${T.category}`),style:Et(C(T,l.value.totalDuration)),title:`${T.label}: ${O(We)(T.duration)}`},null,14,Uc)]),o("span",Hc,m(O(We)(T.duration)),1)]))),128))]),K.value.length>0?(f(),p("div",Vc,[y[2]||(y[2]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(f(!0),p(I,null,X(K.value,(T,j)=>(f(),p("div",{key:j,class:"ss-dbg-tl-warning"},m(T),1))),128))])):ae("",!0)],64)):(f(),p("div",Kc,"Loading trace detail..."))],64)):(f(),p(I,{key:1},[o("div",zc,[He(o("input",{"onUpdate:modelValue":y[0]||(y[0]=T=>s.value=T),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[ze,s.value]]),o("span",Wc,m(u.value.length)+" traces",1)]),u.value.length===0?(f(),p("div",qc,"No traces captured")):(f(),p("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[y[3]||(y[3]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Method"),o("th",null,"URL"),o("th",null,"Status"),o("th",null,"Duration"),o("th",null,"Spans"),o("th",null,"Time")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(u.value,T=>(f(),p("tr",{key:T.id,class:"ss-dbg-email-row",onClick:j=>x(T)},[o("td",Gc,m(T.id),1),o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${T.method.toLowerCase()}`)},m(T.method),3)]),o("td",Qc,[se(m(T.url)+" ",1),e.dashboardPath?(f(),p("a",{key:0,href:`${e.dashboardPath}#timeline?id=${T.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:y[1]||(y[1]=Mn(()=>{},["stop"]))},[(f(),p("svg",{viewBox:O(we)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:O(we)["open-external"].elements.join("")},null,8,Xc))],8,Yc)):ae("",!0)]),o("td",null,[o("span",{class:V(`ss-dbg-status ss-dbg-status-${Math.floor(T.statusCode/100)}xx`)},m(T.statusCode),3)]),o("td",{class:V(["ss-dbg-duration",k(T.totalDuration)])},m(O(We)(T.totalDuration)),3),o("td",Zc,m(T.spanCount),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(T.timestamp)},m(O(qe)(T.timestamp)),9,ed)],8,Jc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),sd={class:"ss-dbg-cache-stats"},nd={class:"ss-dbg-cache-stat"},ld={class:"ss-dbg-cache-stat-value"},rd={class:"ss-dbg-cache-stat"},od={class:"ss-dbg-cache-stat-value"},id={class:"ss-dbg-cache-stat"},ad={class:"ss-dbg-cache-stat-value"},ud={class:"ss-dbg-cache-stat"},cd={class:"ss-dbg-cache-stat-value"},dd={class:"ss-dbg-cache-stat"},fd={class:"ss-dbg-cache-stat-value"},hd={class:"ss-dbg-search-bar"},pd={class:"ss-dbg-summary"},gd={key:0,class:"ss-dbg-cache-detail"},bd={style:{"margin-top":"8px"}},vd={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},md={key:0},yd={key:0,class:"ss-dbg-empty"},_d=["onClick"],xd={class:"ss-dbg-c-sql"},wd={class:"ss-dbg-c-muted"},kd={class:"ss-dbg-c-dim"},$d={class:"ss-dbg-c-dim"},Cd=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=q(""),n=q(null),l=G(()=>t.data||{}),r=G(()=>l.value.stats||{}),i=G(()=>{const u=l.value.keys||[];if(!s.value.trim())return u;const h=s.value.toLowerCase();return u.filter(c=>c.key.toLowerCase().includes(h))}),{tableRef:a}=pt(()=>i.value);return(u,h)=>(f(),p("div",null,[o("div",sd,[o("span",nd,[h[2]||(h[2]=o("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),o("span",ld,m((r.value.hitRate||0).toFixed(0))+"%",1)]),o("span",rd,[h[3]||(h[3]=o("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),o("span",od,m(r.value.totalHits||0),1)]),o("span",id,[h[4]||(h[4]=o("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),o("span",ad,m(r.value.totalMisses||0),1)]),o("span",ud,[h[5]||(h[5]=o("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),o("span",cd,m(r.value.keyCount||0),1)]),o("span",dd,[h[6]||(h[6]=o("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),o("span",fd,m((r.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),o("div",hd,[He(o("input",{"onUpdate:modelValue":h[0]||(h[0]=c=>s.value=c),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[ze,s.value]]),o("span",pd,m(i.value.length)+" keys",1)]),n.value?(f(),p("div",gd,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:h[1]||(h[1]=c=>n.value=null)}," ← Back "),o("div",bd,[o("strong",null,m(n.value.key),1),o("span",vd,m(n.value.type)+" · TTL: "+m(O(Tr)(n.value.ttl)),1)]),n.value.value!==void 0?(f(),p("pre",md,m(JSON.stringify(n.value.value,null,2)),1)):ae("",!0)])):(f(),p(I,{key:1},[i.value.length===0?(f(),p("div",yd,"No cache keys found")):(f(),p("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[h[7]||(h[7]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Type"),o("th",null,"TTL"),o("th",null,"Size")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(i.value,c=>(f(),p("tr",{key:c.key,class:"ss-dbg-email-row",onClick:x=>n.value=c},[o("td",xd,m(c.key),1),o("td",wd,m(c.type),1),o("td",kd,m(O(Tr)(c.ttl)),1),o("td",$d,m(O(Ta)(c.size)),1)],8,_d))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Td={class:"ss-dbg-job-stats-area"},Sd={class:"ss-dbg-job-stats"},Ed={class:"ss-dbg-job-stat"},Ad={class:"ss-dbg-job-stat-value"},Md={class:"ss-dbg-job-stat"},Pd={class:"ss-dbg-job-stat-value"},Ld={class:"ss-dbg-job-stat"},Od={class:"ss-dbg-job-stat-value"},Rd={class:"ss-dbg-job-stat"},Id={class:"ss-dbg-job-stat-value"},Dd={class:"ss-dbg-job-stat"},jd={class:"ss-dbg-job-stat-value ss-dbg-c-red"},Fd={class:"ss-dbg-log-filters"},Nd=["onClick"],Bd={key:0,class:"ss-dbg-empty"},Ud={class:"ss-dbg-c-dim"},Hd={class:"ss-dbg-c-sql"},Vd={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Kd={class:"ss-dbg-duration"},zd=["title"],Wd=["onClick"],qd=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=q("all"),r=G(()=>s.data||{}),i=G(()=>r.value.stats||r.value.overview||{}),a=G(()=>{const c=r.value.jobs||[];return l.value==="all"?c:c.filter(x=>x.status===l.value)});function u(c){n("retryJob",c)}const{tableRef:h}=pt(()=>a.value);return(c,x)=>(f(),p("div",null,[o("div",Td,[o("div",Sd,[o("span",Ed,[x[0]||(x[0]=o("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),o("span",Ad,m(i.value.active??0),1)]),o("span",Md,[x[1]||(x[1]=o("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),o("span",Pd,m(i.value.waiting??0),1)]),o("span",Ld,[x[2]||(x[2]=o("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),o("span",Od,m(i.value.delayed??0),1)]),o("span",Rd,[x[3]||(x[3]=o("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),o("span",Id,m(i.value.completed??0),1)]),o("span",Dd,[x[4]||(x[4]=o("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),o("span",jd,m(i.value.failed??0),1)])]),o("div",Fd,[(f(!0),p(I,null,X(O(Fa),_=>(f(),p("button",{key:_,class:V(["ss-dbg-job-filter",{"ss-dbg-active":l.value===_}]),onClick:g=>l.value=_},m(_),11,Nd))),128))])]),a.value.length===0?(f(),p("div",Bd,"No jobs found")):(f(),p("table",{key:1,ref_key:"tableRef",ref:h,class:"ss-dbg-table"},[x[5]||(x[5]=o("thead",null,[o("tr",null,[o("th",null,"ID"),o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Payload"),o("th",null,"Tries"),o("th",null,"Duration"),o("th",null,"Time"),o("th")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(a.value,_=>(f(),p("tr",{key:_.id},[o("td",Ud,m(_.id),1),o("td",Hd,m(_.name),1),o("td",null,[o("span",{class:V(`ss-dbg-badge ${O(Na)(_.status)}`)},m(_.status),3)]),o("td",null,[fe(Lr,{value:_.payload||_.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",Vd,m(_.attempts),1),o("td",Kd,m(_.duration!==null?O(We)(_.duration):"-"),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(_.timestamp||_.createdAt)},m(O(qe)(_.timestamp||_.createdAt)),9,zd),o("td",null,[_.status==="failed"?(f(),p("button",{key:0,class:"ss-dbg-retry-btn",onClick:g=>u(_.id)}," Retry ",8,Wd)):ae("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Jd={key:0,class:"ss-dbg-empty"},Gd={class:"ss-dbg-search-bar"},Qd={class:"ss-dbg-config-search-wrap"},Yd=["title"],Xd={class:"ss-dbg-summary"},Zd={key:0,class:"ss-dbg-empty"},ef={key:1,class:"ss-dbg-config-sections"},tf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},sf={class:"ss-dbg-config-key"},nf={key:0,class:"ss-dbg-config-match"},lf={key:0,class:"ss-dbg-config-redacted"},rf={key:0,class:"ss-dbg-config-match"},of=["onClick"],af=["onClick"],uf={class:"ss-dbg-config-toggle"},cf={class:"ss-dbg-config-key"},df={key:0,class:"ss-dbg-config-match"},ff={class:"ss-dbg-config-count"},hf={key:0,class:"ss-dbg-config-table-wrap"},pf={class:"ss-dbg-table"},gf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},bf={key:0,class:"ss-dbg-config-match"},vf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},mf={key:0,class:"ss-dbg-redacted-wrap"},yf={key:0,class:"ss-dbg-config-match"},_f=["onClick"],xf={key:0,class:"ss-dbg-empty"},wf={key:1,class:"ss-dbg-config-table-wrap"},kf={class:"ss-dbg-table"},$f={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Cf={key:0,class:"ss-dbg-config-match"},Tf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Sf={key:0,class:"ss-dbg-redacted-wrap"},Ef={key:0,class:"ss-dbg-config-match"},Af=["onClick"],Mf=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=q("app"),n=q(""),l=q(""),r=q(!1),i=q(new Set),a=q(null);let u=null;dt(n,y=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=y.trim().toLowerCase()},200)});function h(y){return lu(y)}function c(y){if(y==null)return"null";if(typeof y=="boolean"||typeof y=="number")return String(y);if(typeof y=="string")return y;if(Array.isArray(y))return JSON.stringify(y);try{return JSON.stringify(y)}catch{return String(y)}}function x(y){return y==null?"ss-dbg-config-val-null":typeof y=="boolean"?y?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof y=="number"?"ss-dbg-config-val-number":Array.isArray(y)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function _(y,T){navigator.clipboard.writeText(y).then(()=>{a.value=T,setTimeout(()=>{a.value===T&&(a.value=null)},1500)})}function g(){const y=s.value==="app"?t.data?.app:t.data?.env;y&&_(JSON.stringify(y,null,2),"__all_json__")}function S(y,T){return tu(y,T,l.value)}function w(y){if(!l.value)return[{text:y,match:!1}];const T=l.value,j=y.toLowerCase(),B=[];let Y=0,ce=j.indexOf(T);for(;ce!==-1;)ce>Y&&B.push({text:y.slice(Y,ce),match:!1}),B.push({text:y.slice(ce,ce+T.length),match:!0}),Y=ce+T.length,ce=j.indexOf(T,Y);return Y<y.length&&B.push({text:y.slice(Y),match:!1}),B.length?B:[{text:y,match:!1}]}const K=G(()=>{const y=t.data?.app;if(!y)return[];const T=[];for(const[j,B]of Object.entries(y))if(B!==null&&typeof B=="object"&&!Array.isArray(B)){const ce=Object.entries(B).filter(([Le,Je])=>S(Le,Je)).map(([Le,Je])=>({key:Le,value:Je,fullKey:`${j}.${Le}`}));(ce.length>0||!l.value)&&T.push({key:j,entries:ce,isFlat:!1})}else S(j,B)&&T.push({key:j,entries:[{key:j,value:B,fullKey:j}],isFlat:!0});return T}),C=G(()=>{const y=t.data?.env;return y?Object.entries(y).filter(([T,j])=>S(T,j)).map(([T,j])=>({key:T,value:j})):[]});function b(y){i.value.has(y)?i.value.delete(y):i.value.add(y)}function k(){for(const y of K.value)y.isFlat||i.value.add(y.key)}function P(){i.value.clear()}return dt(l,y=>{if(y)for(const T of K.value)!T.isFlat&&T.entries.length>0&&i.value.add(T.key)}),(y,T)=>(f(),p("div",null,[e.data?(f(),p(I,{key:1},[o("div",Gd,[o("button",{class:V(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:T[0]||(T[0]=j=>s.value="app")}," App Config ",2),o("button",{class:V(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:T[1]||(T[1]=j=>s.value="env")}," Environment ",2),o("div",Qd,[He(o("input",{"onUpdate:modelValue":T[2]||(T[2]=j=>n.value=j),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[ze,n.value]])]),s.value==="app"&&!l.value?(f(),p(I,{key:0},[o("button",{class:"ss-dbg-btn-clear",onClick:k},"Expand All"),o("button",{class:"ss-dbg-btn-clear",onClick:P},"Collapse All")],64)):ae("",!0),o("button",{class:V(["ss-dbg-btn-clear",{"ss-dbg-active":r.value}]),onClick:T[3]||(T[3]=j=>r.value=!r.value),title:r.value?"Hide redacted values":"Show redacted values"},m(r.value?"Hide Secrets":"Show Secrets"),11,Yd),o("button",{class:"ss-dbg-btn-clear",onClick:g,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),o("span",Xd,[s.value==="app"?(f(),p(I,{key:0},[se(m(K.value.length)+" sections ",1)],64)):(f(),p(I,{key:1},[se(m(C.value.length)+" variables ",1)],64))])]),s.value==="app"?(f(),p(I,{key:0},[K.value.length===0?(f(),p("div",Zd,m(l.value?"No matching config entries":"No app config data"),1)):(f(),p("div",ef,[(f(!0),p(I,null,X(K.value,j=>(f(),p("div",{key:j.key,class:"ss-dbg-config-section"},[j.isFlat?(f(),p("div",tf,[o("span",sf,[(f(!0),p(I,null,X(w(j.key),(B,Y)=>(f(),p(I,{key:Y},[B.match?(f(),p("span",nf,m(B.text),1)):(f(),p(I,{key:1},[se(m(B.text),1)],64))],64))),128))]),T[7]||(T[7]=o("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),h(j.key)&&!r.value?(f(),p("span",lf,[...T[6]||(T[6]=[o("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(f(),p("span",{key:1,class:V(x(j.entries[0].value))},[(f(!0),p(I,null,X(w(c(j.entries[0].value)),(B,Y)=>(f(),p(I,{key:Y},[B.match?(f(),p("span",rf,m(B.text),1)):(f(),p(I,{key:1},[se(m(B.text),1)],64))],64))),128))],2)),o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===j.key}]),onClick:Mn(B=>_(c(j.entries[0].value),j.key),["stop"]),title:"Copy value"},m(a.value===j.key?"✓":"⎘"),11,of)])):(f(),p(I,{key:1},[o("div",{class:"ss-dbg-config-section-header",onClick:B=>b(j.key)},[o("span",uf,m(i.value.has(j.key)?"▼":"▶"),1),o("span",cf,[(f(!0),p(I,null,X(w(j.key),(B,Y)=>(f(),p(I,{key:Y},[B.match?(f(),p("span",df,m(B.text),1)):(f(),p(I,{key:1},[se(m(B.text),1)],64))],64))),128))]),o("span",ff,m(j.entries.length)+" keys",1)],8,af),i.value.has(j.key)?(f(),p("div",hf,[o("table",pf,[T[9]||(T[9]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(f(!0),p(I,null,X(j.entries,B=>(f(),p("tr",{key:B.fullKey},[o("td",gf,[(f(!0),p(I,null,X(w(B.key),(Y,ce)=>(f(),p(I,{key:ce},[Y.match?(f(),p("span",bf,m(Y.text),1)):(f(),p(I,{key:1},[se(m(Y.text),1)],64))],64))),128))]),o("td",vf,[h(B.key)&&!r.value?(f(),p("span",mf,[T[8]||(T[8]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:T[4]||(T[4]=Y=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(f(),p("span",{key:1,class:V(x(B.value))},[(f(!0),p(I,null,X(w(c(B.value)),(Y,ce)=>(f(),p(I,{key:ce},[Y.match?(f(),p("span",yf,m(Y.text),1)):(f(),p(I,{key:1},[se(m(Y.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===B.fullKey}]),onClick:Y=>_(c(B.value),B.fullKey),title:"Copy value"},m(a.value===B.fullKey?"✓":"⎘"),11,_f)])]))),128))])])])):ae("",!0)],64))]))),128))]))],64)):(f(),p(I,{key:1},[C.value.length===0?(f(),p("div",xf,m(l.value?"No matching environment variables":"No environment data"),1)):(f(),p("div",wf,[o("table",kf,[T[11]||(T[11]=o("thead",null,[o("tr",null,[o("th",null,"Variable"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(f(!0),p(I,null,X(C.value,j=>(f(),p("tr",{key:j.key},[o("td",$f,[(f(!0),p(I,null,X(w(j.key),(B,Y)=>(f(),p(I,{key:Y},[B.match?(f(),p("span",Cf,m(B.text),1)):(f(),p(I,{key:1},[se(m(B.text),1)],64))],64))),128))]),o("td",Tf,[h(j.key)&&!r.value?(f(),p("span",Sf,[T[10]||(T[10]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:T[5]||(T[5]=B=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(f(),p("span",{key:1,class:V(x(j.value))},[(f(!0),p(I,null,X(w(c(j.value)),(B,Y)=>(f(),p(I,{key:Y},[B.match?(f(),p("span",Ef,m(B.text),1)):(f(),p(I,{key:1},[se(m(B.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${j.key}`}]),onClick:B=>_(c(j.value),`env-${j.key}`),title:"Copy value"},m(a.value===`env-${j.key}`?"✓":"⎘"),11,Af)])]))),128))])])]))],64))],64)):(f(),p("div",Jd,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),Pf={key:0,class:"ss-dbg-empty"},Lf={key:1,class:"ss-dbg-empty"},Of={key:2,class:"ss-dbg-empty"},Rf={class:"ss-dbg-info-cards"},If={class:"ss-dbg-info-card-label"},Df={class:"ss-dbg-info-card-value"},jf={key:0,class:"ss-dbg-empty"},Ff={key:1,class:"ss-dbg-table"},Nf={style:{"font-family":"monospace","font-size":"11px"}},Bf={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},Uf={class:"ss-dbg-c-red"},Hf={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},Vf={style:{"font-size":"11px"}},Kf=["onClick"],zf=["onClick"],Wf={key:2,class:"ss-dbg-empty"},qf={key:3,class:"ss-dbg-table"},Jf={class:"ss-dbg-bar"},Gf={class:"ss-dbg-bar-track"},Qf={key:4,class:"ss-dbg-empty"},Yf={key:5,class:"ss-dbg-table"},Xf={class:"ss-dbg-c-dim"},Zf={key:6,class:"ss-dbg-empty"},eh={key:7,class:"ss-dbg-table"},th={class:"ss-dbg-c-dim"},sh={class:"ss-dbg-table"},nh={style:{"font-family":"monospace","font-size":"11px"}},lh={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},rh={style:{"font-family":"monospace","font-size":"11px"}},oh={class:"ss-dbg-table"},ih={class:"ss-dbg-table"},ah={style:{"font-family":"monospace","font-size":"11px"}},uh={style:{"font-family":"monospace","font-size":"11px"}},ch={style:{"font-family":"monospace","font-size":"11px"}},dh={style:{"font-size":"11px"}},fh=3e3,hh=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=q(null),n=q(!0),l=q(null);let r=null;const i=In(t.baseUrl||"",t.authToken);async function a(){const C=t.debugEndpoint||"/admin/api/debug";try{const k=await i().get(`${C}/diagnostics`);s.value=k,l.value=null,n.value=!1}catch(b){if(b instanceof Is){l.value=b,n.value=!1,r&&(clearInterval(r),r=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}yt(()=>{n.value=!0,l.value=null,a(),r=setInterval(a,fh)}),$s(()=>{r&&(clearInterval(r),r=null)});const u=q(new Set);function h(C){u.value.has(C)?u.value.delete(C):u.value.add(C)}function c(C){const b=Za(C);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function x(C){return C.debounceMs!==void 0?`${We(C.debounceMs)} (debounce)`:C.intervalMs!==void 0?We(C.intervalMs):"-"}const _=G(()=>s.value||t.data||null),g=G(()=>_.value||{}),S=G(()=>g.value.buffers?Object.entries(g.value.buffers).map(([C,b])=>({name:C.charAt(0).toUpperCase()+C.slice(1),...b,percent:Qa(b.current,b.max)})):[]),w=G(()=>g.value.timers?Object.entries(g.value.timers).map(([C,b])=>({key:C,label:Ka(C),...b,interval:x(b)})):[]),K=G(()=>{if(!g.value)return[];const C=[];if(g.value.transmit&&C.push({key:"transmit",label:"Transmit (SSE)",status:g.value.transmit.available?"connected":"unavailable",details:g.value.transmit.available?`Channels: ${g.value.transmit.channels.join(", ")}`:"Not installed"}),g.value.integrations)for(const[b,k]of Object.entries(g.value.integrations))C.push({key:b,label:Wa(b),status:qa(k),details:Ja(b,k)});return C});return(C,b)=>(f(),p("div",null,[n.value&&!_.value?(f(),p("div",Pf,"Loading diagnostics...")):l.value?(f(),p("div",Lf,"Error: "+m(l.value.message),1)):_.value?(f(),p(I,{key:3},[b[41]||(b[41]=o("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),o("div",Rf,[(f(!0),p(I,null,X([{label:"Version",value:g.value.package?.version||"-"},{label:"Node.js",value:g.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:g.value.package?.adonisVersion||"-"},{label:"Uptime",value:O(Ca)(g.value.package?.uptime)},{label:"Renderer",value:g.value.devToolbar?.renderer||"preact"}],k=>(f(),p("div",{key:k.label,class:"ss-dbg-info-card"},[o("span",If,m(k.label),1),o("span",Df,m(k.value),1)]))),128))]),b[42]||(b[42]=o("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),g.value.collectors?.length?(f(),p("table",Ff,[b[4]||(b[4]=o("thead",null,[o("tr",null,[o("th",null,"Collector"),o("th",null,"Status"),o("th",null,"Last Error"),o("th",null,"Config")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(g.value.collectors,k=>(f(),p("tr",{key:k.name},[o("td",null,[o("span",Nf,m(k.name),1),k.label&&k.label!==k.name?(f(),p("span",Bf,m(k.label),1)):ae("",!0)]),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",Uf,[k.lastError?(f(),p(I,{key:0},[se(m(k.lastError)+" ",1),o("span",Hf,m(O(qe)(k.lastErrorAt??0)),1)],64)):(f(),p(I,{key:1},[se("-")],64))]),o("td",Vf,[Object.keys(k.config||{}).length?(f(!0),p(I,{key:0},X(O(Ga)(k.config),P=>(f(),p("span",{key:P.key,style:{"margin-right":"8px"}},[se(m(P.key)+"=",1),P.secret&&!u.value.has(`collector-${k.name}-${P.key}`)?(f(),p("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:y=>h(`collector-${k.name}-${P.key}`)},"••••••••",8,Kf)):(f(),p(I,{key:1},[o("span",null,m(P.value),1),P.secret?(f(),p("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:y=>h(`collector-${k.name}-${P.key}`)}," Hide ",8,zf)):ae("",!0)],64))]))),128)):(f(),p(I,{key:1},[se("-")],64))])]))),128))])])):(f(),p("div",jf,"No collectors")),b[43]||(b[43]=o("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),S.value.length?(f(),p("table",qf,[b[5]||(b[5]=o("thead",null,[o("tr",null,[o("th",null,"Buffer"),o("th",null,"Usage"),o("th",null,"Fill %")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(S.value,k=>(f(),p("tr",{key:k.name},[o("td",null,m(k.name),1),o("td",null,m(k.current.toLocaleString())+" / "+m(k.max.toLocaleString()),1),o("td",null,[o("div",Jf,[o("div",Gf,[o("div",{class:V(["ss-dbg-bar-fill",k.percent>=100?"ss-dbg-bar-fill-warn":""]),style:Et({width:k.percent+"%"})},null,6)]),o("span",{class:V(["ss-dbg-bar-pct",k.percent>=100?"ss-dbg-bar-pct-warn":""])},m(k.percent)+"%",3)])])]))),128))])])):(f(),p("div",Wf,"No buffer data")),b[44]||(b[44]=o("div",{class:"ss-dbg-internals-title"},"Timers",-1)),w.value.length?(f(),p("table",Yf,[b[6]||(b[6]=o("thead",null,[o("tr",null,[o("th",null,"Timer"),o("th",null,"Status"),o("th",null,"Interval")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(w.value,k=>(f(),p("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(k.active?"active":"inactive")])},null,2),se(" "+m(k.active?"active":"inactive"),1)]),o("td",Xf,m(k.interval),1)]))),128))])])):(f(),p("div",Qf,"No timer data")),b[45]||(b[45]=o("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),K.value.length?(f(),p("table",eh,[b[7]||(b[7]=o("thead",null,[o("tr",null,[o("th",null,"Integration"),o("th",null,"Status"),o("th",null,"Details")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(K.value,k=>(f(),p("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",th,m(k.details),1)]))),128))])])):(f(),p("div",Zf,"No integration data")),g.value.storage?(f(),p(I,{key:8},[b[16]||(b[16]=o("div",{class:"ss-dbg-internals-title"},"Storage",-1)),o("table",sh,[b[14]||(b[14]=o("thead",null,[o("tr",null,[o("th",null,"Metric"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[8]||(b[8]=o("td",null,"Status",-1)),o("td",null,[o("span",{class:V(["ss-dbg-dot",c(g.value.storage.ready?"ready":"unavailable")])},null,2),se(" "+m(g.value.storage.ready?"ready":"not ready"),1)])]),o("tr",null,[b[9]||(b[9]=o("td",null,"DB Path",-1)),o("td",nh,m(g.value.storage.dbPath),1)]),o("tr",null,[b[10]||(b[10]=o("td",null,"File Size",-1)),o("td",null,m(g.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[11]||(b[11]=o("td",null,"WAL Size",-1)),o("td",null,m(g.value.storage.walSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[12]||(b[12]=o("td",null,"Retention",-1)),o("td",null,m(g.value.storage.retentionDays)+" days",1)]),o("tr",null,[b[13]||(b[13]=o("td",null,"Last Cleanup",-1)),o("td",null,m(O(qe)(g.value.storage.lastCleanupAt??0)),1)])])]),g.value.storage.tables?.length?(f(),p("table",lh,[b[15]||(b[15]=o("thead",null,[o("tr",null,[o("th",null,"Table"),o("th",null,"Rows")])],-1)),o("tbody",null,[(f(!0),p(I,null,X(g.value.storage.tables,k=>(f(),p("tr",{key:k.name},[o("td",rh,m(k.name),1),o("td",null,m(k.rowCount.toLocaleString()),1)]))),128))])])):ae("",!0)],64)):ae("",!0),b[46]||(b[46]=o("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),o("table",oh,[b[24]||(b[24]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[17]||(b[17]=o("td",null,"intervalMs",-1)),o("td",null,m(g.value.config?.intervalMs),1)]),o("tr",null,[b[18]||(b[18]=o("td",null,"transport",-1)),o("td",null,m(g.value.config?.transport),1)]),o("tr",null,[b[19]||(b[19]=o("td",null,"channelName",-1)),o("td",null,m(g.value.config?.channelName),1)]),o("tr",null,[b[20]||(b[20]=o("td",null,"endpoint",-1)),o("td",null,m(g.value.config?.endpoint===!1?"false":g.value.config?.endpoint),1)]),o("tr",null,[b[21]||(b[21]=o("td",null,"skipInTest",-1)),o("td",null,m(g.value.config?.skipInTest),1)]),o("tr",null,[b[22]||(b[22]=o("td",null,"onStats callback",-1)),o("td",null,m(g.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),o("tr",null,[b[23]||(b[23]=o("td",null,"shouldShow callback",-1)),o("td",null,m(g.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[47]||(b[47]=o("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),o("table",ih,[b[40]||(b[40]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[25]||(b[25]=o("td",null,"enabled",-1)),o("td",null,m(g.value.devToolbar?.enabled),1)]),o("tr",null,[b[26]||(b[26]=o("td",null,"tracing",-1)),o("td",null,m(g.value.devToolbar?.tracing),1)]),o("tr",null,[b[27]||(b[27]=o("td",null,"dashboard",-1)),o("td",null,m(g.value.devToolbar?.dashboard),1)]),o("tr",null,[b[28]||(b[28]=o("td",null,"dashboardPath",-1)),o("td",ah,m(g.value.devToolbar?.dashboardPath),1)]),o("tr",null,[b[29]||(b[29]=o("td",null,"debugEndpoint",-1)),o("td",uh,[u.value.has("cfg-debugEndpoint")?(f(),p(I,{key:1},[se(m(g.value.devToolbar?.debugEndpoint)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=k=>h("cfg-debugEndpoint"))}," Hide ")],64)):(f(),p("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=k=>h("cfg-debugEndpoint"))},"••••••••"))])]),o("tr",null,[b[30]||(b[30]=o("td",null,"maxQueries",-1)),o("td",null,m(g.value.devToolbar?.maxQueries),1)]),o("tr",null,[b[31]||(b[31]=o("td",null,"maxEvents",-1)),o("td",null,m(g.value.devToolbar?.maxEvents),1)]),o("tr",null,[b[32]||(b[32]=o("td",null,"maxEmails",-1)),o("td",null,m(g.value.devToolbar?.maxEmails),1)]),o("tr",null,[b[33]||(b[33]=o("td",null,"maxTraces",-1)),o("td",null,m(g.value.devToolbar?.maxTraces),1)]),o("tr",null,[b[34]||(b[34]=o("td",null,"slowQueryThresholdMs",-1)),o("td",null,m(g.value.devToolbar?.slowQueryThresholdMs),1)]),o("tr",null,[b[35]||(b[35]=o("td",null,"retentionDays",-1)),o("td",null,m(g.value.devToolbar?.retentionDays),1)]),o("tr",null,[b[36]||(b[36]=o("td",null,"dbPath",-1)),o("td",ch,[u.value.has("cfg-dbPath")?(f(),p(I,{key:1},[se(m(g.value.devToolbar?.dbPath)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=k=>h("cfg-dbPath"))}," Hide ")],64)):(f(),p("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=k=>h("cfg-dbPath"))},"••••••••"))])]),o("tr",null,[b[37]||(b[37]=o("td",null,"persistDebugData",-1)),o("td",null,m(g.value.devToolbar?.persistDebugData),1)]),o("tr",null,[b[38]||(b[38]=o("td",null,"excludeFromTracing",-1)),o("td",dh,m(g.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),o("tr",null,[b[39]||(b[39]=o("td",null,"customPanes",-1)),o("td",null,m(g.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(f(),p("div",Of,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),ph={key:0,class:"ss-dbg-search-bar"},gh=["placeholder"],bh={class:"ss-dbg-summary"},vh={key:1,class:"ss-dbg-empty"},mh={key:2,class:"ss-dbg-empty"},yh=["onClick"],_h={key:0,class:"ss-dbg-c-dim"},xh=["title"],wh=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=q([]),n=q(!1),l=q(""),r=In(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const C=await r().fetch(t.pane.endpoint),k=(t.pane.dataKey||t.pane.id).split(".");let P=C;for(const y of k)P=P?.[y];s.value=Array.isArray(P)?P:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=G(()=>{if(!l.value.trim())return s.value;const C=l.value.toLowerCase(),b=t.pane.columns.filter(k=>k.searchable).map(k=>k.key);return b.length===0?s.value:s.value.filter(k=>b.some(P=>{const y=k[P];return y==null?!1:String(y).toLowerCase().includes(C)}))});function h(C,b){if(C==null)return"-";switch(b.format||"text"){case"time":return typeof C=="number"?qe(C):String(C);case"timeAgo":return qe(C);case"duration":return We(typeof C=="number"?C:parseFloat(String(C)));case"method":return String(C);case"json":{let P=C;if(typeof C=="string")try{P=JSON.parse(C)}catch{}return ss(P,80)}case"badge":return String(C);default:return String(C)}}function c(C,b){if(b.format==="time"||b.format==="timeAgo")return xt(C)}function x(C){return C==null}function _(C){const b=typeof C=="number"?C:parseFloat(String(C));if(isNaN(b))return"ss-dbg-duration";const k=On(b);return k==="very-slow"?"ss-dbg-duration ss-dbg-very-slow":k==="slow"?"ss-dbg-duration ss-dbg-slow":"ss-dbg-duration"}function g(C,b){if(b.format==="badge"&&b.badgeColorMap){const k=String(C).toLowerCase();return b.badgeColorMap[k]||"muted"}return""}function S(C){return`ss-dbg-method ss-dbg-method-${String(C).toLowerCase()}`}function w(){s.value=[]}const{tableRef:K}=pt(()=>u.value);return yt(()=>{a()}),(C,b)=>(f(),p("div",null,[e.pane.search?(f(),p("div",ph,[He(o("input",{"onUpdate:modelValue":b[0]||(b[0]=k=>l.value=k),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,gh),[[ze,l.value]]),o("span",bh,m(u.value.length)+" items",1),e.pane.clearable?(f(),p("button",{key:0,class:"ss-dbg-btn-clear",onClick:w},"Clear")):ae("",!0)])):ae("",!0),n.value?(f(),p("div",vh,"Loading...")):u.value.length===0?(f(),p("div",mh,"No data")):(f(),p("table",{key:3,ref_key:"tableRef",ref:K,class:"ss-dbg-table"},[o("thead",null,[o("tr",null,[(f(!0),p(I,null,X(e.pane.columns,k=>(f(),p("th",{key:k.key},m(k.label),1))),128))])]),o("tbody",null,[(f(!0),p(I,null,X(u.value,(k,P)=>(f(),p("tr",{key:String(k.id??P)},[(f(!0),p(I,null,X(e.pane.columns,y=>(f(),p("td",{key:y.key,class:V({"ss-dbg-filterable":y.filterable}),onClick:T=>y.filterable?l.value=String(k[y.key]):void 0},[x(k[y.key])?(f(),p("span",_h,"-")):y.format==="time"||y.format==="timeAgo"?(f(),p("span",{key:1,class:"ss-dbg-event-time",title:c(k[y.key],y)},m(h(k[y.key],y)),9,xh)):y.format==="duration"?(f(),p("span",{key:2,class:V(_(k[y.key]))},m(h(k[y.key],y)),3)):y.format==="method"?(f(),p("span",{key:3,class:V(S(k[y.key]))},m(h(k[y.key],y)),3)):y.format==="badge"?(f(),p("span",{key:4,class:V(`ss-dbg-badge ss-dbg-badge-${g(k[y.key],y)}`)},m(h(k[y.key],y)),3)):(f(),p(I,{key:5},[se(m(h(k[y.key],y)),1)],64))],10,yh))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|