adonisjs-server-stats 1.12.0 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +19 -1
  2. package/dist/core/api-client.d.ts +1 -1
  3. package/dist/core/index.js +1 -1
  4. package/dist/react/{CacheSection-DZFOiOYH.js → CacheSection-CX2duJuc.js} +1 -1
  5. package/dist/react/{CacheTab-D8js5o69.js → CacheTab-CgT4t0oZ.js} +1 -1
  6. package/dist/react/{ConfigSection-DoJmvNkF.js → ConfigSection-Dt0FyeaW.js} +1 -1
  7. package/dist/react/{ConfigTab-CDvljuBF.js → ConfigTab-KtiTtsrj.js} +1 -1
  8. package/dist/react/{CustomPaneTab-Db9eIQ-9.js → CustomPaneTab-15QoEplP.js} +1 -1
  9. package/dist/react/{EmailsTab-BITuGTQm.js → EmailsTab-CUjubln_.js} +2 -2
  10. package/dist/react/{EventsSection-7mDZv70I.js → EventsSection-GGPoYSNv.js} +1 -1
  11. package/dist/react/{EventsTab-DF13BChE.js → EventsTab-Wdwr0_ny.js} +1 -1
  12. package/dist/react/{JobsSection-B_VJFWy6.js → JobsSection-BqqIh_DR.js} +1 -1
  13. package/dist/react/{JobsTab-DK8Fl9nz.js → JobsTab-CBrU-ryL.js} +1 -1
  14. package/dist/react/{LogEntryRow-Bdie9SFe.js → LogEntryRow-BOrRkhRU.js} +1 -1
  15. package/dist/react/{LogsSection-CrWqxWRr.js → LogsSection-Cm_lphM6.js} +2 -2
  16. package/dist/react/{LogsTab-DYSpL637.js → LogsTab-jKwv9G7Q.js} +2 -2
  17. package/dist/react/{OverviewSection-CuaccMZt.js → OverviewSection-XF7bakyM.js} +1 -1
  18. package/dist/react/QueriesSection-DsQBKrNK.js +123 -0
  19. package/dist/react/QueriesTab-CxCC1GVq.js +87 -0
  20. package/dist/react/{RequestsSection-mENyeNsk.js → RequestsSection-D8cMbZU0.js} +2 -2
  21. package/dist/react/{RoutesSection-DjovlaNS.js → RoutesSection-D0y5JQP4.js} +1 -1
  22. package/dist/react/{RoutesTab-CbQECiUc.js → RoutesTab-Y_alJVMV.js} +1 -1
  23. package/dist/react/{SplitPaneWrapper-DyRyH5Re.js → SplitPaneWrapper-CZl1ouIT.js} +1 -1
  24. package/dist/react/{TimelineTab-BKTFbsPe.js → TimelineTab-HyqZpfbp.js} +2 -2
  25. package/dist/react/{index-CAUHa8QX.js → index-CsprmgzI.js} +2 -2
  26. package/dist/react/index.js +1 -1
  27. package/dist/src/edge/client/dashboard.js +2 -2
  28. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  29. package/dist/src/edge/client/stats-bar.js +1 -1
  30. package/dist/src/edge/client-vue/dashboard.js +3 -3
  31. package/dist/src/edge/client-vue/debug-panel-deferred.js +1 -1
  32. package/dist/src/edge/client-vue/stats-bar.js +1 -1
  33. package/dist/src/provider/auth_middleware_detector.d.ts +12 -6
  34. package/dist/src/provider/auth_middleware_detector.js +53 -6
  35. package/dist/src/provider/boot_helpers.d.ts +1 -0
  36. package/dist/src/provider/boot_helpers.js +7 -1
  37. package/dist/src/provider/server_stats_provider.js +2 -1
  38. package/dist/src/routes/no_session_middleware.d.ts +14 -0
  39. package/dist/src/routes/no_session_middleware.js +16 -0
  40. package/dist/src/routes/register_routes.js +5 -1
  41. package/dist/vue/{CacheSection-Bx41lpfK.js → CacheSection-DRqV3YX2.js} +1 -1
  42. package/dist/vue/{ConfigSection-fkfUdCmx.js → ConfigSection-C6pQCHAL.js} +1 -1
  43. package/dist/vue/{EmailsSection-CbcDKF9Q.js → EmailsSection-BTNw3ZU2.js} +1 -1
  44. package/dist/vue/{EmailsTab-CNyEODVB.js → EmailsTab-CwIF1fik.js} +1 -1
  45. package/dist/vue/{EventsSection-CWbTYOBi.js → EventsSection-BpgkWIwM.js} +1 -1
  46. package/dist/vue/{JobsSection-CGGO6rtS.js → JobsSection-DrghFEKL.js} +1 -1
  47. package/dist/vue/{LogsSection-BPB-C-XA.js → LogsSection-BDxx9Bfi.js} +1 -1
  48. package/dist/vue/{OverviewSection-BTcnPeoM.js → OverviewSection-BAgZTPjY.js} +1 -1
  49. package/dist/vue/{QueriesSection-2SE3igQJ.js → QueriesSection-CUpwhp7u.js} +127 -115
  50. package/dist/vue/{RequestsSection-DXcG5Zok.js → RequestsSection-D8P2xpF2.js} +1 -1
  51. package/dist/vue/{RoutesSection-BkNGWdoP.js → RoutesSection-0qB81hTT.js} +1 -1
  52. package/dist/vue/{index-CptF6Qbp.js → index-30jLw-_w.js} +2 -2
  53. package/dist/vue/index.js +1 -1
  54. package/package.json +1 -1
  55. package/dist/react/QueriesSection-CvGGh5Ij.js +0 -117
  56. package/dist/react/QueriesTab-C7CCwhVc.js +0 -87
  57. package/dist/react/{EmailsSection-D7oxvAjA.js → EmailsSection-YcJYR5eA.js} +1 -1
