adonisjs-server-stats 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/configure.js +6 -1
- package/dist/core/collectors/collector.d.ts +83 -0
- package/dist/core/core/types.d.ts +186 -0
- package/dist/core/debug/types.d.ts +467 -0
- package/dist/core/index.js +184 -169
- package/dist/core/types.d.ts +855 -167
- package/dist/react/{CacheSection-CX2duJuc.js → CacheSection-DkLtukWz.js} +1 -1
- package/dist/react/{CacheTab-CgT4t0oZ.js → CacheTab-DWeXnEBI.js} +51 -46
- package/dist/react/ConfigContent-Bwvfl_G7.js +350 -0
- package/dist/react/{ConfigSection-Dt0FyeaW.js → ConfigSection-DaVbFPDg.js} +2 -2
- package/dist/react/{ConfigTab-KtiTtsrj.js → ConfigTab-D4640WJZ.js} +2 -2
- package/dist/react/{CustomPaneTab-15QoEplP.js → CustomPaneTab-DglmAVMC.js} +1 -1
- package/dist/react/{EmailsSection-YcJYR5eA.js → EmailsSection-vYx6ExTb.js} +1 -1
- package/dist/react/{EmailsTab-CUjubln_.js → EmailsTab-DKDrRmRH.js} +54 -49
- package/dist/react/{EventsSection-GGPoYSNv.js → EventsSection-CapH5xut.js} +1 -1
- package/dist/react/{EventsTab-Wdwr0_ny.js → EventsTab-BNVEySAm.js} +1 -1
- package/dist/react/{InternalsContent-BNOnSoi9.js → InternalsContent-C9lIA92C.js} +1 -1
- package/dist/react/{InternalsSection-BwrTfpjA.js → InternalsSection-lOv_UcSV.js} +1 -1
- package/dist/react/{InternalsTab--RD-L1dX.js → InternalsTab-BygoSorC.js} +1 -1
- package/dist/react/{JobsSection-BqqIh_DR.js → JobsSection-ZIQsJWid.js} +1 -1
- package/dist/react/{JobsTab-CBrU-ryL.js → JobsTab-DXQzXrDt.js} +1 -1
- package/dist/react/{LogEntryRow-BOrRkhRU.js → LogEntryRow-BWkHE51-.js} +1 -1
- package/dist/react/{LogsSection-Cm_lphM6.js → LogsSection-ConXdBkL.js} +2 -2
- package/dist/react/LogsTab-CJM47LPn.js +82 -0
- package/dist/react/{OverviewSection-XF7bakyM.js → OverviewSection-DOMu2qvl.js} +131 -131
- package/dist/react/{QueriesSection-DsQBKrNK.js → QueriesSection-DFsaOSJI.js} +1 -1
- package/dist/react/{QueriesTab-CxCC1GVq.js → QueriesTab-CY9CG_7L.js} +1 -1
- package/dist/react/RequestsSection-CC-eVHsl.js +326 -0
- package/dist/react/{RoutesSection-D0y5JQP4.js → RoutesSection-p1DMq41y.js} +1 -1
- package/dist/react/{RoutesTab-Y_alJVMV.js → RoutesTab-Cnqy8UcK.js} +1 -1
- package/dist/react/{SplitPaneWrapper-CZl1ouIT.js → SplitPaneWrapper-XgkA0QxE.js} +1 -1
- package/dist/react/{TimelineTab-HyqZpfbp.js → TimelineTab-1YOERxe5.js} +3 -3
- package/dist/react/index-DOSlCpZ9.js +1159 -0
- package/dist/react/index.js +1 -1
- package/dist/react/useApiClient-CtEG7rHs.js +11 -0
- package/dist/src/collectors/queue_collector.js +22 -6
- package/dist/src/config/deprecation_migration.js +11 -0
- package/dist/src/dashboard/cache_handlers.js +22 -2
- package/dist/src/dashboard/flush_manager.d.ts +2 -0
- package/dist/src/dashboard/flush_manager.js +17 -0
- package/dist/src/dashboard/integrations/config_inspector.d.ts +0 -1
- package/dist/src/dashboard/integrations/config_inspector.js +4 -2
- package/dist/src/dashboard/paginate_helper.d.ts +5 -0
- package/dist/src/dashboard/paginate_helper.js +16 -4
- package/dist/src/dashboard/query_explain_handler.d.ts +6 -1
- package/dist/src/dashboard/query_explain_handler.js +12 -2
- package/dist/src/dashboard/write_queue.d.ts +13 -0
- package/dist/src/dashboard/write_queue.js +34 -2
- package/dist/src/debug/debug_store.js +8 -1
- package/dist/src/debug/event_collector.js +4 -0
- package/dist/src/debug/query_collector.js +2 -0
- package/dist/src/debug/ring_buffer.js +8 -1
- package/dist/src/debug/trace_collector.js +34 -10
- package/dist/src/debug/types.d.ts +2 -0
- package/dist/src/define_config.js +1 -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/stats-bar.js +1 -1
- package/dist/src/edge/client-vue/dashboard.js +5 -5
- package/dist/src/edge/client-vue/debug-panel-deferred.js +2 -2
- package/dist/src/engine/request_metrics.js +8 -10
- package/dist/src/log_stream/log_stream_service.d.ts +1 -0
- package/dist/src/log_stream/log_stream_service.js +7 -5
- package/dist/src/prometheus/prometheus_collector.d.ts +9 -0
- package/dist/src/prometheus/prometheus_collector.js +11 -0
- package/dist/src/provider/dashboard_init.js +15 -0
- package/dist/src/provider/dashboard_setup.js +9 -2
- package/dist/src/provider/email_bridge.js +6 -2
- package/dist/src/provider/email_helpers.d.ts +9 -1
- package/dist/src/provider/email_helpers.js +32 -4
- package/dist/src/provider/pino_hook.d.ts +8 -0
- package/dist/src/provider/pino_hook.js +19 -1
- package/dist/src/provider/provider_helpers_extra.d.ts +2 -0
- package/dist/src/provider/provider_helpers_extra.js +17 -2
- package/dist/src/provider/server_stats_provider.js +19 -1
- package/dist/src/provider/shutdown_helpers.js +2 -0
- package/dist/src/provider/toolbar_setup.js +17 -14
- package/dist/src/routes/dashboard_routes.js +96 -62
- package/dist/src/routes/debug_routes.js +45 -35
- package/dist/src/routes/no_session_middleware.d.ts +6 -3
- package/dist/src/routes/no_session_middleware.js +7 -3
- package/dist/src/routes/register_routes.d.ts +8 -0
- package/dist/src/routes/register_routes.js +19 -0
- package/dist/src/types.d.ts +31 -0
- package/dist/src/utils/app_import.js +12 -4
- package/dist/vue/CacheSection-CxEBVVkF.js +156 -0
- package/dist/vue/ConfigSection-BiRAiaHj.js +415 -0
- package/dist/vue/EmailsSection-Dl44qyqY.js +208 -0
- package/dist/vue/{EmailsTab-CwIF1fik.js → EmailsTab-Diya54CP.js} +6 -5
- package/dist/vue/{EventsSection-BpgkWIwM.js → EventsSection-CWjeitjU.js} +1 -1
- package/dist/vue/{InternalsTab-521fxYYj.js → InternalsTab-Z3c82glB.js} +15 -15
- package/dist/vue/{JobsSection-DrghFEKL.js → JobsSection-DOBb4LjZ.js} +1 -1
- package/dist/vue/LogsSection-CXx-HOWJ.js +260 -0
- package/dist/vue/{OverviewSection-BAgZTPjY.js → OverviewSection-CyfNQ8uV.js} +318 -302
- package/dist/vue/{QueriesSection-CUpwhp7u.js → QueriesSection-CXBsFp-y.js} +1 -1
- package/dist/vue/{RequestsSection-D8P2xpF2.js → RequestsSection-YTIaZGZd.js} +151 -145
- package/dist/vue/{RoutesSection-0qB81hTT.js → RoutesSection-CDKMey49.js} +1 -1
- package/dist/vue/composables/useApiClient.d.ts +8 -1
- package/dist/vue/index-14x39RI_.js +1239 -0
- package/dist/vue/index.js +1 -1
- package/dist/vue/style.css +1 -1
- package/package.json +6 -3
- package/dist/react/ConfigContent-CnsEI4j3.js +0 -397
- package/dist/react/LogsTab-jKwv9G7Q.js +0 -79
- package/dist/react/RequestsSection-D8cMbZU0.js +0 -321
- package/dist/react/index-CsprmgzI.js +0 -1121
- package/dist/react/useApiClient-BVtNCmnL.js +0 -9
- package/dist/vue/CacheSection-DRqV3YX2.js +0 -149
- package/dist/vue/ConfigSection-C6pQCHAL.js +0 -576
- package/dist/vue/EmailsSection-BTNw3ZU2.js +0 -206
- package/dist/vue/LogsSection-BDxx9Bfi.js +0 -258
- package/dist/vue/index-30jLw-_w.js +0 -1232
- /package/dist/core/{api-client.d.ts → core/api-client.d.ts} +0 -0
- /package/dist/core/{config-utils.d.ts → core/config-utils.d.ts} +0 -0
- /package/dist/core/{constants.d.ts → core/constants.d.ts} +0 -0
- /package/dist/core/{dashboard-api.d.ts → core/dashboard-api.d.ts} +0 -0
- /package/dist/core/{dashboard-data-controller.d.ts → core/dashboard-data-controller.d.ts} +0 -0
- /package/dist/core/{dashboard-data-helpers.d.ts → core/dashboard-data-helpers.d.ts} +0 -0
- /package/dist/core/{debug-data-controller.d.ts → core/debug-data-controller.d.ts} +0 -0
- /package/dist/core/{define-config-helpers.d.ts → core/define-config-helpers.d.ts} +0 -0
- /package/dist/core/{explain-utils.d.ts → core/explain-utils.d.ts} +0 -0
- /package/dist/core/{feature-detect-helpers.d.ts → core/feature-detect-helpers.d.ts} +0 -0
- /package/dist/core/{feature-detect.d.ts → core/feature-detect.d.ts} +0 -0
- /package/dist/core/{field-resolvers.d.ts → core/field-resolvers.d.ts} +0 -0
- /package/dist/core/{formatters-helpers.d.ts → core/formatters-helpers.d.ts} +0 -0
- /package/dist/core/{formatters.d.ts → core/formatters.d.ts} +0 -0
- /package/dist/core/{history-buffer.d.ts → core/history-buffer.d.ts} +0 -0
- /package/dist/core/{icons.d.ts → core/icons.d.ts} +0 -0
- /package/dist/core/{index.d.ts → core/index.d.ts} +0 -0
- /package/dist/core/{internals-utils.d.ts → core/internals-utils.d.ts} +0 -0
- /package/dist/core/{job-utils.d.ts → core/job-utils.d.ts} +0 -0
- /package/dist/core/{log-utils-helpers.d.ts → core/log-utils-helpers.d.ts} +0 -0
- /package/dist/core/{log-utils.d.ts → core/log-utils.d.ts} +0 -0
- /package/dist/core/{metrics.d.ts → core/metrics.d.ts} +0 -0
- /package/dist/core/{pagination.d.ts → core/pagination.d.ts} +0 -0
- /package/dist/core/{queries-columns.d.ts → core/queries-columns.d.ts} +0 -0
- /package/dist/core/{queries-controller.d.ts → core/queries-controller.d.ts} +0 -0
- /package/dist/core/{query-utils.d.ts → core/query-utils.d.ts} +0 -0
- /package/dist/core/{resizable-columns.d.ts → core/resizable-columns.d.ts} +0 -0
- /package/dist/core/{routes.d.ts → core/routes.d.ts} +0 -0
- /package/dist/core/{server-stats-controller.d.ts → core/server-stats-controller.d.ts} +0 -0
- /package/dist/core/{sparkline.d.ts → core/sparkline.d.ts} +0 -0
- /package/dist/core/{split-pane.d.ts → core/split-pane.d.ts} +0 -0
- /package/dist/core/{theme.d.ts → core/theme.d.ts} +0 -0
- /package/dist/core/{trace-utils.d.ts → core/trace-utils.d.ts} +0 -0
- /package/dist/core/{transmit-adapter.d.ts → core/transmit-adapter.d.ts} +0 -0
- /package/dist/core/{transmit-helpers.d.ts → core/transmit-helpers.d.ts} +0 -0
- /package/dist/core/{types-dashboard.d.ts → core/types-dashboard.d.ts} +0 -0
- /package/dist/core/{types-diagnostics.d.ts → core/types-diagnostics.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";function hn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Oe={},Gt=[],yt=()=>{},fl=()=>!1,Os=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pn=e=>e.startsWith("onUpdate:"),Ue=Object.assign,vn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},_i=Object.prototype.hasOwnProperty,Pe=(e,t)=>_i.call(e,t),ge=Array.isArray,Yt=e=>vs(e)==="[object Map]",hl=e=>vs(e)==="[object Set]",pl=e=>vs(e)==="[object Date]",ve=e=>typeof e=="function",Ie=e=>typeof e=="string",ct=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",vl=e=>(Ae(e)||ve(e))&&ve(e.then)&&ve(e.catch),gl=Object.prototype.toString,vs=e=>gl.call(e),xi=e=>vs(e).slice(8,-1),yl=e=>vs(e)==="[object Object]",gn=e=>Ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gs=hn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ds=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},wi=/-\w/g,ot=Ds(e=>e.replace(wi,t=>t.slice(1).toUpperCase())),ki=/\B([A-Z])/g,At=Ds(e=>e.replace(ki,"-$1").toLowerCase()),Fs=Ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),yn=Ds(e=>e?`on${Fs(e)}`:""),Lt=(e,t)=>!Object.is(e,t),mn=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ml=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},$i=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Si=e=>{const t=Ie(e)?Number(e):NaN;return isNaN(t)?e:t};let bl;const Is=()=>bl||(bl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(e){if(ge(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],i=Ie(l)?Pi(l):qe(l);if(i)for(const o in i)t[o]=i[o]}return t}else if(Ie(e)||Ae(e))return e}const Ci=/;(?![^(]*\))/g,Ti=/:([^]+)/,Ei=/\/\*[^]*?\*\//g;function Pi(e){const t={};return e.replace(Ei,"").split(Ci).forEach(s=>{if(s){const l=s.split(Ti);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function R(e){let t="";if(Ie(e))t=e;else if(ge(e))for(let s=0;s<e.length;s++){const l=R(e[s]);l&&(t+=l+" ")}else if(Ae(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ri=hn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function _l(e){return!!e||e===""}function Mi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=bn(e[l],t[l]);return s}function bn(e,t){if(e===t)return!0;let s=pl(e),l=pl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=ct(e),l=ct(t),s||l)return e===t;if(s=ge(e),l=ge(t),s||l)return s&&l?Mi(e,t):!1;if(s=Ae(e),l=Ae(t),s||l){if(!s||!l)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const r=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(r&&!c||!r&&c||!bn(e[a],t[a]))return!1}}return String(e)===String(t)}const xl=e=>!!(e&&e.__v_isRef===!0),h=e=>Ie(e)?e:e==null?"":ge(e)||Ae(e)&&(e.toString===gl||!ve(e.toString))?xl(e)?h(e.value):JSON.stringify(e,wl,2):String(e),wl=(e,t)=>xl(t)?wl(e,t.value):Yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,i],o)=>(s[_n(l,o)+" =>"]=i,s),{})}:hl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>_n(s))}:ct(t)?_n(t):Ae(t)&&!ge(t)&&!yl(t)?String(t):t,_n=(e,t="")=>{var s;return ct(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Ze;class Ai{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=Ze,!t&&Ze&&(this.index=(Ze.scopes||(Ze.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=Ze;try{return Ze=this,t()}finally{Ze=s}}}on(){++this._on===1&&(this.prevScope=Ze,Ze=this)}off(){this._on>0&&--this._on===0&&(Ze=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Li(){return Ze}let De;const xn=new WeakSet;class kl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ze&&Ze.active&&Ze.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xn.has(this)&&(xn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Sl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Rl(this),Cl(this);const t=De,s=dt;De=this,dt=!0;try{return this.fn()}finally{Tl(this),De=t,dt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Sn(t);this.deps=this.depsTail=void 0,Rl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$n(this)&&this.run()}get dirty(){return $n(this)}}let $l=0,ys,ms;function Sl(e,t=!1){if(e.flags|=8,t){e.next=ms,ms=e;return}e.next=ys,ys=e}function wn(){$l++}function kn(){if(--$l>0)return;if(ms){let t=ms;for(ms=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ys;){let t=ys;for(ys=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function Cl(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,l=s;for(;l;){const i=l.prevDep;l.version===-1?(l===s&&(s=i),Sn(l),Oi(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=i}e.deps=t,e.depsTail=s}function $n(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(El(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function El(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bs)||(e.globalVersion=bs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$n(e))))return;e.flags|=2;const t=e.dep,s=De,l=dt;De=e,dt=!0;try{Cl(e);const i=e.fn(e._value);(t.version===0||Lt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{De=s,dt=l,Tl(e),e.flags&=-3}}function Sn(e,t=!1){const{dep:s,prevSub:l,nextSub:i}=e;if(l&&(l.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Sn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Oi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let dt=!0;const Pl=[];function mt(){Pl.push(dt),dt=!1}function bt(){const e=Pl.pop();dt=e===void 0?!0:e}function Rl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=De;De=void 0;try{t()}finally{De=s}}}let bs=0;class Di{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!De||!dt||De===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==De)s=this.activeLink=new Di(De,this),De.deps?(s.prevDep=De.depsTail,De.depsTail.nextDep=s,De.depsTail=s):De.deps=De.depsTail=s,Ml(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=De.depsTail,s.nextDep=void 0,De.depsTail.nextDep=s,De.depsTail=s,De.deps===s&&(De.deps=l)}return s}trigger(t){this.version++,bs++,this.notify(t)}notify(t){wn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{kn()}}}function Ml(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Ml(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Tn=new WeakMap,Kt=Symbol(""),En=Symbol(""),_s=Symbol("");function We(e,t,s){if(dt&&De){let l=Tn.get(e);l||Tn.set(e,l=new Map);let i=l.get(s);i||(l.set(s,i=new Cn),i.map=l,i.key=s),i.track()}}function St(e,t,s,l,i,o){const a=Tn.get(e);if(!a){bs++;return}const r=c=>{c&&c.trigger()};if(wn(),t==="clear")a.forEach(r);else{const c=ge(e),g=c&&gn(s);if(c&&s==="length"){const p=Number(l);a.forEach((b,v)=>{(v==="length"||v===_s||!ct(v)&&v>=p)&&r(b)})}else switch((s!==void 0||a.has(void 0))&&r(a.get(s)),g&&r(a.get(_s)),t){case"add":c?g&&r(a.get("length")):(r(a.get(Kt)),Yt(e)&&r(a.get(En)));break;case"delete":c||(r(a.get(Kt)),Yt(e)&&r(a.get(En)));break;case"set":Yt(e)&&r(a.get(Kt));break}}kn()}function Xt(e){const t=Te(e);return t===e?t:(We(t,"iterate",_s),it(e)?t:t.map(ft))}function Bs(e){return We(e=Te(e),"iterate",_s),e}function Ot(e,t){return Tt(e)?es(Vt(e)?ft(t):t):ft(t)}const Fi={__proto__:null,[Symbol.iterator](){return Pn(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return Xt(this).concat(...e.map(t=>ge(t)?Xt(t):t))},entries(){return Pn(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return Ct(this,"every",e,t,void 0,arguments)},filter(e,t){return Ct(this,"filter",e,t,s=>s.map(l=>Ot(this,l)),arguments)},find(e,t){return Ct(this,"find",e,t,s=>Ot(this,s),arguments)},findIndex(e,t){return Ct(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ct(this,"findLast",e,t,s=>Ot(this,s),arguments)},findLastIndex(e,t){return Ct(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ct(this,"forEach",e,t,void 0,arguments)},includes(...e){return Rn(this,"includes",e)},indexOf(...e){return Rn(this,"indexOf",e)},join(e){return Xt(this).join(e)},lastIndexOf(...e){return Rn(this,"lastIndexOf",e)},map(e,t){return Ct(this,"map",e,t,void 0,arguments)},pop(){return xs(this,"pop")},push(...e){return xs(this,"push",e)},reduce(e,...t){return Al(this,"reduce",e,t)},reduceRight(e,...t){return Al(this,"reduceRight",e,t)},shift(){return xs(this,"shift")},some(e,t){return Ct(this,"some",e,t,void 0,arguments)},splice(...e){return xs(this,"splice",e)},toReversed(){return Xt(this).toReversed()},toSorted(e){return Xt(this).toSorted(e)},toSpliced(...e){return Xt(this).toSpliced(...e)},unshift(...e){return xs(this,"unshift",e)},values(){return Pn(this,"values",e=>Ot(this,e))}};function Pn(e,t,s){const l=Bs(e),i=l[t]();return l!==e&&!it(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const Ii=Array.prototype;function Ct(e,t,s,l,i,o){const a=Bs(e),r=a!==e&&!it(e),c=a[t];if(c!==Ii[t]){const b=c.apply(e,o);return r?ft(b):b}let g=s;a!==e&&(r?g=function(b,v){return s.call(this,Ot(e,b),v,e)}:s.length>2&&(g=function(b,v){return s.call(this,b,v,e)}));const p=c.call(a,g,l);return r&&i?i(p):p}function Al(e,t,s,l){const i=Bs(e);let o=s;return i!==e&&(it(e)?s.length>3&&(o=function(a,r,c){return s.call(this,a,r,c,e)}):o=function(a,r,c){return s.call(this,a,Ot(e,r),c,e)}),i[t](o,...l)}function Rn(e,t,s){const l=Te(e);We(l,"iterate",_s);const i=l[t](...s);return(i===-1||i===!1)&&Ln(s[0])?(s[0]=Te(s[0]),l[t](...s)):i}function xs(e,t,s=[]){mt(),wn();const l=Te(e)[t].apply(e,s);return kn(),bt(),l}const Bi=hn("__proto__,__v_isRef,__isVue"),Ll=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function Ni(e){ct(e)||(e=String(e));const t=Te(this);return We(t,"has",e),t.hasOwnProperty(e)}class Ol{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(i?o?jl:Nl:o?Bl:Il).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const a=ge(t);if(!i){let c;if(a&&(c=Fi[s]))return c;if(s==="hasOwnProperty")return Ni}const r=Reflect.get(t,s,Ke(t)?t:l);if((ct(s)?Ll.has(s):Bi(s))||(i||We(t,"get",s),o))return r;if(Ke(r)){const c=a&&gn(s)?r:r.value;return i&&Ae(c)?An(c):c}return Ae(r)?i?An(r):Zt(r):r}}class Dl extends Ol{constructor(t=!1){super(!1,t)}set(t,s,l,i){let o=t[s];const a=ge(t)&&gn(s);if(!this._isShallow){const g=Tt(o);if(!it(l)&&!Tt(l)&&(o=Te(o),l=Te(l)),!a&&Ke(o)&&!Ke(l))return g||(o.value=l),!0}const r=a?Number(s)<t.length:Pe(t,s),c=Reflect.set(t,s,l,Ke(t)?t:i);return t===Te(i)&&(r?Lt(l,o)&&St(t,"set",s,l):St(t,"add",s,l)),c}deleteProperty(t,s){const l=Pe(t,s);t[s];const i=Reflect.deleteProperty(t,s);return i&&l&&St(t,"delete",s,void 0),i}has(t,s){const l=Reflect.has(t,s);return(!ct(s)||!Ll.has(s))&&We(t,"has",s),l}ownKeys(t){return We(t,"iterate",ge(t)?"length":Kt),Reflect.ownKeys(t)}}class Fl extends Ol{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const ji=new Dl,Hi=new Fl,Ui=new Dl(!0),qi=new Fl(!0),Mn=e=>e,Ns=e=>Reflect.getPrototypeOf(e);function Ki(e,t,s){return function(...l){const i=this.__v_raw,o=Te(i),a=Yt(o),r=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,g=i[e](...l),p=s?Mn:t?es:ft;return!t&&We(o,"iterate",c?En:Kt),Ue(Object.create(g),{next(){const{value:b,done:v}=g.next();return v?{value:b,done:v}:{value:r?[p(b[0]),p(b[1])]:p(b),done:v}}})}}function js(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Vi(e,t){const s={get(i){const o=this.__v_raw,a=Te(o),r=Te(i);e||(Lt(i,r)&&We(a,"get",i),We(a,"get",r));const{has:c}=Ns(a),g=t?Mn:e?es:ft;if(c.call(a,i))return g(o.get(i));if(c.call(a,r))return g(o.get(r));o!==a&&o.get(i)},get size(){const i=this.__v_raw;return!e&&We(Te(i),"iterate",Kt),i.size},has(i){const o=this.__v_raw,a=Te(o),r=Te(i);return e||(Lt(i,r)&&We(a,"has",i),We(a,"has",r)),i===r?o.has(i):o.has(i)||o.has(r)},forEach(i,o){const a=this,r=a.__v_raw,c=Te(r),g=t?Mn:e?es:ft;return!e&&We(c,"iterate",Kt),r.forEach((p,b)=>i.call(o,g(p),g(b),a))}};return Ue(s,e?{add:js("add"),set:js("set"),delete:js("delete"),clear:js("clear")}:{add(i){!t&&!it(i)&&!Tt(i)&&(i=Te(i));const o=Te(this);return Ns(o).has.call(o,i)||(o.add(i),St(o,"add",i,i)),this},set(i,o){!t&&!it(o)&&!Tt(o)&&(o=Te(o));const a=Te(this),{has:r,get:c}=Ns(a);let g=r.call(a,i);g||(i=Te(i),g=r.call(a,i));const p=c.call(a,i);return a.set(i,o),g?Lt(o,p)&&St(a,"set",i,o):St(a,"add",i,o),this},delete(i){const o=Te(this),{has:a,get:r}=Ns(o);let c=a.call(o,i);c||(i=Te(i),c=a.call(o,i)),r&&r.call(o,i);const g=o.delete(i);return c&&St(o,"delete",i,void 0),g},clear(){const i=Te(this),o=i.size!==0,a=i.clear();return o&&St(i,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Ki(i,e,t)}),s}function Hs(e,t){const s=Vi(e,t);return(l,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?l:Reflect.get(Pe(s,i)&&i in l?s:l,i,o)}const zi={get:Hs(!1,!1)},Wi={get:Hs(!1,!0)},Qi={get:Hs(!0,!1)},Ji={get:Hs(!0,!0)},Il=new WeakMap,Bl=new WeakMap,Nl=new WeakMap,jl=new WeakMap;function Gi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yi(e){return e.__v_skip||!Object.isExtensible(e)?0:Gi(xi(e))}function Zt(e){return Tt(e)?e:Us(e,!1,ji,zi,Il)}function Xi(e){return Us(e,!1,Ui,Wi,Bl)}function An(e){return Us(e,!0,Hi,Qi,Nl)}function oy(e){return Us(e,!0,qi,Ji,jl)}function Us(e,t,s,l,i){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Yi(e);if(o===0)return e;const a=i.get(e);if(a)return a;const r=new Proxy(e,o===2?l:s);return i.set(e,r),r}function Vt(e){return Tt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function it(e){return!!(e&&e.__v_isShallow)}function Ln(e){return e?!!e.__v_raw:!1}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Zi(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&ml(e,"__v_skip",!0),e}const ft=e=>Ae(e)?Zt(e):e,es=e=>Ae(e)?An(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function W(e){return ea(e,!1)}function ea(e,t){return Ke(e)?e:new ta(e,t)}class ta{constructor(t,s){this.dep=new Cn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Te(t),this._value=s?t:ft(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||it(t)||Tt(t);t=l?t:Te(t),Lt(t,s)&&(this._rawValue=t,this._value=l?t:ft(t),this.dep.trigger())}}function x(e){return Ke(e)?e.value:e}const sa={get:(e,t,s)=>t==="__v_raw"?e:x(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const i=e[t];return Ke(i)&&!Ke(s)?(i.value=s,!0):Reflect.set(e,t,s,l)}};function Hl(e){return Vt(e)?e:new Proxy(e,sa)}class na{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Cn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&De!==this)return Sl(this,!0),!0}get value(){const t=this.dep.track();return El(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function la(e,t,s=!1){let l,i;return ve(e)?l=e:(l=e.get,i=e.set),new na(l,i,s)}const qs={},Ks=new WeakMap;let zt;function oa(e,t=!1,s=zt){if(s){let l=Ks.get(s);l||Ks.set(s,l=[]),l.push(e)}}function ia(e,t,s=Oe){const{immediate:l,deep:i,once:o,scheduler:a,augmentJob:r,call:c}=s,g=k=>i?k:it(k)||i===!1||i===0?Dt(k,1):Dt(k);let p,b,v,w,$=!1,_=!1;if(Ke(e)?(b=()=>e.value,$=it(e)):Vt(e)?(b=()=>g(e),$=!0):ge(e)?(_=!0,$=e.some(k=>Vt(k)||it(k)),b=()=>e.map(k=>{if(Ke(k))return k.value;if(Vt(k))return g(k);if(ve(k))return c?c(k,2):k()})):ve(e)?t?b=c?()=>c(e,2):e:b=()=>{if(v){mt();try{v()}finally{bt()}}const k=zt;zt=p;try{return c?c(e,3,[w]):e(w)}finally{zt=k}}:b=yt,t&&i){const k=b,S=i===!0?1/0:i;b=()=>Dt(k(),S)}const C=Li(),A=()=>{p.stop(),C&&C.active&&vn(C.effects,p)};if(o&&t){const k=t;t=(...S)=>{k(...S),A()}}let P=_?new Array(e.length).fill(qs):qs;const y=k=>{if(!(!(p.flags&1)||!p.dirty&&!k))if(t){const S=p.run();if(i||$||(_?S.some((Q,te)=>Lt(Q,P[te])):Lt(S,P))){v&&v();const Q=zt;zt=p;try{const te=[S,P===qs?void 0:_&&P[0]===qs?[]:P,w];P=S,c?c(t,3,te):t(...te)}finally{zt=Q}}}else p.run()};return r&&r(y),p=new kl(b),p.scheduler=a?()=>a(y,!1):y,w=k=>oa(k,!1,p),v=p.onStop=()=>{const k=Ks.get(p);if(k){if(c)c(k,4);else for(const S of k)S();Ks.delete(p)}},t?l?y(!0):P=p.run():a?a(y.bind(null,!0),!0):p.run(),A.pause=p.pause.bind(p),A.resume=p.resume.bind(p),A.stop=A,A}function Dt(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--,Ke(e))Dt(e.value,t,s);else if(ge(e))for(let l=0;l<e.length;l++)Dt(e[l],t,s);else if(hl(e)||Yt(e))e.forEach(l=>{Dt(l,t,s)});else if(yl(e)){for(const l in e)Dt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Dt(e[l],t,s)}return e}const ws=[];let On=!1;function iy(e,...t){if(On)return;On=!0,mt();const s=ws.length?ws[ws.length-1].component:null,l=s&&s.appContext.config.warnHandler,i=aa();if(l)ts(l,s,11,[e+t.map(o=>{var a,r;return(r=(a=o.toString)==null?void 0:a.call(o))!=null?r:JSON.stringify(o)}).join(""),s&&s.proxy,i.map(({vnode:o})=>`at <${Ho(s,o.type)}>`).join(`
|
|
2
|
-
`),
|
|
3
|
-
`,...
|
|
4
|
-
`],...ua(s))}),t}function ua({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,i=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[i,...ca(e.props),o]:[i+o]}function ca(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Ul(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Ul(e,t,s){return Ie(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:Ke(t)?(t=Ul(e,Te(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Te(t),s?t:[`${e}=`,t])}function ts(e,t,s,l){try{return l?e(...l):e()}catch(i){ss(i,t,s)}}function _t(e,t,s,l){if(ve(e)){const i=ts(e,t,s,l);return i&&vl(i)&&i.catch(o=>{ss(o,t,s)}),i}if(ge(e)){const i=[];for(let o=0;o<e.length;o++)i.push(_t(e[o],t,s,l));return i}}function ss(e,t,s,l=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Oe;if(t){let r=t.parent;const c=t.proxy,g=`https://vuejs.org/error-reference/#runtime-${s}`;for(;r;){const p=r.ec;if(p){for(let b=0;b<p.length;b++)if(p[b](e,c,g)===!1)return}r=r.parent}if(o){mt(),ts(o,null,10,[e,c,g]),bt();return}}da(e,s,i,l,a)}function da(e,t,s,l=!0,i=!1){if(i)throw e;console.error(e)}const Je=[];let xt=-1;const ns=[];let Ft=null,ls=0;const ql=Promise.resolve();let Vs=null;function Dn(e){const t=Vs||ql;return e?t.then(this?e.bind(this):e):t}function fa(e){let t=xt+1,s=Je.length;for(;t<s;){const l=t+s>>>1,i=Je[l],o=ks(i);o<e||o===e&&i.flags&2?t=l+1:s=l}return t}function Fn(e){if(!(e.flags&1)){const t=ks(e),s=Je[Je.length-1];!s||!(e.flags&2)&&t>=ks(s)?Je.push(e):Je.splice(fa(t),0,e),e.flags|=1,Kl()}}function Kl(){Vs||(Vs=ql.then(Wl))}function In(e){ge(e)?ns.push(...e):Ft&&e.id===-1?Ft.splice(ls+1,0,e):e.flags&1||(ns.push(e),e.flags|=1),Kl()}function Vl(e,t,s=xt+1){for(;s<Je.length;s++){const l=Je[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;Je.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function zl(e){if(ns.length){const t=[...new Set(ns)].sort((s,l)=>ks(s)-ks(l));if(ns.length=0,Ft){Ft.push(...t);return}for(Ft=t,ls=0;ls<Ft.length;ls++){const s=Ft[ls];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ft=null,ls=0}}const ks=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Wl(e){try{for(xt=0;xt<Je.length;xt++){const t=Je[xt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ts(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;xt<Je.length;xt++){const t=Je[xt];t&&(t.flags&=-2)}xt=-1,Je.length=0,zl(),Vs=null,(Je.length||ns.length)&&Wl()}}let Ge=null,Ql=null;function zs(e){const t=Ge;return Ge=e,Ql=e&&e.type.__scopeId||null,t}function os(e,t=Ge,s){if(!t||e._n)return e;const l=(...i)=>{l._d&&Oo(-1);const o=zs(t);let a;try{a=e(...i)}finally{zs(o),l._d&&Oo(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Wt(e,t,s,l){const i=e.dirs,o=t&&t.dirs;for(let a=0;a<i.length;a++){const r=i[a];o&&(r.oldValue=o[a].value);let c=r.dir[l];c&&(mt(),_t(c,s,8,[e.el,r,e,t]),bt())}}function is(e,t){if(Ve){let s=Ve.provides;const l=Ve.parent&&Ve.parent.provides;l===s&&(s=Ve.provides=Object.create(l)),s[e]=t}}function de(e,t,s=!1){const l=br();if(l||rs){let i=rs?rs._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return s&&ve(t)?t.call(l&&l.proxy):t}}const ha=Symbol.for("v-scx"),pa=()=>de(ha);function ht(e,t,s){return Jl(e,t,s)}function Jl(e,t,s=Oe){const{immediate:l,deep:i,flush:o,once:a}=s,r=Ue({},s),c=t&&l||!t&&o!=="post";let g;if(fs){if(o==="sync"){const w=pa();g=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=yt,w.resume=yt,w.pause=yt,w}}const p=Ve;r.call=(w,$,_)=>_t(w,p,$,_);let b=!1;o==="post"?r.scheduler=w=>{Xe(w,p&&p.suspense)}:o!=="sync"&&(b=!0,r.scheduler=(w,$)=>{$?w():Fn(w)}),r.augmentJob=w=>{t&&(w.flags|=4),b&&(w.flags|=2,p&&(w.id=p.uid,w.i=p))};const v=ia(e,t,r);return fs&&(g?g.push(v):c&&v()),v}function va(e,t,s){const l=this.proxy,i=Ie(e)?e.includes(".")?Gl(l,e):()=>l[e]:e.bind(l,l);let o;ve(t)?o=t:(o=t.handler,s=t);const a=Ps(this),r=Jl(i,o.bind(l),s);return a(),r}function Gl(e,t){const s=t.split(".");return()=>{let l=e;for(let i=0;i<s.length&&l;i++)l=l[s[i]];return l}}const ga=Symbol("_vte"),ya=e=>e.__isTeleport,ma=Symbol("_leaveCb");function Bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bn(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 Ne(e,t){return ve(e)?Ue({name:e.name},t,{setup:e}):e}function Nn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Ws=new WeakMap;function $s(e,t,s,l,i=!1){if(ge(e)){e.forEach((_,C)=>$s(_,t&&(ge(t)?t[C]:t),s,l,i));return}if(as(l)&&!i){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&$s(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?el(l.component):l.el,a=i?null:o,{i:r,r:c}=e,g=t&&t.r,p=r.refs===Oe?r.refs={}:r.refs,b=r.setupState,v=Te(b),w=b===Oe?fl:_=>Yl(p,_)?!1:Pe(v,_),$=(_,C)=>!(C&&Yl(p,C));if(g!=null&&g!==c){if(Xl(t),Ie(g))p[g]=null,w(g)&&(b[g]=null);else if(Ke(g)){const _=t;$(g,_.k)&&(g.value=null),_.k&&(p[_.k]=null)}}if(ve(c))ts(c,r,12,[a,p]);else{const _=Ie(c),C=Ke(c);if(_||C){const A=()=>{if(e.f){const P=_?w(c)?b[c]:p[c]:$()||!e.k?c.value:p[e.k];if(i)ge(P)&&vn(P,o);else if(ge(P))P.includes(o)||P.push(o);else if(_)p[c]=[o],w(c)&&(b[c]=p[c]);else{const y=[o];$(c,e.k)&&(c.value=y),e.k&&(p[e.k]=y)}}else _?(p[c]=a,w(c)&&(b[c]=a)):C&&($(c,e.k)&&(c.value=a),e.k&&(p[e.k]=a))};if(a){const P=()=>{A(),Ws.delete(e)};P.id=-1,Ws.set(e,P),Xe(P,s)}else Xl(e),A()}}}function Xl(e){const t=Ws.get(e);t&&(t.flags|=8,Ws.delete(e))}const Zl=e=>e.nodeType===8;Is().requestIdleCallback,Is().cancelIdleCallback;function ba(e,t){if(Zl(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(Zl(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const as=e=>!!e.type.__asyncLoader;function pt(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:i=200,hydrate:o,timeout:a,suspensible:r=!0,onError:c}=e;let g=null,p,b=0;const v=()=>(b++,g=null,w()),w=()=>{let $;return g||($=g=t().catch(_=>{if(_=_ instanceof Error?_:new Error(String(_)),c)return new Promise((C,A)=>{c(_,()=>C(v()),()=>A(_),b+1)});throw _}).then(_=>$!==g&&g?g:(_&&(_.__esModule||_[Symbol.toStringTag]==="Module")&&(_=_.default),p=_,_)))};return Ne({name:"AsyncComponentWrapper",__asyncLoader:w,__asyncHydrate($,_,C){let A=!1;(_.bu||(_.bu=[])).push(()=>A=!0);const P=()=>{A||C()},y=o?()=>{const k=o(P,S=>ba($,S));k&&(_.bum||(_.bum=[])).push(k)}:P;p?y():w().then(()=>!_.isUnmounted&&y())},get __asyncResolved(){return p},setup(){const $=Ve;if(Nn($),p)return()=>Qs(p,$);const _=y=>{g=null,ss(y,$,13,!l)};if(r&&$.suspense||fs)return w().then(y=>()=>Qs(y,$)).catch(y=>(_(y),()=>l?Se(l,{error:y}):null));const C=W(!1),A=W(),P=W(!!i);return i&&setTimeout(()=>{P.value=!1},i),a!=null&&setTimeout(()=>{if(!C.value&&!A.value){const y=new Error(`Async component timed out after ${a}ms.`);_(y),A.value=y}},a),w().then(()=>{C.value=!0,$.parent&&jn($.parent.vnode)&&$.parent.update()}).catch(y=>{_(y),A.value=y}),()=>{if(C.value&&p)return Qs(p,$);if(A.value&&l)return Se(l,{error:A.value});if(s&&!P.value)return Qs(s,$)}}})}function Qs(e,t){const{ref:s,props:l,children:i,ce:o}=t.vnode,a=Se(e,l,i);return a.ref=s,a.ce=o,delete t.vnode.ce,a}const jn=e=>e.type.__isKeepAlive;function _a(e,t){eo(e,"a",t)}function xa(e,t){eo(e,"da",t)}function eo(e,t,s=Ve){const l=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Js(t,l,s),s){let i=s.parent;for(;i&&i.parent;)jn(i.parent.vnode)&&wa(l,t,s,i),i=i.parent}}function wa(e,t,s,l){const i=Js(t,e,l,!0);Pt(()=>{vn(l[t],i)},s)}function Js(e,t,s=Ve,l=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...a)=>{mt();const r=Ps(s),c=_t(t,s,e,a);return r(),bt(),c});return l?i.unshift(o):i.push(o),o}}const Et=e=>(t,s=Ve)=>{(!fs||e==="sp")&&Js(e,(...l)=>t(...l),s)},ka=Et("bm"),It=Et("m"),$a=Et("bu"),Sa=Et("u"),to=Et("bum"),Pt=Et("um"),Ca=Et("sp"),Ta=Et("rtg"),Ea=Et("rtc");function Pa(e,t=Ve){Js("ec",e,t)}const Ra="components",so=Symbol.for("v-ndc");function Ma(e){return Ie(e)?Aa(Ra,e,!1)||e:e||so}function Aa(e,t,s=!0,l=!1){const i=Ge||Ve;if(i){const o=i.type;{const r=jo(o,!1);if(r&&(r===t||r===ot(t)||r===Fs(ot(t))))return o}const a=no(i[e]||o[e],t)||no(i.appContext[e],t);return!a&&l?o:a}}function no(e,t){return e&&(e[t]||e[ot(t)]||e[Fs(ot(t))])}function ye(e,t,s,l){let i;const o=s,a=ge(e);if(a||Ie(e)){const r=a&&Vt(e);let c=!1,g=!1;r&&(c=!it(e),g=Tt(e),e=Bs(e)),i=new Array(e.length);for(let p=0,b=e.length;p<b;p++)i[p]=t(c?g?es(ft(e[p])):ft(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o)}else if(Ae(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,o));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,g=r.length;c<g;c++){const p=r[c];i[c]=t(e[p],p,c,o)}}else i=[];return i}function La(e,t,s={},l,i){if(Ge.ce||Ge.parent&&as(Ge.parent)&&Ge.parent.ce){const g=Object.keys(s).length>0;return u(),st(N,null,[Se("slot",s,l)],g?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const a=o&&lo(o(s)),r=s.key||a&&a.key,c=st(N,{key:(r&&!ct(r)?r:`_${t}`)+(!a&&l?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function lo(e){return e.some(t=>en(t)?!(t.type===vt||t.type===N&&!lo(t.children)):!0)?e:null}const Hn=e=>e?Bo(e)?el(e):Hn(e.parent):null,Ss=Ue(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=>Hn(e.parent),$root:e=>Hn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ro(e),$forceUpdate:e=>e.f||(e.f=()=>{Fn(e.update)}),$nextTick:e=>e.n||(e.n=Dn.bind(e.proxy)),$watch:e=>va.bind(e)}),Un=(e,t)=>e!==Oe&&!e.__isScriptSetup&&Pe(e,t),Oa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:i,props:o,accessCache:a,type:r,appContext:c}=e;if(t[0]!=="$"){const v=a[t];if(v!==void 0)switch(v){case 1:return l[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(Un(l,t))return a[t]=1,l[t];if(i!==Oe&&Pe(i,t))return a[t]=2,i[t];if(Pe(o,t))return a[t]=3,o[t];if(s!==Oe&&Pe(s,t))return a[t]=4,s[t];qn&&(a[t]=0)}}const g=Ss[t];let p,b;if(g)return t==="$attrs"&&We(e.attrs,"get",""),g(e);if((p=r.__cssModules)&&(p=p[t]))return p;if(s!==Oe&&Pe(s,t))return a[t]=4,s[t];if(b=c.config.globalProperties,Pe(b,t))return b[t]},set({_:e},t,s){const{data:l,setupState:i,ctx:o}=e;return Un(i,t)?(i[t]=s,!0):l!==Oe&&Pe(l,t)?(l[t]=s,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:i,props:o,type:a}},r){let c;return!!(s[r]||e!==Oe&&r[0]!=="$"&&Pe(e,r)||Un(t,r)||Pe(o,r)||Pe(l,r)||Pe(Ss,r)||Pe(i.config.globalProperties,r)||(c=a.__cssModules)&&c[r])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Pe(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function oo(e){return ge(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let qn=!0;function Da(e){const t=ro(e),s=e.proxy,l=e.ctx;qn=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:a,watch:r,provide:c,inject:g,created:p,beforeMount:b,mounted:v,beforeUpdate:w,updated:$,activated:_,deactivated:C,beforeDestroy:A,beforeUnmount:P,destroyed:y,unmounted:k,render:S,renderTracked:Q,renderTriggered:te,errorCaptured:se,serverPrefetch:Y,expose:be,inheritAttrs:Re,components:ke,directives:Me,filters:Ce}=t;if(g&&Fa(g,l,null),a)for(const B in a){const j=a[B];ve(j)&&(l[B]=j.bind(s))}if(i){const B=i.call(s,s);Ae(B)&&(e.data=Zt(B))}if(qn=!0,o)for(const B in o){const j=o[B],_e=ve(j)?j.bind(s,s):ve(j.get)?j.get.bind(s,s):yt,xe=!ve(j)&&ve(j.set)?j.set.bind(s):yt,ie=H({get:_e,set:xe});Object.defineProperty(l,B,{enumerable:!0,configurable:!0,get:()=>ie.value,set:he=>ie.value=he})}if(r)for(const B in r)ao(r[B],l,s,B);if(c){const B=ve(c)?c.call(s):c;Reflect.ownKeys(B).forEach(j=>{is(j,B[j])})}p&&io(p,e,"c");function z(B,j){ge(j)?j.forEach(_e=>B(_e.bind(s))):j&&B(j.bind(s))}if(z(ka,b),z(It,v),z($a,w),z(Sa,$),z(_a,_),z(xa,C),z(Pa,se),z(Ea,Q),z(Ta,te),z(to,P),z(Pt,k),z(Ca,Y),ge(be))if(be.length){const B=e.exposed||(e.exposed={});be.forEach(j=>{Object.defineProperty(B,j,{get:()=>s[j],set:_e=>s[j]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===yt&&(e.render=S),Re!=null&&(e.inheritAttrs=Re),ke&&(e.components=ke),Me&&(e.directives=Me),Y&&Nn(e)}function Fa(e,t,s=yt){ge(e)&&(e=Kn(e));for(const l in e){const i=e[l];let o;Ae(i)?"default"in i?o=de(i.from||l,i.default,!0):o=de(i.from||l):o=de(i),Ke(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[l]=o}}function io(e,t,s){_t(ge(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function ao(e,t,s,l){let i=l.includes(".")?Gl(s,l):()=>s[l];if(Ie(e)){const o=t[e];ve(o)&&ht(i,o)}else if(ve(e))ht(i,e.bind(s));else if(Ae(e))if(ge(e))e.forEach(o=>ao(o,t,s,l));else{const o=ve(e.handler)?e.handler.bind(s):t[e.handler];ve(o)&&ht(i,o,e)}}function ro(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,r=o.get(t);let c;return r?c=r:!i.length&&!s&&!l?c=t:(c={},i.length&&i.forEach(g=>Gs(c,g,a,!0)),Gs(c,t,a)),Ae(t)&&o.set(t,c),c}function Gs(e,t,s,l=!1){const{mixins:i,extends:o}=t;o&&Gs(e,o,s,!0),i&&i.forEach(a=>Gs(e,a,s,!0));for(const a in t)if(!(l&&a==="expose")){const r=Ia[a]||s&&s[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Ia={data:uo,props:co,emits:co,methods:Cs,computed:Cs,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:Cs,directives:Cs,watch:Na,provide:uo,inject:Ba};function uo(e,t){return t?e?function(){return Ue(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return Cs(Kn(e),Kn(t))}function Kn(e){if(ge(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Cs(e,t){return e?Ue(Object.create(null),e,t):t}function co(e,t){return e?ge(e)&&ge(t)?[...new Set([...e,...t])]:Ue(Object.create(null),oo(e),oo(t??{})):t}function Na(e,t){if(!e)return t;if(!t)return e;const s=Ue(Object.create(null),e);for(const l in t)s[l]=Ye(e[l],t[l]);return s}function fo(){return{app:null,config:{isNativeTag:fl,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 ja=0;function Ha(e,t){return function(l,i=null){ve(l)||(l=Ue({},l)),i!=null&&!Ae(i)&&(i=null);const o=fo(),a=new WeakSet,r=[];let c=!1;const g=o.app={_uid:ja++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Tr,get config(){return o.config},set config(p){},use(p,...b){return a.has(p)||(p&&ve(p.install)?(a.add(p),p.install(g,...b)):ve(p)&&(a.add(p),p(g,...b))),g},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),g},component(p,b){return b?(o.components[p]=b,g):o.components[p]},directive(p,b){return b?(o.directives[p]=b,g):o.directives[p]},mount(p,b,v){if(!c){const w=g._ceVNode||Se(l,i);return w.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(w,p,v),c=!0,g._container=p,p.__vue_app__=g,el(w.component)}},onUnmount(p){r.push(p)},unmount(){c&&(_t(r,g._instance,16),e(null,g._container),delete g._container.__vue_app__)},provide(p,b){return o.provides[p]=b,g},runWithContext(p){const b=rs;rs=g;try{return p()}finally{rs=b}}};return g}}let rs=null;const Ua=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ot(t)}Modifiers`]||e[`${At(t)}Modifiers`];function qa(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Oe;let i=s;const o=t.startsWith("update:"),a=o&&Ua(l,t.slice(7));a&&(a.trim&&(i=s.map(p=>Ie(p)?p.trim():p)),a.number&&(i=s.map($i)));let r,c=l[r=yn(t)]||l[r=yn(ot(t))];!c&&o&&(c=l[r=yn(At(t))]),c&&_t(c,e,6,i);const g=l[r+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,_t(g,e,6,i)}}const Ka=new WeakMap;function ho(e,t,s=!1){const l=s?Ka:t.emitsCache,i=l.get(e);if(i!==void 0)return i;const o=e.emits;let a={},r=!1;if(!ve(e)){const c=g=>{const p=ho(g,t,!0);p&&(r=!0,Ue(a,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!r?(Ae(e)&&l.set(e,null),null):(ge(o)?o.forEach(c=>a[c]=null):Ue(a,o),Ae(e)&&l.set(e,a),a)}function Ys(e,t){return!e||!Os(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,At(t))||Pe(e,t))}function ay(){}function po(e){const{type:t,vnode:s,proxy:l,withProxy:i,propsOptions:[o],slots:a,attrs:r,emit:c,render:g,renderCache:p,props:b,data:v,setupState:w,ctx:$,inheritAttrs:_}=e,C=zs(e);let A,P;try{if(s.shapeFlag&4){const k=i||l,S=k;A=gt(g.call(S,k,p,b,w,v,$)),P=r}else{const k=t;A=gt(k.length>1?k(b,{attrs:r,slots:a,emit:c}):k(b,null)),P=t.props?r:za(r)}}catch(k){Es.length=0,ss(k,e,1),A=Se(vt)}let y=A;if(P&&_!==!1){const k=Object.keys(P),{shapeFlag:S}=y;k.length&&S&7&&(o&&k.some(pn)&&(P=Wa(P,o)),y=ds(y,P,!1,!0))}return s.dirs&&(y=ds(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(s.dirs):s.dirs),s.transition&&Bn(y,s.transition),A=y,zs(C),A}function Va(e,t=!0){let s;for(let l=0;l<e.length;l++){const i=e[l];if(en(i)){if(i.type!==vt||i.children==="v-if"){if(s)return;s=i}}else return}return s}const za=e=>{let t;for(const s in e)(s==="class"||s==="style"||Os(s))&&((t||(t={}))[s]=e[s]);return t},Wa=(e,t)=>{const s={};for(const l in e)(!pn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Qa(e,t,s){const{props:l,children:i,component:o}=e,{props:a,children:r,patchFlag:c}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?vo(l,a,g):!!a;if(c&8){const p=t.dynamicProps;for(let b=0;b<p.length;b++){const v=p[b];if(go(a,l,v)&&!Ys(g,v))return!0}}}else return(i||r)&&(!r||!r.$stable)?!0:l===a?!1:l?a?vo(l,a,g):!0:!!a;return!1}function vo(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let i=0;i<l.length;i++){const o=l[i];if(go(t,e,o)&&!Ys(s,o))return!0}return!1}function go(e,t,s){const l=e[s],i=t[s];return s==="style"&&Ae(l)&&Ae(i)?!bn(l,i):l!==i}function Vn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const yo={},mo=()=>Object.create(yo),bo=e=>Object.getPrototypeOf(e)===yo;function Ja(e,t,s,l=!1){const i={},o=mo();e.propsDefaults=Object.create(null),_o(e,t,i,o);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);s?e.props=l?i:Xi(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Ga(e,t,s,l){const{props:i,attrs:o,vnode:{patchFlag:a}}=e,r=Te(i),[c]=e.propsOptions;let g=!1;if((l||a>0)&&!(a&16)){if(a&8){const p=e.vnode.dynamicProps;for(let b=0;b<p.length;b++){let v=p[b];if(Ys(e.emitsOptions,v))continue;const w=t[v];if(c)if(Pe(o,v))w!==o[v]&&(o[v]=w,g=!0);else{const $=ot(v);i[$]=zn(c,r,$,w,e,!1)}else w!==o[v]&&(o[v]=w,g=!0)}}}else{_o(e,t,i,o)&&(g=!0);let p;for(const b in r)(!t||!Pe(t,b)&&((p=At(b))===b||!Pe(t,p)))&&(c?s&&(s[b]!==void 0||s[p]!==void 0)&&(i[b]=zn(c,r,b,void 0,e,!0)):delete i[b]);if(o!==r)for(const b in o)(!t||!Pe(t,b))&&(delete o[b],g=!0)}g&&St(e.attrs,"set","")}function _o(e,t,s,l){const[i,o]=e.propsOptions;let a=!1,r;if(t)for(let c in t){if(gs(c))continue;const g=t[c];let p;i&&Pe(i,p=ot(c))?!o||!o.includes(p)?s[p]=g:(r||(r={}))[p]=g:Ys(e.emitsOptions,c)||(!(c in l)||g!==l[c])&&(l[c]=g,a=!0)}if(o){const c=Te(s),g=r||Oe;for(let p=0;p<o.length;p++){const b=o[p];s[b]=zn(i,c,b,g[b],e,!Pe(g,b))}}return a}function zn(e,t,s,l,i,o){const a=e[s];if(a!=null){const r=Pe(a,"default");if(r&&l===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&ve(c)){const{propsDefaults:g}=i;if(s in g)l=g[s];else{const p=Ps(i);l=g[s]=c.call(null,t),p()}}else l=c;i.ce&&i.ce._setProp(s,l)}a[0]&&(o&&!r?l=!1:a[1]&&(l===""||l===At(s))&&(l=!0))}return l}const Ya=new WeakMap;function xo(e,t,s=!1){const l=s?Ya:t.propsCache,i=l.get(e);if(i)return i;const o=e.props,a={},r=[];let c=!1;if(!ve(e)){const p=b=>{c=!0;const[v,w]=xo(b,t,!0);Ue(a,v),w&&r.push(...w)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Ae(e)&&l.set(e,Gt),Gt;if(ge(o))for(let p=0;p<o.length;p++){const b=ot(o[p]);wo(b)&&(a[b]=Oe)}else if(o)for(const p in o){const b=ot(p);if(wo(b)){const v=o[p],w=a[b]=ge(v)||ve(v)?{type:v}:Ue({},v),$=w.type;let _=!1,C=!0;if(ge($))for(let A=0;A<$.length;++A){const P=$[A],y=ve(P)&&P.name;if(y==="Boolean"){_=!0;break}else y==="String"&&(C=!1)}else _=ve($)&&$.name==="Boolean";w[0]=_,w[1]=C,(_||Pe(w,"default"))&&r.push(b)}}const g=[a,r];return Ae(e)&&l.set(e,g),g}function wo(e){return e[0]!=="$"&&!gs(e)}const Wn=e=>e==="_"||e==="_ctx"||e==="$stable",Qn=e=>ge(e)?e.map(gt):[gt(e)],Xa=(e,t,s)=>{if(t._n)return t;const l=os((...i)=>Qn(t(...i)),s);return l._c=!1,l},ko=(e,t,s)=>{const l=e._ctx;for(const i in e){if(Wn(i))continue;const o=e[i];if(ve(o))t[i]=Xa(i,o,l);else if(o!=null){const a=Qn(o);t[i]=()=>a}}},$o=(e,t)=>{const s=Qn(t);e.slots.default=()=>s},So=(e,t,s)=>{for(const l in t)(s||!Wn(l))&&(e[l]=t[l])},Za=(e,t,s)=>{const l=e.slots=mo();if(e.vnode.shapeFlag&32){const i=t._;i?(So(l,t,s),s&&ml(l,"_",i,!0)):ko(t,l)}else t&&$o(e,t)},er=(e,t,s)=>{const{vnode:l,slots:i}=e;let o=!0,a=Oe;if(l.shapeFlag&32){const r=t._;r?s&&r===1?o=!1:So(i,t,s):(o=!t.$stable,ko(t,i)),a=t}else t&&($o(e,t),a={default:1});if(o)for(const r in i)!Wn(r)&&a[r]==null&&delete i[r]},Xe=cr;function tr(e){return sr(e)}function sr(e,t){const s=Is();s.__VUE__=!0;const{insert:l,remove:i,patchProp:o,createElement:a,createText:r,createComment:c,setText:g,setElementText:p,parentNode:b,nextSibling:v,setScopeId:w=yt,insertStaticContent:$}=e,_=(f,m,T,I=null,L=null,O=null,J=void 0,V=null,D=!!m.dynamicChildren)=>{if(f===m)return;f&&!Bt(f,m)&&(I=oe(f),he(f,L,O,!0),f=null),m.patchFlag===-2&&(D=!1,m.dynamicChildren=null);const{type:F,ref:ce,shapeFlag:ee}=m;switch(F){case Xs:C(f,m,T,I);break;case vt:A(f,m,T,I);break;case Zs:f==null&&P(m,T,I,J);break;case N:ke(f,m,T,I,L,O,J,V,D);break;default:ee&1?S(f,m,T,I,L,O,J,V,D):ee&6?Me(f,m,T,I,L,O,J,V,D):(ee&64||ee&128)&&F.process(f,m,T,I,L,O,J,V,D,E)}ce!=null&&L?$s(ce,f&&f.ref,O,m||f,!m):ce==null&&f&&f.ref!=null&&$s(f.ref,null,O,f,!0)},C=(f,m,T,I)=>{if(f==null)l(m.el=r(m.children),T,I);else{const L=m.el=f.el;m.children!==f.children&&g(L,m.children)}},A=(f,m,T,I)=>{f==null?l(m.el=c(m.children||""),T,I):m.el=f.el},P=(f,m,T,I)=>{[f.el,f.anchor]=$(f.children,m,T,I,f.el,f.anchor)},y=({el:f,anchor:m},T,I)=>{let L;for(;f&&f!==m;)L=v(f),l(f,T,I),f=L;l(m,T,I)},k=({el:f,anchor:m})=>{let T;for(;f&&f!==m;)T=v(f),i(f),f=T;i(m)},S=(f,m,T,I,L,O,J,V,D)=>{if(m.type==="svg"?J="svg":m.type==="math"&&(J="mathml"),f==null)Q(m,T,I,L,O,J,V,D);else{const F=f.el&&f.el._isVueCE?f.el:null;try{F&&F._beginPatch(),Y(f,m,L,O,J,V,D)}finally{F&&F._endPatch()}}},Q=(f,m,T,I,L,O,J,V)=>{let D,F;const{props:ce,shapeFlag:ee,transition:ae,dirs:pe}=f;if(D=f.el=a(f.type,O,ce&&ce.is,ce),ee&8?p(D,f.children):ee&16&&se(f.children,D,null,I,L,Jn(f,O),J,V),pe&&Wt(f,null,I,"created"),te(D,f,f.scopeId,J,I),ce){for(const Le in ce)Le!=="value"&&!gs(Le)&&o(D,Le,null,ce[Le],O,I);"value"in ce&&o(D,"value",null,ce.value,O),(F=ce.onVnodeBeforeMount)&&wt(F,I,f)}pe&&Wt(f,null,I,"beforeMount");const $e=nr(L,ae);$e&&ae.beforeEnter(D),l(D,m,T),((F=ce&&ce.onVnodeMounted)||$e||pe)&&Xe(()=>{F&&wt(F,I,f),$e&&ae.enter(D),pe&&Wt(f,null,I,"mounted")},L)},te=(f,m,T,I,L)=>{if(T&&w(f,T),I)for(let O=0;O<I.length;O++)w(f,I[O]);if(L){let O=L.subTree;if(m===O||Ro(O.type)&&(O.ssContent===m||O.ssFallback===m)){const J=L.vnode;te(f,J,J.scopeId,J.slotScopeIds,L.parent)}}},se=(f,m,T,I,L,O,J,V,D=0)=>{for(let F=D;F<f.length;F++){const ce=f[F]=V?Rt(f[F]):gt(f[F]);_(null,ce,m,T,I,L,O,J,V)}},Y=(f,m,T,I,L,O,J)=>{const V=m.el=f.el;let{patchFlag:D,dynamicChildren:F,dirs:ce}=m;D|=f.patchFlag&16;const ee=f.props||Oe,ae=m.props||Oe;let pe;if(T&&Qt(T,!1),(pe=ae.onVnodeBeforeUpdate)&&wt(pe,T,m,f),ce&&Wt(m,f,T,"beforeUpdate"),T&&Qt(T,!0),(ee.innerHTML&&ae.innerHTML==null||ee.textContent&&ae.textContent==null)&&p(V,""),F?be(f.dynamicChildren,F,V,T,I,Jn(m,L),O):J||j(f,m,V,null,T,I,Jn(m,L),O,!1),D>0){if(D&16)Re(V,ee,ae,T,L);else if(D&2&&ee.class!==ae.class&&o(V,"class",null,ae.class,L),D&4&&o(V,"style",ee.style,ae.style,L),D&8){const $e=m.dynamicProps;for(let Le=0;Le<$e.length;Le++){const Ee=$e[Le],Qe=ee[Ee],He=ae[Ee];(He!==Qe||Ee==="value")&&o(V,Ee,Qe,He,L,T)}}D&1&&f.children!==m.children&&p(V,m.children)}else!J&&F==null&&Re(V,ee,ae,T,L);((pe=ae.onVnodeUpdated)||ce)&&Xe(()=>{pe&&wt(pe,T,m,f),ce&&Wt(m,f,T,"updated")},I)},be=(f,m,T,I,L,O,J)=>{for(let V=0;V<m.length;V++){const D=f[V],F=m[V],ce=D.el&&(D.type===N||!Bt(D,F)||D.shapeFlag&198)?b(D.el):T;_(D,F,ce,null,I,L,O,J,!0)}},Re=(f,m,T,I,L)=>{if(m!==T){if(m!==Oe)for(const O in m)!gs(O)&&!(O in T)&&o(f,O,m[O],null,L,I);for(const O in T){if(gs(O))continue;const J=T[O],V=m[O];J!==V&&O!=="value"&&o(f,O,V,J,L,I)}"value"in T&&o(f,"value",m.value,T.value,L)}},ke=(f,m,T,I,L,O,J,V,D)=>{const F=m.el=f?f.el:r(""),ce=m.anchor=f?f.anchor:r("");let{patchFlag:ee,dynamicChildren:ae,slotScopeIds:pe}=m;pe&&(V=V?V.concat(pe):pe),f==null?(l(F,T,I),l(ce,T,I),se(m.children||[],T,ce,L,O,J,V,D)):ee>0&&ee&64&&ae&&f.dynamicChildren&&f.dynamicChildren.length===ae.length?(be(f.dynamicChildren,ae,T,L,O,J,V),(m.key!=null||L&&m===L.subTree)&&Co(f,m,!0)):j(f,m,T,ce,L,O,J,V,D)},Me=(f,m,T,I,L,O,J,V,D)=>{m.slotScopeIds=V,f==null?m.shapeFlag&512?L.ctx.activate(m,T,I,J,D):Ce(m,T,I,L,O,J,D):we(f,m,D)},Ce=(f,m,T,I,L,O,J)=>{const V=f.component=mr(f,I,L);if(jn(f)&&(V.ctx.renderer=E),_r(V,!1,J),V.asyncDep){if(L&&L.registerDep(V,z,J),!f.el){const D=V.subTree=Se(vt);A(null,D,m,T),f.placeholder=D.el}}else z(V,f,m,T,L,O,J)},we=(f,m,T)=>{const I=m.component=f.component;if(Qa(f,m,T))if(I.asyncDep&&!I.asyncResolved){B(I,m,T);return}else I.next=m,I.update();else m.el=f.el,I.vnode=m},z=(f,m,T,I,L,O,J)=>{const V=()=>{if(f.isMounted){let{next:ee,bu:ae,u:pe,parent:$e,vnode:Le}=f;{const tt=To(f);if(tt){ee&&(ee.el=Le.el,B(f,ee,J)),tt.asyncDep.then(()=>{Xe(()=>{f.isUnmounted||F()},L)});return}}let Ee=ee,Qe;Qt(f,!1),ee?(ee.el=Le.el,B(f,ee,J)):ee=Le,ae&&mn(ae),(Qe=ee.props&&ee.props.onVnodeBeforeUpdate)&&wt(Qe,$e,ee,Le),Qt(f,!0);const He=po(f),nt=f.subTree;f.subTree=He,_(nt,He,b(nt.el),oe(nt),f,L,O),ee.el=He.el,Ee===null&&Vn(f,He.el),pe&&Xe(pe,L),(Qe=ee.props&&ee.props.onVnodeUpdated)&&Xe(()=>wt(Qe,$e,ee,Le),L)}else{let ee;const{el:ae,props:pe}=m,{bm:$e,m:Le,parent:Ee,root:Qe,type:He}=f,nt=as(m);Qt(f,!1),$e&&mn($e),!nt&&(ee=pe&&pe.onVnodeBeforeMount)&&wt(ee,Ee,m),Qt(f,!0);{Qe.ce&&Qe.ce._hasShadowRoot()&&Qe.ce._injectChildStyle(He);const tt=f.subTree=po(f);_(null,tt,T,I,f,L,O),m.el=tt.el}if(Le&&Xe(Le,L),!nt&&(ee=pe&&pe.onVnodeMounted)){const tt=m;Xe(()=>wt(ee,Ee,tt),L)}(m.shapeFlag&256||Ee&&as(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&f.a&&Xe(f.a,L),f.isMounted=!0,m=T=I=null}};f.scope.on();const D=f.effect=new kl(V);f.scope.off();const F=f.update=D.run.bind(D),ce=f.job=D.runIfDirty.bind(D);ce.i=f,ce.id=f.uid,D.scheduler=()=>Fn(ce),Qt(f,!0),F()},B=(f,m,T)=>{m.component=f;const I=f.vnode.props;f.vnode=m,f.next=null,Ga(f,m.props,I,T),er(f,m.children,T),mt(),Vl(f),bt()},j=(f,m,T,I,L,O,J,V,D=!1)=>{const F=f&&f.children,ce=f?f.shapeFlag:0,ee=m.children,{patchFlag:ae,shapeFlag:pe}=m;if(ae>0){if(ae&128){xe(F,ee,T,I,L,O,J,V,D);return}else if(ae&256){_e(F,ee,T,I,L,O,J,V,D);return}}pe&8?(ce&16&&U(F,L,O),ee!==F&&p(T,ee)):ce&16?pe&16?xe(F,ee,T,I,L,O,J,V,D):U(F,L,O,!0):(ce&8&&p(T,""),pe&16&&se(ee,T,I,L,O,J,V,D))},_e=(f,m,T,I,L,O,J,V,D)=>{f=f||Gt,m=m||Gt;const F=f.length,ce=m.length,ee=Math.min(F,ce);let ae;for(ae=0;ae<ee;ae++){const pe=m[ae]=D?Rt(m[ae]):gt(m[ae]);_(f[ae],pe,T,null,L,O,J,V,D)}F>ce?U(f,L,O,!0,!1,ee):se(m,T,I,L,O,J,V,D,ee)},xe=(f,m,T,I,L,O,J,V,D)=>{let F=0;const ce=m.length;let ee=f.length-1,ae=ce-1;for(;F<=ee&&F<=ae;){const pe=f[F],$e=m[F]=D?Rt(m[F]):gt(m[F]);if(Bt(pe,$e))_(pe,$e,T,null,L,O,J,V,D);else break;F++}for(;F<=ee&&F<=ae;){const pe=f[ee],$e=m[ae]=D?Rt(m[ae]):gt(m[ae]);if(Bt(pe,$e))_(pe,$e,T,null,L,O,J,V,D);else break;ee--,ae--}if(F>ee){if(F<=ae){const pe=ae+1,$e=pe<ce?m[pe].el:I;for(;F<=ae;)_(null,m[F]=D?Rt(m[F]):gt(m[F]),T,$e,L,O,J,V,D),F++}}else if(F>ae)for(;F<=ee;)he(f[F],L,O,!0),F++;else{const pe=F,$e=F,Le=new Map;for(F=$e;F<=ae;F++){const ne=m[F]=D?Rt(m[F]):gt(m[F]);ne.key!=null&&Le.set(ne.key,F)}let Ee,Qe=0;const He=ae-$e+1;let nt=!1,tt=0;const X=new Array(He);for(F=0;F<He;F++)X[F]=0;for(F=pe;F<=ee;F++){const ne=f[F];if(Qe>=He){he(ne,L,O,!0);continue}let fe;if(ne.key!=null)fe=Le.get(ne.key);else for(Ee=$e;Ee<=ae;Ee++)if(X[Ee-$e]===0&&Bt(ne,m[Ee])){fe=Ee;break}fe===void 0?he(ne,L,O,!0):(X[fe-$e]=F+1,fe>=tt?tt=fe:nt=!0,_(ne,m[fe],T,null,L,O,J,V,D),Qe++)}const M=nt?lr(X):Gt;for(Ee=M.length-1,F=He-1;F>=0;F--){const ne=$e+F,fe=m[ne],ut=m[ne+1],lt=ne+1<ce?ut.el||Po(ut):I;X[F]===0?_(null,fe,T,lt,L,O,J,V,D):nt&&(Ee<0||F!==M[Ee]?ie(fe,T,lt,2):Ee--)}}},ie=(f,m,T,I,L=null)=>{const{el:O,type:J,transition:V,children:D,shapeFlag:F}=f;if(F&6){ie(f.component.subTree,m,T,I);return}if(F&128){f.suspense.move(m,T,I);return}if(F&64){J.move(f,m,T,E);return}if(J===N){l(O,m,T);for(let ee=0;ee<D.length;ee++)ie(D[ee],m,T,I);l(f.anchor,m,T);return}if(J===Zs){y(f,m,T);return}if(I!==2&&F&1&&V)if(I===0)V.beforeEnter(O),l(O,m,T),Xe(()=>V.enter(O),L);else{const{leave:ee,delayLeave:ae,afterLeave:pe}=V,$e=()=>{f.ctx.isUnmounted?i(O):l(O,m,T)},Le=()=>{O._isLeaving&&O[ma](!0),ee(O,()=>{$e(),pe&&pe()})};ae?ae(O,$e,Le):Le()}else l(O,m,T)},he=(f,m,T,I=!1,L=!1)=>{const{type:O,props:J,ref:V,children:D,dynamicChildren:F,shapeFlag:ce,patchFlag:ee,dirs:ae,cacheIndex:pe}=f;if(ee===-2&&(L=!1),V!=null&&(mt(),$s(V,null,T,f,!0),bt()),pe!=null&&(m.renderCache[pe]=void 0),ce&256){m.ctx.deactivate(f);return}const $e=ce&1&&ae,Le=!as(f);let Ee;if(Le&&(Ee=J&&J.onVnodeBeforeUnmount)&&wt(Ee,m,f),ce&6)le(f.component,T,I);else{if(ce&128){f.suspense.unmount(T,I);return}$e&&Wt(f,null,m,"beforeUnmount"),ce&64?f.type.remove(f,m,T,E,I):F&&!F.hasOnce&&(O!==N||ee>0&&ee&64)?U(F,m,T,!1,!0):(O===N&&ee&384||!L&&ce&16)&&U(D,m,T),I&&re(f)}(Le&&(Ee=J&&J.onVnodeUnmounted)||$e)&&Xe(()=>{Ee&&wt(Ee,m,f),$e&&Wt(f,null,m,"unmounted")},T)},re=f=>{const{type:m,el:T,anchor:I,transition:L}=f;if(m===N){q(T,I);return}if(m===Zs){k(f);return}const O=()=>{i(T),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(f.shapeFlag&1&&L&&!L.persisted){const{leave:J,delayLeave:V}=L,D=()=>J(T,O);V?V(f.el,O,D):D()}else O()},q=(f,m)=>{let T;for(;f!==m;)T=v(f),i(f),f=T;i(m)},le=(f,m,T)=>{const{bum:I,scope:L,job:O,subTree:J,um:V,m:D,a:F}=f;Eo(D),Eo(F),I&&mn(I),L.stop(),O&&(O.flags|=8,he(J,f,m,T)),V&&Xe(V,m),Xe(()=>{f.isUnmounted=!0},m)},U=(f,m,T,I=!1,L=!1,O=0)=>{for(let J=O;J<f.length;J++)he(f[J],m,T,I,L)},oe=f=>{if(f.shapeFlag&6)return oe(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const m=v(f.anchor||f.el),T=m&&m[ga];return T?v(T):m};let K=!1;const Z=(f,m,T)=>{let I;f==null?m._vnode&&(he(m._vnode,null,null,!0),I=m._vnode.component):_(m._vnode||null,f,m,null,null,null,T),m._vnode=f,K||(K=!0,Vl(I),zl(),K=!1)},E={p:_,um:he,m:ie,r:re,mt:Ce,mc:se,pc:j,pbc:be,n:oe,o:e};return{render:Z,hydrate:void 0,createApp:Ha(Z)}}function Jn({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Qt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function nr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Co(e,t,s=!1){const l=e.children,i=t.children;if(ge(l)&&ge(i))for(let o=0;o<l.length;o++){const a=l[o];let r=i[o];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=i[o]=Rt(i[o]),r.el=a.el),!s&&r.patchFlag!==-2&&Co(a,r)),r.type===Xs&&(r.patchFlag===-1&&(r=i[o]=Rt(r)),r.el=a.el),r.type===vt&&!r.el&&(r.el=a.el)}}function lr(e){const t=e.slice(),s=[0];let l,i,o,a,r;const c=e.length;for(l=0;l<c;l++){const g=e[l];if(g!==0){if(i=s[s.length-1],e[i]<g){t[l]=i,s.push(l);continue}for(o=0,a=s.length-1;o<a;)r=o+a>>1,e[s[r]]<g?o=r+1:a=r;g<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,a=s[o-1];o-- >0;)s[o]=a,a=t[a];return s}function To(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:To(t)}function Eo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Po(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Po(t.subTree):null}const Ro=e=>e.__isSuspense;let Gn=0;const or={name:"Suspense",__isSuspense:!0,process(e,t,s,l,i,o,a,r,c,g){if(e==null)ir(t,s,l,i,o,a,r,c,g);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ar(e,t,s,l,i,a,r,c,g)}},hydrate:rr,normalize:ur};function Ts(e,t){const s=e.props&&e.props[t];ve(s)&&s()}function ir(e,t,s,l,i,o,a,r,c){const{p:g,o:{createElement:p}}=c,b=p("div"),v=e.suspense=Mo(e,i,l,t,b,s,o,a,r,c);g(null,v.pendingBranch=e.ssContent,b,null,l,v,o,a),v.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),g(null,e.ssFallback,t,s,l,null,o,a),us(v,e.ssFallback)):v.resolve(!1,!0)}function ar(e,t,s,l,i,o,a,r,{p:c,um:g,o:{createElement:p}}){const b=t.suspense=e.suspense;b.vnode=t,t.el=e.el;const v=t.ssContent,w=t.ssFallback,{activeBranch:$,pendingBranch:_,isInFallback:C,isHydrating:A}=b;if(_)b.pendingBranch=v,Bt(_,v)?(c(_,v,b.hiddenContainer,null,i,b,o,a,r),b.deps<=0?b.resolve():C&&(A||(c($,w,s,l,i,null,o,a,r),us(b,w)))):(b.pendingId=Gn++,A?(b.isHydrating=!1,b.activeBranch=_):g(_,i,b),b.deps=0,b.effects.length=0,b.hiddenContainer=p("div"),C?(c(null,v,b.hiddenContainer,null,i,b,o,a,r),b.deps<=0?b.resolve():(c($,w,s,l,i,null,o,a,r),us(b,w))):$&&Bt($,v)?(c($,v,s,l,i,b,o,a,r),b.resolve(!0)):(c(null,v,b.hiddenContainer,null,i,b,o,a,r),b.deps<=0&&b.resolve()));else if($&&Bt($,v))c($,v,s,l,i,b,o,a,r),us(b,v);else if(Ts(t,"onPending"),b.pendingBranch=v,v.shapeFlag&512?b.pendingId=v.component.suspenseId:b.pendingId=Gn++,c(null,v,b.hiddenContainer,null,i,b,o,a,r),b.deps<=0)b.resolve();else{const{timeout:P,pendingId:y}=b;P>0?setTimeout(()=>{b.pendingId===y&&b.fallback(w)},P):P===0&&b.fallback(w)}}function Mo(e,t,s,l,i,o,a,r,c,g,p=!1){const{p:b,m:v,um:w,n:$,o:{parentNode:_,remove:C}}=g;let A;const P=dr(e);P&&t&&t.pendingBranch&&(A=t.pendingId,t.deps++);const y=e.props?Si(e.props.timeout):void 0,k=o,S={vnode:e,parent:t,parentComponent:s,namespace:a,container:l,hiddenContainer:i,deps:0,pendingId:Gn++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(Q=!1,te=!1){const{vnode:se,activeBranch:Y,pendingBranch:be,pendingId:Re,effects:ke,parentComponent:Me,container:Ce,isInFallback:we}=S;let z=!1;S.isHydrating?S.isHydrating=!1:Q||(z=Y&&be.transition&&be.transition.mode==="out-in",z&&(Y.transition.afterLeave=()=>{Re===S.pendingId&&(v(be,Ce,o===k?$(Y):o,0),In(ke),we&&se.ssFallback&&(se.ssFallback.el=null))}),Y&&(_(Y.el)===Ce&&(o=$(Y)),w(Y,Me,S,!0),!z&&we&&se.ssFallback&&Xe(()=>se.ssFallback.el=null,S)),z||v(be,Ce,o,0)),us(S,be),S.pendingBranch=null,S.isInFallback=!1;let B=S.parent,j=!1;for(;B;){if(B.pendingBranch){B.effects.push(...ke),j=!0;break}B=B.parent}!j&&!z&&In(ke),S.effects=[],P&&t&&t.pendingBranch&&A===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ts(se,"onResolve")},fallback(Q){if(!S.pendingBranch)return;const{vnode:te,activeBranch:se,parentComponent:Y,container:be,namespace:Re}=S;Ts(te,"onFallback");const ke=$(se),Me=()=>{S.isInFallback&&(b(null,Q,be,ke,Y,null,Re,r,c),us(S,Q))},Ce=Q.transition&&Q.transition.mode==="out-in";Ce&&(se.transition.afterLeave=Me),S.isInFallback=!0,w(se,Y,null,!0),Ce||Me()},move(Q,te,se){S.activeBranch&&v(S.activeBranch,Q,te,se),S.container=Q},next(){return S.activeBranch&&$(S.activeBranch)},registerDep(Q,te,se){const Y=!!S.pendingBranch;Y&&S.deps++;const be=Q.vnode.el;Q.asyncDep.catch(Re=>{ss(Re,Q,0)}).then(Re=>{if(Q.isUnmounted||S.isUnmounted||S.pendingId!==Q.suspenseId)return;Q.asyncResolved=!0;const{vnode:ke}=Q;Zn(Q,Re),be&&(ke.el=be);const Me=!be&&Q.subTree.el;te(Q,ke,_(be||Q.subTree.el),be?null:$(Q.subTree),S,a,se),Me&&(ke.placeholder=null,C(Me)),Vn(Q,ke.el),Y&&--S.deps===0&&S.resolve()})},unmount(Q,te){S.isUnmounted=!0,S.activeBranch&&w(S.activeBranch,s,Q,te),S.pendingBranch&&w(S.pendingBranch,s,Q,te)}};return S}function rr(e,t,s,l,i,o,a,r,c){const g=t.suspense=Mo(t,l,s,e.parentNode,document.createElement("div"),null,i,o,a,r,!0),p=c(e,g.pendingBranch=t.ssContent,s,g,o,a);return g.deps===0&&g.resolve(!1,!0),p}function ur(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Ao(l?s.default:s),e.ssFallback=l?Ao(s.fallback):Se(vt)}function Ao(e){let t;if(ve(e)){const s=cs&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=et,Lo())}return ge(e)&&(e=Va(e)),e=gt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function cr(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):In(e)}function us(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;s.el=i,l&&l.subTree===s&&(l.vnode.el=i,Vn(l,i))}function dr(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const N=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),vt=Symbol.for("v-cmt"),Zs=Symbol.for("v-stc"),Es=[];let et=null;function u(e=!1){Es.push(et=e?null:[])}function Lo(){Es.pop(),et=Es[Es.length-1]||null}let cs=1;function Oo(e,t=!1){cs+=e,e<0&&et&&t&&(et.hasOnce=!0)}function Do(e){return e.dynamicChildren=cs>0?et||Gt:null,Lo(),cs>0&&et&&et.push(e),e}function d(e,t,s,l,i,o){return Do(n(e,t,s,l,i,o,!0))}function st(e,t,s,l,i){return Do(Se(e,t,s,l,i,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function Bt(e,t){return e.type===t.type&&e.key===t.key}const Fo=({key:e})=>e??null,tn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Ie(e)||Ke(e)||ve(e)?{i:Ge,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,i=null,o=e===N?0:1,a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Fo(t),ref:t&&tn(t),scopeId:Ql,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:l,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ge};return r?(Yn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Ie(s)?8:16),cs>0&&!a&&et&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&et.push(c),c}const Se=fr;function fr(e,t=null,s=null,l=0,i=null,o=!1){if((!e||e===so)&&(e=vt),en(e)){const r=ds(e,t,!0);return s&&Yn(r,s),cs>0&&!o&&et&&(r.shapeFlag&6?et[et.indexOf(e)]=r:et.push(r)),r.patchFlag=-2,r}if(Cr(e)&&(e=e.__vccOpts),t){t=hr(t);let{class:r,style:c}=t;r&&!Ie(r)&&(t.class=R(r)),Ae(c)&&(Ln(c)&&!ge(c)&&(c=Ue({},c)),t.style=qe(c))}const a=Ie(e)?1:Ro(e)?128:ya(e)?64:Ae(e)?4:ve(e)?2:0;return n(e,t,s,l,i,a,o,!0)}function hr(e){return e?Ln(e)||bo(e)?Ue({},e):e:null}function ds(e,t,s=!1,l=!1){const{props:i,ref:o,patchFlag:a,children:r,transition:c}=e,g=t?vr(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Fo(g),ref:t&&t.ref?s&&o?ge(o)?o.concat(tn(t)):[o,tn(t)]:tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==N?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ds(e.ssContent),ssFallback:e.ssFallback&&ds(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Bn(p,c.clone(p)),p}function me(e=" ",t=0){return Se(Xs,null,e,t)}function pr(e,t){const s=Se(Zs,null,e);return s.staticCount=t,s}function G(e="",t=!1){return t?(u(),st(vt,null,e)):Se(vt,null,e)}function gt(e){return e==null||typeof e=="boolean"?Se(vt):ge(e)?Se(N,null,e.slice()):en(e)?Rt(e):Se(Xs,null,String(e))}function Rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ds(e)}function Yn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(ge(t))s=16;else if(typeof t=="object")if(l&65){const i=t.default;i&&(i._c&&(i._d=!1),Yn(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!bo(t)?t._ctx=Ge:i===3&&Ge&&(Ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:Ge},s=32):(t=String(t),l&64?(s=16,t=[me(t)]):s=8);e.children=t,e.shapeFlag|=s}function vr(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const i in l)if(i==="class")t.class!==l.class&&(t.class=R([t.class,l.class]));else if(i==="style")t.style=qe([t.style,l.style]);else if(Os(i)){const o=t[i],a=l[i];a&&o!==a&&!(ge(o)&&o.includes(a))&&(t[i]=o?[].concat(o,a):a)}else i!==""&&(t[i]=l[i])}return t}function wt(e,t,s,l=null){_t(e,t,7,[s,l])}const gr=fo();let yr=0;function mr(e,t,s){const l=e.type,i=(t?t.appContext:e.appContext)||gr,o={uid:yr++,vnode:e,type:l,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xo(l,i),emitsOptions:ho(l,i),emit:null,emitted:null,propsDefaults:Oe,inheritAttrs:l.inheritAttrs,ctx:Oe,data:Oe,props:Oe,attrs:Oe,slots:Oe,refs:Oe,setupState:Oe,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=qa.bind(null,o),e.ce&&e.ce(o),o}let Ve=null;const br=()=>Ve||Ge;let sn,Xn;{const e=Is(),t=(s,l)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(l),o=>{i.length>1?i.forEach(a=>a(o)):i[0](o)}};sn=t("__VUE_INSTANCE_SETTERS__",s=>Ve=s),Xn=t("__VUE_SSR_SETTERS__",s=>fs=s)}const Ps=e=>{const t=Ve;return sn(e),e.scope.on(),()=>{e.scope.off(),sn(t)}},Io=()=>{Ve&&Ve.scope.off(),sn(null)};function Bo(e){return e.vnode.shapeFlag&4}let fs=!1;function _r(e,t=!1,s=!1){t&&Xn(t);const{props:l,children:i}=e.vnode,o=Bo(e);Ja(e,l,o,t),Za(e,i,s||t);const a=o?xr(e,t):void 0;return t&&Xn(!1),a}function xr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oa);const{setup:l}=s;if(l){mt();const i=e.setupContext=l.length>1?kr(e):null,o=Ps(e),a=ts(l,e,0,[e.props,i]),r=vl(a);if(bt(),o(),(r||e.sp)&&!as(e)&&Nn(e),r){if(a.then(Io,Io),t)return a.then(c=>{Zn(e,c)}).catch(c=>{ss(c,e,0)});e.asyncDep=a}else Zn(e,a)}else No(e)}function Zn(e,t,s){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=Hl(t)),No(e)}function No(e,t,s){const l=e.type;e.render||(e.render=l.render||yt);{const i=Ps(e);mt();try{Da(e)}finally{bt(),i()}}}const wr={get(e,t){return We(e,"get",""),e[t]}};function kr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,wr),slots:e.slots,emit:e.emit,expose:t}}function el(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hl(Zi(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ss)return Ss[s](e)},has(t,s){return s in t||s in Ss}})):e.proxy}const $r=/(?:^|[-_])\w/g,Sr=e=>e.replace($r,t=>t.toUpperCase()).replace(/[-_]/g,"");function jo(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=jo(t);if(!l&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(l=i[1])}if(!l&&e){const i=o=>{for(const a in o)if(o[a]===t)return a};l=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return l?Sr(l):s?"App":"Anonymous"}function Cr(e){return ve(e)&&"__vccOpts"in e}const H=(e,t)=>la(e,t,fs),Tr="3.5.29";let tl;const Uo=typeof window<"u"&&window.trustedTypes;if(Uo)try{tl=Uo.createPolicy("vue",{createHTML:e=>e})}catch{}const qo=tl?e=>tl.createHTML(e):e=>e,Er="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1998/Math/MathML",Mt=typeof document<"u"?document:null,Ko=Mt&&Mt.createElement("template"),Rr={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const i=t==="svg"?Mt.createElementNS(Er,e):t==="mathml"?Mt.createElementNS(Pr,e):s?Mt.createElement(e,{is:s}):Mt.createElement(e);return e==="select"&&l&&l.multiple!=null&&i.setAttribute("multiple",l.multiple),i},createText:e=>Mt.createTextNode(e),createComment:e=>Mt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Mt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,i,o){const a=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Ko.innerHTML=qo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const r=Ko.content;if(l==="svg"||l==="mathml"){const c=r.firstChild;for(;c.firstChild;)r.appendChild(c.firstChild);r.removeChild(c)}t.insertBefore(r,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Mr=Symbol("_vtc");function Ar(e,t,s){const l=e[Mr];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vo=Symbol("_vod"),Lr=Symbol("_vsh"),Or=Symbol(""),Dr=/(?:^|;)\s*display\s*:/;function Fr(e,t,s){const l=e.style,i=Ie(s);let o=!1;if(s&&!i){if(t)if(Ie(t))for(const a of t.split(";")){const r=a.slice(0,a.indexOf(":")).trim();s[r]==null&&nn(l,r,"")}else for(const a in t)s[a]==null&&nn(l,a,"");for(const a in s)a==="display"&&(o=!0),nn(l,a,s[a])}else if(i){if(t!==s){const a=l[Or];a&&(s+=";"+a),l.cssText=s,o=Dr.test(s)}}else t&&e.removeAttribute("style");Vo in e&&(e[Vo]=o?l.display:"",e[Lr]&&(l.display="none"))}const zo=/\s*!important$/;function nn(e,t,s){if(ge(s))s.forEach(l=>nn(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=Ir(e,t);zo.test(s)?e.setProperty(At(l),s.replace(zo,""),"important"):e[l]=s}}const Wo=["Webkit","Moz","ms"],sl={};function Ir(e,t){const s=sl[t];if(s)return s;let l=ot(t);if(l!=="filter"&&l in e)return sl[t]=l;l=Fs(l);for(let i=0;i<Wo.length;i++){const o=Wo[i]+l;if(o in e)return sl[t]=o}return t}const Qo="http://www.w3.org/1999/xlink";function Jo(e,t,s,l,i,o=Ri(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Qo,t.slice(6,t.length)):e.setAttributeNS(Qo,t,s):s==null||o&&!_l(s)?e.removeAttribute(t):e.setAttribute(t,o?"":ct(s)?String(s):s)}function Go(e,t,s,l,i){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?qo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const r=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(r!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let a=!1;if(s===""||s==null){const r=typeof e[t];r==="boolean"?s=_l(s):s==null&&r==="string"?(s="",a=!0):r==="number"&&(s=0,a=!0)}try{e[t]=s}catch{}a&&e.removeAttribute(i||t)}function Br(e,t,s,l){e.addEventListener(t,s,l)}function Nr(e,t,s,l){e.removeEventListener(t,s,l)}const Yo=Symbol("_vei");function jr(e,t,s,l,i=null){const o=e[Yo]||(e[Yo]={}),a=o[t];if(l&&a)a.value=l;else{const[r,c]=Hr(t);if(l){const g=o[t]=Kr(l,i);Br(e,r,g,c)}else a&&(Nr(e,r,a,c),o[t]=void 0)}}const Xo=/(?:Once|Passive|Capture)$/;function Hr(e){let t;if(Xo.test(e)){t={};let l;for(;l=e.match(Xo);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let nl=0;const Ur=Promise.resolve(),qr=()=>nl||(Ur.then(()=>nl=0),nl=Date.now());function Kr(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;_t(Vr(l,s.value),t,5,[l])};return s.value=e,s.attached=qr(),s}function Vr(e,t){if(ge(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>i=>!i._stopped&&l&&l(i))}else return t}const Zo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zr=(e,t,s,l,i,o)=>{const a=i==="svg";t==="class"?Ar(e,l,a):t==="style"?Fr(e,s,l):Os(t)?pn(t)||jr(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wr(e,t,l,a))?(Go(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jo(e,t,l,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ie(l))?Go(e,ot(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Jo(e,t,l,a))};function Wr(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zo(t)&&ve(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Zo(t)&&Ie(s)?!1:t in e}const Qr=["ctrl","shift","alt","meta"],Jr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Qr.some(s=>e[`${s}Key`]&&!t.includes(s))},at=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((i,...o)=>{for(let a=0;a<t.length;a++){const r=Jr[t[a]];if(r&&r(i,t))return}return e(i,...o)}))},Gr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Rs=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(i=>{if(!("key"in i))return;const o=At(i.key);if(t.some(a=>a===o||Gr[a]===o))return e(i)}))},Yr=Ue({patchProp:zr},Rr);let ei;function Xr(){return ei||(ei=tr(Yr))}const Zr=((...e)=>{const t=Xr().createApp(...e),{mount:s}=t;return t.mount=l=>{const i=tu(l);if(!i)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=s(i,!1,eu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t});function eu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tu(e){return Ie(e)?document.querySelector(e):e}function su(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(i){return l},beforeUnsubscribe(i){return l}}}async function nu(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function lu(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const a=await nu();if(!a)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new a(su(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(r=>{l||e.onMessage(r)}),await s.create()}catch(a){e.onError?.(a)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function ou(e){let t=!1;const s=lu({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class ln extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class iu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class ll{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const i={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:i,credentials:this.authToken?"omit":"same-origin"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new ln(o.status);if(!o.ok){const a=await o.text().catch(()=>"");throw new iu(o.status,a)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const on="ss-dash-theme",ol="ss-theme-change";function Ms(){if(typeof window>"u")return"light";const e=localStorage.getItem(on);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function au(e){typeof window>"u"||(localStorage.setItem(on,e),window.dispatchEvent(new CustomEvent(ol,{detail:e})))}function ru(){const t=Ms()==="dark"?"light":"dark";return au(t),t}function ti(e){if(typeof window>"u")return()=>{};const t=o=>{const a=o.detail;(a==="dark"||a==="light")&&e(a)},s=o=>{if(o.key===on){const a=o.newValue;e(a==="dark"||a==="light"?a:Ms())}},l=window.matchMedia("(prefers-color-scheme: dark)"),i=o=>{localStorage.getItem(on)||e(o.matches?"dark":"light")};return window.addEventListener(ol,t),window.addEventListener("storage",s),l.addEventListener("change",i),()=>{window.removeEventListener(ol,t),window.removeEventListener("storage",s),l.removeEventListener("change",i)}}const uu={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function cu(e){return{...uu,...e}}let du=0;function fu(){return`ss-grad-${du++}`}function hu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let i=1;i<e.length;i++){const o=e[i];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function pu(e,t){if(e.length<2)return null;const s=cu(t),l=hu(e),i=l.max-l.min||1,o=s.width-s.padding*2,a=s.height-s.padding*2,r=s.padding,c=e.length,g=Array.from({length:c});for(let _=0;_<c;_++){const C=r+_/(c-1)*o,A=r+a-(e[_]-l.min)/i*a;g[_]=`${C.toFixed(1)},${A.toFixed(1)}`}const p=g.join(" "),b=(r+o).toFixed(1),v=(r+a).toFixed(1),w=r.toFixed(1),$=`M${g[0]} `+g.slice(1).map(_=>`L${_}`).join(" ")+` L${b},${v} L${w},${v} Z`;return{points:p,areaPath:$,gradientId:fu(),options:s,stats:l}}const vu=5e3,si=1e4,ni=100,gu=500;function yu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function mu(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(a=>s(a,30)),i=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+i+"]";return o.length>t?"["+e.length+" items]":o}function bu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const i=[];for(let c=0;c<Math.min(l.length,4);c++)i.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",a="{ "+i.join(", ")+o+" }";return a.length<=t?a:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function _u(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),i=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${i}m`:i>0?`${i}m ${t%60}s`:`${t}s`}function Nt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function li(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function jt(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)):new Date(e);return Number.isNaN(t.getTime())?"-":t.toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})+"."+String(t.getMilliseconds()).padStart(3,"0")}function kt(e){if(!e)return"-";const t=typeof e=="string"?new Date(li(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function xu(e){return e>gu?"very-slow":e>ni?"slow":"normal"}function il(e,t="ss-dash"){const s=xu(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function an(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?yu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?mu(e,t,an):typeof e=="object"?bu(e,t,an):String(e)}function wu(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 ku(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const $u=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function Su(e){const t=new URLSearchParams,s=e;for(const{key:l,param:i,isNumeric:o}of $u){const a=s[l];(o?a!=null:a)&&t.set(i,String(a))}if(e.filters)for(const[l,i]of Object.entries(e.filters))i&&t.set(l,i);return t.toString()}function Cu(e,t,s=2){if(t<=1)return[1];const l=[],i=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),i>2&&l.push("...");for(let a=i;a<=o;a++)l.push(a);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Tu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],oi="/admin/api/debug",ii={tracing:!1,process:!1,system:!1,http:!1,db:!1,redis:!1,queues:!1,cache:!1,app:!1,log:!1,emails:!1,dashboard:!1,customPanes:[]};function Eu(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Tu)t[l]=s?.[l]??!1;return t}async function Pu(e,t=oi){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Ru(e){const{baseUrl:t="",debugEndpoint:s=oi,authToken:l}=e,i=new ll({baseUrl:t,authToken:l});try{const o=await Pu(i,s);return Eu(o)}catch{return ii}}const Mu={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Au(e){return Mu[e]||`/${e}`}class ai{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const i=Au(t),o=s?`${this.basePath}${i}?${s}`:`${this.basePath}${i}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}function Lu(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Ou(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Du{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new ll({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ai(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const i=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(i)}catch(i){if(this.shouldIgnoreError(i,s.signal,l))return;this.handleFetchError(i,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const i=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(i,l):await this.client.delete(i);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Ou(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return Su({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Lu(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof ln){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?vu:si;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const Fe={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"/>']}},Fu="ss-col-resize",ri="ss-resizing";function Iu(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function i(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let a=function(c){c.preventDefault(),c.stopPropagation(),i();const g=c.clientX,p=o.offsetWidth;r.classList.add(ri),r.setPointerCapture(c.pointerId);function b(w){const $=w.clientX-g,_=Math.max(30,p+$);o.style.width=_+"px"}function v(){r.classList.remove(ri),r.removeEventListener("pointermove",b),r.removeEventListener("pointerup",v)}r.addEventListener("pointermove",b),r.addEventListener("pointerup",v)};if(!o.textContent?.trim())continue;const r=document.createElement("div");r.className=Fu,o.appendChild(r),r.addEventListener("pointerdown",a),s.push(()=>{r.removeEventListener("pointerdown",a),r.remove()})}return()=>{for(const o of s)o()}}function Bu(e){const{container:t,handle:s,topPane:l,bottomPane:i,storageKey:o,minHeight:a=60}=e;if(o){const c=localStorage.getItem(o);if(c){const g=parseFloat(c);g>0&&g<1&&(l.style.flex=`${g}`,i.style.flex=`${1-g}`)}}function r(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,b=c.clientY,v=l.getBoundingClientRect().height;function w(_){const C=_.clientY-b;let A=v+C;const P=p-a-s.offsetHeight;A=Math.max(a,Math.min(A,P));const y=A/(p-s.offsetHeight);l.style.flex=`${y}`,i.style.flex=`${1-y}`}function $(){if(s.removeEventListener("pointermove",w),s.removeEventListener("pointerup",$),o){const _=t.getBoundingClientRect().height-s.offsetHeight;if(_>0){const C=l.getBoundingClientRect().height/_;localStorage.setItem(o,String(C))}}}s.addEventListener("pointermove",w),s.addEventListener("pointerup",$)}return s.addEventListener("pointerdown",r),()=>{s.removeEventListener("pointerdown",r)}}function Nu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function ui(e){const t={};for(const[s,l]of Object.entries(e))Hu.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const ju=["all","error","warn","info","debug"];function rn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function ci(e){return e.msg||e.message||JSON.stringify(e)}function Ht(e){return e.createdAt||e.created_at||e.time||e.timestamp||0}function Ut(e){const t=e.data||{};return e.requestId||e.request_id||e["x-request-id"]||t.requestId||t.request_id||t["x-request-id"]||""}function di(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const Hu=new Set(["level","time","pid","hostname","msg","message","v","name","levelName","level_name","timestamp","createdAt","created_at","requestId","request_id","x-request-id","id","data"]);function $t(e){if(e.data){const t=Nu(e.data);if(t){const s=ui(t);if(s)return s}}return ui(e)}function ze(e,...t){for(const s of t){const l=e[s];if(l!=null)return l}}function Uu(e){return ze(e,"createdAt","created_at","timestamp")}function qu(e){return ze(e,"method","sql_method")??""}function fi(e){return ze(e,"sqlNormalized","normalizedSql","sql_normalized","sql")??""}function Ku(e,t){let s=0,l=0;for(const c of e){const g=ze(c,"duration")??0;l+=g,g>ni&&s++}const i=hi(e);let o=0;for(const c of i.values())c>1&&(o+=c);const a=e.length>0?l/e.length:0,r=t?.total??e.length;return{slowCount:s,dupCount:o,avgDuration:a,totalCount:r}}function Vu(e){return{id:ze(e,"id")??0,sql:ze(e,"sql","sql_text")??"",sqlNormalized:fi(e),duration:ze(e,"duration")??0,method:qu(e),model:ze(e,"model")??"",connection:ze(e,"connection")??"",timestamp:Uu(e)??0,inTransaction:ze(e,"inTransaction","in_transaction")??!1}}function hi(e){const t=new Map;for(const s of e){const i=fi(s);t.set(i,(t.get(i)||0)+1)}return t}function zu(e){const t=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&t.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&t.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&t.push(`width=${e["Plan Width"]}`),e.Filter&&t.push(`filter: ${e.Filter}`),e["Index Cond"]&&t.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&t.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&t.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const s=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];t.push(`sort: ${s}`)}return t}function pi(e,t=0){if(!e)return[];const l=[{depth:t,nodeType:e["Node Type"]||"Unknown",relationName:e["Relation Name"]||"",alias:e.Alias&&e.Alias!==e["Relation Name"]?e.Alias:"",indexName:e["Index Name"]||"",metrics:zu(e),isRoot:t===0}],i=e.Plans||[];for(const o of i)l.push(...pi(o,t+1));return l}function Wu(e){return!e||typeof e!="object"?!1:"Plan"in e}function Qu(e){if(!e||e.length===0)return[];const t=e[0];return!t||typeof t!="object"?[]:Object.keys(t)}function Ju(e){return e==null?"-":String(e)}function Gu(e){const t=[{key:"id",label:"#",width:"40px",type:"index"},{key:"sql",label:"SQL",type:"sql"},{key:"duration",label:"Duration",width:"70px",sortable:!0,type:"duration"},{key:"method",label:"Method",width:"60px",type:"method"},{key:"model",label:"Model",width:"90px",type:"model"},{key:"connection",label:"Connection",width:"80px",type:"connection"},{key:"createdAt",label:"Time",width:"90px",sortable:!0,type:"time"}];return t.push({key:"id",label:"",width:"70px",type:"explain"}),t}function Yu(){return[{key:"sqlNormalized",label:"Pattern",type:"sql"},{key:"count",label:"Count",width:"60px",sortable:!0},{key:"avgDuration",label:"Avg",width:"70px",sortable:!0,type:"duration"},{key:"minDuration",label:"Min",width:"70px",type:"duration"},{key:"maxDuration",label:"Max",width:"70px",type:"duration"},{key:"totalDuration",label:"Total",width:"70px",sortable:!0,type:"duration"},{key:"percentOfTotal",label:"% Time",width:"60px"}]}class Xu{state;constructor(t="list"){this.state={viewMode:t,sort:{key:t==="list"?"createdAt":"count",dir:"desc"},expandedIds:new Set,explainData:new Map,search:""}}setViewMode(t){return this.state.viewMode=t,this.state.sort={key:t==="list"?"createdAt":"count",dir:"desc"},this.state.expandedIds=new Set,this.state.explainData=new Map,this.state}toggleSort(t){return this.state.sort.key===t?this.state.sort={key:t,dir:this.state.sort.dir==="asc"?"desc":"asc"}:this.state.sort={key:t,dir:"desc"},this.state}toggleExpand(t){return this.state.expandedIds.has(t)?this.state.expandedIds.delete(t):this.state.expandedIds.add(t),this.state}isExpanded(t){return this.state.expandedIds.has(t)}setSearch(t){return this.state.search=t,this.state}startExplain(t){this.state.explainData.set(t,{loading:!0})}completeExplain(t,s){this.state.explainData.set(t,{loading:!1,result:s})}failExplain(t,s){this.state.explainData.set(t,{loading:!1,error:s})}clearExplain(){this.state.explainData=new Map}getExplainState(t){return this.state.explainData.get(t)}}const Zu=["all","active","waiting","delayed","completed","failed"];function ec(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function tc(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function sc(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function nc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function lc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function al(e,t,s,l=0){return e[t]??e[s]??l}function oc(e){return{method:e.method||"",url:e.url||"",statusCode:al(e,"status_code","statusCode"),totalDuration:al(e,"total_duration","totalDuration")||e.duration||0,spanCount:al(e,"span_count","spanCount"),spans:nc(e.spans),warnings:lc(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const ic=["password","secret","token","key","credential","auth"];function ac(e){const t=e.toLowerCase();return ic.some(s=>t.includes(s))}function rc(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 uc={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function cc(e){return uc[e]||e}const dc={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function fc(e){return dc[e]||e}function hc(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function pc(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 vc(e){return Object.entries(e).map(([t,s])=>({key:t,value:rc(s),secret:ac(t)}))}function gc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const yc=["healthy","active","connected","available","ready"],mc=["errored","unavailable"];function bc(e){return yc.includes(e)?"ok":mc.includes(e)?"err":""}function je(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function un(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!je(e)}function cn(e,t=""){if(!un(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const i=t?`${t}.${l}`:l,o=e[l];un(o)?s.push(...cn(o,i)):s.push({path:i,value:o})}return s}function _c(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function vi(e){if(e==null||typeof e!="object"||Array.isArray(e)||je(e))return 1;let t=0;for(const s of Object.keys(e))t+=vi(e[s]);return t}function xc(e){if(!un(e))return[];const t=[];for(const s of Object.keys(e))un(e[s])&&t.push(s);return t}function wc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function kc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,i=W({...ii}),o=W(!0);return It(async()=>{i.value=await Ru({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:i,loading:o}}function gi(){const e=W(Ms());let t=null;function s(i){e.value=i}function l(){const i=ru();return e.value=i,i}return It(()=>{e.value=Ms(),t=ti(s)}),Pt(()=>{t?.()}),{theme:e,toggleTheme:l}}function $c(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function Sc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function rl(e){try{return await e()}catch{return null}}function Cc(e){return{fetchGroupedQueries:()=>rl(()=>e.fetchGroupedQueries()),explainQuery:t=>rl(()=>e.explainQuery(t)),fetchEmailPreview:async t=>(await rl(()=>e.fetchEmailPreview(t)))?.html||null}}function Tc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function Ec(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof ln&&(t.value=!0),null}}}}function As(e,t,s){const l=t(),i=Sc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(i).length>0?i:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function Pc(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function Rc(e,t,s){return{async mutate(l,i="post",o){return e.mutate(l,i,o)},refresh(){As(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function Mc(e,t,s,l){ht(t,()=>{s.pagination.page=1;for(const i of Object.keys(s.filter))i==="search"?s.filter.search="":delete s.filter[i];s.sort.column="",s.data.value=null,e.setSection(t()),As(e,t,s)}),l&&ht(l,()=>{As(e,t,s),e.handleRefreshSignal()})}function Ac(e){return{data:W(null),loading:W(!1),error:W(null),isUnauthorized:W(!1),timeRange:W("1h"),pagination:Zt({page:1,perPage:e,total:0,totalPages:1}),filter:Zt({search:""}),sort:Zt({column:"",direction:"desc"})}}function Lc(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function rt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:i,perPage:o=50,refreshKey:a}=t,r=Ac(o),c=new Du({baseUrl:s,endpoint:l,authToken:i,section:e(),perPage:o,callbacks:$c(r)}),g=c.getApi(),b=Pc(r,()=>{As(c,e,r),c.fetch(!1)}),v=Rc(c,e,r),w={...Ec(g,r.isUnauthorized),...Cc(g),...Tc(g)};return Mc(c,e,r,a),It(()=>{As(c,e,r),c.start()}),Pt(()=>{c.stop()}),Lc(r,b,v,w)}const Oc=["title","aria-label"],Dc=["viewBox","innerHTML"],Fc=["viewBox","innerHTML"],Ic=Ne({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=gi(),i=H(()=>s.value==="dark"),o=H(()=>i.value?"Switch to light theme":"Switch to dark theme"),a=H(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(r,c)=>(u(),d("button",{type:"button",class:R(a.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...g)=>x(l)&&x(l)(...g))},[i.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Fe).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Fe).sun.elements.join("")},null,8,Dc)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Fe).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Fe).moon.elements.join("")},null,8,Fc))],10,Oc))}}),Bc=["data-theme"],Nc={class:"ss-dash-header"},jc={class:"ss-dash-header-center"},Hc={class:"ss-dash-header-right"},Uc=["href"],qc={class:"ss-dash-body"},Kc={class:"ss-dash-nav"},Vc=["data-ss-section","onClick","title"],zc={class:"ss-dash-nav-icon"},Wc=["viewBox","innerHTML"],Qc={class:"ss-dash-nav-label"},Jc={key:0,class:"ss-dash-nav-sep"},Gc=["onClick","title"],Yc={class:"ss-dash-nav-icon"},Xc=["viewBox","innerHTML"],Zc={class:"ss-dash-nav-label"},ed=["title"],td=["viewBox","innerHTML"],sd=["viewBox","innerHTML"],nd={class:"ss-dash-main"},ld=["id"],od={class:"ss-dash-pane-inner"},id={key:1,class:"ss-dash-empty"},ad=Ne({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=pt(()=>Promise.resolve().then(()=>vh)),s=pt(()=>Promise.resolve().then(()=>vp)),l=pt(()=>Promise.resolve().then(()=>Zp)),i=pt(()=>Promise.resolve().then(()=>iv)),o=pt(()=>Promise.resolve().then(()=>vv)),a=pt(()=>Promise.resolve().then(()=>Bv)),r=pt(()=>Promise.resolve().then(()=>tg)),c=pt(()=>Promise.resolve().then(()=>wg)),g=pt(()=>Promise.resolve().then(()=>zg)),p=pt(()=>Promise.resolve().then(()=>x1)),b=pt(()=>Promise.resolve().then(()=>ny)),v=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],w=e,{theme:$}=gi(),{features:_}=kc({baseUrl:w.baseUrl,debugEndpoint:w.debugEndpoint,authToken:w.authToken}),C=W("overview"),A=W(!1),P=W(!1),y=W(0);is("ss-refresh-key",y),is("ss-base-url",w.baseUrl),is("ss-dashboard-endpoint",w.dashboardEndpoint),is("ss-debug-endpoint",w.debugEndpoint),is("ss-auth-token",w.authToken),typeof window<"u"&&(A.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let k=null;function S(){if(k&&(k(),k=null),!w.channelName)return;k=ou({baseUrl:w.baseUrl,channelName:w.channelName,authToken:w.authToken,onMessage:()=>{y.value+=1},onConnect:()=>{P.value=!0},onDisconnect:()=>{P.value=!1},onError:()=>{P.value=!1}}).unsubscribe}It(()=>{S()}),Pt(()=>{k&&(k(),k=null)});const Q=H(()=>_.value.customPanes||[]);function te(j){const _e=j.replace("#","").split("?")[0];return _e&&[...v,...Q.value.map(ie=>ie.id)].includes(_e)?_e:"overview"}function se(){const j=te(window.location.hash);j!==C.value&&(C.value=j)}It(()=>{if(typeof window>"u")return;const j=te(window.location.hash);(j!=="overview"||window.location.hash)&&(C.value=j),window.addEventListener("hashchange",se)}),Pt(()=>{window.removeEventListener("hashchange",se)}),ht(C,j=>{typeof window<"u"&&(window.location.hash=j)});function Y(){A.value=!A.value,localStorage.setItem("ss-dash-sidebar",A.value?"collapsed":"expanded")}function be(j){j!==C.value&&(C.value=j)}const Re=H(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:_.value.cache},{id:"jobs",label:"Jobs",visible:_.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),ke=H(()=>Re.value.filter(j=>j.visible)),{data:Me}=rt(()=>"overview",{baseUrl:w.baseUrl,dashboardEndpoint:w.dashboardEndpoint,authToken:w.authToken,refreshKey:y}),Ce=H(()=>Me.value),we=H(()=>{const j={};if(!Ce.value)return j;if(Ce.value.totalRequests>0&&(j.requests={count:Ce.value.totalRequests}),Ce.value.queryStats?.total>0&&(j.queries={count:Ce.value.queryStats.total}),Ce.value.logLevelBreakdown){const _e=Ce.value.logLevelBreakdown,xe=_e.error+_e.warn+_e.info+_e.debug;xe>0&&(j.logs={count:xe})}return j}),z={overview:t,requests:s,queries:l,events:i,routes:o,logs:a,emails:r,cache:c,jobs:g,config:p,internals:b},B=H(()=>z[C.value]||null);return(j,_e)=>(u(),d("div",{class:"ss-dash","data-theme":x($),id:"ss-dash"},[n("div",Nc,[_e[0]||(_e[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",jc,[n("span",{class:R(["ss-dash-live-dot",{"ss-dash-connected":P.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:R(["ss-dash-live-label",{"ss-dash-connected":P.value}]),id:"ss-dash-live-label"},h(P.value?"Live":"Polling"),3)]),n("div",Hc,[Se(Ic,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Uc)):G("",!0)])]),n("div",qc,[n("div",{class:R(["ss-dash-sidebar",{"ss-dash-collapsed":A.value}]),id:"ss-dash-sidebar"},[n("nav",Kc,[(u(!0),d(N,null,ye(ke.value,xe=>(u(),d("button",{key:xe.id,type:"button",class:R(["ss-dash-nav-item",{"ss-dash-active":C.value===xe.id}]),"data-ss-section":xe.id,onClick:ie=>be(xe.id),title:A.value?xe.label:void 0},[n("span",zc,[(u(),d("svg",{width:"20",height:"20",viewBox:(x(Fe)[xe.id]||x(Fe).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(x(Fe)[xe.id]||x(Fe).config).elements.join("")},null,8,Wc))]),n("span",Qc,h(xe.label),1),we.value[xe.id]&&we.value[xe.id].count>0?(u(),d("span",{key:0,class:R(["ss-dash-nav-badge",we.value[xe.id].variant||""])},h(we.value[xe.id].count),3)):G("",!0)],10,Vc))),128)),Q.value.length>0?(u(),d("div",Jc)):G("",!0),(u(!0),d(N,null,ye(Q.value,xe=>(u(),d("button",{key:xe.id,type:"button",class:R(["ss-dash-nav-item",{"ss-dash-active":C.value===xe.id}]),onClick:ie=>be(xe.id),title:A.value?xe.label:void 0},[n("span",Yc,[(u(),d("svg",{width:"20",height:"20",viewBox:x(Fe)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Fe)["custom-pane"].elements.join("")},null,8,Xc))]),n("span",Zc,h(xe.label),1)],10,Gc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:Y,title:A.value?"Expand sidebar":"Collapse sidebar"},[A.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:x(Fe)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Fe)["chevron-right"].elements.join("")},null,8,td)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:x(Fe)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:x(Fe)["chevron-left"].elements.join("")},null,8,sd))],8,ed)],2),n("div",nd,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${C.value}`},[n("div",od,[(u(),st(or,null,{fallback:os(()=>[..._e[1]||(_e[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:os(()=>[B.value?(u(),st(Ma(B.value),{key:0})):(u(),d("div",id,"Unknown section"))]),_:1}))])],8,ld)])])],8,Bc))}});function rd(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function ud(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ms()),ti(e)}const hs=rd("ss-dash-config");ud();const yi=document.getElementById("ss-dash");yi&&Zr(ad,{baseUrl:hs.baseUrl,dashboardEndpoint:hs.dashboardEndpoint,debugEndpoint:hs.debugEndpoint,authToken:hs.authToken,backUrl:hs.backUrl,channelName:hs.channelName}).mount(yi);const cd=["width","height","viewBox"],dd=["id"],fd=["stop-color"],hd=["stop-color"],pd=["d","fill"],vd=["d","stroke"],gd=["x","y"],dn=Ne({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=H(()=>pu(t.data,{width:t.width,height:t.height,color:t.color})),l=H(()=>s.value!==null),i=H(()=>`sg-${t.color.replace("#","")}`);return(o,a)=>(u(),d("div",{class:"ss-dash-sparkline",style:qe({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(N,{key:0},[n("defs",null,[n("linearGradient",{id:i.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,fd),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,hd)],8,dd)]),n("path",{d:s.value.areaPath,fill:`url(#${i.value})`},null,8,pd),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,vd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,gd))],8,cd))],4))}}),yd={class:"ss-dash-btn-group"},md=["onClick"],bd=Ne({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(i,o)=>(u(),d("div",yd,[(u(),d(N,null,ye(l,a=>n("button",{key:a.value,type:"button",class:R(`ss-dash-btn ${e.modelValue===a.value?"ss-dash-active":""}`),onClick:r=>s("update:modelValue",a.value)},h(a.label),11,md)),64))]))}}),_d={class:"ss-dash-overview"},xd={key:0,class:"ss-dash-empty"},wd={class:"ss-dash-cards"},kd={class:"ss-dash-card"},$d={class:"ss-dash-sparkline"},Sd={class:"ss-dash-card"},Cd={class:"ss-dash-sparkline"},Td={class:"ss-dash-card"},Ed={class:"ss-dash-sparkline"},Pd={class:"ss-dash-card"},Rd={class:"ss-dash-sparkline"},Md={class:"ss-dash-chart-container"},Ad={class:"ss-dash-chart-header"},Ld={class:"ss-dash-chart",id:"ss-dash-chart-area"},Od={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Dd=["viewBox"],Fd=["id"],Id=["id"],Bd=["x1","y1","x2","y2"],Nd=["x","y"],jd=["d","fill"],Hd=["d"],Ud=["d","fill"],qd=["d"],Kd=["x","y","width","height","data-idx","onMouseenter"],Vd=["cx","cy","r","data-idx","opacity"],zd=["cx","cy","r","data-idx","opacity"],Wd=["x","y"],Qd={key:0,style:{color:"var(--ss-red-fg)"}},Jd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Gd={key:0,class:"ss-dash-chart-legend-item"},Yd={class:"ss-dash-secondary-cards"},Xd={class:"ss-dash-secondary-card"},Zd={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},ef={key:1,class:"ss-dash-secondary-list"},tf=["href"],sf=["title"],nf={class:"ss-dash-secondary-card"},lf={class:"ss-dash-secondary-list"},of={class:"ss-dash-secondary-list-value"},af={class:"ss-dash-secondary-list-value"},rf={class:"ss-dash-secondary-list-value"},uf={class:"ss-dash-secondary-card"},cf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},df={key:1,class:"ss-dash-secondary-list"},ff=["href"],hf=["title"],pf=["title"],vf={class:"ss-dash-secondary-card"},gf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},yf={key:1,class:"ss-dash-secondary-list"},mf=["href"],bf={class:"ss-dash-secondary-list-value"},_f={class:"ss-dash-secondary-card"},xf={class:"ss-dash-secondary-list"},wf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},kf={class:"ss-dash-secondary-list-value"},$f={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Sf={class:"ss-dash-secondary-list-value"},Cf={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Tf={class:"ss-dash-secondary-card"},Ef={class:"ss-dash-secondary-list"},Pf={href:"#logs?level=error",class:"ss-dash-widget-row-link"},Rf={class:"ss-dash-secondary-list-value"},Mf={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Af={class:"ss-dash-secondary-list-value"},Lf={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Of={class:"ss-dash-secondary-list-value"},Df={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Ff={class:"ss-dash-secondary-list-value"},If={key:0,class:"ss-dash-secondary-card"},Bf={class:"ss-dash-secondary-list"},Nf={href:"#cache",class:"ss-dash-widget-row-link"},jf={class:"ss-dash-secondary-list-value"},Hf={href:"#cache",class:"ss-dash-widget-row-link"},Uf={class:"ss-dash-secondary-list-value"},qf={href:"#cache",class:"ss-dash-widget-row-link"},Kf={class:"ss-dash-secondary-list-value"},Vf={key:1,class:"ss-dash-secondary-card"},zf={class:"ss-dash-secondary-list"},Wf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Qf={class:"ss-dash-secondary-list-value"},Jf={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},Gf={class:"ss-dash-secondary-list-value"},Yf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},Xf={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},Zf={class:"ss-dash-secondary-list-value"},eh={class:"ss-dash-secondary-card"},th={class:"ss-dash-secondary-list"},sh={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},nh={class:"ss-dash-secondary-list-value"},lh={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},oh={class:"ss-dash-secondary-list-value"},ih={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},ah={class:"ss-dash-secondary-list-value"},rh={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},uh={class:"ss-dash-secondary-list-value"},ch={class:"ss-dash-secondary-card"},dh={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},fh={key:1,class:"ss-dash-secondary-list"},hh=["href"],ph=["title"],ul=220,mi=120,vh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,i]of t)s[l]=i;return s})(Ne({__name:"OverviewSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),a=W("1h"),{data:r,loading:c}=rt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),{data:g,setTimeRange:p}=rt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t});ht(a,X=>{p(X)});const b=H(()=>r.value),v=H(()=>b.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),w=H(()=>v.value),$=H(()=>v.value.avgResponseTime||Number(w.value.avg_response_time)||0),_=H(()=>v.value.p95ResponseTime||Number(w.value.p95_response_time)||0),C=H(()=>v.value.requestsPerMinute||Number(w.value.requests_per_minute)||0),A=H(()=>v.value.errorRate||Number(w.value.error_rate)||0),P=H(()=>v.value.totalRequests||Number(w.value.total_requests)||0),y=H(()=>P.value>0),k=H(()=>g.value?.buckets||[]),S=H(()=>v.value.sparklines?.avgResponseTime??k.value.map(X=>X.avgDuration??0)),Q=H(()=>v.value.sparklines?.p95ResponseTime??k.value.map(X=>X.p95Duration??0)),te=H(()=>v.value.sparklines?.requestsPerMinute??k.value.map(X=>X.requestCount??0)),se=H(()=>v.value.sparklines?.errorRate??k.value.map(X=>X.errorCount??0)),Y=H(()=>`ss-cg-total-${o}`),be=H(()=>`ss-cg-error-${o}`);function Re(X,M){if(X<=0)return[0];const ne=X/M,fe=Math.pow(10,Math.floor(Math.log10(ne))),ut=ne/fe;let lt;ut<=1?lt=fe:ut<=2?lt=2*fe:ut<=5?lt=5*fe:lt=10*fe;const fn=[];for(let dl=lt;dl<=X+lt*.5;dl+=lt)fn.push(Math.round(dl));return fn.length===0&&fn.push(Math.ceil(X)),fn}function ke(X){try{return new Date(X).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function Me(X){if(X.length===0)return"";if(X.length===1)return`M${X[0].x},${X[0].y}`;let M=`M${X[0].x.toFixed(1)},${X[0].y.toFixed(1)}`;for(let ne=0;ne<X.length-1;ne++){const fe=X[ne],ut=X[ne+1],lt=(fe.x+ut.x)/2;M+=` C${lt.toFixed(1)},${fe.y.toFixed(1)} ${lt.toFixed(1)},${ut.y.toFixed(1)} ${ut.x.toFixed(1)},${ut.y.toFixed(1)}`}return M}function Ce(X){return il(X,"ss-dash")}const we=W(null),z=W(0);let B=null;ht(we,X=>{B?.disconnect(),B=null,X&&(z.value=X.clientWidth,B=new ResizeObserver(M=>{for(const ne of M)z.value=ne.contentRect.width}),B.observe(X))}),Pt(()=>{B?.disconnect()});const j={top:12,right:12,bottom:28,left:38},_e=H(()=>z.value||600),xe=H(()=>_e.value-j.left-j.right),ie=H(()=>ul-j.top-j.bottom),he=H(()=>j.top+ie.value),re=H(()=>k.value.map(X=>{const M=X;return(X.requestCount??0)+(Number(M.request_count)||0)||X.total||0})),q=H(()=>k.value.map(X=>{const M=X;return(X.errorCount??0)+(Number(M.error_count)||0)})),le=H(()=>Math.max(...re.value,1)),U=H(()=>Math.ceil(le.value*1.1)),oe=H(()=>q.value.some(X=>X>0)),K=H(()=>Re(U.value,4)),Z=H(()=>K.value.length>0?K.value[K.value.length-1]:U.value);function E(X){return j.left+X/Math.max(k.value.length-1,1)*xe.value}function Be(X){return j.top+ie.value-X/(Z.value||1)*ie.value}const f=H(()=>k.value.map((X,M)=>({x:E(M),y:Be(re.value[M])}))),m=H(()=>k.value.map((X,M)=>({x:E(M),y:Be(q.value[M])}))),T=H(()=>Me(f.value)),I=H(()=>oe.value?Me(m.value):""),L=H(()=>f.value.length>1?`${T.value} L${f.value[f.value.length-1].x.toFixed(1)},${he.value} L${f.value[0].x.toFixed(1)},${he.value} Z`:""),O=H(()=>oe.value&&m.value.length>1?`${I.value} L${m.value[m.value.length-1].x.toFixed(1)},${he.value} L${m.value[0].x.toFixed(1)},${he.value} Z`:""),J=H(()=>Math.min(10,k.value.length)),V=H(()=>Math.max(1,Math.ceil(k.value.length/J.value))),D=W({visible:!1,x:0,idx:-1});function F(X){const M=f.value[X].x;D.value={visible:!0,x:M,idx:X}}function ce(){D.value={visible:!1,x:0,idx:-1}}const ee=H(()=>D.value.visible?Math.max(mi/2,Math.min(D.value.x,_e.value-mi/2)):0),ae=H(()=>xe.value/(k.value.length||1));function pe(X){return X%V.value===0||X===k.value.length-1}function $e(){return y.value?$.value>500?"ss-dash-red":$.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Le(){return y.value?_.value>500?"ss-dash-red":_.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ee(){return y.value?"ss-dash-accent":"ss-dash-dim"}function Qe(){return y.value?A.value>5?"ss-dash-red":A.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function He(X){return X.url||X.pattern||"-"}function nt(X){return X.name||X.eventName||X.event_name||X.event||""}function tt(X){return X.sqlNormalized||X.normalizedSql||X.sql_normalized||X.sql||"-"}return(X,M)=>(u(),d("div",_d,[x(c)&&!b.value?(u(),d("div",xd,"Loading overview...")):(u(),d(N,{key:1},[n("div",wd,[n("div",kd,[M[1]||(M[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:R(["ss-dash-card-value",$e()])},h(y.value?x(Nt)($.value):"-"),3),n("div",$d,[Se(dn,{data:S.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Sd,[M[2]||(M[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:R(["ss-dash-card-value",Le()])},h(y.value?x(Nt)(_.value):"-"),3),n("div",Cd,[Se(dn,{data:Q.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Td,[M[3]||(M[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:R(["ss-dash-card-value",Ee()])},h(y.value?C.value.toFixed(1):"-"),3),n("div",Ed,[Se(dn,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Pd,[M[4]||(M[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:R(["ss-dash-card-value",Qe()])},h(y.value?`${A.value.toFixed(1)}%`:"-"),3),n("div",Rd,[Se(dn,{data:se.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Md,[n("div",Ad,[M[5]||(M[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),Se(bd,{"model-value":a.value,"onUpdate:modelValue":M[0]||(M[0]=ne=>a.value=ne)},null,8,["model-value"])]),n("div",Ld,[k.value.length===0?(u(),d("div",Od," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:we,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${_e.value} ${ul}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:Y.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...M[6]||(M[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Fd),n("linearGradient",{id:be.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...M[7]||(M[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,Id)]),(u(!0),d(N,null,ye(K.value,ne=>(u(),d("g",{key:`ytick-${ne}`},[n("line",{x1:j.left,y1:Be(ne),x2:_e.value-j.right,y2:Be(ne),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Bd),n("text",{x:j.left-6,y:Be(ne),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ne),9,Nd)]))),128)),L.value?(u(),d("path",{key:0,d:L.value,fill:`url(#${Y.value})`},null,8,jd)):G("",!0),T.value?(u(),d("path",{key:1,d:T.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Hd)):G("",!0),O.value?(u(),d("path",{key:2,d:O.value,fill:`url(#${be.value})`},null,8,Ud)):G("",!0),I.value?(u(),d("path",{key:3,d:I.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,qd)):G("",!0),(u(!0),d(N,null,ye(k.value,(ne,fe)=>(u(),d("g",{key:fe},[n("rect",{x:f.value[fe].x-ae.value/2,y:j.top,width:ae.value,height:ie.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":fe,onMouseenter:ut=>F(fe),onMouseleave:ce},null,40,Kd),re.value[fe]>0?(u(),d("circle",{key:0,cx:f.value[fe].x,cy:f.value[fe].y,r:D.value.visible&&D.value.idx===fe?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":fe,opacity:D.value.visible&&D.value.idx!==fe?.3:1},null,8,Vd)):G("",!0),q.value[fe]>0?(u(),d("circle",{key:1,cx:f.value[fe].x,cy:m.value[fe].y,r:D.value.visible&&D.value.idx===fe?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":fe,opacity:D.value.visible&&D.value.idx!==fe?.3:1},null,8,zd)):G("",!0)]))),128)),(u(!0),d(N,null,ye(k.value,(ne,fe)=>(u(),d(N,{key:`xlabel-${fe}`},[pe(fe)&&ke(ne.bucket)?(u(),d("text",{key:0,x:E(fe),y:ul-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(ke(ne.bucket)),9,Wd)):G("",!0)],64))),128))],8,Dd)),D.value.visible&&D.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:qe({left:ee.value+"px",top:j.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(ke(k.value[D.value.idx].bucket)),1),n("div",null,"Requests: "+h(re.value[D.value.idx]),1),q.value[D.value.idx]>0?(u(),d("div",Qd," Errors: "+h(q.value[D.value.idx]),1)):G("",!0)],4)):G("",!0)],512))]),n("div",Jd,[M[9]||(M[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),me(" Requests ")],-1)),k.value.some(ne=>(ne.errorCount??0)>0)?(u(),d("span",Gd,[...M[8]||(M[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),me(" Errors ",-1)])])):G("",!0)])]),n("div",Yd,[n("div",Xd,[M[10]||(M[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),v.value.slowestEndpoints.length===0?(u(),d("div",Zd," No data yet ")):(u(),d("ul",ef,[(u(!0),d(N,null,ye(v.value.slowestEndpoints.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#requests?url=${encodeURIComponent(He(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:He(ne)},h(He(ne)),9,sf),n("span",{class:R(["ss-dash-secondary-list-value","ss-dash-duration",Ce(ne.avgDuration)])},h(x(Nt)(ne.avgDuration)),3)],8,tf)]))),128))]))]),n("div",nf,[M[14]||(M[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",lf,[n("li",null,[M[11]||(M[11]=n("span",null,"Total Queries",-1)),n("span",of,h(v.value.queryStats.total),1)]),n("li",null,[M[12]||(M[12]=n("span",null,"Avg Duration",-1)),n("span",af,h(x(Nt)(v.value.queryStats.avgDuration)),1)]),n("li",null,[M[13]||(M[13]=n("span",null,"Queries / Request",-1)),n("span",rf,h(v.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",uf,[M[15]||(M[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),v.value.recentErrors.length===0?(u(),d("div",cf," No recent errors ")):(u(),d("ul",df,[(u(!0),d(N,null,ye(v.value.recentErrors,(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#logs?id=${ne.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ne.message},h(ne.message),9,hf),ne.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:x(jt)(ne.timestamp)},h(x(kt)(ne.timestamp)),9,pf)):G("",!0)],8,ff)]))),128))]))]),n("div",vf,[M[16]||(M[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),v.value.topEvents.length===0?(u(),d("div",gf," No events yet ")):(u(),d("ul",yf,[(u(!0),d(N,null,ye(v.value.topEvents.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#events?event_name=${encodeURIComponent(nt(ne))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(nt(ne)),1),n("span",bf,h(ne.count),1)],8,mf)]))),128))]))]),n("div",_f,[M[20]||(M[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",xf,[n("li",null,[n("a",wf,[M[17]||(M[17]=n("span",null,"Sent",-1)),n("span",kf,h(v.value.emailActivity.sent),1)])]),n("li",null,[n("a",$f,[M[18]||(M[18]=n("span",null,"Queued",-1)),n("span",Sf,h(v.value.emailActivity.queued),1)])]),n("li",null,[n("a",Cf,[M[19]||(M[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:qe(v.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.emailActivity.failed),5)])])])]),n("div",Tf,[M[25]||(M[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Ef,[n("li",null,[n("a",Pf,[M[21]||(M[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",Rf,h(v.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Mf,[M[22]||(M[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Af,h(v.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Lf,[M[23]||(M[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Of,h(v.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",Df,[M[24]||(M[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Ff,h(v.value.logLevelBreakdown.debug),1)])])])]),v.value.cacheStats&&v.value.cacheStats.available?(u(),d("div",If,[M[29]||(M[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Bf,[n("li",null,[n("a",Nf,[M[26]||(M[26]=n("span",null,"Keys",-1)),n("span",jf,h(v.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Hf,[M[27]||(M[27]=n("span",null,"Hit Rate",-1)),n("span",Uf,h(v.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",qf,[M[28]||(M[28]=n("span",null,"Memory",-1)),n("span",Kf,h(v.value.cacheStats.memoryUsedHuman),1)])])])])):G("",!0),v.value.jobQueueStatus&&v.value.jobQueueStatus.available?(u(),d("div",Vf,[M[34]||(M[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",zf,[n("li",null,[n("a",Wf,[M[30]||(M[30]=n("span",null,"Active",-1)),n("span",Qf,h(v.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",Jf,[M[31]||(M[31]=n("span",null,"Waiting",-1)),n("span",Gf,h(v.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Yf,[M[32]||(M[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:qe(v.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(v.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",Xf,[M[33]||(M[33]=n("span",null,"Completed",-1)),n("span",Zf,h(v.value.jobQueueStatus.completed),1)])])])])):G("",!0),n("div",eh,[M[39]||(M[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",th,[n("li",null,[n("a",sh,[M[35]||(M[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",nh,h(v.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",lh,[M[36]||(M[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",oh,h(v.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",ih,[M[37]||(M[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",ah,h(v.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",rh,[M[38]||(M[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",uh,h(v.value.statusDistribution["5xx"]),1)])])])]),n("div",ch,[M[40]||(M[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),v.value.slowestQueries.length===0?(u(),d("div",dh," No query data yet ")):(u(),d("ul",fh,[(u(!0),d(N,null,ye(v.value.slowestQueries.slice(0,5),(ne,fe)=>(u(),d("li",{key:fe},[n("a",{href:`#queries?pattern=${encodeURIComponent(tt(ne))}`,class:"ss-dash-widget-row-link"},[n("span",{title:tt(ne)},h(tt(ne)),9,ph),n("span",{class:R(["ss-dash-secondary-list-value","ss-dash-duration",Ce(ne.avgDuration)])},h(x(Nt)(ne.avgDuration)),3)],8,hh)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-6c6eb892"]])},Symbol.toStringTag,{value:"Module"}));function cl(e="",t){let s=null;return function(){return s||(s=new ll({baseUrl:e,authToken:t})),s}}function Jt(e){const t=W(null);let s=null;function l(){s&&s(),s=null,Dn(()=>{t.value&&(s=Iu(t.value))})}return e&&ht(e,l),It(l),to(()=>{s&&s(),s=null}),{tableRef:t}}const gh={class:"ss-dash-filter-bar"},yh={key:0,class:"ss-dash-summary"},mh={class:"ss-dash-search-wrapper"},bh=["viewBox","innerHTML"],_h=["value","placeholder"],xh={key:1,class:"ss-dash-filter-controls"},qt=Ne({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function i(){s("update:modelValue",""),s("clear")}return(o,a)=>(u(),d("div",gh,[e.summary?(u(),d("span",yh,h(e.summary),1)):G("",!0),n("div",mh,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:x(Fe).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:x(Fe).search.elements.join("")},null,8,bh)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,_h),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:i}," × ")):G("",!0)]),o.$slots.default?(u(),d("div",xh,[La(o.$slots,"default")])):G("",!0)]))}}),wh={key:0,class:"ss-dash-pagination"},kh={class:"ss-dash-page-info"},$h={class:"ss-dash-pagination-controls"},Sh=["disabled"],Ch={key:0,class:"ss-dash-page-ellipsis"},Th=["onClick"],Eh=["disabled"],ps=Ne({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,i=H(()=>Cu(s.page,s.lastPage));return(o,a)=>e.lastPage>1?(u(),d("div",wh,[n("span",kh," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",$h,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:a[0]||(a[0]=r=>l("pageChange",e.page-1))}," « Prev ",8,Sh),(u(!0),d(N,null,ye(i.value,(r,c)=>(u(),d(N,{key:r==="..."?`ellipsis-${c}`:r},[r==="..."?(u(),d("span",Ch,"...")):(u(),d("button",{key:1,type:"button",class:R(`ss-dash-page-btn ${r===e.page?"ss-dash-active":""}`),onClick:g=>l("pageChange",r)},h(r),11,Th))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:a[1]||(a[1]=r=>l("pageChange",e.page+1))}," Next » ",8,Eh)])])):G("",!0)}}),Ph={key:0,class:"ss-dash-empty"},Rh={class:"ss-dash-tl-legend"},Mh=["title"],Ah={class:"ss-dash-tl-track"},Lh=["title"],Oh={class:"ss-dash-tl-dur"},Dh={key:0,class:"ss-dash-tl-warnings"},Fh={class:"ss-dash-tl-warnings-title"},bi=Ne({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},i=H(()=>t.spans||[]),o=H(()=>[...i.value].sort((w,$)=>w.startOffset-$.startOffset)),a=H(()=>{const w={};for(const $ of o.value)w[$.id]=$.parentId?(w[$.parentId]||0)+1:0;return w});function r(w){const $=t.totalDuration||1;return`${w.startOffset/$*100}%`}function c(w){const $=t.totalDuration||1;return`${Math.max(w.duration/$*100,.5)}%`}function g(w){return w.length>50?w.slice(0,50)+"...":w}function p(w){return w==="db"?"DB":w}function b(w){return w==="db"?"purple":w==="mail"?"green":w==="event"?"amber":w==="view"?"blue":"muted"}function v(w){const $=w.metadata?Object.entries(w.metadata).filter(([,_])=>_!=null).map(([_,C])=>`${_}=${C}`).join(", "):"";return $?`${w.label} (${w.duration.toFixed(2)}ms)
|
|
5
|
-
${$}`:`${w.label} (${w.duration.toFixed(2)}ms)`}return(w,$)=>i.value.length===0?(u(),d("div",Ph,"No spans recorded")):(u(),d("div",{key:1,class:R(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Rh,[(u(),d(N,null,ye(l,(_,C)=>n("div",{key:C,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:qe({background:s[C]||s.custom})},null,4),n("span",null,h(_),1)])),64))]),(u(!0),d(N,null,ye(o.value,_=>(u(),d("div",{key:_.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:v(_),style:qe({paddingLeft:8+(a.value[_.id]||0)*16+"px"})},[n("span",{class:R(`ss-dash-badge ss-dash-badge-${b(_.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p(_.category)),3),me(" "+h(g(_.label)),1)],12,Mh),n("div",Ah,[n("div",{class:R(`ss-dash-tl-bar ss-dash-tl-bar-${_.category||"custom"}`),style:qe({left:r(_),width:c(_)}),title:v(_)},null,14,Lh)]),n("span",Oh,h(_.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Dh,[n("div",Fh,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(N,null,ye(e.warnings,(_,C)=>(u(),d("div",{key:C,class:"ss-dash-tl-warning"},h(_),1))),128))])):G("",!0)],2))}}),Ls=Ne({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=W(t.defaultExpanded),l=H(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return an(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return an(t.value,t.maxLen||100)}),i=H(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function a(){navigator.clipboard?.writeText(i.value)}return(r,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:R(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:R(`${t.classPrefix}-data-cell`)},[s.value?G("",!0):(u(),d("span",{key:0,class:R(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=g=>g.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:R(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:R(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:at(a,["stop"])}," Copy ",2),n("pre",null,h(i.value),1)],2)):G("",!0)],2))}}),Ih={key:0},Bh={class:"ss-related-logs-title"},Nh={class:"ss-related-logs-count"},jh={style:{overflow:"auto"}},Hh=["onClick"],Uh=["title"],qh=["title"],Kh={key:1,class:"ss-log-reqid-empty"},Vh={key:3,style:{width:"14px"}},zh={class:"ss-log-msg"},Wh={key:0,class:"ss-log-detail"},Qh=Ne({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=W(null);function s(l,i){i&&(t.value=t.value===l?null:l)}return(l,i)=>e.logs.length>0?(u(),d("div",Ih,[n("div",Bh,[i[0]||(i[0]=me(" Related Logs ",-1)),n("span",Nh,"("+h(e.logs.length)+")",1)]),n("div",jh,[(u(!0),d(N,null,ye(e.logs,(o,a)=>(u(),d(N,{key:o.id||a},[n("div",{class:R(["ss-log-entry",x($t)(o)?"ss-log-entry-expandable":""]),onClick:r=>s(a,!!x($t)(o))},[n("span",{class:R(["ss-log-level",x(di)(x(rn)(o),"ss-log-level")])},h(x(rn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:x(Ht)(o)?x(jt)(x(Ht)(o)):""},h(x(Ht)(o)?x(kt)(x(Ht)(o)):"-"),9,Uh),x(Ut)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:x(Ut)(o)},h(x(Ut)(o).slice(0,8)),9,qh)):(u(),d("span",Kh,"--")),x($t)(o)?(u(),d("span",{key:2,class:R(["ss-log-expand-icon",t.value===a?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Vh)),n("span",zh,h(x(ci)(o)),1)],10,Hh),t.value===a&&x($t)(o)?(u(),d("div",Wh,[Se(Ls,{value:x($t)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):G("",!0)],64))),128))])])):G("",!0)}}),Jh={class:"ss-dash-tl-detail-header"},Gh={style:{color:"var(--ss-text)"}},Yh={class:"ss-dash-tl-meta"},Xh={class:"ss-dash-tl-detail-header"},Zh={key:0,class:"ss-dash-empty"},ep={key:1,class:"ss-dash-empty"},tp={class:"ss-dash-table-wrap"},sp={key:0,class:"ss-dash-sort-arrow"},np={key:0,class:"ss-dash-sort-arrow"},lp={key:0,class:"ss-dash-sort-arrow"},op={key:0,class:"ss-dash-sort-arrow"},ip={key:0,class:"ss-dash-sort-arrow"},ap=["onClick"],rp={style:{color:"var(--ss-dim)"}},up=["title"],cp={style:{color:"var(--ss-muted)","text-align":"center"}},dp={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},fp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},hp=["title"],pp={key:1,class:"ss-dash-empty"},vp=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"RequestsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,sort:g,goToPage:p,setSearch:b,setSort:v}=rt(()=>"requests",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),w=W(""),$=W(null),_=W(!1),C=W(null),A=H(()=>{if(!o.value)return[];const we=o.value;return we.data||we.requests||o.value||[]}),P=cl(i,l);async function y(we){const z=we.id;_.value=!0;try{const B=s||"/__stats/api",_e=await P().fetch(`${B}/requests/${z}`),xe=_e.trace,ie=xe?{..._e,...xe,logs:_e.logs}:_e;C.value=oc(ie),$.value=we}catch{}finally{_.value=!1}}function k(){$.value=null,C.value=null}function S(we){w.value=we,b(we)}function Q(we){v(we)}function te(we){return il(we,"ss-dash")}const{tableRef:se}=Jt(()=>A.value),Y=W(null),be=W(null),Re=W(null),ke=W(null);let Me=null;const Ce=H(()=>C.value?C.value.logs||[]:[]);return ht([()=>$.value,()=>C.value],async()=>{Me?.(),Me=null,C.value&&Ce.value.length>0&&(await Dn(),Y.value&&be.value&&Re.value&&ke.value&&(Me=Bu({container:Y.value,handle:be.value,topPane:Re.value,bottomPane:ke.value,storageKey:"ss-requests-split"})))}),Pt(()=>{Me?.()}),(we,z)=>(u(),d("div",null,[C.value&&$.value?(u(),d(N,{key:0},[n("div",Jh,[n("button",{type:"button",class:"ss-dash-btn",onClick:k}," ← Back to Requests "),n("span",{class:R(`ss-dash-method ss-dash-method-${(C.value.method||"").toLowerCase()}`)},h(C.value.method),3),n("span",Gh,h(C.value.url),1),n("span",{class:R(`ss-dash-status ss-dash-status-${Math.floor((C.value.statusCode||200)/100)}xx`)},h(C.value.statusCode),3),n("span",Yh,h(C.value.totalDuration.toFixed(1))+"ms · "+h(C.value.spanCount)+" spans ",1)]),Ce.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:Y,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:Re,class:"ss-dash-split-top"},[Se(bi,{spans:C.value.spans,"total-duration":C.value.totalDuration,warnings:C.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:be,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:ke,class:"ss-dash-split-bottom"},[Se(Qh,{logs:Ce.value},null,8,["logs"])],512)],512)):(u(),st(bi,{key:1,spans:C.value.spans,"total-duration":C.value.totalDuration,warnings:C.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):_.value?(u(),d(N,{key:1},[n("div",Xh,[n("button",{type:"button",class:"ss-dash-btn",onClick:z[0]||(z[0]=B=>_.value=!1)}," ← Back to Requests ")]),z[6]||(z[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(N,{key:2},[Se(qt,{"model-value":w.value,placeholder:"Filter requests...",summary:`${x(c).total??0} requests`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),x(r)?(u(),d("div",Zh,"Failed to load requests")):G("",!0),x(a)&&!x(o)?(u(),d("div",ep,"Loading requests...")):(u(),d(N,{key:2},[n("div",tp,[A.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:se,class:"ss-dash-table"},[z[15]||(z[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[z[12]||(z[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:z[1]||(z[1]=B=>Q("method"))},[z[7]||(z[7]=me(" Method ",-1)),x(g).column==="method"?(u(),d("span",sp,h(x(g).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),n("th",{class:"ss-dash-sortable",onClick:z[2]||(z[2]=B=>Q("url"))},[z[8]||(z[8]=me(" URL ",-1)),x(g).column==="url"?(u(),d("span",np,h(x(g).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),n("th",{class:"ss-dash-sortable",onClick:z[3]||(z[3]=B=>Q("statusCode"))},[z[9]||(z[9]=me(" Status ",-1)),x(g).column==="statusCode"?(u(),d("span",lp,h(x(g).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),n("th",{class:"ss-dash-sortable",onClick:z[4]||(z[4]=B=>Q("duration"))},[z[10]||(z[10]=me(" Duration ",-1)),x(g).column==="duration"?(u(),d("span",op,h(x(g).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),z[13]||(z[13]=n("th",null,"Spans",-1)),z[14]||(z[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:z[5]||(z[5]=B=>Q("createdAt"))},[z[11]||(z[11]=me(" Time ",-1)),x(g).column==="createdAt"?(u(),d("span",ip,h(x(g).direction==="asc"?" ▲":" ▼"),1)):G("",!0)])])]),n("tbody",null,[(u(!0),d(N,null,ye(A.value,B=>(u(),d("tr",{key:B.id,class:"ss-dash-clickable",onClick:j=>y(B)},[n("td",null,[n("span",rp,h(B.id),1)]),n("td",null,[n("span",{class:R(`ss-dash-method ss-dash-method-${(B.method||"").toLowerCase()}`)},h(B.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:B.url},h(B.url),9,up)]),n("td",null,[n("span",{class:R(`ss-dash-status ss-dash-status-${Math.floor((B.status_code||B.statusCode||200)/100)}xx`)},h(B.status_code||B.statusCode),3)]),n("td",null,[n("span",{class:R(`ss-dash-duration ${te(B.total_duration||B.totalDuration||B.duration||0)}`)},h((B.total_duration||B.totalDuration||B.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",cp,h(B.span_count||B.spanCount||0),1)]),n("td",null,[(B.warning_count||B.warningCount||0)>0?(u(),d("span",dp,h(B.warning_count||B.warningCount||0),1)):(u(),d("span",fp,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(jt)(B.createdAt||B.created_at||B.timestamp||"")},h(x(kt)(B.createdAt||B.created_at||B.timestamp||"")),9,hp)])],8,ap))),128))])],512)):(u(),d("div",pp,"No requests recorded yet"))]),x(c).totalPages>1?(u(),st(ps,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),gp={class:"ss-dash-btn-group"},yp={key:0,class:"ss-dash-empty"},mp={key:1,class:"ss-dash-table-wrap"},bp=["onClick"],_p={key:0,class:"ss-dash-sort-arrow"},xp=["onClick","onKeydown"],wp={key:0,class:"ss-dash-dup"},kp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},$p={class:"ss-dash-duration"},Sp={class:"ss-dash-duration"},Cp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Tp={key:1,class:"ss-dash-empty"},Ep={class:"ss-dash-table-wrap"},Pp=["onClick"],Rp={key:0,class:"ss-dash-sort-arrow"},Mp={key:1},Ap={style:{color:"var(--ss-dim)"}},Lp=["onClick","onKeydown"],Op={key:0,class:"ss-dash-dup"},Dp=["title"],Fp={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ip=["title"],Bp=["disabled","onClick"],Np={key:0,class:"ss-dash-explain-row"},jp={colspan:"8",class:"ss-dash-explain"},Hp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Up={style:{flex:"1"}},qp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},Kp={key:0},Vp={key:1,class:"ss-dash-explain-result"},zp={class:"ss-dash-explain-node-header"},Wp={class:"ss-dash-explain-node-type"},Qp={key:0,class:"ss-dash-explain-metrics"},Jp={key:2,class:"ss-dash-explain-result"},Gp={key:3,class:"ss-dash-explain-result"},Yp=["onClick"],Xp={key:1,class:"ss-dash-empty"},Zp=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"QueriesSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),o=new Xu("list"),a=W(0);function r(){a.value++}const c=H(()=>(a.value,o.state.viewMode)),g=H(()=>Gu()),p=H(()=>Yu()),b=H(()=>c.value==="grouped"?"queries/grouped":"queries"),{data:v,loading:w,pagination:$,sort:_,goToPage:C,setSearch:A,setSort:P,explainQuery:y}=rt(()=>b.value,{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),k=W(""),S=H(()=>v.value?c.value==="grouped"?v.value.groups||[]:v.value.data||v.value||[]:[]),Q=H(()=>c.value!=="grouped"?S.value:S.value.map(K=>{const Z={...K};return(Z.sqlNormalized===null||Z.sqlNormalized===void 0)&&(Z.sqlNormalized=ze(K,"sql_normalized","pattern")??""),(Z.count===null||Z.count===void 0)&&(Z.count=ze(K,"total_count")??void 0),(Z.avgDuration===null||Z.avgDuration===void 0)&&(Z.avgDuration=ze(K,"avg_duration")??void 0),(Z.maxDuration===null||Z.maxDuration===void 0)&&(Z.maxDuration=ze(K,"max_duration")??void 0),(Z.minDuration===null||Z.minDuration===void 0)&&(Z.minDuration=ze(K,"min_duration")??void 0),(Z.totalDuration===null||Z.totalDuration===void 0)&&(Z.totalDuration=ze(K,"total_duration")??void 0),(Z.percentOfTotal===null||Z.percentOfTotal===void 0)&&(Z.percentOfTotal=ze(K,"pct_time")??void 0),Z})),te=H(()=>c.value!=="list"?[]:S.value.map(K=>Vu(K))),se=H(()=>hi(S.value)),Y=H(()=>Ku(S.value,{total:$.total})),be=H(()=>{if(c.value==="grouped")return`${Q.value.length} query patterns`;const K=[`${Y.value.totalCount} queries`];return Y.value.slowCount>0&&K.push(`${Y.value.slowCount} slow`),Y.value.dupCount>0&&K.push(`${Y.value.dupCount} dup`),K.push(`avg ${(Y.value.avgDuration||0).toFixed(1)}ms`),K.join(", ")});function Re(K){k.value=K,A(K)}function ke(K){K!==c.value&&(o.setViewMode(K),r())}function Me(K){P(K)}function Ce(K){return a.value,o.isExpanded(K)}function we(K){o.toggleExpand(K),r()}async function z(K){const Z=o.getExplainState(K);if(Z&&!Z.loading){o.state.explainData.delete(K),r();return}o.startExplain(K),r();try{const E=await y(K);if(E&&E.error){const Be=E.message?`${E.error}: ${E.message}`:E.error;o.failExplain(K,Be)}else o.completeExplain(K,{plan:E?.plan,rows:E?.rows})}catch(E){let Be=E instanceof Error?E.message:String(E);const f=E?.body;if(f)try{const m=JSON.parse(f);m.message?Be=m.error?`${m.error}: ${m.message}`:m.message:m.error&&(Be=m.error)}catch{}o.failExplain(K,Be)}r()}function B(K){return a.value,o.getExplainState(K)}function j(K){return a.value,o.getExplainState(K)?.loading??!1}function _e(K){a.value;const Z=o.getExplainState(K);return!!Z&&!Z.loading&&!Z.error&&!!Z.result}function xe(K){o.state.explainData.delete(K),r()}function ie(K){const Z=B(K);if(!Z?.result)return[];const E=Z.result.plan||Z.result.rows;if(!E||E.length===0)return[];const Be=E[0];return!Be||typeof Be!="object"?[]:"Plan"in Be?pi(Be.Plan):[]}function he(K){const Z=B(K);if(!Z?.result)return[];const E=Z.result.plan||Z.result.rows;return!E||E.length===0?[]:Qu(E)}function re(K){const Z=B(K);return Z?.result?Z.result.plan||Z.result.rows||[]:[]}function q(K){const Z=B(K);if(!Z?.result)return!1;const E=Z.result.plan||Z.result.rows;return!E||E.length===0?!1:Wu(E[0])}function le(K){const Z=B(K);if(!Z?.result)return!1;const E=Z.result.plan||Z.result.rows;return!!E&&E.length>0&&typeof E[0]=="object"}function U(K){return il(K,"ss-dash")}const{tableRef:oe}=Jt(()=>Q.value);return(K,Z)=>(u(),d("div",null,[Se(qt,{"model-value":k.value,placeholder:"Filter queries...",summary:be.value,"onUpdate:modelValue":Re},{default:os(()=>[n("div",gp,[n("button",{type:"button",class:R(`ss-dash-btn ${c.value==="list"?"ss-dash-active":""}`),onClick:Z[0]||(Z[0]=E=>ke("list"))}," List ",2),n("button",{type:"button",class:R(`ss-dash-btn ${c.value==="grouped"?"ss-dash-active":""}`),onClick:Z[1]||(Z[1]=E=>ke("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),x(w)&&!x(v)?(u(),d("div",yp,"Loading queries...")):c.value==="grouped"?(u(),d("div",mp,[Q.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:oe,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[(u(!0),d(N,null,ye(p.value,E=>(u(),d("th",{key:E.key,class:R(E.sortable?"ss-dash-sortable":""),onClick:Be=>E.sortable?Me(E.key):void 0},[me(h(E.label)+" ",1),E.sortable&&x(_).column===E.key?(u(),d("span",_p,h(x(_).direction==="asc"?" ▲":" ▼"),1)):G("",!0)],10,bp))),128))])]),n("tbody",null,[(u(!0),d(N,null,ye(Q.value,(E,Be)=>(u(),d("tr",{key:Be},[n("td",null,[n("span",{class:R(`ss-dash-sql ${Ce(E.sqlNormalized)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:at(f=>we(E.sqlNormalized),["stop"]),onKeydown:Rs(f=>we(E.sqlNormalized),["enter"])},h(E.sqlNormalized),43,xp),(E.count||0)>=3?(u(),d("span",wp,"DUP")):G("",!0)]),n("td",null,[n("span",kp,h(E.count||0),1)]),n("td",null,[n("span",{class:R(`ss-dash-duration ${U(E.avgDuration||0)}`)},h((E.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",$p,h((E.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:R(`ss-dash-duration ${U(E.maxDuration||0)}`)},h((E.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Sp,h((E.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Cp,h((E.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Tp,[...Z[2]||(Z[2]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[me(" Queries require "),n("code",null,"debug: true"),me(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))])):(u(),d(N,{key:2},[n("div",Ep,[te.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:oe,class:"ss-dash-table"},[n("colgroup",null,[(u(!0),d(N,null,ye(g.value,E=>(u(),d("col",{key:E.key+E.type,style:qe(E.width?{width:E.width}:{})},null,4))),128))]),n("thead",null,[n("tr",null,[(u(!0),d(N,null,ye(g.value,E=>(u(),d(N,{key:E.key+E.type},[E.sortable?(u(),d("th",{key:0,class:"ss-dash-sortable",onClick:Be=>Me(E.key)},[me(h(E.label)+" ",1),x(_).column===E.key?(u(),d("span",Rp,h(x(_).direction==="asc"?" ▲":" ▼"),1)):G("",!0)],8,Pp)):(u(),d("th",Mp,h(E.label),1))],64))),128))])]),n("tbody",null,[(u(!0),d(N,null,ye(te.value,(E,Be)=>(u(),d(N,{key:E.id},[n("tr",null,[n("td",null,[n("span",Ap,h(E.id),1)]),n("td",null,[n("div",null,[n("span",{class:R(`ss-dash-sql ${Ce(E.id)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:at(f=>we(E.id),["stop"]),onKeydown:Rs(f=>we(E.id),["enter"])},h(E.sql),43,Lp),(se.value.get(E.sqlNormalized)??0)>1?(u(),d("span",Op," ×"+h(se.value.get(E.sqlNormalized)),1)):G("",!0)])]),n("td",null,[n("span",{class:R(`ss-dash-duration ${U(E.duration)}`)},h(E.duration.toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:R(`ss-dash-method ss-dash-method-${E.method.toLowerCase()}`)},h(E.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:E.model},h(E.model||"-"),9,Dp)]),n("td",null,[n("span",Fp,h(E.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(jt)(String(E.timestamp))},h(x(kt)(String(E.timestamp))),9,Ip)]),n("td",null,[E.method==="select"?(u(),d("button",{key:0,type:"button",class:R(`ss-dash-explain-btn${_e(E.id)?" ss-dash-explain-btn-active":""}`),disabled:j(E.id),onClick:at(f=>z(E.id),["stop"])},h(j(E.id)?"...":"EXPLAIN"),11,Bp)):G("",!0)])]),B(E.id)?(u(),d("tr",Np,[n("td",jp,[n("div",Hp,[n("div",Up,[B(E.id)?.error?(u(),d("div",qp,[Z[3]||(Z[3]=n("strong",null,"Error:",-1)),me(" "+h(B(E.id)?.error)+" ",1),B(E.id)?.result?.message?(u(),d("br",Kp)):G("",!0),me(" "+h(B(E.id)?.result?.message),1)])):q(E.id)?(u(),d("div",Vp,[(u(!0),d(N,null,ye(ie(E.id),(f,m)=>(u(),d("div",{key:m,class:"ss-dash-explain-node",style:qe({marginLeft:`${f.depth*20}px`})},[n("div",zp,[n("span",Wp,h(f.nodeType),1),f.relationName?(u(),d(N,{key:0},[Z[4]||(Z[4]=me(h(" on "),-1)),n("strong",null,h(f.relationName),1)],64)):G("",!0),f.alias?(u(),d(N,{key:1},[me(h(` (${f.alias})`),1)],64)):G("",!0),f.indexName?(u(),d(N,{key:2},[Z[5]||(Z[5]=me(h(" using "),-1)),n("em",null,h(f.indexName),1)],64)):G("",!0)]),f.metrics.length>0?(u(),d("div",Qp,h(f.metrics.join(" · ")),1)):G("",!0)],4))),128))])):le(E.id)?(u(),d("div",Jp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(N,null,ye(he(E.id),f=>(u(),d("th",{key:f},h(f),1))),128))])]),n("tbody",null,[(u(!0),d(N,null,ye(re(E.id),(f,m)=>(u(),d("tr",{key:m},[(u(!0),d(N,null,ye(he(E.id),T=>(u(),d("td",{key:T},h(x(Ju)(f[T])),1))),128))]))),128))])])])):(u(),d("div",Gp,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:f=>xe(E.id)}," Close ",8,Yp)])])])):G("",!0)],64))),128))])],512)):(u(),d("div",Xp,[...Z[6]||(Z[6]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[me(" Queries require "),n("code",null,"debug: true"),me(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))]),x($).totalPages>1?(u(),st(ps,{key:0,page:x($).page,"last-page":x($).totalPages,total:x($).total,onPageChange:x(C)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),ev={key:0,class:"ss-dash-empty"},tv={class:"ss-dash-table-wrap"},sv={style:{color:"var(--ss-dim)"}},nv=["title"],lv=["title"],ov={key:1,class:"ss-dash-empty"},iv=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"EventsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g}=rt(()=>"events",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=W(""),b=H(()=>{if(!o.value)return[];const $=o.value;return $.data||$.events||o.value||[]});function v($){p.value=$,g($)}const{tableRef:w}=Jt(()=>b.value);return($,_)=>(u(),d("div",null,[Se(qt,{"model-value":p.value,placeholder:"Filter events...",summary:`${x(r).total??0} events`,"onUpdate:modelValue":v},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",ev,"Loading events...")):(u(),d(N,{key:1},[n("div",tv,[b.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:w,class:"ss-dash-table"},[_[0]||(_[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),_[1]||(_[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(b.value,C=>(u(),d("tr",{key:C.id},[n("td",null,[n("span",sv,h(C.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:C.event_name||C.eventName||C.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(C.event_name||C.eventName||C.event||""),9,nv)]),n("td",null,[Se(Ls,{value:C.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:x(jt)(C.createdAt||C.created_at||C.timestamp)},h(x(kt)(C.createdAt||C.created_at||C.timestamp)),9,lv)])]))),128))])],512)):(u(),d("div",ov,"No events recorded yet"))]),x(r).totalPages>1?(u(),st(ps,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),av={key:0,class:"ss-dash-empty"},rv={key:1,class:"ss-dash-empty"},uv={key:2,class:"ss-dash-table-wrap"},cv=["title"],dv=["title"],fv=["title"],hv=["title"],pv={key:1,class:"ss-dash-empty"},vv=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"RoutesSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,setSearch:c}=rt(()=>"routes",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=W(""),p=H(()=>{if(!o.value)return[];const w=o.value;return Array.isArray(w)?w:Array.isArray(w.routes)?w.routes:Array.isArray(w.data)?w.data:[]});function b(w){g.value=w,c(w)}const{tableRef:v}=Jt(()=>p.value);return(w,$)=>(u(),d("div",null,[Se(qt,{"model-value":g.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":b},null,8,["model-value","summary"]),x(r)?(u(),d("div",av,"Failed to load routes")):x(a)&&!x(o)?(u(),d("div",rv,"Loading routes...")):(u(),d("div",uv,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:v,class:"ss-dash-table"},[$[0]||($[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),$[1]||($[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(p.value,(_,C)=>(u(),d("tr",{key:_.pattern||C},[n("td",null,[n("span",{class:R(`ss-dash-method ss-dash-method-${(_.method||"").toLowerCase()}`)},h(_.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.pattern},h(_.pattern),9,cv)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.name||"-"},h(_.name||"-"),9,dv)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.handler},h(_.handler),9,fv)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:_.middleware?.length?_.middleware.join(", "):"-"},h(_.middleware?.length?_.middleware.join(", "):"-"),9,hv)])]))),128))])],512)):(u(),d("div",pv,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),gv={class:"ss-dash-log-filters"},yv=["onClick"],mv=["value"],bv={class:"ss-dash-structured-search"},_v=["value"],xv=["value"],wv=["value"],kv={key:0,class:"ss-dash-filter-chips"},$v={key:0,class:"ss-dash-filter-chip"},Sv={key:1,class:"ss-dash-filter-chip"},Cv=["onClick"],Tv={key:1,class:"ss-dash-empty"},Ev={key:2,class:"ss-dash-empty"},Pv={key:3,class:"ss-dash-empty"},Rv={key:4,class:"ss-dash-log-entries"},Mv=["onClick"],Av=["title"],Lv=["title","onClick","onKeydown"],Ov={key:1,class:"ss-dash-log-reqid-empty"},Dv={key:3,style:{width:"14px"}},Fv={class:"ss-dash-log-msg"},Iv={key:0,class:"ss-dash-log-detail"},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"LogsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,filter:g,goToPage:p,setSearch:b,setFilter:v,refresh:w}=rt(()=>"logs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=W(""),_=W("all"),C=W(""),A=W(""),P=W(null),y=W([]),k=W("level"),S=W("equals"),Q=W(""),te=H(()=>{if(!o.value)return[];const ie=o.value;return ie.data||ie.logs||o.value||[]}),se=H(()=>_.value!=="all"||C.value!==""||y.value.length>0);function Y(ie,he){he&&(P.value=P.value===ie?null:ie)}function be(ie){$.value=ie,b(ie)}function Re(ie){_.value=ie,ie==="all"?v("level",""):v("level",ie)}function ke(ie){C.value=ie,A.value=ie,v("request_id",ie)}function Me(){const ie=A.value.trim();C.value=ie,v("request_id",ie)}function Ce(){C.value="",A.value="",v("request_id","")}function we(){_.value="all",v("level","")}function z(){const ie=g;for(const he of Object.keys(ie))(he.startsWith("filter_field_")||he.startsWith("filter_op_")||he.startsWith("filter_value_"))&&delete ie[he];y.value.forEach((he,re)=>{ie[`filter_field_${re}`]=he.field,ie[`filter_op_${re}`]=he.operator,ie[`filter_value_${re}`]=he.value}),c.page=1,w()}function B(){const ie=Q.value.trim();ie&&(y.value.push({field:k.value,operator:S.value,value:ie}),Q.value="",z())}function j(ie){y.value.splice(ie,1),z()}function _e(ie){return ie.target.value}function xe(ie){return ie.target.value}return(ie,he)=>(u(),d("div",null,[Se(qt,{"model-value":$.value,placeholder:"Search logs...",summary:`${x(c).total??0} logs`,"onUpdate:modelValue":be},{default:os(()=>[n("div",gv,[(u(!0),d(N,null,ye(x(ju),re=>(u(),d("button",{key:re,type:"button",class:R(`ss-dash-log-filter ${_.value===re?"ss-dash-active":""}`),onClick:q=>Re(re)},h(re),11,yv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:A.value,onInput:he[0]||(he[0]=re=>A.value=_e(re)),onKeydown:Rs(Me,["enter"])},null,40,mv),A.value||C.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:Ce}," Clear ")):G("",!0)])]),_:1},8,["model-value","summary"]),n("div",bv,[n("select",{class:"ss-dash-filter-select",value:k.value,onChange:he[1]||(he[1]=re=>k.value=xe(re))},[...he[4]||(he[4]=[pr('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,_v),n("select",{class:"ss-dash-filter-select",value:S.value,onChange:he[2]||(he[2]=re=>S.value=xe(re))},[...he[5]||(he[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,xv),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:Q.value,onInput:he[3]||(he[3]=re=>Q.value=_e(re)),onKeydown:Rs(B,["enter"])},null,40,wv),n("button",{type:"button",class:"ss-dash-btn",onClick:B},"Add")]),se.value?(u(),d("div",kv,[_.value!=="all"?(u(),d("span",$v,[me(" level: "+h(_.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):G("",!0),C.value?(u(),d("span",Sv,[me(" requestId: "+h(C.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Ce}," × ")])):G("",!0),(u(!0),d(N,null,ye(y.value,(re,q)=>(u(),d("span",{key:q,class:"ss-dash-filter-chip"},[me(h(re.field)+" "+h(re.operator)+' "'+h(re.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:le=>j(q)}," × ",8,Cv)]))),128))])):G("",!0),x(r)?(u(),d("div",Tv,"Failed to load logs")):x(a)&&!x(o)?(u(),d("div",Ev,"Loading logs...")):te.value.length===0?(u(),d("div",Pv," No log entries"+h(C.value?` matching request ${C.value}`:_.value!=="all"?` for ${_.value}`:""),1)):(u(),d("div",Rv,[(u(!0),d(N,null,ye(te.value,(re,q)=>(u(),d(N,{key:String(re.id||q)},[n("div",{class:R(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!x($t)(re)}]),onClick:le=>Y(q,!!x($t)(re))},[n("span",{class:R(`ss-dash-log-level ${x(di)(x(rn)(re),"ss-dash-log-level")}`)},h(x(rn)(re).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:x(Ht)(re)?x(jt)(x(Ht)(re)):""},h(x(Ht)(re)?x(kt)(x(Ht)(re)):"-"),9,Av),x(Ut)(re)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:x(Ut)(re),role:"button",tabindex:"0",onClick:at(le=>ke(x(Ut)(re)),["stop"]),onKeydown:Rs(at(le=>ke(x(Ut)(re)),["stop"]),["enter"])},h(x(Ut)(re).slice(0,8)),41,Lv)):(u(),d("span",Ov,"--")),x($t)(re)?(u(),d("span",{key:2,class:R(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":P.value===q}])},"▶",2)):(u(),d("span",Dv)),n("span",Fv,h(x(ci)(re)),1)],10,Mv),P.value===q&&x($t)(re)?(u(),d("div",Iv,[Se(Ls,{value:x($t)(re),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):G("",!0)],64))),128))])),x(c).totalPages>1?(u(),st(ps,{key:5,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(p)},null,8,["page","last-page","total","onPageChange"])):G("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Nv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},jv={class:"ss-dash-email-preview-header"},Hv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Uv=["srcdoc"],qv={key:0,class:"ss-dash-empty"},Kv={class:"ss-dash-table-wrap"},Vv=["onClick"],zv={style:{color:"var(--ss-dim)"}},Wv=["title"],Qv=["title"],Jv=["title"],Gv={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Yv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Xv=["title"],Zv=["title"],eg={key:1,class:"ss-dash-empty"},tg=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"EmailsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,pagination:r,goToPage:c,setSearch:g,fetchEmailPreview:p}=rt(()=>"emails",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),b=W(""),v=W(null),w=W(null),$=H(()=>{if(!o.value)return[];const y=o.value;return y.data||y.emails||o.value||[]});function _(y){b.value=y,g(y)}async function C(y){if(y.html){v.value=y.id,w.value=y.html;return}const k=await p(y.id);v.value=y.id,w.value=k}function A(){v.value=null,w.value=null}const{tableRef:P}=Jt(()=>$.value);return(y,k)=>(u(),d("div",null,[v.value&&w.value?(u(),d("div",Nv,[n("div",jv,[n("div",Hv,[$.value.find(S=>S.id===v.value)?(u(),d(N,{key:0},[k[4]||(k[4]=n("strong",null,"Subject:",-1)),me(" "+h($.value.find(S=>S.id===v.value)?.subject)+" | ",1),k[5]||(k[5]=n("strong",null,"From:",-1)),me(" "+h($.value.find(S=>S.id===v.value)?.from_addr||$.value.find(S=>S.id===v.value)?.from)+" | ",1),k[6]||(k[6]=n("strong",null,"To:",-1)),me(" "+h($.value.find(S=>S.id===v.value)?.to_addr||$.value.find(S=>S.id===v.value)?.to)+" ",1),$.value.find(S=>S.id===v.value)?.cc||$.value.find(S=>S.id===v.value)?.cc_addr?(u(),d(N,{key:0},[k[0]||(k[0]=me(" | ",-1)),k[1]||(k[1]=n("strong",null,"CC:",-1)),me(" "+h($.value.find(S=>S.id===v.value)?.cc||$.value.find(S=>S.id===v.value)?.cc_addr),1)],64)):G("",!0),k[7]||(k[7]=me(" | ",-1)),k[8]||(k[8]=n("strong",null,"Status:",-1)),n("span",{class:R(`ss-dash-badge ss-dash-email-status-${$.value.find(S=>S.id===v.value)?.status}`)},h($.value.find(S=>S.id===v.value)?.status),3),$.value.find(S=>S.id===v.value)?.mailer?(u(),d(N,{key:1},[k[2]||(k[2]=me(" | ",-1)),k[3]||(k[3]=n("strong",null,"Mailer:",-1)),me(" "+h($.value.find(S=>S.id===v.value)?.mailer),1)],64)):G("",!0)],64)):G("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:A}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:w.value,title:"Email preview",sandbox:""},null,8,Uv)])):(u(),d(N,{key:1},[Se(qt,{"model-value":b.value,placeholder:"Filter emails...",summary:`${x(r).total??0} emails`,"onUpdate:modelValue":_},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",qv,"Loading emails...")):(u(),d(N,{key:1},[n("div",Kv,[$.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:P,class:"ss-dash-table"},[k[9]||(k[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),k[10]||(k[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye($.value,S=>(u(),d("tr",{key:S.id,class:"ss-dash-clickable ss-dash-email-row",onClick:Q=>C(S)},[n("td",null,[n("span",zv,h(S.id),1)]),n("td",null,[n("span",{title:S.from_addr||S.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.from_addr||S.from||""),9,Wv)]),n("td",null,[n("span",{title:S.to_addr||S.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.to_addr||S.to||""),9,Qv)]),n("td",null,[n("span",{title:S.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.subject||""),9,Jv)]),n("td",null,[n("span",{class:R(`ss-dash-badge ss-dash-email-status-${S.status||""}`)},h(S.status),3)]),n("td",null,[(S.attachment_count||S.attachmentCount||0)>0?(u(),d("span",Gv,h(S.attachment_count||S.attachmentCount||0),1)):(u(),d("span",Yv,"-"))]),n("td",null,[n("span",{title:S.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.mailer||""),9,Xv)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(jt)(S.createdAt||S.created_at||S.timestamp)},h(x(kt)(S.createdAt||S.created_at||S.timestamp)),9,Zv)])],8,Vv))),128))])],512)):(u(),d("div",eg,"No emails captured yet"))]),x(r).totalPages>1?(u(),st(ps,{key:0,page:x(r).page,"last-page":x(r).totalPages,total:x(r).total,onPageChange:x(c)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),sg={key:0,class:"ss-dash-cache-stats"},ng={class:"ss-dash-cache-stat"},lg={class:"ss-dash-cache-stat-value"},og={class:"ss-dash-cache-stat"},ig={class:"ss-dash-cache-stat-value"},ag={class:"ss-dash-cache-stat"},rg={class:"ss-dash-cache-stat-value"},ug={class:"ss-dash-cache-stat"},cg={class:"ss-dash-cache-stat-value"},dg={key:1,class:"ss-dash-empty"},fg={key:2,class:"ss-dash-empty"},hg={key:3,class:"ss-dash-table-wrap"},pg=["onClick"],vg=["title"],gg={style:{color:"var(--ss-muted)"}},yg=["onClick"],mg={key:1,class:"ss-dash-empty"},bg={key:4,class:"ss-dash-cache-detail"},_g={key:0,class:"ss-dash-empty"},xg={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},wg=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"CacheSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,setSearch:r,mutate:c}=rt(()=>"cache",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=cl(i||"",l),p=new ai(g(),s||"/__stats/api"),b=W(""),v=W(null),w=W(null),$=W(!1),_=W(null),C=H(()=>o.value),A=H(()=>C.value?.keys||C.value?.data||[]);function P(Q){b.value=Q,r(Q)}async function y(Q){if(confirm(`Delete cache key "${Q}"?`))try{await c(`cache/${encodeURIComponent(Q)}`,"delete"),v.value===Q&&(v.value=null,w.value=null,_.value=null)}catch{}}const{tableRef:k}=Jt(()=>A.value);async function S(Q){if(v.value===Q){v.value=null,w.value=null,_.value=null;return}v.value=Q,w.value=null,_.value=null,$.value=!0;try{const te=await p.fetchCacheKey(Q);w.value=te.value!==void 0?te.value:te.data!==void 0?te.data:te,_.value=null}catch{w.value=null,_.value="Failed to fetch key value"}finally{$.value=!1}}return(Q,te)=>(u(),d("div",null,[C.value?.available&&C.value?.stats?(u(),d("div",sg,[n("div",ng,[te[0]||(te[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",lg,h((C.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",og,[te[1]||(te[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",ig,h(C.value.stats.hits??0),1)]),n("div",ag,[te[2]||(te[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",rg,h(C.value.stats.misses??0),1)]),n("div",ug,[te[3]||(te[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",cg,h(C.value.stats.totalKeys||C.value.stats.keyCount||A.value.length||0),1)])])):G("",!0),Se(qt,{"model-value":b.value,placeholder:"Filter cache keys...",summary:`${A.value.length} keys`,"onUpdate:modelValue":P},null,8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",dg,"Loading cache...")):!C.value||!C.value.available?(u(),d("div",fg," Cache inspector not available ")):(u(),d("div",hg,[A.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:k,class:"ss-dash-table"},[te[4]||(te[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(A.value,se=>(u(),d("tr",{key:se.key,class:"ss-dash-clickable",onClick:Y=>S(se.key)},[n("td",null,[n("span",{title:se.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(se.key),9,vg)]),n("td",null,[n("span",gg,h(se.type),1)]),n("td",null,h(se.size!==null&&se.size!==void 0&&se.size>0?x(ku)(se.size):"-"),1),n("td",null,h(se.ttl>0?x(wu)(se.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:at(Y=>y(se.key),["stop"])}," Delete ",8,yg)])],8,pg))),128))])],512)):(u(),d("div",mg,"No cache keys found"))])),v.value?(u(),d("div",bg,[n("h4",null,"Key: "+h(v.value),1),$.value?(u(),d("div",_g,"Loading value...")):_.value?(u(),d("div",xg,h(_.value),1)):(u(),st(Ls,{key:2,value:w.value},null,8,["value"]))])):G("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),kg={key:0,class:"ss-dash-job-stats"},$g={class:"ss-dash-job-stat"},Sg={class:"ss-dash-job-stat-value"},Cg={class:"ss-dash-job-stat"},Tg={class:"ss-dash-job-stat-value"},Eg={class:"ss-dash-job-stat"},Pg={class:"ss-dash-job-stat-value"},Rg={class:"ss-dash-job-stat"},Mg={class:"ss-dash-job-stat-value"},Ag={class:"ss-dash-job-stat"},Lg={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Og={class:"ss-dash-btn-group"},Dg=["onClick"],Fg={key:1,class:"ss-dash-empty"},Ig={key:2,class:"ss-dash-empty"},Bg={class:"ss-dash-table-wrap"},Ng={style:{color:"var(--ss-dim)"}},jg=["title"],Hg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Ug={class:"ss-dash-duration"},qg=["title"],Kg=["disabled","onClick"],Vg={key:1,class:"ss-dash-empty"},zg=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"JobsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-dashboard-endpoint","/__stats/api"),l=de("ss-auth-token",void 0),i=de("ss-base-url",""),{data:o,loading:a,error:r,pagination:c,goToPage:g,setSearch:p,setFilter:b,refresh:v,mutate:w}=rt(()=>"jobs",{baseUrl:i,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=W(""),_=W("all"),C=W({}),A=H(()=>tc(o.value)),P=H(()=>sc(o.value));function y(te){$.value=te,p(te)}function k(te){_.value=te,te==="all"?b("status",""):b("status",te)}const{tableRef:S}=Jt(()=>A.value);async function Q(te){C.value[te]="pending";try{await w(`jobs/${te}/retry`),C.value[te]="success",setTimeout(()=>{delete C.value[te],v()},1e3)}catch{delete C.value[te]}}return(te,se)=>(u(),d("div",null,[P.value?(u(),d("div",kg,[n("div",$g,[se[0]||(se[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Sg,h(P.value.active??0),1)]),n("div",Cg,[se[1]||(se[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Tg,h(P.value.waiting??0),1)]),n("div",Eg,[se[2]||(se[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Pg,h(P.value.delayed??0),1)]),n("div",Rg,[se[3]||(se[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Mg,h(P.value.completed??0),1)]),n("div",Ag,[se[4]||(se[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Lg,h(P.value.failed??0),1)])])):G("",!0),Se(qt,{"model-value":$.value,placeholder:"Filter jobs...",summary:`${x(c).total||A.value.length} jobs`,"onUpdate:modelValue":y},{default:os(()=>[n("div",Og,[(u(!0),d(N,null,ye(x(Zu),Y=>(u(),d("button",{key:Y,type:"button",class:R(`ss-dash-btn ${_.value===Y?"ss-dash-active":""}`),onClick:be=>k(Y)},h(Y.charAt(0).toUpperCase()+Y.slice(1)),11,Dg))),128))])]),_:1},8,["model-value","summary"]),x(a)&&!x(o)?(u(),d("div",Fg,"Loading jobs...")):x(r)?(u(),d("div",Ig,"Jobs/Queue not available")):(u(),d(N,{key:3},[n("div",Bg,[A.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:S,class:"ss-dash-table"},[se[5]||(se[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),se[6]||(se[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(A.value,Y=>(u(),d("tr",{key:Y.id},[n("td",null,[n("span",Ng,h(Y.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:Y.name},h(Y.name),9,jg)]),n("td",null,[n("span",{class:R(`ss-dash-badge ss-dash-badge-${x(ec)(Y.status)}`)},h(Y.status),3)]),n("td",null,[Se(Ls,{value:Y.payload||Y.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Hg,h(Y.attempts||Y.attemptsMade||0),1)]),n("td",null,[n("span",Ug,h(Y.duration!==null&&Y.duration!==void 0?x(Nt)(Y.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:x(jt)(Y.timestamp||Y.createdAt||Y.processedAt||Y.created_at)},h(x(kt)(Y.timestamp||Y.createdAt||Y.processedAt||Y.created_at)),9,qg)]),n("td",null,[Y.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:C.value[Y.id]==="pending"||C.value[Y.id]==="success",onClick:at(be=>Q(Y.id),["stop"])},h(C.value[Y.id]==="pending"?"...":C.value[Y.id]==="success"?"OK":"Retry"),9,Kg)):G("",!0)])]))),128))])],512)):(u(),d("div",Vg,"No jobs found"))]),x(c).totalPages>1?(u(),st(ps,{key:0,page:x(c).page,"last-page":x(c).totalPages,total:x(c).total,onPageChange:x(g)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Wg={style:{position:"relative",flex:1}},Qg=["value"],Jg=["title","onClick"],Gg=["viewBox","innerHTML"],Yg=["viewBox","innerHTML"],Xg=["onClick"],Zg={key:0},e1=["title","onClick"],t1=["viewBox","innerHTML"],s1=["viewBox","innerHTML"],n1=["onClick"],l1={key:0},o1={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},i1=["onClick"],a1=["title"],r1=["title"],u1=["title","onClick"],c1=["viewBox","innerHTML"],d1=["viewBox","innerHTML"],f1=["onClick"],h1=["title","onClick"],p1=["viewBox","innerHTML"],v1=["viewBox","innerHTML"],g1={key:1,style:{color:"var(--ss-dim)"}},y1={key:3,style:{color:"var(--ss-amber-fg)"}},m1={key:4,style:{color:"var(--ss-purple-fg)"}},b1={key:5},_1=["onClick"],ue="ss-dash",x1=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"ConfigSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-dashboard-endpoint","/__stats/api"),i=de("ss-auth-token",void 0),{data:o,loading:a}=rt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:i,refreshKey:t}),r=W(""),c=W(""),g=W("app"),p=W(new Set),b=W("Copy JSON"),v=W(new Set),w=W(new Map);let $=null;function _(q){r.value=q,$&&clearTimeout($),$=setTimeout(()=>{c.value=q},200)}function C(q){return q.target.value}const A=H(()=>o.value??null),P=H(()=>{const q=A.value?.env??{},le=c.value.toLowerCase();return Object.entries(q).filter(([U,oe])=>{if(!le)return!0;const K=je(oe)?oe.display:oe==null?"":String(oe);return U.toLowerCase().includes(le)||K.toLowerCase().includes(le)})}),y=H(()=>{const q=A.value?.app??{},le=c.value.toLowerCase();return cn(q,"").filter(oe=>{const K=je(oe.value)?oe.value.display:oe.value===null||oe.value===void 0?"":String(oe.value);return oe.path.toLowerCase().includes(le)||K.toLowerCase().includes(le)})}),k=H(()=>{const q=A.value?.app??{};return cn(q,"").length}),S=H(()=>{const q=A.value?.app;return!q||typeof q!="object"||Array.isArray(q)||je(q)?[]:Object.keys(q)});function Q(q){const le=new Set(p.value);le.has(q)?le.delete(q):le.add(q),p.value=le}function te(){if(!A.value)return;const q=g.value==="app"?A.value.app:A.value.env;if(!q)return;const le=xc(q);p.value=new Set(le)}function se(){p.value=new Set}function Y(){if(!A.value)return;const q=g.value==="app"?A.value.app:A.value.env;navigator.clipboard?.writeText(JSON.stringify(q,null,2)).then(()=>{b.value="Copied!",setTimeout(()=>{b.value="Copy JSON"},1500)}).catch(()=>{})}function be(q){const le=new Set(v.value);le.has(q)?le.delete(q):le.add(q),v.value=le}function Re(q,le){w.value.set(q,le)}function ke(q,le,U){U.stopPropagation(),wc(q,w.value.get(le)??null,ue)}function Me(q){return q!==null&&typeof q=="object"&&!Array.isArray(q)&&!je(q)}function Ce(q,le){return cn(q,le)}function we(q,le){return q.indexOf(le+".")===0?q.slice(le.length+1):q}function z(q){return _c(q)}function B(q){return je(q)?q.display:q==null?"null":String(q)}function j(q){const le=A.value?.app;return!le||typeof le!="object"?null:le[q]??null}function _e(q,le){return je(q)?le?q.value:q.display:""}function xe(){r.value="",c.value=""}function ie(q){return je(q)?q.display:""}const he=H(()=>Fe.eye.elements.join("")),re=H(()=>Fe["eye-off"].elements.join(""));return(q,le)=>(u(),d("div",null,[n("div",{class:R(`${ue}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:R(`${ue}-config-tab${g.value==="app"?` ${ue}-active`:""}`),onClick:le[0]||(le[0]=U=>g.value="app")}," App Config ",2),n("button",{type:"button",class:R(`${ue}-config-tab${g.value==="env"?` ${ue}-active`:""}`),onClick:le[1]||(le[1]=U=>g.value="env")}," Env ",2),n("div",Wg,[n("input",{type:"text",class:R(`${ue}-search`),placeholder:"Search keys and values...",value:r.value,style:{width:"100%"},onInput:le[2]||(le[2]=U=>_(C(U)))},null,42,Qg),r.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:xe}," × ")):G("",!0)]),g.value==="app"&&!c.value?(u(),d(N,{key:0},[n("button",{type:"button",class:R(`${ue}-btn`),onClick:te},"Expand All",2),n("button",{type:"button",class:R(`${ue}-btn`),onClick:se},"Collapse All",2)],64)):G("",!0),n("button",{type:"button",class:R(`${ue}-btn`),onClick:Y},h(b.value),3)],2),x(a)&&!x(o)?(u(),d("div",{key:0,class:R(`${ue}-empty`)},"Loading config...",2)):A.value?g.value==="env"?(u(),d("div",{key:2,class:R(`${ue}-config-table-wrap`)},[n("table",{class:R(`${ue}-table ${ue}-config-env-table`)},[le[4]||(le[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(P.value,([U,oe])=>(u(),d("tr",{key:U},[n("td",{class:R(`${ue}-env-key`)},[n("span",{class:R(`${ue}-config-key`)},h(U),3)],2),n("td",{class:R(`${ue}-env-val`)},[x(je)(oe)?(u(),d("span",{key:0,class:R(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(_e(oe,v.value.has(U))),1),n("button",{type:"button",class:R(`${ue}-btn`),title:v.value.has(U)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:at(K=>be(U),["stop"])},[v.value.has(U)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Fe)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:re.value},null,8,Gg)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Fe).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:he.value},null,8,Yg))],10,Jg)],2)):(u(),d("span",{key:1,class:R(`${ue}-config-val`)},h(B(oe)),3))],2),n("td",null,[x(je)(oe)?G("",!0):(u(),d("button",{key:0,type:"button",class:R(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:K=>Re(`env-${U}`,K),onClick:K=>ke(`${U}=${B(oe)}`,`env-${U}`,K)}," ⎘ ",10,Xg))])]))),128)),P.value.length===0?(u(),d("tr",Zg,[...le[3]||(le[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):G("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:R(`${ue}-config-table-wrap`)},[n("table",{class:R(`${ue}-table`)},[le[6]||(le[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(y.value,U=>(u(),d("tr",{key:U.path},[n("td",null,[n("span",{class:R(`${ue}-config-key`),style:{whiteSpace:"nowrap"}},h(U.path),3)]),n("td",null,[x(je)(U.value)?(u(),d("span",{key:0,class:R(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(_e(U.value,v.value.has(U.path))),1),n("button",{type:"button",class:R(`${ue}-btn`),title:v.value.has(U.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:at(oe=>be(U.path),["stop"])},[v.value.has(U.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Fe)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:re.value},null,8,t1)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Fe).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:he.value},null,8,s1))],10,e1)],2)):(u(),d("span",{key:1,class:R(`${ue}-config-val`),style:qe({wordBreak:"break-all",color:z(U.value).color})},h(z(U.value).text),7))]),n("td",null,[x(je)(U.value)?G("",!0):(u(),d("button",{key:0,type:"button",class:R(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:oe=>Re(`search-${U.path}`,oe),onClick:oe=>ke(`${U.path}: ${x(je)(U.value)?ie(U.value):z(U.value).text}`,`search-${U.path}`,oe)}," ⎘ ",10,n1))])]))),128)),y.value.length===0?(u(),d("tr",l1,[...le[5]||(le[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):G("",!0)])],2),n("div",o1,h(y.value.length)+" of "+h(k.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:R(`${ue}-config-table-wrap`)},[n("div",{class:R(`${ue}-config-sections`)},[(u(!0),d(N,null,ye(S.value,U=>(u(),d("div",{key:U,class:R(`${ue}-config-section`)},[Me(j(U))?(u(),d(N,{key:0},[n("div",{class:R(`${ue}-config-section-header`),style:{cursor:"pointer"},onClick:oe=>Q(U)},[n("span",{class:R(`${ue}-config-toggle`)},h(p.value.has(U)?"▼":"▶"),3),n("span",{class:R(`${ue}-config-key`)},h(U),3),n("span",{class:R(`${ue}-config-count`)},h(x(vi)(j(U)))+" entries ",3)],10,i1),p.value.has(U)?(u(),d("div",{key:0,class:R(`${ue}-config-section-body`)},[n("table",{class:R(`${ue}-table ${ue}-config-inner-table`)},[le[7]||(le[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(Ce(j(U),U),oe=>(u(),d("tr",{key:oe.path},[n("td",{title:we(oe.path,U)},[n("span",{class:R(`${ue}-config-key`)},h(we(oe.path,U)),3)],8,a1),n("td",{title:x(je)(oe.value)?ie(oe.value):z(oe.value).text},[x(je)(oe.value)?(u(),d("span",{key:0,class:R(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(_e(oe.value,v.value.has(oe.path))),1),n("button",{type:"button",class:R(`${ue}-btn`),title:v.value.has(oe.path)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:at(K=>be(oe.path),["stop"])},[v.value.has(oe.path)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Fe)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:re.value},null,8,c1)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Fe).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:he.value},null,8,d1))],10,u1)],2)):(u(),d("span",{key:1,class:R(`${ue}-config-val`),style:qe({color:z(oe.value).color})},h(z(oe.value).text),7))],8,r1),n("td",null,[x(je)(oe.value)?G("",!0):(u(),d("button",{key:0,type:"button",class:R(`${ue}-copy-row-btn`),title:"Copy",ref_for:!0,ref:K=>Re(`inner-${oe.path}`,K),onClick:K=>ke(`${oe.path}: ${z(oe.value).text}`,`inner-${oe.path}`,K)}," ⎘ ",10,f1))])]))),128))])],2)],2)):G("",!0)],64)):(u(),d("div",{key:1,class:R(`${ue}-config-section-header ${ue}-config-leaf`),style:{cursor:"default"}},[n("span",{class:R(`${ue}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:R(`${ue}-config-key`)},h(U),3),n("span",{class:R(`${ue}-config-val`),style:{marginLeft:"8px"}},[x(je)(j(U))?(u(),d("span",{key:0,class:R(`${ue}-config-redacted`),style:{display:"inline-flex",alignItems:"center",gap:"4px"}},[n("span",null,h(_e(j(U),v.value.has(U))),1),n("button",{type:"button",class:R(`${ue}-btn`),title:v.value.has(U)?"Hide":"Reveal",style:{padding:"0 4px",fontSize:"0.85em",lineHeight:1,minWidth:"auto"},onClick:at(oe=>be(U),["stop"])},[v.value.has(U)?(u(),d("svg",{key:0,width:"14",height:"14",viewBox:x(Fe)["eye-off"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:re.value},null,8,p1)):(u(),d("svg",{key:1,width:"14",height:"14",viewBox:x(Fe).eye.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:he.value},null,8,v1))],10,h1)],2)):j(U)===null||j(U)===void 0?(u(),d("span",g1,"null")):typeof j(U)=="boolean"?(u(),d("span",{key:2,style:qe({color:j(U)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(j(U))),5)):typeof j(U)=="number"?(u(),d("span",y1,h(String(j(U))),1)):Array.isArray(j(U))?(u(),d("span",m1,h(z(j(U)).text),1)):(u(),d("span",b1,h(String(j(U))),1))],2),x(je)(j(U))?G("",!0):(u(),d("button",{key:0,type:"button",class:R(`${ue}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:oe=>Re(`leaf-${U}`,oe),onClick:oe=>ke(`${U}: ${z(j(U)).text}`,`leaf-${U}`,oe)}," ⎘ ",10,_1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:R(`${ue}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),w1={key:0,class:"ss-dash-empty"},k1={key:1,class:"ss-dash-empty"},$1={key:2,class:"ss-dash-empty"},S1={key:0,style:{background:"var(--ss-amber-bg)",color:"var(--ss-amber-fg)",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",marginBottom:"12px",lineHeight:"1.5"}},C1={class:"ss-dash-info-cards"},T1={class:"ss-dash-info-card-label"},E1={class:"ss-dash-info-card-value"},P1={key:1,class:"ss-dash-empty"},R1={key:2,class:"ss-dash-table"},M1={style:{"font-family":"monospace","font-size":"11px"}},A1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},L1={style:{color:"var(--ss-dim)","margin-left":"4px"}},O1={style:{"font-size":"11px"}},D1=["onClick"],F1=["onClick"],I1={key:3,class:"ss-dash-empty"},B1={key:4,class:"ss-dash-table"},N1={class:"ss-dash-bar"},j1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},H1={key:5,class:"ss-dash-empty"},U1={key:6,class:"ss-dash-table"},q1={style:{color:"var(--ss-dim)"}},K1={key:7,class:"ss-dash-empty"},V1={key:8,class:"ss-dash-table"},z1={style:{color:"var(--ss-dim)","font-size":"11px"}},W1={class:"ss-dash-table"},Q1={style:{"font-family":"monospace","font-size":"11px"}},J1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},G1={style:{"font-family":"monospace","font-size":"11px"}},Y1={class:"ss-dash-table"},X1={class:"ss-dash-table"},Z1={style:{"font-family":"monospace","font-size":"11px"}},ey={style:{"font-family":"monospace","font-size":"11px"}},ty={style:{"font-family":"monospace","font-size":"11px"}},sy={style:{"font-size":"11px"}},ny=Object.freeze(Object.defineProperty({__proto__:null,default:Ne({__name:"InternalsSection",setup(e){const t=de("ss-refresh-key",W(0)),s=de("ss-base-url",""),l=de("ss-debug-endpoint","/admin/api/debug"),i=de("ss-auth-token",void 0),o=W(null),a=W(!0),r=W(null),c=W(new Set),g=cl(s,i);let p=null;async function b(){try{const P=await g().fetch(`${l}/diagnostics`);o.value=P,r.value=null,a.value=!1}catch(P){if(P instanceof ln){r.value=P,a.value=!1,p&&(clearInterval(p),p=null);return}r.value=P instanceof Error?P:new Error(String(P)),a.value=!1}}It(()=>{a.value=!0,r.value=null,b(),p=setInterval(b,si)}),Pt(()=>{p&&clearInterval(p)}),ht(t,()=>{b()});function v(P){c.value.has(P)?c.value.delete(P):c.value.add(P)}function w(P){const y=bc(P);return y==="ok"?"ss-dash-dot-ok":y==="err"?"ss-dash-dot-err":""}function $(P){return P.debounceMs!==void 0?`${Nt(P.debounceMs)} (debounce)`:P.intervalMs!==void 0?Nt(P.intervalMs):"-"}const _=H(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([P,y])=>({name:P.charAt(0).toUpperCase()+P.slice(1),...y,percent:gc(y.current,y.max)})):[]),C=H(()=>o.value?.timers?Object.entries(o.value.timers).map(([P,y])=>({key:P,label:cc(P),...y,interval:$(y)})):[]),A=H(()=>{if(!o.value)return[];const P=[];if(o.value.transmit&&P.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[y,k]of Object.entries(o.value.integrations))P.push({key:y,label:fc(y),status:hc(k),details:pc(y,k)});return P});return(P,y)=>(u(),d("div",null,[a.value&&!o.value?(u(),d("div",w1,"Loading diagnostics...")):r.value&&!o.value?(u(),d("div",k1,"Error: "+h(r.value.message),1)):o.value?(u(),d(N,{key:3},[o.value.collectors?.some(k=>k.name==="db_pool"||k.name==="app")&&Array.isArray(o.value.lucidDebugConnections)&&o.value.lucidDebugConnections.length===0?(u(),d("div",S1,[...y[4]||(y[4]=[n("strong",null,"Query capture disabled",-1),me(" — no Lucid connections have ",-1),n("code",{style:{"font-size":"11px"}},"debug: true",-1),me(". Add it to your database connection in ",-1),n("code",{style:{"font-size":"11px"}},"config/database.ts",-1),me(" to see queries in the Queries panel. ",-1)])])):G("",!0),y[42]||(y[42]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",C1,[(u(!0),d(N,null,ye([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:x(_u)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],k=>(u(),d("div",{key:k.label,class:"ss-dash-info-card"},[n("span",T1,h(k.label),1),n("span",E1,h(k.value),1)]))),128))]),y[43]||(y[43]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",R1,[y[5]||(y[5]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(o.value.collectors,k=>(u(),d("tr",{key:k.name},[n("td",null,[n("span",M1,h(k.name),1),k.label&&k.label!==k.name?(u(),d("span",A1,h(k.label),1)):G("",!0)]),n("td",null,[n("span",{class:R(["ss-dash-dot",w(k.status)])},null,2),me(" "+h(k.status),1)]),n("td",{style:qe(k.lastError?{color:"var(--ss-red-fg)"}:{})},[k.lastError?(u(),d(N,{key:0},[me(h(k.lastError)+" ",1),n("span",L1,h(x(kt)(k.lastErrorAt??0)),1)],64)):(u(),d(N,{key:1},[me("-")],64))],4),n("td",O1,[Object.keys(k.config||{}).length?(u(!0),d(N,{key:0},ye(x(vc)(k.config),S=>(u(),d("span",{key:S.key,style:{"margin-right":"8px"}},[me(h(S.key)+"=",1),S.secret&&!c.value.has(`collector-${k.name}-${S.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:Q=>v(`collector-${k.name}-${S.key}`)},"••••••••",8,D1)):(u(),d(N,{key:1},[n("span",null,h(S.value),1),S.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:Q=>v(`collector-${k.name}-${S.key}`)}," Hide ",8,F1)):G("",!0)],64))]))),128)):(u(),d(N,{key:1},[me("-")],64))])]))),128))])])):(u(),d("div",P1,"No collectors")),y[44]||(y[44]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),_.value.length?(u(),d("table",B1,[y[6]||(y[6]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(_.value,k=>(u(),d("tr",{key:k.name},[n("td",null,h(k.name),1),n("td",null,h(k.current.toLocaleString())+" / "+h(k.max.toLocaleString()),1),n("td",null,[n("div",N1,[n("div",j1,[n("div",{class:R(["ss-dash-bar-fill",k.percent>=100?"ss-dash-bar-fill-warn":""]),style:qe({width:k.percent+"%"})},null,6)]),n("span",{class:R(["ss-dash-bar-pct",k.percent>=100?"ss-dash-bar-pct-warn":""])},h(k.percent)+"%",3)])])]))),128))])])):(u(),d("div",I1,"No buffer data")),y[45]||(y[45]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),C.value.length?(u(),d("table",U1,[y[7]||(y[7]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(C.value,k=>(u(),d("tr",{key:k.key},[n("td",null,h(k.label),1),n("td",null,[n("span",{class:R(["ss-dash-dot",w(k.active?"active":"inactive")])},null,2),me(" "+h(k.active?"active":"inactive"),1)]),n("td",q1,h(k.interval),1)]))),128))])])):(u(),d("div",H1,"No timer data")),y[46]||(y[46]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),A.value.length?(u(),d("table",V1,[y[8]||(y[8]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(A.value,k=>(u(),d("tr",{key:k.key},[n("td",null,h(k.label),1),n("td",null,[n("span",{class:R(["ss-dash-dot",w(k.status)])},null,2),me(" "+h(k.status),1)]),n("td",z1,h(k.details),1)]))),128))])])):(u(),d("div",K1,"No integration data")),o.value.storage?(u(),d(N,{key:9},[y[17]||(y[17]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",W1,[y[15]||(y[15]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[9]||(y[9]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:R(["ss-dash-dot",w(o.value.storage.ready?"ready":"unavailable")])},null,2),me(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[y[10]||(y[10]=n("td",null,"DB Path",-1)),n("td",Q1,h(o.value.storage.dbPath),1)]),n("tr",null,[y[11]||(y[11]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[12]||(y[12]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[y[13]||(y[13]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[y[14]||(y[14]=n("td",null,"Last Cleanup",-1)),n("td",null,h(x(kt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",J1,[y[16]||(y[16]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(N,null,ye(o.value.storage.tables,k=>(u(),d("tr",{key:k.name},[n("td",G1,h(k.name),1),n("td",null,h(k.rowCount.toLocaleString()),1)]))),128))])])):G("",!0)],64)):G("",!0),y[47]||(y[47]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",Y1,[y[25]||(y[25]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[18]||(y[18]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[y[19]||(y[19]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[y[20]||(y[20]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[y[21]||(y[21]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[y[22]||(y[22]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[y[23]||(y[23]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[y[24]||(y[24]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),y[48]||(y[48]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",X1,[y[41]||(y[41]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[y[26]||(y[26]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[y[27]||(y[27]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[y[28]||(y[28]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[y[29]||(y[29]=n("td",null,"dashboardPath",-1)),n("td",Z1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[y[30]||(y[30]=n("td",null,"debugEndpoint",-1)),n("td",ey,[c.value.has("cfg-debugEndpoint")?(u(),d(N,{key:1},[me(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[1]||(y[1]=k=>v("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[0]||(y[0]=k=>v("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[y[31]||(y[31]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[y[32]||(y[32]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[y[33]||(y[33]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[y[34]||(y[34]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[y[35]||(y[35]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[y[36]||(y[36]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[y[37]||(y[37]=n("td",null,"dbPath",-1)),n("td",ty,[c.value.has("cfg-dbPath")?(u(),d(N,{key:1},[me(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:y[3]||(y[3]=k=>v("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:y[2]||(y[2]=k=>v("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[y[38]||(y[38]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[y[39]||(y[39]=n("td",null,"excludeFromTracing",-1)),n("td",sy,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[y[40]||(y[40]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",$1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|
|
1
|
+
(function(){"use strict";function vn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const Re={},Zt=[],ft=()=>{},pl=()=>!1,Fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gn=e=>e.startsWith("onUpdate:"),Ie=Object.assign,yn=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},wa=Object.prototype.hasOwnProperty,Se=(e,t)=>wa.call(e,t),he=Array.isArray,es=e=>ys(e)==="[object Map]",vl=e=>ys(e)==="[object Set]",gl=e=>ys(e)==="[object Date]",fe=e=>typeof e=="function",Le=e=>typeof e=="string",ot=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",yl=e=>(Te(e)||fe(e))&&fe(e.then)&&fe(e.catch),ml=Object.prototype.toString,ys=e=>ml.call(e),$a=e=>ys(e).slice(8,-1),bl=e=>ys(e)==="[object Object]",mn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ms=vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Is=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ka=/-\w/g,tt=Is(e=>e.replace(ka,t=>t.slice(1).toUpperCase())),Sa=/\B([A-Z])/g,Mt=Is(e=>e.replace(Sa,"-$1").toLowerCase()),Ns=Is(e=>e.charAt(0).toUpperCase()+e.slice(1)),bn=Is(e=>e?`on${Ns(e)}`:""),Lt=(e,t)=>!Object.is(e,t),_n=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},_l=(e,t,s,l=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:s})},Ca=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ta=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let xl;const js=()=>xl||(xl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ne(e){if(he(e)){const t={};for(let s=0;s<e.length;s++){const l=e[s],a=Le(l)?Aa(l):Ne(l);if(a)for(const o in a)t[o]=a[o]}return t}else if(Le(e)||Te(e))return e}const Ea=/;(?![^(]*\))/g,Pa=/:([^]+)/,Ra=/\/\*[^]*?\*\//g;function Aa(e){const t={};return e.replace(Ra,"").split(Ea).forEach(s=>{if(s){const l=s.split(Pa);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function N(e){let t="";if(Le(e))t=e;else if(he(e))for(let s=0;s<e.length;s++){const l=N(e[s]);l&&(t+=l+" ")}else if(Te(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ma=vn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function wl(e){return!!e||e===""}function La(e,t){if(e.length!==t.length)return!1;let s=!0;for(let l=0;s&&l<e.length;l++)s=xn(e[l],t[l]);return s}function xn(e,t){if(e===t)return!0;let s=gl(e),l=gl(t);if(s||l)return s&&l?e.getTime()===t.getTime():!1;if(s=ot(e),l=ot(t),s||l)return e===t;if(s=he(e),l=he(t),s||l)return s&&l?La(e,t):!1;if(s=Te(e),l=Te(t),s||l){if(!s||!l)return!1;const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const r in e){const i=e.hasOwnProperty(r),c=t.hasOwnProperty(r);if(i&&!c||!i&&c||!xn(e[r],t[r]))return!1}}return String(e)===String(t)}const $l=e=>!!(e&&e.__v_isRef===!0),h=e=>Le(e)?e:e==null?"":he(e)||Te(e)&&(e.toString===ml||!fe(e.toString))?$l(e)?h(e.value):JSON.stringify(e,kl,2):String(e),kl=(e,t)=>$l(t)?kl(e,t.value):es(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[l,a],o)=>(s[wn(l,o)+" =>"]=a,s),{})}:vl(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>wn(s))}:ot(t)?wn(t):Te(t)&&!he(t)&&!bl(t)?String(t):t,wn=(e,t="")=>{var s;return ot(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let Xe;class Oa{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=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.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=Xe;try{return Xe=this,t()}finally{Xe=s}}}on(){++this._on===1&&(this.prevScope=Xe,Xe=this)}off(){this._on>0&&--this._on===0&&(Xe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,l;for(s=0,l=this.effects.length;s<l;s++)this.effects[s].stop();for(this.effects.length=0,s=0,l=this.cleanups.length;s<l;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,l=this.scopes.length;s<l;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function Da(){return Xe}let Ae;const $n=new WeakSet;class Sl{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,Xe&&Xe.active&&Xe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,$n.has(this)&&($n.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,Ml(this),El(this);const t=Ae,s=at;Ae=this,at=!0;try{return this.fn()}finally{Pl(this),Ae=t,at=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,Ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?$n.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Cn(this)&&this.run()}get dirty(){return Cn(this)}}let Cl=0,bs,_s;function Tl(e,t=!1){if(e.flags|=8,t){e.next=_s,_s=e;return}e.next=bs,bs=e}function kn(){Cl++}function Sn(){if(--Cl>0)return;if(_s){let t=_s;for(_s=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;bs;){let t=bs;for(bs=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=s}}if(e)throw e}function El(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pl(e){let t,s=e.depsTail,l=s;for(;l;){const a=l.prevDep;l.version===-1?(l===s&&(s=a),Tn(l),Fa(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=a}e.deps=t,e.depsTail=s}function Cn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Rl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xs)||(e.globalVersion=xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cn(e))))return;e.flags|=2;const t=e.dep,s=Ae,l=at;Ae=e,at=!0;try{El(e);const a=e.fn(e._value);(t.version===0||Lt(a,e._value))&&(e.flags|=128,e._value=a,t.version++)}catch(a){throw t.version++,a}finally{Ae=s,at=l,Pl(e),e.flags&=-3}}function Tn(e,t=!1){const{dep:s,prevSub:l,nextSub:a}=e;if(l&&(l.nextSub=a,e.prevSub=void 0),a&&(a.prevSub=l,e.nextSub=void 0),s.subs===e&&(s.subs=l,!l&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Tn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Fa(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let at=!0;const Al=[];function ht(){Al.push(at),at=!1}function pt(){const e=Al.pop();at=e===void 0?!0:e}function Ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=Ae;Ae=void 0;try{t()}finally{Ae=s}}}let xs=0;class Ia{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class En{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ae||!at||Ae===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ae)s=this.activeLink=new Ia(Ae,this),Ae.deps?(s.prevDep=Ae.depsTail,Ae.depsTail.nextDep=s,Ae.depsTail=s):Ae.deps=Ae.depsTail=s,Ll(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const l=s.nextDep;l.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=l),s.prevDep=Ae.depsTail,s.nextDep=void 0,Ae.depsTail.nextDep=s,Ae.depsTail=s,Ae.deps===s&&(Ae.deps=l)}return s}trigger(t){this.version++,xs++,this.notify(t)}notify(t){kn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Sn()}}}function Ll(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)Ll(l)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Pn=new WeakMap,zt=Symbol(""),Rn=Symbol(""),ws=Symbol("");function qe(e,t,s){if(at&&Ae){let l=Pn.get(e);l||Pn.set(e,l=new Map);let a=l.get(s);a||(l.set(s,a=new En),a.map=l,a.key=s),a.track()}}function xt(e,t,s,l,a,o){const r=Pn.get(e);if(!r){xs++;return}const i=c=>{c&&c.trigger()};if(kn(),t==="clear")r.forEach(i);else{const c=he(e),v=c&&mn(s);if(c&&s==="length"){const p=Number(l);r.forEach((g,k)=>{(k==="length"||k===ws||!ot(k)&&k>=p)&&i(g)})}else switch((s!==void 0||r.has(void 0))&&i(r.get(s)),v&&i(r.get(ws)),t){case"add":c?v&&i(r.get("length")):(i(r.get(zt)),es(e)&&i(r.get(Rn)));break;case"delete":c||(i(r.get(zt)),es(e)&&i(r.get(Rn)));break;case"set":es(e)&&i(r.get(zt));break}}Sn()}function ts(e){const t=xe(e);return t===e?t:(qe(t,"iterate",ws),st(e)?t:t.map(rt))}function Bs(e){return qe(e=xe(e),"iterate",ws),e}function Ot(e,t){return $t(e)?ns(Wt(e)?rt(t):t):rt(t)}const Na={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return ts(this).concat(...e.map(t=>he(t)?ts(t):t))},entries(){return An(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,s=>s.map(l=>Ot(this,l)),arguments)},find(e,t){return wt(this,"find",e,t,s=>Ot(this,s),arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,s=>Ot(this,s),arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Mn(this,"includes",e)},indexOf(...e){return Mn(this,"indexOf",e)},join(e){return ts(this).join(e)},lastIndexOf(...e){return Mn(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return $s(this,"pop")},push(...e){return $s(this,"push",e)},reduce(e,...t){return Ol(this,"reduce",e,t)},reduceRight(e,...t){return Ol(this,"reduceRight",e,t)},shift(){return $s(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return $s(this,"splice",e)},toReversed(){return ts(this).toReversed()},toSorted(e){return ts(this).toSorted(e)},toSpliced(...e){return ts(this).toSpliced(...e)},unshift(...e){return $s(this,"unshift",e)},values(){return An(this,"values",e=>Ot(this,e))}};function An(e,t,s){const l=Bs(e),a=l[t]();return l!==e&&!st(e)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=s(o.value)),o}),a}const ja=Array.prototype;function wt(e,t,s,l,a,o){const r=Bs(e),i=r!==e&&!st(e),c=r[t];if(c!==ja[t]){const g=c.apply(e,o);return i?rt(g):g}let v=s;r!==e&&(i?v=function(g,k){return s.call(this,Ot(e,g),k,e)}:s.length>2&&(v=function(g,k){return s.call(this,g,k,e)}));const p=c.call(r,v,l);return i&&a?a(p):p}function Ol(e,t,s,l){const a=Bs(e);let o=s;return a!==e&&(st(e)?s.length>3&&(o=function(r,i,c){return s.call(this,r,i,c,e)}):o=function(r,i,c){return s.call(this,r,Ot(e,i),c,e)}),a[t](o,...l)}function Mn(e,t,s){const l=xe(e);qe(l,"iterate",ws);const a=l[t](...s);return(a===-1||a===!1)&&Dn(s[0])?(s[0]=xe(s[0]),l[t](...s)):a}function $s(e,t,s=[]){ht(),kn();const l=xe(e)[t].apply(e,s);return Sn(),pt(),l}const Ba=vn("__proto__,__v_isRef,__isVue"),Dl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function Ua(e){ot(e)||(e=String(e));const t=xe(this);return qe(t,"has",e),t.hasOwnProperty(e)}class Fl{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,l){if(s==="__v_skip")return t.__v_skip;const a=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!a;if(s==="__v_isReadonly")return a;if(s==="__v_isShallow")return o;if(s==="__v_raw")return l===(a?o?ql:Ul:o?Bl:jl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=he(t);if(!a){let c;if(r&&(c=Na[s]))return c;if(s==="hasOwnProperty")return Ua}const i=Reflect.get(t,s,je(t)?t:l);if((ot(s)?Dl.has(s):Ba(s))||(a||qe(t,"get",s),o))return i;if(je(i)){const c=r&&mn(s)?i:i.value;return a&&Te(c)?On(c):c}return Te(i)?a?On(i):ss(i):i}}class Il extends Fl{constructor(t=!1){super(!1,t)}set(t,s,l,a){let o=t[s];const r=he(t)&&mn(s);if(!this._isShallow){const v=$t(o);if(!st(l)&&!$t(l)&&(o=xe(o),l=xe(l)),!r&&je(o)&&!je(l))return v||(o.value=l),!0}const i=r?Number(s)<t.length:Se(t,s),c=Reflect.set(t,s,l,je(t)?t:a);return t===xe(a)&&(i?Lt(l,o)&&xt(t,"set",s,l):xt(t,"add",s,l)),c}deleteProperty(t,s){const l=Se(t,s);t[s];const a=Reflect.deleteProperty(t,s);return a&&l&&xt(t,"delete",s,void 0),a}has(t,s){const l=Reflect.has(t,s);return(!ot(s)||!Dl.has(s))&&qe(t,"has",s),l}ownKeys(t){return qe(t,"iterate",he(t)?"length":zt),Reflect.ownKeys(t)}}class Nl extends Fl{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const qa=new Il,Ha=new Nl,Ka=new Il(!0),Va=new Nl(!0),Ln=e=>e,Us=e=>Reflect.getPrototypeOf(e);function za(e,t,s){return function(...l){const a=this.__v_raw,o=xe(a),r=es(o),i=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,v=a[e](...l),p=s?Ln:t?ns:rt;return!t&&qe(o,"iterate",c?Rn:zt),Ie(Object.create(v),{next(){const{value:g,done:k}=v.next();return k?{value:g,done:k}:{value:i?[p(g[0]),p(g[1])]:p(g),done:k}}})}}function qs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Wa(e,t){const s={get(a){const o=this.__v_raw,r=xe(o),i=xe(a);e||(Lt(a,i)&&qe(r,"get",a),qe(r,"get",i));const{has:c}=Us(r),v=t?Ln:e?ns:rt;if(c.call(r,a))return v(o.get(a));if(c.call(r,i))return v(o.get(i));o!==r&&o.get(a)},get size(){const a=this.__v_raw;return!e&&qe(xe(a),"iterate",zt),a.size},has(a){const o=this.__v_raw,r=xe(o),i=xe(a);return e||(Lt(a,i)&&qe(r,"has",a),qe(r,"has",i)),a===i?o.has(a):o.has(a)||o.has(i)},forEach(a,o){const r=this,i=r.__v_raw,c=xe(i),v=t?Ln:e?ns:rt;return!e&&qe(c,"iterate",zt),i.forEach((p,g)=>a.call(o,v(p),v(g),r))}};return Ie(s,e?{add:qs("add"),set:qs("set"),delete:qs("delete"),clear:qs("clear")}:{add(a){!t&&!st(a)&&!$t(a)&&(a=xe(a));const o=xe(this);return Us(o).has.call(o,a)||(o.add(a),xt(o,"add",a,a)),this},set(a,o){!t&&!st(o)&&!$t(o)&&(o=xe(o));const r=xe(this),{has:i,get:c}=Us(r);let v=i.call(r,a);v||(a=xe(a),v=i.call(r,a));const p=c.call(r,a);return r.set(a,o),v?Lt(o,p)&&xt(r,"set",a,o):xt(r,"add",a,o),this},delete(a){const o=xe(this),{has:r,get:i}=Us(o);let c=r.call(o,a);c||(a=xe(a),c=r.call(o,a)),i&&i.call(o,a);const v=o.delete(a);return c&&xt(o,"delete",a,void 0),v},clear(){const a=xe(this),o=a.size!==0,r=a.clear();return o&&xt(a,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(a=>{s[a]=za(a,e,t)}),s}function Hs(e,t){const s=Wa(e,t);return(l,a,o)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?l:Reflect.get(Se(s,a)&&a in l?s:l,a,o)}const Qa={get:Hs(!1,!1)},Ja={get:Hs(!1,!0)},Ga={get:Hs(!0,!1)},Ya={get:Hs(!0,!0)},jl=new WeakMap,Bl=new WeakMap,Ul=new WeakMap,ql=new WeakMap;function Xa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Za(e){return e.__v_skip||!Object.isExtensible(e)?0:Xa($a(e))}function ss(e){return $t(e)?e:Ks(e,!1,qa,Qa,jl)}function er(e){return Ks(e,!1,Ka,Ja,Bl)}function On(e){return Ks(e,!0,Ha,Ga,Ul)}function J1(e){return Ks(e,!0,Va,Ya,ql)}function Ks(e,t,s,l,a){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Za(e);if(o===0)return e;const r=a.get(e);if(r)return r;const i=new Proxy(e,o===2?l:s);return a.set(e,i),i}function Wt(e){return $t(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function st(e){return!!(e&&e.__v_isShallow)}function Dn(e){return e?!!e.__v_raw:!1}function xe(e){const t=e&&e.__v_raw;return t?xe(t):e}function tr(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&_l(e,"__v_skip",!0),e}const rt=e=>Te(e)?ss(e):e,ns=e=>Te(e)?On(e):e;function je(e){return e?e.__v_isRef===!0:!1}function J(e){return sr(e,!1)}function sr(e,t){return je(e)?e:new nr(e,t)}class nr{constructor(t,s){this.dep=new En,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:xe(t),this._value=s?t:rt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,l=this.__v_isShallow||st(t)||$t(t);t=l?t:xe(t),Lt(t,s)&&(this._rawValue=t,this._value=l?t:rt(t),this.dep.trigger())}}function w(e){return je(e)?e.value:e}const lr={get:(e,t,s)=>t==="__v_raw"?e:w(Reflect.get(e,t,s)),set:(e,t,s,l)=>{const a=e[t];return je(a)&&!je(s)?(a.value=s,!0):Reflect.set(e,t,s,l)}};function Hl(e){return Wt(e)?e:new Proxy(e,lr)}class or{constructor(t,s,l){this.fn=t,this.setter=s,this._value=void 0,this.dep=new En(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&Ae!==this)return Tl(this,!0),!0}get value(){const t=this.dep.track();return Rl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ar(e,t,s=!1){let l,a;return fe(e)?l=e:(l=e.get,a=e.set),new or(l,a,s)}const Vs={},zs=new WeakMap;let Qt;function rr(e,t=!1,s=Qt){if(s){let l=zs.get(s);l||zs.set(s,l=[]),l.push(e)}}function ir(e,t,s=Re){const{immediate:l,deep:a,once:o,scheduler:r,augmentJob:i,call:c}=s,v=$=>a?$:st($)||a===!1||a===0?Dt($,1):Dt($);let p,g,k,x,_=!1,m=!1;if(je(e)?(g=()=>e.value,_=st(e)):Wt(e)?(g=()=>v(e),_=!0):he(e)?(m=!0,_=e.some($=>Wt($)||st($)),g=()=>e.map($=>{if(je($))return $.value;if(Wt($))return v($);if(fe($))return c?c($,2):$()})):fe(e)?t?g=c?()=>c(e,2):e:g=()=>{if(k){ht();try{k()}finally{pt()}}const $=Qt;Qt=p;try{return c?c(e,3,[x]):e(x)}finally{Qt=$}}:g=ft,t&&a){const $=g,T=a===!0?1/0:a;g=()=>Dt($(),T)}const S=Da(),U=()=>{p.stop(),S&&S.active&&yn(S.effects,p)};if(o&&t){const $=t;t=(...T)=>{$(...T),U()}}let L=m?new Array(e.length).fill(Vs):Vs;const b=$=>{if(!(!(p.flags&1)||!p.dirty&&!$))if(t){const T=p.run();if(a||_||(m?T.some((R,te)=>Lt(R,L[te])):Lt(T,L))){k&&k();const R=Qt;Qt=p;try{const te=[T,L===Vs?void 0:m&&L[0]===Vs?[]:L,x];L=T,c?c(t,3,te):t(...te)}finally{Qt=R}}}else p.run()};return i&&i(b),p=new Sl(g),p.scheduler=r?()=>r(b,!1):b,x=$=>rr($,!1,p),k=p.onStop=()=>{const $=zs.get(p);if($){if(c)c($,4);else for(const T of $)T();zs.delete(p)}},t?l?b(!0):L=p.run():r?r(b.bind(null,!0),!0):p.run(),U.pause=p.pause.bind(p),U.resume=p.resume.bind(p),U.stop=U,U}function Dt(e,t=1/0,s){if(t<=0||!Te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,je(e))Dt(e.value,t,s);else if(he(e))for(let l=0;l<e.length;l++)Dt(e[l],t,s);else if(vl(e)||es(e))e.forEach(l=>{Dt(l,t,s)});else if(bl(e)){for(const l in e)Dt(e[l],t,s);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&Dt(e[l],t,s)}return e}const ks=[];let Fn=!1;function G1(e,...t){if(Fn)return;Fn=!0,ht();const s=ks.length?ks[ks.length-1].component:null,l=s&&s.appContext.config.warnHandler,a=ur();if(l)ls(l,s,11,[e+t.map(o=>{var r,i;return(i=(r=o.toString)==null?void 0:r.call(o))!=null?i:JSON.stringify(o)}).join(""),s&&s.proxy,a.map(({vnode:o})=>`at <${Ho(s,o.type)}>`).join(`
|
|
2
|
+
`),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push(`
|
|
3
|
+
`,...cr(a)),console.warn(...o)}pt(),Fn=!1}function ur(){let e=ks[ks.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const l=e.component&&e.component.parent;e=l&&l.vnode}return t}function cr(e){const t=[];return e.forEach((s,l)=>{t.push(...l===0?[]:[`
|
|
4
|
+
`],...dr(s))}),t}function dr({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",l=e.component?e.component.parent==null:!1,a=` at <${Ho(e.component,e.type,l)}`,o=">"+s;return e.props?[a,...fr(e.props),o]:[a+o]}function fr(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(l=>{t.push(...Kl(l,e[l]))}),s.length>3&&t.push(" ..."),t}function Kl(e,t,s){return Le(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:je(t)?(t=Kl(e,xe(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):fe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=xe(t),s?t:[`${e}=`,t])}function ls(e,t,s,l){try{return l?e(...l):e()}catch(a){os(a,t,s)}}function vt(e,t,s,l){if(fe(e)){const a=ls(e,t,s,l);return a&&yl(a)&&a.catch(o=>{os(o,t,s)}),a}if(he(e)){const a=[];for(let o=0;o<e.length;o++)a.push(vt(e[o],t,s,l));return a}}function os(e,t,s,l=!0){const a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Re;if(t){let i=t.parent;const c=t.proxy,v=`https://vuejs.org/error-reference/#runtime-${s}`;for(;i;){const p=i.ec;if(p){for(let g=0;g<p.length;g++)if(p[g](e,c,v)===!1)return}i=i.parent}if(o){ht(),ls(o,null,10,[e,c,v]),pt();return}}hr(e,s,a,l,r)}function hr(e,t,s,l=!0,a=!1){if(a)throw e;console.error(e)}const ze=[];let gt=-1;const as=[];let Ft=null,rs=0;const Vl=Promise.resolve();let Ws=null;function In(e){const t=Ws||Vl;return e?t.then(this?e.bind(this):e):t}function pr(e){let t=gt+1,s=ze.length;for(;t<s;){const l=t+s>>>1,a=ze[l],o=Ss(a);o<e||o===e&&a.flags&2?t=l+1:s=l}return t}function Nn(e){if(!(e.flags&1)){const t=Ss(e),s=ze[ze.length-1];!s||!(e.flags&2)&&t>=Ss(s)?ze.push(e):ze.splice(pr(t),0,e),e.flags|=1,zl()}}function zl(){Ws||(Ws=Vl.then(Jl))}function jn(e){he(e)?as.push(...e):Ft&&e.id===-1?Ft.splice(rs+1,0,e):e.flags&1||(as.push(e),e.flags|=1),zl()}function Wl(e,t,s=gt+1){for(;s<ze.length;s++){const l=ze[s];if(l&&l.flags&2){if(e&&l.id!==e.uid)continue;ze.splice(s,1),s--,l.flags&4&&(l.flags&=-2),l(),l.flags&4||(l.flags&=-2)}}}function Ql(e){if(as.length){const t=[...new Set(as)].sort((s,l)=>Ss(s)-Ss(l));if(as.length=0,Ft){Ft.push(...t);return}for(Ft=t,rs=0;rs<Ft.length;rs++){const s=Ft[rs];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ft=null,rs=0}}const Ss=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jl(e){try{for(gt=0;gt<ze.length;gt++){const t=ze[gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ls(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;gt<ze.length;gt++){const t=ze[gt];t&&(t.flags&=-2)}gt=-1,ze.length=0,Ql(),Ws=null,(ze.length||as.length)&&Jl()}}let We=null,Gl=null;function Qs(e){const t=We;return We=e,Gl=e&&e.type.__scopeId||null,t}function is(e,t=We,s){if(!t||e._n)return e;const l=(...a)=>{l._d&&Fo(-1);const o=Qs(t);let r;try{r=e(...a)}finally{Qs(o),l._d&&Fo(1)}return r};return l._n=!0,l._c=!0,l._d=!0,l}function Jt(e,t,s,l){const a=e.dirs,o=t&&t.dirs;for(let r=0;r<a.length;r++){const i=a[r];o&&(i.oldValue=o[r].value);let c=i.dir[l];c&&(ht(),vt(c,s,8,[e.el,i,e,t]),pt())}}function It(e,t){if(Be){let s=Be.provides;const l=Be.parent&&Be.parent.provides;l===s&&(s=Be.provides=Object.create(l)),s[e]=t}}function ie(e,t,s=!1){const l=xi();if(l||cs){let a=cs?cs._context.provides:l?l.parent==null||l.ce?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return s&&fe(t)?t.call(l&&l.proxy):t}}const vr=Symbol.for("v-scx"),gr=()=>ie(vr);function it(e,t,s){return Yl(e,t,s)}function Yl(e,t,s=Re){const{immediate:l,deep:a,flush:o,once:r}=s,i=Ie({},s),c=t&&l||!t&&o!=="post";let v;if(ps){if(o==="sync"){const x=gr();v=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=ft,x.resume=ft,x.pause=ft,x}}const p=Be;i.call=(x,_,m)=>vt(x,p,_,m);let g=!1;o==="post"?i.scheduler=x=>{Je(x,p&&p.suspense)}:o!=="sync"&&(g=!0,i.scheduler=(x,_)=>{_?x():Nn(x)}),i.augmentJob=x=>{t&&(x.flags|=4),g&&(x.flags|=2,p&&(x.id=p.uid,x.i=p))};const k=ir(e,t,i);return ps&&(v?v.push(k):c&&k()),k}function yr(e,t,s){const l=this.proxy,a=Le(e)?e.includes(".")?Xl(l,e):()=>l[e]:e.bind(l,l);let o;fe(t)?o=t:(o=t.handler,s=t);const r=As(this),i=Yl(a,o.bind(l),s);return r(),i}function Xl(e,t){const s=t.split(".");return()=>{let l=e;for(let a=0;a<s.length&&l;a++)l=l[s[a]];return l}}const mr=Symbol("_vte"),br=e=>e.__isTeleport,_r=Symbol("_leaveCb");function Bn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Bn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oe(e,t){return fe(e)?Ie({name:e.name},t,{setup:e}):e}function Un(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Zl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const Js=new WeakMap;function Cs(e,t,s,l,a=!1){if(he(e)){e.forEach((m,S)=>Cs(m,t&&(he(t)?t[S]:t),s,l,a));return}if(us(l)&&!a){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Cs(e,t,s,l.component.subTree);return}const o=l.shapeFlag&4?sl(l.component):l.el,r=a?null:o,{i,r:c}=e,v=t&&t.r,p=i.refs===Re?i.refs={}:i.refs,g=i.setupState,k=xe(g),x=g===Re?pl:m=>Zl(p,m)?!1:Se(k,m),_=(m,S)=>!(S&&Zl(p,S));if(v!=null&&v!==c){if(eo(t),Le(v))p[v]=null,x(v)&&(g[v]=null);else if(je(v)){const m=t;_(v,m.k)&&(v.value=null),m.k&&(p[m.k]=null)}}if(fe(c))ls(c,i,12,[r,p]);else{const m=Le(c),S=je(c);if(m||S){const U=()=>{if(e.f){const L=m?x(c)?g[c]:p[c]:_()||!e.k?c.value:p[e.k];if(a)he(L)&&yn(L,o);else if(he(L))L.includes(o)||L.push(o);else if(m)p[c]=[o],x(c)&&(g[c]=p[c]);else{const b=[o];_(c,e.k)&&(c.value=b),e.k&&(p[e.k]=b)}}else m?(p[c]=r,x(c)&&(g[c]=r)):S&&(_(c,e.k)&&(c.value=r),e.k&&(p[e.k]=r))};if(r){const L=()=>{U(),Js.delete(e)};L.id=-1,Js.set(e,L),Je(L,s)}else eo(e),U()}}}function eo(e){const t=Js.get(e);t&&(t.flags|=8,Js.delete(e))}const to=e=>e.nodeType===8;js().requestIdleCallback,js().cancelIdleCallback;function xr(e,t){if(to(e)&&e.data==="["){let s=1,l=e.nextSibling;for(;l;){if(l.nodeType===1){if(t(l)===!1)break}else if(to(l))if(l.data==="]"){if(--s===0)break}else l.data==="["&&s++;l=l.nextSibling}}else t(e)}const us=e=>!!e.type.__asyncLoader;function ut(e){fe(e)&&(e={loader:e});const{loader:t,loadingComponent:s,errorComponent:l,delay:a=200,hydrate:o,timeout:r,suspensible:i=!0,onError:c}=e;let v=null,p,g=0;const k=()=>(g++,v=null,x()),x=()=>{let _;return v||(_=v=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),c)return new Promise((S,U)=>{c(m,()=>S(k()),()=>U(m),g+1)});throw m}).then(m=>_!==v&&v?v:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),p=m,m)))};return Oe({name:"AsyncComponentWrapper",__asyncLoader:x,__asyncHydrate(_,m,S){let U=!1;(m.bu||(m.bu=[])).push(()=>U=!0);const L=()=>{U||S()},b=o?()=>{const $=o(L,T=>xr(_,T));$&&(m.bum||(m.bum=[])).push($)}:L;p?b():x().then(()=>!m.isUnmounted&&b())},get __asyncResolved(){return p},setup(){const _=Be;if(Un(_),p)return()=>Gs(p,_);const m=b=>{v=null,os(b,_,13,!l)};if(i&&_.suspense||ps)return x().then(b=>()=>Gs(b,_)).catch(b=>(m(b),()=>l?_e(l,{error:b}):null));const S=J(!1),U=J(),L=J(!!a);return a&&setTimeout(()=>{L.value=!1},a),r!=null&&setTimeout(()=>{if(!S.value&&!U.value){const b=new Error(`Async component timed out after ${r}ms.`);m(b),U.value=b}},r),x().then(()=>{S.value=!0,_.parent&&qn(_.parent.vnode)&&_.parent.update()}).catch(b=>{m(b),U.value=b}),()=>{if(S.value&&p)return Gs(p,_);if(U.value&&l)return _e(l,{error:U.value});if(s&&!L.value)return Gs(s,_)}}})}function Gs(e,t){const{ref:s,props:l,children:a,ce:o}=t.vnode,r=_e(e,l,a);return r.ref=s,r.ce=o,delete t.vnode.ce,r}const qn=e=>e.type.__isKeepAlive;function wr(e,t){so(e,"a",t)}function $r(e,t){so(e,"da",t)}function so(e,t,s=Be){const l=e.__wdc||(e.__wdc=()=>{let a=s;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Ys(t,l,s),s){let a=s.parent;for(;a&&a.parent;)qn(a.parent.vnode)&&kr(l,t,s,a),a=a.parent}}function kr(e,t,s,l){const a=Ys(t,e,l,!0);Ct(()=>{yn(l[t],a)},s)}function Ys(e,t,s=Be,l=!1){if(s){const a=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{ht();const i=As(s),c=vt(t,s,e,r);return i(),pt(),c});return l?a.unshift(o):a.push(o),o}}const kt=e=>(t,s=Be)=>{(!ps||e==="sp")&&Ys(e,(...l)=>t(...l),s)},Sr=kt("bm"),St=kt("m"),Cr=kt("bu"),Tr=kt("u"),no=kt("bum"),Ct=kt("um"),Er=kt("sp"),Pr=kt("rtg"),Rr=kt("rtc");function Ar(e,t=Be){Ys("ec",e,t)}const Mr="components",lo=Symbol.for("v-ndc");function Lr(e){return Le(e)?Or(Mr,e,!1)||e:e||lo}function Or(e,t,s=!0,l=!1){const a=We||Be;if(a){const o=a.type;{const i=qo(o,!1);if(i&&(i===t||i===tt(t)||i===Ns(tt(t))))return o}const r=oo(a[e]||o[e],t)||oo(a.appContext[e],t);return!r&&l?o:r}}function oo(e,t){return e&&(e[t]||e[tt(t)]||e[Ns(tt(t))])}function pe(e,t,s,l){let a;const o=s,r=he(e);if(r||Le(e)){const i=r&&Wt(e);let c=!1,v=!1;i&&(c=!st(e),v=$t(e),e=Bs(e)),a=new Array(e.length);for(let p=0,g=e.length;p<g;p++)a[p]=t(c?v?ns(rt(e[p])):rt(e[p]):e[p],p,void 0,o)}else if(typeof e=="number"){a=new Array(e);for(let i=0;i<e;i++)a[i]=t(i+1,i,void 0,o)}else if(Te(e))if(e[Symbol.iterator])a=Array.from(e,(i,c)=>t(i,c,void 0,o));else{const i=Object.keys(e);a=new Array(i.length);for(let c=0,v=i.length;c<v;c++){const p=i[c];a[c]=t(e[p],p,c,o)}}else a=[];return a}function Dr(e,t,s={},l,a){if(We.ce||We.parent&&us(We.parent)&&We.parent.ce){const v=Object.keys(s).length>0;return u(),et(B,null,[_e("slot",s,l)],v?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),u();const r=o&&ao(o(s)),i=s.key||r&&r.key,c=et(B,{key:(i&&!ot(i)?i:`_${t}`)+(!r&&l?"_fb":"")},r||[],r&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function ao(e){return e.some(t=>sn(t)?!(t.type===ct||t.type===B&&!ao(t.children)):!0)?e:null}const Hn=e=>e?Bo(e)?sl(e):Hn(e.parent):null,Ts=Ie(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=>Hn(e.parent),$root:e=>Hn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>co(e),$forceUpdate:e=>e.f||(e.f=()=>{Nn(e.update)}),$nextTick:e=>e.n||(e.n=In.bind(e.proxy)),$watch:e=>yr.bind(e)}),Kn=(e,t)=>e!==Re&&!e.__isScriptSetup&&Se(e,t),Fr={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:l,data:a,props:o,accessCache:r,type:i,appContext:c}=e;if(t[0]!=="$"){const k=r[t];if(k!==void 0)switch(k){case 1:return l[t];case 2:return a[t];case 4:return s[t];case 3:return o[t]}else{if(Kn(l,t))return r[t]=1,l[t];if(a!==Re&&Se(a,t))return r[t]=2,a[t];if(Se(o,t))return r[t]=3,o[t];if(s!==Re&&Se(s,t))return r[t]=4,s[t];Vn&&(r[t]=0)}}const v=Ts[t];let p,g;if(v)return t==="$attrs"&&qe(e.attrs,"get",""),v(e);if((p=i.__cssModules)&&(p=p[t]))return p;if(s!==Re&&Se(s,t))return r[t]=4,s[t];if(g=c.config.globalProperties,Se(g,t))return g[t]},set({_:e},t,s){const{data:l,setupState:a,ctx:o}=e;return Kn(a,t)?(a[t]=s,!0):l!==Re&&Se(l,t)?(l[t]=s,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:l,appContext:a,props:o,type:r}},i){let c;return!!(s[i]||e!==Re&&i[0]!=="$"&&Se(e,i)||Kn(t,i)||Se(o,i)||Se(l,i)||Se(Ts,i)||Se(a.config.globalProperties,i)||(c=r.__cssModules)&&c[i])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Se(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function ro(e){return he(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Vn=!0;function Ir(e){const t=co(e),s=e.proxy,l=e.ctx;Vn=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:a,computed:o,methods:r,watch:i,provide:c,inject:v,created:p,beforeMount:g,mounted:k,beforeUpdate:x,updated:_,activated:m,deactivated:S,beforeDestroy:U,beforeUnmount:L,destroyed:b,unmounted:$,render:T,renderTracked:R,renderTriggered:te,errorCaptured:re,serverPrefetch:X,expose:ge,inheritAttrs:Ee,components:we,directives:Ce,filters:me}=t;if(v&&Nr(v,l,null),r)for(const q in r){const V=r[q];fe(V)&&(l[q]=V.bind(s))}if(a){const q=a.call(s,s);Te(q)&&(e.data=ss(q))}if(Vn=!0,o)for(const q in o){const V=o[q],ue=fe(V)?V.bind(s,s):fe(V.get)?V.get.bind(s,s):ft,E=!fe(V)&&fe(V.set)?V.set.bind(s):ft,O=H({get:ue,set:E});Object.defineProperty(l,q,{enumerable:!0,configurable:!0,get:()=>O.value,set:P=>O.value=P})}if(i)for(const q in i)uo(i[q],l,s,q);if(c){const q=fe(c)?c.call(s):c;Reflect.ownKeys(q).forEach(V=>{It(V,q[V])})}p&&io(p,e,"c");function se(q,V){he(V)?V.forEach(ue=>q(ue.bind(s))):V&&q(V.bind(s))}if(se(Sr,g),se(St,k),se(Cr,x),se(Tr,_),se(wr,m),se($r,S),se(Ar,re),se(Rr,R),se(Pr,te),se(no,L),se(Ct,$),se(Er,X),he(ge))if(ge.length){const q=e.exposed||(e.exposed={});ge.forEach(V=>{Object.defineProperty(q,V,{get:()=>s[V],set:ue=>s[V]=ue,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ft&&(e.render=T),Ee!=null&&(e.inheritAttrs=Ee),we&&(e.components=we),Ce&&(e.directives=Ce),X&&Un(e)}function Nr(e,t,s=ft){he(e)&&(e=zn(e));for(const l in e){const a=e[l];let o;Te(a)?"default"in a?o=ie(a.from||l,a.default,!0):o=ie(a.from||l):o=ie(a),je(o)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[l]=o}}function io(e,t,s){vt(he(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,s)}function uo(e,t,s,l){let a=l.includes(".")?Xl(s,l):()=>s[l];if(Le(e)){const o=t[e];fe(o)&&it(a,o)}else if(fe(e))it(a,e.bind(s));else if(Te(e))if(he(e))e.forEach(o=>uo(o,t,s,l));else{const o=fe(e.handler)?e.handler.bind(s):t[e.handler];fe(o)&&it(a,o,e)}}function co(e){const t=e.type,{mixins:s,extends:l}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let c;return i?c=i:!a.length&&!s&&!l?c=t:(c={},a.length&&a.forEach(v=>Xs(c,v,r,!0)),Xs(c,t,r)),Te(t)&&o.set(t,c),c}function Xs(e,t,s,l=!1){const{mixins:a,extends:o}=t;o&&Xs(e,o,s,!0),a&&a.forEach(r=>Xs(e,r,s,!0));for(const r in t)if(!(l&&r==="expose")){const i=jr[r]||s&&s[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const jr={data:fo,props:ho,emits:ho,methods:Es,computed:Es,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:Es,directives:Es,watch:Ur,provide:fo,inject:Br};function fo(e,t){return t?e?function(){return Ie(fe(e)?e.call(this,this):e,fe(t)?t.call(this,this):t)}:t:e}function Br(e,t){return Es(zn(e),zn(t))}function zn(e){if(he(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function Qe(e,t){return e?[...new Set([].concat(e,t))]:t}function Es(e,t){return e?Ie(Object.create(null),e,t):t}function ho(e,t){return e?he(e)&&he(t)?[...new Set([...e,...t])]:Ie(Object.create(null),ro(e),ro(t??{})):t}function Ur(e,t){if(!e)return t;if(!t)return e;const s=Ie(Object.create(null),e);for(const l in t)s[l]=Qe(e[l],t[l]);return s}function po(){return{app:null,config:{isNativeTag:pl,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 qr=0;function Hr(e,t){return function(l,a=null){fe(l)||(l=Ie({},l)),a!=null&&!Te(a)&&(a=null);const o=po(),r=new WeakSet,i=[];let c=!1;const v=o.app={_uid:qr++,_component:l,_props:a,_container:null,_context:o,_instance:null,version:Pi,get config(){return o.config},set config(p){},use(p,...g){return r.has(p)||(p&&fe(p.install)?(r.add(p),p.install(v,...g)):fe(p)&&(r.add(p),p(v,...g))),v},mixin(p){return o.mixins.includes(p)||o.mixins.push(p),v},component(p,g){return g?(o.components[p]=g,v):o.components[p]},directive(p,g){return g?(o.directives[p]=g,v):o.directives[p]},mount(p,g,k){if(!c){const x=v._ceVNode||_e(l,a);return x.appContext=o,k===!0?k="svg":k===!1&&(k=void 0),e(x,p,k),c=!0,v._container=p,p.__vue_app__=v,sl(x.component)}},onUnmount(p){i.push(p)},unmount(){c&&(vt(i,v._instance,16),e(null,v._container),delete v._container.__vue_app__)},provide(p,g){return o.provides[p]=g,v},runWithContext(p){const g=cs;cs=v;try{return p()}finally{cs=g}}};return v}}let cs=null;const Kr=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${Mt(t)}Modifiers`];function Vr(e,t,...s){if(e.isUnmounted)return;const l=e.vnode.props||Re;let a=s;const o=t.startsWith("update:"),r=o&&Kr(l,t.slice(7));r&&(r.trim&&(a=s.map(p=>Le(p)?p.trim():p)),r.number&&(a=s.map(Ca)));let i,c=l[i=bn(t)]||l[i=bn(tt(t))];!c&&o&&(c=l[i=bn(Mt(t))]),c&&vt(c,e,6,a);const v=l[i+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,vt(v,e,6,a)}}const zr=new WeakMap;function vo(e,t,s=!1){const l=s?zr:t.emitsCache,a=l.get(e);if(a!==void 0)return a;const o=e.emits;let r={},i=!1;if(!fe(e)){const c=v=>{const p=vo(v,t,!0);p&&(i=!0,Ie(r,p))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!i?(Te(e)&&l.set(e,null),null):(he(o)?o.forEach(c=>r[c]=null):Ie(r,o),Te(e)&&l.set(e,r),r)}function Zs(e,t){return!e||!Fs(t)?!1:(t=t.slice(2).replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Mt(t))||Se(e,t))}function Y1(){}function go(e){const{type:t,vnode:s,proxy:l,withProxy:a,propsOptions:[o],slots:r,attrs:i,emit:c,render:v,renderCache:p,props:g,data:k,setupState:x,ctx:_,inheritAttrs:m}=e,S=Qs(e);let U,L;try{if(s.shapeFlag&4){const $=a||l,T=$;U=dt(v.call(T,$,p,g,x,k,_)),L=i}else{const $=t;U=dt($.length>1?$(g,{attrs:i,slots:r,emit:c}):$(g,null)),L=t.props?i:Qr(i)}}catch($){Rs.length=0,os($,e,1),U=_e(ct)}let b=U;if(L&&m!==!1){const $=Object.keys(L),{shapeFlag:T}=b;$.length&&T&7&&(o&&$.some(gn)&&(L=Jr(L,o)),b=hs(b,L,!1,!0))}return s.dirs&&(b=hs(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(s.dirs):s.dirs),s.transition&&Bn(b,s.transition),U=b,Qs(S),U}function Wr(e,t=!0){let s;for(let l=0;l<e.length;l++){const a=e[l];if(sn(a)){if(a.type!==ct||a.children==="v-if"){if(s)return;s=a}}else return}return s}const Qr=e=>{let t;for(const s in e)(s==="class"||s==="style"||Fs(s))&&((t||(t={}))[s]=e[s]);return t},Jr=(e,t)=>{const s={};for(const l in e)(!gn(l)||!(l.slice(9)in t))&&(s[l]=e[l]);return s};function Gr(e,t,s){const{props:l,children:a,component:o}=e,{props:r,children:i,patchFlag:c}=t,v=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return l?yo(l,r,v):!!r;if(c&8){const p=t.dynamicProps;for(let g=0;g<p.length;g++){const k=p[g];if(mo(r,l,k)&&!Zs(v,k))return!0}}}else return(a||i)&&(!i||!i.$stable)?!0:l===r?!1:l?r?yo(l,r,v):!0:!!r;return!1}function yo(e,t,s){const l=Object.keys(t);if(l.length!==Object.keys(e).length)return!0;for(let a=0;a<l.length;a++){const o=l[a];if(mo(t,e,o)&&!Zs(s,o))return!0}return!1}function mo(e,t,s){const l=e[s],a=t[s];return s==="style"&&Te(l)&&Te(a)?!xn(l,a):l!==a}function Wn({vnode:e,parent:t},s){for(;t;){const l=t.subTree;if(l.suspense&&l.suspense.activeBranch===e&&(l.el=e.el),l===e)(e=t.vnode).el=s,t=t.parent;else break}}const bo={},_o=()=>Object.create(bo),xo=e=>Object.getPrototypeOf(e)===bo;function Yr(e,t,s,l=!1){const a={},o=_o();e.propsDefaults=Object.create(null),wo(e,t,a,o);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);s?e.props=l?a:er(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function Xr(e,t,s,l){const{props:a,attrs:o,vnode:{patchFlag:r}}=e,i=xe(a),[c]=e.propsOptions;let v=!1;if((l||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let g=0;g<p.length;g++){let k=p[g];if(Zs(e.emitsOptions,k))continue;const x=t[k];if(c)if(Se(o,k))x!==o[k]&&(o[k]=x,v=!0);else{const _=tt(k);a[_]=Qn(c,i,_,x,e,!1)}else x!==o[k]&&(o[k]=x,v=!0)}}}else{wo(e,t,a,o)&&(v=!0);let p;for(const g in i)(!t||!Se(t,g)&&((p=Mt(g))===g||!Se(t,p)))&&(c?s&&(s[g]!==void 0||s[p]!==void 0)&&(a[g]=Qn(c,i,g,void 0,e,!0)):delete a[g]);if(o!==i)for(const g in o)(!t||!Se(t,g))&&(delete o[g],v=!0)}v&&xt(e.attrs,"set","")}function wo(e,t,s,l){const[a,o]=e.propsOptions;let r=!1,i;if(t)for(let c in t){if(ms(c))continue;const v=t[c];let p;a&&Se(a,p=tt(c))?!o||!o.includes(p)?s[p]=v:(i||(i={}))[p]=v:Zs(e.emitsOptions,c)||(!(c in l)||v!==l[c])&&(l[c]=v,r=!0)}if(o){const c=xe(s),v=i||Re;for(let p=0;p<o.length;p++){const g=o[p];s[g]=Qn(a,c,g,v[g],e,!Se(v,g))}}return r}function Qn(e,t,s,l,a,o){const r=e[s];if(r!=null){const i=Se(r,"default");if(i&&l===void 0){const c=r.default;if(r.type!==Function&&!r.skipFactory&&fe(c)){const{propsDefaults:v}=a;if(s in v)l=v[s];else{const p=As(a);l=v[s]=c.call(null,t),p()}}else l=c;a.ce&&a.ce._setProp(s,l)}r[0]&&(o&&!i?l=!1:r[1]&&(l===""||l===Mt(s))&&(l=!0))}return l}const Zr=new WeakMap;function $o(e,t,s=!1){const l=s?Zr:t.propsCache,a=l.get(e);if(a)return a;const o=e.props,r={},i=[];let c=!1;if(!fe(e)){const p=g=>{c=!0;const[k,x]=$o(g,t,!0);Ie(r,k),x&&i.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Te(e)&&l.set(e,Zt),Zt;if(he(o))for(let p=0;p<o.length;p++){const g=tt(o[p]);ko(g)&&(r[g]=Re)}else if(o)for(const p in o){const g=tt(p);if(ko(g)){const k=o[p],x=r[g]=he(k)||fe(k)?{type:k}:Ie({},k),_=x.type;let m=!1,S=!0;if(he(_))for(let U=0;U<_.length;++U){const L=_[U],b=fe(L)&&L.name;if(b==="Boolean"){m=!0;break}else b==="String"&&(S=!1)}else m=fe(_)&&_.name==="Boolean";x[0]=m,x[1]=S,(m||Se(x,"default"))&&i.push(g)}}const v=[r,i];return Te(e)&&l.set(e,v),v}function ko(e){return e[0]!=="$"&&!ms(e)}const Jn=e=>e==="_"||e==="_ctx"||e==="$stable",Gn=e=>he(e)?e.map(dt):[dt(e)],ei=(e,t,s)=>{if(t._n)return t;const l=is((...a)=>Gn(t(...a)),s);return l._c=!1,l},So=(e,t,s)=>{const l=e._ctx;for(const a in e){if(Jn(a))continue;const o=e[a];if(fe(o))t[a]=ei(a,o,l);else if(o!=null){const r=Gn(o);t[a]=()=>r}}},Co=(e,t)=>{const s=Gn(t);e.slots.default=()=>s},To=(e,t,s)=>{for(const l in t)(s||!Jn(l))&&(e[l]=t[l])},ti=(e,t,s)=>{const l=e.slots=_o();if(e.vnode.shapeFlag&32){const a=t._;a?(To(l,t,s),s&&_l(l,"_",a,!0)):So(t,l)}else t&&Co(e,t)},si=(e,t,s)=>{const{vnode:l,slots:a}=e;let o=!0,r=Re;if(l.shapeFlag&32){const i=t._;i?s&&i===1?o=!1:To(a,t,s):(o=!t.$stable,So(t,a)),r=t}else t&&(Co(e,t),r={default:1});if(o)for(const i in a)!Jn(i)&&r[i]==null&&delete a[i]},Je=fi;function ni(e){return li(e)}function li(e,t){const s=js();s.__VUE__=!0;const{insert:l,remove:a,patchProp:o,createElement:r,createText:i,createComment:c,setText:v,setElementText:p,parentNode:g,nextSibling:k,setScopeId:x=ft,insertStaticContent:_}=e,m=(f,y,C,F=null,D=null,I=null,Q=void 0,W=null,z=!!y.dynamicChildren)=>{if(f===y)return;f&&!Nt(f,y)&&(F=Pt(f),P(f,D,I,!0),f=null),y.patchFlag===-2&&(z=!1,y.dynamicChildren=null);const{type:j,ref:ee,shapeFlag:Z}=y;switch(j){case en:S(f,y,C,F);break;case ct:U(f,y,C,F);break;case tn:f==null&&L(y,C,F,Q);break;case B:we(f,y,C,F,D,I,Q,W,z);break;default:Z&1?T(f,y,C,F,D,I,Q,W,z):Z&6?Ce(f,y,C,F,D,I,Q,W,z):(Z&64||Z&128)&&j.process(f,y,C,F,D,I,Q,W,z,M)}ee!=null&&D?Cs(ee,f&&f.ref,I,y||f,!y):ee==null&&f&&f.ref!=null&&Cs(f.ref,null,I,f,!0)},S=(f,y,C,F)=>{if(f==null)l(y.el=i(y.children),C,F);else{const D=y.el=f.el;y.children!==f.children&&v(D,y.children)}},U=(f,y,C,F)=>{f==null?l(y.el=c(y.children||""),C,F):y.el=f.el},L=(f,y,C,F)=>{[f.el,f.anchor]=_(f.children,y,C,F,f.el,f.anchor)},b=({el:f,anchor:y},C,F)=>{let D;for(;f&&f!==y;)D=k(f),l(f,C,F),f=D;l(y,C,F)},$=({el:f,anchor:y})=>{let C;for(;f&&f!==y;)C=k(f),a(f),f=C;a(y)},T=(f,y,C,F,D,I,Q,W,z)=>{if(y.type==="svg"?Q="svg":y.type==="math"&&(Q="mathml"),f==null)R(y,C,F,D,I,Q,W,z);else{const j=f.el&&f.el._isVueCE?f.el:null;try{j&&j._beginPatch(),X(f,y,D,I,Q,W,z)}finally{j&&j._endPatch()}}},R=(f,y,C,F,D,I,Q,W)=>{let z,j;const{props:ee,shapeFlag:Z,transition:oe,dirs:de}=f;if(z=f.el=r(f.type,I,ee&&ee.is,ee),Z&8?p(z,f.children):Z&16&&re(f.children,z,null,F,D,Yn(f,I),Q,W),de&&Jt(f,null,F,"created"),te(z,f,f.scopeId,Q,F),ee){for(const Pe in ee)Pe!=="value"&&!ms(Pe)&&o(z,Pe,null,ee[Pe],I,F);"value"in ee&&o(z,"value",null,ee.value,I),(j=ee.onVnodeBeforeMount)&&yt(j,F,f)}de&&Jt(f,null,F,"beforeMount");const be=oi(D,oe);be&&oe.beforeEnter(z),l(z,y,C),((j=ee&&ee.onVnodeMounted)||be||de)&&Je(()=>{j&&yt(j,F,f),be&&oe.enter(z),de&&Jt(f,null,F,"mounted")},D)},te=(f,y,C,F,D)=>{if(C&&x(f,C),F)for(let I=0;I<F.length;I++)x(f,F[I]);if(D){let I=D.subTree;if(y===I||Mo(I.type)&&(I.ssContent===y||I.ssFallback===y)){const Q=D.vnode;te(f,Q,Q.scopeId,Q.slotScopeIds,D.parent)}}},re=(f,y,C,F,D,I,Q,W,z=0)=>{for(let j=z;j<f.length;j++){const ee=f[j]=W?Tt(f[j]):dt(f[j]);m(null,ee,y,C,F,D,I,Q,W)}},X=(f,y,C,F,D,I,Q)=>{const W=y.el=f.el;let{patchFlag:z,dynamicChildren:j,dirs:ee}=y;z|=f.patchFlag&16;const Z=f.props||Re,oe=y.props||Re;let de;if(C&&Gt(C,!1),(de=oe.onVnodeBeforeUpdate)&&yt(de,C,y,f),ee&&Jt(y,f,C,"beforeUpdate"),C&&Gt(C,!0),(Z.innerHTML&&oe.innerHTML==null||Z.textContent&&oe.textContent==null)&&p(W,""),j?ge(f.dynamicChildren,j,W,C,F,Yn(y,D),I):Q||V(f,y,W,null,C,F,Yn(y,D),I,!1),z>0){if(z&16)Ee(W,Z,oe,C,D);else if(z&2&&Z.class!==oe.class&&o(W,"class",null,oe.class,D),z&4&&o(W,"style",Z.style,oe.style,D),z&8){const be=y.dynamicProps;for(let Pe=0;Pe<be.length;Pe++){const ke=be[Pe],Ke=Z[ke],Ve=oe[ke];(Ve!==Ke||ke==="value")&&o(W,ke,Ke,Ve,D,C)}}z&1&&f.children!==y.children&&p(W,y.children)}else!Q&&j==null&&Ee(W,Z,oe,C,D);((de=oe.onVnodeUpdated)||ee)&&Je(()=>{de&&yt(de,C,y,f),ee&&Jt(y,f,C,"updated")},F)},ge=(f,y,C,F,D,I,Q)=>{for(let W=0;W<y.length;W++){const z=f[W],j=y[W],ee=z.el&&(z.type===B||!Nt(z,j)||z.shapeFlag&198)?g(z.el):C;m(z,j,ee,null,F,D,I,Q,!0)}},Ee=(f,y,C,F,D)=>{if(y!==C){if(y!==Re)for(const I in y)!ms(I)&&!(I in C)&&o(f,I,y[I],null,D,F);for(const I in C){if(ms(I))continue;const Q=C[I],W=y[I];Q!==W&&I!=="value"&&o(f,I,W,Q,D,F)}"value"in C&&o(f,"value",y.value,C.value,D)}},we=(f,y,C,F,D,I,Q,W,z)=>{const j=y.el=f?f.el:i(""),ee=y.anchor=f?f.anchor:i("");let{patchFlag:Z,dynamicChildren:oe,slotScopeIds:de}=y;de&&(W=W?W.concat(de):de),f==null?(l(j,C,F),l(ee,C,F),re(y.children||[],C,ee,D,I,Q,W,z)):Z>0&&Z&64&&oe&&f.dynamicChildren&&f.dynamicChildren.length===oe.length?(ge(f.dynamicChildren,oe,C,D,I,Q,W),(y.key!=null||D&&y===D.subTree)&&Eo(f,y,!0)):V(f,y,C,ee,D,I,Q,W,z)},Ce=(f,y,C,F,D,I,Q,W,z)=>{y.slotScopeIds=W,f==null?y.shapeFlag&512?D.ctx.activate(y,C,F,Q,z):me(y,C,F,D,I,Q,z):$e(f,y,z)},me=(f,y,C,F,D,I,Q)=>{const W=f.component=_i(f,F,D);if(qn(f)&&(W.ctx.renderer=M),wi(W,!1,Q),W.asyncDep){if(D&&D.registerDep(W,se,Q),!f.el){const z=W.subTree=_e(ct);U(null,z,y,C),f.placeholder=z.el}}else se(W,f,y,C,D,I,Q)},$e=(f,y,C)=>{const F=y.component=f.component;if(Gr(f,y,C))if(F.asyncDep&&!F.asyncResolved){q(F,y,C);return}else F.next=y,F.update();else y.el=f.el,F.vnode=y},se=(f,y,C,F,D,I,Q)=>{const W=()=>{if(f.isMounted){let{next:Z,bu:oe,u:de,parent:be,vnode:Pe}=f;{const Ye=Po(f);if(Ye){Z&&(Z.el=Pe.el,q(f,Z,Q)),Ye.asyncDep.then(()=>{Je(()=>{f.isUnmounted||j()},D)});return}}let ke=Z,Ke;Gt(f,!1),Z?(Z.el=Pe.el,q(f,Z,Q)):Z=Pe,oe&&_n(oe),(Ke=Z.props&&Z.props.onVnodeBeforeUpdate)&&yt(Ke,be,Z,Pe),Gt(f,!0);const Ve=go(f),lt=f.subTree;f.subTree=Ve,m(lt,Ve,g(lt.el),Pt(lt),f,D,I),Z.el=Ve.el,ke===null&&Wn(f,Ve.el),de&&Je(de,D),(Ke=Z.props&&Z.props.onVnodeUpdated)&&Je(()=>yt(Ke,be,Z,Pe),D)}else{let Z;const{el:oe,props:de}=y,{bm:be,m:Pe,parent:ke,root:Ke,type:Ve}=f,lt=us(y);Gt(f,!1),be&&_n(be),!lt&&(Z=de&&de.onVnodeBeforeMount)&&yt(Z,ke,y),Gt(f,!0);{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Ve);const Ye=f.subTree=go(f);m(null,Ye,C,F,f,D,I),y.el=Ye.el}if(Pe&&Je(Pe,D),!lt&&(Z=de&&de.onVnodeMounted)){const Ye=y;Je(()=>yt(Z,ke,Ye),D)}(y.shapeFlag&256||ke&&us(ke.vnode)&&ke.vnode.shapeFlag&256)&&f.a&&Je(f.a,D),f.isMounted=!0,y=C=F=null}};f.scope.on();const z=f.effect=new Sl(W);f.scope.off();const j=f.update=z.run.bind(z),ee=f.job=z.runIfDirty.bind(z);ee.i=f,ee.id=f.uid,z.scheduler=()=>Nn(ee),Gt(f,!0),j()},q=(f,y,C)=>{y.component=f;const F=f.vnode.props;f.vnode=y,f.next=null,Xr(f,y.props,F,C),si(f,y.children,C),ht(),Wl(f),pt()},V=(f,y,C,F,D,I,Q,W,z=!1)=>{const j=f&&f.children,ee=f?f.shapeFlag:0,Z=y.children,{patchFlag:oe,shapeFlag:de}=y;if(oe>0){if(oe&128){E(j,Z,C,F,D,I,Q,W,z);return}else if(oe&256){ue(j,Z,C,F,D,I,Q,W,z);return}}de&8?(ee&16&&Ge(j,D,I),Z!==j&&p(C,Z)):ee&16?de&16?E(j,Z,C,F,D,I,Q,W,z):Ge(j,D,I,!0):(ee&8&&p(C,""),de&16&&re(Z,C,F,D,I,Q,W,z))},ue=(f,y,C,F,D,I,Q,W,z)=>{f=f||Zt,y=y||Zt;const j=f.length,ee=y.length,Z=Math.min(j,ee);let oe;for(oe=0;oe<Z;oe++){const de=y[oe]=z?Tt(y[oe]):dt(y[oe]);m(f[oe],de,C,null,D,I,Q,W,z)}j>ee?Ge(f,D,I,!0,!1,Z):re(y,C,F,D,I,Q,W,z,Z)},E=(f,y,C,F,D,I,Q,W,z)=>{let j=0;const ee=y.length;let Z=f.length-1,oe=ee-1;for(;j<=Z&&j<=oe;){const de=f[j],be=y[j]=z?Tt(y[j]):dt(y[j]);if(Nt(de,be))m(de,be,C,null,D,I,Q,W,z);else break;j++}for(;j<=Z&&j<=oe;){const de=f[Z],be=y[oe]=z?Tt(y[oe]):dt(y[oe]);if(Nt(de,be))m(de,be,C,null,D,I,Q,W,z);else break;Z--,oe--}if(j>Z){if(j<=oe){const de=oe+1,be=de<ee?y[de].el:F;for(;j<=oe;)m(null,y[j]=z?Tt(y[j]):dt(y[j]),C,be,D,I,Q,W,z),j++}}else if(j>oe)for(;j<=Z;)P(f[j],D,I,!0),j++;else{const de=j,be=j,Pe=new Map;for(j=be;j<=oe;j++){const K=y[j]=z?Tt(y[j]):dt(y[j]);K.key!=null&&Pe.set(K.key,j)}let ke,Ke=0;const Ve=oe-be+1;let lt=!1,Ye=0;const Rt=new Array(Ve);for(j=0;j<Ve;j++)Rt[j]=0;for(j=de;j<=Z;j++){const K=f[j];if(Ke>=Ve){P(K,D,I,!0);continue}let A;if(K.key!=null)A=Pe.get(K.key);else for(ke=be;ke<=oe;ke++)if(Rt[ke-be]===0&&Nt(K,y[ke])){A=ke;break}A===void 0?P(K,D,I,!0):(Rt[A-be]=j+1,A>=Ye?Ye=A:lt=!0,m(K,y[A],C,null,D,I,Q,W,z),Ke++)}const Xt=lt?ai(Rt):Zt;for(ke=Xt.length-1,j=Ve-1;j>=0;j--){const K=be+j,A=y[K],ae=y[K+1],ye=K+1<ee?ae.el||Ao(ae):F;Rt[j]===0?m(null,A,C,ye,D,I,Q,W,z):lt&&(ke<0||j!==Xt[ke]?O(A,C,ye,2):ke--)}}},O=(f,y,C,F,D=null)=>{const{el:I,type:Q,transition:W,children:z,shapeFlag:j}=f;if(j&6){O(f.component.subTree,y,C,F);return}if(j&128){f.suspense.move(y,C,F);return}if(j&64){Q.move(f,y,C,M);return}if(Q===B){l(I,y,C);for(let Z=0;Z<z.length;Z++)O(z[Z],y,C,F);l(f.anchor,y,C);return}if(Q===tn){b(f,y,C);return}if(F!==2&&j&1&&W)if(F===0)W.beforeEnter(I),l(I,y,C),Je(()=>W.enter(I),D);else{const{leave:Z,delayLeave:oe,afterLeave:de}=W,be=()=>{f.ctx.isUnmounted?a(I):l(I,y,C)},Pe=()=>{I._isLeaving&&I[_r](!0),Z(I,()=>{be(),de&&de()})};oe?oe(I,be,Pe):Pe()}else l(I,y,C)},P=(f,y,C,F=!1,D=!1)=>{const{type:I,props:Q,ref:W,children:z,dynamicChildren:j,shapeFlag:ee,patchFlag:Z,dirs:oe,cacheIndex:de}=f;if(Z===-2&&(D=!1),W!=null&&(ht(),Cs(W,null,C,f,!0),pt()),de!=null&&(y.renderCache[de]=void 0),ee&256){y.ctx.deactivate(f);return}const be=ee&1&&oe,Pe=!us(f);let ke;if(Pe&&(ke=Q&&Q.onVnodeBeforeUnmount)&&yt(ke,y,f),ee&6)Vt(f.component,C,F);else{if(ee&128){f.suspense.unmount(C,F);return}be&&Jt(f,null,y,"beforeUnmount"),ee&64?f.type.remove(f,y,C,M,F):j&&!j.hasOnce&&(I!==B||Z>0&&Z&64)?Ge(j,y,C,!1,!0):(I===B&&Z&384||!D&&ee&16)&&Ge(z,y,C),F&&ne(f)}(Pe&&(ke=Q&&Q.onVnodeUnmounted)||be)&&Je(()=>{ke&&yt(ke,y,f),be&&Jt(f,null,y,"unmounted")},C)},ne=f=>{const{type:y,el:C,anchor:F,transition:D}=f;if(y===B){Me(C,F);return}if(y===tn){$(f);return}const I=()=>{a(C),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(f.shapeFlag&1&&D&&!D.persisted){const{leave:Q,delayLeave:W}=D,z=()=>Q(C,I);W?W(f.el,I,z):z()}else I()},Me=(f,y)=>{let C;for(;f!==y;)C=k(f),a(f),f=C;a(y)},Vt=(f,y,C)=>{const{bum:F,scope:D,job:I,subTree:Q,um:W,m:z,a:j}=f;Ro(z),Ro(j),F&&_n(F),D.stop(),I&&(I.flags|=8,P(Q,f,y,C)),W&&Je(W,y),Je(()=>{f.isUnmounted=!0},y)},Ge=(f,y,C,F=!1,D=!1,I=0)=>{for(let Q=I;Q<f.length;Q++)P(f[Q],y,C,F,D)},Pt=f=>{if(f.shapeFlag&6)return Pt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const y=k(f.anchor||f.el),C=y&&y[mr];return C?k(C):y};let le=!1;const Y=(f,y,C)=>{let F;f==null?y._vnode&&(P(y._vnode,null,null,!0),F=y._vnode.component):m(y._vnode||null,f,y,null,null,null,C),y._vnode=f,le||(le=!0,Wl(F),Ql(),le=!1)},M={p:m,um:P,m:O,r:ne,mt:me,mc:re,pc:V,pbc:ge,n:Pt,o:e};return{render:Y,hydrate:void 0,createApp:Hr(Y)}}function Yn({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 Gt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function oi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Eo(e,t,s=!1){const l=e.children,a=t.children;if(he(l)&&he(a))for(let o=0;o<l.length;o++){const r=l[o];let i=a[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=a[o]=Tt(a[o]),i.el=r.el),!s&&i.patchFlag!==-2&&Eo(r,i)),i.type===en&&(i.patchFlag===-1&&(i=a[o]=Tt(i)),i.el=r.el),i.type===ct&&!i.el&&(i.el=r.el)}}function ai(e){const t=e.slice(),s=[0];let l,a,o,r,i;const c=e.length;for(l=0;l<c;l++){const v=e[l];if(v!==0){if(a=s[s.length-1],e[a]<v){t[l]=a,s.push(l);continue}for(o=0,r=s.length-1;o<r;)i=o+r>>1,e[s[i]]<v?o=i+1:r=i;v<e[s[o]]&&(o>0&&(t[l]=s[o-1]),s[o]=l)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function Po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Po(t)}function Ro(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ao(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ao(t.subTree):null}const Mo=e=>e.__isSuspense;let Xn=0;const ri={name:"Suspense",__isSuspense:!0,process(e,t,s,l,a,o,r,i,c,v){if(e==null)ii(t,s,l,a,o,r,i,c,v);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ui(e,t,s,l,a,r,i,c,v)}},hydrate:ci,normalize:di};function Ps(e,t){const s=e.props&&e.props[t];fe(s)&&s()}function ii(e,t,s,l,a,o,r,i,c){const{p:v,o:{createElement:p}}=c,g=p("div"),k=e.suspense=Lo(e,a,l,t,g,s,o,r,i,c);v(null,k.pendingBranch=e.ssContent,g,null,l,k,o,r),k.deps>0?(Ps(e,"onPending"),Ps(e,"onFallback"),v(null,e.ssFallback,t,s,l,null,o,r),ds(k,e.ssFallback)):k.resolve(!1,!0)}function ui(e,t,s,l,a,o,r,i,{p:c,um:v,o:{createElement:p}}){const g=t.suspense=e.suspense;g.vnode=t,t.el=e.el;const k=t.ssContent,x=t.ssFallback,{activeBranch:_,pendingBranch:m,isInFallback:S,isHydrating:U}=g;if(m)g.pendingBranch=k,Nt(m,k)?(c(m,k,g.hiddenContainer,null,a,g,o,r,i),g.deps<=0?g.resolve():S&&(U||(c(_,x,s,l,a,null,o,r,i),ds(g,x)))):(g.pendingId=Xn++,U?(g.isHydrating=!1,g.activeBranch=m):v(m,a,g),g.deps=0,g.effects.length=0,g.hiddenContainer=p("div"),S?(c(null,k,g.hiddenContainer,null,a,g,o,r,i),g.deps<=0?g.resolve():(c(_,x,s,l,a,null,o,r,i),ds(g,x))):_&&Nt(_,k)?(c(_,k,s,l,a,g,o,r,i),g.resolve(!0)):(c(null,k,g.hiddenContainer,null,a,g,o,r,i),g.deps<=0&&g.resolve()));else if(_&&Nt(_,k))c(_,k,s,l,a,g,o,r,i),ds(g,k);else if(Ps(t,"onPending"),g.pendingBranch=k,k.shapeFlag&512?g.pendingId=k.component.suspenseId:g.pendingId=Xn++,c(null,k,g.hiddenContainer,null,a,g,o,r,i),g.deps<=0)g.resolve();else{const{timeout:L,pendingId:b}=g;L>0?setTimeout(()=>{g.pendingId===b&&g.fallback(x)},L):L===0&&g.fallback(x)}}function Lo(e,t,s,l,a,o,r,i,c,v,p=!1){const{p:g,m:k,um:x,n:_,o:{parentNode:m,remove:S}}=v;let U;const L=hi(e);L&&t&&t.pendingBranch&&(U=t.pendingId,t.deps++);const b=e.props?Ta(e.props.timeout):void 0,$=o,T={vnode:e,parent:t,parentComponent:s,namespace:r,container:l,hiddenContainer:a,deps:0,pendingId:Xn++,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!p,isHydrating:p,isUnmounted:!1,effects:[],resolve(R=!1,te=!1){const{vnode:re,activeBranch:X,pendingBranch:ge,pendingId:Ee,effects:we,parentComponent:Ce,container:me,isInFallback:$e}=T;let se=!1;T.isHydrating?T.isHydrating=!1:R||(se=X&&ge.transition&&ge.transition.mode==="out-in",se&&(X.transition.afterLeave=()=>{Ee===T.pendingId&&(k(ge,me,o===$?_(X):o,0),jn(we),$e&&re.ssFallback&&(re.ssFallback.el=null))}),X&&(m(X.el)===me&&(o=_(X)),x(X,Ce,T,!0),!se&&$e&&re.ssFallback&&Je(()=>re.ssFallback.el=null,T)),se||k(ge,me,o,0)),ds(T,ge),T.pendingBranch=null,T.isInFallback=!1;let q=T.parent,V=!1;for(;q;){if(q.pendingBranch){q.effects.push(...we),V=!0;break}q=q.parent}!V&&!se&&jn(we),T.effects=[],L&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!te&&t.resolve()),Ps(re,"onResolve")},fallback(R){if(!T.pendingBranch)return;const{vnode:te,activeBranch:re,parentComponent:X,container:ge,namespace:Ee}=T;Ps(te,"onFallback");const we=_(re),Ce=()=>{T.isInFallback&&(g(null,R,ge,we,X,null,Ee,i,c),ds(T,R))},me=R.transition&&R.transition.mode==="out-in";me&&(re.transition.afterLeave=Ce),T.isInFallback=!0,x(re,X,null,!0),me||Ce()},move(R,te,re){T.activeBranch&&k(T.activeBranch,R,te,re),T.container=R},next(){return T.activeBranch&&_(T.activeBranch)},registerDep(R,te,re){const X=!!T.pendingBranch;X&&T.deps++;const ge=R.vnode.el;R.asyncDep.catch(Ee=>{os(Ee,R,0)}).then(Ee=>{if(R.isUnmounted||T.isUnmounted||T.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:we}=R;tl(R,Ee),ge&&(we.el=ge);const Ce=!ge&&R.subTree.el;te(R,we,m(ge||R.subTree.el),ge?null:_(R.subTree),T,r,re),Ce&&(we.placeholder=null,S(Ce)),Wn(R,we.el),X&&--T.deps===0&&T.resolve()})},unmount(R,te){T.isUnmounted=!0,T.activeBranch&&x(T.activeBranch,s,R,te),T.pendingBranch&&x(T.pendingBranch,s,R,te)}};return T}function ci(e,t,s,l,a,o,r,i,c){const v=t.suspense=Lo(t,l,s,e.parentNode,document.createElement("div"),null,a,o,r,i,!0),p=c(e,v.pendingBranch=t.ssContent,s,v,o,r);return v.deps===0&&v.resolve(!1,!0),p}function di(e){const{shapeFlag:t,children:s}=e,l=t&32;e.ssContent=Oo(l?s.default:s),e.ssFallback=l?Oo(s.fallback):_e(ct)}function Oo(e){let t;if(fe(e)){const s=fs&&e._c;s&&(e._d=!1,u()),e=e(),s&&(e._d=!0,t=Ze,Do())}return he(e)&&(e=Wr(e)),e=dt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function fi(e,t){t&&t.pendingBranch?he(e)?t.effects.push(...e):t.effects.push(e):jn(e)}function ds(e,t){e.activeBranch=t;const{vnode:s,parentComponent:l}=e;let a=t.el;for(;!a&&t.component;)t=t.component.subTree,a=t.el;s.el=a,l&&l.subTree===s&&(l.vnode.el=a,Wn(l,a))}function hi(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const B=Symbol.for("v-fgt"),en=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),tn=Symbol.for("v-stc"),Rs=[];let Ze=null;function u(e=!1){Rs.push(Ze=e?null:[])}function Do(){Rs.pop(),Ze=Rs[Rs.length-1]||null}let fs=1;function Fo(e,t=!1){fs+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function Io(e){return e.dynamicChildren=fs>0?Ze||Zt:null,Do(),fs>0&&Ze&&Ze.push(e),e}function d(e,t,s,l,a,o){return Io(n(e,t,s,l,a,o,!0))}function et(e,t,s,l,a){return Io(_e(e,t,s,l,a,!0))}function sn(e){return e?e.__v_isVNode===!0:!1}function Nt(e,t){return e.type===t.type&&e.key===t.key}const No=({key:e})=>e??null,nn=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||je(e)||fe(e)?{i:We,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,l=0,a=null,o=e===B?0:1,r=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&No(t),ref:t&&nn(t),scopeId:Gl,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:l,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:We};return i?(Zn(c,s),o&128&&e.normalize(c)):s&&(c.shapeFlag|=Le(s)?8:16),fs>0&&!r&&Ze&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ze.push(c),c}const _e=pi;function pi(e,t=null,s=null,l=0,a=null,o=!1){if((!e||e===lo)&&(e=ct),sn(e)){const i=hs(e,t,!0);return s&&Zn(i,s),fs>0&&!o&&Ze&&(i.shapeFlag&6?Ze[Ze.indexOf(e)]=i:Ze.push(i)),i.patchFlag=-2,i}if(Ei(e)&&(e=e.__vccOpts),t){t=vi(t);let{class:i,style:c}=t;i&&!Le(i)&&(t.class=N(i)),Te(c)&&(Dn(c)&&!he(c)&&(c=Ie({},c)),t.style=Ne(c))}const r=Le(e)?1:Mo(e)?128:br(e)?64:Te(e)?4:fe(e)?2:0;return n(e,t,s,l,a,r,o,!0)}function vi(e){return e?Dn(e)||xo(e)?Ie({},e):e:null}function hs(e,t,s=!1,l=!1){const{props:a,ref:o,patchFlag:r,children:i,transition:c}=e,v=t?yi(a||{},t):a,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&No(v),ref:t&&t.ref?s&&o?he(o)?o.concat(nn(t)):[o,nn(t)]:nn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&hs(e.ssContent),ssFallback:e.ssFallback&&hs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&l&&Bn(p,c.clone(p)),p}function ve(e=" ",t=0){return _e(en,null,e,t)}function gi(e,t){const s=_e(tn,null,e);return s.staticCount=t,s}function G(e="",t=!1){return t?(u(),et(ct,null,e)):_e(ct,null,e)}function dt(e){return e==null||typeof e=="boolean"?_e(ct):he(e)?_e(B,null,e.slice()):sn(e)?Tt(e):_e(en,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:hs(e)}function Zn(e,t){let s=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(he(t))s=16;else if(typeof t=="object")if(l&65){const a=t.default;a&&(a._c&&(a._d=!1),Zn(e,a()),a._c&&(a._d=!0));return}else{s=32;const a=t._;!a&&!xo(t)?t._ctx=We:a===3&&We&&(We.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else fe(t)?(t={default:t,_ctx:We},s=32):(t=String(t),l&64?(s=16,t=[ve(t)]):s=8);e.children=t,e.shapeFlag|=s}function yi(...e){const t={};for(let s=0;s<e.length;s++){const l=e[s];for(const a in l)if(a==="class")t.class!==l.class&&(t.class=N([t.class,l.class]));else if(a==="style")t.style=Ne([t.style,l.style]);else if(Fs(a)){const o=t[a],r=l[a];r&&o!==r&&!(he(o)&&o.includes(r))&&(t[a]=o?[].concat(o,r):r)}else a!==""&&(t[a]=l[a])}return t}function yt(e,t,s,l=null){vt(e,t,7,[s,l])}const mi=po();let bi=0;function _i(e,t,s){const l=e.type,a=(t?t.appContext:e.appContext)||mi,o={uid:bi++,vnode:e,type:l,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Oa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$o(l,a),emitsOptions:vo(l,a),emit:null,emitted:null,propsDefaults:Re,inheritAttrs:l.inheritAttrs,ctx:Re,data:Re,props:Re,attrs:Re,slots:Re,refs:Re,setupState:Re,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Vr.bind(null,o),e.ce&&e.ce(o),o}let Be=null;const xi=()=>Be||We;let ln,el;{const e=js(),t=(s,l)=>{let a;return(a=e[s])||(a=e[s]=[]),a.push(l),o=>{a.length>1?a.forEach(r=>r(o)):a[0](o)}};ln=t("__VUE_INSTANCE_SETTERS__",s=>Be=s),el=t("__VUE_SSR_SETTERS__",s=>ps=s)}const As=e=>{const t=Be;return ln(e),e.scope.on(),()=>{e.scope.off(),ln(t)}},jo=()=>{Be&&Be.scope.off(),ln(null)};function Bo(e){return e.vnode.shapeFlag&4}let ps=!1;function wi(e,t=!1,s=!1){t&&el(t);const{props:l,children:a}=e.vnode,o=Bo(e);Yr(e,l,o,t),ti(e,a,s||t);const r=o?$i(e,t):void 0;return t&&el(!1),r}function $i(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fr);const{setup:l}=s;if(l){ht();const a=e.setupContext=l.length>1?Si(e):null,o=As(e),r=ls(l,e,0,[e.props,a]),i=yl(r);if(pt(),o(),(i||e.sp)&&!us(e)&&Un(e),i){if(r.then(jo,jo),t)return r.then(c=>{tl(e,c)}).catch(c=>{os(c,e,0)});e.asyncDep=r}else tl(e,r)}else Uo(e)}function tl(e,t,s){fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Hl(t)),Uo(e)}function Uo(e,t,s){const l=e.type;e.render||(e.render=l.render||ft);{const a=As(e);ht();try{Ir(e)}finally{pt(),a()}}}const ki={get(e,t){return qe(e,"get",""),e[t]}};function Si(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ki),slots:e.slots,emit:e.emit,expose:t}}function sl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hl(tr(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Ts)return Ts[s](e)},has(t,s){return s in t||s in Ts}})):e.proxy}const Ci=/(?:^|[-_])\w/g,Ti=e=>e.replace(Ci,t=>t.toUpperCase()).replace(/[-_]/g,"");function qo(e,t=!0){return fe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ho(e,t,s=!1){let l=qo(t);if(!l&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(l=a[1])}if(!l&&e){const a=o=>{for(const r in o)if(o[r]===t)return r};l=a(e.components)||e.parent&&a(e.parent.type.components)||a(e.appContext.components)}return l?Ti(l):s?"App":"Anonymous"}function Ei(e){return fe(e)&&"__vccOpts"in e}const H=(e,t)=>ar(e,t,ps),Pi="3.5.29";let nl;const Ko=typeof window<"u"&&window.trustedTypes;if(Ko)try{nl=Ko.createPolicy("vue",{createHTML:e=>e})}catch{}const Vo=nl?e=>nl.createHTML(e):e=>e,Ri="http://www.w3.org/2000/svg",Ai="http://www.w3.org/1998/Math/MathML",Et=typeof document<"u"?document:null,zo=Et&&Et.createElement("template"),Mi={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,l)=>{const a=t==="svg"?Et.createElementNS(Ri,e):t==="mathml"?Et.createElementNS(Ai,e):s?Et.createElement(e,{is:s}):Et.createElement(e);return e==="select"&&l&&l.multiple!=null&&a.setAttribute("multiple",l.multiple),a},createText:e=>Et.createTextNode(e),createComment:e=>Et.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Et.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,l,a,o){const r=s?s.previousSibling:t.lastChild;if(a&&(a===o||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),s),!(a===o||!(a=a.nextSibling)););else{zo.innerHTML=Vo(l==="svg"?`<svg>${e}</svg>`:l==="mathml"?`<math>${e}</math>`:e);const i=zo.content;if(l==="svg"||l==="mathml"){const c=i.firstChild;for(;c.firstChild;)i.appendChild(c.firstChild);i.removeChild(c)}t.insertBefore(i,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Li=Symbol("_vtc");function Oi(e,t,s){const l=e[Li];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Wo=Symbol("_vod"),Di=Symbol("_vsh"),Fi=Symbol(""),Ii=/(?:^|;)\s*display\s*:/;function Ni(e,t,s){const l=e.style,a=Le(s);let o=!1;if(s&&!a){if(t)if(Le(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();s[i]==null&&on(l,i,"")}else for(const r in t)s[r]==null&&on(l,r,"");for(const r in s)r==="display"&&(o=!0),on(l,r,s[r])}else if(a){if(t!==s){const r=l[Fi];r&&(s+=";"+r),l.cssText=s,o=Ii.test(s)}}else t&&e.removeAttribute("style");Wo in e&&(e[Wo]=o?l.display:"",e[Di]&&(l.display="none"))}const Qo=/\s*!important$/;function on(e,t,s){if(he(s))s.forEach(l=>on(e,t,l));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const l=ji(e,t);Qo.test(s)?e.setProperty(Mt(l),s.replace(Qo,""),"important"):e[l]=s}}const Jo=["Webkit","Moz","ms"],ll={};function ji(e,t){const s=ll[t];if(s)return s;let l=tt(t);if(l!=="filter"&&l in e)return ll[t]=l;l=Ns(l);for(let a=0;a<Jo.length;a++){const o=Jo[a]+l;if(o in e)return ll[t]=o}return t}const Go="http://www.w3.org/1999/xlink";function Yo(e,t,s,l,a,o=Ma(t)){l&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Go,t.slice(6,t.length)):e.setAttributeNS(Go,t,s):s==null||o&&!wl(s)?e.removeAttribute(t):e.setAttribute(t,o?"":ot(s)?String(s):s)}function Xo(e,t,s,l,a){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Vo(s):s);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(i!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let r=!1;if(s===""||s==null){const i=typeof e[t];i==="boolean"?s=wl(s):s==null&&i==="string"?(s="",r=!0):i==="number"&&(s=0,r=!0)}try{e[t]=s}catch{}r&&e.removeAttribute(a||t)}function Bi(e,t,s,l){e.addEventListener(t,s,l)}function Ui(e,t,s,l){e.removeEventListener(t,s,l)}const Zo=Symbol("_vei");function qi(e,t,s,l,a=null){const o=e[Zo]||(e[Zo]={}),r=o[t];if(l&&r)r.value=l;else{const[i,c]=Hi(t);if(l){const v=o[t]=zi(l,a);Bi(e,i,v,c)}else r&&(Ui(e,i,r,c),o[t]=void 0)}}const ea=/(?:Once|Passive|Capture)$/;function Hi(e){let t;if(ea.test(e)){t={};let l;for(;l=e.match(ea);)e=e.slice(0,e.length-l[0].length),t[l[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Mt(e.slice(2)),t]}let ol=0;const Ki=Promise.resolve(),Vi=()=>ol||(Ki.then(()=>ol=0),ol=Date.now());function zi(e,t){const s=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=s.attached)return;vt(Wi(l,s.value),t,5,[l])};return s.value=e,s.attached=Vi(),s}function Wi(e,t){if(he(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(l=>a=>!a._stopped&&l&&l(a))}else return t}const ta=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qi=(e,t,s,l,a,o)=>{const r=a==="svg";t==="class"?Oi(e,l,r):t==="style"?Ni(e,s,l):Fs(t)?gn(t)||qi(e,t,s,l,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ji(e,t,l,r))?(Xo(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Yo(e,t,l,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Le(l))?Xo(e,tt(t),l,o,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),Yo(e,t,l,r))};function Ji(e,t,s,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&ta(t)&&fe(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return ta(t)&&Le(s)?!1:t in e}const Gi=["ctrl","shift","alt","meta"],Yi={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)=>Gi.some(s=>e[`${s}Key`]&&!t.includes(s))},jt=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),l=t.join(".");return s[l]||(s[l]=((a,...o)=>{for(let r=0;r<t.length;r++){const i=Yi[t[r]];if(i&&i(a,t))return}return e(a,...o)}))},Xi={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ms=(e,t)=>{const s=e._withKeys||(e._withKeys={}),l=t.join(".");return s[l]||(s[l]=(a=>{if(!("key"in a))return;const o=Mt(a.key);if(t.some(r=>r===o||Xi[r]===o))return e(a)}))},Zi=Ie({patchProp:Qi},Mi);let sa;function eu(){return sa||(sa=ni(Zi))}const tu=((...e)=>{const t=eu().createApp(...e),{mount:s}=t;return t.mount=l=>{const a=nu(l);if(!a)return;const o=t._component;!fe(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const r=s(a,!1,su(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),r},t});function su(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nu(e){return Le(e)?document.querySelector(e):e}function lu(e,t){const s=e||(typeof window<"u"?window.location.origin:"");if(!t)return{baseUrl:s};const l={headers:{Authorization:`Bearer ${t}`}};return{baseUrl:s,beforeSubscribe(a){return l},beforeUnsubscribe(a){return l}}}async function ou(){if(typeof window<"u"&&window.Transmit&&typeof window.Transmit=="function")return window.Transmit;try{const e=await import("@adonisjs/transmit-client");return e.Transmit??e.default??null}catch{return null}}function au(e){let t=null,s=null,l=!1;return{subscribe:async()=>{try{const r=await ou();if(!r)throw new Error("Transmit client not available (neither window.Transmit nor @adonisjs/transmit-client)");if(l)return;t=new r(lu(e.baseUrl,e.authToken)),s=t.subscription(e.channelName),s.onMessage(i=>{l||e.onMessage(i)}),await s.create()}catch(r){e.onError?.(r)}},unsubscribe:async()=>{l=!0;try{await s?.delete(),s=null,t=null}catch{}}}}function ru(e){let t=!1;const s=au({baseUrl:e.baseUrl,channelName:e.channelName,authToken:e.authToken,onMessage:e.onMessage,onError:l=>{t=!0,e.onError?.(l),e.onDisconnect?.()}});return s.subscribe().then(()=>{t||e.onConnect?.()}).catch(l=>{e.onError?.(l),e.onDisconnect?.()}),{unsubscribe:()=>{s.unsubscribe().catch(()=>{})}}}class an extends Error{status;constructor(t=403){super(`Unauthorized (HTTP ${t})`),this.name="UnauthorizedError",this.status=t}}class iu extends Error{status;body;constructor(t,s){super(`API error (HTTP ${t})`),this.name="ApiError",this.status=t,this.body=s}}class al{baseUrl;authToken;constructor(t){this.baseUrl=t.baseUrl.replace(/\/+$/,""),this.authToken=t.authToken}async fetch(t,s){const a={...{Accept:"application/json",...this.authToken?{Authorization:`Bearer ${this.authToken}`}:{}},...s?.headers},o=await globalThis.fetch(`${this.baseUrl}${t}`,{...s,headers:a,credentials:this.authToken?"omit":"same-origin"});if(s?.signal?.aborted)throw new DOMException("The operation was aborted.","AbortError");if(o.status===401||o.status===403)throw new an(o.status);if(!o.ok){const r=await o.text().catch(()=>"");throw new iu(o.status,r)}return o.json()}async get(t,s){const l=s?`${t}?${s}`:t;return this.fetch(l)}async post(t,s){const l={method:"POST",...s!==void 0?{body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}:{}};return this.fetch(t,l)}async delete(t){return this.fetch(t,{method:"DELETE"})}}const rn="ss-dash-theme",rl="ss-theme-change";function Ls(){if(typeof window>"u")return"light";const e=localStorage.getItem(rn);return e==="dark"||e==="light"?e:window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function uu(e){typeof window>"u"||(localStorage.setItem(rn,e),window.dispatchEvent(new CustomEvent(rl,{detail:e})))}function cu(){const t=Ls()==="dark"?"light":"dark";return uu(t),t}function na(e){if(typeof window>"u")return()=>{};const t=o=>{const r=o.detail;(r==="dark"||r==="light")&&e(r)},s=o=>{if(o.key===rn){const r=o.newValue;e(r==="dark"||r==="light"?r:Ls())}},l=window.matchMedia("(prefers-color-scheme: dark)"),a=o=>{localStorage.getItem(rn)||e(o.matches?"dark":"light")};return window.addEventListener(rl,t),window.addEventListener("storage",s),l.addEventListener("change",a),()=>{window.removeEventListener(rl,t),window.removeEventListener("storage",s),l.removeEventListener("change",a)}}const du={color:"#34d399",fillOpacityTop:.25,fillOpacityBottom:.02,strokeWidth:1.5,width:120,height:32,padding:2};function fu(e){return{...du,...e}}let hu=0;function pu(){return`ss-grad-${hu++}`}function vu(e){if(e.length===0)return null;let t=e[0],s=e[0],l=e[0];for(let a=1;a<e.length;a++){const o=e[a];o<t&&(t=o),o>s&&(s=o),l+=o}return{min:t,max:s,avg:l/e.length}}function gu(e,t){if(e.length<2)return null;const s=fu(t),l=vu(e),a=l.max-l.min||1,o=s.width-s.padding*2,r=s.height-s.padding*2,i=s.padding,c=e.length,v=Array.from({length:c});for(let m=0;m<c;m++){const S=i+m/(c-1)*o,U=i+r-(e[m]-l.min)/a*r;v[m]=`${S.toFixed(1)},${U.toFixed(1)}`}const p=v.join(" "),g=(i+o).toFixed(1),k=(i+r).toFixed(1),x=i.toFixed(1),_=`M${v[0]} `+v.slice(1).map(m=>`L${m}`).join(" ")+` L${g},${k} L${x},${k} Z`;return{points:p,areaPath:_,gradientId:pu(),options:s,stats:l}}const yu=5e3,la=1e4,oa=100,mu=500;function bu(e){return'"'+(e.length>40?e.slice(0,40)+"...":e)+'"'}function _u(e,t,s){if(e.length===0)return"[]";const l=e.slice(0,3).map(r=>s(r,30)),a=e.length>3?", ..."+e.length+" items":"",o="["+l.join(", ")+a+"]";return o.length>t?"["+e.length+" items]":o}function xu(e,t,s){const l=Object.keys(e);if(l.length===0)return"{}";const a=[];for(let c=0;c<Math.min(l.length,4);c++)a.push(l[c]+": "+s(e[l[c]],30));const o=l.length>4?", ...+"+(l.length-4):"",r="{ "+a.join(", ")+o+" }";return r.length<=t?r:"{ "+(l.slice(0,6).join(", ")+(l.length>6?", ...":""))+" }"}function wu(e){if(!e&&e!==0)return"-";const t=Math.floor(e),s=Math.floor(t/86400),l=Math.floor(t%86400/3600),a=Math.floor(t%3600/60);return s>0?`${s}d ${l}h`:l>0?`${l}h ${a}m`:a>0?`${a}m ${t%60}s`:`${t}s`}function Bt(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:e>=1?`${e.toFixed(0)}ms`:`${e.toFixed(2)}ms`}function aa(e){return/([+-]\d{2}:?\d{2}|Z)\s*$/.test(e)?e:e+"Z"}function Ut(e){if(!e)return"-";const t=typeof e=="string"?new Date(aa(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 mt(e){if(!e)return"-";const t=typeof e=="string"?new Date(aa(e)).getTime():e,s=Math.floor((Date.now()-t)/1e3);return s<0?"just now":s<60?`${s}s ago`:s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:`${Math.floor(s/86400)}d ago`}function $u(e){return e>mu?"very-slow":e>oa?"slow":"normal"}function il(e,t="ss-dash"){const s=$u(e);return s==="very-slow"?`${t}-very-slow`:s==="slow"?`${t}-slow`:""}function un(e,t=100){return e===null?"null":e===void 0?"-":typeof e=="string"?bu(e):typeof e=="number"||typeof e=="boolean"?String(e):Array.isArray(e)?_u(e,t,un):typeof e=="object"?xu(e,t,un):String(e)}function ku(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 Su(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(1)}MB`}const Cu=[{key:"page",param:"page",isNumeric:!0},{key:"perPage",param:"perPage",isNumeric:!0},{key:"search",param:"search"},{key:"sort",param:"sort"},{key:"sortDir",param:"direction"},{key:"timeRange",param:"range"}];function Tu(e){const t=new URLSearchParams,s=e;for(const{key:l,param:a,isNumeric:o}of Cu){const r=s[l];(o?r!=null:r)&&t.set(a,String(r))}if(e.filters)for(const[l,a]of Object.entries(e.filters))a&&t.set(l,a);return t.toString()}function Eu(e,t,s=2){if(t<=1)return[1];const l=[],a=Math.max(2,e-s),o=Math.min(t-1,e+s);l.push(1),a>2&&l.push("...");for(let r=a;r<=o;r++)l.push(r);return o<t-1&&l.push("..."),t>1&&l.push(t),l}const Pu=["tracing","process","system","http","db","redis","queues","cache","app","log","emails","dashboard"],ra="/admin/api/debug",ia={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 Ru(e){const t={customPanes:e.customPanes??[]},s=e.features;for(const l of Pu)t[l]=s?.[l]??!1;return t}async function Au(e,t=ra){const s=`${t.replace(/\/+$/,"")}/config`;return e.fetch(s)}async function Mu(e){const{baseUrl:t="",debugEndpoint:s=ra,authToken:l}=e,a=new al({baseUrl:t,authToken:l});try{const o=await Au(a,s);return Ru(o)}catch{return ia}}const Lu={overview:"/overview",requests:"/requests",queries:"/queries",events:"/events",routes:"/routes",logs:"/logs",emails:"/emails",timeline:"/traces",cache:"/cache",jobs:"/jobs",config:"/config"};function Ou(e){return Lu[e]||`/${e}`}class ua{constructor(t,s){this.client=t,this.basePath=s}async fetchSection(t,s,l){const a=Ou(t),o=s?`${this.basePath}${a}?${s}`:`${this.basePath}${a}`;return this.client.fetch(o,l)}async fetchChart(t){return this.client.fetch(`${this.basePath}/overview/chart?range=${t}`)}async fetchGroupedQueries(){return this.client.fetch(`${this.basePath}/queries/grouped`)}async explainQuery(t){return this.client.fetch(`${this.basePath}/queries/${t}/explain`)}async retryJob(t){return this.client.fetch(`${this.basePath}/jobs/${t}/retry`,{method:"POST"})}async fetchCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`)}async deleteCacheKey(t){return this.client.fetch(`${this.basePath}/cache/${encodeURIComponent(t)}`,{method:"DELETE"})}async fetchEmailPreview(t){return this.client.fetch(`${this.basePath}/emails/${t}/preview`)}}function Du(e){if(!e||typeof e!="object")return!1;const t=e;return t.data!==void 0&&t.meta!==void 0}function Fu(e,t){return t.aborted?!0:e instanceof DOMException&&e.name==="AbortError"}class Iu{client;api;callbacks;endpoint;perPage;section;page=1;search;sort;sortDir;filters;timeRange;timer=null;fetchId=0;explicitFetchPending=!1;hasFetched=!1;stopped=!1;abortController=null;constructor(t){this.client=new al({baseUrl:t.baseUrl,authToken:t.authToken}),this.api=new ua(this.client,t.endpoint),this.endpoint=t.endpoint,this.section=t.section,this.perPage=t.perPage,this.callbacks=t.callbacks}start(){this.stopped=!1,this.fetch(!1),this.startRefreshTimer()}stop(){this.stopped=!0,this.stopRefreshTimer(),this.abortController?.abort(),this.abortController=null}async fetch(t=!0){if(this.shouldSkipFetch(t))return;const{controller:s,myFetchId:l}=this.prepareFetch(t);try{const a=await this.executeFetch(s);if(this.isStaleResponse(l))return;this.applyFetchResult(a)}catch(a){if(this.shouldIgnoreError(a,s.signal,l))return;this.handleFetchError(a,t)}finally{t||(this.explicitFetchPending=!1)}}setSection(t){this.section!==t&&(this.section=t,this.page=1,this.search=void 0,this.sort=void 0,this.sortDir=void 0,this.filters=void 0,this.hasFetched=!1,this.callbacks.onData(null),this.callbacks.onPagination(null),this.callbacks.onLoading(!0),this.callbacks.onError(null),this.fetch(!1),this.startRefreshTimer())}setPage(t){this.page=t,this.fetch(!1)}setSearch(t){this.search=t||void 0,this.page=1,this.fetch(!1)}setFilter(t,s){this.filters||(this.filters={}),this.filters[t]=String(s),this.page=1,this.fetch(!1)}setSort(t,s){this.sort===t&&!s?this.sortDir=this.sortDir==="asc"?"desc":"asc":(this.sort=t,this.sortDir=s||"desc"),this.fetch(!1)}setTimeRange(t){this.timeRange=t,this.fetch(!1)}async mutate(t,s="post",l){const a=`${this.endpoint}/${t}`;try{const o=s==="post"?await this.client.post(a,l):await this.client.delete(a);return await this.fetch(!0),o}catch(o){throw o instanceof Error?o:new Error(String(o))}}configure(t){t.page!==void 0&&(this.page=t.page),t.perPage!==void 0&&(this.perPage=t.perPage),this.search=t.search,this.sort=t.sort,this.sortDir=t.sortDir,this.filters=t.filters,this.timeRange=t.timeRange}hasData(){return this.hasFetched}handleRefreshSignal(){this.hasFetched&&this.fetch(!0)}getApi(){return this.api}getClient(){return this.client}shouldSkipFetch(t){return t&&this.explicitFetchPending?!0:!this.section}prepareFetch(t){this.abortController?.abort();const s=new AbortController;this.abortController=s;const l=++this.fetchId;return t||(this.callbacks.onLoading(!0),this.explicitFetchPending=!0),{controller:s,myFetchId:l}}async executeFetch(t){const s=this.buildCurrentQueryString();return this.api.fetchSection(this.section,s||void 0,{signal:t.signal})}isStaleResponse(t){return t!==this.fetchId||this.stopped}shouldIgnoreError(t,s,l){return Fu(t,s)?!0:this.isStaleResponse(l)}buildCurrentQueryString(){const t=this.sort?this.sort.replace(/[A-Z]/g,l=>"_"+l.toLowerCase()):void 0,s=this.filters;return Tu({page:this.page,perPage:this.perPage,search:this.search,sort:t,sortDir:this.sort?this.sortDir:void 0,filters:s&&Object.keys(s).length>0?s:void 0,timeRange:this.section.startsWith("overview")?this.timeRange:void 0})}applyFetchResult(t){Du(t)?(this.callbacks.onData(t.data),this.callbacks.onPagination(t.meta)):(this.callbacks.onData(t),this.callbacks.onPagination(null)),this.callbacks.onError(null),this.callbacks.onLoading(!1),this.hasFetched=!0}handleFetchError(t,s){if(t instanceof an){this.callbacks.onError(t),this.callbacks.onLoading(!1),this.stopRefreshTimer(),this.callbacks.onUnauthorized();return}s||(this.callbacks.onError(t instanceof Error?t:new Error(String(t))),this.callbacks.onLoading(!1))}startRefreshTimer(){this.stopRefreshTimer();const t=this.section==="overview"?yu:la;this.timer=setInterval(()=>this.fetch(!0),t)}stopRefreshTimer(){this.timer&&(clearInterval(this.timer),this.timer=null)}}const He={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"/>']}},Nu="ss-col-resize",ca="ss-resizing";function ju(e){const t=Array.from(e.querySelectorAll("thead th"));if(t.length===0)return()=>{};const s=[];let l=!1;function a(){if(!l){l=!0;for(const o of t)o.style.width=o.offsetWidth+"px";e.style.tableLayout="fixed"}}for(const o of t){let r=function(c){c.preventDefault(),c.stopPropagation(),a();const v=c.clientX,p=o.offsetWidth;i.classList.add(ca),i.setPointerCapture(c.pointerId);function g(x){const _=x.clientX-v,m=Math.max(30,p+_);o.style.width=m+"px"}function k(){i.classList.remove(ca),i.removeEventListener("pointermove",g),i.removeEventListener("pointerup",k)}i.addEventListener("pointermove",g),i.addEventListener("pointerup",k)};if(!o.textContent?.trim())continue;const i=document.createElement("div");i.className=Nu,o.appendChild(i),i.addEventListener("pointerdown",r),s.push(()=>{i.removeEventListener("pointerdown",r),i.remove()})}return()=>{for(const o of s)o()}}function Bu(e){const{container:t,handle:s,topPane:l,bottomPane:a,storageKey:o,minHeight:r=60}=e;if(o){const c=localStorage.getItem(o);if(c){const v=parseFloat(c);v>0&&v<1&&(l.style.flex=`${v}`,a.style.flex=`${1-v}`)}}function i(c){c.preventDefault(),s.setPointerCapture(c.pointerId);const p=t.getBoundingClientRect().height,g=c.clientY,k=l.getBoundingClientRect().height;function x(m){const S=m.clientY-g;let U=k+S;const L=p-r-s.offsetHeight;U=Math.max(r,Math.min(U,L));const b=U/(p-s.offsetHeight);l.style.flex=`${b}`,a.style.flex=`${1-b}`}function _(){if(s.removeEventListener("pointermove",x),s.removeEventListener("pointerup",_),o){const m=t.getBoundingClientRect().height-s.offsetHeight;if(m>0){const S=l.getBoundingClientRect().height/m;localStorage.setItem(o,String(S))}}}s.addEventListener("pointermove",x),s.addEventListener("pointerup",_)}return s.addEventListener("pointerdown",i),()=>{s.removeEventListener("pointerdown",i)}}function Uu(e){if(typeof e=="string")try{return JSON.parse(e)}catch{return null}return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}function da(e){const t={};for(const[s,l]of Object.entries(e))Hu.has(s)||(t[s]=l);return Object.keys(t).length>0?t:null}const qu=["all","error","warn","info","debug"];function cn(e){return(e.levelName||e.level_name||(typeof e.level=="string"?e.level:"")||"info").toLowerCase()}function fa(e){return e.msg||e.message||JSON.stringify(e)}function qt(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 ha(e,t="ss-dbg-log-level"){switch(e){case"error":case"fatal":return`${t}-error`;case"warn":return`${t}-warn`;case"info":return`${t}-info`;case"debug":return`${t}-debug`;case"trace":return`${t}-trace`;default:return`${t}-info`}}const Hu=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 bt(e){if(e.data){const t=Uu(e.data);if(t){const s=da(t);if(s)return s}}return da(e)}function Ue(e,...t){for(const s of t){const l=e[s];if(l!=null)return l}}function Ku(e){return Ue(e,"createdAt","created_at","timestamp")}function Vu(e){return Ue(e,"method","sql_method")??""}function pa(e){return Ue(e,"sqlNormalized","normalizedSql","sql_normalized","sql")??""}function zu(e,t){let s=0,l=0;for(const c of e){const v=Ue(c,"duration")??0;l+=v,v>oa&&s++}const a=va(e);let o=0;for(const c of a.values())c>1&&(o+=c);const r=e.length>0?l/e.length:0,i=t?.total??e.length;return{slowCount:s,dupCount:o,avgDuration:r,totalCount:i}}function Wu(e){return{id:Ue(e,"id")??0,sql:Ue(e,"sql","sql_text")??"",sqlNormalized:pa(e),duration:Ue(e,"duration")??0,method:Vu(e),model:Ue(e,"model")??"",connection:Ue(e,"connection")??"",timestamp:Ku(e)??0,inTransaction:Ue(e,"inTransaction","in_transaction")??!1}}function va(e){const t=new Map;for(const s of e){const a=pa(s);t.set(a,(t.get(a)||0)+1)}return t}function Qu(e){const t=[];if(e["Startup Cost"]!==null&&e["Startup Cost"]!==void 0&&t.push(`cost=${e["Startup Cost"]}..${e["Total Cost"]}`),e["Plan Rows"]!==null&&e["Plan Rows"]!==void 0&&t.push(`rows=${e["Plan Rows"]}`),e["Plan Width"]!==null&&e["Plan Width"]!==void 0&&t.push(`width=${e["Plan Width"]}`),e.Filter&&t.push(`filter: ${e.Filter}`),e["Index Cond"]&&t.push(`cond: ${e["Index Cond"]}`),e["Hash Cond"]&&t.push(`hash: ${e["Hash Cond"]}`),e["Join Type"]&&t.push(`join: ${e["Join Type"]}`),e["Sort Key"]){const s=Array.isArray(e["Sort Key"])?e["Sort Key"].join(", "):e["Sort Key"];t.push(`sort: ${s}`)}return t}function ga(e,t=0){if(!e)return[];const l=[{depth:t,nodeType:e["Node Type"]||"Unknown",relationName:e["Relation Name"]||"",alias:e.Alias&&e.Alias!==e["Relation Name"]?e.Alias:"",indexName:e["Index Name"]||"",metrics:Qu(e),isRoot:t===0}],a=e.Plans||[];for(const o of a)l.push(...ga(o,t+1));return l}function Ju(e){return!e||typeof e!="object"?!1:"Plan"in e}function Gu(e){if(!e||e.length===0)return[];const t=e[0];return!t||typeof t!="object"?[]:Object.keys(t)}function Yu(e){return e==null?"-":String(e)}function Xu(e){const t=[{key:"id",label:"#",width:"40px",type:"index"},{key:"sql",label:"SQL",type:"sql"},{key:"duration",label:"Duration",width:"70px",sortable:!0,type:"duration"},{key:"method",label:"Method",width:"60px",type:"method"},{key:"model",label:"Model",width:"90px",type:"model"},{key:"connection",label:"Connection",width:"80px",type:"connection"},{key:"createdAt",label:"Time",width:"90px",sortable:!0,type:"time"}];return t.push({key:"id",label:"",width:"70px",type:"explain"}),t}function Zu(){return[{key:"sqlNormalized",label:"Pattern",type:"sql"},{key:"count",label:"Count",width:"60px",sortable:!0},{key:"avgDuration",label:"Avg",width:"70px",sortable:!0,type:"duration"},{key:"minDuration",label:"Min",width:"70px",type:"duration"},{key:"maxDuration",label:"Max",width:"70px",type:"duration"},{key:"totalDuration",label:"Total",width:"70px",sortable:!0,type:"duration"},{key:"percentOfTotal",label:"% Time",width:"60px"}]}class ec{state;constructor(t="list"){this.state={viewMode:t,sort:{key:t==="list"?"createdAt":"count",dir:"desc"},expandedIds:new Set,explainData:new Map,search:""}}setViewMode(t){return this.state.viewMode=t,this.state.sort={key:t==="list"?"createdAt":"count",dir:"desc"},this.state.expandedIds=new Set,this.state.explainData=new Map,this.state}toggleSort(t){return this.state.sort.key===t?this.state.sort={key:t,dir:this.state.sort.dir==="asc"?"desc":"asc"}:this.state.sort={key:t,dir:"desc"},this.state}toggleExpand(t){return this.state.expandedIds.has(t)?this.state.expandedIds.delete(t):this.state.expandedIds.add(t),this.state}isExpanded(t){return this.state.expandedIds.has(t)}setSearch(t){return this.state.search=t,this.state}startExplain(t){this.state.explainData.set(t,{loading:!0})}completeExplain(t,s){this.state.explainData.set(t,{loading:!1,result:s})}failExplain(t,s){this.state.explainData.set(t,{loading:!1,error:s})}clearExplain(){this.state.explainData=new Map}getExplainState(t){return this.state.explainData.get(t)}}const tc=["all","active","waiting","delayed","completed","failed"];function sc(e){switch(e){case"active":return"blue";case"waiting":return"amber";case"delayed":return"purple";case"completed":return"green";case"failed":return"red";default:return"muted"}}function nc(e){if(!e)return[];if(Array.isArray(e))return e;const t=e;return t.jobs||t.data||[]}function lc(e){if(!e||Array.isArray(e))return null;const t=e;return t.stats||t.overview||null}function oc(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ac(e){if(!e)return[];if(typeof e=="string")try{return JSON.parse(e)}catch{return[]}return Array.isArray(e)?e:[]}function ul(e,t,s,l=0){return e[t]??e[s]??l}function rc(e){return{method:e.method||"",url:e.url||"",statusCode:ul(e,"status_code","statusCode"),totalDuration:ul(e,"total_duration","totalDuration")||e.duration||0,spanCount:ul(e,"span_count","spanCount"),spans:oc(e.spans),warnings:ac(e.warnings),logs:e.logs||[],httpRequestId:e.httpRequestId||e.http_request_id||void 0}}const ic=["password","secret","token","key","credential","auth"];function uc(e){const t=e.toLowerCase();return ic.some(s=>t.includes(s))}function cc(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 dc={collectionInterval:"Stats Collection",dashboardBroadcast:"Dashboard Broadcast",debugBroadcast:"Debug Broadcast",persistFlush:"Persist Flush",retentionCleanup:"Retention Cleanup"};function fc(e){return dc[e]||e}const hc={prometheus:"Prometheus",pinoHook:"Pino Log Hook",edgePlugin:"Edge Plugin",cacheInspector:"Cache Inspector",queueInspector:"Queue Inspector"};function pc(e){return hc[e]||e}function vc(e){return"active"in e?e.active?"active":"inactive":"available"in e?e.available?"available":"unavailable":"unknown"}function gc(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 yc(e){return Object.entries(e).map(([t,s])=>({key:t,value:cc(s),secret:uc(t)}))}function mc(e,t){return t?Math.min(100,Math.round(e/t*100)):0}const bc=["healthy","active","connected","available","ready"],_c=["errored","unavailable"];function xc(e){return bc.includes(e)?"ok":_c.includes(e)?"err":""}function De(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&e.__redacted===!0}function dn(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)&&!De(e)}function fn(e,t=""){if(!dn(e))return[{path:t,value:e}];const s=[];for(const l of Object.keys(e)){const a=t?`${t}.${l}`:l,o=e[l];dn(o)?s.push(...fn(o,a)):s.push({path:a,value:o})}return s}function wc(e){return e==null?{text:"null",color:"var(--ss-dim)"}:typeof e=="boolean"?{text:String(e),color:e?"var(--ss-green-fg)":"var(--ss-red-fg)"}:typeof e=="number"?{text:String(e),color:"var(--ss-amber-fg)"}:Array.isArray(e)?{text:`[${e.map(s=>s==null?"null":typeof s=="object"?JSON.stringify(s):String(s)).join(", ")}]`,color:"var(--ss-purple-fg)"}:typeof e=="object"?{text:JSON.stringify(e),color:"var(--ss-dim)"}:{text:String(e)}}function ya(e){if(e==null||typeof e!="object"||Array.isArray(e)||De(e))return 1;let t=0;for(const s of Object.keys(e))t+=ya(e[s]);return t}function $c(e){if(!dn(e))return[];const t=[];for(const s of Object.keys(e))dn(e[s])&&t.push(s);return t}function kc(e,t,s){t&&navigator.clipboard.writeText(e).then(()=>{const l=t.textContent;t.textContent="✓",t.classList.add(`${s}-copy-row-ok`),setTimeout(()=>{t.textContent=l,t.classList.remove(`${s}-copy-row-ok`)},1200)}).catch(()=>{})}function Sc(e={}){const{baseUrl:t="",debugEndpoint:s="/admin/api/debug",authToken:l}=e,a=J({...ia}),o=J(!0);return St(async()=>{a.value=await Mu({baseUrl:t,debugEndpoint:s,authToken:l}),o.value=!1}),{features:a,loading:o}}function ma(){const e=J(Ls());let t=null;function s(a){e.value=a}function l(){const a=cu();return e.value=a,a}return St(()=>{e.value=Ls(),t=na(s)}),Ct(()=>{t?.()}),{theme:e,toggleTheme:l}}function Cc(e){let t=null;return{onData:s=>{t=s},onPagination:s=>{s?(e.pagination.total=s.total,e.pagination.totalPages=s.lastPage??(Math.ceil(s.total/e.pagination.perPage)||1),e.data.value={data:t,meta:s}):e.data.value=t},onLoading:s=>{e.loading.value=s},onError:s=>{e.error.value=s},onUnauthorized:()=>{e.isUnauthorized.value=!0}}}function Tc(e){const t={};for(const[s,l]of Object.entries(e))s!=="search"&&l!==""&&l!==void 0&&l!==null&&(t[s]=String(l));return t}async function cl(e){try{return await e()}catch{return null}}function Ec(e){return{fetchGroupedQueries:()=>cl(()=>e.fetchGroupedQueries()),explainQuery:t=>cl(()=>e.explainQuery(t)),fetchEmailPreview:async t=>(await cl(()=>e.fetchEmailPreview(t)))?.html||null}}function Pc(e){return{retryJob:async t=>{try{return await e.retryJob(t),!0}catch{return!1}},deleteCacheKey:async t=>{try{return await e.deleteCacheKey(t),!0}catch{return!1}}}}function Rc(e,t){return{fetchChart:async s=>{try{return await e.fetchChart(s)}catch(l){return l instanceof an&&(t.value=!0),null}}}}function Os(e,t,s){const l=t(),a=Tc(s.filter);e.configure({page:s.pagination.page,perPage:s.pagination.perPage,search:s.filter.search||void 0,sort:s.sort.column||void 0,sortDir:s.sort.column?s.sort.direction:void 0,filters:Object.keys(a).length>0?a:void 0,timeRange:l.startsWith("overview")?s.timeRange.value:void 0})}function Ac(e,t){return{goToPage(s){e.pagination.page=s,t()},setSearch(s){e.filter.search=s,e.pagination.page=1,t()},setFilter(s,l){e.filter[s]=l,e.pagination.page=1,t()},setSort(s,l){e.sort.column===s&&!l?e.sort.direction=e.sort.direction==="asc"?"desc":"asc":(e.sort.column=s,e.sort.direction=l||"desc"),t()},setTimeRange(s){e.timeRange.value=s,t()}}}function Mc(e,t,s){return{async mutate(l,a="post",o){return e.mutate(l,a,o)},refresh(){Os(e,t,s),e.fetch(!0)},startRefresh(){e.start()},stopRefresh(){e.stop()}}}function Lc(e,t,s,l){it(t,()=>{s.pagination.page=1;for(const a of Object.keys(s.filter))a==="search"?s.filter.search="":delete s.filter[a];s.sort.column="",s.data.value=null,e.setSection(t()),Os(e,t,s)}),l&&it(l,()=>{Os(e,t,s),e.handleRefreshSignal()})}function Oc(e){return{data:J(null),loading:J(!1),error:J(null),isUnauthorized:J(!1),timeRange:J("1h"),pagination:ss({page:1,perPage:e,total:0,totalPages:1}),filter:ss({search:""}),sort:ss({column:"",direction:"desc"})}}function Dc(e,t,s,l){return{data:e.data,loading:e.loading,error:e.error,isUnauthorized:e.isUnauthorized,pagination:e.pagination,filter:e.filter,sort:e.sort,timeRange:e.timeRange,...t,...s,...l}}function nt(e,t={}){const{baseUrl:s="",dashboardEndpoint:l="/__stats/api",authToken:a,perPage:o=50,refreshKey:r}=t,i=Oc(o),c=new Iu({baseUrl:s,endpoint:l,authToken:a,section:e(),perPage:o,callbacks:Cc(i)}),v=c.getApi(),g=Ac(i,()=>{Os(c,e,i),c.fetch(!1)}),k=Mc(c,e,i),x={...Rc(v,i.isUnauthorized),...Ec(v),...Pc(v)};return Lc(c,e,i,r),St(()=>{Os(c,e,i),c.start()}),Ct(()=>{c.stop()}),Dc(i,g,k,x)}const Fc=["title","aria-label"],Ic=["viewBox","innerHTML"],Nc=["viewBox","innerHTML"],jc=Oe({__name:"ThemeToggle",props:{classPrefix:{default:"ss-dbg"}},setup(e){const t=e,{theme:s,toggleTheme:l}=ma(),a=H(()=>s.value==="dark"),o=H(()=>a.value?"Switch to light theme":"Switch to dark theme"),r=H(()=>t.classPrefix==="ss-dbg"?"ss-dbg-theme-toggle":"ss-dash-theme-btn");return(i,c)=>(u(),d("button",{type:"button",class:N(r.value),title:o.value,"aria-label":o.value,onClick:c[0]||(c[0]=(...v)=>w(l)&&w(l)(...v))},[a.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(He).sun.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).sun.elements.join("")},null,8,Ic)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(He).moon.viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).moon.elements.join("")},null,8,Nc))],10,Fc))}}),Bc=["data-theme"],Uc={class:"ss-dash-header"},qc={class:"ss-dash-header-center"},Hc={class:"ss-dash-header-right"},Kc=["href"],Vc={class:"ss-dash-body"},zc={class:"ss-dash-nav"},Wc=["data-ss-section","onClick","title"],Qc={class:"ss-dash-nav-icon"},Jc=["viewBox","innerHTML"],Gc={class:"ss-dash-nav-label"},Yc={key:0,class:"ss-dash-nav-sep"},Xc=["onClick","title"],Zc={class:"ss-dash-nav-icon"},ed=["viewBox","innerHTML"],td={class:"ss-dash-nav-label"},sd=["title"],nd=["viewBox","innerHTML"],ld=["viewBox","innerHTML"],od={class:"ss-dash-main"},ad=["id"],rd={class:"ss-dash-pane-inner"},id={key:1,class:"ss-dash-empty"},ud=Oe({__name:"DashboardPage",props:{baseUrl:{default:""},dashboardEndpoint:{default:"/__stats/api"},debugEndpoint:{default:void 0},authToken:{default:void 0},backUrl:{default:"/"},channelName:{default:"server-stats/dashboard"}},setup(e){const t=ut(()=>Promise.resolve().then(()=>yh)),s=ut(()=>Promise.resolve().then(()=>yp)),l=ut(()=>Promise.resolve().then(()=>tv)),a=ut(()=>Promise.resolve().then(()=>iv)),o=ut(()=>Promise.resolve().then(()=>yv)),r=ut(()=>Promise.resolve().then(()=>Bv)),i=ut(()=>Promise.resolve().then(()=>ng)),c=ut(()=>Promise.resolve().then(()=>kg)),v=ut(()=>Promise.resolve().then(()=>Qg)),p=ut(()=>Promise.resolve().then(()=>d1)),g=ut(()=>Promise.resolve().then(()=>W1)),k=["overview","requests","queries","events","routes","logs","emails","cache","jobs","config","internals"],x=e,{theme:_}=ma(),{features:m}=Sc({baseUrl:x.baseUrl,debugEndpoint:x.debugEndpoint,authToken:x.authToken}),S=J("overview"),U=J(!1),L=J(!1),b=J(0);It("ss-refresh-key",b),It("ss-base-url",x.baseUrl),It("ss-dashboard-endpoint",x.dashboardEndpoint),It("ss-debug-endpoint",x.debugEndpoint),It("ss-auth-token",x.authToken),typeof window<"u"&&(U.value=localStorage.getItem("ss-dash-sidebar")==="collapsed");let $=null;function T(){if($&&($(),$=null),!x.channelName)return;$=ru({baseUrl:x.baseUrl,channelName:x.channelName,authToken:x.authToken,onMessage:()=>{b.value+=1},onConnect:()=>{L.value=!0},onDisconnect:()=>{L.value=!1},onError:()=>{L.value=!1}}).unsubscribe}St(()=>{T()}),Ct(()=>{$&&($(),$=null)});const R=H(()=>m.value.customPanes||[]);function te(ue){const E=ue.replace("#","").split("?")[0];return E&&[...k,...R.value.map(P=>P.id)].includes(E)?E:"overview"}function re(){const ue=te(window.location.hash);ue!==S.value&&(S.value=ue)}St(()=>{if(typeof window>"u")return;const ue=te(window.location.hash);(ue!=="overview"||window.location.hash)&&(S.value=ue),window.addEventListener("hashchange",re)}),Ct(()=>{window.removeEventListener("hashchange",re)}),it(S,ue=>{typeof window<"u"&&(window.location.hash=ue)});function X(){U.value=!U.value,localStorage.setItem("ss-dash-sidebar",U.value?"collapsed":"expanded")}function ge(ue){ue!==S.value&&(S.value=ue)}const Ee=H(()=>[{id:"overview",label:"Overview",visible:!0},{id:"requests",label:"Requests",visible:!0},{id:"queries",label:"Queries",visible:!0},{id:"events",label:"Events",visible:!0},{id:"routes",label:"Routes",visible:!0},{id:"logs",label:"Logs",visible:!0},{id:"emails",label:"Emails",visible:!0},{id:"cache",label:"Cache",visible:m.value.cache},{id:"jobs",label:"Jobs",visible:m.value.queues},{id:"config",label:"Config",visible:!0},{id:"internals",label:"Internals",visible:!0}]),we=H(()=>Ee.value.filter(ue=>ue.visible)),{data:Ce,loading:me}=nt(()=>"overview",{baseUrl:x.baseUrl,dashboardEndpoint:x.dashboardEndpoint,authToken:x.authToken,refreshKey:b}),$e=H(()=>Ce.value);It("ss-overview-data",Ce),It("ss-overview-loading",me);const se=H(()=>{const ue={};if(!$e.value)return ue;if($e.value.totalRequests>0&&(ue.requests={count:$e.value.totalRequests}),$e.value.queryStats?.total>0&&(ue.queries={count:$e.value.queryStats.total}),$e.value.logLevelBreakdown){const E=$e.value.logLevelBreakdown,O=E.error+E.warn+E.info+E.debug;O>0&&(ue.logs={count:O})}return ue}),q={overview:t,requests:s,queries:l,events:a,routes:o,logs:r,emails:i,cache:c,jobs:v,config:p,internals:g},V=H(()=>q[S.value]||null);return(ue,E)=>(u(),d("div",{class:"ss-dash","data-theme":w(_),id:"ss-dash"},[n("div",Uc,[E[0]||(E[0]=n("div",{class:"ss-dash-header-left"},[n("span",{class:"ss-dash-logo"},"Server Stats"),n("span",{class:"ss-dash-logo-sub"},"Dashboard")],-1)),n("div",qc,[n("span",{class:N(["ss-dash-live-dot",{"ss-dash-connected":L.value}]),id:"ss-dash-live-dot"},null,2),n("span",{class:N(["ss-dash-live-label",{"ss-dash-connected":L.value}]),id:"ss-dash-live-label"},h(L.value?"Live":"Polling"),3)]),n("div",Hc,[_e(jc,{"class-prefix":"ss-dash"}),e.backUrl?(u(),d("a",{key:0,href:e.backUrl,class:"ss-dash-back-link",title:"Back to app"}," ← App ",8,Kc)):G("",!0)])]),n("div",Vc,[n("div",{class:N(["ss-dash-sidebar",{"ss-dash-collapsed":U.value}]),id:"ss-dash-sidebar"},[n("nav",zc,[(u(!0),d(B,null,pe(we.value,O=>(u(),d("button",{key:O.id,type:"button",class:N(["ss-dash-nav-item",{"ss-dash-active":S.value===O.id}]),"data-ss-section":O.id,onClick:P=>ge(O.id),title:U.value?O.label:void 0},[n("span",Qc,[(u(),d("svg",{width:"20",height:"20",viewBox:(w(He)[O.id]||w(He).config).viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:(w(He)[O.id]||w(He).config).elements.join("")},null,8,Jc))]),n("span",Gc,h(O.label),1),se.value[O.id]&&se.value[O.id].count>0?(u(),d("span",{key:0,class:N(["ss-dash-nav-badge",se.value[O.id].variant||""])},h(se.value[O.id].count),3)):G("",!0)],10,Wc))),128)),R.value.length>0?(u(),d("div",Yc)):G("",!0),(u(!0),d(B,null,pe(R.value,O=>(u(),d("button",{key:O.id,type:"button",class:N(["ss-dash-nav-item",{"ss-dash-active":S.value===O.id}]),onClick:P=>ge(O.id),title:U.value?O.label:void 0},[n("span",Zc,[(u(),d("svg",{width:"20",height:"20",viewBox:w(He)["custom-pane"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He)["custom-pane"].elements.join("")},null,8,ed))]),n("span",td,h(O.label),1)],10,Xc))),128))]),n("button",{type:"button",class:"ss-dash-sidebar-toggle",id:"ss-dash-sidebar-toggle",onClick:X,title:U.value?"Expand sidebar":"Collapse sidebar"},[U.value?(u(),d("svg",{key:0,width:"16",height:"16",viewBox:w(He)["chevron-right"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(He)["chevron-right"].elements.join("")},null,8,nd)):(u(),d("svg",{key:1,width:"16",height:"16",viewBox:w(He)["chevron-left"].viewBox,fill:"none",stroke:"currentColor","stroke-width":"1.5",innerHTML:w(He)["chevron-left"].elements.join("")},null,8,ld))],8,sd)],2),n("div",od,[n("div",{class:"ss-dash-pane ss-dash-active",id:`ss-dash-pane-${S.value}`},[n("div",rd,[(u(),et(ri,null,{fallback:is(()=>[...E[1]||(E[1]=[n("div",{class:"ss-dash-empty"},"Loading...",-1)])]),default:is(()=>[V.value?(u(),et(Lr(V.value),{key:0})):(u(),d("div",id,"Unknown section"))]),_:1}))])],8,ad)])])],8,Bc))}});function cd(e){const t=document.getElementById(e);return t?JSON.parse(t.textContent||"{}"):{}}function dd(){function e(t){document.documentElement.setAttribute("data-theme",t)}e(Ls()),na(e)}const vs=cd("ss-dash-config");dd();const ba=document.getElementById("ss-dash");ba&&tu(ud,{baseUrl:vs.baseUrl,dashboardEndpoint:vs.dashboardEndpoint,debugEndpoint:vs.debugEndpoint,authToken:vs.authToken,backUrl:vs.backUrl,channelName:vs.channelName}).mount(ba);const fd=["width","height","viewBox"],hd=["id"],pd=["stop-color"],vd=["stop-color"],gd=["d","fill"],yd=["d","stroke"],md=["x","y"],hn=Oe({__name:"Sparkline",props:{data:{},color:{default:"#34d399"},width:{default:120},height:{default:32}},setup(e){const t=e,s=H(()=>gu(t.data,{width:t.width,height:t.height,color:t.color})),l=H(()=>s.value!==null),a=H(()=>`sg-${t.color.replace("#","")}`);return(o,r)=>(u(),d("div",{class:"ss-dash-sparkline",style:Ne({"--ss-accent":e.color})},[(u(),d("svg",{width:e.width,height:e.height,viewBox:`0 0 ${e.width} ${e.height}`,style:{display:"block"}},[l.value&&s.value?(u(),d(B,{key:0},[n("defs",null,[n("linearGradient",{id:a.value,x1:"0",y1:"0",x2:"0",y2:"1"},[n("stop",{offset:"0%","stop-color":e.color,"stop-opacity":"0.25"},null,8,pd),n("stop",{offset:"100%","stop-color":e.color,"stop-opacity":"0.02"},null,8,vd)],8,hd)]),n("path",{d:s.value.areaPath,fill:`url(#${a.value})`},null,8,gd),n("path",{class:"ss-dash-sparkline-line",d:"M"+s.value.points.replace(/ /g," L"),fill:"none",stroke:e.color,"stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,yd)],64)):(u(),d("text",{key:1,x:e.width/2,y:e.height/2+3,"text-anchor":"middle",fill:"#737373","font-size":"9"}," collecting... ",8,md))],8,fd))],4))}}),bd={class:"ss-dash-btn-group"},_d=["onClick"],xd=Oe({__name:"TimeRangeSelector",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const s=t,l=[{value:"5m",label:"5m"},{value:"15m",label:"15m"},{value:"30m",label:"30m"},{value:"1h",label:"1h"},{value:"6h",label:"6h"},{value:"24h",label:"24h"},{value:"7d",label:"7d"}];return(a,o)=>(u(),d("div",bd,[(u(),d(B,null,pe(l,r=>n("button",{key:r.value,type:"button",class:N(`ss-dash-btn ${e.modelValue===r.value?"ss-dash-active":""}`),onClick:i=>s("update:modelValue",r.value)},h(r.label),11,_d)),64))]))}}),wd={class:"ss-dash-overview"},$d={key:0,class:"ss-dash-empty"},kd={class:"ss-dash-cards"},Sd={class:"ss-dash-card"},Cd={class:"ss-dash-sparkline"},Td={class:"ss-dash-card"},Ed={class:"ss-dash-sparkline"},Pd={class:"ss-dash-card"},Rd={class:"ss-dash-sparkline"},Ad={class:"ss-dash-card"},Md={class:"ss-dash-sparkline"},Ld={class:"ss-dash-chart-container"},Od={class:"ss-dash-chart-header"},Dd={class:"ss-dash-chart",id:"ss-dash-chart-area"},Fd={key:0,class:"ss-dash-empty",style:{"min-height":"120px"}},Id=["viewBox"],Nd=["id"],jd=["id"],Bd=["x1","y1","x2","y2"],Ud=["x","y"],qd=["d","fill"],Hd=["d"],Kd=["d","fill"],Vd=["d"],zd=["x","y","width","height","data-idx","onMouseenter"],Wd=["cx","cy","r","data-idx","opacity"],Qd=["cx","cy","r","data-idx","opacity"],Jd=["x","y"],Gd={key:0,style:{color:"var(--ss-red-fg)"}},Yd={class:"ss-dash-chart-legend",id:"ss-dash-chart-legend"},Xd={key:0,class:"ss-dash-chart-legend-item"},Zd={class:"ss-dash-secondary-cards"},ef={class:"ss-dash-secondary-card"},tf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},sf={key:1,class:"ss-dash-secondary-list"},nf=["href"],lf=["title"],of={class:"ss-dash-secondary-card"},af={class:"ss-dash-secondary-list"},rf={class:"ss-dash-secondary-list-value"},uf={class:"ss-dash-secondary-list-value"},cf={class:"ss-dash-secondary-list-value"},df={class:"ss-dash-secondary-card"},ff={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},hf={key:1,class:"ss-dash-secondary-list"},pf=["href"],vf=["title"],gf=["title"],yf={class:"ss-dash-secondary-card"},mf={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},bf={key:1,class:"ss-dash-secondary-list"},_f=["href"],xf={class:"ss-dash-secondary-list-value"},wf={class:"ss-dash-secondary-card"},$f={class:"ss-dash-secondary-list"},kf={href:"#emails?status=sent",class:"ss-dash-widget-row-link"},Sf={class:"ss-dash-secondary-list-value"},Cf={href:"#emails?status=queued",class:"ss-dash-widget-row-link"},Tf={class:"ss-dash-secondary-list-value"},Ef={href:"#emails?status=failed",class:"ss-dash-widget-row-link"},Pf={class:"ss-dash-secondary-card"},Rf={class:"ss-dash-secondary-list"},Af={href:"#logs?level=error",class:"ss-dash-widget-row-link"},Mf={class:"ss-dash-secondary-list-value"},Lf={href:"#logs?level=warn",class:"ss-dash-widget-row-link"},Of={class:"ss-dash-secondary-list-value"},Df={href:"#logs?level=info",class:"ss-dash-widget-row-link"},Ff={class:"ss-dash-secondary-list-value"},If={href:"#logs?level=debug",class:"ss-dash-widget-row-link"},Nf={class:"ss-dash-secondary-list-value"},jf={key:0,class:"ss-dash-secondary-card"},Bf={class:"ss-dash-secondary-list"},Uf={href:"#cache",class:"ss-dash-widget-row-link"},qf={class:"ss-dash-secondary-list-value"},Hf={href:"#cache",class:"ss-dash-widget-row-link"},Kf={class:"ss-dash-secondary-list-value"},Vf={href:"#cache",class:"ss-dash-widget-row-link"},zf={class:"ss-dash-secondary-list-value"},Wf={key:1,class:"ss-dash-secondary-card"},Qf={class:"ss-dash-secondary-list"},Jf={href:"#jobs?status=active",class:"ss-dash-widget-row-link"},Gf={class:"ss-dash-secondary-list-value"},Yf={href:"#jobs?status=waiting",class:"ss-dash-widget-row-link"},Xf={class:"ss-dash-secondary-list-value"},Zf={href:"#jobs?status=failed",class:"ss-dash-widget-row-link"},eh={href:"#jobs?status=completed",class:"ss-dash-widget-row-link"},th={class:"ss-dash-secondary-list-value"},sh={class:"ss-dash-secondary-card"},nh={class:"ss-dash-secondary-list"},lh={href:"#requests?status=2xx",class:"ss-dash-widget-row-link"},oh={class:"ss-dash-secondary-list-value"},ah={href:"#requests?status=3xx",class:"ss-dash-widget-row-link"},rh={class:"ss-dash-secondary-list-value"},ih={href:"#requests?status=4xx",class:"ss-dash-widget-row-link"},uh={class:"ss-dash-secondary-list-value"},ch={href:"#requests?status=5xx",class:"ss-dash-widget-row-link"},dh={class:"ss-dash-secondary-list-value"},fh={class:"ss-dash-secondary-card"},hh={key:0,class:"ss-dash-empty",style:{"min-height":"60px"}},ph={key:1,class:"ss-dash-secondary-list"},vh=["href"],gh=["title"],dl=220,_a=120,yh=Object.freeze(Object.defineProperty({__proto__:null,default:((e,t)=>{const s=e.__vccOpts||e;for(const[l,a]of t)s[l]=a;return s})(Oe({__name:"OverviewSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-base-url",""),l=ie("ss-dashboard-endpoint","/__stats/api"),a=ie("ss-auth-token",void 0),o=Math.random().toString(36).slice(2,8),r=J("1h"),i=ie("ss-overview-data",void 0),c=ie("ss-overview-loading",void 0);let v,p;if(i&&c)v=i,p=c;else{const K=nt(()=>"overview",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});v=K.data,p=K.loading}const{data:g,setTimeRange:k}=nt(()=>"overview/chart",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t});it(r,K=>{k(K)});const x=H(()=>v.value),_=H(()=>x.value||{avgResponseTime:0,p95ResponseTime:0,requestsPerMinute:0,errorRate:0,totalRequests:0,slowestEndpoints:[],queryStats:{total:0,avgDuration:0,perRequest:0},recentErrors:[],topEvents:[],emailActivity:{sent:0,queued:0,failed:0},logLevelBreakdown:{error:0,warn:0,info:0,debug:0},cacheStats:null,jobQueueStatus:null,statusDistribution:{"2xx":0,"3xx":0,"4xx":0,"5xx":0},slowestQueries:[]}),m=H(()=>_.value),S=H(()=>_.value.avgResponseTime||Number(m.value.avg_response_time)||0),U=H(()=>_.value.p95ResponseTime||Number(m.value.p95_response_time)||0),L=H(()=>_.value.requestsPerMinute||Number(m.value.requests_per_minute)||0),b=H(()=>_.value.errorRate||Number(m.value.error_rate)||0),$=H(()=>_.value.totalRequests||Number(m.value.total_requests)||0),T=H(()=>$.value>0),R=H(()=>g.value?.buckets||[]),te=H(()=>_.value.sparklines?.avgResponseTime??R.value.map(K=>K.avgDuration??0)),re=H(()=>_.value.sparklines?.p95ResponseTime??R.value.map(K=>K.p95Duration??0)),X=H(()=>_.value.sparklines?.requestsPerMinute??R.value.map(K=>K.requestCount??0)),ge=H(()=>_.value.sparklines?.errorRate??R.value.map(K=>K.errorCount??0)),Ee=H(()=>`ss-cg-total-${o}`),we=H(()=>`ss-cg-error-${o}`);function Ce(K,A){if(K<=0)return[0];const ae=K/A,ye=Math.pow(10,Math.floor(Math.log10(ae))),At=ae/ye;let _t;At<=1?_t=ye:At<=2?_t=2*ye:At<=5?_t=5*ye:_t=10*ye;const pn=[];for(let hl=_t;hl<=K+_t*.5;hl+=_t)pn.push(Math.round(hl));return pn.length===0&&pn.push(Math.ceil(K)),pn}function me(K){try{return new Date(K).toLocaleTimeString("en-US",{hour12:!1,hour:"2-digit",minute:"2-digit"})}catch{return""}}function $e(K){if(K.length===0)return"";if(K.length===1)return`M${K[0].x},${K[0].y}`;let A=`M${K[0].x.toFixed(1)},${K[0].y.toFixed(1)}`;for(let ae=0;ae<K.length-1;ae++){const ye=K[ae],At=K[ae+1],_t=(ye.x+At.x)/2;A+=` C${_t.toFixed(1)},${ye.y.toFixed(1)} ${_t.toFixed(1)},${At.y.toFixed(1)} ${At.x.toFixed(1)},${At.y.toFixed(1)}`}return A}function se(K){return il(K,"ss-dash")}const q=J(null),V=J(0);let ue=null;it(q,K=>{ue?.disconnect(),ue=null,K&&(V.value=K.clientWidth,ue=new ResizeObserver(A=>{for(const ae of A)V.value=ae.contentRect.width}),ue.observe(K))}),Ct(()=>{ue?.disconnect()});const E={top:12,right:12,bottom:28,left:38},O=H(()=>V.value||600),P=H(()=>O.value-E.left-E.right),ne=H(()=>dl-E.top-E.bottom),Me=H(()=>E.top+ne.value),Vt=H(()=>R.value.map(K=>{const A=K;return(K.requestCount??0)+(Number(A.request_count)||0)||K.total||0})),Ge=H(()=>R.value.map(K=>{const A=K;return(K.errorCount??0)+(Number(A.error_count)||0)})),Pt=H(()=>Math.max(...Vt.value,1)),le=H(()=>Math.ceil(Pt.value*1.1)),Y=H(()=>Ge.value.some(K=>K>0)),M=H(()=>Ce(le.value,4)),Fe=H(()=>M.value.length>0?M.value[M.value.length-1]:le.value);function f(K){return E.left+K/Math.max(R.value.length-1,1)*P.value}function y(K){return E.top+ne.value-K/(Fe.value||1)*ne.value}const C=H(()=>R.value.map((K,A)=>({x:f(A),y:y(Vt.value[A])}))),F=H(()=>R.value.map((K,A)=>({x:f(A),y:y(Ge.value[A])}))),D=H(()=>$e(C.value)),I=H(()=>Y.value?$e(F.value):""),Q=H(()=>C.value.length>1?`${D.value} L${C.value[C.value.length-1].x.toFixed(1)},${Me.value} L${C.value[0].x.toFixed(1)},${Me.value} Z`:""),W=H(()=>Y.value&&F.value.length>1?`${I.value} L${F.value[F.value.length-1].x.toFixed(1)},${Me.value} L${F.value[0].x.toFixed(1)},${Me.value} Z`:""),z=H(()=>Math.min(10,R.value.length)),j=H(()=>Math.max(1,Math.ceil(R.value.length/z.value))),ee=J({visible:!1,x:0,idx:-1});function Z(K){const A=C.value[K].x;ee.value={visible:!0,x:A,idx:K}}function oe(){ee.value={visible:!1,x:0,idx:-1}}const de=H(()=>ee.value.visible?Math.max(_a/2,Math.min(ee.value.x,O.value-_a/2)):0),be=H(()=>P.value/(R.value.length||1));function Pe(K){return K%j.value===0||K===R.value.length-1}function ke(){return T.value?S.value>500?"ss-dash-red":S.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ke(){return T.value?U.value>500?"ss-dash-red":U.value>200?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ve(){return T.value?"ss-dash-accent":"ss-dash-dim"}function lt(){return T.value?b.value>5?"ss-dash-red":b.value>1?"ss-dash-amber":"ss-dash-accent":"ss-dash-dim"}function Ye(K){return K.url||K.pattern||"-"}function Rt(K){return K.name||K.eventName||K.event_name||K.event||""}function Xt(K){return K.sqlNormalized||K.normalizedSql||K.sql_normalized||K.sql||"-"}return(K,A)=>(u(),d("div",wd,[w(p)&&!x.value?(u(),d("div",$d,"Loading overview...")):(u(),d(B,{key:1},[n("div",kd,[n("div",Sd,[A[1]||(A[1]=n("div",{class:"ss-dash-card-title"},"Avg Response Time",-1)),n("div",{class:N(["ss-dash-card-value",ke()])},h(T.value?w(Bt)(S.value):"-"),3),n("div",Cd,[_e(hn,{data:te.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Td,[A[2]||(A[2]=n("div",{class:"ss-dash-card-title"},"P95 Response Time",-1)),n("div",{class:N(["ss-dash-card-value",Ke()])},h(T.value?w(Bt)(U.value):"-"),3),n("div",Ed,[_e(hn,{data:re.value,color:"#60a5fa",width:160,height:40},null,8,["data"])])]),n("div",Pd,[A[3]||(A[3]=n("div",{class:"ss-dash-card-title"},"Requests / min",-1)),n("div",{class:N(["ss-dash-card-value",Ve()])},h(T.value?L.value.toFixed(1):"-"),3),n("div",Rd,[_e(hn,{data:X.value,color:"#34d399",width:160,height:40},null,8,["data"])])]),n("div",Ad,[A[4]||(A[4]=n("div",{class:"ss-dash-card-title"},"Error Rate",-1)),n("div",{class:N(["ss-dash-card-value",lt()])},h(T.value?`${b.value.toFixed(1)}%`:"-"),3),n("div",Md,[_e(hn,{data:ge.value,color:"#f87171",width:160,height:40},null,8,["data"])])])]),n("div",Ld,[n("div",Od,[A[5]||(A[5]=n("span",{class:"ss-dash-chart-title"},"Request Volume",-1)),_e(xd,{"model-value":r.value,"onUpdate:modelValue":A[0]||(A[0]=ae=>r.value=ae)},null,8,["model-value"])]),n("div",Dd,[R.value.length===0?(u(),d("div",Fd," No data for this range ")):(u(),d("div",{key:1,ref_key:"chartContainerRef",ref:q,style:{position:"relative"}},[(u(),d("svg",{viewBox:`0 0 ${O.value} ${dl}`,class:"ss-dash-chart-svg"},[n("defs",null,[n("linearGradient",{id:Ee.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[6]||(A[6]=[n("stop",{offset:"0%","stop-color":"var(--ss-accent)","stop-opacity":"0.3"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-accent)","stop-opacity":"0.02"},null,-1)])],8,Nd),n("linearGradient",{id:we.value,x1:"0",y1:"0",x2:"0",y2:"1"},[...A[7]||(A[7]=[n("stop",{offset:"0%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.35"},null,-1),n("stop",{offset:"100%","stop-color":"var(--ss-red-fg)","stop-opacity":"0.02"},null,-1)])],8,jd)]),(u(!0),d(B,null,pe(M.value,ae=>(u(),d("g",{key:`ytick-${ae}`},[n("line",{x1:E.left,y1:y(ae),x2:O.value-E.right,y2:y(ae),stroke:"var(--ss-border-faint)","stroke-width":"0.5","stroke-dasharray":"3,3"},null,8,Bd),n("text",{x:E.left-6,y:y(ae),"text-anchor":"end",fill:"var(--ss-dim)","font-size":"9","dominant-baseline":"middle"},h(ae),9,Ud)]))),128)),Q.value?(u(),d("path",{key:0,d:Q.value,fill:`url(#${Ee.value})`},null,8,qd)):G("",!0),D.value?(u(),d("path",{key:1,d:D.value,fill:"none",stroke:"var(--ss-accent)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Hd)):G("",!0),W.value?(u(),d("path",{key:2,d:W.value,fill:`url(#${we.value})`},null,8,Kd)):G("",!0),I.value?(u(),d("path",{key:3,d:I.value,fill:"none",stroke:"var(--ss-red-fg)","stroke-width":"1.5","stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":"4,2"},null,8,Vd)):G("",!0),(u(!0),d(B,null,pe(R.value,(ae,ye)=>(u(),d("g",{key:ye},[n("rect",{x:C.value[ye].x-be.value/2,y:E.top,width:be.value,height:ne.value,fill:"transparent",class:"ss-dash-chart-hover-zone","data-idx":ye,onMouseenter:At=>Z(ye),onMouseleave:oe},null,40,zd),Vt.value[ye]>0?(u(),d("circle",{key:0,cx:C.value[ye].x,cy:C.value[ye].y,r:ee.value.visible&&ee.value.idx===ye?4:2.5,fill:"var(--ss-accent)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot","data-idx":ye,opacity:ee.value.visible&&ee.value.idx!==ye?.3:1},null,8,Wd)):G("",!0),Ge.value[ye]>0?(u(),d("circle",{key:1,cx:C.value[ye].x,cy:F.value[ye].y,r:ee.value.visible&&ee.value.idx===ye?3.5:2,fill:"var(--ss-red-fg)",stroke:"var(--ss-surface)","stroke-width":"1",class:"ss-dash-chart-dot ss-dash-chart-dot-err","data-idx":ye,opacity:ee.value.visible&&ee.value.idx!==ye?.3:1},null,8,Qd)):G("",!0)]))),128)),(u(!0),d(B,null,pe(R.value,(ae,ye)=>(u(),d(B,{key:`xlabel-${ye}`},[Pe(ye)&&me(ae.bucket)?(u(),d("text",{key:0,x:f(ye),y:dl-6,"text-anchor":"middle",fill:"var(--ss-dim)","font-size":"9"},h(me(ae.bucket)),9,Jd)):G("",!0)],64))),128))],8,Id)),ee.value.visible&&ee.value.idx>=0?(u(),d("div",{key:0,class:"ss-dash-chart-tooltip",style:Ne({left:de.value+"px",top:E.top-4+"px",transform:"translate(-50%, -100%)"})},[n("div",null,h(me(R.value[ee.value.idx].bucket)),1),n("div",null,"Requests: "+h(Vt.value[ee.value.idx]),1),Ge.value[ee.value.idx]>0?(u(),d("div",Gd," Errors: "+h(Ge.value[ee.value.idx]),1)):G("",!0)],4)):G("",!0)],512))]),n("div",Yd,[A[9]||(A[9]=n("span",{class:"ss-dash-chart-legend-item"},[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-accent)"}}),ve(" Requests ")],-1)),R.value.some(ae=>(ae.errorCount??0)>0)?(u(),d("span",Xd,[...A[8]||(A[8]=[n("span",{class:"ss-dash-legend-dot",style:{background:"var(--ss-red-fg)"}},null,-1),ve(" Errors ",-1)])])):G("",!0)])]),n("div",Zd,[n("div",ef,[A[10]||(A[10]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Slowest Endpoints")],-1)),_.value.slowestEndpoints.length===0?(u(),d("div",tf," No data yet ")):(u(),d("ul",sf,[(u(!0),d(B,null,pe(_.value.slowestEndpoints.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Ye(ae)}-${ye}`},[n("a",{href:`#requests?url=${encodeURIComponent(Ye(ae))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Ye(ae)},h(Ye(ae)),9,lf),n("span",{class:N(["ss-dash-secondary-list-value","ss-dash-duration",se(ae.avgDuration)])},h(w(Bt)(ae.avgDuration)),3)],8,nf)]))),128))]))]),n("div",of,[A[14]||(A[14]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Query Stats")],-1)),n("ul",af,[n("li",null,[A[11]||(A[11]=n("span",null,"Total Queries",-1)),n("span",rf,h(_.value.queryStats.total),1)]),n("li",null,[A[12]||(A[12]=n("span",null,"Avg Duration",-1)),n("span",uf,h(w(Bt)(_.value.queryStats.avgDuration)),1)]),n("li",null,[A[13]||(A[13]=n("span",null,"Queries / Request",-1)),n("span",cf,h(_.value.queryStats.perRequest.toFixed(1)),1)])])]),n("div",df,[A[15]||(A[15]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs?level=error",class:"ss-dash-widget-link"},"Recent Errors")],-1)),_.value.recentErrors.length===0?(u(),d("div",ff," No recent errors ")):(u(),d("ul",hf,[(u(!0),d(B,null,pe(_.value.recentErrors,(ae,ye)=>(u(),d("li",{key:ae.id??`err-${ye}`},[n("a",{href:`#logs?id=${ae.id??""}`,class:"ss-dash-widget-row-link"},[n("span",{style:{color:"var(--ss-red-fg)"},title:ae.message},h(ae.message),9,vf),ae.timestamp?(u(),d("span",{key:0,class:"ss-dash-secondary-list-value",style:{color:"var(--ss-dim)"},title:w(Ut)(ae.timestamp)},h(w(mt)(ae.timestamp)),9,gf)):G("",!0)],8,pf)]))),128))]))]),n("div",yf,[A[16]||(A[16]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#events",class:"ss-dash-widget-link"},"Top Events")],-1)),_.value.topEvents.length===0?(u(),d("div",mf," No events yet ")):(u(),d("ul",bf,[(u(!0),d(B,null,pe(_.value.topEvents.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Rt(ae)}-${ye}`},[n("a",{href:`#events?event_name=${encodeURIComponent(Rt(ae))}`,class:"ss-dash-widget-row-link"},[n("span",null,h(Rt(ae)),1),n("span",xf,h(ae.count),1)],8,_f)]))),128))]))]),n("div",wf,[A[20]||(A[20]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#emails",class:"ss-dash-widget-link"},"Email Activity")],-1)),n("ul",$f,[n("li",null,[n("a",kf,[A[17]||(A[17]=n("span",null,"Sent",-1)),n("span",Sf,h(_.value.emailActivity.sent),1)])]),n("li",null,[n("a",Cf,[A[18]||(A[18]=n("span",null,"Queued",-1)),n("span",Tf,h(_.value.emailActivity.queued),1)])]),n("li",null,[n("a",Ef,[A[19]||(A[19]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ne(_.value.emailActivity.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(_.value.emailActivity.failed),5)])])])]),n("div",Pf,[A[25]||(A[25]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#logs",class:"ss-dash-widget-link"},"Log Levels")],-1)),n("ul",Rf,[n("li",null,[n("a",Af,[A[21]||(A[21]=n("span",{style:{color:"var(--ss-red-fg)"}},"Error",-1)),n("span",Mf,h(_.value.logLevelBreakdown.error),1)])]),n("li",null,[n("a",Lf,[A[22]||(A[22]=n("span",{style:{color:"var(--ss-amber-fg)"}},"Warn",-1)),n("span",Of,h(_.value.logLevelBreakdown.warn),1)])]),n("li",null,[n("a",Df,[A[23]||(A[23]=n("span",{style:{color:"var(--ss-green-fg)"}},"Info",-1)),n("span",Ff,h(_.value.logLevelBreakdown.info),1)])]),n("li",null,[n("a",If,[A[24]||(A[24]=n("span",{style:{color:"var(--ss-dim)"}},"Debug",-1)),n("span",Nf,h(_.value.logLevelBreakdown.debug),1)])])])]),_.value.cacheStats&&_.value.cacheStats.available?(u(),d("div",jf,[A[29]||(A[29]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#cache",class:"ss-dash-widget-link"},"Cache")],-1)),n("ul",Bf,[n("li",null,[n("a",Uf,[A[26]||(A[26]=n("span",null,"Keys",-1)),n("span",qf,h(_.value.cacheStats.totalKeys),1)])]),n("li",null,[n("a",Hf,[A[27]||(A[27]=n("span",null,"Hit Rate",-1)),n("span",Kf,h(_.value.cacheStats.hitRate.toFixed(1))+"%",1)])]),n("li",null,[n("a",Vf,[A[28]||(A[28]=n("span",null,"Memory",-1)),n("span",zf,h(_.value.cacheStats.memoryUsedHuman),1)])])])])):G("",!0),_.value.jobQueueStatus&&_.value.jobQueueStatus.available?(u(),d("div",Wf,[A[34]||(A[34]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#jobs",class:"ss-dash-widget-link"},"Job Queue")],-1)),n("ul",Qf,[n("li",null,[n("a",Jf,[A[30]||(A[30]=n("span",null,"Active",-1)),n("span",Gf,h(_.value.jobQueueStatus.active),1)])]),n("li",null,[n("a",Yf,[A[31]||(A[31]=n("span",null,"Waiting",-1)),n("span",Xf,h(_.value.jobQueueStatus.waiting),1)])]),n("li",null,[n("a",Zf,[A[32]||(A[32]=n("span",null,"Failed",-1)),n("span",{class:"ss-dash-secondary-list-value",style:Ne(_.value.jobQueueStatus.failed>0?{color:"var(--ss-red-fg)"}:void 0)},h(_.value.jobQueueStatus.failed),5)])]),n("li",null,[n("a",eh,[A[33]||(A[33]=n("span",null,"Completed",-1)),n("span",th,h(_.value.jobQueueStatus.completed),1)])])])])):G("",!0),n("div",sh,[A[39]||(A[39]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#requests",class:"ss-dash-widget-link"},"Response Status")],-1)),n("ul",nh,[n("li",null,[n("a",lh,[A[35]||(A[35]=n("span",{style:{color:"var(--ss-green-fg)"}},"2xx",-1)),n("span",oh,h(_.value.statusDistribution["2xx"]),1)])]),n("li",null,[n("a",ah,[A[36]||(A[36]=n("span",{style:{color:"var(--ss-blue-fg)"}},"3xx",-1)),n("span",rh,h(_.value.statusDistribution["3xx"]),1)])]),n("li",null,[n("a",ih,[A[37]||(A[37]=n("span",{style:{color:"var(--ss-amber-fg)"}},"4xx",-1)),n("span",uh,h(_.value.statusDistribution["4xx"]),1)])]),n("li",null,[n("a",ch,[A[38]||(A[38]=n("span",{style:{color:"var(--ss-red-fg)"}},"5xx",-1)),n("span",dh,h(_.value.statusDistribution["5xx"]),1)])])])]),n("div",fh,[A[40]||(A[40]=n("div",{class:"ss-dash-secondary-card-title"},[n("a",{href:"#queries",class:"ss-dash-widget-link"},"Slowest Queries")],-1)),_.value.slowestQueries.length===0?(u(),d("div",hh," No query data yet ")):(u(),d("ul",ph,[(u(!0),d(B,null,pe(_.value.slowestQueries.slice(0,5),(ae,ye)=>(u(),d("li",{key:`${Xt(ae)}-${ye}`},[n("a",{href:`#queries?pattern=${encodeURIComponent(Xt(ae))}`,class:"ss-dash-widget-row-link"},[n("span",{title:Xt(ae)},h(Xt(ae)),9,gh),n("span",{class:N(["ss-dash-secondary-list-value","ss-dash-duration",se(ae.avgDuration)])},h(w(Bt)(ae.avgDuration)),3)],8,vh)]))),128))]))])])],64))]))}}),[["__scopeId","data-v-f340a0af"]])},Symbol.toStringTag,{value:"Module"}));function fl(e="",t){let s=null;return function(){return s||(s=new al({baseUrl:e,authToken:t})),s}}function Yt(e){const t=J(null);let s=null;function l(){s&&s(),s=null,In(()=>{t.value&&(s=ju(t.value))})}return e&&it(e,l),St(l),no(()=>{s&&s(),s=null}),{tableRef:t}}const mh={class:"ss-dash-filter-bar"},bh={key:0,class:"ss-dash-summary"},_h={class:"ss-dash-search-wrapper"},xh=["viewBox","innerHTML"],wh=["value","placeholder"],$h={key:1,class:"ss-dash-filter-controls"},Kt=Oe({__name:"FilterBar",props:{modelValue:{},placeholder:{},summary:{}},emits:["update:modelValue","clear"],setup(e,{emit:t}){const s=t;function l(o){s("update:modelValue",o.target.value)}function a(){s("update:modelValue",""),s("clear")}return(o,r)=>(u(),d("div",mh,[e.summary?(u(),d("span",bh,h(e.summary),1)):G("",!0),n("div",_h,[(u(),d("svg",{class:"ss-dash-search-icon",viewBox:w(He).search.viewBox,width:"14",height:"14",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",innerHTML:w(He).search.elements.join("")},null,8,xh)),n("input",{class:"ss-dash-search",type:"text",value:e.modelValue,placeholder:e.placeholder||"Search...",onInput:l},null,40,wh),e.modelValue?(u(),d("button",{key:0,type:"button",class:"ss-dash-search-clear",onClick:a}," × ")):G("",!0)]),o.$slots.default?(u(),d("div",$h,[Dr(o.$slots,"default")])):G("",!0)]))}}),kh={key:0,class:"ss-dash-pagination"},Sh={class:"ss-dash-page-info"},Ch={class:"ss-dash-pagination-controls"},Th=["disabled"],Eh={key:0,class:"ss-dash-page-ellipsis"},Ph=["onClick"],Rh=["disabled"],gs=Oe({__name:"PaginationControls",props:{page:{},lastPage:{},total:{}},emits:["pageChange"],setup(e,{emit:t}){const s=e,l=t,a=H(()=>Eu(s.page,s.lastPage));return(o,r)=>e.lastPage>1?(u(),d("div",kh,[n("span",Sh," Page "+h(e.page)+" of "+h(e.lastPage)+" ("+h(e.total)+" total) ",1),n("div",Ch,[n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page<=1,onClick:r[0]||(r[0]=i=>l("pageChange",e.page-1))}," « Prev ",8,Th),(u(!0),d(B,null,pe(a.value,(i,c)=>(u(),d(B,{key:i==="..."?`ellipsis-${c}`:i},[i==="..."?(u(),d("span",Eh,"...")):(u(),d("button",{key:1,type:"button",class:N(`ss-dash-page-btn ${i===e.page?"ss-dash-active":""}`),onClick:v=>l("pageChange",i)},h(i),11,Ph))],64))),128)),n("button",{type:"button",class:"ss-dash-page-btn",disabled:e.page>=e.lastPage,onClick:r[1]||(r[1]=i=>l("pageChange",e.page+1))}," Next » ",8,Rh)])])):G("",!0)}}),Ah={key:0,class:"ss-dash-empty"},Mh={class:"ss-dash-tl-legend"},Lh=["title"],Oh={class:"ss-dash-tl-track"},Dh=["title"],Fh={class:"ss-dash-tl-dur"},Ih={key:0,class:"ss-dash-tl-warnings"},Nh={class:"ss-dash-tl-warnings-title"},xa=Oe({__name:"WaterfallChart",props:{spans:{},totalDuration:{},className:{},warnings:{}},setup(e){const t=e,s={request:"#1e3a5f",middleware:"rgba(30, 58, 95, 0.7)",db:"#6d28d9",view:"#0e7490",mail:"#059669",event:"#b45309",custom:"var(--ss-dim)"},l={request:"Request",middleware:"Middleware",db:"DB",mail:"Mail",event:"Event",view:"View",custom:"Custom"},a=H(()=>t.spans||[]),o=H(()=>[...a.value].sort((x,_)=>x.startOffset-_.startOffset)),r=H(()=>{const x={};for(const _ of o.value)x[_.id]=_.parentId?(x[_.parentId]||0)+1:0;return x});function i(x){const _=t.totalDuration||1;return`${x.startOffset/_*100}%`}function c(x){const _=t.totalDuration||1;return`${Math.max(x.duration/_*100,.5)}%`}function v(x){return x.length>50?x.slice(0,50)+"...":x}function p(x){return x==="db"?"DB":x}function g(x){return x==="db"?"purple":x==="mail"?"green":x==="event"?"amber":x==="view"?"blue":"muted"}function k(x){const _=x.metadata?Object.entries(x.metadata).filter(([,m])=>m!=null).map(([m,S])=>`${m}=${S}`).join(", "):"";return _?`${x.label} (${x.duration.toFixed(2)}ms)
|
|
5
|
+
${_}`:`${x.label} (${x.duration.toFixed(2)}ms)`}return(x,_)=>a.value.length===0?(u(),d("div",Ah,"No spans recorded")):(u(),d("div",{key:1,class:N(`ss-dash-tl-waterfall ${e.className||""}`)},[n("div",Mh,[(u(),d(B,null,pe(l,(m,S)=>n("div",{key:S,class:"ss-dash-tl-legend-item"},[n("span",{class:"ss-dash-tl-legend-dot",style:Ne({background:s[S]||s.custom})},null,4),n("span",null,h(m),1)])),64))]),(u(!0),d(B,null,pe(o.value,m=>(u(),d("div",{key:m.id,class:"ss-dash-tl-row"},[n("div",{class:"ss-dash-tl-label",title:k(m),style:Ne({paddingLeft:8+(r.value[m.id]||0)*16+"px"})},[n("span",{class:N(`ss-dash-badge ss-dash-badge-${g(m.category)}`),style:{"font-size":"9px","margin-right":"4px"}},h(p(m.category)),3),ve(" "+h(v(m.label)),1)],12,Lh),n("div",Oh,[n("div",{class:N(`ss-dash-tl-bar ss-dash-tl-bar-${m.category||"custom"}`),style:Ne({left:i(m),width:c(m)}),title:k(m)},null,14,Dh)]),n("span",Fh,h(m.duration.toFixed(2))+"ms",1)]))),128)),e.warnings&&e.warnings.length>0?(u(),d("div",Ih,[n("div",Nh,"Warnings ("+h(e.warnings.length)+")",1),(u(!0),d(B,null,pe(e.warnings,(m,S)=>(u(),d("div",{key:S,class:"ss-dash-tl-warning"},h(m),1))),128))])):G("",!0)],2))}}),Ds=Oe({__name:"JsonViewer",props:{value:{},maxLen:{},classPrefix:{default:"ss-dash"},defaultExpanded:{type:Boolean,default:!1}},setup(e){const t=e,s=J(t.defaultExpanded),l=H(()=>{if(t.value===null||t.value===void 0)return"-";if(typeof t.value=="string")try{return un(JSON.parse(t.value),t.maxLen||100)}catch{return t.value.length>100?t.value.slice(0,100)+"...":t.value}return un(t.value,t.maxLen||100)}),a=H(()=>{if(t.value===null||t.value===void 0)return"";if(typeof t.value=="string")try{return JSON.stringify(JSON.parse(t.value),null,2)}catch{return t.value}return JSON.stringify(t.value,null,2)});function o(){s.value=!s.value}function r(){navigator.clipboard?.writeText(a.value)}return(i,c)=>e.value===null||e.value===void 0?(u(),d("span",{key:0,class:N(`ss-dim ${t.classPrefix}-c-dim`)},"-",2)):(u(),d("div",{key:1,class:N(`${t.classPrefix}-data-cell`)},[s.value?G("",!0):(u(),d("span",{key:0,class:N(`${t.classPrefix}-data-preview`),role:"button",tabindex:0,onClick:o,onKeydown:c[0]||(c[0]=v=>v.key==="Enter"&&o())},h(l.value),35)),s.value?(u(),d("div",{key:1,class:N(`${t.classPrefix}-data-full`),onClick:o},[n("button",{class:N(`${t.classPrefix}-copy-btn`),title:"Copy to clipboard",onClick:jt(r,["stop"])}," Copy ",2),n("pre",null,h(a.value),1)],2)):G("",!0)],2))}}),jh={key:0},Bh={class:"ss-related-logs-title"},Uh={class:"ss-related-logs-count"},qh={style:{overflow:"auto"}},Hh=["onClick"],Kh=["title"],Vh=["title"],zh={key:1,class:"ss-log-reqid-empty"},Wh={key:3,style:{width:"14px"}},Qh={class:"ss-log-msg"},Jh={key:0,class:"ss-log-detail"},Gh=Oe({__name:"RelatedLogs",props:{logs:{}},setup(e){const t=J(null);function s(l,a){a&&(t.value=t.value===l?null:l)}return(l,a)=>e.logs.length>0?(u(),d("div",jh,[n("div",Bh,[a[0]||(a[0]=ve(" Related Logs ",-1)),n("span",Uh,"("+h(e.logs.length)+")",1)]),n("div",qh,[(u(!0),d(B,null,pe(e.logs,(o,r)=>(u(),d(B,{key:o.id||r},[n("div",{class:N(["ss-log-entry",w(bt)(o)?"ss-log-entry-expandable":""]),onClick:i=>s(r,!!w(bt)(o))},[n("span",{class:N(["ss-log-level",w(ha)(w(cn)(o),"ss-log-level")])},h(w(cn)(o).toUpperCase()),3),n("span",{class:"ss-log-time",title:w(qt)(o)?w(Ut)(w(qt)(o)):""},h(w(qt)(o)?w(mt)(w(qt)(o)):"-"),9,Kh),w(Ht)(o)?(u(),d("span",{key:0,class:"ss-log-reqid",title:w(Ht)(o)},h(w(Ht)(o).slice(0,8)),9,Vh)):(u(),d("span",zh,"--")),w(bt)(o)?(u(),d("span",{key:2,class:N(["ss-log-expand-icon",t.value===r?"ss-log-expand-icon-open":""])},"▶",2)):(u(),d("span",Wh)),n("span",Qh,h(w(fa)(o)),1)],10,Hh),t.value===r&&w(bt)(o)?(u(),d("div",Jh,[_e(Ds,{value:w(bt)(o),"class-prefix":"ss-dbg","default-expanded":!0},null,8,["value"])])):G("",!0)],64))),128))])])):G("",!0)}}),Yh={class:"ss-dash-tl-detail-header"},Xh={style:{color:"var(--ss-text)"}},Zh={class:"ss-dash-tl-meta"},ep={class:"ss-dash-tl-detail-header"},tp={key:0,class:"ss-dash-empty"},sp={key:1,class:"ss-dash-empty"},np={class:"ss-dash-table-wrap"},lp={key:0,class:"ss-dash-sort-arrow"},op={key:0,class:"ss-dash-sort-arrow"},ap={key:0,class:"ss-dash-sort-arrow"},rp={key:0,class:"ss-dash-sort-arrow"},ip={key:0,class:"ss-dash-sort-arrow"},up=["onClick"],cp={style:{color:"var(--ss-dim)"}},dp=["title"],fp={style:{color:"var(--ss-muted)","text-align":"center"}},hp={key:0,style:{color:"var(--ss-amber-fg)","text-align":"center",display:"block"}},pp={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},vp=["title"],gp={key:1,class:"ss-dash-empty"},yp=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RequestsSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,error:i,pagination:c,sort:v,goToPage:p,setSearch:g,setSort:k}=nt(()=>"requests",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),x=J(""),_=J(null),m=J(!1),S=J(null),U=H(()=>{if(!o.value)return[];const se=o.value;return se.data||se.requests||o.value||[]}),L=fl(a,l);let b=null;async function $(se){const q=se.id;b&&b.abort(),b=new AbortController;const V=b;m.value=!0;try{const ue=s||"/__stats/api",O=await L().fetch(`${ue}/requests/${q}`,{signal:V.signal}),P=O.trace,ne=P?{...O,...P,logs:O.logs}:O;S.value=rc(ne),_.value=se}catch(ue){if(ue instanceof Error&&ue.name==="AbortError")return}finally{b===V&&(m.value=!1)}}function T(){_.value=null,S.value=null}function R(se){x.value=se,g(se)}function te(se){k(se)}function re(se){return il(se,"ss-dash")}const{tableRef:X}=Yt(()=>U.value),ge=J(null),Ee=J(null),we=J(null),Ce=J(null);let me=null;const $e=H(()=>S.value?S.value.logs||[]:[]);return it([()=>_.value,()=>S.value],async()=>{me?.(),me=null,S.value&&$e.value.length>0&&(await In(),ge.value&&Ee.value&&we.value&&Ce.value&&(me=Bu({container:ge.value,handle:Ee.value,topPane:we.value,bottomPane:Ce.value,storageKey:"ss-requests-split"})))}),Ct(()=>{b&&b.abort(),me?.()}),(se,q)=>(u(),d("div",null,[S.value&&_.value?(u(),d(B,{key:0},[n("div",Yh,[n("button",{type:"button",class:"ss-dash-btn",onClick:T}," ← Back to Requests "),n("span",{class:N(`ss-dash-method ss-dash-method-${(S.value.method||"").toLowerCase()}`)},h(S.value.method),3),n("span",Xh,h(S.value.url),1),n("span",{class:N(`ss-dash-status ss-dash-status-${Math.floor((S.value.statusCode||200)/100)}xx`)},h(S.value.statusCode),3),n("span",Zh,h(S.value.totalDuration.toFixed(1))+"ms · "+h(S.value.spanCount)+" spans ",1)]),$e.value.length>0?(u(),d("div",{key:0,ref_key:"splitContainerRef",ref:ge,class:"ss-dash-split-container"},[n("div",{ref_key:"splitTopRef",ref:we,class:"ss-dash-split-top"},[_e(xa,{spans:S.value.spans,"total-duration":S.value.totalDuration,warnings:S.value.warnings},null,8,["spans","total-duration","warnings"])],512),n("div",{ref_key:"splitHandleRef",ref:Ee,class:"ss-dash-split-handle"},null,512),n("div",{ref_key:"splitBottomRef",ref:Ce,class:"ss-dash-split-bottom"},[_e(Gh,{logs:$e.value},null,8,["logs"])],512)],512)):(u(),et(xa,{key:1,spans:S.value.spans,"total-duration":S.value.totalDuration,warnings:S.value.warnings},null,8,["spans","total-duration","warnings"]))],64)):m.value?(u(),d(B,{key:1},[n("div",ep,[n("button",{type:"button",class:"ss-dash-btn",onClick:q[0]||(q[0]=V=>m.value=!1)}," ← Back to Requests ")]),q[6]||(q[6]=n("div",{class:"ss-dash-empty"},"Loading request detail...",-1))],64)):(u(),d(B,{key:2},[_e(Kt,{"model-value":x.value,placeholder:"Filter requests...",summary:`${w(c).total??0} requests`,"onUpdate:modelValue":R},null,8,["model-value","summary"]),w(i)?(u(),d("div",tp,"Failed to load requests")):G("",!0),w(r)&&!w(o)?(u(),d("div",sp,"Loading requests...")):(u(),d(B,{key:2},[n("div",np,[U.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:X,class:"ss-dash-table"},[q[15]||(q[15]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"60px"}}),n("col",{style:{width:"80px"}}),n("col",{style:{width:"50px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"80px"}})],-1)),n("thead",null,[n("tr",null,[q[12]||(q[12]=n("th",null,"#",-1)),n("th",{class:"ss-dash-sortable",onClick:q[1]||(q[1]=V=>te("method"))},[q[7]||(q[7]=ve(" Method ",-1)),w(v).column==="method"?(u(),d("span",lp,h(w(v).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),n("th",{class:"ss-dash-sortable",onClick:q[2]||(q[2]=V=>te("url"))},[q[8]||(q[8]=ve(" URL ",-1)),w(v).column==="url"?(u(),d("span",op,h(w(v).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),n("th",{class:"ss-dash-sortable",onClick:q[3]||(q[3]=V=>te("statusCode"))},[q[9]||(q[9]=ve(" Status ",-1)),w(v).column==="statusCode"?(u(),d("span",ap,h(w(v).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),n("th",{class:"ss-dash-sortable",onClick:q[4]||(q[4]=V=>te("duration"))},[q[10]||(q[10]=ve(" Duration ",-1)),w(v).column==="duration"?(u(),d("span",rp,h(w(v).direction==="asc"?" ▲":" ▼"),1)):G("",!0)]),q[13]||(q[13]=n("th",null,"Spans",-1)),q[14]||(q[14]=n("th",null,"⚠",-1)),n("th",{class:"ss-dash-sortable",onClick:q[5]||(q[5]=V=>te("createdAt"))},[q[11]||(q[11]=ve(" Time ",-1)),w(v).column==="createdAt"?(u(),d("span",ip,h(w(v).direction==="asc"?" ▲":" ▼"),1)):G("",!0)])])]),n("tbody",null,[(u(!0),d(B,null,pe(U.value,V=>(u(),d("tr",{key:V.id,class:"ss-dash-clickable",onClick:ue=>$(V)},[n("td",null,[n("span",cp,h(V.id),1)]),n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${(V.method||"").toLowerCase()}`)},h(V.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:V.url},h(V.url),9,dp)]),n("td",null,[n("span",{class:N(`ss-dash-status ss-dash-status-${Math.floor((V.status_code||V.statusCode||200)/100)}xx`)},h(V.status_code||V.statusCode),3)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${re(V.total_duration||V.totalDuration||V.duration||0)}`)},h((V.total_duration||V.totalDuration||V.duration||0).toFixed(1))+"ms ",3)]),n("td",null,[n("span",fp,h(V.span_count||V.spanCount||0),1)]),n("td",null,[(V.warning_count||V.warningCount||0)>0?(u(),d("span",hp,h(V.warning_count||V.warningCount||0),1)):(u(),d("span",pp,"-"))]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(V.createdAt||V.created_at||V.timestamp||"")},h(w(mt)(V.createdAt||V.created_at||V.timestamp||"")),9,vp)])],8,up))),128))])],512)):(u(),d("div",gp,"No requests recorded yet"))]),w(c).totalPages>1?(u(),et(gs,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(p)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),mp={class:"ss-dash-btn-group"},bp={key:0,class:"ss-dash-empty"},_p={key:1,class:"ss-dash-table-wrap"},xp=["onClick"],wp={key:0,class:"ss-dash-sort-arrow"},$p=["onClick","onKeydown"],kp={key:0,class:"ss-dash-dup"},Sp={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Cp={class:"ss-dash-duration"},Tp={class:"ss-dash-duration"},Ep={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Pp={key:1,class:"ss-dash-empty"},Rp={class:"ss-dash-table-wrap"},Ap=["onClick"],Mp={key:0,class:"ss-dash-sort-arrow"},Lp={key:1},Op={style:{color:"var(--ss-dim)"}},Dp=["onClick","onKeydown"],Fp={key:0,class:"ss-dash-dup"},Ip=["title"],Np={style:{color:"var(--ss-dim)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},jp=["title"],Bp=["disabled","onClick"],Up={key:0,class:"ss-dash-explain-row"},qp={colspan:"8",class:"ss-dash-explain"},Hp={style:{display:"flex","justify-content":"space-between","align-items":"start"}},Kp={style:{flex:"1"}},Vp={key:0,class:"ss-dash-explain-result ss-dash-explain-error"},zp={key:0},Wp={key:1,class:"ss-dash-explain-result"},Qp={class:"ss-dash-explain-node-header"},Jp={class:"ss-dash-explain-node-type"},Gp={key:0,class:"ss-dash-explain-metrics"},Yp={key:2,class:"ss-dash-explain-result"},Xp={key:3,class:"ss-dash-explain-result"},Zp=["onClick"],ev={key:1,class:"ss-dash-empty"},tv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"QueriesSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),o=new ec("list"),r=J(0);function i(){r.value++}const c=H(()=>(r.value,o.state.viewMode)),v=H(()=>Xu()),p=H(()=>Zu()),g=H(()=>c.value==="grouped"?"queries/grouped":"queries"),{data:k,loading:x,pagination:_,sort:m,goToPage:S,setSearch:U,setSort:L,explainQuery:b}=nt(()=>g.value,{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),$=J(""),T=H(()=>k.value?c.value==="grouped"?k.value.groups||[]:k.value.data||k.value||[]:[]),R=H(()=>c.value!=="grouped"?T.value:T.value.map(le=>{const Y={...le};return(Y.sqlNormalized===null||Y.sqlNormalized===void 0)&&(Y.sqlNormalized=Ue(le,"sql_normalized","pattern")??""),(Y.count===null||Y.count===void 0)&&(Y.count=Ue(le,"total_count")??void 0),(Y.avgDuration===null||Y.avgDuration===void 0)&&(Y.avgDuration=Ue(le,"avg_duration")??void 0),(Y.maxDuration===null||Y.maxDuration===void 0)&&(Y.maxDuration=Ue(le,"max_duration")??void 0),(Y.minDuration===null||Y.minDuration===void 0)&&(Y.minDuration=Ue(le,"min_duration")??void 0),(Y.totalDuration===null||Y.totalDuration===void 0)&&(Y.totalDuration=Ue(le,"total_duration")??void 0),(Y.percentOfTotal===null||Y.percentOfTotal===void 0)&&(Y.percentOfTotal=Ue(le,"pct_time")??void 0),Y})),te=H(()=>c.value!=="list"?[]:T.value.map(le=>Wu(le))),re=H(()=>va(T.value)),X=H(()=>zu(T.value,{total:_.total})),ge=H(()=>{if(c.value==="grouped")return`${R.value.length} query patterns`;const le=[`${X.value.totalCount} queries`];return X.value.slowCount>0&&le.push(`${X.value.slowCount} slow`),X.value.dupCount>0&&le.push(`${X.value.dupCount} dup`),le.push(`avg ${(X.value.avgDuration||0).toFixed(1)}ms`),le.join(", ")});function Ee(le){$.value=le,U(le)}function we(le){le!==c.value&&(o.setViewMode(le),i())}function Ce(le){L(le)}function me(le){return r.value,o.isExpanded(le)}function $e(le){o.toggleExpand(le),i()}async function se(le){const Y=o.getExplainState(le);if(Y&&!Y.loading){o.state.explainData.delete(le),i();return}o.startExplain(le),i();try{const M=await b(le);if(M&&M.error){const Fe=M.message?`${M.error}: ${M.message}`:M.error;o.failExplain(le,Fe)}else o.completeExplain(le,{plan:M?.plan,rows:M?.rows})}catch(M){let Fe=M instanceof Error?M.message:String(M);const f=M?.body;if(f)try{const y=JSON.parse(f);y.message?Fe=y.error?`${y.error}: ${y.message}`:y.message:y.error&&(Fe=y.error)}catch{}o.failExplain(le,Fe)}i()}function q(le){return r.value,o.getExplainState(le)}function V(le){return r.value,o.getExplainState(le)?.loading??!1}function ue(le){r.value;const Y=o.getExplainState(le);return!!Y&&!Y.loading&&!Y.error&&!!Y.result}function E(le){o.state.explainData.delete(le),i()}function O(le){const Y=q(le);if(!Y?.result)return[];const M=Y.result.plan||Y.result.rows;if(!M||M.length===0)return[];const Fe=M[0];return!Fe||typeof Fe!="object"?[]:"Plan"in Fe?ga(Fe.Plan):[]}function P(le){const Y=q(le);if(!Y?.result)return[];const M=Y.result.plan||Y.result.rows;return!M||M.length===0?[]:Gu(M)}function ne(le){const Y=q(le);return Y?.result?Y.result.plan||Y.result.rows||[]:[]}function Me(le){const Y=q(le);if(!Y?.result)return!1;const M=Y.result.plan||Y.result.rows;return!M||M.length===0?!1:Ju(M[0])}function Vt(le){const Y=q(le);if(!Y?.result)return!1;const M=Y.result.plan||Y.result.rows;return!!M&&M.length>0&&typeof M[0]=="object"}function Ge(le){return il(le,"ss-dash")}const{tableRef:Pt}=Yt(()=>R.value);return(le,Y)=>(u(),d("div",null,[_e(Kt,{"model-value":$.value,placeholder:"Filter queries...",summary:ge.value,"onUpdate:modelValue":Ee},{default:is(()=>[n("div",mp,[n("button",{type:"button",class:N(`ss-dash-btn ${c.value==="list"?"ss-dash-active":""}`),onClick:Y[0]||(Y[0]=M=>we("list"))}," List ",2),n("button",{type:"button",class:N(`ss-dash-btn ${c.value==="grouped"?"ss-dash-active":""}`),onClick:Y[1]||(Y[1]=M=>we("grouped"))}," Grouped ",2)])]),_:1},8,["model-value","summary"]),w(x)&&!w(k)?(u(),d("div",bp,"Loading queries...")):c.value==="grouped"?(u(),d("div",_p,[R.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Pt,class:"ss-dash-table"},[n("thead",null,[n("tr",null,[(u(!0),d(B,null,pe(p.value,M=>(u(),d("th",{key:M.key,class:N(M.sortable?"ss-dash-sortable":""),onClick:Fe=>M.sortable?Ce(M.key):void 0},[ve(h(M.label)+" ",1),M.sortable&&w(m).column===M.key?(u(),d("span",wp,h(w(m).direction==="asc"?" ▲":" ▼"),1)):G("",!0)],10,xp))),128))])]),n("tbody",null,[(u(!0),d(B,null,pe(R.value,(M,Fe)=>(u(),d("tr",{key:Fe},[n("td",null,[n("span",{class:N(`ss-dash-sql ${me(M.sqlNormalized)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:jt(f=>$e(M.sqlNormalized),["stop"]),onKeydown:Ms(f=>$e(M.sqlNormalized),["enter"])},h(M.sqlNormalized),43,$p),(M.count||0)>=3?(u(),d("span",kp,"DUP")):G("",!0)]),n("td",null,[n("span",Sp,h(M.count||0),1)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(M.avgDuration||0)}`)},h((M.avgDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Cp,h((M.minDuration||0).toFixed(2))+"ms",1)]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(M.maxDuration||0)}`)},h((M.maxDuration||0).toFixed(2))+"ms ",3)]),n("td",null,[n("span",Tp,h((M.totalDuration||0).toFixed(1))+"ms",1)]),n("td",null,[n("span",Ep,h((M.percentOfTotal||0).toFixed(1))+"%",1)])]))),128))])],512)):(u(),d("div",Pp,[...Y[2]||(Y[2]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[ve(" Queries require "),n("code",null,"debug: true"),ve(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))])):(u(),d(B,{key:2},[n("div",Rp,[te.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:Pt,class:"ss-dash-table"},[n("colgroup",null,[(u(!0),d(B,null,pe(v.value,M=>(u(),d("col",{key:M.key+M.type,style:Ne(M.width?{width:M.width}:{})},null,4))),128))]),n("thead",null,[n("tr",null,[(u(!0),d(B,null,pe(v.value,M=>(u(),d(B,{key:M.key+M.type},[M.sortable?(u(),d("th",{key:0,class:"ss-dash-sortable",onClick:Fe=>Ce(M.key)},[ve(h(M.label)+" ",1),w(m).column===M.key?(u(),d("span",Mp,h(w(m).direction==="asc"?" ▲":" ▼"),1)):G("",!0)],8,Ap)):(u(),d("th",Lp,h(M.label),1))],64))),128))])]),n("tbody",null,[(u(!0),d(B,null,pe(te.value,(M,Fe)=>(u(),d(B,{key:M.id},[n("tr",null,[n("td",null,[n("span",Op,h(M.id),1)]),n("td",null,[n("div",null,[n("span",{class:N(`ss-dash-sql ${me(M.id)?"ss-dash-expanded":""}`),title:"Click to expand",role:"button",tabindex:"0",onClick:jt(f=>$e(M.id),["stop"]),onKeydown:Ms(f=>$e(M.id),["enter"])},h(M.sql),43,Dp),(re.value.get(M.sqlNormalized)??0)>1?(u(),d("span",Fp," ×"+h(re.value.get(M.sqlNormalized)),1)):G("",!0)])]),n("td",null,[n("span",{class:N(`ss-dash-duration ${Ge(M.duration)}`)},h(M.duration.toFixed(2))+"ms ",3)]),n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${M.method.toLowerCase()}`)},h(M.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:M.model},h(M.model||"-"),9,Ip)]),n("td",null,[n("span",Np,h(M.connection||"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(String(M.timestamp))},h(w(mt)(String(M.timestamp))),9,jp)]),n("td",null,[M.method==="select"?(u(),d("button",{key:0,type:"button",class:N(`ss-dash-explain-btn${ue(M.id)?" ss-dash-explain-btn-active":""}`),disabled:V(M.id),onClick:jt(f=>se(M.id),["stop"])},h(V(M.id)?"...":"EXPLAIN"),11,Bp)):G("",!0)])]),q(M.id)?(u(),d("tr",Up,[n("td",qp,[n("div",Hp,[n("div",Kp,[q(M.id)?.error?(u(),d("div",Vp,[Y[3]||(Y[3]=n("strong",null,"Error:",-1)),ve(" "+h(q(M.id)?.error)+" ",1),q(M.id)?.result?.message?(u(),d("br",zp)):G("",!0),ve(" "+h(q(M.id)?.result?.message),1)])):Me(M.id)?(u(),d("div",Wp,[(u(!0),d(B,null,pe(O(M.id),(f,y)=>(u(),d("div",{key:y,class:"ss-dash-explain-node",style:Ne({marginLeft:`${f.depth*20}px`})},[n("div",Qp,[n("span",Jp,h(f.nodeType),1),f.relationName?(u(),d(B,{key:0},[Y[4]||(Y[4]=ve(h(" on "),-1)),n("strong",null,h(f.relationName),1)],64)):G("",!0),f.alias?(u(),d(B,{key:1},[ve(h(` (${f.alias})`),1)],64)):G("",!0),f.indexName?(u(),d(B,{key:2},[Y[5]||(Y[5]=ve(h(" using "),-1)),n("em",null,h(f.indexName),1)],64)):G("",!0)]),f.metrics.length>0?(u(),d("div",Gp,h(f.metrics.join(" · ")),1)):G("",!0)],4))),128))])):Vt(M.id)?(u(),d("div",Yp,[n("table",null,[n("thead",null,[n("tr",null,[(u(!0),d(B,null,pe(P(M.id),f=>(u(),d("th",{key:f},h(f),1))),128))])]),n("tbody",null,[(u(!0),d(B,null,pe(ne(M.id),(f,y)=>(u(),d("tr",{key:y},[(u(!0),d(B,null,pe(P(M.id),C=>(u(),d("td",{key:C},h(w(Yu)(f[C])),1))),128))]))),128))])])])):(u(),d("div",Xp,"No plan data returned"))]),n("button",{type:"button",class:"ss-dash-explain-btn",style:{"margin-left":"8px","flex-shrink":"0"},onClick:f=>E(M.id)}," Close ",8,Zp)])])])):G("",!0)],64))),128))])],512)):(u(),d("div",ev,[...Y[6]||(Y[6]=[n("span",null,"No queries recorded",-1),n("span",{class:"ss-empty-hint"},[ve(" Queries require "),n("code",null,"debug: true"),ve(" on your Lucid connections in "),n("code",null,"config/database.ts")],-1)])]))]),w(_).totalPages>1?(u(),et(gs,{key:0,page:w(_).page,"last-page":w(_).totalPages,total:w(_).total,onPageChange:w(S)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),sv={key:0,class:"ss-dash-empty"},nv={class:"ss-dash-table-wrap"},lv={style:{color:"var(--ss-dim)"}},ov=["title"],av=["title"],rv={key:1,class:"ss-dash-empty"},iv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EventsSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,pagination:i,goToPage:c,setSearch:v}=nt(()=>"events",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),p=J(""),g=H(()=>{if(!o.value)return[];const _=o.value;return _.data||_.events||o.value||[]});function k(_){p.value=_,v(_)}const{tableRef:x}=Yt(()=>g.value);return(_,m)=>(u(),d("div",null,[_e(Kt,{"model-value":p.value,placeholder:"Filter events...",summary:`${w(i).total??0} events`,"onUpdate:modelValue":k},null,8,["model-value","summary"]),w(r)&&!w(o)?(u(),d("div",sv,"Loading events...")):(u(),d(B,{key:1},[n("div",nv,[g.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:x,class:"ss-dash-table"},[m[0]||(m[0]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col"),n("col",{style:{width:"80px"}})],-1)),m[1]||(m[1]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"Event"),n("th",null,"Data"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(g.value,S=>(u(),d("tr",{key:S.id},[n("td",null,[n("span",lv,h(S.id),1)]),n("td",null,[n("span",{class:"ss-dash-event-name",title:S.event_name||S.eventName||S.event||"",style:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(S.event_name||S.eventName||S.event||""),9,ov)]),n("td",null,[_e(Ds,{value:S.data,class:"ss-dash-event-data"},null,8,["value"])]),n("td",null,[n("span",{class:"ss-dash-event-time",title:w(Ut)(S.createdAt||S.created_at||S.timestamp)},h(w(mt)(S.createdAt||S.created_at||S.timestamp)),9,av)])]))),128))])],512)):(u(),d("div",rv,"No events recorded yet"))]),w(i).totalPages>1?(u(),et(gs,{key:0,page:w(i).page,"last-page":w(i).totalPages,total:w(i).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),uv={key:0,class:"ss-dash-empty"},cv={key:1,class:"ss-dash-empty"},dv={key:2,class:"ss-dash-table-wrap"},fv=["title"],hv=["title"],pv=["title"],vv=["title"],gv={key:1,class:"ss-dash-empty"},yv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"RoutesSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,error:i,setSearch:c}=nt(()=>"routes",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),v=J(""),p=H(()=>{if(!o.value)return[];const x=o.value;return Array.isArray(x)?x:Array.isArray(x.routes)?x.routes:Array.isArray(x.data)?x.data:[]});function g(x){v.value=x,c(x)}const{tableRef:k}=Yt(()=>p.value);return(x,_)=>(u(),d("div",null,[_e(Kt,{"model-value":v.value,placeholder:"Filter routes...",summary:`${p.value.length} routes`,"onUpdate:modelValue":g},null,8,["model-value","summary"]),w(i)?(u(),d("div",uv,"Failed to load routes")):w(r)&&!w(o)?(u(),d("div",cv,"Loading routes...")):(u(),d("div",dv,[p.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:k,class:"ss-dash-table"},[_[0]||(_[0]=n("colgroup",null,[n("col",{style:{width:"70px"}}),n("col"),n("col",{style:{width:"120px"}}),n("col"),n("col")],-1)),_[1]||(_[1]=n("thead",null,[n("tr",null,[n("th",null,"Method"),n("th",null,"Pattern"),n("th",null,"Name"),n("th",null,"Handler"),n("th",null,"Middleware")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(p.value,(m,S)=>(u(),d("tr",{key:m.pattern||S},[n("td",null,[n("span",{class:N(`ss-dash-method ss-dash-method-${(m.method||"").toLowerCase()}`)},h(m.method),3)]),n("td",null,[n("span",{style:{color:"var(--ss-text)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.pattern},h(m.pattern),9,fv)]),n("td",null,[n("span",{style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.name||"-"},h(m.name||"-"),9,hv)]),n("td",null,[n("span",{style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.handler},h(m.handler),9,pv)]),n("td",null,[n("span",{style:{color:"var(--ss-dim)","font-size":"10px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"},title:m.middleware?.length?m.middleware.join(", "):"-"},h(m.middleware?.length?m.middleware.join(", "):"-"),9,vv)])]))),128))])],512)):(u(),d("div",gv,"No routes available"))]))]))}})},Symbol.toStringTag,{value:"Module"})),mv={class:"ss-dash-log-filters"},bv=["onClick"],_v=["value"],xv={class:"ss-dash-structured-search"},wv=["value"],$v=["value"],kv=["value"],Sv={key:0,class:"ss-dash-filter-chips"},Cv={key:0,class:"ss-dash-filter-chip"},Tv={key:1,class:"ss-dash-filter-chip"},Ev=["onClick"],Pv={key:1,class:"ss-dash-empty"},Rv={key:2,class:"ss-dash-empty"},Av={key:3,class:"ss-dash-empty"},Mv={key:4,class:"ss-dash-log-entries"},Lv=["onClick"],Ov=["title"],Dv=["title","onClick","onKeydown"],Fv={key:1,class:"ss-dash-log-reqid-empty"},Iv={key:3,style:{width:"14px"}},Nv={class:"ss-dash-log-msg"},jv={key:0,class:"ss-dash-log-detail"},Bv=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"LogsSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,error:i,pagination:c,goToPage:v,setSearch:p,setFilter:g}=nt(()=>"logs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),k=J(""),x=J("all"),_=J(""),m=J(""),S=J(null),U=J([]),L=J("level"),b=J("equals"),$=J(""),T=H(()=>{if(!o.value)return[];const E=o.value;return E.data||E.logs||o.value||[]}),R=H(()=>x.value!=="all"||_.value!==""||U.value.length>0);function te(E,O){O&&(S.value=S.value===E?null:E)}function re(E){k.value=E,p(E)}function X(E){x.value=E,E==="all"?g("level",""):g("level",E)}function ge(E){_.value=E,m.value=E,g("request_id",E)}function Ee(){const E=m.value.trim();_.value=E,g("request_id",E)}function we(){_.value="",m.value="",g("request_id","")}function Ce(){x.value="all",g("level","")}let me=[];function $e(){const E=[];U.value.forEach((O,P)=>{E.push(`filter_field_${P}`,`filter_op_${P}`,`filter_value_${P}`)});for(const O of me)E.includes(O)||g(O,"");U.value.forEach((O,P)=>{g(`filter_field_${P}`,O.field),g(`filter_op_${P}`,O.operator),g(`filter_value_${P}`,O.value)}),me=E}function se(){const E=$.value.trim();E&&(U.value.push({field:L.value,operator:b.value,value:E}),$.value="",$e())}function q(E){U.value.splice(E,1),$e()}function V(E){return E.target.value}function ue(E){return E.target.value}return(E,O)=>(u(),d("div",null,[_e(Kt,{"model-value":k.value,placeholder:"Search logs...",summary:`${w(c).total??0} logs`,"onUpdate:modelValue":re},{default:is(()=>[n("div",mv,[(u(!0),d(B,null,pe(w(qu),P=>(u(),d("button",{key:P,type:"button",class:N(`ss-dash-log-filter ${x.value===P?"ss-dash-active":""}`),onClick:ne=>X(P)},h(P),11,bv))),128)),n("input",{type:"text",class:"ss-dash-filter-input ss-dash-reqid-input",placeholder:"Filter by request ID...",value:m.value,onInput:O[0]||(O[0]=P=>m.value=V(P)),onKeydown:Ms(Ee,["enter"])},null,40,_v),m.value||_.value?(u(),d("button",{key:0,type:"button",class:"ss-dash-btn ss-dash-reqid-clear",onClick:we}," Clear ")):G("",!0)])]),_:1},8,["model-value","summary"]),n("div",xv,[n("select",{class:"ss-dash-filter-select",value:L.value,onChange:O[1]||(O[1]=P=>L.value=ue(P))},[...O[4]||(O[4]=[gi('<option value="level">level</option><option value="message">message</option><option value="request_id">request_id</option><option value="userId">userId</option><option value="email">email</option><option value="path">path</option>',6)])],40,wv),n("select",{class:"ss-dash-filter-select",value:b.value,onChange:O[2]||(O[2]=P=>b.value=ue(P))},[...O[5]||(O[5]=[n("option",{value:"equals"},"equals",-1),n("option",{value:"contains"},"contains",-1),n("option",{value:"starts_with"},"starts with",-1)])],40,$v),n("input",{class:"ss-dash-filter-input",placeholder:"Value...",value:$.value,onInput:O[3]||(O[3]=P=>$.value=V(P)),onKeydown:Ms(se,["enter"])},null,40,kv),n("button",{type:"button",class:"ss-dash-btn",onClick:se},"Add")]),R.value?(u(),d("div",Sv,[x.value!=="all"?(u(),d("span",Cv,[ve(" level: "+h(x.value)+" ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Ce}," × ")])):G("",!0),_.value?(u(),d("span",Tv,[ve(" requestId: "+h(_.value.slice(0,8))+"... ",1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:we}," × ")])):G("",!0),(u(!0),d(B,null,pe(U.value,(P,ne)=>(u(),d("span",{key:ne,class:"ss-dash-filter-chip"},[ve(h(P.field)+" "+h(P.operator)+' "'+h(P.value)+'" ',1),n("button",{type:"button",class:"ss-dash-filter-chip-remove",onClick:Me=>q(ne)}," × ",8,Ev)]))),128))])):G("",!0),w(i)?(u(),d("div",Pv,"Failed to load logs")):w(r)&&!w(o)?(u(),d("div",Rv,"Loading logs...")):T.value.length===0?(u(),d("div",Av," No log entries"+h(_.value?` matching request ${_.value}`:x.value!=="all"?` for ${x.value}`:""),1)):(u(),d("div",Mv,[(u(!0),d(B,null,pe(T.value,(P,ne)=>(u(),d(B,{key:String(P.id||ne)},[n("div",{class:N(["ss-dash-log-entry",{"ss-dash-log-entry-expandable":!!w(bt)(P)}]),onClick:Me=>te(ne,!!w(bt)(P))},[n("span",{class:N(`ss-dash-log-level ${w(ha)(w(cn)(P),"ss-dash-log-level")}`)},h(w(cn)(P).toUpperCase()),3),n("span",{class:"ss-dash-log-time",title:w(qt)(P)?w(Ut)(w(qt)(P)):""},h(w(qt)(P)?w(mt)(w(qt)(P)):"-"),9,Ov),w(Ht)(P)?(u(),d("span",{key:0,class:"ss-dash-log-reqid",title:w(Ht)(P),role:"button",tabindex:"0",onClick:jt(Me=>ge(w(Ht)(P)),["stop"]),onKeydown:Ms(jt(Me=>ge(w(Ht)(P)),["stop"]),["enter"])},h(w(Ht)(P).slice(0,8)),41,Dv)):(u(),d("span",Fv,"--")),w(bt)(P)?(u(),d("span",{key:2,class:N(["ss-dash-log-expand-icon",{"ss-dash-log-expand-icon-open":S.value===ne}])},"▶",2)):(u(),d("span",Iv)),n("span",Nv,h(w(fa)(P)),1)],10,Lv),S.value===ne&&w(bt)(P)?(u(),d("div",jv,[_e(Ds,{value:w(bt)(P),"class-prefix":"ss-dash","default-expanded":""},null,8,["value"])])):G("",!0)],64))),128))])),w(c).totalPages>1?(u(),et(gs,{key:5,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):G("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Uv={key:0,class:"ss-dash-email-preview",id:"ss-dash-email-preview"},qv={class:"ss-dash-email-preview-header"},Hv={class:"ss-dash-email-preview-meta",id:"ss-dash-email-preview-meta"},Kv=["srcdoc"],Vv={key:0,class:"ss-dash-empty"},zv={class:"ss-dash-table-wrap"},Wv=["onClick"],Qv={style:{color:"var(--ss-dim)"}},Jv=["title"],Gv=["title"],Yv=["title"],Xv={key:0,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},Zv={key:1,style:{color:"var(--ss-dim)","text-align":"center",display:"block"}},eg=["title"],tg=["title"],sg={key:1,class:"ss-dash-empty"},ng=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"EmailsSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,pagination:i,goToPage:c,setSearch:v,fetchEmailPreview:p}=nt(()=>"emails",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),g=J(""),k=J(null),x=J(null),_=H(()=>{if(!o.value)return[];const $=o.value;return $.data||$.emails||o.value||[]}),m=H(()=>k.value===null?void 0:_.value.find($=>$.id===k.value));function S($){g.value=$,v($)}async function U($){if($.html){k.value=$.id,x.value=$.html;return}const T=await p($.id);k.value=$.id,x.value=T}function L(){k.value=null,x.value=null}const{tableRef:b}=Yt(()=>_.value);return($,T)=>(u(),d("div",null,[k.value&&x.value?(u(),d("div",Uv,[n("div",qv,[n("div",Hv,[m.value?(u(),d(B,{key:0},[T[4]||(T[4]=n("strong",null,"Subject:",-1)),ve(" "+h(m.value.subject)+" | ",1),T[5]||(T[5]=n("strong",null,"From:",-1)),ve(" "+h(m.value.from_addr||m.value.from)+" | ",1),T[6]||(T[6]=n("strong",null,"To:",-1)),ve(" "+h(m.value.to_addr||m.value.to)+" ",1),m.value.cc||m.value.cc_addr?(u(),d(B,{key:0},[T[0]||(T[0]=ve(" | ",-1)),T[1]||(T[1]=n("strong",null,"CC:",-1)),ve(" "+h(m.value.cc||m.value.cc_addr),1)],64)):G("",!0),T[7]||(T[7]=ve(" | ",-1)),T[8]||(T[8]=n("strong",null,"Status:",-1)),n("span",{class:N(`ss-dash-badge ss-dash-email-status-${m.value.status}`)},h(m.value.status),3),m.value.mailer?(u(),d(B,{key:1},[T[2]||(T[2]=ve(" | ",-1)),T[3]||(T[3]=n("strong",null,"Mailer:",-1)),ve(" "+h(m.value.mailer),1)],64)):G("",!0)],64)):G("",!0)]),n("button",{type:"button",class:"ss-dash-btn",id:"ss-dash-email-preview-close",onClick:L}," Close ")]),n("iframe",{class:"ss-dash-email-iframe",id:"ss-dash-email-iframe",srcdoc:x.value,title:"Email preview",sandbox:""},null,8,Kv)])):(u(),d(B,{key:1},[_e(Kt,{"model-value":g.value,placeholder:"Filter emails...",summary:`${w(i).total??0} emails`,"onUpdate:modelValue":S},null,8,["model-value","summary"]),w(r)&&!w(o)?(u(),d("div",Vv,"Loading emails...")):(u(),d(B,{key:1},[n("div",zv,[_.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:b,class:"ss-dash-table"},[T[9]||(T[9]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col",{style:{width:"150px"}}),n("col",{style:{width:"150px"}}),n("col"),n("col",{style:{width:"80px"}}),n("col",{style:{width:"40px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"80px"}})],-1)),T[10]||(T[10]=n("thead",null,[n("tr",null,[n("th",null,"#"),n("th",null,"From"),n("th",null,"To"),n("th",null,"Subject"),n("th",null,"Status"),n("th",null,"ATT"),n("th",null,"Mailer"),n("th",null,"Time")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(_.value,R=>(u(),d("tr",{key:R.id,class:"ss-dash-clickable ss-dash-email-row",onClick:te=>U(R)},[n("td",null,[n("span",Qv,h(R.id),1)]),n("td",null,[n("span",{title:R.from_addr||R.from||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(R.from_addr||R.from||""),9,Jv)]),n("td",null,[n("span",{title:R.to_addr||R.to||"",style:{color:"var(--ss-text-secondary)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(R.to_addr||R.to||""),9,Gv)]),n("td",null,[n("span",{title:R.subject||"",style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(R.subject||""),9,Yv)]),n("td",null,[n("span",{class:N(`ss-dash-badge ss-dash-email-status-${R.status||""}`)},h(R.status),3)]),n("td",null,[(R.attachment_count||R.attachmentCount||0)>0?(u(),d("span",Xv,h(R.attachment_count||R.attachmentCount||0),1)):(u(),d("span",Zv,"-"))]),n("td",null,[n("span",{title:R.mailer||"",style:{color:"var(--ss-muted)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(R.mailer||""),9,eg)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(Ut)(R.createdAt||R.created_at||R.timestamp)},h(w(mt)(R.createdAt||R.created_at||R.timestamp)),9,tg)])],8,Wv))),128))])],512)):(u(),d("div",sg,"No emails captured yet"))]),w(i).totalPages>1?(u(),et(gs,{key:0,page:w(i).page,"last-page":w(i).totalPages,total:w(i).total,onPageChange:w(c)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))],64))]))}})},Symbol.toStringTag,{value:"Module"})),lg={key:0,class:"ss-dash-cache-stats"},og={class:"ss-dash-cache-stat"},ag={class:"ss-dash-cache-stat-value"},rg={class:"ss-dash-cache-stat"},ig={class:"ss-dash-cache-stat-value"},ug={class:"ss-dash-cache-stat"},cg={class:"ss-dash-cache-stat-value"},dg={class:"ss-dash-cache-stat"},fg={class:"ss-dash-cache-stat-value"},hg={key:1,class:"ss-dash-empty"},pg={key:2,class:"ss-dash-empty"},vg={key:3,class:"ss-dash-table-wrap"},gg=["onClick"],yg=["title"],mg={style:{color:"var(--ss-muted)"}},bg=["onClick"],_g={key:1,class:"ss-dash-empty"},xg={key:4,class:"ss-dash-cache-detail"},wg={key:0,class:"ss-dash-empty"},$g={key:1,class:"ss-dash-empty",style:{color:"var(--ss-red-fg)"}},kg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"CacheSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,setSearch:i,mutate:c}=nt(()=>"cache",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t});let v=null;St(()=>{const T=fl(a||"",l);v=new ua(T(),s||"/__stats/api")});const p=J(""),g=J(null),k=J(null),x=J(!1),_=J(null),m=H(()=>o.value),S=H(()=>m.value?.keys||m.value?.data||[]);function U(T){p.value=T,i(T)}async function L(T){if(confirm(`Delete cache key "${T}"?`))try{await c(`cache/${encodeURIComponent(T)}`,"delete"),g.value===T&&(g.value=null,k.value=null,_.value=null)}catch{}}const{tableRef:b}=Yt(()=>S.value);async function $(T){if(g.value===T){g.value=null,k.value=null,_.value=null;return}g.value=T,k.value=null,_.value=null,x.value=!0;try{if(!v)throw new Error("Cache API not initialized");const R=await v.fetchCacheKey(T);k.value=R.value!==void 0?R.value:R.data!==void 0?R.data:R,_.value=null}catch{k.value=null,_.value="Failed to fetch key value"}finally{x.value=!1}}return(T,R)=>(u(),d("div",null,[m.value?.available&&m.value?.stats?(u(),d("div",lg,[n("div",og,[R[0]||(R[0]=n("span",{class:"ss-dash-cache-stat-label"},"Hit Rate:",-1)),n("span",ag,h((m.value.stats.hitRate??0).toFixed(1))+"%",1)]),n("div",rg,[R[1]||(R[1]=n("span",{class:"ss-dash-cache-stat-label"},"Hits:",-1)),n("span",ig,h(m.value.stats.hits??0),1)]),n("div",ug,[R[2]||(R[2]=n("span",{class:"ss-dash-cache-stat-label"},"Misses:",-1)),n("span",cg,h(m.value.stats.misses??0),1)]),n("div",dg,[R[3]||(R[3]=n("span",{class:"ss-dash-cache-stat-label"},"Keys:",-1)),n("span",fg,h(m.value.stats.totalKeys||m.value.stats.keyCount||S.value.length||0),1)])])):G("",!0),_e(Kt,{"model-value":p.value,placeholder:"Filter cache keys...",summary:`${S.value.length} keys`,"onUpdate:modelValue":U},null,8,["model-value","summary"]),w(r)&&!w(o)?(u(),d("div",hg,"Loading cache...")):!m.value||!m.value.available?(u(),d("div",pg," Cache inspector not available ")):(u(),d("div",vg,[S.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:b,class:"ss-dash-table"},[R[4]||(R[4]=n("thead",null,[n("tr",null,[n("th",null,"Key"),n("th",null,"Type"),n("th",null,"Size"),n("th",null,"TTL"),n("th")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(S.value,te=>(u(),d("tr",{key:te.key,class:"ss-dash-clickable",onClick:re=>$(te.key)},[n("td",null,[n("span",{title:te.key,style:{color:"var(--ss-sql-color)",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap",display:"block"}},h(te.key),9,yg)]),n("td",null,[n("span",mg,h(te.type),1)]),n("td",null,h(te.size!==null&&te.size!==void 0&&te.size>0?w(Su)(te.size):"-"),1),n("td",null,h(te.ttl>0?w(ku)(te.ttl):"-"),1),n("td",null,[n("button",{type:"button",class:"ss-dash-retry-btn",onClick:jt(re=>L(te.key),["stop"])}," Delete ",8,bg)])],8,gg))),128))])],512)):(u(),d("div",_g,"No cache keys found"))])),g.value?(u(),d("div",xg,[n("h4",null,"Key: "+h(g.value),1),x.value?(u(),d("div",wg,"Loading value...")):_.value?(u(),d("div",$g,h(_.value),1)):(u(),et(Ds,{key:2,value:k.value},null,8,["value"]))])):G("",!0)]))}})},Symbol.toStringTag,{value:"Module"})),Sg={key:0,class:"ss-dash-job-stats"},Cg={class:"ss-dash-job-stat"},Tg={class:"ss-dash-job-stat-value"},Eg={class:"ss-dash-job-stat"},Pg={class:"ss-dash-job-stat-value"},Rg={class:"ss-dash-job-stat"},Ag={class:"ss-dash-job-stat-value"},Mg={class:"ss-dash-job-stat"},Lg={class:"ss-dash-job-stat-value"},Og={class:"ss-dash-job-stat"},Dg={class:"ss-dash-job-stat-value",style:{color:"var(--ss-red-fg)"}},Fg={class:"ss-dash-btn-group"},Ig=["onClick"],Ng={key:1,class:"ss-dash-empty"},jg={key:2,class:"ss-dash-empty"},Bg={class:"ss-dash-table-wrap"},Ug={style:{color:"var(--ss-dim)"}},qg=["title"],Hg={style:{color:"var(--ss-muted)","text-align":"center",display:"block"}},Kg={class:"ss-dash-duration"},Vg=["title"],zg=["disabled","onClick"],Wg={key:1,class:"ss-dash-empty"},Qg=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"JobsSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-dashboard-endpoint","/__stats/api"),l=ie("ss-auth-token",void 0),a=ie("ss-base-url",""),{data:o,loading:r,error:i,pagination:c,goToPage:v,setSearch:p,setFilter:g,refresh:k,mutate:x}=nt(()=>"jobs",{baseUrl:a,dashboardEndpoint:s,authToken:l,refreshKey:t}),_=J(""),m=J("all"),S=J({}),U=H(()=>nc(o.value)),L=H(()=>lc(o.value));function b(te){_.value=te,p(te)}function $(te){m.value=te,te==="all"?g("status",""):g("status",te)}const{tableRef:T}=Yt(()=>U.value);async function R(te){S.value[te]="pending";try{await x(`jobs/${te}/retry`),S.value[te]="success",setTimeout(()=>{delete S.value[te],k()},1e3)}catch{delete S.value[te]}}return(te,re)=>(u(),d("div",null,[L.value?(u(),d("div",Sg,[n("div",Cg,[re[0]||(re[0]=n("span",{class:"ss-dash-job-stat-label"},"Active:",-1)),n("span",Tg,h(L.value.active??0),1)]),n("div",Eg,[re[1]||(re[1]=n("span",{class:"ss-dash-job-stat-label"},"Waiting:",-1)),n("span",Pg,h(L.value.waiting??0),1)]),n("div",Rg,[re[2]||(re[2]=n("span",{class:"ss-dash-job-stat-label"},"Delayed:",-1)),n("span",Ag,h(L.value.delayed??0),1)]),n("div",Mg,[re[3]||(re[3]=n("span",{class:"ss-dash-job-stat-label"},"Completed:",-1)),n("span",Lg,h(L.value.completed??0),1)]),n("div",Og,[re[4]||(re[4]=n("span",{class:"ss-dash-job-stat-label"},"Failed:",-1)),n("span",Dg,h(L.value.failed??0),1)])])):G("",!0),_e(Kt,{"model-value":_.value,placeholder:"Filter jobs...",summary:`${w(c).total||U.value.length} jobs`,"onUpdate:modelValue":b},{default:is(()=>[n("div",Fg,[(u(!0),d(B,null,pe(w(tc),X=>(u(),d("button",{key:X,type:"button",class:N(`ss-dash-btn ${m.value===X?"ss-dash-active":""}`),onClick:ge=>$(X)},h(X.charAt(0).toUpperCase()+X.slice(1)),11,Ig))),128))])]),_:1},8,["model-value","summary"]),w(r)&&!w(o)?(u(),d("div",Ng,"Loading jobs...")):w(i)?(u(),d("div",jg,"Jobs/Queue not available")):(u(),d(B,{key:3},[n("div",Bg,[U.value.length>0?(u(),d("table",{key:0,ref_key:"tableRef",ref:T,class:"ss-dash-table"},[re[5]||(re[5]=n("colgroup",null,[n("col",{style:{width:"40px"}}),n("col"),n("col",{style:{width:"90px"}}),n("col"),n("col",{style:{width:"50px"}}),n("col",{style:{width:"75px"}}),n("col",{style:{width:"70px"}}),n("col",{style:{width:"50px"}})],-1)),re[6]||(re[6]=n("thead",null,[n("tr",null,[n("th",null,"ID"),n("th",null,"Name"),n("th",null,"Status"),n("th",null,"Payload"),n("th",null,"Tries"),n("th",null,"Duration"),n("th",null,"Time"),n("th")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(U.value,X=>(u(),d("tr",{key:X.id},[n("td",null,[n("span",Ug,h(X.id),1)]),n("td",null,[n("span",{style:{color:"var(--ss-text)"},title:X.name},h(X.name),9,qg)]),n("td",null,[n("span",{class:N(`ss-dash-badge ss-dash-badge-${w(sc)(X.status)}`)},h(X.status),3)]),n("td",null,[_e(Ds,{value:X.payload||X.data,"max-len":60},null,8,["value"])]),n("td",null,[n("span",Hg,h(X.attempts||X.attemptsMade||0),1)]),n("td",null,[n("span",Kg,h(X.duration!==null&&X.duration!==void 0?w(Bt)(X.duration):"-"),1)]),n("td",null,[n("span",{class:"ss-dash-event-time",style:{"white-space":"nowrap"},title:w(Ut)(X.timestamp||X.createdAt||X.processedAt||X.created_at)},h(w(mt)(X.timestamp||X.createdAt||X.processedAt||X.created_at)),9,Vg)]),n("td",null,[X.status==="failed"?(u(),d("button",{key:0,type:"button",class:"ss-dash-retry-btn",disabled:S.value[X.id]==="pending"||S.value[X.id]==="success",onClick:jt(ge=>R(X.id),["stop"])},h(S.value[X.id]==="pending"?"...":S.value[X.id]==="success"?"OK":"Retry"),9,zg)):G("",!0)])]))),128))])],512)):(u(),d("div",Wg,"No jobs found"))]),w(c).totalPages>1?(u(),et(gs,{key:0,page:w(c).page,"last-page":w(c).totalPages,total:w(c).total,onPageChange:w(v)},null,8,["page","last-page","total","onPageChange"])):G("",!0)],64))]))}})},Symbol.toStringTag,{value:"Module"})),Jg={style:{position:"relative",flex:1}},Gg=["value"],Yg=["onClick"],Xg={key:0},Zg=["onClick"],e1={key:0},t1={style:{padding:"4px 16px",fontSize:"10px",color:"var(--ss-muted)"}},s1=["onClick"],n1=["title"],l1=["title"],o1=["onClick"],a1={key:1,style:{color:"var(--ss-dim)"}},r1={key:3,style:{color:"var(--ss-amber-fg)"}},i1={key:4,style:{color:"var(--ss-purple-fg)"}},u1={key:5},c1=["onClick"],ce="ss-dash",d1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"ConfigSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-base-url",""),l=ie("ss-dashboard-endpoint","/__stats/api"),a=ie("ss-auth-token",void 0),{data:o,loading:r}=nt(()=>"config",{baseUrl:s,dashboardEndpoint:l,authToken:a,refreshKey:t}),i=J(""),c=J(""),v=J("app"),p=J(new Set),g=J("Copy JSON"),k=J(new Map);let x=null;function _(E){i.value=E,x&&clearTimeout(x),x=setTimeout(()=>{c.value=E},200)}function m(E){return E.target.value}const S=H(()=>o.value??null),U=H(()=>{const E=S.value?.env??{},O=c.value.toLowerCase();return Object.entries(E).filter(([P,ne])=>{if(!O)return!0;const Me=De(ne)?ne.display:ne==null?"":String(ne);return P.toLowerCase().includes(O)||Me.toLowerCase().includes(O)})}),L=H(()=>{const E=S.value?.app??{},O=c.value.toLowerCase();return fn(E,"").filter(ne=>{const Me=De(ne.value)?ne.value.display:ne.value===null||ne.value===void 0?"":String(ne.value);return ne.path.toLowerCase().includes(O)||Me.toLowerCase().includes(O)})}),b=H(()=>{const E=S.value?.app??{};return fn(E,"").length}),$=H(()=>{const E=S.value?.app;return!E||typeof E!="object"||Array.isArray(E)||De(E)?[]:Object.keys(E)});function T(E){const O=new Set(p.value);O.has(E)?O.delete(E):O.add(E),p.value=O}function R(){if(!S.value)return;const E=v.value==="app"?S.value.app:S.value.env;if(!E)return;const O=$c(E);p.value=new Set(O)}function te(){p.value=new Set}function re(){if(!S.value)return;const E=v.value==="app"?S.value.app:S.value.env;navigator.clipboard?.writeText(JSON.stringify(E,null,2)).then(()=>{g.value="Copied!",setTimeout(()=>{g.value="Copy JSON"},1500)}).catch(()=>{})}function X(E,O){k.value.set(E,O)}function ge(E,O,P){P.stopPropagation(),kc(E,k.value.get(O)??null,ce)}function Ee(E){return E!==null&&typeof E=="object"&&!Array.isArray(E)&&!De(E)}function we(E,O){return fn(E,O)}function Ce(E,O){return E.indexOf(O+".")===0?E.slice(O.length+1):E}function me(E){return wc(E)}function $e(E){return De(E)?E.display:E==null?"null":String(E)}function se(E){const O=S.value?.app;return!O||typeof O!="object"?null:O[E]??null}function q(E){return De(E)?E.display:""}function V(){i.value="",c.value=""}function ue(E){return De(E)?E.display:""}return(E,O)=>(u(),d("div",null,[n("div",{class:N(`${ce}-config-toolbar`),style:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px"}},[n("button",{type:"button",class:N(`${ce}-config-tab${v.value==="app"?` ${ce}-active`:""}`),onClick:O[0]||(O[0]=P=>v.value="app")}," App Config ",2),n("button",{type:"button",class:N(`${ce}-config-tab${v.value==="env"?` ${ce}-active`:""}`),onClick:O[1]||(O[1]=P=>v.value="env")}," Env ",2),n("div",Jg,[n("input",{type:"text",class:N(`${ce}-search`),placeholder:"Search keys and values...",value:i.value,style:{width:"100%"},onInput:O[2]||(O[2]=P=>_(m(P)))},null,42,Gg),i.value?(u(),d("button",{key:0,type:"button",style:{position:"absolute",right:"6px",top:"50%",transform:"translateY(-50%)",background:"none",border:"none",cursor:"pointer",fontSize:"14px",color:"var(--ss-dim)",padding:"0 2px",lineHeight:1},onClick:V}," × ")):G("",!0)]),v.value==="app"&&!c.value?(u(),d(B,{key:0},[n("button",{type:"button",class:N(`${ce}-btn`),onClick:R},"Expand All",2),n("button",{type:"button",class:N(`${ce}-btn`),onClick:te},"Collapse All",2)],64)):G("",!0),n("button",{type:"button",class:N(`${ce}-btn`),onClick:re},h(g.value),3)],2),w(r)&&!w(o)?(u(),d("div",{key:0,class:N(`${ce}-empty`)},"Loading config...",2)):S.value?v.value==="env"?(u(),d("div",{key:2,class:N(`${ce}-config-table-wrap`)},[n("table",{class:N(`${ce}-table ${ce}-config-env-table`)},[O[4]||(O[4]=n("thead",null,[n("tr",null,[n("th",null,"Variable"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(U.value,([P,ne])=>(u(),d("tr",{key:P},[n("td",{class:N(`${ce}-env-key`)},[n("span",{class:N(`${ce}-config-key`)},h(P),3)],2),n("td",{class:N(`${ce}-env-val`)},[w(De)(ne)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(q(ne)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`)},h($e(ne)),3))],2),n("td",null,[w(De)(ne)?G("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Me=>X(`env-${P}`,Me),onClick:Me=>ge(`${P}=${$e(ne)}`,`env-${P}`,Me)}," ⎘ ",10,Yg))])]))),128)),U.value.length===0?(u(),d("tr",Xg,[...O[3]||(O[3]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching variables ",-1)])])):G("",!0)])],2)],2)):c.value?(u(),d("div",{key:3,class:N(`${ce}-config-table-wrap`)},[n("table",{class:N(`${ce}-table`)},[O[6]||(O[6]=n("thead",null,[n("tr",null,[n("th",null,"Path"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(L.value,P=>(u(),d("tr",{key:P.path},[n("td",null,[n("span",{class:N(`${ce}-config-key`),style:{whiteSpace:"nowrap"}},h(P.path),3)]),n("td",null,[w(De)(P.value)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(q(P.value)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`),style:Ne({wordBreak:"break-all",color:me(P.value).color})},h(me(P.value).text),7))]),n("td",null,[w(De)(P.value)?G("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:ne=>X(`search-${P.path}`,ne),onClick:ne=>ge(`${P.path}: ${w(De)(P.value)?ue(P.value):me(P.value).text}`,`search-${P.path}`,ne)}," ⎘ ",10,Zg))])]))),128)),L.value.length===0?(u(),d("tr",e1,[...O[5]||(O[5]=[n("td",{colspan:"3",style:{textAlign:"center",color:"var(--ss-dim)"}}," No matching entries ",-1)])])):G("",!0)])],2),n("div",t1,h(L.value.length)+" of "+h(b.value)+" entries ",1)],2)):(u(),d("div",{key:4,class:N(`${ce}-config-table-wrap`)},[n("div",{class:N(`${ce}-config-sections`)},[(u(!0),d(B,null,pe($.value,P=>(u(),d("div",{key:P,class:N(`${ce}-config-section`)},[Ee(se(P))?(u(),d(B,{key:0},[n("div",{class:N(`${ce}-config-section-header`),style:{cursor:"pointer"},onClick:ne=>T(P)},[n("span",{class:N(`${ce}-config-toggle`)},h(p.value.has(P)?"▼":"▶"),3),n("span",{class:N(`${ce}-config-key`)},h(P),3),n("span",{class:N(`${ce}-config-count`)},h(w(ya)(se(P)))+" entries ",3)],10,s1),p.value.has(P)?(u(),d("div",{key:0,class:N(`${ce}-config-section-body`)},[n("table",{class:N(`${ce}-table ${ce}-config-inner-table`)},[O[7]||(O[7]=n("thead",null,[n("tr",null,[n("th",{style:{width:"35%"}},"Key"),n("th",null,"Value"),n("th",{style:{width:"36px"}})])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(we(se(P),P),ne=>(u(),d("tr",{key:ne.path},[n("td",{title:Ce(ne.path,P)},[n("span",{class:N(`${ce}-config-key`)},h(Ce(ne.path,P)),3)],8,n1),n("td",{title:w(De)(ne.value)?ue(ne.value):me(ne.value).text},[w(De)(ne.value)?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(q(ne.value)),3)):(u(),d("span",{key:1,class:N(`${ce}-config-val`),style:Ne({color:me(ne.value).color})},h(me(ne.value).text),7))],8,l1),n("td",null,[w(De)(ne.value)?G("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),title:"Copy",ref_for:!0,ref:Me=>X(`inner-${ne.path}`,Me),onClick:Me=>ge(`${ne.path}: ${me(ne.value).text}`,`inner-${ne.path}`,Me)}," ⎘ ",10,o1))])]))),128))])],2)],2)):G("",!0)],64)):(u(),d("div",{key:1,class:N(`${ce}-config-section-header ${ce}-config-leaf`),style:{cursor:"default"}},[n("span",{class:N(`${ce}-config-toggle`),style:{visibility:"hidden"}},"•",2),n("span",{class:N(`${ce}-config-key`)},h(P),3),n("span",{class:N(`${ce}-config-val`),style:{marginLeft:"8px"}},[w(De)(se(P))?(u(),d("span",{key:0,class:N(`${ce}-config-redacted`)},h(q(se(P))),3)):se(P)===null||se(P)===void 0?(u(),d("span",a1,"null")):typeof se(P)=="boolean"?(u(),d("span",{key:2,style:Ne({color:se(P)?"var(--ss-green-fg)":"var(--ss-red-fg)"})},h(String(se(P))),5)):typeof se(P)=="number"?(u(),d("span",r1,h(String(se(P))),1)):Array.isArray(se(P))?(u(),d("span",i1,h(me(se(P)).text),1)):(u(),d("span",u1,h(String(se(P))),1))],2),w(De)(se(P))?G("",!0):(u(),d("button",{key:0,type:"button",class:N(`${ce}-copy-row-btn`),style:{marginLeft:"4px"},title:"Copy",ref_for:!0,ref:ne=>X(`leaf-${P}`,ne),onClick:ne=>ge(`${P}: ${me(se(P)).text}`,`leaf-${P}`,ne)}," ⎘ ",10,c1))],2))],2))),128))],2)],2)):(u(),d("div",{key:1,class:N(`${ce}-empty`)},"Config not available",2))]))}})},Symbol.toStringTag,{value:"Module"})),f1={key:0,class:"ss-dash-empty"},h1={key:1,class:"ss-dash-empty"},p1={key:2,class:"ss-dash-empty"},v1={key:0,style:{background:"var(--ss-amber-bg)",color:"var(--ss-amber-fg)",padding:"8px 12px",borderRadius:"6px",fontSize:"12px",marginBottom:"12px",lineHeight:"1.5"}},g1={class:"ss-dash-info-cards"},y1={class:"ss-dash-info-card-label"},m1={class:"ss-dash-info-card-value"},b1={key:1,class:"ss-dash-empty"},_1={key:2,class:"ss-dash-table"},x1={style:{"font-family":"monospace","font-size":"11px"}},w1={key:0,style:{"margin-left":"6px","font-size":"11px",color:"var(--ss-dim)"}},$1={style:{color:"var(--ss-dim)","margin-left":"4px"}},k1={style:{"font-size":"11px"}},S1=["onClick"],C1=["onClick"],T1={key:3,class:"ss-dash-empty"},E1={key:4,class:"ss-dash-table"},P1={class:"ss-dash-bar"},R1={class:"ss-dash-bar-track",style:{"max-width":"120px"}},A1={key:5,class:"ss-dash-empty"},M1={key:6,class:"ss-dash-table"},L1={style:{color:"var(--ss-dim)"}},O1={key:7,class:"ss-dash-empty"},D1={key:8,class:"ss-dash-table"},F1={style:{color:"var(--ss-dim)","font-size":"11px"}},I1={class:"ss-dash-table"},N1={style:{"font-family":"monospace","font-size":"11px"}},j1={key:0,class:"ss-dash-table",style:{"margin-top":"8px"}},B1={style:{"font-family":"monospace","font-size":"11px"}},U1={class:"ss-dash-table"},q1={class:"ss-dash-table"},H1={style:{"font-family":"monospace","font-size":"11px"}},K1={style:{"font-family":"monospace","font-size":"11px"}},V1={style:{"font-family":"monospace","font-size":"11px"}},z1={style:{"font-size":"11px"}},W1=Object.freeze(Object.defineProperty({__proto__:null,default:Oe({__name:"InternalsSection",setup(e){const t=ie("ss-refresh-key",J(0)),s=ie("ss-base-url",""),l=ie("ss-debug-endpoint","/admin/api/debug"),a=ie("ss-auth-token",void 0),o=J(null),r=J(!0),i=J(null),c=J(new Set),v=fl(s,a);let p=null;async function g(){try{const L=await v().fetch(`${l}/diagnostics`);o.value=L,i.value=null,r.value=!1}catch(L){if(L instanceof an){i.value=L,r.value=!1,p&&(clearInterval(p),p=null);return}i.value=L instanceof Error?L:new Error(String(L)),r.value=!1}}St(()=>{r.value=!0,i.value=null,g(),p=setInterval(g,la)}),Ct(()=>{p&&clearInterval(p)}),it(t,()=>{g()});function k(L){c.value.has(L)?c.value.delete(L):c.value.add(L)}function x(L){const b=xc(L);return b==="ok"?"ss-dash-dot-ok":b==="err"?"ss-dash-dot-err":""}function _(L){return L.debounceMs!==void 0?`${Bt(L.debounceMs)} (debounce)`:L.intervalMs!==void 0?Bt(L.intervalMs):"-"}const m=H(()=>o.value?.buffers?Object.entries(o.value.buffers).map(([L,b])=>({name:L.charAt(0).toUpperCase()+L.slice(1),...b,percent:mc(b.current,b.max)})):[]),S=H(()=>o.value?.timers?Object.entries(o.value.timers).map(([L,b])=>({key:L,label:fc(L),...b,interval:_(b)})):[]),U=H(()=>{if(!o.value)return[];const L=[];if(o.value.transmit&&L.push({key:"transmit",label:"Transmit (SSE)",status:o.value.transmit.available?"connected":"unavailable",details:o.value.transmit.available?`Channels: ${o.value.transmit.channels.join(", ")}`:"Not installed"}),o.value.integrations)for(const[b,$]of Object.entries(o.value.integrations))L.push({key:b,label:pc(b),status:vc($),details:gc(b,$)});return L});return(L,b)=>(u(),d("div",null,[r.value&&!o.value?(u(),d("div",f1,"Loading diagnostics...")):i.value&&!o.value?(u(),d("div",h1,"Error: "+h(i.value.message),1)):o.value?(u(),d(B,{key:3},[o.value.collectors?.some($=>$.name==="db_pool"||$.name==="app")&&Array.isArray(o.value.lucidDebugConnections)&&o.value.lucidDebugConnections.length===0?(u(),d("div",v1,[...b[4]||(b[4]=[n("strong",null,"Query capture disabled",-1),ve(" — no Lucid connections have ",-1),n("code",{style:{"font-size":"11px"}},"debug: true",-1),ve(". Add it to your database connection in ",-1),n("code",{style:{"font-size":"11px"}},"config/database.ts",-1),ve(" to see queries in the Queries panel. ",-1)])])):G("",!0),b[42]||(b[42]=n("h3",{class:"ss-dash-section-title"},"Package Info",-1)),n("div",g1,[(u(!0),d(B,null,pe([{label:"Version",value:o.value.package?.version||"-"},{label:"Node.js",value:o.value.package?.nodeVersion||"-"},{label:"AdonisJS",value:o.value.package?.adonisVersion||"-"},{label:"Uptime",value:w(wu)(o.value.uptime||o.value.package?.uptime)},{label:"Renderer",value:o.value.devToolbar?.renderer||"preact"}],$=>(u(),d("div",{key:$.label,class:"ss-dash-info-card"},[n("span",y1,h($.label),1),n("span",m1,h($.value),1)]))),128))]),b[43]||(b[43]=n("h3",{class:"ss-dash-section-title"},"Collectors",-1)),o.value.collectors?.length?(u(),d("table",_1,[b[5]||(b[5]=n("thead",null,[n("tr",null,[n("th",null,"Collector"),n("th",null,"Status"),n("th",null,"Last Error"),n("th",null,"Config")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(o.value.collectors,$=>(u(),d("tr",{key:$.name},[n("td",null,[n("span",x1,h($.name),1),$.label&&$.label!==$.name?(u(),d("span",w1,h($.label),1)):G("",!0)]),n("td",null,[n("span",{class:N(["ss-dash-dot",x($.status)])},null,2),ve(" "+h($.status),1)]),n("td",{style:Ne($.lastError?{color:"var(--ss-red-fg)"}:{})},[$.lastError?(u(),d(B,{key:0},[ve(h($.lastError)+" ",1),n("span",$1,h(w(mt)($.lastErrorAt??0)),1)],64)):(u(),d(B,{key:1},[ve("-")],64))],4),n("td",k1,[Object.keys($.config||{}).length?(u(!0),d(B,{key:0},pe(w(yc)($.config),T=>(u(),d("span",{key:T.key,style:{"margin-right":"8px"}},[ve(h(T.key)+"=",1),T.secret&&!c.value.has(`collector-${$.name}-${T.key}`)?(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:R=>k(`collector-${$.name}-${T.key}`)},"••••••••",8,S1)):(u(),d(B,{key:1},[n("span",null,h(T.value),1),T.secret?(u(),d("button",{key:0,style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:R=>k(`collector-${$.name}-${T.key}`)}," Hide ",8,C1)):G("",!0)],64))]))),128)):(u(),d(B,{key:1},[ve("-")],64))])]))),128))])])):(u(),d("div",b1,"No collectors")),b[44]||(b[44]=n("h3",{class:"ss-dash-section-title"},"Buffers",-1)),m.value.length?(u(),d("table",E1,[b[6]||(b[6]=n("thead",null,[n("tr",null,[n("th",null,"Buffer"),n("th",null,"Usage"),n("th",null,"Fill %")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(m.value,$=>(u(),d("tr",{key:$.name},[n("td",null,h($.name),1),n("td",null,h($.current.toLocaleString())+" / "+h($.max.toLocaleString()),1),n("td",null,[n("div",P1,[n("div",R1,[n("div",{class:N(["ss-dash-bar-fill",$.percent>=100?"ss-dash-bar-fill-warn":""]),style:Ne({width:$.percent+"%"})},null,6)]),n("span",{class:N(["ss-dash-bar-pct",$.percent>=100?"ss-dash-bar-pct-warn":""])},h($.percent)+"%",3)])])]))),128))])])):(u(),d("div",T1,"No buffer data")),b[45]||(b[45]=n("h3",{class:"ss-dash-section-title"},"Timers",-1)),S.value.length?(u(),d("table",M1,[b[7]||(b[7]=n("thead",null,[n("tr",null,[n("th",null,"Timer"),n("th",null,"Status"),n("th",null,"Interval")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(S.value,$=>(u(),d("tr",{key:$.key},[n("td",null,h($.label),1),n("td",null,[n("span",{class:N(["ss-dash-dot",x($.active?"active":"inactive")])},null,2),ve(" "+h($.active?"active":"inactive"),1)]),n("td",L1,h($.interval),1)]))),128))])])):(u(),d("div",A1,"No timer data")),b[46]||(b[46]=n("h3",{class:"ss-dash-section-title"},"Integrations",-1)),U.value.length?(u(),d("table",D1,[b[8]||(b[8]=n("thead",null,[n("tr",null,[n("th",null,"Integration"),n("th",null,"Status"),n("th",null,"Details")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(U.value,$=>(u(),d("tr",{key:$.key},[n("td",null,h($.label),1),n("td",null,[n("span",{class:N(["ss-dash-dot",x($.status)])},null,2),ve(" "+h($.status),1)]),n("td",F1,h($.details),1)]))),128))])])):(u(),d("div",O1,"No integration data")),o.value.storage?(u(),d(B,{key:9},[b[17]||(b[17]=n("h3",{class:"ss-dash-section-title"},"Storage",-1)),n("table",I1,[b[15]||(b[15]=n("thead",null,[n("tr",null,[n("th",null,"Metric"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[b[9]||(b[9]=n("td",null,"Status",-1)),n("td",null,[n("span",{class:N(["ss-dash-dot",x(o.value.storage.ready?"ready":"unavailable")])},null,2),ve(" "+h(o.value.storage.ready?"ready":"not ready"),1)])]),n("tr",null,[b[10]||(b[10]=n("td",null,"DB Path",-1)),n("td",N1,h(o.value.storage.dbPath),1)]),n("tr",null,[b[11]||(b[11]=n("td",null,"File Size",-1)),n("td",null,h(o.value.storage.fileSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[b[12]||(b[12]=n("td",null,"WAL Size",-1)),n("td",null,h(o.value.storage.walSizeMb.toFixed(1))+" MB",1)]),n("tr",null,[b[13]||(b[13]=n("td",null,"Retention",-1)),n("td",null,h(o.value.storage.retentionDays)+" days",1)]),n("tr",null,[b[14]||(b[14]=n("td",null,"Last Cleanup",-1)),n("td",null,h(w(mt)(o.value.storage.lastCleanupAt??0)),1)])])]),o.value.storage.tables?.length?(u(),d("table",j1,[b[16]||(b[16]=n("thead",null,[n("tr",null,[n("th",null,"Table"),n("th",null,"Rows")])],-1)),n("tbody",null,[(u(!0),d(B,null,pe(o.value.storage.tables,$=>(u(),d("tr",{key:$.name},[n("td",B1,h($.name),1),n("td",null,h($.rowCount.toLocaleString()),1)]))),128))])])):G("",!0)],64)):G("",!0),b[47]||(b[47]=n("h3",{class:"ss-dash-section-title"},"Resolved Config",-1)),n("table",U1,[b[25]||(b[25]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[b[18]||(b[18]=n("td",null,"intervalMs",-1)),n("td",null,h(o.value.config?.intervalMs),1)]),n("tr",null,[b[19]||(b[19]=n("td",null,"transport",-1)),n("td",null,h(o.value.config?.transport),1)]),n("tr",null,[b[20]||(b[20]=n("td",null,"channelName",-1)),n("td",null,h(o.value.config?.channelName),1)]),n("tr",null,[b[21]||(b[21]=n("td",null,"endpoint",-1)),n("td",null,h(o.value.config?.endpoint===!1?"false":o.value.config?.endpoint),1)]),n("tr",null,[b[22]||(b[22]=n("td",null,"skipInTest",-1)),n("td",null,h(o.value.config?.skipInTest),1)]),n("tr",null,[b[23]||(b[23]=n("td",null,"onStats callback",-1)),n("td",null,h(o.value.config?.hasOnStatsCallback?"defined":"not defined"),1)]),n("tr",null,[b[24]||(b[24]=n("td",null,"shouldShow callback",-1)),n("td",null,h(o.value.config?.hasShouldShowCallback?"defined":"not defined"),1)])])]),b[48]||(b[48]=n("h4",{class:"ss-dash-section-title"},"DevToolbar",-1)),n("table",q1,[b[41]||(b[41]=n("thead",null,[n("tr",null,[n("th",null,"Setting"),n("th",null,"Value")])],-1)),n("tbody",null,[n("tr",null,[b[26]||(b[26]=n("td",null,"enabled",-1)),n("td",null,h(o.value.devToolbar?.enabled),1)]),n("tr",null,[b[27]||(b[27]=n("td",null,"tracing",-1)),n("td",null,h(o.value.devToolbar?.tracing),1)]),n("tr",null,[b[28]||(b[28]=n("td",null,"dashboard",-1)),n("td",null,h(o.value.devToolbar?.dashboard),1)]),n("tr",null,[b[29]||(b[29]=n("td",null,"dashboardPath",-1)),n("td",H1,h(o.value.devToolbar?.dashboardPath),1)]),n("tr",null,[b[30]||(b[30]=n("td",null,"debugEndpoint",-1)),n("td",K1,[c.value.has("cfg-debugEndpoint")?(u(),d(B,{key:1},[ve(h(o.value.devToolbar?.debugEndpoint)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[1]||(b[1]=$=>k("cfg-debugEndpoint"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:b[0]||(b[0]=$=>k("cfg-debugEndpoint"))},"••••••••"))])]),n("tr",null,[b[31]||(b[31]=n("td",null,"maxQueries",-1)),n("td",null,h(o.value.devToolbar?.maxQueries),1)]),n("tr",null,[b[32]||(b[32]=n("td",null,"maxEvents",-1)),n("td",null,h(o.value.devToolbar?.maxEvents),1)]),n("tr",null,[b[33]||(b[33]=n("td",null,"maxEmails",-1)),n("td",null,h(o.value.devToolbar?.maxEmails),1)]),n("tr",null,[b[34]||(b[34]=n("td",null,"maxTraces",-1)),n("td",null,h(o.value.devToolbar?.maxTraces),1)]),n("tr",null,[b[35]||(b[35]=n("td",null,"slowQueryThresholdMs",-1)),n("td",null,h(o.value.devToolbar?.slowQueryThresholdMs),1)]),n("tr",null,[b[36]||(b[36]=n("td",null,"retentionDays",-1)),n("td",null,h(o.value.devToolbar?.retentionDays),1)]),n("tr",null,[b[37]||(b[37]=n("td",null,"dbPath",-1)),n("td",V1,[c.value.has("cfg-dbPath")?(u(),d(B,{key:1},[ve(h(o.value.devToolbar?.dbPath)+" ",1),n("button",{style:{background:"none",border:"none",color:"var(--ss-link-color, #3b82f6)",cursor:"pointer","font-size":"10px","margin-left":"4px",padding:"0"},onClick:b[3]||(b[3]=$=>k("cfg-dbPath"))}," Hide ")],64)):(u(),d("span",{key:0,style:{color:"var(--ss-muted)",cursor:"pointer"},onClick:b[2]||(b[2]=$=>k("cfg-dbPath"))},"••••••••"))])]),n("tr",null,[b[38]||(b[38]=n("td",null,"persistDebugData",-1)),n("td",null,h(o.value.devToolbar?.persistDebugData),1)]),n("tr",null,[b[39]||(b[39]=n("td",null,"excludeFromTracing",-1)),n("td",z1,h(o.value.devToolbar?.excludeFromTracing?.join(", ")||"-"),1)]),n("tr",null,[b[40]||(b[40]=n("td",null,"customPanes",-1)),n("td",null,h(o.value.devToolbar?.customPaneCount??0)+" registered",1)])])])],64)):(u(),d("div",p1,"Diagnostics not available"))]))}})},Symbol.toStringTag,{value:"Module"}))})();
|