adonisjs-server-stats 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.js +24 -22
- package/dist/core/split-pane.d.ts +18 -0
- package/dist/core/trace-utils.d.ts +5 -0
- package/dist/core/types.d.ts +1 -1
- package/dist/react/{CacheSection-xH75hwXu.js → CacheSection-UCMptWyn.js} +1 -1
- package/dist/react/{CacheTab-DYmsZJJ1.js → CacheTab-CA8LB1J5.js} +1 -1
- package/dist/react/{ConfigSection-D8BO1Ry9.js → ConfigSection-DfFd-WRq.js} +1 -1
- package/dist/react/{ConfigTab-CcN-tfjv.js → ConfigTab-Bdg8YMer.js} +1 -1
- package/dist/react/{CustomPaneTab-D7_o3Ec6.js → CustomPaneTab-Bxtv_8Rw.js} +1 -1
- package/dist/react/{EmailsSection-BzlsTdPs.js → EmailsSection-CM7stSyh.js} +1 -1
- package/dist/react/{EmailsTab-Uh2CQY3o.js → EmailsTab-BDhEiomM.js} +1 -1
- package/dist/react/{EventsSection-CGQWiIdV.js → EventsSection-ByQ-9blq.js} +1 -1
- package/dist/react/{EventsTab-CC6DQzEm.js → EventsTab-CMfY98Rl.js} +1 -1
- package/dist/react/{JobsSection-D7AHQmZi.js → JobsSection-DF3qEv9O.js} +1 -1
- package/dist/react/{JobsTab-B3Lfdqed.js → JobsTab-BbrBWIOb.js} +1 -1
- package/dist/react/{LogsSection-Cly1dpvS.js → LogsSection-DcFTZY7b.js} +1 -1
- package/dist/react/{LogsTab-BbYK-iyh.js → LogsTab-CicucmVk.js} +2 -2
- package/dist/react/{OverviewSection-CkBGFEWq.js → OverviewSection-C4T1ur51.js} +1 -1
- package/dist/react/{QueriesSection-CfCpnNUD.js → QueriesSection-PswteoF9.js} +1 -1
- package/dist/react/{QueriesTab-DbBmAqzO.js → QueriesTab-osLUWd4L.js} +1 -1
- package/dist/react/RelatedLogs-DFDOyUMr.js +40 -0
- package/dist/react/RequestsSection-Nag30rEA.js +341 -0
- package/dist/react/{RoutesSection-CRqF-cNM.js → RoutesSection-BUSkM6PY.js} +1 -1
- package/dist/react/{RoutesTab-Bwreij3e.js → RoutesTab-DgVzd2PZ.js} +1 -1
- package/dist/react/TimelineTab-Covg5weo.js +220 -0
- package/dist/react/{index-CecA4IdQ.js → index-Cflz9Ebj.js} +197 -203
- package/dist/react/index.js +1 -1
- package/dist/react/react/components/shared/RelatedLogs.d.ts +7 -0
- package/dist/react/style.css +1 -1
- package/dist/src/controller/debug_controller.js +1 -1
- package/dist/src/dashboard/dashboard_controller.js +13 -0
- package/dist/src/dashboard/dashboard_store.d.ts +1 -0
- package/dist/src/dashboard/dashboard_store.js +88 -41
- package/dist/src/dashboard/migrator.js +6 -0
- package/dist/src/data/data_access.d.ts +7 -0
- package/dist/src/data/data_access.js +32 -1
- package/dist/src/debug/trace_collector.d.ts +1 -1
- package/dist/src/debug/trace_collector.js +2 -1
- package/dist/src/debug/types.d.ts +4 -0
- package/dist/src/edge/client/dashboard.js +2 -2
- package/dist/src/edge/client/debug-panel-deferred.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +4 -4
- package/dist/src/edge/client-vue/debug-panel-deferred.js +3 -3
- package/dist/src/middleware/request_tracking_middleware.d.ts +1 -0
- package/dist/src/middleware/request_tracking_middleware.js +3 -1
- package/dist/src/provider/server_stats_provider.d.ts +3 -3
- package/dist/src/provider/server_stats_provider.js +29 -15
- package/dist/src/routes/register_routes.js +7 -2
- package/dist/src/styles/components.css +81 -0
- package/dist/src/styles/debug-panel.css +9 -0
- package/dist/src/types.d.ts +1 -1
- package/dist/vue/{CacheSection-Cx-hj09X.js → CacheSection-oFAJL3mo.js} +1 -1
- package/dist/vue/{ConfigSection-CMXyryf6.js → ConfigSection-BhfJ4KqL.js} +1 -1
- package/dist/vue/{EmailsSection-DgKl9xGT.js → EmailsSection-BcNyhyHs.js} +1 -1
- package/dist/vue/{EventsSection-BNMCAim1.js → EventsSection-r60Q5Lmu.js} +1 -1
- package/dist/vue/{JobsSection-CCMgMlxd.js → JobsSection-BHL-hkQw.js} +1 -1
- package/dist/vue/{LogsSection-CvOnTxUu.js → LogsSection-DRMGzJmg.js} +1 -1
- package/dist/vue/{OverviewSection-CHgaKtUR.js → OverviewSection-CXh6Ja1B.js} +1 -1
- package/dist/vue/{QueriesSection-BnHRD98z.js → QueriesSection-IodIsCJ-.js} +1 -1
- package/dist/vue/RelatedLogs.vue_vue_type_script_setup_true_lang-CB2_TzYW.js +84 -0
- package/dist/vue/RequestsSection-BPuMdmMc.js +401 -0
- package/dist/vue/{RoutesSection-BrceOcKQ.js → RoutesSection-NKo3Rbq3.js} +1 -1
- package/dist/vue/TimelineTab-zj5Z5OdT.js +338 -0
- package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts +4 -0
- package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts +4 -0
- package/dist/vue/components/{Dashboard/sections/TimelineSection.vue.d.ts → shared/RelatedLogs.vue.d.ts} +5 -6
- package/dist/vue/index-Dtgysd26.js +1229 -0
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/react/RequestsSection-Cb5a6MlT.js +0 -209
- package/dist/react/TimelineSection-B2y06kRE.js +0 -158
- package/dist/react/TimelineTab-6hthfdBB.js +0 -193
- package/dist/react/WaterfallChart-Cj73WdfM.js +0 -100
- package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts +0 -8
- package/dist/vue/RequestsSection-B-uSlM0f.js +0 -243
- package/dist/vue/TimelineSection-CfvnA2Oo.js +0 -186
- package/dist/vue/TimelineTab-Db6lKKsD.js +0 -250
- package/dist/vue/WaterfallChart.vue_vue_type_script_setup_true_lang-tZ13cNj1.js +0 -118
- package/dist/vue/index-oLxS08vN.js +0 -1235
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";function Vs(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ie={},Tt=[],De=()=>{},Nn=()=>!1,us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ks=e=>e.startsWith("onUpdate:"),he=Object.assign,zs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Br=Object.prototype.hasOwnProperty,ne=(e,t)=>Br.call(e,t),z=Array.isArray,St=e=>Nt(e)==="[object Map]",Bn=e=>Nt(e)==="[object Set]",Un=e=>Nt(e)==="[object Date]",q=e=>typeof e=="function",de=e=>typeof e=="string",je=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",Hn=e=>(le(e)||q(e))&&q(e.then)&&q(e.catch),Vn=Object.prototype.toString,Nt=e=>Vn.call(e),Ur=e=>Nt(e).slice(8,-1),Kn=e=>Nt(e)==="[object Object]",Ws=e=>de(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bt=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cs=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Hr=/-\w/g,ot=cs(e=>e.replace(Hr,t=>t.slice(1).toUpperCase())),Vr=/\B([A-Z])/g,it=cs(e=>e.replace(Vr,"-$1").toLowerCase()),zn=cs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=cs(e=>e?`on${zn(e)}`:""),at=(e,t)=>!Object.is(e,t),ds=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},Wn=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Js=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qn;const fs=()=>qn||(qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Et(e){if(z(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=de(n)?qr(n):Et(n);if(l)for(const r in l)t[r]=l[r]}return t}else if(de(e)||le(e))return e}const Kr=/;(?![^(]*\))/g,zr=/:([^]+)/,Wr=/\/\*[^]*?\*\//g;function qr(e){const t={};return e.replace(Wr,"").split(Kr).forEach(s=>{if(s){const n=s.split(zr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function V(e){let t="";if(de(e))t=e;else if(z(e))for(let s=0;s<e.length;s++){const n=V(e[s]);n&&(t+=n+" ")}else if(le(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Jr=Vs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Jn(e){return!!e||e===""}function Gr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=Gs(e[n],t[n]);return s}function Gs(e,t){if(e===t)return!0;let s=Un(e),n=Un(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=je(e),n=je(t),s||n)return e===t;if(s=z(e),n=z(t),s||n)return s&&n?Gr(e,t):!1;if(s=le(e),n=le(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!Gs(e[i],t[i]))return!1}}return String(e)===String(t)}const Gn=e=>!!(e&&e.__v_isRef===!0),m=e=>de(e)?e:e==null?"":z(e)||le(e)&&(e.toString===Vn||!q(e.toString))?Gn(e)?m(e.value):JSON.stringify(e,Qn,2):String(e),Qn=(e,t)=>Gn(t)?Qn(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],r)=>(s[Qs(n,r)+" =>"]=l,s),{})}:Bn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Qs(s))}:je(t)?Qs(t):le(t)&&!z(t)&&!Kn(t)?String(t):t,Qs=(e,t="")=>{var s;return je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let ke;class Qr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ke,!t&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=ke;try{return ke=this,t()}finally{ke=s}}}on(){++this._on===1&&(this.prevScope=ke,ke=this)}off(){this._on>0&&--this._on===0&&(ke=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function Yr(){return ke}let ae;const Ys=new WeakSet;class Yn{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ke&&ke.active&&ke.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ys.has(this)&&(Ys.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Zn(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ll(this),el(this);const t=ae,s=Oe;ae=this,Oe=!0;try{return this.fn()}finally{tl(this),ae=t,Oe=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)tn(t);this.deps=this.depsTail=void 0,ll(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ys.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){en(this)&&this.run()}get dirty(){return en(this)}}let Xn=0,Ut,Ht;function Zn(e,t=!1){if(e.flags|=8,t){e.next=Ht,Ht=e;return}e.next=Ut,Ut=e}function Xs(){Xn++}function Zs(){if(--Xn>0)return;if(Ht){let t=Ht;for(Ht=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ut;){let t=Ut;for(Ut=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 el(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function tl(e){let t,s=e.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),tn(n),Xr(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}e.deps=t,e.depsTail=s}function en(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(sl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function sl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vt)||(e.globalVersion=Vt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!en(e))))return;e.flags|=2;const t=e.dep,s=ae,n=Oe;ae=e,Oe=!0;try{el(e);const l=e.fn(e._value);(t.version===0||at(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{ae=s,Oe=n,tl(e),e.flags&=-3}}function tn(e,t=!1){const{dep:s,prevSub:n,nextSub:l}=e;if(n&&(n.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)tn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Xr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Oe=!0;const nl=[];function Fe(){nl.push(Oe),Oe=!1}function Ne(){const e=nl.pop();Oe=e===void 0?!0:e}function ll(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ae;ae=void 0;try{t()}finally{ae=s}}}let Vt=0;class Zr{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 sn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ae||!Oe||ae===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ae)s=this.activeLink=new Zr(ae,this),ae.deps?(s.prevDep=ae.depsTail,ae.depsTail.nextDep=s,ae.depsTail=s):ae.deps=ae.depsTail=s,rl(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=ae.depsTail,s.nextDep=void 0,ae.depsTail.nextDep=s,ae.depsTail=s,ae.deps===s&&(ae.deps=n)}return s}trigger(t){this.version++,Vt++,this.notify(t)}notify(t){Xs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Zs()}}}function rl(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)rl(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const nn=new WeakMap,gt=Symbol(""),ln=Symbol(""),Kt=Symbol("");function ve(e,t,s){if(Oe&&ae){let n=nn.get(e);n||nn.set(e,n=new Map);let l=n.get(s);l||(n.set(s,l=new sn),l.map=n,l.key=s),l.track()}}function Ze(e,t,s,n,l,r){const i=nn.get(e);if(!i){Vt++;return}const a=u=>{u&&u.trigger()};if(Xs(),t==="clear")i.forEach(a);else{const u=z(e),p=u&&Ws(s);if(u&&s==="length"){const f=Number(n);i.forEach((x,_)=>{(_==="length"||_===Kt||!je(_)&&_>=f)&&a(x)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),p&&a(i.get(Kt)),t){case"add":u?p&&a(i.get("length")):(a(i.get(gt)),St(e)&&a(i.get(ln)));break;case"delete":u||(a(i.get(gt)),St(e)&&a(i.get(ln)));break;case"set":St(e)&&a(i.get(gt));break}}Zs()}function At(e){const t=te(e);return t===e?t:(ve(t,"iterate",Kt),Ae(e)?t:t.map(Re))}function hs(e){return ve(e=te(e),"iterate",Kt),e}function ut(e,t){return tt(e)?Mt(bt(e)?Re(t):t):Re(t)}const eo={__proto__:null,[Symbol.iterator](){return rn(this,Symbol.iterator,e=>ut(this,e))},concat(...e){return At(this).concat(...e.map(t=>z(t)?At(t):t))},entries(){return rn(this,"entries",e=>(e[1]=ut(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>ut(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>ut(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>ut(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return on(this,"includes",e)},indexOf(...e){return on(this,"indexOf",e)},join(e){return At(this).join(e)},lastIndexOf(...e){return on(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return zt(this,"pop")},push(...e){return zt(this,"push",e)},reduce(e,...t){return ol(this,"reduce",e,t)},reduceRight(e,...t){return ol(this,"reduceRight",e,t)},shift(){return zt(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return zt(this,"splice",e)},toReversed(){return At(this).toReversed()},toSorted(e){return At(this).toSorted(e)},toSpliced(...e){return At(this).toSpliced(...e)},unshift(...e){return zt(this,"unshift",e)},values(){return rn(this,"values",e=>ut(this,e))}};function rn(e,t,s){const n=hs(e),l=n[t]();return n!==e&&!Ae(e)&&(l._next=l.next,l.next=()=>{const r=l._next();return r.done||(r.value=s(r.value)),r}),l}const to=Array.prototype;function et(e,t,s,n,l,r){const i=hs(e),a=i!==e&&!Ae(e),u=i[t];if(u!==to[t]){const x=u.apply(e,r);return a?Re(x):x}let p=s;i!==e&&(a?p=function(x,_){return s.call(this,ut(e,x),_,e)}:s.length>2&&(p=function(x,_){return s.call(this,x,_,e)}));const f=u.call(i,p,n);return a&&l?l(f):f}function ol(e,t,s,n){const l=hs(e);let r=s;return l!==e&&(Ae(e)?s.length>3&&(r=function(i,a,u){return s.call(this,i,a,u,e)}):r=function(i,a,u){return s.call(this,i,ut(e,a),u,e)}),l[t](r,...n)}function on(e,t,s){const n=te(e);ve(n,"iterate",Kt);const l=n[t](...s);return(l===-1||l===!1)&&dn(s[0])?(s[0]=te(s[0]),n[t](...s)):l}function zt(e,t,s=[]){Fe(),Xs();const n=te(e)[t].apply(e,s);return Zs(),Ne(),n}const so=Vs("__proto__,__v_isRef,__isVue"),il=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(je));function no(e){je(e)||(e=String(e));const t=te(this);return ve(t,"has",e),t.hasOwnProperty(e)}class al{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const l=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(l?r?pl:hl:r?fl:dl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=z(t);if(!l){let u;if(i&&(u=eo[s]))return u;if(s==="hasOwnProperty")return no}const a=Reflect.get(t,s,pe(t)?t:n);if((je(s)?il.has(s):so(s))||(l||ve(t,"get",s),r))return a;if(pe(a)){const u=i&&Ws(s)?a:a.value;return l&&le(u)?cn(u):u}return le(a)?l?cn(a):un(a):a}}class ul extends al{constructor(t=!1){super(!1,t)}set(t,s,n,l){let r=t[s];const i=z(t)&&Ws(s);if(!this._isShallow){const p=tt(r);if(!Ae(n)&&!tt(n)&&(r=te(r),n=te(n)),!i&&pe(r)&&!pe(n))return p||(r.value=n),!0}const a=i?Number(s)<t.length:ne(t,s),u=Reflect.set(t,s,n,pe(t)?t:l);return t===te(l)&&(a?at(n,r)&&Ze(t,"set",s,n):Ze(t,"add",s,n)),u}deleteProperty(t,s){const n=ne(t,s);t[s];const l=Reflect.deleteProperty(t,s);return l&&n&&Ze(t,"delete",s,void 0),l}has(t,s){const n=Reflect.has(t,s);return(!je(s)||!il.has(s))&&ve(t,"has",s),n}ownKeys(t){return ve(t,"iterate",z(t)?"length":gt),Reflect.ownKeys(t)}}class cl extends al{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const lo=new ul,ro=new cl,oo=new ul(!0),io=new cl(!0),an=e=>e,ps=e=>Reflect.getPrototypeOf(e);function ao(e,t,s){return function(...n){const l=this.__v_raw,r=te(l),i=St(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=l[e](...n),f=s?an:t?Mt:Re;return!t&&ve(r,"iterate",u?ln:gt),he(Object.create(p),{next(){const{value:x,done:_}=p.next();return _?{value:x,done:_}:{value:a?[f(x[0]),f(x[1])]:f(x),done:_}}})}}function gs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function uo(e,t){const s={get(l){const r=this.__v_raw,i=te(r),a=te(l);e||(at(l,a)&&ve(i,"get",l),ve(i,"get",a));const{has:u}=ps(i),p=t?an:e?Mt:Re;if(u.call(i,l))return p(r.get(l));if(u.call(i,a))return p(r.get(a));r!==i&&r.get(l)},get size(){const l=this.__v_raw;return!e&&ve(te(l),"iterate",gt),l.size},has(l){const r=this.__v_raw,i=te(r),a=te(l);return e||(at(l,a)&&ve(i,"has",l),ve(i,"has",a)),l===a?r.has(l):r.has(l)||r.has(a)},forEach(l,r){const i=this,a=i.__v_raw,u=te(a),p=t?an:e?Mt:Re;return!e&&ve(u,"iterate",gt),a.forEach((f,x)=>l.call(r,p(f),p(x),i))}};return he(s,e?{add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear")}:{add(l){!t&&!Ae(l)&&!tt(l)&&(l=te(l));const r=te(this);return ps(r).has.call(r,l)||(r.add(l),Ze(r,"add",l,l)),this},set(l,r){!t&&!Ae(r)&&!tt(r)&&(r=te(r));const i=te(this),{has:a,get:u}=ps(i);let p=a.call(i,l);p||(l=te(l),p=a.call(i,l));const f=u.call(i,l);return i.set(l,r),p?at(r,f)&&Ze(i,"set",l,r):Ze(i,"add",l,r),this},delete(l){const r=te(this),{has:i,get:a}=ps(r);let u=i.call(r,l);u||(l=te(l),u=i.call(r,l)),a&&a.call(r,l);const p=r.delete(l);return u&&Ze(r,"delete",l,void 0),p},clear(){const l=te(this),r=l.size!==0,i=l.clear();return r&&Ze(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=ao(l,e,t)}),s}function bs(e,t){const s=uo(e,t);return(n,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(ne(s,l)&&l in n?s:n,l,r)}const co={get:bs(!1,!1)},fo={get:bs(!1,!0)},ho={get:bs(!0,!1)},po={get:bs(!0,!0)},dl=new WeakMap,fl=new WeakMap,hl=new WeakMap,pl=new WeakMap;function go(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bo(e){return e.__v_skip||!Object.isExtensible(e)?0:go(Ur(e))}function un(e){return tt(e)?e:vs(e,!1,lo,co,dl)}function vo(e){return vs(e,!1,oo,fo,fl)}function cn(e){return vs(e,!0,ro,ho,hl)}function Mh(e){return vs(e,!0,io,po,pl)}function vs(e,t,s,n,l){if(!le(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=bo(e);if(r===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,r===2?n:s);return l.set(e,a),a}function bt(e){return tt(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Ae(e){return!!(e&&e.__v_isShallow)}function dn(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function mo(e){return!ne(e,"__v_skip")&&Object.isExtensible(e)&&Wn(e,"__v_skip",!0),e}const Re=e=>le(e)?un(e):e,Mt=e=>le(e)?cn(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function W(e){return yo(e,!1)}function yo(e,t){return pe(e)?e:new _o(e,t)}class _o{constructor(t,s){this.dep=new sn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:te(t),this._value=s?t:Re(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Ae(t)||tt(t);t=n?t:te(t),at(t,s)&&(this._rawValue=t,this._value=n?t:Re(t),this.dep.trigger())}}function O(e){return pe(e)?e.value:e}const xo={get:(e,t,s)=>t==="__v_raw"?e:O(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const l=e[t];return pe(l)&&!pe(s)?(l.value=s,!0):Reflect.set(e,t,s,n)}};function gl(e){return bt(e)?e:new Proxy(e,xo)}class wo{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new sn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ae!==this)return Zn(this,!0),!0}get value(){const t=this.dep.track();return sl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ko(e,t,s=!1){let n,l;return q(e)?n=e:(n=e.get,l=e.set),new wo(n,l,s)}const ms={},ys=new WeakMap;let vt;function $o(e,t=!1,s=vt){if(s){let n=ys.get(s);n||ys.set(s,n=[]),n.push(e)}}function Co(e,t,s=ie){const{immediate:n,deep:l,once:r,scheduler:i,augmentJob:a,call:u}=s,p=P=>l?P:Ae(P)||l===!1||l===0?st(P,1):st(P);let f,x,_,g,$=!1,w=!1;if(pe(e)?(x=()=>e.value,$=Ae(e)):bt(e)?(x=()=>p(e),$=!0):z(e)?(w=!0,$=e.some(P=>bt(P)||Ae(P)),x=()=>e.map(P=>{if(pe(P))return P.value;if(bt(P))return p(P);if(q(P))return u?u(P,2):P()})):q(e)?t?x=u?()=>u(e,2):e:x=()=>{if(_){Fe();try{_()}finally{Ne()}}const P=vt;vt=f;try{return u?u(e,3,[g]):e(g)}finally{vt=P}}:x=De,t&&l){const P=x,y=l===!0?1/0:l;x=()=>st(P(),y)}const U=Yr(),T=()=>{f.stop(),U&&U.active&&zs(U.effects,f)};if(r&&t){const P=t;t=(...y)=>{P(...y),T()}}let b=w?new Array(e.length).fill(ms):ms;const k=P=>{if(!(!(f.flags&1)||!f.dirty&&!P))if(t){const y=f.run();if(l||$||(w?y.some((S,j)=>at(S,b[j])):at(y,b))){_&&_();const S=vt;vt=f;try{const j=[y,b===ms?void 0:w&&b[0]===ms?[]:b,g];b=y,u?u(t,3,j):t(...j)}finally{vt=S}}}else f.run()};return a&&a(k),f=new Yn(x),f.scheduler=i?()=>i(k,!1):k,g=P=>$o(P,!1,f),_=f.onStop=()=>{const P=ys.get(f);if(P){if(u)u(P,4);else for(const y of P)y();ys.delete(f)}},t?n?k(!0):b=f.run():i?i(k.bind(null,!0),!0):f.run(),T.pause=f.pause.bind(f),T.resume=f.resume.bind(f),T.stop=T,T}function st(e,t=1/0,s){if(t<=0||!le(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,pe(e))st(e.value,t,s);else if(z(e))for(let n=0;n<e.length;n++)st(e[n],t,s);else if(Bn(e)||St(e))e.forEach(n=>{st(n,t,s)});else if(Kn(e)){for(const n in e)st(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&st(e[n],t,s)}return e}const Wt=[];let fn=!1;function Ph(e,...t){if(fn)return;fn=!0,Fe();const s=Wt.length?Wt[Wt.length-1].component:null,n=s&&s.appContext.config.warnHandler,l=To();if(n)Pt(n,s,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),s&&s.proxy,l.map(({vnode:r})=>`at <${ir(s,r.type)}>`).join(`
|
|
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={},Pt=[],He=()=>{},Hn=()=>!1,ds=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ws=e=>e.startsWith("onUpdate:"),be=Object.assign,qs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Hr=Object.prototype.hasOwnProperty,ie=(e,t)=>Hr.call(e,t),q=Array.isArray,At=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),Ur=e=>Ht(e).slice(8,-1),Wn=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)))},Kr=/-\w/g,dt=fs(e=>e.replace(Kr,t=>t.slice(1).toUpperCase())),Vr=/\B([A-Z])/g,ft=fs(e=>e.replace(Vr,"-$1").toLowerCase()),qn=fs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gs=fs(e=>e?`on${qn(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(q(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],l=ge(n)?Jr(n):pt(n);if(l)for(const r in l)t[r]=l[r]}return t}else if(ge(e)||ae(e))return e}const zr=/;(?![^(]*\))/g,Wr=/:([^]+)/,qr=/\/\*[^]*?\*\//g;function Jr(e){const t={};return e.replace(qr,"").split(zr).forEach(s=>{if(s){const n=s.split(Wr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function H(e){let t="";if(ge(e))t=e;else if(q(e))for(let s=0;s<e.length;s++){const n=H(e[s]);n&&(t+=n+" ")}else if(ae(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Gr=zs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Qn(e){return!!e||e===""}function Qr(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=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=q(e),n=q(t),s||n)return s&&n?Qr(e,t):!1;if(s=ae(e),n=ae(t),s||n){if(!s||!n)return!1;const l=Object.keys(e).length,r=Object.keys(t).length;if(l!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!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?"":q(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):At(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,l],r)=>(s[Xs(n,r)+" =>"]=l,s),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Xs(s))}:Ue(t)?Xs(t):ae(t)&&!q(t)&&!Wn(t)?String(t):t,Xs=(e,t="")=>{var s;return Ue(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Te;class Yr{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 Xr(){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,ol(this),sl(this);const t=fe,s=De;fe=this,De=!0;try{return this.fn()}finally{nl(this),fe=t,De=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,ol(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),Zr(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=De;fe=e,De=!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,De=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 r=s.computed.deps;r;r=r.nextDep)nn(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Zr(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let De=!0;const rl=[];function Ke(){rl.push(De),De=!1}function Ve(){const e=rl.pop();De=e===void 0?!0:e}function ol(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 eo{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||!De||fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==fe)s=this.activeLink=new eo(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 rn=new WeakMap,xt=Symbol(""),on=Symbol(""),Wt=Symbol("");function _e(e,t,s){if(De&&fe){let n=rn.get(e);n||rn.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,r){const i=rn.get(e);if(!i){zt++;return}const a=u=>{u&&u.trigger()};if(en(),t==="clear")i.forEach(a);else{const u=q(e),p=u&&Js(s);if(u&&s==="length"){const f=Number(n);i.forEach((x,y)=>{(y==="length"||y===Wt||!Ue(y)&&y>=f)&&a(x)})}else switch((s!==void 0||i.has(void 0))&&a(i.get(s)),p&&a(i.get(Wt)),t){case"add":u?p&&a(i.get("length")):(a(i.get(xt)),At(e)&&a(i.get(on)));break;case"delete":u||(a(i.get(xt)),At(e)&&a(i.get(on)));break;case"set":At(e)&&a(i.get(xt));break}}tn()}function Mt(e){const t=re(e);return t===e?t:(_e(t,"iterate",Wt),Le(e)?t:t.map(je))}function gs(e){return _e(e=re(e),"iterate",Wt),e}function gt(e,t){return lt(e)?Lt(wt(e)?je(t):t):je(t)}const to={__proto__:null,[Symbol.iterator](){return an(this,Symbol.iterator,e=>gt(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>q(t)?Mt(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 Mt(this).join(e)},lastIndexOf(...e){return un(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return qt(this,"pop")},push(...e){return qt(this,"push",e)},reduce(e,...t){return al(this,"reduce",e,t)},reduceRight(e,...t){return al(this,"reduceRight",e,t)},shift(){return qt(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return qt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return qt(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 r=l._next();return r.done||(r.value=s(r.value)),r}),l}const so=Array.prototype;function nt(e,t,s,n,l,r){const i=gs(e),a=i!==e&&!Le(e),u=i[t];if(u!==so[t]){const x=u.apply(e,r);return a?je(x):x}let p=s;i!==e&&(a?p=function(x,y){return s.call(this,gt(e,x),y,e)}:s.length>2&&(p=function(x,y){return s.call(this,x,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 r=s;return l!==e&&(Le(e)?s.length>3&&(r=function(i,a,u){return s.call(this,i,a,u,e)}):r=function(i,a,u){return s.call(this,i,gt(e,a),u,e)}),l[t](r,...n)}function un(e,t,s){const n=re(e);_e(n,"iterate",Wt);const l=n[t](...s);return(l===-1||l===!1)&&hn(s[0])?(s[0]=re(s[0]),n[t](...s)):l}function qt(e,t,s=[]){Ke(),en();const n=re(e)[t].apply(e,s);return tn(),Ve(),n}const no=zs("__proto__,__v_isRef,__isVue"),ul=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue));function lo(e){Ue(e)||(e=String(e));const t=re(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,r=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return r;if(s==="__v_raw")return n===(l?r?bl:gl:r?pl:hl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=q(t);if(!l){let u;if(i&&(u=to[s]))return u;if(s==="hasOwnProperty")return lo}const a=Reflect.get(t,s,ve(t)?t:n);if((Ue(s)?ul.has(s):no(s))||(l||_e(t,"get",s),r))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 r=t[s];const i=q(t)&&Js(s);if(!this._isShallow){const p=lt(r);if(!Le(n)&&!lt(n)&&(r=re(r),n=re(n)),!i&&ve(r)&&!ve(n))return p||(r.value=n),!0}const a=i?Number(s)<t.length:ie(t,s),u=Reflect.set(t,s,n,ve(t)?t:l);return t===re(l)&&(a?ht(n,r)&&st(t,"set",s,n):st(t,"add",s,n)),u}deleteProperty(t,s){const n=ie(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",q(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 ro=new dl,oo=new fl,io=new dl(!0),ao=new fl(!0),cn=e=>e,bs=e=>Reflect.getPrototypeOf(e);function uo(e,t,s){return function(...n){const l=this.__v_raw,r=re(l),i=At(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=l[e](...n),f=s?cn:t?Lt:je;return!t&&_e(r,"iterate",u?on:xt),be(Object.create(p),{next(){const{value:x,done:y}=p.next();return y?{value:x,done:y}:{value:a?[f(x[0]),f(x[1])]:f(x),done:y}}})}}function vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function co(e,t){const s={get(l){const r=this.__v_raw,i=re(r),a=re(l);e||(ht(l,a)&&_e(i,"get",l),_e(i,"get",a));const{has:u}=bs(i),p=t?cn:e?Lt:je;if(u.call(i,l))return p(r.get(l));if(u.call(i,a))return p(r.get(a));r!==i&&r.get(l)},get size(){const l=this.__v_raw;return!e&&_e(re(l),"iterate",xt),l.size},has(l){const r=this.__v_raw,i=re(r),a=re(l);return e||(ht(l,a)&&_e(i,"has",l),_e(i,"has",a)),l===a?r.has(l):r.has(l)||r.has(a)},forEach(l,r){const i=this,a=i.__v_raw,u=re(a),p=t?cn:e?Lt:je;return!e&&_e(u,"iterate",xt),a.forEach((f,x)=>l.call(r,p(f),p(x),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=re(l));const r=re(this);return bs(r).has.call(r,l)||(r.add(l),st(r,"add",l,l)),this},set(l,r){!t&&!Le(r)&&!lt(r)&&(r=re(r));const i=re(this),{has:a,get:u}=bs(i);let p=a.call(i,l);p||(l=re(l),p=a.call(i,l));const f=u.call(i,l);return i.set(l,r),p?ht(r,f)&&st(i,"set",l,r):st(i,"add",l,r),this},delete(l){const r=re(this),{has:i,get:a}=bs(r);let u=i.call(r,l);u||(l=re(l),u=i.call(r,l)),a&&a.call(r,l);const p=r.delete(l);return u&&st(r,"delete",l,void 0),p},clear(){const l=re(this),r=l.size!==0,i=l.clear();return r&&st(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=uo(l,e,t)}),s}function ms(e,t){const s=co(e,t);return(n,l,r)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?n:Reflect.get(ie(s,l)&&l in n?s:n,l,r)}const fo={get:ms(!1,!1)},ho={get:ms(!1,!0)},po={get:ms(!0,!1)},go={get:ms(!0,!0)},hl=new WeakMap,pl=new WeakMap,gl=new WeakMap,bl=new WeakMap;function bo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vo(e){return e.__v_skip||!Object.isExtensible(e)?0:bo(Ur(e))}function dn(e){return lt(e)?e:ys(e,!1,ro,fo,hl)}function mo(e){return ys(e,!1,io,ho,pl)}function fn(e){return ys(e,!0,oo,po,gl)}function qh(e){return ys(e,!0,ao,go,bl)}function ys(e,t,s,n,l){if(!ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=vo(e);if(r===0)return e;const i=l.get(e);if(i)return i;const a=new Proxy(e,r===2?n:s);return l.set(e,a),a}function 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 re(e){const t=e&&e.__v_raw;return t?re(t):e}function yo(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&Jn(e,"__v_skip",!0),e}const je=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 _o(e,!1)}function _o(e,t){return ve(e)?e:new xo(e,t)}class xo{constructor(t,s){this.dep=new ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:re(t),this._value=s?t:je(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:re(t),ht(t,s)&&(this._rawValue=t,this._value=n?t:je(t),this.dep.trigger())}}function T(e){return ve(e)?e.value:e}const wo={get:(e,t,s)=>t==="__v_raw"?e:T(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,wo)}class ko{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 $o(e,t,s=!1){let n,l;return J(e)?n=e:(n=e.get,l=e.set),new ko(n,l,s)}const _s={},xs=new WeakMap;let kt;function Co(e,t=!1,s=kt){if(s){let n=xs.get(s);n||xs.set(s,n=[]),n.push(e)}}function To(e,t,s=de){const{immediate:n,deep:l,once:r,scheduler:i,augmentJob:a,call:u}=s,p=O=>l?O:Le(O)||l===!1||l===0?rt(O,1):rt(O);let f,x,y,g,$=!1,_=!1;if(ve(e)?(x=()=>e.value,$=Le(e)):wt(e)?(x=()=>p(e),$=!0):q(e)?(_=!0,$=e.some(O=>wt(O)||Le(O)),x=()=>e.map(O=>{if(ve(O))return O.value;if(wt(O))return p(O);if(J(O))return u?u(O,2):O()})):J(e)?t?x=u?()=>u(e,2):e:x=()=>{if(y){Ke();try{y()}finally{Ve()}}const O=kt;kt=f;try{return u?u(e,3,[g]):e(g)}finally{kt=O}}:x=He,t&&l){const O=x,w=l===!0?1/0:l;x=()=>rt(O(),w)}const K=Xr(),S=()=>{f.stop(),K&&K.active&&qs(K.effects,f)};if(r&&t){const O=t;t=(...w)=>{O(...w),S()}}let b=_?new Array(e.length).fill(_s):_s;const k=O=>{if(!(!(f.flags&1)||!f.dirty&&!O))if(t){const w=f.run();if(l||$||(_?w.some((B,N)=>ht(B,b[N])):ht(w,b))){y&&y();const B=kt;kt=f;try{const N=[w,b===_s?void 0:_&&b[0]===_s?[]:b,g];b=w,u?u(t,3,N):t(...N)}finally{kt=B}}}else f.run()};return a&&a(k),f=new Zn(x),f.scheduler=i?()=>i(k,!1):k,g=O=>Co(O,!1,f),y=f.onStop=()=>{const O=xs.get(f);if(O){if(u)u(O,4);else for(const w of O)w();xs.delete(f)}},t?n?k(!0):b=f.run():i?i(k.bind(null,!0),!0):f.run(),S.pause=f.pause.bind(f),S.resume=f.resume.bind(f),S.stop=S,S}function rt(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))rt(e.value,t,s);else if(q(e))for(let n=0;n<e.length;n++)rt(e[n],t,s);else if(Un(e)||At(e))e.forEach(n=>{rt(n,t,s)});else if(Wn(e)){for(const n in e)rt(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&rt(e[n],t,s)}return e}const Jt=[];let pn=!1;function Jh(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=So();if(n)Ot(n,s,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),s&&s.proxy,l.map(({vnode:r})=>`at <${ar(s,r.type)}>`).join(`
|
|
2
2
|
`),l]);else{const r=[`[Vue warn]: ${e}`,...t];l.length&&r.push(`
|
|
3
|
-
`,...
|
|
4
|
-
`],...Eo(s))}),t}function Eo({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${ir(e.component,e.type,n)}`,r=">"+s;return e.props?[l,...Ao(e.props),r]:[l+r]}function Ao(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...bl(n,e[n]))}),s.length>3&&t.push(" ..."),t}function bl(e,t,s){return de(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:pe(t)?(t=bl(e,te(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):q(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=te(t),s?t:[`${e}=`,t])}function Pt(e,t,s,n){try{return n?e(...n):e()}catch(l){qt(l,t,s)}}function Be(e,t,s,n){if(q(e)){const l=Pt(e,t,s,n);return l&&Hn(l)&&l.catch(r=>{qt(r,t,s)}),l}if(z(e)){const l=[];for(let r=0;r<e.length;r++)l.push(Be(e[r],t,s,n));return l}}function qt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ie;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 x=0;x<f.length;x++)if(f[x](e,u,p)===!1)return}a=a.parent}if(r){Fe(),Pt(r,null,10,[e,u,p]),Ne();return}}Mo(e,s,l,n,i)}function Mo(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ye=[];let Ue=-1;const Lt=[];let ct=null,Ot=0;const vl=Promise.resolve();let _s=null;function ml(e){const t=_s||vl;return e?t.then(this?e.bind(this):e):t}function Po(e){let t=Ue+1,s=ye.length;for(;t<s;){const n=t+s>>>1,l=ye[n],r=Jt(l);r<e||r===e&&l.flags&2?t=n+1:s=n}return t}function hn(e){if(!(e.flags&1)){const t=Jt(e),s=ye[ye.length-1];!s||!(e.flags&2)&&t>=Jt(s)?ye.push(e):ye.splice(Po(t),0,e),e.flags|=1,yl()}}function yl(){_s||(_s=vl.then(wl))}function Lo(e){z(e)?Lt.push(...e):ct&&e.id===-1?ct.splice(Ot+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1),yl()}function _l(e,t,s=Ue+1){for(;s<ye.length;s++){const n=ye[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;ye.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function xl(e){if(Lt.length){const t=[...new Set(Lt)].sort((s,n)=>Jt(s)-Jt(n));if(Lt.length=0,ct){ct.push(...t);return}for(ct=t,Ot=0;Ot<ct.length;Ot++){const s=ct[Ot];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ct=null,Ot=0}}const Jt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wl(e){try{for(Ue=0;Ue<ye.length;Ue++){const t=ye[Ue];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Pt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ue<ye.length;Ue++){const t=ye[Ue];t&&(t.flags&=-2)}Ue=-1,ye.length=0,xl(),_s=null,(ye.length||Lt.length)&&wl()}}let Me=null,kl=null;function xs(e){const t=Me;return Me=e,kl=e&&e.type.__scopeId||null,t}function Oo(e,t=Me,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&Ps(-1);const r=xs(t);let i;try{i=e(...l)}finally{xs(r),n._d&&Ps(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function He(e,t){if(Me===null)return e;const s=Is(Me),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[r,i,a,u=ie]=t[l];r&&(q(r)&&(r={mounted:r,updated:r}),r.deep&&st(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function mt(e,t,s,n){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(Fe(),Be(u,s,8,[e.el,a,e,t]),Ne())}}function Ro(e,t){if(me){let s=me.provides;const n=me.parent&&me.parent.provides;n===s&&(s=me.provides=Object.create(n)),s[e]=t}}function ws(e,t,s=!1){const n=Li();if(n||Rt){let l=Rt?Rt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return s&&q(t)?t.call(n&&n.proxy):t}}const Io=Symbol.for("v-scx"),Do=()=>ws(Io);function dt(e,t,s){return $l(e,t,s)}function $l(e,t,s=ie){const{immediate:n,deep:l,flush:r,once:i}=s,a=he({},s),u=t&&n||!t&&r!=="post";let p;if(Dt){if(r==="sync"){const g=Do();p=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=De,g.resume=De,g.pause=De,g}}const f=me;a.call=(g,$,w)=>Be(g,f,$,w);let x=!1;r==="post"?a.scheduler=g=>{$e(g,f&&f.suspense)}:r!=="sync"&&(x=!0,a.scheduler=(g,$)=>{$?g():hn(g)}),a.augmentJob=g=>{t&&(g.flags|=4),x&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const _=Co(e,t,a);return Dt&&(p?p.push(_):u&&_()),_}function jo(e,t,s){const n=this.proxy,l=de(e)?e.includes(".")?Cl(n,e):()=>n[e]:e.bind(n,n);let r;q(t)?r=t:(r=t.handler,s=t);const i=ss(this),a=$l(l,r.bind(n),s);return i(),a}function Cl(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 Fo=Symbol("_vte"),No=e=>e.__isTeleport,Bo=Symbol("_leaveCb");function pn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function _e(e,t){return q(e)?he({name:e.name},t,{setup:e}):e}function gn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Tl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ks=new WeakMap;function Gt(e,t,s,n,l=!1){if(z(e)){e.forEach((w,U)=>Gt(w,t&&(z(t)?t[U]:t),s,n,l));return}if(Qt(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Gt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?Is(n.component):n.el,i=l?null:r,{i:a,r:u}=e,p=t&&t.r,f=a.refs===ie?a.refs={}:a.refs,x=a.setupState,_=te(x),g=x===ie?Nn:w=>Tl(f,w)?!1:ne(_,w),$=(w,U)=>!(U&&Tl(f,U));if(p!=null&&p!==u){if(Sl(t),de(p))f[p]=null,g(p)&&(x[p]=null);else if(pe(p)){const w=t;$(p,w.k)&&(p.value=null),w.k&&(f[w.k]=null)}}if(q(u))Pt(u,a,12,[i,f]);else{const w=de(u),U=pe(u);if(w||U){const T=()=>{if(e.f){const b=w?g(u)?x[u]:f[u]:$()||!e.k?u.value:f[e.k];if(l)z(b)&&zs(b,r);else if(z(b))b.includes(r)||b.push(r);else if(w)f[u]=[r],g(u)&&(x[u]=f[u]);else{const k=[r];$(u,e.k)&&(u.value=k),e.k&&(f[e.k]=k)}}else w?(f[u]=i,g(u)&&(x[u]=i)):U&&($(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const b=()=>{T(),ks.delete(e)};b.id=-1,ks.set(e,b),$e(b,s)}else Sl(e),T()}}}function Sl(e){const t=ks.get(e);t&&(t.flags|=8,ks.delete(e))}const El=e=>e.nodeType===8;fs().requestIdleCallback,fs().cancelIdleCallback;function Uo(e,t){if(El(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(El(n))if(n.data==="]"){if(--s===0)break}else n.data==="["&&s++;n=n.nextSibling}}else t(e)}const Qt=e=>!!e.type.__asyncLoader;function Ie(e){q(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:r,timeout:i,suspensible:a=!0,onError:u}=e;let p=null,f,x=0;const _=()=>(x++,p=null,g()),g=()=>{let $;return p||($=p=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),u)return new Promise((U,T)=>{u(w,()=>U(_()),()=>T(w),x+1)});throw w}).then(w=>$!==p&&p?p:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),f=w,w)))};return _e({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate($,w,U){let T=!1;(w.bu||(w.bu=[])).push(()=>T=!0);const b=()=>{T||U()},k=r?()=>{const P=r(b,y=>Uo($,y));P&&(w.bum||(w.bum=[])).push(P)}:b;f?k():g().then(()=>!w.isUnmounted&&k())},get __asyncResolved(){return f},setup(){const $=me;if(gn($),f)return()=>$s(f,$);const w=k=>{p=null,qt(k,$,13,!n)};if(a&&$.suspense||Dt)return g().then(k=>()=>$s(k,$)).catch(k=>(w(k),()=>n?fe(n,{error:k}):null));const U=W(!1),T=W(),b=W(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!U.value&&!T.value){const k=new Error(`Async component timed out after ${i}ms.`);w(k),T.value=k}},i),g().then(()=>{U.value=!0,$.parent&&bn($.parent.vnode)&&$.parent.update()}).catch(k=>{w(k),T.value=k}),()=>{if(U.value&&f)return $s(f,$);if(T.value&&n)return fe(n,{error:T.value});if(s&&!b.value)return $s(s,$)}}})}function $s(e,t){const{ref:s,props:n,children:l,ce:r}=t.vnode,i=fe(e,n,l);return i.ref=s,i.ce=r,delete t.vnode.ce,i}const bn=e=>e.type.__isKeepAlive;function Ho(e,t){Al(e,"a",t)}function Vo(e,t){Al(e,"da",t)}function Al(e,t,s=me){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Cs(t,n,s),s){let l=s.parent;for(;l&&l.parent;)bn(l.parent.vnode)&&Ko(n,t,s,l),l=l.parent}}function Ko(e,t,s,n){const l=Cs(t,e,n,!0);Ss(()=>{zs(n[t],l)},s)}function Cs(e,t,s=me,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Fe();const a=ss(s),u=Be(t,s,e,i);return a(),Ne(),u});return n?l.unshift(r):l.push(r),r}}const nt=e=>(t,s=me)=>{(!Dt||e==="sp")&&Cs(e,(...n)=>t(...n),s)},zo=nt("bm"),yt=nt("m"),Wo=nt("bu"),qo=nt("u"),Ts=nt("bum"),Ss=nt("um"),Jo=nt("sp"),Go=nt("rtg"),Qo=nt("rtc");function Yo(e,t=me){Cs("ec",e,t)}const Xo=Symbol.for("v-ndc");function X(e,t,s,n){let l;const r=s,i=z(e);if(i||de(e)){const a=i&&bt(e);let u=!1,p=!1;a&&(u=!Ae(e),p=tt(e),e=hs(e)),l=new Array(e.length);for(let f=0,x=e.length;f<x;f++)l[f]=t(u?p?Mt(Re(e[f])):Re(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,r)}else if(le(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,p=a.length;u<p;u++){const f=a[u];l[u]=t(e[f],f,u,r)}}else l=[];return l}const vn=e=>e?lr(e)?Is(e):vn(e.parent):null,Yt=he(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>vn(e.parent),$root:e=>vn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ol(e),$forceUpdate:e=>e.f||(e.f=()=>{hn(e.update)}),$nextTick:e=>e.n||(e.n=ml.bind(e.proxy)),$watch:e=>jo.bind(e)}),mn=(e,t)=>e!==ie&&!e.__isScriptSetup&&ne(e,t),Zo={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const _=i[t];if(_!==void 0)switch(_){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(mn(n,t))return i[t]=1,n[t];if(l!==ie&&ne(l,t))return i[t]=2,l[t];if(ne(r,t))return i[t]=3,r[t];if(s!==ie&&ne(s,t))return i[t]=4,s[t];yn&&(i[t]=0)}}const p=Yt[t];let f,x;if(p)return t==="$attrs"&&ve(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==ie&&ne(s,t))return i[t]=4,s[t];if(x=u.config.globalProperties,ne(x,t))return x[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return mn(l,t)?(l[t]=s,!0):n!==ie&&ne(n,t)?(n[t]=s,!0):ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:r,type:i}},a){let u;return!!(s[a]||e!==ie&&a[0]!=="$"&&ne(e,a)||mn(t,a)||ne(r,a)||ne(n,a)||ne(Yt,a)||ne(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ne(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Ml(e){return z(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let yn=!0;function ei(e){const t=Ol(e),s=e.proxy,n=e.ctx;yn=!1,t.beforeCreate&&Pl(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:x,mounted:_,beforeUpdate:g,updated:$,activated:w,deactivated:U,beforeDestroy:T,beforeUnmount:b,destroyed:k,unmounted:P,render:y,renderTracked:S,renderTriggered:j,errorCaptured:B,serverPrefetch:Y,expose:ce,inheritAttrs:Le,components:Je,directives:kt,filters:$t}=t;if(p&&ti(p,n,null),i)for(const Q in i){const ee=i[Q];q(ee)&&(n[Q]=ee.bind(s))}if(l){const Q=l.call(s,s);le(Q)&&(e.data=un(Q))}if(yn=!0,r)for(const Q in r){const ee=r[Q],be=q(ee)?ee.bind(s,s):q(ee.get)?ee.get.bind(s,s):De,rs=!q(ee)&&q(ee.set)?ee.set.bind(s):De,Ct=G({get:be,set:rs});Object.defineProperty(n,Q,{enumerable:!0,configurable:!0,get:()=>Ct.value,set:Ge=>Ct.value=Ge})}if(a)for(const Q in a)Ll(a[Q],n,s,Q);if(u){const Q=q(u)?u.call(s):u;Reflect.ownKeys(Q).forEach(ee=>{Ro(ee,Q[ee])})}f&&Pl(f,e,"c");function ge(Q,ee){z(ee)?ee.forEach(be=>Q(be.bind(s))):ee&&Q(ee.bind(s))}if(ge(zo,x),ge(yt,_),ge(Wo,g),ge(qo,$),ge(Ho,w),ge(Vo,U),ge(Yo,B),ge(Qo,S),ge(Go,j),ge(Ts,b),ge(Ss,P),ge(Jo,Y),z(ce))if(ce.length){const Q=e.exposed||(e.exposed={});ce.forEach(ee=>{Object.defineProperty(Q,ee,{get:()=>s[ee],set:be=>s[ee]=be,enumerable:!0})})}else e.exposed||(e.exposed={});y&&e.render===De&&(e.render=y),Le!=null&&(e.inheritAttrs=Le),Je&&(e.components=Je),kt&&(e.directives=kt),Y&&gn(e)}function ti(e,t,s=De){z(e)&&(e=_n(e));for(const n in e){const l=e[n];let r;le(l)?"default"in l?r=ws(l.from||n,l.default,!0):r=ws(l.from||n):r=ws(l),pe(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Pl(e,t,s){Be(z(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Ll(e,t,s,n){let l=n.includes(".")?Cl(s,n):()=>s[n];if(de(e)){const r=t[e];q(r)&&dt(l,r)}else if(q(e))dt(l,e.bind(s));else if(le(e))if(z(e))e.forEach(r=>Ll(r,t,s,n));else{const r=q(e.handler)?e.handler.bind(s):t[e.handler];q(r)&&dt(l,r,e)}}function Ol(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(p=>Es(u,p,i,!0)),Es(u,t,i)),le(t)&&r.set(t,u),u}function Es(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Es(e,r,s,!0),l&&l.forEach(i=>Es(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=si[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const si={data:Rl,props:Il,emits:Il,methods:Xt,computed:Xt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Xt,directives:Xt,watch:li,provide:Rl,inject:ni};function Rl(e,t){return t?e?function(){return he(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function ni(e,t){return Xt(_n(e),_n(t))}function _n(e){if(z(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function xe(e,t){return e?[...new Set([].concat(e,t))]:t}function Xt(e,t){return e?he(Object.create(null),e,t):t}function Il(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:he(Object.create(null),Ml(e),Ml(t??{})):t}function li(e,t){if(!e)return t;if(!t)return e;const s=he(Object.create(null),e);for(const n in t)s[n]=xe(e[n],t[n]);return s}function Dl(){return{app:null,config:{isNativeTag:Nn,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 ri=0;function oi(e,t){return function(n,l=null){q(n)||(n=he({},n)),l!=null&&!le(l)&&(l=null);const r=Dl(),i=new WeakSet,a=[];let u=!1;const p=r.app={_uid:ri++,_component:n,_props:l,_container:null,_context:r,_instance:null,version:Hi,get config(){return r.config},set config(f){},use(f,...x){return i.has(f)||(f&&q(f.install)?(i.add(f),f.install(p,...x)):q(f)&&(i.add(f),f(p,...x))),p},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),p},component(f,x){return x?(r.components[f]=x,p):r.components[f]},directive(f,x){return x?(r.directives[f]=x,p):r.directives[f]},mount(f,x,_){if(!u){const g=p._ceVNode||fe(n,l);return g.appContext=r,_===!0?_="svg":_===!1&&(_=void 0),e(g,f,_),u=!0,p._container=f,f.__vue_app__=p,Is(g.component)}},onUnmount(f){a.push(f)},unmount(){u&&(Be(a,p._instance,16),e(null,p._container),delete p._container.__vue_app__)},provide(f,x){return r.provides[f]=x,p},runWithContext(f){const x=Rt;Rt=p;try{return f()}finally{Rt=x}}};return p}}let Rt=null;const ii=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ot(t)}Modifiers`]||e[`${it(t)}Modifiers`];function ai(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ie;let l=s;const r=t.startsWith("update:"),i=r&&ii(n,t.slice(7));i&&(i.trim&&(l=s.map(f=>de(f)?f.trim():f)),i.number&&(l=s.map(Js)));let a,u=n[a=qs(t)]||n[a=qs(ot(t))];!u&&r&&(u=n[a=qs(it(t))]),u&&Be(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,Be(p,e,6,l)}}const ui=new WeakMap;function jl(e,t,s=!1){const n=s?ui:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},a=!1;if(!q(e)){const u=p=>{const f=jl(p,t,!0);f&&(a=!0,he(i,f))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(le(e)&&n.set(e,null),null):(z(r)?r.forEach(u=>i[u]=null):he(i,r),le(e)&&n.set(e,i),i)}function As(e,t){return!e||!us(t)?!1:(t=t.slice(2).replace(/Once$/,""),ne(e,t[0].toLowerCase()+t.slice(1))||ne(e,it(t))||ne(e,t))}function Lh(){}function Fl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:x,data:_,setupState:g,ctx:$,inheritAttrs:w}=e,U=xs(e);let T,b;try{if(s.shapeFlag&4){const P=l||n,y=P;T=Ve(p.call(y,P,f,x,g,_,$)),b=a}else{const P=t;T=Ve(P.length>1?P(x,{attrs:a,slots:i,emit:u}):P(x,null)),b=t.props?a:ci(a)}}catch(P){Zt.length=0,qt(P,e,1),T=fe(ft)}let k=T;if(b&&w!==!1){const P=Object.keys(b),{shapeFlag:y}=k;P.length&&y&7&&(r&&P.some(Ks)&&(b=di(b,r)),k=It(k,b,!1,!0))}return s.dirs&&(k=It(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(s.dirs):s.dirs),s.transition&&pn(k,s.transition),T=k,xs(U),T}const ci=e=>{let t;for(const s in e)(s==="class"||s==="style"||us(s))&&((t||(t={}))[s]=e[s]);return t},di=(e,t)=>{const s={};for(const n in e)(!Ks(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function fi(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:a,patchFlag:u}=t,p=r.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 x=0;x<f.length;x++){const _=f[x];if(Bl(i,n,_)&&!As(p,_))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 r=n[l];if(Bl(t,e,r)&&!As(s,r))return!0}return!1}function Bl(e,t,s){const n=e[s],l=t[s];return s==="style"&&le(n)&&le(l)?!Gs(n,l):n!==l}function hi({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={},Hl=()=>Object.create(Ul),Vl=e=>Object.getPrototypeOf(e)===Ul;function pi(e,t,s,n=!1){const l={},r=Hl();e.propsDefaults=Object.create(null),Kl(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:vo(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function gi(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,a=te(l),[u]=e.propsOptions;let p=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let x=0;x<f.length;x++){let _=f[x];if(As(e.emitsOptions,_))continue;const g=t[_];if(u)if(ne(r,_))g!==r[_]&&(r[_]=g,p=!0);else{const $=ot(_);l[$]=xn(u,a,$,g,e,!1)}else g!==r[_]&&(r[_]=g,p=!0)}}}else{Kl(e,t,l,r)&&(p=!0);let f;for(const x in a)(!t||!ne(t,x)&&((f=it(x))===x||!ne(t,f)))&&(u?s&&(s[x]!==void 0||s[f]!==void 0)&&(l[x]=xn(u,a,x,void 0,e,!0)):delete l[x]);if(r!==a)for(const x in r)(!t||!ne(t,x))&&(delete r[x],p=!0)}p&&Ze(e.attrs,"set","")}function Kl(e,t,s,n){const[l,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Bt(u))continue;const p=t[u];let f;l&&ne(l,f=ot(u))?!r||!r.includes(f)?s[f]=p:(a||(a={}))[f]=p:As(e.emitsOptions,u)||(!(u in n)||p!==n[u])&&(n[u]=p,i=!0)}if(r){const u=te(s),p=a||ie;for(let f=0;f<r.length;f++){const x=r[f];s[x]=xn(l,u,x,p[x],e,!ne(p,x))}}return i}function xn(e,t,s,n,l,r){const i=e[s];if(i!=null){const a=ne(i,"default");if(a&&n===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&q(u)){const{propsDefaults:p}=l;if(s in p)n=p[s];else{const f=ss(l);n=p[s]=u.call(null,t),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}i[0]&&(r&&!a?n=!1:i[1]&&(n===""||n===it(s))&&(n=!0))}return n}const bi=new WeakMap;function zl(e,t,s=!1){const n=s?bi:t.propsCache,l=n.get(e);if(l)return l;const r=e.props,i={},a=[];let u=!1;if(!q(e)){const f=x=>{u=!0;const[_,g]=zl(x,t,!0);he(i,_),g&&a.push(...g)};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!u)return le(e)&&n.set(e,Tt),Tt;if(z(r))for(let f=0;f<r.length;f++){const x=ot(r[f]);Wl(x)&&(i[x]=ie)}else if(r)for(const f in r){const x=ot(f);if(Wl(x)){const _=r[f],g=i[x]=z(_)||q(_)?{type:_}:he({},_),$=g.type;let w=!1,U=!0;if(z($))for(let T=0;T<$.length;++T){const b=$[T],k=q(b)&&b.name;if(k==="Boolean"){w=!0;break}else k==="String"&&(U=!1)}else w=q($)&&$.name==="Boolean";g[0]=w,g[1]=U,(w||ne(g,"default"))&&a.push(x)}}const p=[i,a];return le(e)&&n.set(e,p),p}function Wl(e){return e[0]!=="$"&&!Bt(e)}const wn=e=>e==="_"||e==="_ctx"||e==="$stable",kn=e=>z(e)?e.map(Ve):[Ve(e)],vi=(e,t,s)=>{if(t._n)return t;const n=Oo((...l)=>kn(t(...l)),s);return n._c=!1,n},ql=(e,t,s)=>{const n=e._ctx;for(const l in e){if(wn(l))continue;const r=e[l];if(q(r))t[l]=vi(l,r,n);else if(r!=null){const i=kn(r);t[l]=()=>i}}},Jl=(e,t)=>{const s=kn(t);e.slots.default=()=>s},Gl=(e,t,s)=>{for(const n in t)(s||!wn(n))&&(e[n]=t[n])},mi=(e,t,s)=>{const n=e.slots=Hl();if(e.vnode.shapeFlag&32){const l=t._;l?(Gl(n,t,s),s&&Wn(n,"_",l,!0)):ql(t,n)}else t&&Jl(e,t)},yi=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=ie;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:Gl(l,t,s):(r=!t.$stable,ql(t,l)),i=t}else t&&(Jl(e,t),i={default:1});if(r)for(const a in l)!wn(a)&&i[a]==null&&delete l[a]},$e=$i;function _i(e){return xi(e)}function xi(e,t){const s=fs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:x,nextSibling:_,setScopeId:g=De,insertStaticContent:$}=e,w=(c,v,C,L=null,E=null,A=null,F=void 0,D=null,I=!!v.dynamicChildren)=>{if(c===v)return;c&&!ts(c,v)&&(L=Hs(c),Ge(c,E,A,!0),c=null),v.patchFlag===-2&&(I=!1,v.dynamicChildren=null);const{type:M,ref:K,shapeFlag:N}=v;switch(M){case Ms:U(c,v,C,L);break;case ft:T(c,v,C,L);break;case Cn:c==null&&b(v,C,L,F);break;case R:Je(c,v,C,L,E,A,F,D,I);break;default:N&1?y(c,v,C,L,E,A,F,D,I):N&6?kt(c,v,C,L,E,A,F,D,I):(N&64||N&128)&&M.process(c,v,C,L,E,A,F,D,I,is)}K!=null&&E?Gt(K,c&&c.ref,A,v||c,!v):K==null&&c&&c.ref!=null&&Gt(c.ref,null,A,c,!0)},U=(c,v,C,L)=>{if(c==null)n(v.el=a(v.children),C,L);else{const E=v.el=c.el;v.children!==c.children&&p(E,v.children)}},T=(c,v,C,L)=>{c==null?n(v.el=u(v.children||""),C,L):v.el=c.el},b=(c,v,C,L)=>{[c.el,c.anchor]=$(c.children,v,C,L,c.el,c.anchor)},k=({el:c,anchor:v},C,L)=>{let E;for(;c&&c!==v;)E=_(c),n(c,C,L),c=E;n(v,C,L)},P=({el:c,anchor:v})=>{let C;for(;c&&c!==v;)C=_(c),l(c),c=C;l(v)},y=(c,v,C,L,E,A,F,D,I)=>{if(v.type==="svg"?F="svg":v.type==="math"&&(F="mathml"),c==null)S(v,C,L,E,A,F,D,I);else{const M=c.el&&c.el._isVueCE?c.el:null;try{M&&M._beginPatch(),Y(c,v,E,A,F,D,I)}finally{M&&M._endPatch()}}},S=(c,v,C,L,E,A,F,D)=>{let I,M;const{props:K,shapeFlag:N,transition:H,dirs:J}=c;if(I=c.el=i(c.type,A,K&&K.is,K),N&8?f(I,c.children):N&16&&B(c.children,I,null,L,E,$n(c,A),F,D),J&&mt(c,null,L,"created"),j(I,c,c.scopeId,F,L),K){for(const ue in K)ue!=="value"&&!Bt(ue)&&r(I,ue,null,K[ue],A,L);"value"in K&&r(I,"value",null,K.value,A),(M=K.onVnodeBeforeMount)&&Ke(M,L,c)}J&&mt(c,null,L,"beforeMount");const Z=wi(E,H);Z&&H.beforeEnter(I),n(I,v,C),((M=K&&K.onVnodeMounted)||Z||J)&&$e(()=>{M&&Ke(M,L,c),Z&&H.enter(I),J&&mt(c,null,L,"mounted")},E)},j=(c,v,C,L,E)=>{if(C&&g(c,C),L)for(let A=0;A<L.length;A++)g(c,L[A]);if(E){let A=E.subTree;if(v===A||er(A.type)&&(A.ssContent===v||A.ssFallback===v)){const F=E.vnode;j(c,F,F.scopeId,F.slotScopeIds,E.parent)}}},B=(c,v,C,L,E,A,F,D,I=0)=>{for(let M=I;M<c.length;M++){const K=c[M]=D?lt(c[M]):Ve(c[M]);w(null,K,v,C,L,E,A,F,D)}},Y=(c,v,C,L,E,A,F)=>{const D=v.el=c.el;let{patchFlag:I,dynamicChildren:M,dirs:K}=v;I|=c.patchFlag&16;const N=c.props||ie,H=v.props||ie;let J;if(C&&_t(C,!1),(J=H.onVnodeBeforeUpdate)&&Ke(J,C,v,c),K&&mt(v,c,C,"beforeUpdate"),C&&_t(C,!0),(N.innerHTML&&H.innerHTML==null||N.textContent&&H.textContent==null)&&f(D,""),M?ce(c.dynamicChildren,M,D,C,L,$n(v,E),A):F||ee(c,v,D,null,C,L,$n(v,E),A,!1),I>0){if(I&16)Le(D,N,H,C,E);else if(I&2&&N.class!==H.class&&r(D,"class",null,H.class,E),I&4&&r(D,"style",N.style,H.style,E),I&8){const Z=v.dynamicProps;for(let ue=0;ue<Z.length;ue++){const re=Z[ue],Ce=N[re],Te=H[re];(Te!==Ce||re==="value")&&r(D,re,Ce,Te,E,C)}}I&1&&c.children!==v.children&&f(D,v.children)}else!F&&M==null&&Le(D,N,H,C,E);((J=H.onVnodeUpdated)||K)&&$e(()=>{J&&Ke(J,C,v,c),K&&mt(v,c,C,"updated")},L)},ce=(c,v,C,L,E,A,F)=>{for(let D=0;D<v.length;D++){const I=c[D],M=v[D],K=I.el&&(I.type===R||!ts(I,M)||I.shapeFlag&198)?x(I.el):C;w(I,M,K,null,L,E,A,F,!0)}},Le=(c,v,C,L,E)=>{if(v!==C){if(v!==ie)for(const A in v)!Bt(A)&&!(A in C)&&r(c,A,v[A],null,E,L);for(const A in C){if(Bt(A))continue;const F=C[A],D=v[A];F!==D&&A!=="value"&&r(c,A,D,F,E,L)}"value"in C&&r(c,"value",v.value,C.value,E)}},Je=(c,v,C,L,E,A,F,D,I)=>{const M=v.el=c?c.el:a(""),K=v.anchor=c?c.anchor:a("");let{patchFlag:N,dynamicChildren:H,slotScopeIds:J}=v;J&&(D=D?D.concat(J):J),c==null?(n(M,C,L),n(K,C,L),B(v.children||[],C,K,E,A,F,D,I)):N>0&&N&64&&H&&c.dynamicChildren&&c.dynamicChildren.length===H.length?(ce(c.dynamicChildren,H,C,E,A,F,D),(v.key!=null||E&&v===E.subTree)&&Ql(c,v,!0)):ee(c,v,C,K,E,A,F,D,I)},kt=(c,v,C,L,E,A,F,D,I)=>{v.slotScopeIds=D,c==null?v.shapeFlag&512?E.ctx.activate(v,C,L,F,I):$t(v,C,L,E,A,F,I):Us(c,v,I)},$t=(c,v,C,L,E,A,F)=>{const D=c.component=Pi(c,L,E);if(bn(c)&&(D.ctx.renderer=is),Oi(D,!1,F),D.asyncDep){if(E&&E.registerDep(D,ge,F),!c.el){const I=D.subTree=fe(ft);T(null,I,v,C),c.placeholder=I.el}}else ge(D,c,v,C,E,A,F)},Us=(c,v,C)=>{const L=v.component=c.component;if(fi(c,v,C))if(L.asyncDep&&!L.asyncResolved){Q(L,v,C);return}else L.next=v,L.update();else v.el=c.el,L.vnode=v},ge=(c,v,C,L,E,A,F)=>{const D=()=>{if(c.isMounted){let{next:N,bu:H,u:J,parent:Z,vnode:ue}=c;{const Ye=Yl(c);if(Ye){N&&(N.el=ue.el,Q(c,N,F)),Ye.asyncDep.then(()=>{$e(()=>{c.isUnmounted||M()},E)});return}}let re=N,Ce;_t(c,!1),N?(N.el=ue.el,Q(c,N,F)):N=ue,H&&ds(H),(Ce=N.props&&N.props.onVnodeBeforeUpdate)&&Ke(Ce,Z,N,ue),_t(c,!0);const Te=Fl(c),Qe=c.subTree;c.subTree=Te,w(Qe,Te,x(Qe.el),Hs(Qe),c,E,A),N.el=Te.el,re===null&&hi(c,Te.el),J&&$e(J,E),(Ce=N.props&&N.props.onVnodeUpdated)&&$e(()=>Ke(Ce,Z,N,ue),E)}else{let N;const{el:H,props:J}=v,{bm:Z,m:ue,parent:re,root:Ce,type:Te}=c,Qe=Qt(v);_t(c,!1),Z&&ds(Z),!Qe&&(N=J&&J.onVnodeBeforeMount)&&Ke(N,re,v),_t(c,!0);{Ce.ce&&Ce.ce._hasShadowRoot()&&Ce.ce._injectChildStyle(Te);const Ye=c.subTree=Fl(c);w(null,Ye,C,L,c,E,A),v.el=Ye.el}if(ue&&$e(ue,E),!Qe&&(N=J&&J.onVnodeMounted)){const Ye=v;$e(()=>Ke(N,re,Ye),E)}(v.shapeFlag&256||re&&Qt(re.vnode)&&re.vnode.shapeFlag&256)&&c.a&&$e(c.a,E),c.isMounted=!0,v=C=L=null}};c.scope.on();const I=c.effect=new Yn(D);c.scope.off();const M=c.update=I.run.bind(I),K=c.job=I.runIfDirty.bind(I);K.i=c,K.id=c.uid,I.scheduler=()=>hn(K),_t(c,!0),M()},Q=(c,v,C)=>{v.component=c;const L=c.vnode.props;c.vnode=v,c.next=null,gi(c,v.props,L,C),yi(c,v.children,C),Fe(),_l(c),Ne()},ee=(c,v,C,L,E,A,F,D,I=!1)=>{const M=c&&c.children,K=c?c.shapeFlag:0,N=v.children,{patchFlag:H,shapeFlag:J}=v;if(H>0){if(H&128){rs(M,N,C,L,E,A,F,D,I);return}else if(H&256){be(M,N,C,L,E,A,F,D,I);return}}J&8?(K&16&&os(M,E,A),N!==M&&f(C,N)):K&16?J&16?rs(M,N,C,L,E,A,F,D,I):os(M,E,A,!0):(K&8&&f(C,""),J&16&&B(N,C,L,E,A,F,D,I))},be=(c,v,C,L,E,A,F,D,I)=>{c=c||Tt,v=v||Tt;const M=c.length,K=v.length,N=Math.min(M,K);let H;for(H=0;H<N;H++){const J=v[H]=I?lt(v[H]):Ve(v[H]);w(c[H],J,C,null,E,A,F,D,I)}M>K?os(c,E,A,!0,!1,N):B(v,C,L,E,A,F,D,I,N)},rs=(c,v,C,L,E,A,F,D,I)=>{let M=0;const K=v.length;let N=c.length-1,H=K-1;for(;M<=N&&M<=H;){const J=c[M],Z=v[M]=I?lt(v[M]):Ve(v[M]);if(ts(J,Z))w(J,Z,C,null,E,A,F,D,I);else break;M++}for(;M<=N&&M<=H;){const J=c[N],Z=v[H]=I?lt(v[H]):Ve(v[H]);if(ts(J,Z))w(J,Z,C,null,E,A,F,D,I);else break;N--,H--}if(M>N){if(M<=H){const J=H+1,Z=J<K?v[J].el:L;for(;M<=H;)w(null,v[M]=I?lt(v[M]):Ve(v[M]),C,Z,E,A,F,D,I),M++}}else if(M>H)for(;M<=N;)Ge(c[M],E,A,!0),M++;else{const J=M,Z=M,ue=new Map;for(M=Z;M<=H;M++){const Ee=v[M]=I?lt(v[M]):Ve(v[M]);Ee.key!=null&&ue.set(Ee.key,M)}let re,Ce=0;const Te=H-Z+1;let Qe=!1,Ye=0;const as=new Array(Te);for(M=0;M<Te;M++)as[M]=0;for(M=J;M<=N;M++){const Ee=c[M];if(Ce>=Te){Ge(Ee,E,A,!0);continue}let Xe;if(Ee.key!=null)Xe=ue.get(Ee.key);else for(re=Z;re<=H;re++)if(as[re-Z]===0&&ts(Ee,v[re])){Xe=re;break}Xe===void 0?Ge(Ee,E,A,!0):(as[Xe-Z]=M+1,Xe>=Ye?Ye=Xe:Qe=!0,w(Ee,v[Xe],C,null,E,A,F,D,I),Ce++)}const jr=Qe?ki(as):Tt;for(re=jr.length-1,M=Te-1;M>=0;M--){const Ee=Z+M,Xe=v[Ee],Fr=v[Ee+1],Nr=Ee+1<K?Fr.el||Zl(Fr):L;as[M]===0?w(null,Xe,C,Nr,E,A,F,D,I):Qe&&(re<0||M!==jr[re]?Ct(Xe,C,Nr,2):re--)}}},Ct=(c,v,C,L,E=null)=>{const{el:A,type:F,transition:D,children:I,shapeFlag:M}=c;if(M&6){Ct(c.component.subTree,v,C,L);return}if(M&128){c.suspense.move(v,C,L);return}if(M&64){F.move(c,v,C,is);return}if(F===R){n(A,v,C);for(let N=0;N<I.length;N++)Ct(I[N],v,C,L);n(c.anchor,v,C);return}if(F===Cn){k(c,v,C);return}if(L!==2&&M&1&&D)if(L===0)D.beforeEnter(A),n(A,v,C),$e(()=>D.enter(A),E);else{const{leave:N,delayLeave:H,afterLeave:J}=D,Z=()=>{c.ctx.isUnmounted?l(A):n(A,v,C)},ue=()=>{A._isLeaving&&A[Bo](!0),N(A,()=>{Z(),J&&J()})};H?H(A,Z,ue):ue()}else n(A,v,C)},Ge=(c,v,C,L=!1,E=!1)=>{const{type:A,props:F,ref:D,children:I,dynamicChildren:M,shapeFlag:K,patchFlag:N,dirs:H,cacheIndex:J}=c;if(N===-2&&(E=!1),D!=null&&(Fe(),Gt(D,null,C,c,!0),Ne()),J!=null&&(v.renderCache[J]=void 0),K&256){v.ctx.deactivate(c);return}const Z=K&1&&H,ue=!Qt(c);let re;if(ue&&(re=F&&F.onVnodeBeforeUnmount)&&Ke(re,v,c),K&6)Eh(c.component,C,L);else{if(K&128){c.suspense.unmount(C,L);return}Z&&mt(c,null,v,"beforeUnmount"),K&64?c.type.remove(c,v,C,is,L):M&&!M.hasOnce&&(A!==R||N>0&&N&64)?os(M,v,C,!1,!0):(A===R&&N&384||!E&&K&16)&&os(I,v,C),L&&Ir(c)}(ue&&(re=F&&F.onVnodeUnmounted)||Z)&&$e(()=>{re&&Ke(re,v,c),Z&&mt(c,null,v,"unmounted")},C)},Ir=c=>{const{type:v,el:C,anchor:L,transition:E}=c;if(v===R){Sh(C,L);return}if(v===Cn){P(c);return}const A=()=>{l(C),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(c.shapeFlag&1&&E&&!E.persisted){const{leave:F,delayLeave:D}=E,I=()=>F(C,A);D?D(c.el,A,I):I()}else A()},Sh=(c,v)=>{let C;for(;c!==v;)C=_(c),l(c),c=C;l(v)},Eh=(c,v,C)=>{const{bum:L,scope:E,job:A,subTree:F,um:D,m:I,a:M}=c;Xl(I),Xl(M),L&&ds(L),E.stop(),A&&(A.flags|=8,Ge(F,c,v,C)),D&&$e(D,v),$e(()=>{c.isUnmounted=!0},v)},os=(c,v,C,L=!1,E=!1,A=0)=>{for(let F=A;F<c.length;F++)Ge(c[F],v,C,L,E)},Hs=c=>{if(c.shapeFlag&6)return Hs(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const v=_(c.anchor||c.el),C=v&&v[Fo];return C?_(C):v};let Fn=!1;const Dr=(c,v,C)=>{let L;c==null?v._vnode&&(Ge(v._vnode,null,null,!0),L=v._vnode.component):w(v._vnode||null,c,v,null,null,null,C),v._vnode=c,Fn||(Fn=!0,_l(L),xl(),Fn=!1)},is={p:w,um:Ge,m:Ct,r:Ir,mt:$t,mc:B,pc:ee,pbc:ce,n:Hs,o:e};return{render:Dr,hydrate:void 0,createApp:oi(Dr)}}function $n({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function _t({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function wi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ql(e,t,s=!1){const n=e.children,l=t.children;if(z(n)&&z(l))for(let r=0;r<n.length;r++){const i=n[r];let a=l[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[r]=lt(l[r]),a.el=i.el),!s&&a.patchFlag!==-2&&Ql(i,a)),a.type===Ms&&(a.patchFlag===-1&&(a=l[r]=lt(a)),a.el=i.el),a.type===ft&&!a.el&&(a.el=i.el)}}function ki(e){const t=e.slice(),s=[0];let n,l,r,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(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<p?r=a+1:i=a;p<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Yl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yl(t)}function Xl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Zl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Zl(t.subTree):null}const er=e=>e.__isSuspense;function $i(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Lo(e)}const R=Symbol.for("v-fgt"),Ms=Symbol.for("v-txt"),ft=Symbol.for("v-cmt"),Cn=Symbol.for("v-stc"),Zt=[];let Se=null;function d(e=!1){Zt.push(Se=e?null:[])}function Ci(){Zt.pop(),Se=Zt[Zt.length-1]||null}let es=1;function Ps(e,t=!1){es+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function tr(e){return e.dynamicChildren=es>0?Se||Tt:null,Ci(),es>0&&Se&&Se.push(e),e}function h(e,t,s,n,l,r){return tr(o(e,t,s,n,l,r,!0))}function Pe(e,t,s,n,l){return tr(fe(e,t,s,n,l,!0))}function Ls(e){return e?e.__v_isVNode===!0:!1}function ts(e,t){return e.type===t.type&&e.key===t.key}const sr=({key:e})=>e??null,Os=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?de(e)||pe(e)||q(e)?{i:Me,r:e,k:t,f:!!s}:e:null);function o(e,t=null,s=null,n=0,l=null,r=e===R?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sr(t),ref:t&&Os(t),scopeId:kl,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Me};return a?(Tn(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=de(s)?8:16),es>0&&!i&&Se&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Se.push(u),u}const fe=Ti;function Ti(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===Xo)&&(e=ft),Ls(e)){const a=It(e,t,!0);return s&&Tn(a,s),es>0&&!r&&Se&&(a.shapeFlag&6?Se[Se.indexOf(e)]=a:Se.push(a)),a.patchFlag=-2,a}if(Bi(e)&&(e=e.__vccOpts),t){t=Si(t);let{class:a,style:u}=t;a&&!de(a)&&(t.class=V(a)),le(u)&&(dn(u)&&!z(u)&&(u=he({},u)),t.style=Et(u))}const i=de(e)?1:er(e)?128:No(e)?64:le(e)?4:q(e)?2:0;return o(e,t,s,n,l,i,r,!0)}function Si(e){return e?dn(e)||Vl(e)?he({},e):e:null}function It(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:a,transition:u}=e,p=t?Ei(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&sr(p),ref:t&&t.ref?s&&r?z(r)?r.concat(Os(t)):[r,Os(t)]:Os(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&It(e.ssContent),ssFallback:e.ssFallback&&It(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&pn(f,u.clone(f)),f}function se(e=" ",t=0){return fe(Ms,null,e,t)}function oe(e="",t=!1){return t?(d(),Pe(ft,null,e)):fe(ft,null,e)}function Ve(e){return e==null||typeof e=="boolean"?fe(ft):z(e)?fe(R,null,e.slice()):Ls(e)?lt(e):fe(Ms,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:It(e)}function Tn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(z(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),Tn(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!Vl(t)?t._ctx=Me:l===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Me},s=32):(t=String(t),n&64?(s=16,t=[se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Ei(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const l in n)if(l==="class")t.class!==n.class&&(t.class=V([t.class,n.class]));else if(l==="style")t.style=Et([t.style,n.style]);else if(us(l)){const r=t[l],i=n[l];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ke(e,t,s,n=null){Be(e,t,7,[s,n])}const Ai=Dl();let Mi=0;function Pi(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Ai,r={uid:Mi++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Qr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zl(n,l),emitsOptions:jl(n,l),emit:null,emitted:null,propsDefaults:ie,inheritAttrs:n.inheritAttrs,ctx:ie,data:ie,props:ie,attrs:ie,slots:ie,refs:ie,setupState:ie,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=ai.bind(null,r),e.ce&&e.ce(r),r}let me=null;const Li=()=>me||Me;let Rs,Sn;{const e=fs(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Rs=t("__VUE_INSTANCE_SETTERS__",s=>me=s),Sn=t("__VUE_SSR_SETTERS__",s=>Dt=s)}const ss=e=>{const t=me;return Rs(e),e.scope.on(),()=>{e.scope.off(),Rs(t)}},nr=()=>{me&&me.scope.off(),Rs(null)};function lr(e){return e.vnode.shapeFlag&4}let Dt=!1;function Oi(e,t=!1,s=!1){t&&Sn(t);const{props:n,children:l}=e.vnode,r=lr(e);pi(e,n,r,t),mi(e,l,s||t);const i=r?Ri(e,t):void 0;return t&&Sn(!1),i}function Ri(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zo);const{setup:n}=s;if(n){Fe();const l=e.setupContext=n.length>1?Di(e):null,r=ss(e),i=Pt(n,e,0,[e.props,l]),a=Hn(i);if(Ne(),r(),(a||e.sp)&&!Qt(e)&&gn(e),a){if(i.then(nr,nr),t)return i.then(u=>{rr(e,u)}).catch(u=>{qt(u,e,0)});e.asyncDep=i}else rr(e,i)}else or(e)}function rr(e,t,s){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:le(t)&&(e.setupState=gl(t)),or(e)}function or(e,t,s){const n=e.type;e.render||(e.render=n.render||De);{const l=ss(e);Fe();try{ei(e)}finally{Ne(),l()}}}const Ii={get(e,t){return ve(e,"get",""),e[t]}};function Di(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Ii),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gl(mo(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Yt)return Yt[s](e)},has(t,s){return s in t||s in Yt}})):e.proxy}const ji=/(?:^|[-_])\w/g,Fi=e=>e.replace(ji,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ni(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function ir(e,t,s=!1){let n=Ni(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=r=>{for(const i in r)if(r[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Fi(n):s?"App":"Anonymous"}function Bi(e){return q(e)&&"__vccOpts"in e}const G=(e,t)=>ko(e,t,Dt);function Ui(e,t,s){try{Ps(-1);const n=arguments.length;return n===2?le(t)&&!z(t)?Ls(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Ls(s)&&(s=[s]),fe(e,t,s))}finally{Ps(1)}}const Hi="3.5.29";let En;const ar=typeof window<"u"&&window.trustedTypes;if(ar)try{En=ar.createPolicy("vue",{createHTML:e=>e})}catch{}const ur=En?e=>En.createHTML(e):e=>e,Vi="http://www.w3.org/2000/svg",Ki="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,cr=rt&&rt.createElement("template"),zi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const l=t==="svg"?rt.createElementNS(Vi,e):t==="mathml"?rt.createElementNS(Ki,e):s?rt.createElement(e,{is:s}):rt.createElement(e);return e==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,l,r){const i=s?s.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===r||!(l=l.nextSibling)););else{cr.innerHTML=ur(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=cr.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]}},Wi=Symbol("_vtc");function qi(e,t,s){const n=e[Wi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const dr=Symbol("_vod"),Ji=Symbol("_vsh"),Gi=Symbol(""),Qi=/(?:^|;)\s*display\s*:/;function Yi(e,t,s){const n=e.style,l=de(s);let r=!1;if(s&&!l){if(t)if(de(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();s[a]==null&&Ds(n,a,"")}else for(const i in t)s[i]==null&&Ds(n,i,"");for(const i in s)i==="display"&&(r=!0),Ds(n,i,s[i])}else if(l){if(t!==s){const i=n[Gi];i&&(s+=";"+i),n.cssText=s,r=Qi.test(s)}}else t&&e.removeAttribute("style");dr in e&&(e[dr]=r?n.display:"",e[Ji]&&(n.display="none"))}const fr=/\s*!important$/;function Ds(e,t,s){if(z(s))s.forEach(n=>Ds(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Xi(e,t);fr.test(s)?e.setProperty(it(n),s.replace(fr,""),"important"):e[n]=s}}const hr=["Webkit","Moz","ms"],An={};function Xi(e,t){const s=An[t];if(s)return s;let n=ot(t);if(n!=="filter"&&n in e)return An[t]=n;n=zn(n);for(let l=0;l<hr.length;l++){const r=hr[l]+n;if(r in e)return An[t]=r}return t}const pr="http://www.w3.org/1999/xlink";function gr(e,t,s,n,l,r=Jr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(pr,t.slice(6,t.length)):e.setAttributeNS(pr,t,s):s==null||r&&!Jn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":je(s)?String(s):s)}function br(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ur(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=Jn(s):s==null&&a==="string"?(s="",i=!0):a==="number"&&(s=0,i=!0)}try{e[t]=s}catch{}i&&e.removeAttribute(l||t)}function jt(e,t,s,n){e.addEventListener(t,s,n)}function Zi(e,t,s,n){e.removeEventListener(t,s,n)}const vr=Symbol("_vei");function ea(e,t,s,n,l=null){const r=e[vr]||(e[vr]={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=ta(t);if(n){const p=r[t]=la(n,l);jt(e,a,p,u)}else i&&(Zi(e,a,i,u),r[t]=void 0)}}const mr=/(?:Once|Passive|Capture)$/;function ta(e){let t;if(mr.test(e)){t={};let n;for(;n=e.match(mr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):it(e.slice(2)),t]}let Mn=0;const sa=Promise.resolve(),na=()=>Mn||(sa.then(()=>Mn=0),Mn=Date.now());function la(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;Be(ra(n,s.value),t,5,[n])};return s.value=e,s.attached=na(),s}function ra(e,t){if(z(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>l=>!l._stopped&&n&&n(l))}else return t}const yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,oa=(e,t,s,n,l,r)=>{const i=l==="svg";t==="class"?qi(e,n,i):t==="style"?Yi(e,s,n):us(t)?Ks(t)||ea(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ia(e,t,n,i))?(br(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gr(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!de(n))?br(e,ot(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),gr(e,t,n,i))};function ia(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&yr(t)&&q(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 yr(t)&&de(s)?!1:t in e}const _r=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?s=>ds(t,s):t};function aa(e){e.target.composing=!0}function xr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pn=Symbol("_assign");function wr(e,t,s){return t&&(e=e.trim()),s&&(e=Js(e)),e}const ze={created(e,{modifiers:{lazy:t,trim:s,number:n}},l){e[Pn]=_r(l);const r=n||l.props&&l.props.type==="number";jt(e,t?"change":"input",i=>{i.target.composing||e[Pn](wr(e.value,s,r))}),(s||r)&&jt(e,"change",()=>{e.value=wr(e.value,s,r)}),t||(jt(e,"compositionstart",aa),jt(e,"compositionend",xr),jt(e,"change",xr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:r}},i){if(e[Pn]=_r(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Js(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))}},ua=["ctrl","shift","alt","meta"],ca={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)=>ua.some(s=>e[`${s}Key`]&&!t.includes(s))},Ft=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((l,...r)=>{for(let i=0;i<t.length;i++){const a=ca[t[i]];if(a&&a(l,t))return}return e(l,...r)}))},da={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},kr=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const r=it(l.key);if(t.some(i=>i===r||da[i]===r))return e(l)}))},fa=he({patchProp:oa},zi);let $r;function ha(){return $r||($r=_i(fa))}const pa=((...e)=>{const t=ha().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=ba(n);if(!l)return;const r=t._component;!q(r)&&!r.render&&!r.template&&(r.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,ga(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function ga(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ba(e){return de(e)?document.querySelector(e):e}class js extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class va extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class Ln{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const l={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},r=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(r.status===401||r.status===403)throw new js(r.status);if(!r.ok){const i=await r.text().catch(()=>"");throw new va(r.status,i)}return r.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ma=3e3,ya=100,_a=500,xa={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function wa(e){return xa[e]||`/${e}`}class Cr{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new Ln({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??ma,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 js){this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n)))}finally{this.callbacks.onLoading(!1)}}cacheForTab(t,s){this.fetchOnceCache[t]=s}clearCache(){this.fetchOnceCache={}}async fetchData(){const t=this.currentTab;if(!t)return;if(this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const n=`${this.endpoint}${wa(t)}`,l=await this.client.fetch(n,{signal:s.signal});if(s.signal.aborted)return;this.callbacks.onData(l),this.callbacks.onError(null),this.callbacks.onLoading(!1)}catch(n){if(n instanceof DOMException&&n.name==="AbortError"||s.signal.aborted)return;if(n instanceof js){this.callbacks.onError(n),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n))),this.callbacks.onLoading(!1)}}}const Tr=new Set(["cache","jobs","config"]);function ka(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:r,refreshInterval:i}=t,a=W(null),u=W(!1),p=W(null),f=W(!1),x=new Cr({baseUrl:s,endpoint:n,authToken:r,refreshInterval:i,onData:y=>{a.value=y},onLoading:y=>{u.value=y},onError:y=>{p.value=y},onUnauthorized:()=>{f.value=!0}});let _=null;function g(){return!_&&l&&(_=new Cr({baseUrl:s,endpoint:l,authToken:r,refreshInterval:i,onData:y=>{a.value=y},onLoading:y=>{u.value=y},onError:y=>{p.value=y},onUnauthorized:()=>{f.value=!0}})),_}function $(){const y=e();if(y&&!y.startsWith("custom-"))if(Tr.has(y)&&l){const S=g();x.stop(),S.start(y)}else _?.stop(),x.start(y)}function w(){x.stop(),_?.stop()}async function U(y,S=!1){await x.fetchCustomPane(y,S)}function T(){$()}function b(){w()}function k(){const y=e();Tr.has(y)&&l&&_?_.refresh():x.refresh()}function P(){a.value=null}return dt(e,()=>{P(),$()}),yt(()=>{T()}),Ss(()=>{w()}),{data:a,loading:u,error:p,isUnauthorized:f,refresh:k,clear:P,fetchCustomPane:U,startRefresh:T,stopRefresh:b}}const Fs="ss-dash-theme",On="ss-theme-change";function Ns(){if(typeof window>"u")return"light";const e=localStorage.getItem(Fs);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function $a(e){typeof window>"u"||(localStorage.setItem(Fs,e),window.dispatchEvent(new CustomEvent(On,{detail:e})))}function Ca(){const t=Ns()==="dark"?"light":"dark";return $a(t),t}function Ta(e){if(typeof window>"u")return()=>{};const t=r=>{const i=r.detail;(i==="dark"||i==="light")&&e(i)},s=r=>{if(r.key===Fs){const i=r.newValue;e(i==="dark"||i==="light"?i:Ns())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=r=>{localStorage.getItem(Fs)||e(r.matches?"dark":"light")};return window.addEventListener(On,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(On,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Sa(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),n=Math.floor(t%86400/3600),l=Math.floor(t%3600/60);return s>0?`${s}d ${n}h`:n>0?`${n}h ${l}m`:l>0?`${l}m ${t%60}s`:`${t}s`}function We(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Sr(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function xt(e){if(!e)return"-";const t=typeof e=="string"?new Date(Sr(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function qe(e){if(!e)return"-";const t=typeof e=="string"?new Date(Sr(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 Rn(e){return e>_a?"very-slow":e>ya?"slow":"normal"}function ns(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const n="["+e.slice(0,3).map(l=>ns(l,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return n.length>t?"["+e.length+" items]":n}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const n=[];for(let r=0;r<Math.min(s.length,4);r++)n.push(s[r]+": "+ns(e[s[r]],30));const l="{ "+n.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return l.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":l}return String(e)}function Er(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 Ea(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Ar="/admin/api/debug",Mr={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 Aa(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function Ma(e,t=Ar){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Pa(e){const{baseUrl:t="",debugEndpoint:s=Ar,authToken:n}=e,l=new Ln({baseUrl:t,authToken:n});try{const r=await Ma(l,s);return Aa(r)}catch{return Mr}}const we={queries:{viewBox:"0 0 24 24",elements:['<ellipse cx="12" cy="5" rx="9" ry="3"/>','<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"/>','<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"/>']},events:{viewBox:"0 0 24 24",elements:['<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>']},emails:{viewBox:"0 0 24 24",elements:['<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/>','<polyline points="22,6 12,13 2,6"/>']},routes:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<line x1="2" y1="12" x2="22" y2="12"/>','<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>']},logs:{viewBox:"0 0 24 24",elements:['<line x1="8" y1="6" x2="21" y2="6"/>','<line x1="8" y1="12" x2="21" y2="12"/>','<line x1="8" y1="18" x2="21" y2="18"/>','<line x1="3" y1="6" x2="3.01" y2="6"/>','<line x1="3" y1="12" x2="3.01" y2="12"/>','<line x1="3" y1="18" x2="3.01" y2="18"/>']},timeline:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},cache:{viewBox:"0 0 24 24",elements:['<rect x="2" y="2" width="20" height="8" rx="2" ry="2"/>','<rect x="2" y="14" width="20" height="8" rx="2" ry="2"/>','<line x1="6" y1="6" x2="6.01" y2="6"/>','<line x1="6" y1="18" x2="6.01" y2="18"/>']},jobs:{viewBox:"0 0 24 24",elements:['<rect x="2" y="7" width="20" height="14" rx="2" ry="2"/>','<path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"/>']},config:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="3"/>','<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>']},internals:{viewBox:"0 0 24 24",elements:['<rect x="4" y="4" width="16" height="16" rx="2"/>','<rect x="9" y="9" width="6" height="6"/>','<line x1="9" y1="1" x2="9" y2="4"/>','<line x1="15" y1="1" x2="15" y2="4"/>','<line x1="9" y1="20" x2="9" y2="23"/>','<line x1="15" y1="20" x2="15" y2="23"/>','<line x1="20" y1="9" x2="23" y2="9"/>','<line x1="20" y1="14" x2="23" y2="14"/>','<line x1="1" y1="9" x2="4" y2="9"/>','<line x1="1" y1="14" x2="4" y2="14"/>']},overview:{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="7" height="7"/>','<rect x="14" y="3" width="7" height="7"/>','<rect x="14" y="14" width="7" height="7"/>','<rect x="3" y="14" width="7" height="7"/>']},requests:{viewBox:"0 0 24 24",elements:['<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>']},"dashboard-timeline":{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="10"/>','<polyline points="12 6 12 12 16 14"/>']},"custom-pane":{viewBox:"0 0 24 24",elements:['<rect x="3" y="3" width="18" height="18" rx="2"/>','<path d="M9 3v18"/>']},wrench:{viewBox:"0 0 24 24",elements:['<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>']},"external-link":{viewBox:"0 0 24 24",elements:['<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>','<polyline points="15 3 21 3 21 9"/>','<line x1="10" y1="14" x2="21" y2="3"/>']},sun:{viewBox:"0 0 24 24",elements:['<circle cx="12" cy="12" r="5"/>','<line x1="12" y1="1" x2="12" y2="3"/>','<line x1="12" y1="21" x2="12" y2="23"/>','<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/>','<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/>','<line x1="1" y1="12" x2="3" y2="12"/>','<line x1="21" y1="12" x2="23" y2="12"/>','<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/>','<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/>']},moon:{viewBox:"0 0 24 24",elements:['<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/>']},search:{viewBox:"0 0 24 24",elements:['<circle cx="11" cy="11" r="8"/>','<line x1="21" y1="21" x2="16.65" y2="16.65"/>']},eye:{viewBox:"0 0 24 24",elements:['<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/>','<circle cx="12" cy="12" r="3"/>']},"eye-off":{viewBox:"0 0 24 24",elements:['<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94"/>','<path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19"/>','<line x1="1" y1="1" x2="23" y2="23"/>','<path d="M14.12 14.12a3 3 0 1 1-4.24-4.24"/>']},"chevron-right":{viewBox:"0 0 24 24",elements:['<path d="M9 18l6-6-6-6"/>']},"chevron-left":{viewBox:"0 0 24 24",elements:['<path d="M15 18l-6-6 6-6"/>']},"open-external":{viewBox:"0 0 16 16",elements:['<path d="M6 3H3v10h10v-3M9 1h6v6M7 9L15 1"/>']}},La="ss-col-resize",Pr="ss-resizing";function Oa(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let n=!1;function l(){if(!n){n=!0;for(const r of t)r.style.width=r.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const r of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const p=u.clientX,f=r.offsetWidth;a.classList.add(Pr),a.setPointerCapture(u.pointerId);function x(g){const $=g.clientX-p,w=Math.max(30,f+$);r.style.width=w+"px"}function _(){a.classList.remove(Pr),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",_)}a.addEventListener("pointermove",x),a.addEventListener("pointerup",_)};if(!r.textContent?.trim())continue;const a=document.createElement("div");a.className=La,r.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const r of s)r()}}const Ra=["all","error","warn","info","debug"];function In(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Lr(e){return e.msg||e.message||JSON.stringify(e)}function Bs(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function ht(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function Ia(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 Da(e,t){return t==="all"?e:e.filter(s=>{const n=In(s);return t==="error"?n==="error"||n==="fatal":n===t})}const Or=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 ls(e){if(e.data){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const n={};for(const[l,r]of Object.entries(s))Or.has(l)||(n[l]=r);if(Object.keys(n).length>0)return n}}const t={};for(const[s,n]of Object.entries(e))Or.has(s)||(t[s]=n);return Object.keys(t).length>0?t:null}function ja(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 Fa(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function Na(e,t){const s=e.filter(r=>r.duration>100).length,n=Object.values(t).filter(r=>r>1).length,l=e.length>0?e.reduce((r,i)=>r+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}const Ba=["all","active","waiting","delayed","completed","failed"];function Ua(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 Ha=["password","secret","token","key","credential","auth"];function Va(e){const t=e.toLowerCase();return Ha.some(s=>t.includes(s))}function Ka(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 za={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Wa(e){return za[e]||e}const qa={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Ja(e){return qa[e]||e}function Ga(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Qa(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function Ya(e){return Object.entries(e).map(([t,s])=>({key:t,value:Ka(s),secret:Va(t)}))}function Xa(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Za=["healthy","active","connected","available","ready"],eu=["errored","unavailable"];function tu(e){return Za.includes(e)?"ok":eu.includes(e)?"err":""}function su(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function nu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(su(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const lu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function ru(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const r of l)r&&s.push(r)}return s}function ou(e){return ru(e).some(s=>lu.has(s.toLowerCase()))}function iu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=W({...Mr}),r=W(!0);return yt(async()=>{l.value=await Pa({baseUrl:t,debugEndpoint:s,authToken:n}),r.value=!1}),{features:l,loading:r}}function Rr(){const e=W(Ns());let t=null;function s(l){e.value=l}function n(){const l=Ca();return e.value=l,l}return yt(()=>{e.value=Ns(),t=Ta(s)}),Ss(()=>{t?.()}),{theme:e,toggleTheme:n}}const au=["title","aria-label"],uu=["viewBox","innerHTML"],cu=["viewBox","innerHTML"],du=_e({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Rr(),l=G(()=>s.value==="dark"),r=G(()=>l.value?"Switch to light theme":"Switch to dark theme"),i=G(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(a,u)=>(d(),h("button",{type:"button",class:V(i.value),title:r.value,"aria-label":r.value,onClick:u[0]||(u[0]=(...p)=>O(n)&&O(n)(...p))},[l.value?(d(),h("svg",{key:0,width:"16",height:"16",viewBox:O(we).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:O(we).sun.elements.join("")},null,8,uu)):(d(),h("svg",{key:1,width:"16",height:"16",viewBox:O(we).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:O(we).moon.elements.join("")},null,8,cu))],10,au))}}),fu=["data-ss-theme"],hu={class:"ss-dbg-tabs"},pu={class:"ss-dbg-tabs-scroll"},gu=["onClick"],bu=["viewBox","innerHTML"],vu={class:"ss-dbg-tabs-right"},mu=["title"],yu=["href"],_u=["viewBox","innerHTML"],xu={class:"ss-dbg-content"},wu={key:0,class:"ss-dbg-empty"},ku={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},$u=_e({__name:"DebugPanel",props:{dashboardPath:{default:"/__stats"},tracingEnabled:{type:Boolean,default:!1},isLive:{type:Boolean,default:!1},baseUrl:{default:""},debugEndpoint:{default:"/admin/api/debug"},authToken:{},className:{},defaultOpen:{type:Boolean,default:!1}},setup(e,{expose:t}){const s=Ie(()=>Promise.resolve().then(()=>Ru)),n=Ie(()=>Promise.resolve().then(()=>Ku)),l=Ie(()=>Promise.resolve().then(()=>cc)),r=Ie(()=>Promise.resolve().then(()=>mc)),i=Ie(()=>Promise.resolve().then(()=>Rc)),a=Ie(()=>Promise.resolve().then(()=>rd)),u=Ie(()=>Promise.resolve().then(()=>Ad)),p=Ie(()=>Promise.resolve().then(()=>Yd)),f=Ie(()=>Promise.resolve().then(()=>Rf)),x=Ie(()=>Promise.resolve().then(()=>vh)),_=Ie(()=>Promise.resolve().then(()=>Th)),g=e,$=W(g.defaultOpen),w=W("queries"),{theme:U}=Rr(),{features:T}=iu({baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,authToken:g.authToken}),b=g.dashboardPath?g.dashboardPath.replace(/\/+$/,"")+"/api":void 0,k=G(()=>w.value.startsWith("custom-")),P=G(()=>k.value||w.value==="internals"),{data:y,loading:S,error:j,isUnauthorized:B,startRefresh:Y,stopRefresh:ce}=ka(()=>w.value,{baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,dashboardEndpoint:b,authToken:g.authToken}),Le=G(()=>{const Q=[{id:"queries",label:"Queries",icon:"Q"},{id:"events",label:"Events",icon:"E"},{id:"emails",label:"Emails",icon:"M"},{id:"routes",label:"Routes",icon:"R"},{id:"logs",label:"Logs",icon:"L"}];(T.value.tracing||g.tracingEnabled)&&Q.push({id:"timeline",label:"Timeline",icon:"T"}),T.value.cache&&Q.push({id:"cache",label:"Cache",icon:"C"}),T.value.queues&&Q.push({id:"jobs",label:"Jobs",icon:"J"}),Q.push({id:"config",label:"Config",icon:"G"}),Q.push({id:"internals",label:"Internals",icon:"I"});for(const ee of T.value.customPanes)Q.push({id:`custom-${ee.id}`,label:ee.label,icon:ee.label.charAt(0).toUpperCase()});return Q});function Je(Q){const ee=Q.replace("custom-","");return T.value.customPanes.find(be=>be.id===ee)}function kt(){$.value=!0,Y()}function $t(){$.value=!1,ce()}function Us(){$.value?$t():kt()}function ge(Q){w.value=Q}return dt($,Q=>{Q?Y():ce()}),t({toggle:Us,open:kt,close:$t}),(Q,ee)=>O(B)?oe("",!0):(d(),h("div",{key:0,class:V(["ss-dbg-panel",{"ss-dbg-open":$.value}]),"data-ss-theme":O(U)},[o("div",hu,[o("div",pu,[(d(!0),h(R,null,X(Le.value,be=>(d(),h("button",{key:be.id,type:"button",class:V(["ss-dbg-tab",{"ss-dbg-active":w.value===be.id}]),onClick:rs=>ge(be.id)},[O(we)[be.id]?(d(),h("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:O(we)[be.id].viewBox,innerHTML:O(we)[be.id].elements.join("")},null,8,bu)):oe("",!0),se(" "+m(be.label),1)],10,gu))),128))]),o("div",vu,[o("span",{class:V(["ss-dbg-conn-mode",e.isLive?"ss-dbg-conn-live":"ss-dbg-conn-polling"]),title:e.isLive?"Connected via Transmit (SSE) — real-time updates":"Polling every 3s"},m(e.isLive?"live":"polling"),11,mu),e.dashboardPath&&O(T).dashboard?(d(),h("a",{key:0,href:e.dashboardPath,target:"_blank",rel:"noopener noreferrer",class:"ss-dbg-dashboard-link",title:"Open dashboard"},[(d(),h("svg",{width:"14",height:"14",viewBox:O(we)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:O(we)["external-link"].elements.join("")},null,8,_u))],8,yu)):oe("",!0),fe(du),o("button",{type:"button",class:"ss-dbg-close",onClick:$t,title:"Close panel"}," × ")])]),o("div",xu,[O(S)&&!O(y)&&!P.value?(d(),h("div",wu,"Loading...")):O(j)&&!P.value?(d(),h("div",ku," Error: "+m(O(j).message),1)):(d(),h(R,{key:2},[w.value==="queries"?(d(),Pe(O(s),{key:0,data:O(y),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):w.value==="events"?(d(),Pe(O(n),{key:1,data:O(y),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):w.value==="emails"?(d(),Pe(O(l),{key:2,data:O(y),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):w.value==="routes"?(d(),Pe(O(r),{key:3,data:O(y)},null,8,["data"])):w.value==="logs"?(d(),Pe(O(i),{key:4,data:O(y),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):w.value==="timeline"?(d(),Pe(O(a),{key:5,data:O(y),"dashboard-path":e.dashboardPath,"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","base-url","debug-endpoint","auth-token"])):w.value==="cache"?(d(),Pe(O(u),{key:6,data:O(y)},null,8,["data"])):w.value==="jobs"?(d(),Pe(O(p),{key:7,data:O(y)},null,8,["data"])):w.value==="config"?(d(),Pe(O(f),{key:8,data:O(y)},null,8,["data"])):w.value==="internals"?(d(),Pe(O(x),{key:9,data:O(y),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):w.value.startsWith("custom-")?(d(),Pe(O(_),{key:10,pane:Je(w.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):oe("",!0)],64))])],10,fu))}});let wt=null;window.__ssDebugPanel={mount(e,t,s){wt&&wt.unmount(),wt=pa({setup(){return()=>Ui($u,{debugEndpoint:t.debugEndpoint,authToken:t.authToken,dashboardPath:t.dashboardPath||void 0,isLive:s,defaultOpen:!0})}}),wt.mount(e)},unmount(e){wt&&(wt.unmount(),wt=null)}};function pt(e){const t=W(null);let s=null;function n(){s&&s(),s=null,ml(()=>{t.value&&(s=Oa(t.value))})}return e&&dt(e,n),yt(n),Ts(()=>{s&&s(),s=null}),{tableRef:t}}const Cu={class:"ss-dbg-search-bar"},Tu={class:"ss-dbg-summary"},Su={key:0,class:"ss-dbg-empty"},Eu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Au=["onClick","onKeydown"],Mu={key:0,class:"ss-dbg-dup"},Pu={key:1,class:"ss-dbg-dup"},Lu={class:"ss-dbg-c-muted"},Ou=["title"],Ru=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=W(""),n=new Set,l=G(()=>{if(!t.data)return[];const g=t.data;return(Array.isArray(g)?g:g.queries)||[]}),r=G(()=>ja(l.value,s.value)),i=G(()=>Fa(l.value)),a=G(()=>Na(l.value,i.value)),u=G(()=>{let g=`${r.value.length} queries`;return a.value.slowCount>0&&(g+=` | ${a.value.slowCount} slow`),a.value.dupCount>0&&(g+=` | ${a.value.dupCount} dup`),r.value.length>0&&(g+=` | avg ${We(a.value.avgDuration)}`),g});function p(g){n.has(g)?n.delete(g):n.add(g)}function f(g){return n.has(g)}function x(g){const $=Rn(g);return $==="very-slow"?"ss-dbg-very-slow":$==="slow"?"ss-dbg-slow":""}const{tableRef:_}=pt(()=>r.value);return(g,$)=>(d(),h("div",null,[o("div",Cu,[He(o("input",{"onUpdate:modelValue":$[0]||($[0]=w=>s.value=w),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[ze,s.value]]),o("span",Tu,m(u.value),1)]),r.value.length===0?(d(),h("div",Su,"No queries captured")):(d(),h("table",{key:1,ref_key:"tableRef",ref:_,class:"ss-dbg-table"},[$[1]||($[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"SQL"),o("th",null,"Duration"),o("th",null,"Method"),o("th",null,"Model"),o("th",null,"Time")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(r.value,w=>(d(),h("tr",{key:w.id},[o("td",Eu,m(w.id),1),o("td",null,[o("span",{class:V(["ss-dbg-sql",{"ss-dbg-expanded":f(w.id)}]),role:"button",tabindex:"0",onClick:U=>p(w.id),onKeydown:kr(U=>p(w.id),["enter"])},m(w.sql),43,Au),i.value[w.sql]>1?(d(),h("span",Mu," x"+m(i.value[w.sql]),1)):oe("",!0),w.inTransaction?(d(),h("span",Pu," TXN")):oe("",!0)]),o("td",{class:V(["ss-dbg-duration",x(w.duration)])},m(O(We)(w.duration)),3),o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${w.method.toLowerCase()}`)},m(w.method),3)]),o("td",Lu,m(w.model||"-"),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(w.timestamp)},m(O(qe)(w.timestamp)),9,Ou)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Dn=_e({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=W(t.defaultExpanded),n=G(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return ns(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return ns(t.value,t.maxLen||100)}),l=G(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function r(){s.value=!s.value}function i(){navigator.clipboard?.writeText(l.value)}return(a,u)=>e.value===null||e.value===void 0?(d(),h("span",{key:0,class:V(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(d(),h("div",{key:1,class:V(`${t.classPrefix}-data-cell`)},[s.value?oe("",!0):(d(),h("span",{key:0,class:V(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:r,onKeydown:u[0]||(u[0]=p=>p.key==="Enter"&&r())},m(n.value),35)),s.value?(d(),h("div",{key:1,class:V(`${t.classPrefix}-data-full`),onClick:r},[o("button",{class:V(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Ft(i,["stop"])}," Copy ",2),o("pre",null,m(l.value),1)],2)):oe("",!0)],2))}}),Iu={class:"ss-dbg-search-bar"},Du={class:"ss-dbg-summary"},ju={key:0,class:"ss-dbg-empty"},Fu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Nu={class:"ss-dbg-event-name"},Bu=["href"],Uu=["viewBox","innerHTML"],Hu={class:"ss-dbg-event-data"},Vu=["title"],Ku=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"EventsTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=W(""),n=G(()=>{const i=t.data,a=i?(Array.isArray(i)?i:i.events)||[]:[];if(!s.value.trim())return a;const u=s.value.toLowerCase();return a.filter(p=>p.event.toLowerCase().includes(u)||p.data&&p.data.toLowerCase().includes(u))}),l=G(()=>{const i=t.data;return`${(i?(Array.isArray(i)?i:i.events)||[]:[]).length} events`}),{tableRef:r}=pt(()=>n.value);return(i,a)=>(d(),h("div",null,[o("div",Iu,[He(o("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),class:"ss-dbg-search",placeholder:"Filter events...",type:"text"},null,512),[[ze,s.value]]),o("span",Du,m(l.value),1)]),n.value.length===0?(d(),h("div",ju,"No events captured")):(d(),h("table",{key:1,ref_key:"tableRef",ref:r,class:"ss-dbg-table"},[a[1]||(a[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Event"),o("th",null,"Data"),o("th",null,"Time")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(n.value,u=>(d(),h("tr",{key:u.id},[o("td",Fu,m(u.id),1),o("td",Nu,[se(m(u.event)+" ",1),e.dashboardPath?(d(),h("a",{key:0,href:`${e.dashboardPath}#events?id=${u.id}`,target:"_blank",class:"ss-dbg-deeplink"},[(d(),h("svg",{width:"12",height:"12",viewBox:O(we)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:O(we)["open-external"].elements.join("")},null,8,Uu))],8,Bu)):oe("",!0)]),o("td",Hu,[fe(Dn,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",{class:"ss-dbg-event-time",title:O(xt)(u.timestamp)},m(O(qe)(u.timestamp)),9,Vu)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),zu={style:{position:"relative",height:"100%"}},Wu={key:0,class:"ss-dbg-email-preview"},qu={class:"ss-dbg-email-preview-header"},Ju={class:"ss-dbg-email-preview-meta"},Gu={key:0},Qu={key:0,class:"ss-dbg-empty"},Yu=["srcdoc"],Xu={key:2,class:"ss-dbg-empty"},Zu={class:"ss-dbg-search-bar"},ec={class:"ss-dbg-summary"},tc={key:0,class:"ss-dbg-empty"},sc=["onClick"],nc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},lc=["title"],rc=["title"],oc={class:"ss-dbg-c-sql"},ic={class:"ss-dbg-c-muted"},ac={class:"ss-dbg-c-dim",style:{"text-align":"center"}},uc=["title"],cc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"EmailsTab",props:{data:{},dashboardPath:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=W(""),n=W(null),l=W(null),r=W(!1),i=G(()=>{const _=t.data,g=_?(Array.isArray(_)?_:_.emails)||[]:[];if(!s.value.trim())return g;const $=s.value.toLowerCase();return g.filter(w=>w.subject.toLowerCase().includes($)||w.from.toLowerCase().includes($)||w.to.toLowerCase().includes($)||w.mailer&&w.mailer.toLowerCase().includes($))}),a=G(()=>{const _=t.data;return`${(_?(Array.isArray(_)?_:_.emails)||[]:[]).length} emails`});function u(_){return{sent:"ss-dbg-email-status-sent",sending:"ss-dbg-email-status-sending",queueing:"ss-dbg-email-status-queued",queued:"ss-dbg-email-status-queued",failed:"ss-dbg-email-status-failed"}[_]||""}async function p(_){if(n.value=_,l.value=_.html||null,!l.value&&_.id){r.value=!0;try{const g=t.debugEndpoint||"/admin/api/debug",$={};t.authToken&&($.Authorization=`Bearer ${t.authToken}`);const w=await fetch(`${g}/emails/${_.id}/preview`,{headers:$,credentials:t.authToken?"omit":"include"});w.ok&&(l.value=await w.text())}catch{}finally{r.value=!1}}}function f(){n.value=null,l.value=null,r.value=!1}const{tableRef:x}=pt(()=>i.value);return(_,g)=>(d(),h("div",zu,[n.value?(d(),h("div",Wu,[o("div",qu,[o("div",Ju,[o("div",null,[g[1]||(g[1]=o("strong",null,"From:",-1)),se(" "+m(n.value.from),1)]),o("div",null,[g[2]||(g[2]=o("strong",null,"To:",-1)),se(" "+m(n.value.to),1)]),n.value.cc?(d(),h("div",Gu,[g[3]||(g[3]=o("strong",null,"CC:",-1)),se(" "+m(n.value.cc),1)])):oe("",!0),o("div",null,[g[4]||(g[4]=o("strong",null,"Subject:",-1)),se(" "+m(n.value.subject),1)]),o("div",null,[g[5]||(g[5]=o("strong",null,"Status:",-1)),o("span",{class:V(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:f},"×")]),r.value?(d(),h("div",Qu,"Loading preview...")):l.value?(d(),h("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,Yu)):(d(),h("div",Xu,"No HTML content"))])):oe("",!0),n.value?oe("",!0):(d(),h(R,{key:1},[o("div",Zu,[He(o("input",{"onUpdate:modelValue":g[0]||(g[0]=$=>s.value=$),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[ze,s.value]]),o("span",ec,m(a.value),1)]),i.value.length===0?(d(),h("div",tc,"No emails captured")):(d(),h("table",{key:1,ref_key:"tableRef",ref:x,class:"ss-dbg-table"},[g[6]||(g[6]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"From"),o("th",null,"To"),o("th",null,"Subject"),o("th",null,"Status"),o("th",null,"Mailer"),o("th",{title:"Attachments"},"📎"),o("th",null,"Time")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(i.value,$=>(d(),h("tr",{key:$.id,class:"ss-dbg-email-row",onClick:w=>p($)},[o("td",nc,m($.id),1),o("td",{class:"ss-dbg-c-secondary",title:$.from},m($.from),9,lc),o("td",{class:"ss-dbg-c-secondary",title:$.to},m($.to),9,rc),o("td",oc,m($.subject),1),o("td",null,[o("span",{class:V(["ss-dbg-email-status",u($.status)])},m($.status),3)]),o("td",ic,m($.mailer),1),o("td",ac,m($.attachmentCount>0?$.attachmentCount:"-"),1),o("td",{class:"ss-dbg-event-time",title:O(xt)($.timestamp)},m(O(qe)($.timestamp)),9,uc)],8,sc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),dc={class:"ss-dbg-search-bar"},fc={class:"ss-dbg-summary"},hc={key:0,class:"ss-dbg-empty"},pc={class:"ss-dbg-c-text"},gc={class:"ss-dbg-c-muted"},bc={class:"ss-dbg-c-sql"},vc={class:"ss-dbg-c-dim",style:{"font-size":"10px"}},mc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"RoutesTab",props:{data:{},currentUrl:{}},setup(e){const t=e,s=W(""),n=G(()=>{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=G(()=>{const a=t.data;return`${(a?(Array.isArray(a)?a:a.routes)||[]:[]).length} routes`});function r(a){return t.currentUrl?t.currentUrl.includes(a.pattern.replace(/:[^/]+/g,"")):!1}const{tableRef:i}=pt(()=>n.value);return(a,u)=>(d(),h("div",null,[o("div",dc,[He(o("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>s.value=p),class:"ss-dbg-search",placeholder:"Filter routes...",type:"text"},null,512),[[ze,s.value]]),o("span",fc,m(l.value),1)]),n.value.length===0?(d(),h("div",hc,"No routes found")):(d(),h("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=o("thead",null,[o("tr",null,[o("th",null,"Method"),o("th",null,"Pattern"),o("th",null,"Name"),o("th",null,"Handler"),o("th",null,"Middleware")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(n.value,(p,f)=>(d(),h("tr",{key:f,class:V({"ss-dbg-current-route":r(p)})},[o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${p.method.toLowerCase()}`)},m(p.method),3)]),o("td",pc,m(p.pattern),1),o("td",gc,m(p.name||"-"),1),o("td",bc,m(p.handler),1),o("td",vc,m(p.middleware.length>0?p.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),yc={class:"ss-dbg-log-filters"},_c=["onClick"],xc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},wc={class:"ss-dbg-search-bar"},kc={class:"ss-dbg-summary"},$c={key:0,class:"ss-dbg-empty"},Cc=["onClick"],Tc=["title"],Sc=["title","onClick","onKeydown"],Ec={key:1,class:"ss-dbg-log-reqid-empty"},Ac={key:3,style:{width:"14px"}},Mc={class:"ss-dbg-log-msg"},Pc=["href"],Lc=["viewBox","innerHTML"],Oc={key:0,class:"ss-dbg-log-detail"},Rc=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"LogsTab",props:{data:{},dashboardPath:{}},emits:["filterByRequestId"],setup(e,{emit:t}){const s=e,n=t,l=W("all"),r=W(""),i=W(""),a=W(null),u=G(()=>{const _=s.data;let g=_?(Array.isArray(_)?_:_.logs||_.entries)||[]:[];if(g=Da(g,l.value),i.value.trim()){const $=i.value.trim().toLowerCase();g=g.filter(w=>{const U=ht(w);return U&&U.toLowerCase().includes($)})}if(r.value.trim()){const $=r.value.trim().toLowerCase();g=g.filter(w=>Lr(w).toLowerCase().includes($))}return g}),p=G(()=>{const _=s.data,g=_?(Array.isArray(_)?_:_.logs||_.entries)||[]:[];return`${u.value.length} of ${g.length} entries`});function f(_,g){g&&(a.value=a.value===_?null:_)}function x(_){i.value=_,n("filterByRequestId",_)}return(_,g)=>(d(),h("div",null,[o("div",yc,[(d(!0),h(R,null,X(O(Ra),$=>(d(),h("button",{key:$,type:"button",class:V(["ss-dbg-log-filter",{"ss-dbg-active":l.value===$}]),onClick:w=>l.value=$},m($),11,_c))),128)),i.value?(d(),h("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)):oe("",!0),o("span",xc,m(u.value.length)+" entries",1)]),o("div",wc,[He(o("input",{"onUpdate:modelValue":g[1]||(g[1]=$=>r.value=$),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[ze,r.value]]),He(o("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),[[ze,i.value]]),o("span",kc,m(p.value),1)]),u.value.length===0?(d(),h("div",$c,"No log entries")):(d(!0),h(R,{key:1},X(u.value,($,w)=>(d(),h(R,{key:String($.id||w)},[o("div",{class:V(["ss-dbg-log-entry",{"ss-dbg-log-entry-expandable":!!O(ls)($)}]),onClick:U=>f(w,!!O(ls)($))},[o("span",{class:V(["ss-dbg-log-level",O(Ia)(O(In)($))])},m(O(In)($).toUpperCase()),3),o("span",{class:"ss-dbg-log-time",title:O(Bs)($)?O(xt)(O(Bs)($)):""},m(O(Bs)($)?O(qe)(O(Bs)($)):"-"),9,Tc),O(ht)($)?(d(),h("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:O(ht)($),onClick:Ft(U=>x(O(ht)($)),["stop"]),onKeydown:kr(Ft(U=>x(O(ht)($)),["stop"]),["enter"])},m(O(ht)($).slice(0,8)),41,Sc)):(d(),h("span",Ec,"-")),O(ls)($)?(d(),h("span",{key:2,class:V(["ss-dbg-log-expand-icon",{"ss-dbg-log-expand-icon-open":a.value===w}])},"▶",2)):(d(),h("span",Ac)),o("span",Mc,m(O(Lr)($)),1),e.dashboardPath&&O(ht)($)?(d(),h("a",{key:4,href:`${e.dashboardPath}#logs?requestId=${O(ht)($)}`,target:"_blank",class:"ss-dbg-deeplink",onClick:g[3]||(g[3]=Ft(()=>{},["stop"]))},[(d(),h("svg",{viewBox:O(we)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:O(we)["open-external"].elements.join("")},null,8,Lc))],8,Pc)):oe("",!0)],10,Cc),a.value===w&&O(ls)($)?(d(),h("div",Oc,[fe(Dn,{value:O(ls)($),"class-prefix":"ss-dbg","default-expanded":""},null,8,["value"])])):oe("",!0)],64))),128))]))}})},Symbol.toStringTag,{value:"Module"}));function jn(e="",t){let s=null;return function(){return s||(s=new Ln({baseUrl:e,authToken:t})),s}}const Ic={key:0,class:"ss-dbg-empty"},Dc={class:"ss-dbg-empty"},jc={class:"ss-dbg-tl-detail-header"},Fc={class:"ss-dbg-tl-detail-url"},Nc={class:"ss-dbg-tl-meta"},Bc={class:"ss-dbg-tl-legend"},Uc={id:"ss-dbg-tl-waterfall"},Hc={key:0,class:"ss-dbg-empty"},Vc=["title"],Kc={class:"ss-dbg-tl-track"},zc=["title"],Wc={class:"ss-dbg-tl-dur"},qc={key:0,class:"ss-dbg-tl-warnings"},Jc={key:3,class:"ss-dbg-empty"},Gc={class:"ss-dbg-search-bar"},Qc={class:"ss-dbg-summary"},Yc={key:0,class:"ss-dbg-empty"},Xc=["onClick"],Zc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},ed={class:"ss-dbg-c-text"},td=["href"],sd=["viewBox","innerHTML"],nd={class:"ss-dbg-c-muted",style:{"text-align":"center"}},ld=["title"],rd=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"TimelineTab",props:{data:{},dashboardPath:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=W(""),n=W(null),l=W(null),r=W(!1),i=W(null),a=jn(t.baseUrl||"",t.authToken),u=G(()=>{const P=t.data;if(!P)return[];const y=Array.isArray(P)?P:P.traces||[];if(!s.value.trim())return y;const S=s.value.toLowerCase();return y.filter(j=>j.url.toLowerCase().includes(S)||j.method.toLowerCase().includes(S)||String(j.statusCode).includes(S))}),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 x(P){n.value===P.id?(n.value=null,l.value=null,i.value=null):(n.value=P.id,$(P.id))}function _(){n.value=null,l.value=null,i.value=null}let g=null;async function $(P){g&&g.abort(),g=new AbortController,r.value=!0,i.value=null,l.value=null;const y=t.debugEndpoint||"/admin/api/debug";try{const j=await a().get(`${y}/traces/${P}`);l.value=j}catch(S){if(S instanceof Error&&S.name==="AbortError")return;i.value=S instanceof Error?S.message:"Failed to load trace"}finally{r.value=!1}}const w=G(()=>l.value?.spans||[]),U=G(()=>l.value?.warnings||[]);function T(P,y){const S=y||1,j=S>0?P.startOffset/S*100:0,B=S>0?Math.max(P.duration/S*100,.5):.5;return{left:`${j}%`,width:`${B}%`,background:p[P.category]||p.custom}}const{tableRef:b}=pt(()=>u.value);Ts(()=>{g&&g.abort()});function k(P){const y=Rn(P);return y==="very-slow"?"ss-dbg-very-slow":y==="slow"?"ss-dbg-slow":""}return(P,y)=>(d(),h("div",null,[n.value!==null?(d(),h(R,{key:0},[r.value?(d(),h("div",Ic,"Loading trace detail...")):i.value?(d(),h(R,{key:1},[o("div",{class:"ss-dbg-tl-detail-header"},[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:_},"← Back")]),o("div",Dc,"Error: "+m(i.value),1)],64)):l.value?(d(),h(R,{key:2},[o("div",jc,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:_},"← Back"),o("span",{class:V(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),o("span",Fc,m(l.value.url),1),o("span",{class:V(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),o("span",Nc,m(O(We)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),o("div",Bc,[(d(),h(R,null,X(p,(S,j)=>o("span",{key:j,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:Et({background:S})},null,4),se(" "+m(f[j]||j),1)])),64))]),o("div",Uc,[w.value.length===0?(d(),h("div",Hc," No spans captured for this request ")):oe("",!0),(d(!0),h(R,null,X(w.value,S=>(d(),h("div",{key:S.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:S.label},m(S.label),9,Vc),o("span",Kc,[o("span",{class:V(`ss-dbg-tl-bar ss-dbg-tl-bar-${S.category}`),style:Et(T(S,l.value.totalDuration)),title:`${S.label}: ${O(We)(S.duration)}`},null,14,zc)]),o("span",Wc,m(O(We)(S.duration)),1)]))),128))]),U.value.length>0?(d(),h("div",qc,[y[2]||(y[2]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(d(!0),h(R,null,X(U.value,(S,j)=>(d(),h("div",{key:j,class:"ss-dbg-tl-warning"},m(S),1))),128))])):oe("",!0)],64)):(d(),h("div",Jc,"Loading trace detail..."))],64)):(d(),h(R,{key:1},[o("div",Gc,[He(o("input",{"onUpdate:modelValue":y[0]||(y[0]=S=>s.value=S),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[ze,s.value]]),o("span",Qc,m(u.value.length)+" traces",1)]),u.value.length===0?(d(),h("div",Yc,"No traces captured")):(d(),h("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[y[3]||(y[3]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Method"),o("th",null,"URL"),o("th",null,"Status"),o("th",null,"Duration"),o("th",null,"Spans"),o("th",null,"Time")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(u.value,S=>(d(),h("tr",{key:S.id,class:"ss-dbg-email-row",onClick:j=>x(S)},[o("td",Zc,m(S.id),1),o("td",null,[o("span",{class:V(`ss-dbg-method ss-dbg-method-${S.method.toLowerCase()}`)},m(S.method),3)]),o("td",ed,[se(m(S.url)+" ",1),e.dashboardPath?(d(),h("a",{key:0,href:`${e.dashboardPath}#timeline?id=${S.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:y[1]||(y[1]=Ft(()=>{},["stop"]))},[(d(),h("svg",{viewBox:O(we)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:O(we)["open-external"].elements.join("")},null,8,sd))],8,td)):oe("",!0)]),o("td",null,[o("span",{class:V(`ss-dbg-status ss-dbg-status-${Math.floor(S.statusCode/100)}xx`)},m(S.statusCode),3)]),o("td",{class:V(["ss-dbg-duration",k(S.totalDuration)])},m(O(We)(S.totalDuration)),3),o("td",nd,m(S.spanCount),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(S.timestamp)},m(O(qe)(S.timestamp)),9,ld)],8,Xc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),od={class:"ss-dbg-cache-stats"},id={class:"ss-dbg-cache-stat"},ad={class:"ss-dbg-cache-stat-value"},ud={class:"ss-dbg-cache-stat"},cd={class:"ss-dbg-cache-stat-value"},dd={class:"ss-dbg-cache-stat"},fd={class:"ss-dbg-cache-stat-value"},hd={class:"ss-dbg-cache-stat"},pd={class:"ss-dbg-cache-stat-value"},gd={class:"ss-dbg-cache-stat"},bd={class:"ss-dbg-cache-stat-value"},vd={class:"ss-dbg-search-bar"},md={class:"ss-dbg-summary"},yd={key:0,class:"ss-dbg-cache-detail"},_d={style:{"margin-top":"8px"}},xd={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},wd={key:0},kd={key:0,class:"ss-dbg-empty"},$d=["onClick"],Cd={class:"ss-dbg-c-sql"},Td={class:"ss-dbg-c-muted"},Sd={class:"ss-dbg-c-dim"},Ed={class:"ss-dbg-c-dim"},Ad=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"CacheTab",props:{data:{}},setup(e){const t=e,s=W(""),n=W(null),l=G(()=>t.data||{}),r=G(()=>l.value.stats||{}),i=G(()=>{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}=pt(()=>i.value);return(u,p)=>(d(),h("div",null,[o("div",od,[o("span",id,[p[2]||(p[2]=o("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),o("span",ad,m((r.value.hitRate||0).toFixed(0))+"%",1)]),o("span",ud,[p[3]||(p[3]=o("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),o("span",cd,m(r.value.totalHits||0),1)]),o("span",dd,[p[4]||(p[4]=o("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),o("span",fd,m(r.value.totalMisses||0),1)]),o("span",hd,[p[5]||(p[5]=o("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),o("span",pd,m(r.value.keyCount||0),1)]),o("span",gd,[p[6]||(p[6]=o("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),o("span",bd,m((r.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),o("div",vd,[He(o("input",{"onUpdate:modelValue":p[0]||(p[0]=f=>s.value=f),class:"ss-dbg-search",placeholder:"Filter keys...",type:"text"},null,512),[[ze,s.value]]),o("span",md,m(i.value.length)+" keys",1)]),n.value?(d(),h("div",yd,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:p[1]||(p[1]=f=>n.value=null)}," ← Back "),o("div",_d,[o("strong",null,m(n.value.key),1),o("span",xd,m(n.value.type)+" · TTL: "+m(O(Er)(n.value.ttl)),1)]),n.value.value!==void 0?(d(),h("pre",wd,m(JSON.stringify(n.value.value,null,2)),1)):oe("",!0)])):(d(),h(R,{key:1},[i.value.length===0?(d(),h("div",kd,"No cache keys found")):(d(),h("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[p[7]||(p[7]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Type"),o("th",null,"TTL"),o("th",null,"Size")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(i.value,f=>(d(),h("tr",{key:f.key,class:"ss-dbg-email-row",onClick:x=>n.value=f},[o("td",Cd,m(f.key),1),o("td",Td,m(f.type),1),o("td",Sd,m(O(Er)(f.ttl)),1),o("td",Ed,m(O(Ea)(f.size)),1)],8,$d))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),Md={class:"ss-dbg-job-stats-area"},Pd={class:"ss-dbg-job-stats"},Ld={class:"ss-dbg-job-stat"},Od={class:"ss-dbg-job-stat-value"},Rd={class:"ss-dbg-job-stat"},Id={class:"ss-dbg-job-stat-value"},Dd={class:"ss-dbg-job-stat"},jd={class:"ss-dbg-job-stat-value"},Fd={class:"ss-dbg-job-stat"},Nd={class:"ss-dbg-job-stat-value"},Bd={class:"ss-dbg-job-stat"},Ud={class:"ss-dbg-job-stat-value ss-dbg-c-red"},Hd={class:"ss-dbg-log-filters"},Vd=["onClick"],Kd={key:0,class:"ss-dbg-empty"},zd={class:"ss-dbg-c-dim"},Wd={class:"ss-dbg-c-sql"},qd={class:"ss-dbg-c-muted",style:{"text-align":"center"}},Jd={class:"ss-dbg-duration"},Gd=["title"],Qd=["onClick"],Yd=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"JobsTab",props:{data:{}},emits:["retryJob"],setup(e,{emit:t}){const s=e,n=t,l=W("all"),r=G(()=>s.data||{}),i=G(()=>r.value.stats||r.value.overview||{}),a=G(()=>{const f=r.value.jobs||[];return l.value==="all"?f:f.filter(x=>x.status===l.value)});function u(f){n("retryJob",f)}const{tableRef:p}=pt(()=>a.value);return(f,x)=>(d(),h("div",null,[o("div",Md,[o("div",Pd,[o("span",Ld,[x[0]||(x[0]=o("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),o("span",Od,m(i.value.active??0),1)]),o("span",Rd,[x[1]||(x[1]=o("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),o("span",Id,m(i.value.waiting??0),1)]),o("span",Dd,[x[2]||(x[2]=o("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),o("span",jd,m(i.value.delayed??0),1)]),o("span",Fd,[x[3]||(x[3]=o("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),o("span",Nd,m(i.value.completed??0),1)]),o("span",Bd,[x[4]||(x[4]=o("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),o("span",Ud,m(i.value.failed??0),1)])]),o("div",Hd,[(d(!0),h(R,null,X(O(Ba),_=>(d(),h("button",{key:_,class:V(["ss-dbg-job-filter",{"ss-dbg-active":l.value===_}]),onClick:g=>l.value=_},m(_),11,Vd))),128))])]),a.value.length===0?(d(),h("div",Kd,"No jobs found")):(d(),h("table",{key:1,ref_key:"tableRef",ref:p,class:"ss-dbg-table"},[x[5]||(x[5]=o("thead",null,[o("tr",null,[o("th",null,"ID"),o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Payload"),o("th",null,"Tries"),o("th",null,"Duration"),o("th",null,"Time"),o("th")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(a.value,_=>(d(),h("tr",{key:_.id},[o("td",zd,m(_.id),1),o("td",Wd,m(_.name),1),o("td",null,[o("span",{class:V(`ss-dbg-badge ${O(Ua)(_.status)}`)},m(_.status),3)]),o("td",null,[fe(Dn,{value:_.payload||_.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",qd,m(_.attempts),1),o("td",Jd,m(_.duration!==null?O(We)(_.duration):"-"),1),o("td",{class:"ss-dbg-event-time",title:O(xt)(_.timestamp||_.createdAt)},m(O(qe)(_.timestamp||_.createdAt)),9,Gd),o("td",null,[_.status==="failed"?(d(),h("button",{key:0,class:"ss-dbg-retry-btn",onClick:g=>u(_.id)}," Retry ",8,Qd)):oe("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),Xd={key:0,class:"ss-dbg-empty"},Zd={class:"ss-dbg-search-bar"},ef={class:"ss-dbg-config-search-wrap"},tf=["title"],sf={class:"ss-dbg-summary"},nf={key:0,class:"ss-dbg-empty"},lf={key:1,class:"ss-dbg-config-sections"},rf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},of={class:"ss-dbg-config-key"},af={key:0,class:"ss-dbg-config-match"},uf={key:0,class:"ss-dbg-config-redacted"},cf={key:0,class:"ss-dbg-config-match"},df=["onClick"],ff=["onClick"],hf={class:"ss-dbg-config-toggle"},pf={class:"ss-dbg-config-key"},gf={key:0,class:"ss-dbg-config-match"},bf={class:"ss-dbg-config-count"},vf={key:0,class:"ss-dbg-config-table-wrap"},mf={class:"ss-dbg-table"},yf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},_f={key:0,class:"ss-dbg-config-match"},xf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},wf={key:0,class:"ss-dbg-redacted-wrap"},kf={key:0,class:"ss-dbg-config-match"},$f=["onClick"],Cf={key:0,class:"ss-dbg-empty"},Tf={key:1,class:"ss-dbg-config-table-wrap"},Sf={class:"ss-dbg-table"},Ef={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Af={key:0,class:"ss-dbg-config-match"},Mf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Pf={key:0,class:"ss-dbg-redacted-wrap"},Lf={key:0,class:"ss-dbg-config-match"},Of=["onClick"],Rf=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=W("app"),n=W(""),l=W(""),r=W(!1),i=W(new Set),a=W(null);let u=null;dt(n,y=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=y.trim().toLowerCase()},200)});function p(y){return ou(y)}function f(y){if(y==null)return"null";if(typeof y=="boolean"||typeof y=="number")return String(y);if(typeof y=="string")return y;if(Array.isArray(y))return JSON.stringify(y);try{return JSON.stringify(y)}catch{return String(y)}}function x(y){return y==null?"ss-dbg-config-val-null":typeof y=="boolean"?y?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof y=="number"?"ss-dbg-config-val-number":Array.isArray(y)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function _(y,S){navigator.clipboard.writeText(y).then(()=>{a.value=S,setTimeout(()=>{a.value===S&&(a.value=null)},1500)})}function g(){const y=s.value==="app"?t.data?.app:t.data?.env;y&&_(JSON.stringify(y,null,2),"__all_json__")}function $(y,S){return nu(y,S,l.value)}function w(y){if(!l.value)return[{text:y,match:!1}];const S=l.value,j=y.toLowerCase(),B=[];let Y=0,ce=j.indexOf(S);for(;ce!==-1;)ce>Y&&B.push({text:y.slice(Y,ce),match:!1}),B.push({text:y.slice(ce,ce+S.length),match:!0}),Y=ce+S.length,ce=j.indexOf(S,Y);return Y<y.length&&B.push({text:y.slice(Y),match:!1}),B.length?B:[{text:y,match:!1}]}const U=G(()=>{const y=t.data?.app;if(!y)return[];const S=[];for(const[j,B]of Object.entries(y))if(B!==null&&typeof B=="object"&&!Array.isArray(B)){const ce=Object.entries(B).filter(([Le,Je])=>$(Le,Je)).map(([Le,Je])=>({key:Le,value:Je,fullKey:`${j}.${Le}`}));(ce.length>0||!l.value)&&S.push({key:j,entries:ce,isFlat:!1})}else $(j,B)&&S.push({key:j,entries:[{key:j,value:B,fullKey:j}],isFlat:!0});return S}),T=G(()=>{const y=t.data?.env;return y?Object.entries(y).filter(([S,j])=>$(S,j)).map(([S,j])=>({key:S,value:j})):[]});function b(y){i.value.has(y)?i.value.delete(y):i.value.add(y)}function k(){for(const y of U.value)y.isFlat||i.value.add(y.key)}function P(){i.value.clear()}return dt(l,y=>{if(y)for(const S of U.value)!S.isFlat&&S.entries.length>0&&i.value.add(S.key)}),(y,S)=>(d(),h("div",null,[e.data?(d(),h(R,{key:1},[o("div",Zd,[o("button",{class:V(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:S[0]||(S[0]=j=>s.value="app")}," App Config ",2),o("button",{class:V(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:S[1]||(S[1]=j=>s.value="env")}," Environment ",2),o("div",ef,[He(o("input",{"onUpdate:modelValue":S[2]||(S[2]=j=>n.value=j),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[ze,n.value]])]),s.value==="app"&&!l.value?(d(),h(R,{key:0},[o("button",{class:"ss-dbg-btn-clear",onClick:k},"Expand All"),o("button",{class:"ss-dbg-btn-clear",onClick:P},"Collapse All")],64)):oe("",!0),o("button",{class:V(["ss-dbg-btn-clear",{"ss-dbg-active":r.value}]),onClick:S[3]||(S[3]=j=>r.value=!r.value),title:r.value?"Hide redacted values":"Show redacted values"},m(r.value?"Hide Secrets":"Show Secrets"),11,tf),o("button",{class:"ss-dbg-btn-clear",onClick:g,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),o("span",sf,[s.value==="app"?(d(),h(R,{key:0},[se(m(U.value.length)+" sections ",1)],64)):(d(),h(R,{key:1},[se(m(T.value.length)+" variables ",1)],64))])]),s.value==="app"?(d(),h(R,{key:0},[U.value.length===0?(d(),h("div",nf,m(l.value?"No matching config entries":"No app config data"),1)):(d(),h("div",lf,[(d(!0),h(R,null,X(U.value,j=>(d(),h("div",{key:j.key,class:"ss-dbg-config-section"},[j.isFlat?(d(),h("div",rf,[o("span",of,[(d(!0),h(R,null,X(w(j.key),(B,Y)=>(d(),h(R,{key:Y},[B.match?(d(),h("span",af,m(B.text),1)):(d(),h(R,{key:1},[se(m(B.text),1)],64))],64))),128))]),S[7]||(S[7]=o("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),p(j.key)&&!r.value?(d(),h("span",uf,[...S[6]||(S[6]=[o("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(d(),h("span",{key:1,class:V(x(j.entries[0].value))},[(d(!0),h(R,null,X(w(f(j.entries[0].value)),(B,Y)=>(d(),h(R,{key:Y},[B.match?(d(),h("span",cf,m(B.text),1)):(d(),h(R,{key:1},[se(m(B.text),1)],64))],64))),128))],2)),o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===j.key}]),onClick:Ft(B=>_(f(j.entries[0].value),j.key),["stop"]),title:"Copy value"},m(a.value===j.key?"✓":"⎘"),11,df)])):(d(),h(R,{key:1},[o("div",{class:"ss-dbg-config-section-header",onClick:B=>b(j.key)},[o("span",hf,m(i.value.has(j.key)?"▼":"▶"),1),o("span",pf,[(d(!0),h(R,null,X(w(j.key),(B,Y)=>(d(),h(R,{key:Y},[B.match?(d(),h("span",gf,m(B.text),1)):(d(),h(R,{key:1},[se(m(B.text),1)],64))],64))),128))]),o("span",bf,m(j.entries.length)+" keys",1)],8,ff),i.value.has(j.key)?(d(),h("div",vf,[o("table",mf,[S[9]||(S[9]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(d(!0),h(R,null,X(j.entries,B=>(d(),h("tr",{key:B.fullKey},[o("td",yf,[(d(!0),h(R,null,X(w(B.key),(Y,ce)=>(d(),h(R,{key:ce},[Y.match?(d(),h("span",_f,m(Y.text),1)):(d(),h(R,{key:1},[se(m(Y.text),1)],64))],64))),128))]),o("td",xf,[p(B.key)&&!r.value?(d(),h("span",wf,[S[8]||(S[8]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:S[4]||(S[4]=Y=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(d(),h("span",{key:1,class:V(x(B.value))},[(d(!0),h(R,null,X(w(f(B.value)),(Y,ce)=>(d(),h(R,{key:ce},[Y.match?(d(),h("span",kf,m(Y.text),1)):(d(),h(R,{key:1},[se(m(Y.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===B.fullKey}]),onClick:Y=>_(f(B.value),B.fullKey),title:"Copy value"},m(a.value===B.fullKey?"✓":"⎘"),11,$f)])]))),128))])])])):oe("",!0)],64))]))),128))]))],64)):(d(),h(R,{key:1},[T.value.length===0?(d(),h("div",Cf,m(l.value?"No matching environment variables":"No environment data"),1)):(d(),h("div",Tf,[o("table",Sf,[S[11]||(S[11]=o("thead",null,[o("tr",null,[o("th",null,"Variable"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(d(!0),h(R,null,X(T.value,j=>(d(),h("tr",{key:j.key},[o("td",Ef,[(d(!0),h(R,null,X(w(j.key),(B,Y)=>(d(),h(R,{key:Y},[B.match?(d(),h("span",Af,m(B.text),1)):(d(),h(R,{key:1},[se(m(B.text),1)],64))],64))),128))]),o("td",Mf,[p(j.key)&&!r.value?(d(),h("span",Pf,[S[10]||(S[10]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:S[5]||(S[5]=B=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(d(),h("span",{key:1,class:V(x(j.value))},[(d(!0),h(R,null,X(w(f(j.value)),(B,Y)=>(d(),h(R,{key:Y},[B.match?(d(),h("span",Lf,m(B.text),1)):(d(),h(R,{key:1},[se(m(B.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:V(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${j.key}`}]),onClick:B=>_(f(j.value),`env-${j.key}`),title:"Copy value"},m(a.value===`env-${j.key}`?"✓":"⎘"),11,Of)])]))),128))])])]))],64))],64)):(d(),h("div",Xd,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),If={key:0,class:"ss-dbg-empty"},Df={key:1,class:"ss-dbg-empty"},jf={key:2,class:"ss-dbg-empty"},Ff={class:"ss-dbg-info-cards"},Nf={class:"ss-dbg-info-card-label"},Bf={class:"ss-dbg-info-card-value"},Uf={key:0,class:"ss-dbg-empty"},Hf={key:1,class:"ss-dbg-table"},Vf={style:{"font-family":"monospace","font-size":"11px"}},Kf={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},zf={class:"ss-dbg-c-red"},Wf={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},qf={style:{"font-size":"11px"}},Jf=["onClick"],Gf=["onClick"],Qf={key:2,class:"ss-dbg-empty"},Yf={key:3,class:"ss-dbg-table"},Xf={class:"ss-dbg-bar"},Zf={class:"ss-dbg-bar-track"},eh={key:4,class:"ss-dbg-empty"},th={key:5,class:"ss-dbg-table"},sh={class:"ss-dbg-c-dim"},nh={key:6,class:"ss-dbg-empty"},lh={key:7,class:"ss-dbg-table"},rh={class:"ss-dbg-c-dim"},oh={class:"ss-dbg-table"},ih={style:{"font-family":"monospace","font-size":"11px"}},ah={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},uh={style:{"font-family":"monospace","font-size":"11px"}},ch={class:"ss-dbg-table"},dh={class:"ss-dbg-table"},fh={style:{"font-family":"monospace","font-size":"11px"}},hh={style:{"font-family":"monospace","font-size":"11px"}},ph={style:{"font-family":"monospace","font-size":"11px"}},gh={style:{"font-size":"11px"}},bh=3e3,vh=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"InternalsTab",props:{data:{},baseUrl:{},debugEndpoint:{},authToken:{}},setup(e){const t=e,s=W(null),n=W(!0),l=W(null);let r=null;const i=jn(t.baseUrl||"",t.authToken);async function a(){const T=t.debugEndpoint||"/admin/api/debug";try{const k=await i().get(`${T}/diagnostics`);s.value=k,l.value=null,n.value=!1}catch(b){if(b instanceof js){l.value=b,n.value=!1,r&&(clearInterval(r),r=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}yt(()=>{n.value=!0,l.value=null,a(),r=setInterval(a,bh)}),Ts(()=>{r&&(clearInterval(r),r=null)});const u=W(new Set);function p(T){u.value.has(T)?u.value.delete(T):u.value.add(T)}function f(T){const b=tu(T);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function x(T){return T.debounceMs!==void 0?`${We(T.debounceMs)} (debounce)`:T.intervalMs!==void 0?We(T.intervalMs):"-"}const _=G(()=>s.value||t.data||null),g=G(()=>_.value||{}),$=G(()=>g.value.buffers?Object.entries(g.value.buffers).map(([T,b])=>({name:T.charAt(0).toUpperCase()+T.slice(1),...b,percent:Xa(b.current,b.max)})):[]),w=G(()=>g.value.timers?Object.entries(g.value.timers).map(([T,b])=>({key:T,label:Wa(T),...b,interval:x(b)})):[]),U=G(()=>{if(!g.value)return[];const T=[];if(g.value.transmit&&T.push({key:"transmit",label:"Transmit (SSE)",status:g.value.transmit.available?"connected":"unavailable",details:g.value.transmit.available?`Channels: ${g.value.transmit.channels.join(", ")}`:"Not installed"}),g.value.integrations)for(const[b,k]of Object.entries(g.value.integrations))T.push({key:b,label:Ja(b),status:Ga(k),details:Qa(b,k)});return T});return(T,b)=>(d(),h("div",null,[n.value&&!_.value?(d(),h("div",If,"Loading diagnostics...")):l.value?(d(),h("div",Df,"Error: "+m(l.value.message),1)):_.value?(d(),h(R,{key:3},[b[41]||(b[41]=o("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),o("div",Ff,[(d(!0),h(R,null,X([{label:"Version",value:g.value.package?.version||"-"},{label:"Node.js",value:g.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:g.value.package?.adonisVersion||"-"},{label:"Uptime",value:O(Sa)(g.value.package?.uptime)},{label:"Renderer",value:g.value.devToolbar?.renderer||"preact"}],k=>(d(),h("div",{key:k.label,class:"ss-dbg-info-card"},[o("span",Nf,m(k.label),1),o("span",Bf,m(k.value),1)]))),128))]),b[42]||(b[42]=o("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),g.value.collectors?.length?(d(),h("table",Hf,[b[4]||(b[4]=o("thead",null,[o("tr",null,[o("th",null,"Collector"),o("th",null,"Status"),o("th",null,"Last Error"),o("th",null,"Config")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(g.value.collectors,k=>(d(),h("tr",{key:k.name},[o("td",null,[o("span",Vf,m(k.name),1),k.label&&k.label!==k.name?(d(),h("span",Kf,m(k.label),1)):oe("",!0)]),o("td",null,[o("span",{class:V(["ss-dbg-dot",f(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",zf,[k.lastError?(d(),h(R,{key:0},[se(m(k.lastError)+" ",1),o("span",Wf,m(O(qe)(k.lastErrorAt??0)),1)],64)):(d(),h(R,{key:1},[se("-")],64))]),o("td",qf,[Object.keys(k.config||{}).length?(d(!0),h(R,{key:0},X(O(Ya)(k.config),P=>(d(),h("span",{key:P.key,style:{"margin-right":"8px"}},[se(m(P.key)+"=",1),P.secret&&!u.value.has(`collector-${k.name}-${P.key}`)?(d(),h("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:y=>p(`collector-${k.name}-${P.key}`)},"••••••••",8,Jf)):(d(),h(R,{key:1},[o("span",null,m(P.value),1),P.secret?(d(),h("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y=>p(`collector-${k.name}-${P.key}`)}," Hide ",8,Gf)):oe("",!0)],64))]))),128)):(d(),h(R,{key:1},[se("-")],64))])]))),128))])])):(d(),h("div",Uf,"No collectors")),b[43]||(b[43]=o("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),$.value.length?(d(),h("table",Yf,[b[5]||(b[5]=o("thead",null,[o("tr",null,[o("th",null,"Buffer"),o("th",null,"Usage"),o("th",null,"Fill %")])],-1)),o("tbody",null,[(d(!0),h(R,null,X($.value,k=>(d(),h("tr",{key:k.name},[o("td",null,m(k.name),1),o("td",null,m(k.current.toLocaleString())+" / "+m(k.max.toLocaleString()),1),o("td",null,[o("div",Xf,[o("div",Zf,[o("div",{class:V(["ss-dbg-bar-fill",k.percent>=100?"ss-dbg-bar-fill-warn":""]),style:Et({width:k.percent+"%"})},null,6)]),o("span",{class:V(["ss-dbg-bar-pct",k.percent>=100?"ss-dbg-bar-pct-warn":""])},m(k.percent)+"%",3)])])]))),128))])])):(d(),h("div",Qf,"No buffer data")),b[44]||(b[44]=o("div",{class:"ss-dbg-internals-title"},"Timers",-1)),w.value.length?(d(),h("table",th,[b[6]||(b[6]=o("thead",null,[o("tr",null,[o("th",null,"Timer"),o("th",null,"Status"),o("th",null,"Interval")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(w.value,k=>(d(),h("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:V(["ss-dbg-dot",f(k.active?"active":"inactive")])},null,2),se(" "+m(k.active?"active":"inactive"),1)]),o("td",sh,m(k.interval),1)]))),128))])])):(d(),h("div",eh,"No timer data")),b[45]||(b[45]=o("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),U.value.length?(d(),h("table",lh,[b[7]||(b[7]=o("thead",null,[o("tr",null,[o("th",null,"Integration"),o("th",null,"Status"),o("th",null,"Details")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(U.value,k=>(d(),h("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:V(["ss-dbg-dot",f(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",rh,m(k.details),1)]))),128))])])):(d(),h("div",nh,"No integration data")),g.value.storage?(d(),h(R,{key:8},[b[16]||(b[16]=o("div",{class:"ss-dbg-internals-title"},"Storage",-1)),o("table",oh,[b[14]||(b[14]=o("thead",null,[o("tr",null,[o("th",null,"Metric"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[8]||(b[8]=o("td",null,"Status",-1)),o("td",null,[o("span",{class:V(["ss-dbg-dot",f(g.value.storage.ready?"ready":"unavailable")])},null,2),se(" "+m(g.value.storage.ready?"ready":"not ready"),1)])]),o("tr",null,[b[9]||(b[9]=o("td",null,"DB Path",-1)),o("td",ih,m(g.value.storage.dbPath),1)]),o("tr",null,[b[10]||(b[10]=o("td",null,"File Size",-1)),o("td",null,m(g.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[11]||(b[11]=o("td",null,"WAL Size",-1)),o("td",null,m(g.value.storage.walSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[12]||(b[12]=o("td",null,"Retention",-1)),o("td",null,m(g.value.storage.retentionDays)+" days",1)]),o("tr",null,[b[13]||(b[13]=o("td",null,"Last Cleanup",-1)),o("td",null,m(O(qe)(g.value.storage.lastCleanupAt??0)),1)])])]),g.value.storage.tables?.length?(d(),h("table",ah,[b[15]||(b[15]=o("thead",null,[o("tr",null,[o("th",null,"Table"),o("th",null,"Rows")])],-1)),o("tbody",null,[(d(!0),h(R,null,X(g.value.storage.tables,k=>(d(),h("tr",{key:k.name},[o("td",uh,m(k.name),1),o("td",null,m(k.rowCount.toLocaleString()),1)]))),128))])])):oe("",!0)],64)):oe("",!0),b[46]||(b[46]=o("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),o("table",ch,[b[24]||(b[24]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[17]||(b[17]=o("td",null,"intervalMs",-1)),o("td",null,m(g.value.config?.intervalMs),1)]),o("tr",null,[b[18]||(b[18]=o("td",null,"transport",-1)),o("td",null,m(g.value.config?.transport),1)]),o("tr",null,[b[19]||(b[19]=o("td",null,"channelName",-1)),o("td",null,m(g.value.config?.channelName),1)]),o("tr",null,[b[20]||(b[20]=o("td",null,"endpoint",-1)),o("td",null,m(g.value.config?.endpoint===!1?"false":g.value.config?.endpoint),1)]),o("tr",null,[b[21]||(b[21]=o("td",null,"skipInTest",-1)),o("td",null,m(g.value.config?.skipInTest),1)]),o("tr",null,[b[22]||(b[22]=o("td",null,"onStats callback",-1)),o("td",null,m(g.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),o("tr",null,[b[23]||(b[23]=o("td",null,"shouldShow callback",-1)),o("td",null,m(g.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[47]||(b[47]=o("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),o("table",dh,[b[40]||(b[40]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[25]||(b[25]=o("td",null,"enabled",-1)),o("td",null,m(g.value.devToolbar?.enabled),1)]),o("tr",null,[b[26]||(b[26]=o("td",null,"tracing",-1)),o("td",null,m(g.value.devToolbar?.tracing),1)]),o("tr",null,[b[27]||(b[27]=o("td",null,"dashboard",-1)),o("td",null,m(g.value.devToolbar?.dashboard),1)]),o("tr",null,[b[28]||(b[28]=o("td",null,"dashboardPath",-1)),o("td",fh,m(g.value.devToolbar?.dashboardPath),1)]),o("tr",null,[b[29]||(b[29]=o("td",null,"debugEndpoint",-1)),o("td",hh,[u.value.has("cfg-debugEndpoint")?(d(),h(R,{key:1},[se(m(g.value.devToolbar?.debugEndpoint)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=k=>p("cfg-debugEndpoint"))}," Hide ")],64)):(d(),h("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=k=>p("cfg-debugEndpoint"))},"••••••••"))])]),o("tr",null,[b[30]||(b[30]=o("td",null,"maxQueries",-1)),o("td",null,m(g.value.devToolbar?.maxQueries),1)]),o("tr",null,[b[31]||(b[31]=o("td",null,"maxEvents",-1)),o("td",null,m(g.value.devToolbar?.maxEvents),1)]),o("tr",null,[b[32]||(b[32]=o("td",null,"maxEmails",-1)),o("td",null,m(g.value.devToolbar?.maxEmails),1)]),o("tr",null,[b[33]||(b[33]=o("td",null,"maxTraces",-1)),o("td",null,m(g.value.devToolbar?.maxTraces),1)]),o("tr",null,[b[34]||(b[34]=o("td",null,"slowQueryThresholdMs",-1)),o("td",null,m(g.value.devToolbar?.slowQueryThresholdMs),1)]),o("tr",null,[b[35]||(b[35]=o("td",null,"retentionDays",-1)),o("td",null,m(g.value.devToolbar?.retentionDays),1)]),o("tr",null,[b[36]||(b[36]=o("td",null,"dbPath",-1)),o("td",ph,[u.value.has("cfg-dbPath")?(d(),h(R,{key:1},[se(m(g.value.devToolbar?.dbPath)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=k=>p("cfg-dbPath"))}," Hide ")],64)):(d(),h("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=k=>p("cfg-dbPath"))},"••••••••"))])]),o("tr",null,[b[37]||(b[37]=o("td",null,"persistDebugData",-1)),o("td",null,m(g.value.devToolbar?.persistDebugData),1)]),o("tr",null,[b[38]||(b[38]=o("td",null,"excludeFromTracing",-1)),o("td",gh,m(g.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),o("tr",null,[b[39]||(b[39]=o("td",null,"customPanes",-1)),o("td",null,m(g.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(d(),h("div",jf,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),mh={key:0,class:"ss-dbg-search-bar"},yh=["placeholder"],_h={class:"ss-dbg-summary"},xh={key:1,class:"ss-dbg-empty"},wh={key:2,class:"ss-dbg-empty"},kh=["onClick"],$h={key:0,class:"ss-dbg-c-dim"},Ch=["title"],Th=Object.freeze(Object.defineProperty({__proto__:null,default:_e({__name:"CustomPaneTab",props:{pane:{},baseUrl:{},authToken:{}},setup(e){const t=e,s=W([]),n=W(!1),l=W(""),r=jn(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const T=await r().fetch(t.pane.endpoint),k=(t.pane.dataKey||t.pane.id).split(".");let P=T;for(const y of k)P=P?.[y];s.value=Array.isArray(P)?P:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=G(()=>{if(!l.value.trim())return s.value;const T=l.value.toLowerCase(),b=t.pane.columns.filter(k=>k.searchable).map(k=>k.key);return b.length===0?s.value:s.value.filter(k=>b.some(P=>{const y=k[P];return y==null?!1:String(y).toLowerCase().includes(T)}))});function p(T,b){if(T==null)return"-";switch(b.format||"text"){case"time":return typeof T=="number"?qe(T):String(T);case"timeAgo":return qe(T);case"duration":return We(typeof T=="number"?T:parseFloat(String(T)));case"method":return String(T);case"json":{let P=T;if(typeof T=="string")try{P=JSON.parse(T)}catch{}return ns(P,80)}case"badge":return String(T);default:return String(T)}}function f(T,b){if(b.format==="time"||b.format==="timeAgo")return xt(T)}function x(T){return T==null}function _(T){const b=typeof T=="number"?T:parseFloat(String(T));if(isNaN(b))return"ss-dbg-duration";const k=Rn(b);return k==="very-slow"?"ss-dbg-duration ss-dbg-very-slow":k==="slow"?"ss-dbg-duration ss-dbg-slow":"ss-dbg-duration"}function g(T,b){if(b.format==="badge"&&b.badgeColorMap){const k=String(T).toLowerCase();return b.badgeColorMap[k]||"muted"}return""}function $(T){return`ss-dbg-method ss-dbg-method-${String(T).toLowerCase()}`}function w(){s.value=[]}const{tableRef:U}=pt(()=>u.value);return yt(()=>{a()}),(T,b)=>(d(),h("div",null,[e.pane.search?(d(),h("div",mh,[He(o("input",{"onUpdate:modelValue":b[0]||(b[0]=k=>l.value=k),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,yh),[[ze,l.value]]),o("span",_h,m(u.value.length)+" items",1),e.pane.clearable?(d(),h("button",{key:0,class:"ss-dbg-btn-clear",onClick:w},"Clear")):oe("",!0)])):oe("",!0),n.value?(d(),h("div",xh,"Loading...")):u.value.length===0?(d(),h("div",wh,"No data")):(d(),h("table",{key:3,ref_key:"tableRef",ref:U,class:"ss-dbg-table"},[o("thead",null,[o("tr",null,[(d(!0),h(R,null,X(e.pane.columns,k=>(d(),h("th",{key:k.key},m(k.label),1))),128))])]),o("tbody",null,[(d(!0),h(R,null,X(u.value,(k,P)=>(d(),h("tr",{key:String(k.id??P)},[(d(!0),h(R,null,X(e.pane.columns,y=>(d(),h("td",{key:y.key,class:V({"ss-dbg-filterable":y.filterable}),onClick:S=>y.filterable?l.value=String(k[y.key]):void 0},[x(k[y.key])?(d(),h("span",$h,"-")):y.format==="time"||y.format==="timeAgo"?(d(),h("span",{key:1,class:"ss-dbg-event-time",title:f(k[y.key],y)},m(p(k[y.key],y)),9,Ch)):y.format==="duration"?(d(),h("span",{key:2,class:V(_(k[y.key]))},m(p(k[y.key],y)),3)):y.format==="method"?(d(),h("span",{key:3,class:V($(k[y.key]))},m(p(k[y.key],y)),3)):y.format==="badge"?(d(),h("span",{key:4,class:V(`ss-dbg-badge ss-dbg-badge-${g(k[y.key],y)}`)},m(p(k[y.key],y)),3)):(d(),h(R,{key:5},[se(m(p(k[y.key],y)),1)],64))],10,kh))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
3
|
+
`,...Eo(l)),console.warn(...r)}Ve(),pn=!1}function So(){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 Eo(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
|
|
4
|
+
`],...Po(s))}),t}function Po({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,l=` at <${ar(e.component,e.type,n)}`,r=">"+s;return e.props?[l,...Ao(e.props),r]:[l+r]}function Ao(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,re(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):J(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=re(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(r=>{Gt(r,t,s)}),l}if(q(e)){const l=[];for(let r=0;r<e.length;r++)l.push(ze(e[r],t,s,n));return l}}function Gt(e,t,s,n=!0){const l=t?t.vnode:null,{errorHandler:r,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 x=0;x<f.length;x++)if(f[x](e,u,p)===!1)return}a=a.parent}if(r){Ke(),Ot(r,null,10,[e,u,p]),Ve();return}}Mo(e,s,l,n,i)}function Mo(e,t,s,n=!0,l=!1){if(l)throw e;console.error(e)}const ke=[];let We=-1;const Rt=[];let bt=null,It=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 Lo(e){let t=We+1,s=ke.length;for(;t<s;){const n=t+s>>>1,l=ke[n],r=Qt(l);r<e||r===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(Lo(t),0,e),e.flags|=1,_l()}}function _l(){ws||(ws=yl.then(kl))}function Oo(e){q(e)?Rt.push(...e):bt&&e.id===-1?bt.splice(It+1,0,e):e.flags&1||(Rt.push(e),e.flags|=1),_l()}function xl(e,t,s=We+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,It=0;It<bt.length;It++){const s=bt[It];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}bt=null,It=0}}const Qt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function kl(e){try{for(We=0;We<ke.length;We++){const t=ke[We];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(;We<ke.length;We++){const t=ke[We];t&&(t.flags&=-2)}We=-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 Ro(e,t=Oe,s){if(!t||e._n)return e;const n=(...l)=>{n._d&&Os(-1);const r=ks(t);let i;try{i=e(...l)}finally{ks(r),n._d&&Os(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function qe(e,t){if(Oe===null)return e;const s=js(Oe),n=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[r,i,a,u=de]=t[l];r&&(J(r)&&(r={mounted:r,updated:r}),r.deep&&rt(i),n.push({dir:r,instance:s,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function $t(e,t,s,n){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const a=l[i];r&&(a.oldValue=r[i].value);let u=a.dir[n];u&&(Ke(),ze(u,s,8,[e.el,a,e,t]),Ve())}}function Io(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=Oi();if(n||Dt){let l=Dt?Dt._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 Do=Symbol.for("v-scx"),jo=()=>$s(Do);function ot(e,t,s){return Cl(e,t,s)}function Cl(e,t,s=de){const{immediate:n,deep:l,flush:r,once:i}=s,a=be({},s),u=t&&n||!t&&r!=="post";let p;if(Ft){if(r==="sync"){const g=jo();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,$,_)=>ze(g,f,$,_);let x=!1;r==="post"?a.scheduler=g=>{Se(g,f&&f.suspense)}:r!=="sync"&&(x=!0,a.scheduler=(g,$)=>{$?g():bn(g)}),a.augmentJob=g=>{t&&(g.flags|=4),x&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const y=To(e,t,a);return Ft&&(p?p.push(y):u&&y()),y}function Fo(e,t,s){const n=this.proxy,l=ge(e)?e.includes(".")?Tl(n,e):()=>n[e]:e.bind(n,n);let r;J(t)?r=t:(r=t.handler,s=t);const i=ls(this),a=Cl(l,r.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 Bo=Symbol("_vte"),No=e=>e.__isTeleport,Ho=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(q(e)){e.forEach((_,K)=>Yt(_,t&&(q(t)?t[K]: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 r=n.shapeFlag&4?js(n.component):n.el,i=l?null:r,{i:a,r:u}=e,p=t&&t.r,f=a.refs===de?a.refs={}:a.refs,x=a.setupState,y=re(x),g=x===de?Hn:_=>Sl(f,_)?!1:ie(y,_),$=(_,K)=>!(K&&Sl(f,K));if(p!=null&&p!==u){if(El(t),ge(p))f[p]=null,g(p)&&(x[p]=null);else if(ve(p)){const _=t;$(p,_.k)&&(p.value=null),_.k&&(f[_.k]=null)}}if(J(u))Ot(u,a,12,[i,f]);else{const _=ge(u),K=ve(u);if(_||K){const S=()=>{if(e.f){const b=_?g(u)?x[u]:f[u]:$()||!e.k?u.value:f[e.k];if(l)q(b)&&qs(b,r);else if(q(b))b.includes(r)||b.push(r);else if(_)f[u]=[r],g(u)&&(x[u]=f[u]);else{const k=[r];$(u,e.k)&&(u.value=k),e.k&&(f[e.k]=k)}}else _?(f[u]=i,g(u)&&(x[u]=i)):K&&($(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const b=()=>{S(),Cs.delete(e)};b.id=-1,Cs.set(e,b),Se(b,s)}else El(e),S()}}}function El(e){const t=Cs.get(e);t&&(t.flags|=8,Cs.delete(e))}const Pl=e=>e.nodeType===8;ps().requestIdleCallback,ps().cancelIdleCallback;function Uo(e,t){if(Pl(e)&&e.data==="["){let s=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Pl(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 Fe(e){J(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:n,delay:l=200,hydrate:r,timeout:i,suspensible:a=!0,onError:u}=e;let p=null,f,x=0;const y=()=>(x++,p=null,g()),g=()=>{let $;return p||($=p=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),u)return new Promise((K,S)=>{u(_,()=>K(y()),()=>S(_),x+1)});throw _}).then(_=>$!==p&&p?p:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),f=_,_)))};return xe({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate($,_,K){let S=!1;(_.bu||(_.bu=[])).push(()=>S=!0);const b=()=>{S||K()},k=r?()=>{const O=r(b,w=>Uo($,w));O&&(_.bum||(_.bum=[])).push(O)}:b;f?k():g().then(()=>!_.isUnmounted&&k())},get __asyncResolved(){return f},setup(){const $=we;if(mn($),f)return()=>Ts(f,$);const _=k=>{p=null,Gt(k,$,13,!n)};if(a&&$.suspense||Ft)return g().then(k=>()=>Ts(k,$)).catch(k=>(_(k),()=>n?pe(n,{error:k}):null));const K=z(!1),S=z(),b=z(!!l);return l&&setTimeout(()=>{b.value=!1},l),i!=null&&setTimeout(()=>{if(!K.value&&!S.value){const k=new Error(`Async component timed out after ${i}ms.`);_(k),S.value=k}},i),g().then(()=>{K.value=!0,$.parent&&yn($.parent.vnode)&&$.parent.update()}).catch(k=>{_(k),S.value=k}),()=>{if(K.value&&f)return Ts(f,$);if(S.value&&n)return pe(n,{error:S.value});if(s&&!b.value)return Ts(s,$)}}})}function Ts(e,t){const{ref:s,props:n,children:l,ce:r}=t.vnode,i=pe(e,n,l);return i.ref=s,i.ce=r,delete t.vnode.ce,i}const yn=e=>e.type.__isKeepAlive;function Ko(e,t){Al(e,"a",t)}function Vo(e,t){Al(e,"da",t)}function Al(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)&&zo(n,t,s,l),l=l.parent}}function zo(e,t,s,n){const l=Ss(t,e,n,!0);Ps(()=>{qs(n[t],l)},s)}function Ss(e,t,s=we,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ke();const a=ls(s),u=ze(t,s,e,i);return a(),Ve(),u});return n?l.unshift(r):l.push(r),r}}const it=e=>(t,s=we)=>{(!Ft||e==="sp")&&Ss(e,(...n)=>t(...n),s)},Wo=it("bm"),Ct=it("m"),qo=it("bu"),Jo=it("u"),Es=it("bum"),Ps=it("um"),Go=it("sp"),Qo=it("rtg"),Yo=it("rtc");function Xo(e,t=we){Ss("ec",e,t)}const Zo=Symbol.for("v-ndc");function X(e,t,s,n){let l;const r=s,i=q(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,x=e.length;f<x;f++)l[f]=t(u?p?Lt(je(e[f])):je(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){l=new Array(e);for(let a=0;a<e;a++)l[a]=t(a+1,a,void 0,r)}else if(ae(e))if(e[Symbol.iterator])l=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,p=a.length;u<p;u++){const f=a[u];l[u]=t(e[f],f,u,r)}}else l=[];return l}const _n=e=>e?rr(e)?js(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=>Fo.bind(e)}),xn=(e,t)=>e!==de&&!e.__isScriptSetup&&ie(e,t),ei={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const 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 r[t]}else{if(xn(n,t))return i[t]=1,n[t];if(l!==de&&ie(l,t))return i[t]=2,l[t];if(ie(r,t))return i[t]=3,r[t];if(s!==de&&ie(s,t))return i[t]=4,s[t];wn&&(i[t]=0)}}const p=Zt[t];let f,x;if(p)return t==="$attrs"&&_e(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(s!==de&&ie(s,t))return i[t]=4,s[t];if(x=u.config.globalProperties,ie(x,t))return x[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return xn(l,t)?(l[t]=s,!0):n!==de&&ie(n,t)?(n[t]=s,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,props:r,type:i}},a){let u;return!!(s[a]||e!==de&&a[0]!=="$"&&ie(e,a)||xn(t,a)||ie(r,a)||ie(n,a)||ie(Zt,a)||ie(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:ie(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Ml(e){return q(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let wn=!0;function ti(e){const t=Rl(e),s=e.proxy,n=e.ctx;wn=!1,t.beforeCreate&&Ll(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:x,mounted:y,beforeUpdate:g,updated:$,activated:_,deactivated:K,beforeDestroy:S,beforeUnmount:b,destroyed:k,unmounted:O,render:w,renderTracked:B,renderTriggered:N,errorCaptured:U,serverPrefetch:ee,expose:Q,inheritAttrs:ne,components:F,directives:ce,filters:ct}=t;if(p&&si(p,n,null),i)for(const Z in i){const le=i[Z];J(le)&&(n[Z]=le.bind(s))}if(l){const Z=l.call(s,s);ae(Z)&&(e.data=dn(Z))}if(wn=!0,r)for(const Z in r){const le=r[Z],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,Z,{enumerable:!0,configurable:!0,get:()=>Et.value,set:Xe=>Et.value=Xe})}if(a)for(const Z in a)Ol(a[Z],n,s,Z);if(u){const Z=J(u)?u.call(s):u;Reflect.ownKeys(Z).forEach(le=>{Io(le,Z[le])})}f&&Ll(f,e,"c");function me(Z,le){q(le)?le.forEach(ye=>Z(ye.bind(s))):le&&Z(le.bind(s))}if(me(Wo,x),me(Ct,y),me(qo,g),me(Jo,$),me(Ko,_),me(Vo,K),me(Xo,U),me(Yo,B),me(Qo,N),me(Es,b),me(Ps,O),me(Go,ee),q(Q))if(Q.length){const Z=e.exposed||(e.exposed={});Q.forEach(le=>{Object.defineProperty(Z,le,{get:()=>s[le],set:ye=>s[le]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===He&&(e.render=w),ne!=null&&(e.inheritAttrs=ne),F&&(e.components=F),ce&&(e.directives=ce),ee&&mn(e)}function si(e,t,s=He){q(e)&&(e=kn(e));for(const n in e){const l=e[n];let r;ae(l)?"default"in l?r=$s(l.from||n,l.default,!0):r=$s(l.from||n):r=$s(l),ve(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function Ll(e,t,s){ze(q(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 r=t[e];J(r)&&ot(l,r)}else if(J(e))ot(l,e.bind(s));else if(ae(e))if(q(e))e.forEach(r=>Ol(r,t,s,n));else{const r=J(e.handler)?e.handler.bind(s):t[e.handler];J(r)&&ot(l,r,e)}}function Rl(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!l.length&&!s&&!n?u=t:(u={},l.length&&l.forEach(p=>As(u,p,i,!0)),As(u,t,i)),ae(t)&&r.set(t,u),u}function As(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&As(e,r,s,!0),l&&l.forEach(i=>As(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const a=ni[i]||s&&s[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const ni={data:Il,props:Dl,emits:Dl,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:Il,inject:li};function Il(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 li(e,t){return es(kn(e),kn(t))}function kn(e){if(q(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 Dl(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:be(Object.create(null),Ml(e),Ml(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 jl(){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 oi=0;function ii(e,t){return function(n,l=null){J(n)||(n=be({},n)),l!=null&&!ae(l)&&(l=null);const r=jl(),i=new WeakSet,a=[];let u=!1;const p=r.app={_uid:oi++,_component:n,_props:l,_container:null,_context:r,_instance:null,version:Ki,get config(){return r.config},set config(f){},use(f,...x){return i.has(f)||(f&&J(f.install)?(i.add(f),f.install(p,...x)):J(f)&&(i.add(f),f(p,...x))),p},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),p},component(f,x){return x?(r.components[f]=x,p):r.components[f]},directive(f,x){return x?(r.directives[f]=x,p):r.directives[f]},mount(f,x,y){if(!u){const g=p._ceVNode||pe(n,l);return g.appContext=r,y===!0?y="svg":y===!1&&(y=void 0),e(g,f,y),u=!0,p._container=f,f.__vue_app__=p,js(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,x){return r.provides[f]=x,p},runWithContext(f){const x=Dt;Dt=p;try{return f()}finally{Dt=x}}};return p}}let Dt=null;const ai=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${dt(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function ui(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||de;let l=s;const r=t.startsWith("update:"),i=r&&ai(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&&r&&(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 ci=new WeakMap;function Fl(e,t,s=!1){const n=s?ci:t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},a=!1;if(!J(e)){const u=p=>{const f=Fl(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!r&&!a?(ae(e)&&n.set(e,null),null):(q(r)?r.forEach(u=>i[u]=null):be(i,r),ae(e)&&n.set(e,i),i)}function Ms(e,t){return!e||!ds(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,ft(t))||ie(e,t))}function Gh(){}function Bl(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:x,data:y,setupState:g,ctx:$,inheritAttrs:_}=e,K=ks(e);let S,b;try{if(s.shapeFlag&4){const O=l||n,w=O;S=Je(p.call(w,O,f,x,g,y,$)),b=a}else{const O=t;S=Je(O.length>1?O(x,{attrs:a,slots:i,emit:u}):O(x,null)),b=t.props?a:di(a)}}catch(O){ts.length=0,Gt(O,e,1),S=pe(vt)}let k=S;if(b&&_!==!1){const O=Object.keys(b),{shapeFlag:w}=k;O.length&&w&7&&(r&&O.some(Ws)&&(b=fi(b,r)),k=jt(k,b,!1,!0))}return s.dirs&&(k=jt(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(s.dirs):s.dirs),s.transition&&vn(k,s.transition),S=k,ks(K),S}const di=e=>{let t;for(const s in e)(s==="class"||s==="style"||ds(s))&&((t||(t={}))[s]=e[s]);return t},fi=(e,t)=>{const s={};for(const n in e)(!Ws(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function hi(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:a,patchFlag:u}=t,p=r.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 x=0;x<f.length;x++){const y=f[x];if(Hl(i,n,y)&&!Ms(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 r=n[l];if(Hl(t,e,r)&&!Ms(s,r))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 pi({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 gi(e,t,s,n=!1){const l={},r=Kl();e.propsDefaults=Object.create(null),zl(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:mo(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function bi(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,a=re(l),[u]=e.propsOptions;let p=!1;if((n||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let x=0;x<f.length;x++){let y=f[x];if(Ms(e.emitsOptions,y))continue;const g=t[y];if(u)if(ie(r,y))g!==r[y]&&(r[y]=g,p=!0);else{const $=dt(y);l[$]=$n(u,a,$,g,e,!1)}else g!==r[y]&&(r[y]=g,p=!0)}}}else{zl(e,t,l,r)&&(p=!0);let f;for(const x in a)(!t||!ie(t,x)&&((f=ft(x))===x||!ie(t,f)))&&(u?s&&(s[x]!==void 0||s[f]!==void 0)&&(l[x]=$n(u,a,x,void 0,e,!0)):delete l[x]);if(r!==a)for(const x in r)(!t||!ie(t,x))&&(delete r[x],p=!0)}p&&st(e.attrs,"set","")}function zl(e,t,s,n){const[l,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if(Ut(u))continue;const p=t[u];let f;l&&ie(l,f=dt(u))?!r||!r.includes(f)?s[f]=p:(a||(a={}))[f]=p:Ms(e.emitsOptions,u)||(!(u in n)||p!==n[u])&&(n[u]=p,i=!0)}if(r){const u=re(s),p=a||de;for(let f=0;f<r.length;f++){const x=r[f];s[x]=$n(l,u,x,p[x],e,!ie(p,x))}}return i}function $n(e,t,s,n,l,r){const i=e[s];if(i!=null){const a=ie(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]&&(r&&!a?n=!1:i[1]&&(n===""||n===ft(s))&&(n=!0))}return n}const vi=new WeakMap;function Wl(e,t,s=!1){const n=s?vi:t.propsCache,l=n.get(e);if(l)return l;const r=e.props,i={},a=[];let u=!1;if(!J(e)){const f=x=>{u=!0;const[y,g]=Wl(x,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(!r&&!u)return ae(e)&&n.set(e,Pt),Pt;if(q(r))for(let f=0;f<r.length;f++){const x=dt(r[f]);ql(x)&&(i[x]=de)}else if(r)for(const f in r){const x=dt(f);if(ql(x)){const y=r[f],g=i[x]=q(y)||J(y)?{type:y}:be({},y),$=g.type;let _=!1,K=!0;if(q($))for(let S=0;S<$.length;++S){const b=$[S],k=J(b)&&b.name;if(k==="Boolean"){_=!0;break}else k==="String"&&(K=!1)}else _=J($)&&$.name==="Boolean";g[0]=_,g[1]=K,(_||ie(g,"default"))&&a.push(x)}}const p=[i,a];return ae(e)&&n.set(e,p),p}function ql(e){return e[0]!=="$"&&!Ut(e)}const Cn=e=>e==="_"||e==="_ctx"||e==="$stable",Tn=e=>q(e)?e.map(Je):[Je(e)],mi=(e,t,s)=>{if(t._n)return t;const n=Ro((...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 r=e[l];if(J(r))t[l]=mi(l,r,n);else if(r!=null){const i=Tn(r);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])},yi=(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)},_i=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=de;if(n.shapeFlag&32){const a=t._;a?s&&a===1?r=!1:Ql(l,t,s):(r=!t.$stable,Jl(t,l)),i=t}else t&&(Gl(e,t),i={default:1});if(r)for(const a in l)!Cn(a)&&i[a]==null&&delete l[a]},Se=Ci;function xi(e){return wi(e)}function wi(e,t){const s=ps();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:x,nextSibling:y,setScopeId:g=He,insertStaticContent:$}=e,_=(h,v,C,M=null,E=null,P=null,D=void 0,I=null,R=!!v.dynamicChildren)=>{if(h===v)return;h&&!ns(h,v)&&(M=Vs(h),Xe(h,E,P,!0),h=null),v.patchFlag===-2&&(R=!1,v.dynamicChildren=null);const{type:A,ref:W,shapeFlag:j}=v;switch(A){case Ls:K(h,v,C,M);break;case vt:S(h,v,C,M);break;case En:h==null&&b(v,C,M,D);break;case L:F(h,v,C,M,E,P,D,I,R);break;default:j&1?w(h,v,C,M,E,P,D,I,R):j&6?ce(h,v,C,M,E,P,D,I,R):(j&64||j&128)&&A.process(h,v,C,M,E,P,D,I,R,us)}W!=null&&E?Yt(W,h&&h.ref,P,v||h,!v):W==null&&h&&h.ref!=null&&Yt(h.ref,null,P,h,!0)},K=(h,v,C,M)=>{if(h==null)n(v.el=a(v.children),C,M);else{const E=v.el=h.el;v.children!==h.children&&p(E,v.children)}},S=(h,v,C,M)=>{h==null?n(v.el=u(v.children||""),C,M):v.el=h.el},b=(h,v,C,M)=>{[h.el,h.anchor]=$(h.children,v,C,M,h.el,h.anchor)},k=({el:h,anchor:v},C,M)=>{let E;for(;h&&h!==v;)E=y(h),n(h,C,M),h=E;n(v,C,M)},O=({el:h,anchor:v})=>{let C;for(;h&&h!==v;)C=y(h),l(h),h=C;l(v)},w=(h,v,C,M,E,P,D,I,R)=>{if(v.type==="svg"?D="svg":v.type==="math"&&(D="mathml"),h==null)B(v,C,M,E,P,D,I,R);else{const A=h.el&&h.el._isVueCE?h.el:null;try{A&&A._beginPatch(),ee(h,v,E,P,D,I,R)}finally{A&&A._endPatch()}}},B=(h,v,C,M,E,P,D,I)=>{let R,A;const{props:W,shapeFlag:j,transition:V,dirs:G}=h;if(R=h.el=i(h.type,P,W&&W.is,W),j&8?f(R,h.children):j&16&&U(h.children,R,null,M,E,Sn(h,P),D,I),G&&$t(h,null,M,"created"),N(R,h,h.scopeId,D,M),W){for(const he in W)he!=="value"&&!Ut(he)&&r(R,he,null,W[he],P,M);"value"in W&&r(R,"value",null,W.value,P),(A=W.onVnodeBeforeMount)&&Ge(A,M,h)}G&&$t(h,null,M,"beforeMount");const te=ki(E,V);te&&V.beforeEnter(R),n(R,v,C),((A=W&&W.onVnodeMounted)||te||G)&&Se(()=>{A&&Ge(A,M,h),te&&V.enter(R),G&&$t(h,null,M,"mounted")},E)},N=(h,v,C,M,E)=>{if(C&&g(h,C),M)for(let P=0;P<M.length;P++)g(h,M[P]);if(E){let P=E.subTree;if(v===P||tr(P.type)&&(P.ssContent===v||P.ssFallback===v)){const D=E.vnode;N(h,D,D.scopeId,D.slotScopeIds,E.parent)}}},U=(h,v,C,M,E,P,D,I,R=0)=>{for(let A=R;A<h.length;A++){const W=h[A]=I?at(h[A]):Je(h[A]);_(null,W,v,C,M,E,P,D,I)}},ee=(h,v,C,M,E,P,D)=>{const I=v.el=h.el;let{patchFlag:R,dynamicChildren:A,dirs:W}=v;R|=h.patchFlag&16;const j=h.props||de,V=v.props||de;let G;if(C&&Tt(C,!1),(G=V.onVnodeBeforeUpdate)&&Ge(G,C,v,h),W&&$t(v,h,C,"beforeUpdate"),C&&Tt(C,!0),(j.innerHTML&&V.innerHTML==null||j.textContent&&V.textContent==null)&&f(I,""),A?Q(h.dynamicChildren,A,I,C,M,Sn(v,E),P):D||le(h,v,I,null,C,M,Sn(v,E),P,!1),R>0){if(R&16)ne(I,j,V,C,E);else if(R&2&&j.class!==V.class&&r(I,"class",null,V.class,E),R&4&&r(I,"style",j.style,V.style,E),R&8){const te=v.dynamicProps;for(let he=0;he<te.length;he++){const ue=te[he],Ee=j[ue],Pe=V[ue];(Pe!==Ee||ue==="value")&&r(I,ue,Ee,Pe,E,C)}}R&1&&h.children!==v.children&&f(I,v.children)}else!D&&A==null&&ne(I,j,V,C,E);((G=V.onVnodeUpdated)||W)&&Se(()=>{G&&Ge(G,C,v,h),W&&$t(v,h,C,"updated")},M)},Q=(h,v,C,M,E,P,D)=>{for(let I=0;I<v.length;I++){const R=h[I],A=v[I],W=R.el&&(R.type===L||!ns(R,A)||R.shapeFlag&198)?x(R.el):C;_(R,A,W,null,M,E,P,D,!0)}},ne=(h,v,C,M,E)=>{if(v!==C){if(v!==de)for(const P in v)!Ut(P)&&!(P in C)&&r(h,P,v[P],null,E,M);for(const P in C){if(Ut(P))continue;const D=C[P],I=v[P];D!==I&&P!=="value"&&r(h,P,I,D,E,M)}"value"in C&&r(h,"value",v.value,C.value,E)}},F=(h,v,C,M,E,P,D,I,R)=>{const A=v.el=h?h.el:a(""),W=v.anchor=h?h.anchor:a("");let{patchFlag:j,dynamicChildren:V,slotScopeIds:G}=v;G&&(I=I?I.concat(G):G),h==null?(n(A,C,M),n(W,C,M),U(v.children||[],C,W,E,P,D,I,R)):j>0&&j&64&&V&&h.dynamicChildren&&h.dynamicChildren.length===V.length?(Q(h.dynamicChildren,V,C,E,P,D,I),(v.key!=null||E&&v===E.subTree)&&Yl(h,v,!0)):le(h,v,C,W,E,P,D,I,R)},ce=(h,v,C,M,E,P,D,I,R)=>{v.slotScopeIds=I,h==null?v.shapeFlag&512?E.ctx.activate(v,C,M,D,R):ct(v,C,M,E,P,D,R):Ks(h,v,R)},ct=(h,v,C,M,E,P,D)=>{const I=h.component=Li(h,M,E);if(yn(h)&&(I.ctx.renderer=us),Ri(I,!1,D),I.asyncDep){if(E&&E.registerDep(I,me,D),!h.el){const R=I.subTree=pe(vt);S(null,R,v,C),h.placeholder=R.el}}else me(I,h,v,C,E,P,D)},Ks=(h,v,C)=>{const M=v.component=h.component;if(hi(h,v,C))if(M.asyncDep&&!M.asyncResolved){Z(M,v,C);return}else M.next=v,M.update();else v.el=h.el,M.vnode=v},me=(h,v,C,M,E,P,D)=>{const I=()=>{if(h.isMounted){let{next:j,bu:V,u:G,parent:te,vnode:he}=h;{const et=Xl(h);if(et){j&&(j.el=he.el,Z(h,j,D)),et.asyncDep.then(()=>{Se(()=>{h.isUnmounted||A()},E)});return}}let ue=j,Ee;Tt(h,!1),j?(j.el=he.el,Z(h,j,D)):j=he,V&&hs(V),(Ee=j.props&&j.props.onVnodeBeforeUpdate)&&Ge(Ee,te,j,he),Tt(h,!0);const Pe=Bl(h),Ze=h.subTree;h.subTree=Pe,_(Ze,Pe,x(Ze.el),Vs(Ze),h,E,P),j.el=Pe.el,ue===null&&pi(h,Pe.el),G&&Se(G,E),(Ee=j.props&&j.props.onVnodeUpdated)&&Se(()=>Ge(Ee,te,j,he),E)}else{let j;const{el:V,props:G}=v,{bm:te,m:he,parent:ue,root:Ee,type:Pe}=h,Ze=Xt(v);Tt(h,!1),te&&hs(te),!Ze&&(j=G&&G.onVnodeBeforeMount)&&Ge(j,ue,v),Tt(h,!0);{Ee.ce&&Ee.ce._hasShadowRoot()&&Ee.ce._injectChildStyle(Pe);const et=h.subTree=Bl(h);_(null,et,C,M,h,E,P),v.el=et.el}if(he&&Se(he,E),!Ze&&(j=G&&G.onVnodeMounted)){const et=v;Se(()=>Ge(j,ue,et),E)}(v.shapeFlag&256||ue&&Xt(ue.vnode)&&ue.vnode.shapeFlag&256)&&h.a&&Se(h.a,E),h.isMounted=!0,v=C=M=null}};h.scope.on();const R=h.effect=new Zn(I);h.scope.off();const A=h.update=R.run.bind(R),W=h.job=R.runIfDirty.bind(R);W.i=h,W.id=h.uid,R.scheduler=()=>bn(W),Tt(h,!0),A()},Z=(h,v,C)=>{v.component=h;const M=h.vnode.props;h.vnode=v,h.next=null,bi(h,v.props,M,C),_i(h,v.children,C),Ke(),xl(h),Ve()},le=(h,v,C,M,E,P,D,I,R=!1)=>{const A=h&&h.children,W=h?h.shapeFlag:0,j=v.children,{patchFlag:V,shapeFlag:G}=v;if(V>0){if(V&128){is(A,j,C,M,E,P,D,I,R);return}else if(V&256){ye(A,j,C,M,E,P,D,I,R);return}}G&8?(W&16&&as(A,E,P),j!==A&&f(C,j)):W&16?G&16?is(A,j,C,M,E,P,D,I,R):as(A,E,P,!0):(W&8&&f(C,""),G&16&&U(j,C,M,E,P,D,I,R))},ye=(h,v,C,M,E,P,D,I,R)=>{h=h||Pt,v=v||Pt;const A=h.length,W=v.length,j=Math.min(A,W);let V;for(V=0;V<j;V++){const G=v[V]=R?at(v[V]):Je(v[V]);_(h[V],G,C,null,E,P,D,I,R)}A>W?as(h,E,P,!0,!1,j):U(v,C,M,E,P,D,I,R,j)},is=(h,v,C,M,E,P,D,I,R)=>{let A=0;const W=v.length;let j=h.length-1,V=W-1;for(;A<=j&&A<=V;){const G=h[A],te=v[A]=R?at(v[A]):Je(v[A]);if(ns(G,te))_(G,te,C,null,E,P,D,I,R);else break;A++}for(;A<=j&&A<=V;){const G=h[j],te=v[V]=R?at(v[V]):Je(v[V]);if(ns(G,te))_(G,te,C,null,E,P,D,I,R);else break;j--,V--}if(A>j){if(A<=V){const G=V+1,te=G<W?v[G].el:M;for(;A<=V;)_(null,v[A]=R?at(v[A]):Je(v[A]),C,te,E,P,D,I,R),A++}}else if(A>V)for(;A<=j;)Xe(h[A],E,P,!0),A++;else{const G=A,te=A,he=new Map;for(A=te;A<=V;A++){const Me=v[A]=R?at(v[A]):Je(v[A]);Me.key!=null&&he.set(Me.key,A)}let ue,Ee=0;const Pe=V-te+1;let Ze=!1,et=0;const cs=new Array(Pe);for(A=0;A<Pe;A++)cs[A]=0;for(A=G;A<=j;A++){const Me=h[A];if(Ee>=Pe){Xe(Me,E,P,!0);continue}let tt;if(Me.key!=null)tt=he.get(Me.key);else for(ue=te;ue<=V;ue++)if(cs[ue-te]===0&&ns(Me,v[ue])){tt=ue;break}tt===void 0?Xe(Me,E,P,!0):(cs[tt-te]=A+1,tt>=et?et=tt:Ze=!0,_(Me,v[tt],C,null,E,P,D,I,R),Ee++)}const Fr=Ze?$i(cs):Pt;for(ue=Fr.length-1,A=Pe-1;A>=0;A--){const Me=te+A,tt=v[Me],Br=v[Me+1],Nr=Me+1<W?Br.el||er(Br):M;cs[A]===0?_(null,tt,C,Nr,E,P,D,I,R):Ze&&(ue<0||A!==Fr[ue]?Et(tt,C,Nr,2):ue--)}}},Et=(h,v,C,M,E=null)=>{const{el:P,type:D,transition:I,children:R,shapeFlag:A}=h;if(A&6){Et(h.component.subTree,v,C,M);return}if(A&128){h.suspense.move(v,C,M);return}if(A&64){D.move(h,v,C,us);return}if(D===L){n(P,v,C);for(let j=0;j<R.length;j++)Et(R[j],v,C,M);n(h.anchor,v,C);return}if(D===En){k(h,v,C);return}if(M!==2&&A&1&&I)if(M===0)I.beforeEnter(P),n(P,v,C),Se(()=>I.enter(P),E);else{const{leave:j,delayLeave:V,afterLeave:G}=I,te=()=>{h.ctx.isUnmounted?l(P):n(P,v,C)},he=()=>{P._isLeaving&&P[Ho](!0),j(P,()=>{te(),G&&G()})};V?V(P,te,he):he()}else n(P,v,C)},Xe=(h,v,C,M=!1,E=!1)=>{const{type:P,props:D,ref:I,children:R,dynamicChildren:A,shapeFlag:W,patchFlag:j,dirs:V,cacheIndex:G}=h;if(j===-2&&(E=!1),I!=null&&(Ke(),Yt(I,null,C,h,!0),Ve()),G!=null&&(v.renderCache[G]=void 0),W&256){v.ctx.deactivate(h);return}const te=W&1&&V,he=!Xt(h);let ue;if(he&&(ue=D&&D.onVnodeBeforeUnmount)&&Ge(ue,v,h),W&6)zh(h.component,C,M);else{if(W&128){h.suspense.unmount(C,M);return}te&&$t(h,null,v,"beforeUnmount"),W&64?h.type.remove(h,v,C,us,M):A&&!A.hasOnce&&(P!==L||j>0&&j&64)?as(A,v,C,!1,!0):(P===L&&j&384||!E&&W&16)&&as(R,v,C),M&&Dr(h)}(he&&(ue=D&&D.onVnodeUnmounted)||te)&&Se(()=>{ue&&Ge(ue,v,h),te&&$t(h,null,v,"unmounted")},C)},Dr=h=>{const{type:v,el:C,anchor:M,transition:E}=h;if(v===L){Vh(C,M);return}if(v===En){O(h);return}const P=()=>{l(C),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(h.shapeFlag&1&&E&&!E.persisted){const{leave:D,delayLeave:I}=E,R=()=>D(C,P);I?I(h.el,P,R):R()}else P()},Vh=(h,v)=>{let C;for(;h!==v;)C=y(h),l(h),h=C;l(v)},zh=(h,v,C)=>{const{bum:M,scope:E,job:P,subTree:D,um:I,m:R,a:A}=h;Zl(R),Zl(A),M&&hs(M),E.stop(),P&&(P.flags|=8,Xe(D,h,v,C)),I&&Se(I,v),Se(()=>{h.isUnmounted=!0},v)},as=(h,v,C,M=!1,E=!1,P=0)=>{for(let D=P;D<h.length;D++)Xe(h[D],v,C,M,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),C=v&&v[Bo];return C?y(C):v};let Nn=!1;const jr=(h,v,C)=>{let M;h==null?v._vnode&&(Xe(v._vnode,null,null,!0),M=v._vnode.component):_(v._vnode||null,h,v,null,null,null,C),v._vnode=h,Nn||(Nn=!0,xl(M),wl(),Nn=!1)},us={p:_,um:Xe,m:Et,r:Dr,mt:ct,mc:U,pc:le,pbc:Q,n:Vs,o:e};return{render:jr,hydrate:void 0,createApp:ii(jr)}}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 ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yl(e,t,s=!1){const n=e.children,l=t.children;if(q(n)&&q(l))for(let r=0;r<n.length;r++){const i=n[r];let a=l[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[r]=at(l[r]),a.el=i.el),!s&&a.patchFlag!==-2&&Yl(i,a)),a.type===Ls&&(a.patchFlag===-1&&(a=l[r]=at(a)),a.el=i.el),a.type===vt&&!a.el&&(a.el=i.el)}}function $i(e){const t=e.slice(),s=[0];let n,l,r,i,a;const u=e.length;for(n=0;n<u;n++){const p=e[n];if(p!==0){if(l=s[s.length-1],e[l]<p){t[n]=l,s.push(n);continue}for(r=0,i=s.length-1;r<i;)a=r+i>>1,e[s[a]]<p?r=a+1:i=a;p<e[s[r]]&&(r>0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function 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 er(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?er(t.subTree):null}const tr=e=>e.__isSuspense;function Ci(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Oo(e)}const L=Symbol.for("v-fgt"),Ls=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),ts=[];let Ae=null;function c(e=!1){ts.push(Ae=e?null:[])}function Ti(){ts.pop(),Ae=ts[ts.length-1]||null}let ss=1;function Os(e,t=!1){ss+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function sr(e){return e.dynamicChildren=ss>0?Ae||Pt:null,Ti(),ss>0&&Ae&&Ae.push(e),e}function d(e,t,s,n,l,r){return sr(o(e,t,s,n,l,r,!0))}function Re(e,t,s,n,l){return sr(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 nr=({key:e})=>e??null,Is=({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 o(e,t=null,s=null,n=0,l=null,r=e===L?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nr(t),ref:t&&Is(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:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Oe};return a?(Pn(u,s),r&128&&e.normalize(u)):s&&(u.shapeFlag|=ge(s)?8:16),ss>0&&!i&&Ae&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&&Ae.push(u),u}const pe=Si;function Si(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===Zo)&&(e=vt),Rs(e)){const a=jt(e,t,!0);return s&&Pn(a,s),ss>0&&!r&&Ae&&(a.shapeFlag&6?Ae[Ae.indexOf(e)]=a:Ae.push(a)),a.patchFlag=-2,a}if(Hi(e)&&(e=e.__vccOpts),t){t=Ei(t);let{class:a,style:u}=t;a&&!ge(a)&&(t.class=H(a)),ae(u)&&(hn(u)&&!q(u)&&(u=be({},u)),t.style=pt(u))}const i=ge(e)?1:tr(e)?128:No(e)?64:ae(e)?4:J(e)?2:0;return o(e,t,s,n,l,i,r,!0)}function Ei(e){return e?hn(e)||Vl(e)?be({},e):e:null}function jt(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:a,transition:u}=e,p=t?Pi(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&nr(p),ref:t&&t.ref?s&&r?q(r)?r.concat(Is(t)):[r,Is(t)]:Is(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==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&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(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 se(e=" ",t=0){return pe(Ls,null,e,t)}function oe(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):q(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:jt(e)}function Pn(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(q(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),Pn(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=[se(t)]):s=8);e.children=t,e.shapeFlag|=s}function Pi(...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=H([t.class,n.class]));else if(l==="style")t.style=pt([t.style,n.style]);else if(ds(l)){const r=t[l],i=n[l];i&&r!==i&&!(q(r)&&r.includes(i))&&(t[l]=r?[].concat(r,i):i)}else l!==""&&(t[l]=n[l])}return t}function Ge(e,t,s,n=null){ze(e,t,7,[s,n])}const Ai=jl();let Mi=0;function Li(e,t,s){const n=e.type,l=(t?t.appContext:e.appContext)||Ai,r={uid:Mi++,vnode:e,type:n,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Yr(!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:Wl(n,l),emitsOptions:Fl(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 r.ctx={_:r},r.root=t?t.root:r,r.emit=ui.bind(null,r),e.ce&&e.ce(r),r}let we=null;const Oi=()=>we||Oe;let Ds,An;{const e=ps(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ds=t("__VUE_INSTANCE_SETTERS__",s=>we=s),An=t("__VUE_SSR_SETTERS__",s=>Ft=s)}const ls=e=>{const t=we;return Ds(e),e.scope.on(),()=>{e.scope.off(),Ds(t)}},lr=()=>{we&&we.scope.off(),Ds(null)};function rr(e){return e.vnode.shapeFlag&4}let Ft=!1;function Ri(e,t=!1,s=!1){t&&An(t);const{props:n,children:l}=e.vnode,r=rr(e);gi(e,n,r,t),yi(e,l,s||t);const i=r?Ii(e,t):void 0;return t&&An(!1),i}function Ii(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ei);const{setup:n}=s;if(n){Ke();const l=e.setupContext=n.length>1?ji(e):null,r=ls(e),i=Ot(n,e,0,[e.props,l]),a=Vn(i);if(Ve(),r(),(a||e.sp)&&!Xt(e)&&mn(e),a){if(i.then(lr,lr),t)return i.then(u=>{or(e,u)}).catch(u=>{Gt(u,e,0)});e.asyncDep=i}else or(e,i)}else ir(e)}function or(e,t,s){J(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ae(t)&&(e.setupState=vl(t)),ir(e)}function ir(e,t,s){const n=e.type;e.render||(e.render=n.render||He);{const l=ls(e);Ke();try{ti(e)}finally{Ve(),l()}}}const Di={get(e,t){return _e(e,"get",""),e[t]}};function ji(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Di),slots:e.slots,emit:e.emit,expose:t}}function js(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vl(yo(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 Fi=/(?:^|[-_])\w/g,Bi=e=>e.replace(Fi,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ni(e,t=!0){return J(e)?e.displayName||e.name:e.name||t&&e.__name}function ar(e,t,s=!1){let n=Ni(t);if(!n&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(n=l[1])}if(!n&&e){const l=r=>{for(const i in r)if(r[i]===t)return i};n=l(e.components)||e.parent&&l(e.parent.type.components)||l(e.appContext.components)}return n?Bi(n):s?"App":"Anonymous"}function Hi(e){return J(e)&&"__vccOpts"in e}const Y=(e,t)=>$o(e,t,Ft);function Ui(e,t,s){try{Os(-1);const n=arguments.length;return n===2?ae(t)&&!q(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 Ki="3.5.29";let Mn;const ur=typeof window<"u"&&window.trustedTypes;if(ur)try{Mn=ur.createPolicy("vue",{createHTML:e=>e})}catch{}const cr=Mn?e=>Mn.createHTML(e):e=>e,Vi="http://www.w3.org/2000/svg",zi="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,dr=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(Vi,e):t==="mathml"?ut.createElementNS(zi,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,r){const i=s?s.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),s),!(l===r||!(l=l.nextSibling)););else{dr.innerHTML=cr(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=dr.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]}},qi=Symbol("_vtc");function Ji(e,t,s){const n=e[qi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const fr=Symbol("_vod"),Gi=Symbol("_vsh"),Qi=Symbol(""),Yi=/(?:^|;)\s*display\s*:/;function Xi(e,t,s){const n=e.style,l=ge(s);let r=!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&&Fs(n,a,"")}else for(const i in t)s[i]==null&&Fs(n,i,"");for(const i in s)i==="display"&&(r=!0),Fs(n,i,s[i])}else if(l){if(t!==s){const i=n[Qi];i&&(s+=";"+i),n.cssText=s,r=Yi.test(s)}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=r?n.display:"",e[Gi]&&(n.display="none"))}const hr=/\s*!important$/;function Fs(e,t,s){if(q(s))s.forEach(n=>Fs(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Zi(e,t);hr.test(s)?e.setProperty(ft(n),s.replace(hr,""),"important"):e[n]=s}}const pr=["Webkit","Moz","ms"],Ln={};function Zi(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=qn(n);for(let l=0;l<pr.length;l++){const r=pr[l]+n;if(r in e)return Ln[t]=r}return t}const gr="http://www.w3.org/1999/xlink";function br(e,t,s,n,l,r=Gr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(gr,t.slice(6,t.length)):e.setAttributeNS(gr,t,s):s==null||r&&!Qn(s)?e.removeAttribute(t):e.setAttribute(t,r?"":Ue(s)?String(s):s)}function vr(e,t,s,n,l){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?cr(s):s);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let i=!1;if(s===""||s==null){const a=typeof e[t];a==="boolean"?s=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 ea(e,t,s,n){e.removeEventListener(t,s,n)}const mr=Symbol("_vei");function ta(e,t,s,n,l=null){const r=e[mr]||(e[mr]={}),i=r[t];if(n&&i)i.value=n;else{const[a,u]=sa(t);if(n){const p=r[t]=ra(n,l);Bt(e,a,p,u)}else i&&(ea(e,a,i,u),r[t]=void 0)}}const yr=/(?:Once|Passive|Capture)$/;function sa(e){let t;if(yr.test(e)){t={};let n;for(;n=e.match(yr);)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 na=Promise.resolve(),la=()=>On||(na.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(oa(n,s.value),t,5,[n])};return s.value=e,s.attached=la(),s}function oa(e,t){if(q(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 _r=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ia=(e,t,s,n,l,r)=>{const i=l==="svg";t==="class"?Ji(e,n,i):t==="style"?Xi(e,s,n):ds(t)?Ws(t)||ta(e,t,s,n,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):aa(e,t,n,i))?(vr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,n,i,r,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ge(n))?vr(e,dt(t),n,r,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),br(e,t,n,i))};function aa(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&_r(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 _r(t)&&ge(s)?!1:t in e}const xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?s=>hs(t,s):t};function ua(e){e.target.composing=!0}function wr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Rn=Symbol("_assign");function kr(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]=xr(l);const r=n||l.props&&l.props.type==="number";Bt(e,t?"change":"input",i=>{i.target.composing||e[Rn](kr(e.value,s,r))}),(s||r)&&Bt(e,"change",()=>{e.value=kr(e.value,s,r)}),t||(Bt(e,"compositionstart",ua),Bt(e,"compositionend",wr),Bt(e,"change",wr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:l,number:r}},i){if(e[Rn]=xr(i),e.composing)return;const a=(r||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))}},ca=["ctrl","shift","alt","meta"],da={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)=>ca.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,...r)=>{for(let i=0;i<t.length;i++){const a=da[t[i]];if(a&&a(l,t))return}return e(l,...r)}))},fa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$r=(e,t)=>{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const r=ft(l.key);if(t.some(i=>i===r||fa[i]===r))return e(l)}))},ha=be({patchProp:ia},Wi);let Cr;function pa(){return Cr||(Cr=xi(ha))}const ga=((...e)=>{const t=pa().createApp(...e),{mount:s}=t;return t.mount=n=>{const l=va(n);if(!l)return;const r=t._component;!J(r)&&!r.render&&!r.template&&(r.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=s(l,!1,ba(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function ba(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function va(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 ma extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class In{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const l={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},r=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:l,credentials:this.authToken?"omit":"include"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(r.status===401||r.status===403)throw new Bs(r.status);if(!r.ok){const i=await r.text().catch(()=>"");throw new ma(r.status,i)}return r.json()}async get(t,s){const n=s?`${t}?${s}`:t;return this.fetch(n)}async post(t,s){const n={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,n)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const ya=3e3,_a=100,xa=500,wa={queries:"/queries",events:"/events",emails:"/emails",routes:"/routes",logs:"/logs",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config",internals:"/diagnostics"};function ka(e){return wa[e]||`/${e}`}class Tr{client;endpoint;refreshInterval;callbacks;timer=null;currentTab=null;fetchOnceCache={};abortController=null;constructor(t){this.client=new In({baseUrl:t.baseUrl,authToken:t.authToken}),this.endpoint=t.endpoint??"/admin/api/debug",this.refreshInterval=t.refreshInterval??ya,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)return;if(this.fetchOnceCache[t]!==void 0){this.callbacks.onData(this.fetchOnceCache[t]),this.callbacks.onLoading(!1);return}this.abortController?.abort();const s=new AbortController;this.abortController=s;try{const n=`${this.endpoint}${ka(t)}`,l=await this.client.fetch(n,{signal:s.signal});if(s.signal.aborted)return;this.callbacks.onData(l),this.callbacks.onError(null),this.callbacks.onLoading(!1)}catch(n){if(n instanceof DOMException&&n.name==="AbortError"||s.signal.aborted)return;if(n instanceof Bs){this.callbacks.onError(n),this.callbacks.onLoading(!1),this.stop(),this.callbacks.onUnauthorized(n);return}this.callbacks.onError(n instanceof Error?n:new Error(String(n))),this.callbacks.onLoading(!1)}}}const Sr=new Set(["cache","jobs","config"]);function $a(e,t={}){const{baseUrl:s="",debugEndpoint:n="/admin/api/debug",dashboardEndpoint:l,authToken:r,refreshInterval:i}=t,a=z(null),u=z(!1),p=z(null),f=z(!1),x=new Tr({baseUrl:s,endpoint:n,authToken:r,refreshInterval:i,onData:w=>{a.value=w},onLoading:w=>{u.value=w},onError:w=>{p.value=w},onUnauthorized:()=>{f.value=!0}});let y=null;function g(){return!y&&l&&(y=new Tr({baseUrl:s,endpoint:l,authToken:r,refreshInterval:i,onData:w=>{a.value=w},onLoading:w=>{u.value=w},onError:w=>{p.value=w},onUnauthorized:()=>{f.value=!0}})),y}function $(){const w=e();if(w&&!w.startsWith("custom-"))if(Sr.has(w)&&l){const B=g();x.stop(),B.start(w)}else y?.stop(),x.start(w)}function _(){x.stop(),y?.stop()}async function K(w,B=!1){await x.fetchCustomPane(w,B)}function S(){$()}function b(){_()}function k(){const w=e();Sr.has(w)&&l&&y?y.refresh():x.refresh()}function O(){a.value=null}return ot(e,()=>{O(),$()}),Ct(()=>{S()}),Ps(()=>{_()}),{data:a,loading:u,error:p,isUnauthorized:f,refresh:k,clear:O,fetchCustomPane:K,startRefresh:S,stopRefresh:b}}const Ns="ss-dash-theme",Dn="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 Ca(e){typeof window>"u"||(localStorage.setItem(Ns,e),window.dispatchEvent(new CustomEvent(Dn,{detail:e})))}function Ta(){const t=Hs()==="dark"?"light":"dark";return Ca(t),t}function Sa(e){if(typeof window>"u")return()=>{};const t=r=>{const i=r.detail;(i==="dark"||i==="light")&&e(i)},s=r=>{if(r.key===Ns){const i=r.newValue;e(i==="dark"||i==="light"?i:Hs())}},n=window.matchMedia("(prefers-color-scheme: dark)"),l=r=>{localStorage.getItem(Ns)||e(r.matches?"dark":"light")};return window.addEventListener(Dn,t),window.addEventListener("storage",s),n.addEventListener("change",l),()=>{window.removeEventListener(Dn,t),window.removeEventListener("storage",s),n.removeEventListener("change",l)}}function Ea(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 Ie(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function Er(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(Er(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(Er(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 jn(e){return e>xa?"very-slow":e>_a?"slow":"normal"}function rs(e,t=100){if(e===null)return"null";if(e===void 0)return"-";if(typeof e=="string")return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"';if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const n="["+e.slice(0,3).map(l=>rs(l,30)).join(", ")+(e.length>3?", ..."+e.length+" items":"")+"]";return n.length>t?"["+e.length+" items]":n}if(typeof e=="object"){const s=Object.keys(e);if(s.length===0)return"{}";const n=[];for(let r=0;r<Math.min(s.length,4);r++)n.push(s[r]+": "+rs(e[s[r]],30));const l="{ "+n.join(", ")+(s.length>4?", ...+"+(s.length-4):"")+" }";return l.length>t?"{ "+s.slice(0,6).join(", ")+(s.length>6?", ...":"")+" }":l}return String(e)}function Pr(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 Pa(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Ar="/admin/api/debug",Mr={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 Aa(e){return{tracing:e.features?.tracing??!1,process:e.features?.process??!1,system:e.features?.system??!1,http:e.features?.http??!1,db:e.features?.db??!1,redis:e.features?.redis??!1,queues:e.features?.queues??!1,cache:e.features?.cache??!1,app:e.features?.app??!1,log:e.features?.log??!1,emails:e.features?.emails??!1,dashboard:e.features?.dashboard??!1,customPanes:e.customPanes??[]}}async function Ma(e,t=Ar){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function La(e){const{baseUrl:t="",debugEndpoint:s=Ar,authToken:n}=e,l=new In({baseUrl:t,authToken:n});try{const r=await Ma(l,s);return Aa(r)}catch{return Mr}}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"/>']}},Oa="ss-col-resize",Lr="ss-resizing";function Ra(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let n=!1;function l(){if(!n){n=!0;for(const r of t)r.style.width=r.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const r of t){let i=function(u){u.preventDefault(),u.stopPropagation(),l();const p=u.clientX,f=r.offsetWidth;a.classList.add(Lr),a.setPointerCapture(u.pointerId);function x(g){const $=g.clientX-p,_=Math.max(30,f+$);r.style.width=_+"px"}function y(){a.classList.remove(Lr),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",y)}a.addEventListener("pointermove",x),a.addEventListener("pointerup",y)};if(!r.textContent?.trim())continue;const a=document.createElement("div");a.className=Oa,r.appendChild(a),a.addEventListener("pointerdown",i),s.push(()=>{a.removeEventListener("pointerdown",i),a.remove()})}return()=>{for(const r of s)r()}}const Ia=["all","error","warn","info","debug"];function os(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function Fn(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 Or(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 Da(e,t){return t==="all"?e:e.filter(s=>{const n=os(s);return t==="error"?n==="error"||n==="fatal":n===t})}const Rr=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){let s=null;if(typeof e.data=="string")try{s=JSON.parse(e.data)}catch{}else typeof e.data=="object"&&!Array.isArray(e.data)&&(s=e.data);if(s){const n={};for(const[l,r]of Object.entries(s))Rr.has(l)||(n[l]=r);if(Object.keys(n).length>0)return n}}const t={};for(const[s,n]of Object.entries(e))Rr.has(s)||(t[s]=n);return Object.keys(t).length>0?t:null}function ja(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 Fa(e){const t={};for(const s of e)t[s.sql]=(t[s.sql]||0)+1;return t}function Ba(e,t){const s=e.filter(r=>r.duration>100).length,n=Object.values(t).filter(r=>r>1).length,l=e.length>0?e.reduce((r,i)=>r+i.duration,0)/e.length:0;return{slowCount:s,dupCount:n,avgDuration:l,totalCount:e.length}}const Na=["all","active","waiting","delayed","completed","failed"];function Ha(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 Ua=["password","secret","token","key","credential","auth"];function Ka(e){const t=e.toLowerCase();return Ua.some(s=>t.includes(s))}function Va(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 za={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function Wa(e){return za[e]||e}const qa={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function Ja(e){return qa[e]||e}function Ga(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function Qa(e,t){return t.mode?`Mode: ${t.mode}`:e==="edgePlugin"&&t.active?"@serverStats() tag registered":e==="cacheInspector"?t.available?"Redis dependency detected":"Redis not installed":e==="queueInspector"?t.available?"Queue dependency detected":"@rlanz/bull-queue not installed":"-"}function Ya(e){return Object.entries(e).map(([t,s])=>({key:t,value:Va(s),secret:Ka(t)}))}function Xa(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const Za=["healthy","active","connected","available","ready"],eu=["errored","unavailable"];function tu(e){return Za.includes(e)?"ok":eu.includes(e)?"err":""}function su(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function nu(e,t,s){return!s||e.toLowerCase().includes(s)?!0:(su(t)?t.display:t==null?"":String(t)).toLowerCase().includes(s)}const lu=new Set(["secret","key","token","password","pass","pwd","auth","credential","credentials","apikey","private","encryption"]);function ru(e){const t=e.split(/[._-]/),s=[];for(const n of t){const l=n.split(new RegExp("(?<=[a-z])(?=[A-Z])"));for(const r of l)r&&s.push(r)}return s}function ou(e){return ru(e).some(s=>lu.has(s.toLowerCase()))}function iu(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:n}=e,l=z({...Mr}),r=z(!0);return Ct(async()=>{l.value=await La({baseUrl:t,debugEndpoint:s,authToken:n}),r.value=!1}),{features:l,loading:r}}function Ir(){const e=z(Hs());let t=null;function s(l){e.value=l}function n(){const l=Ta();return e.value=l,l}return Ct(()=>{e.value=Hs(),t=Sa(s)}),Ps(()=>{t?.()}),{theme:e,toggleTheme:n}}const au=["title","aria-label"],uu=["viewBox","innerHTML"],cu=["viewBox","innerHTML"],du=xe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:n}=Ir(),l=Y(()=>s.value==="dark"),r=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:H(i.value),title:r.value,"aria-label":r.value,onClick:u[0]||(u[0]=(...p)=>T(n)&&T(n)(...p))},[l.value?(c(),d("svg",{key:0,width:"16",height:"16",viewBox:T(Ce).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce).sun.elements.join("")},null,8,uu)):(c(),d("svg",{key:1,width:"16",height:"16",viewBox:T(Ce).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce).moon.elements.join("")},null,8,cu))],10,au))}}),fu=["data-ss-theme"],hu={class:"ss-dbg-tabs"},pu={class:"ss-dbg-tabs-scroll"},gu=["onClick"],bu=["viewBox","innerHTML"],vu={class:"ss-dbg-tabs-right"},mu=["title"],yu=["href"],_u=["viewBox","innerHTML"],xu={class:"ss-dbg-content"},wu={key:0,class:"ss-dbg-empty"},ku={key:1,class:"ss-dbg-empty",style:{color:"var(--ss-red-fg)"}},$u=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=Fe(()=>Promise.resolve().then(()=>Ru)),n=Fe(()=>Promise.resolve().then(()=>Vu)),l=Fe(()=>Promise.resolve().then(()=>cc)),r=Fe(()=>Promise.resolve().then(()=>mc)),i=Fe(()=>Promise.resolve().then(()=>Rc)),a=Fe(()=>Promise.resolve().then(()=>wd)),u=Fe(()=>Promise.resolve().then(()=>Wd)),p=Fe(()=>Promise.resolve().then(()=>gf)),f=Fe(()=>Promise.resolve().then(()=>Yf)),x=Fe(()=>Promise.resolve().then(()=>Rh)),y=Fe(()=>Promise.resolve().then(()=>Kh)),g=e,$=z(g.defaultOpen),_=z("queries"),{theme:K}=Ir(),{features:S}=iu({baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,authToken:g.authToken}),b=g.dashboardPath?g.dashboardPath.replace(/\/+$/,"")+"/api":void 0,k=Y(()=>_.value.startsWith("custom-")),O=Y(()=>k.value||_.value==="internals"),{data:w,loading:B,error:N,isUnauthorized:U,startRefresh:ee,stopRefresh:Q}=$a(()=>_.value,{baseUrl:g.baseUrl,debugEndpoint:g.debugEndpoint,dashboardEndpoint:b,authToken:g.authToken}),ne=Y(()=>{const Z=[{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"}];(S.value.tracing||g.tracingEnabled)&&Z.push({id:"timeline",label:"Requests",icon:"R"}),S.value.cache&&Z.push({id:"cache",label:"Cache",icon:"C"}),S.value.queues&&Z.push({id:"jobs",label:"Jobs",icon:"J"}),Z.push({id:"config",label:"Config",icon:"G"}),Z.push({id:"internals",label:"Internals",icon:"I"});for(const le of S.value.customPanes)Z.push({id:`custom-${le.id}`,label:le.label,icon:le.label.charAt(0).toUpperCase()});return Z});function F(Z){const le=Z.replace("custom-","");return S.value.customPanes.find(ye=>ye.id===le)}function ce(){$.value=!0,ee()}function ct(){$.value=!1,Q()}function Ks(){$.value?ct():ce()}function me(Z){_.value=Z}return ot($,Z=>{Z?ee():Q()}),t({toggle:Ks,open:ce,close:ct}),(Z,le)=>T(U)?oe("",!0):(c(),d("div",{key:0,class:H(["ss-dbg-panel",{"ss-dbg-open":$.value}]),"data-ss-theme":T(K)},[o("div",hu,[o("div",pu,[(c(!0),d(L,null,X(ne.value,ye=>(c(),d("button",{key:ye.id,type:"button",class:H(["ss-dbg-tab",{"ss-dbg-active":_.value===ye.id}]),onClick:is=>me(ye.id)},[T(Ce)[ye.id]?(c(),d("svg",{key:0,class:"ss-dbg-tab-icon",viewBox:T(Ce)[ye.id].viewBox,innerHTML:T(Ce)[ye.id].elements.join("")},null,8,bu)):oe("",!0),se(" "+m(ye.label),1)],10,gu))),128))]),o("div",vu,[o("span",{class:H(["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&&T(S).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:T(Ce)["external-link"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:T(Ce)["external-link"].elements.join("")},null,8,_u))],8,yu)):oe("",!0),pe(du),o("button",{type:"button",class:"ss-dbg-close",onClick:ct,title:"Close panel"}," × ")])]),o("div",xu,[T(B)&&!T(w)&&!O.value?(c(),d("div",wu,"Loading...")):T(N)&&!O.value?(c(),d("div",ku," Error: "+m(T(N).message),1)):(c(),d(L,{key:2},[_.value==="queries"?(c(),Re(T(s),{key:0,data:T(w),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="events"?(c(),Re(T(n),{key:1,data:T(w),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="emails"?(c(),Re(T(l),{key:2,data:T(w),"dashboard-path":e.dashboardPath,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","dashboard-path","debug-endpoint","auth-token"])):_.value==="routes"?(c(),Re(T(r),{key:3,data:T(w)},null,8,["data"])):_.value==="logs"?(c(),Re(T(i),{key:4,data:T(w),"dashboard-path":e.dashboardPath},null,8,["data","dashboard-path"])):_.value==="timeline"?(c(),Re(T(a),{key:5,data:T(w),"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"])):_.value==="cache"?(c(),Re(T(u),{key:6,data:T(w)},null,8,["data"])):_.value==="jobs"?(c(),Re(T(p),{key:7,data:T(w)},null,8,["data"])):_.value==="config"?(c(),Re(T(f),{key:8,data:T(w)},null,8,["data"])):_.value==="internals"?(c(),Re(T(x),{key:9,data:T(w),"base-url":e.baseUrl,"debug-endpoint":e.debugEndpoint,"auth-token":e.authToken},null,8,["data","base-url","debug-endpoint","auth-token"])):_.value.startsWith("custom-")?(c(),Re(T(y),{key:10,pane:F(_.value),"base-url":e.baseUrl,"auth-token":e.authToken},null,8,["pane","base-url","auth-token"])):oe("",!0)],64))])],10,fu))}});let St=null;window.__ssDebugPanel={mount(e,t,s){St&&St.unmount(),St=ga({setup(){return()=>Ui($u,{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=Ra(t.value))})}return e&&ot(e,n),Ct(n),Es(()=>{s&&s(),s=null}),{tableRef:t}}const Cu={class:"ss-dbg-search-bar"},Tu={class:"ss-dbg-summary"},Su={key:0,class:"ss-dbg-empty"},Eu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Pu=["onClick","onKeydown"],Au={key:0,class:"ss-dbg-dup"},Mu={key:1,class:"ss-dbg-dup"},Lu={class:"ss-dbg-c-muted"},Ou=["title"],Ru=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"QueriesTab",props:{data:{},dashboardPath:{}},setup(e){const t=e,s=z(""),n=new Set,l=Y(()=>{if(!t.data)return[];const g=t.data;return(Array.isArray(g)?g:g.queries)||[]}),r=Y(()=>ja(l.value,s.value)),i=Y(()=>Fa(l.value)),a=Y(()=>Ba(l.value,i.value)),u=Y(()=>{let g=`${r.value.length} queries`;return a.value.slowCount>0&&(g+=` | ${a.value.slowCount} slow`),a.value.dupCount>0&&(g+=` | ${a.value.dupCount} dup`),r.value.length>0&&(g+=` | avg ${Ie(a.value.avgDuration)}`),g});function p(g){n.has(g)?n.delete(g):n.add(g)}function f(g){return n.has(g)}function x(g){const $=jn(g);return $==="very-slow"?"ss-dbg-very-slow":$==="slow"?"ss-dbg-slow":""}const{tableRef:y}=_t(()=>r.value);return(g,$)=>(c(),d("div",null,[o("div",Cu,[qe(o("input",{"onUpdate:modelValue":$[0]||($[0]=_=>s.value=_),class:"ss-dbg-search",placeholder:"Filter queries...",type:"text"},null,512),[[Qe,s.value]]),o("span",Tu,m(u.value),1)]),r.value.length===0?(c(),d("div",Su,"No queries captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:y,class:"ss-dbg-table"},[$[1]||($[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"SQL"),o("th",null,"Duration"),o("th",null,"Method"),o("th",null,"Model"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(r.value,_=>(c(),d("tr",{key:_.id},[o("td",Eu,m(_.id),1),o("td",null,[o("span",{class:H(["ss-dbg-sql",{"ss-dbg-expanded":f(_.id)}]),role:"button",tabindex:"0",onClick:K=>p(_.id),onKeydown:$r(K=>p(_.id),["enter"])},m(_.sql),43,Pu),i.value[_.sql]>1?(c(),d("span",Au," x"+m(i.value[_.sql]),1)):oe("",!0),_.inTransaction?(c(),d("span",Mu," TXN")):oe("",!0)]),o("td",{class:H(["ss-dbg-duration",x(_.duration)])},m(T(Ie)(_.duration)),3),o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${_.method.toLowerCase()}`)},m(_.method),3)]),o("td",Lu,m(_.model||"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(_.timestamp)},m(T(Be)(_.timestamp)),9,Ou)]))),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 rs(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return rs(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 r(){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:H(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(c(),d("div",{key:1,class:H(`${t.classPrefix}-data-cell`)},[s.value?oe("",!0):(c(),d("span",{key:0,class:H(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:r,onKeydown:u[0]||(u[0]=p=>p.key==="Enter"&&r())},m(n.value),35)),s.value?(c(),d("div",{key:1,class:H(`${t.classPrefix}-data-full`),onClick:r},[o("button",{class:H(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:Nt(i,["stop"])}," Copy ",2),o("pre",null,m(l.value),1)],2)):oe("",!0)],2))}}),Iu={class:"ss-dbg-search-bar"},Du={class:"ss-dbg-summary"},ju={key:0,class:"ss-dbg-empty"},Fu={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},Bu={class:"ss-dbg-event-name"},Nu=["href"],Hu=["viewBox","innerHTML"],Uu={class:"ss-dbg-event-data"},Ku=["title"],Vu=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:r}=_t(()=>n.value);return(i,a)=>(c(),d("div",null,[o("div",Iu,[qe(o("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]]),o("span",Du,m(l.value),1)]),n.value.length===0?(c(),d("div",ju,"No events captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:r,class:"ss-dbg-table"},[a[1]||(a[1]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Event"),o("th",null,"Data"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(n.value,u=>(c(),d("tr",{key:u.id},[o("td",Fu,m(u.id),1),o("td",Bu,[se(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:T(Ce)["open-external"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Hu))],8,Nu)):oe("",!0)]),o("td",Uu,[pe(Us,{value:u.data,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",{class:"ss-dbg-event-time",title:T(mt)(u.timestamp)},m(T(Be)(u.timestamp)),9,Ku)]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),zu={style:{position:"relative",height:"100%"}},Wu={key:0,class:"ss-dbg-email-preview"},qu={class:"ss-dbg-email-preview-header"},Ju={class:"ss-dbg-email-preview-meta"},Gu={key:0},Qu={key:0,class:"ss-dbg-empty"},Yu=["srcdoc"],Xu={key:2,class:"ss-dbg-empty"},Zu={class:"ss-dbg-search-bar"},ec={class:"ss-dbg-summary"},tc={key:0,class:"ss-dbg-empty"},sc=["onClick"],nc={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},lc=["title"],rc=["title"],oc={class:"ss-dbg-c-sql"},ic={class:"ss-dbg-c-muted"},ac={class:"ss-dbg-c-dim",style:{"text-align":"center"}},uc=["title"],cc=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),r=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(_=>_.subject.toLowerCase().includes($)||_.from.toLowerCase().includes($)||_.to.toLowerCase().includes($)||_.mailer&&_.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){r.value=!0;try{const g=t.debugEndpoint||"/admin/api/debug",$={};t.authToken&&($.Authorization=`Bearer ${t.authToken}`);const _=await fetch(`${g}/emails/${y.id}/preview`,{headers:$,credentials:t.authToken?"omit":"include"});_.ok&&(l.value=await _.text())}catch{}finally{r.value=!1}}}function f(){n.value=null,l.value=null,r.value=!1}const{tableRef:x}=_t(()=>i.value);return(y,g)=>(c(),d("div",zu,[n.value?(c(),d("div",Wu,[o("div",qu,[o("div",Ju,[o("div",null,[g[1]||(g[1]=o("strong",null,"From:",-1)),se(" "+m(n.value.from),1)]),o("div",null,[g[2]||(g[2]=o("strong",null,"To:",-1)),se(" "+m(n.value.to),1)]),n.value.cc?(c(),d("div",Gu,[g[3]||(g[3]=o("strong",null,"CC:",-1)),se(" "+m(n.value.cc),1)])):oe("",!0),o("div",null,[g[4]||(g[4]=o("strong",null,"Subject:",-1)),se(" "+m(n.value.subject),1)]),o("div",null,[g[5]||(g[5]=o("strong",null,"Status:",-1)),o("span",{class:H(["ss-dbg-email-status",u(n.value.status)])},m(n.value.status),3)])]),o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:f},"×")]),r.value?(c(),d("div",Qu,"Loading preview...")):l.value?(c(),d("iframe",{key:1,class:"ss-dbg-email-iframe",srcdoc:l.value},null,8,Yu)):(c(),d("div",Xu,"No HTML content"))])):oe("",!0),n.value?oe("",!0):(c(),d(L,{key:1},[o("div",Zu,[qe(o("input",{"onUpdate:modelValue":g[0]||(g[0]=$=>s.value=$),class:"ss-dbg-search",placeholder:"Filter emails...",type:"text"},null,512),[[Qe,s.value]]),o("span",ec,m(a.value),1)]),i.value.length===0?(c(),d("div",tc,"No emails captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:x,class:"ss-dbg-table"},[g[6]||(g[6]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"From"),o("th",null,"To"),o("th",null,"Subject"),o("th",null,"Status"),o("th",null,"Mailer"),o("th",{title:"Attachments"},"📎"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(i.value,$=>(c(),d("tr",{key:$.id,class:"ss-dbg-email-row",onClick:_=>p($)},[o("td",nc,m($.id),1),o("td",{class:"ss-dbg-c-secondary",title:$.from},m($.from),9,lc),o("td",{class:"ss-dbg-c-secondary",title:$.to},m($.to),9,rc),o("td",oc,m($.subject),1),o("td",null,[o("span",{class:H(["ss-dbg-email-status",u($.status)])},m($.status),3)]),o("td",ic,m($.mailer),1),o("td",ac,m($.attachmentCount>0?$.attachmentCount:"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)($.timestamp)},m(T(Be)($.timestamp)),9,uc)],8,sc))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),dc={class:"ss-dbg-search-bar"},fc={class:"ss-dbg-summary"},hc={key:0,class:"ss-dbg-empty"},pc={class:"ss-dbg-c-text"},gc={class:"ss-dbg-c-muted"},bc={class:"ss-dbg-c-sql"},vc={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 r(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,[o("div",dc,[qe(o("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]]),o("span",fc,m(l.value),1)]),n.value.length===0?(c(),d("div",hc,"No routes found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:i,class:"ss-dbg-table"},[u[1]||(u[1]=o("thead",null,[o("tr",null,[o("th",null,"Method"),o("th",null,"Pattern"),o("th",null,"Name"),o("th",null,"Handler"),o("th",null,"Middleware")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(n.value,(p,f)=>(c(),d("tr",{key:f,class:H({"ss-dbg-current-route":r(p)})},[o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${p.method.toLowerCase()}`)},m(p.method),3)]),o("td",pc,m(p.pattern),1),o("td",gc,m(p.name||"-"),1),o("td",bc,m(p.handler),1),o("td",vc,m(p.middleware.length>0?p.middleware.join(", "):"-"),1)],2))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),yc={class:"ss-dbg-log-filters"},_c=["onClick"],xc={class:"ss-dbg-summary",style:{"margin-left":"auto"}},wc={class:"ss-dbg-search-bar"},kc={class:"ss-dbg-summary"},$c={key:0,class:"ss-dbg-empty"},Cc=["onClick"],Tc=["title"],Sc=["title","onClick","onKeydown"],Ec={key:1,class:"ss-dbg-log-reqid-empty"},Pc={key:3,style:{width:"14px"}},Ac={class:"ss-dbg-log-msg"},Mc=["href"],Lc=["viewBox","innerHTML"],Oc={key:0,class:"ss-dbg-log-detail"},Rc=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"),r=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=Da(g,l.value),i.value.trim()){const $=i.value.trim().toLowerCase();g=g.filter(_=>{const K=Ne(_);return K&&K.toLowerCase().includes($)})}if(r.value.trim()){const $=r.value.trim().toLowerCase();g=g.filter(_=>Fn(_).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 x(y){i.value=y,n("filterByRequestId",y)}return(y,g)=>(c(),d("div",null,[o("div",yc,[(c(!0),d(L,null,X(T(Ia),$=>(c(),d("button",{key:$,type:"button",class:H(["ss-dbg-log-filter",{"ss-dbg-active":l.value===$}]),onClick:_=>l.value=$},m($),11,_c))),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)):oe("",!0),o("span",xc,m(u.value.length)+" entries",1)]),o("div",wc,[qe(o("input",{"onUpdate:modelValue":g[1]||(g[1]=$=>r.value=$),class:"ss-dbg-search",placeholder:"Filter log messages...",type:"text"},null,512),[[Qe,r.value]]),qe(o("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]]),o("span",kc,m(p.value),1)]),u.value.length===0?(c(),d("div",$c,"No log entries")):(c(!0),d(L,{key:1},X(u.value,($,_)=>(c(),d(L,{key:String($.id||_)},[o("div",{class:H(["ss-dbg-log-entry",{"ss-dbg-log-entry-expandable":!!T(Ye)($)}]),onClick:K=>f(_,!!T(Ye)($))},[o("span",{class:H(["ss-dbg-log-level",T(Or)(T(os)($))])},m(T(os)($).toUpperCase()),3),o("span",{class:"ss-dbg-log-time",title:T(yt)($)?T(mt)(T(yt)($)):""},m(T(yt)($)?T(Be)(T(yt)($)):"-"),9,Tc),T(Ne)($)?(c(),d("span",{key:0,class:"ss-dbg-log-reqid",role:"button",tabindex:"0",title:T(Ne)($),onClick:Nt(K=>x(T(Ne)($)),["stop"]),onKeydown:$r(Nt(K=>x(T(Ne)($)),["stop"]),["enter"])},m(T(Ne)($).slice(0,8)),41,Sc)):(c(),d("span",Ec,"-")),T(Ye)($)?(c(),d("span",{key:2,class:H(["ss-dbg-log-expand-icon",{"ss-dbg-log-expand-icon-open":a.value===_}])},"▶",2)):(c(),d("span",Pc)),o("span",Ac,m(T(Fn)($)),1),e.dashboardPath&&T(Ne)($)?(c(),d("a",{key:4,href:`${e.dashboardPath}#logs?requestId=${T(Ne)($)}`,target:"_blank",class:"ss-dbg-deeplink",onClick:g[3]||(g[3]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:T(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,Lc))],8,Mc)):oe("",!0)],10,Cc),a.value===_&&T(Ye)($)?(c(),d("div",Oc,[pe(Us,{value:T(Ye)($),"class-prefix":"ss-dbg","default-expanded":""},null,8,["value"])])):oe("",!0)],64))),128))]))}})},Symbol.toStringTag,{value:"Module"}));function Bn(e="",t){let s=null;return function(){return s||(s=new In({baseUrl:e,authToken:t})),s}}function Ic(e){const{container:t,handle:s,topPane:n,bottomPane:l,storageKey:r,minHeight:i=60}=e;if(r){const u=localStorage.getItem(r);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,x=u.clientY,y=n.getBoundingClientRect().height;function g(_){const K=_.clientY-x;let S=y+K;const b=f-i-s.offsetHeight;S=Math.max(i,Math.min(S,b));const k=S/(f-s.offsetHeight);n.style.flex=`${k}`,l.style.flex=`${1-k}`}function $(){if(s.removeEventListener("pointermove",g),s.removeEventListener("pointerup",$),r){const _=t.getBoundingClientRect().height-s.offsetHeight;if(_>0){const K=n.getBoundingClientRect().height/_;localStorage.setItem(r,String(K))}}}s.addEventListener("pointermove",g),s.addEventListener("pointerup",$)}return s.addEventListener("pointerdown",a),()=>{s.removeEventListener("pointerdown",a)}}const Dc={key:0},jc={style:{overflow:"auto"}},Fc=["onClick"],Bc=["title"],Nc=["title"],Hc={key:3,style:{width:"14px"}},Uc=xe({__name:"RelatedLogs",props:{logs:{},classPrefix:{default:"ss-dash"}},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",Dc,[o("div",{class:H(`${e.classPrefix}-related-logs-title`)},[l[0]||(l[0]=se(" Related Logs ",-1)),o("span",{class:H(`${e.classPrefix}-related-logs-count`)},"("+m(e.logs.length)+")",3)],2),o("div",jc,[(c(!0),d(L,null,X(e.logs,(r,i)=>(c(),d(L,{key:r.id||i},[o("div",{class:H([`${e.classPrefix}-log-entry`,T(Ye)(r)?`${e.classPrefix}-log-entry-expandable`:""]),onClick:a=>s(i,!!T(Ye)(r))},[o("span",{class:H([`${e.classPrefix}-log-level`,T(Or)(T(os)(r),`${e.classPrefix}-log-level`)])},m(T(os)(r).toUpperCase()),3),o("span",{class:H(`${e.classPrefix}-log-time`),title:T(yt)(r)?T(mt)(T(yt)(r)):""},m(T(yt)(r)?T(Be)(T(yt)(r)):"-"),11,Bc),T(Ne)(r)?(c(),d("span",{key:0,class:H(`${e.classPrefix}-log-reqid`),title:T(Ne)(r)},m(T(Ne)(r).slice(0,8)),11,Nc)):(c(),d("span",{key:1,class:H(`${e.classPrefix}-log-reqid-empty`)},"--",2)),T(Ye)(r)?(c(),d("span",{key:2,class:H([`${e.classPrefix}-log-expand-icon`,t.value===i?`${e.classPrefix}-log-expand-icon-open`:""])},"▶",2)):(c(),d("span",Hc)),o("span",{class:H(`${e.classPrefix}-log-msg`)},m(T(Fn)(r)),3)],10,Fc),t.value===i&&T(Ye)(r)?(c(),d("div",{key:0,class:H(`${e.classPrefix}-log-detail`)},[pe(Us,{value:T(Ye)(r),"class-prefix":e.classPrefix,"default-expanded":!0},null,8,["value","class-prefix"])],2)):oe("",!0)],64))),128))])])):oe("",!0)}}),Kc={key:0,class:"ss-dbg-empty"},Vc={class:"ss-dbg-empty"},zc={key:2,class:"ss-dbg-tl-detail-wrapper"},Wc={class:"ss-dbg-tl-detail-header"},qc={class:"ss-dbg-tl-detail-url"},Jc={class:"ss-dbg-tl-meta"},Gc={class:"ss-dbg-tl-legend"},Qc={id:"ss-dbg-tl-waterfall"},Yc={key:0,class:"ss-dbg-empty"},Xc=["title"],Zc={class:"ss-dbg-tl-track"},ed=["title"],td={class:"ss-dbg-tl-dur"},sd={key:0,class:"ss-dbg-tl-warnings"},nd={class:"ss-dbg-tl-legend"},ld={id:"ss-dbg-tl-waterfall"},rd={key:0,class:"ss-dbg-empty"},od=["title"],id={class:"ss-dbg-tl-track"},ad=["title"],ud={class:"ss-dbg-tl-dur"},cd={key:0,class:"ss-dbg-tl-warnings"},dd={key:3,class:"ss-dbg-empty"},fd={class:"ss-dbg-search-bar"},hd={class:"ss-dbg-summary"},pd={key:0,class:"ss-dbg-empty"},gd=["onClick"],bd={class:"ss-dbg-c-dim",style:{"white-space":"nowrap"}},vd={class:"ss-dbg-c-text"},md=["href"],yd=["viewBox","innerHTML"],_d={class:"ss-dbg-c-muted",style:{"text-align":"center"}},xd=["title"],wd=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),r=z(!1),i=z(null),a=Bn(t.baseUrl||"",t.authToken),u=Y(()=>{const Q=t.data;if(!Q)return[];const ne=Array.isArray(Q)?Q:Q.traces||[];if(!s.value.trim())return ne;const F=s.value.toLowerCase();return ne.filter(ce=>ce.url.toLowerCase().includes(F)||ce.method.toLowerCase().includes(F)||String(ce.statusCode).includes(F))}),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 x(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,r.value=!0,i.value=null,l.value=null;const ne=t.debugEndpoint||"/admin/api/debug";try{const ce=await a().get(`${ne}/traces/${Q}`);l.value=ce}catch(F){if(F instanceof Error&&F.name==="AbortError")return;i.value=F instanceof Error?F.message:"Failed to load trace"}finally{r.value=!1}}const _=Y(()=>l.value?.spans||[]),K=Y(()=>l.value?.warnings||[]);function S(Q,ne){const F=ne||1,ce=F>0?Q.startOffset/F*100:0,ct=F>0?Math.max(Q.duration/F*100,.5):.5;return{left:`${ce}%`,width:`${ct}%`,background:p[Q.category]||p.custom}}const{tableRef:b}=_t(()=>u.value),k=z(null),O=z(null),w=z(null),B=z(null);let N=null;const U=Y(()=>l.value?l.value.logs||[]:[]);ot([n,l],async()=>{N?.(),N=null,l.value&&U.value.length>0&&(await gn(),k.value&&O.value&&w.value&&B.value&&(N=Ic({container:k.value,handle:O.value,topPane:w.value,bottomPane:B.value,storageKey:"ss-dbg-timeline-split"})))}),Es(()=>{g&&g.abort(),N?.()});function ee(Q){const ne=jn(Q);return ne==="very-slow"?"ss-dbg-very-slow":ne==="slow"?"ss-dbg-slow":""}return(Q,ne)=>(c(),d("div",null,[n.value!==null?(c(),d(L,{key:0},[r.value?(c(),d("div",Kc,"Loading trace detail...")):i.value?(c(),d(L,{key:1},[o("div",{class:"ss-dbg-tl-detail-header"},[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back")]),o("div",Vc,"Error: "+m(i.value),1)],64)):l.value?(c(),d("div",zc,[o("div",Wc,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:y},"← Back"),o("span",{class:H(`ss-dbg-method ss-dbg-method-${l.value.method.toLowerCase()}`)},m(l.value.method),3),o("span",qc,m(l.value.url),1),o("span",{class:H(`ss-dbg-status ss-dbg-status-${Math.floor(l.value.statusCode/100)}xx`)},m(l.value.statusCode),3),o("span",Jc,m(T(Ie)(l.value.totalDuration))+" · "+m(l.value.spanCount)+" spans ",1)]),U.value.length>0?(c(),d("div",{key:0,ref_key:"splitContainerRef",ref:k,class:"ss-dbg-split-container"},[o("div",{ref_key:"splitTopRef",ref:w,class:"ss-dbg-split-top"},[o("div",Gc,[(c(),d(L,null,X(p,(F,ce)=>o("span",{key:ce,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:F})},null,4),se(" "+m(f[ce]||ce),1)])),64))]),o("div",Qc,[_.value.length===0?(c(),d("div",Yc," No spans captured for this request ")):oe("",!0),(c(!0),d(L,null,X(_.value,F=>(c(),d("div",{key:F.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:F.label},m(F.label),9,Xc),o("span",Zc,[o("span",{class:H(`ss-dbg-tl-bar ss-dbg-tl-bar-${F.category}`),style:pt(S(F,l.value.totalDuration)),title:`${F.label}: ${T(Ie)(F.duration)}`},null,14,ed)]),o("span",td,m(T(Ie)(F.duration)),1)]))),128))]),K.value.length>0?(c(),d("div",sd,[ne[2]||(ne[2]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(K.value,(F,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(F),1))),128))])):oe("",!0)],512),o("div",{ref_key:"splitHandleRef",ref:O,class:"ss-dbg-split-handle"},null,512),o("div",{ref_key:"splitBottomRef",ref:B,class:"ss-dbg-split-bottom"},[pe(Uc,{logs:U.value,"class-prefix":"ss-dbg"},null,8,["logs"])],512)],512)):(c(),d(L,{key:1},[o("div",nd,[(c(),d(L,null,X(p,(F,ce)=>o("span",{key:ce,class:"ss-dbg-tl-legend-item"},[o("span",{class:"ss-dbg-tl-legend-dot",style:pt({background:F})},null,4),se(" "+m(f[ce]||ce),1)])),64))]),o("div",ld,[_.value.length===0?(c(),d("div",rd," No spans captured for this request ")):oe("",!0),(c(!0),d(L,null,X(_.value,F=>(c(),d("div",{key:F.id,class:"ss-dbg-tl-row"},[o("span",{class:"ss-dbg-tl-label",title:F.label},m(F.label),9,od),o("span",id,[o("span",{class:H(`ss-dbg-tl-bar ss-dbg-tl-bar-${F.category}`),style:pt(S(F,l.value.totalDuration)),title:`${F.label}: ${T(Ie)(F.duration)}`},null,14,ad)]),o("span",ud,m(T(Ie)(F.duration)),1)]))),128))]),K.value.length>0?(c(),d("div",cd,[ne[3]||(ne[3]=o("div",{class:"ss-dbg-tl-warnings-title"},"Warnings",-1)),(c(!0),d(L,null,X(K.value,(F,ce)=>(c(),d("div",{key:ce,class:"ss-dbg-tl-warning"},m(F),1))),128))])):oe("",!0)],64))])):(c(),d("div",dd,"Loading trace detail..."))],64)):(c(),d(L,{key:1},[o("div",fd,[qe(o("input",{"onUpdate:modelValue":ne[0]||(ne[0]=F=>s.value=F),class:"ss-dbg-search",placeholder:"Filter traces...",type:"text"},null,512),[[Qe,s.value]]),o("span",hd,m(u.value.length)+" traces",1)]),u.value.length===0?(c(),d("div",pd,"No traces captured")):(c(),d("table",{key:1,ref_key:"tableRef",ref:b,class:"ss-dbg-table"},[ne[4]||(ne[4]=o("thead",null,[o("tr",null,[o("th",null,"#"),o("th",null,"Method"),o("th",null,"URL"),o("th",null,"Status"),o("th",null,"Duration"),o("th",null,"Spans"),o("th",null,"Time")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(u.value,F=>(c(),d("tr",{key:F.id,class:"ss-dbg-email-row",onClick:ce=>x(F)},[o("td",bd,m(F.id),1),o("td",null,[o("span",{class:H(`ss-dbg-method ss-dbg-method-${F.method.toLowerCase()}`)},m(F.method),3)]),o("td",vd,[se(m(F.url)+" ",1),e.dashboardPath?(c(),d("a",{key:0,href:`${e.dashboardPath}#requests?id=${F.id}`,target:"_blank",class:"ss-dbg-deeplink",onClick:ne[1]||(ne[1]=Nt(()=>{},["stop"]))},[(c(),d("svg",{viewBox:T(Ce)["open-external"].viewBox,width:"12",height:"12",fill:"none",stroke:"currentColor","stroke-width":"2",innerHTML:T(Ce)["open-external"].elements.join("")},null,8,yd))],8,md)):oe("",!0)]),o("td",null,[o("span",{class:H(`ss-dbg-status ss-dbg-status-${Math.floor(F.statusCode/100)}xx`)},m(F.statusCode),3)]),o("td",{class:H(["ss-dbg-duration",ee(F.totalDuration)])},m(T(Ie)(F.totalDuration)),3),o("td",_d,m(F.spanCount),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(F.timestamp)},m(T(Be)(F.timestamp)),9,xd)],8,gd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),kd={class:"ss-dbg-cache-stats"},$d={class:"ss-dbg-cache-stat"},Cd={class:"ss-dbg-cache-stat-value"},Td={class:"ss-dbg-cache-stat"},Sd={class:"ss-dbg-cache-stat-value"},Ed={class:"ss-dbg-cache-stat"},Pd={class:"ss-dbg-cache-stat-value"},Ad={class:"ss-dbg-cache-stat"},Md={class:"ss-dbg-cache-stat-value"},Ld={class:"ss-dbg-cache-stat"},Od={class:"ss-dbg-cache-stat-value"},Rd={class:"ss-dbg-search-bar"},Id={class:"ss-dbg-summary"},Dd={key:0,class:"ss-dbg-cache-detail"},jd={style:{"margin-top":"8px"}},Fd={class:"ss-dbg-c-muted",style:{"margin-left":"8px"}},Bd={key:0},Nd={key:0,class:"ss-dbg-empty"},Hd=["onClick"],Ud={class:"ss-dbg-c-sql"},Kd={class:"ss-dbg-c-muted"},Vd={class:"ss-dbg-c-dim"},zd={class:"ss-dbg-c-dim"},Wd=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||{}),r=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,[o("div",kd,[o("span",$d,[p[2]||(p[2]=o("span",{class:"ss-dbg-cache-stat-label"},"Hit Rate:",-1)),o("span",Cd,m((r.value.hitRate||0).toFixed(0))+"%",1)]),o("span",Td,[p[3]||(p[3]=o("span",{class:"ss-dbg-cache-stat-label"},"Hits:",-1)),o("span",Sd,m(r.value.totalHits||0),1)]),o("span",Ed,[p[4]||(p[4]=o("span",{class:"ss-dbg-cache-stat-label"},"Misses:",-1)),o("span",Pd,m(r.value.totalMisses||0),1)]),o("span",Ad,[p[5]||(p[5]=o("span",{class:"ss-dbg-cache-stat-label"},"Keys:",-1)),o("span",Md,m(r.value.keyCount||0),1)]),o("span",Ld,[p[6]||(p[6]=o("span",{class:"ss-dbg-cache-stat-label"},"Memory:",-1)),o("span",Od,m((r.value.memoryUsedMb||0).toFixed(1))+"MB",1)])]),o("div",Rd,[qe(o("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]]),o("span",Id,m(i.value.length)+" keys",1)]),n.value?(c(),d("div",Dd,[o("button",{type:"button",class:"ss-dbg-btn-clear",onClick:p[1]||(p[1]=f=>n.value=null)}," ← Back "),o("div",jd,[o("strong",null,m(n.value.key),1),o("span",Fd,m(n.value.type)+" · TTL: "+m(T(Pr)(n.value.ttl)),1)]),n.value.value!==void 0?(c(),d("pre",Bd,m(JSON.stringify(n.value.value,null,2)),1)):oe("",!0)])):(c(),d(L,{key:1},[i.value.length===0?(c(),d("div",Nd,"No cache keys found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:a,class:"ss-dbg-table"},[p[7]||(p[7]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Type"),o("th",null,"TTL"),o("th",null,"Size")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(i.value,f=>(c(),d("tr",{key:f.key,class:"ss-dbg-email-row",onClick:x=>n.value=f},[o("td",Ud,m(f.key),1),o("td",Kd,m(f.type),1),o("td",Vd,m(T(Pr)(f.ttl)),1),o("td",zd,m(T(Pa)(f.size)),1)],8,Hd))),128))])],512))],64))]))}})},Symbol.toStringTag,{value:"Module"})),qd={class:"ss-dbg-job-stats-area"},Jd={class:"ss-dbg-job-stats"},Gd={class:"ss-dbg-job-stat"},Qd={class:"ss-dbg-job-stat-value"},Yd={class:"ss-dbg-job-stat"},Xd={class:"ss-dbg-job-stat-value"},Zd={class:"ss-dbg-job-stat"},ef={class:"ss-dbg-job-stat-value"},tf={class:"ss-dbg-job-stat"},sf={class:"ss-dbg-job-stat-value"},nf={class:"ss-dbg-job-stat"},lf={class:"ss-dbg-job-stat-value ss-dbg-c-red"},rf={class:"ss-dbg-log-filters"},of=["onClick"],af={key:0,class:"ss-dbg-empty"},uf={class:"ss-dbg-c-dim"},cf={class:"ss-dbg-c-sql"},df={class:"ss-dbg-c-muted",style:{"text-align":"center"}},ff={class:"ss-dbg-duration"},hf=["title"],pf=["onClick"],gf=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"),r=Y(()=>s.data||{}),i=Y(()=>r.value.stats||r.value.overview||{}),a=Y(()=>{const f=r.value.jobs||[];return l.value==="all"?f:f.filter(x=>x.status===l.value)});function u(f){n("retryJob",f)}const{tableRef:p}=_t(()=>a.value);return(f,x)=>(c(),d("div",null,[o("div",qd,[o("div",Jd,[o("span",Gd,[x[0]||(x[0]=o("span",{class:"ss-dbg-job-stat-label"},"Active:",-1)),o("span",Qd,m(i.value.active??0),1)]),o("span",Yd,[x[1]||(x[1]=o("span",{class:"ss-dbg-job-stat-label"},"Waiting:",-1)),o("span",Xd,m(i.value.waiting??0),1)]),o("span",Zd,[x[2]||(x[2]=o("span",{class:"ss-dbg-job-stat-label"},"Delayed:",-1)),o("span",ef,m(i.value.delayed??0),1)]),o("span",tf,[x[3]||(x[3]=o("span",{class:"ss-dbg-job-stat-label"},"Completed:",-1)),o("span",sf,m(i.value.completed??0),1)]),o("span",nf,[x[4]||(x[4]=o("span",{class:"ss-dbg-job-stat-label"},"Failed:",-1)),o("span",lf,m(i.value.failed??0),1)])]),o("div",rf,[(c(!0),d(L,null,X(T(Na),y=>(c(),d("button",{key:y,class:H(["ss-dbg-job-filter",{"ss-dbg-active":l.value===y}]),onClick:g=>l.value=y},m(y),11,of))),128))])]),a.value.length===0?(c(),d("div",af,"No jobs found")):(c(),d("table",{key:1,ref_key:"tableRef",ref:p,class:"ss-dbg-table"},[x[5]||(x[5]=o("thead",null,[o("tr",null,[o("th",null,"ID"),o("th",null,"Name"),o("th",null,"Status"),o("th",null,"Payload"),o("th",null,"Tries"),o("th",null,"Duration"),o("th",null,"Time"),o("th")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(a.value,y=>(c(),d("tr",{key:y.id},[o("td",uf,m(y.id),1),o("td",cf,m(y.name),1),o("td",null,[o("span",{class:H(`ss-dbg-badge ${T(Ha)(y.status)}`)},m(y.status),3)]),o("td",null,[pe(Us,{value:y.payload||y.data,"max-len":60,"class-prefix":"ss-dbg"},null,8,["value"])]),o("td",df,m(y.attempts),1),o("td",ff,m(y.duration!==null?T(Ie)(y.duration):"-"),1),o("td",{class:"ss-dbg-event-time",title:T(mt)(y.timestamp||y.createdAt)},m(T(Be)(y.timestamp||y.createdAt)),9,hf),o("td",null,[y.status==="failed"?(c(),d("button",{key:0,class:"ss-dbg-retry-btn",onClick:g=>u(y.id)}," Retry ",8,pf)):oe("",!0)])]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"})),bf={key:0,class:"ss-dbg-empty"},vf={class:"ss-dbg-search-bar"},mf={class:"ss-dbg-config-search-wrap"},yf=["title"],_f={class:"ss-dbg-summary"},xf={key:0,class:"ss-dbg-empty"},wf={key:1,class:"ss-dbg-config-sections"},kf={key:0,class:"ss-dbg-config-section-header ss-dbg-config-leaf"},$f={class:"ss-dbg-config-key"},Cf={key:0,class:"ss-dbg-config-match"},Tf={key:0,class:"ss-dbg-config-redacted"},Sf={key:0,class:"ss-dbg-config-match"},Ef=["onClick"],Pf=["onClick"],Af={class:"ss-dbg-config-toggle"},Mf={class:"ss-dbg-config-key"},Lf={key:0,class:"ss-dbg-config-match"},Of={class:"ss-dbg-config-count"},Rf={key:0,class:"ss-dbg-config-table-wrap"},If={class:"ss-dbg-table"},Df={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},jf={key:0,class:"ss-dbg-config-match"},Ff={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Bf={key:0,class:"ss-dbg-redacted-wrap"},Nf={key:0,class:"ss-dbg-config-match"},Hf=["onClick"],Uf={key:0,class:"ss-dbg-empty"},Kf={key:1,class:"ss-dbg-config-table-wrap"},Vf={class:"ss-dbg-table"},zf={class:"ss-dbg-config-key",style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Wf={key:0,class:"ss-dbg-config-match"},qf={style:{"font-family":"'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace","font-size":"11px"}},Jf={key:0,class:"ss-dbg-redacted-wrap"},Gf={key:0,class:"ss-dbg-config-match"},Qf=["onClick"],Yf=Object.freeze(Object.defineProperty({__proto__:null,default:xe({__name:"ConfigTab",props:{data:{}},setup(e){const t=e,s=z("app"),n=z(""),l=z(""),r=z(!1),i=z(new Set),a=z(null);let u=null;ot(n,w=>{u&&clearTimeout(u),u=setTimeout(()=>{l.value=w.trim().toLowerCase()},200)});function p(w){return ou(w)}function f(w){if(w==null)return"null";if(typeof w=="boolean"||typeof w=="number")return String(w);if(typeof w=="string")return w;if(Array.isArray(w))return JSON.stringify(w);try{return JSON.stringify(w)}catch{return String(w)}}function x(w){return w==null?"ss-dbg-config-val-null":typeof w=="boolean"?w?"ss-dbg-config-val-true":"ss-dbg-config-val-false":typeof w=="number"?"ss-dbg-config-val-number":Array.isArray(w)?"ss-dbg-config-val-array":"ss-dbg-config-val"}function y(w,B){navigator.clipboard.writeText(w).then(()=>{a.value=B,setTimeout(()=>{a.value===B&&(a.value=null)},1500)})}function g(){const w=s.value==="app"?t.data?.app:t.data?.env;w&&y(JSON.stringify(w,null,2),"__all_json__")}function $(w,B){return nu(w,B,l.value)}function _(w){if(!l.value)return[{text:w,match:!1}];const B=l.value,N=w.toLowerCase(),U=[];let ee=0,Q=N.indexOf(B);for(;Q!==-1;)Q>ee&&U.push({text:w.slice(ee,Q),match:!1}),U.push({text:w.slice(Q,Q+B.length),match:!0}),ee=Q+B.length,Q=N.indexOf(B,ee);return ee<w.length&&U.push({text:w.slice(ee),match:!1}),U.length?U:[{text:w,match:!1}]}const K=Y(()=>{const w=t.data?.app;if(!w)return[];const B=[];for(const[N,U]of Object.entries(w))if(U!==null&&typeof U=="object"&&!Array.isArray(U)){const Q=Object.entries(U).filter(([ne,F])=>$(ne,F)).map(([ne,F])=>({key:ne,value:F,fullKey:`${N}.${ne}`}));(Q.length>0||!l.value)&&B.push({key:N,entries:Q,isFlat:!1})}else $(N,U)&&B.push({key:N,entries:[{key:N,value:U,fullKey:N}],isFlat:!0});return B}),S=Y(()=>{const w=t.data?.env;return w?Object.entries(w).filter(([B,N])=>$(B,N)).map(([B,N])=>({key:B,value:N})):[]});function b(w){i.value.has(w)?i.value.delete(w):i.value.add(w)}function k(){for(const w of K.value)w.isFlat||i.value.add(w.key)}function O(){i.value.clear()}return ot(l,w=>{if(w)for(const B of K.value)!B.isFlat&&B.entries.length>0&&i.value.add(B.key)}),(w,B)=>(c(),d("div",null,[e.data?(c(),d(L,{key:1},[o("div",vf,[o("button",{class:H(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="app"}]),onClick:B[0]||(B[0]=N=>s.value="app")}," App Config ",2),o("button",{class:H(["ss-dbg-config-tab",{"ss-dbg-active":s.value==="env"}]),onClick:B[1]||(B[1]=N=>s.value="env")}," Environment ",2),o("div",mf,[qe(o("input",{"onUpdate:modelValue":B[2]||(B[2]=N=>n.value=N),class:"ss-dbg-search",placeholder:"Search config...",type:"text"},null,512),[[Qe,n.value]])]),s.value==="app"&&!l.value?(c(),d(L,{key:0},[o("button",{class:"ss-dbg-btn-clear",onClick:k},"Expand All"),o("button",{class:"ss-dbg-btn-clear",onClick:O},"Collapse All")],64)):oe("",!0),o("button",{class:H(["ss-dbg-btn-clear",{"ss-dbg-active":r.value}]),onClick:B[3]||(B[3]=N=>r.value=!r.value),title:r.value?"Hide redacted values":"Show redacted values"},m(r.value?"Hide Secrets":"Show Secrets"),11,yf),o("button",{class:"ss-dbg-btn-clear",onClick:g,title:"Copy all as JSON"},m(a.value==="__all_json__"?"Copied!":"Copy JSON"),1),o("span",_f,[s.value==="app"?(c(),d(L,{key:0},[se(m(K.value.length)+" sections ",1)],64)):(c(),d(L,{key:1},[se(m(S.value.length)+" variables ",1)],64))])]),s.value==="app"?(c(),d(L,{key:0},[K.value.length===0?(c(),d("div",xf,m(l.value?"No matching config entries":"No app config data"),1)):(c(),d("div",wf,[(c(!0),d(L,null,X(K.value,N=>(c(),d("div",{key:N.key,class:"ss-dbg-config-section"},[N.isFlat?(c(),d("div",kf,[o("span",$f,[(c(!0),d(L,null,X(_(N.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Cf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),B[7]||(B[7]=o("span",{style:{margin:"0 4px",color:"var(--ss-dim)"}},"=",-1)),p(N.key)&&!r.value?(c(),d("span",Tf,[...B[6]||(B[6]=[o("span",{class:"ss-dbg-redacted-wrap"}," •••••••• ",-1)])])):(c(),d("span",{key:1,class:H(x(N.entries[0].value))},[(c(!0),d(L,null,X(_(f(N.entries[0].value)),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Sf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))],2)),o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===N.key}]),onClick:Nt(U=>y(f(N.entries[0].value),N.key),["stop"]),title:"Copy value"},m(a.value===N.key?"✓":"⎘"),11,Ef)])):(c(),d(L,{key:1},[o("div",{class:"ss-dbg-config-section-header",onClick:U=>b(N.key)},[o("span",Af,m(i.value.has(N.key)?"▼":"▶"),1),o("span",Mf,[(c(!0),d(L,null,X(_(N.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Lf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),o("span",Of,m(N.entries.length)+" keys",1)],8,Pf),i.value.has(N.key)?(c(),d("div",Rf,[o("table",If,[B[9]||(B[9]=o("thead",null,[o("tr",null,[o("th",null,"Key"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(c(!0),d(L,null,X(N.entries,U=>(c(),d("tr",{key:U.fullKey},[o("td",Df,[(c(!0),d(L,null,X(_(U.key),(ee,Q)=>(c(),d(L,{key:Q},[ee.match?(c(),d("span",jf,m(ee.text),1)):(c(),d(L,{key:1},[se(m(ee.text),1)],64))],64))),128))]),o("td",Ff,[p(U.key)&&!r.value?(c(),d("span",Bf,[B[8]||(B[8]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:B[4]||(B[4]=ee=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:H(x(U.value))},[(c(!0),d(L,null,X(_(f(U.value)),(ee,Q)=>(c(),d(L,{key:Q},[ee.match?(c(),d("span",Nf,m(ee.text),1)):(c(),d(L,{key:1},[se(m(ee.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===U.fullKey}]),onClick:ee=>y(f(U.value),U.fullKey),title:"Copy value"},m(a.value===U.fullKey?"✓":"⎘"),11,Hf)])]))),128))])])])):oe("",!0)],64))]))),128))]))],64)):(c(),d(L,{key:1},[S.value.length===0?(c(),d("div",Uf,m(l.value?"No matching environment variables":"No environment data"),1)):(c(),d("div",Kf,[o("table",Vf,[B[11]||(B[11]=o("thead",null,[o("tr",null,[o("th",null,"Variable"),o("th",null,"Value"),o("th",{style:{width:"40px"}})])],-1)),o("tbody",null,[(c(!0),d(L,null,X(S.value,N=>(c(),d("tr",{key:N.key},[o("td",zf,[(c(!0),d(L,null,X(_(N.key),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Wf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))]),o("td",qf,[p(N.key)&&!r.value?(c(),d("span",Jf,[B[10]||(B[10]=se(" •••••••• ",-1)),o("button",{class:"ss-dbg-redacted-reveal",onClick:B[5]||(B[5]=U=>r.value=!0),title:"Reveal all redacted values"}," reveal ")])):(c(),d("span",{key:1,class:H(x(N.value))},[(c(!0),d(L,null,X(_(f(N.value)),(U,ee)=>(c(),d(L,{key:ee},[U.match?(c(),d("span",Gf,m(U.text),1)):(c(),d(L,{key:1},[se(m(U.text),1)],64))],64))),128))],2))]),o("td",null,[o("button",{class:H(["ss-dbg-copy-row-btn",{"ss-dbg-copy-row-ok":a.value===`env-${N.key}`}]),onClick:U=>y(f(N.value),`env-${N.key}`),title:"Copy value"},m(a.value===`env-${N.key}`?"✓":"⎘"),11,Qf)])]))),128))])])]))],64))],64)):(c(),d("div",bf,"Loading config data..."))]))}})},Symbol.toStringTag,{value:"Module"})),Xf={key:0,class:"ss-dbg-empty"},Zf={key:1,class:"ss-dbg-empty"},eh={key:2,class:"ss-dbg-empty"},th={class:"ss-dbg-info-cards"},sh={class:"ss-dbg-info-card-label"},nh={class:"ss-dbg-info-card-value"},lh={key:0,class:"ss-dbg-empty"},rh={key:1,class:"ss-dbg-table"},oh={style:{"font-family":"monospace","font-size":"11px"}},ih={key:0,class:"ss-dbg-c-dim",style:{"margin-left":"6px","font-size":"11px"}},ah={class:"ss-dbg-c-red"},uh={class:"ss-dbg-c-dim",style:{"margin-left":"4px"}},ch={style:{"font-size":"11px"}},dh=["onClick"],fh=["onClick"],hh={key:2,class:"ss-dbg-empty"},ph={key:3,class:"ss-dbg-table"},gh={class:"ss-dbg-bar"},bh={class:"ss-dbg-bar-track"},vh={key:4,class:"ss-dbg-empty"},mh={key:5,class:"ss-dbg-table"},yh={class:"ss-dbg-c-dim"},_h={key:6,class:"ss-dbg-empty"},xh={key:7,class:"ss-dbg-table"},wh={class:"ss-dbg-c-dim"},kh={class:"ss-dbg-table"},$h={style:{"font-family":"monospace","font-size":"11px"}},Ch={key:0,class:"ss-dbg-table",style:{"margin-top":"8px"}},Th={style:{"font-family":"monospace","font-size":"11px"}},Sh={class:"ss-dbg-table"},Eh={class:"ss-dbg-table"},Ph={style:{"font-family":"monospace","font-size":"11px"}},Ah={style:{"font-family":"monospace","font-size":"11px"}},Mh={style:{"font-family":"monospace","font-size":"11px"}},Lh={style:{"font-size":"11px"}},Oh=3e3,Rh=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 r=null;const i=Bn(t.baseUrl||"",t.authToken);async function a(){const S=t.debugEndpoint||"/admin/api/debug";try{const k=await i().get(`${S}/diagnostics`);s.value=k,l.value=null,n.value=!1}catch(b){if(b instanceof Bs){l.value=b,n.value=!1,r&&(clearInterval(r),r=null);return}l.value=b instanceof Error?b:new Error(String(b)),n.value=!1}}Ct(()=>{n.value=!0,l.value=null,a(),r=setInterval(a,Oh)}),Es(()=>{r&&(clearInterval(r),r=null)});const u=z(new Set);function p(S){u.value.has(S)?u.value.delete(S):u.value.add(S)}function f(S){const b=tu(S);return b==="ok"?"ss-dbg-dot-ok":b==="err"?"ss-dbg-dot-err":""}function x(S){return S.debounceMs!==void 0?`${Ie(S.debounceMs)} (debounce)`:S.intervalMs!==void 0?Ie(S.intervalMs):"-"}const y=Y(()=>s.value||t.data||null),g=Y(()=>y.value||{}),$=Y(()=>g.value.buffers?Object.entries(g.value.buffers).map(([S,b])=>({name:S.charAt(0).toUpperCase()+S.slice(1),...b,percent:Xa(b.current,b.max)})):[]),_=Y(()=>g.value.timers?Object.entries(g.value.timers).map(([S,b])=>({key:S,label:Wa(S),...b,interval:x(b)})):[]),K=Y(()=>{if(!g.value)return[];const S=[];if(g.value.transmit&&S.push({key:"transmit",label:"Transmit (SSE)",status:g.value.transmit.available?"connected":"unavailable",details:g.value.transmit.available?`Channels: ${g.value.transmit.channels.join(", ")}`:"Not installed"}),g.value.integrations)for(const[b,k]of Object.entries(g.value.integrations))S.push({key:b,label:Ja(b),status:Ga(k),details:Qa(b,k)});return S});return(S,b)=>(c(),d("div",null,[n.value&&!y.value?(c(),d("div",Xf,"Loading diagnostics...")):l.value?(c(),d("div",Zf,"Error: "+m(l.value.message),1)):y.value?(c(),d(L,{key:3},[b[41]||(b[41]=o("div",{class:"ss-dbg-internals-title"},"Package Info",-1)),o("div",th,[(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:T(Ea)(g.value.package?.uptime)},{label:"Renderer",value:g.value.devToolbar?.renderer||"preact"}],k=>(c(),d("div",{key:k.label,class:"ss-dbg-info-card"},[o("span",sh,m(k.label),1),o("span",nh,m(k.value),1)]))),128))]),b[42]||(b[42]=o("div",{class:"ss-dbg-internals-title"},"Collectors",-1)),g.value.collectors?.length?(c(),d("table",rh,[b[4]||(b[4]=o("thead",null,[o("tr",null,[o("th",null,"Collector"),o("th",null,"Status"),o("th",null,"Last Error"),o("th",null,"Config")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(g.value.collectors,k=>(c(),d("tr",{key:k.name},[o("td",null,[o("span",oh,m(k.name),1),k.label&&k.label!==k.name?(c(),d("span",ih,m(k.label),1)):oe("",!0)]),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",ah,[k.lastError?(c(),d(L,{key:0},[se(m(k.lastError)+" ",1),o("span",uh,m(T(Be)(k.lastErrorAt??0)),1)],64)):(c(),d(L,{key:1},[se("-")],64))]),o("td",ch,[Object.keys(k.config||{}).length?(c(!0),d(L,{key:0},X(T(Ya)(k.config),O=>(c(),d("span",{key:O.key,style:{"margin-right":"8px"}},[se(m(O.key)+"=",1),O.secret&&!u.value.has(`collector-${k.name}-${O.key}`)?(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:w=>p(`collector-${k.name}-${O.key}`)},"••••••••",8,dh)):(c(),d(L,{key:1},[o("span",null,m(O.value),1),O.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:w=>p(`collector-${k.name}-${O.key}`)}," Hide ",8,fh)):oe("",!0)],64))]))),128)):(c(),d(L,{key:1},[se("-")],64))])]))),128))])])):(c(),d("div",lh,"No collectors")),b[43]||(b[43]=o("div",{class:"ss-dbg-internals-title"},"Buffers",-1)),$.value.length?(c(),d("table",ph,[b[5]||(b[5]=o("thead",null,[o("tr",null,[o("th",null,"Buffer"),o("th",null,"Usage"),o("th",null,"Fill %")])],-1)),o("tbody",null,[(c(!0),d(L,null,X($.value,k=>(c(),d("tr",{key:k.name},[o("td",null,m(k.name),1),o("td",null,m(k.current.toLocaleString())+" / "+m(k.max.toLocaleString()),1),o("td",null,[o("div",gh,[o("div",bh,[o("div",{class:H(["ss-dbg-bar-fill",k.percent>=100?"ss-dbg-bar-fill-warn":""]),style:pt({width:k.percent+"%"})},null,6)]),o("span",{class:H(["ss-dbg-bar-pct",k.percent>=100?"ss-dbg-bar-pct-warn":""])},m(k.percent)+"%",3)])])]))),128))])])):(c(),d("div",hh,"No buffer data")),b[44]||(b[44]=o("div",{class:"ss-dbg-internals-title"},"Timers",-1)),_.value.length?(c(),d("table",mh,[b[6]||(b[6]=o("thead",null,[o("tr",null,[o("th",null,"Timer"),o("th",null,"Status"),o("th",null,"Interval")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(_.value,k=>(c(),d("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(k.active?"active":"inactive")])},null,2),se(" "+m(k.active?"active":"inactive"),1)]),o("td",yh,m(k.interval),1)]))),128))])])):(c(),d("div",vh,"No timer data")),b[45]||(b[45]=o("div",{class:"ss-dbg-internals-title"},"Integrations",-1)),K.value.length?(c(),d("table",xh,[b[7]||(b[7]=o("thead",null,[o("tr",null,[o("th",null,"Integration"),o("th",null,"Status"),o("th",null,"Details")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(K.value,k=>(c(),d("tr",{key:k.key},[o("td",null,m(k.label),1),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(k.status)])},null,2),se(" "+m(k.status),1)]),o("td",wh,m(k.details),1)]))),128))])])):(c(),d("div",_h,"No integration data")),g.value.storage?(c(),d(L,{key:8},[b[16]||(b[16]=o("div",{class:"ss-dbg-internals-title"},"Storage",-1)),o("table",kh,[b[14]||(b[14]=o("thead",null,[o("tr",null,[o("th",null,"Metric"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[8]||(b[8]=o("td",null,"Status",-1)),o("td",null,[o("span",{class:H(["ss-dbg-dot",f(g.value.storage.ready?"ready":"unavailable")])},null,2),se(" "+m(g.value.storage.ready?"ready":"not ready"),1)])]),o("tr",null,[b[9]||(b[9]=o("td",null,"DB Path",-1)),o("td",$h,m(g.value.storage.dbPath),1)]),o("tr",null,[b[10]||(b[10]=o("td",null,"File Size",-1)),o("td",null,m(g.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[11]||(b[11]=o("td",null,"WAL Size",-1)),o("td",null,m(g.value.storage.walSizeMb.toFixed(1))+" MB",1)]),o("tr",null,[b[12]||(b[12]=o("td",null,"Retention",-1)),o("td",null,m(g.value.storage.retentionDays)+" days",1)]),o("tr",null,[b[13]||(b[13]=o("td",null,"Last Cleanup",-1)),o("td",null,m(T(Be)(g.value.storage.lastCleanupAt??0)),1)])])]),g.value.storage.tables?.length?(c(),d("table",Ch,[b[15]||(b[15]=o("thead",null,[o("tr",null,[o("th",null,"Table"),o("th",null,"Rows")])],-1)),o("tbody",null,[(c(!0),d(L,null,X(g.value.storage.tables,k=>(c(),d("tr",{key:k.name},[o("td",Th,m(k.name),1),o("td",null,m(k.rowCount.toLocaleString()),1)]))),128))])])):oe("",!0)],64)):oe("",!0),b[46]||(b[46]=o("div",{class:"ss-dbg-internals-title"},"Resolved Config",-1)),o("table",Sh,[b[24]||(b[24]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[17]||(b[17]=o("td",null,"intervalMs",-1)),o("td",null,m(g.value.config?.intervalMs),1)]),o("tr",null,[b[18]||(b[18]=o("td",null,"transport",-1)),o("td",null,m(g.value.config?.transport),1)]),o("tr",null,[b[19]||(b[19]=o("td",null,"channelName",-1)),o("td",null,m(g.value.config?.channelName),1)]),o("tr",null,[b[20]||(b[20]=o("td",null,"endpoint",-1)),o("td",null,m(g.value.config?.endpoint===!1?"false":g.value.config?.endpoint),1)]),o("tr",null,[b[21]||(b[21]=o("td",null,"skipInTest",-1)),o("td",null,m(g.value.config?.skipInTest),1)]),o("tr",null,[b[22]||(b[22]=o("td",null,"onStats callback",-1)),o("td",null,m(g.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),o("tr",null,[b[23]||(b[23]=o("td",null,"shouldShow callback",-1)),o("td",null,m(g.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[47]||(b[47]=o("div",{class:"ss-dbg-internals-title"},"DevToolbar",-1)),o("table",Eh,[b[40]||(b[40]=o("thead",null,[o("tr",null,[o("th",null,"Setting"),o("th",null,"Value")])],-1)),o("tbody",null,[o("tr",null,[b[25]||(b[25]=o("td",null,"enabled",-1)),o("td",null,m(g.value.devToolbar?.enabled),1)]),o("tr",null,[b[26]||(b[26]=o("td",null,"tracing",-1)),o("td",null,m(g.value.devToolbar?.tracing),1)]),o("tr",null,[b[27]||(b[27]=o("td",null,"dashboard",-1)),o("td",null,m(g.value.devToolbar?.dashboard),1)]),o("tr",null,[b[28]||(b[28]=o("td",null,"dashboardPath",-1)),o("td",Ph,m(g.value.devToolbar?.dashboardPath),1)]),o("tr",null,[b[29]||(b[29]=o("td",null,"debugEndpoint",-1)),o("td",Ah,[u.value.has("cfg-debugEndpoint")?(c(),d(L,{key:1},[se(m(g.value.devToolbar?.debugEndpoint)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=k=>p("cfg-debugEndpoint"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[0]||(b[0]=k=>p("cfg-debugEndpoint"))},"••••••••"))])]),o("tr",null,[b[30]||(b[30]=o("td",null,"maxQueries",-1)),o("td",null,m(g.value.devToolbar?.maxQueries),1)]),o("tr",null,[b[31]||(b[31]=o("td",null,"maxEvents",-1)),o("td",null,m(g.value.devToolbar?.maxEvents),1)]),o("tr",null,[b[32]||(b[32]=o("td",null,"maxEmails",-1)),o("td",null,m(g.value.devToolbar?.maxEmails),1)]),o("tr",null,[b[33]||(b[33]=o("td",null,"maxTraces",-1)),o("td",null,m(g.value.devToolbar?.maxTraces),1)]),o("tr",null,[b[34]||(b[34]=o("td",null,"slowQueryThresholdMs",-1)),o("td",null,m(g.value.devToolbar?.slowQueryThresholdMs),1)]),o("tr",null,[b[35]||(b[35]=o("td",null,"retentionDays",-1)),o("td",null,m(g.value.devToolbar?.retentionDays),1)]),o("tr",null,[b[36]||(b[36]=o("td",null,"dbPath",-1)),o("td",Mh,[u.value.has("cfg-dbPath")?(c(),d(L,{key:1},[se(m(g.value.devToolbar?.dbPath)+" ",1),o("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=k=>p("cfg-dbPath"))}," Hide ")],64)):(c(),d("span",{key:0,class:"ss-dbg-c-muted",style:{cursor:"pointer"},onClick:b[2]||(b[2]=k=>p("cfg-dbPath"))},"••••••••"))])]),o("tr",null,[b[37]||(b[37]=o("td",null,"persistDebugData",-1)),o("td",null,m(g.value.devToolbar?.persistDebugData),1)]),o("tr",null,[b[38]||(b[38]=o("td",null,"excludeFromTracing",-1)),o("td",Lh,m(g.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),o("tr",null,[b[39]||(b[39]=o("td",null,"customPanes",-1)),o("td",null,m(g.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(c(),d("div",eh,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"})),Ih={key:0,class:"ss-dbg-search-bar"},Dh=["placeholder"],jh={class:"ss-dbg-summary"},Fh={key:1,class:"ss-dbg-empty"},Bh={key:2,class:"ss-dbg-empty"},Nh=["onClick"],Hh={key:0,class:"ss-dbg-c-dim"},Uh=["title"],Kh=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(""),r=Bn(t.baseUrl||"",t.authToken);let i=!1;async function a(){if(!(t.pane.fetchOnce&&i)){n.value=!0;try{const S=await r().fetch(t.pane.endpoint),k=(t.pane.dataKey||t.pane.id).split(".");let O=S;for(const w of k)O=O?.[w];s.value=Array.isArray(O)?O:[],i=!0}catch{s.value=[]}finally{n.value=!1}}}const u=Y(()=>{if(!l.value.trim())return s.value;const S=l.value.toLowerCase(),b=t.pane.columns.filter(k=>k.searchable).map(k=>k.key);return b.length===0?s.value:s.value.filter(k=>b.some(O=>{const w=k[O];return w==null?!1:String(w).toLowerCase().includes(S)}))});function p(S,b){if(S==null)return"-";switch(b.format||"text"){case"time":return typeof S=="number"?Be(S):String(S);case"timeAgo":return Be(S);case"duration":return Ie(typeof S=="number"?S:parseFloat(String(S)));case"method":return String(S);case"json":{let O=S;if(typeof S=="string")try{O=JSON.parse(S)}catch{}return rs(O,80)}case"badge":return String(S);default:return String(S)}}function f(S,b){if(b.format==="time"||b.format==="timeAgo")return mt(S)}function x(S){return S==null}function y(S){const b=typeof S=="number"?S:parseFloat(String(S));if(isNaN(b))return"ss-dbg-duration";const k=jn(b);return k==="very-slow"?"ss-dbg-duration ss-dbg-very-slow":k==="slow"?"ss-dbg-duration ss-dbg-slow":"ss-dbg-duration"}function g(S,b){if(b.format==="badge"&&b.badgeColorMap){const k=String(S).toLowerCase();return b.badgeColorMap[k]||"muted"}return""}function $(S){return`ss-dbg-method ss-dbg-method-${String(S).toLowerCase()}`}function _(){s.value=[]}const{tableRef:K}=_t(()=>u.value);return Ct(()=>{a()}),(S,b)=>(c(),d("div",null,[e.pane.search?(c(),d("div",Ih,[qe(o("input",{"onUpdate:modelValue":b[0]||(b[0]=k=>l.value=k),class:"ss-dbg-search",placeholder:e.pane.search.placeholder,type:"text"},null,8,Dh),[[Qe,l.value]]),o("span",jh,m(u.value.length)+" items",1),e.pane.clearable?(c(),d("button",{key:0,class:"ss-dbg-btn-clear",onClick:_},"Clear")):oe("",!0)])):oe("",!0),n.value?(c(),d("div",Fh,"Loading...")):u.value.length===0?(c(),d("div",Bh,"No data")):(c(),d("table",{key:3,ref_key:"tableRef",ref:K,class:"ss-dbg-table"},[o("thead",null,[o("tr",null,[(c(!0),d(L,null,X(e.pane.columns,k=>(c(),d("th",{key:k.key},m(k.label),1))),128))])]),o("tbody",null,[(c(!0),d(L,null,X(u.value,(k,O)=>(c(),d("tr",{key:String(k.id??O)},[(c(!0),d(L,null,X(e.pane.columns,w=>(c(),d("td",{key:w.key,class:H({"ss-dbg-filterable":w.filterable}),onClick:B=>w.filterable?l.value=String(k[w.key]):void 0},[x(k[w.key])?(c(),d("span",Hh,"-")):w.format==="time"||w.format==="timeAgo"?(c(),d("span",{key:1,class:"ss-dbg-event-time",title:f(k[w.key],w)},m(p(k[w.key],w)),9,Uh)):w.format==="duration"?(c(),d("span",{key:2,class:H(y(k[w.key]))},m(p(k[w.key],w)),3)):w.format==="method"?(c(),d("span",{key:3,class:H($(k[w.key]))},m(p(k[w.key],w)),3)):w.format==="badge"?(c(),d("span",{key:4,class:H(`ss-dbg-badge ss-dbg-badge-${g(k[w.key],w)}`)},m(p(k[w.key],w)),3)):(c(),d(L,{key:5},[se(m(p(k[w.key],w)),1)],64))],10,Nh))),128))]))),128))])],512))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|