@@ -1,4 +1,4 @@
1
1
  (function(){"use strict";function zs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const de={},At=[],He=()=>{},Hn=()=>!1,ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qs=e=>e.startsWith("onUpdate:"),be=Object.assign,Ws=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Ko=Object.prototype.hasOwnProperty,re=(e,t)=>Ko.call(e,t),W=Array.isArray,Mt=e=>Ht(e)==="[object Map]",Un=e=>Ht(e)==="[object Set]",Kn=e=>Ht(e)==="[object Date]",J=e=>typeof e=="function",ge=e=>typeof e=="string",Ue=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Vn=e=>(ae(e)||J(e))&&J(e.then)&&J(e.catch),zn=Object.prototype.toString,Ht=e=>zn.call(e),Vo=e=>Ht(e).slice(8,-1),qn=e=>Ht(e)==="[object Object]",Js=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ut=zs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),fs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},zo=/-\w/g,dt=fs(e=>e.replace(zo,t=>t.slice(1).toUpperCase())),qo=/\B([A-Z])/g,ft=fs(e=>e.replace(qo,"-$1").toLowerCase()),Wn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=fs(e=>e?`on${Wn(e)}`:""),ht=(e,t)=>!Object.is(e,t),hs=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Jn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Qs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gn;const ps=()=>Gn||(Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pt(e){if(W(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=ge(n)?Qo(n):pt(n);if(l)for(const o in l)t[o]=l[o]}return t}else if(ge(e)||ae(e))return e}const Wo=/;(?![^(]*\))/g,Jo=/:([^]+)/,Go=/\/\*[^]*?\*\//g;function Qo(e){const t={};return e.replace(Go,"").split(Wo).forEach(s=>{if(s){const n=s.split(Jo);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function K(e){let t="";if(ge(e))t=e;else if(W(e))for(let s=0;s<e.length;s++){const n=K(e[s]);n&&(t+=n+" ")}else if(ae(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Yo=zs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Qn(e){return!!e||e===""}function Xo(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Ys(e[n],t[n]);return s}function Ys(e,t){if(e===t)return!0;let s=Kn(e),n=Kn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Ue(e),n=Ue(t),s||n)return e===t;if(s=W(e),n=W(t),s||n)return s&&n?Xo(e,t):!1;if(s=ae(e),n=ae(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,o=Object.keys(t).length;if(l!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Ys(e[i],t[i]))return!1}}return String(e)===String(t)}const Yn=e=>!!(e&&e.__v_isRef===!0),m=e=>ge(e)?e:e==null?"":W(e)||ae(e)&&(e.toString===zn||!J(e.toString))?Yn(e)?m(e.value):JSON.stringify(e,Xn,2):String(e),Xn=(e,t)=>Yn(t)?Xn(e,t.value):Mt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],o)=>(s[Xs(n,o)+" =>"]=l,s),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Xs(s))}:Ue(t)?Xs(t):ae(t)&&!W(t)&&!qn(t)?String(t):t,Xs=(e,t="")=>{var s;return Ue(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Te;class Zo{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=Te,!t&&Te&&(this.index=(Te.scopes||(Te.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=Te;try{return Te=this,t()}finally{Te=s}}}on(){++this._on===1&&(this.prevScope=Te,Te=this)}off(){this._on>0&&--this._on===0&&(Te=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 er(){return Te}let fe;const Zs=new WeakSet;class Zn{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,Te&&Te.active&&Te.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Zs.has(this)&&(Zs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||tl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,rl(this),sl(this);const t=fe,s=Ie;fe=this,Ie=!0;try{return this.fn()}finally{nl(this),fe=t,Ie=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)nn(t);this.deps=this.depsTail=void 0,rl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Zs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){sn(this)&&this.run()}get dirty(){return sn(this)}}let el=0,Kt,Vt;function tl(e,t=!1){if(e.flags|=8,t){e.next=Vt,Vt=e;return}e.next=Kt,Kt=e}function en(){el++}function tn(){if(--el>0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Kt;){let t=Kt;for(Kt=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 sl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function nl(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),nn(n),tr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function sn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ll(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ll(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zt)||(e.globalVersion=zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!sn(e))))return;e.flags|=2;const t=e.dep,s=fe,n=Ie;fe=e,Ie=!0;try{sl(e);const l=e.fn(e._value);(t.version===0||ht(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{fe=s,Ie=n,nl(e),e.flags&=-3}}function nn(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 o=s.computed.deps;o;o=o.nextDep)nn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function tr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ie=!0;const ol=[];function Ke(){ol.push(Ie),Ie=!1}function Ve(){const e=ol.pop();Ie=e===void 0?!0:e}function rl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=fe;fe=void 0;try{t()}finally{fe=s}}}let zt=0;class sr{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 ln{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(!fe||!Ie||fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==fe)s=this.activeLink=new sr(fe,this),fe.deps?(s.prevDep=fe.depsTail,fe.depsTail.nextDep=s,fe.depsTail=s):fe.deps=fe.depsTail=s,il(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=fe.depsTail,s.nextDep=void 0,fe.depsTail.nextDep=s,fe.depsTail=s,fe.deps===s&&(fe.deps=n)}return s}trigger(t){this.version++,zt++,this.notify(t)}notify(t){en();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{tn()}}}function il(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)il(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const on=new WeakMap,xt=Symbol(""),rn=Symbol(""),qt=Symbol("");function _e(e,t,s){if(Ie&&fe){let n=on.get(e);n||on.set(e,n=new Map);let l=n.get(s);l||(n.set(s,l=new ln),l.map=n,l.key=s),l.track()}}function st(e,t,s,n,l,o){const i=on.get(e);if(!i){zt++;return}const a=u=>{u&&u.trigger()};if(en(),t==="clear")i.forEach(a);else{const u=W(e),p=u&&Js(s);if(u&&s==="length"){const f=Number(n);i.forEach((_,y)=>{(y==="length"||y===qt||!Ue(y)&&y>=f)&&a(_)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),p&&a(i.get(qt)),t){case"add":u?p&&a(i.get("length")):(a(i.get(xt)),Mt(e)&&a(i.get(rn)));break;case"delete":u||(a(i.get(xt)),Mt(e)&&a(i.get(rn)));break;case"set":Mt(e)&&a(i.get(xt));break}}tn()}function Pt(e){const t=oe(e);return t===e?t:(_e(t,"iterate",qt),Le(e)?t:t.map(Fe))}function gs(e){return _e(e=oe(e),"iterate",qt),e}function gt(e,t){return lt(e)?Lt(wt(e)?Fe(t):t):Fe(t)}const nr={__proto__:null,[Symbol.iterator](){return an(this,Symbol.iterator,e=>gt(this,e))},concat(...e){return Pt(this).concat(...e.map(t=>W(t)?Pt(t):t))},entries(){return an(this,"entries",e=>(e[1]=gt(this,e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,s=>s.map(n=>gt(this,n)),arguments)},find(e,t){return nt(this,"find",e,t,s=>gt(this,s),arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,s=>gt(this,s),arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return un(this,"includes",e)},indexOf(...e){return un(this,"indexOf",e)},join(e){return Pt(this).join(e)},lastIndexOf(...e){return un(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return Wt(this,"pop")},push(...e){return Wt(this,"push",e)},reduce(e,...t){return al(this,"reduce",e,t)},reduceRight(e,...t){return al(this,"reduceRight",e,t)},shift(){return Wt(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return Wt(this,"splice",e)},toReversed(){return Pt(this).toReversed()},toSorted(e){return Pt(this).toSorted(e)},toSpliced(...e){return Pt(this).toSpliced(...e)},unshift(...e){return Wt(this,"unshift",e)},values(){return an(this,"values",e=>gt(this,e))}};function an(e,t,s){const n=gs(e),l=n[t]();return n!==e&&!Le(e)&&(l._next=l.next,l.next=()=>{const o=l._next();return o.done||(o.value=s(o.value)),o}),l}const lr=Array.prototype;function nt(e,t,s,n,l,o){const i=gs(e),a=i!==e&&!Le(e),u=i[t];if(u!==lr[t]){const _=u.apply(e,o);return a?Fe(_):_}let p=s;i!==e&&(a?p=function(_,y){return s.call(this,gt(e,_),y,e)}:s.length>2&&(p=function(_,y){return s.call(this,_,y,e)}));const f=u.call(i,p,n);return a&&l?l(f):f}function al(e,t,s,n){const l=gs(e);let o=s;return l!==e&&(Le(e)?s.length>3&&(o=function(i,a,u){return s.call(this,i,a,u,e)}):o=function(i,a,u){return s.call(this,i,gt(e,a),u,e)}),l[t](o,...n)}function un(e,t,s){const n=oe(e);_e(n,"iterate",qt);const l=n[t](...s);return(l===-1||l===!1)&&hn(s[0])?(s[0]=oe(s[0]),n[t](...s)):l}function Wt(e,t,s=[]){Ke(),en();const n=oe(e)[t].apply(e,s);return tn(),Ve(),n}const or=zs("__proto__,__v_isRef,__isVue"),ul=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue));function rr(e){Ue(e)||(e=String(e));const t=oe(this);return _e(t,"has",e),t.hasOwnProperty(e)}class cl{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,o=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(l?o?bl:gl:o?pl:hl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=W(t);if(!l){let u;if(i&&(u=nr[s]))return u;if(s==="hasOwnProperty")return rr}const a=Reflect.get(t,s,ve(t)?t:n);if((Ue(s)?ul.has(s):or(s))||(l||_e(t,"get",s),o))return a;if(ve(a)){const u=i&&Js(s)?a:a.value;return l&&ae(u)?fn(u):u}return ae(a)?l?fn(a):dn(a):a}}class dl extends cl{constructor(t=!1){super(!1,t)}set(t,s,n,l){let o=t[s];const i=W(t)&&Js(s);if(!this._isShallow){const p=lt(o);if(!Le(n)&&!lt(n)&&(o=oe(o),n=oe(n)),!i&&ve(o)&&!ve(n))return p||(o.value=n),!0}const a=i?Number(s)<t.length:re(t,s),u=Reflect.set(t,s,n,ve(t)?t:l);return t===oe(l)&&(a?ht(n,o)&&st(t,"set",s,n):st(t,"add",s,n)),u}deleteProperty(t,s){const n=re(t,s);t[s];const l=Reflect.deleteProperty(t,s);return l&&n&&st(t,"delete",s,void 0),l}has(t,s){const n=Reflect.has(t,s);return(!Ue(s)||!ul.has(s))&&_e(t,"has",s),n}ownKeys(t){return _e(t,"iterate",W(t)?"length":xt),Reflect.ownKeys(t)}}class fl extends cl{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ir=new dl,ar=new fl,ur=new dl(!0),cr=new fl(!0),cn=e=>e,bs=e=>Reflect.getPrototypeOf(e);function dr(e,t,s){return function(...n){const l=this.__v_raw,o=oe(l),i=Mt(o),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=l[e](...n),f=s?cn:t?Lt:Fe;return!t&&_e(o,"iterate",u?rn:xt),be(Object.create(p),{next(){const{value:_,done:y}=p.next();return y?{value:_,done:y}:{value:a?[f(_[0]),f(_[1])]:f(_),done:y}}})}}function vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function fr(e,t){const s={get(l){const o=this.__v_raw,i=oe(o),a=oe(l);e||(ht(l,a)&&_e(i,"get",l),_e(i,"get",a));const{has:u}=bs(i),p=t?cn:e?Lt:Fe;if(u.call(i,l))return p(o.get(l));if(u.call(i,a))return p(o.get(a));o!==i&&o.get(l)},get size(){const l=this.__v_raw;return!e&&_e(oe(l),"iterate",xt),l.size},has(l){const o=this.__v_raw,i=oe(o),a=oe(l);return e||(ht(l,a)&&_e(i,"has",l),_e(i,"has",a)),l===a?o.has(l):o.has(l)||o.has(a)},forEach(l,o){const i=this,a=i.__v_raw,u=oe(a),p=t?cn:e?Lt:Fe;return!e&&_e(u,"iterate",xt),a.forEach((f,_)=>l.call(o,p(f),p(_),i))}};return be(s,e?{add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear")}:{add(l){!t&&!Le(l)&&!lt(l)&&(l=oe(l));const o=oe(this);return bs(o).has.call(o,l)||(o.add(l),st(o,"add",l,l)),this},set(l,o){!t&&!Le(o)&&!lt(o)&&(o=oe(o));const i=oe(this),{has:a,get:u}=bs(i);let p=a.call(i,l);p||(l=oe(l),p=a.call(i,l));const f=u.call(i,l);return i.set(l,o),p?ht(o,f)&&st(i,"set",l,o):st(i,"add",l,o),this},delete(l){const o=oe(this),{has:i,get:a}=bs(o);let u=i.call(o,l);u||(l=oe(l),u=i.call(o,l)),a&&a.call(o,l);const p=o.delete(l);return u&&st(o,"delete",l,void 0),p},clear(){const l=oe(this),o=l.size!==0,i=l.clear();return o&&st(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=dr(l,e,t)}),s}function ms(e,t){const s=fr(e,t);return(n,l,o)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(re(s,l)&&l in n?s:n,l,o)}const hr={get:ms(!1,!1)},pr={get:ms(!1,!0)},gr={get:ms(!0,!1)},br={get:ms(!0,!0)},hl=new WeakMap,pl=new WeakMap,gl=new WeakMap,bl=new WeakMap;function vr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function mr(e){return e.__v_skip||!Object.isExtensible(e)?0:vr(Vo(e))}function dn(e){return lt(e)?e:ys(e,!1,ir,hr,hl)}function yr(e){return ys(e,!1,ur,pr,pl)}function fn(e){return ys(e,!0,ar,gr,gl)}function cp(e){return ys(e,!0,cr,br,bl)}function ys(e,t,s,n,l){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=mr(e);if(o===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,o===2?n:s);return l.set(e,a),a}function wt(e){return lt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function hn(e){return e?!!e.__v_raw:!1}function oe(e){const t=e&&e.__v_raw;return t?oe(t):e}function _r(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const Fe=e=>ae(e)?dn(e):e,Lt=e=>ae(e)?fn(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function z(e){return xr(e,!1)}function xr(e,t){return ve(e)?e:new wr(e,t)}class wr{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:oe(t),this._value=s?t:Fe(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Le(t)||lt(t);t=n?t:oe(t),ht(t,s)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function S(e){return ve(e)?e.value:e}const kr={get:(e,t,s)=>t==="__v_raw"?e:S(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const l=e[t];return ve(l)&&!ve(s)?(l.value=s,!0):Reflect.set(e,t,s,n)}};function vl(e){return wt(e)?e:new Proxy(e,kr)}class $r{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return tl(this,!0),!0}get value(){const t=this.dep.track();return ll(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Cr(e,t,s=!1){let n,l;return J(e)?n=e:(n=e.get,l=e.set),new $r(n,l,s)}const _s={},xs=new WeakMap;let kt;function Tr(e,t=!1,s=kt){if(s){let n=xs.get(s);n||xs.set(s,n=[]),n.push(e)}}function Sr(e,t,s=de){const{immediate:n,deep:l,once:o,scheduler:i,augmentJob:a,call:u}=s,p=R=>l?R:Le(R)||l===!1||l===0?ot(R,1):ot(R);let f,_,y,g,$=!1,x=!1;if(ve(e)?(_=()=>e.value,$=Le(e)):wt(e)?(_=()=>p(e),$=!0):W(e)?(x=!0,$=e.some(R=>wt(R)||Le(R)),_=()=>e.map(R=>{if(ve(R))return R.value;if(wt(R))return p(R);if(J(R))return u?u(R,2):R()})):J(e)?t?_=u?()=>u(e,2):e:_=()=>{if(y){Ke();try{y()}finally{Ve()}}const R=kt;kt=f;try{return u?u(e,3,[g]):e(g)}finally{kt=R}}:_=He,t&&l){const R=_,C=l===!0?1/0:l;_=()=>ot(R(),C)}const H=er(),k=()=>{f.stop(),H&&H.active&&Ws(H.effects,f)};if(o&&t){const R=t;t=(...C)=>{R(...C),k()}}let b=x?new Array(e.length).fill(_s):_s;const w=R=>{if(!(!(f.flags&1)||!f.dirty&&!R))if(t){const C=f.run();if(l||$||(x?C.some((N,B)=>ht(N,b[B])):ht(C,b))){y&&y();const N=kt;kt=f;try{const B=[C,b===_s?void 0:x&&b[0]===_s?[]:b,g];b=C,u?u(t,3,B):t(...B)}finally{kt=N}}}else f.run()};return a&&a(w),f=new Zn(_),f.scheduler=i?()=>i(w,!1):w,g=R=>Tr(R,!1,f),y=f.onStop=()=>{const R=xs.get(f);if(R){if(u)u(R,4);else for(const C of R)C();xs.delete(f)}},t?n?w(!0):b=f.run():i?i(w.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}function ot(e,t=1/0,s){if(t<=0||!ae(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ve(e))ot(e.value,t,s);else if(W(e))for(let n=0;n<e.length;n++)ot(e[n],t,s);else if(Un(e)||Mt(e))e.forEach(n=>{ot(n,t,s)});else if(qn(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}const Jt=[];let pn=!1;function dp(e,...t){if(pn)return;pn=!0,Ke();const s=Jt.length?Jt[Jt.length-1].component:null,n=s&&s.appContext.config.warnHandler,l=Er();if(n)Ot(n,s,11,[e+t.map(o=>{var i,a;return(a=(i=o.toString)==null?void 0:i.call(o))!=null?a:JSON.stringify(o)}).join(""),s&&s.proxy,l.map(({vnode:o})=>`at <${ao(s,o.type)}>`).join(`
2
2
  `),l]);else{const o=[`[Vue warn]: ${e}`,...t];l.length&&o.push(`
3
3
  `,...Ar(l)),console.warn(...o)}Ve(),pn=!1}function Er(){let e=Jt[Jt.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 Ar(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
4
- `],...Mr(s))}),t}function Mr({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${ao(e.component,e.type,n)}`,o=">"+s;return e.props?[l,...Pr(e.props),o]:[l+o]}function Pr(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...ml(n,e[n]))}),s.length>3&&t.push(" ..."),t}function ml(e,t,s){return ge(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ve(t)?(t=ml(e,oe(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):J(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=oe(t),s?t:[`${e}=`,t])}function Ot(e,t,s,n){try{return n?e(...n):e()}catch(l){Gt(l,t,s)}}function ze(e,t,s,n){if(J(e)){const l=Ot(e,t,s,n);return l&&Vn(l)&&l.catch(o=>{Gt(o,t,s)}),l}if(W(e)){const l=[];for(let o=0;o<e.length;o++)l.push(ze(e[o],t,s,n));return l}}function Gt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let a=t.parent;const u=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const f=a.ec;if(f){for(let _=0;_<f.length;_++)if(f[_](e,u,p)===!1)return}a=a.parent}if(o){Ke(),Ot(o,null,10,[e,u,p]),Ve();return}}Lr(e,s,l,n,i)}function Lr(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ke=[];let qe=-1;const Rt=[];let bt=null,Dt=0;const yl=Promise.resolve();let ws=null;function gn(e){const t=ws||yl;return e?t.then(this?e.bind(this):e):t}function Or(e){let t=qe+1,s=ke.length;for(;t<s;){const n=t+s>>>1,l=ke[n],o=Qt(l);o<e||o===e&&l.flags&2?t=n+1:s=n}return t}function bn(e){if(!(e.flags&1)){const t=Qt(e),s=ke[ke.length-1];!s||!(e.flags&2)&&t>=Qt(s)?ke.push(e):ke.splice(Or(t),0,e),e.flags|=1,_l()}}function _l(){ws||(ws=yl.then(kl))}function Rr(e){W(e)?Rt.push(...e):bt&&e.id===-1?bt.splice(Dt+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),_l()}function xl(e,t,s=qe+1){for(;s<ke.length;s++){const n=ke[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ke.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function wl(e){if(Rt.length){const t=[...new Set(Rt)].sort((s,n)=>Qt(s)-Qt(n));if(Rt.length=0,bt){bt.push(...t);return}for(bt=t,Dt=0;Dt<bt.length;Dt++){const s=bt[Dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bt=null,Dt=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kl(e){try{for(qe=0;qe<ke.length;qe++){const t=ke[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ot(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<ke.length;qe++){const t=ke[qe];t&&(t.flags&=-2)}qe=-1,ke.length=0,wl(),ws=null,(ke.length||Rt.length)&&kl()}}let Oe=null,$l=null;function ks(e){const t=Oe;return Oe=e,$l=e&&e.type.__scopeId||null,t}function Dr(e,t=Oe,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&Os(-1);const o=ks(t);let i;try{i=e(...l)}finally{ks(o),n._d&&Os(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function We(e,t){if(Oe===null)return e;const s=Fs(Oe),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,i,a,u=de]=t[l];o&&(J(o)&&(o={mounted:o,updated:o}),o.deep&&ot(i),n.push({dir:o,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function $t(e,t,s,n){const l=e.dirs,o=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];o&&(a.oldValue=o[i].value);let u=a.dir[n];u&&(Ke(),ze(u,s,8,[e.el,a,e,t]),Ve())}}function Ir(e,t){if(we){let s=we.provides;const n=we.parent&&we.parent.provides;n===s&&(s=we.provides=Object.create(n)),s[e]=t}}function $s(e,t,s=!1){const n=Ri();if(n||It){let l=It?It._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&&J(t)?t.call(n&&n.proxy):t}}const Fr=Symbol.for("v-scx"),jr=()=>$s(Fr);function rt(e,t,s){return Cl(e,t,s)}function Cl(e,t,s=de){const{immediate:n,deep:l,flush:o,once:i}=s,a=be({},s),u=t&&n||!t&&o!=="post";let p;if(jt){if(o==="sync"){const g=jr();p=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=He,g.resume=He,g.pause=He,g}}const f=we;a.call=(g,$,x)=>ze(g,f,$,x);let _=!1;o==="post"?a.scheduler=g=>{Se(g,f&&f.suspense)}:o!=="sync"&&(_=!0,a.scheduler=(g,$)=>{$?g():bn(g)}),a.augmentJob=g=>{t&&(g.flags|=4),_&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const y=Sr(e,t,a);return jt&&(p?p.push(y):u&&y()),y}function Br(e,t,s){const n=this.proxy,l=ge(e)?e.includes(".")?Tl(n,e):()=>n[e]:e.bind(n,n);let o;J(t)?o=t:(o=t.handler,s=t);const i=ls(this),a=Cl(l,o.bind(n),s);return i(),a}function Tl(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 Nr=Symbol("_vte"),Hr=e=>e.__isTeleport,Ur=Symbol("_leaveCb");function vn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vn(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 xe(e,t){return J(e)?be({name:e.name},t,{setup:e}):e}function mn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Cs=new WeakMap;function Yt(e,t,s,n,l=!1){if(W(e)){e.forEach((x,H)=>Yt(x,t&&(W(t)?t[H]:t),s,n,l));return}if(Xt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Yt(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Fs(n.component):n.el,i=l?null:o,{i:a,r:u}=e,p=t&&t.r,f=a.refs===de?a.refs={}:a.refs,_=a.setupState,y=oe(_),g=_===de?Hn:x=>Sl(f,x)?!1:re(y,x),$=(x,H)=>!(H&&Sl(f,H));if(p!=null&&p!==u){if(El(t),ge(p))f[p]=null,g(p)&&(_[p]=null);else if(ve(p)){const x=t;$(p,x.k)&&(p.value=null),x.k&&(f[x.k]=null)}}if(J(u))Ot(u,a,12,[i,f]);else{const x=ge(u),H=ve(u);if(x||H){const k=()=>{if(e.f){const b=x?g(u)?_[u]:f[u]:$()||!e.k?u.value:f[e.k];if(l)W(b)&&Ws(b,o);else if(W(b))b.includes(o)||b.push(o);else if(x)f[u]=[o],g(u)&&(_[u]=f[u]);else{const w=[o];$(u,e.k)&&(u.value=w),e.k&&(f[e.k]=w)}}else x?(f[u]=i,g(u)&&(_[u]=i)):H&&($(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const b=()=>{k(),Cs.delete(e)};b.id=-1,Cs.set(e,b),Se(b,s)}else El(e),k()}}}function El(e){const t=Cs.get(e);t&&(t.flags|=8,Cs.delete(e))}const Al=e=>e.nodeType===8;ps().requestIdleCallback,ps().cancelIdleCallback;function Kr(e,t){if(Al(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Al(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Xt=e=>!!e.type.__asyncLoader;function je(e){J(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:o,timeout:i,suspensible:a=!0,onError:u}=e;let p=null,f,_=0;const y=()=>(_++,p=null,g()),g=()=>{let $;return p||($=p=t().catch(x=>{if(x=x instanceof Error?x:new Error(String(x)),u)return new Promise((H,k)=>{u(x,()=>H(y()),()=>k(x),_+1)});throw x}).then(x=>$!==p&&p?p:(x&&(x.__esModule||x[Symbol.toStringTag]==="Module")&&(x=x.default),f=x,x)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate($,x,H){let k=!1;(x.bu||(x.bu=[])).push(()=>k=!0);const b=()=>{k||H()},w=o?()=>{const R=o(b,C=>Kr($,C));R&&(x.bum||(x.bum=[])).push(R)}:b;f?w():g().then(()=>!x.isUnmounted&&w())},get __asyncResolved(){return f},setup(){const $=we;if(mn($),f)return()=>Ts(f,$);const x=w=>{p=null,Gt(w,$,13,!n)};if(a&&$.suspense||jt)return g().then(w=>()=>Ts(w,$)).catch(w=>(x(w),()=>n?pe(n,{error:w}):null));const H=z(!1),k=z(),b=z(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!H.value&&!k.value){const w=new Error(`Async component timed out after ${i}ms.`);x(w),k.value=w}},i),g().then(()=>{H.value=!0,$.parent&&yn($.parent.vnode)&&$.parent.update()}).catch(w=>{x(w),k.value=w}),()=>{if(H.value&&f)return Ts(f,$);if(k.value&&n)return pe(n,{error:k.value});if(s&&!b.value)return Ts(s,$)}}})}function Ts(e,t){const{ref:s,props:n,children:l,ce:o}=t.vnode,i=pe(e,n,l);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const yn=e=>e.type.__isKeepAlive;function Vr(e,t){Ml(e,"a",t)}function zr(e,t){Ml(e,"da",t)}function Ml(e,t,s=we){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Ss(t,n,s),s){let l=s.parent;for(;l&&l.parent;)yn(l.parent.vnode)&&qr(n,t,s,l),l=l.parent}}function qr(e,t,s,n){const l=Ss(t,e,n,!0);As(()=>{Ws(n[t],l)},s)}function Ss(e,t,s=we,n=!1){if(s){const l=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ke();const a=ls(s),u=ze(t,s,e,i);return a(),Ve(),u});return n?l.unshift(o):l.push(o),o}}const it=e=>(t,s=we)=>{(!jt||e==="sp")&&Ss(e,(...n)=>t(...n),s)},Wr=it("bm"),Ct=it("m"),Jr=it("bu"),Gr=it("u"),Es=it("bum"),As=it("um"),Qr=it("sp"),Yr=it("rtg"),Xr=it("rtc");function Zr(e,t=we){Ss("ec",e,t)}const ei=Symbol.for("v-ndc");function X(e,t,s,n){let l;const o=s,i=W(e);if(i||ge(e)){const a=i&&wt(e);let u=!1,p=!1;a&&(u=!Le(e),p=lt(e),e=gs(e)),l=new Array(e.length);for(let f=0,_=e.length;f<_;f++)l[f]=t(u?p?Lt(Fe(e[f])):Fe(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,o)}else if(ae(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,o));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,p=a.length;u<p;u++){const f=a[u];l[u]=t(e[f],f,u,o)}}else l=[];return l}const _n=e=>e?oo(e)?Fs(e):_n(e.parent):null,Zt=be(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=>_n(e.parent),$root:e=>_n(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rl(e),$forceUpdate:e=>e.f||(e.f=()=>{bn(e.update)}),$nextTick:e=>e.n||(e.n=gn.bind(e.proxy)),$watch:e=>Br.bind(e)}),xn=(e,t)=>e!==de&&!e.__isScriptSetup&&re(e,t),ti={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:o,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return o[t]}else{if(xn(n,t))return i[t]=1,n[t];if(l!==de&&re(l,t))return i[t]=2,l[t];if(re(o,t))return i[t]=3,o[t];if(s!==de&&re(s,t))return i[t]=4,s[t];wn&&(i[t]=0)}}const p=Zt[t];let f,_;if(p)return t==="$attrs"&&_e(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==de&&re(s,t))return i[t]=4,s[t];if(_=u.config.globalProperties,re(_,t))return _[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:o}=e;return xn(l,t)?(l[t]=s,!0):n!==de&&re(n,t)?(n[t]=s,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:o,type:i}},a){let u;return!!(s[a]||e!==de&&a[0]!=="$"&&re(e,a)||xn(t,a)||re(o,a)||re(n,a)||re(Zt,a)||re(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:re(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Pl(e){return W(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let wn=!0;function si(e){const t=Rl(e),s=e.proxy,n=e.ctx;wn=!1,t.beforeCreate&&Ll(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:_,mounted:y,beforeUpdate:g,updated:$,activated:x,deactivated:H,beforeDestroy:k,beforeUnmount:b,destroyed:w,unmounted:R,render:C,renderTracked:N,renderTriggered:B,errorCaptured:U,serverPrefetch:te,expose:Q,inheritAttrs:ie,components:j,directives:ce,filters:ct}=t;if(p&&ni(p,n,null),i)for(const ee in i){const le=i[ee];J(le)&&(n[ee]=le.bind(s))}if(l){const ee=l.call(s,s);ae(ee)&&(e.data=dn(ee))}if(wn=!0,o)for(const ee in o){const le=o[ee],ye=J(le)?le.bind(s,s):J(le.get)?le.get.bind(s,s):He,is=!J(le)&&J(le.set)?le.set.bind(s):He,Et=Y({get:ye,set:is});Object.defineProperty(n,ee,{enumerable:!0,configurable:!0,get:()=>Et.value,set:Xe=>Et.value=Xe})}if(a)for(const ee in a)Ol(a[ee],n,s,ee);if(u){const ee=J(u)?u.call(s):u;Reflect.ownKeys(ee).forEach(le=>{Ir(le,ee[le])})}f&&Ll(f,e,"c");function me(ee,le){W(le)?le.forEach(ye=>ee(ye.bind(s))):le&&ee(le.bind(s))}if(me(Wr,_),me(Ct,y),me(Jr,g),me(Gr,$),me(Vr,x),me(zr,H),me(Zr,U),me(Xr,N),me(Yr,B),me(Es,b),me(As,R),me(Qr,te),W(Q))if(Q.length){const ee=e.exposed||(e.exposed={});Q.forEach(le=>{Object.defineProperty(ee,le,{get:()=>s[le],set:ye=>s[le]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===He&&(e.render=C),ie!=null&&(e.inheritAttrs=ie),j&&(e.components=j),ce&&(e.directives=ce),te&&mn(e)}function ni(e,t,s=He){W(e)&&(e=kn(e));for(const n in e){const l=e[n];let o;ae(l)?"default"in l?o=$s(l.from||n,l.default,!0):o=$s(l.from||n):o=$s(l),ve(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function Ll(e,t,s){ze(W(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ol(e,t,s,n){let l=n.includes(".")?Tl(s,n):()=>s[n];if(ge(e)){const o=t[e];J(o)&&rt(l,o)}else if(J(e))rt(l,e.bind(s));else if(ae(e))if(W(e))e.forEach(o=>Ol(o,t,s,n));else{const o=J(e.handler)?e.handler.bind(s):t[e.handler];J(o)&&rt(l,o,e)}}function Rl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(p=>Ms(u,p,i,!0)),Ms(u,t,i)),ae(t)&&o.set(t,u),u}function Ms(e,t,s,n=!1){const{mixins:l,extends:o}=t;o&&Ms(e,o,s,!0),l&&l.forEach(i=>Ms(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=li[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const li={data:Dl,props:Il,emits:Il,methods:es,computed:es,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:es,directives:es,watch:ri,provide:Dl,inject:oi};function Dl(e,t){return t?e?function(){return be(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function oi(e,t){return es(kn(e),kn(t))}function kn(e){if(W(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function $e(e,t){return e?[...new Set([].concat(e,t))]:t}function es(e,t){return e?be(Object.create(null),e,t):t}function Il(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:be(Object.create(null),Pl(e),Pl(t??{})):t}function ri(e,t){if(!e)return t;if(!t)return e;const s=be(Object.create(null),e);for(const n in t)s[n]=$e(e[n],t[n]);return s}function Fl(){return{app:null,config:{isNativeTag:Hn,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 ii=0;function ai(e,t){return function(n,l=null){J(n)||(n=be({},n)),l!=null&&!ae(l)&&(l=null);const o=Fl(),i=new WeakSet,a=[];let u=!1;const p=o.app={_uid:ii++,_component:n,_props:l,_container:null,_context:o,_instance:null,version:Vi,get config(){return o.config},set config(f){},use(f,..._){return i.has(f)||(f&&J(f.install)?(i.add(f),f.install(p,..._)):J(f)&&(i.add(f),f(p,..._))),p},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),p},component(f,_){return _?(o.components[f]=_,p):o.components[f]},directive(f,_){return _?(o.directives[f]=_,p):o.directives[f]},mount(f,_,y){if(!u){const g=p._ceVNode||pe(n,l);return g.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),e(g,f,y),u=!0,p._container=f,f.__vue_app__=p,Fs(g.component)}},onUnmount(f){a.push(f)},unmount(){u&&(ze(a,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,_){return o.provides[f]=_,p},runWithContext(f){const _=It;It=p;try{return f()}finally{It=_}}};return p}}let It=null;const ui=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dt(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function ci(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||de;let l=s;const o=t.startsWith("update:"),i=o&&ui(n,t.slice(7));i&&(i.trim&&(l=s.map(f=>ge(f)?f.trim():f)),i.number&&(l=s.map(Qs)));let a,u=n[a=Gs(t)]||n[a=Gs(dt(t))];!u&&o&&(u=n[a=Gs(ft(t))]),u&&ze(u,e,6,l);const p=n[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ze(p,e,6,l)}}const di=new WeakMap;function jl(e,t,s=!1){const n=s?di:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const o=e.emits;let i={},a=!1;if(!J(e)){const u=p=>{const f=jl(p,t,!0);f&&(a=!0,be(i,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(ae(e)&&n.set(e,null),null):(W(o)?o.forEach(u=>i[u]=null):be(i,o),ae(e)&&n.set(e,i),i)}function Ps(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,ft(t))||re(e,t))}function fp(){}function Bl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[o],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:_,data:y,setupState:g,ctx:$,inheritAttrs:x}=e,H=ks(e);let k,b;try{if(s.shapeFlag&4){const R=l||n,C=R;k=Je(p.call(C,R,f,_,g,y,$)),b=a}else{const R=t;k=Je(R.length>1?R(_,{attrs:a,slots:i,emit:u}):R(_,null)),b=t.props?a:fi(a)}}catch(R){ts.length=0,Gt(R,e,1),k=pe(vt)}let w=k;if(b&&x!==!1){const R=Object.keys(b),{shapeFlag:C}=w;R.length&&C&7&&(o&&R.some(qs)&&(b=hi(b,o)),w=Ft(w,b,!1,!0))}return s.dirs&&(w=Ft(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(s.dirs):s.dirs),s.transition&&vn(w,s.transition),k=w,ks(H),k}const fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||ds(s))&&((t||(t={}))[s]=e[s]);return t},hi=(e,t)=>{const s={};for(const n in e)(!qs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function pi(e,t,s){const{props:n,children:l,component:o}=e,{props:i,children:a,patchFlag:u}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Nl(n,i,p):!!i;if(u&8){const f=t.dynamicProps;for(let _=0;_<f.length;_++){const y=f[_];if(Hl(i,n,y)&&!Ps(p,y))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Nl(n,i,p):!0:!!i;return!1}function Nl(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 o=n[l];if(Hl(t,e,o)&&!Ps(s,o))return!0}return!1}function Hl(e,t,s){const n=e[s],l=t[s];return s==="style"&&ae(n)&&ae(l)?!Ys(n,l):n!==l}function gi({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 Ul={},Kl=()=>Object.create(Ul),Vl=e=>Object.getPrototypeOf(e)===Ul;function bi(e,t,s,n=!1){const l={},o=Kl();e.propsDefaults=Object.create(null),zl(e,t,l,o);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:yr(l):e.type.props?e.props=l:e.props=o,e.attrs=o}function vi(e,t,s,n){const{props:l,attrs:o,vnode:{patchFlag:i}}=e,a=oe(l),[u]=e.propsOptions;let p=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let _=0;_<f.length;_++){let y=f[_];if(Ps(e.emitsOptions,y))continue;const g=t[y];if(u)if(re(o,y))g!==o[y]&&(o[y]=g,p=!0);else{const $=dt(y);l[$]=$n(u,a,$,g,e,!1)}else g!==o[y]&&(o[y]=g,p=!0)}}}else{zl(e,t,l,o)&&(p=!0);let f;for(const _ in a)(!t||!re(t,_)&&((f=ft(_))===_||!re(t,f)))&&(u?s&&(s[_]!==void 0||s[f]!==void 0)&&(l[_]=$n(u,a,_,void 0,e,!0)):delete l[_]);if(o!==a)for(const _ in o)(!t||!re(t,_))&&(delete o[_],p=!0)}p&&st(e.attrs,"set","")}function zl(e,t,s,n){const[l,o]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Ut(u))continue;const p=t[u];let f;l&&re(l,f=dt(u))?!o||!o.includes(f)?s[f]=p:(a||(a={}))[f]=p:Ps(e.emitsOptions,u)||(!(u in n)||p!==n[u])&&(n[u]=p,i=!0)}if(o){const u=oe(s),p=a||de;for(let f=0;f<o.length;f++){const _=o[f];s[_]=$n(l,u,_,p[_],e,!re(p,_))}}return i}function $n(e,t,s,n,l,o){const i=e[s];if(i!=null){const a=re(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&J(u)){const{propsDefaults:p}=l;if(s in p)n=p[s];else{const f=ls(l);n=p[s]=u.call(null,t),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(o&&!a?n=!1:i[1]&&(n===""||n===ft(s))&&(n=!0))}return n}const mi=new WeakMap;function ql(e,t,s=!1){const n=s?mi:t.propsCache,l=n.get(e);if(l)return l;const o=e.props,i={},a=[];let u=!1;if(!J(e)){const f=_=>{u=!0;const[y,g]=ql(_,t,!0);be(i,y),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!u)return ae(e)&&n.set(e,At),At;if(W(o))for(let f=0;f<o.length;f++){const _=dt(o[f]);Wl(_)&&(i[_]=de)}else if(o)for(const f in o){const _=dt(f);if(Wl(_)){const y=o[f],g=i[_]=W(y)||J(y)?{type:y}:be({},y),$=g.type;let x=!1,H=!0;if(W($))for(let k=0;k<$.length;++k){const b=$[k],w=J(b)&&b.name;if(w==="Boolean"){x=!0;break}else w==="String"&&(H=!1)}else x=J($)&&$.name==="Boolean";g[0]=x,g[1]=H,(x||re(g,"default"))&&a.push(_)}}const p=[i,a];return ae(e)&&n.set(e,p),p}function Wl(e){return e[0]!=="$"&&!Ut(e)}const Cn=e=>e==="_"||e==="_ctx"||e==="$stable",Tn=e=>W(e)?e.map(Je):[Je(e)],yi=(e,t,s)=>{if(t._n)return t;const n=Dr((...l)=>Tn(t(...l)),s);return n._c=!1,n},Jl=(e,t,s)=>{const n=e._ctx;for(const l in e){if(Cn(l))continue;const o=e[l];if(J(o))t[l]=yi(l,o,n);else if(o!=null){const i=Tn(o);t[l]=()=>i}}},Gl=(e,t)=>{const s=Tn(t);e.slots.default=()=>s},Ql=(e,t,s)=>{for(const n in t)(s||!Cn(n))&&(e[n]=t[n])},_i=(e,t,s)=>{const n=e.slots=Kl();if(e.vnode.shapeFlag&32){const l=t._;l?(Ql(n,t,s),s&&Jn(n,"_",l,!0)):Jl(t,n)}else t&&Gl(e,t)},xi=(e,t,s)=>{const{vnode:n,slots:l}=e;let o=!0,i=de;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:Ql(l,t,s):(o=!t.$stable,Jl(t,l)),i=t}else t&&(Gl(e,t),i={default:1});if(o)for(const a in l)!Cn(a)&&i[a]==null&&delete l[a]},Se=Ti;function wi(e){return ki(e)}function ki(e,t){const s=ps();s.__VUE__=!0;const{insert:n,remove:l,patchProp:o,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:_,nextSibling:y,setScopeId:g=He,insertStaticContent:$}=e,x=(h,v,T,P=null,E=null,A=null,I=void 0,D=null,O=!!v.dynamicChildren)=>{if(h===v)return;h&&!ns(h,v)&&(P=Vs(h),Xe(h,E,A,!0),h=null),v.patchFlag===-2&&(O=!1,v.dynamicChildren=null);const{type:M,ref:q,shapeFlag:F}=v;switch(M){case Ls:H(h,v,T,P);break;case vt:k(h,v,T,P);break;case En:h==null&&b(v,T,P,I);break;case L:j(h,v,T,P,E,A,I,D,O);break;default:F&1?C(h,v,T,P,E,A,I,D,O):F&6?ce(h,v,T,P,E,A,I,D,O):(F&64||F&128)&&M.process(h,v,T,P,E,A,I,D,O,us)}q!=null&&E?Yt(q,h&&h.ref,A,v||h,!v):q==null&&h&&h.ref!=null&&Yt(h.ref,null,A,h,!0)},H=(h,v,T,P)=>{if(h==null)n(v.el=a(v.children),T,P);else{const E=v.el=h.el;v.children!==h.children&&p(E,v.children)}},k=(h,v,T,P)=>{h==null?n(v.el=u(v.children||""),T,P):v.el=h.el},b=(h,v,T,P)=>{[h.el,h.anchor]=$(h.children,v,T,P,h.el,h.anchor)},w=({el:h,anchor:v},T,P)=>{let E;for(;h&&h!==v;)E=y(h),n(h,T,P),h=E;n(v,T,P)},R=({el:h,anchor:v})=>{let T;for(;h&&h!==v;)T=y(h),l(h),h=T;l(v)},C=(h,v,T,P,E,A,I,D,O)=>{if(v.type==="svg"?I="svg":v.type==="math"&&(I="mathml"),h==null)N(v,T,P,E,A,I,D,O);else{const M=h.el&&h.el._isVueCE?h.el:null;try{M&&M._beginPatch(),te(h,v,E,A,I,D,O)}finally{M&&M._endPatch()}}},N=(h,v,T,P,E,A,I,D)=>{let O,M;const{props:q,shapeFlag:F,transition:V,dirs:G}=h;if(O=h.el=i(h.type,A,q&&q.is,q),F&8?f(O,h.children):F&16&&U(h.children,O,null,P,E,Sn(h,A),I,D),G&&$t(h,null,P,"created"),B(O,h,h.scopeId,I,P),q){for(const he in q)he!=="value"&&!Ut(he)&&o(O,he,null,q[he],A,P);"value"in q&&o(O,"value",null,q.value,A),(M=q.onVnodeBeforeMount)&&Ge(M,P,h)}G&&$t(h,null,P,"beforeMount");const se=$i(E,V);se&&V.beforeEnter(O),n(O,v,T),((M=q&&q.onVnodeMounted)||se||G)&&Se(()=>{M&&Ge(M,P,h),se&&V.enter(O),G&&$t(h,null,P,"mounted")},E)},B=(h,v,T,P,E)=>{if(T&&g(h,T),P)for(let A=0;A<P.length;A++)g(h,P[A]);if(E){let A=E.subTree;if(v===A||to(A.type)&&(A.ssContent===v||A.ssFallback===v)){const I=E.vnode;B(h,I,I.scopeId,I.slotScopeIds,E.parent)}}},U=(h,v,T,P,E,A,I,D,O=0)=>{for(let M=O;M<h.length;M++){const q=h[M]=D?at(h[M]):Je(h[M]);x(null,q,v,T,P,E,A,I,D)}},te=(h,v,T,P,E,A,I)=>{const D=v.el=h.el;let{patchFlag:O,dynamicChildren:M,dirs:q}=v;O|=h.patchFlag&16;const F=h.props||de,V=v.props||de;let G;if(T&&Tt(T,!1),(G=V.onVnodeBeforeUpdate)&&Ge(G,T,v,h),q&&$t(v,h,T,"beforeUpdate"),T&&Tt(T,!0),(F.innerHTML&&V.innerHTML==null||F.textContent&&V.textContent==null)&&f(D,""),M?Q(h.dynamicChildren,M,D,T,P,Sn(v,E),A):I||le(h,v,D,null,T,P,Sn(v,E),A,!1),O>0){if(O&16)ie(D,F,V,T,E);else if(O&2&&F.class!==V.class&&o(D,"class",null,V.class,E),O&4&&o(D,"style",F.style,V.style,E),O&8){const se=v.dynamicProps;for(let he=0;he<se.length;he++){const ue=se[he],Ee=F[ue],Ae=V[ue];(Ae!==Ee||ue==="value")&&o(D,ue,Ee,Ae,E,T)}}O&1&&h.children!==v.children&&f(D,v.children)}else!I&&M==null&&ie(D,F,V,T,E);((G=V.onVnodeUpdated)||q)&&Se(()=>{G&&Ge(G,T,v,h),q&&$t(v,h,T,"updated")},P)},Q=(h,v,T,P,E,A,I)=>{for(let D=0;D<v.length;D++){const O=h[D],M=v[D],q=O.el&&(O.type===L||!ns(O,M)||O.shapeFlag&198)?_(O.el):T;x(O,M,q,null,P,E,A,I,!0)}},ie=(h,v,T,P,E)=>{if(v!==T){if(v!==de)for(const A in v)!Ut(A)&&!(A in T)&&o(h,A,v[A],null,E,P);for(const A in T){if(Ut(A))continue;const I=T[A],D=v[A];I!==D&&A!=="value"&&o(h,A,D,I,E,P)}"value"in T&&o(h,"value",v.value,T.value,E)}},j=(h,v,T,P,E,A,I,D,O)=>{const M=v.el=h?h.el:a(""),q=v.anchor=h?h.anchor:a("");let{patchFlag:F,dynamicChildren:V,slotScopeIds:G}=v;G&&(D=D?D.concat(G):G),h==null?(n(M,T,P),n(q,T,P),U(v.children||[],T,q,E,A,I,D,O)):F>0&&F&64&&V&&h.dynamicChildren&&h.dynamicChildren.length===V.length?(Q(h.dynamicChildren,V,T,E,A,I,D),(v.key!=null||E&&v===E.subTree)&&Yl(h,v,!0)):le(h,v,T,q,E,A,I,D,O)},ce=(h,v,T,P,E,A,I,D,O)=>{v.slotScopeIds=D,h==null?v.shapeFlag&512?E.ctx.activate(v,T,P,I,O):ct(v,T,P,E,A,I,O):Ks(h,v,O)},ct=(h,v,T,P,E,A,I)=>{const D=h.component=Oi(h,P,E);if(yn(h)&&(D.ctx.renderer=us),Di(D,!1,I),D.asyncDep){if(E&&E.registerDep(D,me,I),!h.el){const O=D.subTree=pe(vt);k(null,O,v,T),h.placeholder=O.el}}else me(D,h,v,T,E,A,I)},Ks=(h,v,T)=>{const P=v.component=h.component;if(pi(h,v,T))if(P.asyncDep&&!P.asyncResolved){ee(P,v,T);return}else P.next=v,P.update();else v.el=h.el,P.vnode=v},me=(h,v,T,P,E,A,I)=>{const D=()=>{if(h.isMounted){let{next:F,bu:V,u:G,parent:se,vnode:he}=h;{const et=Xl(h);if(et){F&&(F.el=he.el,ee(h,F,I)),et.asyncDep.then(()=>{Se(()=>{h.isUnmounted||M()},E)});return}}let ue=F,Ee;Tt(h,!1),F?(F.el=he.el,ee(h,F,I)):F=he,V&&hs(V),(Ee=F.props&&F.props.onVnodeBeforeUpdate)&&Ge(Ee,se,F,he),Tt(h,!0);const Ae=Bl(h),Ze=h.subTree;h.subTree=Ae,x(Ze,Ae,_(Ze.el),Vs(Ze),h,E,A),F.el=Ae.el,ue===null&&gi(h,Ae.el),G&&Se(G,E),(Ee=F.props&&F.props.onVnodeUpdated)&&Se(()=>Ge(Ee,se,F,he),E)}else{let F;const{el:V,props:G}=v,{bm:se,m:he,parent:ue,root:Ee,type:Ae}=h,Ze=Xt(v);Tt(h,!1),se&&hs(se),!Ze&&(F=G&&G.onVnodeBeforeMount)&&Ge(F,ue,v),Tt(h,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Ae);const et=h.subTree=Bl(h);x(null,et,T,P,h,E,A),v.el=et.el}if(he&&Se(he,E),!Ze&&(F=G&&G.onVnodeMounted)){const et=v;Se(()=>Ge(F,ue,et),E)}(v.shapeFlag&256||ue&&Xt(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&Se(h.a,E),h.isMounted=!0,v=T=P=null}};h.scope.on();const O=h.effect=new Zn(D);h.scope.off();const M=h.update=O.run.bind(O),q=h.job=O.runIfDirty.bind(O);q.i=h,q.id=h.uid,O.scheduler=()=>bn(q),Tt(h,!0),M()},ee=(h,v,T)=>{v.component=h;const P=h.vnode.props;h.vnode=v,h.next=null,vi(h,v.props,P,T),xi(h,v.children,T),Ke(),xl(h),Ve()},le=(h,v,T,P,E,A,I,D,O=!1)=>{const M=h&&h.children,q=h?h.shapeFlag:0,F=v.children,{patchFlag:V,shapeFlag:G}=v;if(V>0){if(V&128){is(M,F,T,P,E,A,I,D,O);return}else if(V&256){ye(M,F,T,P,E,A,I,D,O);return}}G&8?(q&16&&as(M,E,A),F!==M&&f(T,F)):q&16?G&16?is(M,F,T,P,E,A,I,D,O):as(M,E,A,!0):(q&8&&f(T,""),G&16&&U(F,T,P,E,A,I,D,O))},ye=(h,v,T,P,E,A,I,D,O)=>{h=h||At,v=v||At;const M=h.length,q=v.length,F=Math.min(M,q);let V;for(V=0;V<F;V++){const G=v[V]=O?at(v[V]):Je(v[V]);x(h[V],G,T,null,E,A,I,D,O)}M>q?as(h,E,A,!0,!1,F):U(v,T,P,E,A,I,D,O,F)},is=(h,v,T,P,E,A,I,D,O)=>{let M=0;const q=v.length;let F=h.length-1,V=q-1;for(;M<=F&&M<=V;){const G=h[M],se=v[M]=O?at(v[M]):Je(v[M]);if(ns(G,se))x(G,se,T,null,E,A,I,D,O);else break;M++}for(;M<=F&&M<=V;){const G=h[F],se=v[V]=O?at(v[V]):Je(v[V]);if(ns(G,se))x(G,se,T,null,E,A,I,D,O);else break;F--,V--}if(M>F){if(M<=V){const G=V+1,se=G<q?v[G].el:P;for(;M<=V;)x(null,v[M]=O?at(v[M]):Je(v[M]),T,se,E,A,I,D,O),M++}}else if(M>V)for(;M<=F;)Xe(h[M],E,A,!0),M++;else{const G=M,se=M,he=new Map;for(M=se;M<=V;M++){const Pe=v[M]=O?at(v[M]):Je(v[M]);Pe.key!=null&&he.set(Pe.key,M)}let ue,Ee=0;const Ae=V-se+1;let Ze=!1,et=0;const cs=new Array(Ae);for(M=0;M<Ae;M++)cs[M]=0;for(M=G;M<=F;M++){const Pe=h[M];if(Ee>=Ae){Xe(Pe,E,A,!0);continue}let tt;if(Pe.key!=null)tt=he.get(Pe.key);else for(ue=se;ue<=V;ue++)if(cs[ue-se]===0&&ns(Pe,v[ue])){tt=ue;break}tt===void 0?Xe(Pe,E,A,!0):(cs[tt-se]=M+1,tt>=et?et=tt:Ze=!0,x(Pe,v[tt],T,null,E,A,I,D,O),Ee++)}const No=Ze?Ci(cs):At;for(ue=No.length-1,M=Ae-1;M>=0;M--){const Pe=se+M,tt=v[Pe],Ho=v[Pe+1],Uo=Pe+1<q?Ho.el||eo(Ho):P;cs[M]===0?x(null,tt,T,Uo,E,A,I,D,O):Ze&&(ue<0||M!==No[ue]?Et(tt,T,Uo,2):ue--)}}},Et=(h,v,T,P,E=null)=>{const{el:A,type:I,transition:D,children:O,shapeFlag:M}=h;if(M&6){Et(h.component.subTree,v,T,P);return}if(M&128){h.suspense.move(v,T,P);return}if(M&64){I.move(h,v,T,us);return}if(I===L){n(A,v,T);for(let F=0;F<O.length;F++)Et(O[F],v,T,P);n(h.anchor,v,T);return}if(I===En){w(h,v,T);return}if(P!==2&&M&1&&D)if(P===0)D.beforeEnter(A),n(A,v,T),Se(()=>D.enter(A),E);else{const{leave:F,delayLeave:V,afterLeave:G}=D,se=()=>{h.ctx.isUnmounted?l(A):n(A,v,T)},he=()=>{A._isLeaving&&A[Ur](!0),F(A,()=>{se(),G&&G()})};V?V(A,se,he):he()}else n(A,v,T)},Xe=(h,v,T,P=!1,E=!1)=>{const{type:A,props:I,ref:D,children:O,dynamicChildren:M,shapeFlag:q,patchFlag:F,dirs:V,cacheIndex:G}=h;if(F===-2&&(E=!1),D!=null&&(Ke(),Yt(D,null,T,h,!0),Ve()),G!=null&&(v.renderCache[G]=void 0),q&256){v.ctx.deactivate(h);return}const se=q&1&&V,he=!Xt(h);let ue;if(he&&(ue=I&&I.onVnodeBeforeUnmount)&&Ge(ue,v,h),q&6)ap(h.component,T,P);else{if(q&128){h.suspense.unmount(T,P);return}se&&$t(h,null,v,"beforeUnmount"),q&64?h.type.remove(h,v,T,us,P):M&&!M.hasOnce&&(A!==L||F>0&&F&64)?as(M,v,T,!1,!0):(A===L&&F&384||!E&&q&16)&&as(O,v,T),P&&jo(h)}(he&&(ue=I&&I.onVnodeUnmounted)||se)&&Se(()=>{ue&&Ge(ue,v,h),se&&$t(h,null,v,"unmounted")},T)},jo=h=>{const{type:v,el:T,anchor:P,transition:E}=h;if(v===L){ip(T,P);return}if(v===En){R(h);return}const A=()=>{l(T),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:D}=E,O=()=>I(T,A);D?D(h.el,A,O):O()}else A()},ip=(h,v)=>{let T;for(;h!==v;)T=y(h),l(h),h=T;l(v)},ap=(h,v,T)=>{const{bum:P,scope:E,job:A,subTree:I,um:D,m:O,a:M}=h;Zl(O),Zl(M),P&&hs(P),E.stop(),A&&(A.flags|=8,Xe(I,h,v,T)),D&&Se(D,v),Se(()=>{h.isUnmounted=!0},v)},as=(h,v,T,P=!1,E=!1,A=0)=>{for(let I=A;I<h.length;I++)Xe(h[I],v,T,P,E)},Vs=h=>{if(h.shapeFlag&6)return Vs(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=y(h.anchor||h.el),T=v&&v[Nr];return T?y(T):v};let Nn=!1;const Bo=(h,v,T)=>{let P;h==null?v._vnode&&(Xe(v._vnode,null,null,!0),P=v._vnode.component):x(v._vnode||null,h,v,null,null,null,T),v._vnode=h,Nn||(Nn=!0,xl(P),wl(),Nn=!1)},us={p:x,um:Xe,m:Et,r:jo,mt:ct,mc:U,pc:le,pbc:Q,n:Vs,o:e};return{render:Bo,hydrate:void 0,createApp:ai(Bo)}}function Sn({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 Tt({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 Yl(e,t,s=!1){const n=e.children,l=t.children;if(W(n)&&W(l))for(let o=0;o<n.length;o++){const i=n[o];let a=l[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[o]=at(l[o]),a.el=i.el),!s&&a.patchFlag!==-2&&Yl(i,a)),a.type===Ls&&(a.patchFlag===-1&&(a=l[o]=at(a)),a.el=i.el),a.type===vt&&!a.el&&(a.el=i.el)}}function Ci(e){const t=e.slice(),s=[0];let n,l,o,i,a;const u=e.length;for(n=0;n<u;n++){const p=e[n];if(p!==0){if(l=s[s.length-1],e[l]<p){t[n]=l,s.push(n);continue}for(o=0,i=s.length-1;o<i;)a=o+i>>1,e[s[a]]<p?o=a+1:i=a;p<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function Xl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xl(t)}function Zl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function eo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?eo(t.subTree):null}const to=e=>e.__isSuspense;function Ti(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Rr(e)}const L=Symbol.for("v-fgt"),Ls=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),ts=[];let Me=null;function c(e=!1){ts.push(Me=e?null:[])}function Si(){ts.pop(),Me=ts[ts.length-1]||null}let ss=1;function Os(e,t=!1){ss+=e,e<0&&Me&&t&&(Me.hasOnce=!0)}function so(e){return e.dynamicChildren=ss>0?Me||At:null,Si(),ss>0&&Me&&Me.push(e),e}function d(e,t,s,n,l,o){return so(r(e,t,s,n,l,o,!0))}function Re(e,t,s,n,l){return so(pe(e,t,s,n,l,!0))}function Rs(e){return e?e.__v_isVNode===!0:!1}function ns(e,t){return e.type===t.type&&e.key===t.key}const no=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||ve(e)||J(e)?{i:Oe,r:e,k:t,f:!!s}:e:null);function r(e,t=null,s=null,n=0,l=null,o=e===L?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&Ds(t),scopeId:$l,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Oe};return a?(An(u,s),o&128&&e.normalize(u)):s&&(u.shapeFlag|=ge(s)?8:16),ss>0&&!i&&Me&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Me.push(u),u}const pe=Ei;function Ei(e,t=null,s=null,n=0,l=null,o=!1){if((!e||e===ei)&&(e=vt),Rs(e)){const a=Ft(e,t,!0);return s&&An(a,s),ss>0&&!o&&Me&&(a.shapeFlag&6?Me[Me.indexOf(e)]=a:Me.push(a)),a.patchFlag=-2,a}if(Ui(e)&&(e=e.__vccOpts),t){t=Ai(t);let{class:a,style:u}=t;a&&!ge(a)&&(t.class=K(a)),ae(u)&&(hn(u)&&!W(u)&&(u=be({},u)),t.style=pt(u))}const i=ge(e)?1:to(e)?128:Hr(e)?64:ae(e)?4:J(e)?2:0;return r(e,t,s,n,l,i,o,!0)}function Ai(e){return e?hn(e)||Vl(e)?be({},e):e:null}function Ft(e,t,s=!1,n=!1){const{props:l,ref:o,patchFlag:i,children:a,transition:u}=e,p=t?Mi(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&no(p),ref:t&&t.ref?s&&o?W(o)?o.concat(Ds(t)):[o,Ds(t)]:Ds(t):o,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!==L?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&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&vn(f,u.clone(f)),f}function Z(e=" ",t=0){return pe(Ls,null,e,t)}function ne(e="",t=!1){return t?(c(),Re(vt,null,e)):pe(vt,null,e)}function Je(e){return e==null||typeof e=="boolean"?pe(vt):W(e)?pe(L,null,e.slice()):Rs(e)?at(e):pe(Ls,null,String(e))}function at(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function An(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(W(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),An(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Vl(t)?t._ctx=Oe:l===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:Oe},s=32):(t=String(t),n&64?(s=16,t=[Z(t)]):s=8);e.children=t,e.shapeFlag|=s}function Mi(...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=K([t.class,n.class]));else if(l==="style")t.style=pt([t.style,n.style]);else if(ds(l)){const o=t[l],i=n[l];i&&o!==i&&!(W(o)&&o.includes(i))&&(t[l]=o?[].concat(o,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ge(e,t,s,n=null){ze(e,t,7,[s,n])}const Pi=Fl();let Li=0;function Oi(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Pi,o={uid:Li++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ql(n,l),emitsOptions:jl(n,l),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ci.bind(null,o),e.ce&&e.ce(o),o}let we=null;const Ri=()=>we||Oe;let Is,Mn;{const e=ps(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),o=>{l.length>1?l.forEach(i=>i(o)):l[0](o)}};Is=t("__VUE_INSTANCE_SETTERS__",s=>we=s),Mn=t("__VUE_SSR_SETTERS__",s=>jt=s)}const ls=e=>{const t=we;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},lo=()=>{we&&we.scope.off(),Is(null)};function oo(e){return e.vnode.shapeFlag&4}let jt=!1;function Di(e,t=!1,s=!1){t&&Mn(t);const{props:n,children:l}=e.vnode,o=oo(e);bi(e,n,o,t),_i(e,l,s||t);const i=o?Ii(e,t):void 0;return t&&Mn(!1),i}function Ii(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ti);const{setup:n}=s;if(n){Ke();const l=e.setupContext=n.length>1?ji(e):null,o=ls(e),i=Ot(n,e,0,[e.props,l]),a=Vn(i);if(Ve(),o(),(a||e.sp)&&!Xt(e)&&mn(e),a){if(i.then(lo,lo),t)return i.then(u=>{ro(e,u)}).catch(u=>{Gt(u,e,0)});e.asyncDep=i}else ro(e,i)}else io(e)}function ro(e,t,s){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=vl(t)),io(e)}function io(e,t,s){const n=e.type;e.render||(e.render=n.render||He);{const l=ls(e);Ke();try{si(e)}finally{Ve(),l()}}}const Fi={get(e,t){return _e(e,"get",""),e[t]}};function ji(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Fi),slots:e.slots,emit:e.emit,expose:t}}function Fs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vl(_r(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zt)return Zt[s](e)},has(t,s){return s in t||s in Zt}})):e.proxy}const Bi=/(?:^|[-_])\w/g,Ni=e=>e.replace(Bi,t=>t.toUpperCase()).replace(/[-_]/g,"");function Hi(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function ao(e,t,s=!1){let n=Hi(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=o=>{for(const i in o)if(o[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Ni(n):s?"App":"Anonymous"}function Ui(e){return J(e)&&"__vccOpts"in e}const Y=(e,t)=>Cr(e,t,jt);function Ki(e,t,s){try{Os(-1);const n=arguments.length;return n===2?ae(t)&&!W(t)?Rs(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Rs(s)&&(s=[s]),pe(e,t,s))}finally{Os(1)}}const Vi="3.5.29";let Pn;const uo=typeof window<"u"&&window.trustedTypes;if(uo)try{Pn=uo.createPolicy("vue",{createHTML:e=>e})}catch{}const co=Pn?e=>Pn.createHTML(e):e=>e,zi="http://www.w3.org/2000/svg",qi="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,fo=ut&&ut.createElement("template"),Wi={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"?ut.createElementNS(zi,e):t==="mathml"?ut.createElementNS(qi,e):s?ut.createElement(e,{is:s}):ut.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,o){const i=s?s.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===o||!(l=l.nextSibling)););else{fo.innerHTML=co(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=fo.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]}},Ji=Symbol("_vtc");function Gi(e,t,s){const n=e[Ji];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ho=Symbol("_vod"),Qi=Symbol("_vsh"),Yi=Symbol(""),Xi=/(?:^|;)\s*display\s*:/;function Zi(e,t,s){const n=e.style,l=ge(s);let o=!1;if(s&&!l){if(t)if(ge(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&js(n,a,"")}else for(const i in t)s[i]==null&&js(n,i,"");for(const i in s)i==="display"&&(o=!0),js(n,i,s[i])}else if(l){if(t!==s){const i=n[Yi];i&&(s+=";"+i),n.cssText=s,o=Xi.test(s)}}else t&&e.removeAttribute("style");ho in e&&(e[ho]=o?n.display:"",e[Qi]&&(n.display="none"))}const po=/\s*!important$/;function js(e,t,s){if(W(s))s.forEach(n=>js(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ea(e,t);po.test(s)?e.setProperty(ft(n),s.replace(po,""),"important"):e[n]=s}}const go=["Webkit","Moz","ms"],Ln={};function ea(e,t){const s=Ln[t];if(s)return s;let n=dt(t);if(n!=="filter"&&n in e)return Ln[t]=n;n=Wn(n);for(let l=0;l<go.length;l++){const o=go[l]+n;if(o in e)return Ln[t]=o}return t}const bo="http://www.w3.org/1999/xlink";function vo(e,t,s,n,l,o=Yo(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(bo,t.slice(6,t.length)):e.setAttributeNS(bo,t,s):s==null||o&&!Qn(s)?e.removeAttribute(t):e.setAttribute(t,o?"":Ue(s)?String(s):s)}function mo(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?co(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="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=Qn(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 Bt(e,t,s,n){e.addEventListener(t,s,n)}function ta(e,t,s,n){e.removeEventListener(t,s,n)}const yo=Symbol("_vei");function sa(e,t,s,n,l=null){const o=e[yo]||(e[yo]={}),i=o[t];if(n&&i)i.value=n;else{const[a,u]=na(t);if(n){const p=o[t]=ra(n,l);Bt(e,a,p,u)}else i&&(ta(e,a,i,u),o[t]=void 0)}}const _o=/(?:Once|Passive|Capture)$/;function na(e){let t;if(_o.test(e)){t={};let n;for(;n=e.match(_o);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ft(e.slice(2)),t]}let On=0;const la=Promise.resolve(),oa=()=>On||(la.then(()=>On=0),On=Date.now());function ra(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(ia(n,s.value),t,5,[n])};return s.value=e,s.attached=oa(),s}function ia(e,t){if(W(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 xo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,aa=(e,t,s,n,l,o)=>{const i=l==="svg";t==="class"?Gi(e,n,i):t==="style"?Zi(e,s,n):ds(t)?qs(t)||sa(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ua(e,t,n,i))?(mo(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vo(e,t,n,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ge(n))?mo(e,dt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),vo(e,t,n,i))};function ua(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&xo(t)&&J(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 xo(t)&&ge(s)?!1:t in e}const wo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?s=>hs(t,s):t};function ca(e){e.target.composing=!0}function ko(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function $o(e,t,s){return t&&(e=e.trim()),s&&(e=Qs(e)),e}const Qe={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[Rn]=wo(l);const o=n||l.props&&l.props.type==="number";Bt(e,t?"change":"input",i=>{i.target.composing||e[Rn]($o(e.value,s,o))}),(s||o)&&Bt(e,"change",()=>{e.value=$o(e.value,s,o)}),t||(Bt(e,"compositionstart",ca),Bt(e,"compositionend",ko),Bt(e,"change",ko))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:o}},i){if(e[Rn]=wo(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Qs(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))}},da=["ctrl","shift","alt","meta"],fa={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)=>da.some(s=>e[`${s}Key`]&&!t.includes(s))},Nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...o)=>{for(let i=0;i<t.length;i++){const a=fa[t[i]];if(a&&a(l,t))return}return e(l,...o)}))},ha={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Co=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const o=ft(l.key);if(t.some(i=>i===o||ha[i]===o))return e(l)}))},pa=be({patchProp:aa},Wi);let To;function ga(){return To||(To=wi(pa))}const ba=((...e)=>{const t=ga().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=ma(n);if(!l)return;const o=t._component;!J(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,va(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function va(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ma(e){return ge(e)?document.querySelector(e):e}class Bs extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ya extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class Dn{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},o=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(o.status===401||o.status===403)throw new Bs(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new ya(o.status,i)}return o.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 _a=3e3,xa=100,wa=500,ka={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function $a(e){return ka[e]||`/${e}`}class So{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new Dn({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??_a,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 Bs){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||this.serveFromCache(t))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){this.handleFetchError(n,s)}}serveFromCache(t){return this.fetchOnceCache[t]===void 0?!1:(this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1),!0)}handleFetchError(t,s){if(!(t instanceof DOMException&&t.name==="AbortError")&&!s.signal.aborted){if(t instanceof Bs){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(t);return}this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1)}}}const Eo=new Set(["cache","jobs","config"]);function Ao(e){return{onData:t=>{e.data.value=t},onLoading:t=>{e.loading.value=t},onError:t=>{e.error.value=t},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}class Ca{constructor(t,s,n,l){this.refs=t,this.config=s,this.dashboardEndpoint=l,this.controller=new So({...s,endpoint:n,...Ao(t)})}controller;dashboardController=null;dashboardEndpoint;getDashboardController(){return!this.dashboardController&&this.dashboardEndpoint&&(this.dashboardController=new So({...this.config,endpoint:this.dashboardEndpoint,...Ao(this.refs)})),this.dashboardController}startForTab(t){const s=t();!s||s.startsWith("custom-")||(Eo.has(s)&&this.dashboardEndpoint?(this.controller.stop(),this.getDashboardController().start(s)):(this.dashboardController?.stop(),this.controller.start(s)))}stopAll(){this.controller.stop(),this.dashboardController?.stop()}refresh(t){const s=t();Eo.has(s)&&this.dashboardEndpoint&&this.dashboardController?this.dashboardController.refresh():this.controller.refresh()}fetchCustomPane(t,s=!1){return this.controller.fetchCustomPane(t,s)}}function Ta(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:o,refreshInterval:i}=t,a=z(null),u=z(!1),p=z(null),f=z(!1),_={data:a,loading:u,error:p,isUnauthorized:f},y=new Ca(_,{baseUrl:s,authToken:o,refreshInterval:i},n,l);return rt(e,()=>{a.value=null,y.startForTab(e)}),Ct(()=>y.startForTab(e)),As(()=>y.stopAll()),{data:a,loading:u,error:p,isUnauthorized:f,refresh:()=>y.refresh(e),clear:()=>{a.value=null},fetchCustomPane:(g,$=!1)=>y.fetchCustomPane(g,$),startRefresh:()=>y.startForTab(e),stopRefresh:()=>y.stopAll()}}const Ns="ss-dash-theme",In="ss-theme-change";function Hs(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ns);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function Sa(e){typeof window>"u"||(localStorage.setItem(Ns,e),window.dispatchEvent(new CustomEvent(In,{detail:e})))}function Ea(){const t=Hs()==="dark"?"light":"dark";return Sa(t),t}function Aa(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===Ns){const i=o.newValue;e(i==="dark"||i==="light"?i:Hs())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=o=>{localStorage.getItem(Ns)||e(o.matches?"dark":"light")};return window.addEventListener(In,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(In,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Ma(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function Pa(e,t,s){if(e.length===0)return"[]";const n=e.slice(0,3).map(i=>s(i,30)),l=e.length>3?", ..."+e.length+" items":"",o="["+n.join(", ")+l+"]";return o.length>t?"["+e.length+" items]":o}function La(e,t,s){const n=Object.keys(e);if(n.length===0)return"{}";const l=[];for(let u=0;u<Math.min(n.length,4);u++)l.push(n[u]+": "+s(e[n[u]],30));const o=n.length>4?", ...+"+(n.length-4):"",i="{ "+l.join(", ")+o+" }";return i.length<=t?i:"{ "+(n.slice(0,6).join(", ")+(n.length>6?", ...":""))+" }"}function Oa(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 De(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Mo(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function mt(e){if(!e)return"-";const t=typeof e=="string"?new Date(Mo(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 Be(e){if(!e)return"-";const t=typeof e=="string"?new Date(Mo(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 Ra(e){return e>wa?"very-slow":e>xa?"slow":"normal"}function Fn(e,t="ss-dash"){const s=Ra(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function os(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?Ma(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?Pa(e,t,os):typeof e=="object"?La(e,t,os):String(e)}function Po(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 Da(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Ia=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],Lo="/admin/api/debug",Oo={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 Fa(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const n of Ia)t[n]=s?.[n]??!1;return t}async function ja(e,t=Lo){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Ba(e){const{baseUrl:t="",debugEndpoint:s=Lo,authToken:n}=e,l=new Dn({baseUrl:t,authToken:n});try{const o=await ja(l,s);return Fa(o)}catch{return Oo}}const Ce={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"/>']}},Na="ss-col-resize",Ro="ss-resizing";function Ha(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 o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const p=u.clientX,f=o.offsetWidth;a.classList.add(Ro),a.setPointerCapture(u.pointerId);function _(g){const $=g.clientX-p,x=Math.max(30,f+$);o.style.width=x+"px"}function y(){a.classList.remove(Ro),a.removeEventListener("pointermove",_),a.removeEventListener("pointerup",y)}a.addEventListener("pointermove",_),a.addEventListener("pointerup",y)};if(!o.textContent?.trim())continue;const a=document.createElement("div");a.className=Na,o.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const o of s)o()}}function Ua(e){const{container:t,handle:s,topPane:n,bottomPane:l,storageKey:o,minHeight:i=60}=e;if(o){const u=localStorage.getItem(o);if(u){const p=parseFloat(u);p>0&&p<1&&(n.style.flex=`${p}`,l.style.flex=`${1-p}`)}}function a(u){u.preventDefault(),s.setPointerCapture(u.pointerId);const f=t.getBoundingClientRect().height,_=u.clientY,y=n.getBoundingClientRect().height;function g(x){const H=x.clientY-_;let k=y+H;const b=f-i-s.offsetHeight;k=Math.max(i,Math.min(k,b));const w=k/(f-s.offsetHeight);n.style.flex=`${w}`,l.style.flex=`${1-w}`}function $(){if(s.removeEventListener("pointermove",g),s.removeEventListener("pointerup",$),o){const x=t.getBoundingClientRect().height-s.offsetHeight;if(x>0){const H=n.getBoundingClientRect().height/x;localStorage.setItem(o,String(H))}}}s.addEventListener("pointermove",g),s.addEventListener("pointerup",$)}return s.addEventListener("pointerdown",a),()=>{s.removeEventListener("pointerdown",a)}}function Ka(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function Do(e){const t={};for(const[s,n]of Object.entries(e))qa.has(s)||(t[s]=n);return Object.keys(t).length>0?t:null}const Va=["all","error","warn","info","debug"];function rs(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function jn(e){return e.msg||e.message||JSON.stringify(e)}function yt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ne(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 Io(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 za(e,t){return t==="all"?e:e.filter(s=>{const n=rs(s);return t==="error"?n==="error"||n==="fatal":n===t})}const qa=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function Ye(e){if(e.data){const t=Ka(e.data);if(t){const s=Do(t);if(s)return s}}return Do(e)}function Wa(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 Ja(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function Ga(e,t){const s=e.filter(o=>o.duration>100).length,n=Object.values(t).filter(o=>o>1).length,l=e.length>0?e.reduce((o,i)=>o+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}function Qa(){return[{key:"id",label:"#",width:"50px",type:"index"},{key:"sql",label:"SQL",type:"sql"},{key:"duration",label:"Duration",width:"80px",type:"duration"},{key:"method",label:"Method",width:"70px",type:"method"},{key:"model",label:"Model",width:"100px",type:"model"},{key:"timestamp",label:"Time",width:"80px",type:"time"}]}class Ya{state;constructor(t="list"){this.state={viewMode:t,sort:{key:t==="list"?"createdAt":"count",dir:"desc"},expandedIds:new Set,explainData:new Map,search:""}}setViewMode(t){return this.state.viewMode=t,this.state.sort={key:t==="list"?"createdAt":"count",dir:"desc"},this.state.expandedIds=new Set,this.state.explainData=new Map,this.state}toggleSort(t){return this.state.sort.key===t?this.state.sort={key:t,dir:this.state.sort.dir==="asc"?"desc":"asc"}:this.state.sort={key:t,dir:"desc"},this.state}toggleExpand(t){return this.state.expandedIds.has(t)?this.state.expandedIds.delete(t):this.state.expandedIds.add(t),this.state}isExpanded(t){return this.state.expandedIds.has(t)}setSearch(t){return this.state.search=t,this.state}startExplain(t){this.state.explainData.set(t,{loading:!0})}completeExplain(t,s){this.state.explainData.set(t,{loading:!1,result:s})}failExplain(t,s){this.state.explainData.set(t,{loading:!1,error:s})}clearExplain(){this.state.explainData=new Map}getExplainState(t){return this.state.explainData.get(t)}}const Xa=["all","active","waiting","delayed","completed","failed"];function Za(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 eu=["password","secret","token","key","credential","auth"];function tu(e){const t=e.toLowerCase();return eu.some(s=>t.includes(s))}function su(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 nu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function lu(e){return nu[e]||e}const ou={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function ru(e){return ou[e]||e}function iu(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function au(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function uu(e){return Object.entries(e).map(([t,s])=>({key:t,value:su(s),secret:tu(t)}))}function cu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const du=["healthy","active","connected","available","ready"],fu=["errored","unavailable"];function hu(e){return du.includes(e)?"ok":fu.includes(e)?"err":""}function pu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function gu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(pu(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const bu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function vu(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const o of l)o&&s.push(o)}return s}function mu(e){return vu(e).some(s=>bu.has(s.toLowerCase()))}function yu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=z({...Oo}),o=z(!0);return Ct(async()=>{l.value=await Ba({baseUrl:t,debugEndpoint:s,authToken:n}),o.value=!1}),{features:l,loading:o}}function Fo(){const e=z(Hs());let t=null;function s(l){e.value=l}function n(){const l=Ea();return e.value=l,l}return Ct(()=>{e.value=Hs(),t=Aa(s)}),As(()=>{t?.()}),{theme:e,toggleTheme:n}}const _u=["title","aria-label"],xu=["viewBox","innerHTML"],wu=["viewBox","innerHTML"],ku=xe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Fo(),l=Y(()=>s.value==="dark"),o=Y(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=Y(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(c(),d("button",{type:"button",class:K(i.value),title:o.value,"aria-label":o.value,onClick:u[0]||(u[0]=(...p)=>S(n)&&S(n)(...p))},[l.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:S(Ce).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:S(Ce).sun.elements.join("")},null,8,xu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:S(Ce).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:S(Ce).moon.elements.join("")},null,8,wu))],10,_u))}}),$u=["data-ss-theme"],Cu={class:"ss-dbg-tabs"},Tu={class:"ss-dbg-tabs-scroll"},Su=["onClick"],Eu=["viewBox","innerHTML"],Au={class:"ss-dbg-tabs-right"},Mu=["title"],Pu=["href"],Lu=["viewBox","innerHTML"],Ou={class:"ss-dbg-content"},Ru={key:0,class:"ss-dbg-empty"},Du={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},Iu=xe({__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=je(()=>Promise.resolve().then(()=>qu)),n=je(()=>Promise.resolve().then(()=>sc)),l=je(()=>Promise.resolve().then(()=>wc)),o=je(()=>Promise.resolve().then(()=>Mc)),i=je(()=>Promise.resolve().then(()=>qc)),a=je(()=>Promise.resolve().then(()=>jd)),u=je(()=>Promise.resolve().then(()=>uf)),p=je(()=>Promise.resolve().then(()=>Pf)),f=je(()=>Promise.resolve().then(()=>hh)),_=je(()=>Promise.resolve().then(()=>Yh)),y=je(()=>Promise.resolve().then(()=>rp)),g=e,$=z(g.defaultOpen),x=z("queries"),{theme:H}=Fo(),{features:k}=yu({baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,authToken:g.authToken}),b=g.dashboardPath?g.dashboardPath.replace(/\/+$/,"")+"/api":void 0,w=Y(()=>x.value.startsWith("custom-")),R=Y(()=>w.value||x.value==="internals"),{data:C,loading:N,error:B,isUnauthorized:U,startRefresh:te,stopRefresh:Q}=Ta(()=>x.value,{baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,dashboardEndpoint:b,authToken:g.authToken}),ie=Y(()=>{const ee=[{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"}];(k.value.tracing||g.tracingEnabled)&&ee.push({id:"timeline",label:"Requests",icon:"R"}),k.value.cache&&ee.push({id:"cache",label:"Cache",icon:"C"}),k.value.queues&&ee.push({id:"jobs",label:"Jobs",icon:"J"}),ee.push({id:"config",label:"Config",icon:"G"}),ee.push({id:"internals",label:"Internals",icon:"I"});for(const le of k.value.customPanes)ee.push({id:`custom-${le.id}`,label:le.label,icon:le.label.charAt(0).toUpperCase()});return ee});function j(ee){const le=ee.replace("custom-","");return k.value.customPanes.find(ye=>ye.id===le)}function ce(){$.value=!0,te()}function ct(){$.value=!1,Q()}function Ks(){$.value?ct():ce()}function me(ee){x.value=ee}return rt($,ee=>{ee?te():Q()}),t({toggle:Ks,open:ce,close:ct}),(ee,le)=>S(U)?ne("",!0):(c(),d("div",{key:0,class:K(["ss-dbg-panel",{"ss-dbg-open":$.value}]),"data-ss-theme":S(H)},[r("div",Cu,[r("div",Tu,[(c(!0),d(L,null,X(ie.value,ye=>(c(),d("button",{key:ye.id,type:"button",class:K(["ss-dbg-tab",{"ss-dbg-active":x.value===ye.id}]),onClick:is=>me(ye.id)},[S(Ce)[ye.id]?(c(),d("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:S(Ce)[ye.id].viewBox,innerHTML:S(Ce)[ye.id].elements.join("")},null,8,Eu)):ne("",!0),Z(" "+m(ye.label),1)],10,Su))),128))]),r("div",Au,[r("span",{class:K(["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,Mu),e.dashboardPath&&S(k).dashboard?(c(),d("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(c(),d("svg",{width:"14",height:"14",viewBox:S(Ce)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:S(Ce)["external-link"].elements.join("")},null,8,Lu))],8,Pu)):ne("",!0),pe(ku),r("button",{type:"button",class:"ss-dbg-close",onClick:ct,title:"Close panel"}," × ")])]),r("div",Ou,[S(N)&&!S(C)&&!R.value?(c(),d("div",Ru,"Loading...")):S(B)&&!R.value?(c(),d("div",Du," Error: "+m(S(B).message),1)):(c(),d(L,{key:2},[x.value==="queries"?(c(),Re(S(s),{key:0,data:S(C),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):x.value==="events"?(c(),Re(S(n),{key:1,data:S(C),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):x.value==="emails"?(c(),Re(S(l),{key:2,data:S(C),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):x.value==="routes"?(c(),Re(S(o),{key:3,data:S(C)},null,8,["data"])):x.value==="logs"?(c(),Re(S(i),{key:4,data:S(C),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):x.value==="timeline"?(c(),Re(S(a),{key:5,data:S(C),"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"])):x.value==="cache"?(c(),Re(S(u),{key:6,data:S(C)},null,8,["data"])):x.value==="jobs"?(c(),Re(S(p),{key:7,data:S(C)},null,8,["data"])):x.value==="config"?(c(),Re(S(f),{key:8,data:S(C)},null,8,["data"])):x.value==="internals"?(c(),Re(S(_),{key:9,data:S(C),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):x.value.startsWith("custom-")?(c(),Re(S(y),{key:10,pane:j(x.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):ne("",!0)],64))])],10,$u))}});let St=null;window.__ssDebugPanel={mount(e,t,s){St&&St.unmount(),St=ba({setup(){return()=>Ki(Iu,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),St.mount(e)},unmount(e){St&&(St.unmount(),St=null)}};function _t(e){const t=z(null);let s=null;function n(){s&&s(),s=null,gn(()=>{t.value&&(s=Ha(t.value))})}return e&&rt(e,n),Ct(n),Es(()=>{s&&s(),s=null}),{tableRef:t}}const Fu={class:"ss-dbg-search-bar"},ju={class:"ss-dbg-summary"},Bu={key:0,class:"ss-dbg-empty"},Nu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Hu=["onClick","onKeydown"],Uu={key:0,class:"ss-dbg-dup"},Ku={key:1,class:"ss-dbg-dup"},Vu={class:"ss-dbg-c-muted"},zu=["title"],qu=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=new Ya,l=z(0);function o(x){n.toggleExpand(x),l.value++}function i(x){return l.value,n.isExpanded(x)}const a=Y(()=>Qa()),u=Y(()=>{if(!t.data)return[];const x=t.data;return(Array.isArray(x)?x:x.queries)||[]}),p=Y(()=>Wa(u.value,s.value)),f=Y(()=>Ja(u.value)),_=Y(()=>Ga(u.value,f.value)),y=Y(()=>{let x=`${p.value.length} queries`;return _.value.slowCount>0&&(x+=` | ${_.value.slowCount} slow`),_.value.dupCount>0&&(x+=` | ${_.value.dupCount} dup`),p.value.length>0&&(x+=` | avg ${De(_.value.avgDuration)}`),x});function g(x){return Fn(x,"ss-dbg")}const{tableRef:$}=_t(()=>p.value);return(x,H)=>(c(),d("div",null,[r("div",Fu,[We(r("input",{"onUpdate:modelValue":H[0]||(H[0]=k=>s.value=k),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[Qe,s.value]]),r("span",ju,m(y.value),1)]),p.value.length===0?(c(),d("div",Bu,[...H[1]||(H[1]=[r("span",null,"No queries captured",-1),r("span",{class:"ss-empty-hint"},[Z(" Queries require "),r("code",null,"debug: true"),Z(" on your Lucid connections in "),r("code",null,"config/database.ts")],-1)])])):(c(),d("table",{key:1,ref_key:"tableRef",ref:$,class:"ss-dbg-table"},[r("thead",null,[r("tr",null,[(c(!0),d(L,null,X(a.value,k=>(c(),d("th",{key:k.key+k.type},m(k.label),1))),128))])]),r("tbody",null,[(c(!0),d(L,null,X(p.value,k=>(c(),d("tr",{key:k.id},[r("td",Nu,m(k.id),1),r("td",null,[r("span",{class:K(["ss-dbg-sql",{"ss-dbg-expanded":i(k.id)}]),role:"button",tabindex:"0",onClick:b=>o(k.id),onKeydown:Co(b=>o(k.id),["enter"])},m(k.sql),43,Hu),f.value[k.sql]>1?(c(),d("span",Uu," x"+m(f.value[k.sql]),1)):ne("",!0),k.inTransaction?(c(),d("span",Ku," TXN")):ne("",!0)]),r("td",{class:K(["ss-dbg-duration",g(k.duration)])},m(S(De)(k.duration)),3),r("td",null,[r("span",{class:K(`ss-dbg-method ss-dbg-method-${k.method.toLowerCase()}`)},m(k.method),3)]),r("td",Vu,m(k.model||"-"),1),r("td",{class:"ss-dbg-event-time",title:S(mt)(k.timestamp)},m(S(Be)(k.timestamp)),9,zu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Us=xe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=z(t.defaultExpanded),n=Y(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return os(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return os(t.value,t.maxLen||100)}),l=Y(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(c(),d("span",{key:0,class:K(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:K(`${t.classPrefix}-data-cell`)},[s.value?ne("",!0):(c(),d("span",{key:0,class:K(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:u[0]||(u[0]=p=>p.key==="Enter"&&o())},m(n.value),35)),s.value?(c(),d("div",{key:1,class:K(`${t.classPrefix}-data-full`),onClick:o},[r("button",{class:K(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Nt(i,["stop"])}," Copy ",2),r("pre",null,m(l.value),1)],2)):ne("",!0)],2))}}),Wu={class:"ss-dbg-search-bar"},Ju={class:"ss-dbg-summary"},Gu={key:0,class:"ss-dbg-empty"},Qu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Yu={class:"ss-dbg-event-name"},Xu=["href"],Zu=["viewBox","innerHTML"],ec={class:"ss-dbg-event-data"},tc=["title"],sc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=Y(()=>{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(p=>p.event.toLowerCase().includes(u)||p.data&&p.data.toLowerCase().includes(u))}),l=Y(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:o}=_t(()=>n.value);return(i,a)=>(c(),d("div",null,[r("div",Wu,[We(r("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[Qe,s.value]]),r("span",Ju,m(l.value),1)]),n.value.length===0?(c(),d("div",Gu,"No events captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:o,class:"ss-dbg-table"},[a[1]||(a[1]=r("thead",null,[r("tr",null,[r("th",null,"#"),r("th",null,"Event"),r("th",null,"Data"),r("th",null,"Time")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(n.value,u=>(c(),d("tr",{key:u.id},[r("td",Qu,m(u.id),1),r("td",Yu,[Z(m(u.event)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(c(),d("svg",{width:"12",height:"12",viewBox:S(Ce)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:S(Ce)["open-external"].elements.join("")},null,8,Zu))],8,Xu)):ne("",!0)]),r("td",ec,[pe(Us,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),r("td",{class:"ss-dbg-event-time",title:S(mt)(u.timestamp)},m(S(Be)(u.timestamp)),9,tc)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),nc={style:{position:"relative",height:"100%"}},lc={key:0,class:"ss-dbg-email-preview"},oc={class:"ss-dbg-email-preview-header"},rc={class:"ss-dbg-email-preview-meta"},ic={key:0},ac={key:0,class:"ss-dbg-empty"},uc=["srcdoc"],cc={key:2,class:"ss-dbg-empty"},dc={class:"ss-dbg-search-bar"},fc={class:"ss-dbg-summary"},hc={key:0,class:"ss-dbg-empty"},pc=["onClick"],gc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},bc=["title"],vc=["title"],mc={class:"ss-dbg-c-sql"},yc={class:"ss-dbg-c-muted"},_c={class:"ss-dbg-c-dim",style:{"text-align":"center"}},xc=["title"],wc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EmailsTab",props:{data:{},dashboardPath:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),o=z(!1),i=Y(()=>{const y=t.data,g=y?(Array.isArray(y)?y:y.emails)||[]:[];if(!s.value.trim())return g;const $=s.value.toLowerCase();return g.filter(x=>x.subject.toLowerCase().includes($)||x.from.toLowerCase().includes($)||x.to.toLowerCase().includes($)||x.mailer&&x.mailer.toLowerCase().includes($))}),a=Y(()=>{const y=t.data;return`${(y?(Array.isArray(y)?y:y.emails)||[]:[]).length} emails`});function u(y){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"}[y]||""}async function p(y){if(n.value=y,l.value=y.html||null,!l.value&&y.id){o.value=!0;try{const g=t.debugEndpoint||"/admin/api/debug",$={};t.authToken&&($.Authorization=`Bearer ${t.authToken}`);const x=await fetch(`${g}/emails/${y.id}/preview`,{headers:$,credentials:t.authToken?"omit":"include"});x.ok&&(l.value=await x.text())}catch{}finally{o.value=!1}}}function f(){n.value=null,l.value=null,o.value=!1}const{tableRef:_}=_t(()=>i.value);return(y,g)=>(c(),d("div",nc,[n.value?(c(),d("div",lc,[r("div",oc,[r("div",rc,[r("div",null,[g[1]||(g[1]=r("strong",null,"From:",-1)),Z(" "+m(n.value.from),1)]),r("div",null,[g[2]||(g[2]=r("strong",null,"To:",-1)),Z(" "+m(n.value.to),1)]),n.value.cc?(c(),d("div",ic,[g[3]||(g[3]=r("strong",null,"CC:",-1)),Z(" "+m(n.value.cc),1)])):ne("",!0),r("div",null,[g[4]||(g[4]=r("strong",null,"Subject:",-1)),Z(" "+m(n.value.subject),1)]),r("div",null,[g[5]||(g[5]=r("strong",null,"Status:",-1)),r("span",{class:K(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:f},"×")]),o.value?(c(),d("div",ac,"Loading preview...")):l.value?(c(),d("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,uc)):(c(),d("div",cc,"No HTML content"))])):ne("",!0),n.value?ne("",!0):(c(),d(L,{key:1},[r("div",dc,[We(r("input",{"onUpdate:modelValue":g[0]||(g[0]=$=>s.value=$),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[Qe,s.value]]),r("span",fc,m(a.value),1)]),i.value.length===0?(c(),d("div",hc,"No emails captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:_,class:"ss-dbg-table"},[g[6]||(g[6]=r("thead",null,[r("tr",null,[r("th",null,"#"),r("th",null,"From"),r("th",null,"To"),r("th",null,"Subject"),r("th",null,"Status"),r("th",null,"Mailer"),r("th",{title:"Attachments"},"📎"),r("th",null,"Time")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(i.value,$=>(c(),d("tr",{key:$.id,class:"ss-dbg-email-row",onClick:x=>p($)},[r("td",gc,m($.id),1),r("td",{class:"ss-dbg-c-secondary",title:$.from},m($.from),9,bc),r("td",{class:"ss-dbg-c-secondary",title:$.to},m($.to),9,vc),r("td",mc,m($.subject),1),r("td",null,[r("span",{class:K(["ss-dbg-email-status",u($.status)])},m($.status),3)]),r("td",yc,m($.mailer),1),r("td",_c,m($.attachmentCount>0?$.attachmentCount:"-"),1),r("td",{class:"ss-dbg-event-time",title:S(mt)($.timestamp)},m(S(Be)($.timestamp)),9,xc)],8,pc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),kc={class:"ss-dbg-search-bar"},$c={class:"ss-dbg-summary"},Cc={key:0,class:"ss-dbg-empty"},Tc={class:"ss-dbg-c-text"},Sc={class:"ss-dbg-c-muted"},Ec={class:"ss-dbg-c-sql"},Ac={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},Mc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=z(""),n=Y(()=>{const a=t.data,u=a?(Array.isArray(a)?a:a.routes)||[]:[];if(!s.value.trim())return u;const p=s.value.toLowerCase();return u.filter(f=>f.pattern.toLowerCase().includes(p)||f.handler.toLowerCase().includes(p)||f.method.toLowerCase().includes(p)||f.name&&f.name.toLowerCase().includes(p))}),l=Y(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function o(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=_t(()=>n.value);return(a,u)=>(c(),d("div",null,[r("div",kc,[We(r("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[Qe,s.value]]),r("span",$c,m(l.value),1)]),n.value.length===0?(c(),d("div",Cc,"No routes found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=r("thead",null,[r("tr",null,[r("th",null,"Method"),r("th",null,"Pattern"),r("th",null,"Name"),r("th",null,"Handler"),r("th",null,"Middleware")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(n.value,(p,f)=>(c(),d("tr",{key:f,class:K({"ss-dbg-current-route":o(p)})},[r("td",null,[r("span",{class:K(`ss-dbg-method ss-dbg-method-${p.method.toLowerCase()}`)},m(p.method),3)]),r("td",Tc,m(p.pattern),1),r("td",Sc,m(p.name||"-"),1),r("td",Ec,m(p.handler),1),r("td",Ac,m(p.middleware.length>0?p.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Pc={class:"ss-dbg-log-filters"},Lc=["onClick"],Oc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},Rc={class:"ss-dbg-search-bar"},Dc={class:"ss-dbg-summary"},Ic={key:0,class:"ss-dbg-empty"},Fc=["onClick"],jc=["title"],Bc=["title","onClick","onKeydown"],Nc={key:1,class:"ss-dbg-log-reqid-empty"},Hc={key:3,style:{width:"14px"}},Uc={class:"ss-dbg-log-msg"},Kc=["href"],Vc=["viewBox","innerHTML"],zc={key:0,class:"ss-dbg-log-detail"},qc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),o=z(""),i=z(""),a=z(null),u=Y(()=>{const y=s.data;let g=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];if(g=za(g,l.value),i.value.trim()){const $=i.value.trim().toLowerCase();g=g.filter(x=>{const H=Ne(x);return H&&H.toLowerCase().includes($)})}if(o.value.trim()){const $=o.value.trim().toLowerCase();g=g.filter(x=>jn(x).toLowerCase().includes($))}return g}),p=Y(()=>{const y=s.data,g=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];return`${u.value.length} of ${g.length} entries`});function f(y,g){g&&(a.value=a.value===y?null:y)}function _(y){i.value=y,n("filterByRequestId",y)}return(y,g)=>(c(),d("div",null,[r("div",Pc,[(c(!0),d(L,null,X(S(Va),$=>(c(),d("button",{key:$,type:"button",class:K(["ss-dbg-log-filter",{"ss-dbg-active":l.value===$}]),onClick:x=>l.value=$},m($),11,Lc))),128)),i.value?(c(),d("button",{key:0,type:"button",class:"ss-dbg-log-filter ss-dbg-active",onClick:g[0]||(g[0]=$=>i.value="")}," req: "+m(i.value.slice(0,8))+" x ",1)):ne("",!0),r("span",Oc,m(u.value.length)+" entries",1)]),r("div",Rc,[We(r("input",{"onUpdate:modelValue":g[1]||(g[1]=$=>o.value=$),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[Qe,o.value]]),We(r("input",{"onUpdate:modelValue":g[2]||(g[2]=$=>i.value=$),class:"ss-dbg-search ss-dbg-reqid-input",placeholder:"Filter by request ID...",type:"text"},null,512),[[Qe,i.value]]),r("span",Dc,m(p.value),1)]),u.value.length===0?(c(),d("div",Ic,"No log entries")):(c(!0),d(L,{key:1},X(u.value,($,x)=>(c(),d(L,{key:String($.id||x)},[r("div",{class:K(["ss-dbg-log-entry",{"ss-dbg-log-entry-expandable":!!S(Ye)($)}]),onClick:H=>f(x,!!S(Ye)($))},[r("span",{class:K(["ss-dbg-log-level",S(Io)(S(rs)($))])},m(S(rs)($).toUpperCase()),3),r("span",{class:"ss-dbg-log-time",title:S(yt)($)?S(mt)(S(yt)($)):""},m(S(yt)($)?S(Be)(S(yt)($)):"-"),9,jc),S(Ne)($)?(c(),d("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:S(Ne)($),onClick:Nt(H=>_(S(Ne)($)),["stop"]),onKeydown:Co(Nt(H=>_(S(Ne)($)),["stop"]),["enter"])},m(S(Ne)($).slice(0,8)),41,Bc)):(c(),d("span",Nc,"-")),S(Ye)($)?(c(),d("span",{key:2,class:K(["ss-dbg-log-expand-icon",{"ss-dbg-log-expand-icon-open":a.value===x}])},"▶",2)):(c(),d("span",Hc)),r("span",Uc,m(S(jn)($)),1),e.dashboardPath&&S(Ne)($)?(c(),d("a",{key:4,href:`${e.dashboardPath}#logs?requestId=${S(Ne)($)}`,target:"_blank",class:"ss-dbg-deeplink",onClick:g[3]||(g[3]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:S(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:S(Ce)["open-external"].elements.join("")},null,8,Vc))],8,Kc)):ne("",!0)],10,Fc),a.value===x&&S(Ye)($)?(c(),d("div",zc,[pe(Us,{value:S(Ye)($),"class-prefix":"ss-dbg","default-expanded":""},null,8,["value"])])):ne("",!0)],64))),128))]))}})},Symbol.toStringTag,{value:"Module"}));function Bn(e="",t){let s=null;return function(){return s||(s=new Dn({baseUrl:e,authToken:t})),s}}const Wc={key:0},Jc={class:"ss-related-logs-title"},Gc={class:"ss-related-logs-count"},Qc={style:{overflow:"auto"}},Yc=["onClick"],Xc=["title"],Zc=["title"],ed={key:1,class:"ss-log-reqid-empty"},td={key:3,style:{width:"14px"}},sd={class:"ss-log-msg"},nd={key:0,class:"ss-log-detail"},ld=xe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=z(null);function s(n,l){l&&(t.value=t.value===n?null:n)}return(n,l)=>e.logs.length>0?(c(),d("div",Wc,[r("div",Jc,[l[0]||(l[0]=Z(" Related Logs ",-1)),r("span",Gc,"("+m(e.logs.length)+")",1)]),r("div",Qc,[(c(!0),d(L,null,X(e.logs,(o,i)=>(c(),d(L,{key:o.id||i},[r("div",{class:K(["ss-log-entry",S(Ye)(o)?"ss-log-entry-expandable":""]),onClick:a=>s(i,!!S(Ye)(o))},[r("span",{class:K(["ss-log-level",S(Io)(S(rs)(o),"ss-log-level")])},m(S(rs)(o).toUpperCase()),3),r("span",{class:"ss-log-time",title:S(yt)(o)?S(mt)(S(yt)(o)):""},m(S(yt)(o)?S(Be)(S(yt)(o)):"-"),9,Xc),S(Ne)(o)?(c(),d("span",{key:0,class:"ss-log-reqid",title:S(Ne)(o)},m(S(Ne)(o).slice(0,8)),9,Zc)):(c(),d("span",ed,"--")),S(Ye)(o)?(c(),d("span",{key:2,class:K(["ss-log-expand-icon",t.value===i?"ss-log-expand-icon-open":""])},"▶",2)):(c(),d("span",td)),r("span",sd,m(S(jn)(o)),1)],10,Yc),t.value===i&&S(Ye)(o)?(c(),d("div",nd,[pe(Us,{value:S(Ye)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):ne("",!0)],64))),128))])])):ne("",!0)}}),od={key:0,class:"ss-dbg-empty"},rd={class:"ss-dbg-empty"},id={key:2,class:"ss-dbg-tl-detail-wrapper"},ad={class:"ss-dbg-tl-detail-header"},ud={class:"ss-dbg-tl-detail-url"},cd={class:"ss-dbg-tl-meta"},dd={class:"ss-dbg-tl-legend"},fd={id:"ss-dbg-tl-waterfall"},hd={key:0,class:"ss-dbg-empty"},pd=["title"],gd={class:"ss-dbg-tl-track"},bd=["title"],vd={class:"ss-dbg-tl-dur"},md={key:0,class:"ss-dbg-tl-warnings"},yd={class:"ss-dbg-tl-legend"},_d={id:"ss-dbg-tl-waterfall"},xd={key:0,class:"ss-dbg-empty"},wd=["title"],kd={class:"ss-dbg-tl-track"},$d=["title"],Cd={class:"ss-dbg-tl-dur"},Td={key:0,class:"ss-dbg-tl-warnings"},Sd={key:3,class:"ss-dbg-empty"},Ed={class:"ss-dbg-search-bar"},Ad={class:"ss-dbg-summary"},Md={key:0,class:"ss-dbg-empty"},Pd=["onClick"],Ld={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Od={class:"ss-dbg-c-text"},Rd=["href"],Dd=["viewBox","innerHTML"],Id={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Fd=["title"],jd=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),o=z(!1),i=z(null),a=Bn(t.baseUrl||"",t.authToken),u=Y(()=>{const Q=t.data;if(!Q)return[];const ie=Array.isArray(Q)?Q:Q.traces||[];if(!s.value.trim())return ie;const j=s.value.toLowerCase();return ie.filter(ce=>ce.url.toLowerCase().includes(j)||ce.method.toLowerCase().includes(j)||String(ce.statusCode).includes(j))}),p={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"#525252"},f={request:"Request",middleware:"Middleware",db:"Database",view:"View",mail:"Mail",event:"Event",custom:"Custom"};function _(Q){n.value===Q.id?(n.value=null,l.value=null,i.value=null):(n.value=Q.id,$(Q.id))}function y(){n.value=null,l.value=null,i.value=null}let g=null;async function $(Q){g&&g.abort(),g=new AbortController,o.value=!0,i.value=null,l.value=null;const ie=t.debugEndpoint||"/admin/api/debug";try{const ce=await a().get(`${ie}/traces/${Q}`);l.value=ce}catch(j){if(j instanceof Error&&j.name==="AbortError")return;i.value=j instanceof Error?j.message:"Failed to load trace"}finally{o.value=!1}}const x=Y(()=>l.value?.spans||[]),H=Y(()=>l.value?.warnings||[]);function k(Q,ie){const j=ie||1,ce=j>0?Q.startOffset/j*100:0,ct=j>0?Math.max(Q.duration/j*100,.5):.5;return{left:`${ce}%`,width:`${ct}%`,background:p[Q.category]||p.custom}}const{tableRef:b}=_t(()=>u.value),w=z(null),R=z(null),C=z(null),N=z(null);let B=null;const U=Y(()=>l.value?l.value.logs||[]:[]);rt([n,l],async()=>{B?.(),B=null,l.value&&U.value.length>0&&(await gn(),w.value&&R.value&&C.value&&N.value&&(B=Ua({container:w.value,handle:R.value,topPane:C.value,bottomPane:N.value,storageKey:"ss-dbg-timeline-split"})))}),Es(()=>{g&&g.abort(),B?.()});function te(Q){return Fn(Q,"ss-dbg")}return(Q,ie)=>(c(),d("div",null,[n.value!==null?(c(),d(L,{key:0},[o.value?(c(),d("div",od,"Loading trace detail...")):i.value?(c(),d(L,{key:1},[r("div",{class:"ss-dbg-tl-detail-header"},[r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back")]),r("div",rd,"Error: "+m(i.value),1)],64)):l.value?(c(),d("div",id,[r("div",ad,[r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back"),r("span",{class:K(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),r("span",ud,m(l.value.url),1),r("span",{class:K(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),r("span",cd,m(S(De)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),U.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:w,class:"ss-dbg-split-container"},[r("div",{ref_key:"splitTopRef",ref:C,class:"ss-dbg-split-top"},[r("div",dd,[(c(),d(L,null,X(p,(j,ce)=>r("span",{key:ce,class:"ss-dbg-tl-legend-item"},[r("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:j})},null,4),Z(" "+m(f[ce]||ce),1)])),64))]),r("div",fd,[x.value.length===0?(c(),d("div",hd," No spans captured for this request ")):ne("",!0),(c(!0),d(L,null,X(x.value,j=>(c(),d("div",{key:j.id,class:"ss-dbg-tl-row"},[r("span",{class:"ss-dbg-tl-label",title:j.label},m(j.label),9,pd),r("span",gd,[r("span",{class:K(`ss-dbg-tl-bar ss-dbg-tl-bar-${j.category}`),style:pt(k(j,l.value.totalDuration)),title:`${j.label}: ${S(De)(j.duration)}`},null,14,bd)]),r("span",vd,m(S(De)(j.duration)),1)]))),128))]),H.value.length>0?(c(),d("div",md,[ie[2]||(ie[2]=r("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(H.value,(j,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(j),1))),128))])):ne("",!0)],512),r("div",{ref_key:"splitHandleRef",ref:R,class:"ss-dbg-split-handle"},null,512),r("div",{ref_key:"splitBottomRef",ref:N,class:"ss-dbg-split-bottom"},[pe(ld,{logs:U.value},null,8,["logs"])],512)],512)):(c(),d(L,{key:1},[r("div",yd,[(c(),d(L,null,X(p,(j,ce)=>r("span",{key:ce,class:"ss-dbg-tl-legend-item"},[r("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:j})},null,4),Z(" "+m(f[ce]||ce),1)])),64))]),r("div",_d,[x.value.length===0?(c(),d("div",xd," No spans captured for this request ")):ne("",!0),(c(!0),d(L,null,X(x.value,j=>(c(),d("div",{key:j.id,class:"ss-dbg-tl-row"},[r("span",{class:"ss-dbg-tl-label",title:j.label},m(j.label),9,wd),r("span",kd,[r("span",{class:K(`ss-dbg-tl-bar ss-dbg-tl-bar-${j.category}`),style:pt(k(j,l.value.totalDuration)),title:`${j.label}: ${S(De)(j.duration)}`},null,14,$d)]),r("span",Cd,m(S(De)(j.duration)),1)]))),128))]),H.value.length>0?(c(),d("div",Td,[ie[3]||(ie[3]=r("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(H.value,(j,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(j),1))),128))])):ne("",!0)],64))])):(c(),d("div",Sd,"Loading trace detail..."))],64)):(c(),d(L,{key:1},[r("div",Ed,[We(r("input",{"onUpdate:modelValue":ie[0]||(ie[0]=j=>s.value=j),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[Qe,s.value]]),r("span",Ad,m(u.value.length)+" traces",1)]),u.value.length===0?(c(),d("div",Md,"No traces captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[ie[4]||(ie[4]=r("thead",null,[r("tr",null,[r("th",null,"#"),r("th",null,"Method"),r("th",null,"URL"),r("th",null,"Status"),r("th",null,"Duration"),r("th",null,"Spans"),r("th",null,"Time")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(u.value,j=>(c(),d("tr",{key:j.id,class:"ss-dbg-email-row",onClick:ce=>_(j)},[r("td",Ld,m(j.id),1),r("td",null,[r("span",{class:K(`ss-dbg-method ss-dbg-method-${j.method.toLowerCase()}`)},m(j.method),3)]),r("td",Od,[Z(m(j.url)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#requests?id=${j.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:ie[1]||(ie[1]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:S(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:S(Ce)["open-external"].elements.join("")},null,8,Dd))],8,Rd)):ne("",!0)]),r("td",null,[r("span",{class:K(`ss-dbg-status ss-dbg-status-${Math.floor(j.statusCode/100)}xx`)},m(j.statusCode),3)]),r("td",{class:K(["ss-dbg-duration",te(j.totalDuration)])},m(S(De)(j.totalDuration)),3),r("td",Id,m(j.spanCount),1),r("td",{class:"ss-dbg-event-time",title:S(mt)(j.timestamp)},m(S(Be)(j.timestamp)),9,Fd)],8,Pd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Bd={class:"ss-dbg-cache-stats"},Nd={class:"ss-dbg-cache-stat"},Hd={class:"ss-dbg-cache-stat-value"},Ud={class:"ss-dbg-cache-stat"},Kd={class:"ss-dbg-cache-stat-value"},Vd={class:"ss-dbg-cache-stat"},zd={class:"ss-dbg-cache-stat-value"},qd={class:"ss-dbg-cache-stat"},Wd={class:"ss-dbg-cache-stat-value"},Jd={class:"ss-dbg-cache-stat"},Gd={class:"ss-dbg-cache-stat-value"},Qd={class:"ss-dbg-search-bar"},Yd={class:"ss-dbg-summary"},Xd={key:0,class:"ss-dbg-cache-detail"},Zd={style:{"margin-top":"8px"}},ef={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},tf={key:0},sf={key:0,class:"ss-dbg-empty"},nf=["onClick"],lf={class:"ss-dbg-c-sql"},of={class:"ss-dbg-c-muted"},rf={class:"ss-dbg-c-dim"},af={class:"ss-dbg-c-dim"},uf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=z(""),n=z(null),l=Y(()=>t.data||{}),o=Y(()=>l.value.stats||{}),i=Y(()=>{const u=l.value.keys||[];if(!s.value.trim())return u;const p=s.value.toLowerCase();return u.filter(f=>f.key.toLowerCase().includes(p))}),{tableRef:a}=_t(()=>i.value);return(u,p)=>(c(),d("div",null,[r("div",Bd,[r("span",Nd,[p[2]||(p[2]=r("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),r("span",Hd,m((o.value.hitRate||0).toFixed(0))+"%",1)]),r("span",Ud,[p[3]||(p[3]=r("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),r("span",Kd,m(o.value.totalHits||0),1)]),r("span",Vd,[p[4]||(p[4]=r("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),r("span",zd,m(o.value.totalMisses||0),1)]),r("span",qd,[p[5]||(p[5]=r("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),r("span",Wd,m(o.value.keyCount||0),1)]),r("span",Jd,[p[6]||(p[6]=r("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),r("span",Gd,m((o.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),r("div",Qd,[We(r("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>s.value=f),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[Qe,s.value]]),r("span",Yd,m(i.value.length)+" keys",1)]),n.value?(c(),d("div",Xd,[r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:p[1]||(p[1]=f=>n.value=null)}," ← Back "),r("div",Zd,[r("strong",null,m(n.value.key),1),r("span",ef,m(n.value.type)+" · TTL: "+m(S(Po)(n.value.ttl)),1)]),n.value.value!==void 0?(c(),d("pre",tf,m(JSON.stringify(n.value.value,null,2)),1)):ne("",!0)])):(c(),d(L,{key:1},[i.value.length===0?(c(),d("div",sf,"No cache keys found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[p[7]||(p[7]=r("thead",null,[r("tr",null,[r("th",null,"Key"),r("th",null,"Type"),r("th",null,"TTL"),r("th",null,"Size")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(i.value,f=>(c(),d("tr",{key:f.key,class:"ss-dbg-email-row",onClick:_=>n.value=f},[r("td",lf,m(f.key),1),r("td",of,m(f.type),1),r("td",rf,m(S(Po)(f.ttl)),1),r("td",af,m(S(Da)(f.size)),1)],8,nf))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),cf={class:"ss-dbg-job-stats-area"},df={class:"ss-dbg-job-stats"},ff={class:"ss-dbg-job-stat"},hf={class:"ss-dbg-job-stat-value"},pf={class:"ss-dbg-job-stat"},gf={class:"ss-dbg-job-stat-value"},bf={class:"ss-dbg-job-stat"},vf={class:"ss-dbg-job-stat-value"},mf={class:"ss-dbg-job-stat"},yf={class:"ss-dbg-job-stat-value"},_f={class:"ss-dbg-job-stat"},xf={class:"ss-dbg-job-stat-value ss-dbg-c-red"},wf={class:"ss-dbg-log-filters"},kf=["onClick"],$f={key:0,class:"ss-dbg-empty"},Cf={class:"ss-dbg-c-dim"},Tf={class:"ss-dbg-c-sql"},Sf={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Ef={class:"ss-dbg-duration"},Af=["title"],Mf=["onClick"],Pf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),o=Y(()=>s.data||{}),i=Y(()=>o.value.stats||o.value.overview||{}),a=Y(()=>{const f=o.value.jobs||[];return l.value==="all"?f:f.filter(_=>_.status===l.value)});function u(f){n("retryJob",f)}const{tableRef:p}=_t(()=>a.value);return(f,_)=>(c(),d("div",null,[r("div",cf,[r("div",df,[r("span",ff,[_[0]||(_[0]=r("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),r("span",hf,m(i.value.active??0),1)]),r("span",pf,[_[1]||(_[1]=r("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),r("span",gf,m(i.value.waiting??0),1)]),r("span",bf,[_[2]||(_[2]=r("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),r("span",vf,m(i.value.delayed??0),1)]),r("span",mf,[_[3]||(_[3]=r("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),r("span",yf,m(i.value.completed??0),1)]),r("span",_f,[_[4]||(_[4]=r("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),r("span",xf,m(i.value.failed??0),1)])]),r("div",wf,[(c(!0),d(L,null,X(S(Xa),y=>(c(),d("button",{key:y,class:K(["ss-dbg-job-filter",{"ss-dbg-active":l.value===y}]),onClick:g=>l.value=y},m(y),11,kf))),128))])]),a.value.length===0?(c(),d("div",$f,"No jobs found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:p,class:"ss-dbg-table"},[_[5]||(_[5]=r("thead",null,[r("tr",null,[r("th",null,"ID"),r("th",null,"Name"),r("th",null,"Status"),r("th",null,"Payload"),r("th",null,"Tries"),r("th",null,"Duration"),r("th",null,"Time"),r("th")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(a.value,y=>(c(),d("tr",{key:y.id},[r("td",Cf,m(y.id),1),r("td",Tf,m(y.name),1),r("td",null,[r("span",{class:K(`ss-dbg-badge ${S(Za)(y.status)}`)},m(y.status),3)]),r("td",null,[pe(Us,{value:y.payload||y.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),r("td",Sf,m(y.attempts),1),r("td",Ef,m(y.duration!==null?S(De)(y.duration):"-"),1),r("td",{class:"ss-dbg-event-time",title:S(mt)(y.timestamp||y.createdAt)},m(S(Be)(y.timestamp||y.createdAt)),9,Af),r("td",null,[y.status==="failed"?(c(),d("button",{key:0,class:"ss-dbg-retry-btn",onClick:g=>u(y.id)}," Retry ",8,Mf)):ne("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Lf={key:0,class:"ss-dbg-empty"},Of={class:"ss-dbg-search-bar"},Rf={class:"ss-dbg-config-search-wrap"},Df=["title"],If={class:"ss-dbg-summary"},Ff={key:0,class:"ss-dbg-empty"},jf={key:1,class:"ss-dbg-config-sections"},Bf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},Nf={class:"ss-dbg-config-key"},Hf={key:0,class:"ss-dbg-config-match"},Uf={key:0,class:"ss-dbg-config-redacted"},Kf={key:0,class:"ss-dbg-config-match"},Vf=["onClick"],zf=["onClick"],qf={class:"ss-dbg-config-toggle"},Wf={class:"ss-dbg-config-key"},Jf={key:0,class:"ss-dbg-config-match"},Gf={class:"ss-dbg-config-count"},Qf={key:0,class:"ss-dbg-config-table-wrap"},Yf={class:"ss-dbg-table"},Xf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Zf={key:0,class:"ss-dbg-config-match"},eh={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},th={key:0,class:"ss-dbg-redacted-wrap"},sh={key:0,class:"ss-dbg-config-match"},nh=["onClick"],lh={key:0,class:"ss-dbg-empty"},oh={key:1,class:"ss-dbg-config-table-wrap"},rh={class:"ss-dbg-table"},ih={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},ah={key:0,class:"ss-dbg-config-match"},uh={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},ch={key:0,class:"ss-dbg-redacted-wrap"},dh={key:0,class:"ss-dbg-config-match"},fh=["onClick"],hh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=z("app"),n=z(""),l=z(""),o=z(!1),i=z(new Set),a=z(null);let u=null;rt(n,C=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=C.trim().toLowerCase()},200)});function p(C){return mu(C)}function f(C){if(C==null)return"null";if(typeof C=="boolean"||typeof C=="number")return String(C);if(typeof C=="string")return C;if(Array.isArray(C))return JSON.stringify(C);try{return JSON.stringify(C)}catch{return String(C)}}function _(C){return C==null?"ss-dbg-config-val-null":typeof C=="boolean"?C?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof C=="number"?"ss-dbg-config-val-number":Array.isArray(C)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function y(C,N){navigator.clipboard.writeText(C).then(()=>{a.value=N,setTimeout(()=>{a.value===N&&(a.value=null)},1500)})}function g(){const C=s.value==="app"?t.data?.app:t.data?.env;C&&y(JSON.stringify(C,null,2),"__all_json__")}function $(C,N){return gu(C,N,l.value)}function x(C){if(!l.value)return[{text:C,match:!1}];const N=l.value,B=C.toLowerCase(),U=[];let te=0,Q=B.indexOf(N);for(;Q!==-1;)Q>te&&U.push({text:C.slice(te,Q),match:!1}),U.push({text:C.slice(Q,Q+N.length),match:!0}),te=Q+N.length,Q=B.indexOf(N,te);return te<C.length&&U.push({text:C.slice(te),match:!1}),U.length?U:[{text:C,match:!1}]}const H=Y(()=>{const C=t.data?.app;if(!C)return[];const N=[];for(const[B,U]of Object.entries(C))if(U!==null&&typeof U=="object"&&!Array.isArray(U)){const Q=Object.entries(U).filter(([ie,j])=>$(ie,j)).map(([ie,j])=>({key:ie,value:j,fullKey:`${B}.${ie}`}));(Q.length>0||!l.value)&&N.push({key:B,entries:Q,isFlat:!1})}else $(B,U)&&N.push({key:B,entries:[{key:B,value:U,fullKey:B}],isFlat:!0});return N}),k=Y(()=>{const C=t.data?.env;return C?Object.entries(C).filter(([N,B])=>$(N,B)).map(([N,B])=>({key:N,value:B})):[]});function b(C){i.value.has(C)?i.value.delete(C):i.value.add(C)}function w(){for(const C of H.value)C.isFlat||i.value.add(C.key)}function R(){i.value.clear()}return rt(l,C=>{if(C)for(const N of H.value)!N.isFlat&&N.entries.length>0&&i.value.add(N.key)}),(C,N)=>(c(),d("div",null,[e.data?(c(),d(L,{key:1},[r("div",Of,[r("button",{class:K(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:N[0]||(N[0]=B=>s.value="app")}," App Config ",2),r("button",{class:K(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:N[1]||(N[1]=B=>s.value="env")}," Environment ",2),r("div",Rf,[We(r("input",{"onUpdate:modelValue":N[2]||(N[2]=B=>n.value=B),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[Qe,n.value]])]),s.value==="app"&&!l.value?(c(),d(L,{key:0},[r("button",{class:"ss-dbg-btn-clear",onClick:w},"Expand All"),r("button",{class:"ss-dbg-btn-clear",onClick:R},"Collapse All")],64)):ne("",!0),r("button",{class:K(["ss-dbg-btn-clear",{"ss-dbg-active":o.value}]),onClick:N[3]||(N[3]=B=>o.value=!o.value),title:o.value?"Hide redacted values":"Show redacted values"},m(o.value?"Hide Secrets":"Show Secrets"),11,Df),r("button",{class:"ss-dbg-btn-clear",onClick:g,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),r("span",If,[s.value==="app"?(c(),d(L,{key:0},[Z(m(H.value.length)+" sections ",1)],64)):(c(),d(L,{key:1},[Z(m(k.value.length)+" variables ",1)],64))])]),s.value==="app"?(c(),d(L,{key:0},[H.value.length===0?(c(),d("div",Ff,m(l.value?"No matching config entries":"No app config data"),1)):(c(),d("div",jf,[(c(!0),d(L,null,X(H.value,B=>(c(),d("div",{key:B.key,class:"ss-dbg-config-section"},[B.isFlat?(c(),d("div",Bf,[r("span",Nf,[(c(!0),d(L,null,X(x(B.key),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",Hf,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))]),N[7]||(N[7]=r("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),p(B.key)&&!o.value?(c(),d("span",Uf,[...N[6]||(N[6]=[r("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(c(),d("span",{key:1,class:K(_(B.entries[0].value))},[(c(!0),d(L,null,X(x(f(B.entries[0].value)),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",Kf,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))],2)),r("button",{class:K(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===B.key}]),onClick:Nt(U=>y(f(B.entries[0].value),B.key),["stop"]),title:"Copy value"},m(a.value===B.key?"✓":"⎘"),11,Vf)])):(c(),d(L,{key:1},[r("div",{class:"ss-dbg-config-section-header",onClick:U=>b(B.key)},[r("span",qf,m(i.value.has(B.key)?"▼":"▶"),1),r("span",Wf,[(c(!0),d(L,null,X(x(B.key),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",Jf,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))]),r("span",Gf,m(B.entries.length)+" keys",1)],8,zf),i.value.has(B.key)?(c(),d("div",Qf,[r("table",Yf,[N[9]||(N[9]=r("thead",null,[r("tr",null,[r("th",null,"Key"),r("th",null,"Value"),r("th",{style:{width:"40px"}})])],-1)),r("tbody",null,[(c(!0),d(L,null,X(B.entries,U=>(c(),d("tr",{key:U.fullKey},[r("td",Xf,[(c(!0),d(L,null,X(x(U.key),(te,Q)=>(c(),d(L,{key:Q},[te.match?(c(),d("span",Zf,m(te.text),1)):(c(),d(L,{key:1},[Z(m(te.text),1)],64))],64))),128))]),r("td",eh,[p(U.key)&&!o.value?(c(),d("span",th,[N[8]||(N[8]=Z(" •••••••• ",-1)),r("button",{class:"ss-dbg-redacted-reveal",onClick:N[4]||(N[4]=te=>o.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:K(_(U.value))},[(c(!0),d(L,null,X(x(f(U.value)),(te,Q)=>(c(),d(L,{key:Q},[te.match?(c(),d("span",sh,m(te.text),1)):(c(),d(L,{key:1},[Z(m(te.text),1)],64))],64))),128))],2))]),r("td",null,[r("button",{class:K(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===U.fullKey}]),onClick:te=>y(f(U.value),U.fullKey),title:"Copy value"},m(a.value===U.fullKey?"✓":"⎘"),11,nh)])]))),128))])])])):ne("",!0)],64))]))),128))]))],64)):(c(),d(L,{key:1},[k.value.length===0?(c(),d("div",lh,m(l.value?"No matching environment variables":"No environment data"),1)):(c(),d("div",oh,[r("table",rh,[N[11]||(N[11]=r("thead",null,[r("tr",null,[r("th",null,"Variable"),r("th",null,"Value"),r("th",{style:{width:"40px"}})])],-1)),r("tbody",null,[(c(!0),d(L,null,X(k.value,B=>(c(),d("tr",{key:B.key},[r("td",ih,[(c(!0),d(L,null,X(x(B.key),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",ah,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))]),r("td",uh,[p(B.key)&&!o.value?(c(),d("span",ch,[N[10]||(N[10]=Z(" •••••••• ",-1)),r("button",{class:"ss-dbg-redacted-reveal",onClick:N[5]||(N[5]=U=>o.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:K(_(B.value))},[(c(!0),d(L,null,X(x(f(B.value)),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",dh,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))],2))]),r("td",null,[r("button",{class:K(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${B.key}`}]),onClick:U=>y(f(B.value),`env-${B.key}`),title:"Copy value"},m(a.value===`env-${B.key}`?"✓":"⎘"),11,fh)])]))),128))])])]))],64))],64)):(c(),d("div",Lf,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),ph={key:0,class:"ss-dbg-empty"},gh={key:1,class:"ss-dbg-empty"},bh={key:2,class:"ss-dbg-empty"},vh={key:0,style:{background:"var(--ss-amber-bg)",color:"var(--ss-amber-fg)",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",marginBottom:"12px",lineHeight:"1.5"}},mh={class:"ss-dbg-info-cards"},yh={class:"ss-dbg-info-card-label"},_h={class:"ss-dbg-info-card-value"},xh={key:1,class:"ss-dbg-empty"},wh={key:2,class:"ss-dbg-table"},kh={style:{"font-family":"monospace","font-size":"11px"}},$h={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},Ch={class:"ss-dbg-c-red"},Th={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},Sh={style:{"font-size":"11px"}},Eh=["onClick"],Ah=["onClick"],Mh={key:3,class:"ss-dbg-empty"},Ph={key:4,class:"ss-dbg-table"},Lh={class:"ss-dbg-bar"},Oh={class:"ss-dbg-bar-track"},Rh={key:5,class:"ss-dbg-empty"},Dh={key:6,class:"ss-dbg-table"},Ih={class:"ss-dbg-c-dim"},Fh={key:7,class:"ss-dbg-empty"},jh={key:8,class:"ss-dbg-table"},Bh={class:"ss-dbg-c-dim"},Nh={class:"ss-dbg-table"},Hh={style:{"font-family":"monospace","font-size":"11px"}},Uh={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},Kh={style:{"font-family":"monospace","font-size":"11px"}},Vh={class:"ss-dbg-table"},zh={class:"ss-dbg-table"},qh={style:{"font-family":"monospace","font-size":"11px"}},Wh={style:{"font-family":"monospace","font-size":"11px"}},Jh={style:{"font-family":"monospace","font-size":"11px"}},Gh={style:{"font-size":"11px"}},Qh=3e3,Yh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(null),n=z(!0),l=z(null);let o=null;const i=Bn(t.baseUrl||"",t.authToken);async function a(){const k=t.debugEndpoint||"/admin/api/debug";try{const w=await i().get(`${k}/diagnostics`);s.value=w,l.value=null,n.value=!1}catch(b){if(b instanceof Bs){l.value=b,n.value=!1,o&&(clearInterval(o),o=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}Ct(()=>{n.value=!0,l.value=null,a(),o=setInterval(a,Qh)}),Es(()=>{o&&(clearInterval(o),o=null)});const u=z(new Set);function p(k){u.value.has(k)?u.value.delete(k):u.value.add(k)}function f(k){const b=hu(k);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function _(k){return k.debounceMs!==void 0?`${De(k.debounceMs)} (debounce)`:k.intervalMs!==void 0?De(k.intervalMs):"-"}const y=Y(()=>s.value||t.data||null),g=Y(()=>y.value||{}),$=Y(()=>g.value.buffers?Object.entries(g.value.buffers).map(([k,b])=>({name:k.charAt(0).toUpperCase()+k.slice(1),...b,percent:cu(b.current,b.max)})):[]),x=Y(()=>g.value.timers?Object.entries(g.value.timers).map(([k,b])=>({key:k,label:lu(k),...b,interval:_(b)})):[]),H=Y(()=>{if(!g.value)return[];const k=[];if(g.value.transmit&&k.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,w]of Object.entries(g.value.integrations))k.push({key:b,label:ru(b),status:iu(w),details:au(b,w)});return k});return(k,b)=>(c(),d("div",null,[n.value&&!y.value?(c(),d("div",ph,"Loading diagnostics...")):l.value?(c(),d("div",gh,"Error: "+m(l.value.message),1)):y.value?(c(),d(L,{key:3},[g.value.collectors?.some(w=>w.name==="db_pool"||w.name==="app")&&Array.isArray(g.value.lucidDebugConnections)&&g.value.lucidDebugConnections.length===0?(c(),d("div",vh,[...b[4]||(b[4]=[r("strong",null,"Query capture disabled",-1),Z(" — no Lucid connections have ",-1),r("code",{style:{"font-size":"11px"}},"debug: true",-1),Z(". Add it to your database connection in ",-1),r("code",{style:{"font-size":"11px"}},"config/database.ts",-1),Z(" to see queries in the Queries panel. ",-1)])])):ne("",!0),b[42]||(b[42]=r("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),r("div",mh,[(c(!0),d(L,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:S(Oa)(g.value.package?.uptime)},{label:"Renderer",value:g.value.devToolbar?.renderer||"preact"}],w=>(c(),d("div",{key:w.label,class:"ss-dbg-info-card"},[r("span",yh,m(w.label),1),r("span",_h,m(w.value),1)]))),128))]),b[43]||(b[43]=r("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),g.value.collectors?.length?(c(),d("table",wh,[b[5]||(b[5]=r("thead",null,[r("tr",null,[r("th",null,"Collector"),r("th",null,"Status"),r("th",null,"Last Error"),r("th",null,"Config")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(g.value.collectors,w=>(c(),d("tr",{key:w.name},[r("td",null,[r("span",kh,m(w.name),1),w.label&&w.label!==w.name?(c(),d("span",$h,m(w.label),1)):ne("",!0)]),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(w.status)])},null,2),Z(" "+m(w.status),1)]),r("td",Ch,[w.lastError?(c(),d(L,{key:0},[Z(m(w.lastError)+" ",1),r("span",Th,m(S(Be)(w.lastErrorAt??0)),1)],64)):(c(),d(L,{key:1},[Z("-")],64))]),r("td",Sh,[Object.keys(w.config||{}).length?(c(!0),d(L,{key:0},X(S(uu)(w.config),R=>(c(),d("span",{key:R.key,style:{"margin-right":"8px"}},[Z(m(R.key)+"=",1),R.secret&&!u.value.has(`collector-${w.name}-${R.key}`)?(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:C=>p(`collector-${w.name}-${R.key}`)},"••••••••",8,Eh)):(c(),d(L,{key:1},[r("span",null,m(R.value),1),R.secret?(c(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:C=>p(`collector-${w.name}-${R.key}`)}," Hide ",8,Ah)):ne("",!0)],64))]))),128)):(c(),d(L,{key:1},[Z("-")],64))])]))),128))])])):(c(),d("div",xh,"No collectors")),b[44]||(b[44]=r("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),$.value.length?(c(),d("table",Ph,[b[6]||(b[6]=r("thead",null,[r("tr",null,[r("th",null,"Buffer"),r("th",null,"Usage"),r("th",null,"Fill %")])],-1)),r("tbody",null,[(c(!0),d(L,null,X($.value,w=>(c(),d("tr",{key:w.name},[r("td",null,m(w.name),1),r("td",null,m(w.current.toLocaleString())+" / "+m(w.max.toLocaleString()),1),r("td",null,[r("div",Lh,[r("div",Oh,[r("div",{class:K(["ss-dbg-bar-fill",w.percent>=100?"ss-dbg-bar-fill-warn":""]),style:pt({width:w.percent+"%"})},null,6)]),r("span",{class:K(["ss-dbg-bar-pct",w.percent>=100?"ss-dbg-bar-pct-warn":""])},m(w.percent)+"%",3)])])]))),128))])])):(c(),d("div",Mh,"No buffer data")),b[45]||(b[45]=r("div",{class:"ss-dbg-internals-title"},"Timers",-1)),x.value.length?(c(),d("table",Dh,[b[7]||(b[7]=r("thead",null,[r("tr",null,[r("th",null,"Timer"),r("th",null,"Status"),r("th",null,"Interval")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(x.value,w=>(c(),d("tr",{key:w.key},[r("td",null,m(w.label),1),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(w.active?"active":"inactive")])},null,2),Z(" "+m(w.active?"active":"inactive"),1)]),r("td",Ih,m(w.interval),1)]))),128))])])):(c(),d("div",Rh,"No timer data")),b[46]||(b[46]=r("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),H.value.length?(c(),d("table",jh,[b[8]||(b[8]=r("thead",null,[r("tr",null,[r("th",null,"Integration"),r("th",null,"Status"),r("th",null,"Details")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(H.value,w=>(c(),d("tr",{key:w.key},[r("td",null,m(w.label),1),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(w.status)])},null,2),Z(" "+m(w.status),1)]),r("td",Bh,m(w.details),1)]))),128))])])):(c(),d("div",Fh,"No integration data")),g.value.storage?(c(),d(L,{key:9},[b[17]||(b[17]=r("div",{class:"ss-dbg-internals-title"},"Storage",-1)),r("table",Nh,[b[15]||(b[15]=r("thead",null,[r("tr",null,[r("th",null,"Metric"),r("th",null,"Value")])],-1)),r("tbody",null,[r("tr",null,[b[9]||(b[9]=r("td",null,"Status",-1)),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(g.value.storage.ready?"ready":"unavailable")])},null,2),Z(" "+m(g.value.storage.ready?"ready":"not ready"),1)])]),r("tr",null,[b[10]||(b[10]=r("td",null,"DB Path",-1)),r("td",Hh,m(g.value.storage.dbPath),1)]),r("tr",null,[b[11]||(b[11]=r("td",null,"File Size",-1)),r("td",null,m(g.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),r("tr",null,[b[12]||(b[12]=r("td",null,"WAL Size",-1)),r("td",null,m(g.value.storage.walSizeMb.toFixed(1))+" MB",1)]),r("tr",null,[b[13]||(b[13]=r("td",null,"Retention",-1)),r("td",null,m(g.value.storage.retentionDays)+" days",1)]),r("tr",null,[b[14]||(b[14]=r("td",null,"Last Cleanup",-1)),r("td",null,m(S(Be)(g.value.storage.lastCleanupAt??0)),1)])])]),g.value.storage.tables?.length?(c(),d("table",Uh,[b[16]||(b[16]=r("thead",null,[r("tr",null,[r("th",null,"Table"),r("th",null,"Rows")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(g.value.storage.tables,w=>(c(),d("tr",{key:w.name},[r("td",Kh,m(w.name),1),r("td",null,m(w.rowCount.toLocaleString()),1)]))),128))])])):ne("",!0)],64)):ne("",!0),b[47]||(b[47]=r("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),r("table",Vh,[b[25]||(b[25]=r("thead",null,[r("tr",null,[r("th",null,"Setting"),r("th",null,"Value")])],-1)),r("tbody",null,[r("tr",null,[b[18]||(b[18]=r("td",null,"intervalMs",-1)),r("td",null,m(g.value.config?.intervalMs),1)]),r("tr",null,[b[19]||(b[19]=r("td",null,"transport",-1)),r("td",null,m(g.value.config?.transport),1)]),r("tr",null,[b[20]||(b[20]=r("td",null,"channelName",-1)),r("td",null,m(g.value.config?.channelName),1)]),r("tr",null,[b[21]||(b[21]=r("td",null,"endpoint",-1)),r("td",null,m(g.value.config?.endpoint===!1?"false":g.value.config?.endpoint),1)]),r("tr",null,[b[22]||(b[22]=r("td",null,"skipInTest",-1)),r("td",null,m(g.value.config?.skipInTest),1)]),r("tr",null,[b[23]||(b[23]=r("td",null,"onStats callback",-1)),r("td",null,m(g.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),r("tr",null,[b[24]||(b[24]=r("td",null,"shouldShow callback",-1)),r("td",null,m(g.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[48]||(b[48]=r("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),r("table",zh,[b[41]||(b[41]=r("thead",null,[r("tr",null,[r("th",null,"Setting"),r("th",null,"Value")])],-1)),r("tbody",null,[r("tr",null,[b[26]||(b[26]=r("td",null,"enabled",-1)),r("td",null,m(g.value.devToolbar?.enabled),1)]),r("tr",null,[b[27]||(b[27]=r("td",null,"tracing",-1)),r("td",null,m(g.value.devToolbar?.tracing),1)]),r("tr",null,[b[28]||(b[28]=r("td",null,"dashboard",-1)),r("td",null,m(g.value.devToolbar?.dashboard),1)]),r("tr",null,[b[29]||(b[29]=r("td",null,"dashboardPath",-1)),r("td",qh,m(g.value.devToolbar?.dashboardPath),1)]),r("tr",null,[b[30]||(b[30]=r("td",null,"debugEndpoint",-1)),r("td",Wh,[u.value.has("cfg-debugEndpoint")?(c(),d(L,{key:1},[Z(m(g.value.devToolbar?.debugEndpoint)+" ",1),r("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]=w=>p("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=w=>p("cfg-debugEndpoint"))},"••••••••"))])]),r("tr",null,[b[31]||(b[31]=r("td",null,"maxQueries",-1)),r("td",null,m(g.value.devToolbar?.maxQueries),1)]),r("tr",null,[b[32]||(b[32]=r("td",null,"maxEvents",-1)),r("td",null,m(g.value.devToolbar?.maxEvents),1)]),r("tr",null,[b[33]||(b[33]=r("td",null,"maxEmails",-1)),r("td",null,m(g.value.devToolbar?.maxEmails),1)]),r("tr",null,[b[34]||(b[34]=r("td",null,"maxTraces",-1)),r("td",null,m(g.value.devToolbar?.maxTraces),1)]),r("tr",null,[b[35]||(b[35]=r("td",null,"slowQueryThresholdMs",-1)),r("td",null,m(g.value.devToolbar?.slowQueryThresholdMs),1)]),r("tr",null,[b[36]||(b[36]=r("td",null,"retentionDays",-1)),r("td",null,m(g.value.devToolbar?.retentionDays),1)]),r("tr",null,[b[37]||(b[37]=r("td",null,"dbPath",-1)),r("td",Jh,[u.value.has("cfg-dbPath")?(c(),d(L,{key:1},[Z(m(g.value.devToolbar?.dbPath)+" ",1),r("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]=w=>p("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=w=>p("cfg-dbPath"))},"••••••••"))])]),r("tr",null,[b[38]||(b[38]=r("td",null,"persistDebugData",-1)),r("td",null,m(g.value.devToolbar?.persistDebugData),1)]),r("tr",null,[b[39]||(b[39]=r("td",null,"excludeFromTracing",-1)),r("td",Gh,m(g.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),r("tr",null,[b[40]||(b[40]=r("td",null,"customPanes",-1)),r("td",null,m(g.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",bh,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),Xh={key:0,class:"ss-dbg-search-bar"},Zh=["placeholder"],ep={class:"ss-dbg-summary"},tp={key:1,class:"ss-dbg-empty"},sp={key:2,class:"ss-dbg-empty"},np=["onClick"],lp={key:0,class:"ss-dbg-c-dim"},op=["title"],rp=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=z([]),n=z(!1),l=z(""),o=Bn(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const k=await o().fetch(t.pane.endpoint),w=(t.pane.dataKey||t.pane.id).split(".");let R=k;for(const C of w)R=R?.[C];s.value=Array.isArray(R)?R:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=Y(()=>{if(!l.value.trim())return s.value;const k=l.value.toLowerCase(),b=t.pane.columns.filter(w=>w.searchable).map(w=>w.key);return b.length===0?s.value:s.value.filter(w=>b.some(R=>{const C=w[R];return C==null?!1:String(C).toLowerCase().includes(k)}))});function p(k,b){if(k==null)return"-";switch(b.format||"text"){case"time":return typeof k=="number"?Be(k):String(k);case"timeAgo":return Be(k);case"duration":return De(typeof k=="number"?k:parseFloat(String(k)));case"method":return String(k);case"json":{let R=k;if(typeof k=="string")try{R=JSON.parse(k)}catch{}return os(R,80)}case"badge":return String(k);default:return String(k)}}function f(k,b){if(b.format==="time"||b.format==="timeAgo")return mt(k)}function _(k){return k==null}function y(k){const b=typeof k=="number"?k:parseFloat(String(k));if(isNaN(b))return"ss-dbg-duration";const w=Fn(b,"ss-dbg");return w?`ss-dbg-duration ${w}`:"ss-dbg-duration"}function g(k,b){if(b.format==="badge"&&b.badgeColorMap){const w=String(k).toLowerCase();return b.badgeColorMap[w]||"muted"}return""}function $(k){return`ss-dbg-method ss-dbg-method-${String(k).toLowerCase()}`}function x(){s.value=[]}const{tableRef:H}=_t(()=>u.value);return Ct(()=>{a()}),(k,b)=>(c(),d("div",null,[e.pane.search?(c(),d("div",Xh,[We(r("input",{"onUpdate:modelValue":b[0]||(b[0]=w=>l.value=w),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,Zh),[[Qe,l.value]]),r("span",ep,m(u.value.length)+" items",1),e.pane.clearable?(c(),d("button",{key:0,class:"ss-dbg-btn-clear",onClick:x},"Clear")):ne("",!0)])):ne("",!0),n.value?(c(),d("div",tp,"Loading...")):u.value.length===0?(c(),d("div",sp,"No data")):(c(),d("table",{key:3,ref_key:"tableRef",ref:H,class:"ss-dbg-table"},[r("thead",null,[r("tr",null,[(c(!0),d(L,null,X(e.pane.columns,w=>(c(),d("th",{key:w.key},m(w.label),1))),128))])]),r("tbody",null,[(c(!0),d(L,null,X(u.value,(w,R)=>(c(),d("tr",{key:String(w.id??R)},[(c(!0),d(L,null,X(e.pane.columns,C=>(c(),d("td",{key:C.key,class:K({"ss-dbg-filterable":C.filterable}),onClick:N=>C.filterable?l.value=String(w[C.key]):void 0},[_(w[C.key])?(c(),d("span",lp,"-")):C.format==="time"||C.format==="timeAgo"?(c(),d("span",{key:1,class:"ss-dbg-event-time",title:f(w[C.key],C)},m(p(w[C.key],C)),9,op)):C.format==="duration"?(c(),d("span",{key:2,class:K(y(w[C.key]))},m(p(w[C.key],C)),3)):C.format==="method"?(c(),d("span",{key:3,class:K($(w[C.key]))},m(p(w[C.key],C)),3)):C.format==="badge"?(c(),d("span",{key:4,class:K(`ss-dbg-badge ss-dbg-badge-${g(w[C.key],C)}`)},m(p(w[C.key],C)),3)):(c(),d(L,{key:5},[Z(m(p(w[C.key],C)),1)],64))],10,np))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
4
+ `],...Mr(s))}),t}function Mr({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${ao(e.component,e.type,n)}`,o=">"+s;return e.props?[l,...Pr(e.props),o]:[l+o]}function Pr(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...ml(n,e[n]))}),s.length>3&&t.push(" ..."),t}function ml(e,t,s){return ge(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:ve(t)?(t=ml(e,oe(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):J(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=oe(t),s?t:[`${e}=`,t])}function Ot(e,t,s,n){try{return n?e(...n):e()}catch(l){Gt(l,t,s)}}function ze(e,t,s,n){if(J(e)){const l=Ot(e,t,s,n);return l&&Vn(l)&&l.catch(o=>{Gt(o,t,s)}),l}if(W(e)){const l=[];for(let o=0;o<e.length;o++)l.push(ze(e[o],t,s,n));return l}}function Gt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;if(t){let a=t.parent;const u=t.proxy,p=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const f=a.ec;if(f){for(let _=0;_<f.length;_++)if(f[_](e,u,p)===!1)return}a=a.parent}if(o){Ke(),Ot(o,null,10,[e,u,p]),Ve();return}}Lr(e,s,l,n,i)}function Lr(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ke=[];let qe=-1;const Rt=[];let bt=null,Dt=0;const yl=Promise.resolve();let ws=null;function gn(e){const t=ws||yl;return e?t.then(this?e.bind(this):e):t}function Or(e){let t=qe+1,s=ke.length;for(;t<s;){const n=t+s>>>1,l=ke[n],o=Qt(l);o<e||o===e&&l.flags&2?t=n+1:s=n}return t}function bn(e){if(!(e.flags&1)){const t=Qt(e),s=ke[ke.length-1];!s||!(e.flags&2)&&t>=Qt(s)?ke.push(e):ke.splice(Or(t),0,e),e.flags|=1,_l()}}function _l(){ws||(ws=yl.then(kl))}function Rr(e){W(e)?Rt.push(...e):bt&&e.id===-1?bt.splice(Dt+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),_l()}function xl(e,t,s=qe+1){for(;s<ke.length;s++){const n=ke[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ke.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function wl(e){if(Rt.length){const t=[...new Set(Rt)].sort((s,n)=>Qt(s)-Qt(n));if(Rt.length=0,bt){bt.push(...t);return}for(bt=t,Dt=0;Dt<bt.length;Dt++){const s=bt[Dt];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bt=null,Dt=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kl(e){try{for(qe=0;qe<ke.length;qe++){const t=ke[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ot(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<ke.length;qe++){const t=ke[qe];t&&(t.flags&=-2)}qe=-1,ke.length=0,wl(),ws=null,(ke.length||Rt.length)&&kl()}}let Oe=null,$l=null;function ks(e){const t=Oe;return Oe=e,$l=e&&e.type.__scopeId||null,t}function Dr(e,t=Oe,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&Os(-1);const o=ks(t);let i;try{i=e(...l)}finally{ks(o),n._d&&Os(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function We(e,t){if(Oe===null)return e;const s=Fs(Oe),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,i,a,u=de]=t[l];o&&(J(o)&&(o={mounted:o,updated:o}),o.deep&&ot(i),n.push({dir:o,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function $t(e,t,s,n){const l=e.dirs,o=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];o&&(a.oldValue=o[i].value);let u=a.dir[n];u&&(Ke(),ze(u,s,8,[e.el,a,e,t]),Ve())}}function Ir(e,t){if(we){let s=we.provides;const n=we.parent&&we.parent.provides;n===s&&(s=we.provides=Object.create(n)),s[e]=t}}function $s(e,t,s=!1){const n=Ri();if(n||It){let l=It?It._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&&J(t)?t.call(n&&n.proxy):t}}const Fr=Symbol.for("v-scx"),jr=()=>$s(Fr);function rt(e,t,s){return Cl(e,t,s)}function Cl(e,t,s=de){const{immediate:n,deep:l,flush:o,once:i}=s,a=be({},s),u=t&&n||!t&&o!=="post";let p;if(jt){if(o==="sync"){const g=jr();p=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=He,g.resume=He,g.pause=He,g}}const f=we;a.call=(g,$,x)=>ze(g,f,$,x);let _=!1;o==="post"?a.scheduler=g=>{Se(g,f&&f.suspense)}:o!=="sync"&&(_=!0,a.scheduler=(g,$)=>{$?g():bn(g)}),a.augmentJob=g=>{t&&(g.flags|=4),_&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const y=Sr(e,t,a);return jt&&(p?p.push(y):u&&y()),y}function Br(e,t,s){const n=this.proxy,l=ge(e)?e.includes(".")?Tl(n,e):()=>n[e]:e.bind(n,n);let o;J(t)?o=t:(o=t.handler,s=t);const i=ls(this),a=Cl(l,o.bind(n),s);return i(),a}function Tl(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 Nr=Symbol("_vte"),Hr=e=>e.__isTeleport,Ur=Symbol("_leaveCb");function vn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,vn(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 xe(e,t){return J(e)?be({name:e.name},t,{setup:e}):e}function mn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Cs=new WeakMap;function Yt(e,t,s,n,l=!1){if(W(e)){e.forEach((x,H)=>Yt(x,t&&(W(t)?t[H]:t),s,n,l));return}if(Xt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Yt(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Fs(n.component):n.el,i=l?null:o,{i:a,r:u}=e,p=t&&t.r,f=a.refs===de?a.refs={}:a.refs,_=a.setupState,y=oe(_),g=_===de?Hn:x=>Sl(f,x)?!1:re(y,x),$=(x,H)=>!(H&&Sl(f,H));if(p!=null&&p!==u){if(El(t),ge(p))f[p]=null,g(p)&&(_[p]=null);else if(ve(p)){const x=t;$(p,x.k)&&(p.value=null),x.k&&(f[x.k]=null)}}if(J(u))Ot(u,a,12,[i,f]);else{const x=ge(u),H=ve(u);if(x||H){const k=()=>{if(e.f){const b=x?g(u)?_[u]:f[u]:$()||!e.k?u.value:f[e.k];if(l)W(b)&&Ws(b,o);else if(W(b))b.includes(o)||b.push(o);else if(x)f[u]=[o],g(u)&&(_[u]=f[u]);else{const w=[o];$(u,e.k)&&(u.value=w),e.k&&(f[e.k]=w)}}else x?(f[u]=i,g(u)&&(_[u]=i)):H&&($(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const b=()=>{k(),Cs.delete(e)};b.id=-1,Cs.set(e,b),Se(b,s)}else El(e),k()}}}function El(e){const t=Cs.get(e);t&&(t.flags|=8,Cs.delete(e))}const Al=e=>e.nodeType===8;ps().requestIdleCallback,ps().cancelIdleCallback;function Kr(e,t){if(Al(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Al(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Xt=e=>!!e.type.__asyncLoader;function je(e){J(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:o,timeout:i,suspensible:a=!0,onError:u}=e;let p=null,f,_=0;const y=()=>(_++,p=null,g()),g=()=>{let $;return p||($=p=t().catch(x=>{if(x=x instanceof Error?x:new Error(String(x)),u)return new Promise((H,k)=>{u(x,()=>H(y()),()=>k(x),_+1)});throw x}).then(x=>$!==p&&p?p:(x&&(x.__esModule||x[Symbol.toStringTag]==="Module")&&(x=x.default),f=x,x)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate($,x,H){let k=!1;(x.bu||(x.bu=[])).push(()=>k=!0);const b=()=>{k||H()},w=o?()=>{const R=o(b,C=>Kr($,C));R&&(x.bum||(x.bum=[])).push(R)}:b;f?w():g().then(()=>!x.isUnmounted&&w())},get __asyncResolved(){return f},setup(){const $=we;if(mn($),f)return()=>Ts(f,$);const x=w=>{p=null,Gt(w,$,13,!n)};if(a&&$.suspense||jt)return g().then(w=>()=>Ts(w,$)).catch(w=>(x(w),()=>n?pe(n,{error:w}):null));const H=z(!1),k=z(),b=z(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!H.value&&!k.value){const w=new Error(`Async component timed out after ${i}ms.`);x(w),k.value=w}},i),g().then(()=>{H.value=!0,$.parent&&yn($.parent.vnode)&&$.parent.update()}).catch(w=>{x(w),k.value=w}),()=>{if(H.value&&f)return Ts(f,$);if(k.value&&n)return pe(n,{error:k.value});if(s&&!b.value)return Ts(s,$)}}})}function Ts(e,t){const{ref:s,props:n,children:l,ce:o}=t.vnode,i=pe(e,n,l);return i.ref=s,i.ce=o,delete t.vnode.ce,i}const yn=e=>e.type.__isKeepAlive;function Vr(e,t){Ml(e,"a",t)}function zr(e,t){Ml(e,"da",t)}function Ml(e,t,s=we){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Ss(t,n,s),s){let l=s.parent;for(;l&&l.parent;)yn(l.parent.vnode)&&qr(n,t,s,l),l=l.parent}}function qr(e,t,s,n){const l=Ss(t,e,n,!0);As(()=>{Ws(n[t],l)},s)}function Ss(e,t,s=we,n=!1){if(s){const l=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ke();const a=ls(s),u=ze(t,s,e,i);return a(),Ve(),u});return n?l.unshift(o):l.push(o),o}}const it=e=>(t,s=we)=>{(!jt||e==="sp")&&Ss(e,(...n)=>t(...n),s)},Wr=it("bm"),Ct=it("m"),Jr=it("bu"),Gr=it("u"),Es=it("bum"),As=it("um"),Qr=it("sp"),Yr=it("rtg"),Xr=it("rtc");function Zr(e,t=we){Ss("ec",e,t)}const ei=Symbol.for("v-ndc");function X(e,t,s,n){let l;const o=s,i=W(e);if(i||ge(e)){const a=i&&wt(e);let u=!1,p=!1;a&&(u=!Le(e),p=lt(e),e=gs(e)),l=new Array(e.length);for(let f=0,_=e.length;f<_;f++)l[f]=t(u?p?Lt(Fe(e[f])):Fe(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,o)}else if(ae(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,o));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,p=a.length;u<p;u++){const f=a[u];l[u]=t(e[f],f,u,o)}}else l=[];return l}const _n=e=>e?oo(e)?Fs(e):_n(e.parent):null,Zt=be(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=>_n(e.parent),$root:e=>_n(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rl(e),$forceUpdate:e=>e.f||(e.f=()=>{bn(e.update)}),$nextTick:e=>e.n||(e.n=gn.bind(e.proxy)),$watch:e=>Br.bind(e)}),xn=(e,t)=>e!==de&&!e.__isScriptSetup&&re(e,t),ti={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:o,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return o[t]}else{if(xn(n,t))return i[t]=1,n[t];if(l!==de&&re(l,t))return i[t]=2,l[t];if(re(o,t))return i[t]=3,o[t];if(s!==de&&re(s,t))return i[t]=4,s[t];wn&&(i[t]=0)}}const p=Zt[t];let f,_;if(p)return t==="$attrs"&&_e(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==de&&re(s,t))return i[t]=4,s[t];if(_=u.config.globalProperties,re(_,t))return _[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:o}=e;return xn(l,t)?(l[t]=s,!0):n!==de&&re(n,t)?(n[t]=s,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:o,type:i}},a){let u;return!!(s[a]||e!==de&&a[0]!=="$"&&re(e,a)||xn(t,a)||re(o,a)||re(n,a)||re(Zt,a)||re(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:re(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Pl(e){return W(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let wn=!0;function si(e){const t=Rl(e),s=e.proxy,n=e.ctx;wn=!1,t.beforeCreate&&Ll(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:_,mounted:y,beforeUpdate:g,updated:$,activated:x,deactivated:H,beforeDestroy:k,beforeUnmount:b,destroyed:w,unmounted:R,render:C,renderTracked:N,renderTriggered:B,errorCaptured:U,serverPrefetch:te,expose:Q,inheritAttrs:ie,components:j,directives:ce,filters:ct}=t;if(p&&ni(p,n,null),i)for(const ee in i){const le=i[ee];J(le)&&(n[ee]=le.bind(s))}if(l){const ee=l.call(s,s);ae(ee)&&(e.data=dn(ee))}if(wn=!0,o)for(const ee in o){const le=o[ee],ye=J(le)?le.bind(s,s):J(le.get)?le.get.bind(s,s):He,is=!J(le)&&J(le.set)?le.set.bind(s):He,Et=Y({get:ye,set:is});Object.defineProperty(n,ee,{enumerable:!0,configurable:!0,get:()=>Et.value,set:Xe=>Et.value=Xe})}if(a)for(const ee in a)Ol(a[ee],n,s,ee);if(u){const ee=J(u)?u.call(s):u;Reflect.ownKeys(ee).forEach(le=>{Ir(le,ee[le])})}f&&Ll(f,e,"c");function me(ee,le){W(le)?le.forEach(ye=>ee(ye.bind(s))):le&&ee(le.bind(s))}if(me(Wr,_),me(Ct,y),me(Jr,g),me(Gr,$),me(Vr,x),me(zr,H),me(Zr,U),me(Xr,N),me(Yr,B),me(Es,b),me(As,R),me(Qr,te),W(Q))if(Q.length){const ee=e.exposed||(e.exposed={});Q.forEach(le=>{Object.defineProperty(ee,le,{get:()=>s[le],set:ye=>s[le]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===He&&(e.render=C),ie!=null&&(e.inheritAttrs=ie),j&&(e.components=j),ce&&(e.directives=ce),te&&mn(e)}function ni(e,t,s=He){W(e)&&(e=kn(e));for(const n in e){const l=e[n];let o;ae(l)?"default"in l?o=$s(l.from||n,l.default,!0):o=$s(l.from||n):o=$s(l),ve(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function Ll(e,t,s){ze(W(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ol(e,t,s,n){let l=n.includes(".")?Tl(s,n):()=>s[n];if(ge(e)){const o=t[e];J(o)&&rt(l,o)}else if(J(e))rt(l,e.bind(s));else if(ae(e))if(W(e))e.forEach(o=>Ol(o,t,s,n));else{const o=J(e.handler)?e.handler.bind(s):t[e.handler];J(o)&&rt(l,o,e)}}function Rl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(p=>Ms(u,p,i,!0)),Ms(u,t,i)),ae(t)&&o.set(t,u),u}function Ms(e,t,s,n=!1){const{mixins:l,extends:o}=t;o&&Ms(e,o,s,!0),l&&l.forEach(i=>Ms(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=li[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const li={data:Dl,props:Il,emits:Il,methods:es,computed:es,beforeCreate:$e,created:$e,beforeMount:$e,mounted:$e,beforeUpdate:$e,updated:$e,beforeDestroy:$e,beforeUnmount:$e,destroyed:$e,unmounted:$e,activated:$e,deactivated:$e,errorCaptured:$e,serverPrefetch:$e,components:es,directives:es,watch:ri,provide:Dl,inject:oi};function Dl(e,t){return t?e?function(){return be(J(e)?e.call(this,this):e,J(t)?t.call(this,this):t)}:t:e}function oi(e,t){return es(kn(e),kn(t))}function kn(e){if(W(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function $e(e,t){return e?[...new Set([].concat(e,t))]:t}function es(e,t){return e?be(Object.create(null),e,t):t}function Il(e,t){return e?W(e)&&W(t)?[...new Set([...e,...t])]:be(Object.create(null),Pl(e),Pl(t??{})):t}function ri(e,t){if(!e)return t;if(!t)return e;const s=be(Object.create(null),e);for(const n in t)s[n]=$e(e[n],t[n]);return s}function Fl(){return{app:null,config:{isNativeTag:Hn,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 ii=0;function ai(e,t){return function(n,l=null){J(n)||(n=be({},n)),l!=null&&!ae(l)&&(l=null);const o=Fl(),i=new WeakSet,a=[];let u=!1;const p=o.app={_uid:ii++,_component:n,_props:l,_container:null,_context:o,_instance:null,version:Vi,get config(){return o.config},set config(f){},use(f,..._){return i.has(f)||(f&&J(f.install)?(i.add(f),f.install(p,..._)):J(f)&&(i.add(f),f(p,..._))),p},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),p},component(f,_){return _?(o.components[f]=_,p):o.components[f]},directive(f,_){return _?(o.directives[f]=_,p):o.directives[f]},mount(f,_,y){if(!u){const g=p._ceVNode||pe(n,l);return g.appContext=o,y===!0?y="svg":y===!1&&(y=void 0),e(g,f,y),u=!0,p._container=f,f.__vue_app__=p,Fs(g.component)}},onUnmount(f){a.push(f)},unmount(){u&&(ze(a,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,_){return o.provides[f]=_,p},runWithContext(f){const _=It;It=p;try{return f()}finally{It=_}}};return p}}let It=null;const ui=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dt(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function ci(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||de;let l=s;const o=t.startsWith("update:"),i=o&&ui(n,t.slice(7));i&&(i.trim&&(l=s.map(f=>ge(f)?f.trim():f)),i.number&&(l=s.map(Qs)));let a,u=n[a=Gs(t)]||n[a=Gs(dt(t))];!u&&o&&(u=n[a=Gs(ft(t))]),u&&ze(u,e,6,l);const p=n[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ze(p,e,6,l)}}const di=new WeakMap;function jl(e,t,s=!1){const n=s?di:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const o=e.emits;let i={},a=!1;if(!J(e)){const u=p=>{const f=jl(p,t,!0);f&&(a=!0,be(i,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(ae(e)&&n.set(e,null),null):(W(o)?o.forEach(u=>i[u]=null):be(i,o),ae(e)&&n.set(e,i),i)}function Ps(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,ft(t))||re(e,t))}function fp(){}function Bl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[o],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:_,data:y,setupState:g,ctx:$,inheritAttrs:x}=e,H=ks(e);let k,b;try{if(s.shapeFlag&4){const R=l||n,C=R;k=Je(p.call(C,R,f,_,g,y,$)),b=a}else{const R=t;k=Je(R.length>1?R(_,{attrs:a,slots:i,emit:u}):R(_,null)),b=t.props?a:fi(a)}}catch(R){ts.length=0,Gt(R,e,1),k=pe(vt)}let w=k;if(b&&x!==!1){const R=Object.keys(b),{shapeFlag:C}=w;R.length&&C&7&&(o&&R.some(qs)&&(b=hi(b,o)),w=Ft(w,b,!1,!0))}return s.dirs&&(w=Ft(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(s.dirs):s.dirs),s.transition&&vn(w,s.transition),k=w,ks(H),k}const fi=e=>{let t;for(const s in e)(s==="class"||s==="style"||ds(s))&&((t||(t={}))[s]=e[s]);return t},hi=(e,t)=>{const s={};for(const n in e)(!qs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function pi(e,t,s){const{props:n,children:l,component:o}=e,{props:i,children:a,patchFlag:u}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Nl(n,i,p):!!i;if(u&8){const f=t.dynamicProps;for(let _=0;_<f.length;_++){const y=f[_];if(Hl(i,n,y)&&!Ps(p,y))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Nl(n,i,p):!0:!!i;return!1}function Nl(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 o=n[l];if(Hl(t,e,o)&&!Ps(s,o))return!0}return!1}function Hl(e,t,s){const n=e[s],l=t[s];return s==="style"&&ae(n)&&ae(l)?!Ys(n,l):n!==l}function gi({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 Ul={},Kl=()=>Object.create(Ul),Vl=e=>Object.getPrototypeOf(e)===Ul;function bi(e,t,s,n=!1){const l={},o=Kl();e.propsDefaults=Object.create(null),zl(e,t,l,o);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:yr(l):e.type.props?e.props=l:e.props=o,e.attrs=o}function vi(e,t,s,n){const{props:l,attrs:o,vnode:{patchFlag:i}}=e,a=oe(l),[u]=e.propsOptions;let p=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let _=0;_<f.length;_++){let y=f[_];if(Ps(e.emitsOptions,y))continue;const g=t[y];if(u)if(re(o,y))g!==o[y]&&(o[y]=g,p=!0);else{const $=dt(y);l[$]=$n(u,a,$,g,e,!1)}else g!==o[y]&&(o[y]=g,p=!0)}}}else{zl(e,t,l,o)&&(p=!0);let f;for(const _ in a)(!t||!re(t,_)&&((f=ft(_))===_||!re(t,f)))&&(u?s&&(s[_]!==void 0||s[f]!==void 0)&&(l[_]=$n(u,a,_,void 0,e,!0)):delete l[_]);if(o!==a)for(const _ in o)(!t||!re(t,_))&&(delete o[_],p=!0)}p&&st(e.attrs,"set","")}function zl(e,t,s,n){const[l,o]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Ut(u))continue;const p=t[u];let f;l&&re(l,f=dt(u))?!o||!o.includes(f)?s[f]=p:(a||(a={}))[f]=p:Ps(e.emitsOptions,u)||(!(u in n)||p!==n[u])&&(n[u]=p,i=!0)}if(o){const u=oe(s),p=a||de;for(let f=0;f<o.length;f++){const _=o[f];s[_]=$n(l,u,_,p[_],e,!re(p,_))}}return i}function $n(e,t,s,n,l,o){const i=e[s];if(i!=null){const a=re(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&J(u)){const{propsDefaults:p}=l;if(s in p)n=p[s];else{const f=ls(l);n=p[s]=u.call(null,t),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(o&&!a?n=!1:i[1]&&(n===""||n===ft(s))&&(n=!0))}return n}const mi=new WeakMap;function ql(e,t,s=!1){const n=s?mi:t.propsCache,l=n.get(e);if(l)return l;const o=e.props,i={},a=[];let u=!1;if(!J(e)){const f=_=>{u=!0;const[y,g]=ql(_,t,!0);be(i,y),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!u)return ae(e)&&n.set(e,At),At;if(W(o))for(let f=0;f<o.length;f++){const _=dt(o[f]);Wl(_)&&(i[_]=de)}else if(o)for(const f in o){const _=dt(f);if(Wl(_)){const y=o[f],g=i[_]=W(y)||J(y)?{type:y}:be({},y),$=g.type;let x=!1,H=!0;if(W($))for(let k=0;k<$.length;++k){const b=$[k],w=J(b)&&b.name;if(w==="Boolean"){x=!0;break}else w==="String"&&(H=!1)}else x=J($)&&$.name==="Boolean";g[0]=x,g[1]=H,(x||re(g,"default"))&&a.push(_)}}const p=[i,a];return ae(e)&&n.set(e,p),p}function Wl(e){return e[0]!=="$"&&!Ut(e)}const Cn=e=>e==="_"||e==="_ctx"||e==="$stable",Tn=e=>W(e)?e.map(Je):[Je(e)],yi=(e,t,s)=>{if(t._n)return t;const n=Dr((...l)=>Tn(t(...l)),s);return n._c=!1,n},Jl=(e,t,s)=>{const n=e._ctx;for(const l in e){if(Cn(l))continue;const o=e[l];if(J(o))t[l]=yi(l,o,n);else if(o!=null){const i=Tn(o);t[l]=()=>i}}},Gl=(e,t)=>{const s=Tn(t);e.slots.default=()=>s},Ql=(e,t,s)=>{for(const n in t)(s||!Cn(n))&&(e[n]=t[n])},_i=(e,t,s)=>{const n=e.slots=Kl();if(e.vnode.shapeFlag&32){const l=t._;l?(Ql(n,t,s),s&&Jn(n,"_",l,!0)):Jl(t,n)}else t&&Gl(e,t)},xi=(e,t,s)=>{const{vnode:n,slots:l}=e;let o=!0,i=de;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:Ql(l,t,s):(o=!t.$stable,Jl(t,l)),i=t}else t&&(Gl(e,t),i={default:1});if(o)for(const a in l)!Cn(a)&&i[a]==null&&delete l[a]},Se=Ti;function wi(e){return ki(e)}function ki(e,t){const s=ps();s.__VUE__=!0;const{insert:n,remove:l,patchProp:o,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:_,nextSibling:y,setScopeId:g=He,insertStaticContent:$}=e,x=(h,v,T,P=null,E=null,A=null,I=void 0,D=null,O=!!v.dynamicChildren)=>{if(h===v)return;h&&!ns(h,v)&&(P=Vs(h),Xe(h,E,A,!0),h=null),v.patchFlag===-2&&(O=!1,v.dynamicChildren=null);const{type:M,ref:q,shapeFlag:F}=v;switch(M){case Ls:H(h,v,T,P);break;case vt:k(h,v,T,P);break;case En:h==null&&b(v,T,P,I);break;case L:j(h,v,T,P,E,A,I,D,O);break;default:F&1?C(h,v,T,P,E,A,I,D,O):F&6?ce(h,v,T,P,E,A,I,D,O):(F&64||F&128)&&M.process(h,v,T,P,E,A,I,D,O,us)}q!=null&&E?Yt(q,h&&h.ref,A,v||h,!v):q==null&&h&&h.ref!=null&&Yt(h.ref,null,A,h,!0)},H=(h,v,T,P)=>{if(h==null)n(v.el=a(v.children),T,P);else{const E=v.el=h.el;v.children!==h.children&&p(E,v.children)}},k=(h,v,T,P)=>{h==null?n(v.el=u(v.children||""),T,P):v.el=h.el},b=(h,v,T,P)=>{[h.el,h.anchor]=$(h.children,v,T,P,h.el,h.anchor)},w=({el:h,anchor:v},T,P)=>{let E;for(;h&&h!==v;)E=y(h),n(h,T,P),h=E;n(v,T,P)},R=({el:h,anchor:v})=>{let T;for(;h&&h!==v;)T=y(h),l(h),h=T;l(v)},C=(h,v,T,P,E,A,I,D,O)=>{if(v.type==="svg"?I="svg":v.type==="math"&&(I="mathml"),h==null)N(v,T,P,E,A,I,D,O);else{const M=h.el&&h.el._isVueCE?h.el:null;try{M&&M._beginPatch(),te(h,v,E,A,I,D,O)}finally{M&&M._endPatch()}}},N=(h,v,T,P,E,A,I,D)=>{let O,M;const{props:q,shapeFlag:F,transition:V,dirs:G}=h;if(O=h.el=i(h.type,A,q&&q.is,q),F&8?f(O,h.children):F&16&&U(h.children,O,null,P,E,Sn(h,A),I,D),G&&$t(h,null,P,"created"),B(O,h,h.scopeId,I,P),q){for(const he in q)he!=="value"&&!Ut(he)&&o(O,he,null,q[he],A,P);"value"in q&&o(O,"value",null,q.value,A),(M=q.onVnodeBeforeMount)&&Ge(M,P,h)}G&&$t(h,null,P,"beforeMount");const se=$i(E,V);se&&V.beforeEnter(O),n(O,v,T),((M=q&&q.onVnodeMounted)||se||G)&&Se(()=>{M&&Ge(M,P,h),se&&V.enter(O),G&&$t(h,null,P,"mounted")},E)},B=(h,v,T,P,E)=>{if(T&&g(h,T),P)for(let A=0;A<P.length;A++)g(h,P[A]);if(E){let A=E.subTree;if(v===A||to(A.type)&&(A.ssContent===v||A.ssFallback===v)){const I=E.vnode;B(h,I,I.scopeId,I.slotScopeIds,E.parent)}}},U=(h,v,T,P,E,A,I,D,O=0)=>{for(let M=O;M<h.length;M++){const q=h[M]=D?at(h[M]):Je(h[M]);x(null,q,v,T,P,E,A,I,D)}},te=(h,v,T,P,E,A,I)=>{const D=v.el=h.el;let{patchFlag:O,dynamicChildren:M,dirs:q}=v;O|=h.patchFlag&16;const F=h.props||de,V=v.props||de;let G;if(T&&Tt(T,!1),(G=V.onVnodeBeforeUpdate)&&Ge(G,T,v,h),q&&$t(v,h,T,"beforeUpdate"),T&&Tt(T,!0),(F.innerHTML&&V.innerHTML==null||F.textContent&&V.textContent==null)&&f(D,""),M?Q(h.dynamicChildren,M,D,T,P,Sn(v,E),A):I||le(h,v,D,null,T,P,Sn(v,E),A,!1),O>0){if(O&16)ie(D,F,V,T,E);else if(O&2&&F.class!==V.class&&o(D,"class",null,V.class,E),O&4&&o(D,"style",F.style,V.style,E),O&8){const se=v.dynamicProps;for(let he=0;he<se.length;he++){const ue=se[he],Ee=F[ue],Ae=V[ue];(Ae!==Ee||ue==="value")&&o(D,ue,Ee,Ae,E,T)}}O&1&&h.children!==v.children&&f(D,v.children)}else!I&&M==null&&ie(D,F,V,T,E);((G=V.onVnodeUpdated)||q)&&Se(()=>{G&&Ge(G,T,v,h),q&&$t(v,h,T,"updated")},P)},Q=(h,v,T,P,E,A,I)=>{for(let D=0;D<v.length;D++){const O=h[D],M=v[D],q=O.el&&(O.type===L||!ns(O,M)||O.shapeFlag&198)?_(O.el):T;x(O,M,q,null,P,E,A,I,!0)}},ie=(h,v,T,P,E)=>{if(v!==T){if(v!==de)for(const A in v)!Ut(A)&&!(A in T)&&o(h,A,v[A],null,E,P);for(const A in T){if(Ut(A))continue;const I=T[A],D=v[A];I!==D&&A!=="value"&&o(h,A,D,I,E,P)}"value"in T&&o(h,"value",v.value,T.value,E)}},j=(h,v,T,P,E,A,I,D,O)=>{const M=v.el=h?h.el:a(""),q=v.anchor=h?h.anchor:a("");let{patchFlag:F,dynamicChildren:V,slotScopeIds:G}=v;G&&(D=D?D.concat(G):G),h==null?(n(M,T,P),n(q,T,P),U(v.children||[],T,q,E,A,I,D,O)):F>0&&F&64&&V&&h.dynamicChildren&&h.dynamicChildren.length===V.length?(Q(h.dynamicChildren,V,T,E,A,I,D),(v.key!=null||E&&v===E.subTree)&&Yl(h,v,!0)):le(h,v,T,q,E,A,I,D,O)},ce=(h,v,T,P,E,A,I,D,O)=>{v.slotScopeIds=D,h==null?v.shapeFlag&512?E.ctx.activate(v,T,P,I,O):ct(v,T,P,E,A,I,O):Ks(h,v,O)},ct=(h,v,T,P,E,A,I)=>{const D=h.component=Oi(h,P,E);if(yn(h)&&(D.ctx.renderer=us),Di(D,!1,I),D.asyncDep){if(E&&E.registerDep(D,me,I),!h.el){const O=D.subTree=pe(vt);k(null,O,v,T),h.placeholder=O.el}}else me(D,h,v,T,E,A,I)},Ks=(h,v,T)=>{const P=v.component=h.component;if(pi(h,v,T))if(P.asyncDep&&!P.asyncResolved){ee(P,v,T);return}else P.next=v,P.update();else v.el=h.el,P.vnode=v},me=(h,v,T,P,E,A,I)=>{const D=()=>{if(h.isMounted){let{next:F,bu:V,u:G,parent:se,vnode:he}=h;{const et=Xl(h);if(et){F&&(F.el=he.el,ee(h,F,I)),et.asyncDep.then(()=>{Se(()=>{h.isUnmounted||M()},E)});return}}let ue=F,Ee;Tt(h,!1),F?(F.el=he.el,ee(h,F,I)):F=he,V&&hs(V),(Ee=F.props&&F.props.onVnodeBeforeUpdate)&&Ge(Ee,se,F,he),Tt(h,!0);const Ae=Bl(h),Ze=h.subTree;h.subTree=Ae,x(Ze,Ae,_(Ze.el),Vs(Ze),h,E,A),F.el=Ae.el,ue===null&&gi(h,Ae.el),G&&Se(G,E),(Ee=F.props&&F.props.onVnodeUpdated)&&Se(()=>Ge(Ee,se,F,he),E)}else{let F;const{el:V,props:G}=v,{bm:se,m:he,parent:ue,root:Ee,type:Ae}=h,Ze=Xt(v);Tt(h,!1),se&&hs(se),!Ze&&(F=G&&G.onVnodeBeforeMount)&&Ge(F,ue,v),Tt(h,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Ae);const et=h.subTree=Bl(h);x(null,et,T,P,h,E,A),v.el=et.el}if(he&&Se(he,E),!Ze&&(F=G&&G.onVnodeMounted)){const et=v;Se(()=>Ge(F,ue,et),E)}(v.shapeFlag&256||ue&&Xt(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&Se(h.a,E),h.isMounted=!0,v=T=P=null}};h.scope.on();const O=h.effect=new Zn(D);h.scope.off();const M=h.update=O.run.bind(O),q=h.job=O.runIfDirty.bind(O);q.i=h,q.id=h.uid,O.scheduler=()=>bn(q),Tt(h,!0),M()},ee=(h,v,T)=>{v.component=h;const P=h.vnode.props;h.vnode=v,h.next=null,vi(h,v.props,P,T),xi(h,v.children,T),Ke(),xl(h),Ve()},le=(h,v,T,P,E,A,I,D,O=!1)=>{const M=h&&h.children,q=h?h.shapeFlag:0,F=v.children,{patchFlag:V,shapeFlag:G}=v;if(V>0){if(V&128){is(M,F,T,P,E,A,I,D,O);return}else if(V&256){ye(M,F,T,P,E,A,I,D,O);return}}G&8?(q&16&&as(M,E,A),F!==M&&f(T,F)):q&16?G&16?is(M,F,T,P,E,A,I,D,O):as(M,E,A,!0):(q&8&&f(T,""),G&16&&U(F,T,P,E,A,I,D,O))},ye=(h,v,T,P,E,A,I,D,O)=>{h=h||At,v=v||At;const M=h.length,q=v.length,F=Math.min(M,q);let V;for(V=0;V<F;V++){const G=v[V]=O?at(v[V]):Je(v[V]);x(h[V],G,T,null,E,A,I,D,O)}M>q?as(h,E,A,!0,!1,F):U(v,T,P,E,A,I,D,O,F)},is=(h,v,T,P,E,A,I,D,O)=>{let M=0;const q=v.length;let F=h.length-1,V=q-1;for(;M<=F&&M<=V;){const G=h[M],se=v[M]=O?at(v[M]):Je(v[M]);if(ns(G,se))x(G,se,T,null,E,A,I,D,O);else break;M++}for(;M<=F&&M<=V;){const G=h[F],se=v[V]=O?at(v[V]):Je(v[V]);if(ns(G,se))x(G,se,T,null,E,A,I,D,O);else break;F--,V--}if(M>F){if(M<=V){const G=V+1,se=G<q?v[G].el:P;for(;M<=V;)x(null,v[M]=O?at(v[M]):Je(v[M]),T,se,E,A,I,D,O),M++}}else if(M>V)for(;M<=F;)Xe(h[M],E,A,!0),M++;else{const G=M,se=M,he=new Map;for(M=se;M<=V;M++){const Pe=v[M]=O?at(v[M]):Je(v[M]);Pe.key!=null&&he.set(Pe.key,M)}let ue,Ee=0;const Ae=V-se+1;let Ze=!1,et=0;const cs=new Array(Ae);for(M=0;M<Ae;M++)cs[M]=0;for(M=G;M<=F;M++){const Pe=h[M];if(Ee>=Ae){Xe(Pe,E,A,!0);continue}let tt;if(Pe.key!=null)tt=he.get(Pe.key);else for(ue=se;ue<=V;ue++)if(cs[ue-se]===0&&ns(Pe,v[ue])){tt=ue;break}tt===void 0?Xe(Pe,E,A,!0):(cs[tt-se]=M+1,tt>=et?et=tt:Ze=!0,x(Pe,v[tt],T,null,E,A,I,D,O),Ee++)}const No=Ze?Ci(cs):At;for(ue=No.length-1,M=Ae-1;M>=0;M--){const Pe=se+M,tt=v[Pe],Ho=v[Pe+1],Uo=Pe+1<q?Ho.el||eo(Ho):P;cs[M]===0?x(null,tt,T,Uo,E,A,I,D,O):Ze&&(ue<0||M!==No[ue]?Et(tt,T,Uo,2):ue--)}}},Et=(h,v,T,P,E=null)=>{const{el:A,type:I,transition:D,children:O,shapeFlag:M}=h;if(M&6){Et(h.component.subTree,v,T,P);return}if(M&128){h.suspense.move(v,T,P);return}if(M&64){I.move(h,v,T,us);return}if(I===L){n(A,v,T);for(let F=0;F<O.length;F++)Et(O[F],v,T,P);n(h.anchor,v,T);return}if(I===En){w(h,v,T);return}if(P!==2&&M&1&&D)if(P===0)D.beforeEnter(A),n(A,v,T),Se(()=>D.enter(A),E);else{const{leave:F,delayLeave:V,afterLeave:G}=D,se=()=>{h.ctx.isUnmounted?l(A):n(A,v,T)},he=()=>{A._isLeaving&&A[Ur](!0),F(A,()=>{se(),G&&G()})};V?V(A,se,he):he()}else n(A,v,T)},Xe=(h,v,T,P=!1,E=!1)=>{const{type:A,props:I,ref:D,children:O,dynamicChildren:M,shapeFlag:q,patchFlag:F,dirs:V,cacheIndex:G}=h;if(F===-2&&(E=!1),D!=null&&(Ke(),Yt(D,null,T,h,!0),Ve()),G!=null&&(v.renderCache[G]=void 0),q&256){v.ctx.deactivate(h);return}const se=q&1&&V,he=!Xt(h);let ue;if(he&&(ue=I&&I.onVnodeBeforeUnmount)&&Ge(ue,v,h),q&6)ap(h.component,T,P);else{if(q&128){h.suspense.unmount(T,P);return}se&&$t(h,null,v,"beforeUnmount"),q&64?h.type.remove(h,v,T,us,P):M&&!M.hasOnce&&(A!==L||F>0&&F&64)?as(M,v,T,!1,!0):(A===L&&F&384||!E&&q&16)&&as(O,v,T),P&&jo(h)}(he&&(ue=I&&I.onVnodeUnmounted)||se)&&Se(()=>{ue&&Ge(ue,v,h),se&&$t(h,null,v,"unmounted")},T)},jo=h=>{const{type:v,el:T,anchor:P,transition:E}=h;if(v===L){ip(T,P);return}if(v===En){R(h);return}const A=()=>{l(T),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:D}=E,O=()=>I(T,A);D?D(h.el,A,O):O()}else A()},ip=(h,v)=>{let T;for(;h!==v;)T=y(h),l(h),h=T;l(v)},ap=(h,v,T)=>{const{bum:P,scope:E,job:A,subTree:I,um:D,m:O,a:M}=h;Zl(O),Zl(M),P&&hs(P),E.stop(),A&&(A.flags|=8,Xe(I,h,v,T)),D&&Se(D,v),Se(()=>{h.isUnmounted=!0},v)},as=(h,v,T,P=!1,E=!1,A=0)=>{for(let I=A;I<h.length;I++)Xe(h[I],v,T,P,E)},Vs=h=>{if(h.shapeFlag&6)return Vs(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=y(h.anchor||h.el),T=v&&v[Nr];return T?y(T):v};let Nn=!1;const Bo=(h,v,T)=>{let P;h==null?v._vnode&&(Xe(v._vnode,null,null,!0),P=v._vnode.component):x(v._vnode||null,h,v,null,null,null,T),v._vnode=h,Nn||(Nn=!0,xl(P),wl(),Nn=!1)},us={p:x,um:Xe,m:Et,r:jo,mt:ct,mc:U,pc:le,pbc:Q,n:Vs,o:e};return{render:Bo,hydrate:void 0,createApp:ai(Bo)}}function Sn({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 Tt({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 Yl(e,t,s=!1){const n=e.children,l=t.children;if(W(n)&&W(l))for(let o=0;o<n.length;o++){const i=n[o];let a=l[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[o]=at(l[o]),a.el=i.el),!s&&a.patchFlag!==-2&&Yl(i,a)),a.type===Ls&&(a.patchFlag===-1&&(a=l[o]=at(a)),a.el=i.el),a.type===vt&&!a.el&&(a.el=i.el)}}function Ci(e){const t=e.slice(),s=[0];let n,l,o,i,a;const u=e.length;for(n=0;n<u;n++){const p=e[n];if(p!==0){if(l=s[s.length-1],e[l]<p){t[n]=l,s.push(n);continue}for(o=0,i=s.length-1;o<i;)a=o+i>>1,e[s[a]]<p?o=a+1:i=a;p<e[s[o]]&&(o>0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,i=s[o-1];o-- >0;)s[o]=i,i=t[i];return s}function Xl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xl(t)}function Zl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function eo(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?eo(t.subTree):null}const to=e=>e.__isSuspense;function Ti(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Rr(e)}const L=Symbol.for("v-fgt"),Ls=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),ts=[];let Me=null;function c(e=!1){ts.push(Me=e?null:[])}function Si(){ts.pop(),Me=ts[ts.length-1]||null}let ss=1;function Os(e,t=!1){ss+=e,e<0&&Me&&t&&(Me.hasOnce=!0)}function so(e){return e.dynamicChildren=ss>0?Me||At:null,Si(),ss>0&&Me&&Me.push(e),e}function d(e,t,s,n,l,o){return so(r(e,t,s,n,l,o,!0))}function Re(e,t,s,n,l){return so(pe(e,t,s,n,l,!0))}function Rs(e){return e?e.__v_isVNode===!0:!1}function ns(e,t){return e.type===t.type&&e.key===t.key}const no=({key:e})=>e??null,Ds=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||ve(e)||J(e)?{i:Oe,r:e,k:t,f:!!s}:e:null);function r(e,t=null,s=null,n=0,l=null,o=e===L?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&Ds(t),scopeId:$l,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Oe};return a?(An(u,s),o&128&&e.normalize(u)):s&&(u.shapeFlag|=ge(s)?8:16),ss>0&&!i&&Me&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&Me.push(u),u}const pe=Ei;function Ei(e,t=null,s=null,n=0,l=null,o=!1){if((!e||e===ei)&&(e=vt),Rs(e)){const a=Ft(e,t,!0);return s&&An(a,s),ss>0&&!o&&Me&&(a.shapeFlag&6?Me[Me.indexOf(e)]=a:Me.push(a)),a.patchFlag=-2,a}if(Ui(e)&&(e=e.__vccOpts),t){t=Ai(t);let{class:a,style:u}=t;a&&!ge(a)&&(t.class=K(a)),ae(u)&&(hn(u)&&!W(u)&&(u=be({},u)),t.style=pt(u))}const i=ge(e)?1:to(e)?128:Hr(e)?64:ae(e)?4:J(e)?2:0;return r(e,t,s,n,l,i,o,!0)}function Ai(e){return e?hn(e)||Vl(e)?be({},e):e:null}function Ft(e,t,s=!1,n=!1){const{props:l,ref:o,patchFlag:i,children:a,transition:u}=e,p=t?Mi(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&no(p),ref:t&&t.ref?s&&o?W(o)?o.concat(Ds(t)):[o,Ds(t)]:Ds(t):o,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!==L?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&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&vn(f,u.clone(f)),f}function Z(e=" ",t=0){return pe(Ls,null,e,t)}function ne(e="",t=!1){return t?(c(),Re(vt,null,e)):pe(vt,null,e)}function Je(e){return e==null||typeof e=="boolean"?pe(vt):W(e)?pe(L,null,e.slice()):Rs(e)?at(e):pe(Ls,null,String(e))}function at(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function An(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(W(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),An(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Vl(t)?t._ctx=Oe:l===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else J(t)?(t={default:t,_ctx:Oe},s=32):(t=String(t),n&64?(s=16,t=[Z(t)]):s=8);e.children=t,e.shapeFlag|=s}function Mi(...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=K([t.class,n.class]));else if(l==="style")t.style=pt([t.style,n.style]);else if(ds(l)){const o=t[l],i=n[l];i&&o!==i&&!(W(o)&&o.includes(i))&&(t[l]=o?[].concat(o,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ge(e,t,s,n=null){ze(e,t,7,[s,n])}const Pi=Fl();let Li=0;function Oi(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Pi,o={uid:Li++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ql(n,l),emitsOptions:jl(n,l),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ci.bind(null,o),e.ce&&e.ce(o),o}let we=null;const Ri=()=>we||Oe;let Is,Mn;{const e=ps(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),o=>{l.length>1?l.forEach(i=>i(o)):l[0](o)}};Is=t("__VUE_INSTANCE_SETTERS__",s=>we=s),Mn=t("__VUE_SSR_SETTERS__",s=>jt=s)}const ls=e=>{const t=we;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},lo=()=>{we&&we.scope.off(),Is(null)};function oo(e){return e.vnode.shapeFlag&4}let jt=!1;function Di(e,t=!1,s=!1){t&&Mn(t);const{props:n,children:l}=e.vnode,o=oo(e);bi(e,n,o,t),_i(e,l,s||t);const i=o?Ii(e,t):void 0;return t&&Mn(!1),i}function Ii(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ti);const{setup:n}=s;if(n){Ke();const l=e.setupContext=n.length>1?ji(e):null,o=ls(e),i=Ot(n,e,0,[e.props,l]),a=Vn(i);if(Ve(),o(),(a||e.sp)&&!Xt(e)&&mn(e),a){if(i.then(lo,lo),t)return i.then(u=>{ro(e,u)}).catch(u=>{Gt(u,e,0)});e.asyncDep=i}else ro(e,i)}else io(e)}function ro(e,t,s){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=vl(t)),io(e)}function io(e,t,s){const n=e.type;e.render||(e.render=n.render||He);{const l=ls(e);Ke();try{si(e)}finally{Ve(),l()}}}const Fi={get(e,t){return _e(e,"get",""),e[t]}};function ji(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Fi),slots:e.slots,emit:e.emit,expose:t}}function Fs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vl(_r(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zt)return Zt[s](e)},has(t,s){return s in t||s in Zt}})):e.proxy}const Bi=/(?:^|[-_])\w/g,Ni=e=>e.replace(Bi,t=>t.toUpperCase()).replace(/[-_]/g,"");function Hi(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function ao(e,t,s=!1){let n=Hi(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=o=>{for(const i in o)if(o[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Ni(n):s?"App":"Anonymous"}function Ui(e){return J(e)&&"__vccOpts"in e}const Y=(e,t)=>Cr(e,t,jt);function Ki(e,t,s){try{Os(-1);const n=arguments.length;return n===2?ae(t)&&!W(t)?Rs(t)?pe(e,null,[t]):pe(e,t):pe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Rs(s)&&(s=[s]),pe(e,t,s))}finally{Os(1)}}const Vi="3.5.29";let Pn;const uo=typeof window<"u"&&window.trustedTypes;if(uo)try{Pn=uo.createPolicy("vue",{createHTML:e=>e})}catch{}const co=Pn?e=>Pn.createHTML(e):e=>e,zi="http://www.w3.org/2000/svg",qi="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,fo=ut&&ut.createElement("template"),Wi={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"?ut.createElementNS(zi,e):t==="mathml"?ut.createElementNS(qi,e):s?ut.createElement(e,{is:s}):ut.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,o){const i=s?s.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===o||!(l=l.nextSibling)););else{fo.innerHTML=co(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=fo.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]}},Ji=Symbol("_vtc");function Gi(e,t,s){const n=e[Ji];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ho=Symbol("_vod"),Qi=Symbol("_vsh"),Yi=Symbol(""),Xi=/(?:^|;)\s*display\s*:/;function Zi(e,t,s){const n=e.style,l=ge(s);let o=!1;if(s&&!l){if(t)if(ge(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&js(n,a,"")}else for(const i in t)s[i]==null&&js(n,i,"");for(const i in s)i==="display"&&(o=!0),js(n,i,s[i])}else if(l){if(t!==s){const i=n[Yi];i&&(s+=";"+i),n.cssText=s,o=Xi.test(s)}}else t&&e.removeAttribute("style");ho in e&&(e[ho]=o?n.display:"",e[Qi]&&(n.display="none"))}const po=/\s*!important$/;function js(e,t,s){if(W(s))s.forEach(n=>js(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ea(e,t);po.test(s)?e.setProperty(ft(n),s.replace(po,""),"important"):e[n]=s}}const go=["Webkit","Moz","ms"],Ln={};function ea(e,t){const s=Ln[t];if(s)return s;let n=dt(t);if(n!=="filter"&&n in e)return Ln[t]=n;n=Wn(n);for(let l=0;l<go.length;l++){const o=go[l]+n;if(o in e)return Ln[t]=o}return t}const bo="http://www.w3.org/1999/xlink";function vo(e,t,s,n,l,o=Yo(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(bo,t.slice(6,t.length)):e.setAttributeNS(bo,t,s):s==null||o&&!Qn(s)?e.removeAttribute(t):e.setAttribute(t,o?"":Ue(s)?String(s):s)}function mo(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?co(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="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=Qn(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 Bt(e,t,s,n){e.addEventListener(t,s,n)}function ta(e,t,s,n){e.removeEventListener(t,s,n)}const yo=Symbol("_vei");function sa(e,t,s,n,l=null){const o=e[yo]||(e[yo]={}),i=o[t];if(n&&i)i.value=n;else{const[a,u]=na(t);if(n){const p=o[t]=ra(n,l);Bt(e,a,p,u)}else i&&(ta(e,a,i,u),o[t]=void 0)}}const _o=/(?:Once|Passive|Capture)$/;function na(e){let t;if(_o.test(e)){t={};let n;for(;n=e.match(_o);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ft(e.slice(2)),t]}let On=0;const la=Promise.resolve(),oa=()=>On||(la.then(()=>On=0),On=Date.now());function ra(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ze(ia(n,s.value),t,5,[n])};return s.value=e,s.attached=oa(),s}function ia(e,t){if(W(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 xo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,aa=(e,t,s,n,l,o)=>{const i=l==="svg";t==="class"?Gi(e,n,i):t==="style"?Zi(e,s,n):ds(t)?qs(t)||sa(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ua(e,t,n,i))?(mo(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vo(e,t,n,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ge(n))?mo(e,dt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),vo(e,t,n,i))};function ua(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&xo(t)&&J(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 xo(t)&&ge(s)?!1:t in e}const wo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?s=>hs(t,s):t};function ca(e){e.target.composing=!0}function ko(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function $o(e,t,s){return t&&(e=e.trim()),s&&(e=Qs(e)),e}const Qe={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[Rn]=wo(l);const o=n||l.props&&l.props.type==="number";Bt(e,t?"change":"input",i=>{i.target.composing||e[Rn]($o(e.value,s,o))}),(s||o)&&Bt(e,"change",()=>{e.value=$o(e.value,s,o)}),t||(Bt(e,"compositionstart",ca),Bt(e,"compositionend",ko),Bt(e,"change",ko))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:o}},i){if(e[Rn]=wo(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Qs(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))}},da=["ctrl","shift","alt","meta"],fa={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)=>da.some(s=>e[`${s}Key`]&&!t.includes(s))},Nt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...o)=>{for(let i=0;i<t.length;i++){const a=fa[t[i]];if(a&&a(l,t))return}return e(l,...o)}))},ha={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Co=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const o=ft(l.key);if(t.some(i=>i===o||ha[i]===o))return e(l)}))},pa=be({patchProp:aa},Wi);let To;function ga(){return To||(To=wi(pa))}const ba=((...e)=>{const t=ga().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=ma(n);if(!l)return;const o=t._component;!J(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,va(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function va(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ma(e){return ge(e)?document.querySelector(e):e}class Bs extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class ya extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class Dn{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},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"same-origin"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new Bs(o.status);if(!o.ok){const i=await o.text().catch(()=>"");throw new ya(o.status,i)}return o.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 _a=3e3,xa=100,wa=500,ka={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function $a(e){return ka[e]||`/${e}`}class So{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new Dn({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??_a,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 Bs){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||this.serveFromCache(t))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){this.handleFetchError(n,s)}}serveFromCache(t){return this.fetchOnceCache[t]===void 0?!1:(this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1),!0)}handleFetchError(t,s){if(!(t instanceof DOMException&&t.name==="AbortError")&&!s.signal.aborted){if(t instanceof Bs){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(t);return}this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1)}}}const Eo=new Set(["cache","jobs","config"]);function Ao(e){return{onData:t=>{e.data.value=t},onLoading:t=>{e.loading.value=t},onError:t=>{e.error.value=t},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}class Ca{constructor(t,s,n,l){this.refs=t,this.config=s,this.dashboardEndpoint=l,this.controller=new So({...s,endpoint:n,...Ao(t)})}controller;dashboardController=null;dashboardEndpoint;getDashboardController(){return!this.dashboardController&&this.dashboardEndpoint&&(this.dashboardController=new So({...this.config,endpoint:this.dashboardEndpoint,...Ao(this.refs)})),this.dashboardController}startForTab(t){const s=t();!s||s.startsWith("custom-")||(Eo.has(s)&&this.dashboardEndpoint?(this.controller.stop(),this.getDashboardController().start(s)):(this.dashboardController?.stop(),this.controller.start(s)))}stopAll(){this.controller.stop(),this.dashboardController?.stop()}refresh(t){const s=t();Eo.has(s)&&this.dashboardEndpoint&&this.dashboardController?this.dashboardController.refresh():this.controller.refresh()}fetchCustomPane(t,s=!1){return this.controller.fetchCustomPane(t,s)}}function Ta(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:o,refreshInterval:i}=t,a=z(null),u=z(!1),p=z(null),f=z(!1),_={data:a,loading:u,error:p,isUnauthorized:f},y=new Ca(_,{baseUrl:s,authToken:o,refreshInterval:i},n,l);return rt(e,()=>{a.value=null,y.startForTab(e)}),Ct(()=>y.startForTab(e)),As(()=>y.stopAll()),{data:a,loading:u,error:p,isUnauthorized:f,refresh:()=>y.refresh(e),clear:()=>{a.value=null},fetchCustomPane:(g,$=!1)=>y.fetchCustomPane(g,$),startRefresh:()=>y.startForTab(e),stopRefresh:()=>y.stopAll()}}const Ns="ss-dash-theme",In="ss-theme-change";function Hs(){if(typeof window>"u")return"light";const e=localStorage.getItem(Ns);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function Sa(e){typeof window>"u"||(localStorage.setItem(Ns,e),window.dispatchEvent(new CustomEvent(In,{detail:e})))}function Ea(){const t=Hs()==="dark"?"light":"dark";return Sa(t),t}function Aa(e){if(typeof window>"u")return()=>{};const t=o=>{const i=o.detail;(i==="dark"||i==="light")&&e(i)},s=o=>{if(o.key===Ns){const i=o.newValue;e(i==="dark"||i==="light"?i:Hs())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=o=>{localStorage.getItem(Ns)||e(o.matches?"dark":"light")};return window.addEventListener(In,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(In,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Ma(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function Pa(e,t,s){if(e.length===0)return"[]";const n=e.slice(0,3).map(i=>s(i,30)),l=e.length>3?", ..."+e.length+" items":"",o="["+n.join(", ")+l+"]";return o.length>t?"["+e.length+" items]":o}function La(e,t,s){const n=Object.keys(e);if(n.length===0)return"{}";const l=[];for(let u=0;u<Math.min(n.length,4);u++)l.push(n[u]+": "+s(e[n[u]],30));const o=n.length>4?", ...+"+(n.length-4):"",i="{ "+l.join(", ")+o+" }";return i.length<=t?i:"{ "+(n.slice(0,6).join(", ")+(n.length>6?", ...":""))+" }"}function Oa(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 De(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Mo(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function mt(e){if(!e)return"-";const t=typeof e=="string"?new Date(Mo(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 Be(e){if(!e)return"-";const t=typeof e=="string"?new Date(Mo(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 Ra(e){return e>wa?"very-slow":e>xa?"slow":"normal"}function Fn(e,t="ss-dash"){const s=Ra(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function os(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?Ma(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?Pa(e,t,os):typeof e=="object"?La(e,t,os):String(e)}function Po(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 Da(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Ia=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],Lo="/admin/api/debug",Oo={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 Fa(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const n of Ia)t[n]=s?.[n]??!1;return t}async function ja(e,t=Lo){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Ba(e){const{baseUrl:t="",debugEndpoint:s=Lo,authToken:n}=e,l=new Dn({baseUrl:t,authToken:n});try{const o=await ja(l,s);return Fa(o)}catch{return Oo}}const Ce={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"/>']}},Na="ss-col-resize",Ro="ss-resizing";function Ha(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 o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const p=u.clientX,f=o.offsetWidth;a.classList.add(Ro),a.setPointerCapture(u.pointerId);function _(g){const $=g.clientX-p,x=Math.max(30,f+$);o.style.width=x+"px"}function y(){a.classList.remove(Ro),a.removeEventListener("pointermove",_),a.removeEventListener("pointerup",y)}a.addEventListener("pointermove",_),a.addEventListener("pointerup",y)};if(!o.textContent?.trim())continue;const a=document.createElement("div");a.className=Na,o.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const o of s)o()}}function Ua(e){const{container:t,handle:s,topPane:n,bottomPane:l,storageKey:o,minHeight:i=60}=e;if(o){const u=localStorage.getItem(o);if(u){const p=parseFloat(u);p>0&&p<1&&(n.style.flex=`${p}`,l.style.flex=`${1-p}`)}}function a(u){u.preventDefault(),s.setPointerCapture(u.pointerId);const f=t.getBoundingClientRect().height,_=u.clientY,y=n.getBoundingClientRect().height;function g(x){const H=x.clientY-_;let k=y+H;const b=f-i-s.offsetHeight;k=Math.max(i,Math.min(k,b));const w=k/(f-s.offsetHeight);n.style.flex=`${w}`,l.style.flex=`${1-w}`}function $(){if(s.removeEventListener("pointermove",g),s.removeEventListener("pointerup",$),o){const x=t.getBoundingClientRect().height-s.offsetHeight;if(x>0){const H=n.getBoundingClientRect().height/x;localStorage.setItem(o,String(H))}}}s.addEventListener("pointermove",g),s.addEventListener("pointerup",$)}return s.addEventListener("pointerdown",a),()=>{s.removeEventListener("pointerdown",a)}}function Ka(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function Do(e){const t={};for(const[s,n]of Object.entries(e))qa.has(s)||(t[s]=n);return Object.keys(t).length>0?t:null}const Va=["all","error","warn","info","debug"];function rs(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function jn(e){return e.msg||e.message||JSON.stringify(e)}function yt(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ne(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 Io(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 za(e,t){return t==="all"?e:e.filter(s=>{const n=rs(s);return t==="error"?n==="error"||n==="fatal":n===t})}const qa=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function Ye(e){if(e.data){const t=Ka(e.data);if(t){const s=Do(t);if(s)return s}}return Do(e)}function Wa(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 Ja(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function Ga(e,t){const s=e.filter(o=>o.duration>100).length,n=Object.values(t).filter(o=>o>1).length,l=e.length>0?e.reduce((o,i)=>o+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}function Qa(){return[{key:"id",label:"#",width:"50px",type:"index"},{key:"sql",label:"SQL",type:"sql"},{key:"duration",label:"Duration",width:"80px",type:"duration"},{key:"method",label:"Method",width:"70px",type:"method"},{key:"model",label:"Model",width:"100px",type:"model"},{key:"timestamp",label:"Time",width:"80px",type:"time"}]}class Ya{state;constructor(t="list"){this.state={viewMode:t,sort:{key:t==="list"?"createdAt":"count",dir:"desc"},expandedIds:new Set,explainData:new Map,search:""}}setViewMode(t){return this.state.viewMode=t,this.state.sort={key:t==="list"?"createdAt":"count",dir:"desc"},this.state.expandedIds=new Set,this.state.explainData=new Map,this.state}toggleSort(t){return this.state.sort.key===t?this.state.sort={key:t,dir:this.state.sort.dir==="asc"?"desc":"asc"}:this.state.sort={key:t,dir:"desc"},this.state}toggleExpand(t){return this.state.expandedIds.has(t)?this.state.expandedIds.delete(t):this.state.expandedIds.add(t),this.state}isExpanded(t){return this.state.expandedIds.has(t)}setSearch(t){return this.state.search=t,this.state}startExplain(t){this.state.explainData.set(t,{loading:!0})}completeExplain(t,s){this.state.explainData.set(t,{loading:!1,result:s})}failExplain(t,s){this.state.explainData.set(t,{loading:!1,error:s})}clearExplain(){this.state.explainData=new Map}getExplainState(t){return this.state.explainData.get(t)}}const Xa=["all","active","waiting","delayed","completed","failed"];function Za(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 eu=["password","secret","token","key","credential","auth"];function tu(e){const t=e.toLowerCase();return eu.some(s=>t.includes(s))}function su(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 nu={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function lu(e){return nu[e]||e}const ou={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function ru(e){return ou[e]||e}function iu(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function au(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function uu(e){return Object.entries(e).map(([t,s])=>({key:t,value:su(s),secret:tu(t)}))}function cu(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const du=["healthy","active","connected","available","ready"],fu=["errored","unavailable"];function hu(e){return du.includes(e)?"ok":fu.includes(e)?"err":""}function pu(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function gu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(pu(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const bu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function vu(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const o of l)o&&s.push(o)}return s}function mu(e){return vu(e).some(s=>bu.has(s.toLowerCase()))}function yu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=z({...Oo}),o=z(!0);return Ct(async()=>{l.value=await Ba({baseUrl:t,debugEndpoint:s,authToken:n}),o.value=!1}),{features:l,loading:o}}function Fo(){const e=z(Hs());let t=null;function s(l){e.value=l}function n(){const l=Ea();return e.value=l,l}return Ct(()=>{e.value=Hs(),t=Aa(s)}),As(()=>{t?.()}),{theme:e,toggleTheme:n}}const _u=["title","aria-label"],xu=["viewBox","innerHTML"],wu=["viewBox","innerHTML"],ku=xe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Fo(),l=Y(()=>s.value==="dark"),o=Y(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=Y(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(c(),d("button",{type:"button",class:K(i.value),title:o.value,"aria-label":o.value,onClick:u[0]||(u[0]=(...p)=>S(n)&&S(n)(...p))},[l.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:S(Ce).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:S(Ce).sun.elements.join("")},null,8,xu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:S(Ce).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:S(Ce).moon.elements.join("")},null,8,wu))],10,_u))}}),$u=["data-ss-theme"],Cu={class:"ss-dbg-tabs"},Tu={class:"ss-dbg-tabs-scroll"},Su=["onClick"],Eu=["viewBox","innerHTML"],Au={class:"ss-dbg-tabs-right"},Mu=["title"],Pu=["href"],Lu=["viewBox","innerHTML"],Ou={class:"ss-dbg-content"},Ru={key:0,class:"ss-dbg-empty"},Du={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},Iu=xe({__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=je(()=>Promise.resolve().then(()=>qu)),n=je(()=>Promise.resolve().then(()=>sc)),l=je(()=>Promise.resolve().then(()=>wc)),o=je(()=>Promise.resolve().then(()=>Mc)),i=je(()=>Promise.resolve().then(()=>qc)),a=je(()=>Promise.resolve().then(()=>jd)),u=je(()=>Promise.resolve().then(()=>uf)),p=je(()=>Promise.resolve().then(()=>Pf)),f=je(()=>Promise.resolve().then(()=>hh)),_=je(()=>Promise.resolve().then(()=>Yh)),y=je(()=>Promise.resolve().then(()=>rp)),g=e,$=z(g.defaultOpen),x=z("queries"),{theme:H}=Fo(),{features:k}=yu({baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,authToken:g.authToken}),b=g.dashboardPath?g.dashboardPath.replace(/\/+$/,"")+"/api":void 0,w=Y(()=>x.value.startsWith("custom-")),R=Y(()=>w.value||x.value==="internals"),{data:C,loading:N,error:B,isUnauthorized:U,startRefresh:te,stopRefresh:Q}=Ta(()=>x.value,{baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,dashboardEndpoint:b,authToken:g.authToken}),ie=Y(()=>{const ee=[{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"}];(k.value.tracing||g.tracingEnabled)&&ee.push({id:"timeline",label:"Requests",icon:"R"}),k.value.cache&&ee.push({id:"cache",label:"Cache",icon:"C"}),k.value.queues&&ee.push({id:"jobs",label:"Jobs",icon:"J"}),ee.push({id:"config",label:"Config",icon:"G"}),ee.push({id:"internals",label:"Internals",icon:"I"});for(const le of k.value.customPanes)ee.push({id:`custom-${le.id}`,label:le.label,icon:le.label.charAt(0).toUpperCase()});return ee});function j(ee){const le=ee.replace("custom-","");return k.value.customPanes.find(ye=>ye.id===le)}function ce(){$.value=!0,te()}function ct(){$.value=!1,Q()}function Ks(){$.value?ct():ce()}function me(ee){x.value=ee}return rt($,ee=>{ee?te():Q()}),t({toggle:Ks,open:ce,close:ct}),(ee,le)=>S(U)?ne("",!0):(c(),d("div",{key:0,class:K(["ss-dbg-panel",{"ss-dbg-open":$.value}]),"data-ss-theme":S(H)},[r("div",Cu,[r("div",Tu,[(c(!0),d(L,null,X(ie.value,ye=>(c(),d("button",{key:ye.id,type:"button",class:K(["ss-dbg-tab",{"ss-dbg-active":x.value===ye.id}]),onClick:is=>me(ye.id)},[S(Ce)[ye.id]?(c(),d("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:S(Ce)[ye.id].viewBox,innerHTML:S(Ce)[ye.id].elements.join("")},null,8,Eu)):ne("",!0),Z(" "+m(ye.label),1)],10,Su))),128))]),r("div",Au,[r("span",{class:K(["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,Mu),e.dashboardPath&&S(k).dashboard?(c(),d("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(c(),d("svg",{width:"14",height:"14",viewBox:S(Ce)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:S(Ce)["external-link"].elements.join("")},null,8,Lu))],8,Pu)):ne("",!0),pe(ku),r("button",{type:"button",class:"ss-dbg-close",onClick:ct,title:"Close panel"}," × ")])]),r("div",Ou,[S(N)&&!S(C)&&!R.value?(c(),d("div",Ru,"Loading...")):S(B)&&!R.value?(c(),d("div",Du," Error: "+m(S(B).message),1)):(c(),d(L,{key:2},[x.value==="queries"?(c(),Re(S(s),{key:0,data:S(C),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):x.value==="events"?(c(),Re(S(n),{key:1,data:S(C),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):x.value==="emails"?(c(),Re(S(l),{key:2,data:S(C),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):x.value==="routes"?(c(),Re(S(o),{key:3,data:S(C)},null,8,["data"])):x.value==="logs"?(c(),Re(S(i),{key:4,data:S(C),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):x.value==="timeline"?(c(),Re(S(a),{key:5,data:S(C),"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"])):x.value==="cache"?(c(),Re(S(u),{key:6,data:S(C)},null,8,["data"])):x.value==="jobs"?(c(),Re(S(p),{key:7,data:S(C)},null,8,["data"])):x.value==="config"?(c(),Re(S(f),{key:8,data:S(C)},null,8,["data"])):x.value==="internals"?(c(),Re(S(_),{key:9,data:S(C),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):x.value.startsWith("custom-")?(c(),Re(S(y),{key:10,pane:j(x.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):ne("",!0)],64))])],10,$u))}});let St=null;window.__ssDebugPanel={mount(e,t,s){St&&St.unmount(),St=ba({setup(){return()=>Ki(Iu,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),St.mount(e)},unmount(e){St&&(St.unmount(),St=null)}};function _t(e){const t=z(null);let s=null;function n(){s&&s(),s=null,gn(()=>{t.value&&(s=Ha(t.value))})}return e&&rt(e,n),Ct(n),Es(()=>{s&&s(),s=null}),{tableRef:t}}const Fu={class:"ss-dbg-search-bar"},ju={class:"ss-dbg-summary"},Bu={key:0,class:"ss-dbg-empty"},Nu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Hu=["onClick","onKeydown"],Uu={key:0,class:"ss-dbg-dup"},Ku={key:1,class:"ss-dbg-dup"},Vu={class:"ss-dbg-c-muted"},zu=["title"],qu=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=new Ya,l=z(0);function o(x){n.toggleExpand(x),l.value++}function i(x){return l.value,n.isExpanded(x)}const a=Y(()=>Qa()),u=Y(()=>{if(!t.data)return[];const x=t.data;return(Array.isArray(x)?x:x.queries)||[]}),p=Y(()=>Wa(u.value,s.value)),f=Y(()=>Ja(u.value)),_=Y(()=>Ga(u.value,f.value)),y=Y(()=>{let x=`${p.value.length} queries`;return _.value.slowCount>0&&(x+=` | ${_.value.slowCount} slow`),_.value.dupCount>0&&(x+=` | ${_.value.dupCount} dup`),p.value.length>0&&(x+=` | avg ${De(_.value.avgDuration)}`),x});function g(x){return Fn(x,"ss-dbg")}const{tableRef:$}=_t(()=>p.value);return(x,H)=>(c(),d("div",null,[r("div",Fu,[We(r("input",{"onUpdate:modelValue":H[0]||(H[0]=k=>s.value=k),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[Qe,s.value]]),r("span",ju,m(y.value),1)]),p.value.length===0?(c(),d("div",Bu,[...H[1]||(H[1]=[r("span",null,"No queries captured",-1),r("span",{class:"ss-empty-hint"},[Z(" Queries require "),r("code",null,"debug: true"),Z(" on your Lucid connections in "),r("code",null,"config/database.ts")],-1)])])):(c(),d("table",{key:1,ref_key:"tableRef",ref:$,class:"ss-dbg-table"},[r("thead",null,[r("tr",null,[(c(!0),d(L,null,X(a.value,k=>(c(),d("th",{key:k.key+k.type},m(k.label),1))),128))])]),r("tbody",null,[(c(!0),d(L,null,X(p.value,k=>(c(),d("tr",{key:k.id},[r("td",Nu,m(k.id),1),r("td",null,[r("span",{class:K(["ss-dbg-sql",{"ss-dbg-expanded":i(k.id)}]),role:"button",tabindex:"0",onClick:b=>o(k.id),onKeydown:Co(b=>o(k.id),["enter"])},m(k.sql),43,Hu),f.value[k.sql]>1?(c(),d("span",Uu," x"+m(f.value[k.sql]),1)):ne("",!0),k.inTransaction?(c(),d("span",Ku," TXN")):ne("",!0)]),r("td",{class:K(["ss-dbg-duration",g(k.duration)])},m(S(De)(k.duration)),3),r("td",null,[r("span",{class:K(`ss-dbg-method ss-dbg-method-${k.method.toLowerCase()}`)},m(k.method),3)]),r("td",Vu,m(k.model||"-"),1),r("td",{class:"ss-dbg-event-time",title:S(mt)(k.timestamp)},m(S(Be)(k.timestamp)),9,zu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Us=xe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=z(t.defaultExpanded),n=Y(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return os(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return os(t.value,t.maxLen||100)}),l=Y(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(c(),d("span",{key:0,class:K(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:K(`${t.classPrefix}-data-cell`)},[s.value?ne("",!0):(c(),d("span",{key:0,class:K(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:u[0]||(u[0]=p=>p.key==="Enter"&&o())},m(n.value),35)),s.value?(c(),d("div",{key:1,class:K(`${t.classPrefix}-data-full`),onClick:o},[r("button",{class:K(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Nt(i,["stop"])}," Copy ",2),r("pre",null,m(l.value),1)],2)):ne("",!0)],2))}}),Wu={class:"ss-dbg-search-bar"},Ju={class:"ss-dbg-summary"},Gu={key:0,class:"ss-dbg-empty"},Qu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Yu={class:"ss-dbg-event-name"},Xu=["href"],Zu=["viewBox","innerHTML"],ec={class:"ss-dbg-event-data"},tc=["title"],sc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=Y(()=>{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(p=>p.event.toLowerCase().includes(u)||p.data&&p.data.toLowerCase().includes(u))}),l=Y(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:o}=_t(()=>n.value);return(i,a)=>(c(),d("div",null,[r("div",Wu,[We(r("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[Qe,s.value]]),r("span",Ju,m(l.value),1)]),n.value.length===0?(c(),d("div",Gu,"No events captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:o,class:"ss-dbg-table"},[a[1]||(a[1]=r("thead",null,[r("tr",null,[r("th",null,"#"),r("th",null,"Event"),r("th",null,"Data"),r("th",null,"Time")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(n.value,u=>(c(),d("tr",{key:u.id},[r("td",Qu,m(u.id),1),r("td",Yu,[Z(m(u.event)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(c(),d("svg",{width:"12",height:"12",viewBox:S(Ce)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:S(Ce)["open-external"].elements.join("")},null,8,Zu))],8,Xu)):ne("",!0)]),r("td",ec,[pe(Us,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),r("td",{class:"ss-dbg-event-time",title:S(mt)(u.timestamp)},m(S(Be)(u.timestamp)),9,tc)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),nc={style:{position:"relative",height:"100%"}},lc={key:0,class:"ss-dbg-email-preview"},oc={class:"ss-dbg-email-preview-header"},rc={class:"ss-dbg-email-preview-meta"},ic={key:0},ac={key:0,class:"ss-dbg-empty"},uc=["srcdoc"],cc={key:2,class:"ss-dbg-empty"},dc={class:"ss-dbg-search-bar"},fc={class:"ss-dbg-summary"},hc={key:0,class:"ss-dbg-empty"},pc=["onClick"],gc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},bc=["title"],vc=["title"],mc={class:"ss-dbg-c-sql"},yc={class:"ss-dbg-c-muted"},_c={class:"ss-dbg-c-dim",style:{"text-align":"center"}},xc=["title"],wc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"EmailsTab",props:{data:{},dashboardPath:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),o=z(!1),i=Y(()=>{const y=t.data,g=y?(Array.isArray(y)?y:y.emails)||[]:[];if(!s.value.trim())return g;const $=s.value.toLowerCase();return g.filter(x=>x.subject.toLowerCase().includes($)||x.from.toLowerCase().includes($)||x.to.toLowerCase().includes($)||x.mailer&&x.mailer.toLowerCase().includes($))}),a=Y(()=>{const y=t.data;return`${(y?(Array.isArray(y)?y:y.emails)||[]:[]).length} emails`});function u(y){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"}[y]||""}async function p(y){if(n.value=y,l.value=y.html||null,!l.value&&y.id){o.value=!0;try{const g=t.debugEndpoint||"/admin/api/debug",$={};t.authToken&&($.Authorization=`Bearer ${t.authToken}`);const x=await fetch(`${g}/emails/${y.id}/preview`,{headers:$,credentials:t.authToken?"omit":"same-origin"});x.ok&&(l.value=await x.text())}catch{}finally{o.value=!1}}}function f(){n.value=null,l.value=null,o.value=!1}const{tableRef:_}=_t(()=>i.value);return(y,g)=>(c(),d("div",nc,[n.value?(c(),d("div",lc,[r("div",oc,[r("div",rc,[r("div",null,[g[1]||(g[1]=r("strong",null,"From:",-1)),Z(" "+m(n.value.from),1)]),r("div",null,[g[2]||(g[2]=r("strong",null,"To:",-1)),Z(" "+m(n.value.to),1)]),n.value.cc?(c(),d("div",ic,[g[3]||(g[3]=r("strong",null,"CC:",-1)),Z(" "+m(n.value.cc),1)])):ne("",!0),r("div",null,[g[4]||(g[4]=r("strong",null,"Subject:",-1)),Z(" "+m(n.value.subject),1)]),r("div",null,[g[5]||(g[5]=r("strong",null,"Status:",-1)),r("span",{class:K(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:f},"×")]),o.value?(c(),d("div",ac,"Loading preview...")):l.value?(c(),d("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,uc)):(c(),d("div",cc,"No HTML content"))])):ne("",!0),n.value?ne("",!0):(c(),d(L,{key:1},[r("div",dc,[We(r("input",{"onUpdate:modelValue":g[0]||(g[0]=$=>s.value=$),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[Qe,s.value]]),r("span",fc,m(a.value),1)]),i.value.length===0?(c(),d("div",hc,"No emails captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:_,class:"ss-dbg-table"},[g[6]||(g[6]=r("thead",null,[r("tr",null,[r("th",null,"#"),r("th",null,"From"),r("th",null,"To"),r("th",null,"Subject"),r("th",null,"Status"),r("th",null,"Mailer"),r("th",{title:"Attachments"},"📎"),r("th",null,"Time")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(i.value,$=>(c(),d("tr",{key:$.id,class:"ss-dbg-email-row",onClick:x=>p($)},[r("td",gc,m($.id),1),r("td",{class:"ss-dbg-c-secondary",title:$.from},m($.from),9,bc),r("td",{class:"ss-dbg-c-secondary",title:$.to},m($.to),9,vc),r("td",mc,m($.subject),1),r("td",null,[r("span",{class:K(["ss-dbg-email-status",u($.status)])},m($.status),3)]),r("td",yc,m($.mailer),1),r("td",_c,m($.attachmentCount>0?$.attachmentCount:"-"),1),r("td",{class:"ss-dbg-event-time",title:S(mt)($.timestamp)},m(S(Be)($.timestamp)),9,xc)],8,pc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),kc={class:"ss-dbg-search-bar"},$c={class:"ss-dbg-summary"},Cc={key:0,class:"ss-dbg-empty"},Tc={class:"ss-dbg-c-text"},Sc={class:"ss-dbg-c-muted"},Ec={class:"ss-dbg-c-sql"},Ac={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},Mc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=z(""),n=Y(()=>{const a=t.data,u=a?(Array.isArray(a)?a:a.routes)||[]:[];if(!s.value.trim())return u;const p=s.value.toLowerCase();return u.filter(f=>f.pattern.toLowerCase().includes(p)||f.handler.toLowerCase().includes(p)||f.method.toLowerCase().includes(p)||f.name&&f.name.toLowerCase().includes(p))}),l=Y(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function o(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=_t(()=>n.value);return(a,u)=>(c(),d("div",null,[r("div",kc,[We(r("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[Qe,s.value]]),r("span",$c,m(l.value),1)]),n.value.length===0?(c(),d("div",Cc,"No routes found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=r("thead",null,[r("tr",null,[r("th",null,"Method"),r("th",null,"Pattern"),r("th",null,"Name"),r("th",null,"Handler"),r("th",null,"Middleware")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(n.value,(p,f)=>(c(),d("tr",{key:f,class:K({"ss-dbg-current-route":o(p)})},[r("td",null,[r("span",{class:K(`ss-dbg-method ss-dbg-method-${p.method.toLowerCase()}`)},m(p.method),3)]),r("td",Tc,m(p.pattern),1),r("td",Sc,m(p.name||"-"),1),r("td",Ec,m(p.handler),1),r("td",Ac,m(p.middleware.length>0?p.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Pc={class:"ss-dbg-log-filters"},Lc=["onClick"],Oc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},Rc={class:"ss-dbg-search-bar"},Dc={class:"ss-dbg-summary"},Ic={key:0,class:"ss-dbg-empty"},Fc=["onClick"],jc=["title"],Bc=["title","onClick","onKeydown"],Nc={key:1,class:"ss-dbg-log-reqid-empty"},Hc={key:3,style:{width:"14px"}},Uc={class:"ss-dbg-log-msg"},Kc=["href"],Vc=["viewBox","innerHTML"],zc={key:0,class:"ss-dbg-log-detail"},qc=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),o=z(""),i=z(""),a=z(null),u=Y(()=>{const y=s.data;let g=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];if(g=za(g,l.value),i.value.trim()){const $=i.value.trim().toLowerCase();g=g.filter(x=>{const H=Ne(x);return H&&H.toLowerCase().includes($)})}if(o.value.trim()){const $=o.value.trim().toLowerCase();g=g.filter(x=>jn(x).toLowerCase().includes($))}return g}),p=Y(()=>{const y=s.data,g=y?(Array.isArray(y)?y:y.logs||y.entries)||[]:[];return`${u.value.length} of ${g.length} entries`});function f(y,g){g&&(a.value=a.value===y?null:y)}function _(y){i.value=y,n("filterByRequestId",y)}return(y,g)=>(c(),d("div",null,[r("div",Pc,[(c(!0),d(L,null,X(S(Va),$=>(c(),d("button",{key:$,type:"button",class:K(["ss-dbg-log-filter",{"ss-dbg-active":l.value===$}]),onClick:x=>l.value=$},m($),11,Lc))),128)),i.value?(c(),d("button",{key:0,type:"button",class:"ss-dbg-log-filter ss-dbg-active",onClick:g[0]||(g[0]=$=>i.value="")}," req: "+m(i.value.slice(0,8))+" x ",1)):ne("",!0),r("span",Oc,m(u.value.length)+" entries",1)]),r("div",Rc,[We(r("input",{"onUpdate:modelValue":g[1]||(g[1]=$=>o.value=$),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[Qe,o.value]]),We(r("input",{"onUpdate:modelValue":g[2]||(g[2]=$=>i.value=$),class:"ss-dbg-search ss-dbg-reqid-input",placeholder:"Filter by request ID...",type:"text"},null,512),[[Qe,i.value]]),r("span",Dc,m(p.value),1)]),u.value.length===0?(c(),d("div",Ic,"No log entries")):(c(!0),d(L,{key:1},X(u.value,($,x)=>(c(),d(L,{key:String($.id||x)},[r("div",{class:K(["ss-dbg-log-entry",{"ss-dbg-log-entry-expandable":!!S(Ye)($)}]),onClick:H=>f(x,!!S(Ye)($))},[r("span",{class:K(["ss-dbg-log-level",S(Io)(S(rs)($))])},m(S(rs)($).toUpperCase()),3),r("span",{class:"ss-dbg-log-time",title:S(yt)($)?S(mt)(S(yt)($)):""},m(S(yt)($)?S(Be)(S(yt)($)):"-"),9,jc),S(Ne)($)?(c(),d("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:S(Ne)($),onClick:Nt(H=>_(S(Ne)($)),["stop"]),onKeydown:Co(Nt(H=>_(S(Ne)($)),["stop"]),["enter"])},m(S(Ne)($).slice(0,8)),41,Bc)):(c(),d("span",Nc,"-")),S(Ye)($)?(c(),d("span",{key:2,class:K(["ss-dbg-log-expand-icon",{"ss-dbg-log-expand-icon-open":a.value===x}])},"▶",2)):(c(),d("span",Hc)),r("span",Uc,m(S(jn)($)),1),e.dashboardPath&&S(Ne)($)?(c(),d("a",{key:4,href:`${e.dashboardPath}#logs?requestId=${S(Ne)($)}`,target:"_blank",class:"ss-dbg-deeplink",onClick:g[3]||(g[3]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:S(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:S(Ce)["open-external"].elements.join("")},null,8,Vc))],8,Kc)):ne("",!0)],10,Fc),a.value===x&&S(Ye)($)?(c(),d("div",zc,[pe(Us,{value:S(Ye)($),"class-prefix":"ss-dbg","default-expanded":""},null,8,["value"])])):ne("",!0)],64))),128))]))}})},Symbol.toStringTag,{value:"Module"}));function Bn(e="",t){let s=null;return function(){return s||(s=new Dn({baseUrl:e,authToken:t})),s}}const Wc={key:0},Jc={class:"ss-related-logs-title"},Gc={class:"ss-related-logs-count"},Qc={style:{overflow:"auto"}},Yc=["onClick"],Xc=["title"],Zc=["title"],ed={key:1,class:"ss-log-reqid-empty"},td={key:3,style:{width:"14px"}},sd={class:"ss-log-msg"},nd={key:0,class:"ss-log-detail"},ld=xe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=z(null);function s(n,l){l&&(t.value=t.value===n?null:n)}return(n,l)=>e.logs.length>0?(c(),d("div",Wc,[r("div",Jc,[l[0]||(l[0]=Z(" Related Logs ",-1)),r("span",Gc,"("+m(e.logs.length)+")",1)]),r("div",Qc,[(c(!0),d(L,null,X(e.logs,(o,i)=>(c(),d(L,{key:o.id||i},[r("div",{class:K(["ss-log-entry",S(Ye)(o)?"ss-log-entry-expandable":""]),onClick:a=>s(i,!!S(Ye)(o))},[r("span",{class:K(["ss-log-level",S(Io)(S(rs)(o),"ss-log-level")])},m(S(rs)(o).toUpperCase()),3),r("span",{class:"ss-log-time",title:S(yt)(o)?S(mt)(S(yt)(o)):""},m(S(yt)(o)?S(Be)(S(yt)(o)):"-"),9,Xc),S(Ne)(o)?(c(),d("span",{key:0,class:"ss-log-reqid",title:S(Ne)(o)},m(S(Ne)(o).slice(0,8)),9,Zc)):(c(),d("span",ed,"--")),S(Ye)(o)?(c(),d("span",{key:2,class:K(["ss-log-expand-icon",t.value===i?"ss-log-expand-icon-open":""])},"▶",2)):(c(),d("span",td)),r("span",sd,m(S(jn)(o)),1)],10,Yc),t.value===i&&S(Ye)(o)?(c(),d("div",nd,[pe(Us,{value:S(Ye)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):ne("",!0)],64))),128))])])):ne("",!0)}}),od={key:0,class:"ss-dbg-empty"},rd={class:"ss-dbg-empty"},id={key:2,class:"ss-dbg-tl-detail-wrapper"},ad={class:"ss-dbg-tl-detail-header"},ud={class:"ss-dbg-tl-detail-url"},cd={class:"ss-dbg-tl-meta"},dd={class:"ss-dbg-tl-legend"},fd={id:"ss-dbg-tl-waterfall"},hd={key:0,class:"ss-dbg-empty"},pd=["title"],gd={class:"ss-dbg-tl-track"},bd=["title"],vd={class:"ss-dbg-tl-dur"},md={key:0,class:"ss-dbg-tl-warnings"},yd={class:"ss-dbg-tl-legend"},_d={id:"ss-dbg-tl-waterfall"},xd={key:0,class:"ss-dbg-empty"},wd=["title"],kd={class:"ss-dbg-tl-track"},$d=["title"],Cd={class:"ss-dbg-tl-dur"},Td={key:0,class:"ss-dbg-tl-warnings"},Sd={key:3,class:"ss-dbg-empty"},Ed={class:"ss-dbg-search-bar"},Ad={class:"ss-dbg-summary"},Md={key:0,class:"ss-dbg-empty"},Pd=["onClick"],Ld={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Od={class:"ss-dbg-c-text"},Rd=["href"],Dd=["viewBox","innerHTML"],Id={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Fd=["title"],jd=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(""),n=z(null),l=z(null),o=z(!1),i=z(null),a=Bn(t.baseUrl||"",t.authToken),u=Y(()=>{const Q=t.data;if(!Q)return[];const ie=Array.isArray(Q)?Q:Q.traces||[];if(!s.value.trim())return ie;const j=s.value.toLowerCase();return ie.filter(ce=>ce.url.toLowerCase().includes(j)||ce.method.toLowerCase().includes(j)||String(ce.statusCode).includes(j))}),p={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"#525252"},f={request:"Request",middleware:"Middleware",db:"Database",view:"View",mail:"Mail",event:"Event",custom:"Custom"};function _(Q){n.value===Q.id?(n.value=null,l.value=null,i.value=null):(n.value=Q.id,$(Q.id))}function y(){n.value=null,l.value=null,i.value=null}let g=null;async function $(Q){g&&g.abort(),g=new AbortController,o.value=!0,i.value=null,l.value=null;const ie=t.debugEndpoint||"/admin/api/debug";try{const ce=await a().get(`${ie}/traces/${Q}`);l.value=ce}catch(j){if(j instanceof Error&&j.name==="AbortError")return;i.value=j instanceof Error?j.message:"Failed to load trace"}finally{o.value=!1}}const x=Y(()=>l.value?.spans||[]),H=Y(()=>l.value?.warnings||[]);function k(Q,ie){const j=ie||1,ce=j>0?Q.startOffset/j*100:0,ct=j>0?Math.max(Q.duration/j*100,.5):.5;return{left:`${ce}%`,width:`${ct}%`,background:p[Q.category]||p.custom}}const{tableRef:b}=_t(()=>u.value),w=z(null),R=z(null),C=z(null),N=z(null);let B=null;const U=Y(()=>l.value?l.value.logs||[]:[]);rt([n,l],async()=>{B?.(),B=null,l.value&&U.value.length>0&&(await gn(),w.value&&R.value&&C.value&&N.value&&(B=Ua({container:w.value,handle:R.value,topPane:C.value,bottomPane:N.value,storageKey:"ss-dbg-timeline-split"})))}),Es(()=>{g&&g.abort(),B?.()});function te(Q){return Fn(Q,"ss-dbg")}return(Q,ie)=>(c(),d("div",null,[n.value!==null?(c(),d(L,{key:0},[o.value?(c(),d("div",od,"Loading trace detail...")):i.value?(c(),d(L,{key:1},[r("div",{class:"ss-dbg-tl-detail-header"},[r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back")]),r("div",rd,"Error: "+m(i.value),1)],64)):l.value?(c(),d("div",id,[r("div",ad,[r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back"),r("span",{class:K(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),r("span",ud,m(l.value.url),1),r("span",{class:K(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),r("span",cd,m(S(De)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),U.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:w,class:"ss-dbg-split-container"},[r("div",{ref_key:"splitTopRef",ref:C,class:"ss-dbg-split-top"},[r("div",dd,[(c(),d(L,null,X(p,(j,ce)=>r("span",{key:ce,class:"ss-dbg-tl-legend-item"},[r("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:j})},null,4),Z(" "+m(f[ce]||ce),1)])),64))]),r("div",fd,[x.value.length===0?(c(),d("div",hd," No spans captured for this request ")):ne("",!0),(c(!0),d(L,null,X(x.value,j=>(c(),d("div",{key:j.id,class:"ss-dbg-tl-row"},[r("span",{class:"ss-dbg-tl-label",title:j.label},m(j.label),9,pd),r("span",gd,[r("span",{class:K(`ss-dbg-tl-bar ss-dbg-tl-bar-${j.category}`),style:pt(k(j,l.value.totalDuration)),title:`${j.label}: ${S(De)(j.duration)}`},null,14,bd)]),r("span",vd,m(S(De)(j.duration)),1)]))),128))]),H.value.length>0?(c(),d("div",md,[ie[2]||(ie[2]=r("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(H.value,(j,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(j),1))),128))])):ne("",!0)],512),r("div",{ref_key:"splitHandleRef",ref:R,class:"ss-dbg-split-handle"},null,512),r("div",{ref_key:"splitBottomRef",ref:N,class:"ss-dbg-split-bottom"},[pe(ld,{logs:U.value},null,8,["logs"])],512)],512)):(c(),d(L,{key:1},[r("div",yd,[(c(),d(L,null,X(p,(j,ce)=>r("span",{key:ce,class:"ss-dbg-tl-legend-item"},[r("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:j})},null,4),Z(" "+m(f[ce]||ce),1)])),64))]),r("div",_d,[x.value.length===0?(c(),d("div",xd," No spans captured for this request ")):ne("",!0),(c(!0),d(L,null,X(x.value,j=>(c(),d("div",{key:j.id,class:"ss-dbg-tl-row"},[r("span",{class:"ss-dbg-tl-label",title:j.label},m(j.label),9,wd),r("span",kd,[r("span",{class:K(`ss-dbg-tl-bar ss-dbg-tl-bar-${j.category}`),style:pt(k(j,l.value.totalDuration)),title:`${j.label}: ${S(De)(j.duration)}`},null,14,$d)]),r("span",Cd,m(S(De)(j.duration)),1)]))),128))]),H.value.length>0?(c(),d("div",Td,[ie[3]||(ie[3]=r("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(H.value,(j,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(j),1))),128))])):ne("",!0)],64))])):(c(),d("div",Sd,"Loading trace detail..."))],64)):(c(),d(L,{key:1},[r("div",Ed,[We(r("input",{"onUpdate:modelValue":ie[0]||(ie[0]=j=>s.value=j),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[Qe,s.value]]),r("span",Ad,m(u.value.length)+" traces",1)]),u.value.length===0?(c(),d("div",Md,"No traces captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[ie[4]||(ie[4]=r("thead",null,[r("tr",null,[r("th",null,"#"),r("th",null,"Method"),r("th",null,"URL"),r("th",null,"Status"),r("th",null,"Duration"),r("th",null,"Spans"),r("th",null,"Time")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(u.value,j=>(c(),d("tr",{key:j.id,class:"ss-dbg-email-row",onClick:ce=>_(j)},[r("td",Ld,m(j.id),1),r("td",null,[r("span",{class:K(`ss-dbg-method ss-dbg-method-${j.method.toLowerCase()}`)},m(j.method),3)]),r("td",Od,[Z(m(j.url)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#requests?id=${j.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:ie[1]||(ie[1]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:S(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:S(Ce)["open-external"].elements.join("")},null,8,Dd))],8,Rd)):ne("",!0)]),r("td",null,[r("span",{class:K(`ss-dbg-status ss-dbg-status-${Math.floor(j.statusCode/100)}xx`)},m(j.statusCode),3)]),r("td",{class:K(["ss-dbg-duration",te(j.totalDuration)])},m(S(De)(j.totalDuration)),3),r("td",Id,m(j.spanCount),1),r("td",{class:"ss-dbg-event-time",title:S(mt)(j.timestamp)},m(S(Be)(j.timestamp)),9,Fd)],8,Pd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Bd={class:"ss-dbg-cache-stats"},Nd={class:"ss-dbg-cache-stat"},Hd={class:"ss-dbg-cache-stat-value"},Ud={class:"ss-dbg-cache-stat"},Kd={class:"ss-dbg-cache-stat-value"},Vd={class:"ss-dbg-cache-stat"},zd={class:"ss-dbg-cache-stat-value"},qd={class:"ss-dbg-cache-stat"},Wd={class:"ss-dbg-cache-stat-value"},Jd={class:"ss-dbg-cache-stat"},Gd={class:"ss-dbg-cache-stat-value"},Qd={class:"ss-dbg-search-bar"},Yd={class:"ss-dbg-summary"},Xd={key:0,class:"ss-dbg-cache-detail"},Zd={style:{"margin-top":"8px"}},ef={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},tf={key:0},sf={key:0,class:"ss-dbg-empty"},nf=["onClick"],lf={class:"ss-dbg-c-sql"},of={class:"ss-dbg-c-muted"},rf={class:"ss-dbg-c-dim"},af={class:"ss-dbg-c-dim"},uf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=z(""),n=z(null),l=Y(()=>t.data||{}),o=Y(()=>l.value.stats||{}),i=Y(()=>{const u=l.value.keys||[];if(!s.value.trim())return u;const p=s.value.toLowerCase();return u.filter(f=>f.key.toLowerCase().includes(p))}),{tableRef:a}=_t(()=>i.value);return(u,p)=>(c(),d("div",null,[r("div",Bd,[r("span",Nd,[p[2]||(p[2]=r("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),r("span",Hd,m((o.value.hitRate||0).toFixed(0))+"%",1)]),r("span",Ud,[p[3]||(p[3]=r("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),r("span",Kd,m(o.value.totalHits||0),1)]),r("span",Vd,[p[4]||(p[4]=r("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),r("span",zd,m(o.value.totalMisses||0),1)]),r("span",qd,[p[5]||(p[5]=r("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),r("span",Wd,m(o.value.keyCount||0),1)]),r("span",Jd,[p[6]||(p[6]=r("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),r("span",Gd,m((o.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),r("div",Qd,[We(r("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>s.value=f),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[Qe,s.value]]),r("span",Yd,m(i.value.length)+" keys",1)]),n.value?(c(),d("div",Xd,[r("button",{type:"button",class:"ss-dbg-btn-clear",onClick:p[1]||(p[1]=f=>n.value=null)}," ← Back "),r("div",Zd,[r("strong",null,m(n.value.key),1),r("span",ef,m(n.value.type)+" · TTL: "+m(S(Po)(n.value.ttl)),1)]),n.value.value!==void 0?(c(),d("pre",tf,m(JSON.stringify(n.value.value,null,2)),1)):ne("",!0)])):(c(),d(L,{key:1},[i.value.length===0?(c(),d("div",sf,"No cache keys found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[p[7]||(p[7]=r("thead",null,[r("tr",null,[r("th",null,"Key"),r("th",null,"Type"),r("th",null,"TTL"),r("th",null,"Size")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(i.value,f=>(c(),d("tr",{key:f.key,class:"ss-dbg-email-row",onClick:_=>n.value=f},[r("td",lf,m(f.key),1),r("td",of,m(f.type),1),r("td",rf,m(S(Po)(f.ttl)),1),r("td",af,m(S(Da)(f.size)),1)],8,nf))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),cf={class:"ss-dbg-job-stats-area"},df={class:"ss-dbg-job-stats"},ff={class:"ss-dbg-job-stat"},hf={class:"ss-dbg-job-stat-value"},pf={class:"ss-dbg-job-stat"},gf={class:"ss-dbg-job-stat-value"},bf={class:"ss-dbg-job-stat"},vf={class:"ss-dbg-job-stat-value"},mf={class:"ss-dbg-job-stat"},yf={class:"ss-dbg-job-stat-value"},_f={class:"ss-dbg-job-stat"},xf={class:"ss-dbg-job-stat-value ss-dbg-c-red"},wf={class:"ss-dbg-log-filters"},kf=["onClick"],$f={key:0,class:"ss-dbg-empty"},Cf={class:"ss-dbg-c-dim"},Tf={class:"ss-dbg-c-sql"},Sf={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Ef={class:"ss-dbg-duration"},Af=["title"],Mf=["onClick"],Pf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=z("all"),o=Y(()=>s.data||{}),i=Y(()=>o.value.stats||o.value.overview||{}),a=Y(()=>{const f=o.value.jobs||[];return l.value==="all"?f:f.filter(_=>_.status===l.value)});function u(f){n("retryJob",f)}const{tableRef:p}=_t(()=>a.value);return(f,_)=>(c(),d("div",null,[r("div",cf,[r("div",df,[r("span",ff,[_[0]||(_[0]=r("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),r("span",hf,m(i.value.active??0),1)]),r("span",pf,[_[1]||(_[1]=r("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),r("span",gf,m(i.value.waiting??0),1)]),r("span",bf,[_[2]||(_[2]=r("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),r("span",vf,m(i.value.delayed??0),1)]),r("span",mf,[_[3]||(_[3]=r("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),r("span",yf,m(i.value.completed??0),1)]),r("span",_f,[_[4]||(_[4]=r("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),r("span",xf,m(i.value.failed??0),1)])]),r("div",wf,[(c(!0),d(L,null,X(S(Xa),y=>(c(),d("button",{key:y,class:K(["ss-dbg-job-filter",{"ss-dbg-active":l.value===y}]),onClick:g=>l.value=y},m(y),11,kf))),128))])]),a.value.length===0?(c(),d("div",$f,"No jobs found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:p,class:"ss-dbg-table"},[_[5]||(_[5]=r("thead",null,[r("tr",null,[r("th",null,"ID"),r("th",null,"Name"),r("th",null,"Status"),r("th",null,"Payload"),r("th",null,"Tries"),r("th",null,"Duration"),r("th",null,"Time"),r("th")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(a.value,y=>(c(),d("tr",{key:y.id},[r("td",Cf,m(y.id),1),r("td",Tf,m(y.name),1),r("td",null,[r("span",{class:K(`ss-dbg-badge ${S(Za)(y.status)}`)},m(y.status),3)]),r("td",null,[pe(Us,{value:y.payload||y.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),r("td",Sf,m(y.attempts),1),r("td",Ef,m(y.duration!==null?S(De)(y.duration):"-"),1),r("td",{class:"ss-dbg-event-time",title:S(mt)(y.timestamp||y.createdAt)},m(S(Be)(y.timestamp||y.createdAt)),9,Af),r("td",null,[y.status==="failed"?(c(),d("button",{key:0,class:"ss-dbg-retry-btn",onClick:g=>u(y.id)}," Retry ",8,Mf)):ne("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Lf={key:0,class:"ss-dbg-empty"},Of={class:"ss-dbg-search-bar"},Rf={class:"ss-dbg-config-search-wrap"},Df=["title"],If={class:"ss-dbg-summary"},Ff={key:0,class:"ss-dbg-empty"},jf={key:1,class:"ss-dbg-config-sections"},Bf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},Nf={class:"ss-dbg-config-key"},Hf={key:0,class:"ss-dbg-config-match"},Uf={key:0,class:"ss-dbg-config-redacted"},Kf={key:0,class:"ss-dbg-config-match"},Vf=["onClick"],zf=["onClick"],qf={class:"ss-dbg-config-toggle"},Wf={class:"ss-dbg-config-key"},Jf={key:0,class:"ss-dbg-config-match"},Gf={class:"ss-dbg-config-count"},Qf={key:0,class:"ss-dbg-config-table-wrap"},Yf={class:"ss-dbg-table"},Xf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Zf={key:0,class:"ss-dbg-config-match"},eh={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},th={key:0,class:"ss-dbg-redacted-wrap"},sh={key:0,class:"ss-dbg-config-match"},nh=["onClick"],lh={key:0,class:"ss-dbg-empty"},oh={key:1,class:"ss-dbg-config-table-wrap"},rh={class:"ss-dbg-table"},ih={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},ah={key:0,class:"ss-dbg-config-match"},uh={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},ch={key:0,class:"ss-dbg-redacted-wrap"},dh={key:0,class:"ss-dbg-config-match"},fh=["onClick"],hh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=z("app"),n=z(""),l=z(""),o=z(!1),i=z(new Set),a=z(null);let u=null;rt(n,C=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=C.trim().toLowerCase()},200)});function p(C){return mu(C)}function f(C){if(C==null)return"null";if(typeof C=="boolean"||typeof C=="number")return String(C);if(typeof C=="string")return C;if(Array.isArray(C))return JSON.stringify(C);try{return JSON.stringify(C)}catch{return String(C)}}function _(C){return C==null?"ss-dbg-config-val-null":typeof C=="boolean"?C?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof C=="number"?"ss-dbg-config-val-number":Array.isArray(C)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function y(C,N){navigator.clipboard.writeText(C).then(()=>{a.value=N,setTimeout(()=>{a.value===N&&(a.value=null)},1500)})}function g(){const C=s.value==="app"?t.data?.app:t.data?.env;C&&y(JSON.stringify(C,null,2),"__all_json__")}function $(C,N){return gu(C,N,l.value)}function x(C){if(!l.value)return[{text:C,match:!1}];const N=l.value,B=C.toLowerCase(),U=[];let te=0,Q=B.indexOf(N);for(;Q!==-1;)Q>te&&U.push({text:C.slice(te,Q),match:!1}),U.push({text:C.slice(Q,Q+N.length),match:!0}),te=Q+N.length,Q=B.indexOf(N,te);return te<C.length&&U.push({text:C.slice(te),match:!1}),U.length?U:[{text:C,match:!1}]}const H=Y(()=>{const C=t.data?.app;if(!C)return[];const N=[];for(const[B,U]of Object.entries(C))if(U!==null&&typeof U=="object"&&!Array.isArray(U)){const Q=Object.entries(U).filter(([ie,j])=>$(ie,j)).map(([ie,j])=>({key:ie,value:j,fullKey:`${B}.${ie}`}));(Q.length>0||!l.value)&&N.push({key:B,entries:Q,isFlat:!1})}else $(B,U)&&N.push({key:B,entries:[{key:B,value:U,fullKey:B}],isFlat:!0});return N}),k=Y(()=>{const C=t.data?.env;return C?Object.entries(C).filter(([N,B])=>$(N,B)).map(([N,B])=>({key:N,value:B})):[]});function b(C){i.value.has(C)?i.value.delete(C):i.value.add(C)}function w(){for(const C of H.value)C.isFlat||i.value.add(C.key)}function R(){i.value.clear()}return rt(l,C=>{if(C)for(const N of H.value)!N.isFlat&&N.entries.length>0&&i.value.add(N.key)}),(C,N)=>(c(),d("div",null,[e.data?(c(),d(L,{key:1},[r("div",Of,[r("button",{class:K(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:N[0]||(N[0]=B=>s.value="app")}," App Config ",2),r("button",{class:K(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:N[1]||(N[1]=B=>s.value="env")}," Environment ",2),r("div",Rf,[We(r("input",{"onUpdate:modelValue":N[2]||(N[2]=B=>n.value=B),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[Qe,n.value]])]),s.value==="app"&&!l.value?(c(),d(L,{key:0},[r("button",{class:"ss-dbg-btn-clear",onClick:w},"Expand All"),r("button",{class:"ss-dbg-btn-clear",onClick:R},"Collapse All")],64)):ne("",!0),r("button",{class:K(["ss-dbg-btn-clear",{"ss-dbg-active":o.value}]),onClick:N[3]||(N[3]=B=>o.value=!o.value),title:o.value?"Hide redacted values":"Show redacted values"},m(o.value?"Hide Secrets":"Show Secrets"),11,Df),r("button",{class:"ss-dbg-btn-clear",onClick:g,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),r("span",If,[s.value==="app"?(c(),d(L,{key:0},[Z(m(H.value.length)+" sections ",1)],64)):(c(),d(L,{key:1},[Z(m(k.value.length)+" variables ",1)],64))])]),s.value==="app"?(c(),d(L,{key:0},[H.value.length===0?(c(),d("div",Ff,m(l.value?"No matching config entries":"No app config data"),1)):(c(),d("div",jf,[(c(!0),d(L,null,X(H.value,B=>(c(),d("div",{key:B.key,class:"ss-dbg-config-section"},[B.isFlat?(c(),d("div",Bf,[r("span",Nf,[(c(!0),d(L,null,X(x(B.key),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",Hf,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))]),N[7]||(N[7]=r("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),p(B.key)&&!o.value?(c(),d("span",Uf,[...N[6]||(N[6]=[r("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(c(),d("span",{key:1,class:K(_(B.entries[0].value))},[(c(!0),d(L,null,X(x(f(B.entries[0].value)),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",Kf,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))],2)),r("button",{class:K(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===B.key}]),onClick:Nt(U=>y(f(B.entries[0].value),B.key),["stop"]),title:"Copy value"},m(a.value===B.key?"✓":"⎘"),11,Vf)])):(c(),d(L,{key:1},[r("div",{class:"ss-dbg-config-section-header",onClick:U=>b(B.key)},[r("span",qf,m(i.value.has(B.key)?"▼":"▶"),1),r("span",Wf,[(c(!0),d(L,null,X(x(B.key),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",Jf,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))]),r("span",Gf,m(B.entries.length)+" keys",1)],8,zf),i.value.has(B.key)?(c(),d("div",Qf,[r("table",Yf,[N[9]||(N[9]=r("thead",null,[r("tr",null,[r("th",null,"Key"),r("th",null,"Value"),r("th",{style:{width:"40px"}})])],-1)),r("tbody",null,[(c(!0),d(L,null,X(B.entries,U=>(c(),d("tr",{key:U.fullKey},[r("td",Xf,[(c(!0),d(L,null,X(x(U.key),(te,Q)=>(c(),d(L,{key:Q},[te.match?(c(),d("span",Zf,m(te.text),1)):(c(),d(L,{key:1},[Z(m(te.text),1)],64))],64))),128))]),r("td",eh,[p(U.key)&&!o.value?(c(),d("span",th,[N[8]||(N[8]=Z(" •••••••• ",-1)),r("button",{class:"ss-dbg-redacted-reveal",onClick:N[4]||(N[4]=te=>o.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:K(_(U.value))},[(c(!0),d(L,null,X(x(f(U.value)),(te,Q)=>(c(),d(L,{key:Q},[te.match?(c(),d("span",sh,m(te.text),1)):(c(),d(L,{key:1},[Z(m(te.text),1)],64))],64))),128))],2))]),r("td",null,[r("button",{class:K(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===U.fullKey}]),onClick:te=>y(f(U.value),U.fullKey),title:"Copy value"},m(a.value===U.fullKey?"✓":"⎘"),11,nh)])]))),128))])])])):ne("",!0)],64))]))),128))]))],64)):(c(),d(L,{key:1},[k.value.length===0?(c(),d("div",lh,m(l.value?"No matching environment variables":"No environment data"),1)):(c(),d("div",oh,[r("table",rh,[N[11]||(N[11]=r("thead",null,[r("tr",null,[r("th",null,"Variable"),r("th",null,"Value"),r("th",{style:{width:"40px"}})])],-1)),r("tbody",null,[(c(!0),d(L,null,X(k.value,B=>(c(),d("tr",{key:B.key},[r("td",ih,[(c(!0),d(L,null,X(x(B.key),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",ah,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))]),r("td",uh,[p(B.key)&&!o.value?(c(),d("span",ch,[N[10]||(N[10]=Z(" •••••••• ",-1)),r("button",{class:"ss-dbg-redacted-reveal",onClick:N[5]||(N[5]=U=>o.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:K(_(B.value))},[(c(!0),d(L,null,X(x(f(B.value)),(U,te)=>(c(),d(L,{key:te},[U.match?(c(),d("span",dh,m(U.text),1)):(c(),d(L,{key:1},[Z(m(U.text),1)],64))],64))),128))],2))]),r("td",null,[r("button",{class:K(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${B.key}`}]),onClick:U=>y(f(B.value),`env-${B.key}`),title:"Copy value"},m(a.value===`env-${B.key}`?"✓":"⎘"),11,fh)])]))),128))])])]))],64))],64)):(c(),d("div",Lf,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),ph={key:0,class:"ss-dbg-empty"},gh={key:1,class:"ss-dbg-empty"},bh={key:2,class:"ss-dbg-empty"},vh={key:0,style:{background:"var(--ss-amber-bg)",color:"var(--ss-amber-fg)",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",marginBottom:"12px",lineHeight:"1.5"}},mh={class:"ss-dbg-info-cards"},yh={class:"ss-dbg-info-card-label"},_h={class:"ss-dbg-info-card-value"},xh={key:1,class:"ss-dbg-empty"},wh={key:2,class:"ss-dbg-table"},kh={style:{"font-family":"monospace","font-size":"11px"}},$h={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},Ch={class:"ss-dbg-c-red"},Th={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},Sh={style:{"font-size":"11px"}},Eh=["onClick"],Ah=["onClick"],Mh={key:3,class:"ss-dbg-empty"},Ph={key:4,class:"ss-dbg-table"},Lh={class:"ss-dbg-bar"},Oh={class:"ss-dbg-bar-track"},Rh={key:5,class:"ss-dbg-empty"},Dh={key:6,class:"ss-dbg-table"},Ih={class:"ss-dbg-c-dim"},Fh={key:7,class:"ss-dbg-empty"},jh={key:8,class:"ss-dbg-table"},Bh={class:"ss-dbg-c-dim"},Nh={class:"ss-dbg-table"},Hh={style:{"font-family":"monospace","font-size":"11px"}},Uh={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},Kh={style:{"font-family":"monospace","font-size":"11px"}},Vh={class:"ss-dbg-table"},zh={class:"ss-dbg-table"},qh={style:{"font-family":"monospace","font-size":"11px"}},Wh={style:{"font-family":"monospace","font-size":"11px"}},Jh={style:{"font-family":"monospace","font-size":"11px"}},Gh={style:{"font-size":"11px"}},Qh=3e3,Yh=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=z(null),n=z(!0),l=z(null);let o=null;const i=Bn(t.baseUrl||"",t.authToken);async function a(){const k=t.debugEndpoint||"/admin/api/debug";try{const w=await i().get(`${k}/diagnostics`);s.value=w,l.value=null,n.value=!1}catch(b){if(b instanceof Bs){l.value=b,n.value=!1,o&&(clearInterval(o),o=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}Ct(()=>{n.value=!0,l.value=null,a(),o=setInterval(a,Qh)}),Es(()=>{o&&(clearInterval(o),o=null)});const u=z(new Set);function p(k){u.value.has(k)?u.value.delete(k):u.value.add(k)}function f(k){const b=hu(k);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function _(k){return k.debounceMs!==void 0?`${De(k.debounceMs)} (debounce)`:k.intervalMs!==void 0?De(k.intervalMs):"-"}const y=Y(()=>s.value||t.data||null),g=Y(()=>y.value||{}),$=Y(()=>g.value.buffers?Object.entries(g.value.buffers).map(([k,b])=>({name:k.charAt(0).toUpperCase()+k.slice(1),...b,percent:cu(b.current,b.max)})):[]),x=Y(()=>g.value.timers?Object.entries(g.value.timers).map(([k,b])=>({key:k,label:lu(k),...b,interval:_(b)})):[]),H=Y(()=>{if(!g.value)return[];const k=[];if(g.value.transmit&&k.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,w]of Object.entries(g.value.integrations))k.push({key:b,label:ru(b),status:iu(w),details:au(b,w)});return k});return(k,b)=>(c(),d("div",null,[n.value&&!y.value?(c(),d("div",ph,"Loading diagnostics...")):l.value?(c(),d("div",gh,"Error: "+m(l.value.message),1)):y.value?(c(),d(L,{key:3},[g.value.collectors?.some(w=>w.name==="db_pool"||w.name==="app")&&Array.isArray(g.value.lucidDebugConnections)&&g.value.lucidDebugConnections.length===0?(c(),d("div",vh,[...b[4]||(b[4]=[r("strong",null,"Query capture disabled",-1),Z(" — no Lucid connections have ",-1),r("code",{style:{"font-size":"11px"}},"debug: true",-1),Z(". Add it to your database connection in ",-1),r("code",{style:{"font-size":"11px"}},"config/database.ts",-1),Z(" to see queries in the Queries panel. ",-1)])])):ne("",!0),b[42]||(b[42]=r("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),r("div",mh,[(c(!0),d(L,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:S(Oa)(g.value.package?.uptime)},{label:"Renderer",value:g.value.devToolbar?.renderer||"preact"}],w=>(c(),d("div",{key:w.label,class:"ss-dbg-info-card"},[r("span",yh,m(w.label),1),r("span",_h,m(w.value),1)]))),128))]),b[43]||(b[43]=r("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),g.value.collectors?.length?(c(),d("table",wh,[b[5]||(b[5]=r("thead",null,[r("tr",null,[r("th",null,"Collector"),r("th",null,"Status"),r("th",null,"Last Error"),r("th",null,"Config")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(g.value.collectors,w=>(c(),d("tr",{key:w.name},[r("td",null,[r("span",kh,m(w.name),1),w.label&&w.label!==w.name?(c(),d("span",$h,m(w.label),1)):ne("",!0)]),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(w.status)])},null,2),Z(" "+m(w.status),1)]),r("td",Ch,[w.lastError?(c(),d(L,{key:0},[Z(m(w.lastError)+" ",1),r("span",Th,m(S(Be)(w.lastErrorAt??0)),1)],64)):(c(),d(L,{key:1},[Z("-")],64))]),r("td",Sh,[Object.keys(w.config||{}).length?(c(!0),d(L,{key:0},X(S(uu)(w.config),R=>(c(),d("span",{key:R.key,style:{"margin-right":"8px"}},[Z(m(R.key)+"=",1),R.secret&&!u.value.has(`collector-${w.name}-${R.key}`)?(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:C=>p(`collector-${w.name}-${R.key}`)},"••••••••",8,Eh)):(c(),d(L,{key:1},[r("span",null,m(R.value),1),R.secret?(c(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:C=>p(`collector-${w.name}-${R.key}`)}," Hide ",8,Ah)):ne("",!0)],64))]))),128)):(c(),d(L,{key:1},[Z("-")],64))])]))),128))])])):(c(),d("div",xh,"No collectors")),b[44]||(b[44]=r("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),$.value.length?(c(),d("table",Ph,[b[6]||(b[6]=r("thead",null,[r("tr",null,[r("th",null,"Buffer"),r("th",null,"Usage"),r("th",null,"Fill %")])],-1)),r("tbody",null,[(c(!0),d(L,null,X($.value,w=>(c(),d("tr",{key:w.name},[r("td",null,m(w.name),1),r("td",null,m(w.current.toLocaleString())+" / "+m(w.max.toLocaleString()),1),r("td",null,[r("div",Lh,[r("div",Oh,[r("div",{class:K(["ss-dbg-bar-fill",w.percent>=100?"ss-dbg-bar-fill-warn":""]),style:pt({width:w.percent+"%"})},null,6)]),r("span",{class:K(["ss-dbg-bar-pct",w.percent>=100?"ss-dbg-bar-pct-warn":""])},m(w.percent)+"%",3)])])]))),128))])])):(c(),d("div",Mh,"No buffer data")),b[45]||(b[45]=r("div",{class:"ss-dbg-internals-title"},"Timers",-1)),x.value.length?(c(),d("table",Dh,[b[7]||(b[7]=r("thead",null,[r("tr",null,[r("th",null,"Timer"),r("th",null,"Status"),r("th",null,"Interval")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(x.value,w=>(c(),d("tr",{key:w.key},[r("td",null,m(w.label),1),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(w.active?"active":"inactive")])},null,2),Z(" "+m(w.active?"active":"inactive"),1)]),r("td",Ih,m(w.interval),1)]))),128))])])):(c(),d("div",Rh,"No timer data")),b[46]||(b[46]=r("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),H.value.length?(c(),d("table",jh,[b[8]||(b[8]=r("thead",null,[r("tr",null,[r("th",null,"Integration"),r("th",null,"Status"),r("th",null,"Details")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(H.value,w=>(c(),d("tr",{key:w.key},[r("td",null,m(w.label),1),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(w.status)])},null,2),Z(" "+m(w.status),1)]),r("td",Bh,m(w.details),1)]))),128))])])):(c(),d("div",Fh,"No integration data")),g.value.storage?(c(),d(L,{key:9},[b[17]||(b[17]=r("div",{class:"ss-dbg-internals-title"},"Storage",-1)),r("table",Nh,[b[15]||(b[15]=r("thead",null,[r("tr",null,[r("th",null,"Metric"),r("th",null,"Value")])],-1)),r("tbody",null,[r("tr",null,[b[9]||(b[9]=r("td",null,"Status",-1)),r("td",null,[r("span",{class:K(["ss-dbg-dot",f(g.value.storage.ready?"ready":"unavailable")])},null,2),Z(" "+m(g.value.storage.ready?"ready":"not ready"),1)])]),r("tr",null,[b[10]||(b[10]=r("td",null,"DB Path",-1)),r("td",Hh,m(g.value.storage.dbPath),1)]),r("tr",null,[b[11]||(b[11]=r("td",null,"File Size",-1)),r("td",null,m(g.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),r("tr",null,[b[12]||(b[12]=r("td",null,"WAL Size",-1)),r("td",null,m(g.value.storage.walSizeMb.toFixed(1))+" MB",1)]),r("tr",null,[b[13]||(b[13]=r("td",null,"Retention",-1)),r("td",null,m(g.value.storage.retentionDays)+" days",1)]),r("tr",null,[b[14]||(b[14]=r("td",null,"Last Cleanup",-1)),r("td",null,m(S(Be)(g.value.storage.lastCleanupAt??0)),1)])])]),g.value.storage.tables?.length?(c(),d("table",Uh,[b[16]||(b[16]=r("thead",null,[r("tr",null,[r("th",null,"Table"),r("th",null,"Rows")])],-1)),r("tbody",null,[(c(!0),d(L,null,X(g.value.storage.tables,w=>(c(),d("tr",{key:w.name},[r("td",Kh,m(w.name),1),r("td",null,m(w.rowCount.toLocaleString()),1)]))),128))])])):ne("",!0)],64)):ne("",!0),b[47]||(b[47]=r("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),r("table",Vh,[b[25]||(b[25]=r("thead",null,[r("tr",null,[r("th",null,"Setting"),r("th",null,"Value")])],-1)),r("tbody",null,[r("tr",null,[b[18]||(b[18]=r("td",null,"intervalMs",-1)),r("td",null,m(g.value.config?.intervalMs),1)]),r("tr",null,[b[19]||(b[19]=r("td",null,"transport",-1)),r("td",null,m(g.value.config?.transport),1)]),r("tr",null,[b[20]||(b[20]=r("td",null,"channelName",-1)),r("td",null,m(g.value.config?.channelName),1)]),r("tr",null,[b[21]||(b[21]=r("td",null,"endpoint",-1)),r("td",null,m(g.value.config?.endpoint===!1?"false":g.value.config?.endpoint),1)]),r("tr",null,[b[22]||(b[22]=r("td",null,"skipInTest",-1)),r("td",null,m(g.value.config?.skipInTest),1)]),r("tr",null,[b[23]||(b[23]=r("td",null,"onStats callback",-1)),r("td",null,m(g.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),r("tr",null,[b[24]||(b[24]=r("td",null,"shouldShow callback",-1)),r("td",null,m(g.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[48]||(b[48]=r("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),r("table",zh,[b[41]||(b[41]=r("thead",null,[r("tr",null,[r("th",null,"Setting"),r("th",null,"Value")])],-1)),r("tbody",null,[r("tr",null,[b[26]||(b[26]=r("td",null,"enabled",-1)),r("td",null,m(g.value.devToolbar?.enabled),1)]),r("tr",null,[b[27]||(b[27]=r("td",null,"tracing",-1)),r("td",null,m(g.value.devToolbar?.tracing),1)]),r("tr",null,[b[28]||(b[28]=r("td",null,"dashboard",-1)),r("td",null,m(g.value.devToolbar?.dashboard),1)]),r("tr",null,[b[29]||(b[29]=r("td",null,"dashboardPath",-1)),r("td",qh,m(g.value.devToolbar?.dashboardPath),1)]),r("tr",null,[b[30]||(b[30]=r("td",null,"debugEndpoint",-1)),r("td",Wh,[u.value.has("cfg-debugEndpoint")?(c(),d(L,{key:1},[Z(m(g.value.devToolbar?.debugEndpoint)+" ",1),r("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]=w=>p("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=w=>p("cfg-debugEndpoint"))},"••••••••"))])]),r("tr",null,[b[31]||(b[31]=r("td",null,"maxQueries",-1)),r("td",null,m(g.value.devToolbar?.maxQueries),1)]),r("tr",null,[b[32]||(b[32]=r("td",null,"maxEvents",-1)),r("td",null,m(g.value.devToolbar?.maxEvents),1)]),r("tr",null,[b[33]||(b[33]=r("td",null,"maxEmails",-1)),r("td",null,m(g.value.devToolbar?.maxEmails),1)]),r("tr",null,[b[34]||(b[34]=r("td",null,"maxTraces",-1)),r("td",null,m(g.value.devToolbar?.maxTraces),1)]),r("tr",null,[b[35]||(b[35]=r("td",null,"slowQueryThresholdMs",-1)),r("td",null,m(g.value.devToolbar?.slowQueryThresholdMs),1)]),r("tr",null,[b[36]||(b[36]=r("td",null,"retentionDays",-1)),r("td",null,m(g.value.devToolbar?.retentionDays),1)]),r("tr",null,[b[37]||(b[37]=r("td",null,"dbPath",-1)),r("td",Jh,[u.value.has("cfg-dbPath")?(c(),d(L,{key:1},[Z(m(g.value.devToolbar?.dbPath)+" ",1),r("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]=w=>p("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=w=>p("cfg-dbPath"))},"••••••••"))])]),r("tr",null,[b[38]||(b[38]=r("td",null,"persistDebugData",-1)),r("td",null,m(g.value.devToolbar?.persistDebugData),1)]),r("tr",null,[b[39]||(b[39]=r("td",null,"excludeFromTracing",-1)),r("td",Gh,m(g.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),r("tr",null,[b[40]||(b[40]=r("td",null,"customPanes",-1)),r("td",null,m(g.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",bh,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),Xh={key:0,class:"ss-dbg-search-bar"},Zh=["placeholder"],ep={class:"ss-dbg-summary"},tp={key:1,class:"ss-dbg-empty"},sp={key:2,class:"ss-dbg-empty"},np=["onClick"],lp={key:0,class:"ss-dbg-c-dim"},op=["title"],rp=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=z([]),n=z(!1),l=z(""),o=Bn(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const k=await o().fetch(t.pane.endpoint),w=(t.pane.dataKey||t.pane.id).split(".");let R=k;for(const C of w)R=R?.[C];s.value=Array.isArray(R)?R:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=Y(()=>{if(!l.value.trim())return s.value;const k=l.value.toLowerCase(),b=t.pane.columns.filter(w=>w.searchable).map(w=>w.key);return b.length===0?s.value:s.value.filter(w=>b.some(R=>{const C=w[R];return C==null?!1:String(C).toLowerCase().includes(k)}))});function p(k,b){if(k==null)return"-";switch(b.format||"text"){case"time":return typeof k=="number"?Be(k):String(k);case"timeAgo":return Be(k);case"duration":return De(typeof k=="number"?k:parseFloat(String(k)));case"method":return String(k);case"json":{let R=k;if(typeof k=="string")try{R=JSON.parse(k)}catch{}return os(R,80)}case"badge":return String(k);default:return String(k)}}function f(k,b){if(b.format==="time"||b.format==="timeAgo")return mt(k)}function _(k){return k==null}function y(k){const b=typeof k=="number"?k:parseFloat(String(k));if(isNaN(b))return"ss-dbg-duration";const w=Fn(b,"ss-dbg");return w?`ss-dbg-duration ${w}`:"ss-dbg-duration"}function g(k,b){if(b.format==="badge"&&b.badgeColorMap){const w=String(k).toLowerCase();return b.badgeColorMap[w]||"muted"}return""}function $(k){return`ss-dbg-method ss-dbg-method-${String(k).toLowerCase()}`}function x(){s.value=[]}const{tableRef:H}=_t(()=>u.value);return Ct(()=>{a()}),(k,b)=>(c(),d("div",null,[e.pane.search?(c(),d("div",Xh,[We(r("input",{"onUpdate:modelValue":b[0]||(b[0]=w=>l.value=w),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,Zh),[[Qe,l.value]]),r("span",ep,m(u.value.length)+" items",1),e.pane.clearable?(c(),d("button",{key:0,class:"ss-dbg-btn-clear",onClick:x},"Clear")):ne("",!0)])):ne("",!0),n.value?(c(),d("div",tp,"Loading...")):u.value.length===0?(c(),d("div",sp,"No data")):(c(),d("table",{key:3,ref_key:"tableRef",ref:H,class:"ss-dbg-table"},[r("thead",null,[r("tr",null,[(c(!0),d(L,null,X(e.pane.columns,w=>(c(),d("th",{key:w.key},m(w.label),1))),128))])]),r("tbody",null,[(c(!0),d(L,null,X(u.value,(w,R)=>(c(),d("tr",{key:String(w.id??R)},[(c(!0),d(L,null,X(e.pane.columns,C=>(c(),d("td",{key:C.key,class:K({"ss-dbg-filterable":C.filterable}),onClick:N=>C.filterable?l.value=String(w[C.key]):void 0},[_(w[C.key])?(c(),d("span",lp,"-")):C.format==="time"||C.format==="timeAgo"?(c(),d("span",{key:1,class:"ss-dbg-event-time",title:f(w[C.key],C)},m(p(w[C.key],C)),9,op)):C.format==="duration"?(c(),d("span",{key:2,class:K(y(w[C.key]))},m(p(w[C.key],C)),3)):C.format==="method"?(c(),d("span",{key:3,class:K($(w[C.key]))},m(p(w[C.key],C)),3)):C.format==="badge"?(c(),d("span",{key:4,class:K(`ss-dbg-badge ss-dbg-badge-${g(w[C.key],C)}`)},m(p(w[C.key],C)),3)):(c(),d(L,{key:5},[Z(m(p(w[C.key],C)),1)],64))],10,np))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();